summaryrefslogtreecommitdiff
path: root/out
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-01-29 14:57:38 +0000
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-01-29 14:57:38 +0000
commitdae41a72774a5bcfbda8412f5c811a4c1c2281a3 (patch)
treeb2cb32a3252e0f26a7e92a34fa8f79b970754a92 /out
parent5a93993de3163fa88ce2a9d341371d62bc4e13d5 (diff)
chore: build
Diffstat (limited to 'out')
-rw-r--r--out/404.html2
-rw-r--r--out/_next/static/8cne445bLE-kLSJ63BF1j/_buildManifest.js (renamed from out/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js)2
-rw-r--r--out/_next/static/8cne445bLE-kLSJ63BF1j/_ssgManifest.js (renamed from out/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js)0
-rw-r--r--out/_next/static/chunks/879-09bfd8a9d59d1f41b6f4.js1
-rw-r--r--out/_next/static/chunks/911-811443f68e27e1fd4f52.js1
-rw-r--r--out/_next/static/chunks/b5f2ed29-b8c45246e6f61610d91f.js1
-rw-r--r--out/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js1
-rw-r--r--out/_next/static/chunks/fb7d5399-9c00dff9225b87a317ed.js1
-rw-r--r--out/_next/static/chunks/fb7d5399-b53d39280eb7028fd5fb.js1
-rw-r--r--out/_next/static/chunks/framework-2f612445bd50b211f15a.js1
-rw-r--r--out/_next/static/chunks/framework-a62d654bd9699da79f2a.js1
-rw-r--r--out/_next/static/chunks/main-80dde85f3cea1551bba1.js1
-rw-r--r--out/_next/static/chunks/main-965b0767a8d0eaf0c110.js1
-rw-r--r--out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js1
-rw-r--r--out/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js1
-rw-r--r--out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js1
-rw-r--r--out/_next/static/chunks/pages/index-9ebad2ac6fcc0c57103b.js1
-rw-r--r--out/_next/static/chunks/webpack-97b7769aa68ab46953a1.js (renamed from out/_next/static/chunks/webpack-96298ddac7773fa5ecad.js)2
-rw-r--r--out/_next/static/css/9aeb688eb5e47ce218d8.css1
-rw-r--r--out/_next/static/css/bdf775d76e641698f02f.css1
-rw-r--r--out/_next/static/media/KaTeX_AMS-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2bin28088 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca528cf9117470a.woff2bin0 -> 28076 bytes
-rw-r--r--out/_next/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9afe7a7c3e32fa.ttf (renamed from out/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf)bin63604 -> 63632 bytes
-rw-r--r--out/_next/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41eea8d05af757.woff (renamed from out/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff)bin33504 -> 33516 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2bin6932 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Bold.7489a2fbfb9bfe70442031a27fb57a21.ttf (renamed from out/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf)bin12336 -> 12368 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a5a43382bb0e4.woff2bin0 -> 6912 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Bold.d757c535a2e5902f1325192d99e0c965.woff (renamed from out/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff)bin7704 -> 7716 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2bin6912 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Regular.7e873d3833eb108a0758be45cd29e907.ttf (renamed from out/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf)bin12316 -> 12344 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94a903d7973395.woff2bin0 -> 6908 bytes
-rw-r--r--out/_next/static/media/KaTeX_Caligraphic-Regular.db074fa22cf224af93d7b2122b1fab93.woff (renamed from out/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff)bin7648 -> 7656 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Bold.354501bac435c3264834b80301089bad.woff (renamed from out/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff)bin13284 -> 13296 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Bold.4c761b3711973ab04edf7ea6f1fbacdc.ttf (renamed from out/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf)bin19552 -> 19584 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Bold.931d67ea207ab37ee693ff155ff4d7a6.woff2bin0 -> 11348 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2bin11344 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Regular.172d3529b26f8cedef6b5ddef7546e02.woff2bin0 -> 11316 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Regular.6fdf0ac577be0ba82a4c9a89b8eef91b.woff (renamed from out/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff)bin13196 -> 13208 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2bin11304 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Fraktur-Regular.ed305b5434865e06ffde7da0d28101af.ttf (renamed from out/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf)bin19544 -> 19572 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Bold.0c3b8929d377c0e9b2f3a9c872e3337b.woff (renamed from out/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff)bin29904 -> 29912 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Bold.39890742bc957b368704509bb2f4163c.woff2bin0 -> 25324 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2bin25336 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Bold.8169508bf58f8bd92ad8a768ede68a18.ttf (renamed from out/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf)bin51304 -> 51336 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-BoldItalic.20f389c4120be058d80a3cd6a2f5a9b9.woff2bin0 -> 16780 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-BoldItalic.428978dc7837d46de0916f266f5a43df.woff (renamed from out/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff)bin19400 -> 19412 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2bin16752 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-BoldItalic.828abcb200061cffbaae1f0498f821a8.ttf (renamed from out/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf)bin32940 -> 32968 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2bin16976 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Italic.fa675e5e4bec9eb250b6a8cac09b189b.ttf (renamed from out/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf)bin33548 -> 33580 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Italic.fd947498bc16392e76c23adf58513fb3.woff (renamed from out/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff)bin19664 -> 19676 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Italic.fe2176f79edaa716e6212cca53949439.woff2bin0 -> 16988 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2bin26252 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Regular.4f35fbcc9ee8614c2bcc8c28314db234.woff (renamed from out/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff)bin30764 -> 30772 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Regular.9eba1d77abcf2aa6e94e823d52be546b.ttf (renamed from out/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf)bin53552 -> 53580 bytes
-rw-r--r--out/_next/static/media/KaTeX_Main-Regular.f650f111a3b890d116f1ba740b7e3de3.woff2bin0 -> 26272 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-BoldItalic.3f07ed67f06c720120cedd0bad5f60e2.woff (renamed from out/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff)bin18656 -> 18668 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2bin16464 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-BoldItalic.bf2d440b3a42ea78a998ccd32eb09d88.ttf (renamed from out/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf)bin31168 -> 31196 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-BoldItalic.dcbcbd93bac0470b462db6f9708a658c.woff2bin0 -> 16400 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-Italic.6d3d25f4820d0da8f01fa3d2c7cbb8c2.woff2bin0 -> 16440 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-Italic.8a5f936332e8028c7278a3a25db00925.ttf (renamed from out/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf)bin31276 -> 31308 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-Italic.96759856b4e70f3a83385d07e0d33b03.woff (renamed from out/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff)bin18736 -> 18748 bytes
-rw-r--r--out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2bin16444 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2bin12172 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Bold.5b49f4993ae22d7975b413caed1a4c01.ttf (renamed from out/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf)bin24472 -> 24504 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Bold.95591a929f0d32aa282a90ba5acf81f0.woff2bin0 -> 12216 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c388cf91b8ad51.woff (renamed from out/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff)bin14396 -> 14408 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2bin11956 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637280a90a3434b.woff2bin0 -> 12028 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8af9e11cc5a68.woff (renamed from out/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff)bin14100 -> 14112 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Italic.b257a18c016f37ee45430f59757a0db9.ttf (renamed from out/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf)bin22332 -> 22364 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Regular.02271ec5cb9f5b4588ac53d7efbe6de8.woff (renamed from out/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff)bin12296 -> 12316 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Regular.2f7bc363fc5424ebda5903f74c404a99.ttf (renamed from out/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf)bin19408 -> 19436 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2bin10368 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c029b09b917782.woff2bin0 -> 10344 bytes
-rw-r--r--out/_next/static/media/KaTeX_Script-Regular.073b3402d036714b43709614d1da717a.woff (renamed from out/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff)bin10576 -> 10588 bytes
-rw-r--r--out/_next/static/media/KaTeX_Script-Regular.c81d1b2a4b75d3eded6059a210910a6b.woff2bin0 -> 9644 bytes
-rw-r--r--out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2bin9620 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Script-Regular.fc9ba5249878cd8f8d885c1f42b0f43d.ttf (renamed from out/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf)bin16620 -> 16648 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size1-Regular.0108e89c9003e8c14ea3c4e99b09653e.woff (renamed from out/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff)bin6484 -> 6496 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2bin5420 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size1-Regular.6de7d4b539221a49e9e241b734653ecf.ttf (renamed from out/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf)bin12200 -> 12228 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size1-Regular.6eec866c69313624be6061a5c86f0944.woff2bin0 -> 5468 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2bin5192 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size2-Regular.2960900c4f271311eb36d175a209aa0a.woff2bin0 -> 5208 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size2-Regular.3a99e70aee4076660d38b312c7cac2f9.woff (renamed from out/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff)bin6180 -> 6188 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size2-Regular.57f5c1837853986ea1dbadbb8f4f6074.ttf (renamed from out/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf)bin11480 -> 11508 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size3-Regular.7947224e8a9914fa332b16515176ce0d.woff (renamed from out/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff)bin4412 -> 4420 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size3-Regular.8d6b6822586eea3d3b2076d171808949.ttf (renamed from out/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf)bin7560 -> 7588 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2bin3612 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size3-Regular.e1951519f6f0596f735635e962d5b82c.woff2bin0 -> 3624 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size4-Regular.4ad7c7e8bb8d10a34bb7c4bb567cef92.ttf (renamed from out/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf)bin10336 -> 10364 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2bin4888 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size4-Regular.aeffd8025cba3647f1a6c07f222d985e.woff (renamed from out/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff)bin5972 -> 5980 bytes
-rw-r--r--out/_next/static/media/KaTeX_Size4-Regular.e418bf257af1052628d8c981d158674c.woff2bin0 -> 4928 bytes
-rw-r--r--out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2bin13552 -> 0 bytes
-rw-r--r--out/_next/static/media/KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7cf3364d4d4555.woff (renamed from out/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff)bin16016 -> 16028 bytes
-rw-r--r--out/_next/static/media/KaTeX_Typewriter-Regular.c295e7f71970f03c0549228b1c18120a.woff2bin0 -> 13568 bytes
-rw-r--r--out/_next/static/media/KaTeX_Typewriter-Regular.c5c02d763c89380dcb4ed359e15d0897.ttf (renamed from out/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf)bin27528 -> 27556 bytes
-rw-r--r--out/index.html2
101 files changed, 12 insertions, 12 deletions
diff --git a/out/404.html b/out/404.html
index ed3af32..b44124b 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/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-96298ddac7773fa5ecad.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-965b0767a8d0eaf0c110.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js" defer=""></script><script src="/_next/static/chunks/pages/_error-ea939aab753d9e9db3bd.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_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":"Pwq1CsSy3iH9VqD4549T8","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/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-97b7769aa68ab46953a1.js" defer=""></script><script src="/_next/static/chunks/framework-a62d654bd9699da79f2a.js" defer=""></script><script src="/_next/static/chunks/main-80dde85f3cea1551bba1.js" defer=""></script><script src="/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js" defer=""></script><script src="/_next/static/chunks/pages/_error-ea939aab753d9e9db3bd.js" defer=""></script><script src="/_next/static/8cne445bLE-kLSJ63BF1j/_buildManifest.js" defer=""></script><script src="/_next/static/8cne445bLE-kLSJ63BF1j/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 8u9pn4">: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 1jqlf9g">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;}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":"8cne445bLE-kLSJ63BF1j","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file
diff --git a/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js b/out/_next/static/8cne445bLE-kLSJ63BF1j/_buildManifest.js
index 97179fa..46ac6cd 100644
--- a/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js
+++ b/out/_next/static/8cne445bLE-kLSJ63BF1j/_buildManifest.js
@@ -1 +1 @@
-self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-b53d39280eb7028fd5fb.js","static/chunks/17007de1-7d8b9c17ee7cc8107af3.js","static/chunks/252f366e-54a484ebfe8fe95dfdbb.js","static/chunks/95b64a6e-860b8751a48619de0c76.js","static/chunks/0c428ae2-753f1ebbec24c403674c.js","static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js","static/chunks/b5f2ed29-c14b12daa385c4cc7854.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/9aeb688eb5e47ce218d8.css","static/chunks/911-811443f68e27e1fd4f52.js","static/chunks/pages/index-8162019a78766f0a3f9d.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file
+self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-9c00dff9225b87a317ed.js","static/chunks/17007de1-7d8b9c17ee7cc8107af3.js","static/chunks/252f366e-54a484ebfe8fe95dfdbb.js","static/chunks/95b64a6e-860b8751a48619de0c76.js","static/chunks/0c428ae2-753f1ebbec24c403674c.js","static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js","static/chunks/b5f2ed29-b8c45246e6f61610d91f.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/bdf775d76e641698f02f.css","static/chunks/879-09bfd8a9d59d1f41b6f4.js","static/chunks/pages/index-9ebad2ac6fcc0c57103b.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file
diff --git a/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js b/out/_next/static/8cne445bLE-kLSJ63BF1j/_ssgManifest.js
index 0511aa8..0511aa8 100644
--- a/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js
+++ b/out/_next/static/8cne445bLE-kLSJ63BF1j/_ssgManifest.js
diff --git a/out/_next/static/chunks/879-09bfd8a9d59d1f41b6f4.js b/out/_next/static/chunks/879-09bfd8a9d59d1f41b6f4.js
new file mode 100644
index 0000000..5a5a4f0
--- /dev/null
+++ b/out/_next/static/chunks/879-09bfd8a9d59d1f41b6f4.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[879],{94090:function(e,t,n){"use strict";n.d(t,{UQ:function(){return A},KF:function(){return N},XE:function(){return M},Qd:function(){return I},Hk:function(){return R}});var r=n(10894),i=n(105),o=n(37496),a=n(44592),s=n(52829),u=n(67294),c=n(40242),l=n(97375);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)}function f(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var h=["onChange","defaultIndex","index","allowMultiple","allowToggle"],p=["isDisabled","isFocusable","id"],m=(0,c.n)(),g=m[0],v=(m[1],m[2]),y=m[3];function b(e){var t=e.onChange,n=e.defaultIndex,r=e.index,i=e.allowMultiple,o=e.allowToggle,s=f(e,h);!function(e){var t=e.index||e.defaultIndex,n=!(0,a.o8)(t)&&!(0,a.kJ)(t)&&e.allowMultiple;(0,a.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,a.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 c=v(),d=(0,u.useState)(-1),p=d[0],m=d[1];(0,l.zq)((function(){m(-1)}));var g=(0,l.Tx)({value:r,defaultValue:function(){return i?null!=n?n:[]:null!=n?n:-1},onChange:t}),y=g[0],b=g[1];return{index:y,setIndex:b,htmlProps:s,getAccordionItemProps:function(e){var t=!1;null!==e&&(t=(0,a.kJ)(y)?y.includes(e):y===e);return{isOpen:t,onChange:function(t){if(null!==e)if(i&&(0,a.kJ)(y)){var n=t?(0,a.jX)(y,e):(0,a.cl)(y,e);b(n)}else t?b(e):o&&b(-1)}}},focusedIndex:p,setFocusedIndex:m,descendants:c}}var E=(0,s.kr)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in `<Accordion />`"}),T=E[0],x=E[1];function _(e){var t=e.isDisabled,n=e.isFocusable,r=e.id,i=f(e,p),o=x(),c=o.getAccordionItemProps,h=o.setFocusedIndex,m=(0,u.useRef)(null),g=(0,l.ZS)(r,"accordion-button","accordion-panel"),v=g[0],b=g[1];!function(e){(0,a.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 E=y({disabled:t&&!n}),T=E.register,_=E.index,w=E.descendants,k=c(-1===_?null:_),C=k.isOpen,A=k.onChange;!function(e){(0,a.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:C,isDisabled:t});var S=(0,u.useCallback)((function(){null==A||A(!C),h(_)}),[_,h,C,A]),O=(0,u.useCallback)((function(e){var t={ArrowDown:function(){var e=w.nextEnabled(_);e&&(0,a.T_)(e.node)},ArrowUp:function(){var e=w.prevEnabled(_);e&&(0,a.T_)(e.node)},Home:function(){var e=w.firstEnabled();e&&(0,a.T_)(e.node)},End:function(){var e=w.lastEnabled();e&&(0,a.T_)(e.node)}}[(0,a.uh)(e)];t&&(e.preventDefault(),t(e))}),[w,_]),D=(0,u.useCallback)((function(){h(_)}),[h,_]),I=(0,u.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),d({},e,{type:"button",ref:(0,s.lq)(T,m,n),id:v,disabled:!!t,"aria-expanded":!!C,"aria-controls":b,onClick:(0,a.v0)(e.onClick,S),onFocus:(0,a.v0)(e.onFocus,D),onKeyDown:(0,a.v0)(e.onKeyDown,O)})}),[v,t,C,S,D,O,b,T]),N=(0,u.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),d({},e,{ref:t,role:"region",id:b,"aria-labelledby":v,hidden:!C})}),[v,C,b]);return{isOpen:C,isDisabled:t,isFocusable:n,onOpen:function(){null==A||A(!0)},onClose:function(){null==A||A(!1)},getButtonProps:I,getPanelProps:N,htmlProps:i}}var w=["children","reduceMotion"],k=["htmlProps","descendants"],C=["htmlProps"],A=(0,i.Gp)((function(e,t){var n=e.children,r=e.reduceMotion,o=f(e,w),s=(0,i.jC)("Accordion",o),c=b((0,i.Lr)(o)),l=c.htmlProps,h=c.descendants,p=f(c,k),m=u.useMemo((function(){return d({},p,{reduceMotion:!!r})}),[p,r]);return u.createElement(g,{value:h},u.createElement(T,{value:m},u.createElement(i.Fo,{value:s},u.createElement(i.m$.div,d({ref:t},l,{className:(0,a.cx)("chakra-accordion",o.className)}),n))))}));a.Ts&&(A.displayName="Accordion");var S=(0,s.kr)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `<AccordionItem />` "}),O=S[0],D=S[1],I=(0,i.Gp)((function(e,t){var n=e.children,r=e.className,o=_(e),s=o.htmlProps,c=f(o,C),l=d({},(0,i.yK)().container,{overflowAnchor:"none"}),h=u.useMemo((function(){return c}),[c]);return u.createElement(O,{value:h},u.createElement(i.m$.div,d({ref:t},s,{className:(0,a.cx)("chakra-accordion__item",r),__css:l}),(0,a.Pu)(n,{isExpanded:!!c.isOpen,isDisabled:!!c.isDisabled})))}));a.Ts&&(I.displayName="AccordionItem");var N=(0,i.Gp)((function(e,t){var n=(0,D().getButtonProps)(e,t),r=d({display:"flex",alignItems:"center",width:"100%",outline:0},(0,i.yK)().button);return u.createElement(i.m$.button,d({},n,{className:(0,a.cx)("chakra-accordion__button",e.className),__css:r}))}));a.Ts&&(N.displayName="AccordionButton");var R=(0,i.Gp)((function(e,t){var n=x().reduceMotion,r=D(),s=r.getPanelProps,c=r.isOpen,l=s(e,t),f=(0,a.cx)("chakra-accordion__panel",e.className),h=(0,i.yK)();n||delete l.hidden;var p=u.createElement(i.m$.div,d({},l,{__css:h.panel,className:f}));return n?p:u.createElement(o.UO,{in:c},p)}));a.Ts&&(R.displayName="AccordionPanel");var M=function(e){var t=D(),n=t.isOpen,o=t.isDisabled,s=x().reduceMotion,c=(0,a.cx)("chakra-accordion__icon",e.className),l=d({opacity:o?.4:1,transform:n?"rotate(-180deg)":void 0,transition:s?void 0:"transform 0.2s",transformOrigin:"center"},(0,i.yK)().icon);return u.createElement(r.JO,d({viewBox:"0 0 24 24","aria-hidden":!0,className:c,__css:l},e),u.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};a.Ts&&(M.displayName="AccordionIcon")},68921:function(e,t,n){"use strict";n.r(t),n.d(t,{Button:function(){return S},ButtonGroup:function(){return x},ButtonSpinner:function(){return w},IconButton:function(){return I},useButtonGroup:function(){return T}});var r=n(97375),i=n(105),o=n(44592),a=n(38554),s=n.n(a),u=n(67294),c=n(52829),l=n(70917),d=n(1358);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 h=["label","thickness","speed","emptyColor","className"],p=(0,l.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),m=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Spinner",e),r=(0,i.Lr)(e),a=r.label,s=void 0===a?"Loading...":a,c=r.thickness,l=void 0===c?"2px":c,m=r.speed,g=void 0===m?"0.45s":m,v=r.emptyColor,y=void 0===v?"transparent":v,b=r.className,E=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,h),T=(0,o.cx)("chakra-spinner",b),x=f({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:y,borderLeftColor:y,animation:p+" "+g+" linear infinite"},n);return u.createElement(i.m$.div,f({ref:t,__css:x,className:T},E),s&&u.createElement(d.TX,null,s))}));function g(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}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)}o.Ts&&(m.displayName="Spinner");var y=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],b=(0,c.kr)({strict:!1,name:"ButtonGroupContext"}),E=b[0],T=b[1],x=(0,i.Gp)((function(e,t){var n=e.size,r=e.colorScheme,a=e.variant,s=e.className,c=e.spacing,l=void 0===c?"0.5rem":c,d=e.isAttached,f=e.isDisabled,h=g(e,y),p=(0,o.cx)("chakra-button__group",s),m=u.useMemo((function(){return{size:n,colorScheme:r,variant:a,isDisabled:f}}),[n,r,a,f]),b={display:"inline-flex"};return b=v({},b,d?{"> *: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:l}}),u.createElement(E,{value:m},u.createElement(i.m$.div,v({ref:t,role:"group",__css:b,className:p},h)))}));o.Ts&&(x.displayName="ButtonGroup");var _=["label","placement","spacing","children","className","__css"],w=function(e){var t=e.label,n=e.placement,r=e.spacing,a=void 0===r?"0.5rem":r,s=e.children,c=void 0===s?u.createElement(m,{color:"currentColor",width:"1em",height:"1em"}):s,l=e.className,d=e.__css,f=g(e,_),h=(0,o.cx)("chakra-button__spinner",l),p="start"===n?"marginEnd":"marginStart",y=u.useMemo((function(){var e;return v(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[p]=t?a:0,e.fontSize="1em",e.lineHeight="normal",e),d)}),[d,t,p,a]);return u.createElement(i.m$.div,v({className:h},f,{__css:y}),c)};o.Ts&&(w.displayName="ButtonSpinner");var k=["children","className"],C=function(e){var t=e.children,n=e.className,r=g(e,k),a=u.isValidElement(t)?u.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=(0,o.cx)("chakra-button__icon",n);return u.createElement(i.m$.span,v({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:s}),a)};o.Ts&&(C.displayName="ButtonIcon");var A=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],S=(0,i.Gp)((function(e,t){var n=T(),a=(0,i.mq)("Button",v({},n,e)),c=(0,i.Lr)(e),l=c.isDisabled,d=void 0===l?null==n?void 0:n.isDisabled:l,f=c.isLoading,h=c.isActive,p=c.isFullWidth,m=c.children,y=c.leftIcon,b=c.rightIcon,E=c.loadingText,x=c.iconSpacing,_=void 0===x?"0.5rem":x,k=c.type,C=c.spinner,S=c.spinnerPlacement,D=void 0===S?"start":S,I=c.className,N=c.as,R=g(c,A),M=u.useMemo((function(){var e,t=s()({},null!=(e=null==a?void 0:a._focus)?e:{},{zIndex:1});return v({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:p?"100%":"auto"},a,!!n&&{_focus:t})}),[a,n,p]),P=function(e){var t=u.useState(!e),n=t[0],r=t[1];return{ref:u.useCallback((function(e){e&&r("BUTTON"===e.tagName)}),[]),type:n?"button":void 0}}(N),L=P.ref,F=P.type,j={rightIcon:b,leftIcon:y,iconSpacing:_,children:m};return u.createElement(i.m$.button,v({disabled:d||f,ref:(0,r.qq)(t,L),as:N,type:null!=k?k:F,"data-active":(0,o.PB)(h),"data-loading":(0,o.PB)(f),__css:M,className:(0,o.cx)("chakra-button",I)},R),f&&"start"===D&&u.createElement(w,{className:"chakra-button__spinner--start",label:E,placement:"start",spacing:_},C),f?E||u.createElement(i.m$.span,{opacity:0},u.createElement(O,j)):u.createElement(O,j),f&&"end"===D&&u.createElement(w,{className:"chakra-button__spinner--end",label:E,placement:"end",spacing:_},C))}));function O(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,i=e.iconSpacing;return u.createElement(u.Fragment,null,t&&u.createElement(C,{marginEnd:i},t),r,n&&u.createElement(C,{marginStart:i},n))}o.Ts&&(S.displayName="Button");var D=["icon","children","isRound","aria-label"],I=(0,i.Gp)((function(e,t){var n=e.icon,r=e.children,i=e.isRound,o=e["aria-label"],a=g(e,D),s=n||r,c=u.isValidElement(s)?u.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return u.createElement(S,v({padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o},a),c)}));o.Ts&&(I.displayName="IconButton")},84746:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(10894),i=n(105),o=n(44592),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=["children","isDisabled","__css"],c=function(e){return a.createElement(r.JO,s({focusable:"false","aria-hidden":!0},e),a.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"}))},l=(0,i.Gp)((function(e,t){var n=(0,i.mq)("CloseButton",e),r=(0,i.Lr)(e),o=r.children,l=r.isDisabled,d=r.__css,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,u);return a.createElement(i.m$.button,s({type:"button","aria-label":"Close",ref:t,disabled:l,__css:s({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,d)},f),o||a.createElement(c,{width:"1em",height:"1em"}))}));o.Ts&&(l.displayName="CloseButton")},40242:function(e,t,n){"use strict";n.d(t,{n:function(){return p}});var r=n(52829),i=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)}function a(e){return e.sort((function(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,l=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=a(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach((function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,t){return e.index-t.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(t)}))},this.next=function(t,n){void 0===n&&(n=!0);var r=s(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(i)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=u(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=a(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var i=o({node:t,index:-1},n);e.descendants.set(t,i),e.assignIndex(r)}}};var d=(0,r.kr)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),f=d[0],h=d[1];function p(){return[f,function(){return h()},function(){return function(){var e=(0,i.useRef)(new l);return c((function(){return function(){return e.current.destroy()}})),e.current}()},function(e){return function(e){var t=h(),n=(0,i.useState)(-1),o=n[0],a=n[1],s=(0,i.useRef)(null);c((function(){return function(){s.current&&t.unregister(s.current)}}),[]),c((function(){if(s.current){var e=Number(s.current.dataset.index);o==e||Number.isNaN(e)||a(e)}}));var u=e?t.register(e):t.register;return{descendants:t,index:o,enabledIndex:t.enabledIndexOf(s.current),register:(0,r.lq)(u,s)}}(e)}]}},79762:function(e,t,n){"use strict";n.r(t),n.d(t,{FormControl:function(){return g},FormErrorIcon:function(){return _},FormErrorMessage:function(){return x},FormHelperText:function(){return v},FormLabel:function(){return k},RequiredIndicator:function(){return C},useFormControl:function(){return E},useFormControlContext:function(){return m},useFormControlProps:function(){return T}});var r=n(97375),i=n(105),o=n(44592),a=n(52829),s=n(67294),u=n(10894);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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=["id","isRequired","isInvalid","isDisabled","isReadOnly"],f=["getRootProps","htmlProps"],h=(0,a.kr)({strict:!1,name:"FormControlContext"}),p=h[0],m=h[1];var g=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Form",e),u=function(e){var t=e.id,n=e.isRequired,i=e.isInvalid,u=e.isDisabled,f=e.isReadOnly,h=l(e,d),p=(0,r.Me)(),m=t||"field-"+p,g=m+"-label",v=m+"-feedback",y=m+"-helptext",b=s.useState(!1),E=b[0],T=b[1],x=s.useState(!1),_=x[0],w=x[1],k=(0,r.kt)(),C=k[0],A=k[1],S=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:y},e,{ref:(0,a.lq)(t,(function(e){e&&w(!0)}))})}),[y]),O=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,o.PB)(C),"data-disabled":(0,o.PB)(u),"data-invalid":(0,o.PB)(i),"data-readonly":(0,o.PB)(f),id:null!=(n=e.id)?n:g,htmlFor:null!=(r=e.htmlFor)?r:m})}),[m,u,C,i,f,g]),D=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:v},e,{ref:(0,a.lq)(t,(function(e){e&&T(!0)})),"aria-live":"polite"})}),[v]),I=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,h,{ref:t,role:"group"})}),[h]),N=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||"*"})}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!f,isDisabled:!!u,isFocused:!!C,onFocus:A.on,onBlur:A.off,hasFeedbackText:E,setHasFeedbackText:T,hasHelpText:_,setHasHelpText:w,id:m,labelId:g,feedbackId:v,helpTextId:y,htmlProps:h,getHelpTextProps:S,getErrorMessageProps:D,getRootProps:I,getLabelProps:O,getRequiredIndicatorProps:N}}((0,i.Lr)(e)),h=u.getRootProps;u.htmlProps;var m=l(u,f),g=(0,o.cx)("chakra-form-control",e.className),v=s.useMemo((function(){return m}),[m]);return s.createElement(p,{value:v},s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,c({},h({},t),{className:g,__css:n.container}))))}));o.Ts&&(g.displayName="FormControl");var v=(0,i.Gp)((function(e,t){var n=m(),r=(0,i.yK)(),a=(0,o.cx)("chakra-form__helper-text",e.className);return s.createElement(i.m$.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));o.Ts&&(v.displayName="FormHelperText");var y=["isDisabled","isInvalid","isReadOnly","isRequired"],b=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function E(e){var t=T(e),n=t.isDisabled,r=t.isInvalid,i=t.isReadOnly,a=t.isRequired;return c({},l(t,y),{disabled:n,readOnly:i,required:a,"aria-invalid":(0,o.Qm)(r),"aria-required":(0,o.Qm)(a),"aria-readonly":(0,o.Qm)(i)})}function T(e){var t,n,r,i=m(),a=e.id,s=e.disabled,u=e.readOnly,d=e.required,f=e.isRequired,h=e.isInvalid,p=e.isReadOnly,g=e.isDisabled,v=e.onFocus,y=e.onBlur,E=l(e,b),T=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=i&&i.hasFeedbackText&&null!=i&&i.isInvalid&&T.push(i.feedbackId),null!=i&&i.hasHelpText&&T.push(i.helpTextId),c({},E,{"aria-describedby":T.join(" ")||void 0,id:null!=a?a:null==i?void 0:i.id,isDisabled:null!=(t=null!=s?s:g)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=u?u:p)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(r=null!=d?d:f)?r:null==i?void 0:i.isRequired,isInvalid:null!=h?h:null==i?void 0:i.isInvalid,onFocus:(0,o.v0)(null==i?void 0:i.onFocus,v),onBlur:(0,o.v0)(null==i?void 0:i.onBlur,y)})}var x=(0,i.Gp)((function(e,t){var n=(0,i.jC)("FormError",e),r=(0,i.Lr)(e),a=m();return null!=a&&a.isInvalid?s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,c({},null==a?void 0:a.getErrorMessageProps(r,t),{className:(0,o.cx)("chakra-form__error-message",e.className),__css:c({display:"flex",alignItems:"center"},n.text)}))):null}));o.Ts&&(x.displayName="FormErrorMessage");var _=(0,i.Gp)((function(e,t){var n=(0,i.yK)(),r=m();if(null==r||!r.isInvalid)return null;var a=(0,o.cx)("chakra-form__error-icon",e.className);return s.createElement(u.ZP,c({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:a}),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"}))}));o.Ts&&(_.displayName="FormErrorIcon");var w=["className","children","requiredIndicator"],k=(0,i.Gp)((function(e,t){var n,r=(0,i.mq)("FormLabel",e),a=(0,i.Lr)(e);a.className;var u=a.children,d=a.requiredIndicator,f=void 0===d?s.createElement(C,null):d,h=l(a,w),p=m(),g=null!=(n=null==p?void 0:p.getLabelProps(h,t))?n:c({ref:t},h);return s.createElement(i.m$.label,c({},g,{className:(0,o.cx)("chakra-form__label",a.className),__css:c({display:"block",textAlign:"start"},r)}),u,null!=p&&p.isRequired?f:null)}));o.Ts&&(k.displayName="FormLabel");var C=(0,i.Gp)((function(e,t){var n=m(),r=(0,i.yK)();if(null==n||!n.isRequired)return null;var a=(0,o.cx)("chakra-form__required-indicator",e.className);return s.createElement(i.m$.span,c({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:r.requiredIndicator,className:a}))}));o.Ts&&(C.displayName="RequiredIndicator")},94998:function(e,t,n){"use strict";n.d(t,{h:function(){return r.c}});n(67294);var r=n(78698)},10894:function(e,t,n){"use strict";n.d(t,{JO:function(){return c},ZP:function(){return l}});var r=n(105),i=n(44592),o=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=["as","viewBox","color","focusable","children","className","__css"],u={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:"currentColor",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"})),viewBox:"0 0 24 24"},c=(0,r.Gp)((function(e,t){var n=e.as,c=e.viewBox,l=e.color,d=void 0===l?"currentColor":l,f=e.focusable,h=void 0!==f&&f,p=e.children,m=e.className,g=e.__css,v=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,s),y={ref:t,focusable:h,className:(0,i.cx)("chakra-icon",m),__css:a({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:d},g)},b=null!=c?c:u.viewBox;if(n&&"string"!==typeof n)return o.createElement(r.m$.svg,a({as:n},y,v));var E=null!=p?p:u.path;return o.createElement(r.m$.svg,a({verticalAlign:"middle",viewBox:b},y,v),E)}));i.Ts&&(c.displayName="Icon");var l=c},52072:function(e,t,n){"use strict";n.r(t),n.d(t,{AddIcon:function(){return v},ArrowBackIcon:function(){return M},ArrowDownIcon:function(){return j},ArrowForwardIcon:function(){return P},ArrowLeftIcon:function(){return q},ArrowRightIcon:function(){return K},ArrowUpDownIcon:function(){return F},ArrowUpIcon:function(){return L},AtSignIcon:function(){return W},AttachmentIcon:function(){return $},BellIcon:function(){return se},CalendarIcon:function(){return U},ChatIcon:function(){return V},CheckCircleIcon:function(){return E},CheckIcon:function(){return he},ChevronDownIcon:function(){return N},ChevronLeftIcon:function(){return D},ChevronRightIcon:function(){return I},ChevronUpIcon:function(){return R},CloseIcon:function(){return te},CopyIcon:function(){return f},DeleteIcon:function(){return C},DownloadIcon:function(){return k},DragHandleIcon:function(){return J},EditIcon:function(){return O},EmailIcon:function(){return X},ExternalLinkIcon:function(){return H},HamburgerIcon:function(){return me},Icon:function(){return l},InfoIcon:function(){return ue},InfoOutlineIcon:function(){return ae},LinkIcon:function(){return B},LockIcon:function(){return T},MinusIcon:function(){return pe},MoonIcon:function(){return m},NotAllowedIcon:function(){return re},PhoneIcon:function(){return Q},PlusSquareIcon:function(){return z},QuestionIcon:function(){return ce},QuestionOutlineIcon:function(){return le},RepeatClockIcon:function(){return S},RepeatIcon:function(){return A},Search2Icon:function(){return p},SearchIcon:function(){return h},SettingsIcon:function(){return b},SmallAddIcon:function(){return y},SmallCloseIcon:function(){return ne},SpinnerIcon:function(){return ee},StarIcon:function(){return Y},SunIcon:function(){return g},TimeIcon:function(){return G},TriangleDownIcon:function(){return ie},TriangleUpIcon:function(){return oe},UnlockIcon:function(){return x},UpDownIcon:function(){return Z},ViewIcon:function(){return _},ViewOffIcon:function(){return w},WarningIcon:function(){return de},WarningTwoIcon:function(){return fe},createIcon:function(){return d}});var r=n(105);n(38554),n(9839);var i=!1;!function(e){var t=new WeakMap}((function(e,t,n,r){var i="string"===typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}));"undefined"===typeof window||!window.document||window.document.createElement;["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 o(e){var t;return function(){if(e){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t=e.apply(this,r),e=null}return t}}o((function(e){return function(){e.condition,e.message}})),o((function(e){return function(){e.condition,e.message}}));Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;Object.freeze(["base","sm","md","lg","xl","2xl"]);var 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=["as","viewBox","color","focusable","children","className","__css"],c={path:a.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},a.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"}),a.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"}),a.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},l=(0,r.Gp)((function(e,t){var n=e.as,i=e.viewBox,o=e.color,l=void 0===o?"currentColor":o,d=e.focusable,f=void 0!==d&&d,h=e.children,p=e.className,m=e.__css,g=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,u),v={ref:t,focusable:f,className:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}("chakra-icon",p),__css:s({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l},m)},y=null!=i?i:c.viewBox;if(n&&"string"!==typeof n)return a.createElement(r.m$.svg,s({as:n},v,g));var b=null!=h?h:c.path;return a.createElement(r.m$.svg,s({verticalAlign:"middle",viewBox:y},v,g),b)}));function d(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,i=e.d,o=e.path,u=(e.displayName,e.defaultProps),c=void 0===u?{}:u,d=(0,r.Gp)((function(e,t){return a.createElement(l,s({ref:t,viewBox:n},c,e),null!=o?o:a.createElement("path",{fill:"currentColor",d:i}))}));return d}var f=d({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"}),h=d({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"}),p=d({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"}),m=d({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"}),g=d({displayName:"SunIcon",path:a.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},a.createElement("circle",{cx:"12",cy:"12",r:"5"}),a.createElement("path",{d:"M12 1v2"}),a.createElement("path",{d:"M12 21v2"}),a.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),a.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),a.createElement("path",{d:"M1 12h2"}),a.createElement("path",{d:"M21 12h2"}),a.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),a.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))}),v=d({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"}),y=d({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:a.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"})}),b=d({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"}),E=d({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=d({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"}),x=d({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"}),_=d({displayName:"ViewIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),w=d({displayName:"ViewOffIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),k=d({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"}),C=d({displayName:"DeleteIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}))}),A=d({displayName:"RepeatIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),S=d({displayName:"RepeatClockIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),O=d({displayName:"EditIcon",path:a.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},a.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),a.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),D=d({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),I=d({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),N=d({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),R=d({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),M=d({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),P=d({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),L=d({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),F=d({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"}),j=d({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),H=d({displayName:"ExternalLinkIcon",path:a.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},a.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),a.createElement("path",{d:"M15 3h6v6"}),a.createElement("path",{d:"M10 14L21 3"}))}),B=d({displayName:"LinkIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),z=d({displayName:"PlusSquareIcon",path:a.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},a.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),a.createElement("path",{d:"M12 8v8"}),a.createElement("path",{d:"M8 12h8"}))}),U=d({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"}),V=d({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"}),G=d({displayName:"TimeIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),K=d({displayName:"ArrowRightIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),q=d({displayName:"ArrowLeftIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),W=d({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"}),$=d({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"}),Z=d({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"}),Y=d({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"}),X=d({displayName:"EmailIcon",path:a.createElement("g",{fill:"currentColor"},a.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"}),a.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"}))}),Q=d({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"}),J=d({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"}),ee=d({displayName:"SpinnerIcon",path:a.createElement(a.Fragment,null,a.createElement("defs",null,a.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},a.createElement("stop",{stopColor:"currentColor",offset:"0%"}),a.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),a.createElement("g",{transform:"translate(2)",fill:"none"},a.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),a.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),a.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),te=d({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"}),ne=d({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:a.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"})}),re=d({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"}),ie=d({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"}),oe=d({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"}),ae=d({displayName:"InfoOutlineIcon",path:a.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},a.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),a.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),a.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),se=d({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"}),ue=d({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"}),ce=d({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"}),le=d({displayName:"QuestionOutlineIcon",path:a.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},a.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"}),a.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"}),a.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),de=d({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"}),fe=d({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"}),he=d({viewBox:"0 0 14 14",path:a.createElement("g",{fill:"currentColor"},a.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),pe=d({displayName:"MinusIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))}),me=d({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"})},4612:function(e,t,n){"use strict";n.r(t),n.d(t,{Input:function(){return c},InputAddon:function(){return p},InputGroup:function(){return y},InputLeftAddon:function(){return m},InputLeftElement:function(){return w},InputRightAddon:function(){return g},InputRightElement:function(){return k}});var r=n(79762),i=n(105),o=n(44592),a=n(67294),s=n(52829);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.Gp)((function(e,t){var n=(0,i.jC)("Input",e),s=(0,i.Lr)(e),c=(0,r.useFormControl)(s),l=(0,o.cx)("chakra-input",e.className);return a.createElement(i.m$.input,u({},c,{__css:n.field,ref:t,className:l}))}));function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}o.Ts&&(c.displayName="Input"),c.id="Input";var d=["placement"],f={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},h=(0,i.m$)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),p=(0,i.Gp)((function(e,t){var n,r=e.placement,o=void 0===r?"left":r,s=l(e,d),c=null!=(n=f[o])?n:{},p=(0,i.yK)();return a.createElement(h,u({ref:t},s,{__css:u({},p.addon,c)}))}));o.Ts&&(p.displayName="InputAddon");var m=(0,i.Gp)((function(e,t){return a.createElement(p,u({ref:t,placement:"left"},e,{className:(0,o.cx)("chakra-input__left-addon",e.className)}))}));o.Ts&&(m.displayName="InputLeftAddon"),m.id="InputLeftAddon";var g=(0,i.Gp)((function(e,t){return a.createElement(p,u({ref:t,placement:"right"},e,{className:(0,o.cx)("chakra-input__right-addon",e.className)}))}));o.Ts&&(g.displayName="InputRightAddon"),g.id="InputRightAddon";var v=["children","className"],y=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Input",e),r=(0,i.Lr)(e),c=r.children,d=r.className,f=l(r,v),h=(0,o.cx)("chakra-input__group",d),p={},m=(0,s.WR)(c),g=n.field;m.forEach((function(e){if(n){var t,r;if(g&&"InputLeftElement"===e.type.id)p.paddingStart=null!=(t=g.height)?t:g.h;if(g&&"InputRightElement"===e.type.id)p.paddingEnd=null!=(r=g.height)?r:g.h;"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0)}}));var y=m.map((function(t){var n,r,i=(0,o.YU)({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,i):a.cloneElement(t,Object.assign(i,p,t.props))}));return a.createElement(i.m$.div,u({className:h,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},f),a.createElement(i.Fo,{value:n},y))}));o.Ts&&(y.displayName="InputGroup");var b=["placement"],E=["className"],T=["className"],x=(0,i.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),_=(0,i.Gp)((function(e,t){var n,r,o,s=e.placement,c=void 0===s?"left":s,d=l(e,b),f=(0,i.yK)().field,h=((o={})["left"===c?"insetStart":"insetEnd"]="0",o.width=null!=(n=null==f?void 0:f.height)?n:null==f?void 0:f.h,o.height=null!=(r=null==f?void 0:f.height)?r:null==f?void 0:f.h,o.fontSize=null==f?void 0:f.fontSize,o);return a.createElement(x,u({ref:t,__css:h},d))}));_.id="InputElement",o.Ts&&(_.displayName="InputElement");var w=(0,i.Gp)((function(e,t){var n=e.className,r=l(e,E),i=(0,o.cx)("chakra-input__left-element",n);return a.createElement(_,u({ref:t,placement:"left",className:i},r))}));w.id="InputLeftElement",o.Ts&&(w.displayName="InputLeftElement");var k=(0,i.Gp)((function(e,t){var n=e.className,r=l(e,T),i=(0,o.cx)("chakra-input__right-element",n);return a.createElement(_,u({ref:t,placement:"right",className:i},r))}));k.id="InputRightElement",o.Ts&&(k.displayName="InputRightElement")},68527:function(e,t,n){"use strict";n.r(t),n.d(t,{AbsoluteCenter:function(){return _},AspectRatio:function(){return f},Badge:function(){return p},Box:function(){return v},Center:function(){return T},Circle:function(){return b},Code:function(){return k},Container:function(){return A},Divider:function(){return D},Flex:function(){return N},Grid:function(){return P},GridItem:function(){return F},HStack:function(){return ce},Heading:function(){return H},Kbd:function(){return z},Link:function(){return V},LinkBox:function(){return Ee},LinkOverlay:function(){return be},List:function(){return Y},ListIcon:function(){return ee},ListItem:function(){return J},OrderedList:function(){return X},SimpleGrid:function(){return ne},Spacer:function(){return re},Square:function(){return y},Stack:function(){return ue},StackDivider:function(){return ae},StackItem:function(){return se},Text:function(){return fe},UnorderedList:function(){return Q},VStack:function(){return le},Wrap:function(){return me},WrapItem:function(){return ge}});var r=n(105),i=n(94244),o=n(44592),a=n(67294),s=n(10894),u=n(52829);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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=["ratio","children","className"],f=(0,r.Gp)((function(e,t){var n=e.ratio,i=void 0===n?4/3:n,s=e.children,u=e.className,f=l(e,d),h=a.Children.only(s),p=(0,o.cx)("chakra-aspect-ratio",u);return a.createElement(r.m$.div,c({ref:t,position:"relative",className:p,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.XQ)(i,(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"}}},f),h)}));o.Ts&&(f.displayName="AspectRatio");var h=["className"],p=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Badge",e),i=(0,r.Lr)(e);i.className;var s=l(i,h);return a.createElement(r.m$.span,c({ref:t,className:(0,o.cx)("chakra-badge",e.className)},s,{__css:c({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));o.Ts&&(p.displayName="Badge");var m=["size","centerContent"],g=["size"],v=(0,r.m$)("div");o.Ts&&(v.displayName="Box");var y=(0,r.Gp)((function(e,t){var n=e.size,r=e.centerContent,i=void 0===r||r,o=l(e,m),s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(v,c({ref:t,boxSize:n,__css:c({},s,{flexShrink:0,flexGrow:0})},o))}));o.Ts&&(y.displayName="Square");var b=(0,r.Gp)((function(e,t){var n=e.size,r=l(e,g);return a.createElement(y,c({size:n,ref:t,borderRadius:"9999px"},r))}));o.Ts&&(b.displayName="Circle");var E=["axis"],T=(0,r.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});o.Ts&&(T.displayName="Center");var x={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},_=(0,r.Gp)((function(e,t){var n=e.axis,i=void 0===n?"both":n,o=l(e,E);return a.createElement(r.m$.div,c({ref:t,__css:x[i]},o,{position:"absolute"}))})),w=["className"],k=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Code",e),i=(0,r.Lr)(e);i.className;var s=l(i,w);return a.createElement(r.m$.code,c({ref:t,className:(0,o.cx)("chakra-code",e.className)},s,{__css:c({display:"inline-block"},n)}))}));o.Ts&&(k.displayName="Code");var C=["className","centerContent"],A=(0,r.Gp)((function(e,t){var n=(0,r.Lr)(e),i=n.className,s=n.centerContent,u=l(n,C),d=(0,r.mq)("Container",e);return a.createElement(r.m$.div,c({ref:t,className:(0,o.cx)("chakra-container",i)},u,{__css:c({},d,s&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));o.Ts&&(A.displayName="Container");var S=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],O=["className","orientation","__css"],D=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Divider",e),i=n.borderLeftWidth,s=n.borderBottomWidth,u=n.borderTopWidth,d=n.borderRightWidth,f=n.borderWidth,h=n.borderStyle,p=n.borderColor,m=l(n,S),g=(0,r.Lr)(e),v=g.className,y=g.orientation,b=void 0===y?"horizontal":y,E=g.__css,T=l(g,O),x={vertical:{borderLeftWidth:i||d||f||"1px",height:"100%"},horizontal:{borderBottomWidth:s||u||f||"1px",width:"100%"}};return a.createElement(r.m$.hr,c({ref:t,"aria-orientation":b},T,{__css:c({},m,{border:"0",borderColor:p,borderStyle:h},x[b],E),className:(0,o.cx)("chakra-divider",v)}))}));o.Ts&&(D.displayName="Divider");var I=["direction","align","justify","wrap","basis","grow","shrink"],N=(0,r.Gp)((function(e,t){var n=e.direction,i=e.align,o=e.justify,s=e.wrap,u=e.basis,d=e.grow,f=e.shrink,h=l(e,I),p={display:"flex",flexDirection:n,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:u,flexGrow:d,flexShrink:f};return a.createElement(r.m$.div,c({ref:t,__css:p},h))}));o.Ts&&(N.displayName="Flex");var R=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],M=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],P=(0,r.Gp)((function(e,t){var n=e.area,i=e.templateAreas,o=e.gap,s=e.rowGap,u=e.columnGap,d=e.column,f=e.row,h=e.autoFlow,p=e.autoRows,m=e.templateRows,g=e.autoColumns,v=e.templateColumns,y=l(e,R),b={display:"grid",gridArea:n,gridTemplateAreas:i,gridGap:o,gridRowGap:s,gridColumnGap:u,gridAutoColumns:g,gridColumn:d,gridRow:f,gridAutoFlow:h,gridAutoRows:p,gridTemplateRows:m,gridTemplateColumns:v};return a.createElement(r.m$.div,c({ref:t,__css:b},y))}));function L(e){return(0,o.XQ)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}o.Ts&&(P.displayName="Grid");var F=(0,r.Gp)((function(e,t){var n=e.area,i=e.colSpan,s=e.colStart,u=e.colEnd,d=e.rowEnd,f=e.rowSpan,h=e.rowStart,p=l(e,M),m=(0,o.YU)({gridArea:n,gridColumn:L(i),gridRow:L(f),gridColumnStart:s,gridColumnEnd:u,gridRowStart:h,gridRowEnd:d});return a.createElement(r.m$.div,c({ref:t,__css:m},p))})),j=["className"],H=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Heading",e),i=(0,r.Lr)(e);i.className;var s=l(i,j);return a.createElement(r.m$.h2,c({ref:t,className:(0,o.cx)("chakra-heading",e.className)},s,{__css:n}))}));o.Ts&&(H.displayName="Heading");var B=["className"],z=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Kbd",e),i=(0,r.Lr)(e),s=i.className,u=l(i,B);return a.createElement(r.m$.kbd,c({ref:t,className:(0,o.cx)("chakra-kbd",s)},u,{__css:c({fontFamily:"mono"},n)}))}));o.Ts&&(z.displayName="Kbd");var U=["className","isExternal"],V=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Link",e),i=(0,r.Lr)(e),s=i.className,u=i.isExternal,d=l(i,U);return a.createElement(r.m$.a,c({target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,ref:t,className:(0,o.cx)("chakra-link",s)},d,{__css:n}))}));o.Ts&&(V.displayName="Link");var G=["children","styleType","stylePosition","spacing"],K=["as"],q=["as"],W=(0,u.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),$=W[0],Z=W[1],Y=(0,r.Gp)((function(e,t){var n,i=(0,r.jC)("List",e),o=(0,r.Lr)(e),s=o.children,d=o.styleType,f=void 0===d?"none":d,h=o.stylePosition,p=o.spacing,m=l(o,G),g=(0,u.WR)(s),v=p?((n={})["& > *:not(style) ~ *:not(style)"]={mt:p},n):{};return a.createElement($,{value:i},a.createElement(r.m$.ul,c({ref:t,listStyleType:f,listStylePosition:h,role:"list",__css:c({},i.container,v)},m),g))}));o.Ts&&(Y.displayName="List");var X=(0,r.Gp)((function(e,t){e.as;var n=l(e,K);return a.createElement(Y,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));o.Ts&&(X.displayName="OrderedList");var Q=(0,r.Gp)((function(e,t){e.as;var n=l(e,q);return a.createElement(Y,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));o.Ts&&(Q.displayName="UnorderedList");var J=(0,r.Gp)((function(e,t){var n=Z();return a.createElement(r.m$.li,c({ref:t},e,{__css:n.item}))}));o.Ts&&(J.displayName="ListItem");var ee=(0,r.Gp)((function(e,t){var n=Z();return a.createElement(s.JO,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));o.Ts&&(ee.displayName="ListIcon");var te=["columns","spacingX","spacingY","spacing","minChildWidth"],ne=(0,r.Gp)((function(e,t){var n,r,i=e.columns,s=e.spacingX,u=e.spacingY,d=e.spacing,f=e.minChildWidth,h=l(e,te),p=f?(r=f,(0,o.XQ)(r,(function(e){return(0,o.Ft)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,o.hj)(t)?t+"px":t)+", 1fr))");var t}))):(n=i,(0,o.XQ)(n,(function(e){return(0,o.Ft)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return a.createElement(P,c({ref:t,gap:d,columnGap:s,rowGap:u,templateColumns:p},h))}));o.Ts&&(ne.displayName="SimpleGrid");var re=(0,r.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});o.Ts&&(re.displayName="Spacer");var ie="& > *:not(style) ~ *:not(style)";var oe=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],ae=function(e){return a.createElement(r.m$.div,c({className:"chakra-stack__divider"},e,{__css:c({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})}))},se=function(e){return a.createElement(r.m$.div,c({className:"chakra-stack__item"},e,{__css:c({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},ue=(0,r.Gp)((function(e,t){var n,i=e.isInline,s=e.direction,d=e.align,f=e.justify,h=e.spacing,p=void 0===h?"0.5rem":h,m=e.wrap,g=e.children,v=e.divider,y=e.className,b=e.shouldWrapChildren,E=l(e,oe),T=i?"row":null!=s?s:"column",x=a.useMemo((function(){return function(e){var t,n=e.spacing,r=e.direction,i={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:r})[ie]=(0,o.XQ)(r,(function(e){return i[e]})),t}({direction:T,spacing:p})}),[T,p]),_=a.useMemo((function(){return function(e){var t=e.spacing,n=e.direction,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{"&":(0,o.XQ)(n,(function(e){return r[e]}))}}({spacing:p,direction:T})}),[p,T]),w=!!v,k=!b&&!w,C=(0,u.WR)(g),A=k?C:C.map((function(e,t){var n="undefined"!==typeof e.key?e.key:t,r=t+1===C.length,i=b?a.createElement(se,{key:n},e):e;if(!w)return i;var o=r?null:a.cloneElement(v,{__css:_});return a.createElement(a.Fragment,{key:n},i,o)})),S=(0,o.cx)("chakra-stack",y);return a.createElement(r.m$.div,c({ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:x.flexDirection,flexWrap:m,className:S,__css:w?{}:(n={},n[ie]=x[ie],n)},E),A)}));o.Ts&&(ue.displayName="Stack");var ce=(0,r.Gp)((function(e,t){return a.createElement(ue,c({align:"center"},e,{direction:"row",ref:t}))}));o.Ts&&(ce.displayName="HStack");var le=(0,r.Gp)((function(e,t){return a.createElement(ue,c({align:"center"},e,{direction:"column",ref:t}))}));o.Ts&&(le.displayName="VStack");var de=["className","align","decoration","casing"],fe=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Text",e),i=(0,r.Lr)(e);i.className,i.align,i.decoration,i.casing;var s=l(i,de),u=(0,o.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return a.createElement(r.m$.p,c({ref:t,className:(0,o.cx)("chakra-text",e.className)},u,s,{__css:n}))}));o.Ts&&(fe.displayName="Text");var he=["spacing","children","justify","direction","align","className","shouldWrapChildren"],pe=["className"],me=(0,r.Gp)((function(e,t){var n=e.spacing,s=void 0===n?"0.5rem":n,u=e.children,d=e.justify,f=e.direction,h=e.align,p=e.className,m=e.shouldWrapChildren,g=l(e,he),v=a.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,o.XQ)(s,(function(t){return(0,i.fr)("space",t)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:h,flexDirection:f,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[s,d,h,f]),y=m?a.Children.map(u,(function(e,t){return a.createElement(ge,{key:t},e)})):u;return a.createElement(r.m$.div,c({ref:t,className:(0,o.cx)("chakra-wrap",p)},g),a.createElement(r.m$.ul,{className:"chakra-wrap__list",__css:v},y))}));o.Ts&&(me.displayName="Wrap");var ge=(0,r.Gp)((function(e,t){var n=e.className,i=l(e,pe);return a.createElement(r.m$.li,c({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,o.cx)("chakra-wrap__listitem",n)},i))}));o.Ts&&(ge.displayName="WrapItem");var ve=["isExternal","target","rel","className"],ye=["className"],be=(0,r.Gp)((function(e,t){var n=e.isExternal,i=e.target,s=e.rel,u=e.className,d=l(e,ve);return a.createElement(r.m$.a,c({},d,{ref:t,className:(0,o.cx)("chakra-linkbox__overlay",u),rel:n?"noopener noreferrer":s,target:n?"_blank":i,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}}))})),Ee=(0,r.Gp)((function(e,t){var n=e.className,i=l(e,ye);return a.createElement(r.m$.div,c({ref:t,position:"relative"},i,{className:(0,o.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}}))}))},57324:function(e,t,n){"use strict";n.d(t,{v2:function(){return U},j2:function(){return G},R:function(){return ne},sN:function(){return Z},ii:function(){return X},qy:function(){return W},__:function(){return Q}});var r=n(105),i=n(44592),o=n(99860),a=n(67294),s=n(52829);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=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function l(e){var t=e.target,n=t.tagName,r=t.isContentEditable;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function d(e){void 0===e&&(e={});var t=e,n=t.ref,r=t.isDisabled,o=t.isFocusable,d=t.clickOnEnter,f=void 0===d||d,h=t.clickOnSpace,p=void 0===h||h,m=t.onMouseDown,g=t.onMouseUp,v=t.onClick,y=t.onKeyDown,b=t.onKeyUp,E=t.tabIndex,T=t.onMouseOver,x=t.onMouseLeave,_=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,c),w=a.useState(!0),k=w[0],C=w[1],A=a.useState(!1),S=A[0],O=A[1],D=function(){var e=a.useRef(new Map),t=e.current,n=a.useCallback((function(t,n,r,i){e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)}),[]),r=a.useCallback((function(t,n,r,i){t.removeEventListener(n,r,i),e.current.delete(r)}),[]);return a.useEffect((function(){return function(){t.forEach((function(e,t){r(e.el,e.type,t,e.options)}))}}),[r,t]),{add:n,remove:r}}(),I=k?E:E||0,N=r&&!o,R=a.useCallback((function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==v||v(e)}),[r,v]),M=a.useCallback((function(e){S&&l(e)&&(e.preventDefault(),e.stopPropagation(),O(!1),D.remove(document,"keyup",M,!1))}),[S,D]),P=a.useCallback((function(e){if(null==y||y(e),!(r||e.defaultPrevented||e.metaKey)&&l(e.nativeEvent)&&!k){var t=f&&"Enter"===e.key;if(p&&" "===e.key&&(e.preventDefault(),O(!0)),t)e.preventDefault(),e.currentTarget.click();D.add(document,"keyup",M,!1)}}),[r,k,y,f,p,D,M]),L=a.useCallback((function(e){(null==b||b(e),r||e.defaultPrevented||e.metaKey)||l(e.nativeEvent)&&!k&&p&&" "===e.key&&(e.preventDefault(),O(!1),e.currentTarget.click())}),[p,k,r,b]),F=a.useCallback((function(e){0===e.button&&(O(!1),D.remove(document,"mouseup",F,!1))}),[D]),j=a.useCallback((function(e){if(!(0,i.n_)(e)){if(r)return e.stopPropagation(),void e.preventDefault();k||O(!0),e.currentTarget.focus({preventScroll:!0}),D.add(document,"mouseup",F,!1),null==m||m(e)}}),[r,k,m,D,F]),H=a.useCallback((function(e){(0,i.n_)(e)||(k||O(!1),null==g||g(e))}),[g,k]),B=a.useCallback((function(e){r?e.preventDefault():null==T||T(e)}),[r,T]),z=a.useCallback((function(e){S&&(e.preventDefault(),O(!1)),null==x||x(e)}),[S,x]),U=(0,s.lq)(n,(function(e){e&&"BUTTON"!==e.tagName&&C(!1)}));return u({},_,k?{ref:U,type:"button","aria-disabled":N?void 0:r,disabled:N,onClick:R,onMouseDown:m,onMouseUp:g,onKeyUp:b,onKeyDown:y,onMouseOver:T,onMouseLeave:x}:{ref:U,role:"button","data-active":(0,i.PB)(S),"aria-disabled":r?"true":void 0,tabIndex:N?void 0:I,onClick:R,onMouseDown:j,onMouseUp:H,onKeyUp:L,onKeyDown:P,onMouseOver:B,onMouseLeave:z})}var f=n(40242),h=n(97375),p=n(94998),m=n(66197);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 v(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var y=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],b=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect"],E=["type","isChecked"],T=["children","type","value","defaultValue","onChange"],x=(0,f.n)(),_=x[0],w=x[1],k=x[2],C=x[3],A=(0,s.kr)({strict:!1,name:"MenuContext"}),S=A[0],O=A[1];function D(e){var t;return(0,i.Re)(e)&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function I(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e,r=n.onMouseEnter,o=n.onMouseMove,u=n.onMouseLeave,c=n.onClick,l=n.isDisabled,f=n.isFocusable,p=n.closeOnSelect,m=v(n,b),y=O(),E=y.setFocusedIndex,T=y.focusedIndex,x=y.closeOnSelect,_=y.onClose,w=y.menuRef,k=y.isOpen,A=y.menuId,S=a.useRef(null),I=A+"-menuitem-"+(0,h.Me)(),N=C({disabled:l&&!f}),R=N.index,M=N.register,P=a.useCallback((function(e){null==r||r(e),l||E(R)}),[E,R,l,r]),L=a.useCallback((function(e){null==o||o(e),S.current&&!(0,i.H9)(S.current)&&P(e)}),[P,o]),F=a.useCallback((function(e){null==u||u(e),l||E(-1)}),[E,l,u]),j=a.useCallback((function(e){null==c||c(e),D(e.currentTarget)&&(null!=p?p:x)&&_()}),[_,c,x,p]),H=R===T,B=l&&!f;return(0,h.rf)((function(){k&&(H&&!B&&S.current?(0,i.T_)(S.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):w.current&&!(0,i.H9)(w.current)&&(0,i.T_)(w.current,{preventScroll:!1}))}),[H,B,w,k]),g({},m,d({onClick:j,onMouseEnter:P,onMouseMove:L,onMouseLeave:F,ref:(0,s.lq)(M,S,t),isDisabled:l,isFocusable:f}),{id:I,role:"menuitem",tabIndex:H?0:-1})}var N=["descendants"],R=["children","as"],M=["rootProps"],P=["type"],L=["icon","iconSpacing","command","commandSpacing","children"],F=["icon","iconSpacing"],j=["className","title"],H=["title","children","className"],B=["className","children"],z=["className"],U=function(e){var t=e.children,n=(0,r.jC)("Menu",e),o=function(e){void 0===e&&(e={});var t=e,n=t.id,r=t.closeOnSelect,o=void 0===r||r,s=t.closeOnBlur,u=void 0===s||s,c=t.autoSelect,l=void 0===c||c,d=t.isLazy,f=t.isOpen,b=t.defaultIsOpen,E=t.onClose,T=t.onOpen,x=t.placement,_=void 0===x?"bottom-start":x,w=t.lazyBehavior,C=void 0===w?"unmount":w,A=t.direction,S=t.computePositionOnMount,O=void 0!==S&&S,D=v(t,y),I=a.useRef(null),N=a.useRef(null),R=k(),M=a.useCallback((function(){(0,i.T_)(I.current,{nextTick:!0,selectTextIfInput:!1})}),[]),P=a.useCallback((function(){var e=setTimeout((function(){var e=R.firstEnabled();e&&q(e.index)}));Q.current.add(e)}),[R]),L=a.useCallback((function(){var e=setTimeout((function(){var e=R.lastEnabled();e&&q(e.index)}));Q.current.add(e)}),[R]),F=a.useCallback((function(){null==T||T(),l?P():M()}),[l,P,M,T]),j=(0,h.qY)({isOpen:f,defaultIsOpen:b,onClose:E,onOpen:F}),H=j.isOpen,B=j.onOpen,z=j.onClose,U=j.onToggle;(0,h.O3)({enabled:H&&u,ref:I,handler:function(e){var t;null!=(t=N.current)&&t.contains(e.target)||z()}});var V=(0,m.D)(g({},D,{enabled:H||O,placement:_,direction:A})),G=a.useState(-1),K=G[0],q=G[1];(0,h.rf)((function(){H||q(-1)}),[H]),(0,h.Ck)(I,{focusRef:N,visible:H,shouldFocus:!0});var W=(0,p.h)({isOpen:H,ref:I}),$=(0,h.ZS)(n,"menu-button","menu-list"),Z=$[0],Y=$[1],X=a.useCallback((function(){B(),M()}),[B,M]),Q=a.useRef(new Set([]));return(0,h.zq)((function(){Q.current.forEach((function(e){return clearTimeout(e)})),Q.current.clear()})),{openAndFocusMenu:X,openAndFocusFirstItem:a.useCallback((function(){B(),P()}),[P,B]),openAndFocusLastItem:a.useCallback((function(){B(),L()}),[B,L]),onTransitionEnd:a.useCallback((function(){var e,t,n=(0,i.lZ)(I.current),r=null==(e=I.current)?void 0:e.contains(n.activeElement);if(H&&!r){var o=null==(t=R.item(K))?void 0:t.node;o&&(0,i.T_)(o,{selectTextIfInput:!1,preventScroll:!1})}}),[H,K,R]),unstable__animationState:W,descendants:R,popper:V,buttonId:Z,menuId:Y,forceUpdate:V.forceUpdate,orientation:"vertical",isOpen:H,onToggle:U,onOpen:B,onClose:z,menuRef:I,buttonRef:N,focusedIndex:K,closeOnSelect:o,closeOnBlur:u,autoSelect:l,setFocusedIndex:q,isLazy:d,lazyBehavior:C}}(g({},(0,r.Lr)(e),{direction:(0,r.Fg)().direction})),s=o.descendants,u=v(o,N),c=a.useMemo((function(){return u}),[u]),l=c.isOpen,d=c.onClose,f=c.forceUpdate;return a.createElement(_,{value:s},a.createElement(S,{value:c},a.createElement(r.Fo,{value:n},(0,i.Pu)(t,{isOpen:l,onClose:d,forceUpdate:f}))))};i.Ts&&(U.displayName="Menu");var V=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return a.createElement(r.m$.button,g({ref:t},e,{__css:g({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))})),G=(0,r.Gp)((function(e,t){e.children;var n=e.as,o=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=O(),r=n.onToggle,o=n.popper,u=n.openAndFocusFirstItem,c=n.openAndFocusLastItem,l=a.useCallback((function(e){var t=(0,i.uh)(e),n={Enter:u,ArrowDown:u,ArrowUp:c}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))}),[u,c]);return g({},e,{ref:(0,s.lq)(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(0,i.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,i.v0)(e.onClick,r),onKeyDown:(0,i.v0)(e.onKeyDown,l)})}(v(e,R),t),u=n||V;return a.createElement(u,g({},o,{className:(0,i.cx)("chakra-menu__menu-button",e.className)}),a.createElement(r.m$.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))}));i.Ts&&(G.displayName="MenuButton");var K={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"}}},q="custom"in o.E?o.E.custom(r.m$.div):(0,o.E)(r.m$.div),W=(0,r.Gp)((function(e,t){var n,o,u=e.rootProps,c=v(e,M),l=O(),d=l.isOpen,f=l.onTransitionEnd,p=l.unstable__animationState,m=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=O();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var r=n.focusedIndex,o=n.setFocusedIndex,u=n.menuRef,c=n.isOpen,l=n.onClose,d=n.menuId,f=n.isLazy,p=n.lazyBehavior,m=n.unstable__animationState,v=w(),y=(0,h.bx)({preventDefault:function(e){return" "!==e.key&&D(e.target)}}),b=a.useCallback((function(e){var t=(0,i.uh)(e),n={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=v.nextEnabled(r);e&&o(e.index)},ArrowUp:function(){var e=v.prevEnabled(r);e&&o(e.index)}}[t];if(n)return e.preventDefault(),void n(e);var a=y((function(e){var t=(0,i.LP)(v.values(),e,(function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""}),v.item(r));if(t){var n=v.indexOf(t.node);o(n)}}));D(e.target)&&a(e)}),[v,r,y,l,o]),E=a.useRef(!1);c&&(E.current=!0);var T=(0,i.VI)({hasBeenSelected:E.current,isLazy:f,lazyBehavior:p,isSelected:m.present});return g({},e,{ref:(0,s.lq)(u,t),children:T?e.children:null,tabIndex:-1,role:"menu",id:d,style:g({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:(0,i.v0)(e.onKeyDown,b)})}(c,t),y=function(e){void 0===e&&(e={});var t=O(),n=t.popper,r=t.isOpen;return n.getPopperProps(g({},e,{style:g({visibility:r?"visible":"hidden"},e.style)}))}(u),b=(0,r.yK)();return a.createElement(r.m$.div,g({},y,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(o=b.list)?void 0:o.zIndex}}),a.createElement(q,g({},m,{onUpdate:f,onAnimationComplete:(0,i.PP)(p.onComplete,m.onAnimationComplete),className:(0,i.cx)("chakra-menu__menu-list",m.className),variants:K,initial:!1,animate:d?"enter":"exit",__css:g({outline:0},b.list)})))}));i.Ts&&(W.displayName="MenuList");var $=(0,r.Gp)((function(e,t){var n=e.type,i=v(e,P),o=(0,r.yK)(),s=i.as?null!=n?n:void 0:"button",u=g({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item);return a.createElement(r.m$.button,g({ref:t,type:s},i,{__css:u}))})),Z=(0,r.Gp)((function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,s=e.command,u=e.commandSpacing,c=void 0===u?"0.75rem":u,l=e.children,d=I(v(e,L),t),f=n||s?a.createElement("span",{style:{pointerEvents:"none",flex:1}},l):l;return a.createElement($,g({},d,{className:(0,i.cx)("chakra-menu__menuitem",d.className)}),n&&a.createElement(te,{fontSize:"0.8em",marginEnd:o},n),f,s&&a.createElement(ee,{marginStart:c},s))}));i.Ts&&(Z.displayName="MenuItem");var Y=function(e){return a.createElement("svg",g({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),a.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"}))},X=(0,r.Gp)((function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,s=v(e,F),u=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e,r=n.type,i=void 0===r?"radio":r,o=n.isChecked;return g({},I(v(n,E),t),{role:"menuitem"+i,"aria-checked":o})}(s,t);return a.createElement($,g({},u,{className:(0,i.cx)("chakra-menu__menuitem-option",s.className)}),a.createElement(te,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},n||a.createElement(Y,null)),a.createElement("span",{style:{flex:1}},u.children))}));X.id="MenuItemOption",i.Ts&&(X.displayName="MenuItemOption");var Q=function(e){var t=e.className,n=e.title,r=function(e){void 0===e&&(e={});var t=e,n=t.children,r=t.type,o=void 0===r?"radio":r,u=t.value,c=t.defaultValue,l=t.onChange,d=v(t,T),f="radio"===o?"":[],p=(0,h.Tx)({defaultValue:null!=c?c:f,value:u,onChange:l}),m=p[0],y=p[1],b=a.useCallback((function(e){if("radio"===o&&(0,i.HD)(m)&&y(e),"checkbox"===o&&(0,i.kJ)(m)){var t=m.includes(e)?(0,i.cl)(m,e):(0,i.jX)(m,e);y(t)}}),[m,y,o]);return g({},d,{children:(0,s.WR)(n).map((function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===o?e.props.value===m:m.includes(e.props.value);return a.cloneElement(e,{type:o,onClick:function(t){b(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})}))})}(v(e,j));return a.createElement(J,g({title:n,className:(0,i.cx)("chakra-menu__option-group",t)},r))};i.Ts&&(Q.displayName="MenuOptionGroup");var J=(0,r.Gp)((function(e,t){var n=e.title,o=e.children,s=e.className,u=v(e,H),c=(0,i.cx)("chakra-menu__group__title",s),l=(0,r.yK)();return a.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&a.createElement(r.m$.p,g({className:c},u,{__css:l.groupTitle}),n),o)}));i.Ts&&(J.displayName="MenuGroup");var ee=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return a.createElement(r.m$.span,g({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))}));i.Ts&&(ee.displayName="MenuCommand");var te=function(e){var t=e.className,n=e.children,o=v(e,B),s=a.Children.only(n),u=a.isValidElement(s)?a.cloneElement(s,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",s.props.className)}):null,c=(0,i.cx)("chakra-menu__icon-wrapper",t);return a.createElement(r.m$.span,g({className:c},o,{__css:{flexShrink:0}}),u)};i.Ts&&(te.displayName="MenuIcon");var ne=function(e){var t=e.className,n=v(e,z),o=(0,r.yK)();return a.createElement(r.m$.hr,g({role:"separator","aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t)},n,{__css:o.divider}))};i.Ts&&(ne.displayName="MenuDivider")},90232:function(e,t,n){"use strict";n.d(t,{u_:function(){return Mt},fe:function(){return Bt},ol:function(){return Ut},hz:function(){return Lt},mz:function(){return zt},xB:function(){return Ht},ZA:function(){return jt}});var r=n(84746),i=n(67294),o=n(63366),a=n(87462),s="data-focus-lock",u="data-focus-lock-disabled";function c(e,t){return function(e,t){var n=(0,i.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 i.createElement(i.Fragment,null,i.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}),t,t&&i.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}))};d.propTypes={},d.defaultProps={children:null};var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function h(e){return e}function p(e,t){void 0===t&&(t=h);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 i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},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 i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};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=h),p(e,t)}function g(e){void 0===e&&(e={});var t=p(null);return t.options=f({async:!0,ssr:!1},e),t}var v=m({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),y=m(),b=m(),E=g({async:!0}),T=[],x=i.forwardRef((function(e,t){var n,r=i.useState(),o=r[0],d=r[1],f=i.useRef(),h=i.useRef(!1),p=i.useRef(null),m=e.children,g=e.disabled,b=e.noFocusGuards,x=e.persistentFocus,_=e.crossFrame,w=e.autoFocus,k=(e.allowTextSelection,e.group),C=e.className,A=e.whiteList,S=e.shards,O=void 0===S?T:S,D=e.as,I=void 0===D?"div":D,N=e.lockProps,R=void 0===N?{}:N,M=e.sideCar,P=e.returnFocus,L=e.onActivation,F=e.onDeactivation,j=i.useState({})[0],H=i.useCallback((function(){p.current=p.current||document&&document.activeElement,f.current&&L&&L(f.current),h.current=!0}),[L]),B=i.useCallback((function(){h.current=!1,F&&F(f.current)}),[F]),z=i.useCallback((function(e){var t=p.current;if(Boolean(P)&&t&&t.focus){var n="object"===typeof P?P:void 0;p.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[P]),U=i.useCallback((function(e){h.current&&v.useMedium(e)}),[]),V=y.useMedium,G=i.useCallback((function(e){f.current!==e&&(f.current=e,d(e))}),[]);var K=(0,a.Z)(((n={})[u]=g&&"disabled",n[s]=k,n),R),q=!0!==b,W=q&&"tail"!==b,$=c([t,G]);return i.createElement(i.Fragment,null,q&&[i.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:l}),i.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:l})],!g&&i.createElement(M,{id:j,sideCar:E,observed:o,disabled:g,persistentFocus:x,crossFrame:_,autoFocus:w,whiteList:A,shards:O,onActivation:H,onDeactivation:B,returnFocus:z}),i.createElement(I,(0,a.Z)({ref:$},K,{className:C,onBlur:V,onFocus:U}),m),W&&i.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:l}))}));x.propTypes={},x.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 _=x,w=n(94578);var k=function(e,t){return function(n){var r,o=[];function a(){r=e(o.map((function(e){return e.props}))),t(r)}var s,u,c,l=function(e){function t(){return e.apply(this,arguments)||this}(0,w.Z)(t,e),t.peek=function(){return r};var s=t.prototype;return s.componentDidMount=function(){o.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),a()},s.render=function(){return i.createElement(n,this.props)},t}(i.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}},C=function(e){return"INPUT"===e.tagName&&"radio"===e.type},A=function(e,t){return C(e)&&e.name?function(e,t){return t.filter(C).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},S=function(e){return e[0]&&e.length>1?A(e[0],e):e[0]},O=function(e,t){return e.length>1?e.indexOf(A(e[t],e)):t},D=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},I=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=D(t,I.bind(void 0,e));return e.set(t,r),r},N=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},R=function(e){return!N(e)},M=function(e){return Boolean(e)},P="NEW_FOCUS",L=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=N(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(o),h=t.indexOf(a),p=function(e){var t=new Set;return e.forEach((function(n){return t.add(A(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=p.indexOf(n)-(r?p.indexOf(r):u),g=O(e,0),v=O(e,i-1);return-1===u||-1===l?P:!d&&l>=0?l:u<=f&&s&&Math.abs(d)>1?v:u>=h&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?l:u<=f?v:u>h?g:d?Math.abs(d)>1?l:(i+l+d)%i:void 0}},F=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]},H=function(e){return e.parentNode?H(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 i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(F(H(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+u+'="disabled"])'))):[t]),e}),[])},z=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 F(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(z)},V=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),G=V+", [data-focus-guard]",K=function(e,t){return e.reduce((function(e,n){return e.concat(F(n.querySelectorAll(t?G:V)),n.parentNode?F(n.parentNode.querySelectorAll(V)).filter((function(e){return e===n})):[])}),[])},q=function(e,t){return F(e).filter((function(e){return I(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},W=function(e,t,n){return U(q(K(e,n),t),!0,n)},$=function(e,t){return U(q(K(e),t),!1)},Z=function(e,t){return q(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return F(t).map((function(e){return K([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},Y=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Y(e.parentNode,t),t},X=function(e,t){for(var n=Y(e),r=Y(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},Q=function(e,t,n){var r=j(e),i=j(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=X(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=X(o,e);t&&(a=!a||t.contains(a)?t:X(t,a))}))})),a},J=function(e,t){var n=document&&document.activeElement,r=B(e).filter(R),i=Q(n||e,e,r),o=new Map,a=$(r,o),s=W(r,o).filter((function(e){var t=e.node;return R(t)}));if(s[0]||(s=a)[0]){var u,c=$([i],o).map((function(e){return e.node})),l=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(M)}(c,s),d=l.map((function(e){return e.node})),f=L(d,c,n,t);if(f===P){var h=a.map((function(e){return e.node})).filter((u=function(e,t){return e.reduce((function(e,n){return e.concat(Z(n,t))}),[])}(r,o),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0}));return{node:h&&h.length?S(h):S(d)}}return void 0===f?f:l[f]}},ee=0,te=!1,ne=function(e,t){var n,r=J(e,t);if(!te&&r){if(ee>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"),te=!0,void setTimeout((function(){te=!1}),1);ee++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),ee--}},re=function(e){return Boolean(F(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},ie=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)||re(n)}),!1)};function oe(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var ae=function(){return document&&document.activeElement===document.body||document&&F(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},se=null,ue=null,ce=null,le=!1,de=function(){return!0};function fe(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var he=function(e){return e&&"current"in e?e.current:e},pe=function(){var e,t=!1;if(se){var n=se,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||ce&&ce.portaledElement,c=document&&document.activeElement;if(u){var l=[u].concat(a.map(he).filter(Boolean));if(c&&!function(e){return(se.whiteList||de)(e)}(c)||(i||(s?Boolean(le):"meanwhile"===le)||!ae()||!ue&&o)&&(!u||ie(l)||(e=c,ce&&ce.portaledElement===e)||(document&&!ue&&c&&!o?(c.blur&&c.blur(),document.body.focus()):(t=ne(l,ue),ce={})),le=!1,ue=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var t=B(e).filter(R),n=Q(e,e,t),r=new Map,i=W([n],r,!0),o=W(t,r).filter((function(e){var t=e.node;return R(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:N(t)}}))}(l),h=f.map((function(e){return e.node})).indexOf(d);h>-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")})),fe(h,f.length,1,f),fe(h,-1,-1,f))}}}return t},me=function(e){pe()&&e&&(e.stopPropagation(),e.preventDefault())},ge=function(){return oe(pe)},ve=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ce={observerNode:n,portaledElement:t})},ye=function(){le="just",setTimeout((function(){le="meanwhile"}),0)};v.assignSyncMedium(ve),y.assignMedium(ge),b.assignMedium((function(e){return e({moveFocusInside:ne,focusInside:ie})}));var be=k((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!se&&(document.addEventListener("focusin",me,!0),document.addEventListener("focusout",ge),window.addEventListener("blur",ye));var n=se,r=n&&t&&t.id===n.id;se=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(ue=null,r&&n.observed===t.observed||t.onActivation(),pe(),oe(pe)):(document.removeEventListener("focusin",me,!0),document.removeEventListener("focusout",ge),window.removeEventListener("blur",ye),ue=null)}))((function(){return null})),Ee=i.forwardRef((function(e,t){return i.createElement(_,(0,a.Z)({sideCar:be,ref:t},e))})),Te=_.propTypes||{};Te.sideCar,(0,o.Z)(Te,["sideCar"]);Ee.propTypes={};var xe=Ee,_e=n(44592),we=function(e){var t=e.initialFocusRef,n=e.finalFocusRef,r=e.contentRef,o=e.restoreFocus,a=e.children,s=e.isDisabled,u=e.autoFocus,c=e.persistentFocus,l=e.lockFocusAcrossFrames,d=i.useCallback((function(){if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===(0,_e.t5)(r.current).length&&(0,_e.T_)(r.current,{nextTick:!0})}}),[t,r]),f=i.useCallback((function(){var e;null==n||null==(e=n.current)||e.focus()}),[n]),h=o&&!n;return i.createElement(xe,{crossFrame:l,persistentFocus:c,autoFocus:u,disabled:s,onActivation:d,onDeactivation:f,returnFocus:h},a)};_e.Ts&&(we.displayName="FocusLock");var ke=n(46871),Ce=n(105),Ae=n(37496),Se=n(52829),Oe=n(99860),De=n(53869),Ie=n(69283);var Ne=function(){return(Ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var Re="right-scroll-bar-position",Me="width-before-scroll-bar",Pe=g(),Le=function(){},Fe=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Le,onWheelCapture:Le,onTouchMoveCapture:Le}),o=r[0],a=r[1],s=e.forwardProps,u=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,E=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),T=p,x=c([n,t]),_=Ne({},E,o);return i.createElement(i.Fragment,null,f&&i.createElement(T,{sideCar:Pe,removeScrollBar:d,shards:h,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),s?i.cloneElement(i.Children.only(u),Ne({},_,{ref:x})):i.createElement(b,Ne({},_,{className:l,ref:x}),u))}));Fe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fe.classNames={fullWidth:Me,zeroRight:Re};var je,He=function(e){var t=e.sideCar,n=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(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 i.createElement(r,f({},n))};He.isSideCarExport=!0;function Be(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je||n.nc;return t&&e.setAttribute("nonce",t),e}var ze=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=Be())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ue=function(){var e=function(){var e=ze();return function(t){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},Ve={left:0,top:0,right:0,gap:0},Ge=function(e){return parseInt(e||"",10)||0},Ke=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Ve;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Ge(n),Ge(r),Ge(i)]}(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])}},qe=Ue(),We=function(e,t,n,r){var i=e.left,o=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: "+i+"px;\n padding-top: "+o+"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 ."+Re+" {\n right: "+s+"px "+r+";\n }\n \n ."+Me+" {\n margin-right: "+s+"px "+r+";\n }\n \n ."+Re+" ."+Re+" {\n right: 0 "+r+";\n }\n \n ."+Me+" ."+Me+" {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+s+"px;\n }\n"},$e=function(e){var t=i.useState(Ke(e.gapMode)),n=t[0],r=t[1];i.useEffect((function(){r(Ke(e.gapMode))}),[e.gapMode]);var o=e.noRelative,a=e.noImportant,s=e.gapMode,u=void 0===s?"margin":s;return i.createElement(qe,{styles:We(n,!o,u,a?"":"!important")})},Ze=function(e,t){var n=t;do{if(Ye(e,n)){var r=Xe(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ye=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)},Xe=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},Qe=!1;if("undefined"!==typeof window)try{var Je=Object.defineProperty({},"passive",{get:function(){return Qe=!0,!0}});window.addEventListener("test",Je,Je),window.removeEventListener("test",Je,Je)}catch($t){Qe=!1}var et=!!Qe&&{passive:!1},tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nt=function(e){return[e.deltaX,e.deltaY]},rt=function(e){return e&&"current"in e?e.current:e},it=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},ot=0,at=[];var st,ut=(st=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(ot++)[0],a=i.useState((function(){return Ue()}))[0],s=i.useRef(e);i.useEffect((function(){s.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(rt)).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 u=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=tt(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v",f=Ze(d,l);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=Ze(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=i),!i)return!0;var h=r.current||i;return function(e,t,n,r,i){var o=r,a=n.target,s=t.contains(a),u=!1,c=o>0,l=0,d=0;do{var f=Xe(e,a),h=f[0],p=f[1]-f[2]-h;(h||p)&&Ye(e,a)&&(l+=p,d+=h),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(i&&0===l||!i&&o>l)||!c&&(i&&0===d||!i&&-o>d))&&(u=!0),u}(h,t,e,"h"===h?u:c,!0)}),[]),c=i.useCallback((function(e){var n=e;if(at.length&&at[at.length-1]===a){var r="deltaY"in n?nt(n):tt(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i}))[0];if(i&&i.should)n.preventDefault();else if(!i){var o=(s.current.shards||[]).map(rt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(o.length>0?u(n,o[0]):!s.current.noIsolation)&&n.preventDefault()}}}),[]),l=i.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=i.useCallback((function(e){n.current=tt(e),r.current=void 0}),[]),f=i.useCallback((function(t){l(t.type,nt(t),t.target,u(t,e.lockRef.current))}),[]),h=i.useCallback((function(t){l(t.type,tt(t),t.target,u(t,e.lockRef.current))}),[]);i.useEffect((function(){return at.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,et),document.addEventListener("touchmove",c,et),document.addEventListener("touchstart",d,et),function(){at=at.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,et),document.removeEventListener("touchmove",c,et),document.removeEventListener("touchstart",d,et)}}),[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:it(o)}):null,p?i.createElement($e,{gapMode:"margin"}):null)},Pe.useMedium(st),He),ct=i.forwardRef((function(e,t){return i.createElement(Fe,Ne({},e,{ref:t,sideCar:ut}))}));ct.classNames=Fe.classNames;var lt=ct,dt=n(97375),ft=new WeakMap,ht=new WeakMap,pt={},mt=0,gt=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 i=pt[n],o=[],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=(ft.get(e)||0)+1,c=(i.get(e)||0)+1;ft.set(e,s),i.set(e,c),o.push(e),1===s&&r&&ht.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),a.clear(),mt++,function(){o.forEach((function(e){var t=ft.get(e)-1,r=i.get(e)-1;ft.set(e,t),i.set(e,r),t||(ht.has(e)||e.removeAttribute("aria-hidden"),ht.delete(e)),r||e.removeAttribute(n)})),--mt||(ft=new WeakMap,ft=new WeakMap,ht=new WeakMap,pt={})}};function vt(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function yt(){return(yt=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 bt=["preset"],Et={slideInBottom:yt({},Ae.Xc,{custom:{offsetY:16,reverse:!0}}),slideInRight:yt({},Ae.Xc,{custom:{offsetX:16,reverse:!0}}),scale:yt({},Ae.Qh,{custom:{initialScale:.95,reverse:!0}}),none:{}},Tt=(0,Ce.m$)(Oe.E.section),xt=i.forwardRef((function(e,t){var n=e.preset,r=vt(e,bt),o=Et[n];return i.createElement(Tt,yt({ref:t},o,r))})),_t=new(function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(e){this.modals.push(e)},t.remove=function(e){this.modals=this.modals.filter((function(t){return t!==e}))},t.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function wt(e){var t,n,r=e.isOpen,o=e.onClose,a=e.id,s=e.closeOnOverlayClick,u=void 0===s||s,c=e.closeOnEsc,l=void 0===c||c,d=e.useInert,f=void 0===d||d,h=e.onOverlayClick,p=e.onEsc,m=(0,i.useRef)(null),g=(0,i.useRef)(null),v=(0,dt.ZS)(a,"chakra-modal","chakra-modal--header","chakra-modal--body"),y=v[0],b=v[1],E=v[2];t=m,n=r&&f,(0,i.useEffect)((function(){if(t.current){var e=null;return n&&t.current&&(e=gt(t.current)),function(){n&&(null==e||e())}}}),[n,t]),function(e,t){(0,i.useEffect)((function(){return t&&_t.add(e),function(){_t.remove(e)}}),[t,e])}(m,r);var T=(0,i.useRef)(null),x=(0,i.useCallback)((function(e){T.current=e.target}),[]),_=(0,i.useCallback)((function(e){"Escape"===e.key&&(e.stopPropagation(),l&&(null==o||o()),null==p||p())}),[l,o,p]),w=(0,i.useState)(!1),k=w[0],C=w[1],A=(0,i.useState)(!1),S=A[0],O=A[1],D=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),yt({role:"dialog"},e,{ref:(0,Se.lq)(t,m),id:y,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?b:void 0,"aria-describedby":S?E:void 0,onClick:(0,_e.v0)(e.onClick,(function(e){return e.stopPropagation()}))})}),[E,S,y,b,k]),I=(0,i.useCallback)((function(e){e.stopPropagation(),T.current===e.target&&_t.isTopModal(m)&&(u&&(null==o||o()),null==h||h())}),[o,u,h]),N=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),yt({},e,{ref:(0,Se.lq)(t,g),onClick:(0,_e.v0)(e.onClick,I),onKeyDown:(0,_e.v0)(e.onKeyDown,_),onMouseDown:(0,_e.v0)(e.onMouseDown,x)})}),[_,x,I]);return{isOpen:r,onClose:o,headerId:b,bodyId:E,setBodyMounted:O,setHeaderMounted:C,dialogRef:m,overlayRef:g,getDialogProps:D,getDialogContainerProps:N}}var kt=["className","children","containerProps"],Ct=["className","transition"],At=["className"],St=["className"],Ot=["className"],Dt=["onClick","className"],It=(0,Se.kr)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Nt=It[0],Rt=It[1],Mt=function(e){var t=e.portalProps,n=e.children,r=e.autoFocus,o=e.trapFocus,a=e.initialFocusRef,s=e.finalFocusRef,u=e.returnFocusOnClose,c=e.blockScrollOnMount,l=e.allowPinchZoom,d=e.preserveScrollBarGap,f=e.motionPreset,h=e.lockFocusAcrossFrames,p=(0,Ce.jC)("Modal",e),m=yt({},wt(e),{autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:l,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h});return i.createElement(Nt,{value:m},i.createElement(Ce.Fo,{value:p},i.createElement(De.M,null,m.isOpen&&i.createElement(ke.h_,t,n))))};Mt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},_e.Ts&&(Mt.displayName="Modal");var Pt=(0,Ce.m$)(Oe.E.div),Lt=(0,Ce.Gp)((function(e,t){var n=e.className,r=e.children,o=e.containerProps,a=vt(e,kt),s=Rt(),u=s.getDialogProps,c=s.getDialogContainerProps,l=u(a,t),d=c(o),f=(0,_e.cx)("chakra-modal__content",n),h=(0,Ce.yK)(),p=yt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},h.dialog),m=yt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},h.dialogContainer),g=Rt().motionPreset;return i.createElement(Ft,null,i.createElement(Ce.m$.div,yt({},d,{className:"chakra-modal__content-container",tabIndex:-1,__css:m}),i.createElement(xt,yt({preset:g,className:f},l,{__css:p}),r)))}));function Ft(e){var t=Rt(),n=t.autoFocus,r=t.trapFocus,o=t.dialogRef,a=t.initialFocusRef,s=t.blockScrollOnMount,u=t.allowPinchZoom,c=t.finalFocusRef,l=t.returnFocusOnClose,d=t.preserveScrollBarGap,f=t.lockFocusAcrossFrames,h=(0,Ie.oO)(),p=h[0],m=h[1];return i.useEffect((function(){!p&&m&&setTimeout(m)}),[p,m]),i.createElement(we,{autoFocus:n,isDisabled:!r,initialFocusRef:a,finalFocusRef:c,restoreFocus:l,contentRef:o,lockFocusAcrossFrames:f},i.createElement(lt,{removeScrollBar:!d,allowPinchZoom:u,enabled:s,forwardProps:!0},e.children))}_e.Ts&&(Lt.displayName="ModalContent");var jt=(0,Ce.Gp)((function(e,t){var n=e.className;e.transition;var r=vt(e,Ct),o=(0,_e.cx)("chakra-modal__overlay",n),a=yt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,Ce.yK)().overlay),s="none"===Rt().motionPreset?{}:Ae.uf;return i.createElement(Pt,yt({},s,{__css:a,ref:t,className:o},r))}));_e.Ts&&(jt.displayName="ModalOverlay");var Ht=(0,Ce.Gp)((function(e,t){var n=e.className,r=vt(e,At),o=Rt(),a=o.headerId,s=o.setHeaderMounted;i.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var u=(0,_e.cx)("chakra-modal__header",n),c=yt({flex:0},(0,Ce.yK)().header);return i.createElement(Ce.m$.header,yt({ref:t,className:u,id:a},r,{__css:c}))}));_e.Ts&&(Ht.displayName="ModalHeader");var Bt=(0,Ce.Gp)((function(e,t){var n=e.className,r=vt(e,St),o=Rt(),a=o.bodyId,s=o.setBodyMounted;i.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var u=(0,_e.cx)("chakra-modal__body",n),c=(0,Ce.yK)();return i.createElement(Ce.m$.div,yt({ref:t,className:u,id:a},r,{__css:c.body}))}));_e.Ts&&(Bt.displayName="ModalBody");var zt=(0,Ce.Gp)((function(e,t){var n=e.className,r=vt(e,Ot),o=(0,_e.cx)("chakra-modal__footer",n),a=yt({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,Ce.yK)().footer);return i.createElement(Ce.m$.footer,yt({ref:t},r,{__css:a,className:o}))}));_e.Ts&&(zt.displayName="ModalFooter");var Ut=(0,Ce.Gp)((function(e,t){var n=e.onClick,o=e.className,a=vt(e,Dt),s=Rt().onClose,u=(0,_e.cx)("chakra-modal__close-btn",o),c=(0,Ce.yK)();return i.createElement(r.P,yt({ref:t,__css:c.closeButton,className:u,onClick:(0,_e.v0)(n,(function(e){e.stopPropagation(),s()}))},a))}));_e.Ts&&(Ut.displayName="ModalCloseButton");var Vt=["className","children"],Gt=(0,Se.kr)(),Kt=(Gt[0],Gt[1]);var qt=(0,Ce.m$)(Ae.Mi),Wt=(0,Ce.Gp)((function(e,t){var n=e.className,r=e.children,o=vt(e,Vt),a=Rt(),s=a.getDialogProps,u=a.getDialogContainerProps,c=a.isOpen,l=s(o,t),d=u(),f=(0,_e.cx)("chakra-modal__content",n),h=(0,Ce.yK)(),p=yt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},h.dialog),m=yt({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},h.dialogContainer),g=Kt().placement;return i.createElement(Ce.m$.div,yt({},d,{className:"chakra-modal__content-container",__css:m}),i.createElement(Ft,null,i.createElement(qt,yt({direction:g,in:c,className:f},l,{__css:p}),r)))}));_e.Ts&&(Wt.displayName="DrawerContent")},32095:function(e,t,n){"use strict";n.d(t,{J2:function(){return C},QH:function(){return I},b:function(){return D},yk:function(){return S},xo:function(){return A}});n(84746);var r=n(105),i=n(38554),o=n.n(i),a=n(44592),s=n(67294),u=n(52829),c=n(99860),l=n(97375),d=n(94998),f=n(66197);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 p(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var m=(0,u.kr)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),g=m[0],v=m[1],y=function(e){if(e)return o()(e,{enter:{visibility:"visible"},exit:{transitionEnd:{visibility:"hidden"}}})},b=(0,c.E)(r.m$.section),E=s.forwardRef((function(e,t){var n=v().isOpen;return s.createElement(b,h({ref:t,variants:y(e.variants)},e,{initial:!1,animate:n?"enter":"exit"}))}));E.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=["closeOnBlur","closeOnEsc","initialFocusRef","id","returnFocusOnClose","autoFocus","arrowSize","arrowShadowColor","trigger","openDelay","closeDelay","isLazy","lazyBehavior","computePositionOnMount"],x="click",_="hover";var w=["children"],k=["rootProps"],C=function(e){var t=(0,r.jC)("Popover",e),n=(0,r.Lr)(e),i=n.children,o=function(e){void 0===e&&(e={});var t=e,n=t.closeOnBlur,r=void 0===n||n,i=t.closeOnEsc,o=void 0===i||i,c=t.initialFocusRef,m=t.id,g=t.returnFocusOnClose,v=void 0===g||g,y=t.autoFocus,b=void 0===y||y,E=t.arrowSize,w=t.arrowShadowColor,k=t.trigger,C=void 0===k?x:k,A=t.openDelay,S=void 0===A?200:A,O=t.closeDelay,D=void 0===O?200:O,I=t.isLazy,N=t.lazyBehavior,R=void 0===N?"unmount":N,M=t.computePositionOnMount,P=p(t,T),L=(0,l.qY)(e),F=L.isOpen,j=L.onClose,H=L.onOpen,B=L.onToggle,z=(0,s.useRef)(null),U=(0,s.useRef)(null),V=(0,s.useRef)(null),G=(0,s.useRef)(!1),K=(0,s.useRef)(!1);F&&(K.current=!0);var q=(0,s.useState)(!1),W=q[0],$=q[1],Z=(0,s.useState)(!1),Y=Z[0],X=Z[1],Q=(0,l.ZS)(m,"popover-trigger","popover-content","popover-header","popover-body"),J=Q[0],ee=Q[1],te=Q[2],ne=Q[3],re=(0,f.D)(h({},P,{enabled:F||!!M})),ie=re.referenceRef,oe=re.getArrowProps,ae=re.getPopperProps,se=re.getArrowInnerProps,ue=re.forceUpdate,ce=(0,d.h)({isOpen:F,ref:V});(0,l.s9)({enabled:F,ref:U}),(0,l.Ck)(V,{focusRef:U,visible:F,shouldFocus:v&&C===x}),(0,l.Gp)(V,{focusRef:c,visible:F,shouldFocus:b&&C===x});var le=(0,a.VI)({hasBeenSelected:K.current,isLazy:I,lazyBehavior:R,isSelected:ce.present}),de=(0,s.useCallback)((function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t=null);var i=h({},e,{style:h({},e.style,(n={transformOrigin:f.j.transformOrigin.varRef},n[f.j.arrowSize.var]=E?(0,a.px)(E):void 0,n[f.j.arrowShadowColor.var]=w,n)),ref:(0,u.lq)(V,t),children:le?e.children:null,id:ee,tabIndex:-1,role:"dialog",onKeyDown:(0,a.v0)(e.onKeyDown,(function(e){o&&"Escape"===e.key&&j()})),onBlur:(0,a.v0)(e.onBlur,(function(e){var t=(0,a.wN)(e),n=(0,a.r3)(V.current,t),i=(0,a.r3)(U.current,t);F&&r&&!n&&!i&&j()})),"aria-labelledby":W?te:void 0,"aria-describedby":Y?ne:void 0});return C===_&&(i.role="tooltip",i.onMouseEnter=(0,a.v0)(e.onMouseEnter,(function(){G.current=!0})),i.onMouseLeave=(0,a.v0)(e.onMouseLeave,(function(){G.current=!1,setTimeout(j,D)}))),i}),[le,ee,W,te,Y,ne,C,o,j,F,r,D,w,E]),fe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ae(h({},e,{style:h({visibility:F?"visible":"hidden"},e.style)}),t)}),[F,ae]),he=(0,s.useCallback)((function(e,t){return void 0===t&&(t=null),h({},e,{ref:(0,u.lq)(t,z,ie)})}),[z,ie]),pe=(0,s.useRef)(),me=(0,s.useRef)(),ge=(0,s.useCallback)((function(e){null==z.current&&ie(e)}),[ie]),ve=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=h({},e,{ref:(0,u.lq)(U,t,ge),id:J,"aria-haspopup":"dialog","aria-expanded":F,"aria-controls":ee});return C===x&&(n.onClick=(0,a.v0)(e.onClick,B)),C===_&&(n.onFocus=(0,a.v0)(e.onFocus,H),n.onBlur=(0,a.v0)(e.onBlur,(function(e){var t=(0,a.wN)(e),n=!(0,a.r3)(V.current,t);F&&r&&n&&j()})),n.onKeyDown=(0,a.v0)(e.onKeyDown,(function(e){"Escape"===e.key&&j()})),n.onMouseEnter=(0,a.v0)(e.onMouseEnter,(function(){G.current=!0,pe.current=window.setTimeout(H,S)})),n.onMouseLeave=(0,a.v0)(e.onMouseLeave,(function(){G.current=!1,pe.current&&(clearTimeout(pe.current),pe.current=void 0),me.current=window.setTimeout((function(){!1===G.current&&j()}),D)}))),n}),[J,F,ee,C,ge,B,H,r,j,S,D]);(0,s.useEffect)((function(){return function(){pe.current&&clearTimeout(pe.current),me.current&&clearTimeout(me.current)}}),[]);var ye=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),h({},e,{id:te,ref:(0,u.lq)(t,(function(e){$(!!e)}))})}),[te]),be=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),h({},e,{id:ne,ref:(0,u.lq)(t,(function(e){X(!!e)}))})}),[ne]);return{forceUpdate:ue,isOpen:F,onAnimationComplete:ce.onComplete,onClose:j,getAnchorProps:he,getArrowProps:oe,getArrowInnerProps:se,getPopoverPositionerProps:fe,getPopoverProps:de,getTriggerProps:ve,getHeaderProps:ye,getBodyProps:be}}(h({},p(n,w),{direction:(0,r.Fg)().direction}));return s.createElement(g,{value:o},s.createElement(r.Fo,{value:t},(0,a.Pu)(i,{isOpen:o.isOpen,onClose:o.onClose,forceUpdate:o.forceUpdate})))};a.Ts&&(C.displayName="Popover");a.Ts;var A=function(e){var t=s.Children.only(e.children),n=v().getTriggerProps;return s.cloneElement(t,n(t.props,t.ref))};a.Ts&&(A.displayName="PopoverTrigger");var S=(0,r.Gp)((function(e,t){var n=e.rootProps,i=p(e,k),o=v(),u=o.getPopoverProps,c=o.getPopoverPositionerProps,l=o.onAnimationComplete,d=(0,r.yK)(),f=h({position:"relative",display:"flex",flexDirection:"column"},d.content);return s.createElement(r.m$.div,h({},c(n),{__css:d.popper,className:"chakra-popover__popper"}),s.createElement(E,h({},u(i,t),{onAnimationComplete:(0,a.PP)(l,i.onAnimationComplete),className:(0,a.cx)("chakra-popover__content",e.className),__css:f})))}));a.Ts&&(S.displayName="PopoverContent");var O=(0,r.Gp)((function(e,t){var n=v().getHeaderProps,i=(0,r.yK)();return s.createElement(r.m$.header,h({},n(e,t),{className:(0,a.cx)("chakra-popover__header",e.className),__css:i.header}))}));a.Ts&&(O.displayName="PopoverHeader");var D=(0,r.Gp)((function(e,t){var n=v().getBodyProps,i=(0,r.yK)();return s.createElement(r.m$.div,h({},n(e,t),{className:(0,a.cx)("chakra-popover__body",e.className),__css:i.body}))}));a.Ts&&(D.displayName="PopoverBody");a.Ts;a.Ts;var I=function(e){var t,n=e.bg,i=e.bgColor,o=e.backgroundColor,u=v(),c=u.getArrowProps,l=u.getArrowInnerProps,d=(0,r.yK)(),f=null!=(t=null!=n?n:i)?t:o;return s.createElement(r.m$.div,h({},c(),{className:"chakra-popover__arrow-positioner"}),s.createElement(r.m$.div,h({className:(0,a.cx)("chakra-popover__arrow",e.className)},l(e),{__css:h({},d.arrow,{"--popper-arrow-bg":f?"colors."+f+", "+f:void 0})})))};a.Ts&&(I.displayName="PopoverArrow")},66197:function(e,t,n){"use strict";n.d(t,{j:function(){return me},D:function(){return Oe}});var r=n(52829);function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof i(e).Element||e instanceof Element}function a(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!==typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,c=Math.min,l=Math.round;function d(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(a(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(r=l(n.width)/s||1),o>0&&(i=l(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function f(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return d(p(e)).left+f(e).scrollLeft}function g(e){return i(e).getComputedStyle(e)}function v(e){var t=g(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y(e,t,n){void 0===n&&(n=!1);var r=a(t),o=a(t)&&function(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,r=l(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=p(t),u=d(e,o),c={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(r||!r&&!n)&&(("body"!==h(t)||v(s))&&(c=function(e){return e!==i(e)&&a(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:f(e);var t}(t)),a(t)?((g=d(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):s&&(g.x=m(s))),{x:u.left+c.scrollLeft-g.x,y:u.top+c.scrollTop-g.y,width:u.width,height:u.height}}function b(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function E(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||p(e)}function T(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:a(e)&&v(e)?e:T(E(e))}function x(e,t){var n;void 0===t&&(t=[]);var r=T(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=i(r),s=o?[a].concat(a.visualViewport||[],v(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(x(E(s)))}function _(e){return["table","td","th"].indexOf(h(e))>=0}function w(e){return a(e)&&"fixed"!==g(e).position?e.offsetParent:null}function k(e){for(var t=i(e),n=w(e);n&&_(n)&&"static"===g(n).position;)n=w(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===g(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&a(e)&&"fixed"===g(e).position)return null;for(var n=E(e);a(n)&&["html","body"].indexOf(h(n))<0;){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",A="bottom",S="right",O="left",D="auto",I=[C,A,S,O],N="start",R="end",M="viewport",P="popper",L=I.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+R])}),[]),F=[].concat(I,[D]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+R])}),[]),j=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function B(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var z={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){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 V(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?z:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},z,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:i,setOptions:function(n){var u="function"===typeof n?n(i.options):n;l(),i.options=Object.assign({},a,i.options,u),i.scrollParents={reference:o(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var d=function(e){var t=H(e);return j.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({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var a=o({state:i,name:t,instance:c,options:r}),u=function(){};s.push(a||u)}})),c.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,n=e.popper;if(U(t,n)){i.rects={reference:y(t,k(n),"fixed"===i.options.strategy),popper:b(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,s=o.options,l=void 0===s?{}:s,d=o.name;"function"===typeof a&&(i=a({state:i,options:l,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:B((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){l(),u=!0}};if(!U(e,t))return c;function l(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var G={passive:!0};function K(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function W(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?K(i):null,a=i?q(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case C:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case S:t={x:n.x+n.width,y:u};break;case O:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?W(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case N:t[c]=t[c]-(n[l]/2-r[l]/2);break;case R:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,v=void 0===m?0:m,y=s.y,b=void 0===y?0:y,E="function"===typeof f?f({x:v,y:b}):{x:v,y:b};v=E.x,b=E.y;var T=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),_=O,w=C,D=window;if(d){var I=k(n),N="clientHeight",M="clientWidth";if(I===i(n)&&"static"!==g(I=p(n)).position&&"absolute"===u&&(N="scrollHeight",M="scrollWidth"),I=I,o===C||(o===O||o===S)&&a===R)w=A,b-=(h&&D.visualViewport?D.visualViewport.height:I[N])-r.height,b*=c?1:-1;if(o===O||(o===C||o===A)&&a===R)_=S,v-=(h&&D.visualViewport?D.visualViewport.width:I[M])-r.width,v*=c?1:-1}var P,L=Object.assign({position:u},d&&Z),F=!0===f?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:l(t*r)/r||0,y:l(n*r)/r||0}}({x:v,y:b}):{x:v,y:b};return v=F.x,b=F.y,c?Object.assign({},L,((P={})[w]=x?"0":"",P[_]=T?"0":"",P.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",P)):Object.assign({},L,((t={})[w]=x?b+"px":"",t[_]=T?v+"px":"",t.transform="",t))}var X={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return X[e]}))}var J={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t){return t===M?ne(function(e){var t=i(e),n=p(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+m(e),y:u}}(e)):o(t)?function(e){var t=d(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):ne(function(e){var t,n=p(e),r=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=u(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=u(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+m(e),c=-r.scrollTop;return"rtl"===g(i||n).direction&&(s+=u(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(p(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=x(E(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&a(e)?k(e):e;return o(n)?t.filter((function(e){return o(e)&&te(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),s=i[0],l=i.reduce((function(t,n){var r=re(e,n);return t.top=u(r.top,t.top),t.right=c(r.right,t.right),t.bottom=c(r.bottom,t.bottom),t.left=u(r.left,t.left),t}),re(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.boundary,s=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?M:u,l=n.elementContext,f=void 0===l?P:l,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,v=void 0===g?0:g,y=oe("number"!==typeof v?v:ae(v,I)),b=f===P?"reference":P,E=e.rects.popper,T=e.elements[m?b:f],x=ie(o(T)?T:T.contextElement||p(e.elements.popper),s,c),_=d(e.elements.reference),w=$({reference:_,element:E,strategy:"absolute",placement:i}),k=ne(Object.assign({},E,w)),O=f===P?k:_,D={top:x.top-O.top+y.top,bottom:O.bottom-x.bottom+y.bottom,left:x.left-O.left+y.left,right:O.right-x.right+y.right},N=e.modifiersData.offset;if(f===P&&N){var R=N[i];Object.keys(D).forEach((function(e){var t=[S,A].indexOf(e)>=0?1:-1,n=[C,A].indexOf(e)>=0?"y":"x";D[e]+=R[n]*t}))}return D}function ue(e,t,n){return u(e,c(t,n))}function ce(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 le(e){return[C,S,A,O].some((function(t){return e[t]>=0}))}var de=V({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,G)})),u&&c.addEventListener("resize",n.update,G),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,G)})),u&&c.removeEventListener("resize",n.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=$({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,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:K(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Y(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=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]||{},i=t.elements[e];a(i)&&h(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.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.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});a(r)&&h(r)&&(Object.assign(r.style,o),Object.keys(i).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,i=n.offset,o=void 0===i?[0,0]:i,a=F.reduce((function(e,n){return e[n]=function(e,t,n){var r=K(e),i=[O,C].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[O,S].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),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 i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=K(g),y=u||(v===g||!p?[Q(g)]:function(e){if(K(e)===D)return[];var t=Q(e);return[ee(e),t,ee(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(K(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?F:u,l=q(r),d=l?s?L:L.filter((function(e){return q(e)===l})):I,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[K(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),E=t.rects.reference,T=t.rects.popper,x=new Map,_=!0,w=b[0],k=0;k<b.length;k++){var R=b[k],M=K(R),P=q(R)===N,j=[C,A].indexOf(M)>=0,H=j?"width":"height",B=se(t,{placement:R,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),z=j?P?S:O:P?A:C;E[H]>T[H]&&(z=Q(z));var U=Q(z),V=[];if(o&&V.push(B[M]<=0),s&&V.push(B[z]<=0,B[U]<=0),V.every((function(e){return e}))){w=R,_=!1;break}x.set(R,V)}if(_)for(var G=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},W=p?3:1;W>0;W--){if("break"===G(W))break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,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,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=void 0===p||p,g=n.tetherOffset,v=void 0===g?0:g,y=se(t,{boundary:l,rootBoundary:d,padding:h,altBoundary:f}),E=K(t.placement),T=q(t.placement),x=!T,_=W(E),w="x"===_?"y":"x",D=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,M="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,P="number"===typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(D){if(o){var j,H="y"===_?C:O,B="y"===_?A:S,z="y"===_?"height":"width",U=D[_],V=U+y[H],G=U-y[B],$=m?-R[z]/2:0,Z=T===N?I[z]:R[z],Y=T===N?-R[z]:-I[z],X=t.elements.arrow,Q=m&&X?b(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[H],te=J[B],ne=ue(0,I[z],Q[z]),re=x?I[z]/2-$-ne-ee-P.mainAxis:Z-ne-ee-P.mainAxis,ie=x?-I[z]/2+$+ne+te+P.mainAxis:Y+ne+te+P.mainAxis,oe=t.elements.arrow&&k(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,ce=null!=(j=null==L?void 0:L[_])?j:0,le=U+ie-ce,de=ue(m?c(V,U+re-ce-ae):V,U,m?u(G,le):G);D[_]=de,F[_]=de-U}if(s){var fe,he="x"===_?C:O,pe="x"===_?A:S,me=D[w],ge="y"===w?"height":"width",ve=me+y[he],ye=me-y[pe],be=-1!==[C,O].indexOf(E),Ee=null!=(fe=null==L?void 0:L[w])?fe:0,Te=be?ve:me-I[ge]-R[ge]-Ee+P.altAxis,xe=be?me+I[ge]+R[ge]-Ee-P.altAxis:ye,_e=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(Te,me,xe):ue(m?Te:ve,me,m?xe:ye);D[w]=_e,F[w]=_e-me}t.modifiersData[r]=F}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=K(n.placement),u=W(s),c=[O,S].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(e,t){return oe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,I))}(i.padding,n),d=b(o),f="y"===u?C:O,h="y"===u?A:S,p=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],m=a[u]-n.rects.reference[u],g=k(o),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,E=l[f],T=v-d[c]-l[h],x=v/2-d[c]/2+y,_=ue(E,x,T),w=u;n.modifiersData[r]=((t={})[w]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&te(t.elements.popper,r)&&(t.elements.arrow=r)},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,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=se(t,{elementContext:"reference"}),s=se(t,{altBoundary:!0}),u=ce(a,r),c=ce(s,i,o),l=le(u),d=le(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),fe=n(67294);function he(){return(he=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 pe=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},me={arrowShadowColor:pe("--popper-arrow-shadow-color"),arrowSize:pe("--popper-arrow-size","8px"),arrowSizeHalf:pe("--popper-arrow-size-half"),arrowBg:pe("--popper-arrow-bg"),transformOrigin:pe("--popper-transform-origin"),arrowOffset:pe("--popper-arrow-offset")};var ge={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"},ve={scroll:!0,resize:!0};var ye={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},be={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){var t=e.state;Ee(t)},effect:function(e){var t=e.state;return function(){Ee(t)}}},Ee=function(e){var t;e.elements.popper.style.setProperty(me.transformOrigin.var,(t=e.placement,ge[t]))},Te={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;xe(t)}},xe=function(e){var t;if(e.placement){var n=_e(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,i;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=me.arrowSize.varRef,r.height=me.arrowSize.varRef,r.zIndex=-1,r));var o=((i={})[me.arrowSizeHalf.var]="calc("+me.arrowSize.varRef+" / 2)",i[me.arrowOffset.var]="calc("+me.arrowSizeHalf.varRef+" * -1)",i);for(var a in o)e.elements.arrow.style.setProperty(a,o[a])}}},_e=function(e){return e.startsWith("top")?{property:"bottom",value:me.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:me.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:me.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:me.arrowOffset.varRef}:void 0},we={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){var t=e.state;ke(t)},effect:function(e){var t=e.state;return function(){ke(t)}}},ke=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(n)Object.assign(n.style,{transform:"rotate(45deg)",background:me.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},Ce={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Ae={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};var Se=["size","shadowColor","bg","style"];function Oe(e){void 0===e&&(e={});var t=e,n=t.enabled,i=void 0===n||n,o=t.modifiers,a=t.placement,s=void 0===a?"bottom":a,u=t.strategy,c=void 0===u?"absolute":u,l=t.arrowPadding,d=void 0===l?8:l,f=t.eventListeners,h=void 0===f||f,p=t.offset,m=t.gutter,g=void 0===m?8:m,v=t.flip,y=void 0===v||v,b=t.boundary,E=void 0===b?"clippingParents":b,T=t.preventOverflow,x=void 0===T||T,_=t.matchWidth,w=t.direction,k=void 0===w?"ltr":w,C=(0,fe.useRef)(null),A=(0,fe.useRef)(null),S=(0,fe.useRef)(null),O=function(e,t){var n,r;void 0===t&&(t="ltr");var i=(null==(n=Ce[e])?void 0:n[t])||e;return"ltr"===t?i:null!=(r=Ae[e])?r:i}(s,k),D=(0,fe.useRef)((function(){})),I=(0,fe.useCallback)((function(){var e;i&&C.current&&A.current&&(null==D.current||D.current(),S.current=de(C.current,A.current,{placement:O,modifiers:[we,Te,be,he({},ye,{enabled:!!_}),he({name:"eventListeners"},(e=h,"object"===typeof e?{enabled:!0,options:he({},ve,e)}:{enabled:e,options:ve})),{name:"arrow",options:{padding:d}},{name:"offset",options:{offset:null!=p?p:[0,g]}},{name:"flip",enabled:!!y,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:E}}].concat(null!=o?o:[]),strategy:c}),S.current.forceUpdate(),D.current=S.current.destroy)}),[O,i,o,_,h,d,p,g,y,x,E,c]);(0,fe.useEffect)((function(){return function(){var e;C.current||A.current||(null==(e=S.current)||e.destroy(),S.current=null)}}),[]);var N=(0,fe.useCallback)((function(e){C.current=e,I()}),[I]),R=(0,fe.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),he({},e,{ref:(0,r.lq)(N,t)})}),[N]),M=(0,fe.useCallback)((function(e){A.current=e,I()}),[I]),P=(0,fe.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),he({},e,{ref:(0,r.lq)(M,t),style:he({},e.style,{position:c,minWidth:"max-content",inset:"0 auto auto 0"})})}),[c,M]),L=(0,fe.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e;return n.size,n.shadowColor,n.bg,n.style,he({},function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,Se),{ref:t,"data-popper-arrow":"",style:De(e)})}),[]),F=(0,fe.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),he({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update:function(){var e;null==(e=S.current)||e.update()},forceUpdate:function(){var e;null==(e=S.current)||e.forceUpdate()},transformOrigin:me.transformOrigin.varRef,referenceRef:N,popperRef:M,getPopperProps:P,getArrowProps:L,getArrowInnerProps:F,getReferenceProps:R}}function De(e){var t=e.size,n=e.shadowColor,r=e.bg,i=he({},e.style,{position:"absolute"});return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}},11391:function(e,t,n){"use strict";n.d(t,{Ph:function(){return g}});var r=n(79762),i=n(105),o=n(94244),a=n(44592),s=n(38554),u=n.n(s),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)}function d(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var f=["children","placeholder","className"],h=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize","isFullWidth"],p=["children"],m=(0,i.Gp)((function(e,t){var n=e.children,r=e.placeholder,o=e.className,s=d(e,f);return c.createElement(i.m$.select,l({},s,{ref:t,className:(0,a.cx)("chakra-select",o)}),r&&c.createElement("option",{value:""},r),n)}));a.Ts&&(m.displayName="SelectField");var g=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Select",e),s=(0,i.Lr)(e),f=s.rootProps,p=s.placeholder,g=s.icon,v=s.color,y=s.height,E=s.h,T=s.minH,x=s.minHeight,_=s.iconColor,w=s.iconSize;s.isFullWidth;var k=d(s,h),C=(0,a.Vl)(k,o.oE),A=C[0],S=C[1],O=(0,r.useFormControl)(S),D={width:"100%",height:"fit-content",position:"relative",color:v},I=u()({paddingEnd:"2rem"},n.field,{_focus:{zIndex:"unset"}});return c.createElement(i.m$.div,l({className:"chakra-select__wrapper",__css:D},A,f),c.createElement(m,l({ref:t,height:null!=E?E:y,minH:null!=T?T:x,placeholder:p},O,{__css:I}),e.children),c.createElement(b,l({"data-disabled":(0,a.PB)(O.disabled)},(_||v)&&{color:_||v},{__css:n.icon},w&&{fontSize:w}),g))}));a.Ts&&(g.displayName="Select");var v=function(e){return c.createElement("svg",l({viewBox:"0 0 24 24"},e),c.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},y=(0,i.m$)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),b=function(e){var t=e.children,n=void 0===t?c.createElement(v,null):t,r=d(e,p),i=c.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return c.createElement(y,l({},r,{className:"chakra-select__icon-wrapper"}),c.isValidElement(n)?i:null)};a.Ts&&(b.displayName="SelectIcon")},80918:function(e,t,n){"use strict";n.d(t,{iR:function(){return F},Ms:function(){return B},gs:function(){return j},Uj:function(){return H}});var r=n(52829),i=n(105),o=n(44592),a=n(70580),s=n(67294),u=n(78698),c=n(97375);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){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function f(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return"vertical"===t?n:r}var h={width:0,height:0};function p(e){var t=e.orientation,n=e.thumbPercents,r=e.thumbRects,i=e.isReversed,o="vertical"===t?r.reduce((function(e,t){return e.height>t.height?e:t}),h):r.reduce((function(e,t){return e.width>t.width?e:t}),h),a=l({position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},f({orientation:t,vertical:{paddingLeft:o.width/2,paddingRight:o.width/2},horizontal:{paddingTop:o.height/2,paddingBottom:o.height/2}})),s=l({position:"absolute"},f({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})),u=1===n.length,c=[0,i?100-n[0]:n[0]],d=u?c:n,p=d[0];!u&&i&&(p=100-p);var m=Math.abs(d[d.length-1]-d[0]);return{trackStyle:s,innerTrackStyle:l({},s,f({orientation:t,vertical:i?{height:m+"%",top:p+"%"}:{height:m+"%",bottom:p+"%"},horizontal:i?{width:m+"%",right:p+"%"}:{width:m+"%",left:p+"%"}})),rootStyle:a,getThumbStyle:function(e){return l({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none"},f({orientation:t,vertical:{bottom:"calc("+n[e]+"% - "+r[e].height/2+"px)"},horizontal:{left:"calc("+n[e]+"% - "+r[e].width/2+"px)"}}))}}}function m(e){var t=e.isReversed,n=e.direction,r=e.orientation;return"ltr"===n||"vertical"===r?t:!t}var g=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange","minStepsBetweenThumbs"],v=["index"],y=["value"],b=["index"];function E(e){var t=e.min,n=void 0===t?0:t,i=e.max,a=void 0===i?100:i,h=e.onChange,E=e.value,x=e.defaultValue,_=e.isReversed,w=e.direction,k=void 0===w?"ltr":w,C=e.orientation,A=void 0===C?"horizontal":C,S=e.id,O=e.isDisabled,D=e.isReadOnly,I=e.onChangeStart,N=e.onChangeEnd,R=e.step,M=void 0===R?1:R,P=e.getAriaValueText,L=e["aria-valuetext"],F=e["aria-label"],j=e["aria-labelledby"],H=e.name,B=e.focusThumbOnChange,z=void 0===B||B,U=e.minStepsBetweenThumbs,V=void 0===U?0:U,G=d(e,g),K=(0,u.u)(I),q=(0,u.u)(N),W=(0,u.u)(P),$=m({isReversed:_,direction:k,orientation:A}),Z=(0,c.Tx)({value:E,defaultValue:null!=x?x:[25,75],onChange:h}),Y=Z[0],X=Z[1];if(!Array.isArray(Y))throw new TypeError("[range-slider] You passed an invalid value for `value` or `defaultValue`, expected `Array` but got `"+typeof Y+"`");var Q=(0,c.kt)(),J=Q[0],ee=Q[1],te=(0,c.kt)(),ne=te[0],re=te[1],ie=(0,s.useState)(-1),oe=ie[0],ae=ie[1],se=(0,s.useRef)(null),ue=!(O||D),ce=(0,s.useRef)(Y),le=Y.map((function(e){return(0,o.HU)(e,n,a)})),de=(0,c.II)(le),fe=T(le,n,a,V*M),he=le.map((function(e){return a-e+n})),pe=($?he:le).map((function(e){return(0,o.Rg)(e,n,a)})),me="vertical"===A,ge=(0,s.useState)(Array.from({length:le.length}).map((function(){return{width:0,height:0}}))),ve=ge[0],ye=ge[1];(0,s.useEffect)((function(){var e;if(Te.current){var t=Array.from(null==(e=Te.current)?void 0:e.querySelectorAll("[role=slider]")).map((function(e){return{width:e.offsetWidth,height:e.offsetHeight}}));t.length&&ye(t)}}),[]);var be,Ee=(0,s.useRef)(null),Te=(0,s.useRef)(null),xe=(0,c.Me)(S),_e={root:"slider-root-"+(be=xe),getThumb:function(e){return"slider-thumb-"+be+"-"+e},getInput:function(e){return"slider-input-"+be+"-"+e},track:"slider-track-"+be,innerTrack:"slider-filled-track-"+be,getMarker:function(e){return"slider-marker-"+be+"-"+e},output:"slider-output-"+be},we=(0,s.useCallback)((function(e){var t,r;if(Ee.current){se.current="pointer";var i=Ee.current.getBoundingClientRect(),s=null!=(t=null==(r=e.touches)?void 0:r[0])?t:e,u=s.clientX,c=s.clientY,l=(me?i.bottom-c:u-i.left)/(me?i.height:i.width);return $&&(l=1-l),(0,o.WS)(l,n,a)}}),[me,$,a,n]),ke=(a-n)/10,Ce=M||(a-n)/100,Ae=(0,s.useMemo)((function(){return{setValueAtIndex:function(e,t){if(ue){var n=fe[e];t=parseFloat((0,o.WP)(t,n.min,Ce)),t=(0,o.HU)(t,n.min,n.max);var r=[].concat(le);r[e]=t,X(r)}},setActiveIndex:ae,stepUp:function(e,t){void 0===t&&(t=Ce);var n=le[e],r=$?n-t:n+t;Ae.setValueAtIndex(e,r)},stepDown:function(e,t){void 0===t&&(t=Ce);var n=le[e],r=$?n+t:n-t;Ae.setValueAtIndex(e,r)},reset:function(){return X(ce.current)}}}),[Ce,le,$,X,ue,fe]),Se=(0,s.useCallback)((function(e){var t={ArrowRight:function(){return Ae.stepUp(oe)},ArrowUp:function(){return Ae.stepUp(oe)},ArrowLeft:function(){return Ae.stepDown(oe)},ArrowDown:function(){return Ae.stepDown(oe)},PageUp:function(){return Ae.stepUp(oe,ke)},PageDown:function(){return Ae.stepDown(oe,ke)},Home:function(){var e=fe[oe].min;Ae.setValueAtIndex(oe,e)},End:function(){var e=fe[oe].max;Ae.setValueAtIndex(oe,e)}}[(0,o.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),se.current="keyboard")}),[Ae,oe,ke,fe]),Oe=(0,s.useMemo)((function(){return p({isReversed:$,orientation:A,thumbRects:ve,thumbPercents:pe})}),[$,A,pe,ve]),De=Oe.getThumbStyle,Ie=Oe.rootStyle,Ne=Oe.trackStyle,Re=Oe.innerTrackStyle,Me=(0,s.useCallback)((function(e){var t=null!=e?e:oe;if(-1!==t&&z){var n,r=_e.getThumb(t),i=null==(n=Te.current)?void 0:n.ownerDocument.getElementById(r);i&&setTimeout((function(){return(0,o.T_)(i)}))}}),[z,oe,_e]);(0,c.rf)((function(){"keyboard"===se.current&&(null==q||q(de.current))}),[le,q]);(0,c.PO)(Te,{onPanSessionStart:function(e){ue&&(ee.on(),function(e){var t=we(e)||0,n=le.map((function(e){return Math.abs(e-t)})),r=Math.min.apply(Math,n),i=n.indexOf(r),o=n.filter((function(e){return e===r}));o.length>1&&t>le[i]&&(i=i+o.length-1),ae(i),Ae.setValueAtIndex(i,t),Me(i)}(e),null==K||K(de.current))},onPanSessionEnd:function(){ue&&(ee.off(),null==q||q(de.current))},onPan:function(e){ue&&function(e){if(-1!=oe){var t=we(e)||0;ae(oe),Ae.setValueAtIndex(oe,t),Me(oe)}}(e)}});var Pe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,G,{id:_e.root,ref:(0,r.lq)(t,Te),tabIndex:-1,"aria-disabled":(0,o.Qm)(O),"data-focused":(0,o.PB)(ne),style:l({},e.style,Ie)})}),[G,O,ne,Ie,_e]),Le=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,Ee),id:_e.track,"data-disabled":(0,o.PB)(O),style:l({},e.style,Ne)})}),[O,Ne,_e]),Fe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,id:_e.innerTrack,style:l({},e.style,Re)})}),[Re,_e]),je=(0,s.useCallback)((function(e,t){var n;void 0===t&&(t=null);var r=e.index,i=d(e,v),a=le[r];if(null==a)throw new TypeError("[range-slider > thumb] Cannot find value at index `"+r+"`. The `value` or `defaultValue` length is : "+le.length);var s=fe[r];return l({},i,{ref:t,role:"slider",tabIndex:ue?0:void 0,id:_e.getThumb(r),"data-active":(0,o.PB)(J&&oe===r),"aria-valuetext":null!=(n=null==W?void 0:W(a))?n:null==L?void 0:L[r],"aria-valuemin":s.min,"aria-valuemax":s.max,"aria-valuenow":a,"aria-orientation":A,"aria-disabled":(0,o.Qm)(O),"aria-readonly":(0,o.Qm)(D),"aria-label":null==F?void 0:F[r],"aria-labelledby":null!=F&&F[r]||null==j?void 0:j[r],style:l({},e.style,De(r)),onKeyDown:(0,o.v0)(e.onKeyDown,Se),onFocus:(0,o.v0)(e.onFocus,(function(){re.on(),ae(r)})),onBlur:(0,o.v0)(e.onBlur,(function(){re.off(),ae(-1)}))})}),[_e,le,fe,ue,J,oe,W,L,A,O,D,F,j,De,Se,re]),He=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,id:_e.output,htmlFor:le.map((function(e,t){return _e.getThumb(t)})).join(" "),"aria-live":"off"})}),[_e,le]),Be=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e,i=r.value,s=d(r,y),u=!(i<n||i>a),c=i>=le[0]&&i<=le[le.length-1],h=(0,o.Rg)(i,n,a),p=l({position:"absolute",pointerEvents:"none"},f({orientation:A,vertical:{bottom:(h=$?100-h:h)+"%"},horizontal:{left:h+"%"}}));return l({},s,{ref:t,id:_e.getMarker(e.value),role:"presentation","aria-hidden":!0,"data-disabled":(0,o.PB)(O),"data-invalid":(0,o.PB)(!u),"data-highlighted":(0,o.PB)(c),style:l({},e.style,p)})}),[O,$,a,n,A,le,_e]),ze=(0,s.useCallback)((function(e,t){void 0===t&&(t=null);var n=e.index;return l({},d(e,b),{ref:t,id:_e.getInput(n),type:"hidden",value:le[n],name:Array.isArray(H)?H[n]:H+"-"+n})}),[H,le,_e]);return{state:{value:le,isFocused:ne,isDragging:J,getThumbPercent:function(e){return pe[e]},getThumbMinValue:function(e){return fe[e].min},getThumbMaxValue:function(e){return fe[e].max}},actions:Ae,getRootProps:Pe,getTrackProps:Le,getInnerTrackProps:Fe,getThumbProps:je,getMarkerProps:Be,getInputProps:ze,getOutputProps:He}}var T=function(e,t,n,r){return e.map((function(i,o){return{min:0===o?t:e[o-1]+r,max:o===e.length-1?n:e[o+1]-r}}))},x=["getRootProps"],_=(0,r.kr)({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <RangeSlider />"}),w=_[0],k=_[1],C=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Slider",e),r=(0,i.Lr)(e),o=(0,i.Fg)().direction;r.direction=o;var a=E(r),u=a.getRootProps,c=d(a,x),f=s.useMemo((function(){return l({},c,{name:e.name})}),[c,e.name]);return s.createElement(w,{value:f},s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,l({},u({},t),{className:"chakra-slider",__css:n.container}),e.children)))}));C.defaultProps={orientation:"horizontal"},o.Ts&&(C.displayName="RangeSlider");var A=(0,i.Gp)((function(e,t){var n=k(),r=n.getThumbProps,a=n.getInputProps,u=n.name,c=(0,i.yK)(),d=r(e,t);return s.createElement(i.m$.div,l({},d,{className:(0,o.cx)("chakra-slider__thumb",e.className),__css:c.thumb}),d.children,u&&s.createElement("input",a({index:e.index})))}));o.Ts&&(A.displayName="RangeSliderThumb");var S=(0,i.Gp)((function(e,t){var n=k().getTrackProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__track",e.className),__css:r.track,"data-testid":"chakra-range-slider-track"}))}));o.Ts&&(S.displayName="RangeSliderTrack");var O=(0,i.Gp)((function(e,t){var n=k().getInnerTrackProps,r=(0,i.yK)(),o=n(e,t);return s.createElement(i.m$.div,l({},o,{className:"chakra-slider__filled-track",__css:r.filledTrack}))}));o.Ts&&(O.displayName="RangeSliderFilledTrack");var D=(0,i.Gp)((function(e,t){var n=(0,k().getMarkerProps)(e,t);return s.createElement(i.m$.div,l({},n,{className:(0,o.cx)("chakra-slider__marker",e.className)}))}));o.Ts&&(D.displayName="RangeSliderMark");var I=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"];function N(e,t){return t<e?e:e+(t-e)/2}var R=["getInputProps","getRootProps"],M=(0,r.kr)({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <Slider />"}),P=M[0],L=M[1],F=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Slider",e),f=(0,i.Lr)(e),h=(0,i.Fg)().direction;f.direction=h;var g=function(e){var t,n=e.min,i=void 0===n?0:n,f=e.max,h=void 0===f?100:f,g=e.onChange,v=e.value,y=e.defaultValue,b=e.isReversed,E=e.direction,T=void 0===E?"ltr":E,x=e.orientation,_=void 0===x?"horizontal":x,w=e.id,k=e.isDisabled,C=e.isReadOnly,A=e.onChangeStart,S=e.onChangeEnd,O=e.step,D=void 0===O?1:O,R=e.getAriaValueText,M=e["aria-valuetext"],P=e["aria-label"],L=e["aria-labelledby"],F=e.name,j=e.focusThumbOnChange,H=void 0===j||j,B=d(e,I),z=(0,u.u)(A),U=(0,u.u)(S),V=(0,u.u)(R),G=m({isReversed:b,direction:T,orientation:_}),K=(0,c.Tx)({value:v,defaultValue:null!=y?y:N(i,h),onChange:g}),q=K[0],W=K[1],$=(0,c.kt)(),Z=$[0],Y=$[1],X=(0,c.kt)(),Q=X[0],J=X[1],ee=(0,s.useRef)(null),te=!(k||C),ne=(0,o.HU)(q,i,h),re=(0,c.II)(ne),ie=(0,s.useRef)(re.current),oe=G?h-ne+i:ne,ae=(0,o.Rg)(oe,i,h),se="vertical"===_,ue=(0,s.useRef)(null),ce=(0,s.useRef)(null),le=(0,s.useRef)(null),de=(0,c.ZS)(w,"slider-thumb","slider-track"),fe=de[0],he=de[1],pe=(0,s.useCallback)((function(e){var t,n;if(ue.current){ee.current="pointer";var r=(0,a.iz)(ue.current).borderBox,s=null!=(t=null==(n=e.touches)?void 0:n[0])?t:e,u=s.clientX,c=s.clientY,l=(se?r.bottom-c:u-r.left)/(se?r.height:r.width);G&&(l=1-l);var d=(0,o.WS)(l,i,h);return D&&(d=parseFloat((0,o.WP)(d,i,D))),(0,o.HU)(d,i,h)}}),[se,G,h,i,D]),me=(h-i)/10,ge=D||(h-i)/100,ve=(0,s.useCallback)((function(e){te&&(e=parseFloat((0,o.WP)(e,i,ge)),e=(0,o.HU)(e,i,h),W(e))}),[ge,h,i,W,te]),ye=(0,s.useMemo)((function(){return{stepUp:function(e){void 0===e&&(e=ge),ve(G?ne-e:ne+e)},stepDown:function(e){void 0===e&&(e=ge),ve(G?ne+e:ne-e)},reset:function(){return ve(y||0)},stepTo:function(e){return ve(e)}}}),[ve,G,ne,ge,y]),be=(0,s.useCallback)((function(e){var t={ArrowRight:function(){return ye.stepUp()},ArrowUp:function(){return ye.stepUp()},ArrowLeft:function(){return ye.stepDown()},ArrowDown:function(){return ye.stepDown()},PageUp:function(){return ye.stepUp(me)},PageDown:function(){return ye.stepDown(me)},Home:function(){return ve(i)},End:function(){return ve(h)}}[(0,o.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),ee.current="keyboard")}),[ye,ve,h,i,me]),Ee=null!=(t=null==V?void 0:V(ne))?t:M,Te=(0,c.Di)(ce),xe=(0,s.useMemo)((function(){var e,t=null!=(e=null==Te?void 0:Te.borderBox)?e:{width:0,height:0};return p({isReversed:G,orientation:_,thumbRects:[t],thumbPercents:[ae]})}),[G,_,null==Te?void 0:Te.borderBox,ae]),_e=xe.getThumbStyle,we=xe.rootStyle,ke=xe.trackStyle,Ce=xe.innerTrackStyle,Ae=(0,s.useCallback)((function(){ce.current&&H&&setTimeout((function(){return(0,o.T_)(ce.current)}))}),[H]);(0,c.rf)((function(){Ae(),"keyboard"===ee.current&&(null==U||U(re.current))}),[ne,U]);var Se=function(e){var t=pe(e);null!=t&&t!==re.current&&W(t)};(0,c.PO)(le,{onPanSessionStart:function(e){te&&(Y.on(),Ae(),Se(e),null==z||z(re.current))},onPanSessionEnd:function(){te&&(Y.off(),null==U||U(re.current),ie.current=re.current)},onPan:function(e){te&&Se(e)}});var Oe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,B,{ref:(0,r.lq)(t,le),tabIndex:-1,"aria-disabled":(0,o.Qm)(k),"data-focused":(0,o.PB)(Q),style:l({},e.style,we)})}),[B,k,Q,we]),De=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,ue),id:he,"data-disabled":(0,o.PB)(k),style:l({},e.style,ke)})}),[k,he,ke]),Ie=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,style:l({},e.style,Ce)})}),[Ce]),Ne=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,ce),role:"slider",tabIndex:te?0:void 0,id:fe,"data-active":(0,o.PB)(Z),"aria-valuetext":Ee,"aria-valuemin":i,"aria-valuemax":h,"aria-valuenow":ne,"aria-orientation":_,"aria-disabled":(0,o.Qm)(k),"aria-readonly":(0,o.Qm)(C),"aria-label":P,"aria-labelledby":P?void 0:L,style:l({},e.style,_e(0)),onKeyDown:(0,o.v0)(e.onKeyDown,be),onFocus:(0,o.v0)(e.onFocus,J.on),onBlur:(0,o.v0)(e.onBlur,J.off)})}),[te,fe,Z,Ee,i,h,ne,_,k,C,P,L,_e,be,J.on,J.off]),Re=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=!(e.value<i||e.value>h),r=ne>=e.value,a=(0,o.Rg)(e.value,i,h),s=l({position:"absolute",pointerEvents:"none"},function(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return"vertical"===t?n:r}({orientation:_,vertical:{bottom:G?100-a+"%":a+"%"},horizontal:{left:G?100-a+"%":a+"%"}}));return l({},e,{ref:t,role:"presentation","aria-hidden":!0,"data-disabled":(0,o.PB)(k),"data-invalid":(0,o.PB)(!n),"data-highlighted":(0,o.PB)(r),style:l({},e.style,s)})}),[k,G,h,i,_,ne]),Me=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,type:"hidden",value:ne,name:F})}),[F,ne]);return{state:{value:ne,isFocused:Q,isDragging:Z},actions:ye,getRootProps:Oe,getTrackProps:De,getInnerTrackProps:Ie,getThumbProps:Ne,getMarkerProps:Re,getInputProps:Me}}(f),v=g.getInputProps,y=g.getRootProps,b=d(g,R),E=y(),T=v({},t);return s.createElement(P,{value:b},s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,l({},E,{className:(0,o.cx)("chakra-slider",e.className),__css:n.container}),e.children,s.createElement("input",T))))}));F.defaultProps={orientation:"horizontal"},o.Ts&&(F.displayName="Slider");var j=(0,i.Gp)((function(e,t){var n=L().getThumbProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__thumb",e.className),__css:r.thumb}))}));o.Ts&&(j.displayName="SliderThumb");var H=(0,i.Gp)((function(e,t){var n=L().getTrackProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__track",e.className),__css:r.track}))}));o.Ts&&(H.displayName="SliderTrack");var B=(0,i.Gp)((function(e,t){var n=L().getInnerTrackProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__filled-track",e.className),__css:r.filledTrack}))}));o.Ts&&(B.displayName="SliderFilledTrack");var z=(0,i.Gp)((function(e,t){var n=(0,L().getMarkerProps)(e,t);return s.createElement(i.m$.div,l({},n,{className:(0,o.cx)("chakra-slider__marker",e.className)}))}));o.Ts&&(z.displayName="SliderMark")},88696:function(e,t,n){"use strict";n.d(t,{r:function(){return I}});var r=n(44592),i=n(52829),o=n(67294),a=n(97375),s=n(78698),u=n(105),c=n(99860),l=n(53869),d=n(1358);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 h=(0,i.kr)({name:"CheckboxGroupContext",strict:!1}),p=(h[0],h[1]);function m(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}r.Ts;var g=["isIndeterminate","isChecked"],v="custom"in c.E?c.E.custom(u.m$.svg):(0,c.E)(u.m$.svg),y=function(e){return o.createElement(v,f({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),o.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},b=function(e){return o.createElement(v,f({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),o.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},E=function(e){var t=e.open,n=e.children;return o.createElement(l.M,{initial:!1},t&&o.createElement(c.E.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},n))},T=function(e){var t=e.isIndeterminate,n=e.isChecked,r=m(e,g),i=t?b:y;return o.createElement(E,{open:n||t},o.createElement(i,r))},x=["defaultIsChecked","defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isIndeterminate","isInvalid","name","value","id","onBlur","onFocus","tabIndex","aria-label","aria-labelledby","aria-invalid","aria-describedby"];function _(e){void 0===e&&(e={});var t=e,n=t.defaultIsChecked,u=t.defaultChecked,c=void 0===u?n:u,l=t.isChecked,h=t.isFocusable,p=t.isDisabled,g=t.isReadOnly,v=t.isRequired,y=t.onChange,b=t.isIndeterminate,E=t.isInvalid,T=t.name,_=t.value,k=t.id,C=t.onBlur,A=t.onFocus,S=t.tabIndex,O=void 0===S?void 0:S,D=t["aria-label"],I=t["aria-labelledby"],N=t["aria-invalid"],R=t["aria-describedby"],M=m(t,x),P=(0,s.u)(y),L=(0,s.u)(C),F=(0,s.u)(A),j=(0,a.kt)(),H=j[0],B=j[1],z=(0,a.kt)(),U=z[0],V=z[1],G=(0,a.kt)(),K=G[0],q=G[1],W=(0,o.useRef)(null),$=(0,o.useState)(!0),Z=$[0],Y=$[1],X=(0,o.useState)(!!c),Q=X[0],J=X[1],ee=(0,a.pY)(l,Q),te=ee[0],ne=ee[1];(0,r.ZK)({condition:!!n,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 re=(0,o.useCallback)((function(e){g||p?e.preventDefault():(te||J(ne?e.target.checked:!!b||e.target.checked),null==P||P(e))}),[g,p,ne,te,b,P]);(0,s.a)((function(){W.current&&(W.current.indeterminate=Boolean(b))}),[b]),(0,a.rf)((function(){p&&B.off()}),[p,B]);var ie=p&&!h,oe=(0,o.useCallback)((function(e){" "===e.key&&q.on()}),[q]),ae=(0,o.useCallback)((function(e){" "===e.key&&q.off()}),[q]);(0,s.a)((function(){W.current&&(W.current.checked!==ne&&J(W.current.checked))}),[W.current]);var se=(0,o.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return f({},e,{ref:t,"data-active":(0,r.PB)(K),"data-hover":(0,r.PB)(U),"data-checked":(0,r.PB)(ne),"data-focus":(0,r.PB)(H),"data-indeterminate":(0,r.PB)(b),"data-disabled":(0,r.PB)(p),"data-invalid":(0,r.PB)(E),"data-readonly":(0,r.PB)(g),"aria-hidden":!0,onMouseDown:(0,r.v0)(e.onMouseDown,(function(e){e.preventDefault(),q.on()})),onMouseUp:(0,r.v0)(e.onMouseUp,q.off),onMouseEnter:(0,r.v0)(e.onMouseEnter,V.on),onMouseLeave:(0,r.v0)(e.onMouseLeave,V.off)})}),[K,ne,p,H,U,b,E,g,q,V.off,V.on]),ue=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),f({},M,e,{ref:(0,i.lq)(t,(function(e){e&&Y("LABEL"===e.tagName)})),onClick:(0,r.v0)(e.onClick,(function(){var e;Z||(null==(e=W.current)||e.click(),(0,r.T_)(W.current,{nextTick:!0}))})),"data-disabled":(0,r.PB)(p),"data-checked":(0,r.PB)(ne),"data-invalid":(0,r.PB)(E)})}),[M,p,ne,E,Z]),ce=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),f({},e,{ref:(0,i.lq)(W,t),type:"checkbox",name:T,value:_,id:k,tabIndex:O,onChange:(0,r.v0)(e.onChange,re),onBlur:(0,r.v0)(e.onBlur,L,B.off),onFocus:(0,r.v0)(e.onFocus,F,B.on),onKeyDown:(0,r.v0)(e.onKeyDown,oe),onKeyUp:(0,r.v0)(e.onKeyUp,ae),required:v,checked:ne,disabled:ie,readOnly:g,"aria-label":D,"aria-labelledby":I,"aria-invalid":N?Boolean(N):E,"aria-describedby":R,"aria-disabled":p,style:d.NL})}),[T,_,k,re,B.off,B.on,L,F,oe,ae,v,ne,ie,g,D,I,N,E,R,p,O]),le=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),f({},e,{ref:t,onMouseDown:(0,r.v0)(e.onMouseDown,w),onTouchStart:(0,r.v0)(e.onTouchStart,w),"data-disabled":(0,r.PB)(p),"data-checked":(0,r.PB)(ne),"data-invalid":(0,r.PB)(E)})}),[ne,p,E]);return{state:{isInvalid:E,isFocused:H,isChecked:ne,isActive:K,isHovered:U,isIndeterminate:b,isDisabled:p,isReadOnly:g,isRequired:v},getRootProps:ue,getCheckboxProps:se,getInputProps:ce,getLabelProps:le,htmlProps:M}}function w(e){e.preventDefault(),e.stopPropagation()}var k=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange"],C=(0,u.m$)("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),A=(0,u.m$)("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative",_disabled:{cursor:"not-allowed"}}}),S=(0,u.Gp)((function(e,t){var n=p(),i=f({},n,e),a=(0,u.jC)("Checkbox",i),s=(0,u.Lr)(e),c=s.spacing,l=void 0===c?"0.5rem":c,d=s.className,h=s.children,g=s.iconColor,v=s.iconSize,y=s.icon,b=void 0===y?o.createElement(T,null):y,E=s.isChecked,x=s.isDisabled,w=void 0===x?null==n?void 0:n.isDisabled:x,S=s.onChange,O=m(s,k),D=E;null!=n&&n.value&&s.value&&(D=n.value.includes(s.value));var I=S;null!=n&&n.onChange&&s.value&&(I=(0,r.PP)(n.onChange,S));var N=_(f({},O,{isDisabled:w,isChecked:D,onChange:I})),R=N.state,M=N.getInputProps,P=N.getCheckboxProps,L=N.getLabelProps,F=N.getRootProps,j=o.useMemo((function(){return f({opacity:R.isChecked||R.isIndeterminate?1:0,transform:R.isChecked||R.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:v,color:g},a.icon)}),[g,v,R.isChecked,R.isIndeterminate,a.icon]),H=o.cloneElement(b,{__css:j,isIndeterminate:R.isIndeterminate,isChecked:R.isChecked});return o.createElement(A,f({__css:a.container,className:(0,r.cx)("chakra-checkbox",d)},F()),o.createElement("input",f({className:"chakra-checkbox__input"},M({},t))),o.createElement(C,f({__css:a.control,className:"chakra-checkbox__control"},P()),H),h&&o.createElement(u.m$.span,f({className:"chakra-checkbox__label"},L(),{__css:f({marginStart:l},a.label)}),h))}));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)}r.Ts&&(S.displayName="Checkbox");var D=["spacing","children"],I=(0,u.Gp)((function(e,t){var n=(0,u.jC)("Switch",e),i=(0,u.Lr)(e),a=i.spacing,s=void 0===a?"0.5rem":a,c=i.children,l=_(function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(i,D)),d=l.state,f=l.getInputProps,h=l.getCheckboxProps,p=l.getRootProps,m=l.getLabelProps,g=o.useMemo((function(){return O({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:"normal"},n.container)}),[n.container]),v=o.useMemo((function(){return O({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)}),[n.track]),y=o.useMemo((function(){return O({userSelect:"none",marginStart:s},n.label)}),[s,n.label]);return o.createElement(u.m$.label,O({},p(),{className:(0,r.cx)("chakra-switch",e.className),__css:g}),o.createElement("input",O({className:"chakra-switch__input"},f({},t))),o.createElement(u.m$.span,O({},h(),{className:"chakra-switch__track",__css:v}),o.createElement(u.m$.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":(0,r.PB)(d.isChecked),"data-hover":(0,r.PB)(d.isHovered)})),c&&o.createElement(u.m$.span,O({className:"chakra-switch__label"},m(),{__css:y}),c))}));r.Ts&&(I.displayName="Switch")},96356:function(e,t,n){"use strict";n.r(t),n.d(t,{Tag:function(){return c},TagCloseButton:function(){return p},TagLabel:function(){return l},TagLeftIcon:function(){return d},TagRightIcon:function(){return f}});var r=n(10894),i=n(105),o=n(44592),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=["isDisabled","children"],c=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Tag",e),r=(0,i.Lr)(e),o=s({display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%"},n.container);return a.createElement(i.Fo,{value:n},a.createElement(i.m$.span,s({ref:t},r,{__css:o})))}));o.Ts&&(c.displayName="Tag");var l=(0,i.Gp)((function(e,t){var n=(0,i.yK)();return a.createElement(i.m$.span,s({ref:t,isTruncated:!0},e,{__css:n.label}))}));o.Ts&&(l.displayName="TagLabel");var d=(0,i.Gp)((function(e,t){return a.createElement(r.JO,s({ref:t,verticalAlign:"top",marginEnd:"0.5rem"},e))}));o.Ts&&(d.displayName="TagLeftIcon");var f=(0,i.Gp)((function(e,t){return a.createElement(r.JO,s({ref:t,verticalAlign:"top",marginStart:"0.5rem"},e))}));o.Ts&&(f.displayName="TagRightIcon");var h=function(e){return a.createElement(r.JO,s({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"}))};o.Ts&&(h.displayName="TagCloseIcon");var p=function(e){var t=e.isDisabled,n=e.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,u),o=s({display:"flex",alignItems:"center",justifyContent:"center",outline:"0"},(0,i.yK)().closeButton);return a.createElement(i.m$.button,s({},r,{type:"button","aria-label":"close",disabled:t,__css:o}),n||a.createElement(h,null))};o.Ts&&(p.displayName="TagCloseButton")},47398:function(e,t,n){"use strict";n.d(t,{u:function(){return E}});var r=n(66197),i=n(46871),o=n(105),a=n(44592),s=n(1358),u=n(99860),c=n(53869),l=n(67294),d=n(97375),f=n(78698),h=n(52829);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 m(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var g={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]}}}},v=["openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset","direction"];var y=["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps"],b=(0,o.m$)(u.E.div),E=(0,o.Gp)((function(e,t){var n=(0,o.mq)("Tooltip",e),u=(0,o.Lr)(e),E=(0,o.Fg)(),T=u.children,x=u.label,_=u.shouldWrapChildren,w=u["aria-label"],k=u.hasArrow,C=u.bg,A=u.portalProps,S=m(u,y);C&&(n.bg=C,n[r.j.arrowBg.var]=(0,a.K1)(E,"colors",C));var O,D=function(e){void 0===e&&(e={});var t=e,n=t.openDelay,i=void 0===n?0:n,o=t.closeDelay,s=void 0===o?0:o,u=t.closeOnClick,c=void 0===u||u,g=t.closeOnMouseDown,y=t.onOpen,b=t.onClose,E=t.placement,T=t.id,x=t.isOpen,_=t.defaultIsOpen,w=t.arrowSize,k=void 0===w?10:w,C=t.arrowShadowColor,A=t.arrowPadding,S=t.modifiers,O=t.isDisabled,D=t.gutter,I=t.offset,N=t.direction,R=m(t,v),M=(0,d.qY)({isOpen:x,defaultIsOpen:_,onOpen:y,onClose:b}),P=M.isOpen,L=M.onOpen,F=M.onClose,j=(0,r.D)({enabled:P,placement:E,arrowPadding:A,modifiers:S,gutter:D,offset:I,direction:N}),H=j.referenceRef,B=j.getPopperProps,z=j.getArrowInnerProps,U=j.getArrowProps,V=(0,d.Me)(T,"tooltip"),G=l.useRef(null),K=l.useRef(),q=l.useRef(),W=l.useCallback((function(){O||(K.current=window.setTimeout(L,i))}),[O,L,i]),$=l.useCallback((function(){K.current&&clearTimeout(K.current),q.current=window.setTimeout(F,s)}),[s,F]),Z=l.useCallback((function(){c&&$()}),[c,$]),Y=l.useCallback((function(){g&&$()}),[g,$]),X=l.useCallback((function(e){P&&"Escape"===e.key&&$()}),[P,$]);(0,f.b)("keydown",X),l.useEffect((function(){return function(){clearTimeout(K.current),clearTimeout(q.current)}}),[]),(0,f.b)("mouseleave",$,(function(){return G.current}));var Q=l.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:(0,h.lq)(G,t,H),onMouseEnter:(0,a.v0)(e.onMouseEnter,W),onClick:(0,a.v0)(e.onClick,Z),onMouseDown:(0,a.v0)(e.onMouseDown,Y),onFocus:(0,a.v0)(e.onFocus,W),onBlur:(0,a.v0)(e.onBlur,$),"aria-describedby":P?V:void 0})}),[W,$,Y,P,V,Z,H]),J=l.useCallback((function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),B(p({},e,{style:p({},e.style,(n={},n[r.j.arrowSize.var]=k?(0,a.px)(k):void 0,n[r.j.arrowShadowColor.var]=C,n))}),t)}),[B,k,C]),ee=l.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({ref:t},R,e,{id:V,role:"tooltip",style:p({},e.style,{position:"relative",transformOrigin:r.j.transformOrigin.varRef})})}),[R,V]);return{isOpen:P,show:W,hide:$,getTriggerProps:Q,getTooltipProps:ee,getTooltipPositionerProps:J,getArrowProps:U,getArrowInnerProps:z}}(p({},S,{direction:E.direction}));if((0,a.HD)(T)||_)O=l.createElement(o.m$.span,p({tabIndex:0},D.getTriggerProps()),T);else{var I=l.Children.only(T);O=l.cloneElement(I,D.getTriggerProps(I.props,I.ref))}var N=!!w,R=D.getTooltipProps({},t),M=N?(0,a.CE)(R,["role","id"]):R,P=(0,a.ei)(R,["role","id"]);return x?l.createElement(l.Fragment,null,O,l.createElement(c.M,null,D.isOpen&&l.createElement(i.h_,A,l.createElement(o.m$.div,p({},D.getTooltipPositionerProps(),{__css:{zIndex:n.zIndex,pointerEvents:"none"}}),l.createElement(b,p({variants:g},M,{initial:"exit",animate:"enter",exit:"exit",__css:n}),x,N&&l.createElement(s.TX,P,w),k&&l.createElement(o.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},l.createElement(o.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))))))):l.createElement(l.Fragment,null,T)}));a.Ts&&(E.displayName="Tooltip")},37496:function(e,t,n){"use strict";n.d(t,{UO:function(){return _},Mi:function(){return R},uf:function(){return k},Qh:function(){return S},Xc:function(){return P}});var r=n(44592),i=n(38554),o=n.n(i),a=n(53869),s=n(99860),u=n(67294);function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}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={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},f={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},h={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},p={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},m={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function g(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":return h;case"left":return f;case"bottom":return m;case"top":return p;default:return h}}var v={enter:{duration:.2,ease:d.easeOut},exit:{duration:.1,ease:d.easeIn}},y=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter})},b=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.exit})},E=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],T={exit:{height:{duration:.2,ease:d.ease},opacity:{duration:.3,ease:d.ease}},enter:{height:{duration:.3,ease:d.ease},opacity:{duration:.4,ease:d.ease}}},x={exit:function(e){var t,n,r=e.animateOpacity,i=e.startingHeight,o=e.transition,a=e.transitionEnd,s=e.delay;return l({},r&&{opacity:(n=i,null!=n&&parseInt(n.toString(),10)>0?1:0)},{overflow:"hidden",height:i,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:b(T.exit,s)})},enter:function(e){var t,n=e.animateOpacity,r=e.endingHeight,i=e.transition,o=e.transitionEnd,a=e.delay;return l({},n&&{opacity:1},{height:r,transitionEnd:null==o?void 0:o.enter,transition:null!=(t=null==i?void 0:i.enter)?t:y(T.enter,a)})}},_=u.forwardRef((function(e,t){var n=e.in,i=e.unmountOnExit,d=e.animateOpacity,f=void 0===d||d,h=e.startingHeight,p=void 0===h?0:h,m=e.endingHeight,g=void 0===m?"auto":m,v=e.style,y=e.className,b=e.transition,T=e.transitionEnd,_=c(e,E),w=u.useState(!1),k=w[0],C=w[1];u.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,r.ZK)({condition:Boolean(p>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var A=parseFloat(p.toString())>0,S={startingHeight:p,endingHeight:g,animateOpacity:f,transition:k?b:{enter:{duration:0}},transitionEnd:o()(T,{enter:{overflow:"initial"},exit:i?void 0:{display:A?"block":"none"}})},O=!i||n,D=n||i?"enter":"exit";return u.createElement(a.M,{initial:!1,custom:S},O&&u.createElement(s.E.div,l({ref:t},_,{className:(0,r.cx)("chakra-collapse",y),style:l({overflow:"hidden",display:"block"},v),custom:S,variants:x,initial:!!i&&"exit",animate:D,exit:"exit"})))}));r.Ts&&(_.displayName="Collapse");var w=["unmountOnExit","in","className","transition","transitionEnd","delay"],k={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,i=n.transitionEnd,o=n.delay;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:y(v.enter,o),transitionEnd:null==i?void 0:i.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,i=n.transitionEnd,o=n.delay;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:b(v.exit,o),transitionEnd:null==i?void 0:i.exit}}}},C=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.className,d=e.transition,f=e.transitionEnd,h=e.delay,p=c(e,w),m=i||n?"enter":"exit",g=!n||i&&n,v={transition:d,transitionEnd:f,delay:h};return u.createElement(a.M,{custom:v},g&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-fade",o),custom:v},k,{animate:m},p)))}));r.Ts&&(C.displayName="Fade");var A=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],S={initial:"exit",animate:"enter",exit:"exit",variants:{exit:function(e){var t,n=e.reverse,r=e.initialScale,i=e.transition,o=e.transitionEnd,a=e.delay;return l({opacity:0},n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:l({scale:r},null==o?void 0:o.exit)},{transition:null!=(t=null==i?void 0:i.exit)?t:b(v.exit,a)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,i=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:y(v.enter,i),transitionEnd:null==n?void 0:n.enter}}}},O=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.reverse,d=void 0===o||o,f=e.initialScale,h=void 0===f?.95:f,p=e.className,m=e.transition,g=e.transitionEnd,v=e.delay,y=c(e,A),b=!n||i&&n,E=i||n?"enter":"exit",T={initialScale:h,reverse:d,transition:m,transitionEnd:g,delay:v};return u.createElement(a.M,{custom:T},b&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",p)},S,{animate:E,custom:T},y)))}));r.Ts&&(O.displayName="ScaleFade");var D=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],I={exit:{duration:.15,ease:d.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},N={exit:function(e){var t,n=e.direction,r=e.transition,i=e.transitionEnd,o=e.delay;return l({},g({direction:n}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:b(I.exit,o),transitionEnd:null==i?void 0:i.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,i=e.transition,o=e.delay;return l({},g({direction:n}).enter,{transition:null!=(t=null==i?void 0:i.enter)?t:y(I.enter,o),transitionEnd:null==r?void 0:r.enter})}},R=u.forwardRef((function(e,t){var n=e.direction,i=void 0===n?"right":n,o=e.style,d=e.unmountOnExit,f=e.in,h=e.className,p=e.transition,m=e.transitionEnd,v=e.delay,y=c(e,D),b=g({direction:i}),E=Object.assign({position:"fixed"},b.position,o),T=!d||f&&d,x=f||d?"enter":"exit",_={transitionEnd:m,transition:p,direction:i,delay:v};return u.createElement(a.M,{custom:_},T&&u.createElement(s.E.div,l({},y,{ref:t,initial:"exit",className:(0,r.cx)("chakra-slide",h),animate:x,exit:"exit",custom:_,variants:N,style:E})))}));r.Ts&&(R.displayName="Slide");var M=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],P={initial:"initial",animate:"enter",exit:"exit",variants:{initial:function(e){var t,n=e.offsetX,r=e.offsetY,i=e.transition,o=e.transitionEnd,a=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==i?void 0:i.exit)?t:b(v.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,i=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:y(v.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,i=e.transition,o=e.transitionEnd,a=e.reverse,s=e.delay,u={x:r,y:n};return l({opacity:0,transition:null!=(t=null==i?void 0:i.exit)?t:b(v.exit,s)},a?l({},u,{transitionEnd:null==o?void 0:o.exit}):{transitionEnd:l({},u,null==o?void 0:o.exit)})}}},L=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.reverse,d=void 0===o||o,f=e.className,h=e.offsetX,p=void 0===h?0:h,m=e.offsetY,g=void 0===m?8:m,v=e.transition,y=e.transitionEnd,b=e.delay,E=c(e,M),T=!n||i&&n,x=i||n?"enter":"exit",_={offsetX:p,offsetY:g,reverse:d,transition:v,transitionEnd:y,delay:b};return u.createElement(a.M,{custom:_},T&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",f),custom:_},P,{animate:x},E)))}));r.Ts&&(L.displayName="SlideFade")},1358:function(e,t,n){"use strict";n.d(t,{TX:function(){return a},NL:function(){return o}});var r=n(105),i=n(44592),o={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:o});i.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:o});i.Ts&&(s.displayName="VisuallyHiddenInput")},46600:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});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)-.*))$/,i=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}))},27549:function(e,t,n){"use strict";n.d(t,{_7:function(){return g}});var r=n(67294);var i=function(e){(0,r.useEffect)((function(){e()}),[])};var o=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;function s(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 u(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){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"===typeof e)return s(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)?s(e,t):void 0}}(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.")}()}var c=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t};function l(e,t){for(var n=0;n<e.length&&n<t.length;n++)if(!c(t[n],e[n]))return!1;return!0}var d=function(e){var t=(0,r.useRef)(e);return t.current=e,t};var f=function(e){var t=d(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 h(e){return(h="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 i,o=!1,s=!0;"number"===typeof n?i=n:"object"===h(n)&&n&&("wait"in n&&(i=+n.wait),"leading"in n&&(o=!!n.leading),"trailing"in n&&(s=!!n.trailing));var u=(0,r.useRef)(),c=(0,r.useRef)(),l=(0,r.useRef)(),d=(0,r.useRef)(),p=(0,r.useRef)(),m=(0,r.useRef)(),g=f((function(){var n=Date.now(),r=n-p.current,o=n-m.current;if(d.current&&clearTimeout(d.current),r>=i||e&&o>=i)d.current=void 0,p.current=void 0,s&&c.current&&(m.current=n,l.current=t.apply(u.current,c.current));else{var a=i-r,f=i-o,h=e?Math.min(a,f):a;d.current=setTimeout(g,h)}})),v=f((function(){var e=Date.now(),n=p.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,p.current=e,(void 0===n||e-n>=i)&&void 0===d.current&&(m.current=e,d.current=setTimeout(g,i),o&&(l.current=t.apply(u.current,c.current))),l.current})),y=(0,r.useCallback)((function(){void 0!==d.current&&(clearTimeout(d.current),d.current=void 0),u.current=void 0,c.current=void 0,p.current=void 0,m.current=void 0}),[]),b=f((function(){return void 0!==d.current&&c.current&&(l.current=t.apply(u.current,c.current),y()),l.current}));return a(y),[v,{flush:b,cancel:y}]}};var m=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p(e);return function(e,n){var i=d(e),a=u((0,r.useState)(e),2),s=a[0],l=a[1],h=(0,r.useRef)(s);function p(e){c(h.current,e)||(h.current=e,l(e))}var m=u(t(p,n),2),g=m[0],v=m[1].cancel,y=f((function(e){v(),p(arguments.length>0?e:i.current)}));return o((function(){g(e)}),[e]),[s,{flush:y,cancel:v}]}};m(!1),m(!0),p(!1),p(!0);"undefined"!==typeof window&&window.requestIdleCallback&&window.cancelIdleCallback&&(window.requestIdleCallback,window.cancelIdleCallback);var g=function(e,t){var n,i;"number"===typeof t?n=t:"object"===h(t)&&null!==t&&("duration"in t&&(n=+t.duration),"function"===typeof t.algorithm&&(i=t.algorithm));var o=(0,r.useRef)(),s=(0,r.useRef)(),u=f(e),c=f((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&&(o.current=requestAnimationFrame(c)),u(i?i(r):r)})),l=(0,r.useCallback)((function(){void 0!==o.current&&(cancelAnimationFrame(o.current),o.current=void 0),s.current=void 0}),[]),d=f((function(){l(),o.current=requestAnimationFrame(c)}));return a(l),[d,l]};var v=function(){var e=(0,r.useRef)(!1);return i((function(){e.current=!0})),e};var y=function(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(e);return n.current=t.current,t.current=e,n};var b=function(e,t,n,i){var o,a,s;"boolean"===typeof i?o=i:"object"===h(i)&&null!==i&&("capture"in i&&(o=!!i.capture),"once"in i&&(a=!!i.once),"passive"in i&&(s=!!i.passive));var u=f(n);(0,r.useEffect)((function(){if(e&&e.addEventListener&&e.removeEventListener)return e.addEventListener(t,u,{capture:o,once:a,passive:s}),function(){e.removeEventListener(t,u,{capture:o})}}),[e,t,u,o,a,s])};"undefined"!==typeof window&&"undefined"!==typeof window.navigator&&window.navigator.onLine;var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=v(),i=y(t),o=(0,r.useRef)();return n.current&&l(i.current,t)||(o.current=e()),o.current},T={ico:"image/x-icon",png:"image/png",gif:"image/gif"};"undefined"!==typeof window&&window.matchMedia;n(36808);function x(e,t){var n=(0,r.useRef)(),i=u((0,r.useState)(t),2),a=i[0],s=i[1],c=f((function(e){n.current=e,s(e)})),l=f((function(){s(t)}));return o((function(){n.current=void 0,s(t)}),[e]),o((function(){void 0===n.current&&s(t)}),[t]),[a,{set:c,remove:l}]}var _=function(e){return e?function(t,n,i){var a=i&&i.serialize?i.serialize:JSON.stringify,s=i&&i.deserialize?i.deserialize:JSON.parse,c=f((function(){try{var r=e.getItem(t);return null!==r?s(r):n}catch(i){return n}})),l=f((function(n){try{e.setItem(t,a(n))}catch(r){}})),d=f((function(){e.removeItem(t)})),p=u((0,r.useState)(c()),2),m=p[0],g=p[1],v=f((function(e){l(e),g(e)})),y=f((function(){d(),g(c())}));return o((function(){g(c())}),[t]),o((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":h(window)))return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}}),[t]),[m,{set:v,remove:y}]}:x};_("undefined"!==typeof localStorage?localStorage:null),_("undefined"!==typeof sessionStorage?sessionStorage:null)},90478:function(e,t,n){"use strict";var r=n(50791),i=Object.prototype.hasOwnProperty,o={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 o)i.call(o,t)&&void 0!==e.properties[t]&&(s(e,o[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 i=r+t+": "+n+";";e.properties.style=i}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 i;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,i=-1;++i<r;)n[i]=t(e[i]);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 i(){return!0}e.exports=t},11150:function(e,t,n){"use strict";e.exports=a;var r=n(93790),i="skip",o=!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]!==o)&&e.children&&f[0]!==i&&(d=s(function(e,t){var n,r=-1,i=a?-1:1,s=(a?e.length:r)+i;for(;s>r&&s<e.length;){if((n=c(e[s],s,t))[0]===o)return n;s="number"===typeof n[1]?n[1]:s+i}}(e.children,l.concat(e))))[0]===o?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=i,a.EXIT=o},50791:function(e,t,n){"use strict";e.exports=s;var r=n(11150),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"===typeof t&&"function"!==typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},74376:function(e,t,n){"use strict";n.d(t,{iP:function(){return l}});var r=n(67294);var i=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t};const o=(e,t=100,n=!1)=>{const o=i(e),a=r.useRef(),s=[t,n,o];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),o.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout((()=>{a.current=void 0,o.current.apply(null,e)}),t)}),s)};var a=function(e,t,n,i){const o=r.useRef(n),a=r.useRef(i);r.useEffect((()=>{o.current=n,a.current=i})),r.useEffect((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;let r=0;function i(...e){r||o.current.apply(this,e)}n.addEventListener(t,i);const s=a.current;return()=>{r=1,n.removeEventListener(t,i),s&&s()}}),[e,t])};const s={},u="undefined"===typeof window?null:window,c=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],l=(e=s)=>{const{wait:t,leading:n,initialWidth:i=0,initialHeight:l=0}=e,[d,f]=((e,t,n)=>{const i=r.useState(e);return[i[0],o(i[1],t,n)]})("undefined"===typeof document?[i,l]:c,t,n),h=()=>f(c);return a(u,"resize",h),a(u,"orientationchange",h),d}},36194:function(e,t,n){"use strict";n.d(t,{oY:function(){return i}});var r=n(34155),i={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-i.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*i.Bounce.In(2*e):.5*i.Bounce.Out(2*e-1)+.5}}},o="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=o()),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 i=this._tweens[n[r]],a=!t;i&&!1===i.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,i=Math.floor(r),o=s.Utils.Linear;return t<0?o(e[0],e[1],r):t>1?o(e[n],e[n-1],n-r):o(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,o=s.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-t,r-a)*i(t,a)*e[a]*o(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),o(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(o(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(o(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):o(e[i?i-1:0],e[i],e[n<i+1?n:i+1],e[n<i+2?n:i+2],r-i)},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,i){var o=.5*(n-e),a=.5*(r-t),s=i*i;return(2*t-2*n+o+a)*(i*s)+(-3*t+3*n-2*o-a)*s+o*i+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=i.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?o()+parseFloat(e):e:o(),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 i in n){var o=e[i],a=Array.isArray(o),s=a?"array":typeof o,u=!a&&Array.isArray(n[i]);if("undefined"!==s&&"function"!==s){if(u){var c=n[i];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,o)),n[i]=[o].concat(c)}if("object"!==s&&!a||!o||u)"undefined"===typeof t[i]&&(t[i]=o),a||(t[i]*=1),r[i]=u?n[i].slice().reverse():t[i]||0;else{for(var l in t[i]=a?[]:{},o)t[i][l]=o[l];r[i]=a?[]:{},this._setupProperties(o,t[i],n[i],r[i])}}}},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=o()),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=o()),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=o()),void 0===t&&(t=!0),this._isPaused)return!0;var n,r,i=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>i)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 i in n)if(void 0!==t[i]){var o=t[i]||0,a=n[i],s=Array.isArray(e[i]),u=Array.isArray(a);!s&&u?e[i]=this._interpolationFunction(a,r):"object"===typeof a&&a?this._updateProperties(e[i],o,a,r):"number"===typeof(a=this._handleRelativeValue(o,a))&&(e[i]=o+(a-o)*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,h=f.getAll.bind(f),p=f.removeAll.bind(f),m=f.add.bind(f),g=f.remove.bind(f),v=f.update.bind(f),y={Easing:i,Group:a,Interpolation:s,now:o,Sequence:u,nextId:d,Tween:l,VERSION:"18.6.4",getAll:h,removeAll:p,add:m,remove:g,update:v};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 i=this,o=void 0===i.path?THREE.LoaderUtils.extractUrlBase(e):i.path,a=new THREE.FileLoader(i.manager);a.setPath(i.path),a.load(e,(function(e){t(i.parse(e,o))}),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,i=0,o=r.length;i<o;i++){var a=r[i];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,i=t.length;r<i;r++)n[r]=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,i=t.length;r<i;r++)n[r]=parseFloat(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,i=t.length;r<i;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,i){var o=n(e,t)[0];if(void 0!==o)for(var a=n(o,r),s=0;s<a.length;s++)i(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 h(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var o=a(i.getAttribute("source")),s=i.getAttribute("semantic");t.inputs[s]=o}}return t}function p(e){var t={},n=e.getAttribute("target").split("/"),r=n.shift(),i=n.shift(),o=-1!==i.indexOf("("),s=-1!==i.indexOf(".");if(s)n=i.split("."),i=n.shift(),t.member=n.shift();else if(o){var u=i.split("(");i=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=i,t.arraySyntax=o,t.memberSyntax=s,t.sampler=a(e.getAttribute("source")),t}function m(e){var t=[],n=e.channels,r=e.samplers,i=e.sources;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o],s=r[a.sampler],u=s.inputs.INPUT,c=s.inputs.OUTPUT;T(v(a,i[u],i[c]),t)}return t}function g(e){return f(qe.animations[e],m)}function v(e,t,n){var r,i,o,a,s,u,c=qe.nodes[e.id],l=Pe(c.id),d=c.transforms[e.sid],f=c.matrix.clone().transpose(),h={};switch(d){case"matrix":for(o=0,a=t.array.length;o<a;o++)if(r=t.array[o],i=o*n.stride,void 0===h[r]&&(h[r]={}),!0===e.arraySyntax){var p=n.array[i],m=e.indices[0]+4*e.indices[1];h[r][m]=p}else for(s=0,u=n.stride;s<u;s++)h[r][s]=n.array[i+s];break;case"translate":case"rotate":case"scale":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',d)}var g=function(e,t){var n=[];for(var r in e)n.push({time:parseFloat(r),value:e[r]});n.sort(o);for(var i=0;i<16;i++)x(n,i,t.elements[i]);return n;function o(e,t){return e.time-t.time}}(h,f);return{name:l.uuid,keyframes:g}}var y=new THREE.Vector3,b=new THREE.Vector3,E=new THREE.Quaternion;function T(e,t){for(var n=e.keyframes,r=e.name,i=[],o=[],a=[],s=[],u=0,c=n.length;u<c;u++){var l=n[u],d=l.time,f=l.value;we.fromArray(f).transpose(),we.decompose(y,E,b),i.push(d),o.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 o.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".position",i,o)),a.length>0&&t.push(new THREE.QuaternionKeyframeTrack(r+".quaternion",i,a)),s.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".scale",i,s)),t}function x(e,t,n){var r,i,o,a=!0;for(i=0,o=e.length;i<o;i++)void 0===(r=e[i]).value[t]?r.value[t]=null:a=!1;if(!0===a)for(i=0,o=e.length;i<o;i++)(r=e[i]).value[t]=n;else!function(e,t){for(var n,r,i=0,o=e.length;i<o;i++){var a=e[i];if(null===a.value[t]){if(n=_(e,i,t),r=w(e,i,t),null===n){a.value[t]=r.value[t];continue}if(null===r){a.value[t]=n.value[t];continue}k(a,n,r,t)}}}(e,t)}function _(e,t,n){for(;t>=0;){var r=e[t];if(null!==r.value[n])return r;t--}return null}function w(e,t,n){for(;t<e.length;){var r=e[t];if(null!==r.value[n])return r;t++}return null}function k(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 C(e){for(var t=[],n=e.name,r=e.end-e.start||-1,i=e.animations,o=0,a=i.length;o<a;o++)for(var s=g(i[o]),u=0,c=s.length;u<c;u++)t.push(s[u]);return new THREE.AnimationClip(n,r,t)}function A(e){return f(qe.clips[e],C)}function S(e){for(var t={sources:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"bind_shape_matrix":t.bindShapeMatrix=i(o.textContent);break;case"source":var a=o.getAttribute("id");t.sources[a]=ie(o);break;case"joints":t.joints=O(o);break;case"vertex_weights":t.vertexWeights=D(o)}}return t}function O(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var o=i.getAttribute("semantic"),s=a(i.getAttribute("source"));t.inputs[o]=s}}return t}function D(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var s=i.getAttribute("semantic"),u=a(i.getAttribute("source")),c=parseInt(i.getAttribute("offset"));t.inputs[s]={id:u,offset:c};break;case"vcount":t.vcount=o(i.textContent);break;case"v":t.v=o(i.textContent)}}return t}function I(e){var t={id:e.id},n=qe.geometries[t.id];return void 0!==e.skin&&(t.skin=function(e){var t,n,r,i=4,o={joints:[],indices:{array:[],stride:i},weights:{array:[],stride:i}},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],h=e.sources[e.joints.inputs.INV_BIND_MATRIX],p=a[s.inputs.WEIGHT.id].array,m=0;for(t=0,r=u.length;t<r;t++){var g=u[t],v=[];for(n=0;n<g;n++){var y=c[m+l],b=p[c[m+d]];v.push({index:y,weight:b}),m+=2}for(v.sort(_),n=0;n<i;n++){var E=v[n];void 0!==E?(o.indices.array.push(E.index),o.weights.array.push(E.weight)):(o.indices.array.push(0),o.weights.array.push(0))}}e.bindShapeMatrix?o.bindMatrix=(new THREE.Matrix4).fromArray(e.bindShapeMatrix).transpose():o.bindMatrix=(new THREE.Matrix4).identity();for(t=0,r=f.array.length;t<r;t++){var T=f.array[t],x=(new THREE.Matrix4).fromArray(h.array,t*h.stride).transpose();o.joints.push({name:T,boneInverse:x})}return o;function _(e,t){return t.weight-e.weight}}(e.skin),n.sources.skinIndices=t.skin.indices,n.sources.skinWeights=t.skin.weights),t}function N(e){return void 0!==e.build?e.build:e.init_from}function R(e){var t=qe.images[e];return void 0!==t?f(t,N):(console.warn("THREE.ColladaLoader: Couldn't find image with ID:",e),null)}function M(e){for(var t={surfaces:{},samplers:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"newparam":P(i,t);break;case"technique":t.technique=j(i);break;case"extra":t.extra=G(i)}}return t}function P(e,t){for(var n=e.getAttribute("sid"),r=0,i=e.childNodes.length;r<i;r++){var o=e.childNodes[r];if(1===o.nodeType)switch(o.nodeName){case"surface":t.surfaces[n]=L(o);break;case"sampler2D":t.samplers[n]=F(o)}}}function L(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"init_from":t.init_from=i.textContent}}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"source":t.source=i.textContent}}return t}function j(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"constant":case"lambert":case"blinn":case"phong":t.type=i.nodeName,t.parameters=H(i)}}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"emission":case"diffuse":case"specular":case"bump":case"ambient":case"shininess":case"transparency":t[i.nodeName]=B(i);break;case"transparent":t[i.nodeName]={opaque:i.getAttribute("opaque"),data:B(i)}}}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"color":t[o.nodeName]=i(o.textContent);break;case"float":t[o.nodeName]=parseFloat(o.textContent);break;case"texture":t[o.nodeName]={id:o.getAttribute("texture"),extra:z(o)}}}return t}function z(e){for(var t={technique:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"extra":U(i,t)}}return t}function U(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"technique":V(i,t)}}}function V(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"repeatU":case"repeatV":case"offsetU":case"offsetV":t.technique[i.nodeName]=parseFloat(i.textContent);break;case"wrapU":case"wrapV":"TRUE"===i.textContent.toUpperCase()?t.technique[i.nodeName]=1:"FALSE"===i.textContent.toUpperCase()?t.technique[i.nodeName]=0:t.technique[i.nodeName]=parseInt(i.textContent)}}}function G(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"technique":t.technique=K(i)}}return t}function K(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"double_sided":t[i.nodeName]=parseInt(i.textContent)}}return t}function q(e){return e}function W(e){var t,n,r=(t=e.url,f(qe.effects[t],q)),i=r.profile.technique,o=r.profile.extra;switch(i.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=R(r.profile.surfaces[t.source].init_from):(console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),n=R(e.id));if(null!==n){var i=function(e){var t,n=e.slice(2+(e.lastIndexOf(".")-1>>>0));switch(n=n.toLowerCase()){case"tga":t=Be;break;default:t=Ue}return t}(n);if(void 0!==i){var o=i.load(n),a=e.extra;if(void 0!==a&&void 0!==a.technique&&!1===s(a.technique)){var u=a.technique;o.wrapS=u.wrapU?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,o.wrapT=u.wrapV?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,o.offset.set(u.offsetU||0,u.offsetV||0),o.repeat.set(u.repeatU||1,u.repeatV||1)}else o.wrapS=THREE.RepeatWrapping,o.wrapT=THREE.RepeatWrapping;return o}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=i.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,h=u.transparency;if(void 0===h&&d&&(h={float:1}),void 0===d&&h&&(d={opaque:"A_ONE",data:{color:[1,1,1,1]}}),d&&h)if(d.data.texture)n.transparent=!0;else{var p=d.data.color;switch(d.opaque){case"A_ONE":n.opacity=p[3]*h.float;break;case"RGB_ZERO":n.opacity=1-p[0]*h.float;break;case"A_ZERO":n.opacity=1-p[3]*h.float;break;case"RGB_ONE":n.opacity=p[0]*h.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!==o&&void 0!==o.technique&&1===o.technique.double_sided&&(n.side=THREE.DoubleSide),n}function $(e){return f(qe.materials[e],W)}function Z(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];switch(n.nodeName){case"technique_common":return Y(n)}}return{}}function Y(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,i=e.optics.parameters.aspect_ratio;r=void 0===r?n*i:r,n=void 0===n?r/i: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=qe.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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"directional":case"point":case"spot":case"ambient":t.technique=i.nodeName,t.parameters=te(i)}}return t}function te(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"color":var a=i(o.textContent);t.color=(new THREE.Color).fromArray(a);break;case"falloff_angle":t.falloffAngle=parseFloat(o.textContent);break;case"quadratic_attenuation":var s=parseFloat(o.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=qe.lights[e];return void 0!==t?f(t,ne):(console.warn("THREE.ColladaLoader: Couldn't find light with ID:",e),null)}function ie(e){for(var t={array:[],stride:3},o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];if(1===a.nodeType)switch(a.nodeName){case"float_array":t.array=i(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 oe(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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var s=a(i.getAttribute("source")),u=i.getAttribute("semantic"),c=parseInt(i.getAttribute("offset")),l=parseInt(i.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=o(i.textContent);break;case"p":t.p=o(i.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,i=e.primitives;if(0===i.length)return{};var o=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}(i);for(var a in o){var s=o[a];se(s),t[a]=ce(s,n,r)}return t}function ce(e,t,n){for(var r={},i={array:[],stride:0},o={array:[],stride:0},a={array:[],stride:0},s={array:[],stride:0},u={array:[],stride:0},c=[],l=4,d=[],f=4,h=new THREE.BufferGeometry,p=[],m=0,g=0;g<e.length;g++){var v=e[g],y=v.inputs,b=0;switch(v.type){case"lines":case"linestrips":b=2*v.count;break;case"triangles":b=3*v.count;break;case"polylist":for(var E=0;E<v.count;E++){var T=v.vcount[E];switch(T){case 3:b+=3;break;case 4:b+=6;break;default:b+=3*(T-2)}}break;default:console.warn("THREE.ColladaLoader: Unknow primitive type:",v.type)}for(var x in h.addGroup(m,b,g),m+=b,v.material&&p.push(v.material),y){var _=y[x];switch(x){case"VERTEX":for(var w in n){var k=n[w];switch(w){case"POSITION":var C=i.array.length;if(le(v,t[k],_.offset,i.array),i.stride=t[k].stride,t.skinWeights&&t.skinIndices&&(le(v,t.skinIndices,_.offset,c),le(v,t.skinWeights,_.offset,d)),!1===v.hasUV&&!0===e.uvsNeedsFix){b=(i.array.length-C)/i.stride;for(var A=0;A<b;A++)a.array.push(0,0)}break;case"NORMAL":le(v,t[k],_.offset,o.array),o.stride=t[k].stride;break;case"COLOR":le(v,t[k],_.offset,u.array),u.stride=t[k].stride;break;case"TEXCOORD":le(v,t[k],_.offset,a.array),a.stride=t[k].stride;break;case"TEXCOORD1":le(v,t[k],_.offset,s.array),a.stride=t[k].stride;break;default:console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',w)}}break;case"NORMAL":le(v,t[_.id],_.offset,o.array),o.stride=t[_.id].stride;break;case"COLOR":le(v,t[_.id],_.offset,u.array),u.stride=t[_.id].stride;break;case"TEXCOORD":le(v,t[_.id],_.offset,a.array),a.stride=t[_.id].stride;break;case"TEXCOORD1":le(v,t[_.id],_.offset,s.array),s.stride=t[_.id].stride}}}return i.array.length>0&&h.addAttribute("position",new THREE.Float32BufferAttribute(i.array,i.stride)),o.array.length>0&&h.addAttribute("normal",new THREE.Float32BufferAttribute(o.array,o.stride)),u.array.length>0&&h.addAttribute("color",new THREE.Float32BufferAttribute(u.array,u.stride)),a.array.length>0&&h.addAttribute("uv",new THREE.Float32BufferAttribute(a.array,a.stride)),s.array.length>0&&h.addAttribute("uv2",new THREE.Float32BufferAttribute(s.array,s.stride)),c.length>0&&h.addAttribute("skinIndex",new THREE.Float32BufferAttribute(c,l)),d.length>0&&h.addAttribute("skinWeight",new THREE.Float32BufferAttribute(d,f)),r.data=h,r.type=e[0].type,r.materialKeys=p,r}function le(e,t,n,r){var i=e.p,o=e.stride,a=e.vcount;function s(e){for(var t=i[e+n]*c,o=t+c;t<o;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 h=a[d];if(4===h){var p=l+1*o,m=l+2*o,g=l+3*o;s(l+0*o),s(p),s(g),s(p),s(m),s(g)}else if(3===h){p=l+1*o,m=l+2*o;s(l+0*o),s(p),s(m)}else if(h>4)for(var v=1,y=h-2;v<=y;v++){p=l+o*v,m=l+o*(v+1);s(l+0*o),s(p),s(m)}l+=o*h}else for(d=0,f=i.length;d<f;d+=o)s(d)}function de(e){return f(qe.geometries[e],ue)}function fe(e){return void 0!==e.build?e.build:e}function he(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")]=pe(r);break;case"link":t.links.push(ge(r))}}}function pe(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 o=i(r.textContent);t.axis.fromArray(o);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 ge(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(ve(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ve(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(ge(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ye(e){var t={type:e.nodeName},n=i(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=i(r.textContent);break;case"mass":t.mass=i(r.textContent)[0]}}}function Te(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 i=r.getElementsByTagName("param")[0];t.axis=i.textContent;var o=t.axis.split("inst_").pop().split("axis")[0];t.jointIndex=o.substr(0,o.length-1)}}return t}function xe(e){return void 0!==e.build?e.build:e}function _e(e){for(var t=[],n=je.querySelector('[id="'+e.id+'"]'),r=0;r<n.childNodes.length;r++){var o=n.childNodes[r];if(1===o.nodeType)switch(o.nodeName){case"matrix":var a=i(o.textContent),s=(new THREE.Matrix4).fromArray(a).transpose();t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:s});break;case"translate":case"scale":a=i(o.textContent);var u=(new THREE.Vector3).fromArray(a);t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:u});break;case"rotate":a=i(o.textContent),u=(new THREE.Vector3).fromArray(a);var c=THREE.Math.degToRad(a[3]);t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:u,angle:c})}}return t}var we=new THREE.Matrix4,ke=new THREE.Vector3;function Ce(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")),Ce(r);break;case"instance_camera":t.instanceCameras.push(a(r.getAttribute("url")));break;case"instance_controller":t.instanceControllers.push(Ae(r));break;case"instance_light":t.instanceLights.push(a(r.getAttribute("url")));break;case"instance_geometry":t.instanceGeometries.push(Ae(r));break;case"instance_node":t.instanceNodes.push(a(r.getAttribute("url")));break;case"matrix":var o=i(r.textContent);t.matrix.multiply(we.fromArray(o).transpose()),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"translate":o=i(r.textContent);ke.fromArray(o),t.matrix.multiply(we.makeTranslation(ke.x,ke.y,ke.z)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"rotate":o=i(r.textContent);var s=THREE.Math.degToRad(o[3]);t.matrix.multiply(we.makeRotationAxis(ke.fromArray(o),s)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"scale":o=i(r.textContent);t.matrix.scale(ke.fromArray(o)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"extra":break;default:console.log(r)}}return Me(t.id)?console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.",t.id):qe.nodes[t.id]=t,t}function Ae(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 i=r.getElementsByTagName("instance_material"),o=0;o<i.length;o++){var s=i[o],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 Se(e,t){var n,r,i,o=[],a=[];for(n=0;n<e.length;n++){var s=e[n];if(Me(s))Oe(Pe(s),t,o);else if(i=s,void 0!==qe.visualScenes[i])for(var u=qe.visualScenes[s].children,c=0;c<u.length;c++){var l=u[c];if("JOINT"===l.type)Oe(Pe(l.id),t,o)}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<o.length;c++)if((r=o[c]).bone.name===t[n].name){a[n]=r,r.processed=!0;break}for(n=0;n<o.length;n++)!1===(r=o[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 Oe(e,t,n){e.traverse((function(e){if(!0===e.isBone){for(var r,i=0;i<t.length;i++){var o=t[i];if(o.name===e.name){r=o.boneInverse;break}}void 0===r&&(r=new THREE.Matrix4),n.push({bone:e,boneInverse:r,processed:!1})}}))}function De(e){for(var t,n=[],r=e.matrix,i=e.nodes,o=e.type,a=e.instanceCameras,s=e.instanceControllers,u=e.instanceLights,c=e.instanceGeometries,l=e.instanceNodes,d=0,h=i.length;d<h;d++)n.push(Pe(i[d]));for(d=0,h=a.length;d<h;d++){var p=J(a[d]);null!==p&&n.push(p.clone())}for(d=0,h=s.length;d<h;d++)for(var m=s[d],g=(t=m.id,f(qe.controllers[t],I)),v=Re(de(g.id),m.materials),y=Se(m.skeletons,g.skin.joints),b=0,E=v.length;b<E;b++){var T;(T=v[b]).isSkinnedMesh&&(T.bind(y,g.skin.bindMatrix),T.normalizeSkinWeights()),n.push(T)}for(d=0,h=u.length;d<h;d++){var x=re(u[d]);null!==x&&n.push(x.clone())}for(d=0,h=c.length;d<h;d++)for(b=0,E=(v=Re(de((m=c[d]).id),m.materials)).length;b<E;b++)n.push(v[b]);for(d=0,h=l.length;d<h;d++)n.push(Pe(l[d]).clone());if(0===i.length&&1===n.length)T=n[0];else{T="JOINT"===o?new THREE.Bone:new THREE.Group;for(d=0;d<n.length;d++)T.add(n[d])}return""===T.name&&(T.name="JOINT"===o?e.sid:e.name),T.matrix.copy(r),T.matrix.decompose(T.position,T.quaternion,T.scale),T}var Ie=new THREE.MeshBasicMaterial({color:16711935});function Ne(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=t[e[r]];void 0===o?(console.warn("THREE.ColladaLoader: Material with key %s not found. Apply fallback material.",e[r]),n.push(Ie)):n.push($(o))}return n}function Re(e,t){var n=[];for(var r in e){var i=e[r],o=Ne(i.materialKeys,t);0===o.length&&("lines"===r||"linestrips"===r?o.push(new THREE.LineBasicMaterial):o.push(new THREE.MeshPhongMaterial));var a=void 0!==i.data.attributes.skinIndex;if(a)for(var s=0,u=o.length;s<u;s++)o[s].skinning=!0;var c,l=1===o.length?o[0]:o;switch(r){case"lines":c=new THREE.LineSegments(i.data,l);break;case"linestrips":c=new THREE.Line(i.data,l);break;case"triangles":case"polylist":c=a?new THREE.SkinnedMesh(i.data,l):new THREE.Mesh(i.data,l)}n.push(c)}return n}function Me(e){return void 0!==qe.nodes[e]}function Pe(e){return f(qe.nodes[e],De)}function Le(e){var t=new THREE.Group;t.name=e.name;for(var n=e.children,r=0;r<n.length;r++){var i=n[r];t.add(Pe(i.id))}return t}function Fe(e){return f(qe.visualScenes[e],Le)}if(0===e.length)return{scene:new THREE.Scene};var je=n((new DOMParser).parseFromString(e,"application/xml"),"COLLADA")[0],He=je.getAttribute("version");console.log("THREE.ColladaLoader: File version",He);var Be,ze=function(e){return{unit:u(n(e,"unit")[0]),upAxis:c(n(e,"up_axis")[0])}}(n(je,"asset")[0]),Ue=new THREE.TextureLoader(this.manager);Ue.setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin),THREE.TGALoader&&(Be=new THREE.TGALoader(this.manager)).setPath(this.resourcePath||t);var Ve=[],Ge={},Ke=0,qe={animations:{},clips:{},controllers:{},images:{},effects:{},materials:{},cameras:{},lights:{},geometries:{},nodes:{},visualScenes:{},kinematicsModels:{},physicsModels:{},kinematicsScenes:{}};l(je,"library_animations","animation",(function(e){for(var t={sources:{},samplers:{},channels:{}},n=0,r=e.childNodes.length;n<r;n++){var i,o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"source":i=o.getAttribute("id"),t.sources[i]=ie(o);break;case"sampler":i=o.getAttribute("id"),t.samplers[i]=h(o);break;case"channel":i=o.getAttribute("target"),t.channels[i]=p(o);break;default:console.log(o)}}qe.animations[e.getAttribute("id")]=t})),l(je,"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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"instance_animation":t.animations.push(a(i.getAttribute("url")))}}qe.clips[e.getAttribute("id")]=t})),l(je,"library_controllers","controller",(function(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"skin":t.id=a(i.getAttribute("source")),t.skin=S(i);break;case"morph":t.id=a(i.getAttribute("source")),console.warn("THREE.ColladaLoader: Morph target animation not supported yet.")}}qe.controllers[e.getAttribute("id")]=t})),l(je,"library_images","image",(function(e){var t={init_from:n(e,"init_from")[0].textContent};qe.images[e.getAttribute("id")]=t})),l(je,"library_effects","effect",(function(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"profile_COMMON":t.profile=M(i)}}qe.effects[e.getAttribute("id")]=t})),l(je,"library_materials","material",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"instance_effect":t.url=a(i.getAttribute("url"))}}qe.materials[e.getAttribute("id")]=t})),l(je,"library_cameras","camera",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"optics":t.optics=Z(i)}}qe.cameras[e.getAttribute("id")]=t})),l(je,"library_lights","light",(function(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"technique_common":t=ee(i)}}qe.lights[e.getAttribute("id")]=t})),l(je,"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 i=0;i<r.childNodes.length;i++){var o=r.childNodes[i];if(1===o.nodeType){var a=o.getAttribute("id");switch(o.nodeName){case"source":t.sources[a]=ie(o);break;case"vertices":t.vertices=oe(o);break;case"polygons":console.warn("THREE.ColladaLoader: Unsupported primitive type: ",o.nodeName);break;case"lines":case"linestrips":case"polylist":case"triangles":t.primitives.push(ae(o));break;default:console.log(o)}}}qe.geometries[e.getAttribute("id")]=t}})),l(je,"library_nodes","node",Ce),l(je,"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_"+Ke++)}}(e);for(var r=n(e,"node"),i=0;i<r.length;i++)t.children.push(Ce(r[i]));qe.visualScenes[e.getAttribute("id")]=t})),l(je,"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":he(r,t)}}qe.kinematicsModels[e.getAttribute("id")]=t})),l(je,"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")])}}qe.physicsModels[e.getAttribute("id")]=t})),l(je,"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(Te(r))}}qe.kinematicsScenes[a(e.getAttribute("url"))]=t})),d(qe.animations,m),d(qe.clips,C),d(qe.controllers,I),d(qe.images,N),d(qe.effects,q),d(qe.materials,W),d(qe.cameras,Q),d(qe.lights,ne),d(qe.geometries,ue),d(qe.visualScenes,Le),function(){var e=qe.clips;if(!0===s(e)){if(!1===s(qe.animations)){var t=[];for(var n in qe.animations)for(var r=g(n),i=0,o=r.length;i<o;i++)t.push(r[i]);Ve.push(new THREE.AnimationClip("default",-1,t))}}else for(var n in e)Ve.push(A(n))}(),function(){var e=Object.keys(qe.kinematicsModels)[0],t=Object.keys(qe.kinematicsScenes)[0],n=Object.keys(qe.visualScenes)[0];if(void 0!==e&&void 0!==t){for(var r,i=(r=e,f(qe.kinematicsModels[r],fe)),o=function(e){return f(qe.kinematicsScenes[e],xe)}(t),a=Fe(n),s=o.bindJointAxis,u={},c=0,l=s.length;c<l;c++){var d=s[c],h=je.querySelector('[sid="'+d.target+'"]');if(h){var p=h.parentElement;g(d.jointIndex,p)}}var m=new THREE.Matrix4;Ge={joints:i&&i.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 i=n.object,o=r.axis,a=n.transforms;we.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":we.multiply(m.makeRotationAxis(o,THREE.Math.degToRad(t)));break;case"prismatic":we.multiply(m.makeTranslation(o.x*t,o.y*t,o.z*t));break;default:console.warn("THREE.ColladaLoader: Unknown joint type: "+r.type)}else switch(c.type){case"matrix":we.multiply(c.obj);break;case"translate":we.multiply(m.makeTranslation(c.obj.x,c.obj.y,c.obj.z));break;case"scale":we.scale(c.obj);break;case"rotate":we.multiply(m.makeRotationAxis(c.obj,c.angle))}}i.matrix.copy(we),i.matrix.decompose(i.position,i.quaternion,i.scale),u[e].position=t}}else console.log("THREE.ColladaLoader: "+e+" does not exist.")}}}function g(e,t){var n=t.getAttribute("name"),r=i.joints[e];a.traverse((function(i){i.name===n&&(u[e]={object:i,transforms:_e(t),joint:r,position:r.zeroPosition})}))}}();var We=function(e){return Fe(a(n(e,"instance_visual_scene")[0].getAttribute("url")))}(n(je,"scene")[0]);return"Z_UP"===ze.upAxis&&We.quaternion.setFromEuler(new THREE.Euler(-Math.PI/2,0,0)),We.scale.multiplyScalar(ze.unit),{animations:Ve,kinematics:Ge,library:qe,scene:We}}}},99434:function(e){e.exports=THREE.FBXLoader=function(){var e,t,n;function r(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager}function i(e){this.textureLoader=e}function o(){}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 i=this,o=THREE.LoaderUtils.extractUrlBase(e),a=new THREE.FileLoader(this.manager);a.setResponseType("arraybuffer"),a.load(e,(function(n){try{var a=i.parse(n,o);t(a)}catch(s){setTimeout((function(){r&&r(s),i.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===_(e,0,t.length)}(t))e=(new u).parse(t);else{var r=_(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 i=0;i<t.length;++i){if(r(1)===t[i])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 i(new THREE.TextureLoader(this.manager).setPath(n).setCrossOrigin(this.crossOrigin)).parse(e)}},i.prototype={constructor:i,parse:function(){t=this.parseConnections();var e=this.parseImages(),r=this.parseTextures(e),i=this.parseMaterials(r),a=this.parseDeformers(),s=(new o).parse(a);return this.parseScene(a,s,i),n},parseConnections:function(){var t=new Map;"Connections"in e&&e.Connections.connections.forEach((function(e){var n=e[0],r=e[1],i=e[2];t.has(n)||t.set(n,{parents:[],children:[]});var o={ID:r,relationship:i};t.get(n).parents.push(o),t.has(r)||t.set(r,{parents:[],children:[]});var a={ID:n,relationship:i};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 i in r){var o=r[i];if(t[c=parseInt(i)]=o.RelativeFilename||o.Filename,"Content"in o){var a=o.Content instanceof ArrayBuffer&&o.Content.byteLength>0,s="string"===typeof o.Content&&""!==o.Content;if(a||s){var u=this.parseImage(r[i]);n[o.RelativeFilename||o.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,i=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(i){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 "'+i+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var o=new Uint8Array(n);return window.URL.createObjectURL(new Blob([o],{type:t}))},parseTextures:function(t){var n=new Map;if("Texture"in e.Objects){var r=e.Objects.Texture;for(var i in r){var o=this.parseTexture(r[i],t);n.set(parseInt(i),o)}}return n},parseTexture:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,i=e.WrapModeV,o=void 0!==r?r.value:0,a=void 0!==i?i.value:0;if(n.wrapS=0===o?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,i,o=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),i=new THREE.Texture):i=u.load(r)}else"psd"===s?(console.warn("FBXLoader: PSD textures are not supported, creating empty placeholder texture for",r),i=new THREE.Texture):i=this.textureLoader.load(r);return this.textureLoader.setPath(o),i},parseMaterials:function(t){var n=new Map;if("Material"in e.Objects){var r=e.Objects.Material;for(var i in r){var o=this.parseMaterial(r[i],t);null!==o&&n.set(parseInt(i),o)}}return n},parseMaterial:function(e,n){var r=e.id,i=e.attrName,o=e.ShadingModel;if("object"===typeof o&&(o=o.value),!t.has(r))return null;var a,s=this.parseParameters(e,n,r);switch(o.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.',o),a=new THREE.MeshPhongMaterial({color:3342591})}return a.setValues(s),a.name=i,a},parseParameters:function(e,n,r){var i={};e.BumpFactor&&(i.bumpScale=e.BumpFactor.value),e.Diffuse?i.color=(new THREE.Color).fromArray(e.Diffuse.value):e.DiffuseColor&&"Color"===e.DiffuseColor.type&&(i.color=(new THREE.Color).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(i.displacementScale=e.DisplacementFactor.value),e.Emissive?i.emissive=(new THREE.Color).fromArray(e.Emissive.value):e.EmissiveColor&&"Color"===e.EmissiveColor.type&&(i.emissive=(new THREE.Color).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(i.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(i.opacity=parseFloat(e.Opacity.value)),i.opacity<1&&(i.transparent=!0),e.ReflectionFactor&&(i.reflectivity=e.ReflectionFactor.value),e.Shininess&&(i.shininess=e.Shininess.value),e.Specular?i.specular=(new THREE.Color).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(i.specular=(new THREE.Color).fromArray(e.SpecularColor.value));var o=this;return t.get(r).children.forEach((function(e){var t=e.relationship;switch(t){case"Bump":i.bumpMap=o.getTexture(n,e.ID);break;case"DiffuseColor":i.map=o.getTexture(n,e.ID);break;case"DisplacementColor":i.displacementMap=o.getTexture(n,e.ID);break;case"EmissiveColor":i.emissiveMap=o.getTexture(n,e.ID);break;case"NormalMap":i.normalMap=o.getTexture(n,e.ID);break;case"ReflectionColor":i.envMap=o.getTexture(n,e.ID),i.envMap.mapping=THREE.EquirectangularReflectionMapping;break;case"SpecularColor":i.specularMap=o.getTexture(n,e.ID);break;case"TransparentColor":i.alphaMap=o.getTexture(n,e.ID),i.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)}})),i},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 i=e.Objects.Deformer;for(var o in i){var a=i[o],s=t.get(parseInt(o));if("Skin"===a.attrType){var u=this.parseSkeleton(s,i);u.ID=o,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[o]=u}else if("BlendShape"===a.attrType){var c={id:o};c.rawTargets=this.parseMorphTargets(s,i),c.id=o,s.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),r[o]=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 i={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&&(i.indices=r.Indexes.a,i.weights=r.Weights.a),n.push(i)}})),{rawBones:n,bones:[]}},parseMorphTargets:function(e,n){for(var r=[],i=0;i<e.children.length;i++){if(8===i){console.warn("FBXLoader: maximum of 8 morph targets supported. Ignoring additional targets.");break}var o=e.children[i],a=n[o.ID],s={name:a.attrName,initialWeight:a.DeformPercent,id:a.id,fullWeights:a.FullWeights.a};if("BlendShapeChannel"!==a.attrType)return;t.get(parseInt(o.ID)).children.forEach((function(e){void 0===e.relationship&&(s.geoID=e.ID)})),r.push(s)}return r},parseScene:function(r,i,o){n=new THREE.Group;var s=this.parseModels(r.skeletons,i,o),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,i,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,i){var o=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,i);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),o.set(u,d)}return o},buildSkeleton:function(e,t,n,r){var i=null;return e.parents.forEach((function(e){for(var o in t){var a=t[o];a.rawBones.forEach((function(t,o){if(t.ID===e.ID){var s=i;(i=new THREE.Bone).matrixWorld.copy(t.transformLink),i.name=THREE.PropertyBinding.sanitizeNodeName(r),i.ID=n,a.bones[o]=i,null!==s&&i.add(s)}}))}})),i},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 i=0;void 0!==r.CameraProjectionType&&1===r.CameraProjectionType.value&&(i=1);var o=1;void 0!==r.NearPlane&&(o=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(i){case 0:n=new THREE.PerspectiveCamera(l,c,o,a),null!==d&&n.setFocalLength(d);break;case 1:n=new THREE.OrthographicCamera(-s/2,s/2,u/2,-u/2,o,a);break;default:console.warn("THREE.FBXLoader: Unknown camera type "+i+"."),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 i;i=void 0===r.LightType?0:r.LightType.value;var o=16777215;void 0!==r.Color&&(o=(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(i){case 0:n=new THREE.PointLight(o,a,s,1);break;case 1:n=new THREE.DirectionalLight(o,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(o,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(o,a)}void 0!==r.CastShadows&&1===r.CastShadows.value&&(n.castShadow=!0)}return n},createMesh:function(e,t,n){var r,i=null,o=null,a=[];return e.children.forEach((function(e){t.has(e.ID)&&(i=t.get(e.ID)),n.has(e.ID)&&a.push(n.get(e.ID))})),a.length>1?o=a:a.length>0?o=a[0]:(o=new THREE.MeshPhongMaterial({color:13421772}),a.push(o)),"color"in i.attributes&&a.forEach((function(e){e.vertexColors=THREE.VertexColors})),i.FBX_Deformer?(a.forEach((function(e){e.skinning=!0})),r=new THREE.SkinnedMesh(i,o)):r=new THREE.Mesh(i,o),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,i){"LookAtProperty"in i&&t.get(r.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){var i=e.Objects.Model[t.ID];if("Lcl_Translation"in i){var o=i.Lcl_Translation.value;void 0!==r.target?(r.target.position.fromArray(o),n.add(r.target)):r.lookAt((new THREE.Vector3).fromArray(o))}}}))},bindSkeleton:function(e,n,r){var i=this.parsePoseNodes();for(var o in e){var a=e[o];t.get(parseInt(a.ID)).parents.forEach((function(e){if(n.has(e.ID)){var o=e.ID;t.get(o).parents.forEach((function(e){r.has(e.ID)&&r.get(e.ID).bind(new THREE.Skeleton(a.bones),i[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 i=n[r].PoseNode;Array.isArray(i)?i.forEach((function(e){t[e.Node]=(new THREE.Matrix4).fromArray(e.Matrix.a)})):t[i.Node]=(new THREE.Matrix4).fromArray(i.Matrix.a)}}return t},createAmbientLight:function(){if("GlobalSettings"in e&&"AmbientColor"in e.GlobalSettings){var t=e.GlobalSettings.AmbientColor.value,r=t[0],i=t[1],o=t[2];if(0!==r||0!==i||0!==o){var a=new THREE.Color(r,i,o);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,i=!1;n.traverse((function(e){e.isMesh&&e.material.uuid===r&&e.uuid!==t&&(i=!0)})),!0===i&&(e.material=e.material.clone()),e.material.morphTargets=!0}}))}},o.prototype={constructor:o,parse:function(n){var r=new Map;if("Geometry"in e.Objects){var i=e.Objects.Geometry;for(var o in i){var a=t.get(parseInt(o)),s=this.parseGeometry(a,i[o],n);r.set(parseInt(o),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 i=r.skeletons,o=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!==i[t.ID]&&(e=i[t.ID]),e}),null),u=t.children.reduce((function(e,t){return void 0!==o[t.ID]&&(e=o[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 i=new THREE.BufferGeometry;e.attrName&&(i.name=e.attrName);var o=this.parseGeoNode(e,t),a=this.genBuffers(o),s=new THREE.Float32BufferAttribute(a.vertex,3);if(r.applyToBufferAttribute(s),i.addAttribute("position",s),a.colors.length>0&&i.addAttribute("color",new THREE.Float32BufferAttribute(a.colors,3)),t&&(i.addAttribute("skinIndex",new THREE.Uint16BufferAttribute(a.weightsIndices,4)),i.addAttribute("skinWeight",new THREE.Float32BufferAttribute(a.vertexWeights,4)),i.FBX_Deformer=t),a.normal.length>0){var u=new THREE.Float32BufferAttribute(a.normal,3);(new THREE.Matrix3).getNormalMatrix(r).applyToBufferAttribute(u),i.addAttribute("normal",u)}if(a.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),i.addAttribute(n,new THREE.Float32BufferAttribute(a.uvs[t],2))})),o.material&&"AllSame"!==o.material.mappingType){var c=a.materialIndex[0],l=0;if(a.materialIndex.forEach((function(e,t){e!==c&&(i.addGroup(l,t-l,c),c=e,l=t)})),i.groups.length>0){var d=i.groups[i.groups.length-1],f=d.start+d.count;f!==a.materialIndex.length&&i.addGroup(f,a.materialIndex.length-f,c)}0===i.groups.length&&i.addGroup(0,a.materialIndex.length,a.materialIndex[0])}return this.addMorphTargets(i,e,n,r),i},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,i){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[i]})}))}))),n},genBuffers:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,i=!1,o=[],a=[],s=[],u=[],c=[],l=[],d=this;return e.vertexIndices.forEach((function(f,h){var m=!1;f<0&&(f^=-1,m=!0);var g=[],v=[];if(o.push(3*f,3*f+1,3*f+2),e.color){var y=p(h,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){v.push(e.weight),g.push(e.id)})),v.length>4){i||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),i=!0);var b=[0,0,0,0],E=[0,0,0,0];v.forEach((function(e,t){var n=e,r=g[t];E.forEach((function(e,t,i){if(n>e){i[t]=n,n=e;var o=b[t];b[t]=r,r=o}}))})),g=b,v=E}for(;v.length<4;)v.push(0),g.push(0);for(var T=0;T<4;++T)c.push(v[T]),l.push(g[T])}if(e.normal){y=p(h,n,f,e.normal);a.push(y[0],y[1],y[2])}if(e.material&&"AllSame"!==e.material.mappingType)var x=p(h,n,f,e.material)[0];e.uv&&e.uv.forEach((function(e,t){var r=p(h,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,o,x,a,s,u,c,l,r),n++,r=0,o=[],a=[],s=[],u=[],c=[],l=[])})),t},genFace:function(e,t,n,r,i,o,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(o[0]),e.colors.push(o[1]),e.colors.push(o[2]),e.colors.push(o[3*(l-1)]),e.colors.push(o[3*(l-1)+1]),e.colors.push(o[3*(l-1)+2]),e.colors.push(o[3*l]),e.colors.push(o[3*l+1]),e.colors.push(o[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(i[0]),e.normal.push(i[1]),e.normal.push(i[2]),e.normal.push(i[3*(l-1)]),e.normal.push(i[3*(l-1)+1]),e.normal.push(i[3*(l-1)+2]),e.normal.push(i[3*l]),e.normal.push(i[3*l+1]),e.normal.push(i[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,i){if(null!==r){t.morphAttributes.position=[],t.morphAttributes.normal=[];var o=this;r.rawTargets.forEach((function(r){var a=e.Objects.Geometry[r.geoID];void 0!==a&&o.genMorphGeometry(t,n,a,i)}))}},genMorphGeometry:function(e,t,n,r){var i=new THREE.BufferGeometry;n.attrName&&(i.name=n.attrName);for(var o=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:o,vertexPositions:a},f=this.genBuffers(d),h=new THREE.Float32BufferAttribute(f.vertex,3);h.name=n.attrName,r.applyToBufferAttribute(h),e.morphAttributes.position.push(h)},parseNormals:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Normals.a,i=[];return"IndexToDirect"===n&&("NormalIndex"in e?i=e.NormalIndex.a:"NormalsIndex"in e&&(i=e.NormalsIndex.a)),{dataSize:3,buffer:r,indices:i,mappingType:t,referenceType:n}},parseUVs:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.UV.a,i=[];return"IndexToDirect"===n&&(i=e.UVIndex.a),{dataSize:2,buffer:r,indices:i,mappingType:t,referenceType:n}},parseVertexColors:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Colors.a,i=[];return"IndexToDirect"===n&&(i=e.ColorIndex.a),{dataSize:4,buffer:r,indices:i,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,i=[],o=0;o<r.length;++o)i.push(o);return{dataSize:1,buffer:r,indices:i,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,i=t-1,o=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=i,r=o.length-1-n;for(u=0;u<i;++u)a.push(a[u])}var l=new THREE.NURBSCurve(i,o,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],i=this.addClip(r);e.push(i)}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 i=t[r];if(null!==i.attrName.match(/S|R|T|DeformPercent/)){var o={id:i.id,attr:i.attrName,curves:{}};n.set(o.id,o)}}return n},parseAnimationCurves:function(n){var r=e.Objects.AnimationCurve;for(var i in r){var o={id:r[i].id,times:r[i].KeyTime.a.map(f),values:r[i].KeyValueFloat.a},a=t.get(o.id);if(void 0!==a){var s=a.parents[0].ID,u=a.parents[0].relationship;u.match(/X/)?n.get(s).curves.x=o:u.match(/Y/)?n.get(s).curves.y=o:u.match(/Z/)?n.get(s).curves.z=o:u.match(/d|DeformPercent/)&&n.has(s)&&(n.get(s).curves.morph=o)}}},parseAnimationLayers:function(n){var r=e.Objects.AnimationLayer,i=new Map;for(var o in r){var a=[],s=t.get(parseInt(o));if(void 0!==s){var u=s.children,c=this;u.forEach((function(r,i){if(n.has(r.ID)){var o=n.get(r.ID);if(void 0!==o.curves.x||void 0!==o.curves.y||void 0!==o.curves.z){if(void 0===a[i]){t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(h=e.ID)}));var s=e.Objects.Model[h.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[i]=u}a[i][o.attr]=o}else if(void 0!==o.curves.morph){if(void 0===a[i]){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,h=t.get(f).parents[0].ID;s=e.Objects.Model[h],u={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),morphName:e.Objects.Deformer[l].attrName};a[i]=u}a[i][o.attr]=o}}})),i.set(parseInt(o),a)}}return i},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,i={};for(var o in r){var a=t.get(parseInt(o)).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);i[o]={name:r[o].attrName,layer:s}}return i},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,i=new THREE.Vector3;if(e.transform&&e.transform.decompose(n,r,i),n=n.toArray(),r=(new THREE.Euler).setFromQuaternion(r).toArray(),i=i.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var o=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==o&&t.push(o)}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,i,"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 i=this.getTimesForAllAxes(t),o=this.getKeyframeTrackValues(i,t,n);return new THREE.VectorKeyframeTrack(e+"."+r,i,o)},generateRotationTrack:function(e,t,n,r,i){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 o=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(o,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!==i&&((i=i.map(THREE.Math.degToRad)).push("ZYX"),i=(new THREE.Euler).fromArray(i),i=(new THREE.Quaternion).setFromEuler(i).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!==i&&s.multiply(i),s.toArray(c,l/3*4);return new THREE.QuaternionKeyframeTrack(e+".quaternion",o,c)},generateMorphTrack:function(e){var t=e.DeformPercent.curves.morph,r=t.values.map((function(e){return e/100})),i=n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];return new THREE.NumberKeyframeTrack(e.modelName+".morphTargetInfluences["+i+"]",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,i=[],o=-1,a=-1,s=-1;return e.forEach((function(e){if(t.x&&(o=t.x.times.indexOf(e)),t.y&&(a=t.y.times.indexOf(e)),t.z&&(s=t.z.times.indexOf(e)),-1!==o){var n=t.x.values[o];i.push(n),r[0]=n}else i.push(r[0]);if(-1!==a){var u=t.y.values[a];i.push(u),r[1]=u}else i.push(r[1]);if(-1!==s){var c=t.z.values[s];i.push(c),r[2]=c}else i.push(r[2])})),i},interpolateRotations:function(e){for(var t=1;t<e.values.length;t++){var n=e.values[t-1],r=e.values[t]-n,i=Math.abs(r);if(i>=180){for(var o=i/180,a=r/o,s=n+a,u=e.times[t-1],c=(e.times[t]-u)/o,l=u+c,d=[],f=[];l<e.times[t];)d.push(l),l+=c,f.push(s),s+=a;e.times=w(e.times,t,d),e.values=w(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 i=e.match(/^[\s\t]*;/),o=e.match(/^[\s\t]*$/);if(!i&&!o){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(/"$/,"")})),i={name:n},o=this.parseNodeAttr(r),a=this.getCurrentNode();0===this.currentIndent?this.allNodes.add(n,i):n in a?("PoseNode"===n?a.PoseNode.push(i):void 0!==a[n].id&&(a[n]={},a[n][a[n].id]=a[n]),""!==o.id&&(a[n][o.id]=i)):"number"===typeof o.id?(a[n]={},a[n][o.id]=i):"Properties70"!==n&&(a[n]="PoseNode"===n?[i]:i),"number"===typeof o.id&&(i.id=o.id),""!==o.name&&(i.attrName=o.name),""!==o.type&&(i.attrType=o.type),this.pushStack(i)},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(),i=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===i&&(i=n.replace(/"/g,"").replace(/,$/,"").trim());var o=this.getCurrentNode();if("Properties70"!==o.name){if("C"===r){var a=i.split(",").slice(1),s=parseInt(a[0]),u=parseInt(a[1]),c=i.split(",").slice(3);r="connections",function(e,t){for(var n=0,r=e.length,i=t.length;n<i;n++,r++)e[r]=t[n]}(i=[s,u],c=c.map((function(e){return e.trim().replace(/^"/,"")}))),void 0===o[r]&&(o[r]=[])}"Node"===r&&(o.id=i),r in o&&Array.isArray(o[r])?o[r].push(i):"a"!==r?o[r]=i:o.a=i,this.setCurrentProp(o,r),"a"===r&&","!==i.slice(-1)&&(o.a=x(i))}else this.parseNodeSpecialProperty(e,r,i)},parseNodePropertyContinued:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=x(t.a))},parseNodeSpecialProperty:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];switch(o){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=x(u)}this.getPrevNode()[i]={type:o,type2:a,flag:s,value:u},this.setCurrentProp(this.getPrevNode(),i)}},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 i=this.parseNode(t,n);null!==i&&r.add(i.name,i)}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(),i=t>=7500?e.getUint64():e.getUint32(),o=(t>=7500?e.getUint64():e.getUint32(),e.getUint8()),a=e.getString(o);if(0===r)return null;for(var s=[],u=0;u<i;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===i&&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 i=[];n.propertyList.forEach((function(e,t){0!==t&&i.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(i)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var o,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_")),o="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:o}}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(),i=e.getUint32(),o=e.getUint32();if(0===i)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(o))).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 h=[];function p(e,t,n,r){var i;switch(r.mappingType){case"ByPolygonVertex":i=e;break;case"ByPolygon":i=t;break;case"ByVertice":i=n;break;case"AllSame":i=r.indices[0];break;default:console.warn("THREE.FBXLoader: unknown attribute mapping type "+r.mappingType)}"IndexToDirect"===r.referenceType&&(i=r.indices[i]);var o=i*r.dataSize,a=o+r.dataSize;return function(e,t,n,r){for(var i=n,o=0;i<r;i++,o++)e[o]=t[i];return e}(h,r.buffer,o,a)}var m=new THREE.Matrix4,g=new THREE.Euler,v=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?T(e.eulerOrder):T(0);(e.translation&&y.fromArray(e.translation),e.rotationOffset&&y.add(v.fromArray(e.rotationOffset)),e.rotation)&&((n=e.rotation.map(THREE.Math.degToRad)).push(r),b.makeRotationFromEuler(g.fromArray(n)));e.preRotation&&((n=e.preRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(g.fromArray(n)),b.premultiply(m));e.postRotation&&((n=e.postRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(g.fromArray(n)),m.getInverse(m),b.multiply(m));return e.scale&&t.scale(v.fromArray(e.scale)),t.setPosition(y),t.multiply(b),t}function T(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 x(e){return e.split(",").map((function(e){return parseFloat(e)}))}function _(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.byteLength),THREE.LoaderUtils.decodeText(new Uint8Array(e,t,n))}function w(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,i){const o=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(){i(new Error("Script request to "+e+" timed out")),t(a)}),o),c=function(e){clearTimeout(e)};s.addEventListener("load",(function(e){r({ok:!0}),c(u),t(a)})),s.addEventListener("error",(function(n){i(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,i){this.q=e||0,this.r=t||0,this.s=r||0,this.h=i||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,i,o=this._directions.length;for(this._list.length=0,r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);if(t)for(r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);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 i=Math.abs(e.h);1>i&&(i=1);var o=this._geoCache[i];o||(this.extrudeSettings.amount=i,o=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[i]=o);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:o,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,i,o=[],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)i=this.cells[t],(r=this.generateTile(i,a.tileScale,a.material)).position.copy(this.cellToPixel(i)),r.position.y=0,o.push(r);return o},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,i,o;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++)i=-t-r,Math.abs(t)<=this.size&&Math.abs(r)<=this.size&&Math.abs(i)<=this.size&&(o=new n.Cell(t,r,i),this.add(o))},generateOverlay:function(e,t,r){var i,o,a,s=this.cellShape.createPointsGeometry();for(i=-e;e+1>i;i++)for(o=-e;e+1>o;o++)if(a=-i-o,Math.abs(i)<=e&&Math.abs(o)<=e&&Math.abs(a)<=e){this._cel.set(i,o,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 i=this;n.Tools.getJSON({url:e,callback:function(e){i.fromJSON(e),t.call(r||null,e)},cache:!1,scope:i})},fromJSON:function(e){var t,r,i=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<i.length;t++)(r=new n.Cell).copy(i[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),i=Math.abs(t-e.q),o=Math.abs(n-e.r),a=Math.abs(r-e.s);return i>o&&i>a?t=-n-r:o>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,i,o=this._directions.length;for(this._list.length=0,r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);if(t)for(r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);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 i=Math.abs(e.h);1>i&&(i=1);var o=this._geoCache[i];o||(this.extrudeSettings.amount=i,o=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[i]=o);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:o,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,i,o=[],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)i=this.cells[t],(r=this.generateTile(i,a.tileScale,a.material)).position.copy(this.cellToPixel(i)),r.position.y=0,o.push(r);return o},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,i,o=Math.ceil(this.size/2);for(t=-o;o>t;t++)for(r=-o;o>r;r++)i=new n.Cell(t,r+1),this.add(i)},generateOverlay:function(e,t,r){var i,o,a=Math.ceil(e/2);for(i=-a;a>i;i++)for(o=-a;a>o;o++){this._cel.set(i,o);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,i=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<i.length;t++)(r=new n.Cell).copy(i[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(i){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 i=t.next;r&&(r.next=t),t.next=n,t.prev=n.prev,n.next=i,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,i=this.first;for(r.length=0;i;)r.push(i.obj),i=i.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,i){this._listener=t,this.isOnce=n,this.context=r,this.signal=e,this._priority=i||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,i){var o,a=this._indexOfListener(t,r);if(-1!==a){if((o=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 o=new e(this,t,n,r,i),this._addBinding(o);return this.memorize&&this._prevParams&&o.execute(this._prevParams),o},_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,i){var o,a,s,u,c,l;for(r=r||this.heuristicFilter,i.clearPath(),this.list.clear(),this.list.add(e);this.list.length>0;){if(this.list.sort(this.compare),(o=this.list.shift())._visited=!0,o===t)return n.PathUtil.backtrace(t);for(c=0,l=(s=i.getNeighbors(o,this.allowDiagonal,r)).length;l>c;c++)if((u=s[c]).walkable&&(a=o._calcCost+i.distance(o,u),!u._visited||a<u._calcCost)){if(u._visited=!0,u._parent=o,u._calcCost=a,u._priority=a+i.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,i,o,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],i=n[0]-r[0],o=n[1]-r[1],a+=Math.sqrt(i*i+o*o);return a},interpolate:function(e,t,n,r){var i,o,a,s,u,c,l=Math.abs,d=[];for(i=n>e?1:-1,o=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+=i),a>c&&(u+=a,t+=o);return d},expandPath:function(e){var t,n,r,i,o,a,s=[],u=e.length;if(2>u)return s;for(o=0;u-1>o;++o)for(t=e[o],n=e[o+1],i=(r=this.interpolate(t[0],t[1],n[0],n[1])).length,a=0;i-1>a;++a)s.push(r[a]);return s.push(e[u-1]),s},smoothenPath:function(e,t){var n,r,i,o,a,s,u,c,l,d,f,h,p=t.length,m=t[0][0],g=t[0][1],v=t[p-1][0],y=t[p-1][1];for(a=[[n=m,r=g]],u=2;p>u;++u){for(i=(l=t[u])[0],o=l[1],d=this.interpolate(n,r,i,o),h=!1,c=1;c<d.length;++c)if(f=d[c],!e.isWalkableAt(f[0],f[1])){h=!0;break}h&&(s=t[u-1],a.push(s),n=s[0],r=s[1])}return a.push([v,y]),a},compressPath:function(e){if(e.length<3)return e;var t,n,r,i,o,a,s=[],u=e[0][0],c=e[0][1],l=e[1][0],d=e[1][1],f=l-u,h=d-c;for(f/=o=Math.sqrt(f*f+h*h),h/=o,s.push([u,c]),a=2;a<e.length;a++)t=l,n=d,r=f,i=h,f=(l=e[a][0])-t,h=(d=e[a][1])-n,h/=o=Math.sqrt(f*f+h*h),((f/=o)!==r||h!==i)&&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 i=new THREE.Texture(null,t);return this.imageLoader.load(e,(function(e){i.image=e,i.needsUpdate=!0,n&&n(i)}),null,(function(e){r&&r(e)})),i.sourceFile=e,i}},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},i={minDistance:100,maxDistance:1e3,zoomSpeed:2,noZoom:!1};if(r=n.Tools.merge(r,e),"boolean"!=typeof t&&(i=n.Tools.merge(i,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 o=window.innerWidth/this.orthoZoom,a=window.innerHeight/this.orthoZoom;this.camera=new THREE.OrthographicCamera(o/-2,o/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=i.minDistance,this.controls.maxDistance=i.maxDistance,this.controls.zoomSpeed=i.zoomSpeed,this.controls.noZoom=i.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),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach((function(t,r){"undefined"==typeof i[r]?i[r]=t:n.isPlainObject(t)?i[r]=n.merge(e[r],t):-1===e.indexOf(t)&&i.push(t)})),i):(e&&n.isPlainObject(e)&&Object.keys(e).forEach((function(t){i[t]=e[t]})),Object.keys(t).forEach((function(r){t[r]&&n.isPlainObject(t[r])&&e[r]?i[r]=n.merge(e[r],t[r]):i[r]=t[r]})),i)},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 i=t,o=n,a=1<<r;o>i;)if(e[i]&a){--o;var s=e[i];e[i]=e[o],e[o]=s}else++i;this.radixSort(e,t,o,r-1),this.radixSort(e,o,n,r-1)}},randomizeRGB:function(e,t){var n,r,i=e.split(","),o="rgb(";for(t=this.randomInt(t),n=0;3>n;n++)0>(r=parseInt(i[n])+t)?r=0:r>255&&(r=255),o+=r+",";return(o=o.substring(0,o.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,i=window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,o=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:i},93:{code:"ContextMenu"},95:{code:"Standby"},96:{code:"Numpad0",keyCap:"0",location:o},97:{code:"Numpad1",keyCap:"1",location:o},98:{code:"Numpad2",keyCap:"2",location:o},99:{code:"Numpad3",keyCap:"3",location:o},100:{code:"Numpad4",keyCap:"4",location:o},101:{code:"Numpad5",keyCap:"5",location:o},102:{code:"Numpad6",keyCap:"6",location:o},103:{code:"Numpad7",keyCap:"7",location:o},104:{code:"Numpad8",keyCap:"8",location:o},105:{code:"Numpad9",keyCap:"9",location:o},106:{code:"NumpadMultiply",keyCap:"*",location:o},107:{code:"NumpadAdd",keyCap:"+",location:o},108:{code:"NumpadComma",keyCap:",",location:o},109:{code:"NumpadSubtract",keyCap:"-",location:o},110:{code:"NumpadDecimal",keyCap:".",location:o},111:{code:"NumpadDivide",keyCap:"/",location:o},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:o},145:{code:"ScrollLock"},160:{code:"ShiftLeft",location:r},161:{code:"ShiftRight",location:i},162:{code:"ControlLeft",location:r},163:{code:"ControlRight",location:i},164:{code:"AltLeft",location:r},165:{code:"AltRight",location:i},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:o},189:{code:"NumpadSubtract",keyCap:"-",location:o}}),l(d,"moz-mac",{12:{code:"NumLock",location:o},173:{code:"Minus",keyCap:"-"}}),l(d,"moz-win",{173:{code:"Minus",keyCap:"-"}}),l(d,"chrome-mac",{93:{code:"OSRight",location:i}}),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:i},229:{code:"KeyQ",keyCap:"Q"}});var f={};"cros"===s&&(f["U+00A0"]={code:"ShiftLeft",location:r},f["U+00A1"]={code:"ShiftRight",location:i},f["U+00A2"]={code:"ControlLeft",location:r},f["U+00A3"]={code:"ControlRight",location:i},f["U+00A4"]={code:"AltLeft",location:r},f["U+00A5"]={code:"AltRight",location:i}),"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 h=[];h[r]={16:{code:"ShiftLeft",location:r},17:{code:"ControlLeft",location:r},18:{code:"AltLeft",location:r}},h[i]={16:{code:"ShiftRight",location:i},17:{code:"ControlRight",location:i},18:{code:"AltRight",location:i}},h[o]={13:{code:"NumpadEnter",location:o}},l(h[o],"moz",{109:{code:"NumpadSubtract",location:o},107:{code:"NumpadAdd",location:o}}),l(h[r],"moz-mac",{224:{code:"OSLeft",location:r}}),l(h[i],"moz-mac",{224:{code:"OSRight",location:i}}),l(h[i],"moz-win",{91:{code:"OSRight",location:i}}),l(h[i],"mac",{93:{code:"OSRight",location:i}}),l(h[o],"chrome-mac",{12:{code:"NumLock",location:o}}),l(h[o],"safari-mac",{12:{code:"NumLock",location:o},187:{code:"NumpadAdd",location:o},189:{code:"NumpadSubtract",location:o},190:{code:"NumpadDecimal",location:o},191:{code:"NumpadDivide",location:o}});var p={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(p,"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"},g=function(e,t){var n={};return Object.keys(e).forEach((function(r){var i=e[r];t in i&&(n[i[t]]=i)})),n}(d,"code");try{var v=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(v||"keyLocation"in e){var n=v?e.location:e.keyLocation;if(n&&t in h[n])return h[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=p[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),!g.hasOwnProperty(e))return"Undefined";if(t&&"en-us"!==String(t).toLowerCase())throw Error("Unsupported locale");var n=g[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,i=this.checkpoint;return this.sync(),n.distanceTo(r)<.1?(this.checkpoint=null,this.el.emit("navigation-end",{checkpoint:i}),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),i=n(44379),o=.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)>o||Math.abs(r)>o},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,i=new THREE.Vector3;return Math.abs(n)>o&&(i.x+=n),Math.abs(r)>o&&(i.z+=r),i},isRotationActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._lookVector;return this.getJoystick(c,e),Math.abs(e.x)>o||Math.abs(e.y)>o},updateRotation:function(e){if(!this.isRotationActive())return;const t=this.data,n=this.yaw,r=this.pitch,i=t.camera.components["look-controls"],a=i&&i.pitchObject&&i.yawObject;a&&(r.rotation.copy(i.pitchObject.rotation),n.rotation.copy(i.yawObject.rotation));const s=this._lookVector;this.getJoystick(c,s),Math.abs(s.x)<=o&&(s.x=0),Math.abs(s.y)<=o&&(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&&(i.pitchObject.rotation.copy(r.rotation),i.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 i("gamepadbuttondown",t,e.buttons[t])):!e.buttons[t].pressed&&this.buttons[t]&&this.emit(new i("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 i(e.type,e.index,e))},getGamepad:function(){const e=[],t=[];return function(n){const r=this.el.sceneEl.components["proxy-controls"],i=r&&r.isConnected()&&r.getGamepad(0);if(i)return i;e.length=0;for(let t=0;t<this.system.controllers.length;t++){const r=this.system.controllers[t],i=r?r.gamepad:null;if(e.push(i),i&&i.handedness===n)return i}const o=navigator.getGamepads?navigator.getGamepads():t;for(let e=0;e<o.length;e++){const t=o[e];if(t&&t.hand===n)return t}return e[0]||o[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,i){if(!i)return;const o=this.el,a=this.data;if(!a.enabled)return;this.updateVelocityCtrl();const s=this.velocityCtrl,u=this.velocity;if(s)if(i/1e3>.2?u.set(0,0,0):this.updateVelocity(i),a.constrainToNavMesh&&!1!==s.isNavMeshConstrained){if(u.lengthSq()<1e-5)return;e.copy(o.object3D.position),t.copy(u).multiplyScalar(i/1e3).add(e);const r=o.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),o.object3D.position.copy(n)}else o.hasAttribute("velocity")?o.setAttribute("velocity",u):(o.object3D.position.x+=u.x*i/1e3,o.object3D.position.y+=u.y*i/1e3,o.object3D.position.z+=u.z*i/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 i=this.el,o=this.velocityCtrl,a=this.velocity,s=this.data;if(o){if(!o.getVelocityDelta){if(o.getVelocity)return void a.copy(o.getVelocity());if(o.getPositionDelta)return void a.copy(o.getPositionDelta(n).multiplyScalar(1e3/n));throw new Error("Incompatible movement controls: ",o)}r=o.getVelocityDelta(n)}if(i.hasAttribute("velocity")&&!s.constrainToNavMesh&&a.copy(this.el.getAttribute("velocity")),r&&s.enabled){const n=s.camera;t.copy(n.object3D.quaternion),t.premultiply(i.object3D.quaternion),r.applyQuaternion(t);const o=r.length();s.fly?(a.copy(r),a.multiplyScalar(16.66667*this.data.speed)):(e.set(r.x,r.z),e.setLength(o*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 i=Math.abs(this.startingAxisData[1]-n[1]);Math.abs(this.startingAxisData[0]-n[0])>i?(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,i=0;t.enableNegX&&n[0]<0&&(r=-1),t.enablePosX&&n[0]>0&&(r=1),t.enablePosZ&&n[1]>0&&(i=-1),t.enableNegZ&&n[1]<0&&(i=1),Math.abs(n[0])>Math.abs(n[1])?(this.zVel=0,this.xVel=r):(this.xVel=0,this.zVel=i)}})},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,i=e.animations||(e.geometry||{}).animations||[];if(!i.length)return;const o=(a=r.clip,new RegExp("^"+a.split(/\*+/).map(n).join(".*")+"$"));var a;for(let n,s=0;n=i[s];s++)if(n.name.match(o)){const i=this.mixer.clipAction(n,e);i.enabled=!0,i.clampWhenFinished=r.clampWhenFinished,r.duration&&i.setDuration(r.duration),1!==r.timeScale&&i.setEffectiveTimeScale(r.timeScale),i.setLoop(t[r.loop],r.repetitions).fadeIn(r.crossFadeDuration).play(),this.activeActions.push(i)}},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)(),i=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=i().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 i;((i=e.material)?Array.isArray(i)?i:i.materials?i.materials:[i]:[]).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 i=[],o=[];if(n.materials.length&&(e.materials?(i=n.materials.filter((t=>!e.materials.includes(t))),o=e.materials.filter((e=>!n.materials.includes(e)))):i=n.materials),i.length&&t(r,i,this.texture,n.reflectivity),o.length&&t(r,o,null,1),e.materials&&n.reflectivity!==e.reflectivity){const i=n.materials.filter((t=>e.materials.includes(t)));i.length&&t(r,i,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,i=this.body;r.enableJumps||i.velocity.set(0,0,0),i.position.copy(n.getAttribute("position"))},step:function(){const e=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,i=new THREE.Vector3;return function(o,a){if(!a)return;let s,u,c=this.body,l=this.data,d=!1,f=-1/0,h=this.system.getContacts();a=Math.min(a,1e3*this.system.data.maxInterval),i.set(0,0,0),e.copy(this.el.getAttribute("velocity")),c.velocity.copy(e);for(var p,m=0;p=h[m];m++)if(p.enabled){if(c.id===p.bi.id)p.ni.negate(r);else{if(c.id!==p.bj.id)continue;r.copy(p.ni)}d=c.velocity.dot(r)<-t,d&&r.y<=.5?e.projectOnPlane(r):r.y>.5&&(s=c.id===p.bi.id?Math.abs(p.rj.y+p.bj.position.y):Math.abs(p.ri.y+p.bi.position.y),s>f&&(f=s,i.copy(r),u=c.id===p.bi.id?p.bj:p.bi))}n.copy(e).normalize(),u&&(!l.enableJumps||n.y<.5)?(l.enableSlopes?i.y<1-t&&i.copy(this.raycastToGround(u,i)):i.set(0,1,0),e.projectOnPlane(i)):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,i=this.body.position,o=this.body.position.clone();return n=new CANNON.Ray(i,o),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,i=new THREE.Box3,o=new Map;return function(){const a=this.el,s=this.data,u=a.getObject3D("mesh"),c=[];let l;var d;u&&(o.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(i.setFromObject(s).getSize(r),d=Math.max(r.x,r.y,r.z)/2,a=Math.sqrt(2*d*d),i.getCenter(t),!a)return;u=e.distanceTo(t),u<a+l&&(c.push(n),o.set(n,u))})),c.sort(((e,t)=>o.get(e)>o.get(t)?1:-1)).forEach(this.handleHit),0===c.length&&a.emit("hit",{el:null}),this.collisions.filter((e=>!o.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,i){const o=this.el,a=this.data,s=this.raycaster,u=a.speed*i/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)||[],o.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 o.emit("navigation-end");const c=o.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 o.emit("navigation-end");n.copy(c),d=this.path[0]}else n.copy(t.setLength(u)).add(c),d=l;d.y=c.y,o.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),i=new r,o="level";e.exports=AFRAME.registerSystem("nav",{init:function(){this.navMesh=null,this.agents=new Set},setNavMeshGeometry:function(e){this.navMesh=new THREE.Mesh(e),i.setZoneData(o,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?i.findPath(e,t,o,n):null},getGroup:function(e){return this.navMesh?i.getGroup(o,e):null},getNode:function(e,t){return this.navMesh?i.getClosestNode(e,o,t,!0):null},clampStep:function(e,t,n,r,a){return this.navMesh?r?i.clampStep(e,t,r,o,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/[email protected]/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),i=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(i)},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 i,o=0,a=r.vertices.length;o<a;o++)i=r.vertices[o],this.waves.push({z:i.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,i,o=0;r=n[o];o++)i=this.waves[o],r.z=i.z+Math.sin(i.ang)*i.amp,i.ang+=i.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]))}))),i=new THREE.TubeGeometry(r,t.segments,t.radius,t.radialSegments,t.closed);n||(n={},n.material=new THREE.MeshPhongMaterial),this.mesh=new THREE.Mesh(i,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 i=n(81398);"default"in i&&(i=i.default);const o=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:o,default:[]},links:{parse:o,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:o,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 i),this.forceGraph.getGraphBbox()},emitParticle:function(){this.forceGraph||(this.forceGraph=new i);const e=this.forceGraph,t=e.emitParticle.apply(e,arguments);return t===e?this:t},d3Force:function(){this.forceGraph||(this.forceGraph=new i);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 i),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,i=n.hoverDetail?n.hoverDetail.getIntersection?n.hoverDetail.getIntersection(this.el):n.hoverDetail.intersection||void 0:void 0;let o=i?i.object:void 0;for(;o&&!o.hasOwnProperty("__graphObjType");)o=o.parent;if(o!==n.hoverObj){const e=n.hoverObj?n.hoverObj.__graphObjType:null,t=n.hoverObj?n.hoverObj.__data:null,i=o?o.__graphObjType:null,a=o?o.__data:null;e&&e!==i&&r["on"+("node"===e?"Node":"Link")+"Hover"](null,t),i&&r["on"+("node"===i?"Node":"Link")+"Hover"](a,e===i?t:null),n.hoverObj=o}this.forceGraph.tickFrame()}})},18869:function(e){"use strict";e.exports=function(e){if(e)throw e}},30932:function(e){"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!==typeof t)throw new Error("Expected character");n=r.indexOf(t);for(;-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},45403:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(67294),o=n(71755),a=r(n(90233)),s=r(n(37763)),u=r(n(96705)),c=n(79762),l=n(68527),d=n(68921),f=n(4612),h=n(52072),p=n(96356);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 g(e,t){return a(e,t,{keys:["value","label"]})}function v(e){return i.createElement(l.Text,null,i.createElement(l.Box,{as:"span"},"Create")," ",i.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?g:n,a=e.itemRenderer,y=e.highlightItemBg,b=void 0===y?"gray.100":y,E=e.placeholder,T=e.label,x=e.listStyleProps,_=e.labelStyleProps,w=e.inputStyleProps,k=e.toggleButtonStyleProps,C=e.tagStyleProps,A=e.selectedIconProps,S=e.listItemStyleProps,O=e.onCreateItem,D=e.icon,I=e.hideToggleButton,N=void 0!==I&&I,R=e.disableCreateItem,M=void 0!==R&&R,P=e.createItemRenderer,L=void 0===P?v:P,F=e.renderCustomInput,j=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,["items","optionFilterFunc","itemRenderer","highlightItemBg","placeholder","label","listStyleProps","labelStyleProps","inputStyleProps","toggleButtonStyleProps","tagStyleProps","selectedIconProps","listItemStyleProps","onCreateItem","icon","hideToggleButton","disableCreateItem","createItemRenderer","renderCustomInput"]),H=i.useState(!1),B=H[0],z=H[1],U=i.useState(""),V=U[0],G=U[1],K=i.useState(t),q=K[0],W=K[1],$=i.useRef(null),Z=o.useMultipleSelection(j),Y=Z.getSelectedItemProps,X=Z.getDropdownProps,Q=Z.addSelectedItem,J=Z.removeSelectedItem,ee=Z.selectedItems,te=ee.map((function(e){return e.value})),ne=o.useCombobox({inputValue:V,selectedItem:void 0,items:q,onInputValueChange:function(e){var n=e.selectedItem,i=r(t,e.inputValue||"");B&&i.length>0&&z(!1),n||W(i)},stateReducer:function(e,t){var n=t.changes;switch(t.type){case o.useCombobox.stateChangeTypes.InputBlur:return m({},n,{isOpen:!1});case o.useCombobox.stateChangeTypes.InputKeyDownEnter:case o.useCombobox.stateChangeTypes.ItemClick:return m({},n,{highlightedIndex:e.highlightedIndex,inputValue:V,isOpen:!0});case o.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 o.useCombobox.stateChangeTypes.InputChange:G(n||"");break;case o.useCombobox.stateChangeTypes.InputKeyDownEnter:case o.useCombobox.stateChangeTypes.ItemClick:r&&(te.includes(r.value)?J(r):O&&B?(O(r),z(!1),W(t),G("")):Q(r),fe(null))}}}),re=ne.isOpen,ie=ne.getToggleButtonProps,oe=ne.getLabelProps,ae=ne.getMenuProps,se=ne.getInputProps,ue=ne.getComboboxProps,ce=ne.highlightedIndex,le=ne.getItemProps,de=ne.openMenu,fe=ne.selectItem,he=ne.setHighlightedIndex;return i.useEffect((function(){0!==q.length||M||(z(!0),W([{label:""+V,value:V}]),he(0))}),[q,z,he,V,M]),u((function(){W(t)}),[t]),i.createElement(l.Stack,null,i.createElement(c.FormLabel,Object.assign({},m({},oe({}),_)),T),ee&&i.createElement(l.Stack,{spacing:2,isInline:!0,flexWrap:"wrap"},ee.map((function(e,t){return i.createElement(p.Tag,Object.assign({mb:1},C,{key:"selected-item-"+t},Y({selectedItem:e,index:t})),i.createElement(p.TagLabel,null,e.label),i.createElement(p.TagCloseButton,{onClick:function(t){t.stopPropagation(),J(e)},"aria-label":"Remove menu selection badge"}))}))),i.createElement(l.Stack,Object.assign({isInline:!0},ue()),F?F(m({},w,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:$}))),m({},k,ie(),{ariaLabel:"toggle menu",hideToggleButton:N})):i.createElement(i.Fragment,null,i.createElement(f.Input,Object.assign({},w,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:$})))),!N&&i.createElement(d.Button,Object.assign({},k,ie(),{"aria-label":"toggle menu"}),i.createElement(h.ArrowDownIcon,null)))),i.createElement(l.Box,{pb:4,mb:4},i.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)"},x,ae()),re&&q.map((function(e,t){return i.createElement(l.ListItem,Object.assign({px:2,py:1,borderBottom:"1px solid rgba(0,0,0,0.01)"},S,{bg:ce===t?b:"inherit",key:""+e.value+t},le({item:e,index:t})),B?L(e.label):i.createElement(l.Box,{display:"inline-flex",alignItems:"center"},te.includes(e.value)&&i.createElement(l.ListIcon,Object.assign({as:D||h.CheckCircleIcon,color:"green.500",role:"img",display:"inline","aria-label":"Selected"},A)),a?a(e):i.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||""),i=r.indexOf(","),o=0,a=!1;for(;!a;)-1===i&&(i=r.length,a=!0),!(t=r.slice(o,i).trim())&&a||n.push(t),o=i+1,i=r.indexOf(",",o);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(i+","+r).trim()}},20296:function(e){function t(e,t,n){var r,i,o,a,s;function u(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},53879:function(e,t,n){var r=n(87236),i=n(6189),o={float:"cssFloat"},a=n(93379);function s(e,t,n){var s=o[t];if("undefined"===typeof s&&(s=function(e){var t=i(e),n=r(t);return o[t]=o[e]=o[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||"")}},71755:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return q},resetIdCounter:function(){return w},useCombobox:function(){return Me},useMultipleSelection:function(){return Ke},useSelect:function(){return we}});var r=n(63366),i=n(87462),o=n(97326),a=n(94578),s=n(45697),u=n.n(s),c=n(67294);n(21726);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 h(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}var p=n(70655),m=0;function g(e){return"function"===typeof e?e:v}function v(){}function y(e,t){e&&function(e,t){var n=window,r=t.scrollMode,i=t.block,o=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=[],p=e;l(p)&&u(p);){if((p=p.parentElement)===c){d.push(p);break}null!=p&&p===document.body&&f(p)&&!f(document.documentElement)||null!=p&&f(p,s)&&d.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),E=b.height,T=b.width,x=b.top,_=b.right,w=b.bottom,k=b.left,C="start"===i||"nearest"===i?x:"end"===i?w:x+E/2,A="center"===o?k+T/2:"end"===o?_:k,S=[],O=0;O<d.length;O++){var D=d[O],I=D.getBoundingClientRect(),N=I.height,R=I.width,M=I.top,P=I.right,L=I.bottom,F=I.left;if("if-needed"===r&&x>=0&&k>=0&&w<=g&&_<=m&&x>=M&&w<=L&&k>=F&&_<=P)return S;var j=getComputedStyle(D),H=parseInt(j.borderLeftWidth,10),B=parseInt(j.borderTopWidth,10),z=parseInt(j.borderRightWidth,10),U=parseInt(j.borderBottomWidth,10),V=0,G=0,K="offsetWidth"in D?D.offsetWidth-D.clientWidth-H-z:0,q="offsetHeight"in D?D.offsetHeight-D.clientHeight-B-U:0;if(c===D)V="start"===i?C:"end"===i?C-g:"nearest"===i?h(y,y+g,g,B,U,y+C,y+C+E,E):C-g/2,G="start"===o?A:"center"===o?A-m/2:"end"===o?A-m:h(v,v+m,m,H,z,v+A,v+A+T,T),V=Math.max(0,V+y),G=Math.max(0,G+v);else{V="start"===i?C-M-B:"end"===i?C-L+U+q:"nearest"===i?h(M,L,N,B,U+q,C,C+E,E):C-(M+N/2)+q/2,G="start"===o?A-F-H:"center"===o?A-(F+R/2)+K/2:"end"===o?A-P+z+K:h(F,P,R,H,z+K,A,A+T,T);var W=D.scrollLeft,$=D.scrollTop;C+=$-(V=Math.max(0,Math.min($+V,D.scrollHeight-N+q))),A+=W-(G=Math.max(0,Math.min(W+G,D.scrollWidth-R+K)))}S.push({el:D,top:V,left:G})}return S}(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 i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}function T(){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),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function x(){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 _(){return String(m++)}function w(){m=0}function k(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 C(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function A(e){return"string"===typeof e.type}function S(e){return e.props}var O=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function D(e){void 0===e&&(e={});var t={};return O.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]=N(t,r)?t[r]:e[r],n}),{})}function N(e,t){return void 0!==e[t]}function R(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function M(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return-1;var o=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var a=t+e;a<0?a=i?o:0:a>o&&(a=i?0:o);var s=P(e,a,n,r,i);return-1===s?t>=n?-1:t:s}function P(e,t,n,r,i){var o=r(t);if(!o||!o.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 i?e>0?P(1,0,n,r,!1):P(-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 F=E((function(e){H(e).textContent=""}),500);function j(e,t){var n=H(t);e&&(n.textContent=e,F(t))}function H(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 B=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}),z=["refKey","ref"],U=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],V=["onKeyDown","onBlur","onChange","onInput","onChangeText"],G=["refKey","ref"],K=["onMouseMove","onMouseDown","onClick","onPress","index","item"],q=function(){var e=function(e){function t(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+_(),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=D(t),n.internalSetState((0,i.Z)({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=D(t),n.internalSetState((0,i.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var i=n.items[e];null!=i&&n.selectItem(i,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,a={},s="function"===typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,(0,i.Z)({},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&&(o=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],N(n.props,e)||(c[e]=u[e]))})),s&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,(0,i.Z)({},n.getStateAndHelpers(),u)),c}),(function(){g(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=(0,r.Z)(a,z),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=u,n.getRootProps.suppressRefError=f;var h=n.getState().isOpen;return(0,i.Z)(((o={})[u]=x(c,n.rootRef),o.role="combobox",o["aria-expanded"]=h,o["aria-haspopup"]="listbox",o["aria-owns"]=h?n.menuId:null,o["aria-labelledby"]=n.labelId,o),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=M(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=M(-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 i=this.items[r],o=this.getItemNodeFromIndex(r);if(null==i||o&&o.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset((0,i.Z)({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=(0,i.Z)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=(0,i.Z)({},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 i=P(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(i,{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 i=P(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(i,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,u=t.onBlur,c=(0,r.Z)(t,U),l=n.getState().isOpen,d={onClick:T(o,n.buttonHandleClick),onKeyDown:T(a,n.buttonHandleKeyDown),onKeyUp:T(s,n.buttonHandleKeyUp),onBlur:T(u,n.buttonHandleBlur)},f=c.disabled?{}:d;return(0,i.Z)({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},f,c)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=R(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call((0,o.Z)(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(0,i.Z)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,o=t.onKeyDown,a=t.onBlur,s=t.onChange,u=t.onInput;t.onChangeText;var c=(0,r.Z)(t,V),l={};var d,f=n.getState(),h=f.inputValue,p=f.isOpen,m=f.highlightedIndex;c.disabled||((d={}).onChange=T(s,u,n.inputHandleChange),d.onKeyDown=T(o,n.inputHandleKeyDown),d.onBlur=T(a,n.inputHandleBlur),l=d);return(0,i.Z)({"aria-autocomplete":"list","aria-activedescendant":p&&"number"===typeof m&&m>=0?n.getItemId(m):null,"aria-controls":p?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},l,c)},n.inputHandleKeyDown=function(e){var t=R(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call((0,o.Z)(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 o,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=(0,r.Z)(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,(0,i.Z)(((o={})[u]=x(c,n.menuRef),o.role="listbox",o["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,o.id=n.menuId,o),l)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,a=o.onMouseMove,s=o.onMouseDown,u=o.onClick;o.onPress;var c=o.index,l=o.item,d=void 0===l?void 0:l,f=(0,r.Z)(o,K);void 0===c?(n.items.push(d),c=n.items.indexOf(d)):n.items[c]=d;var h=u,p=((t={onMouseMove:T(a,(function(){c!==n.getState().highlightedIndex&&(n.setHighlightedIndex(c,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:T(s,(function(e){e.preventDefault()}))}).onClick=T(h,(function(){n.selectItemAtIndex(c,{type:9})})),t),m=f.disabled?{onMouseDown:p.onMouseDown}:p;return(0,i.Z)({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=D(e),n.internalSetState((function(t){var r=t.selectedItem;return(0,i.Z)({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=D(e),n.internalSetState((function(t){var r=t.isOpen;return(0,i.Z)({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),i=r.isOpen,o=r.highlightedIndex;i&&n.getItemCount()>0&&"number"===typeof o&&n.setHighlightedIndex(o,e),g(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(),o=n.props.getA11yStatusMessage((0,i.Z)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,j(o,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,h=a.initialInputValue,p=void 0===h?"":h,m=a.initialSelectedItem,v=void 0===m?null:m,y=n.getState({highlightedIndex:c,isOpen:f,inputValue:p,selectedItem:v});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}(0,a.Z)(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},n.getState=function(e){return void 0===e&&(e=this.state),I(e,this.props)},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),i=this.getState().highlightedIndex;if(r>0){var o=M(e,i,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(o,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,i=e.isOpen,o=this.props.itemToString,a=this.id,s=this.getRootProps,u=this.getToggleButtonProps,c=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,h=this.openMenu,p=this.closeMenu,m=this.toggleMenu,g=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,E=this.clearSelection,T=this.clearItems;return{getRootProps:s,getToggleButtonProps:u,getLabelProps:c,getMenuProps:l,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:h,closeMenu:p,toggleMenu:m,selectItem:g,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:E,clearItems:T,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:o,id:a,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:r}},n.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},i=function(){e.isTouchMove=!0},o=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",i),a.addEventListener("touchend",o),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",i),a.removeEventListener("touchend",o)}},n.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},n.componentDidUpdate=function(e,t){N(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()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=C(this.props.children,v);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=C(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:A(t)?(0,c.cloneElement)(t,this.getRootProps(S(t))):void 0:null},t}(c.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:k,itemToString:function(e){return null==e?"":String(e)},onStateChange:v,onInputValueChange:v,onUserAction:v,onChange:v,onSelect:v,onOuterClick:v,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"===typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=B,e}();var W=["isInitialMount","highlightedIndex","items","environment"],$={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Z(e,t,n){var r=e.props,o=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var o=t.props,a=t.type,s="on"+te(e)+"Change";o[s]&&void 0!==r[e]&&r[e]!==n[e]&&o[s]((0,i.Z)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange((0,i.Z)({type:o},a))}var Y=E((function(e,t){j(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-"+_():t,r=e.labelId,i=e.menuId,o=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:o||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)(),o=(0,c.useRef)(),a=(0,c.useCallback)((function(t,n){o.current=n,t=I(t,n.props);var r=e(t,n);return n.props.stateReducer(t,(0,i.Z)({},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((0,i.Z)({props:d.current},e))}),[d]),h=o.current;return(0,c.useEffect)((function(){h&&r.current&&r.current!==u&&Z(h,I(r.current,h.props),u),r.current=u}),[u,n,h]),[u,f]}function ie(e,t,n){var r=re(e,t,n),i=r[0],o=r[1];return[I(i,n),o]}var oe={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=$);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=$),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"),i=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function ce(e,t,n,r){var i=e.items,o=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return 0===i.length?-1:void 0!==o&&u===o?o:void 0!==a?a:s?0===n?i.indexOf(s):M(n,i.indexOf(s),i.length,r,!1):0===n?-1:n<0?i.length-1:0}function le(e,t,n,r){var i=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((function(){var o=function(){i.current.isMouseDown=!0},a=function(o){i.current.isMouseDown=!1,e&&!L(o.target,t.map((function(e){return e.current})),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(o){!e||i.current.isTouchMove||L(o.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}),[e,n]),i}var de=function(){return v};function fe(e,t,n){var o=n.isInitialMount,a=n.highlightedIndex,s=n.items,u=n.environment,l=(0,r.Z)(n,W);(0,c.useEffect)((function(){o||Y((function(){return e((0,i.Z)({highlightedIndex:a,highlightedItem:s[a],resultCount:s.length},l))}),u.document)}),t)}function he(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=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(i(t),o))}),[t]),s}var pe=v;function me(e,t,n){var r,o=t.type,a=t.props;switch(o){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(0,i.Z)({},e,r)}function ge(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=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&&i(c).toLowerCase().startsWith(a)){var l=o(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 ve=(0,p.__assign)((0,p.__assign)({},oe),{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=v;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,o=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case 15:var s=t.key,u=""+e.inputValue+s,c=ge({keysSoFar:u,highlightedIndex:e.selectedItem?o.items.indexOf(e.selectedItem):-1,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=(0,i.Z)({inputValue:u},c>=0&&{selectedItem:o.items[c]});break;case 13:n={highlightedIndex:ce(o,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ce(o,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=(0,i.Z)({isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:P(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:P(-1,o.items.length-1,o.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=ge({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=(0,i.Z)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:M(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 1:n={highlightedIndex:M(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return me(e,t,be)}return(0,i.Z)({},e,n)}var Te=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],xe=["onClick","onKeyDown","refKey","ref"],_e=["item","index","onMouseMove","onClick","refKey","ref"];function we(e){void 0===e&&(e={}),ye(e,we);var t=(0,i.Z)({},ve,e),n=t.items,o=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,u=t.defaultIsOpen,l=t.itemToString,d=t.getA11ySelectionMessage,f=t.getA11yStatusMessage,h=ie(Ee,ue(t),t),p=h[0],m=h[1],g=p.isOpen,v=p.highlightedIndex,y=p.selectedItem,b=p.inputValue,_=(0,c.useRef)(null),w=(0,c.useRef)(null),k=(0,c.useRef)({}),C=(0,c.useRef)(!0),A=(0,c.useRef)(null),S=Q(t),O=(0,c.useRef)(),D=(0,c.useRef)(!0),I=ne({state:p,props:t}),N=(0,c.useCallback)((function(e){return k.current[S.getItemId(e)]}),[S]);fe(f,[g,v,b,n],(0,i.Z)({isInitialMount:D.current,previousResultCount:O.current,items:n,environment:a,itemToString:l},p)),fe(d,[y],(0,i.Z)({isInitialMount:D.current,previousResultCount:O.current,items:n,environment:a,itemToString:l},p));var M=he({menuElement:w.current,highlightedIndex:v,isOpen:g,itemRefs:k,scrollIntoView:o,getItemNodeFromIndex:N});(0,c.useEffect)((function(){return A.current=E((function(e){e({type:21,inputValue:""})}),500),function(){A.current.cancel()}}),[]),(0,c.useEffect)((function(){b&&A.current(m)}),[m,b]),pe({isInitialMount:D.current,props:t,state:p}),(0,c.useEffect)((function(){D.current?(s||u||g)&&w.current&&w.current.focus():g?w.current&&w.current.focus():a.document.activeElement===w.current&&_.current&&(C.current=!1,_.current.focus())}),[g]),(0,c.useEffect)((function(){D.current||(O.current=n.length)}));var P=le(g,[w,_],a,(function(){m({type:8})})),L=de();(0,c.useEffect)((function(){D.current=!1}),[]),(0,c.useEffect)((function(){g||(k.current={})}),[g]);var F=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:13,getItemNodeFromIndex:N,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:14,getItemNodeFromIndex:N,shiftKey:e.shiftKey})}}}),[m,N]),j=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,getItemNodeFromIndex:N,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:1,getItemNodeFromIndex:N,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),m({type:3,getItemNodeFromIndex:N})},End:function(e){e.preventDefault(),m({type:4,getItemNodeFromIndex:N})},Escape:function(){m({type:2})},Enter:function(e){e.preventDefault(),m({type:5})}," ":function(e){e.preventDefault(),m({type:6})}}}),[m,N]),H=(0,c.useCallback)((function(){m({type:16})}),[m]),B=(0,c.useCallback)((function(){m({type:18})}),[m]),z=(0,c.useCallback)((function(){m({type:17})}),[m]),U=(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]),K=(0,c.useCallback)((function(e){m({type:21,inputValue:e})}),[m]),q=(0,c.useCallback)((function(e){return(0,i.Z)({id:S.labelId,htmlFor:S.toggleButtonId},e)}),[S]),W=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,u=void 0===s?"ref":s,c=o.onKeyDown,l=o.onBlur,d=o.ref,f=(0,r.Z)(o,Te),h=(void 0===t?{}:t).suppressRefError,p=void 0!==h&&h,g=I.current.state;return L("getMenuProps",p,u,w),(0,i.Z)(((n={})[u]=x(d,(function(e){w.current=e})),n.id=S.menuId,n.role="listbox",n["aria-labelledby"]=S.labelId,n.tabIndex=-1,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(g.highlightedIndex)},{onMouseLeave:T(a,(function(){m({type:9})})),onKeyDown:T(c,(function(e){var t=R(e);t&&j[t]?j[t](e):ee(t)&&m({type:7,key:t,getItemNodeFromIndex:N})})),onBlur:T(l,(function(){!1!==C.current?!P.current.isMouseDown&&m({type:8}):C.current=!0}))},f)}),[m,I,j,P,L,S,N]);return{getToggleButtonProps:(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onClick,s=o.onKeyDown,u=o.refKey,c=void 0===u?"ref":u,l=o.ref,d=(0,r.Z)(o,xe),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,p=(0,i.Z)(((n={})[c]=x(l,(function(e){_.current=e})),n.id=S.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=I.current.state.isOpen,n["aria-labelledby"]=S.labelId+" "+S.toggleButtonId,n),d);return d.disabled||(p.onClick=T(a,(function(){m({type:12})})),p.onKeyDown=T(s,(function(e){var t=R(e);t&&F[t]?F[t](e):ee(t)&&m({type:15,key:t,getItemNodeFromIndex:N})}))),L("getToggleButtonProps",h,c,_),p}),[m,I,F,L,S,N]),getLabelProps:q,getMenuProps:W,getItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.item,a=n.index,s=n.onMouseMove,u=n.onClick,c=n.refKey,l=void 0===c?"ref":c,d=n.ref,f=(0,r.Z)(n,_e),h=I.current,p=h.state,g=h.props,v=J(a,o,g.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var y=(0,i.Z)(((t={role:"option","aria-selected":""+(v===p.highlightedIndex),id:S.getItemId(v)})[l]=x(d,(function(e){e&&(k.current[S.getItemId(v)]=e)})),t),f);return f.disabled||(y.onMouseMove=T(s,(function(){a!==p.highlightedIndex&&(M.current=!1,m({type:10,index:a}))})),y.onClick=T(u,(function(){m({type:11,index:a})}))),y}),[m,I,M,S]),toggleMenu:H,openMenu:z,closeMenu:B,setHighlightedIndex:U,selectItem:V,reset:G,setInputValue:K,highlightedIndex:v,isOpen:g,selectedItem:y,inputValue:b}}we.stateChangeTypes=be;var ke=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 Ce=v;var Ae=(0,i.Z)({},oe,{getA11yStatusMessage:k,circularNavigation:!0});function Se(e,t){var n,r=t.type,o=t.props,a=t.shiftKey;switch(r){case 10:n={isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),selectedItem:o.items[t.index],inputValue:o.itemToString(o.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:M(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ce(o,e,1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:M(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ce(o,e,-1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 5:n=(0,i.Z)({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex],isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 2:n=(0,i.Z)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:P(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:P(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=(0,i.Z)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:o.items[e.highlightedIndex],inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:ae(o,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:o.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return me(e,t,ke)}return(0,i.Z)({},e,n)}var Oe=["onMouseLeave","refKey","ref"],De=["item","index","refKey","ref","onMouseMove","onClick","onPress"],Ie=["onClick","onPress","refKey","ref"],Ne=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],Re=["refKey","ref"];function Me(e){void 0===e&&(e={}),Ce(e,Me);var t=(0,i.Z)({},Ae,e),n=t.initialIsOpen,o=t.defaultIsOpen,a=t.items,s=t.scrollIntoView,u=t.environment,l=t.getA11yStatusMessage,d=t.getA11ySelectionMessage,f=t.itemToString,h=function(e,t,n){var r=(0,c.useRef)(),i=re(e,t,n),o=i[0],a=i[1];return(0,c.useEffect)((function(){N(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:19,inputValue:n.itemToString(n.selectedItem)}),r.current=o.selectedItem===r.current?n.selectedItem:o.selectedItem)})),[I(o,n),a]}(Se,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)),(0,i.Z)({},t,{inputValue:r})}(t),t),p=h[0],m=h[1],g=p.isOpen,v=p.highlightedIndex,y=p.selectedItem,b=p.inputValue,E=(0,c.useRef)(null),_=(0,c.useRef)({}),w=(0,c.useRef)(null),k=(0,c.useRef)(null),C=(0,c.useRef)(null),A=(0,c.useRef)(!0),S=Q(t),O=(0,c.useRef)(),D=ne({state:p,props:t}),M=(0,c.useCallback)((function(e){return _.current[S.getItemId(e)]}),[S]);fe(l,[g,v,b,a],(0,i.Z)({isInitialMount:A.current,previousResultCount:O.current,items:a,environment:u,itemToString:f},p)),fe(d,[y],(0,i.Z)({isInitialMount:A.current,previousResultCount:O.current,items:a,environment:u,itemToString:f},p));var P=he({menuElement:E.current,highlightedIndex:v,isOpen:g,itemRefs:_,scrollIntoView:s,getItemNodeFromIndex:M});pe({isInitialMount:A.current,props:t,state:p}),(0,c.useEffect)((function(){(n||o||g)&&w.current&&w.current.focus()}),[]),(0,c.useEffect)((function(){A.current||(O.current=a.length)}));var L=le(g,[C,E,k],u,(function(){m({type:7,selectItem:!1})})),F=de();(0,c.useEffect)((function(){A.current=!1}),[]),(0,c.useEffect)((function(){g||(_.current={})}),[g]);var j=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:M})},ArrowUp:function(e){e.preventDefault(),m({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:M})},Home:function(e){D.current.state.isOpen&&(e.preventDefault(),m({type:3,getItemNodeFromIndex:M}))},End:function(e){D.current.state.isOpen&&(e.preventDefault(),m({type:4,getItemNodeFromIndex:M}))},Escape:function(){var e=D.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&m({type:2})},Enter:function(e){var t=D.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),m({type:5,getItemNodeFromIndex:M}))}}}),[m,D,M]),H=(0,c.useCallback)((function(e){return(0,i.Z)({id:S.labelId,htmlFor:S.inputId},e)}),[S]),B=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,u=void 0===s?"ref":s,c=o.ref,l=(0,r.Z)(o,Oe),d=(void 0===t?{}:t).suppressRefError;return F("getMenuProps",void 0!==d&&d,u,E),(0,i.Z)(((n={})[u]=x(c,(function(e){E.current=e})),n.id=S.menuId,n.role="listbox",n["aria-labelledby"]=S.labelId,n.onMouseLeave=T(a,(function(){m({type:8})})),n),l)}),[m,F,S]),z=(0,c.useCallback)((function(e){var t,n,o=void 0===e?{}:e,a=o.item,s=o.index,u=o.refKey,c=void 0===u?"ref":u,l=o.ref,d=o.onMouseMove,f=o.onClick;o.onPress;var h=(0,r.Z)(o,De),p=D.current,g=p.props,v=p.state,y=J(s,a,g.items);if(y<0)throw new Error("Pass either item or item index in getItemProps!");var b=f;return(0,i.Z)(((t={})[c]=x(l,(function(e){e&&(_.current[S.getItemId(y)]=e)})),t.role="option",t["aria-selected"]=""+(y===v.highlightedIndex),t.id=S.getItemId(y),t),!h.disabled&&((n={onMouseMove:T(d,(function(){s!==v.highlightedIndex&&(P.current=!1,m({type:9,index:s}))}))}).onClick=T(b,(function(){m({type:10,index:s}),w.current&&w.current.focus()})),n),h)}),[m,D,P,S]),U=(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,u=n.ref,c=(0,r.Z)(n,Ie);return(0,i.Z)(((t={})[s]=x(u,(function(e){k.current=e})),t.id=S.toggleButtonId,t.tabIndex=-1,t),!c.disabled&&(0,i.Z)({},{onClick:T(o,(function(){m({type:11}),!D.current.state.isOpen&&w.current&&w.current.focus()}))}),c)}),[m,D,S]),V=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onKeyDown,s=o.onChange,u=o.onInput,c=o.onBlur;o.onChangeText;var l=o.refKey,d=void 0===l?"ref":l,f=o.ref,h=(0,r.Z)(o,Ne),p=(void 0===t?{}:t).suppressRefError;F("getInputProps",void 0!==p&&p,d,w);var g,v=D.current.state,y={};h.disabled||((g={}).onChange=T(s,u,(function(e){m({type:6,inputValue:e.target.value})})),g.onKeyDown=T(a,(function(e){var t=R(e);t&&j[t]&&j[t](e)})),g.onBlur=T(c,(function(){v.isOpen&&!L.current.isMouseDown&&m({type:7,selectItem:!0})})),y=g);return(0,i.Z)(((n={})[d]=x(f,(function(e){w.current=e})),n.id=S.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=S.menuId,n),v.isOpen&&v.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(v.highlightedIndex)},{"aria-labelledby":S.labelId,autoComplete:"off",value:v.inputValue},y,h)}),[m,j,D,L,F,S]),G=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.refKey,s=void 0===a?"ref":a,u=o.ref,c=(0,r.Z)(o,Re),l=(void 0===t?{}:t).suppressRefError;return F("getComboboxProps",void 0!==l&&l,s,C),(0,i.Z)(((n={})[s]=x(u,(function(e){C.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=S.menuId,n["aria-expanded"]=D.current.state.isOpen,n),c)}),[D,F,S]),K=(0,c.useCallback)((function(){m({type:12})}),[m]),q=(0,c.useCallback)((function(){m({type:14})}),[m]),W=(0,c.useCallback)((function(){m({type:13})}),[m]),$=(0,c.useCallback)((function(e){m({type:15,highlightedIndex:e})}),[m]),Z=(0,c.useCallback)((function(e){m({type:16,selectedItem:e})}),[m]);return{getItemProps:z,getLabelProps:H,getMenuProps:B,getInputProps:V,getComboboxProps:G,getToggleButtonProps:U,toggleMenu:K,openMenu:W,closeMenu:q,setHighlightedIndex:$,setInputValue:(0,c.useCallback)((function(e){m({type:17,inputValue:e})}),[m]),selectItem:Z,reset:(0,c.useCallback)((function(){m({type:18})}),[m]),highlightedIndex:v,isOpen:g,selectedItem:y,inputValue:b}}Me.stateChangeTypes=ke;var Pe={activeIndex:-1,selectedItems:[]};function Le(e,t){return se(e,t,Pe)}function Fe(e,t){return ae(e,t,Pe)}function je(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 He={itemToString:oe.itemToString,stateReducer:oe.stateReducer,environment:oe.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Be=v;var ze=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 Ue(e,t){var n,r=t.type,o=t.index,a=t.props,s=t.selectedItem,u=e.activeIndex,c=e.selectedItems;switch(r){case 0:n={activeIndex:o};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=(0,i.Z)({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=(0,i.Z)({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:Fe(a,"activeIndex"),selectedItems:Fe(a,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return(0,i.Z)({},e,n)}var Ve=["refKey","ref","onClick","onKeyDown","selectedItem","index"],Ge=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function Ke(e){void 0===e&&(e={}),Be(e,Ke);var t=(0,i.Z)({},He,e),n=t.getA11yRemovalMessage,o=t.itemToString,a=t.environment,s=t.keyNavigationNext,u=t.keyNavigationPrevious,l=ie(Ue,function(e){return{activeIndex:Le(e,"activeIndex"),selectedItems:Le(e,"selectedItems")}}(t),t),d=l[0],f=l[1],h=d.activeIndex,p=d.selectedItems,m=(0,c.useRef)(!0),g=(0,c.useRef)(null),v=(0,c.useRef)(p),y=(0,c.useRef)();y.current=[];var b=ne({state:d,props:t});(0,c.useEffect)((function(){if(!m.current){if(p.length<v.current.length){var e=v.current.find((function(e){return p.indexOf(e)<0}));j(n({itemToString:o,resultCount:p.length,removedSelectedItem:e,activeIndex:h,activeSelectedItem:p[h]}),a.document)}v.current=p}}),[p.length]),(0,c.useEffect)((function(){m.current||(-1===h&&g.current?g.current.focus():y.current[h]&&y.current[h].focus())}),[h]),pe({isInitialMount:m.current,props:t,state:d});var E=de();(0,c.useEffect)((function(){m.current=!1}),[]);var _=(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]),w=(0,c.useMemo)((function(){var e;return(e={})[u]=function(e){je(e)&&f({type:5})},e.Backspace=function(e){je(e)&&f({type:6})},e}),[f,u]);return{getSelectedItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.refKey,a=void 0===o?"ref":o,s=n.ref,u=n.onClick,c=n.onKeyDown,l=n.selectedItem,d=n.index,h=(0,r.Z)(n,Ve),p=b.current.state;if(J(d,l,p.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return(0,i.Z)(((t={})[a]=x(s,(function(e){e&&y.current.push(e)})),t.tabIndex=d===p.activeIndex?0:-1,t.onClick=T(u,(function(){f({type:0,index:d})})),t.onKeyDown=T(c,(function(e){var t=R(e);t&&_[t]&&_[t](e)})),t),h)}),[f,b,_]),getDropdownProps:(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.refKey,s=void 0===a?"ref":a,u=o.ref,c=o.onKeyDown,l=o.onClick,d=o.preventKeyAction,h=void 0!==d&&d,p=(0,r.Z)(o,Ge),m=(void 0===t?{}:t).suppressRefError;E("getDropdownProps",void 0!==m&&m,s,g);return(0,i.Z)(((n={})[s]=x(u,(function(e){e&&(g.current=e)})),n),!h&&{onKeyDown:T(c,(function(e){var t=R(e);t&&w[t]&&w[t](e)})),onClick:T(l,(function(){f({type:7})}))},p)}),[f,w,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:p,activeIndex:h}}Ke.stateChangeTypes=ze},56781:function(e,t){"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,u=60110,c=60112,l=60113,d=60120,f=60115,h=60116,p=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=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"),h=b("react.lazy"),p=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=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 i:case a:case o:case l:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case f:case s:return e;default:return t}}case r:return t}}}},21726:function(e,t,n){"use strict";n(56781)},63150:function(e){"use strict";e.exports=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=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,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)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(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,l,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=u(d,n),d!==(i=u(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,l=r&&o(r)?r:[]):l=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,l,i)})):"undefined"!==typeof i&&s(d,{name:n,newValue:i}));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,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))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=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},53316:function(e){function t(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function r(e,t,n,r,i){return n.bind(t,e,r,i)}function i(e,i){return r(e,this,1===e.length?t:n,i.cache.create(),i.serializer)}function o(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},21102:function(e,t,n){"use strict";var r=n(46291),i=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=i,i.eval=o(EvalError),i.range=o(RangeError),i.reference=o(ReferenceError),i.syntax=o(SyntaxError),i.type=o(TypeError),i.uri=o(URIError),i.create=o},46291:function(e){!function(){var t;function n(e){for(var t,n,r,i,o=1,a=[].slice.call(arguments),s=0,u=e.length,c="",l=!1,d=!1,f=function(){return a[o++]},h=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s<u;++s)if(t=e[s],l)switch(l=!1,"."==t?(d=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(d=!0,t=e[s+=2]):d=!0,i=h(),t){case"b":c+=parseInt(f(),10).toString(2);break;case"c":c+="string"===typeof(n=f())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(f(),10);break;case"f":r=String(parseFloat(f()).toFixed(i||6)),c+=d?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(f());break;case"o":c+="0"+parseInt(f(),10).toString(8);break;case"s":c+=f();break;case"x":c+="0x"+parseInt(f(),10).toString(16);break;case"X":c+="0x"+parseInt(f(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?l=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!==typeof console&&"function"===typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},53869:function(e,t,n){"use strict";n.d(t,{M:function(){return p}});var r=n(70655),i=n(67294),o=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,o=e.onExitComplete,u=e.custom,l=e.presenceAffectsLayout,f=(0,s.h)(d),h=(0,s.h)(c),p=(0,i.useMemo)((function(){return{id:h,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===o||void 0===o||o())},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}}),l?void 0:[r]);return(0,i.useMemo)((function(){f.forEach((function(e,t){return f.set(t,!1)}))}),[r]),i.useEffect((function(){!r&&!f.size&&(null===o||void 0===o||o())}),[r]),i.createElement(a.O.Provider,{value:p},t)};function d(){return new Map}var f=n(49870);function h(e){return e.key||""}var p=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,p=void 0===d||d,m=function(){var e=(0,i.useRef)(!1),t=(0,r.__read)((0,i.useState)(0),2),n=t[0],a=t[1];return(0,o.z)((function(){return e.current=!0})),(0,i.useCallback)((function(){!e.current&&a(n+1)}),[n])}(),g=(0,i.useContext)(f.WH);(0,f.Md)(g)&&(m=g.forceUpdate);var v=(0,i.useRef)(!0),y=function(e){var t=[];return i.Children.forEach(e,(function(e){(0,i.isValidElement)(e)&&t.push(e)})),t}(t),b=(0,i.useRef)(y),E=(0,i.useRef)(new Map).current,T=(0,i.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=h(e);t.set(n,e)}))}(y,E),v.current)return v.current=!1,i.createElement(i.Fragment,null,y.map((function(e){return i.createElement(l,{key:h(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:p},e)})));for(var x=(0,r.__spreadArray)([],(0,r.__read)(y)),_=b.current.map(h),w=y.map(h),k=_.length,C=0;C<k;C++){var A=_[C];-1===w.indexOf(A)?T.add(A):T.delete(A)}return c&&T.size&&(x=[]),T.forEach((function(e){if(-1===w.indexOf(e)){var t=E.get(e);if(t){var r=_.indexOf(e);x.splice(r,0,i.createElement(l,{key:h(t),isPresent:!1,onExitComplete:function(){E.delete(e),T.delete(e);var t=b.current.findIndex((function(t){return t.key===e}));b.current.splice(t,1),T.size||(b.current=y,m(),u&&u())},custom:n,presenceAffectsLayout:p},t))}}})),x=x.map((function(e){var t=e.key;return T.has(t)?e:i.createElement(l,{key:h(e),isPresent:!0,presenceAffectsLayout:p},e)})),b.current=x,i.createElement(i.Fragment,null,T.size?x:x.map((function(e){return(0,i.cloneElement)(e)})))}},69283:function(e,t,n){"use strict";n.d(t,{EN:function(){return s},oO:function(){return a}});var r=n(67294),i=n(8626),o=n(45930);function a(){var e=(0,r.useContext)(i.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,o=e.register,a=l();(0,r.useEffect)((function(){return o(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,o.h)(c)}},7646:function(e,t,n){"use strict";var r,i;n.d(t,{z:function(){return r},c:function(){return i}}),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"}(i||(i={}))},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 p},WH:function(){return h},Md:function(){return m}});var r=n(67294),i=n(70655),o=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,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(l)),(0,i.__read)(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(){o.iW.preRender(),o.iW.render()})),t((function(){o.ZP.postRender((function(){return s.forEach(f)})),e.clear()}))})),(0,s.R)()}}}function f(e){e.prevViewportBox=e.projection.target}var h=(0,r.createContext)(d()),p=(0,r.createContext)(d());function m(e){return!!e.forceUpdate}},99860:function(e,t,n){"use strict";n.d(t,{E:function(){return bo}});var r=n(70655),i=n(67294),o=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},a={measureLayout:o(["layout","layoutId","drag","_layoutResetTransform"]),animation:o(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:o(["exit"]),drag:o(["drag","dragControls"]),focus:o(["whileFocus"]),hover:o(["whileHover","onHoverStart","onHoverEnd"]),tap:o(["whileTap","onTap","onTapStart","onTapCancel"]),pan:o(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:o(["layout","layoutId"])};var s=(0,i.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var l=(0,i.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),d=(0,i.createContext)({});var f=n(8626),h=n(69283),p=(0,i.createContext)(null),m="undefined"!==typeof window,g=m?i.useLayoutEffect:i.useEffect;function v(e,t,n,o){var a=(0,i.useContext)(l),u=(0,i.useContext)(s),c=(0,i.useContext)(d).visualElement,m=(0,i.useContext)(f.O),v=function(e){var t=e.layoutId,n=(0,i.useContext)(p);return n&&void 0!==t?n+"-"+t:t}(n),y=(0,i.useRef)(void 0);o||(o=u.renderer),!y.current&&o&&(y.current=o(e,{visualState:t,parent:c,props:(0,r.__assign)((0,r.__assign)({},n),{layoutId:v}),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 g((function(){b&&(b.setProps((0,r.__assign)((0,r.__assign)((0,r.__assign)({},a),n),{layoutId:v})),b.isPresent=(0,h.EN)(m),b.isPresenceRoot=!c||c.presenceId!==(null===m||void 0===m?void 0:m.id),b.syncRender())})),(0,i.useEffect)((function(){var e;b&&(null===(e=b.animationState)||void 0===e||e.animateChanges())})),g((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 T(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"string"===typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"===typeof t?t(null!==n&&void 0!==n?n:e.custom,r,i):t}function x(e,t,n){var r=e.getProps();return T(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 _(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 w(e){return Boolean(_(e)||e.variants)}function k(e,t){var n=function(e,t){if(_(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,i.useContext)(d)),r=n.initial,o=n.animate;return(0,i.useMemo)((function(){return{initial:r,animate:o}}),t?[C(r),C(o)]:[])}function C(e){return Array.isArray(e)?e.join(" "):e}function A(e){var t=e.preloadedFeatures,n=e.createVisualElement,o=e.useRender,f=e.useVisualState,h=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(a[t].Component=n)}}(t),(0,i.forwardRef)((function(e,t){var p=(0,i.useContext)(l).isStatic,g=null,b=k(e,p),E=f(e,p);return!p&&m&&(b.visualElement=v(h,E,e,n),g=function(e,t,n){var o=[];if((0,i.useContext)(s),!t)return null;for(var l=0;l<c;l++){var d=u[l],f=a[d],h=f.isEnabled,p=f.Component;h(e)&&p&&o.push(i.createElement(p,(0,r.__assign)({key:d},e,{visualElement:t})))}return o}(e,b.visualElement)),i.createElement(i.Fragment,null,i.createElement(d.Provider,{value:b},o(h,e,function(e,t,n){return(0,i.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.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,p)),g)}))}function S(e){function t(t,n){return void 0===n&&(n={}),A(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 O=["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 D(e){return"string"===typeof e&&!e.includes("-")&&!!(O.indexOf(e)>-1||/[A-Z]/.test(e))}var I={};var N=["","X","Y","Z"],R=["transformPerspective","x","y","z"];function M(e,t){return R.indexOf(e)-R.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return N.forEach((function(t){return R.push(e+t)}))}));var P=new Set(R);function L(e){return P.has(e)}var F=new Set(["originX","originY","originZ"]);function j(e){return F.has(e)}function H(e,t){var n=t.layout,r=t.layoutId;return L(e)||j(e)||(n||void 0!==r)&&(!!I[e]||"opacity"===e)}var B=function(e){return null!==e&&"object"===typeof e&&e.getVelocity},z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function U(e){return e.startsWith("--")}var V=function(e,t){return t&&"number"===typeof e?t.transform(e):e},G=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,W=/(#[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 Y=function(e){return{test:function(t){return Z(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},X=Y("deg"),Q=Y("%"),J=Y("px"),ee=Y("vh"),te=Y("vw"),ne=(0,r.__assign)((0,r.__assign)({},Q),{parse:function(e){return Q.parse(e)/100},transform:function(e){return Q.transform(100*e)}}),re={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},ie=(0,r.__assign)((0,r.__assign)({},re),{transform:G(0,1)}),oe=(0,r.__assign)((0,r.__assign)({},re),{default:1}),ae=(0,r.__assign)((0,r.__assign)({},re),{transform:Math.round}),se={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:oe,scaleX:oe,scaleY:oe,scaleZ:oe,skew:X,skewX:X,skewY:X,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:ie,originX:ne,originY:ne,originZ:J,zIndex:ae,fillOpacity:ie,strokeOpacity:ie,numOctaves:ae};function ue(e,t,n,r,i,o,a,s){var u,c=e.style,l=e.vars,d=e.transform,f=e.transformKeys,h=e.transformOrigin;f.length=0;var p=!1,m=!1,g=!0;for(var v in t){var y=t[v];if(U(v))l[v]=y;else{var b=se[v],E=V(y,b);if(L(v)){if(p=!0,d[v]=E,f.push(v),!g)continue;y!==(null!==(u=b.default)&&void 0!==u?u:0)&&(g=!1)}else if(j(v))h[v]=E,m=!0;else if((null===n||void 0===n?void 0:n.isHydrated)&&(null===r||void 0===r?void 0:r.isHydrated)&&I[v]){var T=I[v].process(y,r,n),x=I[v].applyTo;if(x)for(var _=x.length,w=0;w<_;w++)c[x[w]]=T;else c[v]=T}else c[v]=E}}r&&n&&a&&s?(c.transform=a(r.deltaFinal,r.treeScale,p?d:void 0),o&&(c.transform=o(d,c.transform)),c.transformOrigin=s(r)):(p&&(c.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";o.sort(M);for(var d=!1,f=o.length,h=0;h<f;h++){var p=o[h];l+=(z[p]||p)+"("+i[p]+") ","z"===p&&(d=!0)}return!d&&s?l+="translateZ(0)":l=l.trim(),r?l=r(i,n?"":l):c&&n&&(l="none"),l}(e,i,g,o)),m&&(c.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ;return n+" "+i+" "+(void 0===o?0:o)}(h)))}var ce=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function le(e,t,n){for(var r in t)B(t[r])||H(r,n)||(e[r]=t[r])}function de(e,t,n){var o={};return le(o,e.style||{},e),Object.assign(o,function(e,t,n){var o=e.transformTemplate;return(0,i.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ue(e,t,void 0,void 0,{enableHardwareAcceleration:!n},o);var i=e.vars,a=e.style;return(0,r.__assign)((0,r.__assign)({},i),a)}),[t])}(e,t,n)),e.transformValues&&(o=e.transformValues(o)),o}function fe(e,t,n){var r={},i=de(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=i,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 pe(e){return he.has(e)}var me=function(e){return!pe(e)};try{var ge=n(46600).Z;me=function(e){return e.startsWith("on")?!pe(e):ge(e)}}catch(Eo){}function ve(e,t,n){return"string"===typeof e?e:J.transform(t+n*e)}var ye=function(e,t){return J.transform(e*t)},be={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ee={offset:"strokeDashoffset",array:"strokeDasharray"};function Te(e,t,n,i,o,a,s,u){var c=t.attrX,l=t.attrY,d=t.originX,f=t.originY,h=t.pathLength,p=t.pathSpacing,m=void 0===p?1:p,g=t.pathOffset,v=void 0===g?0:g;ue(e,(0,r.__rest)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i,o,a,s,u),e.attrs=e.style,e.style={};var y=e.attrs,b=e.style,E=e.dimensions,T=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 ve(t,e.x,e.width)+" "+ve(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!==T&&void 0!==h&&function(e,t,n,r,i,o){void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=!0);var a=o?be:Ee;e[a.offset]=ye(-i,t);var s=ye(n,t),u=ye(r,t);e[a.array]=s+" "+u}(y,T,h,m,v,!1)}var xe=function(){return(0,r.__assign)((0,r.__assign)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function _e(e,t){var n=(0,i.useMemo)((function(){var n=xe();return Te(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),(0,r.__assign)((0,r.__assign)({},n.attrs),{style:(0,r.__assign)({},n.style)})}),[t]);if(e.style){var o={};le(o,e.style,e),n.style=(0,r.__assign)((0,r.__assign)({},o),n.style)}return n}function we(e){void 0===e&&(e=!1);return function(t,n,o,a,s){var u=a.latestValues,c=(D(t)?_e:fe)(n,u,s),l=function(e,t,n){var r={};for(var i in e)(me(i)||!0===n&&pe(i)||!t&&!pe(i))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),d=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},l),c),{ref:o});return(0,i.createElement)(t,d)}}var ke=/([a-z])([A-Z])/g,Ce=function(e){return e.replace(ke,"$1-$2").toLowerCase()};function Ae(e,t){var n=t.style,r=t.vars;for(var i in Object.assign(e.style,n),r)e.style.setProperty(i,r[i])}var Se=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Oe(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)(B(t[r])||H(r,e))&&(n[r]=t[r]);return n}function Ie(e){var t=De(e);for(var n in e){if(B(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),Me=function(e){return Array.isArray(e)};function Pe(e){var t,n=B(e)?e.get():e;return t=n,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?n.toValue():n}function Le(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:je(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Fe=function(e){return function(t,n){var r=(0,i.useContext)(d),o=(0,i.useContext)(f.O);return n?Le(e,t,r,o):(0,Re.h)((function(){return Le(e,t,r,o)}))}};function je(e,t,n,i){var o={},a=!1===(null===n||void 0===n?void 0:n.initial),s=i(e);for(var u in s)o[u]=Pe(s[u]);var c=e.initial,l=e.animate,d=_(e),f=w(e);t&&f&&!d&&!1!==e.inherit&&(null!==c&&void 0!==c||(c=t.initial),null!==l&&void 0!==l||(l=t.animate));var h=a||!1===c?l:c;h&&"boolean"!==typeof h&&!Ne(h)&&(Array.isArray(h)?h:[h]).forEach((function(t){var n=T(e,t);if(n){var i=n.transitionEnd;n.transition;var a=(0,r.__rest)(n,["transitionEnd","transition"]);for(var s in a)o[s]=a[s];for(var s in i)o[s]=i[s]}}));return o}var He={useVisualState:Fe({scrapeMotionValuesFromProps:Ie,createRenderState:xe,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),Te(r,i,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Oe(t,r)}})};var Be,ze={useVisualState:Fe({scrapeMotionValuesFromProps:De,createRenderState:ce})};function Ue(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ve(e,t,n,r){(0,i.useEffect)((function(){var i=e.current;if(n&&i)return Ue(i,t,n,r)}),[e,t,n,r])}function Ge(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"}(Be||(Be={}));var qe={pageX:0,pageY:0};function We(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)?We(e,t):$e(e,t)}}var Ye=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},Xe={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Qe={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Je(e){return m&&null===window.onpointerdown?e:m&&null===window.ontouchstart?Qe[e]:m&&null===window.onmousedown?Xe[e]:e}function et(e,t,n,r){return Ue(e,Je(t),Ye(n,"pointerdown"===t),r)}function tt(e,t,n,r){return Ve(e,Je(t),n&&Ye(n,"pointerdown"===t),r)}function nt(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var rt=nt("dragHorizontal"),it=nt("dragVertical");function ot(e){var t=!1;if("y"===e)t=it();else if("x"===e)t=rt();else{var n=rt(),r=it();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function at(){var e=ot(!0);return!e||(e(),!1)}function st(e,t,n){return function(r,i){var o;Ge(r)&&!at()&&(null===n||void 0===n||n(r,i),null===(o=e.animationState)||void 0===o||o.setActive(Be.Hover,t))}}var ut=function(e,t){return!!t&&(e===t||ut(e,t.parentElement))},ct=n(6717),lt=function(e,t){return function(n){return t(e(n))}},dt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(lt)};var ft=function(e){return function(t){return e(t),null}},ht={tap:ft((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(!1),c=(0,i.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(Be.Tap,!1),!at()}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 h(e,t){d()&&(null===r||void 0===r||r(e,t))}tt(a,"pointerdown",s?function(e,t){var r;l(),u.current||(u.current=!0,c.current=dt(et(window,"pointerup",f),et(window,"pointercancel",h)),null===n||void 0===n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(Be.Tap,!0))}:void 0),(0,ct.z)(l)})),focus:ft((function(e){var t=e.whileFocus,n=e.visualElement;Ve(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Be.Focus,!0)}:void 0),Ve(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Be.Focus,!1)}:void 0)})),hover:ft((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;tt(i,"pointerenter",t||r?st(i,!0,t):void 0),tt(i,"pointerleave",n||r?st(i,!1,n):void 0)}))};function pt(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 mt=function(e,t,n){return Math.min(Math.max(n,e),t)},gt=.001;function vt(e){var t,n,r=e.duration,i=void 0===r?800:r,o=e.bounce,a=void 0===o?.25:o,s=e.velocity,u=void 0===s?0:s,c=e.mass,l=void 0===c?1:c,d=1-a;d=mt(.05,1,d),i=mt(.01,10,i/1e3),d<1?(t=function(e){var t=e*d,n=t*i,r=t-u,o=yt(e,d),a=Math.exp(-n);return gt-r/o*a},n=function(e){var n=e*d*i,r=n*u+u,o=Math.pow(d,2)*Math.pow(e,2)*i,a=Math.exp(-n),s=yt(Math.pow(e,2),d);return(-t(e)+gt>0?-1:1)*((r-o)*a)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var f=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:i};var h=Math.pow(f,2)*l;return{stiffness:h,damping:2*d*Math.sqrt(l*h),duration:i}}function yt(e,t){return e*Math.sqrt(1-t*t)}var bt=["duration","bounce"],Et=["stiffness","damping","mass"];function Tt(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,i=e.to,o=void 0===i?1:i,a=e.restSpeed,s=void 0===a?2:a,u=e.restDelta,c=(0,r.__rest)(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},d=function(e){var t=(0,r.__assign)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Tt(e,Et)&&Tt(e,bt)){var n=vt(e);(t=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(c),f=d.stiffness,h=d.damping,p=d.mass,m=d.velocity,g=d.duration,v=d.isResolvedFromDuration,y=_t,b=_t;function E(){var e=m?-m/1e3:0,t=o-n,r=h/(2*Math.sqrt(f*p)),i=Math.sqrt(f/p)/1e3;if(null!==u&&void 0!==u||(u=Math.abs(o-n)<=1?.01:.4),r<1){var a=yt(i,r);y=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))},b=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)y=function(n){return o-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var s=i*Math.sqrt(r*r-1);y=function(n){var a=Math.exp(-r*i*n),u=Math.min(s*n,300);return o-a*((e+r*i*t)*Math.sinh(u)+s*t*Math.cosh(u))/s}}}return E(),{next:function(e){var t=y(e);if(v)l.done=e>=g;else{var n=1e3*b(e),r=Math.abs(n)<=s,i=Math.abs(o-t)<=u;l.done=r&&i}return l.value=l.done?o:t,l},flipTarget:function(){var e;m=-m,n=(e=[o,n])[0],o=e[1],E()}}}xt.needsInterpolation=function(e,t){return"string"===typeof e||"string"===typeof t};var _t=function(e){return 0},wt=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},kt=function(e,t,n){return-n*e+n*t+e},Ct=function(e,t){return function(n){return Boolean(Z(n)&&$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},At=function(e,t,n){return function(r){var i;if(!Z(r))return r;var o=r.match(q),a=o[0],s=o[1],u=o[2],c=o[3];return(i={})[e]=parseFloat(a),i[t]=parseFloat(s),i[n]=parseFloat(u),i.alpha=void 0!==c?parseFloat(c):1,i}},St=G(0,255),Ot=(0,r.__assign)((0,r.__assign)({},re),{transform:function(e){return Math.round(St(e))}}),Dt={test:Ct("rgb","red"),parse:At("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,o=void 0===i?1:i;return"rgba("+Ot.transform(t)+", "+Ot.transform(n)+", "+Ot.transform(r)+", "+K(ie.transform(o))+")"}};var It={test:Ct("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Dt.transform},Nt={test:Ct("hsl","hue"),parse:At("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,o=void 0===i?1:i;return"hsla("+Math.round(t)+", "+Q.transform(K(n))+", "+Q.transform(K(r))+", "+K(ie.transform(o))+")"}},Rt=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Mt=[It,Dt,Nt],Pt=function(e){return Mt.find((function(t){return t.test(e)}))},Lt=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Ft=function(e,t){var n=Pt(e),i=Pt(t);Lt(e),Lt(t),n.transform,i.transform;var o=n.parse(e),a=i.parse(t),s=(0,r.__assign)({},o),u=n===Nt?kt:Rt;return function(e){for(var t in s)"alpha"!==t&&(s[t]=u(o[t],a[t],e));return s.alpha=kt(o.alpha,a.alpha,e),n.transform(s)}},jt={test:function(e){return Dt.test(e)||It.test(e)||Nt.test(e)},parse:function(e){return Dt.test(e)?Dt.parse(e):Nt.test(e)?Nt.parse(e):It.parse(e)},transform:function(e){return Z(e)?e:e.hasOwnProperty("red")?Dt.transform(e):Nt.transform(e)}},Ht="${c}",Bt="${n}";function zt(e){var t=[],n=0,r=e.match(W);r&&(n=r.length,e=e.replace(W,Ht),t.push.apply(t,r.map(jt.parse)));var i=e.match(q);return i&&(e=e.replace(q,Bt),t.push.apply(t,i.map(re.parse))),{values:t,numColors:n,tokenised:e}}function Ut(e){return zt(e).values}function Vt(e){var t=zt(e),n=t.values,r=t.numColors,i=t.tokenised,o=n.length;return function(e){for(var t=i,n=0;n<o;n++)t=t.replace(n<r?Ht:Bt,n<r?jt.transform(e[n]):K(e[n]));return t}}var Gt=function(e){return"number"===typeof e?0:e};var Kt={test:function(e){var t,n,r,i;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!==(i=null===(r=e.match(W))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Ut,createTransformer:Vt,getAnimatableNone:function(e){var t=Ut(e);return Vt(e)(t.map(Gt))}},qt=function(e){return"number"===typeof e};function Wt(e,t){return qt(e)?function(n){return kt(e,t,n)}:jt.test(e)?Ft(e,t):Xt(e,t)}var $t=function(e,t){var n=(0,r.__spreadArray)([],e),i=n.length,o=e.map((function(e,n){return Wt(e,t[n])}));return function(e){for(var t=0;t<i;t++)n[t]=o[t](e);return n}},Zt=function(e,t){var n=(0,r.__assign)((0,r.__assign)({},e),t),i={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(i[o]=Wt(e[o],t[o]));return function(e){for(var t in i)n[t]=i[t](e);return n}};function Yt(e){for(var t=Kt.parse(e),n=t.length,r=0,i=0,o=0,a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}var Xt=function(e,t){var n=Kt.createTransformer(t),r=Yt(e),i=Yt(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&(r.numNumbers,i.numNumbers),dt($t(r.parsed,i.parsed),n)},Qt=function(e,t){return function(n){return kt(e,t,n)}};function Jt(e,t,n){for(var r,i=[],o=n||("number"===typeof(r=e[0])?Qt:"string"===typeof r?jt.test(r)?Ft:Xt:Array.isArray(r)?$t:"object"===typeof r?Zt:void 0),a=e.length-1,s=0;s<a;s++){var u=o(e[s],e[s+1]);if(t){var c=Array.isArray(t)?t[s]:t;u=dt(c,u)}i.push(u)}return i}function en(e,t,n){var r=void 0===n?{}:n,i=r.clamp,o=void 0===i||i,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=Jt(t,a,s),l=2===u?function(e,t){var n=e[0],r=e[1],i=t[0];return function(e){return i(wt(n,r,e))}}(e,c):function(e,t){var n=e.length,r=n-1;return function(i){var o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>i||s===r);s++);o=s-1}var u=wt(e[o],e[o+1],i);return t[o](u)}}(e,c);return o?function(t){return l(mt(e[0],e[u-1],t))}:l}var tn,nn=function(e){return function(t){return 1-e(1-t)}},rn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},on=function(e){return function(t){return t*t*((e+1)*t-e)}},an=function(e){return e},sn=(tn=2,function(e){return Math.pow(e,tn)}),un=nn(sn),cn=rn(sn),ln=function(e){return 1-Math.sin(Math.acos(e))},dn=nn(ln),fn=rn(dn),hn=on(1.525),pn=nn(hn),mn=rn(hn),gn=function(e){var t=on(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),vn=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},yn=nn(vn);function bn(e,t){return e.map((function(){return t||cn})).splice(0,e.length-1)}function En(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,o=e.ease,a=e.offset,s=e.duration,u=void 0===s?300:s,c={done:!1,value:n},l=Array.isArray(i)?i:[n,i],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 en(d,l,{ease:Array.isArray(o)?o:bn(l,o)})}var h=f();return{next:function(e){return c.value=h(e),c.done=e>=u,c},flipTarget:function(){l.reverse(),h=f()}}}var Tn={keyframes:En,spring:xt,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,o=e.power,a=void 0===o?.8:o,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:i},h=a*n,p=i+h,m=void 0===d?p:d(p);return m!==p&&(h=m-i),{next:function(e){var t=-h*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 _n(e,t,n){return void 0===n&&(n=0),e-t-n}var wn=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 kn(e){var t,n,i,o,a,s=e.from,u=e.autoplay,c=void 0===u||u,l=e.driver,d=void 0===l?wn:l,f=e.elapsed,h=void 0===f?0:f,p=e.repeat,m=void 0===p?0:p,g=e.repeatType,v=void 0===g?"loop":g,y=e.repeatDelay,b=void 0===y?0:y,E=e.onPlay,T=e.onStop,x=e.onComplete,_=e.onRepeat,w=e.onUpdate,k=(0,r.__rest)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),C=k.to,A=0,S=k.duration,O=!1,D=!0,I=function(e){if(Array.isArray(e.to))return En;if(Tn[e.type])return Tn[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?En:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?xt:En}(k);(null===(n=(t=I).needsInterpolation)||void 0===n?void 0:n.call(t,s,C))&&(a=en([0,100],[s,C],{clamp:!1}),s=0,C=100);var N=I((0,r.__assign)((0,r.__assign)({},k),{from:s,to:C}));function R(){A++,"reverse"===v?h=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?_n(t+-e,t,n):t-(e-t)+n}(h,S,b,D=A%2===0):(h=_n(h,S,b),"mirror"===v&&N.flipTarget()),O=!1,_&&_()}function M(e){if(D||(e=-e),h+=e,!O){var t=N.next(Math.max(0,h));o=t.value,a&&(o=a(o)),O=D?t.done:h<=0}null===w||void 0===w||w(o),O&&(0===A&&(null!==S&&void 0!==S||(S=h)),A<m?function(e,t,n,r){return r?e>=t+n:e<=-n}(h,S,b,D)&&R():(i.stop(),x&&x()))}return c&&(null===E||void 0===E||E(),(i=d(M)).start()),{stop:function(){null===T||void 0===T||T(),i.stop()}}}function Cn(e,t){return t?e*(1e3/t):0}var An=function(e){return 1e3*e},Sn=function(e,t){return 1-3*t+3*e},On=function(e,t){return 3*t-6*e},Dn=function(e){return 3*e},In=function(e,t,n){return((Sn(t,n)*e+On(t,n))*e+Dn(t))*e},Nn=function(e,t,n){return 3*Sn(t,n)*e*e+2*On(t,n)*e+Dn(t)};var Rn=.1;function Mn(e,t,n,r){if(e===t&&n===r)return an;for(var i=new Float32Array(11),o=0;o<11;++o)i[o]=In(o*Rn,e,n);function a(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=Rn;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*Rn,s=Nn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var o=Nn(t,n,r);if(0===o)return t;t-=(In(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0;do{(o=In(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+Rn,e,n)}return function(e){return 0===e||1===e?e:In(a(e),t,r)}}var Pn={linear:an,easeIn:sn,easeInOut:cn,easeOut:un,circIn:ln,circInOut:fn,circOut:dn,backIn:hn,backInOut:mn,backOut:pn,anticipate:gn,bounceIn:yn,bounceInOut:function(e){return e<.5?.5*(1-vn(1-2*e)):.5*vn(2*e-1)+.5},bounceOut:vn},Ln=function(e){if(Array.isArray(e)){e.length;var t=(0,r.__read)(e,4);return Mn(t[0],t[1],t[2],t[3])}return"string"===typeof e?Pn[e]:e},Fn=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Kt.test(t)||t.startsWith("url(")))},jn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Hn=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Bn=function(){return{type:"keyframes",ease:"linear",duration:.3}},zn=function(e){return{type:"keyframes",duration:.8,values:e}},Un={x:jn,y:jn,z:jn,rotate:jn,rotateX:jn,rotateY:jn,rotateZ:jn,scaleX:Hn,scaleY:Hn,scale:Hn,opacity:Bn,backgroundColor:Bn,color:Bn,default:Hn},Vn=new Set(["brightness","contrast","saturate","opacity"]);function Gn(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=(r.match(q)||[])[0];if(!i)return e;var o=r.replace(i,""),a=Vn.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+o+")"}var Kn=/([a-z-]*)\(.*?\)/g,qn=(0,r.__assign)((0,r.__assign)({},Kt),{getAnimatableNone:function(e){var t=e.match(Kn);return t?t.map(Gn).join(" "):e}}),Wn=(0,r.__assign)((0,r.__assign)({},se),{color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:qn,WebkitFilter:qn}),$n=function(e){return Wn[e]};function Zn(e,t){var n,r=$n(e);return r!==qn&&(r=Kt),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Yn(e){var t=e.ease,n=e.times,i=e.yoyo,o=e.flip,a=e.loop,s=(0,r.__rest)(e,["ease","times","yoyo","flip","loop"]),u=(0,r.__assign)({},s);return n&&(u.offset=n),s.duration&&(u.duration=An(s.duration)),s.repeatDelay&&(u.repeatDelay=An(s.repeatDelay)),t&&(u.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(Ln):Ln(t)),"tween"===s.type&&(u.type="keyframes"),(i||a||o)&&(!0,i?u.repeatType="reverse":a?u.repeatType="loop":o&&(u.repeatType="mirror"),u.repeat=a||i||o||s.repeat),"spring"!==s.type&&(u.type="keyframes"),u}function Xn(e,t,n){var i;return Array.isArray(t.to)&&(null!==(i=e.duration)&&void 0!==i||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.__spreadArray)([],(0,r.__read)(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.__rest)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.__assign)((0,r.__assign)({},e),function(e,t){var n;return n=Me(t)?zn:Un[e]||Un.default,(0,r.__assign)({to:t},n(t))}(n,t.to))),(0,r.__assign)((0,r.__assign)({},t),Yn(e))}function Qn(e,t,n,i,o){var a,s=tr(i,e),u=null!==(a=s.from)&&void 0!==a?a:t.get(),c=Fn(e,n);"none"===u&&c&&"string"===typeof n?u=Zn(e,n):Jn(u)&&"string"===typeof n?u=er(n):!Array.isArray(n)&&Jn(n)&&"string"===typeof u&&(n=er(u));var l=Fn(e,u);return l&&c&&!1!==s.type?function(){var i={from:u,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function(e){var t,n=e.from,i=void 0===n?0:n,o=e.velocity,a=void 0===o?0:o,s=e.min,u=e.max,c=e.power,l=void 0===c?.8:c,d=e.timeConstant,f=void 0===d?750:d,h=e.bounceStiffness,p=void 0===h?500:h,m=e.bounceDamping,g=void 0===m?10:m,v=e.restDelta,y=void 0===v?1:v,b=e.modifyTarget,E=e.driver,T=e.onUpdate,x=e.onComplete;function _(e){return void 0!==s&&e<s||void 0!==u&&e>u}function w(e){return void 0===s?u:void 0===u||Math.abs(s-e)<Math.abs(u-e)?s:u}function k(e){null===t||void 0===t||t.stop(),t=kn((0,r.__assign)((0,r.__assign)({},e),{driver:E,onUpdate:function(t){var n;null===T||void 0===T||T(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:x}))}function C(e){k((0,r.__assign)({type:"spring",stiffness:p,damping:g,restDelta:y},e))}if(_(i))C({from:i,velocity:a,to:w(i)});else{var A=l*a+i;"undefined"!==typeof b&&(A=b(A));var S,O,D=w(A),I=D===s?-1:1;k({type:"decay",from:i,velocity:a,timeConstant:f,power:l,restDelta:y,modifyTarget:b,onUpdate:_(A)?function(e){S=O,O=e,a=Cn(e-S,(0,xn.$B)().delta),(1===I&&e>D||-1===I&&e<D)&&C({from:e,to:D,velocity:a})}:void 0})}return{stop:function(){return null===t||void 0===t?void 0:t.stop()}}}((0,r.__assign)((0,r.__assign)({},i),s)):kn((0,r.__assign)((0,r.__assign)({},Xn(s,i,e)),{onUpdate:function(e){var t;i.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;i.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e;return t.set(n),o(),null===(e=null===s||void 0===s?void 0:s.onComplete)||void 0===e||e.call(s),{stop:function(){}}}}function Jn(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function er(e){return"number"===typeof e?0:Zn("",e)}function tr(e,t){return e[t]||e.default||e}function nr(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var o,a,s=Qn(e,t,n,r,i),u=function(e,t){var n;return null!==(n=(tr(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),c=function(){return a=s()};return u?o=setTimeout(c,An(u)):c(),function(){clearTimeout(o),null===a||void 0===a||a.stop()}}))}function rr(e,t){-1===e.indexOf(t)&&e.push(t)}function ir(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var or=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return rr(this.subscriptions,e),function(){return ir(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 i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ar=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new or,this.velocityUpdateSubscribers=new or,this.renderSubscribers=new or,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)(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,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?Cn(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 sr(e){return new ar(e)}var ur=function(e){return function(t){return t.test(e)}},cr=[re,J,Q,X,te,ee,{test:function(e){return"auto"===e},parse:function(e){return e}}],lr=function(e){return cr.find(ur(e))},dr=(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(cr)),[jt,Kt]),fr=function(e){return dr.find(ur(e))};function hr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sr(n))}function pr(e,t){var n=x(e,t),i=n?e.makeTargetAnimatable(n,!1):{},o=i.transitionEnd,a=void 0===o?{}:o;i.transition;var s,u=(0,r.__rest)(i,["transitionEnd","transition"]);for(var c in u=(0,r.__assign)((0,r.__assign)({},u),a)){hr(e,c,(s=u[c],Me(s)?s[s.length-1]||0:s))}}function mr(e,t){if(t)return(t[e]||t.default||t).from}function gr(e,t,n){var i;void 0===n&&(n={});var o=x(e,t,n.custom),a=(o||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var u=o?function(){return vr(e,o,n)}:function(){return Promise.resolve()},c=(null===(i=e.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var o=s.delayChildren,a=void 0===o?0:o,u=s.staggerChildren,c=s.staggerDirection;return function(e,t,n,i,o,a){void 0===n&&(n=0);void 0===i&&(i=0);void 0===o&&(o=1);var s=[],u=(e.variantChildren.size-1)*i,c=1===o?function(e){return void 0===e&&(e=0),e*i}:function(e){return void 0===e&&(e=0),u-e*i};return Array.from(e.variantChildren).sort(yr).forEach((function(e,i){s.push(gr(e,t,(0,r.__assign)((0,r.__assign)({},a),{delay:n+c(i)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+i,u,c,n)}:function(){return Promise.resolve()},l=s.when;if(l){var d=(0,r.__read)("beforeChildren"===l?[u,c]:[c,u],2),f=d[0],h=d[1];return f().then(h)}return Promise.all([u(),c(n.delay)])}function vr(e,t,n){var i,o=void 0===n?{}:n,a=o.delay,s=void 0===a?0:a,u=o.transitionOverride,c=o.type,l=e.makeTargetAnimatable(t),d=l.transition,f=void 0===d?e.getDefaultTransition():d,h=l.transitionEnd,p=(0,r.__rest)(l,["transition","transitionEnd"]);u&&(f=u);var m=[],g=c&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[c]);for(var v in p){var y=e.getValue(v),b=p[v];if(!(!y||void 0===b||g&&br(g,v))){var E=nr(v,y,b,(0,r.__assign)({delay:s},f));m.push(E)}}return Promise.all(m).then((function(){h&&pr(e,h)}))}function yr(e,t){return e.sortNodePosition(t)}function br(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var Er=[Be.Animate,Be.Hover,Be.Tap,Be.Drag,Be.Focus,Be.Exit],Tr=(0,r.__spreadArray)([],(0,r.__read)(Er)).reverse(),xr=Er.length;function _r(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 i=t.map((function(t){return gr(e,t,n)}));r=Promise.all(i)}else if("string"===typeof t)r=gr(e,t,n);else{var o="function"===typeof t?x(e,t,n.custom):t;r=vr(e,o,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function wr(e){var t=_r(e),n=function(){var e;return(e={})[Be.Animate]=kr(!0),e[Be.Hover]=kr(),e[Be.Tap]=kr(),e[Be.Drag]=kr(),e[Be.Focus]=kr(),e[Be.Exit]=kr(),e}(),i={},o=!0,a=function(t,n){var i=x(e,n);if(i){i.transition;var o=i.transitionEnd,a=(0,r.__rest)(i,["transition","transitionEnd"]);t=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),a),o)}return t};function s(s,u){for(var c,l=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set,p={},m=1/0,g=function(t){var i=Tr[t],g=n[i],v=null!==(c=l[i])&&void 0!==c?c:d[i],y=E(v),T=i===u?g.isActive:null;!1===T&&(m=t);var x=v===d[i]&&v!==l[i]&&y;if(x&&o&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys=(0,r.__assign)({},p),!g.isActive&&null===T||!v&&!g.prevProp||Ne(v)||"boolean"===typeof v)return"continue";var _=function(e,t){if("string"===typeof t)return t!==e;if(b(t))return!pt(t,e);return!1}(g.prevProp,v)||i===u&&g.isActive&&!x&&y||t>m&&y,w=Array.isArray(v)?v:[v],k=w.reduce(a,{});!1===T&&(k={});var C=g.prevResolvedValues,A=void 0===C?{}:C,S=(0,r.__assign)((0,r.__assign)({},A),k),O=function(e){_=!0,h.delete(e),g.needsAnimating[e]=!0};for(var D in S){var I=k[D],N=A[D];p.hasOwnProperty(D)||(I!==N?Me(I)&&Me(N)?pt(I,N)?g.protectedKeys[D]=!0:O(D):void 0!==I?O(D):h.add(D):void 0!==I&&h.has(D)?O(D):g.protectedKeys[D]=!0)}g.prevProp=v,g.prevResolvedValues=k,g.isActive&&(p=(0,r.__assign)((0,r.__assign)({},p),k)),o&&e.blockInitialAnimation&&(_=!1),_&&!x&&f.push.apply(f,(0,r.__spreadArray)([],(0,r.__read)(w.map((function(e){return{animation:e,options:(0,r.__assign)({type:i},s)}})))))},v=0;v<xr;v++)g(v);if(i=(0,r.__assign)({},p),h.size){var y={};h.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var T=Boolean(f.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(T=!1),o=!1,T?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:s,setActive:function(t,r,i){var o;return n[t].isActive===r?Promise.resolve():(null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,s(i,t))},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function kr(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Cr={animation:ft((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=wr(t)),Ne(n)&&(0,i.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:ft((function(e){var t=e.custom,n=e.visualElement,o=(0,r.__read)((0,h.oO)(),2),a=o[0],s=o[1],u=(0,i.useContext)(f.O);(0,i.useEffect)((function(){var e,r,i=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Be.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:t});!a&&(null===i||void 0===i||i.then(s))}),[a])}))},Ar=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Sr=function(e){return Ar(e)&&e.hasOwnProperty("z")},Or=function(e,t){return Math.abs(e-t)};function Dr(e,t){if(qt(e)&&qt(t))return Or(e,t);if(Ar(e)&&Ar(t)){var n=Or(e.x,t.x),r=Or(e.y,t.y),i=Sr(e)&&Sr(t)?Or(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var Ir=function(){function e(e,t,n){var i=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=Mr(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=Dr(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=(0,xn.$B)().timestamp;i.history.push((0,r.__assign)((0,r.__assign)({},o),{timestamp:a}));var s=i.handlers,u=s.onStart,c=s.onMove;t||(u&&u(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=Nr(t,i.transformPagePoint),Ge(e)&&0===e.buttons?i.handlePointerUp(e,t):xn.ZP.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=Mr(Nr(t,i.transformPagePoint),i.history);i.startEvent&&r&&r(e,a),o&&o(e,a)},!(Ke(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Nr(Ze(e),this.transformPagePoint),s=a.point,u=(0,xn.$B)().timestamp;this.history=[(0,r.__assign)((0,r.__assign)({},s),{timestamp:u})];var c=t.onSessionStart;c&&c(e,Mr(a,this.history)),this.removeListeners=dt(et(window,"pointermove",this.handlePointerMove),et(window,"pointerup",this.handlePointerUp),et(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 Nr(e,t){return t?{point:t(e.point)}:e}function Rr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mr(e,t){var n=e.point;return{point:n,delta:Rr(n,Lr(t)),offset:Rr(n,Pr(t)),velocity:Fr(t,.1)}}function Pr(e){return e[0]}function Lr(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,i=Lr(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>An(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var jr=n(93327);function Hr(e){return[e("x"),e("y")]}function Br(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?kt(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?kt(i,e,n.max):Math.min(e,i)),e}function zr(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 Ur(e,t){var n,i=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(i=(n=(0,r.__read)([o,i],2))[0],o=n[1]),{min:e.min+i,max:e.min+o}}function Vr(e,t,n){return{min:Gr(e,t),max:Gr(e,n)}}function Gr(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Kr(e,t){var n=e.getBoundingClientRect();return(0,jr.RX)((0,jr.dV)(n,t))}function qr(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Dr(e,t)<n}function Wr(e){return e.max-e.min}function $r(e,t){var n=.5,r=Wr(e),i=Wr(t);return i>r?n=wt(t.min,t.max-r,e.min):r>i&&(n=wt(e.min,e.max-i,t.min)),mt(0,1,n)}function Zr(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=kt(t.min,t.max,e.origin),e.scale=Wr(n)/Wr(t),qr(e.scale,1,1e-4)&&(e.scale=1),e.translate=kt(n.min,n.max,e.origin)-e.originPoint,qr(e.translate)&&(e.translate=0)}function Yr(e,t,n,r){Zr(e.x,t.x,n.x,Xr(r.originX)),Zr(e.y,t.y,n.y,Xr(r.originY))}function Xr(e){return"number"===typeof e?e:.5}function Qr(e,t,n){e.min=n.min+t.min,e.max=e.min+Wr(t)}var Jr=n(58839);function ei(e,t){return{min:t.min-e.min,max:t.max-e.min}}function ti(e,t){return{x:ei(e.x,t.x),y:ei(e.y,t.y)}}function ni(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function ri(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function ii(e,t){e.min=t.min,e.max=t.max}function oi(e,t,n){return n+t*(e-n)}function ai(e,t,n,r,i){return void 0!==i&&(e=oi(e,i,r)),oi(e,n,r)+t}function si(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ai(e.min,t,n,r,i),e.max=ai(e.max,t,n,r,i)}function ui(e,t){var n=t.x,r=t.y;si(e.x,n.translate,n.scale,n.originPoint),si(e.y,r.translate,r.scale,r.originPoint)}function ci(e,t,n,i){var o=(0,r.__read)(i,3),a=o[0],s=o[1],u=o[2];e.min=t.min,e.max=t.max;var c=void 0!==n[u]?n[u]:.5,l=kt(t.min,t.max,c);si(e,n[a],n[s],l,n.scale)}var li=["x","scaleX","originX"],di=["y","scaleY","originY"];function fi(e,t,n){ci(e.x,t.x,n,li),ci(e.y,t.y,n,di)}function hi(e,t,n,r,i){return e=oi(e-=t,1/n,r),void 0!==i&&(e=oi(e,1/i,r)),e}function pi(e,t,n){var i=(0,r.__read)(n,3),o=i[0],a=i[1],s=i[2];!function(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var o=kt(e.min,e.max,r)-t;e.min=hi(e.min,t,n,o,i),e.max=hi(e.max,t,n,o,i)}(e,t[o],t[a],t[s],t.scale)}function mi(e,t){pi(e.x,t,li),pi(e.y,t,di)}var gi,vi=n(27565),yi=new WeakMap,bi=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,jr.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(),yi.set(t,this)}return e.prototype.start=function(e,t){var n=this,i=void 0===t?{}:t,o=i.snapToCursor,a=void 0!==o&&o,s=i.cursorProgress,u=this.props.transformPagePoint;this.panSession=new Ir(e,{onSessionStart:function(e){var t;n.stopMotion();var i=function(e){return Ze(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=(0,vi.U)((function(e,t){var o=(0,Jr.kv)(n.visualElement),u=(0,Jr.e3)(n.visualElement),c=(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(o)),(0,r.__read)(u)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){(0,Jr.de)(n.visualElement),u.forEach(Jr.de)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(i))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;Hr((function(t){if(!l){var r=e.target[t],o=r.min,a=r.max;n.cursorProgress[t]=s?s[t]:wt(o,a,i[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,i,o,a=n.props,s=a.drag,u=a.dragPropagation;(!s||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ot(s),n.openGlobalLock))&&((0,vi.R)(),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,e,t),null===(o=n.visualElement.animationState)||void 0===o||o.setActive(Be.Drag,!0))},onMove:function(e,t){var r,i,o,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===(i=(r=n.props).onDirectionLock)||void 0===i||i.call(r,n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,e,t),gi=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,i=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(y(n)?this.resolveRefConstraints(i,n):function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:zr(e.x,r,o),y:zr(e.y,n,i)}}(i,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:Vr(e,"left","right"),y:Vr(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&Hr((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}(i[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,i=n.transformPagePoint,o=t.current;this.constraintsBox=Kr(o,i);var a=function(e,t){return{x:Ur(e.x,t.x),y:Ur(e.y,t.y)}}(e,this.constraintsBox);if(r){var s=r((0,jr._6)(a));this.hasMutatedConstraints=!!s,s&&(a=(0,jr.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(Be.Drag,!1)},e.prototype.stop=function(e,t){var n,r,i;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),o){var a=t.velocity;this.animateDragEnd(a),null===(i=(r=this.props).onDragEnd)||void 0===i||i.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return Hr((function(n){if(Ei(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var i=t.visualElement.getLayoutState().layout,o=i[n].max-i[n].min,a=i[n].min+o/2,s=e[n]-a;t.originPoint[n]=e[n],r.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(Ei(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],i=this.constraints?Br(r,this.constraints[e],this.elastic[e]):r;n.set(i)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],i=r.max-r.min,o=this.cursorProgress[e],a=function(e,t,n,r,i){var o=e-t*n;return r?Br(o,r,i):o}(t[e],i,o,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+i)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,i=e.dragDirectionLock,o=void 0!==i&&i,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,h=void 0===f||f,p=(0,r.__rest)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.__assign)({drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:c,dragElastic:d,dragMomentum:h},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,i="_drag"+e.toUpperCase();return this.props[i]?this.props[i]: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,i=n.drag,o=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?mi(n=ti(r.projection.target,e.projection.target),r.getLatestValues()):n=ti(r.getLayoutState().layout,e.getLayoutState().layout),Hr((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=ti(l.projection.targetFinal,c);Hr((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=Hr((function(n){var l;if(Ei(n,i,t.currentDirection)){var d=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{},f=a?200:1e6,h=a?40:1e7,p=(0,r.__assign)((0,r.__assign)({type:"inertia",velocity:o?e[n]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,p):t.visualElement.startLayoutAnimation(n,p,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;Hr((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),nr(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};Hr((function(t){r[t]=$r(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){Hr((function(t){if(Ei(t,n,null)){var i=function(e,t,n){var r=e.max-e.min,i=kt(t.min,t.max-r,n);return{min:i,max:i+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),o=i.min,a=i.max;e.visualElement.setProjectionTargetAxis(t,o,a)}}))})),setTimeout(vi.R,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=(0,vi.U)((function(n,r){var i=(0,Jr.kv)(t.visualElement);r((function(){return i.forEach((function(e){return e.resetTransform()}))})),n((function(){return(0,Jr.de)(t.visualElement)})),r((function(){return i.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=et(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=Ue(window,"resize",(function(){t.scalePoint()})),i=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),o=e.prevDragCursor;return o&&this.start(gi,{cursorProgress:o}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===i||void 0===i||i(),t.cancelDrag()}},e}();function Ei(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var Ti={pan:ft((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(null),c=(0,i.useContext)(l).transformPagePoint,d={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,i.useEffect)((function(){null!==u.current&&u.current.updateHandlers(d)})),tt(a,"pointerdown",s&&function(e){u.current=new Ir(e,d,{transformPagePoint:c})}),(0,ct.z)((function(){return u.current&&u.current.end()}))})),drag:ft((function(e){var t=e.dragControls,n=e.visualElement,o=(0,i.useContext)(l).transformPagePoint,a=(0,Re.h)((function(){return new bi({visualElement:n})}));a.setProps((0,r.__assign)((0,r.__assign)({},e),{transformPagePoint:o})),(0,i.useEffect)((function(){return t&&t.subscribe(a)}),[a]),(0,i.useEffect)((function(){return a.mount(n)}),[])}))},xi=n(7646);function _i(e){return"string"===typeof e&&e.startsWith("var(--")}var wi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ki(e,t,n){void 0===n&&(n=1);var i=(0,r.__read)(function(e){var t=wi.exec(e);if(!t)return[,];var n=(0,r.__read)(t,3);return[n[1],n[2]]}(e),2),o=i[0],a=i[1];if(o){var s=window.getComputedStyle(t).getPropertyValue(o);return s?s.trim():_i(a)?ki(a,t,n+1):a}}function Ci(e,t){return e/(t.max-t.min)*100}var Ai="_$css";var Si={process:function(e,t,n){var r=n.target;if("string"===typeof e){if(!J.test(e))return e;e=parseFloat(e)}return Ci(e,r.x)+"% "+Ci(e,r.y)+"%"}},Oi={borderRadius:(0,r.__assign)((0,r.__assign)({},Si),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Si,borderTopRightRadius:Si,borderBottomLeftRadius:Si,borderBottomRightRadius:Si,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(wi,(function(e){return a.push(e),Ai})));var s=Kt.parse(e);if(s.length>5)return i;var u=Kt.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=kt(l,d,.5);"number"===typeof s[2+c]&&(s[2+c]/=f),"number"===typeof s[3+c]&&(s[3+c]/=f);var h=u(s);if(o){var p=0;h=h.replace(Ai,(function(){var e=a[p];return p++,e}))}return h}}},Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget=(0,jr.VZ)(),t.currentAnimationTarget=(0,jr.VZ)(),t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,i){void 0===i&&(i={});var o=i.originBox,a=i.targetBox,s=i.visibilityAction,u=i.shouldStackAnimate,c=i.onComplete,l=i.prevParent,d=(0,r.__rest)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=t.props,h=f.visualElement,p=f.layout;if(!1===u)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===u){u&&(t.isAnimatingTree=!0),n=o||n,e=a||e;var m=!1,g=h.getProjectionParent();if(g){var v=g.prevViewportBox,y=g.getLayoutState().layout;l&&(a&&(y=l.getLayoutState().layout),o&&!ni(l,g)&&l.prevViewportBox&&(v=l.prevViewportBox)),v&&Li(l,o,a)&&(m=!0,n=ti(v,n),e=ti(y,e))}var b=Ii(n,e),E=Hr((function(i){var o,a;if("position"===p){var u=e[i].max-e[i].min;n[i].max=n[i].min+u}if(!h.projection.isTargetLocked)return void 0===s?b?t.animateAxis(i,e[i],n[i],(0,r.__assign)((0,r.__assign)({},d),{isRelative:m})):(null===(a=(o=t.stopAxisAnimation)[i])||void 0===a||a.call(o),h.setProjectionTargetAxis(i,e[i].min,e[i].max,m)):void h.setVisibility(s===xi.c.Show)}));return h.syncRender(),Promise.all(E).then((function(){t.isAnimatingTree=!1,c&&c(),h.notifyLayoutAnimationComplete()}))}},t}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=nr,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]}(Oi)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Hr((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 i,o,a=this,s=void 0===r?{}:r,u=s.transition,c=s.isRelative;if(!this.isAnimating[e]||!Mi(t,this.currentAnimationTarget[e])){null===(o=(i=this.stopAxisAnimation)[e])||void 0===o||o.call(i),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 h=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=kt(t.min,n.min,r),e.max=kt(t.max,n.max,r)}(d,n,t,r),l.setProjectionTargetAxis(e,d.min,d.max,c)};h();var p=f.onChange(h);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,f.stop(),p()},this.currentAnimationTarget[e]=t;var m=u||l.getDefaultTransition()||Pi;return nr("x"===e?"layoutX":"layoutY",f,1e3,m&&tr(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}(i.Component);function Ii(e,t){return!Ri(e)&&!Ri(t)&&(!Mi(e.x,t.x)||!Mi(e.y,t.y))}var Ni={min:0,max:0};function Ri(e){return Mi(e.x,Ni)&&Mi(e.y,Ni)}function Mi(e,t){return e.min===t.min&&e.max===t.max}var Pi={duration:.45,ease:[.4,0,.1,1]};function Li(e,t,n){return e||!e&&!(t||n)}var Fi=n(49870),ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;(0,Fi.Md)(t)&&t.register(r),(0,Fi.Md)(n)&&n.register(r),r.onUnmount((function(){(0,Fi.Md)(t)&&t.remove(r),(0,Fi.Md)(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return(0,Fi.Md)(t)?t.syncUpdate():((0,Jr.x7)(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;(0,Fi.Md)(e)||e.flush()},t.prototype.render=function(){return null},t}(i.Component);var Hi={measureLayout:function(e){var t=(0,i.useContext)(Fi.WH),n=(0,i.useContext)(Fi.bg);return i.createElement(ji,(0,r.__assign)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,r.__read)((0,h.oO)(),2)[1];return i.createElement(Di,(0,r.__assign)({},e,{safeToRemove:t}))}};function Bi(){return{isHydrated:!1,layout:(0,jr.VZ)(),layoutCorrected:(0,jr.VZ)(),treeScale:{x:1,y:1},delta:(0,jr.pY)(),deltaFinal:(0,jr.pY)(),deltaTransform:""}}var zi=Bi();function Ui(e,t,n){var r=e.x,i=e.y,o="translate3d("+r.translate/t.x+"px, "+i.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(o+="rotate("+a+") "),s&&(o+="rotateX("+s+") "),u&&(o+="rotateY("+u+") ")}return o+="scale("+r.scale+", "+i.scale+")",n||o!==Gi?o:""}function Vi(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Gi=Ui(zi.delta,zi.treeScale,{x:1,y:1}),Ki=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function qi(e,t,n,r){var i,o,a=e.delta,s=e.layout,u=e.layoutCorrected,c=e.treeScale,l=t.target;o=s,ii((i=u).x,o.x),ii(i.y,o.y),function(e,t,n){var r=n.length;if(r){var i,o;t.x=t.y=1;for(var a=0;a<r;a++)o=(i=n[a]).getLayoutState().delta,t.x*=o.x.scale,t.y*=o.y.scale,ui(e,o),ri(i)&&fi(e,e,i.getLatestValues())}}(u,c,n),Yr(a,u,l,r)}var Wi=n(519),$i=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){rr(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){ir(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Wi._),this.isDirty=!1,this.children.forEach(e)},e}();var Zi=function(e){var t=e.treeType,n=void 0===t?"":t,i=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.resetTransform,d=e.restoreTransform,f=e.removeValueFromRenderState,h=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var m=e.parent,g=e.props,v=e.presenceId,y=e.blockInitialAnimation,b=e.visualState;void 0===t&&(t={});var T,x,k,C,A,S,O=b.latestValues,D=b.renderState,I=function(){var e=Ki.map((function(){return new or})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Ki.forEach((function(r){var i;null===(i=t[r])||void 0===i||i.call(t);var o="on"+r,a=e[o];a&&(t[r]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+Ki[t]]=function(t){return e.add(t)},n["notify"+Ki[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,r.__spreadArray)([],(0,r.__read)(t)))}})),n}(),N={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:(0,jr.VZ)(),targetFinal:(0,jr.VZ)()},R=N,M=O,P=Bi(),L=!1,F=new Map,j=new Map,H={},z=(0,r.__assign)({},O);function U(){T&&(X.isProjectionReady()&&(fi(R.targetFinal,R.target,M),Yr(P.deltaFinal,P.layoutCorrected,R.targetFinal,O)),V(),u(T,D))}function V(){var e=O;if(C&&C.isActive()){var n=C.getCrossfadeState(X);n&&(e=n)}i(X,D,e,R,P,t,g)}function G(){I.notifyUpdate(O)}function K(){X.layoutTree.forEach(Xi)}var q=p(g);for(var W in q){var $=q[W];void 0!==O[W]&&B($)&&$.set(O[W],!1)}var Z=_(g),Y=w(g),X=(0,r.__assign)((0,r.__assign)({treeType:n,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,path:m?(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(m.path)),[m]):[],layoutTree:m?m.layoutTree:new $i,presenceId:v,projection:N,variantChildren:Y?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===m||void 0===m?void 0:m.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(T)},mount:function(e){T=X.current=e,X.pointTo(X),Y&&m&&!Z&&(S=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(U),xn.qY.preRender(X.updateLayoutProjection),j.forEach((function(e){return e()})),X.stopLayoutAnimation(),X.layoutTree.remove(X),null===S||void 0===S||S(),null===m||void 0===m||m.children.delete(X),null===k||void 0===k||k(),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 h&&n===e.treeType?h(X.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return Y?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 g.layoutId},getInstance:function(){return T},getStaticValue:function(e){return O[e]},setStaticValue:function(e,t){return O[e]=t},getLatestValues:function(){return O},setVisibility:function(e){X.isVisible!==e&&(X.isVisible=e,X.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(X,e,g,t)},addValue:function(e,t){X.hasValue(e)&&X.removeValue(e),F.set(e,t),O[e]=t.get(),function(e,t){var n=t.onChange((function(t){O[e]=t,g.onUpdate&&xn.ZP.update(G,!1,!0)})),r=t.onRenderRequest(X.scheduleRender);j.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;F.delete(e),null===(t=j.get(e))||void 0===t||t(),j.delete(e),delete O[e],f(e,D)},hasValue:function(e){return F.has(e)},getValue:function(e,t){var n=F.get(e);return void 0===n&&void 0!==t&&(n=sr(t),X.addValue(e,n)),n},forEachValue:function(e){return F.forEach(e)},readValue:function(e){var n;return null!==(n=O[e])&&void 0!==n?n:c(T,e,t)},setBaseTarget:function(e,t){z[e]=t},getBaseTarget:function(e){if(o){var t=o(g,e);if(void 0!==t&&!B(t))return t}return z[e]}},I),{build:function(){return V(),D},scheduleRender:function(){xn.ZP.render(U,!1,!0)},syncRender:U,setProps:function(e){g=e,I.updatePropListeners(e),H=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(B(o))e.addValue(i,o);else if(B(a))e.addValue(i,sr(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,sr(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(X,p(g),H)},getProps:function(){return g},getVariant:function(e){var t;return null===(t=g.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return g.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!==g.initial&&(t.initial=g.initial),t}for(var n={},r=0;r<eo;r++){var i=Ji[r],o=g[i];(E(o)||!1===o)&&(n[i]=o)}return n},enableLayoutProjection:function(){N.isEnabled=!0,X.layoutTree.add(X)},lockProjectionTarget:function(){N.isTargetLocked=!0},unlockProjectionTarget:function(){X.stopLayoutAnimation(),N.isTargetLocked=!1},getLayoutState:function(){return P},setCrossfader:function(e){C=e},isProjectionReady:function(){return N.isEnabled&&N.isHydrated&&P.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=X.getProjectionAnimationProgress()[e],i=n?N.relativeTarget[e]:N.target[e],o=i.min,a=i.max-o;return r.clearListeners(),r.set(o),r.set(o),r.onChange((function(t){X.setProjectionTargetAxis(e,t,t+a,n)})),X.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){Hr((function(e){return X.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=s(T,t);return e||mi(n,O),n},getProjectionAnimationProgress:function(){return A||(A={x:sr(0),y:sr(0)}),A},setProjectionTargetAxis:function(e,t,n,r){var i;void 0===r&&(r=!1),r?(N.relativeTarget||(N.relativeTarget=(0,jr.VZ)()),i=N.relativeTarget[e]):(N.relativeTarget=void 0,i=N.target[e]),N.isHydrated=!0,i.min=t,i.max=n,L=!0,I.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=P.layout);var n=X.getProjectionAnimationProgress(),r=n.x,i=n.y,o=!N.relativeTarget&&!N.isTargetLocked&&!r.isAnimating()&&!i.isAnimating();(e||o)&&Hr((function(e){var n=t[e],r=n.min,i=n.max;X.setProjectionTargetAxis(e,r,i)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=ti(t.getLayoutState().layout,e.getLayoutState().layout);Hr((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(X),X.notifyLayoutUpdate(P.layout,X.prevViewportBox||P.layout,e)},resetTransform:function(){return l(X,T,g)},restoreTransform:function(){return d(T,D)},updateLayoutProjection:function(){if(X.isProjectionReady()){var e=P.delta,t=P.treeScale,n=t.x,r=t.y,i=P.deltaTransform;qi(P,R,X.path,O),L&&X.notifyViewportBoxUpdate(R.target,e),L=!1;var o=Ui(e,t);o===i&&n===t.x&&r===t.y||X.scheduleRender(),P.deltaTransform=o}},updateTreeLayoutProjection:function(){X.layoutTree.forEach(Yi),xn.ZP.preRender(K,!1,!0)},getProjectionParent:function(){if(void 0===x){for(var e=!1,t=X.path.length-1;t>=0;t--){var n=X.path[t];if(n.projection.isEnabled){e=n;break}}x=e}return x},resolveRelativeTargetBox:function(){var e=X.getProjectionParent();if(N.relativeTarget&&e&&(function(e,t){Qr(e.target.x,e.relativeTarget.x,t.target.x),Qr(e.target.y,e.relativeTarget.y,t.target.y)}(N,e.projection),ri(e))){var t=N.target;fi(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(g._layoutResetTransform)},pointTo:function(e){R=e.projection,M=e.getLatestValues(),null===k||void 0===k||k(),k=dt(e.onSetAxisTarget(X.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;X.isPresent?X.presence=xi.z.Present:null===(e=X.layoutSafeToRemove)||void 0===e||e.call(X)})))},isPresent:!0,presence:xi.z.Entering});return X}};function Yi(e){e.resolveRelativeTargetBox()}function Xi(e){e.updateLayoutProjection()}var Qi,Ji=(0,r.__spreadArray)(["initial"],(0,r.__read)(Er)),eo=Ji.length,to=new Set(["width","height","top","left","right","bottom","x","y"]),no=function(e){return to.has(e)},ro=function(e,t){e.set(t,!1),e.set(t)},io=function(e){return e===re||e===J};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Qi||(Qi={}));var oo=function(e,t){return parseFloat(e.split(", ")[t])},ao=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return oo(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?oo(a[1],e):0}},so=new Set(["x","y","z"]),uo=R.filter((function(e){return!so.has(e)}));var co={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:ao(4,13),y:ao(5,14)},lo=function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),t=(0,r.__assign)({},t),i=(0,r.__assign)({},i);var o=Object.keys(t).filter(no),a=[],s=!1,u=[];if(o.forEach((function(r){var o=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],d=t[r],f=lr(l);if(Me(d))for(var h=d.length,p=null===d[0]?1:0;p<h;p++)c?lr(d[p]):(c=lr(d[p]))===f||io(f)&&io(c);else c=lr(d);if(f!==c)if(io(f)&&io(c)){var m=o.get();"string"===typeof m&&o.set(parseFloat(m)),"string"===typeof d?t[r]=parseFloat(d):Array.isArray(d)&&c===J&&(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?o.set(c.transform(l)):t[r]=f.transform(d):(s||(a=function(e){var t=[];return uo.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),i[r]=void 0!==i[r]?i[r]:t[r],ro(o,d))}})),u.length){var c=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={top:o.top,left:o.left,bottom:o.bottom,right:o.right,transform:o.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var i=t.getValue(n);ro(i,co[n](r,s)),e[n]=co[n](u,o)})),e}(t,e,u);return a.length&&a.forEach((function(t){var n=(0,r.__read)(t,2),i=n[0],o=n[1];e.getValue(i).set(o)})),e.syncRender(),{target:c,transitionEnd:i}}return{target:t,transitionEnd:i}};function fo(e,t,n,r){return function(e){return Object.keys(e).some(no)}(t)?lo(e,t,n,r):{target:t,transitionEnd:r}}var ho=function(e,t,n,i){var o=function(e,t,n){var i,o=(0,r.__rest)(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var s in n&&(n=(0,r.__assign)({},n)),e.forEachValue((function(e){var t=e.get();if(_i(t)){var n=ki(t,a);n&&e.set(n)}})),o){var u=o[s];if(_i(u)){var c=ki(u,a);c&&(o[s]=c,n&&(null!==(i=n[s])&&void 0!==i||(n[s]=u)))}}return{target:o,transitionEnd:n}}(e,t,i);return fo(e,t=o.target,n,i=o.transitionEnd)};var po={treeType:"dom",readValueFromInstance:function(e,t){if(L(t)){var n=$n(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(U(t)?i.getPropertyValue(t):i[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 Kr(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,i){var o=n.transformValues;void 0===i&&(i=!0);var a=t.transition,s=t.transitionEnd,u=(0,r.__rest)(t,["transition","transitionEnd"]),c=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=mr(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(u,a||{},e);if(o&&(s&&(s=o(s)),u&&(u=o(u)),c&&(c=o(c))),i){!function(e,t,n){var r,i,o,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!==(i=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==i?i:t[l]),void 0!==f&&null!==f&&("string"===typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!fr(f)&&Kt.test(d)&&(f=Zn(l,d)),e.addValue(l,sr(f)),null!==(o=(a=n)[l])&&void 0!==o||(a[l]=f),e.setBaseTarget(l,f))}}(e,u,c);var l=ho(e,u,c,s);s=l.transitionEnd,u=l.target}return(0,r.__assign)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:De,build:function(e,t,n,r,i,o,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=r.isEnabled&&i.isHydrated;ue(t,n,r,i,o,a.transformTemplate,s?Ui:void 0,s?Vi:void 0)},render:Ae},mo=Zi(po),go=Zi((0,r.__assign)((0,r.__assign)({},po),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return L(t)?(null===(n=$n(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,i,o,a){var s=r.isEnabled&&i.isHydrated;Te(t,n,r,i,o,a.transformTemplate,s?Ui:void 0,s?Vi:void 0)},render:Oe})),vo=function(e,t){return D(e)?go(t,{enableHardwareAcceleration:!1}):mo(t,{enableHardwareAcceleration:!0})},yo=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},Cr),ht),Ti),Hi),bo=S((function(e,t){return function(e,t,n,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=D(e)?He:ze;return(0,r.__assign)((0,r.__assign)({},s),{preloadedFeatures:n,useRender:we(a),createVisualElement:i,Component:e})}(e,t,yo,vo)}))},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),i=n(93327),o=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(o._)}function c(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=(0,i.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 o},R:function(){return a}});var r=new Set;function i(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function o(e){return r.add(e),function(){return r.delete(e)}}function a(){if(r.size){var e=0,t=[[]],n=[],o=function(n){return i(t,n,e)},a=function(t){i(n,t,e),e++};r.forEach((function(t){t(o,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 o},nP:function(){return c},pY:function(){return d},dV:function(){return s}});var r=n(70655);function i(e){return e}function o(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,o=e.bottom,a=e.right;void 0===t&&(t=i);var s=t({x:r,y:n}),u=t({x:a,y:o});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.__assign)({},e.x),y:(0,r.__assign)({},e.y)}}var l={translate:0,scale:1,origin:0,originPoint:0};function d(){return{x:(0,r.__assign)({},l),y:(0,r.__assign)({},l)}}},45930:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(67294);function i(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 i}});var r=n(67294);function i(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},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=o;const i=Object.hasOwnProperty;function o(){if(!(this instanceof o))return new o;this.reset()}function a(e,t){return"string"!==typeof e?"":(t||(e=e.toLowerCase()),e.replace(r,"").replace(/ /g,"-"))}o.prototype.slug=function(e,t){const n=this;let r=a(e,!0===t);const o=r;for(;i.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r},o.prototype.reset=function(){this.occurrences=Object.create(null)},o.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),i=n(11218),o=n(99560),a=n(99640),s=n(36582),u=n(56851),c=n(57848),l=n(70006),d=n(48145),f=d("root"),h=d("element"),p=d("text");function m(e,t,n){var r,o,a=n.schema,s=a,u=t.tagName,c={},d=[],f=-1;for(r in"html"===a.space&&"svg"===u.toLowerCase()&&(s=i,n.schema=s),t.properties)g(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;)o=t.children[f],h(o)?d.push(m(e,o,n)):p(o)&&d.push(o.value);return n.schema=a,d.length?e.call(t,u,c,d):e.call(t,u,c)}function g(e,t,n,r,i){var l,d=o(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(i){throw i.message=t+"[style]"+i.message.slice("undefined".length),i}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,i)),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 v(e){return Boolean(e&&e.context&&e.cleanup)}function y(e,t){return t.toUpperCase()}e.exports=function(e,t,n){var o,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?(o=a,a={}):o=a.prefix;if(f(t))t=1===t.children.length&&h(t.children[0])?t.children[0]:{type:"element",tagName:"div",properties:{},children:t.children};else if(!h(t))throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return m(e,t,{schema:"svg"===a.space?i:r,prefix:null==o?s||u||c?"h-":null:o,key:0,react:s,vue:u,vdom:c,hyperscript:v(e)})}},92114:function(e,t,n){"use strict";var r=n(9505),i=n(31742),o=n(99560),a=n(97247),s=n(11218),u=n(14787),c=n(70006);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":h,"#document-fragment":h,"#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,i,o=t.schema,u=l.call(d,e.nodeName)?d[e.nodeName]:p;return u===p&&(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&&(i=m(r,e.sourceCodeLocation,t))&&(t.location=!0,r.position=i),t.schema=o,r}function h(e,t,n){var r,i,o={type:"root",children:t,data:{quirksMode:"quirks"===e.mode||"limited-quirks"===e.mode}};return n.file&&n.location&&(r=String(n.file),i=u(r),o.position={start:i.toPoint(0),end:i.toPoint(r.length)}),o}function p(e,t,n){for(var o,a,s,u,c,l="svg"===n.schema.space?r:i,d={},h=-1;++h<e.attrs.length;)d[((a=e.attrs[h]).prefix?a.prefix+":":"")+a.name]=a.value;return"template"===(o=l(e.tagName,d,t)).tagName&&"content"in e&&(u=(s=e.sourceCodeLocation)&&s.startTag&&g(s.startTag).end,c=s&&s.endTag&&g(s.endTag).start,o.content=f(e.content,n),(u||c)&&n.file&&(o.content.position={start:u,end:c})),o}function m(e,t,n){var r,i,a,s=g(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(i in a={},t.attrs)a[o(n.schema,i).property]=g(t.attrs[i]);e.data={position:{opening:g(t.startTag),closing:t.endTag?g(t.endTag):null,properties:a}}}return s}function g(e){var t=v({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=v({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function v(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,i=[];for(;++r<n;)i[r]=t(e[r]);return i}(e),r=n.length;return i;function i(){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,i,o,a=e||"",s=n||"div",u={},c=0;for(;c<a.length;)t.lastIndex=c,o=t.exec(a),(r=a.slice(c,o?o.index:a.length))&&(i?"#"===i?u.id=r:u.className?u.className.push(r):u.className=[r]:s=r,c+=r.length),o&&(i=o[0],c++);return{type:"element",tagName:s,properties:u,children:[]}};var t=/[#.]/g},85330:function(e,t,n){"use strict";var r=n(96464),i=n(83216),o=n(33262);e.exports=function(e){var t,n,i,o,a=e.children||[],s=h(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(p(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(i=t[l])?void 0!==o&&i>o&&(o=i):i&&(o&&n.push(r("\n",o)),o=0,n.push(i));return n.join("")};var a=/\n/g,s=/[\t ]+/g,u=i("br"),c=i("p"),l=i(["th","td"]),d=i("tr"),f=i(["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}]),h=i(["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 p(e,t,n,r){return"element"===e.type?function(e,t,n,r){var i,a,s=y(e,r),m=e.children||[],g=-1,v=[];if(f(e))return v;u(e)||d(e)&&o(n,e,d)?a="\n":c(e)?(i=2,a=2):h(e)&&(i=1,a=1);for(;++g<m.length;)v=v.concat(p(m[g],g,e,{whiteSpace:s,breakBefore:g?null:i,breakAfter:g<m.length-1?u(m[g+1]):a}));l(e)&&o(n,e,l)&&v.push("\t");i&&v.unshift(i);a&&v.push(a);return v}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?m(e,r):g(e)]:[]}function m(e,t){for(var n,r,i,o=String(e.value),s=[],u=[],c=0,l=-1;c<o.length;)a.lastIndex=c,r=(n=a.exec(o))?n.index:o.length,s.push(v(o.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]),i=""):s[l]&&(i&&u.push(i),u.push(s[l]),i=" ");return u.join("")}function g(e){return String(e.value)}function v(e,t,n){for(var r,i,o=[],a=0;a<e.length;)s.lastIndex=a,i=(r=s.exec(e))?r.index:e.length,a||i||!r||t||o.push(""),a!==i&&o.push(e.slice(a,i)),a=r?i+r[0].length:i;return a===i||n||o.push(""),o.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),i=n(66632),o=n(78892),a=n(36582).parse,s=n(56851).parse;e.exports=function(e,t,n){var i=n?function(e){var t,n=e.length,r=-1,i={};for(;++r<n;)i[(t=e[r]).toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),d=a.tagName.toLowerCase();a.tagName=i&&u.call(i,d)?i[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,i){var o,u,c;null!==i&&void 0!==i&&i===i&&(u=(o=r(e,n)).property,"string"===typeof(c=i)&&(o.spaceSeparated?c=a(c):o.commaSeparated?c=s(c):o.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===u&&"string"!==typeof i&&(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,i,o;if("object"!==typeof n||!("length"in n))return d(e,t,n);i=n.length,r=-1,o=[];for(;++r<i;)o[r]=d(e,t,n[r]);return o}(o,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&&i(n)!==i(t)||(r=!0)),r}},52579:function(e,t,n){"use strict";var r=n(97247),i=n(62502)(r,"div");i.displayName="html",e.exports=i},31742:function(e,t,n){"use strict";e.exports=n(52579)},9505:function(e,t,n){"use strict";var r=n(11218),i=n(76947),o=n(62502)(r,"g",i);o.displayName="svg",e.exports=o},1527:function(e,t){"use strict";function n(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 i(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)||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 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]:[],o=!(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,i=t;return u.forEach((function(e,t){var a,c=e.keyAccessor;if(e.isProp){var l=i,d=l[c],f=n(l,[c].map(s));a=d,i=f}else a=c(i,t);t+1<u.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):o?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(i)):r[a]=i})),e}),{});o 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]=o(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 o=r(t,2),a=o[0],s=o[1];return e(s,[].concat(i(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*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\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 h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function p(){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 g=[];function v(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;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(r)}function E(e){var t;for(e=e||[];t=T();)!1!==t&&e.push(t);return e}function T(){var t=p();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 v("End of comment missing");var r=e.slice(2,n-2);return f+=2,h(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function x(){var e=p(),n=y(i);if(n){if(T(),!y(o))return v("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=x();)!1!==e&&(t.push(e),E(t));return t}()}},48738:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},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}},32802:function(e,t){var n,r,i;function o(e){return(o="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 a,s,u,c={},l={};function d(e){var t={};return e.forEach((function(e,n){t[e]=!0})),Object.keys(t)}function f(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function h(e,t){var n=e._assoc_mat[t]?Object.keys(e._assoc_mat[t]):[],r=0;return n.forEach((function(n,i){var o=e._assoc_mat[t][n]||1;t===n&&(o*=2),r+=o})),r}function p(e,t){return"undefined"===typeof e._assoc_mat[t]?[]:Object.keys(e._assoc_mat[t])}function m(e,t,n){return e._assoc_mat[t]?e._assoc_mat[t][n]:void 0}function g(e){var t={};return e.forEach((function(e,n){t[e.source]=t[e.source]||{},t[e.source][e.target]=e.weight,t[e.target]=t[e.target]||{},t[e.target][e.source]=e.weight})),t}function v(e){if(null===e||"object"!==o(e))return e;var t=e.constructor();for(var n in e)t[n]=v(e[n]);return t}function y(e,t,n){t.nodes_to_com={},t.total_weight=0,t.internals={},t.degrees={},t.gdegrees={},t.loops={},t.total_weight=function(e){var t=0;return e.edges.forEach((function(e){t+=e.weight})),t}(e),"undefined"===typeof n?e.nodes.forEach((function(n,r){t.nodes_to_com[n]=r;var i=h(e,n);if(i<0)throw new TypeError("Graph should only have positive weights.");t.degrees[r]=i,t.gdegrees[n]=i,t.loops[n]=m(e,n,n)||0,t.internals[r]=t.loops[n]})):e.nodes.forEach((function(r,i){var o=n[r];t.nodes_to_com[r]=o;var a=h(e,r);t.degrees[o]=(t.degrees[o]||0)+a,t.gdegrees[r]=a;var s=0;p(e,r).forEach((function(t){var i=e._assoc_mat[r][t];if(i<=0)throw new TypeError("Graph should only have positive weights.");n[t]===o&&(s+=t===r?i:i/2)})),t.internals[o]=(t.internals[o]||0)+s}))}function b(e){var t=e.total_weight,n=0;return d(f(e.nodes_to_com)).forEach((function(r,i){var o=e.internals[r]||0,a=e.degrees[r]||0;t>0&&(n=n+o/t-Math.pow(a/(2*t),2))})),n}function E(e,t,n){var r={};return p(t,e).forEach((function(i){if(i!==e){var o=t._assoc_mat[e][i]||1,a=n.nodes_to_com[i];r[a]=(r[a]||0)+o}})),r}function T(e,t,n,r){r.nodes_to_com[e]=+t,r.degrees[t]=(r.degrees[t]||0)+(r.gdegrees[e]||0),r.internals[t]=(r.internals[t]||0)+n+(r.loops[e]||0)}function x(e,t,n,r){r.degrees[t]=(r.degrees[t]||0)-(r.gdegrees[e]||0),r.internals[t]=(r.internals[t]||0)-n-(r.loops[e]||0),r.nodes_to_com[e]=-1}function _(e){var t=0,n=v(e),r={};return Object.keys(e).forEach((function(i){var o=e[i],a="undefined"===typeof r[o]?-1:r[o];-1===a&&(r[o]=t,a=t,t+=1),n[i]=a})),n}function w(e,t){for(var n=!0,r=0,i=b(t),o=i;n&&-1!==r&&(i=o,n=!1,r+=1,e.nodes.forEach((function(r,i){var o=t.nodes_to_com[r],a=(t.gdegrees[r]||0)/(2*t.total_weight),s=E(r,e,t);x(r,o,s[o]||0,t);var u=o,c=0;Object.keys(s).forEach((function(e){var n=s[e]-(t.degrees[e]||0)*a;n>c&&(c=n,u=e)})),T(r,u,s[u]||0,t),u!==o&&(n=!0)})),!((o=b(t))-i<1e-7)););}function k(e,t){var n,r,i={nodes:[],edges:[],_assoc_mat:{}},o=f(e);return i.nodes=i.nodes.concat(d(o)),t.edges.forEach((function(t,o){r=t.weight||1;var a=e[t.source],s=e[t.target];n=m(i,a,s)||0,function(e,t){!function(e,t){e._assoc_mat[t.source]=e._assoc_mat[t.source]||{},e._assoc_mat[t.source][t.target]=t.weight,e._assoc_mat[t.target]=e._assoc_mat[t.target]||{},e._assoc_mat[t.target][t.source]=t.weight}(e,t),l[t.source+"_"+t.target]?e.edges[l[t.source+"_"+t.target]].weight=t.weight:(e.edges.push(t),l[t.source+"_"+t.target]=e.edges.length-1)}(i,{source:a,target:s,weight:n+r})})),l={},i}"undefined"!==typeof self&&self,r=[],void 0===(i="function"===typeof(n=function(){return function(){var e=function(){var e=function(e,t){if(0===e.edges.length){var n={};return e.nodes.forEach((function(e){n[e]=e})),n}var r={};y(c,r,t);var i=b(r),o=[];w(c,r);var a=b(r),s=_(r.nodes_to_com);o.push(s),i=a;var u=k(s,c);for(y(u,r);w(u,r),!((a=b(r))-i<1e-7);)s=_(r.nodes_to_com),o.push(s),i=a,y(u=k(s,u),r);return o}(c,u);return function(e,t){for(var n=v(e[0]),r=function(t){Object.keys(n).forEach((function(r,i){var o=r,a=n[r];n[o]=e[t][a]}))},i=1;i<t+1;i++)r(i);return n}(e,e.length-1)};return e.nodes=function(t){return arguments.length>0&&(a=t),e},e.edges=function(t){if("undefined"===typeof a)throw new TypeError("Graph nodes are undefined");if(arguments.length>0){s=t;var n=g(t);c={nodes:a,edges:s,_assoc_mat:n}}return e},e.partition_init=function(t){return arguments.length>0&&(u=t),e},e}})?n.apply(t,r):n)||(e.exports=i)},36808:function(e,t,n){var r,i;!function(o){if(void 0===(i="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();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 i(){}function o(t,n,o){if("undefined"!==typeof document){"number"===typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.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 o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[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(i[c]=u,e===c)break}catch(l){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},44858:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(20296),i=n.n(r);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 a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||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)||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 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=a((function e(t,n){var r=n.default,i=void 0===r?null:r,o=n.triggerUpdate,a=void 0===o||o,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=i,this.triggerUpdate=a,this.onChange=u}));function l(e){var t=e.stateInit,n=void 0===t?function(){return{}}:t,r=e.props,o=void 0===r?{}:r,a=e.methods,u=void 0===a?{}:a,l=e.aliases,d=void 0===l?{}:l,f=e.init,h=void 0===f?function(){}:f,p=e.update,m=void 0===p?function(){}:p,g=Object.keys(o).map((function(e){return new c(e,o[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 o(t){return a(t,e),c(),o}var a=function(e,n){h.call(o,e,t,n),t.initialised=!0},c=i()((function(){t.initialised&&(m.call(o,t,r),r={})}),1);return g.forEach((function(e){o[e.name]=function(e){var n=e.name,i=e.triggerUpdate,a=void 0!==i&&i,s=e.onChange,u=void 0===s?function(e,t){}:s,l=e.defaultVal,d=void 0===l?null:l;return function(e){var i=t[n];if(!arguments.length)return i;var s=void 0===e?d:e;return t[n]=s,u.call(o,s,t,i),!r.hasOwnProperty(n)&&(r[n]=i),a&&c(),o}}(e)})),Object.keys(u).forEach((function(e){o[e]=function(){for(var n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(n=u[e]).call.apply(n,[o,t].concat(i))}})),Object.entries(d).forEach((function(e){var t=s(e,2),n=t[0],r=t[1];return o[n]=o[r]})),o.resetProps=function(){return g.forEach((function(e){o[e.name](e.defaultVal)})),o},o.resetProps(),t._rerender=c,o}}},93096:function(e,t,n){var r="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]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,h=Math.max,p=Math.min,m=function(){return d.Date.now()};function g(e,t,n){var i,o,a,s,u,c,l=0,d=!1,f=!1,g=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function E(e){return l=e,u=setTimeout(x,t),d?b(e):s}function T(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=a}function x(){var e=m();if(T(e))return _(e);u=setTimeout(x,function(e){var n=t-(e-c);return f?p(n,a-(e-l)):n}(e))}function _(e){return u=void 0,g&&i?b(e):(i=o=void 0,s)}function w(){var e=m(),n=T(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return E(c);if(f)return u=setTimeout(x,t),b(c)}return void 0===u&&(u=setTimeout(x,t)),s}return t=y(t)||0,v(n)&&(d=!!n.leading,a=(f="maxWait"in n)?h(y(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},w.flush=function(){return void 0===u?s:_(m())},w}function v(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(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return v(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),g(e,t,{leading:i,maxWait:t,trailing:o})}},52491:function(e){"use strict";e.exports=function(e,t){var n,r,i=0,o=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),r=e.indexOf(t),n=r;for(;-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}},78234:function(e,t,n){"use strict";var r=n(96464);e.exports=function(e,t){var n,l,d,f,h,p,m,g,v,y,b,E=t||{},T=!1!==E.padding,x=!1!==E.delimiterStart,_=!1!==E.delimiterEnd,w=(E.align||[]).concat(),k=!1!==E.alignDelimiters,C=[],A=E.stringLength||u,S=-1,O=e.length,D=[],I=[],N=[],R=[],M=[],P=0;for(;++S<O;){for(n=e[S],l=-1,d=n.length,N=[],R=[],d>P&&(P=d);++l<d;)L=n[l],p=null===L||void 0===L?"":String(L),!0===k&&(h=A(p),R[l]=h,(void 0===(f=M[l])||h>f)&&(M[l]=h)),N.push(p);D[S]=N,I[S]=R}var L;if(l=-1,d=P,"object"===typeof w&&"length"in w)for(;++l<d;)C[l]=c(w[l]);else for(b=c(w);++l<d;)C[l]=b;l=-1,d=P,N=[],R=[];for(;++l<d;)b=C[l],v="",y="",108===b?v=a:b===s?y=a:99===b&&(v=a,y=a),h=k?Math.max(1,M[l]-v.length-y.length):1,p=v+r("-",h)+y,!0===k&&((h=v.length+h+y.length)>M[l]&&(M[l]=h),R[l]=h),N[l]=p;D.splice(1,0,N),I.splice(1,0,R),S=-1,O=D.length,m=[];for(;++S<O;){for(N=D[S],R=I[S],l=-1,d=P,g=[];++l<d;)p=N[l]||"",v="",y="",!0===k&&(h=M[l]-(R[l]||0),(b=C[l])===s?v=r(o,h):99===b?h%2===0?(v=r(o,h/2),y=v):(v=r(o,h/2+.5),y=r(o,h/2-.5)):y=r(o,h)),!0===x&&0===l&&g.push("|"),!0!==T||!1===k&&""===p||!0!==x&&0===l||g.push(o),!0===k&&g.push(v),g.push(p),!0===k&&g.push(y),!0===T&&g.push(o),!0!==_&&l===d-1||g.push("|");g=g.join(""),!1===_&&(g=g.replace(i,"")),m.push(g)}return m.join("\n")};var i=/ +$/,o=" ",a=":",s=114;function u(e){return e.length}function c(e){var t="string"===typeof e?e.charCodeAt(0):0;return 76===t||108===t?108:82===t||t===s?s:67===t||99===t?99:0}},90233:function(e,t,n){"use strict";n.r(t),n.d(t,{rankings:function(){return a}});var r=n(87462),i=n(76826),o=n.n(i),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,i=r.keys,o=r.threshold,s=void 0===o?a.MATCHES:o,c=r.baseSort,d=void 0===c?u:c;return e.reduce((function(e,r,o){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,i){var o=e.rank,s=e.rankedItem,u=e.keyIndex,c=e.keyThreshold,d=t.itemValue,f=t.attributes,h=l(d,n,r),p=s,m=f.minRanking,g=f.maxRanking,v=f.threshold;return h<m&&h>=a.MATCHES?h=m:h>g&&(h=g),h>o&&(o=h,u=i,c=v,p=d),{rankedItem:p,rank:o,keyIndex:u,keyThreshold:c}}),{rank:a.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,i,t,n),c=u.rankedItem,d=u.rank,h=u.keyIndex,p=u.keyThreshold;d>=(void 0===p?s:p)&&e.push({rankedItem:c,item:r,rank:d,index:o,keyIndex:h});return e}),[]).sort((function(e,t){return function(e,t,n){var r=-1,i=1,o=e.rank,a=e.keyIndex,s=t.rank,u=t.keyIndex;return o===s?a===u?n(e,t):a<u?r:i:o>s?r:i}(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),i=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),o=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 i=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=i[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:i?a.STRING_CASE+r:r>0&&o?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 i(e,t,r){for(var i=r;i<t.length;i++){if(t[i]===e)return n+=1,i+1}return-1}function o(e){var r=n/t.length;return a.MATCHES+r*(1/e)}var s=i(t[0],e,0);if(s<0)return a.NO_MATCH;r=s;for(var u=1;u<t.length;u++){if(!((r=i(t[u],e,r))>-1))return a.NO_MATCH}return o(r-s)}(e,t)}function d(e,t){return e=""+e,t.keepDiacritics||(e=o()(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},86630:function(e,t,n){"use strict";var r=n(62854);e.exports=function(e,t){return function(e){return t;function t(t){var n=t&&o(t);return n&&i.call(e,n)?e[n]:null}}(function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",n),t;function n(e){var n=o(e.identifier);i.call(t,n)||(t[n]=e)}}(e))};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},52962:function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o;"string"===typeof t||t&&"function"===typeof t.exec?o=[[t,n]]:(o=t,r=n);return s(e,i=r||{},function e(t){var n=t[0];return r;function r(r,o){var u,c,l,d,f=n[0],h=n[1],p=[],m=0,g=o.children.indexOf(r);for(f.lastIndex=0,c=f.exec(r.value);c&&(u=c.index,!1!==(d=h.apply(null,[].concat(c,{index:c.index,input:c.input})))&&(m!==u&&p.push({type:"text",value:r.value.slice(m,u)}),"string"===typeof d&&d.length>0&&(d={type:"text",value:d}),d&&(p=[].concat(p,d)),m=u+c[0].length),f.global);)c=f.exec(r.value);if(void 0===u?(p=[r],g--):(m<r.value.length&&p.push({type:"text",value:r.value.slice(m)}),p.unshift(g,1),a.apply(o.children,p)),t.length>1)for(l=e(t.slice(1)),u=-1;++u<p.length;)"text"===(r=p[u]).type?l(r,o):s(r,i,l);return g+p.length+1}}(function(e){var t,n,r=[];if("object"!==typeof e)throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)r.push([u(e[n][0]),c(e[n][1])]);else for(t in e)r.push([u(t),c(e[t])]);return r}(o))),e};var r=n(99294),i=n(48145),o=n(63150),a=[].splice;function s(e,t,n){var o=i(t.ignore||[]);return r(e,"text",(function(e,t){var r,i,a=-1;for(;++a<t.length;){if(r=t[a],o(r,i?i.children.indexOf(r):void 0,i))return;i=r}return n(e,i)})),[]}function u(e){return"string"===typeof e?new RegExp(o(e),"g"):e}function c(e){return"function"===typeof e?e:function(){return e}}},52524:function(e,t,n){"use strict";e.exports=function(e,t,n){"string"!==typeof t&&(n=t,t=void 0);return function(e){var t=e||{},n=function(e,t){var n=-1;for(;++n<t.length;)h(e,t[n]);return e}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:v(fe),autolinkProtocol:F,autolinkEmail:F,atxHeading:v(ue),blockQuote:v(re),characterEscape:F,characterReference:F,codeFenced:v(ie),codeFencedFenceInfo:y,codeFencedFenceMeta:y,codeIndented:v(ie,y),codeText:v(oe,y),codeTextData:F,data:F,codeFlowValue:F,definition:v(ae),definitionDestinationString:y,definitionLabelString:y,definitionTitleString:y,emphasis:v(se),hardBreakEscape:v(ce),hardBreakTrailing:v(ce),htmlFlow:v(le,y),htmlFlowData:F,htmlText:v(le,y),htmlTextData:F,image:v(de),label:y,link:v(fe),listItem:v(pe),listItemValue:w,listOrdered:v(he,_),listUnordered:v(he),paragraph:v(me),reference:X,referenceString:y,resourceDestinationString:y,resourceTitleString:y,setextHeading:v(ue),strong:v(ge),thematicBreak:v(ye)},exit:{atxHeading:E(),atxHeadingSequence:R,autolink:E(),autolinkEmail:ne,autolinkProtocol:te,blockQuote:E(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:ee,codeFenced:E(S),codeFencedFence:A,codeFencedFenceInfo:k,codeFencedFenceMeta:C,codeFlowValue:j,codeIndented:E(O),codeText:E(V),codeTextData:j,data:j,definition:E(),definitionDestinationString:N,definitionLabelString:D,definitionTitleString:I,emphasis:E(),hardBreakEscape:E(B),hardBreakTrailing:E(B),htmlFlow:E(z),htmlFlowData:j,htmlText:E(U),htmlTextData:j,image:E(K),label:W,labelText:q,lineEnding:H,link:E(G),listItem:E(),listOrdered:E(),listUnordered:E(),paragraph:E(),referenceString:Q,resourceDestinationString:$,resourceTitleString:Z,resource:Y,setextHeading:E(L),setextHeadingLineSequence:P,setextHeadingText:M,strong:E(),thematicBreak:E()}},t.mdastExtensions||[]),u={};return c;function c(e){for(var t,r={type:"root",children:[]},a=[],s=[],u=-1,c={stack:[r],tokenStack:a,config:n,enter:b,exit:T,buffer:y,resume:x,setData:p,getData:m};++u<e.length;)"listOrdered"!==e[u][1].type&&"listUnordered"!==e[u][1].type||("enter"===e[u][0]?s.push(u):u=l(e,s.pop(u),u));for(u=-1;++u<e.length;)t=n[e[u][0]],o.call(t,e[u][1].type)&&t[e[u][1].type].call(i({sliceSerialize:e[u][2].sliceSerialize},c),e[u][1]);if(a.length)throw new Error("Cannot close document, a token (`"+a[a.length-1].type+"`, "+f({start:a[a.length-1].start,end:a[a.length-1].end})+") is still open");for(r.position={start:g(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:g(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<n.transforms.length;)r=n.transforms[u](r)||r;return r}function l(e,t,n){for(var r,i,o,a,s,u,c,l=t-1,d=-1,f=!1;++l<=n;)if("listUnordered"===(s=e[l])[1].type||"listOrdered"===s[1].type||"blockQuote"===s[1].type?("enter"===s[0]?d++:d--,c=void 0):"lineEndingBlank"===s[1].type?"enter"===s[0]&&(!r||c||d||u||(u=l),c=void 0):"linePrefix"===s[1].type||"listItemValue"===s[1].type||"listItemMarker"===s[1].type||"listItemPrefix"===s[1].type||"listItemPrefixWhitespace"===s[1].type||(c=void 0),!d&&"enter"===s[0]&&"listItemPrefix"===s[1].type||-1===d&&"exit"===s[0]&&("listUnordered"===s[1].type||"listOrdered"===s[1].type)){if(r){for(i=l,o=void 0;i--;)if("lineEnding"===(a=e[i])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;o&&(e[o][1].type="lineEndingBlank",f=!0),a[1].type="lineEnding",o=i}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;u&&(!o||u<o)&&(r._spread=!0),r.end=g(o?e[o][1].start:s[1].end),e.splice(o||l,0,["exit",r,s[2]]),l++,n++}"listItemPrefix"===s[1].type&&(r={type:"listItem",_spread:!1,start:g(s[1].start)},e.splice(l,0,["enter",r,s[2]]),l++,n++,u=void 0,c=!0)}return e[t][1]._spread=f,n}function p(e,t){u[e]=t}function m(e){return u[e]}function g(e){return{line:e.line,column:e.column,offset:e.offset}}function v(e,t){return n;function n(n){b.call(this,e(n),n),t&&t.call(this,n)}}function y(){this.stack.push({type:"fragment",children:[]})}function b(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:g(t.start)},e}function E(e){return t;function t(t){e&&e.call(this,t),T.call(this,t)}}function T(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): it\u2019s not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+f({start:n.start,end:n.end})+") is open");return t.position.end=g(e.end),t}function x(){return r(this.stack.pop())}function _(){p("expectingFirstListItemValue",!0)}function w(e){m("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),p("expectingFirstListItemValue"))}function k(){var e=this.resume();this.stack[this.stack.length-1].lang=e}function C(){var e=this.resume();this.stack[this.stack.length-1].meta=e}function A(){m("flowCodeInside")||(this.buffer(),p("flowCodeInside",!0))}function S(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p("flowCodeInside")}function O(){var e=this.resume();this.stack[this.stack.length-1].value=e}function D(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()}function I(){var e=this.resume();this.stack[this.stack.length-1].title=e}function N(){var e=this.resume();this.stack[this.stack.length-1].url=e}function R(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)}function M(){p("setextHeadingSlurpLineEnding",!0)}function P(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function L(){p("setextHeadingSlurpLineEnding")}function F(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n=ve()).position={start:g(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function j(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=g(e.end)}function H(e){var t=this.stack[this.stack.length-1];if(m("atHardBreak"))return t.children[t.children.length-1].position.end=g(e.end),void p("atHardBreak");!m("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(F.call(this,e),j.call(this,e))}function B(){p("atHardBreak",!0)}function z(){var e=this.resume();this.stack[this.stack.length-1].value=e}function U(){var e=this.resume();this.stack[this.stack.length-1].value=e}function V(){var e=this.resume();this.stack[this.stack.length-1].value=e}function G(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),p("referenceType")}function K(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),p("referenceType")}function q(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()}function W(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,p("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function $(){var e=this.resume();this.stack[this.stack.length-1].url=e}function Z(){var e=this.resume();this.stack[this.stack.length-1].title=e}function Y(){p("inReference")}function X(){p("referenceType","collapsed")}function Q(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),p("referenceType","full")}function J(e){p("characterReferenceType",e.type)}function ee(e){var t,n,r=this.sliceSerialize(e),i=m("characterReferenceType");i?(t=s(r,"characterReferenceMarkerNumeric"===i?10:16),p("characterReferenceType")):t=d(r),(n=this.stack.pop()).value+=t,n.position.end=g(e.end)}function te(e){j.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function ne(e){j.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function re(){return{type:"blockquote",children:[]}}function ie(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function ue(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function de(){return{type:"image",title:null,url:"",alt:null}}function fe(){return{type:"link",title:null,url:"",children:[]}}function he(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function pe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ve(){return{type:"text",value:""}}function ye(){return{type:"thematicBreak"}}}(n)(l(u(n).document().write(c()(e,t,!0))))};var r=n(4999),i=n(99198),o=n(46706),a=n(35478),s=n(10596),u=n(32976),c=n(30162),l=n(61242),d=n(89435),f=n(75432);function h(e,t){var n,r;for(n in t)r=o.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},39671:function(e,t,n){"use strict";e.exports=n(52524)},2215:function(e,t,n){e.exports=function(e){var t,n=r(e),s=n.length,u=-1,c={},l={};for(;++u<s;)t=n[u],c[t.type]=i(t),l[t.type]=o,l[t.type+"Value"]=a;return{enter:c,exit:l}};var r=n(74035);function i(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function o(e){var t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function a(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}},63934:function(e,t,n){e.exports=function(e){var t,n=[],a={},s=r(e),u=s.length,c=-1;for(;++c<u;)t=s[c],a[t.type]=i(t),n.push({atBreak:!0,character:o(t,"open").charAt(0)});return{unsafe:n,handlers:a}};var r=n(74035);function i(e){var t=o(e,"open"),n=o(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+n}}function o(e,t){var n;return e.marker?(n=a(e.marker,t))+n+n:a(e.fence,t)}function a(e,t){return"string"===typeof e?e:e[t]}},57824:function(e,t,n){var r=n(30932),i=n(52962),o=n(36996),a=n(10395);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function u(e,t,n,i,o){var a,s,u="";return!!l(o)&&(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!!function(e){var t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n)&&(!!(a=function(e){var t,n,i,o=/[!"&'),.:;<>?\]}]+$/.exec(e);if(o)for(e=e.slice(0,o.index),t=(o=o[0]).indexOf(")"),n=r(e,"("),i=r(e,")");-1!==t&&n>i;)e+=o.slice(0,t+1),t=(o=o.slice(t+1)).indexOf(")"),i++;return[e,o]}(n+i))[0]&&(s={type:"link",title:null,url:u+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(s=[s,{type:"text",value:a[1]}]),s)))}function c(e,t,n,r){return!(!l(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function l(e,t){var n=e.input.charCodeAt(e.index-1);return(n!==n||a(n)||o(n))&&(!t||47!==n)}t.transforms=[function(e){i(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,u],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,c]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},45574:function(e,t){var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},89828:function(e,t){t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},9888:function(e,t,n){var r=n(25362);function i(e,t,n){var i=n.enter("emphasis"),o=r(e,n,{before:"~",after:"~"});return i(),"~~"+o+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:i},i.peek=function(){return"~"}},4865:function(e,t){function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function i(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,i));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},63046:function(e,t,n){var r=n(25362),i=n(11595),o=n(78234);e.exports=function(e){var t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return l(function(e,t){var n=e.children,r=-1,i=n.length,o=[],a=t.enter("table");for(;++r<i;)o[r]=d(n[r],t);return a(),o}(e,n),e.align)},tableRow:function(e,t,n){var r=l([d(e,n)]);return r.slice(0,r.indexOf("\n"))},tableCell:c,inlineCode:function(e,t,n){var r=i(e,t,n);-1!==n.stack.indexOf("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function c(e,t,n){var i=n.enter("tableCell"),o=r(e,n,{before:u,after:u});return i(),o}function l(e,t){return o(e,{align:t,alignDelimiters:a,padding:n,stringLength:s})}function d(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("tableRow");++r<i;)o[r]=c(n[r],0,t);return a(),o}}},29511:function(e,t){function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],i=n.children,o=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"===typeof n.checked&&o&&"text"===o.type){for(;++a<i.length;)if("paragraph"===i[a].type){t=i[a];break}t===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},94625:function(e,t,n){var r=n(48618);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var i=r(e,t,n),o=e.children[0];"boolean"===typeof e.checked&&o&&"paragraph"===o.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}},10438:function(e,t,n){var r=n(57824),i=n(89828),o=n(4865),a=n(29511),s={}.hasOwnProperty;function u(e,t){var n,r,i;for(n in t)r=s.call(e,n)?e[n]:e[n]={},i=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,i):Object.assign(r,i)}e.exports=function(e){var t={transforms:[],canContainEols:[]},n=e.length,r=-1;for(;++r<n;)u(t,e[r]);return t}([r,i,o,a])},48135:function(e,t,n){var r=n(45574),i=n(9888),o=n(63046),a=n(94625),s=n(2564);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,i,o(e),a]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},54550:function(e,t){"use strict";function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}t.enter={mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},e),this.buffer()}},t.exit={mathFlow:function(e){var t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t,this.setData("mathFlowInside")},mathFlowFence:function(){if(this.getData("mathFlowInside"))return;this.buffer(),this.setData("mathFlowInside",!0)},mathFlowFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},mathFlowValue:n,mathText:function(e){var t=this.resume(),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t},mathTextData:n}},74749:function(e,t,n){"use strict";t.unsafe=[{character:"\r",inConstruct:["mathFlowMeta"]},{character:"\r",inConstruct:["mathFlowMeta"]},{character:"$",inConstruct:["mathFlowMeta","phrasing"]},{atBreak:!0,character:"$",after:"\\$"}],t.handlers={math:function(e,t,n){var a,s=e.value||"",u=r("$",Math.max(i(s,"$")+1,2)),c=n.enter("mathFlow"),l=u;e.meta&&(a=n.enter("mathFlowMeta"),l+=o(n,e.meta,{before:"$",after:" ",encode:["$"]}),a());l+="\n",s&&(l+=s+"\n");return l+=u,c(),l},inlineMath:a},a.peek=function(){return"$"};var r=n(96464),i=n(52491),o=n(51113);function a(e){for(var t,n=e.value||"",i=1,o="";new RegExp("(^|[^$])"+r("\\$",i)+"([^$]|$)").test(n);)i++;return/[^ \r\n]/.test(n)&&(/[ \r\n$]/.test(n.charAt(0))||/[ \r\n$]/.test(n.charAt(n.length-1)))&&(o=" "),(t=r("$",i))+o+n+o+t}},55288:function(e,t,n){"use strict";e.exports=n(31601)},95426:function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o=t.children||[],a=o.length,s=[],u=-1;for(;++u<a;)(n=r(e,o[u],t))&&(u&&"break"===o[u-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(i=n.children&&n.children[0])&&i.value&&(i.value=i.value.replace(/^\s+/,""))),s=s.concat(n));return s};var r=n(60719)},61696:function(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,u=e.footnoteById,c=e.footnoteOrder,l=c.length,d=-1,f=[];for(;++d<l;)(t=u[c[d].toUpperCase()])&&(a=t.children.concat(),s=a[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"\u21a9"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),f.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));if(0===f.length)return null;return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:f})],!0))};var r=n(37552),i=n(47888),o=n(96115)},34590:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(96115),i=n(95426)},13562:function(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(50914)},37891:function(e,t,n){"use strict";e.exports=function(e,t){var n,i=t.value?t.value+"\n":"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};o&&(a.className=["language-"+o]);n=e(t,"code",a,[r("text",i)]),t.meta&&(n.data={meta:t.meta});return e(t.position,"pre",[n])};var r=n(50914)},59381:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(95426)},80790:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(95426)},58235:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteOrder,i=String(t.identifier);-1===n.indexOf(i)&&n.push(i);return e(t.position,"sup",{id:"fnref-"+i},[e(t,"a",{href:"#fn-"+i,className:["footnote-ref"]},[r("text",t.label||i)])])};var r=n(50914)},85758:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteById,i=e.footnoteOrder,o=1;for(;o in n;)o++;return o=String(o),i.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:o,position:t.position})};var r=n(58235)},34890:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(95426)},92202:function(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(50914)},71454:function(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);if(!o)return i(e,t);n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title);return e(t,"img",n)};var r=n(70729),i=n(713)},5037:function(e,t,n){"use strict";var r=n(70729);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"img",n)}},44617:function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(34590),break:n(13562),code:n(37891),delete:n(59381),emphasis:n(80790),footnoteReference:n(58235),footnote:n(85758),heading:n(34890),html:n(92202),imageReference:n(71454),image:n(5037),inlineCode:n(28409),linkReference:n(79266),link:n(20404),listItem:n(94463),list:n(47888),paragraph:n(68346),root:n(68100),strong:n(4970),table:n(72605),text:n(50989),thematicBreak:n(37552),toml:r,yaml:r,definition:r,footnoteDefinition:r}},28409:function(e,t,n){"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(50914)},79266:function(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);if(!a)return i(e,t);n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title);return e(t,"a",n,o(e,t))};var r=n(70729),i=n(713),o=n(95426)},20404:function(e,t,n){"use strict";var r=n(70729),i=n(95426);e.exports=function(e,t){var n={href:r(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"a",n,i(e,t))}},94463:function(e,t,n){"use strict";e.exports=function(e,t,n){var a,s,u,c=i(e,t),l=c[0],d=n?function(e){var t=e.spread,n=e.children,r=n.length,i=-1;for(;!t&&++i<r;)t=o(n[i]);return t}(n):o(t),f={},h=[];"boolean"===typeof t.checked&&(l&&"p"===l.tagName||(l=e(null,"p",[]),c.unshift(l)),l.children.length>0&&l.children.unshift(r("text"," ")),l.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),f.className=["task-list-item"]);a=c.length,s=-1;for(;++s<a;)u=c[s],(d||0!==s||"p"!==u.tagName)&&h.push(r("text","\n")),"p"!==u.tagName||d?h.push(u):h=h.concat(u.children);a&&(d||"p"!==u.tagName)&&h.push(r("text","\n"));return e(t,"li",f,h)};var r=n(50914),i=n(95426);function o(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}},47888:function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a={},s=t.ordered?"ol":"ul",u=-1;"number"===typeof t.start&&1!==t.start&&(a.start=t.start);n=i(e,t),o=n.length;for(;++u<o;)if(n[u].properties.className&&-1!==n[u].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,s,a,r(n,!0))};var r=n(96115),i=n(95426)},68346:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(95426)},68100:function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(50914),i=n(96115),o=n(95426)},4970:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(95426)},72605:function(e,t,n){"use strict";e.exports=function(e,t){var n,a,s,u,c,l=t.children,d=l.length,f=t.align||[],h=f.length,p=[];for(;d--;){for(a=l[d].children,u=0===d?"th":"td",n=h||a.length,s=[];n--;)c=a[n],s[n]=e(c,u,{align:f[n]},c?o(e,c):[]);p[d]=e(l[d],"tr",i(s,!0))}return e(t,"table",i([e(p[0].position,"thead",i([p[0]],!0))].concat(p[1]?e({start:r.start(p[1]),end:r.end(p[p.length-1])},"tbody",i(p.slice(1),!0)):[]),!0))};var r=n(77361),i=n(96115),o=n(95426)},50989:function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(50914)},37552:function(e){"use strict";e.exports=function(e,t){return e(t,"hr")}},31601:function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||f||(f=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,u={};return h.dangerous=r,h.definition=s(e),h.footnoteById=u,h.footnoteOrder=[],h.augment=c,h.handlers=Object.assign({},l,n.handlers),h.unknownHandler=n.unknownHandler,h.passThrough=n.passThrough,i(e,"footnoteDefinition",p),h;function c(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:o.start(r),end:o.end(r)}),t}function h(e,t,n,r){return void 0!==r&&null!==r||"object"!==typeof n||!("length"in n)||(r=n,n={}),c(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}function p(e){var t=String(e.identifier).toUpperCase();d.call(u,t)||(u[t]=e)}}(e,t),h=u(n,e),p=c(n);p&&(h.children=h.children.concat(r("text","\n"),p));return h};var r=n(50914),i=n(62854),o=n(77361),a=n(61744),s=n(86630),u=n(60719),c=n(61696),l=n(44617),d={}.hasOwnProperty,f=!1},60719:function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");r=o.call(e.handlers,i)?e.handlers[i]:e.passThrough&&e.passThrough.indexOf(i)>-1?s:e.unknownHandler;return("function"===typeof r?r:a)(e,t,n)};var r=n(50914),i=n(95426),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};if(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=i(e,t),n):t}},713:function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,u="]";"collapsed"===s?u+="[]":"full"===s&&(u+="["+(t.label||t.identifier)+"]");if("imageReference"===t.type)return r("text","!["+t.alt+u);n=i(e,t),(o=n[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","["));(a=n[n.length-1])&&"text"===a.type?a.value+=u:n.push(r("text",u));return n};var r=n(50914),i=n(95426)},96115:function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);t&&e.length>0&&n.push(r("text","\n"));return n};var r=n(50914)},2564:function(e){e.exports=function e(t,n){var r,i=-1;if(n.extensions)for(;++i<n.extensions.length;)e(t,n.extensions[i]);for(r in n)"extensions"===r||("unsafe"===r||"join"===r?t[r]=t[r].concat(n[r]||[]):"handlers"===r?t[r]=Object.assign(t[r],n[r]||{}):t.options[r]=n[r]);return t}},11595:function(e,t,n){e.exports=i,i.peek=function(){return"`"};var r=n(84553);function i(e,t,n){for(var i,o,a,s,u=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(u);)c+="`";for(/[^ \r\n]/.test(u)&&(/[ \r\n`]/.test(u.charAt(0))||/[ \r\n`]/.test(u.charAt(u.length-1)))&&(u=" "+u+" ");++l<n.unsafe.length;)if((i=n.unsafe[l]).atBreak)for(o=r(i);a=o.exec(u);)s=a.index,10===u.charCodeAt(s)&&13===u.charCodeAt(s-1)&&s--,u=u.slice(0,s)+" "+u.slice(a.index+1);return c+u+c}},48618:function(e,t,n){e.exports=function(e,t,n){var u,c,l,d=i(n),f=o(n);t&&t.ordered&&(d=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+".");u=d.length+1,("tab"===f||"mixed"===f&&(t&&t.spread||e.spread))&&(u=4*Math.ceil(u/4));return l=n.enter("listItem"),c=s(a(e,n),(function(e,t,n){if(t)return(n?"":r(" ",u))+e;return(n?d:d+r(" ",u-d.length))+e})),l(),c};var r=n(96464),i=n(89400),o=n(56636),a=n(93493),s=n(92670)},89400:function(e){e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},56636:function(e){e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},93493:function(e,t,n){e.exports=function(e,t){var n,i=e.children||[],o=[],a=-1;for(;++a<i.length;)n=i[a],o.push(t.handle(n,e,t,{before:"\n",after:"\n"})),a+1<i.length&&o.push(s(n,i[a+1]));return o.join("");function s(n,i){for(var o,a=-1;++a<t.join.length&&!0!==(o=t.join[a](n,i,e,t))&&1!==o;){if("number"===typeof o)return r("\n",1+Number(o));if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}};var r=n(96464)},25362:function(e){e.exports=function(e,t,n){var r,i,o,a=e.children||[],s=[],u=-1,c=n.before;for(;++u<a.length;)o=a[u],u+1<a.length?((i=t.handle.handlers[a[u+1].type])&&i.peek&&(i=i.peek),r=i?i(a[u+1],e,t,{before:"",after:""}).charAt(0):""):r=n.after,s.length>0&&("\r"===c||"\n"===c)&&"html"===o.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),c=" "),s.push(t.handle(o,e,t,{before:c,after:r})),c=s[s.length-1].slice(-1);return s.join("")}},92670:function(e){e.exports=function(e,n){var r,i=[],o=0,a=0;for(;r=t.exec(e);)s(e.slice(o,r.index)),i.push(r[0]),o=r.index+r[0].length,a++;return s(e.slice(o)),i.join("");function s(e){i.push(n(e,a,!e))}};var t=/\r?\n|\r/g},84553:function(e){e.exports=function(e){var t,n;e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g"));return e._compiled}},76112:function(e){function t(e,t,n){var r;if(!t)return n;for("string"===typeof t&&(t=[t]),r=-1;++r<t.length;)if(-1!==e.indexOf(t[r]))return!0;return!1}e.exports=function(e,n){return t(e,n.inConstruct,!0)&&!t(e,n.notInConstruct)}},51113:function(e,t,n){e.exports=function(e,t,n){var s,u,c,l,d,f,h,p,m=(n.before||"")+(t||"")+(n.after||""),g=[],v=[],y={},b=-1;for(;++b<e.unsafe.length;)if(l=e.unsafe[b],i(e.stack,l))for(d=r(l);f=d.exec(m);)s="before"in l||l.atBreak,u="after"in l,c=f.index+(s?f[1].length:0),-1===g.indexOf(c)?(g.push(c),y[c]={before:s,after:u}):(y[c].before&&!s&&(y[c].before=!1),y[c].after&&!u&&(y[c].after=!1));g.sort(o),h=n.before?n.before.length:0,p=m.length-(n.after?n.after.length:0),b=-1;for(;++b<g.length;)(c=g[b])<h||c>=p||c+1<p&&g[b+1]===c+1&&y[c].after&&!y[c+1].before&&!y[c+1].after||(h!==c&&v.push(a(m.slice(h,c),"\\")),h=c,!/[!-/:-@[-`{-~]/.test(m.charAt(c))||n.encode&&-1!==n.encode.indexOf(m.charAt(c))?(v.push("&#x"+m.charCodeAt(c).toString(16).toUpperCase()+";"),h++):v.push("\\"));return v.push(a(m.slice(h,p),n.after)),v.join("")};var r=n(84553),i=n(76112);function o(e,t){return e-t}function a(e,t){for(var n,r=/\\(?=[!-/:-@[-`{-~])/g,i=[],o=[],a=-1,s=0,u=e+t;n=r.exec(u);)i.push(n.index);for(;++a<i.length;)s!==i[a]&&o.push(e.slice(s,i[a])),o.push("\\"),s=i[a];return o.push(e.slice(s)),o.join("")}},4999:function(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},70729:function(e){"use strict";var t={};function n(e,r,i){var o,a,s,u,c,l="";for("string"!==typeof r&&(i=r,r=n.defaultChars),"undefined"===typeof i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))l+=e.slice(o,o+3),o+=2;else if(s<128)l+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},7969:function(e,t,n){e.exports=n(36385)},74035:function(e,t,n){e.exports=function(e){var t,n=e||"yaml",r=[],i=-1;"string"!==typeof n&&"length"in n||(n=[n]);t=n.length;for(;++i<t;)r[i]=a(n[i]);return r};var r=n(21102),i={}.hasOwnProperty,o={yaml:"-",toml:"+"};function a(e){var t=e;if("string"===typeof t){if(!i.call(o,t))throw r("Missing matter definition for `%s`",t);t={type:t,marker:o[t]}}else if("object"!==typeof t)throw r("Expected matter to be an object, not `%j`",t);if(!i.call(t,"type"))throw r("Missing `type` in matter `%j`",t);if(!i.call(t,"fence")&&!i.call(t,"marker"))throw r("Missing `marker` or `fence` in matter `%j`",t);return t}},36385:function(e,t,n){e.exports=function(e){var t,n,a=r(e),s=a.length,u=-1,c={};for(;++u<s;)t=a[u],(n=o(t,"open").charCodeAt(0))in c?c[n].push(i(t)):c[n]=[i(t)];return{flow:c}};var r=n(74035);function i(e){var t,n=e.type,r=e.anywhere,i=n+"Value",a=n+"Fence",s=a+"Sequence",u={tokenize:function(e,n,r){var i=0;return function(n){if(n===t.charCodeAt(i))return e.enter(a),e.enter(s),o(n);return r(n)};function o(n){return i===t.length?(e.exit(s),-2===n||-1===n||32===n?(e.enter("whitespace"),u(n)):c(n)):n===t.charCodeAt(i)?(e.consume(n),i++,o):r(n)}function u(t){return-2===t||-1===t||32===t?(e.consume(t),u):(e.exit("whitespace"),c(t))}function c(t){return-5===t||-4===t||-3===t||null===t?(e.exit(a),n(t)):r(t)}},partial:!0};return{tokenize:function(a,s,c){var l=this;return function(i){var s=l.now();if(1!==s.column||!r&&1!==s.line)return c(i);return a.enter(n),t=o(e,"open"),a.attempt(u,d,c)(i)};function d(n){return t=o(e,"close"),p(n)}function f(e){return-5===e||-4===e||-3===e||null===e?p(e):(a.enter(i),h(e))}function h(e){return-5===e||-4===e||-3===e||null===e?(a.exit(i),p(e)):(a.consume(e),h)}function p(e){return null===e?c(e):(a.enter("lineEnding"),a.consume(e),a.exit("lineEnding"),a.attempt(u,m,f))}function m(e){return a.exit(n),s(e)}},concrete:!0}}function o(e,t){var n;return e.marker?(n=a(e.marker,t))+n+n:a(e.fence,t)}function a(e,t){return"string"===typeof e?e:e[t]}},57539:function(e,t,n){e.exports=n(62346)},62346:function(e,t,n){var r=n(76734),i=n(46712),o=n(89696),a=n(17238),s=n(36996),u=n(10395),c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32===87?(e.consume(t),i):n(t)}function i(t){return 87===t||t-32===87?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||a(e)?n(e):t(e)}},partial:!0},l={tokenize:function(e,t,n){var r,i;return a;function a(t){return 38===t?e.check(h,l,c)(t):46===t||95===t?e.check(f,l,c)(t):o(t)||u(t)||45!==t&&s(t)?l(t):(e.consume(t),a)}function c(t){return 46===t?(i=r,r=void 0,e.consume(t),a):(95===t&&(r=!0),e.consume(t),a)}function l(e){return i||r?n(e):t(e)}},partial:!0},d={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(h,t,i)(a):(40===a&&n++,41===a?e.check(f,o,i)(a):E(a)?t(a):b(a)?e.check(f,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},f={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return b(i)?(e.consume(i),r):E(i)?t(i):n(i)}},partial:!0},h={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(t){return r(t)?(e.consume(t),i):59===t?(e.consume(t),o):n(t)}function o(e){return E(e)?t(e):n(e)}},partial:!0},p={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&t-32!==87||!x(r.previous)||k(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(c,e.attempt(l,e.attempt(d,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:x},m={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&t-32!==72||!_(r.previous)||k(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||t-32===84?(e.consume(t),a):n(t)}function a(t){return 84===t||t-32===84?(e.consume(t),c):n(t)}function c(t){return 80===t||t-32===80?(e.consume(t),f):n(t)}function f(t){return 83===t||t-32===83?(e.consume(t),h):h(t)}function h(t){return 58===t?(e.consume(t),p):n(t)}function p(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return o(t)||u(t)||s(t)?n(t):e.attempt(l,e.attempt(d,v),n)(t)}function v(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:_},g={tokenize:function(e,t,n){var r,o=this;return function(t){if(!T(t)||!w(o.previous)||k(o.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return T(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(f,d,u)(t):45===t||95===t?e.check(f,n,c)(t):i(t)?(e.consume(t),s):d(t)}function u(t){return e.consume(t),r=!0,s}function c(t){return e.consume(t),l}function l(t){return 46===t?e.check(f,n,u)(t):s(t)}function d(i){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:w},v={};t.text=v;for(var y=48;y<123;)v[y]=g,58===++y?y=65:91===y&&(y=97);function b(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function E(e){return null===e||e<0||32===e||60===e}function T(e){return 43===e||45===e||46===e||95===e||i(e)}function x(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function _(e){return null===e||!r(e)}function w(e){return 47!==e&&_(e)}function k(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}v[43]=g,v[45]=g,v[46]=g,v[95]=g,v[72]=[g,m],v[104]=[g,m],v[87]=[g,p],v[119]=[g,p]},3490:function(e,t,n){e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,i){var o=this.previous,a=this.events,s=0;return u;function u(t){return 126!==t||126===o&&"characterEscape"!==a[a.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),c(t))}function c(a){var u,l,d=r(o);return 126===a?s>1?i(a):(e.consume(a),s++,c):s<2&&!t?i(a):(u=e.exit("strikethroughSequenceTemporary"),l=r(a),u._open=!l||2===l&&d,u._close=!d||2===d&&l,n(a))}},resolveAll:function(e,t){var n,r,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"strikethroughSequenceTemporary"===e[c][1].type&&e[c][1]._close)for(s=c;s--;)if("exit"===e[s][0]&&"strikethroughSequenceTemporary"===e[s][1].type&&e[s][1]._open&&e[c][1].end.offset-e[c][1].start.offset===e[s][1].end.offset-e[s][1].start.offset){e[c][1].type="strikethroughSequence",e[s][1].type="strikethroughSequence",n={type:"strikethrough",start:a(e[s][1].start),end:a(e[c][1].end)},r={type:"strikethroughText",start:a(e[s][1].end),end:a(e[c][1].start)},u=[["enter",n,t],["enter",e[s][1],t],["exit",e[s][1],t],["enter",r,t]],i(u,u.length,0,o(t.parser.constructs.insideSpan.null,e.slice(s+1,c),t)),i(u,u.length,0,[["exit",r,t],["enter",e[c][1],t],["exit",e[c][1],t],["exit",n,t]]),i(e,s-1,c-s+3,u),c=s+u.length-2;break}return function(e){var t=-1,n=e.length;for(;++t<n;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}(e)}};null!==t&&void 0!==t||(t=!0);return{text:{126:n},insideSpan:{null:n}}};var r=n(19444),i=n(56808),o=n(58280),a=n(75923)},81286:function(e,t,n){e.exports=n(23993)},23993:function(e,t,n){t.flow={null:{tokenize:function(e,t,n){var a,s,u=[],c=0;return function(t){if(null===t||-5===t||-4===t||-3===t)return n(t);if(e.enter("table")._align=u,e.enter("tableHead"),e.enter("tableRow"),124===t)return l(t);return c++,e.enter("temporaryTableCellContent"),h(t)};function l(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,d}function d(t){return null===t||-5===t||-4===t||-3===t?function(t){if(null===t)return n(t);return e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(i,n,r(e,m,"linePrefix",4))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,c++),124===t?l(t):(e.enter("temporaryTableCellContent"),h(t)))}function f(t){return-2===t||-1===t||32===t?(e.consume(t),f):(e.exit("whitespace"),d(t))}function h(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),d(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function m(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),g(t))}function g(t){return null===t||-5===t||-4===t||-3===t?T(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,u.push(null),y):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),u.push("left"),b):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function v(t){return-2===t||-1===t||32===t?(e.consume(t),v):(e.exit("whitespace"),g(t))}function y(t){return 45===t?(e.consume(t),y):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),u[u.length-1]="left"===u[u.length-1]?"center":"right",E):g(t))}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,y):n(t)}function E(t){return null===t||-5===t||-4===t||-3===t?T(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function T(t){return e.exit("tableDelimiterRow"),s&&c===u.length?null===t?x(t):e.check(o,x,_)(t):n(t)}function x(n){return e.exit("table"),t(n)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,w,"linePrefix",4)}function w(t){return e.enter("tableBody"),k(t)}function k(t){return e.enter("tableRow"),124===t?C(t):(e.enter("temporaryTableCellContent"),O(t))}function C(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||-5===t||-4===t||-3===t?function(t){if(e.exit("tableRow"),null===t)return I(t);return e.check(o,I,N)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),S):124===t?C(t):(e.enter("temporaryTableCellContent"),O(t))}function S(t){return-2===t||-1===t||32===t?(e.consume(t),S):(e.exit("whitespace"),A(t))}function O(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?D:O)}function D(t){return 92===t||124===t?(e.consume(t),O):O(t)}function I(t){return e.exit("tableBody"),x(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,k,"linePrefix",4)}},resolve:function(e,t){var n,r,i,o,a,s,u,c,l,d,f=e.length,h=-1;for(;++h<f;)n=e[h][1],o&&("temporaryTableCellContent"===n.type&&(c=c||h,l=h),"tableCellDivider"!==n.type&&"tableRow"!==n.type||!l||(s={type:"tableContent",start:e[c][1].start,end:e[l][1].end},u={type:"chunkText",start:s.start,end:s.end,contentType:"text"},e.splice(c,l-c+1,["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t]),h-=l-c-3,f=e.length,c=void 0,l=void 0)),"exit"===e[h][0]&&d&&d+1<h&&("tableCellDivider"===n.type||"tableRow"===n.type&&(d+3<h||"whitespace"!==e[d][1].type))&&(a={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[d][1].start,end:e[h][1].end},e.splice(h+("tableCellDivider"===n.type?1:0),0,["exit",a,t]),e.splice(d,0,["enter",a,t]),h+=2,f=e.length,d=h+1),"tableRow"===n.type&&(o="enter"===e[h][0])&&(d=h+1),"tableDelimiterRow"===n.type&&(i="enter"===e[h][0])&&(d=h+1),"tableHead"===n.type&&(r="enter"===e[h][0]);return e},interruptible:!0}};var r=n(52928),i={tokenize:function(e,t,n){return function(t){if(45!==t)return n(t);return e.enter("setextUnderline"),r(t)};function r(t){return 45===t?(e.consume(t),r):i(t)}function i(r){return-2===r||-1===r||32===r?(e.consume(r),i):null===r||-5===r||-4===r||-3===r?t(r):n(r)}},partial:!0},o={tokenize:function(e,t,n){var r=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),4===++r?t:i):null===o||o<0?t(o):n(o)}},partial:!0}},5675:function(e,t,n){e.exports=n(27224)},27224:function(e,t,n){var r=n(88367),i=n(52928),o=n(15096),a={tokenize:function(e,t,n){var r=this;return function(t){if(91!==t||null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var a=this;return i(e,(function(e){return o(a.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)}),"whitespace")}t.text={91:a}},82747:function(e,t,n){e.exports=n(2518)},2518:function(e,t,n){var r=n(12952),i=n(57539),o=n(3490),a=n(81286),s=n(5675);e.exports=function(e){return r([i,o(e),a,s])}},50444:function(e,t,n){e.exports=n(92349)},92349:function(e,t,n){"use strict";t.flow={36:n(13857)},t.text={36:n(27141)}},13857:function(e,t,n){"use strict";t.tokenize=function(e,t,n){var o=this,a=r(this.events,"linePrefix"),s=0;return function(t){if(36!==t)throw new Error("expected `$`");return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(t)};function u(t){return 36===t?(e.consume(t),s++,u):(e.exit("mathFlowFenceSequence"),s<2?n(t):i(e,c,"whitespace")(t))}function c(t){return null===t||-5===t||-4===t||-3===t?d(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return null===t||-5===t||-4===t||-3===t?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(t)):36===t?n(t):(e.consume(t),l)}function d(n){return e.exit("mathFlowFence"),o.interrupt?t(n):f(n)}function f(t){return null===t?p(t):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt({tokenize:m,partial:!0},p,a?i(e,f,"linePrefix",a+1):f)):(e.enter("mathFlowValue"),h(t))}function h(t){return null===t||-5===t||-4===t||-3===t?(e.exit("mathFlowValue"),f(t)):(e.consume(t),h)}function p(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){var r=0;return i(e,(function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),o(t)}),"linePrefix",4);function o(t){return 36===t?(e.consume(t),r++,o):r<s?n(t):(e.exit("mathFlowFenceSequence"),i(e,a,"whitespace")(t))}function a(r){return null===r||-5===r||-4===r||-3===r?(e.exit("mathFlowFence"),t(r)):n(r)}}},t.concrete=!0;var r=n(15096),i=n(52928)},27141:function(e,t){"use strict";function n(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}t.tokenize=function(e,t,r){var i,o,a=this,s=0;return function(t){if(36!==t)throw new Error("expected `$`");if(!n.call(a,a.previous))throw new Error("expected correct previous");return e.enter("mathText"),e.enter("mathTextSequence"),u(t)};function u(t){return 36===t?(e.consume(t),s++,u):(e.exit("mathTextSequence"),c(t))}function c(t){return null===t?r(t):36===t?(o=e.enter("mathTextSequence"),i=0,d(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),c):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||-5===t||-4===t||-3===t?(e.exit("mathTextData"),c(t)):(e.consume(t),l)}function d(n){return 36===n?(e.consume(n),i++,d):i===s?(e.exit("mathTextSequence"),e.exit("mathText"),t(n)):(o.type="mathTextData",l(n))}},t.resolve=function(e){var t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},t.previous=n},76734:function(e,t,n){"use strict";var r=n(2841)(/[A-Za-z]/);e.exports=r},46712:function(e,t,n){"use strict";var r=n(2841)(/[\dA-Za-z]/);e.exports=r},13571:function(e,t,n){"use strict";var r=n(2841)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},89696:function(e){"use strict";e.exports=function(e){return e<32||127===e}},73977:function(e,t,n){"use strict";var r=n(2841)(/\d/);e.exports=r},56238:function(e,t,n){"use strict";var r=n(2841)(/[\dA-Fa-f]/);e.exports=r},83074:function(e,t,n){"use strict";var r=n(2841)(/[!-/:-@[-`{-~]/);e.exports=r},88367:function(e){"use strict";e.exports=function(e){return e<0||32===e}},17238:function(e){"use strict";e.exports=function(e){return e<-2}},73654:function(e){"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},36996:function(e,t,n){"use strict";var r=n(76830),i=n(2841)(r);e.exports=i},10395:function(e,t,n){"use strict";var r=n(2841)(/\s/);e.exports=r},99198:function(e){"use strict";var t=Object.assign;e.exports=t},93267:function(e){"use strict";var t=String.fromCharCode;e.exports=t},46706:function(e){"use strict";var t={}.hasOwnProperty;e.exports=t},57139:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},16871:function(e){"use strict";e.exports=["pre","script","style","textarea"]},21362:function(e){"use strict";var t=[].splice;e.exports=t},76830:function(e){"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},36274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(97082),i=n(47542),o=n(1349),a=n(45485),s=n(49653),u=n(36713),c=n(46597),l=n(20431),d=n(60026),f=n(93865),h=n(65694),p=n(596),m=n(76872),g=n(28911),v=n(31294),y=n(36215),b=n(60534),E=n(92607),T=n(46931),x=n(15874),_=n(37039),w={42:T,43:T,45:T,48:T,49:T,50:T,51:T,52:T,53:T,54:T,55:T,56:T,57:T,62:a},k={91:f},C={"-2":l,"-1":l,32:l},A={35:p,42:_,45:[x,_],60:m,61:x,95:_,96:c,126:c},S={38:u,92:s},O={"-5":E,"-4":E,"-3":E,33:y,38:u,42:i,60:[o,g],91:b,92:[h,s],93:v,95:i,96:d},D={null:[i,r.resolver]};t.contentInitial=k,t.disable={null:[]},t.document=w,t.flow=A,t.flowInitial=C,t.insideSpan=D,t.string=S,t.text=O},13745:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17238),i=n(52928),o=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),o(t)}));return n;function o(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),o):(e.consume(t),a)}};t.tokenize=o},14201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17238),i=n(52928),o=n(66532),a=function(e){var t,n,i,a=this,c=[],l=0,d={tokenize:function(e,r){var i=0;return t={},l;function l(r){return i<c.length?(a.containerState=c[i][1],e.attempt(c[i][0].continuation,d,f)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,m(r)):(a.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,p,m)(r))}function d(e){return i++,a.containerState._closeFlow?p(e):l(e)}function f(t){return n.currentConstruct&&n.currentConstruct.lazy?(a.containerState={},e.attempt(s,p,e.attempt(u,p,e.check(o,p,h)))(t)):p(t)}function h(e){return i=c.length,t.lazy=!0,t.flowContinue=!0,m(e)}function p(e){return t.flowEnd=!0,m(e)}function m(e){return t.continued=i,a.interrupt=a.containerState=void 0,r(e)}},partial:!0};return f;function f(t){return l<c.length?(a.containerState=c[l][1],e.attempt(c[l][0].continuation,h,p)(t)):p(t)}function h(e){return l++,f(e)}function p(r){return t&&t.flowContinue?g(r):(a.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,m,g)(r))}function m(e){return c.push([a.currentConstruct,a.containerState]),a.containerState=void 0,p(e)}function g(t){return null===t?(E(0,!0),void e.consume(t)):(n=n||a.parser.flow(a.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),v(t))}function v(t){return null===t?(b(e.exit("chunkFlow")),g(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(d,y)):(e.consume(t),v)}function y(e){return E(t.continued,t&&t.flowEnd),l=0,f(e)}function b(e){i&&(i.next=e),i=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(a.sliceStream(e))}function E(t,r){var o=c.length;for(n&&r&&(n.write([null]),i=n=void 0);o-- >t;)a.containerState=c[o][1],c[o][0].exit.call(a,e);c.length=t}},s={tokenize:function(e,t,n){return i(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},u={tokenize:function(e,t,n){return i(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=a},22871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64590),i=n(52928),o=n(66532),a=function(e){var t=this,n=e.attempt(o,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,a,i(e,e.attempt(this.parser.constructs.flow,a,e.attempt(r,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}};t.tokenize=a},97082:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99198),i=n(75923),o=u("text"),a=u("string"),s={resolveAll:c()};function u(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){var t=r[e],i=-1;if(null===e)return!0;if(t)for(;++i<t.length;)if(!t[i].previous||t[i].previous.call(n,n.previous))return!0}},resolveAll:c("text"===e?l:void 0)}}function c(e){return function(t,n){var r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function l(e,t){for(var n,o,a,s,u,c,l,d,f=-1;++f<=e.length;)if((f===e.length||"lineEnding"===e[f][1].type)&&"data"===e[f-1][1].type){for(o=e[f-1][1],s=(n=t.sliceStream(o)).length,u=-1,c=0,l=void 0;s--;)if("string"===typeof(a=n[s])){for(u=a.length;32===a.charCodeAt(u-1);)c++,u--;if(u)break;u=-1}else if(-2===a)l=!0,c++;else if(-1!==a){s++;break}c&&(d={type:f===e.length||l||c<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-c,offset:o.end.offset-c,_index:o.start._index+s,_bufferIndex:s?u:o.start._bufferIndex+u},end:i(o.end)},o.end=i(d.start),o.start.offset===o.end.offset?r(o,d):(e.splice(f,0,["enter",d,t],["exit",d,t]),f+=2)),f++}return e}t.resolver=s,t.string=a,t.text=o},32976:function(e,t,n){"use strict";var r=n(13745),i=n(14201),o=n(22871),a=n(97082),s=n(12952),u=n(21388),c=n(28180),l=n(36274);e.exports=function(e){var t={defined:[],constructs:s([l].concat(c((e||{}).extensions))),content:n(r),document:n(i),flow:n(o),string:n(a.string),text:n(a.text)};return t;function n(e){return function(n){return u(t,e,n)}}}},61242:function(e,t,n){"use strict";var r=n(84423);e.exports=function(e){for(;!r(e););return e}},30162:function(e){"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,i="";return function(o,a,s){var u,c,l,d,f,h=[];o=i+o.toString(a),l=0,i="",n&&(65279===o.charCodeAt(0)&&l++,n=void 0);for(;l<o.length;){if(t.lastIndex=l,u=t.exec(o),d=u?u.index:o.length,f=o.charCodeAt(d),!u){i=o.slice(l);break}if(10===f&&l===d&&e)h.push(-3),e=void 0;else if(e&&(h.push(-5),e=void 0),l<d&&(h.push(o.slice(l,d)),r+=d-l),0===f)h.push(65533),r++;else if(9===f)for(c=4*Math.ceil(r/4),h.push(-2);r++<c;)h.push(-1);else 10===f?(h.push(-4),r=1):(e=!0,r=1);l=d+1}s&&(e&&h.push(-5),i&&h.push(i),h.push(null));return h}}},47542:function(e,t,n){"use strict";var r=n(78811),i=n(56808),o=n(19444),a=n(15644),s=n(58280),u=n(75923),c={name:"attention",tokenize:function(e,t){var n,r=o(this.previous);return function(t){return e.enter("attentionSequence"),n=t,i(t)};function i(a){var s,u,c,l;return a===n?(e.consume(a),i):(s=e.exit("attentionSequence"),c=!(u=o(a))||2===u&&r,l=!r||2===r&&u,s._open=42===n?c:c&&(r||!l),s._close=42===n?l:l&&(u||!c),t(a))}},resolveAll:function(e,t){var n,o,c,l,d,f,h,p,m=-1;for(;++m<e.length;)if("enter"===e[m][0]&&"attentionSequence"===e[m][1].type&&e[m][1]._close)for(n=m;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[m][1]).charCodeAt(0)){if((e[n][1]._close||e[m][1]._open)&&(e[m][1].end.offset-e[m][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[m][1].end.offset-e[m][1].start.offset)%3))continue;f=e[n][1].end.offset-e[n][1].start.offset>1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1,l={type:f>1?"strongSequence":"emphasisSequence",start:a(u(e[n][1].end),-f),end:u(e[n][1].end)},d={type:f>1?"strongSequence":"emphasisSequence",start:u(e[m][1].start),end:a(u(e[m][1].start),f)},c={type:f>1?"strongText":"emphasisText",start:u(e[n][1].end),end:u(e[m][1].start)},o={type:f>1?"strong":"emphasis",start:u(l.start),end:u(d.end)},e[n][1].end=u(l.start),e[m][1].start=u(d.end),h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=r(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=r(h,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",c,t]]),h=r(h,s(t.parser.constructs.insideSpan.null,e.slice(n+1,m),t)),h=r(h,[["exit",c,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[m][1].end.offset-e[m][1].start.offset?(p=2,h=r(h,[["enter",e[m][1],t],["exit",e[m][1],t]])):p=0,i(e,n-1,m-n+3,h),m=n+h.length-p-2;break}m=-1;for(;++m<e.length;)"attentionSequence"===e[m][1].type&&(e[m][1].type="data");return e}};e.exports=c},1349:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(13571),a=n(89696),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u};function u(t){return r(t)?(e.consume(t),c):o(t)?f(t):n(t)}function c(e){return 43===e||45===e||46===e||i(e)?l(e):f(e)}function l(t){return 58===t?(e.consume(t),d):(43===t||45===t||46===t||i(t))&&s++<32?(e.consume(t),l):f(t)}function d(t){return 62===t?(e.exit("autolinkProtocol"),g(t)):32===t||60===t||a(t)?n(t):(e.consume(t),d)}function f(t){return 64===t?(e.consume(t),s=0,h):o(t)?(e.consume(t),f):n(t)}function h(e){return i(e)?p(e):n(e)}function p(t){return 46===t?(e.consume(t),s=0,h):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",g(t)):m(t)}function m(t){return(45===t||i(t))&&s++<63?(e.consume(t),45===t?m:p):n(t)}function g(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},45485:function(e,t,n){"use strict";var r=n(73654),i=n(52928),o={name:"blockQuote",tokenize:function(e,t,n){var i=this;return function(t){if(62===t)return i.containerState.open||(e.enter("blockQuote",{_container:!0}),i.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o;return n(t)};function o(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return i(e,e.attempt(o,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=o},49653:function(e,t,n){"use strict";var r=n(83074),i={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return r(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}};e.exports=i},36713:function(e,t,n){"use strict";var r=n(89435),i=n(46712),o=n(73977),a=n(56238);function s(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var u=s(r),c={name:"characterReference",tokenize:function(e,t,n){var r,s,c=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),d};function d(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),r=31,s=i,h(t))}function f(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=a,h):(e.enter("characterReferenceValue"),r=7,s=o,h(t))}function h(o){var a;return 59===o&&l?(a=e.exit("characterReferenceValue"),s!==i||u.default(c.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)):s(o)&&l++<r?(e.consume(o),h):n(o)}}};e.exports=c},46597:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(15096),a=n(52928),s={name:"codeFenced",tokenize:function(e,t,n){var s,u=this,c={tokenize:function(e,t,n){var i=0;return a(e,o,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function o(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(t)}function u(t){return t===s?(e.consume(t),i++,u):i<d?n(t):(e.exit("codeFencedFenceSequence"),a(e,c,"whitespace")(t))}function c(i){return null===i||r(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0},l=o(this.events,"linePrefix"),d=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=t,f(t)};function f(t){return t===s?(e.consume(t),d++,f):(e.exit("codeFencedFenceSequence"),d<3?n(t):a(e,h,"whitespace")(t))}function h(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(e,m,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),p)}function m(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(t)):96===t&&t===s?n(t):(e.consume(t),g)}function v(n){return e.exit("codeFencedFence"),u.interrupt?t(n):y(n)}function y(t){return null===t?E(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(c,E,l?a(e,y,"linePrefix",l+1):y)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function E(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=s},20431:function(e,t,n){"use strict";var r=n(17238),i=n(56808),o=n(15096),a=n(52928),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(u,i,n);function i(n){return null===n?t(n):r(n)?e.attempt(u,i,t)(n):(e.enter("codeFlowValue"),o(n))}function o(t){return null===t||r(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return i(e,0,0,[["enter",n,t]]),i(e,e.length,0,[["exit",n,t]]),e}},u={tokenize:function(e,t,n){var i=this;return a(e,(function s(u){if(r(u))return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a(e,s,"linePrefix",5);return o(i.events,"linePrefix")<4?n(u):t(u)}),"linePrefix",5)},partial:!0};e.exports=s},60026:function(e,t,n){"use strict";var r=n(17238),i={name:"codeText",tokenize:function(e,t,n){var i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):96===t?(o=e.enter("codeTextSequence"),i=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),c)}function l(n){return 96===n?(e.consume(n),i++,l):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",c(n))}},resolve:function(e){var t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[i][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=i},64590:function(e,t,n){"use strict";var r=n(17238),i=n(15096),o=n(84423),a=n(52928),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?o(t):r(t)?e.check(u,a,o)(t):(e.consume(t),i)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),i}},resolve:function(e){return o(e),e},interruptible:!0,lazy:!0},u={tokenize:function(e,t,n){var o=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,s,"linePrefix")};function s(a){return null===a||r(a)?n(a):o.parser.constructs.disable.null.indexOf("codeIndented")>-1||i(o.events,"linePrefix")<4?e.interrupt(o.parser.constructs.flow,n,t)(a):t(a)}},partial:!0};e.exports=s},93865:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(35478),a=n(38229),s=n(97154),u=n(52928),c=n(31056),l=n(59283),d={name:"definition",tokenize:function(e,t,n){var i,l=this;return function(t){return e.enter("definition"),s.call(l,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function d(t){return i=o(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,a(e,e.attempt(f,u(e,h,"whitespace"),u(e,h,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function h(o){return null===o||r(o)?(e.exit("definition"),l.parser.defined.indexOf(i)<0&&l.parser.defined.push(i),t(o)):n(o)}}},f={tokenize:function(e,t,n){return function(t){return i(t)?c(e,o)(t):n(t)};function o(t){return 34===t||39===t||40===t?l(e,u(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function a(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=d},38229:function(e,t,n){"use strict";var r=n(89696),i=n(88367),o=n(17238);e.exports=function(e,t,n,a,s,u,c,l,d){var f=d||1/0,h=0;return function(t){if(60===t)return e.enter(a),e.enter(s),e.enter(u),e.consume(t),e.exit(u),p;if(r(t)||41===t)return n(t);return e.enter(a),e.enter(c),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(t)};function p(n){return 62===n?(e.enter(u),e.consume(n),e.exit(u),e.exit(s),e.exit(a),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(l),p(t)):null===t||60===t||o(t)?n(t):(e.consume(t),92===t?g:m)}function g(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function v(o){return 40===o?++h>f?n(o):(e.consume(o),v):41===o?h--?(e.consume(o),v):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(a),t(o)):null===o||i(o)?h?n(o):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(a),t(o)):r(o)?n(o):(e.consume(o),92===o?y:v)}function y(t){return 40===t||41===t||92===t?(e.consume(t),v):v(t)}}},97154:function(e,t,n){"use strict";var r=n(17238),i=n(73654);e.exports=function(e,t,n,o,a,s){var u,c=this,l=0;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),e.enter(s),d};function d(i){return null===i||91===i||93===i&&!u||94===i&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs||l>999?n(i):93===i?(e.exit(s),e.enter(a),e.consume(i),e.exit(a),e.exit(o),t):r(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(i))}function f(t){return null===t||91===t||93===t||r(t)||l++>999?(e.exit("chunkString"),d(t)):(e.consume(t),u=u||!i(t),92===t?h:f)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,f):f(t)}}},52928:function(e,t,n){"use strict";var r=n(73654);e.exports=function(e,t,n,i){var o=i?i-1:1/0,a=0;return function(i){if(r(i))return e.enter(n),s(i);return t(i)};function s(i){return r(i)&&a++<o?(e.consume(i),s):(e.exit(n),t(i))}}},59283:function(e,t,n){"use strict";var r=n(17238),i=n(52928);e.exports=function(e,t,n,o,a,s){var u;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),u=40===t?41:t,c};function c(n){return n===u?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),t):(e.enter(s),l(n))}function l(t){return t===u?(e.exit(s),c(u)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===u||null===t||r(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?f:d)}function f(t){return t===u||92===t?(e.consume(t),d):d(t)}}},31056:function(e,t,n){"use strict";var r=n(17238),i=n(73654),o=n(52928);e.exports=function(e,t){var n;return function a(s){if(r(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a;if(i(s))return o(e,a,n?"linePrefix":"lineSuffix")(s);return t(s)}}},65694:function(e,t,n){"use strict";var r=n(17238),i={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return r(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}};e.exports=i},596:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(73654),a=n(56808),s=n(52928),u={name:"headingAtx",tokenize:function(e,t,n){var a=this,u=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(r){return 35===r&&u++<6?(e.consume(r),c):null===r||i(r)?(e.exit("atxHeadingSequence"),a.interrupt?t(r):l(r)):n(r)}function l(n){return 35===n?(e.enter("atxHeadingSequence"),d(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):o(n)?s(e,l,"whitespace")(n):(e.enter("atxHeadingText"),f(n))}function d(t){return 35===t?(e.consume(t),d):(e.exit("atxHeadingSequence"),l(t))}function f(t){return null===t||35===t||i(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),f)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},a(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};e.exports=u},76872:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(17238),a=n(88367),s=n(73654),u=n(93267),c=n(57139),l=n(16871),d=n(66532),f={name:"htmlFlow",tokenize:function(e,t,n){var d,f,p,m,g,v=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(i){return 33===i?(e.consume(i),b):47===i?(e.consume(i),x):63===i?(e.consume(i),d=3,v.interrupt?t:U):r(i)?(e.consume(i),p=u(i),f=!0,_):n(i)}function b(i){return 45===i?(e.consume(i),d=2,E):91===i?(e.consume(i),d=5,p="CDATA[",m=0,T):r(i)?(e.consume(i),d=4,v.interrupt?t:U):n(i)}function E(r){return 45===r?(e.consume(r),v.interrupt?t:U):n(r)}function T(r){return r===p.charCodeAt(m++)?(e.consume(r),m===p.length?v.interrupt?t:P:T):n(r)}function x(t){return r(t)?(e.consume(t),p=u(t),_):n(t)}function _(r){return null===r||47===r||62===r||a(r)?47!==r&&f&&l.indexOf(p.toLowerCase())>-1?(d=1,v.interrupt?t(r):P(r)):c.indexOf(p.toLowerCase())>-1?(d=6,47===r?(e.consume(r),w):v.interrupt?t(r):P(r)):(d=7,v.interrupt?n(r):f?C(r):k(r)):45===r||i(r)?(e.consume(r),p+=u(r),_):n(r)}function w(r){return 62===r?(e.consume(r),v.interrupt?t:P):n(r)}function k(t){return s(t)?(e.consume(t),k):R(t)}function C(t){return 47===t?(e.consume(t),R):58===t||95===t||r(t)?(e.consume(t),A):s(t)?(e.consume(t),C):R(t)}function A(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),A):S(t)}function S(t){return 61===t?(e.consume(t),O):s(t)?(e.consume(t),S):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),g=t,D):s(t)?(e.consume(t),O):(g=void 0,I(t))}function D(t){return t===g?(e.consume(t),N):null===t||o(t)?n(t):(e.consume(t),D)}function I(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||a(t)?S(t):(e.consume(t),I)}function N(e){return 47===e||62===e||s(e)?C(e):n(e)}function R(t){return 62===t?(e.consume(t),M):n(t)}function M(t){return s(t)?(e.consume(t),M):null===t||o(t)?P(t):n(t)}function P(t){return 45===t&&2===d?(e.consume(t),j):60===t&&1===d?(e.consume(t),H):62===t&&4===d?(e.consume(t),V):63===t&&3===d?(e.consume(t),U):93===t&&5===d?(e.consume(t),z):!o(t)||6!==d&&7!==d?null===t||o(t)?L(t):(e.consume(t),P):e.check(h,V,L)(t)}function L(t){return e.exit("htmlFlowData"),F(t)}function F(t){return null===t?G(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F):(e.enter("htmlFlowData"),P(t))}function j(t){return 45===t?(e.consume(t),U):P(t)}function H(t){return 47===t?(e.consume(t),p="",B):P(t)}function B(t){return 62===t&&l.indexOf(p.toLowerCase())>-1?(e.consume(t),V):r(t)&&p.length<8?(e.consume(t),p+=u(t),B):P(t)}function z(t){return 93===t?(e.consume(t),U):P(t)}function U(t){return 62===t?(e.consume(t),V):P(t)}function V(t){return null===t||o(t)?(e.exit("htmlFlowData"),G(t)):(e.consume(t),V)}function G(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},h={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(d,t,n)}},partial:!0};e.exports=f},28911:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(17238),a=n(88367),s=n(73654),u=n(52928),c={name:"htmlText",tokenize:function(e,t,n){var c,l,d,f,h=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),p};function p(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),S):63===t?(e.consume(t),C):r(t)?(e.consume(t),I):n(t)}function m(t){return 45===t?(e.consume(t),g):91===t?(e.consume(t),l="CDATA[",d=0,T):r(t)?(e.consume(t),k):n(t)}function g(t){return 45===t?(e.consume(t),v):n(t)}function v(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),E):o(t)?(f=b,H(t)):(e.consume(t),b)}function E(t){return 45===t?(e.consume(t),z):b(t)}function T(t){return t===l.charCodeAt(d++)?(e.consume(t),d===l.length?x:T):n(t)}function x(t){return null===t?n(t):93===t?(e.consume(t),_):o(t)?(f=x,H(t)):(e.consume(t),x)}function _(t){return 93===t?(e.consume(t),w):x(t)}function w(t){return 62===t?z(t):93===t?(e.consume(t),w):x(t)}function k(t){return null===t||62===t?z(t):o(t)?(f=k,H(t)):(e.consume(t),k)}function C(t){return null===t?n(t):63===t?(e.consume(t),A):o(t)?(f=C,H(t)):(e.consume(t),C)}function A(e){return 62===e?z(e):C(e)}function S(t){return r(t)?(e.consume(t),O):n(t)}function O(t){return 45===t||i(t)?(e.consume(t),O):D(t)}function D(t){return o(t)?(f=D,H(t)):s(t)?(e.consume(t),D):z(t)}function I(t){return 45===t||i(t)?(e.consume(t),I):47===t||62===t||a(t)?N(t):n(t)}function N(t){return 47===t?(e.consume(t),z):58===t||95===t||r(t)?(e.consume(t),R):o(t)?(f=N,H(t)):s(t)?(e.consume(t),N):z(t)}function R(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),R):M(t)}function M(t){return 61===t?(e.consume(t),P):o(t)?(f=M,H(t)):s(t)?(e.consume(t),M):N(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,L):o(t)?(f=P,H(t)):s(t)?(e.consume(t),P):(e.consume(t),c=void 0,j)}function L(t){return t===c?(e.consume(t),F):null===t?n(t):o(t)?(f=L,H(t)):(e.consume(t),L)}function F(e){return 62===e||47===e||a(e)?N(e):n(e)}function j(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||a(t)?N(t):(e.consume(t),j)}function H(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u(e,B,"linePrefix",h.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function B(t){return e.enter("htmlTextData"),f(t)}function z(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=c},31294:function(e,t,n){"use strict";var r=n(88367),i=n(78811),o=n(56808),a=n(35478),s=n(58280),u=n(75923),c=n(38229),l=n(97154),d=n(59283),f=n(31056),h={name:"labelEnd",tokenize:function(e,t,n){var r,i,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){if(!r)return n(t);return r._inactive?c(t):(i=o.parser.defined.indexOf(a(o.sliceSerialize({start:r.end,end:o.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u)};function u(n){return 40===n?e.attempt(p,t,i?t:c)(n):91===n?e.attempt(m,t,i?e.attempt(g,t,c):c)(n):i?t(n):c(n)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,a,c,l,d,f,h=e.length,p=0;for(;h--;)if(c=e[h][1],l){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[h][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(d){if("enter"===e[h][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(l=h,"labelLink"!==c.type)){p=2;break}}else"labelEnd"===c.type&&(d=h);return n={type:"labelLink"===e[l][1].type?"link":"image",start:u(e[l][1].start),end:u(e[e.length-1][1].end)},r={type:"label",start:u(e[l][1].start),end:u(e[d][1].end)},a={type:"labelText",start:u(e[l+p+2][1].end),end:u(e[d-2][1].start)},f=i(f=[["enter",n,t],["enter",r,t]],e.slice(l+1,l+p+3)),f=i(f,[["enter",a,t]]),f=i(f,s(t.parser.constructs.insideSpan.null,e.slice(l+p+4,d-3),t)),f=i(f,[["exit",a,t],e[d-2],e[d-1],["exit",r,t]]),f=i(f,e.slice(d+1)),f=i(f,[["exit",n,t]]),o(e,l,e.length,f),e},resolveAll:function(e){var t,n=-1;for(;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},p={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),f(e,i)};function i(t){return 41===t?s(t):c(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function o(t){return r(t)?f(e,a)(t):s(t)}function a(t){return 34===t||39===t||40===t?d(e,f(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},m={tokenize:function(e,t,n){var r=this;return function(t){return l.call(r,e,i,n,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.indexOf(a(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},g={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=h},36215:function(e,t,n){"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(31294).resolveAll};e.exports=r},60534:function(e,t,n){"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(31294).resolveAll};e.exports=r},92607:function(e,t,n){"use strict";var r=n(52928),i={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=i},46931:function(e,t,n){"use strict";var r=n(73977),i=n(73654),o=n(15096),a=n(18892),s=n(52928),u=n(66532),c=n(37039),l={name:"list",tokenize:function(e,t,n){var s=this,l=o(s.events,"linePrefix"),f=0;return function(t){var i=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,n,p)(t):p(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(t)}return n(t)};function h(t){return r(t)&&++f<10?(e.consume(t),h):(!s.interrupt||f<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),p(t)):n(t)}function p(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(u,s.interrupt?n:m,e.attempt(d,v,g))}function m(e){return s.containerState.initialBlankLine=!0,l++,v(e)}function g(t){return i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),v):n(t)}function v(n){return s.containerState.size=l+a(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(u,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!i(n))return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(f,t,o)(n)}));function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(l,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},d={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return i(e)||!o(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},f={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return o(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=l},66532:function(e,t,n){"use strict";var r=n(17238),i=n(52928),o={tokenize:function(e,t,n){return i(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=o},15874:function(e,t,n){"use strict";var r=n(17238),i=n(75923),o=n(52928),a={name:"setextUnderline",tokenize:function(e,t,n){var i,a,s=this,u=s.events.length;for(;u--;)if("lineEnding"!==s.events[u][1].type&&"linePrefix"!==s.events[u][1].type&&"content"!==s.events[u][1].type){a="paragraph"===s.events[u][1].type;break}return function(t){if(!s.lazy&&(s.interrupt||a))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,c(t);return n(t)};function c(t){return t===i?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),o(e,l,"lineSuffix")(t))}function l(i){return null===i||r(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function(e,t){var n,r,o,a,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),o||"definition"!==e[s][1].type||(o=s);a={type:"setextHeading",start:i(e[r][1].start),end:i(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=i(e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};e.exports=a},37039:function(e,t,n){"use strict";var r=n(17238),i=n(73654),o=n(52928),a={name:"thematicBreak",tokenize:function(e,t,n){var a,s=0;return function(t){return e.enter("thematicBreak"),a=t,u(t)};function u(l){return l===a?(e.enter("thematicBreakSequence"),c(l)):i(l)?o(e,u,"whitespace")(l):s<3||null!==l&&!r(l)?n(l):(e.exit("thematicBreak"),t(l))}function c(t){return t===a?(e.consume(t),s++,c):(e.exit("thematicBreakSequence"),u(t))}}};e.exports=a},78811:function(e,t,n){"use strict";var r=n(56808);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},56808:function(e,t,n){"use strict";var r=n(21362);e.exports=function(e,t,n,i){var o,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(o=Array.from(i)).unshift(t,n),r.apply(e,o);else for(n&&r.apply(e,[t,n]);s<i.length;)(o=i.slice(s,s+1e4)).unshift(t,0),r.apply(e,o),s+=1e4,t+=1e4}},19444:function(e,t,n){"use strict";var r=n(88367),i=n(36996),o=n(10395);e.exports=function(e){return null===e||r(e)||o(e)?1:i(e)?2:void 0}},12952:function(e,t,n){"use strict";var r=n(46706),i=n(56808),o=n(28180);function a(e,t){var n,i,a,u;for(n in t)for(u in i=r.call(e,n)?e[n]:e[n]={},a=t[n])i[u]=s(o(a[u]),r.call(i,u)?i[u]:[])}function s(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return i(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},21388:function(e,t,n){"use strict";var r=n(99198),i=n(17238),o=n(78811),a=n(56808),s=n(28180),u=n(58280),c=n(23082),l=n(75923),d=n(12774);e.exports=function(e,t,n){var f=n?l(n):{line:1,column:1,offset:0},h={},p=[],m=[],g=[],v={consume:function(e){i(e)?(f.line++,f.column=1,f.offset+=-3===e?2:1,A()):-1!==e&&(f.column++,f.offset++);f._bufferIndex<0?f._index++:(f._bufferIndex++,f._bufferIndex===m[f._index].length&&(f._bufferIndex=-1,f._index++));y.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=T(),y.events.push(["enter",n,y]),g.push(n),n},exit:function(e){var t=g.pop();return t.end=T(),y.events.push(["exit",t,y]),t},attempt:k((function(e,t){C(e,t.from)})),check:k(w),interrupt:k(w,{interrupt:!0}),lazy:k(w,{lazy:!0})},y={previous:null,events:[],parser:e,sliceStream:E,sliceSerialize:function(e){return c(E(e))},now:T,defineSkip:function(e){h[e.line]=e.column,A()},write:function(e){if(m=o(m,e),x(),null!==m[m.length-1])return[];return C(t,0),y.events=u(p,y.events,y),y.events}},b=t.tokenize.call(y,v);return t.resolveAll&&p.push(t),f._index=0,f._bufferIndex=-1,y;function E(e){return d(m,e)}function T(){return l(f)}function x(){for(var e,t;f._index<m.length;)if("string"===typeof(t=m[f._index]))for(e=f._index,f._bufferIndex<0&&(f._bufferIndex=0);f._index===e&&f._bufferIndex<t.length;)_(t.charCodeAt(f._bufferIndex));else _(t)}function _(e){b=b(e)}function w(e,t){t.restore()}function k(e,t){return function(n,i,o){var a,u,c,l;return n.tokenize||"length"in n?d(s(n)):function(e){if(e in n||null in n)return d(n.null?s(n[e]).concat(s(n.null)):n[e])(e);return o(e)};function d(e){return a=e,h(e[u=0])}function h(e){return function(n){l=function(){var e=T(),t=y.previous,n=y.currentConstruct,r=y.events.length,i=Array.from(g);return{restore:o,from:r};function o(){f=e,y.previous=t,y.currentConstruct=n,y.events.length=r,g=i,A()}}(),c=e,e.partial||(y.currentConstruct=e);if(e.name&&y.parser.constructs.disable.null.indexOf(e.name)>-1)return m();return e.tokenize.call(t?r({},y,t):y,v,p,m)(n)}}function p(t){return e(c,l),i}function m(e){return l.restore(),++u<a.length?h(a[u]):o}}}function C(e,t){e.resolveAll&&p.indexOf(e)<0&&p.push(e),e.resolve&&a(y.events,t,y.events.length-t,e.resolve(y.events.slice(t),y)),e.resolveTo&&(y.events=e.resolveTo(y.events,y))}function A(){f.line in h&&f.column<2&&(f.column=h[f.line],f.offset+=h[f.line]-1)}}},28180:function(e){"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},15644:function(e){"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},35478:function(e){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},15096:function(e,t,n){"use strict";var r=n(18892);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},2841:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e){return function(t){return e.test(r(t))}}},58280:function(e){"use strict";e.exports=function(e,t,n){for(var r,i=[],o=-1;++o<e.length;)(r=e[o].resolveAll)&&i.indexOf(r)<0&&(t=r(t,n),i.push(r));return t}},10596:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":r(n)}},23082:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e){for(var t,n,i,o=-1,a=[];++o<e.length;){if("string"===typeof(t=e[o]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(i)continue;n=" "}else n=r(t);i=-2===t,a.push(n)}return a.join("")}},75923:function(e,t,n){"use strict";var r=n(99198);e.exports=function(e){return r({},e)}},18892:function(e){"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"===typeof e[t]?e[t].length:1;return n}},12774:function(e){"use strict";e.exports=function(e,t){var n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;return r===o?n=[e[r].slice(i,a)]:(n=e.slice(r,o),i>-1&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a))),n}},84423:function(e,t,n){"use strict";var r=n(99198),i=n(56808),o=n(75923);function a(e,t){for(var n,r,o,a,s,u,c=e[t][1],l=e[t][2],d=t-1,f=[],h=c._tokenizer||l.parser[c.contentType](c.start),p=h.events,m=[],g={};c;){for(;e[++d][1]!==c;);f.push(d),c._tokenizer||(n=l.sliceStream(c),c.next||n.push(null),r&&h.defineSkip(c.start),c.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=!0),h.write(n),c.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=void 0)),r=c,c=c.next}for(c=r,o=p.length;o--;)"enter"===p[o][0]?a=!0:a&&p[o][1].type===p[o-1][1].type&&p[o][1].start.line!==p[o][1].end.line&&(v(p.slice(o+1,s)),c._tokenizer=c.next=void 0,c=c.previous,s=o+1);for(h.events=c._tokenizer=c.next=void 0,v(p.slice(0,s)),o=-1,u=0;++o<m.length;)g[u+m[o][0]]=u+m[o][1],u+=m[o][1]-m[o][0]-1;return g;function v(t){var n=f.pop();m.unshift([n,n+t.length-1]),i(e,n,2,t)}}e.exports=function(e){for(var t,n,s,u,c,l,d,f={},h=-1;++h<e.length;){for(;h in f;)h=f[h];if(t=e[h],h&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[h-1][1].type&&((s=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[s][1].type&&(s+=2),s<l.length&&"content"===l[s][1].type))for(;++s<l.length&&"content"!==l[s][1].type;)"chunkText"===l[s][1].type&&(l[s][1].isInFirstContentOfListItem=!0,s++);if("enter"===t[0])t[1].contentType&&(r(f,a(e,h)),h=f[h],d=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(s=h,n=void 0;s--&&("lineEnding"===(u=e[s])[1].type||"lineEndingBlank"===u[1].type);)"enter"===u[0]&&(n&&(e[n][1].type="lineEndingBlank"),u[1].type="lineEnding",n=s);n&&(t[1].end=o(e[n][1].start),(c=e.slice(n,h)).unshift(t),i(e,n,h-n+1,c))}}return!d}},39917:function(e,t,n){"use strict";var r=n(53848),i=n(83115);t.default=function(e){var t=e.src,n=e.sizes,i=e.unoptimized,u=void 0!==i&&i,l=e.priority,d=void 0!==l&&l,p=e.loading,g=e.lazyBoundary,v=void 0===g?"200px":g,y=e.className,b=e.quality,E=e.width,T=e.height,k=e.objectFit,C=e.objectPosition,A=e.onLoadingComplete,S=e.loader,O=void 0===S?w:S,D=e.placeholder,I=void 0===D?"empty":D,N=e.blurDataURL,R=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["src","sizes","unoptimized","priority","loading","lazyBoundary","className","quality","width","height","objectFit","objectPosition","onLoadingComplete","loader","placeholder","blurDataURL"]),M=n?"responsive":"intrinsic";"layout"in R&&(R.layout&&(M=R.layout),delete R.layout);var P="";if(function(e){return"object"===typeof e&&(m(e)||function(e){return void 0!==e.src}(e))}(t)){var L=m(t)?t.default:t;if(!L.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(L)));if(N=N||L.blurDataURL,P=L.src,(!M||"fill"!==M)&&(T=T||L.height,E=E||L.width,!L.height||!L.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(L)))}t="string"===typeof t?t:P;var F=_(E),j=_(T),H=_(b),B=!d&&("lazy"===p||"undefined"===typeof p);(t.startsWith("data:")||t.startsWith("blob:"))&&(u=!0,B=!1);h.has(t)&&(B=!1);0;var z,U,V,G=c.useIntersection({rootMargin:v,disabled:!B}),K=r(G,2),q=K[0],W=K[1],$=!B||W,Z={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:k,objectPosition:C},Y="blur"===I?{filter:"blur(20px)",backgroundSize:k||"cover",backgroundImage:'url("'.concat(N,'")'),backgroundPosition:C||"0% 0%"}:{};if("fill"===M)z={display:"block",overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",margin:0};else if("undefined"!==typeof F&&"undefined"!==typeof j){var X=j/F,Q=isNaN(X)?"100%":"".concat(100*X,"%");"responsive"===M?(z={display:"block",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},U={display:"block",boxSizing:"border-box",paddingTop:Q}):"intrinsic"===M?(z={display:"inline-block",maxWidth:"100%",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},U={boxSizing:"border-box",display:"block",maxWidth:"100%"},V='<svg width="'.concat(F,'" height="').concat(j,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')):"fixed"===M&&(z={overflow:"hidden",boxSizing:"border-box",display:"inline-block",position:"relative",width:F,height:j})}else 0;var J={src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",srcSet:void 0,sizes:void 0};$&&(J=x({src:t,unoptimized:u,layout:M,width:F,quality:H,sizes:n,loader:O}));var ee=t;return o.default.createElement("div",{style:z},U?o.default.createElement("div",{style:U},V?o.default.createElement("img",{style:{maxWidth:"100%",display:"block",margin:0,border:"none",padding:0},alt:"","aria-hidden":!0,src:"data:image/svg+xml;base64,".concat(s.toBase64(V))}):null):null,o.default.createElement("img",Object.assign({},R,J,{decoding:"async","data-nimg":M,className:y,ref:function(e){q(e),function(e,t,n,r,i){if(!e)return;var o=function(){e.src.startsWith("data:")||("decode"in e?e.decode():Promise.resolve()).catch((function(){})).then((function(){if("blur"===r&&(e.style.filter="none",e.style.backgroundSize="none",e.style.backgroundImage="none"),h.add(t),i){var n=e.naturalWidth,o=e.naturalHeight;i({naturalWidth:n,naturalHeight:o})}}))};e.complete?o():e.onload=o}(e,ee,0,I,A)},style:f({},Z,Y)})),o.default.createElement("noscript",null,o.default.createElement("img",Object.assign({},R,x({src:t,unoptimized:u,layout:M,width:F,quality:H,sizes:n,loader:O}),{decoding:"async","data-nimg":M,style:Z,className:y,loading:p||"lazy"}))),d?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+J.src+J.srcSet+J.sizes,rel:"preload",as:"image",href:J.srcSet?void 0:J.src,imagesrcset:J.srcSet,imagesizes:J.sizes})):null)};var o=d(n(67294)),a=d(n(70639)),s=n(28997),u=n(5809),c=n(7426);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){return e&&e.__esModule?e:{default:e}}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}var h=new Set;var p=new Map([["default",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality;0;return"".concat(t,"?url=").concat(encodeURIComponent(n),"&w=").concat(r,"&q=").concat(i||75)}],["imgix",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality,o=new URL("".concat(t).concat(k(n))),a=o.searchParams;a.set("auto",a.get("auto")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||r.toString()),i&&a.set("q",i.toString());return o.href}],["cloudinary",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality,o=["f_auto","c_limit","w_"+r,"q_"+(i||"auto")].join(",")+"/";return"".concat(t).concat(o).concat(k(n))}],["akamai",function(e){var t=e.root,n=e.src,r=e.width;return"".concat(t).concat(k(n),"?imwidth=").concat(r)}],["custom",function(e){var t=e.src;throw new Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function m(e){return void 0!==e.default}var g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"custom"}||u.imageConfigDefault,v=g.deviceSizes,y=g.imageSizes,b=g.loader,E=g.path,T=(g.domains,[].concat(i(v),i(y)));function x(e){var t=e.src,n=e.unoptimized,r=e.layout,o=e.width,a=e.quality,s=e.sizes,u=e.loader;if(n)return{src:t,srcSet:void 0,sizes:void 0};var c=function(e,t,n){if(n&&("fill"===t||"responsive"===t)){for(var r,o=/(^|\s)(1?\d?\d)vw/g,a=[];r=o.exec(n);r)a.push(parseInt(r[2]));if(a.length){var s=.01*Math.min.apply(Math,a);return{widths:T.filter((function(e){return e>=v[0]*s})),kind:"w"}}return{widths:T,kind:"w"}}return"number"!==typeof e||"fill"===t||"responsive"===t?{widths:v,kind:"w"}:{widths:i(new Set([e,2*e].map((function(e){return T.find((function(t){return t>=e}))||T[T.length-1]})))),kind:"x"}}(o,r,s),l=c.widths,d=c.kind,f=l.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:l.map((function(e,n){return"".concat(u({src:t,quality:a,width:e})," ").concat("w"===d?e:n+1).concat(d)})).join(", "),src:u({src:t,quality:a,width:l[f]})}}function _(e){return"number"===typeof e?e:"string"===typeof e?parseInt(e,10):void 0}function w(e){var t=p.get(b);if(t)return t(f({root:E},e));throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(u.VALID_LOADERS.join(", "),". Received: ").concat(b))}function k(e){return"/"===e[0]?e.slice(1):e}v.sort((function(e,t){return e-t})),T.sort((function(e,t){return e-t}))},7426:function(e,t,n){"use strict";var r=n(53848);Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,u=i.useRef(),c=i.useState(!1),l=r(c,2),d=l[0],f=l[1],h=i.useCallback((function(e){u.current&&(u.current(),u.current=void 0),n||d||e&&e.tagName&&(u.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=s.get(t);if(n)return n;var r=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return s.set(t,n={id:t,observer:i,elements:r}),n}(n),i=r.id,o=r.observer,a=r.elements;return a.set(e,t),o.observe(e),function(){a.delete(e),o.unobserve(e),0===a.size&&(o.disconnect(),s.delete(i))}}(e,(function(e){return e&&f(e)}),{rootMargin:t}))}),[n,t,d]);return i.useEffect((function(){if(!a&&!d){var e=o.requestIdleCallback((function(){return f(!0)}));return function(){return o.cancelIdleCallback(e)}}}),[d]),[h,d]};var i=n(67294),o=n(73447),a="undefined"!==typeof IntersectionObserver;var s=new Map},28997:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBase64=function(e){return window.btoa(e)}},15352:function(e,t,n){"use strict";function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(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 i(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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},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 i(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 o(e,t){var n;if(void 0===t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}}catch(d){o.e(d)}finally{o.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 o}})},76554:function(e,t,n){"use strict";function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(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 i(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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},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 i(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 o(e,t){var n;if(void 0===t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(d){o.e(d)}finally{o.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 o}})},65574:function(e,t,n){"use strict";function r(e,t,n){if(isNaN(t))return e;var r,i,o,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>=(i=(d+f)/2))?d=i:f=i,r=c,!(c=c[s=+a]))return r[s]=l,e;if(t===(o=+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>=(i=(d+f)/2))?d=i:f=i}while((s=+a)===(u=+(o>=i)));return r[u]=c,r[s]=l,e}function i(e,t,n){this.node=e,this.x0=t,this.x1=n}function o(e){return e[0]}function a(e,t){var n=new s(null==t?o: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 i=0;i<2;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(2)}):r.target[i]=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,i=e.length,o=new Array(i),a=1/0,s=-1/0;for(t=0;t<i;++t)isNaN(n=+this._x.call(null,e[t]))||(o[t]=n,n<a&&(a=n),n>s&&(s=n));if(a>s)return this;for(this.cover(a).cover(s),t=0;t<i;++t)r(this,o[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,i,o=n-t||1,a=this._root;t>e||e>=n;)switch(i=+(e<t),(r=new Array(2))[i]=a,a=r,o*=2,i){case 0:n=t+o;break;case 1:t=n-o}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,o,a,s,u=this._x0,c=this._x1,l=[],d=this._root;for(d&&l.push(new i(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||(o=a.x1)<u))if(d.length){var f=(r+o)/2;l.push(new i(d[1],f,o),new i(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 h=Math.abs(e-+this._x.call(null,d.data));h<t&&(t=h,u=e-h,c=e+h,n=d.data)}return n},c.remove=function(e){if(isNaN(o=+this._x.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l=this._root,d=this._x0,f=this._x1;if(!l)return this;if(l.length)for(;;){if((s=o>=(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(i=l.next)&&delete l.next,r?(i?r.next=i:delete r.next,this):t?(i?t[u]=i: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=i,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,o,a=[],s=this._root;for(s&&a.push(new i(s,this._x0,this._x1));t=a.pop();)if(!e(s=t.node,r=t.x0,o=t.x1)&&s.length){var u=(r+o)/2;(n=s[1])&&a.push(new i(n,u,o)),(n=s[0])&&a.push(new i(n,r,u))}return this},c.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._x1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.x1,c=(s+u)/2;(a=o[0])&&n.push(new i(a,s,c)),(a=o[1])&&n.push(new i(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}},54586: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 i(r)}function i(e){this._=e}function o(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,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function s(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=o(e+"",r),u=-1,c=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++u<c;)if(n=(e=i[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=i[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 i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},54625:function(e,t,n){"use strict";function r(e,t,n){var r,i=1;function o(){var o,a,s=r.length,u=0,c=0,l=0;for(o=0;o<s;++o)u+=(a=r[o]).x||0,c+=a.y||0,l+=a.z||0;for(u=(u/s-e)*i,c=(c/s-t)*i,l=(l/s-n)*i,o=0;o<s;++o)a=r[o],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),o.initialize=function(e){r=e},o.x=function(t){return arguments.length?(e=+t,o):e},o.y=function(e){return arguments.length?(t=+e,o):t},o.z=function(e){return arguments.length?(n=+e,o):n},o.strength=function(e){return arguments.length?(i=+e,o):i},o}n.d(t,{Z:function(){return r}})},12282:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},14286:function(e,t,n){"use strict";function r(e){return 1e-6*(e()-.5)}n.d(t,{Z:function(){return r}})},66252:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(12282),i=n(14286);function o(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=o,h=function(e){return 1/Math.min(c[e.source.index],c[e.target.index])},p=(0,r.Z)(30),m=1;function g(r){for(var o=0,a=e.length;o<m;++o)for(var s,c,f,h,p,g=0,v=0,y=0,b=0;g<a;++g)c=(s=e[g]).source,v=(f=s.target).x+f.vx-c.x-c.vx||(0,i.Z)(d),u>1&&(y=f.y+f.vy-c.y-c.vy||(0,i.Z)(d)),u>2&&(b=f.z+f.vz-c.z-c.vz||(0,i.Z)(d)),v*=h=((h=Math.sqrt(v*v+y*y+b*b))-n[g])/h*r*t[g],y*=h,b*=h,f.vx-=v*(p=l[g]),u>1&&(f.vy-=y*p),u>2&&(f.vz-=b*p),c.vx+=v*(p=1-p),u>1&&(c.vy+=y*p),u>2&&(c.vz+=b*p)}function v(){if(s){var r,i,o=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(o);r<u;++r)(i=e[r]).index=r,"object"!==typeof i.source&&(i.source=a(d,i.source)),"object"!==typeof i.target&&(i.target=a(d,i.target)),c[i.source.index]=(c[i.source.index]||0)+1,c[i.target.index]=(c[i.target.index]||0)+1;for(r=0,l=new Array(u);r<u;++r)i=e[r],l[r]=c[i.source.index]/(c[i.source.index]+c[i.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]=+h(e[n],n,e)}function b(){if(s)for(var t=0,r=e.length;t<r;++t)n[t]=+p(e[t],t,e)}return null==e&&(e=[]),g.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,v()},g.links=function(t){return arguments.length?(e=t,v(),g):e},g.id=function(e){return arguments.length?(f=e,g):f},g.iterations=function(e){return arguments.length?(m=+e,g):m},g.strength=function(e){return arguments.length?(h="function"===typeof e?e:(0,r.Z)(+e),y(),g):h},g.distance=function(e){return arguments.length?(p="function"===typeof e?e:(0,r.Z)(+e),b(),g):p},g}},3286:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(65574),i=n(29052),o=n(15145),a=n(12282),s=n(14286),u=n(55061);function c(){var e,t,n,c,l,d,f=(0,a.Z)(-30),h=1,p=1/0,m=.81;function g(a){var s,c=e.length,d=(1===t?(0,r.Z)(e,u.x):2===t?(0,i.Z)(e,u.x,u.y):3===t?(0,o.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 v(){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,i,o,a,s,u=0,c=0,l=e.length;if(l){for(i=o=a=s=0;s<l;++s)(n=e[s])&&(r=Math.abs(n.value))&&(u+=n.value,c+=r,i+=r*(n.x||0),o+=r*(n.y||0),a+=r*(n.z||0));u*=Math.sqrt(4/l),e.x=i/c,t>1&&(e.y=o/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,i,o,a){if(!e.value)return!0;var u=[i,o,a][t-1],f=e.x-n.x,g=t>1?e.y-n.y:0,v=t>2?e.z-n.z:0,y=u-r,b=f*f+g*g+v*v;if(y*y/m<b)return b<p&&(0===f&&(b+=(f=(0,s.Z)(c))*f),t>1&&0===g&&(b+=(g=(0,s.Z)(c))*g),t>2&&0===v&&(b+=(v=(0,s.Z)(c))*v),b<h&&(b=Math.sqrt(h*b)),n.vx+=f*e.value*l/b,t>1&&(n.vy+=g*e.value*l/b),t>2&&(n.vz+=v*e.value*l/b)),!0;if(!(e.length||b>=p)){(e.data!==n||e.next)&&(0===f&&(b+=(f=(0,s.Z)(c))*f),t>1&&0===g&&(b+=(g=(0,s.Z)(c))*g),t>2&&0===v&&(b+=(v=(0,s.Z)(c))*v),b<h&&(b=Math.sqrt(h*b)));do{e.data!==n&&(y=d[e.data.index]*l/b,n.vx+=f*y,t>1&&(n.vy+=g*y),t>2&&(n.vz+=v*y))}while(e=e.next)}}return g.initialize=function(n){e=n;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];c=i.find((function(e){return"function"===typeof e}))||Math.random,t=i.find((function(e){return[1,2,3].includes(e)}))||2,v()},g.strength=function(e){return arguments.length?(f="function"===typeof e?e:(0,a.Z)(+e),v(),g):f},g.distanceMin=function(e){return arguments.length?(h=e*e,g):Math.sqrt(h)},g.distanceMax=function(e){return arguments.length?(p=e*e,g):Math.sqrt(p)},g.theta=function(e){return arguments.length?(m=e*e,g):Math.sqrt(m)},g}},77729:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(12282);function i(e,t,n,i){var o,a,s,u,c=(0,r.Z)(.1);function l(e){for(var r=0,c=o.length;r<c;++r){var l=o[r],d=l.x-t||1e-6,f=(l.y||0)-n||1e-6,h=(l.z||0)-i||1e-6,p=Math.sqrt(d*d+f*f+h*h),m=(u[r]-p)*s[r]*e/p;l.vx+=d*m,a>1&&(l.vy+=f*m),a>2&&(l.vz+=h*m)}}function d(){if(o){var t,n=o.length;for(s=new Array(n),u=new Array(n),t=0;t<n;++t)u[t]=+e(o[t],t,o),s[t]=isNaN(u[t])?0:+c(o[t],t,o)}}return"function"!==typeof e&&(e=(0,r.Z)(+e)),null==t&&(t=0),null==n&&(n=0),null==i&&(i=0),l.initialize=function(e){o=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?(i=+e,l):i},l}},55061: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(54586),i=n(50867),o=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,h=.6,p=new Map,m=(0,i.HT)(y),g=(0,r.Z)("tick","end"),v=function(){var e=1;return function(){return(e=(1664525*e+1013904223)%o)/o}}();function y(){b(),g.call("tick",n),s<u&&(m.stop(),g.call("end",n))}function b(t){var r,i,o=e.length;void 0===t&&(t=1);for(var u=0;u<t;++u)for(s+=(f-s)*d,p.forEach((function(e){e(s)})),r=0;r<o;++r)null==(i=e[r]).fx?i.x+=i.vx*=h:(i.x=i.fx,i.vx=0),a>1&&(null==i.fy?i.y+=i.vy*=h:(i.y=i.fy,i.vy=0)),a>2&&(null==i.fz?i.z+=i.vz*=h:(i.z=i.fz,i.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 i=10*(a>2?Math.cbrt(.5+n):a>1?Math.sqrt(.5+n):n),o=n*c,s=n*l;1===a?t.x=i:2===a?(t.x=i*Math.cos(o),t.y=i*Math.sin(o)):(t.x=i*Math.sin(o)*Math.cos(s),t.y=i*Math.cos(o),t.z=i*Math.sin(o)*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(t){return t.initialize&&t.initialize(e,v,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))),p.forEach(T),n):a},nodes:function(t){return arguments.length?(e=t,E(),p.forEach(T),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?(h=1-e,n):1-h},randomSource:function(e){return arguments.length?(v=e,p.forEach(T),n):v},force:function(e,t){return arguments.length>1?(null==t?p.delete(e):p.set(e,T(t)),n):p.get(e)},find:function(){var t,n,r,i,o,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,h=0,p=e.length;for(f*=f,h=0;h<p;++h)(i=(t=c-(o=e[h]).x)*t+(n=l-(o.y||0))*n+(r=d-(o.z||0))*r)<f&&(s=o,f=i);return s},on:function(e,t){return arguments.length>1?(g.on(e,t),n):g.on(e)}}}},15145:function(e,t,n){"use strict";function r(e,t,n,r,i){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var o,a,s,u,c,l,d,f,h,p,m,g,v=e._root,y={data:i},b=e._x0,E=e._y0,T=e._z0,x=e._x1,_=e._y1,w=e._z1;if(!v)return e._root=y,e;for(;v.length;)if((f=t>=(a=(b+x)/2))?b=a:x=a,(h=n>=(s=(E+_)/2))?E=s:_=s,(p=r>=(u=(T+w)/2))?T=u:w=u,o=v,!(v=v[m=p<<2|h<<1|f]))return o[m]=y,e;if(c=+e._x.call(null,v.data),l=+e._y.call(null,v.data),d=+e._z.call(null,v.data),t===c&&n===l&&r===d)return y.next=v,o?o[m]=y:e._root=y,e;do{o=o?o[m]=new Array(8):e._root=new Array(8),(f=t>=(a=(b+x)/2))?b=a:x=a,(h=n>=(s=(E+_)/2))?E=s:_=s,(p=r>=(u=(T+w)/2))?T=u:w=u}while((m=p<<2|h<<1|f)===(g=(d>=u)<<2|(l>=s)<<1|c>=a));return o[g]=v,o[m]=y,e}function i(e,t,n,r,i,o,a){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=i,this.y1=o,this.z1=a}function o(e){return e[0]}function a(e){return e[1]}function s(e){return e[2]}function u(e,t,n,r){var i=new c(null==t?o:t,null==n?a:n,null==r?s:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function c(e,t,n,r,i,o,a,s,u){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=i,this._z0=o,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 i=0;i<8;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(8)}):r.target[i]=l(t));return n},d.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e),i=+this._z.call(null,e);return r(this.cover(t,n,i),t,n,i,e)},d.addAll=function(e){var t,n,i,o,a,s=e.length,u=new Array(s),c=new Array(s),l=new Array(s),d=1/0,f=1/0,h=1/0,p=-1/0,m=-1/0,g=-1/0;for(n=0;n<s;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||isNaN(a=+this._z.call(null,t))||(u[n]=i,c[n]=o,l[n]=a,i<d&&(d=i),i>p&&(p=i),o<f&&(f=o),o>m&&(m=o),a<h&&(h=a),a>g&&(g=a));if(d>p||f>m||h>g)return this;for(this.cover(d,f,h).cover(p,m,g),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,i=this._y0,o=this._z0,a=this._x1,s=this._y1,u=this._z1;if(isNaN(r))a=(r=Math.floor(e))+1,s=(i=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var c,l,d=a-r||1,f=this._root;r>e||e>=a||i>t||t>=s||o>n||n>=u;)switch(l=(n<o)<<2|(t<i)<<1|e<r,(c=new Array(8))[l]=f,f=c,d*=2,l){case 0:a=r+d,s=i+d,u=o+d;break;case 1:r=a-d,s=i+d,u=o+d;break;case 2:a=r+d,i=s-d,u=o+d;break;case 3:r=a-d,i=s-d,u=o+d;break;case 4:a=r+d,s=i+d,o=u-d;break;case 5:r=a-d,s=i+d,o=u-d;break;case 6:a=r+d,i=s-d,o=u-d;break;case 7:r=a-d,i=s-d,o=u-d}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=i,this._z0=o,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 o,a,s,u,c,l,d,f,h,p=this._x0,m=this._y0,g=this._z0,v=this._x1,y=this._y1,b=this._z1,E=[],T=this._root;for(T&&E.push(new i(T,p,m,g,v,y,b)),null==r?r=1/0:(p=e-r,m=t-r,g=n-r,v=e+r,y=t+r,b=n+r,r*=r);f=E.pop();)if(!(!(T=f.node)||(a=f.x0)>v||(s=f.y0)>y||(u=f.z0)>b||(c=f.x1)<p||(l=f.y1)<m||(d=f.z1)<g))if(T.length){var x=(a+c)/2,_=(s+l)/2,w=(u+d)/2;E.push(new i(T[7],x,_,w,c,l,d),new i(T[6],a,_,w,x,l,d),new i(T[5],x,s,w,c,_,d),new i(T[4],a,s,w,x,_,d),new i(T[3],x,_,u,c,l,w),new i(T[2],a,_,u,x,l,w),new i(T[1],x,s,u,c,_,w),new i(T[0],a,s,u,x,_,w)),(h=(n>=w)<<2|(t>=_)<<1|e>=x)&&(f=E[E.length-1],E[E.length-1]=E[E.length-1-h],E[E.length-1-h]=f)}else{var k=e-+this._x.call(null,T.data),C=t-+this._y.call(null,T.data),A=n-+this._z.call(null,T.data),S=k*k+C*C+A*A;if(S<r){var O=Math.sqrt(r=S);p=e-O,m=t-O,g=n-O,v=e+O,y=t+O,b=n+O,o=T.data}}return o},d.remove=function(e){if(isNaN(o=+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,i,o,a,s,u,c,l,d,f,h,p,m,g=this._root,v=this._x0,y=this._y0,b=this._z0,E=this._x1,T=this._y1,x=this._z1;if(!g)return this;if(g.length)for(;;){if((d=o>=(u=(v+E)/2))?v=u:E=u,(f=a>=(c=(y+T)/2))?y=c:T=c,(h=s>=(l=(b+x)/2))?b=l:x=l,t=g,!(g=g[p=h<<2|f<<1|d]))return this;if(!g.length)break;(t[p+1&7]||t[p+2&7]||t[p+3&7]||t[p+4&7]||t[p+5&7]||t[p+6&7]||t[p+7&7])&&(n=t,m=p)}for(;g.data!==e;)if(r=g,!(g=g.next))return this;return(i=g.next)&&delete g.next,r?(i?r.next=i:delete r.next,this):t?(i?t[p]=i:delete t[p],(g=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&g===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!g.length&&(n?n[m]=g:this._root=g),this):(this._root=i,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,o,a,s,u,c,l=[],d=this._root;for(d&&l.push(new i(d,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=l.pop();)if(!e(d=t.node,r=t.x0,o=t.y0,a=t.z0,s=t.x1,u=t.y1,c=t.z1)&&d.length){var f=(r+s)/2,h=(o+u)/2,p=(a+c)/2;(n=d[7])&&l.push(new i(n,f,h,p,s,u,c)),(n=d[6])&&l.push(new i(n,r,h,p,f,u,c)),(n=d[5])&&l.push(new i(n,f,o,p,s,h,c)),(n=d[4])&&l.push(new i(n,r,o,p,f,h,c)),(n=d[3])&&l.push(new i(n,f,h,a,s,u,p)),(n=d[2])&&l.push(new i(n,r,h,a,f,u,p)),(n=d[1])&&l.push(new i(n,f,o,a,s,h,p)),(n=d[0])&&l.push(new i(n,r,o,a,f,h,p))}return this},d.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.y0,c=t.z0,l=t.x1,d=t.y1,f=t.z1,h=(s+l)/2,p=(u+d)/2,m=(c+f)/2;(a=o[0])&&n.push(new i(a,s,u,c,h,p,m)),(a=o[1])&&n.push(new i(a,h,u,c,l,p,m)),(a=o[2])&&n.push(new i(a,s,p,c,h,d,m)),(a=o[3])&&n.push(new i(a,h,p,c,l,d,m)),(a=o[4])&&n.push(new i(a,s,u,m,h,p,f)),(a=o[5])&&n.push(new i(a,h,u,m,l,p,f)),(a=o[6])&&n.push(new i(a,s,p,m,h,d,f)),(a=o[7])&&n.push(new i(a,h,p,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}},29052:function(e,t,n){"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,u,c,l,d,f,h=e._root,p={data:r},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!h)return e._root=p,e;for(;h.length;)if((c=t>=(o=(m+v)/2))?m=o:v=o,(l=n>=(a=(g+y)/2))?g=a:y=a,i=h,!(h=h[d=l<<1|c]))return i[d]=p,e;if(s=+e._x.call(null,h.data),u=+e._y.call(null,h.data),t===s&&n===u)return p.next=h,i?i[d]=p:e._root=p,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(l=n>=(a=(g+y)/2))?g=a:y=a}while((d=l<<1|c)===(f=(u>=a)<<1|s>=o));return i[f]=h,i[d]=p,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function o(e){return e[0]}function a(e){return e[1]}function s(e,t,n){var r=new u(null==t?o:t,null==n?a:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function u(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,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 i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=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,i,o,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(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=i,u[n]=o,i<c&&(c=i),i>d&&(d=i),o<l&&(l=o),o>f&&(f=o));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,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a,s,u=i-n||1,c=this._root;n>e||e>=i||r>t||t>=o;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=c,c=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,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,o,a,s,u,c,l,d=this._x0,f=this._y0,h=this._x1,p=this._y1,m=[],g=this._root;for(g&&m.push(new i(g,d,f,h,p)),null==n?n=1/0:(d=e-n,f=t-n,h=e+n,p=t+n,n*=n);c=m.pop();)if(!(!(g=c.node)||(o=c.x0)>h||(a=c.y0)>p||(s=c.x1)<d||(u=c.y1)<f))if(g.length){var v=(o+s)/2,y=(a+u)/2;m.push(new i(g[3],v,y,s,u),new i(g[2],o,y,v,u),new i(g[1],v,a,s,y),new i(g[0],o,a,v,y)),(l=(t>=y)<<1|e>=v)&&(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,g.data),E=t-+this._y.call(null,g.data),T=b*b+E*E;if(T<n){var x=Math.sqrt(n=T);d=e-x,f=t-x,h=e+x,p=t+x,r=g.data}}return r},l.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l,d,f,h=this._root,p=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!h)return this;if(h.length)for(;;){if((c=o>=(s=(p+g)/2))?p=s:g=s,(l=a>=(u=(m+v)/2))?m=u:v=u,t=h,!(h=h[d=l<<1|c]))return this;if(!h.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[f]=h:this._root=h),this):(this._root=i,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,o,a,s,u=[],c=this._root;for(c&&u.push(new i(c,this._x0,this._y0,this._x1,this._y1));t=u.pop();)if(!e(c=t.node,r=t.x0,o=t.y0,a=t.x1,s=t.y1)&&c.length){var l=(r+a)/2,d=(o+s)/2;(n=c[3])&&u.push(new i(n,l,d,a,s)),(n=c[2])&&u.push(new i(n,r,d,l,s)),(n=c[1])&&u.push(new i(n,l,o,a,d)),(n=c[0])&&u.push(new i(n,r,o,l,d))}return this},l.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.y0,c=t.x1,l=t.y1,d=(s+c)/2,f=(u+l)/2;(a=o[0])&&n.push(new i(a,s,u,d,f)),(a=o[1])&&n.push(new i(a,d,u,c,f)),(a=o[2])&&n.push(new i(a,s,f,d,l)),(a=o[3])&&n.push(new i(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}},59735: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")},93704: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(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(o(this,e),t)}delete(e){return super.delete(a(this,e))}}Set;function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function o({_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(r),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="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){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,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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}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=[],i=d;function o(r){var o=e.get(r);if(void 0===o){if(i!==d)return i;e.set(r,o=t.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;var i,a=c(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;e.has(s)||e.set(s,t.push(s)-1)}}catch(u){a.e(u)}finally{a.f()}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return f(t,n).unknown(i)},u.apply(o,arguments),o}},50867:function(e,t,n){"use strict";n.d(t,{zO:function(){return h},B7:function(){return m},HT:function(){return g}});var r,i,o=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 h(){return c||(f(p),c=d.now()+l)}function p(){c=0}function m(){this._call=this._time=this._next=null}function g(e,t,n){var r=new m;return r.restart(e,t,n),r}function v(){c=(u=d.now())+l,o=a=0;try{!function(){h(),++o;for(var e,t=r;t;)(e=c-t._time)>=0&&t._call.call(void 0,e),t=t._next;--o}()}finally{o=0,function(){var e,t,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);i=e,b(o)}(),c=0}}function y(){var e=d.now(),t=e-u;t>1e3&&(l-=t,u=e)}function b(e){o||(a&&(a=clearTimeout(a)),e-c>24?(e<1/0&&(a=setTimeout(v,e-d.now()-l)),s&&(s=clearInterval(s))):(s||(u=d.now(),s=setInterval(y,1e3)),o=1,f(v)))}m.prototype=g.prototype={constructor:m,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?h():+n)+(null==t?0:+t),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=e,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},85062:function(){},5809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0;t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60}},9008:function(e,t,n){e.exports=n(70639)},25675:function(e,t,n){e.exports=n(39917)},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,i){if("function"!==typeof r)throw new Error("callback is expected to be a function");var o=t[n];return o||(o=t[n]=[]),o.push({callback:r,ctx:i}),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 i=t[n],o=0;o<i.length;++o)i[o].callback===r&&i.splice(o,1);return e},fire:function(n){var r,i=t[n];if(!i)return e;arguments.length>1&&(r=Array.prototype.splice.call(arguments,1));for(var o=0;o<i.length;++o){var a=i[o];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 o=(t&&t.createSimulator||n(45818))(t);if(Array.isArray(t))throw new Error("Physics settings is expected to be an object");var a=e.version>19?function(t){var n=e.getLinks(t);return n?1+n.size/3:1}: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=o.settings.springTransform||i;c=0,e.forEachNode((function(e){g(e.id),c+=1})),e.forEachLink(y),e.on("changed",m);var d=!1,f={step:function(){if(0===c)return h(!0),!0;var e=o.step();f.lastMove=e,f.fire("step");var t=e/c<=.01;return h(t),t},getNodePosition:function(e){return T(e).pos},setNodePosition:function(e){var t=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 o.getBBox()},forEachBody:p,pinNode:function(e,t){T(e.id).isPinned=!!t},isNodePinned:function(e){return T(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 i=e.hasLink(t,n);if(!i)return;r=i.id}return u[r]},getForceVectorLength:function(){var e=0,t=0;return p((function(n){e+=Math.abs(n.force.x),t+=Math.abs(n.force.y)})),Math.sqrt(e*e+t*t)},simulator:o,graph:e,lastMove:0};return r(f),f;function h(e){var t;d!==e&&(d=e,t=e,f.fire("stable",t))}function p(e){s.forEach(e)}function m(t){for(var n=0;n<t.length;++n){var r=t[n];"add"===r.changeType?(r.node&&g(r.node.id),r.link&&y(r.link)):"remove"===r.changeType&&(r.node&&v(r.node),r.link&&b(r.link))}c=e.getNodesCount()}function g(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 i=r.position;if(!i){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 i=e.links[r],o=i.fromId!==e.id?s.get(i.fromId):s.get(i.toId);o&&o.pos&&t.push(o)}return t}(r);i=o.getBestNewBodyPosition(a)}(n=o.addBodyAt(i)).id=t,s.set(t,n),E(t),function(e){return e&&(e.isPinned||e.data&&e.data.isPinned)}(r)&&(n.isPinned=!0)}}function v(e){var t=e.id,n=s.get(t);n&&(s.delete(t),o.removeBody(n))}function y(e){E(e.fromId),E(e.toId);var t=s.get(e.fromId),n=s.get(e.toId),r=o.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),i=e.getNode(t.toId);r&&E(r.id),i&&E(i.id),delete u[t.id],o.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 T(e){var t=s.get(e);return t||(g(e),t=s.get(e)),t}},e.exports.simulator=n(45818);var r=n(84245);function i(){}},15189:function(e,t,n){const r=n(16422);e.exports=function(e){return function(t,n){let i=n&&n.indent||0,o=n&&void 0!==n.join?n.join:"\n",a=Array(i+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(o)}}},30891:function(e,t,n){e.exports=function(e){let t=i(e);return new Function("bodies","settings","random",t)},e.exports.generateFunctionBody=i;const r=n(15189);function i(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 i(e,t){return`\n${a(e,t)}\n${o(e)}\nreturn {Body: Body, Vector: Vector};\n`}function o(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),i="";return t&&(i=`${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 ${i}\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=i(e,t),{Body:r}=new Function(n)();return r},e.exports.generateCreateBodyFunctionBody=i,e.exports.getVectorCode=a,e.exports.getBodyCode=o},36647:function(e,t,n){const r=n(15189);function i(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=i(e);return new Function("options",t)},e.exports.generateCreateDragForceFunctionBody=i},34079:function(e,t,n){const r=n(15189);function i(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=i(e);return new Function("options","random",t)},e.exports.generateCreateSpringForceFunctionBody=i},51763:function(e,t,n){const r=n(15189);function i(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=i(e);return new Function("bodies","timeStep","adaptiveTimeStepWeight",t)},e.exports.generateIntegratorFunctionBody=i},1584:function(e,t,n){const r=n(15189),i=n(16422);function o(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_${i(0)} - node.min_${i(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 o=0;o<e;++o)n.push(r+`if (${i(o)} > max_${i(o)}) {`),n.push(r+` quadIdx = quadIdx + ${Math.pow(2,o)};`),n.push(r+` min_${i(o)} = max_${i(o)};`),n.push(r+` max_${i(o)} = node.max_${i(o)};`),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=o(e);return new Function(t)()},e.exports.generateQuadTreeFunctionBody=o,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 h=c[e.dimensions];if(!h){var p=e.dimensions;h={Body:r(p,e.debug),createQuadTree:i(p),createBounds:o(p),createDragForce:a(p),createSpringForce:s(p),integrate:u(p)},c[p]=h}var m=h.Body,g=h.createQuadTree,v=h.createBounds,y=h.createDragForce,b=h.createSpringForce,E=h.integrate,T=n(78712).random(42),x=[],_=[],w=g(e,T),k=v(x,e,T),C=b(e,T),A=y(e),S=[],O=new Map,D=0;R("nbody",(function(){if(0===x.length)return;w.insertBodies(x);var e=x.length;for(;e--;){var t=x[e];t.isPinned||(t.reset(),w.updateBodyForce(t),A.update(t))}})),R("spring",(function(){var e=_.length;for(;e--;)C.update(_[e])}));var I={bodies:x,quadTree:w,springs:_,settings:e,addForce:R,removeForce:function(e){var t=S.indexOf(O.get(e));if(t<0)return;S.splice(t,1),O.delete(e)},getForces:function(){return O},step:function(){for(var t=0;t<S.length;++t)S[t](D);var n=E(x,e.timeStep,e.adaptiveTimeStepWeight);return D+=1,n},addBody:function(e){if(!e)throw new Error("Body is required");return x.push(e),e},addBodyAt:function(e){if(!e)throw new Error("Body position is required");var t=(e=>new m(e))(e);return x.push(t),t},removeBody:function(e){if(e){var t=x.indexOf(e);if(!(t<0))return x.splice(t,1),0===x.length&&k.reset(),!0}},addSpring:function(e,n,r,i){if(!e||!n)throw new Error("Cannot add null spring to force simulator");"number"!==typeof r&&(r=-1);var o=new t(e,n,r,i>=0?i:-1);return _.push(o),o},getTotalMovement:function(){return 0},removeSpring:function(e){if(e){var t=_.indexOf(e);return t>-1?(_.splice(t,1),!0):void 0}},getBestNewBodyPosition:function(e){return k.getBestNewPosition(e)},getBBox:N,getBoundingBox:N,invalidateBBox:function(){console.warn("invalidateBBox() is deprecated, bounds always recomputed on `getBBox()` call")},gravity:function(t){return void 0!==t?(e.gravity=t,w.options({gravity:t}),this):e.gravity},theta:function(t){return void 0!==t?(e.theta=t,w.options({theta:t}),this):e.theta},random:T};return function(e,t){for(var n in e)l(e,t,n)}(e,I),f(I),I;function N(){return k.update(),k.box}function R(e,t){if(O.has(e))throw new Error("Force "+e+" is already added");O.set(e,t),S.push(t)}};var r=n(6410),i=n(1584),o=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),i=c.hasOwnProperty(r);if(i||C(e,t)){i||(c[r]=0);var o="@"+ ++c[r];r=u(e+o,t+o)}return new s(e,t,n,r)}:function(e,t,n){var r=u(e,t);return new s(e,t,n,r)},f=[],h=A,p=A,m=A,g=A,v={addNode:E,addLink:function(e,t,r){m();var i=T(e)||E(e),o=T(t)||E(t),s=d(e,t,r);n.push(s),a(i,s),e!==t&&a(o,s);return h(s,"add"),g(),s},removeLink:k,removeNode:x,getNode:T,getNodeCount:_,getLinkCount:w,getLinksCount:w,getNodesCount:_,getLinks:function(e){var t=T(e);return t?t.links:null},forEachNode:D,forEachLinkedNode:function(e,n,r){var i=T(e);if(i&&i.links&&"function"===typeof n)return r?function(e,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(o.fromId===n&&r(t.get(o.toId),o))return!0}}(i.links,e,n):function(e,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=o.fromId===n?o.toId:o.fromId;if(r(t.get(a),o))return!0}}(i.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:g,clear:function(){m(),D((function(e){x(e.id)})),g()},hasLink:C,hasNode:T,getLink:C};return r(v),function(){var e=v.on;function t(){return v.beginUpdate=m=S,v.endUpdate=g=O,h=y,p=b,v.on=e,e.apply(v,arguments)}v.on=t}(),v;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=T(e);return r?(r.data=n,p(r,"update")):(r=new o(e,n),p(r,"add")),t.set(e,r),g(),r}function T(e){return t.get(e)}function x(e){var n=T(e);if(!n)return!1;m();var r=n.links;if(r){n.links=null;for(var i=0;i<r.length;++i)k(r[i])}return t.delete(e),p(n,"remove"),g(),!0}function _(){return t.size}function w(){return n.length}function k(e){if(!e)return!1;var t=i(e,n);if(t<0)return!1;m(),n.splice(t,1);var r=T(e.fromId),o=T(e.toId);return r&&(t=i(e,r.links))>=0&&r.links.splice(t,1),o&&(t=i(e,o.links))>=0&&o.links.splice(t,1),h(e,"remove"),g(),!0}function C(e,t){var n,r=T(e);if(!r||!r.links)return null;for(n=0;n<r.links.length;++n){var i=r.links[n];if(i.fromId===e&&i.toId===t)return i}return null}function A(){}function S(){l+=1}function O(){0===(l-=1)&&f.length>0&&(v.fire("changed",f),f.length=0)}function D(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 i(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 o(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 i=t.hasOwnProperty(r),o=typeof n[r];!i||typeof t[r]!==o?t[r]=n[r]:"object"===o&&(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 i(){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,i,o;for(n=e.length-1;n>0;--n)i=r.next(n+1),o=e[i],e[i]=e[n],e[n]=o,t(o);e.length&&t(e[0])},shuffle:function(){var t,n,i;for(t=e.length-1;t>0;--t)n=r.next(t+1),i=e[n],e[n]=e[t],e[t]=i;return e}}},n.prototype.next=function(e){return Math.floor(this.nextDouble()*e)},n.prototype.nextDouble=i,n.prototype.uniform=i,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)}},29033:function(e,t){"use strict";function n(e,t={}){return r(e)}function r(e){return e?Array.isArray(e)?i(e):"string"===typeof e.value?e.value:"children"in e?i(e.children):"":""}function i(e){return e.map(r).join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0,t.toString=n,t.default=n},89435:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";if((t=t||document.createElement("i")).innerHTML=r,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==r&&n}},31515:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152),i="html",o=["+//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=o.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===i&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==i)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:o;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),i=n(16152),o=i.TAG_NAMES,a=i.NAMESPACES,s=i.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"},h={[o.B]:!0,[o.BIG]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.CENTER]:!0,[o.CODE]:!0,[o.DD]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EM]:!0,[o.EMBED]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HR]:!0,[o.I]:!0,[o.IMG]:!0,[o.LI]:!0,[o.LISTING]:!0,[o.MENU]:!0,[o.META]:!0,[o.NOBR]:!0,[o.OL]:!0,[o.P]:!0,[o.PRE]:!0,[o.RUBY]:!0,[o.S]:!0,[o.SMALL]:!0,[o.SPAN]:!0,[o.STRONG]:!0,[o.STRIKE]:!0,[o.SUB]:!0,[o.SUP]:!0,[o.TABLE]:!0,[o.TT]:!0,[o.U]:!0,[o.UL]:!0,[o.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===o.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE)))||h[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===o.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===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.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),i=n(70050),o=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,i,e.opts),a.install(this.tokenizer,o)},_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),i=n(57930),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=o.install(e,i),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),i=n(23288),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t);const n=o.install(e.preprocessor,i,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),i=n(55763),o=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),o={};t.type===i.END_TAG_TOKEN&&r===t.tagName?(o.endTag=Object.assign({},n),o.endLine=n.endLine,o.endCol=n.endCol,o.endOffset=n.endOffset):(o.endLine=n.startLine,o.endCol=n.startCol,o.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,o);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===i.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),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=r&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[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),i=n(55763),o=n(57930);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,o),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===i.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(i.MODE).forEach((r=>{const o=i.MODE[r];n[o]=function(n){e.ctLoc=e._getCurrentLocation(),t[o].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,i=this.treeAdapter.getTagName(e),o=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)===i&&this.treeAdapter.getNamespaceURI(s)===o&&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),i=r.length,o=Object.create(null);for(let e=0;e<i;e++){const t=r[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(o[i.name]!==i.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),i=n(46519),o=n(12484),a=n(452),s=n(22232),u=n(81704),c=n(17296),l=n(8904),d=n(31515),f=n(88779),h=n(41734),p=n(54284),m=n(16152),g=m.TAG_NAMES,v=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c},E="hidden",T="INITIAL_MODE",x="BEFORE_HTML_MODE",_="BEFORE_HEAD_MODE",w="IN_HEAD_MODE",k="IN_HEAD_NO_SCRIPT_MODE",C="AFTER_HEAD_MODE",A="IN_BODY_MODE",S="TEXT_MODE",O="IN_TABLE_MODE",D="IN_TABLE_TEXT_MODE",I="IN_CAPTION_MODE",N="IN_COLUMN_GROUP_MODE",R="IN_TABLE_BODY_MODE",M="IN_ROW_MODE",P="IN_CELL_MODE",L="IN_SELECT_MODE",F="IN_SELECT_IN_TABLE_MODE",j="IN_TEMPLATE_MODE",H="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",z="AFTER_FRAMESET_MODE",U="AFTER_AFTER_BODY_MODE",V="AFTER_AFTER_FRAMESET_MODE",G={[g.TR]:M,[g.TBODY]:R,[g.THEAD]:R,[g.TFOOT]:R,[g.CAPTION]:I,[g.COLGROUP]:N,[g.TABLE]:O,[g.BODY]:A,[g.FRAMESET]:B},K={[g.CAPTION]:O,[g.COLGROUP]:O,[g.TBODY]:O,[g.TFOOT]:O,[g.THEAD]:O,[g.COL]:N,[g.TR]:R,[g.TD]:M,[g.TH]:M},q={[T]:{[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(h.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=x},[r.START_TAG_TOKEN]:ae,[r.END_TAG_TOKEN]:ae,[r.EOF_TOKEN]:ae},[x]:{[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===g.HTML?(e._insertElement(t,v.HTML),e.insertionMode=_):se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==g.HTML&&n!==g.HEAD&&n!==g.BODY&&n!==g.BR||se(e,t)},[r.EOF_TOKEN]:se},[_]:{[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===g.HTML?Ce(e,t):n===g.HEAD?(e._insertElement(t,v.HTML),e.headElement=e.openElements.current,e.insertionMode=w):ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?ue(e,t):e._err(h.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:ue},[w]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ce,[r.END_TAG_TOKEN]:le,[r.EOF_TOKEN]:de},[k]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?ce(e,t):n===g.NOSCRIPT?e._err(h.nestedNoscriptInHead):fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=w):n===g.BR?fe(e,t):e._err(h.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:fe},[C]:{[r.CHARACTER_TOKEN]:he,[r.NULL_CHARACTER_TOKEN]:he,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.BODY?(e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=A):n===g.FRAMESET?(e._insertElement(t,v.HTML),e.insertionMode=B):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(h.abandonedHeadElementChild),e.openElements.push(e.headElement),ce(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(h.misplacedStartTagForHeadElement):he(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?he(e,t):n===g.TEMPLATE?le(e,t):e._err(h.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:he},[A]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Ce,[r.END_TAG_TOKEN]:De,[r.EOF_TOKEN]:Ie},[S]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ie,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ee,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(h.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[O]:{[r.CHARACTER_TOKEN]:Ne,[r.NULL_CHARACTER_TOKEN]:Ne,[r.WHITESPACE_CHARACTER_TOKEN]:Ne,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Re,[r.END_TAG_TOKEN]:Me,[r.EOF_TOKEN]:Ie},[D]:{[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},[I]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[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===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O,e._processToken(t)):Ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&De(e,t)},[r.EOF_TOKEN]:Ie},[N]:{[r.CHARACTER_TOKEN]:Fe,[r.NULL_CHARACTER_TOKEN]:Fe,[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===g.HTML?Ce(e,t):n===g.COL?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?ce(e,t):Fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=O):n===g.TEMPLATE?le(e,t):n!==g.COL&&Fe(e,t)},[r.EOF_TOKEN]:Ie},[R]:{[r.CHARACTER_TOKEN]:Ne,[r.NULL_CHARACTER_TOKEN]:Ne,[r.WHITESPACE_CHARACTER_TOKEN]:Ne,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,v.HTML),e.insertionMode=M):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode=M,e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):Re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&Me(e,t)},[r.EOF_TOKEN]:Ie},[M]:{[r.CHARACTER_TOKEN]:Ne,[r.NULL_CHARACTER_TOKEN]:Ne,[r.WHITESPACE_CHARACTER_TOKEN]:Ne,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,v.HTML),e.insertionMode=P,e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):Re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&Me(e,t)},[r.EOF_TOKEN]:Ie},[P]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[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===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):Ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&De(e,t)},[r.EOF_TOKEN]:Ie},[L]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:je,[r.END_TAG_TOKEN]:He,[r.EOF_TOKEN]:Ie},[F]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[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===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):je(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):He(e,t)},[r.EOF_TOKEN]:Ie},[j]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)ce(e,t);else{const r=K[n]||A;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&le(e,t)},[r.EOF_TOKEN]:Be},[H]:{[r.CHARACTER_TOKEN]:ze,[r.NULL_CHARACTER_TOKEN]:ze,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[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===g.HTML?Ce(e,t):ze(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=U):ze(e,t)},[r.EOF_TOKEN]:oe},[B]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[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===g.HTML?Ce(e,t):n===g.FRAMESET?e._insertElement(t,v.HTML):n===g.FRAME?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode=z))},[r.EOF_TOKEN]:oe},[z]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[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===g.HTML?Ce(e,t):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode=V)},[r.EOF_TOKEN]:oe},[U]:{[r.CHARACTER_TOKEN]:Ue,[r.NULL_CHARACTER_TOKEN]:Ue,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Ce(e,t):Ue(e,t)},[r.END_TAG_TOKEN]:Ue,[r.EOF_TOKEN]:oe},[V]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:oe}};function W(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):Oe(e,t),n}function $(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Z(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Y(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Y(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),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===v.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Q(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function J(e,t){let n;for(let r=0;r<8&&(n=W(e,t),n);r++){const t=$(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=Z(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),X(e,i,r),Q(e,t,n)}}function ee(){}function te(e){e._err(h.misplacedDoctype)}function ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function re(e,t){e._appendCommentNode(t,e.document)}function ie(e,t){e._insertCharacters(t)}function oe(e){e.stopped=!0}function ae(e,t){e._err(h.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=x,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=_,e._processToken(t)}function ue(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode=w,e._processToken(t)}function ce(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,v.HTML),e.insertionMode=k):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=j,e._pushTmplInsertionMode(j)):n===g.HEAD?e._err(h.misplacedStartTagForHeadElement):de(e,t)}function le(e,t){const n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode=C):n===g.BODY||n===g.BR||n===g.HTML?de(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(h.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(h.endTagWithoutMatchingOpenElement)}function de(e,t){e.openElements.pop(),e.insertionMode=C,e._processToken(t)}function fe(e,t){const n=t.type===r.EOF_TOKEN?h.openElementsLeftAfterEof:h.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function he(e,t){e._insertFakeElement(g.BODY),e.insertionMode=A,e._processToken(t)}function pe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ge(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}function ve(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function be(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Te(e,t){e._appendElement(t,v.HTML),t.ackSelfClosing=!0}function xe(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function _e(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function we(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,v.HTML)}function ke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function Ce(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?ye(e,t):n===g.P?ge(e,t):n===g.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(J(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ke(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ge(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==g.H1&&n!==g.H2&&n!==g.H3&&n!==g.H4&&n!==g.H5&&n!==g.H6||e.openElements.pop(),e._insertElement(t,v.HTML)}(e,t):n===g.LI||n===g.DD||n===g.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],i=e.treeAdapter.getTagName(t);let o=null;if(n===g.LI&&i===g.LI?o=g.LI:n!==g.DD&&n!==g.DT||i!==g.DD&&i!==g.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(t))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n===g.EM||n===g.TT?ye(e,t):n===g.BR?Ee(e,t):n===g.HR?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===g.RB?we(e,t):n===g.RT||n===g.RP?function(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,v.HTML)}(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&ke(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ge(e,t):n===g.PRE?ve(e,t):n===g.BIG?ye(e,t):n===g.IMG||n===g.WBR?Ee(e,t):n===g.XMP?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SVG?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenSVGAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.SVG):e._insertElement(t,v.SVG),t.ackSelfClosing=!0}(e,t):n===g.RTC?we(e,t):n!==g.COL&&ke(e,t);break;case 4:n===g.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===g.BASE||n===g.LINK||n===g.META?ce(e,t):n===g.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===g.MAIN||n===g.MENU?ge(e,t):n===g.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?ye(e,t):n===g.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(J(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===g.AREA?Ee(e,t):n===g.MATH?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenMathMLAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.MATHML):e._insertElement(t,v.MATHML),t.ackSelfClosing=!0}(e,t):n===g.MENU?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n!==g.HEAD&&ke(e,t);break;case 5:n===g.STYLE||n===g.TITLE?ce(e,t):n===g.ASIDE?ge(e,t):n===g.SMALL?ye(e,t):n===g.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=O}(e,t):n===g.EMBED?Ee(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?Te(e,t):n===g.IMAGE?function(e,t){t.tagName=g.IMG,Ee(e,t)}(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&ke(e,t);break;case 6:n===g.SCRIPT?ce(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ge(e,t):n===g.BUTTON?function(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1}(e,t):n===g.STRIKE||n===g.STRONG?ye(e,t):n===g.APPLET||n===g.OBJECT?be(e,t):n===g.KEYGEN?Ee(e,t):n===g.SOURCE?Te(e,t):n===g.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode===O||e.insertionMode===I||e.insertionMode===R||e.insertionMode===M||e.insertionMode===P?e.insertionMode=F:e.insertionMode=L}(e,t):n===g.OPTION?_e(e,t):ke(e,t);break;case 7:n===g.BGSOUND?ce(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ge(e,t):n===g.LISTING?ve(e,t):n===g.MARQUEE?be(e,t):n===g.NOEMBED?xe(e,t):n!==g.CAPTION&&ke(e,t);break;case 8:n===g.BASEFONT?ce(e,t):n===g.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,v.HTML),e.insertionMode=B)}(e,t):n===g.FIELDSET?ge(e,t):n===g.TEXTAREA?function(e,t){e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=S}(e,t):n===g.TEMPLATE?ce(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?xe(e,t):ke(e,t):n===g.OPTGROUP?_e(e,t):n!==g.COLGROUP&&ke(e,t);break;case 9:n===g.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):ke(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ge(e,t):ke(e,t);break;default:ke(e,t)}}function Ae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Se(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Oe(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 De(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?J(e,t):n===g.P?function(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}(e):Oe(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?Ae(e,t):n===g.LI?function(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}(e):n===g.DD||n===g.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===g.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===g.EM||n===g.TT?J(e,t):Oe(e,t);break;case 3:n===g.BIG?J(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?Ae(e,t):Oe(e,t);break;case 4:n===g.BODY?function(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=H)}(e):n===g.HTML?function(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=H,e._processToken(t))}(e,t):n===g.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e):n===g.CODE||n===g.FONT||n===g.NOBR?J(e,t):n===g.MAIN||n===g.MENU?Ae(e,t):Oe(e,t);break;case 5:n===g.ASIDE?Ae(e,t):n===g.SMALL?J(e,t):Oe(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Ae(e,t):n===g.APPLET||n===g.OBJECT?Se(e,t):n===g.STRIKE||n===g.STRONG?J(e,t):Oe(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?Ae(e,t):n===g.MARQUEE?Se(e,t):Oe(e,t);break;case 8:n===g.FIELDSET?Ae(e,t):n===g.TEMPLATE?le(e,t):Oe(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Ae(e,t):Oe(e,t);break;default:Oe(e,t)}}function Ie(e,t){e.tmplInsertionModeStackTop>-1?Be(e,t):e.stopped=!0}function Ne(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D,e._processToken(t)):Pe(e,t)}function Re(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=R,e._processToken(t)}(e,t):Pe(e,t);break;case 3:n===g.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=N,e._processToken(t)}(e,t):Pe(e,t);break;case 4:n===g.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,v.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Pe(e,t);break;case 5:n===g.TABLE?function(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===g.STYLE?ce(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=R}(e,t):n===g.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E?e._appendElement(t,v.HTML):Pe(e,t),t.ackSelfClosing=!0}(e,t):Pe(e,t);break;case 6:n===g.SCRIPT?ce(e,t):Pe(e,t);break;case 7:n===g.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,v.HTML),e.insertionMode=I}(e,t):Pe(e,t);break;case 8:n===g.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=N}(e,t):n===g.TEMPLATE?ce(e,t):Pe(e,t);break;default:Pe(e,t)}}function Me(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?le(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Pe(e,t)}function Pe(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++)Pe(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Fe(e,t){e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=O,e._processToken(t))}function je(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.OPTION?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.OPTGROUP?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.INPUT||n===g.KEYGEN||n===g.TEXTAREA||n===g.SELECT?e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),n!==g.SELECT&&e._processToken(t)):n!==g.SCRIPT&&n!==g.TEMPLATE||ce(e,t)}function He(e,t){const n=t.tagName;if(n===g.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===g.OPTION&&n===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop()}else n===g.OPTION?e.openElements.currentTagName===g.OPTION&&e.openElements.pop():n===g.SELECT&&e.openElements.hasInSelectScope(g.SELECT)?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode()):n===g.TEMPLATE&&le(e,t)}function Be(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function ze(e,t){e.insertionMode=A,e._processToken(t)}function Ue(e,t){e.insertionMode=A,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(g.TEMPLATE,v.HTML,[]));const n=this.treeAdapter.createElement("documentmock",v.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(j),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=T,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new o(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)!==v.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,v.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=S}switchToPlaintextParsing(){this.insertionMode=S,this.originalInsertionMode=A,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)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===v.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.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,v.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,v.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(g.HTML,v.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===v.HTML)return!1;if(this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===v.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;const i=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!==g.MGLYPH&&e.tagName!==g.MALIGNMARK)&&!i||!this._isIntegrationPoint(t,v.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!i||!this._isIntegrationPoint(t,v.HTML))&&e.type!==r.EOF_TOKEN)}_processToken(e){q[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){q.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=p.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?ie(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)!==v.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===v.MATHML?f.adjustTokenMathMLAttrs(t):r===v.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)===v.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(h.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return f.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===o.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=M}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.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),i=G[r];if(i){this.insertionMode=i;break}if(!(t||r!==g.TD&&r!==g.TH)){this.insertionMode=P;break}if(!t&&r===g.HEAD){this.insertionMode=w;break}if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?C:_;break}if(t){this.insertionMode=A;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===g.TEMPLATE)break;if(n===g.TABLE)return void(this.insertionMode=F)}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===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.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),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===v.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.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),i=r.TAG_NAMES,o=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function u(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===o.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===o.MATHML;break;case 4:if(e===i.HTML)return t===o.HTML;if(e===i.DESC)return t===o.SVG;break;case 5:if(e===i.TABLE)return t===o.HTML;if(e===i.MTEXT)return t===o.MATHML;if(e===i.TITLE)return t===o.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===o.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===o.HTML;case 8:return e===i.TEMPLATE&&t===o.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===o.SVG;case 14:return e===i.ANNOTATION_XML&&t===o.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===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.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===o.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===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.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)===i.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===i.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===o.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===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===o.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===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.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===o.HTML)return!0;if(n===i.BUTTON&&r===o.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])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.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])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.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])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.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),i=n(54284),o=n(5482),a=n(41734),s=i.CODE_POINTS,u=i.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",h="SCRIPT_DATA_STATE",p="PLAINTEXT_STATE",m="TAG_OPEN_STATE",g="END_TAG_OPEN_STATE",v="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",E="RCDATA_END_TAG_NAME_STATE",T="RAWTEXT_LESS_THAN_SIGN_STATE",x="RAWTEXT_END_TAG_OPEN_STATE",_="RAWTEXT_END_TAG_NAME_STATE",w="SCRIPT_DATA_LESS_THAN_SIGN_STATE",k="SCRIPT_DATA_END_TAG_OPEN_STATE",C="SCRIPT_DATA_END_TAG_NAME_STATE",A="SCRIPT_DATA_ESCAPE_START_STATE",S="SCRIPT_DATA_ESCAPE_START_DASH_STATE",O="SCRIPT_DATA_ESCAPED_STATE",D="SCRIPT_DATA_ESCAPED_DASH_STATE",I="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",N="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",R="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",M="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",P="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",H="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",z="BEFORE_ATTRIBUTE_NAME_STATE",U="ATTRIBUTE_NAME_STATE",V="AFTER_ATTRIBUTE_NAME_STATE",G="BEFORE_ATTRIBUTE_VALUE_STATE",K="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",W="ATTRIBUTE_VALUE_UNQUOTED_STATE",$="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Z="SELF_CLOSING_START_TAG_STATE",Y="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",ie="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",oe="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",he="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",pe="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",ge="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ve="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",Te="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",xe="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",_e="BOGUS_DOCTYPE_STATE",we="CDATA_SECTION_STATE",ke="CDATA_SECTION_BRACKET_STATE",Ce="CDATA_SECTION_END_STATE",Ae="CHARACTER_REFERENCE_STATE",Se="NAMED_CHARACTER_REFERENCE_STATE",Oe="AMBIGUOS_AMPERSAND_STATE",De="NUMERIC_CHARACTER_REFERENCE_STATE",Ie="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ne="DECIMAL_CHARACTER_REFERENCE_START_STATE",Re="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Me="DECIMAL_CHARACTER_REFERENCE_STATE",Pe="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Le(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function Fe(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function je(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function He(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function Be(e){return He(e)||je(e)}function ze(e){return Be(e)||Fe(e)}function Ue(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 Ke(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function qe(e){return String.fromCharCode(Ge(e))}function We(e,t){const n=o[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,a=o[e];if(a<t)r=e+1;else{if(!(a>t))return o[e+n];i=e-1}}return-1}class $e{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:$e.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,i=!0;const o=e.length;let a,u=0,c=t;for(;u<o;u++){if(u>0&&(c=this._consume(),r++),c===s.EOF){i=!1;break}if(a=e[u],c!==a&&(n||c!==Ge(a))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_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:$e.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:$e.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:$e.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:$e.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:$e.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===$e.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===$e.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===$e.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=$e.CHARACTER_TOKEN;Le(e)?t=$e.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=$e.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,Ke(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken($e.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=We(0,e);for(this.tempBuff.push(e);r>-1;){const e=o[r],i=e<7;i&&1&e&&(t=2&e?[o[++r],o[++r]]:[o[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=i?4&e?We(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===K||this.returnState===q||this.returnState===W}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||ze(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=Ke(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=Ae):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=Ae):e===s.LESS_THAN_SIGN?this.state=y:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[f](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=T:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=w:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[m](e){e===s.EXCLAMATION_MARK?this.state=X:e===s.SOLIDUS?this.state=g:Be(e)?(this._createStartTagToken(),this._reconsumeInState(v)):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Y)):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(l))}[g](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(v)):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(Y))}[v](e){Le(e)?this.state=z:e===s.SOLIDUS?this.state=Z:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):je(e)?this.currentToken.tagName+=qe(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Ke(e)}[y](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChars("<"),this._reconsumeInState(d))}[b](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(E)):(this._emitChars("</"),this._reconsumeInState(d))}[E](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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)}}[T](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=x):(this._emitChars("<"),this._reconsumeInState(f))}[x](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(_)):(this._emitChars("</"),this._reconsumeInState(f))}[_](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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)}}[w](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=k):e===s.EXCLAMATION_MARK?(this.state=A,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(h))}[k](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(C)):(this._emitChars("</"),this._reconsumeInState(h))}[C](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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(h)}}[A](e){e===s.HYPHEN_MINUS?(this.state=S,this._emitChars("-")):this._reconsumeInState(h)}[S](e){e===s.HYPHEN_MINUS?(this.state=I,this._emitChars("-")):this._reconsumeInState(h)}[O](e){e===s.HYPHEN_MINUS?(this.state=D,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=N:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[D](e){e===s.HYPHEN_MINUS?(this.state=I,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=N:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[I](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state=N:e===s.GREATER_THAN_SIGN?(this.state=h,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[N](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=R):Be(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(P)):(this._emitChars("<"),this._reconsumeInState(O))}[R](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(M)):(this._emitChars("</"),this._reconsumeInState(O))}[M](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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(O)}}[P](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?L:O,this._emitCodePoint(e)):je(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):He(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(O)}[L](e){e===s.HYPHEN_MINUS?(this.state=F,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=H,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[F](e){e===s.HYPHEN_MINUS?(this.state=j,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=H,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[j](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state=H,this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state=h,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[H](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=B,this._emitChars("/")):this._reconsumeInState(L)}[B](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?O:L,this._emitCodePoint(e)):je(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):He(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(L)}[z](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=U):(this._createAttr(""),this._reconsumeInState(U)))}[U](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):je(e)?this.currentAttr.name+=qe(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=Ke(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=Ke(e)}[V](e){Le(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(U)))}[G](e){Le(e)||(e===s.QUOTATION_MARK?this.state=K:e===s.APOSTROPHE?this.state=q:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=l,this._emitCurrentToken()):this._reconsumeInState(W))}[K](e){e===s.QUOTATION_MARK?this.state=$:e===s.AMPERSAND?(this.returnState=K,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[q](e){e===s.APOSTROPHE?this.state=$:e===s.AMPERSAND?(this.returnState=q,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[W](e){Le(e)?this._leaveAttrValue(z):e===s.AMPERSAND?(this.returnState=W,this.state=Ae):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.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+=Ke(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[$](e){Le(e)?this._leaveAttrValue(z):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(z))}[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(z))}[Y](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+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=Ke(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=we:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Y):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Y))}[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=oe:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Ke(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=ie:this._reconsumeInState(oe)}[ie](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[oe](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=oe):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)||(je(e)?(this._createDoctypeToken(qe(e)),this.state=le):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(i.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(Ke(e)),this.state=le))}[le](e){Le(e)?this.state=de:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):je(e)?this.currentToken.name+=qe(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Ke(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(_e)))}[fe](e){Le(e)?this.state=he:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=pe):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(_e))}[he](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=pe):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(_e)))}[pe](e){e===s.QUOTATION_MARK?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.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+=Ke(e)}[me](e){e===s.APOSTROPHE?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.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+=Ke(e)}[ge](e){Le(e)?this.state=ve: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=Te):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(_e))}[ve](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=Te):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(_e)))}[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=Te):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(_e))}[be](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=Te):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(_e)))}[Ee](e){e===s.QUOTATION_MARK?this.state=xe:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.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+=Ke(e)}[Te](e){e===s.APOSTROPHE?this.state=xe:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.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+=Ke(e)}[xe](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(_e)))}[_e](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())}[we](e){e===s.RIGHT_SQUARE_BRACKET?this.state=ke:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[ke](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Ce:(this._emitChars("]"),this._reconsumeInState(we))}[Ce](e){e===s.GREATER_THAN_SIGN?this.state=l:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(we))}[Ae](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=De):ze(e)?this._reconsumeInState(Se):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Se](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=Oe}[Oe](e){ze(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Ke(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[De](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Ie):this._reconsumeInState(Ne)}[Ie](e){!function(e){return Fe(e)||Ue(e)||Ve(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Re)}[Ne](e){Fe(e)?this._reconsumeInState(Me):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Re](e){Ue(e)?this.charRefCode=16*this.charRefCode+e-55:Ve(e)?this.charRefCode=16*this.charRefCode+e-87:Fe(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Pe:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Pe))}[Me](e){Fe(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Pe:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Pe))}[Pe](){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(i.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(i.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)}}$e.CHARACTER_TOKEN="CHARACTER_TOKEN",$e.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",$e.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",$e.START_TAG_TOKEN="START_TAG_TOKEN",$e.END_TAG_TOKEN="END_TAG_TOKEN",$e.COMMENT_TOKEN="COMMENT_TOKEN",$e.DOCTYPE_TOKEN="DOCTYPE_TOKEN",$e.EOF_TOKEN="EOF_TOKEN",$e.HIBERNATION_TOKEN="HIBERNATION_TOKEN",$e.MODE={DATA:l,RCDATA:d,RAWTEXT:f,SCRIPT_DATA:h,PLAINTEXT:p},$e.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=$e},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),i=n(41734),o=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,o.EOF;return this._err(i.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,o.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===o.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===o.CARRIAGE_RETURN)return this.skipNextNewLine=!0,o.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===o.LINE_FEED||e===o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.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 i=function(e){return{nodeName:"#text",value:e,parentNode:null}},o=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 i=null;for(let o=0;o<e.childNodes.length;o++)if("#documentType"===e.childNodes[o].nodeName){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):o(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)}o(e,i(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,i(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 i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];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),i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)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<o;u=r[++n])m(u)||!E(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,i){if(y(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===r.noDeprecation)return e;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,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]),p(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&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=l(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;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)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(_(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(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return d(n)}var c,E="",w=!1,k=["{","}"];(h(n)&&(w=!0,k=["[","]"]),_(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(E=" "+RegExp.prototype.toString.call(n)),T(n)&&(E=" "+Date.prototype.toUTCString.call(n)),x(n)&&(E=" "+d(n)),0!==a.length||w&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)S(t,String(a))?o.push(f(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return f(e,n,r,s,t,w)})),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,k)):k[0]+E+k[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),S(r,i)||(a="["+i+"]"),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=o?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(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).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 h(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function m(e){return null===e}function g(e){return"number"===typeof e}function v(e){return"string"===typeof e}function y(e){return void 0===e}function b(e){return E(e)&&"[object RegExp]"===w(e)}function E(e){return"object"===typeof e&&null!==e}function T(e){return E(e)&&"[object Date]"===w(e)}function x(e){return E(e)&&("[object Error]"===w(e)||e instanceof Error)}function _(e){return"function"===typeof e}function w(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){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=h,t.isBoolean=p,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=E,t.isDate=T,t.isError=x,t.isFunction=_,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 C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",A(),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),i="win32"===r.platform,o=n(18059);function a(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}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]||"",i=c.exec(r);return[n,i[1],i[2],i[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 h(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}l.resolve=function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var s;if(i>=0?s=arguments[i]:e?(s=r.env["="+e])&&s.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(s=e+"\\"):s=r.cwd(),!o.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,p=u.tail;if((!c||!e||c.toLowerCase()===e.toLowerCase())&&(e||(e=c),n||(t=p+"\\"+t,n=d),e&&n))break}}return l&&(e=h(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},l.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,i=t.isAbsolute,o=t.tail,s=/[\\\/]$/.test(o);return(o=a(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&s&&(o+="\\"),r&&(n=h(n)),n+(i?"\\":"")+o},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(!o.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(),i=s(t.split("\\")),o=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(o.length,a.length),c=u,d=0;d<u;d++)if(o[d]!==a[d]){c=d;break}if(0==c)return t;var f=[];for(d=c;d<o.length;d++)f.push("..");return(f=f.concat(i.slice(c))).join("\\")},l._makeLong=function(e){if(!o.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(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!o.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(!o.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 p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,m={};function g(e){return p.exec(e).slice(1)}m.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:r.cwd();if(!o.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[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(!o.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("/")),i=Math.min(n.length,r.length),o=i,a=0;a<i;a++)if(n[a]!==r[a]){o=a;break}var u=[];for(a=o;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(o))).join("/")},m._makeLong=function(e){return e},m.dirname=function(e){var t=g(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=g(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},m.extname=function(e){return g(e)[3]},m.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!o.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(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=g(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=i?l:m,e.exports.posix=m,e.exports.win32=l},75:function(e,t,n){var r=n(34155);(function(){var t,n,i,o,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,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),s=1e9*r.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(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 i=e.charAt(0).toUpperCase()+e.slice(1),o=n.length;o>=0;o--){var a=n[o]+i;if(a in r)return a}return!1}},34155:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!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:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();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===o||!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 h(e,t){this.fun=e,this.array=t}function p(){}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 h(e,t)),1!==u.length||c||a(f)},h.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=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,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),i=n(98805),o=n(57643),a="data";e.exports=function(e,t){var n=r(t),f=t,h=o;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),h=i);return new h(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()}},97247:function(e,t,n){"use strict";var r=n(19940),i=n(8289),o=n(5812),a=n(94397),s=n(67716),u=n(61805);e.exports=r([o,i,a,s,u])},67716:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,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),i=n(17596),o=n(10855),a=r.boolean,s=r.overloadedBoolean,u=r.booleanish,c=r.number,l=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,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),i=n(17596),o=n(28740),a=r.boolean,s=r.number,u=r.spaceSeparated,c=r.commaSeparated,l=r.commaOrSpaceSeparated;e.exports=i({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:o,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),i=n(99607),o=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 o(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 i(d,f,a)}},98805:function(e,t,n){"use strict";var r=n(57643),i=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.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=o[l],(n&i[c])===i[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),i=n(99607);e.exports=function(e){var t,n,o=e.length,a=[],s=[],u=-1;for(;++u<o;)t=e[u],a.push(t.property),s.push(t.normal),n=t.space;return new i(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),i=n(10855);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,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),i=n(8289),o=n(5812),a=n(94397),s=n(67716),u=n(45789);e.exports=r([o,i,a,s,u])},54087:function(e,t,n){for(var r=n(75),i="undefined"===typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[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(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},29119:function(e,t,n){"use strict";n.d(t,{e:function(){return w}});var r=n(67294),i=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return i(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:o(o({position:"absolute",userSelect:"none"},a[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),u=n(53316),c=n.n(u),l=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},f={width:"auto",height:"auto"},h=c()((function(e,t,n){return Math.max(Math.min(e,n),t)})),p=c()((function(e,t){return Math.round(e/t)*t})),m=c()((function(e,t){return new RegExp(e,"i").test(t)})),g=function(e){return Boolean(e.touches&&e.touches.length)},v=c()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,i){return Math.abs(r-e)<Math.abs(t[n]-e)?i:n}),0),i=Math.abs(t[r]-e);return 0===n||i<n?t[r]:e})),y=c()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),b=c()((function(e){return"auto"===(e=e.toString())||y(e,"px")||y(e,"%")||y(e,"vh")||y(e,"vw")||y(e,"vmax")||y(e,"vmin")?e:e+"px"})),E=function(e,t,n,r){if(e&&"string"===typeof e){if(y(e,"px"))return Number(e.replace("px",""));if(y(e,"%"))return t*(Number(e.replace("%",""))/100);if(y(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(y(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},T=c()((function(e,t,n,r,i,o,a){return r=E(r,e.width,t,n),i=E(i,e.height,t,n),o=E(o,e.width,t,n),a=E(a,e.height,t,n),{maxWidth:"undefined"===typeof r?void 0:Number(r),maxHeight:"undefined"===typeof i?void 0:Number(i),minWidth:"undefined"===typeof o?void 0:Number(o),minHeight:"undefined"===typeof a?void 0:Number(a)}})),x=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],_="__resizable_base__",w=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(_):t.className+=_,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:"undefined"===typeof(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:"undefined"===typeof(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||f},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if("undefined"===typeof e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&y(e.propsSize[t].toString(),"%")){if(y(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return b(e.state[t])};return{width:t&&"undefined"!==typeof t.width&&!this.state.isResizing?b(t.width):n("width"),height:t&&"undefined"!==typeof t.height&&!this.state.isResizing?b(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||"undefined"!==typeof n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,i=this.props.boundsByDirection,o=this.state.direction,a=i&&m("left",o),s=i&&m("top",o);if("parent"===this.props.bounds){var u=this.parentNode;u&&(n=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,i=this.state,o=i.direction,a=i.original,s=this.props,u=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,l=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,h=c||0,p=l||0;return m("right",o)&&(d=a.width+(e-a.x)*r/n,u&&(f=(d-p)/this.ratio+h)),m("left",o)&&(d=a.width-(e-a.x)*r/n,u&&(f=(d-p)/this.ratio+h)),m("bottom",o)&&(f=a.height+(t-a.y)*r/n,u&&(d=(f-h)*this.ratio+p)),m("top",o)&&(f=a.height-(t-a.y)*r/n,u&&(d=(f-h)*this.ratio+p)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var i=this.props,o=i.lockAspectRatio,a=i.lockAspectRatioExtraHeight,s=i.lockAspectRatioExtraWidth,u="undefined"===typeof r.width?10:r.width,c="undefined"===typeof n.width||n.width<0?e:n.width,l="undefined"===typeof r.height?10:r.height,d="undefined"===typeof n.height||n.height<0?t:n.height,f=a||0,p=s||0;if(o){var m=(l-f)*this.ratio+p,g=(d-f)*this.ratio+p,v=(u-p)/this.ratio+f,y=(c-p)/this.ratio+f,b=Math.max(u,m),E=Math.min(c,g),T=Math.max(l,v),x=Math.min(d,y);e=h(e,b,E),t=h(t,T,x)}else e=h(e,u,c),t=h(t,l,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!==typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),i=r.left,o=r.top,a=r.right,s=r.bottom;this.resizableLeft=i,this.resizableRight=a,this.resizableTop=o,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,i=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,i=e.nativeEvent.clientY):e.nativeEvent&&g(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,i=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&("undefined"!==typeof this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),"undefined"!==typeof this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"===typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:r,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:d(d({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(u)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&g(e))try{e.preventDefault(),e.stopPropagation()}catch(D){}var t=this.props,n=t.maxWidth,r=t.maxHeight,i=t.minWidth,o=t.minHeight,a=g(e)?e.touches[0].clientX:e.clientX,s=g(e)?e.touches[0].clientY:e.clientY,u=this.state,c=u.direction,l=u.original,d=u.width,f=u.height,h=this.getParentSize(),m=T(h,this.window.innerWidth,this.window.innerHeight,n,r,i,o);n=m.maxWidth,r=m.maxHeight,i=m.minWidth,o=m.minHeight;var b=this.calculateNewSizeFromDirection(a,s),E=b.newHeight,x=b.newWidth,_=this.calculateNewMaxFromBoundary(n,r),w=this.calculateNewSizeFromAspectRatio(x,E,{width:_.maxWidth,height:_.maxHeight},{width:i,height:o});if(x=w.newWidth,E=w.newHeight,this.props.grid){var k=p(x,this.props.grid[0]),C=p(E,this.props.grid[1]),A=this.props.snapGap||0;x=0===A||Math.abs(k-x)<=A?k:x,E=0===A||Math.abs(C-E)<=A?C:E}this.props.snap&&this.props.snap.x&&(x=v(x,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=v(E,this.props.snap.y,this.props.snapGap));var S={width:x-l.width,height:E-l.height};if(d&&"string"===typeof d)if(y(d,"%"))x=x/h.width*100+"%";else if(y(d,"vw")){x=x/this.window.innerWidth*100+"vw"}else if(y(d,"vh")){x=x/this.window.innerHeight*100+"vh"}if(f&&"string"===typeof f)if(y(f,"%"))E=E/h.height*100+"%";else if(y(f,"vw")){E=E/this.window.innerWidth*100+"vw"}else if(y(f,"vh")){E=E/this.window.innerHeight*100+"vh"}var O={width:this.createSizeForCssProperty(x,"width"),height:this.createSizeForCssProperty(E,"height")};"row"===this.flexDir?O.flexBasis=O.width:"column"===this.flexDir&&(O.flexBasis=O.height),this.setState(O),this.props.onResize&&this.props.onResize(e,c,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,i=t.original;if(n&&this.resizable){var o={width:this.size.width-i.width,height:this.size.height-i.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:d(d({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,i=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,u=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(s,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:i&&i[t],className:o&&o[t]},c&&c[t]?c[t]:null):null}));return r.createElement("div",{className:u,style:a},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==x.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=d(d(d({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return r.createElement(i,d({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent)},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"]),i=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))};var i,o=n(67294),a=(i=o)&&i.__esModule?i:{default:i};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},i=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}}(),o=n(54087),a=v(o),s=v(n(53879)),u=n(67294),c=v(n(45697)),l=v(n(77928)),d=v(n(66445)),f=v(n(18309)),h=v(n(51608)),p=v(n(43840)),m=n(58285),g=n(33485);function v(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,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=b(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));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),i(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,o.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,i=void 0===r?0:r,o=e.scrollWidth,a=void 0===o?0:o,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:i/(u-f)||0,scrollLeft:n,scrollTop:i,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,i=r.scrollWidth,o=r.clientWidth,a=(0,h.default)(this.trackHorizontal),s=Math.ceil(o/i*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,i=r.scrollHeight,o=r.clientHeight,a=(0,p.default)(this.trackVertical),s=Math.ceil(o/i*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,h.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,p.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,i=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),i.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,i=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),i.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,i=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(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,i=this.getThumbHorizontalWidth(),o=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),o=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,i=t.getBoundingClientRect().left;this.prevPageX=r-(n-i)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,i=t.getBoundingClientRect().top;this.prevPageY=r-(n-i)}},{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,i=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(i)}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,i=this.getValues();if((0,d.default)()){var o=i.scrollLeft,a=i.clientWidth,u=i.scrollWidth,c=(0,h.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),f={width:l,transform:"translateX("+o/(u-a)*(c-l)+"px)"},m=i.scrollTop,g=i.clientHeight,v=i.scrollHeight,y=(0,p.default)(this.trackVertical),b=this.getThumbVerticalHeight(),E={height:b,transform:"translateY("+m/(v-g)*(y-b)+"px)"};if(r){var T={visibility:u>a?"visible":"hidden"},x={visibility:v>g?"visible":"hidden"};(0,s.default)(this.trackHorizontal,T),(0,s.default)(this.trackVertical,x)}(0,s.default)(this.thumbHorizontal,f),(0,s.default)(this.thumbVertical,E)}n&&n(i),"function"===typeof e&&e(i)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,i=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),o=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,f=n.tagName,h=(n.hideTracksWhenNotNeeded,n.autoHide),p=(n.autoHideTimeout,n.autoHideDuration),g=(n.thumbSize,n.thumbMinSize,n.universal),v=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,E=n.style,T=n.children,x=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"]),_=this.state.didMountUniversal,w=r({},m.containerStyleDefault,v&&r({},m.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),E),k=r({},m.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},v&&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}),v&&g&&!_&&{minHeight:y,maxHeight:b},g&&!_&&m.viewStyleUniversalInitial),C={transition:"opacity "+p+"ms",opacity:0},A=r({},m.trackHorizontalStyleDefault,h&&C,(!t||g&&!_)&&{display:"none"}),S=r({},m.trackVerticalStyleDefault,h&&C,(!t||g&&!_)&&{display:"none"});return(0,u.createElement)(f,r({},x,{style:w,ref:function(t){e.container=t}}),[(0,u.cloneElement)(i({style:k}),{key:"view",ref:function(t){e.view=t}},T),(0,u.cloneElement)(o({style:A}),{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:S}),{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:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.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,i=n(36164),o=(r=i)&&r.__esModule?r:{default:r};t.ZP=o.default,t.$B=o.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,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}},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,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}},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,o.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,i=n(53879),o=(r=i)&&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}},24878:function(e,n,r){"use strict";r.d(n,{f$:function(){return Uo},s6:function(){return zo}});var i=r(67294);function o(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 o({},t[0],t[1])})))))},d=r(23405),f=r.n(d);function h(e){return(h="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 p(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||g(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 v(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(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 g(e,t){if(e){if("string"===typeof e)return v(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)?v(e,t):void 0}}function v(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"===h(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,o=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,g=void 0===d?[]:d;return(0,i.forwardRef)((function(t,n){var r=(0,i.useRef)(),a=p((0,i.useState)({}),2),u=a[0],d=a[1];(0,i.useEffect)((function(){return d(t)}));var h=(0,i.useMemo)((function(){var n=f()(g.filter((function(e){return t.hasOwnProperty(e)})).map((function(e){return[e,t[e]]})));return e(n)}),[]);(0,i.useLayoutEffect)((function(){h(s(r.current))}),[]),(0,i.useEffect)((function(){return h._destructor instanceof Function?h._destructor:void 0}),[]);var v=(0,i.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 h[e]instanceof Function?h[e].apply(h,n):void 0}),[h]),y=l(t,[].concat(m(c),m(g)));return Object.keys(y).filter((function(e){return u[e]!==t[e]})).forEach((function(e){return v(e,t[e])})),(0,i.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 v.apply(void 0,[e].concat(n))}]})))})),i.createElement(o,{ref:r})}))},b=(r(75569),r(60401),r(31359),r(44858)),E=r(92539);function T(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 k(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)||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 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(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 S=(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:x(x({},Object.assign.apply(Object,[{}].concat(k(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return _({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=n[e].apply(n,i);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,i,o,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(i=document.createElement("a-text")),i.setAttribute("position","0 -0.3 -1"),i.setAttribute("width",2),i.setAttribute("align","center"),i.setAttribute("color","lavender"),i.setAttribute("value",""),r.appendChild(o=document.createElement("a-text")),o.setAttribute("position","0 -0.4 -1"),o.setAttribute("width",1.3),o.setAttribute("align","center"),o.setAttribute("color","lavender"),o.setAttribute("value",""),t.raycasterEls=[],s.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor","rayOrigin: mouse; mouseCursorStylesEnabled: true"),a.setAttribute("raycaster","objects: [forcegraph]; interval: 100"),t.raycasterEls.push(a),["left","right"].forEach((function(e){var r;n.appendChild(r=document.createElement("a-entity")),r.setAttribute("laser-controls","hand: ".concat(e)),r.setAttribute("raycaster","objects: [forcegraph]; interval: 100; lineColor: steelblue; lineOpacity: 0.85"),t.raycasterEls.push(r)})),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,k(["node","link"].map((function(e){var n={node:"Node",link:"Link"}[e];return _({},"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)||"";i.setAttribute("value",s),o.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=["onNodeHover","onLinkHover","onNodeClick","onLinkClick"].some((function(t){return e[t]}));e.raycasterEls.forEach((function(e){return e.setAttribute("raycaster",n?"objects: [forcegraph]; interval: 100":"objects: __none__")}));var r=["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"],i=Object.assign.apply(Object,[{}].concat(k(Object.entries(e).filter((function(e){var n=w(e,2),i=n[0],o=n[1];return t.hasOwnProperty(i)&&-1!==r.indexOf(i)&&void 0!==o&&null!==o})).map((function(e){var t=w(e,2);return _({},t[0],t[1])}))),k(Object.entries(e.graphData).map((function(e){var t=w(e,2);return _({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",i)}}),O=r(45697),D=r.n(O);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 N(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){R(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 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 M(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 P(e){return function(e){if(Array.isArray(e))return F(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 F(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)?F(e,t):void 0}}function F(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 j=(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:N(N({},Object.assign.apply(Object,[{}].concat(P(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return R({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=n[e].apply(n,i);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,i=void 0===r?{preset:"hiro"}:r;e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container);var o=document.createElement("a-scene");o.setAttribute("embedded",""),o.setAttribute("arjs","debugUIEnabled: false;");var a,s=document.createElement("a-marker");Object.entries(i).forEach((function(e){var t=M(e,2),n=t[0],r=t[1];return s.setAttribute(n,r)})),o.appendChild(s),o.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",""),o.appendChild(u),t.container.appendChild(o)},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",P(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(P(Object.entries(e).filter((function(e){var r=M(e,2),i=r[0],o=r[1];return t.hasOwnProperty(i)&&-1!==n.indexOf(i)&&void 0!==o&&null!==o})).map((function(e){var t=M(e,2);return R({},t[0],t[1])}))),P(Object.entries(e.graphData).map((function(e){var t=M(e,2);return R({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",r)}}),H=r(99477);const B=new H.JOQ,z=new H.iMs,U=new H.FM8,V=new H.Pa4,G=new H.Pa4,K=new H.Pa4,q=new H.yGw;class W extends H.pBf{constructor(e,t,n){super(),n.style.touchAction="none";let r=null,i=null;const o=[],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),z.setFromCamera(U,t),r)return z.ray.intersectPlane(B,G)&&r.position.copy(G.sub(V).applyMatrix4(q)),void a.dispatchEvent({type:"drag",object:r});if("mouse"===s.pointerType||"pen"===s.pointerType)if(o.length=0,z.setFromCamera(U,t),z.intersectObjects(e,!0,o),o.length>0){const e=o[0].object;B.setFromNormalAndCoplanarPoint(t.getWorldDirection(B.normal),K.setFromMatrixPosition(e.matrixWorld)),i!==e&&null!==i&&(a.dispatchEvent({type:"hoveroff",object:i}),n.style.cursor="auto",i=null),i!==e&&(a.dispatchEvent({type:"hoveron",object:e}),n.style.cursor="pointer",i=e)}else null!==i&&(a.dispatchEvent({type:"hoveroff",object:i}),n.style.cursor="auto",i=null)}}function l(i){!1!==a.enabled&&(f(i),o.length=0,z.setFromCamera(U,t),z.intersectObjects(e,!0,o),o.length>0&&(r=!0===a.transformGroup?e[0]:o[0].object,B.setFromNormalAndCoplanarPoint(t.getWorldDirection(B.normal),K.setFromMatrixPosition(r.matrixWorld)),z.ray.intersectPlane(B,G)&&(q.copy(r.parent.matrixWorld).invert(),V.copy(G).sub(K.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=i?"pointer":"auto")}function f(e){const t=n.getBoundingClientRect();U.x=(e.clientX-t.left)/t.width*2-1,U.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},this.getRaycaster=function(){return z}}}var $=r(81398);const Z={type:"change"},Y={type:"start"},X={type:"end"};class Q extends H.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,i=0,o=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:H.RsA.ROTATE,MIDDLE:H.RsA.DOLLY,RIGHT:H.RsA.PAN},this.target=new H.Pa4;const c=1e-6,l=new H.Pa4;let d=1,f=r,h=r,p=0,m=0,g=0;const v=new H.Pa4,y=new H.FM8,b=new H.FM8,E=new H.Pa4,T=new H.FM8,x=new H.FM8,_=new H.FM8,w=new H.FM8,k=[],C={};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 A=function(){const e=new H.FM8;return function(t,r){return e.set((t-n.screen.left)/n.screen.width,(r-n.screen.top)/n.screen.height),e}}(),S=function(){const e=new H.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 O(e){!1!==n.enabled&&(0===k.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",D),n.domElement.addEventListener("pointerup",I)),function(e){k.push(e)}(e),"touch"===e.pointerType?function(e){switch(j(e),k.length){case 1:f=s,b.copy(S(k[0].pageX,k[0].pageY)),y.copy(b);break;default:f=u;const e=k[0].pageX-k[1].pageX,t=k[0].pageY-k[1].pageY;m=p=Math.sqrt(e*e+t*t);const n=(k[0].pageX+k[1].pageX)/2,r=(k[0].pageY+k[1].pageY)/2;_.copy(A(n,r)),w.copy(_)}n.dispatchEvent(Y)}(e):function(e){if(f===r)switch(e.button){case n.mouseButtons.LEFT:f=i;break;case n.mouseButtons.MIDDLE:f=o;break;case n.mouseButtons.RIGHT:f=a;break;default:f=r}const t=h!==r?h:f;t!==i||n.noRotate?t!==o||n.noZoom?t!==a||n.noPan||(_.copy(A(e.pageX,e.pageY)),w.copy(_)):(T.copy(A(e.pageX,e.pageY)),x.copy(T)):(b.copy(S(e.pageX,e.pageY)),y.copy(b));n.dispatchEvent(Y)}(e))}function D(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(j(e),k.length){case 1:y.copy(b),b.copy(S(e.pageX,e.pageY));break;default:const t=function(e){const t=e.pointerId===k[0].pointerId?k[1]:k[0];return C[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;m=Math.sqrt(n*n+r*r);const i=(e.pageX+t.x)/2,o=(e.pageY+t.y)/2;w.copy(A(i,o))}}(e):function(e){const t=h!==r?h:f;t!==i||n.noRotate?t!==o||n.noZoom?t!==a||n.noPan||w.copy(A(e.pageX,e.pageY)):x.copy(A(e.pageX,e.pageY)):(y.copy(b),b.copy(S(e.pageX,e.pageY)))}(e))}function I(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(k.length){case 0:f=r;break;case 1:f=s,b.copy(S(e.pageX,e.pageY)),y.copy(b);break;case 2:f=u,b.copy(S(e.pageX-y.pageX,e.pageY-y.pageY)),y.copy(b)}n.dispatchEvent(X)}(e):(f=r,n.dispatchEvent(X)),F(e),0===k.length&&(n.domElement.releasePointerCapture(e.pointerId),n.domElement.removeEventListener("pointermove",D),n.domElement.removeEventListener("pointerup",I)))}function N(e){F(e)}function R(e){!1!==n.enabled&&(window.removeEventListener("keydown",R),h===r&&(e.code!==n.keys[i]||n.noRotate?e.code!==n.keys[o]||n.noZoom?e.code!==n.keys[a]||n.noPan||(h=a):h=o:h=i))}function M(){!1!==n.enabled&&(h=r,window.addEventListener("keydown",R))}function P(e){if(!1!==n.enabled&&!0!==n.noZoom){switch(e.preventDefault(),e.deltaMode){case 2:T.y-=.025*e.deltaY;break;case 1:T.y-=.01*e.deltaY;break;default:T.y-=25e-5*e.deltaY}n.dispatchEvent(Y),n.dispatchEvent(X)}}function L(e){!1!==n.enabled&&e.preventDefault()}function F(e){delete C[e.pointerId];for(let t=0;t<k.length;t++)if(k[t].pointerId==e.pointerId)return void k.splice(t,1)}function j(e){let t=C[e.pointerId];void 0===t&&(t=new H.FM8,C[e.pointerId]=t),t.set(e.pageX,e.pageY)}this.rotateCamera=function(){const e=new H.Pa4,t=new H._fP,r=new H.Pa4,i=new H.Pa4,o=new H.Pa4,a=new H.Pa4;return function(){a.set(b.x-y.x,b.y-y.y,0);let s=a.length();s?(v.copy(n.object.position).sub(n.target),r.copy(v).normalize(),i.copy(n.object.up).normalize(),o.crossVectors(i,r).normalize(),i.setLength(b.y-y.y),o.setLength(b.x-y.x),a.copy(i.add(o)),e.crossVectors(a,v).normalize(),s*=n.rotateSpeed,t.setFromAxisAngle(e,s),v.applyQuaternion(t),n.object.up.applyQuaternion(t),E.copy(e),g=s):!n.staticMoving&&g&&(g*=Math.sqrt(1-n.dynamicDampingFactor),v.copy(n.object.position).sub(n.target),t.setFromAxisAngle(E,g),v.applyQuaternion(t),n.object.up.applyQuaternion(t)),y.copy(b)}}(),this.zoomCamera=function(){let e;f===u?(e=p/m,p=m,n.object.isPerspectiveCamera?v.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom/=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(e=1+(x.y-T.y)*n.zoomSpeed,1!==e&&e>0&&(n.object.isPerspectiveCamera?v.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom/=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),n.staticMoving?T.copy(x):T.y+=(x.y-T.y)*this.dynamicDampingFactor)},this.panCamera=function(){const e=new H.FM8,t=new H.Pa4,r=new H.Pa4;return function(){if(e.copy(w).sub(_),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(v.length()*n.panSpeed),r.copy(v).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?_.copy(w):_.add(e.subVectors(w,_).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(v.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,v.setLength(n.maxDistance)),T.copy(x)),v.lengthSq()<n.minDistance*n.minDistance&&(n.object.position.addVectors(n.target,v.setLength(n.minDistance)),T.copy(x)))},this.update=function(){v.subVectors(n.object.position,n.target),n.noRotate||n.rotateCamera(),n.noZoom||n.zoomCamera(),n.noPan||n.panCamera(),n.object.position.addVectors(n.target,v),n.object.isPerspectiveCamera?(n.checkDistances(),n.object.lookAt(n.target),l.distanceToSquared(n.object.position)>c&&(n.dispatchEvent(Z),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(Z),l.copy(n.object.position),d=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){f=r,h=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(),v.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",L),n.domElement.removeEventListener("pointerdown",O),n.domElement.removeEventListener("pointercancel",N),n.domElement.removeEventListener("wheel",P),n.domElement.removeEventListener("pointermove",D),n.domElement.removeEventListener("pointerup",I),window.removeEventListener("keydown",R),window.removeEventListener("keyup",M)},this.domElement.addEventListener("contextmenu",L),this.domElement.addEventListener("pointerdown",O),this.domElement.addEventListener("pointercancel",N),this.domElement.addEventListener("wheel",P,{passive:!1}),window.addEventListener("keydown",R),window.addEventListener("keyup",M),this.handleResize(),this.update()}}const J={type:"change"},ee={type:"start"},te={type:"end"};class ne extends H.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 H.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:H.RsA.ROTATE,MIDDLE:H.RsA.DOLLY,RIGHT:H.RsA.PAN},this.touches={ONE:H.QmN.ROTATE,TWO:H.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.getDistance=function(){return this.object.position.distanceTo(this.target)},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(),i=r.NONE},this.update=function(){const t=new H.Pa4,d=(new H._fP).setFromUnitVectors(e.up,new H.Pa4(0,1,0)),f=d.clone().invert(),h=new H.Pa4,p=new H._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&&i===r.NONE&&_(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 g=n.minAzimuthAngle,v=n.maxAzimuthAngle;return isFinite(g)&&isFinite(v)&&(g<-Math.PI?g+=m:g>Math.PI&&(g-=m),v<-Math.PI?v+=m:v>Math.PI&&(v-=m),a.theta=g<=v?Math.max(g,Math.min(v,a.theta)):a.theta>(g+v)/2?Math.max(g,a.theta):Math.min(v,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||h.distanceToSquared(n.object.position)>o||8*(1-p.dot(n.object.quaternion))>o)&&(n.dispatchEvent(J),h.copy(n.object.position),p.copy(n.object.quaternion),l=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",K),n.domElement.removeEventListener("pointerdown",j),n.domElement.removeEventListener("pointercancel",U),n.domElement.removeEventListener("wheel",V),n.domElement.removeEventListener("pointermove",B),n.domElement.removeEventListener("pointerup",z),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 i=r.NONE;const o=1e-6,a=new H.$V,s=new H.$V;let u=1;const c=new H.Pa4;let l=!1;const d=new H.FM8,f=new H.FM8,h=new H.FM8,p=new H.FM8,m=new H.FM8,g=new H.FM8,v=new H.FM8,y=new H.FM8,b=new H.FM8,E=[],T={};function x(){return Math.pow(.95,n.zoomSpeed)}function _(e){s.theta-=e}function w(e){s.phi-=e}const k=function(){const e=new H.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),c.add(e)}}(),C=function(){const e=new H.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)}}(),A=function(){const e=new H.Pa4;return function(t,r){const i=n.domElement;if(n.object.isPerspectiveCamera){const o=n.object.position;e.copy(o).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),k(2*t*a/i.clientHeight,n.object.matrix),C(2*r*a/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(k(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),C(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!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 O(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 D(e){d.set(e.clientX,e.clientY)}function I(e){p.set(e.clientX,e.clientY)}function N(){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 R(){if(1===E.length)p.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);p.set(e,t)}}function M(){const e=E[0].pageX-E[1].pageX,t=E[0].pageY-E[1].pageY,n=Math.sqrt(e*e+t*t);v.set(0,n)}function P(e){if(1==E.length)f.set(e.pageX,e.pageY);else{const t=$(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}h.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;_(2*Math.PI*h.x/t.clientHeight),w(2*Math.PI*h.y/t.clientHeight),d.copy(f)}function L(e){if(1===E.length)m.set(e.pageX,e.pageY);else{const t=$(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}g.subVectors(m,p).multiplyScalar(n.panSpeed),A(g.x,g.y),p.copy(m)}function F(e){const t=$(e),r=e.pageX-t.x,i=e.pageY-t.y,o=Math.sqrt(r*r+i*i);y.set(0,o),b.set(0,Math.pow(y.y/v.y,n.zoomSpeed)),S(b.y),v.copy(y)}function j(e){!1!==n.enabled&&(0===E.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",B),n.domElement.addEventListener("pointerup",z)),function(e){E.push(e)}(e),"touch"===e.pointerType?function(e){switch(W(e),E.length){case 1:switch(n.touches.ONE){case H.QmN.ROTATE:if(!1===n.enableRotate)return;N(),i=r.TOUCH_ROTATE;break;case H.QmN.PAN:if(!1===n.enablePan)return;R(),i=r.TOUCH_PAN;break;default:i=r.NONE}break;case 2:switch(n.touches.TWO){case H.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&M(),n.enablePan&&R(),i=r.TOUCH_DOLLY_PAN;break;case H.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&M(),n.enableRotate&&N(),i=r.TOUCH_DOLLY_ROTATE;break;default:i=r.NONE}break;default:i=r.NONE}i!==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 H.RsA.DOLLY:if(!1===n.enableZoom)return;!function(e){v.set(e.clientX,e.clientY)}(e),i=r.DOLLY;break;case H.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;I(e),i=r.PAN}else{if(!1===n.enableRotate)return;D(e),i=r.ROTATE}break;case H.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;D(e),i=r.ROTATE}else{if(!1===n.enablePan)return;I(e),i=r.PAN}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(ee)}(e))}function B(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(W(e),i){case r.TOUCH_ROTATE:if(!1===n.enableRotate)return;P(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&&F(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&&F(e),n.enableRotate&&P(e)}(e),n.update();break;default:i=r.NONE}}(e):function(e){if(!1===n.enabled)return;switch(i){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){f.set(e.clientX,e.clientY),h.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;_(2*Math.PI*h.x/t.clientHeight),w(2*Math.PI*h.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,v),b.y>0?S(x()):b.y<0&&O(x()),v.copy(y),n.update()}(e);break;case r.PAN:if(!1===n.enablePan)return;!function(e){m.set(e.clientX,e.clientY),g.subVectors(m,p).multiplyScalar(n.panSpeed),A(g.x,g.y),p.copy(m),n.update()}(e)}}(e))}function z(e){q(e),0===E.length&&(n.domElement.releasePointerCapture(e.pointerId),n.domElement.removeEventListener("pointermove",B),n.domElement.removeEventListener("pointerup",z)),n.dispatchEvent(te),i=r.NONE}function U(e){q(e)}function V(e){!1!==n.enabled&&!1!==n.enableZoom&&i===r.NONE&&(e.preventDefault(),n.dispatchEvent(ee),function(e){e.deltaY<0?O(x()):e.deltaY>0&&S(x()),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:A(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:A(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:A(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:A(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function K(e){!1!==n.enabled&&e.preventDefault()}function q(e){delete T[e.pointerId];for(let t=0;t<E.length;t++)if(E[t].pointerId==e.pointerId)return void E.splice(t,1)}function W(e){let t=T[e.pointerId];void 0===t&&(t=new H.FM8,T[e.pointerId]=t),t.set(e.pageX,e.pageY)}function $(e){const t=e.pointerId===E[0].pointerId?E[1]:E[0];return T[t.pointerId]}n.domElement.addEventListener("contextmenu",K),n.domElement.addEventListener("pointerdown",j),n.domElement.addEventListener("pointercancel",U),n.domElement.addEventListener("wheel",V,{passive:!1}),this.update()}}const re={type:"change"};class ie extends H.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,i=new H._fP,o=new H.Pa4;this.tmpQuaternion=new H._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 H.Pa4(0,0,0),this.rotationVector=new H.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),(o.distanceToSquared(n.object.position)>r||8*(1-i.dot(n.object.quaternion))>r)&&(n.dispatchEvent(re),i.copy(n.object.quaternion),o.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",oe),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",oe),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 oe(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 H.iKG(-1,1,1,-1,0,1),ce=new H.u9r;ce.setAttribute("position",new H.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),ce.setAttribute("uv",new H.a$l([0,2,0,0,2,0],2));class le{constructor(e){this._mesh=new H.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 H.jyz?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=H.rDY.clone(e.uniforms),this.material=new H.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(),i=e.state;let o,a;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0),this.inverse?(o=0,a=1):(o=1,a=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,o,4294967295),i.buffers.stencil.setClear(a),i.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),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}}class he extends se{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class pe{constructor(e,t){if(this.renderer=e,void 0===t){const n={minFilter:H.wem,magFilter:H.wem,format:H.wk1},r=e.getSize(new H.FM8);this._pixelRatio=e.getPixelRatio(),this._width=r.width,this._height=r.height,(t=new H.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 H.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,i=this.passes.length;r<i;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 he&&(n=!1))}}this.renderer.setRenderTarget(t)}reset(e){if(void 0===e){const t=this.renderer.getSize(new H.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 i=0;i<this.passes.length;i++)this.passes[i].setSize(n,r)}setPixelRatio(e){this._pixelRatio=e,this.setSize(this._width,this._height)}}new H.iKG(-1,1,1,-1,0,1);const me=new H.u9r;me.setAttribute("position",new H.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),me.setAttribute("uv",new H.a$l([0,2,0,0,2,0],2));class ge extends se{constructor(e,t,n,r,i){super(),this.scene=e,this.camera=t,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=void 0!==i?i:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new H.Ilk}render(e,t,n){const r=e.autoClear;let i,o;e.autoClear=!1,void 0!==this.overrideMaterial&&(o=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(e.getClearColor(this._oldClearColor),i=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,i),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=o),e.autoClear=r}}var ve=r(87462),ye=r(97326),be=r(94578);function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Te=r(89611);function xe(){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=xe()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,Te.Z)(i,n.prototype),i}).apply(null,arguments)}function we(e){var t="function"===typeof Map?new Map:void 0;return(we=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,Ee(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,Te.Z)(r,e)})(e)}var ke=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,ye.Z)(n)}return(0,be.Z)(t,e),t}(we(Error));function Ce(e){return Math.round(255*e)}function Ae(e,t,n){return Ce(e)+","+Ce(t)+","+Ce(n)}function Se(e,t,n,r){if(void 0===r&&(r=Ae),0===t)return r(n,n,n);var i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(i%2-1)),s=0,u=0,c=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,c=a):i>=3&&i<4?(u=a,c=o):i>=4&&i<5?(s=a,c=o):i>=5&&i<6&&(s=o,c=a);var l=n-o/2;return r(s+l,u+l,c+l)}var Oe={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 De=/^#[a-fA-F0-9]{6}$/,Ie=/^#[a-fA-F0-9]{8}$/,Ne=/^#[a-fA-F0-9]{3}$/,Re=/^#[a-fA-F0-9]{4}$/,Me=/^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,Le=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Fe=/^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 je(e){if("string"!==typeof e)throw new ke(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return Oe[t]?"#"+Oe[t]:e}(e);if(t.match(De))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(Ie)){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(Ne))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(Re)){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 i=Me.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=Pe.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var a=Le.exec(t);if(a){var s="rgb("+Se(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Me.exec(s);if(!u)throw new ke(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=Fe.exec(t.substring(0,50));if(c){var l="rgb("+Se(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Me.exec(l);if(!d)throw new ke(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 ke(5)}var He=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 Be(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ze(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return He("#"+Be(e)+Be(t)+Be(n));if("object"===typeof e&&void 0===t&&void 0===n)return He("#"+Be(e.red)+Be(e.green)+Be(e.blue));throw new ke(6)}function Ue(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var i=je(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?ze(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?ze(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ke(7)}function Ve(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ve(e,t,r)}}function Ge(e){return Ve(e,e.length,[])}function Ke(e,t,n){return Math.max(e,Math.min(t,n))}function qe(e,t){if("transparent"===t)return t;var n=je(t),r="number"===typeof n.alpha?n.alpha:1;return Ue((0,ve.Z)({},n,{alpha:Ke(0,1,(100*r+100*parseFloat(e))/100)}))}var We=Ge(qe);var $e=r(36194);function Ze(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Qe(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 Xe(e){return function(e){if(Array.isArray(e))return Je(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qe(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 Qe(e,t){if(e){if("string"===typeof e)return Je(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)?Je(e,t):void 0}}function Je(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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 et=window.THREE?window.THREE:{WebGLRenderer:H.CP7,Scene:H.xsS,PerspectiveCamera:H.cPb,Raycaster:H.iMs,TextureLoader:H.dpR,Vector2:H.FM8,Vector3:H.Pa4,Box3:H.ZzF,Color:H.Ilk,Mesh:H.Kj0,SphereGeometry:H.xo$,MeshBasicMaterial:H.vBJ,BackSide:H._Li,EventDispatcher:H.pBf,MOUSE:H.RsA,Quaternion:H._fP,Spherical:H.$V,Clock:H.SUY},tt=(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)}$e.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 i=e.camera;if(t&&e.initialised){var o=t,a=n||{x:0,y:0,z:0};if(r){var s=Object.assign({},i.position),u=d();new $e.ZP.Tween(s).to(o,r).easing($e.ZP.Easing.Quadratic.Out).onUpdate(c).start(),new $e.ZP.Tween(u).to(a,r/3).easing($e.ZP.Easing.Quadratic.Out).onUpdate(l).start()}else c(o),l(a);return this}return Object.assign({},i.position,{lookAt:d()});function c(e){var t=e.x,n=e.y,r=e.z;void 0!==t&&(i.position.x=t),void 0!==n&&(i.position.y=n),void 0!==r&&(i.position.z=r)}function l(t){e.controls.target=new et.Vector3(t.x,t.y,t.z)}function d(){return Object.assign(new et.Vector3(0,0,-1e3).applyQuaternion(i.quaternion).add(i.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,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return this.fitToBbox(this.getBbox.apply(this,i),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,i=e.camera;if(t){var o=new et.Vector3(0,0,0),a=2*Math.max.apply(Math,Xe(Object.entries(t).map((function(e){var t=Ye(e,2),n=t[0],r=t[1];return Math.max.apply(Math,Xe(r.map((function(e){return Math.abs(o[n]-e)}))))})))),s=(1-2*r/e.height)*i.fov,u=a/Math.atan(s*Math.PI/180),c=u/i.aspect,l=Math.max(u,c);if(l>0){var d=o.clone().sub(i.position).normalize().multiplyScalar(-l);this.cameraPosition(d,o,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new et.Box3(new et.Vector3(0,0,0),new et.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach((function(e){return n.expandByObject(e)})),Object.assign.apply(Object,Xe(["x","y","z"].map((function(e){return Ze({},e,[n.min[e],n.max[e]])}))))):null},getScreenCoords:function(e,t,n,r){var i=new et.Vector3(t,n,r);return i.project(this.camera()),{x:(i.x+1)*e.width/2,y:-(i.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=new et.Vector2(t/e.width*2-1,-n/e.height*2+1),o=new et.Raycaster;return o.setFromCamera(i,e.camera),Object.assign({},o.ray.at(r,new et.Vector3))},intersectingObjects:function(e,t,n){var r=new et.Vector2(t/e.width*2-1,-n/e.height*2+1),i=new et.Raycaster;return i.params.Line.threshold=e.lineHoverPrecision,i.setFromCamera(r,e.camera),i.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 et.Scene,camera:new et.PerspectiveCamera,clock:new et.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,i=void 0===r?"trackball":r,o=n.rendererConfig,a=void 0===o?{}:o,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"}[i]||"",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 et.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 et.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 pe(t.renderer),t.postProcessingComposer.addPass(new ge(t.scene,t.camera)),t.controls=new{trackball:Q,orbit:ne,fly:ie}[i](t.camera,t.renderer.domElement),"fly"===i&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),"trackball"!==i&&"orbit"!==i||(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(Xe(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 et.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(Xe(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 et.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=je(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new et.Color(We(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?(new et.TextureLoader).load(e.backgroundImageUrl,(function(t){e.skysphere.material=new et.MeshBasicMaterial({map:t,side:et.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 nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){it(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e){return function(e){if(Array.isArray(e))return at(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 at(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 at(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 at(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 st(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],i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=r[t].apply(r,o);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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 ut=window.THREE?window.THREE:{AmbientLight:H.Mig,DirectionalLight:H.Ox3,Vector3:H.Pa4},ct=st("forceGraph",$.default),lt=Object.assign.apply(Object,ot(["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 it({},e,ct.linkProp(e))})))),dt=Object.assign.apply(Object,ot(["refresh","getGraphBbox","d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return it({},e,ct.linkMethod(e))})))),ft=st("renderObjs",tt),ht=Object.assign.apply(Object,ot(["width","height","backgroundColor","showNavInfo","enablePointerInteraction"].map((function(e){return it({},e,ft.linkProp(e))})))),pt=Object.assign.apply(Object,ot(["cameraPosition","postProcessingComposer"].map((function(e){return it({},e,ft.linkMethod(e))}))).concat([{graph2ScreenCoords:ft.linkMethod("getScreenCoords"),screen2GraphCoords:ft.linkMethod("getSceneCoords")}]));function mt(e){for(var t=e;t&&!t.hasOwnProperty("__graphObjType");)t=t.parent;return t}var gt=(0,b.Z)({props:rt(rt({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}},lt),ht),methods:rt(rt({zoomToFit:function(e,t,n){for(var r,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return e.renderObjs.fitToBbox((r=e.forceGraph).getGraphBbox.apply(r,o),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:[]})}},dt),pt),stateInit:function(e){var t=e.controlType,n=e.rendererConfig,r=e.extraRenderers;return{forceGraph:new $.default,renderObjs:tt({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,i=t.renderObjs.camera(),o=t.renderObjs.renderer(),a=t.renderObjs.controls();a.enabled=!!t.enableNavigationControls,t.lastSetCameraZ=i.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===i.position.x&&0===i.position.y&&i.position.z===t.lastSetCameraZ&&t.graphData.nodes.length&&(i.lookAt(t.forceGraph.position),t.lastSetCameraZ=i.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 W(t.graphData.nodes.map((function(e){return e.__threeObj})).filter((function(e){return e})),i,o.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=mt(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]})),o.domElement.classList.add("grabbable")})),n.addEventListener("drag",(function(e){var n=mt(e.object);if(!e.object.hasOwnProperty("__graphObjType")){var r=e.object.__initialPos,i=e.object.__prevPos,o=e.object.position;n.position.add(o.clone().sub(i)),i.copy(o),o.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=mt(e.object).__data;r.__disposeControlsAfterDrag&&(n.dispose(),delete r.__disposeControlsAfterDrag);var i=r.__initialFixedPos,s=r.__initialPos,u={x:s.x-r.x,y:s.y-r.y,z:s.z-r.z};i&&(["x","y","z"].forEach((function(e){var t="f".concat(e);void 0===i[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"}))),o.domElement.classList.remove("grabbable")}))}})),t.renderObjs.objects([new ut.AmbientLight(12303291),new ut.DirectionalLight(16777215,.6),t.forceGraph]).hoverOrderComparator((function(e,t){var n=mt(e);if(!n)return 1;var r=mt(t);if(!r)return-1;var i=function(e){return"node"===e.__graphObjType};return i(r)-i(n)})).tooltipContent((function(e){var n=mt(e);return n&&(0,E.default)(t["".concat(n.__graphObjType,"Label")])(n.__data)||""})).hoverDuringDrag(!1).onHover((function(e){var n=mt(e);if(n!==t.hoverObj){var r=t.hoverObj?t.hoverObj.__graphObjType:null,i=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,i)}if(a){var c=t["on".concat("node"===a?"Node":"Link","Hover")];c&&c(s,r===a?i:null)}o.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=mt(e);if(r){var i=t["on".concat("node"===r.__graphObjType?"Node":"Link","Click")];i&&i(r.__data,n)}else t.onBackgroundClick&&t.onBackgroundClick(n)})).onRightClick((function(e,n){var r=mt(e);if(r){var i=t["on".concat("node"===r.__graphObjType?"Node":"Link","RightClick")];i&&i(r.__data,n)}else t.onBackgroundRightClick&&t.onBackgroundRightClick(n)})),this._animationCycle()}}),vt=r(92809);function yt(){}function bt(e){return null==e?yt:function(){return this.querySelector(e)}}function Et(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Tt(){return[]}function xt(e){return null==e?Tt:function(){return this.querySelectorAll(e)}}function _t(e){return function(){return this.matches(e)}}function wt(e){return function(t){return t.matches(e)}}var kt=Array.prototype.find;function Ct(){return this.firstElementChild}var At=Array.prototype.filter;function St(){return Array.from(this.children)}function Ot(e){return new Array(e.length)}function Dt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function It(e){return function(){return e}}function Nt(e,t,n,r,i,o){for(var a,s=0,u=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Dt(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function Rt(e,t,n,r,i,o,a){var s,u,c,l=new Map,d=t.length,f=o.length,h=new Array(d);for(s=0;s<d;++s)(u=t[s])&&(h[s]=c=a.call(u,u.__data__,s,t)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<f;++s)c=a.call(e,o[s],s,o)+"",(u=l.get(c))?(r[s]=u,u.__data__=o[s],l.delete(c)):n[s]=new Dt(e,o[s]);for(s=0;s<d;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function Mt(e){return e.__data__}function Pt(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Lt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ft(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return jt(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 jt(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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function jt(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}Dt.prototype={constructor:Dt,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 Ht="http://www.w3.org/1999/xhtml",Bt={svg:"http://www.w3.org/2000/svg",xhtml:Ht,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zt(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Bt.hasOwnProperty(t)?{space:Bt[t],local:e}:e}function Ut(e){return function(){this.removeAttribute(e)}}function Vt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Gt(e,t){return function(){this.setAttribute(e,t)}}function Kt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function qt(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 $t(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zt(e){return function(){this.style.removeProperty(e)}}function Yt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Xt(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Qt(e,t){return e.style.getPropertyValue(t)||$t(e).getComputedStyle(e,null).getPropertyValue(t)}function Jt(e){return function(){delete this[e]}}function en(e,t){return function(){this[e]=t}}function tn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function nn(e){return e.trim().split(/^|\s+/)}function rn(e){return e.classList||new on(e)}function on(e){this._node=e,this._names=nn(e.getAttribute("class")||"")}function an(e,t){for(var n=rn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function sn(e,t){for(var n=rn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function un(e){return function(){an(this,e)}}function cn(e){return function(){sn(this,e)}}function ln(e,t){return function(){(t.apply(this,arguments)?an:sn)(this,e)}}function dn(){this.textContent=""}function fn(e){return function(){this.textContent=e}}function hn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function pn(){this.innerHTML=""}function mn(e){return function(){this.innerHTML=e}}function gn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function vn(){this.nextSibling&&this.parentNode.appendChild(this)}function yn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ht&&t.documentElement.namespaceURI===Ht?t.createElement(e):t.createElementNS(n,e)}}function En(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Tn(e){var t=zt(e);return(t.local?En:bn)(t)}function xn(){return null}function _n(){var e=this.parentNode;e&&e.removeChild(this)}function wn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Cn(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 An(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Sn(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function On(e,t,n){var r=$t(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Dn(e,t){return function(){return On(this,e,t)}}function In(e,t){return function(){return On(this,e,t.apply(this,arguments))}}on.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 Nn=r(809),Rn=r.n(Nn),Mn=Rn().mark(Pn);function Pn(){var e,t,n,r,i,o,a;return Rn().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],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),Mn,this)}var Ln=[null];function Fn(e,t){this._groups=e,this._parents=t}function jn(){return new Fn([[document.documentElement]],Ln)}Fn.prototype=jn.prototype=(0,vt.Z)({constructor:Fn,select:function(e){"function"!==typeof e&&(e=bt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=e.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new Fn(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return Et(e.apply(this,arguments))}}(e):xt(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new Fn(r,i)},selectChild:function(e){return this.select(null==e?Ct:function(e){return function(){return kt.call(this.children,e)}}("function"===typeof e?e:wt(e)))},selectChildren:function(e){return this.selectAll(null==e?St:function(e){return function(){return At.call(this.children,e)}}("function"===typeof e?e:wt(e)))},filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new Fn(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Mt);var n=t?Rt:Nt,r=this._parents,i=this._groups;"function"!==typeof e&&(e=It(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],d=i[c],f=d.length,h=Pt(e.call(l,l&&l.__data__,c,r)),p=h.length,m=s[c]=new Array(p),g=a[c]=new Array(p),v=u[c]=new Array(f);n(l,d,m,g,v,h,t);for(var y,b,E=0,T=0;E<p;++E)if(y=m[E]){for(E>=T&&(T=E+1);!(b=g[T])&&++T<p;);y._next=b||null}}return(a=new Fn(a,r))._enter=s,a._exit=u,a},enter:function(){return new Fn(this._enter||this._groups.map(Ot),this._parents)},exit:function(){return new Fn(this._exit||this._groups.map(Ot),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var c,l=n[u],d=r[u],f=l.length,h=s[u]=new Array(f),p=0;p<f;++p)(c=l[p]||d[p])&&(h[p]=c);for(;u<i;++u)s[u]=n[u];return new Fn(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(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=Lt);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(t)}return new Fn(i,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],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e,t=0,n=Ft(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 i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=zt(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?Vt:Ut:"function"===typeof t?n.local?Wt:qt:n.local?Kt:Gt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Zt:"function"===typeof t?Xt:Yt)(e,t,null==n?"":n)):Qt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Jt:"function"===typeof t?tn:en)(e,t)):this.node()[e]},classed:function(e,t){var n=nn(e+"");if(arguments.length<2){for(var r=rn(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?ln:t?un:cn)(n,t))},text:function(e){return arguments.length?this.each(null==e?dn:("function"===typeof e?hn:fn)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?pn:("function"===typeof e?gn:mn)(e)):this.node().innerHTML},raise:function(){return this.each(vn)},lower:function(){return this.each(yn)},append:function(e){var t="function"===typeof e?e:Tn(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:Tn(e),r=null==t?xn:"function"===typeof t?t:bt(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?kn:wn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Cn(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Sn:An,r=0;r<a;++r)this.each(s(o[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((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?In:Dn)(e,t))}},Symbol.iterator,Pn);var Hn=jn;function Bn(e){return"string"===typeof e?new Fn([[document.querySelector(e)]],[document.documentElement]):new Fn([[e]],Ln)}var zn=r(54586),Un={passive:!1},Vn={capture:!0,passive:!1};function Gn(e){e.stopImmediatePropagation()}function Kn(e){e.preventDefault(),e.stopImmediatePropagation()}function qn(e){var t=e.document.documentElement,n=Bn(e).on("dragstart.drag",Kn,Vn);"onselectstart"in t?n.on("selectstart.drag",Kn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Wn(e,t){var n=e.document.documentElement,r=Bn(e).on("dragstart.drag",null);t&&(r.on("click.drag",Kn,Vn),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 $n(e){return((e=Math.exp(e))+1/e)/2}var Zn=function e(t,n,r){function i(e,i){var o,a,s=e[0],u=e[1],c=e[2],l=i[0],d=i[1],f=i[2],h=l-s,p=d-u,m=h*h+p*p;if(m<1e-12)a=Math.log(f/c)/t,o=function(e){return[s+e*h,u+e*p,c*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),v=(f*f-c*c+r*m)/(2*c*n*g),y=(f*f-c*c-r*m)/(2*f*n*g),b=Math.log(Math.sqrt(v*v+1)-v),E=Math.log(Math.sqrt(y*y+1)-y);a=(E-b)/t,o=function(e){var r,i=e*a,o=$n(b),l=c/(n*g)*(o*(r=t*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+l*h,u+l*p,c*o/$n(t*i+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(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 i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Xn=r(50867);function Qn(e,t,n){var r=new Xn.B7;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}var Jn=(0,zn.Z)("start","end","cancel","interrupt"),er=[];function tr(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,l,d,f;if(1!==n.state)return u();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return Qn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[c])}if(Qn((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),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 i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);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 i[t],i)return;delete e.__transition}i[t]=n,n.timer=(0,Xn.HT)(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:Jn,tween:er,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function nr(e,t){var n=ir(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function rr(e,t){var n=ir(e,t);if(n.state>3)throw new Error("too late; already running");return n}function ir(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function or(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).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 o[i]):a=!1;a&&delete e.__transition}}var ar,sr=r(13311),ur=180/Math.PI,cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lr(e,t,n,r,i,o){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:i,translateY:o,rotate:Math.atan2(t,e)*ur,skewX:Math.atan(u)*ur,scaleX:a,scaleY:s}}function dr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:(0,sr.Z)(e,i)},{i:u-2,x:(0,sr.Z)(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,sr.Z)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,sr.Z)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,sr.Z)(e,n)},{i:s-2,x:(0,sr.Z)(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=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 fr=dr((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?cr:lr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),hr=dr((function(e){return null==e?cr:(ar||(ar=document.createElementNS("http://www.w3.org/2000/svg","g")),ar.setAttribute("transform",e),(e=ar.transform.baseVal.consolidate())?lr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):cr)}),", ",")",")");function pr(e,t){var n,r;return function(){var i=rr(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function mr(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=rr(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}function gr(e,t,n){var r=e._id;return e.each((function(){var e=rr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return ir(e,r).value[t]}}var vr=r(94798),yr=r(20439),br=r(25996);function Er(e,t){var n;return("number"===typeof t?sr.Z:t instanceof vr.ZP?yr.ZP:(n=(0,vr.ZP)(t))?(t=n,yr.ZP):br.Z)(e,t)}function Tr(e){return function(){this.removeAttribute(e)}}function xr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _r(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function wr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function kr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function Cr(e,t,n){var r,i,o;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===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function Ar(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Sr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Or(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Sr(e,i)),n}return i._value=t,i}function Dr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ar(e,i)),n}return i._value=t,i}function Ir(e,t){return function(){nr(this,e).delay=+t.apply(this,arguments)}}function Nr(e,t){return t=+t,function(){nr(this,e).delay=t}}function Rr(e,t){return function(){rr(this,e).duration=+t.apply(this,arguments)}}function Mr(e,t){return t=+t,function(){rr(this,e).duration=t}}function Pr(e,t){if("function"!==typeof t)throw new Error;return function(){rr(this,e).ease=t}}function Lr(e,t,n){var r,i,o=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)?nr:rr;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var Fr=Hn.prototype.constructor;function jr(e){return function(){this.style.removeProperty(e)}}function Hr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Br(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Hr(e,o,n)),r}return o._value=t,o}function zr(e){return function(t){this.textContent=e.call(this,t)}}function Ur(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&zr(r)),t}return r._value=e,r}var Vr=0;function Gr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Kr(){return++Vr}var qr=Hn.prototype;Gr.prototype=function(e){return Hn().transition(e)}.prototype=(0,vt.Z)({constructor:Gr,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=bt(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,d=o[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,tr(d[f],t,n,f,d,ir(s,n)));return new Gr(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=xt(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,d=0;d<l;++d)if(u=c[d]){for(var f,h=e.call(u,u.__data__,d,c),p=ir(u,n),m=0,g=h.length;m<g;++m)(f=h[m])&&tr(f,t,n,m,h,p);o.push(h),a.push(u)}return new Gr(o,a,t,n)},selectChild:qr.selectChild,selectChildren:qr.selectChildren,filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new Gr(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,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=t[s],l=n[s],d=c.length,f=a[s]=new Array(d),h=0;h<d;++h)(u=c[h]||l[h])&&(f[h]=u);for(;s<r;++s)a[s]=t[s];return new Gr(a,this._parents,this._name,this._id)},selection:function(){return new Fr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Kr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=ir(a,t);tr(a,e,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Gr(r,this._parents,e,n)},call:qr.call,nodes:qr.nodes,node:qr.node,size:qr.size,empty:qr.empty,each:qr.each,on:function(e,t){var n=this._id;return arguments.length<2?ir(this.node(),n).on.on(e):this.each(Lr(n,e,t))},attr:function(e,t){var n=zt(e),r="transform"===n?hr:Er;return this.attrTween(e,"function"===typeof t?(n.local?Cr:kr)(n,r,gr(this,"attr."+e,t)):null==t?(n.local?xr:Tr)(n):(n.local?wr:_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=zt(e);return this.tween(n,(r.local?Or:Dr)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?fr:Er;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Qt(this,e),a=(this.style.removeProperty(e),Qt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,jr(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=Qt(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Qt(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,gr(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=rr(this,e),c=u.on,l=null==u.value[a]?o||(o=jr(t)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=Qt(this,e);return a===o?null:a===r?i:i=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,Br(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}}(gr(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,Ur(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,i=ir(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?pr:mr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Ir:Nr)(t,e)):ir(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Rr:Mr)(t,e)):ir(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Pr(t,e)):ir(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;rr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=rr(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))}},Symbol.iterator,qr[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 $r(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}Hn.prototype.interrupt=function(e){return this.each((function(){or(this,e)}))},Hn.prototype.transition=function(e){var t,n;e instanceof Gr?(t=e._id,e=e._name):(t=Kr(),(n=Wr).time=(0,Xn.zO)(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&tr(a,e,t,c,s,n||$r(a,t));return new Gr(r,this._parents,e,t)};var Zr=function(e){return function(){return e}};function Yr(e,t){var n=t.sourceEvent,r=t.target,i=t.transform,o=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:i,enumerable:!0,configurable:!0},_:{value:o}})}function Xr(e,t,n){this.k=e,this.x=t,this.y=n}Xr.prototype={constructor:Xr,scale:function(e){return 1===e?this:new Xr(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Xr(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 Qr=new Xr(1,0,0);function Jr(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Qr;return e.__zoom}function ei(e){e.stopImmediatePropagation()}function ti(e){e.preventDefault(),e.stopImmediatePropagation()}function ni(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function ri(){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 ii(){return this.__zoom||Qr}function oi(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ai(){return navigator.maxTouchPoints||"ontouchstart"in this}function si(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function ui(){var e,t,n,r=ni,i=ri,o=si,a=oi,s=ai,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,d=Zn,f=(0,zn.Z)("start","zoom","end"),h=500,p=0,m=10;function g(e){e.property("__zoom",ii).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",w).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",C).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",S).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new Xr(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Xr(e.k,r,i)}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(){T(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){T(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=T(e,o).event(r),s=i.apply(e,o),u=null==n?b(s):"function"===typeof n?n.apply(e,o):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,o):t,h=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=h(e),n=c/t[2];e=new Xr(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function T(e,t,n){return!n&&e.__zooming||new x(e,t)}function x(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=T(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)],or(this),s.start()}ti(e),s.wheel=setTimeout(h,150),s.zoom("mouse",o(y(v(l,d),s.mouse[0],s.mouse[1]),s.extent,c))}function h(){s.wheel=null,s.end()}}function w(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=e.currentTarget,u=T(this,i,!0).event(e),l=Bn(e.view).on("mousemove.zoom",m,!0).on("mouseup.zoom",g,!0),d=Yn(e,s),f=e.clientX,h=e.clientY;qn(e.view),ei(e),u.mouse=[d,this.__zoom.invert(d)],or(this),u.start()}function m(e){if(ti(e),!u.moved){var t=e.clientX-f,n=e.clientY-h;u.moved=t*t+n*n>p}u.event(e).zoom("mouse",o(y(u.that.__zoom,u.mouse[0]=Yn(e,s),u.mouse[1]),u.extent,c))}function g(e){l.on("mousemove.zoom mouseup.zoom",null),Wn(e.view,u.moved),ti(e),u.event(e).end()}}function k(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),h=o(y(v(s,f),u,d),i.apply(this,n),c);ti(e),l>0?Bn(this).transition().duration(l).call(E,h,u,e):Bn(this).call(g.transform,h,u,e)}}function C(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r.apply(this,arguments)){var s,u,c,l,d=n.touches,f=d.length,p=T(this,o,n.changedTouches.length===f).event(n);for(ei(n),u=0;u<f;++u)l=[l=Yn(c=d[u],this),this.__zoom.invert(l),c.identifier],p.touch0?p.touch1||p.touch0[2]===l[2]||(p.touch1=l,p.taps=0):(p.touch0=l,s=!0,p.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(p.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),h)),or(this),p.start())}}function A(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 i,a,s,u,l=T(this,n).event(e),d=e.changedTouches,f=d.length;for(ti(e),i=0;i<f;++i)s=Yn(a=d[i],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 h=l.touch0[0],p=l.touch0[1],m=l.touch1[0],g=l.touch1[1],b=(b=m[0]-h[0])*b+(b=m[1]-h[1])*b,E=(E=g[0]-p[0])*E+(E=g[1]-p[1])*E;a=v(a,Math.sqrt(b/E)),s=[(h[0]+m[0])/2,(h[1]+m[1])/2],u=[(p[0]+g[0])/2,(p[1]+g[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],u=l.touch0[1]}l.zoom("touch",o(y(a,s,u),l.extent,c))}}function S(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var a,s,u=T(this,i).event(e),c=e.changedTouches,l=c.length;for(ei(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),h),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=Bn(this).on("dblclick.zoom");d&&d.apply(this,arguments)}}}return g.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",ii),e!==i?E(e,t,n,r):i.interrupt().each((function(){T(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},g.scaleBy=function(e,t,n,r){g.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n,r)},g.scaleTo=function(e,t,n,r){g.transform(e,(function(){var e=i.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 o(y(v(r,u),a,s),e,c)}),n,r)},g.translateBy=function(e,t,n,r){g.transform(e,(function(){return o(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},g.translateTo=function(e,t,n,r,a){g.transform(e,(function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?b(e):"function"===typeof r?r.apply(this,arguments):r;return o(Qr.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)},x.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=Bn(this.that).datum();f.call(e,this.that,new Yr(e,{sourceEvent:this.sourceEvent,target:g,type:e,transform:this.that.__zoom,dispatch:f}),t)}},g.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:Zr(+e),g):a},g.filter=function(e){return arguments.length?(r="function"===typeof e?e:Zr(!!e),g):r},g.touchable=function(e){return arguments.length?(s="function"===typeof e?e:Zr(!!e),g):s},g.extent=function(e){return arguments.length?(i="function"===typeof e?e:Zr([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):i},g.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],g):[u[0],u[1]]},g.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],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(e){return arguments.length?(o=e,g):o},g.duration=function(e){return arguments.length?(l=+e,g):l},g.interpolate=function(e){return arguments.length?(d=e,g):d},g.on=function(){var e=f.on.apply(f,arguments);return e===f?g:e},g.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,g):Math.sqrt(p)},g.tapDistance=function(e){return arguments.length?(m=+e,g):m},g}Jr.prototype=Xr.prototype;var ci=function(e){return function(){return e}};function li(e,t){var n=t.sourceEvent,r=t.subject,i=t.target,o=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:i,enumerable:!0,configurable:!0},identifier:{value:o,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 di(e){return!e.ctrlKey&&!e.button}function fi(){return this.parentNode}function hi(e,t){return null==t?{x:e.x,y:e.y}:t}function pi(){return navigator.maxTouchPoints||"ontouchstart"in this}li.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var mi=r(76554),gi=r(15352),vi=r(93096),yi=r.n(vi),bi=r(17621),Ei=r.n(bi);function Ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(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 _i(e){return function(e){if(Array.isArray(e))return wi(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 wi(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 wi(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 wi(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 ki=function(e,t,n){return(e<<16)+(t<<8)+n},Ci=function(e,t){return 123*e%Math.pow(2,t)},Ai=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;Ti(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=Ci(n,this.csBits),i=(t=n+(r<<24-this.csBits),"#".concat(Math.min(t,Math.pow(2,24)).toString(16).padStart(6,"0")));return this.registry.push(e),i}},{key:"lookup",value:function(e){var t="string"===typeof e?function(e){var t=Ei()(e).toRgb(),n=t.r,r=t.g,i=t.b;return ki(n,r,i)}(e):ki.apply(void 0,_i(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 Ci(n,this.csBits)!==r||n>=this.registry.length?null:this.registry[n]}}])&&xi(t.prototype,n),r&&xi(t,r),e}(),Si=r(55061),Oi=r(66252),Di=r(3286),Ii=r(54625),Ni=r(77729);const{abs:Ri,cos:Mi,sin:Pi,acos:Li,atan2:Fi,sqrt:ji,pow:Hi}=Math;function Bi(e){return e<0?-Hi(-e,1/3):Hi(e,1/3)}const zi=Math.PI,Ui=2*zi,Vi=zi/2,Gi=Number.MAX_SAFE_INTEGER||9007199254740991,Ki=Number.MIN_SAFE_INTEGER||-9007199254740991,qi={x:0,y:0,z:0},Wi={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),ji(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 i=1-e;let o=t;if(0===r)return t[0].t=e,t[0];if(1===r){const t={x:i*o[0].x+e*o[1].x,y:i*o[0].y+e*o[1].y,t:e};return n&&(t.z=i*o[0].z+e*o[1].z),t}if(r<4){let t,a,s,u=i*i,c=e*e,l=0;2===r?(o=[o[0],o[1],o[2],qi],t=u,a=i*e*2,s=c):3===r&&(t=u*i,a=u*e*3,s=i*c*3,l=e*c);const d={x:t*o[0].x+a*o[1].x+s*o[2].x+l*o[3].x,y:t*o[0].y+a*o[1].y+s*o[2].y+l*o[3].y,t:e};return n&&(d.z=t*o[0].z+a*o[1].z+s*o[2].z+l*o[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 i=1-e,o=n,a=t;let s,u=o[0],c=o[1],l=o[2],d=o[3];return u*=i,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*=i,c*=2*i,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*=i,c*=1.5*i,l*=3*i,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,i=r.length,o=i-1;i>1;i--,o--){const e=[];for(let n,i=0;i<o;i++)n={x:o*(r[i+1].x-r[i].x),y:o*(r[i+1].y-r[i].y)},t&&(n.z=o*(r[i+1].z-r[i].z)),e.push(n);n.push(e),r=e}return n},between:function(e,t,n){return t<=e&&e<=n||Wi.approximately(e,t)||Wi.approximately(e,n)},approximately:function(e,t,n){return Ri(e-t)<=(n||1e-6)},length:function(e){const t=Wi.Tvalues.length;let n=0;for(let r,i=0;i<t;i++)r=.5*Wi.Tvalues[i]+.5,n+=Wi.Cvalues[i]*Wi.arcfn(r,e);return.5*n},map:function(e,t,n,r,i){return r+(i-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(Wi.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,t,n){const r=t.x-e.x,i=t.y-e.y,o=n.x-e.x,a=n.y-e.y;return Fi(r*a-i*o,r*o+i*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 ji(n*n+r*r)},closest:function(e,t){let n,r,i=Hi(2,63);return e.forEach((function(e,o){r=Wi.dist(t,e),r<i&&(i=r,n=o)})),{mdist:i,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=Hi(e,t)+Hi(1-e,t);return Ri((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=Hi(1-e,t);return n/(Hi(e,t)+n)},lli8:function(e,t,n,r,i,o,a,s){const u=(e-n)*(o-s)-(t-r)*(i-a);return 0!=u&&{x:((e*r-t*n)*(i-a)-(e-n)*(i*s-o*a))/u,y:((e*r-t*n)*(o-s)-(t-r)*(i*s-o*a))/u}},lli4:function(e,t,n,r){const i=e.x,o=e.y,a=t.x,s=t.y,u=n.x,c=n.y,l=r.x,d=r.y;return Wi.lli8(i,o,a,s,u,c,l,d)},lli:function(e,t){return Wi.lli4(e,e.c,t,t.c)},makeline:function(e,t){const n=e.x,r=e.y,i=t.x,o=t.y,a=(i-n)/3,s=(o-r)/3;return new ro(n,r,n+a,r+s,n+2*a,r+2*s,i,o)},findbbox:function(e){let t=Gi,n=Gi,r=Ki,i=Ki;return e.forEach((function(e){const o=e.bbox();t>o.x.min&&(t=o.x.min),n>o.y.min&&(n=o.y.min),r<o.x.max&&(r=o.x.max),i<o.y.max&&(i=o.y.max)})),{x:{min:t,mid:(t+r)/2,max:r,size:r-t},y:{min:n,mid:(n+i)/2,max:i,size:i-n}}},shapeintersections:function(e,t,n,r,i){if(!Wi.bboxoverlap(t,r))return[];const o=[],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,i);a.length>0&&(a.c1=t,a.c2=r,a.s1=e,a.s2=n,o.push(a))}))})),o},makeshape:function(e,t,n){const r=t.points.length,i=e.points.length,o=Wi.makeline(t.points[r-1],e.points[0]),a=Wi.makeline(e.points[i-1],t.points[0]),s={startcap:o,forward:e,back:t,endcap:a,bbox:Wi.findbbox([o,e,t,a]),intersections:function(e){return Wi.shapeintersections(s,s.bbox,e,e.bbox,n)}};return s},getminmax:function(e,t,n){if(!n)return{min:0,max:0};let r,i,o=Gi,a=Ki;-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],i=e.get(r),i[t]<o&&(o=i[t]),i[t]>a&&(a=i[t]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,t){const n=t.p1.x,r=t.p1.y,i=-Fi(t.p2.y-r,t.p2.x-n);return e.map((function(e){return{x:(e.x-n)*Mi(i)-(e.y-r)*Pi(i),y:(e.x-n)*Pi(i)+(e.y-r)*Mi(i)}}))},roots:function(e,t){t=t||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,r=Wi.align(e,t),i=function(e){return 0<=e&&e<=1};if(2===n){const e=r[0].y,t=r[1].y,n=r[2].y,o=e-2*t+n;if(0!==o){const r=-ji(t*t-e*n),a=-e+t;return[-(r+a)/o,-(-r+a)/o].filter(i)}return t!==n&&0===o?[(2*t-n)/(2*t-2*n)].filter(i):[]}const o=r[0].y,a=r[1].y,s=r[2].y;let u=3*a-o-3*s+r[3].y,c=3*o-6*a+3*s,l=-3*o+3*a,d=o;if(Wi.approximately(u,0)){if(Wi.approximately(c,0))return Wi.approximately(l,0)?[]:[-d/l].filter(i);const e=ji(l*l-4*c*d),t=2*c;return[(e-l)/t,(-l-e)/t].filter(i)}c/=u,l/=u,d/=u;const f=(3*l-c*c)/3,h=f/3,p=(2*c*c*c-9*c*l+27*d)/27,m=p/2,g=m*m+h*h*h;let v,y,b,E,T;if(g<0){const e=-f/3,t=ji(e*e*e),n=-p/(2*t),r=Li(n<-1?-1:n>1?1:n),o=2*Bi(t);return b=o*Mi(r/3)-c/3,E=o*Mi((r+Ui)/3)-c/3,T=o*Mi((r+2*Ui)/3)-c/3,[b,E,T].filter(i)}if(0===g)return v=m<0?Bi(-m):-Bi(m),b=2*v-c/3,E=-v-c/3,[b,E].filter(i);{const e=ji(g);return v=Bi(-m+e),y=Bi(m+e),[v-y-c/3].filter(i)}},droots:function(e){if(3===e.length){const t=e[0],n=e[1],r=e[2],i=t-2*n+r;if(0!==i){const e=-ji(n*n-t*r),o=-t+n;return[-(e+o)/i,-(-e+o)/i]}return n!==r&&0===i?[(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,i){let o,a,s,u,c=0,l=0;const d=Wi.compute(e,t),f=Wi.compute(e,n),h=d.x*d.x+d.y*d.y;if(r?(o=ji(Hi(d.y*f.z-f.y*d.z,2)+Hi(d.z*f.x-f.z*d.x,2)+Hi(d.x*f.y-f.x*d.y,2)),a=Hi(h+d.z*d.z,1.5)):(o=d.x*f.y-d.y*f.x,a=Hi(h,1.5)),0===o||0===a)return{k:0,r:0};if(c=o/a,l=a/o,!i){const i=Wi.curvature(e-.001,t,n,r,!0).k,o=Wi.curvature(e+.001,t,n,r,!0).k;u=(o-c+(c-i))/2,s=(Ri(o-c)+Ri(c-i))/2}return{k:c,r:l,dk:u,adk:s}},inflections:function(e){if(e.length<4)return[];const t=Wi.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=t[2].x*t[1].y,r=t[3].x*t[1].y,i=t[1].x*t[2].y,o=18*(-3*n+2*r+3*i-t[3].x*t[2].y),a=18*(3*n-r-3*i),s=18*(i-n);if(Wi.approximately(o,0)){if(!Wi.approximately(a,0)){let e=-s/a;if(0<=e&&e<=1)return[e]}return[]}const u=a*a-4*o*s,c=Math.sqrt(u),l=2*o;return Wi.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 i,o,a,s,u=0;u<r;u++)if(i=n[u],o=e[i].mid,a=t[i].mid,s=(e[i].size+t[i].size)/2,Ri(o-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(),i=t.bbox(),o=1e5,a=n||.5;if(r.x.size+r.y.size<a&&i.x.size+i.y.size<a)return[(o*(e._t1+e._t2)/2|0)/o+"/"+(o*(t._t1+t._t2)/2|0)/o];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 Wi.bboxoverlap(e.left.bbox(),e.right.bbox())}));let l=[];return 0===c.length||(c.forEach((function(e){l=l.concat(Wi.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,i=t.y-e.y,o=n.x-t.x,a=n.y-t.y,s=r*Mi(Vi)-i*Pi(Vi),u=r*Pi(Vi)+i*Mi(Vi),c=o*Mi(Vi)-a*Pi(Vi),l=o*Pi(Vi)+a*Mi(Vi),d=(e.x+t.x)/2,f=(e.y+t.y)/2,h=(t.x+n.x)/2,p=(t.y+n.y)/2,m=d+s,g=f+u,v=h+c,y=p+l,b=Wi.lli8(d,f,m,g,h,p,v,y),E=Wi.dist(b,e);let T,x=Fi(e.y-b.y,e.x-b.x),_=Fi(t.y-b.y,t.x-b.x),w=Fi(n.y-b.y,n.x-b.x);return x<w?((x>_||_>w)&&(x+=Ui),x>w&&(T=w,w=x,x=T)):w<_&&_<x?(T=w,w=x,x=T):w+=Ui,b.s=x,b.e=w,b.r=E,b},numberSort:function(e,t){return e-t}};class $i{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 Wi.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++)Wi.expandbox(t,e[n].bbox());return t}offset(e){const t=[];return this.curves.forEach((function(n){t.push(...n.offset(e))})),new $i(t)}}const{abs:Zi,min:Yi,max:Xi,cos:Qi,sin:Ji,acos:eo,sqrt:to}=Math,no=Math.PI;class ro{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 i=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!==i&&8!==i&&9!==i&&12!==i&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const o=this._3d=!r&&(9===i||12===i)||e&&e[0]&&"undefined"!==typeof e[0].z,a=this.points=[];for(let d=0,f=o?3:2;d<i;d+=f){var s={x:t[d],y:t[d+1]};o&&(s.z=t[d+2]),a.push(s)}const u=this.order=a.length-1,c=this.dims=["x","y"];o&&c.push("z"),this.dimlen=c.length;const l=Wi.align(a,{p1:a[0],p2:a[u]});this._linear=!l.some((e=>Zi(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 ro(t,t,n);if(1===r)return new ro(e,t,t);const i=ro.getABC(2,e,t,n,r);return new ro(e,i.A,n)}static cubicFromPoints(e,t,n,r,i){"undefined"===typeof r&&(r=.5);const o=ro.getABC(3,e,t,n,r);"undefined"===typeof i&&(i=Wi.dist(t,o.C));const a=i*(1-r)/r,s=Wi.dist(e,n),u=(n.x-e.x)/s,c=(n.y-e.y)/s,l=i*u,d=i*c,f=a*u,h=a*c,p=t.x-l,m=t.y-d,g=t.x+f,v=t.y+h,y=o.A,b=y.x+(p-y.x)/(1-r),E=y.y+(m-y.y)/(1-r),T=y.x+(g-y.x)/r,x=y.y+(v-y.y)/r,_={x:e.x+(b-e.x)/r,y:e.y+(E-e.y)/r},w={x:n.x+(T-n.x)/(1-r),y:n.y+(x-n.y)/(1-r)};return new ro(e,_,w,n)}static getUtils(){return Wi}getUtils(){return ro.getUtils()}static get PolyBezier(){return $i}valueOf(){return this.toString()}toString(){return Wi.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=Wi.derive(this.points,this._3d),this.computedirection()}computedirection(){const e=this.points,t=Wi.angle(e[0],e[this.order],e[1]);this.clockwise=t>0}length(){return Wi.length(this.derivative.bind(this))}static getABC(e=2,t,n,r,i=.5){const o=Wi.projectionratio(i,e),a=1-o,s={x:o*t.x+a*r.x,y:o*t.y+a*r.y},u=Wi.abcratio(i,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 ro.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(),i=[];for(let t,o=0,a=0;o<r.length;o++)t=r[o],Wi.dist(t,e)<n&&(i.push(t),a+=o/r.length);return!!i.length&&(t/=i.length)}project(e){const t=this.getLUT(),n=t.length-1,r=Wi.closest(t,e),i=r.mpos,o=(i-1)/n,a=(i+1)/n,s=.1/n;let u,c,l=r.mdist,d=o,f=d;for(l+=1;d<a+s;d+=s)u=this.compute(d),c=Wi.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?Wi.computeWithRatios(e,this.points,this.ratios,this._3d):Wi.compute(e,this.points,this._3d,this.ratios)}raise(){const e=this.points,t=[e[0]],n=e.length;for(let r,i,o=1;o<n;o++)r=e[o],i=e[o-1],t[o]={x:(n-o)/n*r.x+o/n*i.x,y:(n-o)/n*r.y+o/n*i.y};return t[n]=e[n-1],new ro(t)}derivative(e){return Wi.compute(e,this.dpoints[0],this._3d)}dderivative(e){return Wi.compute(e,this.dpoints[1],this._3d)}align(){let e=this.points;return new ro(Wi.align(e,{p1:e[0],p2:e[e.length-1]}))}curvature(e){return Wi.curvature(e,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return Wi.inflections(this.points)}normal(e){return this._3d?this.__normal3(e):this.__normal2(e)}__normal2(e){const t=this.derivative(e),n=to(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=to(t.x*t.x+t.y*t.y+t.z*t.z),i=to(n.x*n.x+n.y*n.y+n.z*n.z);t.x/=r,t.y/=r,t.z/=r,n.x/=i,n.y/=i,n.z/=i;const o={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=to(o.x*o.x+o.y*o.y+o.z*o.z);o.x/=a,o.y/=a,o.z/=a;const s=[o.x*o.x,o.x*o.y-o.z,o.x*o.z+o.y,o.x*o.y+o.z,o.y*o.y,o.y*o.z-o.x,o.x*o.z-o.y,o.y*o.z+o.x,o.z*o.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=[],i=0;for(r[i++]=t[0],r[i++]=t[1],r[i++]=t[2],3===this.order&&(r[i++]=t[3]);t.length>1;){n=[];for(let o,a=0,s=t.length-1;a<s;a++)o=Wi.lerp(e,t[a],t[a+1]),r[i++]=o,n.push(o);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 ro([n[0],n[3],n[5]]):new ro([n[0],n[4],n[7],n[9]]),right:2===this.order?new ro([n[5],n[4],n[2]]):new ro([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=Wi.map(0,0,1,this._t1,this._t2),r.left._t2=Wi.map(e,0,1,this._t1,this._t2),r.right._t1=Wi.map(e,0,1,this._t1,this._t2),r.right._t2=Wi.map(1,0,1,this._t1,this._t2),t?(t=Wi.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]},i=this.dpoints[0].map(r);e[n]=Wi.droots(i),3===this.order&&(i=this.dpoints[1].map(r),e[n]=e[n].concat(Wi.droots(i))),e[n]=e[n].filter((function(e){return e>=0&&e<=1})),t=t.concat(e[n].sort(Wi.numberSort))}.bind(this)),e.values=t.sort(Wi.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]=Wi.getminmax(this,n,e[n])}.bind(this)),t}overlaps(e){const t=this.bbox(),n=e.bbox();return Wi.bboxoverlap(t,n)}offset(e,t){if("undefined"!==typeof t){const n=this.get(e),r=this.normal(e),i={c:n,n:r,x:n.x+r.x*t,y:n.y+r.y*t};return this._3d&&(i.z=n.z+r.z*t),i}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 ro(n)]}return this.reduce().map((function(t){return t._linear?t.offset(e)[0]:t.scale(e)}))}simple(){if(3===this.order){const e=Wi.angle(this.points[0],this.points[3],this.points[1]),t=Wi.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),Zi(eo(n))<no/3}reduce(){let e,t,n=0,r=0,i=.01,o=[],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,o.push(t),n=r;return o.forEach((function(e){for(n=0,r=0;r<=1;)for(r=n+i;r<=1.01;r+=i)if(t=e.split(n,r),!t.simple()){if(r-=i,Zi(n-r)<i)return[];t=e.split(n,r),t._t1=Wi.map(n,0,1,e._t1,e._t2),t._t2=Wi.map(r,0,1,e._t1,e._t2),a.push(t),n=r;break}n<1&&(t=e.split(n,1),t._t1=Wi.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,i=n?n(0):e,o=n?n(1):e,a=[this.offset(0,10),this.offset(1,10)],s=this.points,u=[],c=Wi.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]=Wi.copy(s[e*t]);n.x+=(e?o:i)*a[e].n.x,n.y+=(e?o:i)*a[e].n.y})),n?([0,1].forEach((function(i){if(2!==t||!i){var o=s[i+1],a={x:o.x-c.x,y:o.y-c.y},l=n?n((i+1)/t):e;n&&!r&&(l=-l);var d=to(a.x*a.x+a.y*a.y);a.x/=d,a.y/=d,u[i+1]={x:o.x+l*a.x,y:o.y+l*a.y}}})),new ro(u)):([0,1].forEach((e=>{if(2===t&&e)return;const n=u[e*t],r=this.derivative(e),i={x:n.x+r.x,y:n.y+r.y};u[e+1]=Wi.lli4(n,i,c,s[e+1])})),new ro(u))}outline(e,t,n,r){t="undefined"===typeof t?e:t;const i=this.reduce(),o=i.length,a=[];let s,u=[],c=0,l=this.length();const d="undefined"!==typeof n&&"undefined"!==typeof r;function f(e,t,n,r,i){return function(o){const a=r/n,s=(r+i)/n,u=t-e;return Wi.map(o,0,1,e+a*u,e+s*u)}}i.forEach((function(i){const o=i.length();d?(a.push(i.scale(f(e,n,l,c,o))),u.push(i.scale(f(-t,-r,l,c,o)))):(a.push(i.scale(e)),u.push(i.scale(-t))),c+=o})),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 h=a[0].points[0],p=a[o-1].points[a[o-1].points.length-1],m=u[o-1].points[u[o-1].points.length-1],g=u[0].points[0],v=Wi.makeline(m,h),y=Wi.makeline(p,g),b=[v].concat(a).concat([y]).concat(u);b.length;return new $i(b)}outlineshapes(e,t,n){t=t||e;const r=this.outline(e,t).curves,i=[];for(let o=1,a=r.length;o<a/2;o++){const e=Wi.makeshape(r[o],r[a-o],n);e.startcap.virtual=o>1,e.endcap.virtual=o<a/2-1,i.push(e)}return i}intersects(e,t){return e?e.p1&&e.p2?this.lineIntersects(e):(e instanceof ro&&(e=e.reduce()),this.curveintersects(this.reduce(),e,t)):this.selfintersects(t)}lineIntersects(e){const t=Yi(e.p1.x,e.p2.x),n=Yi(e.p1.y,e.p2.y),r=Xi(e.p1.x,e.p2.x),i=Xi(e.p1.y,e.p2.y);return Wi.roots(this.points,e).filter((e=>{var o=this.get(e);return Wi.between(o.x,t,r)&&Wi.between(o.y,n,i)}))}selfintersects(e){const t=this.reduce(),n=t.length-2,r=[];for(let i,o,a,s=0;s<n;s++)o=t.slice(s,s+1),a=t.slice(s+2),i=this.curveintersects(o,a,e),r.push(...i);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 i=[];return r.forEach((function(e){const t=Wi.pairiteration(e.left,e.right,n);t.length>0&&(i=i.concat(t))})),i}arcs(e){return e=e||.5,this._iterate(e,[])}_error(e,t,n,r){const i=(r-n)/4,o=this.get(n+i),a=this.get(r-i),s=Wi.dist(e,t),u=Wi.dist(e,o),c=Wi.dist(e,a);return Zi(u-s)+Zi(c-s)}_iterate(e,t){let n,r=0,i=1;do{n=0,i=1;let o,a,s,u,c,l=this.get(r),d=!1,f=!1,h=i,p=1,m=0;do{if(f=d,u=s,h=(r+i)/2,m++,o=this.get(h),a=this.get(i),s=Wi.getccenter(l,o,a),s.interval={start:r,end:i},d=this._error(s,l,r,i)<=e,c=f&&!d,c||(p=i),d){if(i>=1){if(s.interval.end=p=1,u=s,i>1){let e={x:s.x+s.r*Qi(s.e),y:s.y+s.r*Ji(s.e)};s.e+=Wi.angle({x:s.x,y:s.y},e,this.get(1))}break}i+=(i-r)/2}else i=h}while(!c&&n++<100);if(n>=100)break;u=u||s,t.push(u),r=p}while(i<1);return t}}var io=r(1527),oo=r(93704),ao=r(59735);function so(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 uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(e){return(co="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 lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){return(fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ho(){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 po(e,t,n){return(po=ho()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&fo(i,n.prototype),i}).apply(null,arguments)}function mo(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||vo(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 go(e){return function(e){if(Array.isArray(e))return yo(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vo(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 vo(e,t){if(e){if("string"===typeof e)return yo(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)?yo(e,t):void 0}}function yo(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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 bo=(0,oo.Z)(ao.Z);function Eo(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=bo(t(e))}))}var To=function(e,t){return t.onNeedsRedraw&&t.onNeedsRedraw()},xo=(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:To},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:To},nodeColor:{default:"color",triggerUpdate:!1,onChange:To},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:To},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:To},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:To},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:To},linkColor:{default:"color",triggerUpdate:!1,onChange:To},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:To},linkWidth:{default:1,triggerUpdate:!1,onChange:To},linkCurvature:{default:0,triggerUpdate:!1,onChange:To},linkCanvasObject:{triggerUpdate:!1,onChange:To},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:To},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:To},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:To},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:To},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),i=(0,E.default)(e.linkLineDash),o=(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=o(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 i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2));if(i>0){var a=Math.atan2(r.y-n.y,r.x-n.x),s=i*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 h=[],p=[];c.forEach((function(e){return({before:l,after:d,replace:h}[a(e)]||p).push(e)})),f=[].concat(go(l),d,p),l=l.concat(h)}s.save(),l.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore();var m=(0,io.Z)(f,[n,r,i]);s.save(),Object.entries(m).forEach((function(t){var n=mo(t,2),r=n[0],o=n[1],a=r&&"undefined"!==r?r:"rgba(0,0,0,0.15)";Object.entries(o).forEach((function(t){var n=mo(t,2),r=n[0],o=n[1],c=(r||1)/e.globalScale+u;Object.entries(o).forEach((function(e){var t=mo(e,2);t[0];var n=t[1],r=i(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,go(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),i=(0,E.default)(e.linkDirectionalArrowColor||e.linkColor),o=(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,o(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,o(c)||1))*e.nodeRelSize,f=Math.min(1,Math.max(0,n(r))),h=i(r)||"rgba(0,0,0,0.28)",p=s/1.6/2,m=r.__controlPoints&&po(ro,[u.x,u.y].concat(go(r.__controlPoints),[c.x,c.y])),g=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}},v=m?m.length():Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2)),y=l+s+(v-l-d-s)*f,b=g(y/v),E=g((y-s)/v),T=g((y-.8*s)/v),x=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+p*Math.cos(x),E.y+p*Math.sin(x)),a.lineTo(T.x,T.y),a.lineTo(E.x-p*Math.cos(x),E.y-p*Math.sin(x)),a.fillStyle=h,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),i=(0,E.default)(e.linkVisibility),o=(0,E.default)(e.linkDirectionalParticleColor||e.linkColor),a=e.ctx;a.save(),e.graphData.links.filter(i).forEach((function(i){var s=t(i);if(i.hasOwnProperty("__photons")&&i.__photons.length){var u=i.source,c=i.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=n(i),d=i.__photons||[],f=Math.max(0,r(i)/2)/Math.sqrt(e.globalScale),h=o(i)||"rgba(0,0,0,0.28)";a.fillStyle=h;var p=i.__controlPoints?po(ro,[u.x,u.y].concat(go(i.__controlPoints),[c.x,c.y])):null,m=0,g=!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(g=!0);e.__progressRatio=e.__progressRatio%1}var n=e.__progressRatio,r=p?p.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()})),g&&(i.__photons=i.__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),i=(0,E.default)(e.nodeCanvasObjectMode),o=e.ctx,a=e.isShadow/e.globalScale,s=e.graphData.nodes.filter(t);o.save(),s.forEach((function(t){var s=i(t);if(!e.nodeCanvasObject||"before"!==s&&"replace"!==s||(e.nodeCanvasObject(t,o,e.globalScale),"replace"!==s)){var u=Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize+a;o.beginPath(),o.arc(t.x,t.y,u,0,2*Math.PI,!1),o.fillStyle=r(t)||"rgba(31, 120, 180, 0.92)",o.fill(),e.nodeCanvasObject&&"after"===s&&e.nodeCanvasObject(t,e.ctx,e.globalScale)}else o.restore()})),o.restore()}(),this},emitParticle:function(e,t){return t&&(!t.__photons&&(t.__photons=[]),t.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:(0,Si.Z)().force("link",(0,Oi.Z)()).force("charge",(0,Di.Z)()).force("center",(0,Ii.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&&Eo(e.graphData.nodes,(0,E.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&Eo(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=go(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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.nodeFilter,a=void 0===o?function(){return!0}:o,s=i.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,i=u(n),o=u(r);if(!c.hasOwnProperty(i))throw"Missing source node with id: ".concat(i);if(!c.hasOwnProperty(o))throw"Missing target node with id: ".concat(o);var a=c[i],s=c[o];function u(e){return"object"===co(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(go(Object.entries(c).filter((function(e){return!mo(e,2)[1].skip})).map((function(e){var t=mo(e,2);return lo({},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,i=0,o=e.length;i<o;i++){var a=e[i];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(go(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(go(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),i=Math.max.apply(Math,go(Object.values(r||[]))),o=e.dagLevelDistance||e.graphData.nodes.length/(i||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]]-i/2)*o*(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,Ni.Z)((function(t){var n=r[t[e.nodeId]]||-1;return("radialin"===e.dagMode?i-n:n)*o})).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 _o(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,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=[];return n.forEach((function(n){var r=t[n],o=r[e].apply(r,i);o!==r&&a.push(o)})),a.length?a[0]:this}}}}var wo=_o("forceGraph",xo),ko=_o(["forceGraph","shadowGraph"],xo),Co=Object.assign.apply(Object,go(["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 lo({},e,wo.linkProp(e))}))).concat(go(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map((function(e){return lo({},e,ko.linkProp(e))}))))),Ao=Object.assign.apply(Object,go(["d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return lo({},e,wo.linkMethod(e))}))));function So(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(i){i.style.width="".concat(e.width,"px"),i.style.height="".concat(e.height,"px"),i.width=e.width*r,i.height=e.height*r,t||n||i.getContext("2d").scale(r,r)}));var i=Jr(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-t)/2/i,(e.height-n)/2/i),e.needsRedraw=!0}}function Oo(e){var t=window.devicePixelRatio;e.setTransform(t,0,0,t,0,0)}function Do(e,t,n){e.save(),Oo(e),e.clearRect(0,0,t,n),e.restore()}var Io=(0,b.Z)({props:uo({width:{default:window.innerWidth,onChange:function(e,t){return So(t)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(e,t){return So(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),t.flushShadowCanvas&&t.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(e,t){t.shadowGraph.linkCanvasObject(e?function(t,n,r){return e(t,t.__indexColor,n,r)}:null),t.flushShadowCanvas&&t.flushShadowCanvas()},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:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},Co),aliases:{stopAnimation:"pauseAnimation"},methods:uo({graph2ScreenCoords:function(e,t,n){var r=Jr(e.canvas);return{x:t*r.k+r.x,y:n*r.k+r.y}},screen2GraphCoords:function(e,t,n){var r=Jr(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 i=Object.assign({},void 0!==t?{x:t}:{},void 0!==n?{y:n}:{});return r?new $e.ZP.Tween(o()).to(i,r).easing($e.ZP.Easing.Quadratic.Out).onUpdate(a).start():a(i),this}return o();function o(){var t=Jr(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?o().x:n,void 0===r?o().y:r),e.needsRedraw=!0}},zoom:function(e,t,n){return e.canvas?void 0!==t?(n?new $e.ZP.Tween({k:r()}).to({k:t},n).easing($e.ZP.Easing.Quadratic.Out).onUpdate((function(e){return i(e.k)})).start():i(t),this):r():null;function r(){return Jr(e.canvas).k}function i(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,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=this.getGraphBbox.apply(this,i);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},i=e.graphData.nodes.filter(t).map((function(e){return{x:e.x,y:e.y,r:r(e)}}));return i.length?{x:[(0,mi.Z)(i,(function(e){return e.x-e.r})),(0,gi.Z)(i,(function(e){return e.x+e.r}))],y:[(0,mi.Z)(i,(function(e){return e.y-e.r})),(0,gi.Z)(i,(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:[]})}},Ao),stateInit:function(){return{lastSetZoom:1,zoom:ui(),forceGraph:new xo,shadowGraph:(new xo).cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Ai}},init:function(e,t){var n=this;e.innerHTML="";var r=document.createElement("div");r.classList.add("force-graph-container"),r.style.position="relative",e.appendChild(r),t.canvas=document.createElement("canvas"),t.backgroundColor&&(t.canvas.style.background=t.backgroundColor),r.appendChild(t.canvas),t.shadowCanvas=document.createElement("canvas");var i=t.canvas.getContext("2d"),o=t.shadowCanvas.getContext("2d"),a={x:-1e12,y:-1e12},s=function(){var e=null,n=window.devicePixelRatio,r=a.x>0&&a.y>0?o.getImageData(a.x*n,a.y*n,1,1):null;return r&&(e=t.colorTracker.lookup(r.data)),e};Bn(t.canvas).call(function(){var e,t,n,r,i=di,o=fi,a=hi,s=pi,u={},c=(0,zn.Z)("start","drag","end"),l=0,d=0;function f(e){e.on("mousedown.drag",h).filter(s).on("touchstart.drag",g).on("touchmove.drag",v,Un).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(a,s){if(!r&&i.call(this,a,s)){var u=b(this,o.call(this,a,s),a,s,"mouse");u&&(Bn(a.view).on("mousemove.drag",p,Vn).on("mouseup.drag",m,Vn),qn(a.view),Gn(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function p(r){if(Kn(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>d}u.mouse("drag",r)}function m(e){Bn(e.view).on("mousemove.drag mouseup.drag",null),Wn(e.view,n),Kn(e),u.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,a=e.changedTouches,s=o.call(this,e,t),u=a.length;for(n=0;n<u;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&(Gn(e),r("start",e,a[n]))}}function v(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=u[r[t].identifier])&&(Kn(e),n("drag",e,r[t]))}function y(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<o;++t)(n=u[i[t].identifier])&&(Gn(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var s,d,h,p=c.copy(),m=Yn(o||n,t);if(null!=(h=a.call(e,new li("beforestart",{sourceEvent:n,target:f,identifier:i,active:l,x:m[0],y:m[1],dx:0,dy:0,dispatch:p}),r)))return s=h.x-m[0]||0,d=h.y-m[1]||0,function n(o,a,c){var g,v=m;switch(o){case"start":u[i]=n,g=l++;break;case"end":delete u[i],--l;case"drag":m=Yn(c||a,t),g=l}p.call(o,e,new li(o,{sourceEvent:a,subject:h,target:f,identifier:i,active:g,x:m[0]+s,y:m[1]+d,dx:m[0]-v[0],dy:m[1]-v[1],dispatch:p}),r)}}return f.filter=function(e){return arguments.length?(i="function"===typeof e?e:ci(!!e),f):i},f.container=function(e){return arguments.length?(o="function"===typeof e?e:ci(e),f):o},f.subject=function(e){return arguments.length?(a="function"===typeof e?e:ci(e),f):a},f.touchable=function(e){return arguments.length?(s="function"===typeof e?e:ci(!!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=s();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,i=e,o=Jr(t.canvas).k,a={x:r.x+(i.x-r.x)/o-n.x,y:r.y+(i.y-r.y)/o-n.y};["x","y"].forEach((function(e){return n["f".concat(e)]=n[e]=r[e]+(i[e]-r[e])/o})),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,i={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()&&t.forceGraph.d3AlphaTarget(0).resetCountdown(),t.canvas.classList.remove("grabbable"),t.isPointerDragging=!1,n.__dragged&&(delete n.__dragged,t.onNodeDragEnd(n,i))}))),t.zoom(t.zoom.__baseElem=Bn(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 r=e.transform;[i,o].forEach((function(e){Oo(e),e.translate(r.x,r.y),e.scale(r.k,r.k)})),t.onZoom&&t.onZoom(uo(uo({},r),n.centerAt())),t.needsRedraw=!0})).on("end",(function(e){return t.onZoomEnd&&t.onZoomEnd(uo(uo({},e.transform),n.centerAt()))})),So(t),t.forceGraph.onNeedsRedraw((function(){return t.needsRedraw=!0})).onFinishUpdate((function(){Jr(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 u=document.createElement("div");u.classList.add("graph-tooltip"),r.appendChild(u),["pointermove","pointerdown"].forEach((function(e){return r.addEventListener(e,(function(n){"pointerdown"===e&&(t.isPointerPressed=!0,t.pointerDownEvent=n),!t.isPointerDragging&&"pointermove"===n.type&&t.onBackgroundClick&&(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);var i=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}}(r);a.x=n.pageX-i.left,a.y=n.pageY-i.top,u.style.top="".concat(a.y,"px"),u.style.left="".concat(a.x,"px")}),{passive:!0})})),r.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 i=t["on".concat(t.hoverObj.type,"RightClick")];i&&i.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundRightClick&&t.onBackgroundRightClick.apply(t,n)}))}}),{passive:!0}),r.addEventListener("contextmenu",(function(e){return!(t.onBackgroundRightClick||t.onNodeRightClick||t.onLinkRightClick)||(e.preventDefault(),!1)})),t.forceGraph(i),t.shadowGraph(o);var c=yi()((function(){Do(o,t.width,t.height),t.shadowGraph.linkWidth((function(e){return(0,E.default)(t.linkWidth)(e)+t.linkHoverPrecision}));var e=Jr(t.canvas);t.shadowGraph.globalScale(e.k).tickFrame()}),800);t.flushShadowCanvas=c.flush,(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 r=t.isPointerDragging?null:s();if(r!==t.hoverObj){var o=t.hoverObj,a=o?o.type:null,l=r?r.type:null;if(a&&a!==l){var d=t["on".concat(a,"Hover")];d&&d(null,o.d)}if(l){var f=t["on".concat(l,"Hover")];f&&f(r.d,a===l?o.d:null)}var h=r&&(0,E.default)(t["".concat(r.type.toLowerCase(),"Label")])(r.d)||"";u.style.visibility=h?"visible":"hidden",u.innerHTML=h,t.canvas.classList[r&&t["on".concat(l,"Click")]||!r&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=r}n&&c()}if(n){Do(i,t.width,t.height);var p=Jr(t.canvas).k;t.onRenderFramePre&&t.onRenderFramePre(i,p),t.forceGraph.globalScale(p).tickFrame(),t.onRenderFramePost&&t.onRenderFramePost(i,p)}$e.ZP.update(),t.animationFrameRequestId=requestAnimationFrame(e)})()},update:function(e){}}),No={width:D().number,height:D().number,graphData:D().shape({nodes:D().arrayOf(D().object).isRequired,links:D().arrayOf(D().object).isRequired}),backgroundColor:D().string,nodeRelSize:D().number,nodeId:D().string,nodeLabel:D().oneOfType([D().string,D().func]),nodeVal:D().oneOfType([D().number,D().string,D().func]),nodeVisibility:D().oneOfType([D().bool,D().string,D().func]),nodeColor:D().oneOfType([D().string,D().func]),nodeAutoColorBy:D().oneOfType([D().string,D().func]),onNodeHover:D().func,onNodeClick:D().func,linkSource:D().string,linkTarget:D().string,linkLabel:D().oneOfType([D().string,D().func]),linkVisibility:D().oneOfType([D().bool,D().string,D().func]),linkColor:D().oneOfType([D().string,D().func]),linkAutoColorBy:D().oneOfType([D().string,D().func]),linkWidth:D().oneOfType([D().number,D().string,D().func]),linkCurvature:D().oneOfType([D().number,D().string,D().func]),linkDirectionalArrowLength:D().oneOfType([D().number,D().string,D().func]),linkDirectionalArrowColor:D().oneOfType([D().string,D().func]),linkDirectionalArrowRelPos:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticles:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticleSpeed:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticleWidth:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticleColor:D().oneOfType([D().string,D().func]),onLinkHover:D().func,onLinkClick:D().func,dagMode:D().oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:D().number,dagNodeFilter:D().func,onDagError:D().func,d3AlphaMin:D().number,d3AlphaDecay:D().number,d3VelocityDecay:D().number,warmupTicks:D().number,cooldownTicks:D().number,cooldownTime:D().number,onEngineTick:D().func,onEngineStop:D().func,getGraphBbox:D().func},Ro={zoomToFit:D().func,onNodeRightClick:D().func,onNodeDrag:D().func,onNodeDragEnd:D().func,onLinkRightClick:D().func,linkHoverPrecision:D().number,onBackgroundClick:D().func,onBackgroundRightClick:D().func,enablePointerInteraction:D().bool,enableNodeDrag:D().bool},Mo={showNavInfo:D().bool,nodeOpacity:D().number,nodeResolution:D().number,nodeThreeObject:D().oneOfType([D().object,D().string,D().func]),nodeThreeObjectExtend:D().oneOfType([D().bool,D().string,D().func]),linkOpacity:D().number,linkResolution:D().number,linkCurveRotation:D().oneOfType([D().number,D().string,D().func]),linkMaterial:D().oneOfType([D().object,D().string,D().func]),linkThreeObject:D().oneOfType([D().object,D().string,D().func]),linkThreeObjectExtend:D().oneOfType([D().bool,D().string,D().func]),linkPositionUpdate:D().func,linkDirectionalArrowResolution:D().number,linkDirectionalParticleResolution:D().number,forceEngine:D().oneOf(["d3","ngraph"]),ngraphPhysics:D().object,numDimensions:D().oneOf([1,2,3])},Po=Object.assign({},No,Ro,{linkLineDash:D().oneOfType([D().arrayOf(D().number),D().string,D().func]),nodeCanvasObjectMode:D().oneOfType([D().string,D().func]),nodeCanvasObject:D().func,nodePointerAreaPaint:D().func,linkCanvasObjectMode:D().oneOfType([D().string,D().func]),linkCanvasObject:D().func,linkPointerAreaPaint:D().func,autoPauseRedraw:D().bool,minZoom:D().number,maxZoom:D().number,enableZoomInteraction:D().bool,enablePanInteraction:D().bool,onZoom:D().func,onZoomEnd:D().func,onRenderFramePre:D().func,onRenderFramePost:D().func}),Lo=Object.assign({},No,Ro,Mo,{enableNavigationControls:D().bool,controlType:D().oneOf(["trackball","orbit","fly"]),rendererConfig:D().object,extraRenderers:D().arrayOf(D().shape({render:D().func.isRequired}))}),Fo=Object.assign({},No,Mo,{nodeDesc:D().oneOfType([D().string,D().func]),linkDesc:D().oneOfType([D().string,D().func])}),jo=Object.assign({},No,Mo,{markerAttrs:D().object,yOffset:D().number,glScale:D().number});const Ho=y(S,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"]});Ho.displayName="ForceGraphVR",Ho.propTypes=Fo;const Bo=y(j,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"],initPropNames:["markerAttrs"]});Bo.displayName="ForceGraphAR",Bo.propTypes=jo;const zo=y(gt,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","cameraPosition","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords","postProcessingComposer","scene","camera","renderer","controls","refresh"],initPropNames:["controlType","rendererConfig","extraRenderers"]});zo.displayName="ForceGraph3D",zo.propTypes=Lo;const Uo=y(Io,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Uo.displayName="ForceGraph2D",Uo.propTypes=Po},37763:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.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,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.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 i(e){return e&&e.__esModule?e:{default:e}}t.default=c;var o=n(3),a=i(n(4)),s=n(14),u=i(n(15));function c(e){var t=e.activeClassName,n=void 0===t?"":t,i=e.activeIndex,a=void 0===i?-1:i,c=e.activeStyle,l=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,h=e.className,p=e.findChunks,m=e.highlightClassName,g=void 0===m?"":m,v=e.highlightStyle,y=void 0===v?{}:v,b=e.highlightTag,E=void 0===b?"mark":b,T=e.sanitize,x=e.searchWords,_=e.textToHighlight,w=e.unhighlightClassName,k=void 0===w?"":w,C=e.unhighlightStyle,A=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"]),S=(0,o.findAll)({autoEscape:l,caseSensitive:f,findChunks:p,sanitize:T,searchWords:x,textToHighlight:_}),O=E,D=-1,I="",N=void 0,R=(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:h},A,{children:S.map((function(e,t){var r=_.substr(e.start,e.end-e.start);if(e.highlight){D++;var i=void 0;i="object"===typeof g?f?g[r]:(g=R(g))[r.toLowerCase()]:g;var o=D===+a;I=i+" "+(o?n:""),N=!0===o&&null!=c?Object.assign({},y,c):y;var u={children:r,className:I,key:t,style:N};return"string"!==typeof O&&(u.highlightIndex=D),(0,s.createElement)(O,u)}return(0,s.createElement)("span",{children:r,className:k,key:t,style:C})}))}))}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 i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.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,o=e.caseSensitive,a=void 0!==o&&o,s=e.findChunks,u=void 0===s?r:s,c=e.sanitize,l=e.searchWords,d=e.textToHighlight;return i({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,i=void 0===r?o:r,a=e.searchWords,s=e.textToHighlight;return s=i(s),a.filter((function(e){return e})).reduce((function(e,r){r=i(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(r,n?"g":"gi"),a=void 0;a=o.exec(s);){var u=a.index,c=o.lastIndex;c>u&&e.push({start:u,end:c}),a.index==o.lastIndex&&o.lastIndex++}return e}),[])};t.findChunks=r;var i=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],i=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)i(0,n,!1);else{var o=0;t.forEach((function(e){i(o,e.start,!1),i(e.start,e.end,!0),o=e.end})),i(o,n,!1)}return r};function o(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,i=e.exports={};function o(){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===o||!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:o}catch(e){n=o}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&&h())}function h(){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 p(e,t){this.fun=e,this.array=t}function m(){}i.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||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(7),i=n(8),o=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:p(r.thatReturnsNull),arrayOf:function(e){return p((function(t,n,r,i,o){if("function"!==typeof e)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<a.length;u++){var c=e(a,u,r,i,o+"["+u+"]",s);if(c instanceof Error)return c}return null}))},element:p((function(t,n,r,i,o){var a=t[n];return e(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return p((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||l;return new h("Invalid "+i+" `"+o+"` 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:p((function(e,t,n,r,i){return g(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return p((function(t,n,r,i,o){if("function"!==typeof e)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=v(a);if("object"!==u)return new h("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,i,o+"."+c,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return p((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;return new h("Invalid "+i+" `"+o+"` 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&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!==typeof i)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(i),n),r.thatReturnsNull}return p((function(t,n,r,i,o){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,i,o,s))return null;return new h("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(e){return p((function(t,n,r,i,o){var a=t[n],u=v(a);if("object"!==u)return new h("Invalid "+i+" `"+o+"` 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,i,o+"."+c,s);if(d)return d}}return null}))},exact:function(e){return p((function(t,n,r,i,o){var u=t[n],c=v(u);if("object"!==c)return new h("Invalid "+i+" `"+o+"` 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 h("Invalid "+i+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(u,d,r,i,o+"."+d,s);if(p)return p}return null}))}};function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function h(e){this.message=e,this.stack=""}function p(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function u(u,c,d,f,p,m,g){if(f=f||l,m=m||d,g!==s)if(n)i(!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 v=f+":"+d;!r[v]&&a<3&&(o(!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[v]=!0,a++)}return null==c[d]?u?null===c[d]?new h("The "+p+" `"+m+"` is marked as required in `"+f+"`, but its value is `null`."):new h("The "+p+" `"+m+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(c,d,f,p,m)}var c=u.bind(null,!1);return c.isRequired=u.bind(null,!0),c}function m(e){return p((function(t,n,r,i,o,a){var s=t[n];return v(s)!==e?new h("Invalid "+i+" `"+o+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function g(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(g);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,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!g(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(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=v(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 h.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,i,o,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,i,o,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 i=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 i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!==typeof console&&console.error(o);try{throw new Error(o)}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),o=2;o<n;o++)r[o-2]=arguments[o];i.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,i=Object.prototype.propertyIsEnumerable;function o(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(i){return!1}}()?Object.assign:function(e,t){for(var a,s,u=o(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++)i.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),i=n(9),o=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,o)}catch(h){d=h}if(i(!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():"";i(!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),i=n(8),o=n(11);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!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,i=[],o=void 0,a=!1,s=function(e,n){return t(e,i[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===i.length&&n.every(s)?o:(a=!0,r=this,i=n,o=e.apply(this,n))};return u}}])},44405:function(e,t,n){"use strict";n.d(t,{w_:function(){return c}});var r=n(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}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,i=e.attr,o=e.size,u=e.title,c=s(e,["attr","size","title"]),l=o||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,i,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!==o?r.createElement(o.Consumer,null,(function(e){return t(e)})):t(i)}},49909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(67294);t.default=function(e,t,n){var i=r.useRef(void 0);i.current&&n(t,i.current)||(i.current=t),r.useEffect(e,i.current)}},96705:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70655),i=n(85987),o=r.__importDefault(n(49909));t.default=function(e,t){o.default(e,t,i.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(70655).__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},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 i(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(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 i=e.call(this,"close",r)||this;return i.wasClean=!0,i.code=t,i.reason=n,i}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 i=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),o=i.next();!o.done;o=i.next()){var a=o.value;this._callEventListener(e,a)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}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,o(["RWS>"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?l.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,i=void 0===r?l.minReconnectionDelay:r,o=e.maxReconnectionDelay,a=void 0===o?l.maxReconnectionDelay:o,s=0;return this._retryCount>0&&(s=i*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,i=t.connectionTimeout,o=void 0===i?l.connectionTimeout:i,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()}),o))}))}}},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),i=n(20527).renderToString,o=n(18835),a=n(13322),s=n(85330);e.exports=function(e){const t=e||{},n=t.throwOnError||!1;return function(e,o){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 h;try{h=i(f,u({},t,{displayMode:d,throwOnError:!0}))}catch(p){const r=n?"fail":"message",a=[l,p.name.toLowerCase()].join(":");o[r](p.message,e.position,a),h=i(f,u({},t,{displayMode:d,throwOnError:!1,strict:"ignore"}))}e.children=c.parse(h).children}r(e,"element",a)}};const u=Object.assign,c=o().use(a,{fragment:!0,position:!1}),l="rehype-katex"},13322:function(e,t,n){"use strict";var r=n(92114),i=n(7045),o=n(92471),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,i,c=n.code,l=c.replace(/-[a-z]/g,s),d=t[l],f=void 0===d||null===d||d,h="number"===typeof f?f:f?1:0,p={line:n.startLine,column:n.startCol,offset:n.startOffset},m={line:n.endLine,column:n.endCol,offset:n.endOffset};function g(e){return e.replace(/%c(?:-(\d+))?/g,v).replace(/%x/g,y)}function v(t,r){var i=r?-parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}h&&(r=o[l]||{reason:"",description:""},(i=u.message(g(r.reason),{start:p,end:m})).source="parse-error",i.ruleId=c,i.fatal=a[h],i.note=g(r.description),i.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+c)}:null,d=new i({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),i=n(90478);e.exports=function(e){var t=e||{},n=t.createElement;function s(e,r,i){var s=e;return i&&a.has(e)&&(i=i.filter((function(e){return"\n"!==e}))),t.components&&o.call(t.components,e)&&(s=t.components[e],t.passNode&&(r.node=this)),n(s,r,i)}this.Compiler=function(e){var o=r(s,i(e),t.prefix);return"root"===e.type?(o="div"!==o.type||1===e.children.length&&"element"===e.children[0].type?[o]:o.props.children,n(t.Fragment||"div",{},o)):o}};var o={}.hasOwnProperty,a=new Set(["table","thead","tbody","tfoot","tr","th","td"])},67597:function(e){e.exports=function(e={}){return function(t,n){let r;function i(t){return function({type:t,value:i}){const o=e[t];if(!o||"function"!==typeof o)return;try{const e=o(i);if(!e)return;return r?(n.data[r]=n.data[r]||{},Object.assign(n.data[r],e)):Object.assign(n.data,e),1}catch(a){return function({message:t,column:r,line:i,name:o},a){let s=e.throws?"fail":"message";return void n[s](t,{line:i,column:r},`parseFrontMatter:${a}:${o}`)}(a,t)}}(t)?1:function({children:t}){if(!t)return;for(let n=0;n<t.length;n++){if(i(t[n]))return e.remove&&(t.splice(n,1),n--),1}return}(t)}"function"===typeof e&&(e.yaml=e),"function"!==typeof e&&e.name&&(r=e.name),i(t)}}},15941:function(e,t,n){"use strict";var r=n(7969),i=n(2215),o=n(63934);e.exports=function(e){var t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",r(e)),n("fromMarkdownExtensions",i(e)),n("toMarkdownExtensions",o(e))}},10043:function(e,t,n){"use strict";var r,i=n(82747),o=n(10438),a=n(48135);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",o),n("toMarkdownExtensions",a(e))}},93545:function(e,t,n){"use strict";var r,i=n(50444),o=n(54550),a=n(74749);e.exports=function(){var e=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-math] Warning: please upgrade to remark 13 to use this plugin"));function t(t,n){e[t]?e[t].push(n):e[t]=[n]}t("micromarkExtensions",i),t("fromMarkdownExtensions",o),t("toMarkdownExtensions",a)}},12861:function(e,t,n){"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(39671)},78818:function(e,t,n){"use strict";var r=n(55288);e.exports=function(e,t){e&&!e.process&&(t=e,e=null);return e?function(e,t){return n;function n(n,i,o){function a(e){o(e)}e.run(r(n,t),i,a)}}(e,t):function(e){return t;function t(t){return r(t,e)}}(t)}},44549:function(e,t,n){const r=n(80135),i=n(46955);function o(e){for(let t=6;t>0;t--)i(e,(e=>"heading"===e.type&&e.depth===t),a)}function a(e,t){const n=e,i=n.depth,o=t[t.length-1],a=r(o,n,(e=>"heading"===e.type&&e.depth<=i||"export"===e.type)),s=o.children.indexOf(n),u=o.children.indexOf(a),c=o.children.slice(s,u>0?u:void 0),l={type:"section",depth:i,children:c,data:{hName:"section"}};o.children.splice(s,l.children.length,l)}e.exports=function(){return o}},80135:function(e,t,n){"use strict";var r=n(34185);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},34185: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 i;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,i=-1;++i<r;)n[i]=t(e[i]);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 i(){return!0}e.exports=t},46955:function(e,t,n){"use strict";e.exports=a;var r=n(34185),i="skip",o=!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]!==o)&&e.children&&f[0]!==i&&(d=s(function(e,t){var n,r=-1,i=a?-1:1,s=(a?e.length:r)+i;for(;s>r&&s<e.length;){if((n=c(e[s],s,t))[0]===o)return n;s="number"===typeof n[1]?n[1]:s+i}}(e.children,l.concat(e))))[0]===o?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=i,a.EXIT=o},80816:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=-2,i=0,o=null,a=32;function s(e){return e<i||e===a}function u(e){return e<r}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.aliasDivider||":",n=t,r="[[",i="]]";function a(e,t,a){var c,l,d=0,f=0,h=0;return function(t){return t!==r.charCodeAt(f)?a(t):(e.enter("wikiLink"),e.enter("wikiLinkMarker"),p(t))};function p(t){return f===r.length?(e.exit("wikiLinkMarker"),function(t){if(u(t)||t===o)return a(t);return e.enter("wikiLinkData"),e.enter("wikiLinkTarget"),m(t)}(t)):t!==r.charCodeAt(f)?a(t):(e.consume(t),f++,p)}function m(t){return t===n.charCodeAt(d)?c?(e.exit("wikiLinkTarget"),e.enter("wikiLinkAliasMarker"),g(t)):a(t):t===i.charCodeAt(h)?c?(e.exit("wikiLinkTarget"),e.exit("wikiLinkData"),e.enter("wikiLinkMarker"),y(t)):a(t):u(t)||t===o?a(t):(s(t)||(c=!0),e.consume(t),m)}function g(t){return d===n.length?(e.exit("wikiLinkAliasMarker"),e.enter("wikiLinkAlias"),v(t)):t!==n.charCodeAt(d)?a(t):(e.consume(t),d++,g)}function v(t){return t===i.charCodeAt(h)?l?(e.exit("wikiLinkAlias"),e.exit("wikiLinkData"),e.enter("wikiLinkMarker"),y(t)):a(t):u(t)||t===o?a(t):(s(t)||(l=!0),e.consume(t),v)}function y(n){return h===i.length?(e.exit("wikiLinkMarker"),e.exit("wikiLink"),t(n)):n!==i.charCodeAt(h)?a(n):(e.consume(n),h++,y)}}var c={tokenize:a};return{text:{91:c}}}var l,d=n(51113),f=n.n(d);function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.permalinks||[],n=function(e){return[e.replace(/ /g,"_").toLowerCase()]},r=e.pageResolver||n,i=e.newClassName||"new",o=e.wikiLinkClassName||"internal",a=function(e){return"#/page/".concat(e)},s=e.hrefTemplate||a;function u(e){this.enter({type:"wikiLink",value:null,data:{alias:null,permalink:null,exists:null}},e)}function c(e){return e[e.length-1]}function l(e){var t=this.sliceSerialize(e);c(this.stack).data.alias=t}function d(e){var t=this.sliceSerialize(e);c(this.stack).value=t}function f(e){var n=this.exit(e),a=r(n.value),u=a.find((function(e){return-1!==t.indexOf(e)})),c=void 0!==u;c||(u=a[0]);var l=n.value;n.data.alias&&(l=n.data.alias);var d=o;c||(d+=" "+i),n.data.alias=l,n.data.permalink=u,n.data.exists=c,n.data.hName="a",n.data.hProperties={className:d,href:s(u)},n.data.hChildren=[{type:"text",value:l}]}return{enter:{wikiLink:u},exit:{wikiLinkTarget:d,wikiLinkAlias:l,wikiLink:f}}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.aliasDivider||":",n=[{character:"[",inConstruct:["phrasing","label","reference"]},{character:"]",inConstruct:["label","reference"]}];function r(e,n,r){var i,o=r.enter("wikiLink"),a=f()(r,e.value,{before:"[",after:"]"}),s=f()(r,e.data.alias,{before:"[",after:"]"});return i=s!==a?"[[".concat(a).concat(t).concat(s,"]]"):"[[".concat(a,"]]"),o(),i}return{unsafe:n,handlers:{wikiLink:r}}}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}!l&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(l=!0,console.warn("[remark-wiki-link] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",c(e)),n("fromMarkdownExtensions",h(e)),n("toMarkdownExtensions",p(e))}m.wikiLinkPlugin=m;var g=m},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"),i=new RegExp(n,""),o=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=o,e.exports.has=function(e){return!!e.match(i)},e.exports.remove=o},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 i=e.length*r;if(t!==e||"undefined"===typeof t)t=e,n="";else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,i)}},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,i=null;if(!e||"string"!==typeof e)return i;for(var o,a,s=r(e),u="function"===typeof t,c=0,l=s.length;c<l;c++)o=(n=s[c]).property,a=n.value,u?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}},81398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ue}});var r=n(99477),i=n(55061),o=n(66252),a=n(3286),s=n(54625),u=n(77729),c=n(54736),l=n.n(c),d=n(16505),f=n.n(d),h=n(44858),p=n(92539),m=n(76554),g=n(15352),v=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,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function T(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(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,t){if(e){if("string"===typeof e)return w(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)?w(e,t):void 0}}function w(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 k(e,t,n){var r=n.objBindAttr,i=void 0===r?"__obj":r,o=n.dataBindAttr,a=void 0===o?"__data":o,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]})),h=c?{enter:e,exit:f,update:[]}:function(e,t,n){var r={enter:[],update:[],exit:[]};if(n){var i=(0,v.Z)(e,n,!1),o=(0,v.Z)(t,n,!1),a=Object.assign({},i,o);Object.entries(a).forEach((function(e){var t=T(e,2),n=t[0],a=t[1],s=i.hasOwnProperty(n)?o.hasOwnProperty(n)?"update":"exit":"enter";r[s].push("update"===s?[i[n],o[n]]:a)}))}else{var s=new Set(e),u=new Set(t);new Set([].concat(x(s),x(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 h.update=h.update.map((function(e){var t=T(e,2),n=t[0],r=t[1];return n!==r&&(r[i]=n[i],r[i][a]=r),r})),h.exit=h.exit.concat(d.map((function(e){return b({},i,e)}))),h}var C=function(e,t,n,r,i){var o=i.createObj,a=void 0===o?function(e){return{}}:o,s=i.updateObj,u=void 0===s?function(e,t){}:s,c=i.exitObj,l=void 0===c?function(e){}:c,d=i.objBindAttr,f=void 0===d?"__obj":d,h=i.dataBindAttr,p=void 0===h?"__data":h,m=E(i,["createObj","updateObj","exitObj","objBindAttr","dataBindAttr"]),g=k(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:p},m)),v=g.enter,T=g.update;g.exit.forEach((function(e){var t=e[f];delete e[f],l(t),r(t)}));var _=function(e){var t=[];return e.forEach((function(e){var n=a(e);n&&(n[p]=e,e[f]=n,t.push(n))})),t}(v);!function(e){e.forEach((function(e){var t=e[f];t&&(t[p]=e,u(t,e))}))}([].concat(x(v),x(T))),_.forEach(n)},A=n(93704),S=n(59735),O=n(17621),D=n.n(O);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 N(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){P(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 R(e){return(R="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 M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 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&&j(e,t)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(){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 B(e,t,n){return(B=H()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&j(i,n.prototype),i}).apply(null,arguments)}function z(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function U(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?U(e):t}function G(e){var t=H();return function(){var n,r=F(e);if(t){var i=F(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 q(e){return function(e){if(Array.isArray(e))return $(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 $(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)?$(e,t):void 0}}function $(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())},Y=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),Y(t)}},Q=["objFilter"];function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.objFilter,i=void 0===r?function(){return!0}:r,o=z(n,Q);return C(e,t.children.filter(i),(function(e){return t.add(e)}),(function(e){t.remove(e),X(e)}),N({objBindAttr:"__threeObj"},o))}var ee=function(e){return isNaN(e)?parseInt(D()(e).toHex(),16):e},te=function(e){return isNaN(e)?D()(e).getAlpha():1},ne=(0,A.Z)(S.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 ie=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},oe={graph:l(),forcelayout:f()},ae=(new ie.BufferGeometry).setAttribute?"setAttribute":"addAttribute",se=(new ie.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(i,t);var r=G(i);function i(){var t;M(this,i);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(t=r.call.apply(r,[this].concat(a))).__kapsuleInstance=e().apply(void 0,[].concat(q(n?[U(t)]:[]),a)),t}return i}(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,h.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 i=t?n:e.layout.getNodePosition(n[e.nodeId]);r.position.x=i.x,r.position.y=i.y||0,r.position.z=i.z||0}}));var n=(0,p.default)(e.linkWidth),r=(0,p.default)(e.linkCurvature),i=(0,p.default)(e.linkCurveRotation),o=(0,p.default)(e.linkThreeObjectExtend);function a(n){var o=t?n:e.layout.getLinkPosition(e.layout.graph.getLink(n.source,n.target).id),a=o[t?"source":"from"],s=o[t?"target":"to"];if(a&&s&&a.hasOwnProperty("x")&&s.hasOwnProperty("x")){var u=r(n);if(u){var c,l=new ie.Vector3(a.x,a.y||0,a.z||0),d=new ie.Vector3(s.x,s.y||0,s.z||0),f=l.distanceTo(d),h=i(n);if(f>0){var p=s.x-a.x,m=s.y-a.y||0,g=(new ie.Vector3).subVectors(d,l),v=g.clone().multiplyScalar(u).cross(0!==p||0!==m?new ie.Vector3(0,0,1):new ie.Vector3(0,1,0)).applyAxisAngle(g.normalize(),h).add((new ie.Vector3).addVectors(l,d).divideScalar(2));c=new ie.QuadraticBezierCurve3(l,v,d)}else{var y=70*u,b=-h,E=b+Math.PI/2;c=new ie.CubicBezierCurve3(l,new ie.Vector3(y*Math.cos(E),y*Math.sin(E),0).add(l),new ie.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 i=r.__lineObj;if(i){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=o(r);if(!e.linkPositionUpdate||!e.linkPositionUpdate(l?i.children[1]:i,{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,h=i.children.length?i.children[0]:i;if("Line"===h.type){if(f)h.geometry.setFromPoints(f.getPoints(d));else{var p=h.geometry.getAttribute("position");p&&p.array&&6===p.array.length||h.geometry[ae]("position",p=new ie.BufferAttribute(new Float32Array(6),3)),p.array[0]=u.x,p.array[1]=u.y||0,p.array[2]=u.z||0,p.array[3]=c.x,p.array[4]=c.y||0,p.array[5]=c.z||0,p.needsUpdate=!0}h.geometry.computeBoundingSphere()}else if("Mesh"===h.type)if(f){h.geometry.type.match(/^Tube(Buffer)?Geometry$/)||(h.position.set(0,0,0),h.rotation.set(0,0,0),h.scale.set(1,1,1));var m=Math.ceil(10*n(r))/10/2,g=new ie.TubeBufferGeometry(f,d,m,e.linkResolution,!1);h.geometry.dispose(),h.geometry=g}else{if(!h.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)){var v=Math.ceil(10*n(r))/10/2,y=new ie.CylinderBufferGeometry(v,v,1,e.linkResolution,1,!1);y[se]((new ie.Matrix4).makeTranslation(0,.5,0)),y[se]((new ie.Matrix4).makeRotationX(Math.PI/2)),h.geometry.dispose(),h.geometry=y}var b=new ie.Vector3(u.x,u.y||0,u.z||0),E=new ie.Vector3(c.x,c.y||0,c.z||0),T=b.distanceTo(E);h.position.x=b.x,h.position.y=b.y,h.position.z=b.z,h.scale.z=T,h.parent.localToWorld(E),h.lookAt(E)}}}}}))}(),function(){var n=(0,p.default)(e.linkDirectionalArrowRelPos),r=(0,p.default)(e.linkDirectionalArrowLength),i=(0,p.default)(e.nodeVal);e.graphData.links.forEach((function(o){var a=o.__arrowObj;if(a){var s=t?o:e.layout.getLinkPosition(e.layout.graph.getLink(o.source,o.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,i(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,i(c)||1))*e.nodeRelSize,f=r(o),h=n(o),p=o.__curve?function(e){return o.__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=o.__curve?o.__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)),g=l+f+(m-l-d-f)*h,v=p(g/m),y=p((g-f)/m);["x","y","z"].forEach((function(e){return a.position[e]=y[e]}));var b=B(ie.Vector3,q(["x","y","z"].map((function(e){return v[e]}))));a.parent.localToWorld(b),a.lookAt(b)}}}))}(),function(){var n=(0,p.default)(e.linkDirectionalParticleSpeed);e.graphData.links.forEach((function(r){var i=r.__photonsObj&&r.__photonsObj.children,o=r.__singleHopPhotonsObj&&r.__singleHopPhotonsObj.children;if(o&&o.length||i&&i.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(q(i||[]),q(o||[])).forEach((function(e,t){var n="singleHopPhotons"===e.parent.__linkThreeObjType;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=n?0:t/i.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,o=l(r);["x","y","z"].forEach((function(t){return e.position[t]=o[t]}))}))}}}))}(),this},emitParticle:function(e,t){if(t){if(!t.__singleHopPhotonsObj){var n=new ie.Group;n.__linkThreeObjType="singleHopPhotons",t.__singleHopPhotonsObj=n,e.graphScene.add(n)}var r=(0,p.default)(e.linkDirectionalParticleWidth),i=Math.ceil(10*r(t))/10/2,o=e.linkDirectionalParticleResolution,a=new ie.SphereBufferGeometry(i,o,o),s=(0,p.default)(e.linkColor),u=(0,p.default)(e.linkDirectionalParticleColor)(t)||s(t)||"#f0f0f0",c=new ie.Color(ee(u)),l=3*e.linkOpacity,d=new ie.MeshLambertMaterial({color:c,transparent:!0,opacity:l});t.__singleHopPhotonsObj.add(new ie.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 i=new ie.Box3;i.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld),r.push(i)}return r.concat.apply(r,q((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,q(["x","y","z"].map((function(e){return P({},e,[(0,m.Z)(n,(function(t){return t.min[e]})),(0,g.Z)(n,(function(t){return t.max[e]}))])})))):null}},stateInit:function(){return{d3ForceLayout:(0,i.Z)().force("link",(0,o.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,p.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&n(["linkAutoColorBy","graphData","linkColor"])&&re(e.graphData.links,(0,p.default)(e.linkAutoColorBy),e.linkColor),e._flushObjects||n(["graphData","nodeThreeObject","nodeThreeObjectExtend","nodeVal","nodeColor","nodeVisibility","nodeRelSize","nodeResolution","nodeOpacity"])){var r=(0,p.default)(e.nodeThreeObject),i=(0,p.default)(e.nodeThreeObjectExtend),o=(0,p.default)(e.nodeVal),a=(0,p.default)(e.nodeColor),s=(0,p.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,o=r(t),a=i(t);return o&&e.nodeThreeObject===o&&(o=o.clone()),o&&!a?n=o:((n=new ie.Mesh).__graphDefaultObj=!0,o&&a&&n.add(o)),n.__graphObjType="node",n},updateObj:function(t,n){if(t.__graphDefaultObj){var r=o(n)||1,i=Math.cbrt(r)*e.nodeRelSize,s=e.nodeResolution;t.geometry.type.match(/^Sphere(Buffer)?Geometry$/)&&t.geometry.parameters.radius===i&&t.geometry.parameters.widthSegments===s||(c.hasOwnProperty(r)||(c[r]=new ie.SphereBufferGeometry(i,s,s)),t.geometry.dispose(),t.geometry=c[r]);var u=a(n),d=new ie.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 ie.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,p.default)(e.linkThreeObject),f=(0,p.default)(e.linkThreeObjectExtend),h=(0,p.default)(e.linkMaterial),m=(0,p.default)(e.linkVisibility),g=(0,p.default)(e.linkColor),v=(0,p.default)(e.linkWidth),y={},b={},E={},T=e.graphData.links.filter(m);if(J(T,e.graphScene,{objBindAttr:"__lineObj",purge:e._flushObjects||n(["linkThreeObject","linkThreeObjectExtend","linkWidth"]),objFilter:function(e){return"link"===e.__graphObjType},createObj:function(t){var n,r,i=d(t),o=f(t);if(i&&e.linkThreeObject===i&&(i=i.clone()),!i||o)if(!!v(t))n=new ie.Mesh;else{var a=new ie.BufferGeometry;a[ae]("position",new ie.BufferAttribute(new Float32Array(6),3)),n=new ie.Line(a)}return i?o?((r=new ie.Group).__graphDefaultObj=!0,r.add(n),r.add(i)):r=i:(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,i=Math.ceil(10*v(n))/10,o=!!i;if(o){var a=i/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(i)){var u=new ie.CylinderBufferGeometry(a,a,1,s,1,!1);u[se]((new ie.Matrix4).makeTranslation(0,.5,0)),u[se]((new ie.Matrix4).makeRotationX(Math.PI/2)),y[i]=u}r.geometry.dispose(),r.geometry=y[i]}}var c=h(n);if(c)r.material=c;else{var l=g(n),d=new ie.Color(ee(l||"#f0f0f0")),f=e.linkOpacity*te(l),p=o?"MeshLambertMaterial":"LineBasicMaterial";if(r.material.type!==p||!r.material.color.equals(d)||r.material.opacity!==f){var m=o?b:E;m.hasOwnProperty(l)||(m[l]=new ie[p]({color:d,transparent:f<1,opacity:f,depthWrite:f>=1})),r.material.dispose(),r.material=m[l]}}}}}),e.linkDirectionalArrowLength||t.hasOwnProperty("linkDirectionalArrowLength")){var x=(0,p.default)(e.linkDirectionalArrowLength),_=(0,p.default)(e.linkDirectionalArrowColor);J(T.filter(x),e.graphScene,{objBindAttr:"__arrowObj",objFilter:function(e){return"arrow"===e.__linkThreeObjType},createObj:function(){var e=new ie.Mesh(void 0,new ie.MeshLambertMaterial({transparent:!0}));return e.__linkThreeObjType="arrow",e},updateObj:function(t,n){var r=x(n),i=e.linkDirectionalArrowResolution;if(!t.geometry.type.match(/^Cone(Buffer)?Geometry$/)||t.geometry.parameters.height!==r||t.geometry.parameters.radialSegments!==i){var o=new ie.ConeBufferGeometry(.25*r,r,i);o.translate(0,r/2,0),o.rotateX(Math.PI/2),t.geometry.dispose(),t.geometry=o}t.material.color=new ie.Color(_(n)||g(n)||"#f0f0f0"),t.material.opacity=3*e.linkOpacity}})}if(e.linkDirectionalParticles||t.hasOwnProperty("linkDirectionalParticles")){var w=(0,p.default)(e.linkDirectionalParticles),k=(0,p.default)(e.linkDirectionalParticleWidth),C=(0,p.default)(e.linkDirectionalParticleColor),A={},S={};J(T.filter(w),e.graphScene,{objBindAttr:"__photonsObj",objFilter:function(e){return"photons"===e.__linkThreeObjType},createObj:function(){var e=new ie.Group;return e.__linkThreeObjType="photons",e},updateObj:function(t,n){var r,i=Math.round(Math.abs(w(n))),o=!!t.children.length&&t.children[0],a=Math.ceil(10*k(n))/10/2,s=e.linkDirectionalParticleResolution;o&&o.geometry.parameters.radius===a&&o.geometry.parameters.widthSegments===s?r=o.geometry:(S.hasOwnProperty(a)||(S[a]=new ie.SphereBufferGeometry(a,s,s)),r=S[a],o&&o.geometry.dispose());var u,c=C(n)||g(n)||"#f0f0f0",l=new ie.Color(ee(c)),d=3*e.linkOpacity;o&&o.material.color.equals(l)&&o.material.opacity===d?u=o.material:(A.hasOwnProperty(c)||(A[c]=new ie.MeshLambertMaterial({color:l,transparent:!0,opacity:d})),u=A[c],o&&o.material.dispose()),J(q(new Array(i)).map((function(e,t){return{idx:t}})),t,{idAccessor:function(e){return e.idx},createObj:function(){return new ie.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 O,D="ngraph"!==e.forceEngine;if(D){(O=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 M=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.nodeFilter,a=void 0===o?function(){return!0}:o,s=i.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,i=u(n),o=u(r);if(!c.hasOwnProperty(i))throw"Missing source node with id: ".concat(i);if(!c.hasOwnProperty(o))throw"Missing target node with id: ".concat(o);var a=c[i],s=c[o];function u(e){return"object"===R(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(q(Object.entries(c).filter((function(e){return!K(e,2)[1].skip})).map((function(e){var t=K(e,2);return P({},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,i=0,o=e.length;i<o;i++){var a=e[i];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(q(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(q(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,q(Object.values(M||[]))),F=e.dagLevelDistance||e.graphData.nodes.length/(L||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var j=function(t,n){return function(r){return t?(M[r[e.nodeId]]-L/2)*F*(n?-1:1):void 0}},H=j(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),B=j(-1!==["td","bu"].indexOf(e.dagMode),"td"===e.dagMode),z=j(-1!==["zin","zout"].indexOf(e.dagMode),"zout"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=H(e),e.fy=B(e),e.fz=z(e)}))}e.d3ForceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,u.Z)((function(t){var n=M[t[e.nodeId]]||-1;return("radialin"===e.dagMode?L-n:n)*F})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null)}else{var U=oe.graph();e.graphData.nodes.forEach((function(t){U.addNode(t[e.nodeId])})),e.graphData.links.forEach((function(e){U.addLink(e.source,e.target)})),(O=oe.forcelayout(U,N({dimensions:e.numDimensions},e.ngraphPhysics))).graph=U}for(var V=0;V<e.warmupTicks&&!(D&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()<e.d3AlphaMin);V++)O[D?"tick":"step"]();e.layout=O,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],i=n[0],o=e.slice();o[0]!==r;)o.push(o.shift());for(var a=0,s=t.slice();s[0]!==i;)if(s.push(s.shift()),a++>10)throw new Error("Unexpected state");return s.shift(),s.pop(),o.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,i=0;i<e.vertexIds.length;i++){var o,a,s,u=r[e.vertexIds[i]];0===i?(o=e.vertexIds[1],a=e.vertexIds[e.vertexIds.length-1]):i===e.vertexIds.length-1?(o=e.vertexIds[0],a=e.vertexIds[e.vertexIds.length-2]):(o=e.vertexIds[i+1],a=e.vertexIds[i-1]),s=r[a];var c=r[o].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[i])||f.push(t)})),e.neighbours=f}else n.push(e.vertexIds[i])}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,i=[],o=0;o<e.vertexIds.length;o++){var a,s,u=n[e.vertexIds[o]];0===o?(a=n[e.vertexIds[1]],s=n[e.vertexIds[e.vertexIds.length-1]]):o===e.vertexIds.length-1?(a=n[e.vertexIds[0]],s=n[e.vertexIds[e.vertexIds.length-2]]):(a=n[e.vertexIds[o+1]],s=n[e.vertexIds[o-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;i.push(f)}return i.forEach((function(e){0===e&&(r=!1)})),i.forEach(i[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,i=e.z-t.z;return n*n+r*r+i*i},r.isPointInPoly=function(e,t){for(var n=!1,r=-1,i=e.length,o=i-1;++r<i;o=r)(e[r].z<=t.z&&t.z<e[o].z||e[o].z<=t.z&&t.z<e[r].z)&&t.x<(e[o].x-e[r].x)*(t.z-e[r].z)/(e[o].z-e[r].z)+e[r].x&&(n=!n);return n},r.isVectorInPolygon=function(e,t,n){var r=1e5,i=-1e5,o=[];return t.vertexIds.forEach((function(e){r=Math.min(n[e].y,r),i=Math.max(n[e].y,i),o.push(n[e])})),!!(e.y<i+.5&&e.y>r-.5&&this.isPointInPoly(o,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 i=function(e){this.content=[],this.scoreFunction=e};i.prototype.push=function(e){this.content.push(e),this.sinkDown(this.content.length-1)},i.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},i.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))},i.prototype.size=function(){return this.content.length},i.prototype.rescoreElement=function(e){this.sinkDown(this.content.indexOf(e))},i.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}},i.prototype.bubbleUp=function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i=e+1<<1,o=i-1,a=null,s=void 0;if(o<t&&(s=this.scoreFunction(this.content[o]))<r&&(a=o),i<t&&this.scoreFunction(this.content[i])<(null===a?r:s)&&(a=i),null===a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}};var o=function(){};o.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}},o.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}},o.heap=function(){return new i((function(e){return e.f}))},o.search=function(e,t,n){this.init(e);var r=this.heap();for(r.push(t);r.size()>0;){var i=r.pop();if(i===n){for(var o=i,a=[];o.parent;)a.push(o),o=o.parent;return this.cleanUp(a),a.reverse()}i.closed=!0;for(var s=this.neighbours(e,i),u=0,c=s.length;u<c;u++){var l=s[u];if(!l.closed){var d=i.g+l.cost,f=l.visited;if(!f||d<l.g){if(l.visited=!0,l.parent=i,!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[]},o.heuristic=function(e,t){return r.distanceToSquared(e,t)},o.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),i={};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)})),i.vertices=n.vertices;var o=this._buildPolygonGroups(n);i.groups=[];var a=function(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return n};return o.forEach((function(e){var n=[];e.forEach((function(i){var o=i.neighbours.map((function(t){return a(e,t)})),s=i.neighbours.map((function(e){return t._getSharedVerticesInOrder(i,e)}));i.centroid.x=r.roundNumber(i.centroid.x,2),i.centroid.y=r.roundNumber(i.centroid.y,2),i.centroid.z=r.roundNumber(i.centroid.z,2),n.push({id:a(e,i),neighbours:o,vertexIds:i.vertexIds,centroid:i.centroid,portals:s})})),i.groups.push(n)})),i},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,i=n.get(e.vertexIds[0]),o=n.get(e.vertexIds[1]),a=n.get(e.vertexIds[2]);i.forEach((function(e){(o.has(e)||a.has(e))&&r.add(t.polygons[e])})),o.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,i=e.faceVertexUvs,o=new Map,s=0;s<r.length;s++)o.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:[]}),o.get(e.a).add(n.length-1),o.get(e.b).add(n.length-1),o.get(e.c).add(n.length-1)}));var u={polygons:n,vertices:r,faceVertexUvs:i};return n.forEach((function(e){t._buildPolygonNeighbours(e,u,o)})),u},s._getSharedVerticesInOrder=function(e,t){var n=e.vertexIds,r=t.vertexIds,i=new Set;if(n.forEach((function(e){r.includes(e)&&i.add(e)})),i.size<2)return[];i.has(n[0])&&i.has(n[n.length-1])&&n.push(n.shift()),i.has(r[0])&&i.has(r[r.length-1])&&r.push(r.shift());var o=[];return n.forEach((function(e){r.includes(e)&&o.push(e)})),o};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,i=this.portals,o=[],a=0,s=0,u=0;t=i[0].left,n=i[0].right,o.push(e=i[0].left);for(var c=1;c<i.length;c++){var l=i[c].left,d=i[c].right;if(r.triarea2(e,n,d)<=0){if(!(r.vequal(e,n)||r.triarea2(e,t,d)>0)){o.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)){o.push(n),t=e=n,n=e,s=a=u,u=a,c=a;continue}t=l,s=c}}return 0!==o.length&&r.vequal(o[o.length-1],i[i.length-1].left)||o.push(i[i.length-1].left),this.path=o,o};var c,l,d,f,h,p,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,i=Math.pow(50,2);return this.zones[e].groups.forEach((function(e,o){e.forEach((function(e){var a=r.distanceToSquared(e.centroid,t);a<i&&(n=o,i=a)}))})),n},m.prototype.getRandomNode=function(e,t,n,i){if(!this.zones[e])return new THREE.Vector3;n=n||null,i=i||0;var o=[];return this.zones[e].groups[t].forEach((function(e){n&&i?r.distanceToSquared(n,e.centroid)<i*i&&o.push(e.centroid):o.push(e.centroid)})),r.sample(o)||new THREE.Vector3},m.prototype.getClosestNode=function(e,t,n,i){void 0===i&&(i=!1);var o=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&&(!i||r.isVectorInPolygon(e,t,o))&&(a=t,s=n)})),a},m.prototype.findPath=function(e,t,n,r){var i=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=o.search(i,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 h=0;h<l.length;h++){var p=l[h+1];if(p){var m=d(l[h],p);f.push(a[m[0]],a[m[1]])}}f.push(t),f.stringPull();var g=f.path.map((function(e){return new THREE.Vector3(e.x,e.y,e.z)}));return g.shift(),g},m.prototype.clampStep=(d=new THREE.Vector3,f=new THREE.Plane,h=new THREE.Triangle,p=new THREE.Vector3,function(e,t,n,r,i,o){var a=this.zones[r].vertices,s=this.zones[r].groups[i],u=[n],m={};m[n.id]=0,c=void 0,p.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 g=u.pop();g;g=u.pop()){h.set(a[g.vertexIds[0]],a[g.vertexIds[1]],a[g.vertexIds[2]]),h.closestPointToPoint(t,d),d.distanceToSquared(t)<l&&(c=g,p.copy(d),l=d.distanceToSquared(t));var v=m[g];if(!(v>2))for(var y=0;y<g.neighbours.length;y++){var b=s[g.neighbours[y]];b.id in m||(u.push(b),m[b.id]=v+1)}}return o.copy(p),c})},31122:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(99477);function i(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 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){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}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 i=a(this).constructor;n=Reflect.construct(r,arguments,i)}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=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 h(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 h(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)?h(e,t):void 0}}function h(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 p="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 i(this,u),(e=a.call(this,new p.SpriteMaterial({map:new p.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=p.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],i=r.map((function(t){return t*e.fontSize*.1})),o=(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})))),h=this.fontSize*u.length;if(t.width=f+2*i[0]+2*s[0],t.height=h+2*i[1]+2*s[1],this.borderWidth){if(n.strokeStyle=this.borderColor,i[0]){var p=i[0]/2;n.lineWidth=i[0],n.beginPath(),n.moveTo(p,o[0]),n.lineTo(p,t.height-o[3]),n.moveTo(t.width-p,o[1]),n.lineTo(t.width-p,t.height-o[2]),n.stroke()}if(i[1]){var m=i[1]/2;n.lineWidth=i[1],n.beginPath(),n.moveTo(Math.max(i[0],o[0]),m),n.lineTo(t.width-Math.max(i[0],o[1]),m),n.moveTo(Math.max(i[0],o[3]),t.height-m),n.lineTo(t.width-Math.max(i[0],o[2]),t.height-m),n.stroke()}if(this.borderRadius){var g=Math.max.apply(Math,d(i)),v=g/2;n.lineWidth=g,n.beginPath(),[!!o[0]&&[o[0],v,v,o[0]],!!o[1]&&[t.width-o[1],t.width-v,v,o[1]],!!o[2]&&[t.width-o[2],t.width-v,t.height-v,t.height-o[2]],!!o[3]&&[o[3],v,t.height-v,t.height-o[3]]].filter((function(e){return e})).forEach((function(e){var t=l(e,4),r=t[0],i=t[1],o=t[2],a=t[3];n.moveTo(r,o),n.quadraticCurveTo(i,o,i,a)})),n.stroke()}}this.backgroundColor&&(n.fillStyle=this.backgroundColor,this.borderRadius?(n.beginPath(),n.moveTo(i[0],o[0]),[[i[0],o[0],t.width-o[1],i[1],i[1],i[1]],[t.width-i[0],t.width-i[0],t.width-i[0],i[1],o[1],t.height-o[2]],[t.width-i[0],t.width-o[2],o[3],t.height-i[1],t.height-i[1],t.height-i[1]],[i[0],i[0],i[0],t.height-i[1],t.height-o[3],o[0]]].forEach((function(e){var t=l(e,6),r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5];n.quadraticCurveTo(r,a,i,s),n.lineTo(o,u)})),n.closePath(),n.fill()):n.fillRect(i[0],i[1],t.width-2*i[0],t.height-2*i[1])),n.translate.apply(n,d(i)),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 i=(f-n.measureText(t).width)/2,o=(r+1)*e.fontSize;y&&n.strokeText(t,i,o),n.fillText(t,i,o)})),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 p.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}}])&&o(t.prototype,n),r&&o(t,r),u}(p.Sprite)},17621:function(e,t,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,u=i.round,c=i.min,l=i.max,d=i.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,u=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=B.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=B.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=B.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=B.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=B.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=B.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=B.hex8.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:H(t[4]),format:n?"name":"hex8"};if(t=B.hex6.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"};if(t=B.hex4.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=B.hex3.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(z(e.r)&&z(e.g)&&z(e.b)?(h=e.r,p=e.g,m=e.b,t={r:255*R(h,255),g:255*R(p,255),b:255*R(m,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(r=F(e.s),s=F(e.v),t=function(e,t,n){e=6*R(e,360),t=R(t,100),n=R(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),c=r%6;return{r:255*[n,s,a,a,u,n][c],g:255*[u,n,n,s,a,a][c],b:255*[a,a,u,n,n,s][c]}}(e.h,r,s),d=!0,f="hsv"):z(e.h)&&z(e.s)&&z(e.l)&&(r=F(e.s),u=F(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=R(e,360),t=R(t,100),n=R(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,u),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,m;return n=N(n),{ok:d,format:e.format||f,r:c(255,l(t.r,0)),g:c(255,l(t.g,0)),b:c(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function h(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,i,o=l(e,t,n),a=c(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,l:s}}function p(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,i,o=l(e,t,n),a=c(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,v:s}}function m(e,t,n,r){var i=[L(u(e).toString(16)),L(u(t).toString(16)),L(u(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function g(e,t,n,r){return[L(j(r)),L(u(e).toString(16)),L(u(t).toString(16)),L(u(n).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=M(n.s),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=M(n.s),f(n)}function b(e){return f(e).desaturate(100)}function E(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=M(n.l),f(n)}function T(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=l(0,c(255,n.r-u(-t/100*255))),n.g=l(0,c(255,n.g-u(-t/100*255))),n.b=l(0,c(255,n.b-u(-t/100*255))),f(n)}function x(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=M(n.l),f(n)}function _(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function w(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function k(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function A(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),i=360/n,o=[f(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(f(r));return o}function O(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[L(u(e).toString(16)),L(u(t).toString(16)),L(u(n).toString(16)),L(j(r))];if(i&&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[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*R(this._r,255))+"%",g:u(100*R(this._g,255))+"%",b:u(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*R(this._r,255))+"%, "+u(100*R(this._g,255))+"%, "+u(100*R(this._b,255))+"%)":"rgba("+u(100*R(this._r,255))+"%, "+u(100*R(this._g,255))+"%, "+u(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+g(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,o=f.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<t.length;c++)(r=f.readability(e,t[c]))>u&&(u=r,s=f(t[c]));return f.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=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"},I=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return c(1,l(0,e))}function P(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function j(e){return i.round(255*parseFloat(e)).toString(16)}function H(e){return P(e)/255}var B=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),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 z(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},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(i,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(o,(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 i=/[\W_]+(.|$)/g;var o=/(.)([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()}},28281:function(e,t,n){"use strict";var r=n(43368);e.exports=o,o.wrap=r;var i=[].slice;function o(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!==typeof o)throw new Error("Expected function as last argument, not "+o);function a(s){var u=e[++t],c=i.call(arguments,0),l=c.slice(1),d=n.length,f=-1;if(s)o(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):o.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(i);try{n=e.apply(null,a)}catch(u){if(s&&r)throw u;return i(u)}s||(n&&"function"===typeof n.then?n.then(o,i):n instanceof Error?i(n):o(n))};function i(){r||(r=!0,n.apply(null,arguments))}function o(e){i(null,e)}}},70655:function(e,t,n){"use strict";n.r(t),n.d(t,{__extends:function(){return i},__assign:function(){return o},__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 h},__values:function(){return p},__read:function(){return m},__spread:function(){return g},__spreadArrays:function(){return v},__spreadArray:function(){return y},__await:function(){return b},__asyncGenerator:function(){return E},__asyncDelegator:function(){return T},__asyncValues:function(){return x},__makeTemplateObject:function(){return _},__importStar:function(){return k},__importDefault:function(){return C},__classPrivateFieldGet:function(){return A},__classPrivateFieldSet:function(){return S}});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 i(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 o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>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(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,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 h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function p(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,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(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,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function T(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,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(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,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(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 w(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function A(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 S(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},18835:function(e,t,n){"use strict";var r=n(18869),i=n(48738),o=n(94470),a=n(33310),s=n(28281),u=n(10939);e.exports=function e(){var t,n=[],i=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=T,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):i(e)}r&&(y.settings=o(y.settings||{},r));return E;function i(e){u(e.plugins),e.settings&&(r=o(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):i(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=x(e);r?(a(r[1])&&a(t)&&(t=o(!0,r[1],t)),r[1]=t):n.push(c.call(arguments))}},E.parse=function(e){var t,n=u(e);if(T(),h("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(T(),p("stringify",n=E.Compiler),g(e),f(n,"compile"))return new n(e,r).compile();return n(e,r)},E.run=_,E.runSync=function(e,t){var n,i;return _(e,t,o),v("runSync","run",i),n;function o(e,t){i=!0,n=t,r(e)}},E.process=w,E.processSync=function(e){var t,n;return T(),h("processSync",E.Parser),p("processSync",E.Compiler),w(t=u(e),i),v("processSync","process",n),t;function i(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(o(!0,{},y)),t}function T(){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)))&&i.use(r));return t=!0,b=1/0,E}function x(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}function _(e,t,n){if(g(e),T(),n||"function"!==typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,o){i.run(e,u(t),(function(t,i,a){i=i||e,t?o(t):r?r(i):n(null,i,a)}))}r(null,n)}function w(e,t){if(T(),h("process",E.Parser),p("process",E.Compiler),!t)return new Promise(n);function n(n,r){var i=u(e);d.run(E,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}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,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);void 0===n||null===n||("string"===typeof n||i(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 h(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function p(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 g(e){if(!e||"string"!==typeof e.type)throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},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 i=r(n(62520)),o=r(n(99294)),a={idDir:"data/",useInheritance:!1,idToPath:s};function s(e){return i.default.join(e.substring(0,2),e.substring(2))}t.idUuidFolderFormat=s,t.idTsFolderFormat=function(e){return i.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 i=n.children.find((e=>"property-drawer"===e.type)),o=null===(r=null===i||void 0===i?void 0:i.children.find((e=>e.key===t)))||void 0===r?void 0:r.value;if(void 0!==o)return o}while(n);return null}t.uniorgAttach=(e={})=>{const t=Object.assign(Object.assign({},a),e);return function(e,n){(0,o.default)(e,"link",((e,n)=>{if("attachment"===e.linkType){const r=function(e,t,n,r){if(i.default.isAbsolute(e.path))return e.path;const o=u(t,"DIR",r.useInheritance);if(o)return i.default.join(o,e.path);const a=u(t,"ID",r.useInheritance);if(a){const t=r.idToPath(a);return i.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 i=r(n(62854));t.extractKeywords=(e={})=>function(t,n){i.default(t,"keyword",(t=>{let r=n.data=n.data||{};e.name&&(r=r[e.name]=r[e.name]||{});let i=t.key;e.preserveCase||(i=i.toLowerCase()),r[i]=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 i=r(n(10939)),o=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(i.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 o.default("org-data",{contentsBegin:0,contentsEnd:this.r.endOffset()},e)}parseElements(e,t){const n=[];let r=-1;for(;!this.r.eof();){const i=this.r.offset();if(i===r)throw console.log("elements:",n,"rest:",JSON.stringify(this.r.rest())),new Error("no progress (elements)");r=i;const o=this.parseElement(e,t),a=o.type,u=o.contentsBegin,c=o.contentsEnd;void 0===u||void 0===c||(s.greaterElements.has(a)?(this.r.narrow(u,c),_(o,this.parseElements(d.nextMode(e,a,!0),"plain-list"===o.type||"list-item"===o.type?o.structure:void 0)),this.r.widen(),o.structure&&delete o.structure):(this.r.narrow(u,c),_(o,this.parseObjects(s.restrictionFor(o.type))),this.r.widen())),n.push(o),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 i=0===this.r.offset()||"\n"===this.r.substring(this.r.offset()-1,this.r.offset());if(i&&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]*$/im))return this.parsePropertyDrawer();if(!i)return this.parseParagraph({});if(this.r.lookingAt(/^[ \t]*CLOCK:/))return this.parseClock();const o=this.parseAffiliatedKeywords();if(this.r.lookingAt(h))return this.parseLatexEnvironment(o);if(this.r.lookingAt(f))return this.parseDrawer(o);if(this.r.lookingAt(/[ \t]*:( |$)/m))return this.parseFixedWidth(o);{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",o);case"comment":return this.parseCommentBlock(o);case"example":return this.parseExampleBlock(o);case"export":return this.parseExportBlock(o);case"quote":return this.parseBlock("quote-block","quote",o);case"src":return this.parseSrcBlock(o);case"verse":return this.parseBlock("verse-block","verse",o);default:return this.parseSpecialBlock(o)}}return this.r.lookingAt(/^\S+:/)?(this.r.resetOffset(e),this.parseKeyword(o)):(this.r.resetOffset(e),this.parseParagraph(o))}}if(this.r.lookingAt(T))return this.parseFootnoteDefinition(o);if(this.r.lookingAt(/^[ \t]*-{5,}[ \t]*$/m))return this.parseHorizontalRule(o);if(this.r.lookingAt(/^%%\(/))return this.parseDiarySexp(o);const a=/[ \t]*\+(-+\+)+[ \t]*$/m;if(this.r.lookingAt(/^[ \t]*\|/))return this.parseTable(o);if(this.r.lookingAt(a)){const e=this.r.offset();this.r.advance(this.r.line());const t=this.r.offset(),i=null!==(r=null===(n=this.r.match(/^[ \t]*($|[^|])/m))||void 0===n?void 0:n.index)&&void 0!==r?r:null;this.r.advance(i);const s=this.r.offset()>t&&this.r.lookingAt(a);if(this.r.resetOffset(e),s)return this.parseTable(o)}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,o)}return this.parseParagraph(o)}parseObjects(e){const t=[];let n=this.r.offset();for(;!this.r.eof();){const r=this.r.offset(),i=this.parseObject(e);if(!i)break;if(this.r.offset()===r)throw new Error(`no progress (parseObject): ${JSON.stringify(i)}, text: ${JSON.stringify(this.r.rest())}, objects: ${JSON.stringify(t,null,2)}`);const[a,u]=i;if(a!==n){const e=this.r.substring(n,a);t.push(o.default("text",{value:e}))}const c=u.contentsBegin,l=u.contentsEnd;void 0!==c&&void 0!==l&&(this.r.narrow(c,l),_(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(o.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(),i=this.tryParseObject(e);if(i){if(r===this.r.offset())throw new Error("no progress (tryParseObject)");return[r,i]}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),o.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 i=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),h=null!==(n=null===f||void 0===f?void 0:f[2].split(":"))&&void 0!==n?n:[],p=f?d+f.index+f[1].length:d+this.r.forceLookingAt(/.*/)[0].length,m=this.r.substring(d,p),g=d,v=p;return this.r.widen(),this.parseEmptyLines(),o.default("headline",{level:i,todoKeyword:s,priority:c,commented:l,rawValue:m,tags:h,contentsBegin:g,contentsEnd:v},[])}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 i=r[1],o=this.parseTimestamp();"SCHEDULED:"===i&&(e=o),"DEADLINE:"===i&&(t=o),"CLOSED:"===i&&(n=o)}return this.r.widen(),this.r.advance(this.r.line()),this.parseEmptyLines(),o.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]*$/im);this.r.advance(t.index);const n=this.r.offset();return this.r.advance(this.r.line()),this.parseEmptyLines(),o.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 i=this.r.offset(),a=i+this.r.line().length,s=i+r.index;this.r.resetOffset(s),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return o.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)),o.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 o.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 o.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:i,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 o.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 o.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,i=this.r.offset(),a=i+this.r.line().length,u=i+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 o.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(),i=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 o.default("special-block",{affiliated:e,blockType:t,contentsBegin:i,contentsEnd:a},[])}parseAffiliatedKeywords(){var e,t,n,r;const i=this.r.offset(),o={};for(;!this.r.eof();){const i=this.r.lookingAt(b);if(!i)break;const a=(null!==(t=null!==(e=i.groups.dualKeyword)&&void 0!==e?e:i.groups.regularKeyword)&&void 0!==t?t:i.groups.attributeKeyword).toUpperCase(),u=null!==(n=y[a])&&void 0!==n?n:a,c=g.has(u);this.r.advance(i),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=i.groups.dualValue)&&void 0!==r?r:null,f=null===d?l:[l,d];v.has(u)||u.match(/^ATTR_/)?(o[u]=o[u]||[],o[u].push(f)):o[u]=f}return this.r.lookingAt(/^[ \t]*$/m)?(this.r.resetOffset(i),{}):o}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(),o.default("keyword",{affiliated:e,key:n,value:r})}parseLatexEnvironment(e){const t=this.r.offset(),n=this.r.advance(this.r.forceLookingAt(h))[1],r=this.r.match(p(n));if(!r)return this.r.resetOffset(t),this.parseParagraph(e);this.r.advance(r);const i=this.r.offset();this.parseEmptyLines();const a=this.r.substring(t,i);return o.default("latex-environment",{affiliated:e,value:a})}parseDrawer(e){const t=this.r.match(/^[ \t]*:END:[ \t]*$/im);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 i=this.r.offset();return this.r.resetOffset(n),this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("drawer",{affiliated:e,name:r,contentsBegin:i,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(),o.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()),o.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]*$/im)){this.r.advance(this.r.line());continue}break}const t=this.r.lookingAt(h);if(t){const e=t[1];if(!this.r.match(p(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(),o.default("paragraph",{affiliated:e,contentsBegin:t,contentsEnd:r},[])}parseFootnoteDefinition(e){var t;const n=this.r.forceLookingAt(T)[1],r=this.r.offset();this.r.advance(this.r.line());const i=this.r.match(x);this.r.advance(null===i||void 0===i?void 0:i.index);let a=i?this.r.offset():this.r.endOffset();if(i&&"["===i[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(),o.default("footnote-definition",{affiliated:e,label:n,contentsBegin:s,contentsEnd:a},[])}parseHorizontalRule(e){return this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("horizontal-rule",{affiliated:e})}parseDiarySexp(e){const t=this.r.forceLookingAt(/^(%%\(.*)[ \t]*$/m)[1];return this.r.advance(this.r.line()),this.parseEmptyLines(),o.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"),i=this.r.match(r),a=i?t+i.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?o.default("table",{tableType:n,tblfm:s,contentsBegin:t,contentsEnd:a},[]):o.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()),o.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 o.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 i=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===i));if(!t)break;s=t.end}const u=s;return this.r.resetOffset(u),o.default("plain-list",{affiliated:t,indent:i,listType:a,contentsBegin:n,contentsEnd:u,structure:e},[])}parseListItem(e){var t,n;const r=this.r.offset(),i=this.r.advance(this.r.forceMatch(this.re.fullListItemRe())),a=i.groups.bullet,s=null!==(t=i.groups.counter)&&void 0!==t?t:null,u="[ ]"===i.groups.checkbox?"off":"[x]"===(null===(n=i.groups.checkbox)||void 0===n?void 0:n.toLowerCase())?"on":"[-]"===i.groups.checkbox?"trans":null,c=e.find((e=>e.begin===r)),l=this.r.offset(),d=c.end;return this.r.resetOffset(d),o.default("list-item",{indent:c.indent,bullet:a,counter:s,checkbox:u,contentsBegin:l,contentsEnd:d,structure:e},c.tag?[c.tag]:[])}parseListStructure(){var e,t,n,r,i,a,u,c,l;const d=[],h=[];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 f=e.groups.indent.length;for(;d.length&&d[d.length-1].indent>=f;){const e=d.pop();e.end=this.r.offset(),h.push(e)}const p=this.r.forceMatch(this.re.fullListItemRe()),{bullet:m,counter:g,checkbox:v}=p.groups;if(0===f&&m.startsWith("*"))break;let y=null;if(void 0!==p.groups.tag){const e=this.r.offset()+(null!==(n=null===(t=p.groups.indent)||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=p.groups.bullet)||void 0===r?void 0:r.length)&&void 0!==i?i:0)+(null!==(u=null===(a=p.groups.counter_group)||void 0===a?void 0:a.length)&&void 0!==u?u:0)+(null!==(l=null===(c=p.groups.checkbox_group)||void 0===c?void 0:c.length)&&void 0!==l?l:0),d=e+p.groups.tag.length;this.r.narrow(e,d),y=o.default("list-item-tag",{},this.parseObjects(s.restrictionFor("list-item"))),this.r.widen()}const b={begin:this.r.offset(),indent:f,bullet:m,counter:null!==g&&void 0!==g?g:null,checkbox:null!==v&&void 0!==v?v: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(),h.push(e)}if(!d.length)break;const t=this.r.lookingAt(/[ \t]*#\+begin(:|_\S+)/i);t?this.r.advance(this.r.match(new RegExp(`^[ \\t]*#\\+end${t[1]}[ \\t]*`,"im"))):this.r.lookingAt(f)&&this.r.advance(this.r.match(/^[ \t]*:END:[ \t]*$/im)),this.r.advance(this.r.line())}}this.parseEmptyLines();const p=this.r.offset();return d.forEach((e=>{e.end=p})),h.push(...d),h.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,i=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return o.default("superscript",{contentsBegin:i,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,i=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return o.default("subscript",{contentsBegin:i,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),o.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),o.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),o.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),o.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),o.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),o.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?o.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 i=this.r.offset();if(t===i)return null;const a=this.r.substring(t,i);return o.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 i=this.r.offset(),a=t+n.index+n[0].length,s=i-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?o.default("footnote-reference",{label:c,footnoteType:u,contentsBegin:a,contentsEnd:s},[]):o.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 i=n.groups.link.replace(/[ \t]*\n[ \t]*/m," ").replace(/(\\+)([\[\]])/g,((e,t)=>"\\".repeat(e.length/2)+t)),{linkType:a,path:s}=this.linkType(i);return o.default("link",Object.assign({format:"bracket",linkType:a,rawLink:i,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 o.default("link",{format:"plain",linkType:e[1],rawLink:e[0],path:e[2]},[])}const i=new RegExp(`<${this.re.linkTypesRe()}([^>\\n]*(?:\\n[ \\t]*[^> \\t\\n][^>\\n]*)*)>`),a=this.r.advance(this.r.lookingAt(i));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 o.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],i=n[1],a=n[3],s=!!n[2];let u=null;if(!s){const e=i.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(i),f=l?a?d.parseDate(a):u?Object.assign(Object.assign({},l),u):null:null;return o.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,h=/^[ \t]*\\begin\{([A-Za-z0-9*]+)\}/i,p=e=>new RegExp(`\\\\end\\{${s.escapeRegExp(e)}\\}[ \\t]*$`,"mi"),m=new Set(["RESULTS","CAPTION"]),g=new Set(["CAPTION"]),v=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]+)\])/,T=/^\[fn:([-_\w]+)\]/,x=/^\*|^\[fn:([-_\w]+)\]|^([ \t]*\n){2,}/m;function _(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,i,o,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 h=f(n(14787));t.Reader=class{constructor(e){r.set(this,void 0),i.set(this,void 0),o.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,i,e),l(this,o,h.default(e))}message(e,t,n){const r=void 0!==t?d(this,o).toPoint(t):void 0;d(this,i).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,i=new WeakMap,o=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 i=`[^${e}${t}]*?`;let o=`(?:${i}${e}${i}${t})+${i}`,a=i;for(let s=1;s<n;s++)a=`${a}|${o}`,o=`(?:${i}${e}${o}${t})+${i}`;return`${e}(${r?`?<${r}>`:""}${a})${t}`}}emphRe(){return this.emphTemplate("*/_+")}verbatimRe(){return this.emphTemplate("=~")}emphTemplate(e){const{pre:t,post:n,border:r,newline:i,body:o}=this.options.emphasisRegexpComponents;return new RegExp([`([${t}]|^)`,`(([${e}])([^${r}]|[^${r}]${i<=0?o:`${o}*?(?:\\n${o}*?){0,${i}}`}[^${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 i=new Set(r);i.delete("line-break");const o=new Set(r);return o.delete("footnote-reference"),{bold:r,"footnote-reference":r,headline:i,inlinetask:i,italic:r,"list-item":i,keyword:o,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 i=r(n(50914)),o=r(n(31742)),a={imageFilenameExtensions:["png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm","pnm","svg"],useSections:!1,footnotesSection:e=>[u(null,"h1",{},"Footnotes:"),...e]},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 i;const a=o.default(t,n||{},r||[]),s=null===(i=null===e||void 0===e?void 0:e.data)||void 0===i?void 0:i.hProperties;return s&&(a.properties=Object.assign({},a.properties,s)),a}t.orgToHast=function(e,t={}){const n=Object.assign(Object.assign({},a),t),r={footnotesOrder:[],footnotes:{}};return function e(o){var a;if(Array.isArray(o))return o.map(e).filter((e=>null!==e&&void 0!==e)).flatMap((e=>Array.isArray(e)?e:[e]));const l=o;switch(l.type){case"org-data":const o=e(l.children),d=r.footnotesOrder.map(((t,n)=>{const i=r.footnotes[t];return i?u(l,"div",{className:"footnote-definition"},[u(null,"sup",{},u(null,"a",{className:"footnum",id:`fn.${n+1}`,href:`#fnr.${n+1}`,role:"doc-backlink"},String(n+1))),u(l,"div",{className:"footdef",role:"doc-footnote"},e(i.children))]):null})).filter((e=>null!==e));return 0!==d.length&&(t.useSections?o.push(u(null,"section",{},n.footnotesSection(d))):o.push(...n.footnotesSection(d))),{type:"root",children:o};case"section":{const t=l.children[0];if(t.commented||t.tags.includes("noexport"))return null;const r=e(l.children);return n.useSections?u(l,"section",{class:`section-level-${t.level}`},r):r}case"headline":{const t=(e,t)=>e.flatMap((e=>[t,e])).slice(1),n=l.todoKeyword?[u(l,"span",{className:["todo-keyword",l.todoKeyword]},l.todoKeyword)," "]:null,r=l.priority?[u(l,"span",{className:["priority",`priority-${l.priority}`]},`[${l.priority}]`)," "]:null,o=l.tags.length?[i.default("text",{value:"\xa0\xa0\xa0"}),u(l,"span.tags",{},t(l.tags.map((e=>u(l,"span.tag",{className:`tag-${e}`},e))),"\xa0"))]:null;return u(l,`h${l.level}`,{},[n,r,e(l.children),o].filter((e=>e)))}case"plain-list":return"unordered"===l.listType?u(l,"ul",{},e(l.children)):"ordered"===l.listType?u(l,"ol",{},e(l.children)):u(l,"dl",{},e(l.children));case"list-item":return"list-item-tag"===(null===(a=l.children[0])||void 0===a?void 0:a.type)?[u(l,"dt",{},e(l.children[0].children)),u(l,"dd",{},e(l.children.slice(1)))]:u(l,"li",{},e(l.children));case"quote-block":return u(l,"blockquote",{},e(l.children));case"src-block":return u(l,"pre.src-block",{},u(l,"code",{className:l.language?`language-${l.language}`:void 0},c(l.value)));case"verse-block":return u(l,"pre.verse",{},e(l.children));case"center-block":return u(l,"div.center",{},e(l.children));case"comment-block":return null;case"example-block":return u(l,"div.exampe",{},l.value);case"export-block":return"html"===l.backend?i.default("raw",l.value):null;case"special-block":return s.has(l.blockType)?u(l,l.blockType,e(l.children)):u(l,"div",{className:["special-block",`block-${l.blockType}`]},e(l.children));case"keyword":return"HTML"===l.key?i.default("raw",l.value):null;case"horizontal-rule":return u(l,"hr",{});case"diary-sexp":return null;case"footnote-reference":let f=0,h="";if("inline"===l.footnoteType)f=r.footnotesOrder.length,r.footnotesOrder.push(f),r.footnotes[f]=l,h=`fnr.${f+1}`;else{if("standard"!==l.footnoteType)throw new Error(`unknown footnoteType: ${l.footnoteType}`);f=r.footnotesOrder.findIndex((e=>e===l.label)),-1===f&&(f=r.footnotesOrder.length,r.footnotesOrder.push(l.label),h=`fnr.${f+1}`)}return u(null,"sup",{},u(l,"a",{href:`#fn.${f+1}`,className:["footref"],id:h,role:"doc-backlink"},String(f+1)));case"footnote-definition":return r.footnotes[l.label]=l,null;case"paragraph":return u(l,"p",{},e(l.children));case"bold":return u(l,"strong",{},e(l.children));case"italic":return u(l,"em",{},e(l.children));case"superscript":return u(l,"sup",{},e(l.children));case"subscript":return u(l,"sub",{},e(l.children));case"code":return u(l,"code.inline-code",{},l.value);case"verbatim":return u(l,"code.inline-verbatim",{},l.value);case"strike-through":return u(l,"del",{},e(l.children));case"underline":return u(l,"span.underline",{style:"text-decoration: underline;"},e(l.children));case"text":return l.value;case"link":{let t=l.rawLink;"file"===l.linkType&&(t=encodeURI(t));const r=new RegExp(`.(${n.imageFilenameExtensions.join("|")})$`);return t.match(r)?u(l,"img",{src:t}):u(l,"a",{href:t},l.children.length?e(l.children):l.rawLink)}case"timestamp":return u(l,"span.timestamp",{},l.rawValue);case"planning":case"property-drawer":case"drawer":case"comment":return null;case"fixed-width":return u(l,"pre.fixed-width",{},l.value);case"clock":return null;case"latex-environment":return u(l,"div.math.math-display",{},l.value);case"latex-fragment":return u(l,"span.math.math-inline",{},l.contents.trim());case"entity":return i.default("text",{value:l.utf8});case"table":{if("table.el"===l.tableType)return u(l,"pre.table-el",{},l.value);const t=u(l,"table",{},[]);let n=!1,r=[];return l.children.forEach((i=>{"rule"===i.rowType&&(n?t.children.push(u(l,"tbody",e(r))):(t.children.push(u(l,"thead",{},r.map((t=>u(t,"tr",{},t.children.map((t=>u(t,"th",e(t.children))))))))),n=!0),r=[]),r.push(i)})),r.length&&t.children.push(u(l,"tbody",e(r))),t}case"table-row":return"standard"===l.rowType?u(l,"tr",e(l.children)):null;case"table-cell":return u(l,"td",e(l.children));default:return l}}(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(e){return function(t){return r.orgToHast(t,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 i=r(n(62854)),o=r(n(69671)),a=n(29033);t.uniorgSlug=(e={})=>function(e,t){const n=new o.default;i.default(e,"section",(e=>{var t;const r=e.children[0],i=r.data=r.data||{},o=i.hProperties=i.hProperties||{};if(!o.id){const i=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));o.id=i}}))},t.default=t.uniorgSlug},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 i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},61744:function(e){"use strict";e.exports=function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}},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 i;function i(){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},77361:function(e){"use strict";var t=i("start"),n=i("end");function r(e){return{start:t(e),end:n(e)}}function i(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=r,r.start=t,r.end=n},75432:function(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"===typeof e||(e={}),i(e.line)+":"+i(e.column)}function r(e){return e&&"object"===typeof e||(e={}),n(e.start)+"-"+n(e.end)}function i(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),i=n(66750),o=!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 h,p="object"===typeof r&&null!==r?r:{};"string"===typeof p.type&&(h="string"===typeof p.tagName?p.tagName:"string"===typeof p.name?p.name:void 0,m.displayName="node ("+i(p.type+(h?"<"+h+">":""))+")");return m;function m(){var i,h,p=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[o,e];return[e]}(n(r,f)))[0]===s)return m;if(r.children&&m[0]!==a)for(h=(u?r.children.length:-1)+c;h>-1&&h<r.children.length;){if((i=e(r.children[h],h,p)())[0]===s)return i;h="number"===typeof i[1]?i[1]:h+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),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"===typeof t&&"function"!==typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},7520:function(e,t,n){"use strict";var r,i=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)}!function(e){e.Undo="UNDO",e.Redo="REDO",e.Set="SET",e.Reset="RESET"}(r||(r={}));var a={past:[],present:null,future:[]},s=function(e,t){var n=e.past,i=e.present,o=e.future;switch(t.type){case r.Undo:if(0===n.length)return e;var a=n[n.length-1];return{past:n.slice(0,n.length-1),present:a,future:[i].concat(o)};case r.Redo:if(0===o.length)return e;var s=o[0],u=o.slice(1);return{past:[].concat(n,[i]),present:s,future:u};case r.Set:var c=t.newPresent;return c===i?e:{past:[].concat(n,[i]),present:c,future:[]};case r.Reset:return{past:[],present:t.newPresent,future:[]}}};t.Z=function(e){var t=(0,i.useReducer)(s,o({},a,{present:e})),n=t[0],u=t[1],c=0!==n.past.length,l=0!==n.future.length,d=(0,i.useCallback)((function(){c&&u({type:r.Undo})}),[c]),f=(0,i.useCallback)((function(){l&&u({type:r.Redo})}),[l]);return[n,{set:(0,i.useCallback)((function(e){return u({type:r.Set,newPresent:e})}),[]),reset:(0,i.useCallback)((function(e){return u({type:r.Reset,newPresent:e})}),[]),undo:d,redo:f,canUndo:c,canRedo:l}]}},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:i,toPosition:i,toOffset:function(e){var t,r=e&&e.line,i=e&&e.column;isNaN(r)||isNaN(i)||!(r-1 in n)||(t=(n[r-2]||0)+i-1||0);return t>-1&&t<n[n.length-1]?t:-1}};function i(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 i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"===typeof t&&(n=t,t=null),i=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),o=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=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},10939:function(e,t,n){"use strict";e.exports=n(65905)},45442:function(e,t,n){"use strict";var r=n(28064),i=n(54228),o=n(48738);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||o(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=i.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),i=n(45442);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);this.path&&(i.name=this.path+":"+i.name,i.file=this.path);return i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.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,i="",o=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(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=u,s=0;continue}}else if(i.length){i="",o=0,a=u,s=0;continue}t&&(i=i.length?i+"/..":"..",o=2)}else i.length?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===n&&s>-1?s++:s=-1}return i}(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,i,o,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(o){s=n+1;break}}else u<0&&(o=!0,u=n+1);return u<0?"":e.slice(s,u)}if(t===e)return"";i=-1,a=t.length-1;for(;n--;)if(47===e.charCodeAt(n)){if(o){s=n+1;break}}else i<0&&(o=!0,i=n+1),a>-1&&(e.charCodeAt(n)===t.charCodeAt(a--)?a<0&&(u=n):(a=-1,u=i));s===u?u=i:u<0&&(u=e.length);return e.slice(s,u)},t.dirname=function(e){var t,n,i;if(r(e),!e.length)return".";t=-1,i=e.length;for(;--i;)if(47===e.charCodeAt(i)){if(n){t=i;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,i,o=-1,a=0,s=-1,u=0;r(e),i=e.length;for(;i--;)if(47!==(n=e.charCodeAt(i)))s<0&&(t=!0,s=i+1),46===n?o<0?o=i:1!==u&&(u=1):o>-1&&(u=-1);else if(t){a=i+1;break}if(o<0||s<0||0===u||1===u&&o===s-1&&o===a+1)return"";return e.slice(o,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"/"}},22663:function(e){function t(e){return e}e.exports=function(e,n){if(null==e)return e;var r=(n=n||{}).width||50,i="string"===typeof n.indent?n.indent:" ",o=n.newline||"\n"+i,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=i+(e.match(u)||[]).map((function(e){return"\n"===e.slice(-1)&&(e=e.slice(0,e.length-1)),a(e)})).join(o);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 i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},56586: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}})},30266:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return i}})},10219:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},80318:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(16988);function i(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){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(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.")}()}},83789:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(56586);var i=n(16988);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.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.")}()}},16988:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(56586);function i(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}}},76947: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"]')},99640: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"}')},92471: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"}}')},70006: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/"}')}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/911-811443f68e27e1fd4f52.js b/out/_next/static/chunks/911-811443f68e27e1fd4f52.js
deleted file mode 100644
index 55eacfa..0000000
--- a/out/_next/static/chunks/911-811443f68e27e1fd4f52.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[911],{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),i=n(90063),o=n(2326),a=n(55284),s=n(29676),u=n(89384),c=n(15267),l=n(84461),f=n(73808),d=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 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 x(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var[T,k,O,C]=(0,m.n)();function A(e){var{onChange:t,defaultIndex:n,index:r,allowMultiple:i,allowToggle:o}=e,a=x(e,["onChange","defaultIndex","index","allowMultiple","allowToggle"]);!function(e){var t=e.index||e.defaultIndex,n=!(0,f.o8)(t)&&!(0,f.kJ)(t)&&e.allowMultiple;(0,d.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,d.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:()=>i?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,f.kJ)(l)?l.includes(e):l===e);return{isOpen:t,onChange:t=>{if(null!==e)if(i&&(0,f.kJ)(l)){var n=t?(0,E.jX)(l,e):(0,E.cl)(l,e);p(n)}else t?p(e):o&&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,i=x(e,["isDisabled","isFocusable","id"]),{getAccordionItemProps:o,setFocusedIndex:a}=M(),s=(0,h.useRef)(null),[u,c]=(0,y.ZS)(r,"accordion-button","accordion-panel");!function(e){(0,d.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:f,index:p,descendants:m}=C({disabled:t&&!n}),{isOpen:v,onChange:g}=o(-1===p?null:p);!function(e){(0,d.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]),T=(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]),k=(0,h.useCallback)((()=>{a(p)}),[a,p]),O=(0,h.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),w({},e,{type:"button",ref:(0,b.l)(f,s,n),id:u,disabled:!!t,"aria-expanded":!!v,"aria-controls":c,onClick:(0,d.v0)(e.onClick,E),onFocus:(0,d.v0)(e.onFocus,k),onKeyDown:(0,d.v0)(e.onKeyDown,T)})}),[u,t,v,E,k,T,c,f]),A=(0,h.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),w({},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:i}}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var N=(0,i.G)(((e,t)=>{var{children:n,reduceMotion:r}=e,i=P(e,["children","reduceMotion"]),c=(0,o.j)("Accordion",i),f=A((0,a.Lr)(i)),{htmlProps:d,descendants:p}=f,m=P(f,["htmlProps","descendants"]),v=h.useMemo((()=>I({},m,{reduceMotion:!!r})),[m,r]);return h.createElement(T,{value:p},h.createElement(S,{value:v},h.createElement(s.Fo,{value:c},h.createElement(u.m$.div,I({ref:t},d,{className:(0,l.cx)("chakra-accordion",i.className)}),n))))}));f.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,i.G)(((e,t)=>{var{children:n,className:r}=e,i=D(e),{htmlProps:o}=i,a=P(i,["htmlProps"]),c=I({},(0,s.yK)().container,{overflowAnchor:"none"}),f=h.useMemo((()=>a),[a]);return h.createElement(R,{value:f},h.createElement(u.m$.div,I({ref:t},o,{className:(0,l.cx)("chakra-accordion__item",r),__css:c}),(0,d.Pu)(n,{isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled})))}));f.Ts&&(j.displayName="AccordionItem");var F=(0,i.G)(((e,t)=>{var{getButtonProps:n}=L(),r=n(e,t),i=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:i}))}));f.Ts&&(F.displayName="AccordionButton");var B=(0,i.G)(((e,t)=>{var{reduceMotion:n}=M(),{getPanelProps:r,isOpen:i}=L(),o=r(e,t),a=(0,l.cx)("chakra-accordion__panel",e.className),f=(0,s.yK)();n||delete o.hidden;var d=h.createElement(u.m$.div,I({},o,{__css:f.panel,className:a}));return n?d:h.createElement(c.U,{in:i},d)}));f.Ts&&(B.displayName="AccordionPanel");var H=e=>{var{isOpen:t,isDisabled:n}=L(),{reduceMotion:i}=M(),o=(0,l.cx)("chakra-accordion__icon",e.className),a=I({opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?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:o,__css:a},e),h.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};f.Ts&&(H.displayName="AccordionIcon")},40419:function(e,t,n){"use strict";t.__esModule=!0,t.ButtonGroup=t.useButtonGroup=void 0;var r=n(48121),i=n(66751),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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.createContext)({strict:!1,name:"ButtonGroupContext"}),l=c[0],f=c[1];t.useButtonGroup=f;var d=(0,r.forwardRef)((function(e,t){var n=e.size,o=e.colorScheme,s=e.variant,c=e.className,f=e.spacing,d=void 0===f?"0.5rem":f,p=e.isAttached,h=e.isDisabled,m=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),v=(0,i.cx)("chakra-button__group",c),g=a.useMemo((function(){return{size:n,colorScheme:o,variant:s,isDisabled:h}}),[n,o,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:d}}),a.createElement(l,{value:g},a.createElement(r.chakra.div,u({ref:t,role:"group",__css:y,className:v},m)))}));t.ButtonGroup=d,i.__DEV__&&(d.displayName="ButtonGroup")},24686:function(e,t,n){"use strict";t.__esModule=!0,t.Button=void 0;var r=n(19277),i=n(90716),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}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 d=(0,o.forwardRef)((function(e,t){var n,i=(0,u.useButtonGroup)(),c=(0,o.useStyleConfig)("Button",f({},i,e)),d=(0,o.omitThemingProps)(e),m=d.isDisabled,v=void 0===m?null==i?void 0:i.isDisabled:m,g=d.isLoading,y=d.isActive,b=d.isFullWidth,E=d.children,_=d.leftIcon,w=d.rightIcon,x=d.loadingText,T=d.iconSpacing,k=void 0===T?"0.5rem":T,O=d.type,C=d.spinner,A=d.spinnerPlacement,S=void 0===A?"start":A,M=d.className,D=d.as,I=l(d,["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=f({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:b?"100%":"auto"},c,!!i&&{_focus:P}),R=function(e){var t=s.useState(!e),n=t[0],r=t[1],i=s.useCallback((function(e){e&&r("BUTTON"===e.tagName)}),[]),o=n?"button":void 0;return{ref:i,type:o}}(D),L=R.ref,j=R.type;return s.createElement(o.chakra.button,f({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:k},_),g&&"start"===S&&s.createElement(h,{className:"chakra-button__spinner--start",label:x,placement:"start"},C),g?x||s.createElement(o.chakra.span,{opacity:0},E):E,g&&"end"===S&&s.createElement(h,{className:"chakra-button__spinner--end",label:x,placement:"end"},C),w&&!g&&s.createElement(p,{marginStart:k},w))}));t.Button=d,a.__DEV__&&(d.displayName="Button");var p=function(e){var t=e.children,n=e.className,r=l(e,["children","className"]),i=s.isValidElement(t)?s.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,u=(0,a.cx)("chakra-button__icon",n);return s.createElement(o.chakra.span,f({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:u}),i)};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(i.Spinner,{color:"currentColor",width:"1em",height:"1em"}):u,d=e.className,p=e.__css,h=l(e,["label","placement","spacing","children","className","__css"]),m=(0,a.cx)("chakra-button__spinner",d),v=f(((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(o.chakra.div,f({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),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i=e.isRound,s=e["aria-label"],c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["icon","children","isRound","aria-label"]),l=n||r,f=o.isValidElement(l)?o.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return o.createElement(a.Button,u({padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":s},c),f)}));t.IconButton=c,i.__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 i=n(40419);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(84175);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},67101:function(e,t,n){"use strict";n.d(t,{i:function(){return f},h:function(){return d}});var r=n(90063),i=n(89384),o=n(84461),a=n(73808),s=n(28500),u=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[l,f]=(0,s.k)({strict:!1,name:"ButtonGroupContext"}),d=(0,r.G)(((e,t)=>{var{size:n,colorScheme:r,variant:a,className:s,spacing:f="0.5rem",isAttached:d,isDisabled:p}=e,h=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),m=(0,o.cx)("chakra-button__group",s),v=u.useMemo((()=>({size:n,colorScheme:r,variant:a,isDisabled:p})),[n,r,a,p]),g={display:"inline-flex"};return g=c({},g,d?{"> *: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}}),u.createElement(l,{value:v},u.createElement(i.m$.div,c({ref:t,role:"group",__css:g,className:m},h)))}));a.Ts&&(d.displayName="ButtonGroup")},49364:function(e,t,n){"use strict";n.d(t,{z:function(){return _}});var r=n(72947),i=n(70917),o=n(90063),a=n(2326),s=n(55284),u=n(89384),c=n(84461),l=n(73808),f=n(65415),d=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,i.keyframes)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),m=(0,o.G)(((e,t)=>{var n=(0,a.m)("Spinner",e),r=(0,s.Lr)(e),{label:i="Loading...",thickness:o="2px",speed:l="0.45s",emptyColor:m="transparent",className:v}=r,g=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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:o,borderBottomColor:m,borderLeftColor:m,animation:h+" "+l+" linear infinite"},n);return d.createElement(u.m$.div,p({ref:t,__css:b,className:y},g),i&&d.createElement(f.TX,null,i))}));l.Ts&&(m.displayName="Spinner");var v=n(38554),g=n.n(v),y=n(67101);function b(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function E(){return(E=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 _=(0,o.G)(((e,t)=>{var n,i=(0,y.i)(),o=(0,a.m)("Button",E({},i,e)),l=(0,s.Lr)(e),{isDisabled:f=(null==i?void 0:i.isDisabled),isLoading:p,isActive:h,isFullWidth:m,children:v,leftIcon:_,rightIcon:T,loadingText:k,iconSpacing:O="0.5rem",type:C,spinner:A,spinnerPlacement:S="start",className:M,as:D}=l,I=b(l,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),P=g()({},null!=(n=null==o?void 0:o._focus)?n:{},{zIndex:1}),N=E({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:m?"100%":"auto"},o,!!i&&{_focus:P}),{ref:R,type:L}=function(e){var[t,n]=d.useState(!e),r=d.useCallback((e=>{e&&n("BUTTON"===e.tagName)}),[]),i=t?"button":void 0;return{ref:r,type:i}}(D);return d.createElement(u.m$.button,E({disabled:f||p,ref:(0,r.l)(t,R),as:D,type:null!=C?C:L,"data-active":(0,c.PB)(h),"data-loading":(0,c.PB)(p),__css:N,className:(0,c.cx)("chakra-button",M)},I),_&&!p&&d.createElement(w,{marginEnd:O},_),p&&"start"===S&&d.createElement(x,{className:"chakra-button__spinner--start",label:k,placement:"start"},A),p?k||d.createElement(u.m$.span,{opacity:0},v):v,p&&"end"===S&&d.createElement(x,{className:"chakra-button__spinner--end",label:k,placement:"end"},A),T&&!p&&d.createElement(w,{marginStart:O},T))}));l.Ts&&(_.displayName="Button");var w=e=>{var{children:t,className:n}=e,r=b(e,["children","className"]),i=d.isValidElement(t)?d.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=(0,c.cx)("chakra-button__icon",n);return d.createElement(u.m$.span,E({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:o}),i)};l.Ts&&(w.displayName="ButtonIcon");var x=e=>{var{label:t,placement:n,children:r=d.createElement(m,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:o}=e,a=b(e,["label","placement","spacing","children","className","__css"]),s=(0,c.cx)("chakra-button__spinner",i),l=E({display:"flex",alignItems:"center",position:t?"relative":"absolute",["start"===n?"marginEnd":"marginStart"]:t?"0.5rem":0,fontSize:"1em",lineHeight:"normal"},o);return d.createElement(u.m$.div,E({className:s},a,{__css:l}),r)};l.Ts&&(x.displayName="ButtonSpinner")},48420:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(90063),i=n(73808),o=n(67294),a=n(49364);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:i,"aria-label":u}=e,c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["icon","children","isRound","aria-label"]),l=n||r,f=o.isValidElement(l)?o.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return o.createElement(a.z,s({padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":u},c),f)}));i.Ts&&(u.displayName="IconButton")},31033:function(e,t,n){"use strict";n.d(t,{P:function(){return d}});var r=n(70058),i=n(90063),o=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 f=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"})),d=(0,i.G)(((e,t)=>{var n=(0,o.m)("CloseButton",e),r=(0,a.Lr)(e),{children:i,isDisabled:u,__css:d}=r,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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,d)},p),i||c.createElement(f,{width:"1em",height:"1em"}))}));u.Ts&&(d.displayName="CloseButton")},45771:function(e,t,n){"use strict";t.__esModule=!0,t.ColorModeProvider=f,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),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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(77570),a=n(56834);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=i.createContext({});t.ColorModeContext=c,r.__DEV__&&(c.displayName="ColorModeContext");var l=function(){var e=i.useContext(c);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function f(e){var t=e.value,n=e.children,s=e.options,u=s.useSystemColorMode,l=s.initialColorMode,f=e.colorModeManager,d=void 0===f?a.localStorageManager:f,p=i.useState("cookie"===d.type?d.get(l):l),h=p[0],m=p[1];i.useEffect((function(){if(r.isBrowser&&"localStorage"===d.type){var e=u?(0,o.getColorScheme)(l):o.root.get()||d.get();e&&m(e)}}),[d,u,l]),i.useEffect((function(){var e="dark"===h;(0,o.syncBodyClassName)(e),o.root.set(e?"dark":"light")}),[h]);var v=i.useCallback((function(e){d.set(e),m(e)}),[d]),g=i.useCallback((function(){v("light"===h?"dark":"light")}),[h,v]);i.useEffect((function(){var e;return u&&(e=(0,o.addListener)(v)),function(){e&&u&&e()}}),[v,u]);var y=i.useMemo((function(){return{colorMode:null!=t?t:h,toggleColorMode:t?r.noop:g,setColorMode:t?r.noop:v}}),[h,v,g,t]);return i.createElement(c.Provider,{value:y},n)}t.useColorMode=l,r.__DEV__&&(f.displayName="ColorModeProvider");var d=function(e){return i.createElement(c.Provider,u({value:{colorMode:"dark",toggleColorMode:r.noop,setColorMode:r.noop}},e))};t.DarkMode=d,r.__DEV__&&(d.displayName="DarkMode");var p=function(e){return i.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=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}function o(e){var t,n,r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";try{t=localStorage.getItem("chakra-ui-color-mode")}catch(i){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,i="("+String(o)+")('"+n+"')";return r.createElement("script",{nonce:e.nonce,dangerouslySetInnerHTML:{__html:i}})}},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?o:i),t.classList.remove(e?i:o)},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),i="chakra-ui-light",o="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 i=n(56834);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(79002);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},56834:function(e,t,n){"use strict";t.__esModule=!0,t.cookieStorageManager=t.localStorageManager=t.storageKey=void 0;var r=n(66751),i=function(){return"undefined"!==typeof Storage},o="chakra-ui-color-mode";t.storageKey=o;var a={get:function(e){if(!i())return e;try{var t=localStorage.getItem(o);return null!=t?t:e}catch(n){return r.__DEV__&&console.log(n),e}},set:function(e){if(i())try{localStorage.setItem(o,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("(^| )"+o+"=([^;]+)"));return n?n[2]:t},set:function(e){document.cookie=o+"="+e+"; max-age=31536000; path=/"},type:"cookie"}}},62300:function(e,t,n){"use strict";var r=n(89384),i=n(73808),o=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:i,_disabled:s,_focus:u,_checked:c,_child:l={opacity:0},_checkedAndChild:f={opacity:1},_checkedAndDisabled:d,_checkedAndFocus:p,_checkedAndHover:h,children:m}=e,v=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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 + &",w="input[type="+t+"]:hover:not(:disabled):not(:checked) + &",x="input[type="+t+"]:checked + &, input[type="+t+"][aria-checked=mixed] + &",T="input[type="+t+"][aria-invalid=true] + &",k="& > *";return o.createElement(r.m$.div,a({},v,{"aria-hidden":!0,__css:{display:"inline-flex",alignItems:"center",justifyContent:"center",transitionProperty:"common",transitionDuration:"fast",flexShrink:0,[_]:u,[w]:n,[E]:s,[T]:i,[g]:d,[b]:p,[y]:h,[k]:l,[x]:a({},c,{[k]:f})}}),m)};i.Ts&&(s.displayName="ControlBox")},21888:function(e,t,n){"use strict";n.d(t,{n:function(){return m}});var r=n(28500),i=n(72947),o=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?o.useLayoutEffect:o.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 f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{constructor(){var e=this;f(this,"descendants",new Map),f(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)}})),f(this,"unregister",(e=>{this.descendants.delete(e);var t=a(Array.from(this.descendants.keys()));this.assignIndex(t)})),f(this,"destroy",(()=>{this.descendants.clear()})),f(this,"assignIndex",(e=>{this.descendants.forEach((t=>{var n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),f(this,"count",(()=>this.descendants.size)),f(this,"enabledCount",(()=>this.enabledValues().length)),f(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),f(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),f(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),f(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),f(this,"first",(()=>this.item(0))),f(this,"firstEnabled",(()=>this.enabledItem(0))),f(this,"last",(()=>this.item(this.descendants.size-1))),f(this,"lastEnabled",(()=>{var e=this.enabledValues().length-1;return this.enabledItem(e)})),f(this,"indexOf",(e=>{var t,n;return e&&null!=(t=null==(n=this.descendants.get(e))?void 0:n.index)?t:-1})),f(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),f(this,"next",(function(t,n){void 0===n&&(n=!0);var r=s(t,e.count(),n);return e.item(r)})),f(this,"nextEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(i)}})),f(this,"prev",(function(t,n){void 0===n&&(n=!0);var r=u(t,e.count()-1,n);return e.item(r)})),f(this,"prevEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}})),f(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,o.useState)((()=>new d));return c((()=>()=>e.destroy())),e}(),e=>function(e){var t=h(),[n,r]=(0,o.useState)(-1),a=(0,o.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,i.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),i=n(48121),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var f=(0,a.createContext)({strict:!1,name:"FormControlContext"}),d=f[0],p=f[1];t.useFormControlContext=p;var h=(0,i.forwardRef)((function(e,t){var n=(0,i.useMultiStyleConfig)("Form",e),u=function(e){var t=e.id,n=e.isRequired,i=e.isInvalid,u=e.isDisabled,f=e.isReadOnly,d=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),w=_[0],x=_[1],T=(0,r.useBoolean)(),k=T[0],O=T[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&&x(!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,o.dataAttr)(k),"data-disabled":(0,o.dataAttr)(u),"data-invalid":(0,o.dataAttr)(i),"data-readonly":(0,o.dataAttr)(f),id:null!=(n=e.id)?n:m,htmlFor:null!=(r=e.htmlFor)?r:h})}),[h,u,k,i,f,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,d,{ref:t,role:"group"})}),[d]),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,o.scheduleMicrotask)(O.on)}),[O]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!f,isDisabled:!!u,isFocused:!!k,onFocus:I,onBlur:O.off,hasFeedbackText:b,setHasFeedbackText:E,hasHelpText:w,setHasHelpText:x,id:h,labelId:m,feedbackId:v,helpTextId:g,htmlProps:d,getHelpTextProps:C,getErrorMessageProps:S,getRootProps:M,getLabelProps:A,getRequiredIndicatorProps:D}}((0,i.omitThemingProps)(e)),f=u.getRootProps,p=(u.htmlProps,l(u,["getRootProps","htmlProps"])),h=(0,o.cx)("chakra-form-control",e.className),m=s.useMemo((function(){return p}),[p]);return s.createElement(d,{value:m},s.createElement(i.StylesProvider,{value:n},s.createElement(i.chakra.div,c({},f({},t),{className:h,__css:{width:"100%",position:"relative"}}))))}));t.FormControl=h,o.__DEV__&&(h.displayName="FormControl");var m=(0,i.forwardRef)((function(e,t){var n=p(),r=(0,i.useStyles)(),a=(0,o.cx)("chakra-form__helper-text",e.className);return s.createElement(i.chakra.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));t.FormHelperText=m,o.__DEV__&&(m.displayName="FormHelperText")},7609:function(e,t,n){"use strict";t.__esModule=!0,t.FormErrorIcon=t.FormErrorMessage=void 0;var r,i=(r=n(29559))&&r.__esModule?r:{default:r},o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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 f=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("FormError",e),r=(0,o.omitThemingProps)(e),i=(0,u.useFormControlContext)();return null!=i&&i.isInvalid?s.createElement(o.StylesProvider,{value:n},s.createElement(o.chakra.div,l({},null==i?void 0:i.getErrorMessageProps(r,t),{className:(0,a.cx)("chakra-form__error-message",e.className),__css:l({display:"flex",alignItems:"center"},n.text)}))):null}));t.FormErrorMessage=f,a.__DEV__&&(f.displayName="FormErrorMessage");var d=(0,o.forwardRef)((function(e,t){var n=(0,o.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(i.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=d,a.__DEV__&&(d.displayName="FormErrorIcon")},22786:function(e,t,n){"use strict";t.__esModule=!0,t.RequiredIndicator=t.FormLabel=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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),f=(c.className,c.children),d=c.requiredIndicator,p=void 0===d?o.createElement(l,null):d,h=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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 o.createElement(r.chakra.label,u({},v,{className:(0,i.cx)("chakra-form__label",c.className),__css:u({display:"block",textAlign:"start"},s)}),f,null!=m&&m.isRequired?p:null)}));t.FormLabel=c,i.__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,i.cx)("chakra-form__required-indicator",e.className);return o.createElement(r.chakra.span,u({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:s.requiredIndicator,className:c}))}));t.RequiredIndicator=l,i.__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 i=n(436);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(7609);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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,i=t.isInvalid,u=t.isReadOnly,c=t.isRequired;return o({},a(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:u,required:c,"aria-invalid":(0,r.ariaAttr)(i),"aria-required":(0,r.ariaAttr)(c),"aria-readonly":(0,r.ariaAttr)(u)})},t.useFormControlProps=s;var r=n(66751),i=n(71312);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 a(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function s(e){var t,n,s,u=(0,i.useFormControlContext)(),c=e.id,l=e.disabled,f=e.readOnly,d=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),o({},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!=f?f:m)?n:null==u?void 0:u.isReadOnly,isRequired:null!=(s=null!=d?d: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 i=n(69038);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(26872);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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 f=n(31948);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var d=n(33131);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[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 w=n(89395);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var x=n(3267);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var T=n(26465);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var k=n(30474);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[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],i=t[1],o=(0,r.useCallback)((function(){i(!0)}),[]),a=(0,r.useCallback)((function(){i(!1)}),[]),s=(0,r.useCallback)((function(){i((function(e){return!e}))}),[]);return[n,{on:o,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,i.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=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)),i=n(70709);function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=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,i.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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(s,["timeout"]),f=(0,i.useCallback)((function(){var t=(0,o.default)(e,l);a(t)}),[e,l]);return(0,i.useEffect)((function(){var e=null;return r&&(e=window.setTimeout((function(){a(!1)}),c)),function(){e&&window.clearTimeout(e)}}),[c,r]),{value:e,onCopy:f,hasCopied:r}};var r,i=n(67294),o=(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,o.useCallbackRef)(a),l=(0,o.useCallbackRef)(u),f=i.useState(n),d=f[0],p=f[1],h=void 0!==t,m=h?t:d,v=i.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),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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=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,o.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,i.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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(66751),o=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,f=i.useState(e.defaultIsOpen||!1),d=f[0],p=f[1],h=(0,o.useControllableProp)(c,d),m=h[0],v=h[1],g=(0,a.useId)(l,"disclosure"),y=i.useCallback((function(){m||p(!1),null==n||n()}),[m,n]),b=i.useCallback((function(){m||p(!0),null==s||s()}),[m,s]),E=i.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),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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=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,i.useSafeLayoutEffect)((function(){t.current=e})),r.useCallback((function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];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=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)),i=n(70709);function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},33131:function(e,t,n){"use strict";t.__esModule=!0,t.useEventListenerMap=function(){var e=i.useRef(new Map),t=e.current,n=i.useCallback((function(t,n,i,o){var a=(0,r.wrapPointerEventHandler)(i,"pointerdown"===n);e.current.set(i,{__listener:a,type:(0,r.getPointerEventName)(n),el:t,options:o}),t.addEventListener(n,a,o)}),[]),o=i.useCallback((function(t,n,r,i){var o=e.current.get(r).__listener;t.removeEventListener(n,o,i),e.current.delete(o)}),[]);return i.useEffect((function(){return function(){t.forEach((function(e,t){o(e.el,e.type,t,e.options)}))}}),[o,t]),{add:n,remove:o}};var r=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=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}},31948:function(e,t,n){"use strict";t.__esModule=!0,t.useEventListener=function(e,t,n,a){var s=(0,o.useCallbackRef)(t);return i.useEffect((function(){var t,i=null!=(t=(0,r.runIfFn)(n))?t:document;return i.addEventListener(e,s,a),function(){i.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),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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=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,o=t.preventScroll;(0,i.useUpdateEffect)((function(){var t=e.current;t&&n&&((0,r.hasFocusWithin)(t)||(0,r.focus)(t,{preventScroll:o,nextTick:!0}))}),[n,e,o])};var r=n(66751),i=n(52594)},19867:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnHide=function(e,t){var n=t.shouldFocus,o=t.visible,a=t.focusRef,s=n&&!o;(0,i.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),i=n(52594)},59457:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnPointerDown=function(e){var t=e.ref,n=e.elements,o=e.enabled,a=(0,r.detectBrowser)("Safari");(0,i.usePointerEvent)((function(){return(0,r.getOwnerDocument)(t.current)}),"pointerdown",(function(e){if(a&&o){var i=e.target,s=(null!=n?n:[t]).some((function(e){var t=(0,r.isRefObject)(e)?e.current:e;return(0,r.contains)(t,i)}));!(0,r.isActiveElement)(i)&&s&&(e.preventDefault(),(0,r.focus)(i))}}))};var r=n(66751),i=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,f=n.visible,d=(0,r.isRefObject)(e)?e.current:e,p=l&&f,h=(0,i.useCallback)((function(){if(d&&p&&!(0,r.contains)(d,document.activeElement))if(null!=u&&u.current)(0,r.focus)(u.current,{preventScroll:c,nextTick:!0});else{var e=(0,r.getAllFocusable)(d);e.length>0&&(0,r.focus)(e[0],{preventScroll:c,nextTick:!0})}}),[p,c,d,u]);(0,a.useUpdateEffect)((function(){h()}),[h]),(0,o.useEventListener)("transitionend",h,d)};var r=n(66751),i=n(67294),o=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],o=t[1];return(0,i.useUnmountEffect)((function(){e.current=!0})),r.useCallback((function(){e.current||o(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=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)),i=n(42093);function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=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),i=1;i<t;i++)n[i-1]=arguments[i];var o=u(e);return r.useMemo((function(){return n.map((function(e){return e+"-"+o}))}),[o,n])},t.useOptionalPart=function(e){var t=r.useState(null),n=t[0],i=t[1];return{ref:r.useCallback((function(t){i(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=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 o={prefix:Math.round(1e10*Math.random()),current:0},a=r.createContext(o),s=r.memo((function(e){var t=e.children,n=r.useContext(a),i=n===o,s=r.useMemo((function(){return{prefix:i?0:++n.prefix,current:0}}),[i,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,i.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=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)),i=n(69038);function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=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=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}},12166:function(e,t,n){"use strict";t.__esModule=!0,t.assignRef=o,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&&o(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=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}function o(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=i.default.useRef();return(0,o.useEventListener)("mousedown",(function(n){e&&(t.current=n.target)})),t};var r,i=(r=n(67294))&&r.__esModule?r:{default:r},o=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,o.useCallbackRef)(n),u=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,i.useEffect)((function(){var e=function(e){a(e,t)&&(u.isPointerDown=!0)},i=function(e){u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&n&&a(e,t)&&(u.isPointerDown=!1,s(e))},o=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",i,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",o,!0),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",i,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",o,!0)}}),[n,t,s,u])};var r=n(66751),i=n(67294),o=n(69038);function a(e,t){var n,i=e.target;if(e.button>0)return!1;if(i&&!(0,r.getOwnerDocument)(i).body.contains(i))return!1;return!(null!=(n=t.current)&&n.contains(i))}},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,f=Boolean(n||s||u||c||l),d=(0,i.useRef)(null),p={onSessionStart:c,onSessionEnd:l,onStart:s,onMove:n,onEnd:function(e,t){d.current=null,null==u||u(e,t)}};(0,i.useEffect)((function(){var e;null==(e=d.current)||e.updateHandlers(p)})),(0,o.usePointerEvent)((function(){return e.current}),"pointerdown",f?function(e){d.current=new r.PanSession(e,p)}:r.noop),(0,a.useUnmountEffect)((function(){var e;null==(e=d.current)||e.end(),d.current=null}))};var r=n(66751),i=n(67294),o=n(30474),a=n(42093)},30474:function(e,t,n){"use strict";t.__esModule=!0,t.usePointerEvent=function(e,t,n,o){return(0,i.useEventListener)((0,r.getPointerEventName)(t),(0,r.wrapPointerEventHandler)(n,"pointerdown"===t),e,o)};var r=n(66751),i=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=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 o=n(66751).isBrowser?r.useLayoutEffect:r.useEffect;t.useSafeLayoutEffect=o},19197:function(e,t,n){"use strict";t.__esModule=!0,t.useShortcut=function(e){void 0===e&&(e={});var t=e,n=t.timeout,i=void 0===n?300:n,o=t.preventDefault,a=void 0===o?function(){return!0}:o,s=r.useState([]),u=s[0],c=s[1],l=r.useRef(),f=function(){l.current&&(clearTimeout(l.current),l.current=null)},d=function(){f(),l.current=setTimeout((function(){c([]),l.current=null}),i)};return r.useEffect((function(){return f}),[]),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("")),d()}}}};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));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},43670:function(e,t,n){"use strict";t.__esModule=!0,t.useTimeout=function(e,t){var n=(0,i.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=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)),i=n(69038);function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=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=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}},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=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}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(o({},n.current,t)),i={};r.forEach((function(e){n.current[e]!==t[e]&&(i[e]={from:n.current[e],to:t[e]})})),Object.keys(i).length&&console.log("[why-did-you-update]",e,i)}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=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}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)}},90639:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(67294);function i(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 o}});var r=n(67294),i=n(68327);function o(e,t){void 0===t&&(t=[]);var n=r.useRef(e);return(0,i.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),i=n(67294),o=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,o.W)(a),c=(0,o.W)(s),[l,f]=i.useState(n),d=void 0!==t,p=d?t:l,h=i.useCallback((e=>{var t=(0,r.Pu)(e,p);c(p,t)&&(d||f(t),u(t))}),[d,u,p,c]);return[p,h]}},74860:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(80658),i=n(67294),o=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,f]=i.useState(e.defaultIsOpen||!1),[d,p]=(0,o.p)(u,l),h=(0,a.Me)(c,"disclosure"),m=i.useCallback((()=>{d||f(!1),null==t||t()}),[d,t]),v=i.useCallback((()=>{d||f(!0),null==n||n()}),[d,n]),g=i.useCallback((()=>{(p?m:v)()}),[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:g,isControlled:d,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),i=n(67294),o=n(10762);function a(e,t,n,a){var s=(0,o.W)(t);return i.useEffect((()=>{var t,i=null!=(t=(0,r.Pu)(n))?t:document;return i.addEventListener(e,s,a),()=>{i.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),i=n(17768),o=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,i.Wq)(n)}(e)){var t=(null==u?void 0:u.current)||e.current;t&&(0,o.T)(t,{nextTick:!0})}}),[c,e,u])}},95869:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(84461),i=n(67294),o=n(10762);function a(e){var{ref:t,handler:n}=e,a=(0,o.W)(n),u=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,i.useEffect)((()=>{var e=e=>{s(e,t)&&(u.isPointerDown=!0)},i=e=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&n&&s(e,t)&&(u.isPointerDown=!1,a(e))},o=e=>{u.ignoreEmulatedMouseEvents=!0,n&&u.isPointerDown&&s(e,t)&&(u.isPointerDown=!1,a(e))},c=(0,r.lZ)(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",i,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",o,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",i,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",o,!0)}}),[n,t,a,u])}function s(e,t){var n,i=e.target;if(e.button>0)return!1;if(i&&!(0,r.lZ)(i).body.contains(i))return!1;return!(null!=(n=t.current)&&n.contains(i))}},63158:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(75027),i=n(34941);function o(e,t,n,o){return(0,i.O)((0,r.f7)(t),(0,r.JN)(n,"pointerdown"===t),e,o)}},68327:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(67294),i=n(84461).jU?r.useLayoutEffect:r.useEffect},77581:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(67294);function i(e,t){return void 0===t&&(t=[]),r.useEffect((()=>()=>e()),t)}},22653:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(67294),i=(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,f=e.defaultProps,d=void 0===f?{}:f,p=(0,r.forwardRef)((function(e,t){return o.createElement(a.Icon,u({ref:t,viewBox:n},d,e),null!=c?c:o.createElement("path",{fill:"currentColor",d:s}))}));i.__DEV__&&(p.displayName=l);return p};var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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: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:"currentColor",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"})),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,f=e.focusable,d=void 0!==f&&f,p=e.children,h=e.className,m=e.__css,v=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["as","viewBox","color","focusable","children","className","__css"]),g={ref:t,focusable:d,className:(0,i.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 o.createElement(r.chakra.svg,s({as:n},g,v));var b=null!=p?p:u.path;return o.createElement(r.chakra.svg,s({verticalAlign:"middle",viewBox:y},g,v),b)}));t.Icon=c,i.__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 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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(41120));t.default=i.default,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 o=n(87474);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}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]))}))},89867:function(e,t,n){"use strict";n.d(t,{I:function(){return u}});var r=n(90063),i=n(73808),o=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,f=(0,r.G)(((e,r)=>o.createElement(a.J,s({ref:r,viewBox:t},l,e),null!=u?u:o.createElement("path",{fill:"currentColor",d:n}))));return i.Ts&&(f.displayName=c),f}},70058:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(90063),i=n(89384),o=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:f,className:d,__css:p}=e,h=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["as","viewBox","color","focusable","children","className","__css"]),m={ref:t,focusable:l,className:(0,o.cx)("chakra-icon",d),__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(i.m$.svg,u({as:n},m,h));var g=null!=f?f:c.path;return s.createElement(i.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),i=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 a=(0,r.createIcon)({displayName:"ArrowLeftIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({displayName:"ArrowRightIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({viewBox:"0 0 14 14",path:i.createElement("g",{fill:"currentColor"},i.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),i=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 a=(0,r.createIcon)({displayName:"DeleteIcon",path:i.createElement("g",{fill:"currentColor"},i.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),i=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 a=(0,r.createIcon)({displayName:"EditIcon",path:i.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},i.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),i.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),i=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 a=(0,r.createIcon)({displayName:"EmailIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({displayName:"ExternalLinkIcon",path:i.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},i.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),i.createElement("path",{d:"M15 3h6v6"}),i.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),i=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 a=(0,r.createIcon)({displayName:"InfoOutlineIcon",path:i.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},i.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),i.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),i.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),i=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 a=(0,r.createIcon)({displayName:"LinkIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({displayName:"MinusIcon",path:i.createElement("g",{fill:"currentColor"},i.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),i=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 a=(0,r.createIcon)({displayName:"PlusSquareIcon",path:i.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},i.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),i.createElement("path",{d:"M12 8v8"}),i.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),i=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 a=(0,r.createIcon)({displayName:"QuestionOutlineIcon",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:"none",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"}))});t.QuestionOutlineIcon=a},46889:function(e,t,n){"use strict";t.__esModule=!0,t.RepeatIcon=void 0;var r=n(29559),i=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 a=(0,r.createIcon)({displayName:"RepeatIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({displayName:"RepeatClockIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:i.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),i=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 a=(0,r.createIcon)({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:i.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),i=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 a=(0,r.createIcon)({displayName:"SpinnerIcon",path:i.createElement(i.Fragment,null,i.createElement("defs",null,i.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},i.createElement("stop",{stopColor:"currentColor",offset:"0%"}),i.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),i.createElement("g",{transform:"translate(2)",fill:"none"},i.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),i.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),i.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),i=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 a=(0,r.createIcon)({displayName:"SunIcon",path:i.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},i.createElement("circle",{cx:"12",cy:"12",r:"5"}),i.createElement("path",{d:"M12 1v2"}),i.createElement("path",{d:"M12 21v2"}),i.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),i.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),i.createElement("path",{d:"M1 12h2"}),i.createElement("path",{d:"M21 12h2"}),i.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),i.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),i=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 a=(0,r.createIcon)({displayName:"TimeIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({displayName:"ViewIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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),i=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 a=(0,r.createIcon)({displayName:"ViewOffIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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 i=n(43761);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(66264);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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 f=n(91204);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var d=n(81971);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[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 w=n(7659);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var x=n(62628);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var T=n(48959);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var k=n(41725);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[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 z=n(82190);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||(t[e]=z[e]))}));var U=n(9079);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||(t[e]=U[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 W=n(54411);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||(t[e]=W[e]))}));var G=n(28317);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||(t[e]=G[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 Z=n(7846);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||(t[e]=Z[e]))}));var $=n(33670);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||(t[e]=$[e]))}));var Y=n(27258);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||(t[e]=Y[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 ie=n(26324);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||(t[e]=ie[e]))}));var oe=n(49888);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||(t[e]=oe[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 o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"ArrowRightIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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"})},6780:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var r=(0,n(89867).I)({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"})},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 o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"DeleteIcon",path:i.createElement("g",{fill:"currentColor"},i.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 o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"EditIcon",path:i.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},i.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),i.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 o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"ExternalLinkIcon",path:i.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},i.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),i.createElement("path",{d:"M15 3h6v6"}),i.createElement("path",{d:"M10 14L21 3"}))})},24189:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"InfoOutlineIcon",path:i.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},i.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),i.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),i.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))})},85305:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"MinusIcon",path:i.createElement("g",{fill:"currentColor"},i.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))})},94030:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"PlusSquareIcon",path:i.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},i.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),i.createElement("path",{d:"M12 8v8"}),i.createElement("path",{d:"M8 12h8"}))})},67546:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"RepeatIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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 o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"RepeatClockIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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 o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"ViewIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.createElement("circle",{cx:"12",cy:"12",r:"2"}))})},77787:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(89867),i=n(67294),o=(0,r.I)({displayName:"ViewOffIcon",path:i.createElement("g",{fill:"currentColor"},i.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"}),i.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"}))})},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 i=n(8471);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(89216);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i=e.placement,a=void 0===i?"left":i,l=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["placement"]),f=null!=(n=u[a])?n:{},d=(0,r.useStyles)();return o.createElement(c,s({ref:t},l,{__css:s({},d.addon,f)}))}));t.InputAddon=l,i.__DEV__&&(l.displayName="InputAddon");var f=(0,r.forwardRef)((function(e,t){return o.createElement(l,s({ref:t,placement:"left"},e,{className:(0,i.cx)("chakra-input__left-addon",e.className)}))}));t.InputLeftAddon=f,i.__DEV__&&(f.displayName="InputLeftAddon"),f.id="InputLeftAddon";var d=(0,r.forwardRef)((function(e,t){return o.createElement(l,s({ref:t,placement:"right"},e,{className:(0,i.cx)("chakra-input__right-addon",e.className)}))}));t.InputRightAddon=d,i.__DEV__&&(d.displayName="InputRightAddon"),d.id="InputRightAddon"},52832:function(e,t,n){"use strict";t.__esModule=!0,t.InputRightElement=t.InputLeftElement=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}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,i,a,l=e.placement,f=void 0===l?"left":l,d=u(e,["placement"]),p=(0,r.useStyles)().field,h=((a={})["left"===f?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==p?void 0:p.height)?n:null==p?void 0:p.h,a.height=null!=(i=null==p?void 0:p.height)?i:null==p?void 0:p.h,a.fontSize=null==p?void 0:p.fontSize,a);return o.createElement(c,s({ref:t,__css:h},d))}));l.id="InputElement",i.__DEV__&&(l.displayName="InputElement");var f=(0,r.forwardRef)((function(e,t){var n=e.className,r=u(e,["className"]),a=(0,i.cx)("chakra-input__left-element",n);return o.createElement(l,s({ref:t,placement:"left",className:a},r))}));t.InputLeftElement=f,f.id="InputLeftElement",i.__DEV__&&(f.displayName="InputLeftElement");var d=(0,r.forwardRef)((function(e,t){var n=e.className,r=u(e,["className"]),a=(0,i.cx)("chakra-input__right-element",n);return o.createElement(l,s({ref:t,placement:"right",className:a},r))}));t.InputRightElement=d,d.id="InputRightElement",i.__DEV__&&(d.displayName="InputRightElement")},89216:function(e,t,n){"use strict";t.__esModule=!0,t.InputGroup=void 0;var r=n(48121),i=n(66751),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(s,["children","className"]),d=(0,i.cx)("chakra-input__group",l),p={},h=(0,o.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,i={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,i):a.cloneElement(t,Object.assign(i,p,t.props))}));return a.createElement(r.chakra.div,u({className:d,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},f),a.createElement(r.StylesProvider,{value:n},v))}));t.InputGroup=c,i.__DEV__&&(c.displayName="InputGroup")},35236:function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var r=n(88323),i=n(48121),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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.forwardRef)((function(e,t){var n=(0,i.useMultiStyleConfig)("Input",e),s=(0,i.omitThemingProps)(e),c=(0,r.useFormControl)(s),l=(0,o.cx)("chakra-input",e.className);return a.createElement(i.chakra.input,u({},c,{__css:n.field,ref:t,className:l}))}));t.Input=c,o.__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),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["ratio","children","className"]),f=o.Children.only(u),d=(0,i.cx)("chakra-aspect-ratio",c);return o.createElement(r.chakra.div,s({ref:t,position:"relative",className:d,_before:{height:0,content:'""',display:"block",paddingBottom:(0,i.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),f)}));t.AspectRatio=u,i.__DEV__&&(u.displayName="AspectRatio")},63061:function(e,t,n){"use strict";t.__esModule=!0,t.Badge=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(a,["className"]));return o.createElement(r.chakra.span,s({ref:t,className:(0,i.cx)("chakra-badge",e.className)},u,{__css:s({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));t.Badge=u,i.__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),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=(0,r.chakra)("div");t.Box=c,i.__DEV__&&(c.displayName="Box");var l=(0,r.forwardRef)((function(e,t){var n=e.size,r=e.centerContent,i=void 0===r||r,a=u(e,["size","centerContent"]),l=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return o.createElement(c,s({ref:t,boxSize:n,__css:s({},l,{flexShrink:0,flexGrow:0})},a))}));t.Square=l,i.__DEV__&&(l.displayName="Square");var f=(0,r.forwardRef)((function(e,t){var n=e.size,r=u(e,["size"]);return o.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));t.Circle=f,i.__DEV__&&(f.displayName="Circle")},21184:function(e,t,n){"use strict";t.__esModule=!0,t.AbsoluteCenter=t.Center=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i.__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,i=void 0===n?"both":n,a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["axis"]);return o.createElement(r.chakra.div,s({ref:t,__css:c[i]},a,{position:"absolute"}))}));t.AbsoluteCenter=l},9754:function(e,t,n){"use strict";t.__esModule=!0,t.Code=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(a,["className"]));return o.createElement(r.chakra.code,s({ref:t,className:(0,i.cx)("chakra-code",e.className)},u,{__css:s({display:"inline-block"},n)}))}));t.Code=u,i.__DEV__&&(u.displayName="Code")},28210:function(e,t,n){"use strict";t.__esModule=!0,t.Container=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["className","centerContent"]),l=(0,r.useStyleConfig)("Container",e);return o.createElement(r.chakra.div,s({ref:t,className:(0,i.cx)("chakra-container",a)},c,{__css:s({},l,u&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));t.Container=u,i.__DEV__&&(u.displayName="Container")},43698:function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Divider",e),a=n.borderLeftWidth,c=n.borderBottomWidth,l=n.borderTopWidth,f=n.borderRightWidth,d=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"]),w={vertical:{borderLeftWidth:a||f||d||"1px",height:"100%"},horizontal:{borderBottomWidth:c||l||d||"1px",width:"100%"}};return o.createElement(r.chakra.hr,s({ref:t,"aria-orientation":b},_,{__css:s({},m,{border:"0",borderColor:h,borderStyle:p},w[b],E),className:(0,i.cx)("chakra-divider",g)}))}));t.Divider=c,i.__DEV__&&(c.displayName="Divider")},87481:function(e,t,n){"use strict";t.__esModule=!0,t.Flex=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i=e.align,a=e.justify,u=e.wrap,c=e.basis,l=e.grow,f=e.shrink,d=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:u,flexBasis:c,flexGrow:l,flexShrink:f};return o.createElement(r.chakra.div,s({ref:t,__css:p},d))}));t.Flex=u,i.__DEV__&&(u.displayName="Flex")},51870:function(e,t,n){"use strict";t.__esModule=!0,t.GridItem=t.Grid=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=(0,r.forwardRef)((function(e,t){var n=e.area,i=e.templateAreas,a=e.gap,c=e.rowGap,l=e.columnGap,f=e.column,d=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:i,gridGap:a,gridRowGap:c,gridColumnGap:l,gridAutoColumns:v,gridColumn:f,gridRow:d,gridAutoFlow:p,gridAutoRows:h,gridTemplateRows:m,gridTemplateColumns:g};return o.createElement(r.chakra.div,s({ref:t,__css:b},y))}));function l(e){return(0,i.mapResponsive)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}t.Grid=c,i.__DEV__&&(c.displayName="Grid");var f=(0,r.forwardRef)((function(e,t){var n=e.colSpan,a=e.colStart,c=e.colEnd,f=e.rowEnd,d=e.rowSpan,p=e.rowStart,h=u(e,["colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"]),m=(0,i.filterUndefined)({gridColumn:l(n),gridRow:l(d),gridColumnStart:a,gridColumnEnd:c,gridRowStart:p,gridRowEnd:f});return o.createElement(r.chakra.div,s({ref:t,__css:m},h))}));t.GridItem=f},6813:function(e,t,n){"use strict";t.__esModule=!0,t.Heading=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(a,["className"]));return o.createElement(r.chakra.h2,s({ref:t,className:(0,i.cx)("chakra-heading",e.className)},u,{__css:n}))}));t.Heading=u,i.__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 i=n(63061);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(26932);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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 f=n(51870);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var d=n(6813);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[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),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(a,["className"]);return o.createElement(r.chakra.kbd,s({ref:t,className:(0,i.cx)("chakra-kbd",u)},c,{__css:s({fontFamily:"mono"},n)}))}));t.Kbd=u,i.__DEV__&&(u.displayName="Kbd")},41525:function(e,t,n){"use strict";t.__esModule=!0,t.LinkBox=t.LinkOverlay=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=(0,r.forwardRef)((function(e,t){var n=e.isExternal,a=e.target,c=e.rel,l=e.className,f=u(e,["isExternal","target","rel","className"]);return o.createElement(r.chakra.a,s({},f,{ref:t,className:(0,i.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 o.createElement(r.chakra.div,s({ref:t,position:"relative"},a,{className:(0,i.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),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(a,["className","isExternal"]);return o.createElement(r.chakra.a,s({target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,ref:t,className:(0,i.cx)("chakra-link",u)},l,{__css:n}))}));t.Link=u,i.__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),i=n(48121),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var f=(0,i.forwardRef)((function(e,t){var n,r=(0,i.useMultiStyleConfig)("List",e),o=(0,i.omitThemingProps)(e),u=o.children,f=o.styleType,d=void 0===f?"none":f,p=o.stylePosition,h=o.spacing,m=l(o,["children","styleType","stylePosition","spacing"]),v=(0,a.getValidChildren)(u),g=h?((n={})["& > *:not(style) ~ *:not(style)"]={mt:h},n):{};return s.createElement(i.StylesProvider,{value:r},s.createElement(i.chakra.ul,c({ref:t,listStyleType:d,listStylePosition:p,role:"list",__css:c({},r.container,g)},m),v))}));t.List=f,o.__DEV__&&(f.displayName="List");var d=(0,i.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(f,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));t.OrderedList=d,o.__DEV__&&(d.displayName="OrderedList");var p=(0,i.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(f,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));t.UnorderedList=p,o.__DEV__&&(p.displayName="UnorderedList");var h=(0,i.forwardRef)((function(e,t){var n=(0,i.useStyles)();return s.createElement(i.chakra.li,c({ref:t},e,{__css:n.item}))}));t.ListItem=h,o.__DEV__&&(h.displayName="ListItem");var m=(0,i.forwardRef)((function(e,t){var n=(0,i.useStyles)();return s.createElement(r.Icon,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));t.ListIcon=m,o.__DEV__&&(m.displayName="ListIcon")},6293:function(e,t,n){"use strict";t.__esModule=!0,t.SimpleGrid=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,f=e.spacing,d=e.minChildWidth,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["columns","spacingX","spacingY","spacing","minChildWidth"]),h=d?(r=d,(0,i.mapResponsive)(r,(function(e){return(0,i.isNull)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,i.isNumber)(t)?t+"px":t)+", 1fr))");var t}))):(n=s,(0,i.mapResponsive)(n,(function(e){return(0,i.isNull)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return o.createElement(a.Grid,u({ref:t,gap:f,columnGap:c,rowGap:l,templateColumns:h},p))}));t.SimpleGrid=c,i.__DEV__&&(c.displayName="SimpleGrid")},7133:function(e,t,n){"use strict";t.__esModule=!0,t.Spacer=void 0;var r=n(48121),i=n(66751),o=(0,r.chakra)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.Spacer=o,i.__DEV__&&(o.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),i=n(66751),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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 f=(0,r.forwardRef)((function(e,t){var n,u=e.isInline,f=e.direction,d=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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),w=u?"row":null!=f?f:"column",x=a.useMemo((function(){return(0,s.getStackStyles)({direction:w,spacing:m})}),[w,m]),T=a.useMemo((function(){return(0,s.getDividerStyles)({spacing:m,direction:w})}),[m,w]),k=!!y,O=!E&&!k,C=(0,o.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(!k)return r;var i=n?null:a.cloneElement(y,{__css:T});return a.createElement(a.Fragment,{key:t},r,i)})),S=(0,i.cx)("chakra-stack",b);return a.createElement(r.chakra.div,c({ref:t,display:"flex",alignItems:d,justifyContent:p,flexDirection:x.flexDirection,flexWrap:v,className:S,__css:k?{}:(n={},n[s.selector]=x[s.selector],n)},_),A)}));t.Stack=f,i.__DEV__&&(f.displayName="Stack");var d=(0,r.forwardRef)((function(e,t){return a.createElement(f,c({align:"center"},e,{direction:"row",ref:t}))}));t.HStack=d,i.__DEV__&&(d.displayName="HStack");var p=(0,r.forwardRef)((function(e,t){return a.createElement(f,c({align:"center"},e,{direction:"column",ref:t}))}));t.VStack=p,i.__DEV__&&(p.displayName="VStack")},2552:function(e,t,n){"use strict";t.__esModule=!0,t.getStackStyles=function(e){var t,n=e.spacing,o=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:o})[i]=(0,r.mapResponsive)(o,(function(e){return a[e]})),t},t.getDividerStyles=function(e){var t=e.spacing,n=e.direction,i={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 i[e]}))}},t.selector=void 0;var r=n(66751),i="& > *:not(style) ~ *:not(style)";t.selector=i},80434:function(e,t,n){"use strict";t.__esModule=!0,t.Text=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(a,["className","align","decoration","casing"])),c=(0,i.filterUndefined)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return o.createElement(r.chakra.p,s({ref:t,className:(0,i.cx)("chakra-text",e.className)},c,u,{__css:n}))}));t.Text=u,i.__DEV__&&(u.displayName="Text")},88189:function(e,t,n){"use strict";t.__esModule=!0,t.WrapItem=t.Wrap=void 0;var r=n(48121),i=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=(0,r.forwardRef)((function(e,t){var n=e.spacing,a=void 0===n?"0.5rem":n,c=e.children,f=e.justify,d=e.direction,p=e.align,h=e.className,m=e.shouldWrapChildren,v=u(e,["spacing","children","justify","direction","align","className","shouldWrapChildren"]),g=o.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,i.mapResponsive)(a,(function(t){return(0,r.tokenToCSSVar)("space",t)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:f,alignItems:p,flexDirection:d,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[a,f,p,d]),y=m?o.Children.map(c,(function(e,t){return o.createElement(l,{key:t},e)})):c;return o.createElement(r.chakra.div,s({ref:t,className:(0,i.cx)("chakra-wrap",h)},v),o.createElement(r.chakra.ul,{className:"chakra-wrap__list",__css:g},y))}));t.Wrap=c,i.__DEV__&&(c.displayName="Wrap");var l=(0,r.forwardRef)((function(e,t){var n=e.className,a=u(e,["className"]);return o.createElement(r.chakra.li,s({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",n)},a))}));t.WrapItem=l,i.__DEV__&&(l.displayName="WrapItem")},48017:function(e,t,n){"use strict";n.d(t,{xu:function(){return c}});var r=n(89384),i=n(90063),o=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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=(0,r.m$)("div");o.Ts&&(c.displayName="Box");var l=(0,i.G)(((e,t)=>{var{size:n,centerContent:r=!0}=e,i=u(e,["size","centerContent"]),o=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(c,s({ref:t,boxSize:n,__css:s({},o,{flexShrink:0,flexGrow:0})},i))}));o.Ts&&(l.displayName="Square");var f=(0,i.G)(((e,t)=>{var{size:n}=e,r=u(e,["size"]);return a.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));o.Ts&&(f.displayName="Circle")},53850:function(e,t,n){"use strict";n.d(t,{W:function(){return f}});var r=n(90063),i=n(55284),o=n(2326),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 f=(0,r.G)(((e,t)=>{var n=(0,i.Lr)(e),{className:r,centerContent:u}=n,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["className","centerContent"]),d=(0,o.m)("Container",e);return c.createElement(a.m$.div,l({ref:t,className:(0,s.cx)("chakra-container",r)},f,{__css:l({},d,u&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));u.Ts&&(f.displayName="Container")},94096:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(90063),i=n(89384),o=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:o,wrap:u,basis:c,grow:l,shrink:f}=e,d=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:u,flexBasis:c,flexGrow:l,flexShrink:f};return a.createElement(i.m$.div,s({ref:t,__css:p},d))}));o.Ts&&(u.displayName="Flex")},336:function(e,t,n){"use strict";n.d(t,{X:function(){return f}});var r=n(90063),i=n(2326),o=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 f=(0,r.G)(((e,t)=>{var n=(0,i.m)("Heading",e),r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}((0,o.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&&(f.displayName="Heading")},49444:function(e,t,n){"use strict";n.d(t,{r:function(){return f}});var r=n(90063),i=n(2326),o=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 f=(0,r.G)(((e,t)=>{var n=(0,i.m)("Link",e),r=(0,o.Lr)(e),{className:u,isExternal:f}=r,d=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,["className","isExternal"]);return c.createElement(a.m$.a,l({target:f?"_blank":void 0,rel:f?"noopener noreferrer":void 0,ref:t,className:(0,s.cx)("chakra-link",u)},d,{__css:n}))}));u.Ts&&(f.displayName="Link")},72026:function(e,t,n){"use strict";n.d(t,{cX:function(){return p},gC:function(){return g}});var r=n(89384),i=n(90063),o=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 f="& > *:not(style) ~ *:not(style)";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 p=e=>u.createElement(r.m$.div,d({className:"chakra-stack__divider"},e,{__css:d({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})})),h=e=>u.createElement(r.m$.div,d({className:"chakra-stack__item"},e,{__css:d({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)})),m=(0,i.G)(((e,t)=>{var{isInline:n,direction:i,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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),_=n?"row":null!=i?i:"column",w=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,[f]:l(n,(e=>r[e]))}}({direction:_,spacing:p})),[_,p]),x=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,_]),T=!!g,k=!b&&!T,O=(0,s.W)(v),C=k?O:O.map(((e,t)=>{var n=t+1===O.length,r=b?u.createElement(h,{key:t},e):e;if(!T)return r;var i=n?null:u.cloneElement(g,{__css:x});return u.createElement(u.Fragment,{key:t},r,i)})),A=(0,o.cx)("chakra-stack",y);return u.createElement(r.m$.div,d({ref:t,display:"flex",alignItems:a,justifyContent:c,flexDirection:w.flexDirection,flexWrap:m,className:A,__css:T?{}:{[f]:w[f]}},E),C)}));a.Ts&&(m.displayName="Stack");var v=(0,i.G)(((e,t)=>u.createElement(m,d({align:"center"},e,{direction:"row",ref:t}))));a.Ts&&(v.displayName="HStack");var g=(0,i.G)(((e,t)=>u.createElement(m,d({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 d}});var r=n(90063),i=n(2326),o=n(55284),a=n(89384),s=n(4651),u=n(84461),c=n(73808),l=n(67294);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 d=(0,r.G)(((e,t)=>{var n=(0,i.m)("Text",e),r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}((0,o.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,f({ref:t,className:(0,u.cx)("chakra-text",e.className)},c,r,{__css:n}))}));c.Ts&&(d.displayName="Text")},11252:function(e,t,n){"use strict";n.d(t,{v2:function(){return G},j2:function(){return q},R:function(){return oe},sN:function(){return Q},ii:function(){return ee},qy:function(){return Y},__:function(){return te}});var r=n(2326),i=n(55284),o=n(29676),a=n(90063),s=n(89384),u=n(80658),c=n(73808),l=n(84461),f=n(39629),d=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:i=!0,clickOnSpace:o=!0,onMouseDown:a,onMouseUp:s,onClick:u,onKeyDown:c,onKeyUp:f,tabIndex:v,onMouseOver:g,onMouseLeave:y}=e,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"]),[E,_]=d.useState(!0),[w,x]=d.useState(!1),T=function(){var e=d.useRef(new Map),t=e.current,n=d.useCallback(((t,n,r,i)=>{e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)}),[]),r=d.useCallback(((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)}),[]);return d.useEffect((()=>()=>{t.forEach(((e,t)=>{r(e.el,e.type,t,e.options)}))}),[r,t]),{add:n,remove:r}}(),k=E?v:v||0,O=n&&!r,C=d.useCallback((e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)}),[n,u]),A=d.useCallback((e=>{w&&m(e)&&(e.preventDefault(),e.stopPropagation(),x(!1),T.remove(document,"keyup",A,!1))}),[w,T]),S=d.useCallback((e=>{if(null==c||c(e),!(n||e.defaultPrevented||e.metaKey)&&m(e.nativeEvent)&&!E){var t=i&&"Enter"===e.key;if(o&&" "===e.key&&(e.preventDefault(),x(!0)),t)e.preventDefault(),e.currentTarget.click();T.add(document,"keyup",A,!1)}}),[n,E,c,i,o,T,A]),M=d.useCallback((e=>{(null==f||f(e),n||e.defaultPrevented||e.metaKey)||m(e.nativeEvent)&&!E&&o&&" "===e.key&&(e.preventDefault(),x(!1),e.currentTarget.click())}),[o,E,n,f]),D=d.useCallback((e=>{0===e.button&&(x(!1),T.remove(document,"mouseup",D,!1))}),[T]),I=d.useCallback((e=>{if(!(0,l.dO)(e)){if(n)return e.stopPropagation(),void e.preventDefault();E||x(!0),e.currentTarget.focus({preventScroll:!0}),T.add(document,"mouseup",D,!1),null==a||a(e)}}),[n,E,a,T,D]),P=d.useCallback((e=>{(0,l.dO)(e)||(E||x(!1),null==s||s(e))}),[s,E]),N=d.useCallback((e=>{n?e.preventDefault():null==g||g(e)}),[n,g]),R=d.useCallback((e=>{w&&(e.preventDefault(),x(!1)),null==y||y(e)}),[w,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:f,onKeyDown:c,onMouseOver:g,onMouseLeave:y}:{ref:L,role:"button","data-active":(0,l.PB)(w),"aria-disabled":n?"true":void 0,tabIndex:O?void 0:k,onClick:C,onMouseDown:I,onMouseUp:P,onKeyUp:M,onKeyDown:S,onMouseOver:N,onMouseLeave:R})}var g=n(21888),y=n(74860),b=n(95869),E=n(22653),_=n(22911),w=n(94577),x=n(77581);function T(e){void 0===e&&(e={});var{timeout:t=300,preventDefault:n=(()=>!0)}=e,[r,i]=d.useState([]),o=d.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return d.useEffect((()=>a),[]),function(e){return s=>{if("Backspace"===s.key){var u=[...r];return u.pop(),void i(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()),i(c),e(c.join("")),a(),o.current=setTimeout((()=>{i([]),o.current=null}),t)}}}}var k=n(51034),O=n(8931),C=n(28500),A=n(24255),S=n(47248),M=n(27277),D=n(55463),I=n(17768);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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var[R,L,j,F]=(0,g.n)(),[B,H]=(0,C.k)({strict:!1,name:"MenuContext"});function z(e){var t;return e instanceof HTMLElement&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function U(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,isDisabled:a,isFocusable:s,closeOnSelect:u}=e,c=N(e,["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect"]),l=H(),{setFocusedIndex:f,focusedIndex:h,closeOnSelect:m,onClose:g,menuRef:y,isOpen:b,menuId:_}=l,x=d.useRef(null),T=_+"-menuitem-"+(0,w.Me)(),{index:k,register:O}=F({disabled:a&&!s}),C=d.useCallback((e=>{null==n||n(e),a||f(k)}),[f,k,a,n]),A=d.useCallback((e=>{null==r||r(e),x.current&&!(0,I.H9)(x.current)&&C(e)}),[C,r]),M=d.useCallback((e=>{null==i||i(e),a||f(-1)}),[f,a,i]),D=d.useCallback((e=>{null==o||o(e),z(e.currentTarget)&&(null!=u?u:m)&&g()}),[g,o,m,u]),R=k===h,L=a&&!s;return(0,E.r)((()=>{b&&(R&&!L&&x.current?(0,S.T)(x.current,{nextTick:!0,selectTextIfInput:!1}):y.current&&!(0,I.H9)(y.current)&&(0,S.T)(y.current))}),[R,L,y,b]),P({},c,v({onClick:D,onMouseEnter:C,onMouseMove:A,onMouseLeave:M,ref:(0,p.l)(O,x,t),isDisabled:a,isFocusable:s}),{id:T,role:"menuitem",tabIndex:R?0:-1})}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 W(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var G=e=>{var{children:t}=e,n=(0,r.j)("Menu",e),a=function(e){void 0===e&&(e={});var{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:i=!0,isLazy:o,isOpen:a,defaultIsOpen:s,onClose:u,onOpen:c,placement:f="bottom-start",lazyBehavior:p="unmount",computePositionOnMount:h}=e,m=N(e,["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","computePositionOnMount"]),{isOpen:v,onOpen:g,onClose:T,onToggle:k}=(0,y.q)({isOpen:a,defaultIsOpen:s,onClose:u,onOpen:c}),C=d.useRef(null),A=d.useRef(null);(0,b.O)({ref:C,handler:e=>{var t;!v||!r||null!=(t=A.current)&&t.contains(e.target)||T()}});var M=(0,O.D)(P({},m,{enabled:v||h,placement:f})),[D,I]=d.useState(-1),R=j();(0,E.r)((()=>{v||I(-1)}),[v]),(0,_.C)(C,{focusRef:A,visible:v,shouldFocus:!0});var[L,F]=(0,w.ZS)(t,"menu-button","menu-list"),B=d.useCallback((()=>{g(),(0,S.T)(C.current,{nextTick:!0,selectTextIfInput:!1})}),[g,C]),H=d.useRef(new Set([]));return(0,x.z)((()=>{H.current.forEach((e=>clearTimeout(e))),H.current.clear()})),{openAndFocusMenu:B,openAndFocusFirstItem:d.useCallback((()=>{g();var e=setTimeout((()=>{var e=R.firstEnabled();e&&I(e.index)}));H.current.add(e)}),[g,I,R]),openAndFocusLastItem:d.useCallback((()=>{g();var e=setTimeout((()=>{var e=R.lastEnabled();e&&I(e.index)}));H.current.add(e)}),[g,I,R]),onTransitionEnd:d.useCallback((()=>{var e,t,n=(0,l.lZ)(C.current),r=null==(e=C.current)?void 0:e.contains(n.activeElement);if(v&&!r){var i=null==(t=R.item(D))?void 0:t.node;i&&(0,S.T)(i,{selectTextIfInput:!1})}}),[v,D,R]),descendants:R,popper:M,buttonId:L,menuId:F,forceUpdate:M.forceUpdate,orientation:"vertical",isOpen:v,onToggle:k,onOpen:g,onClose:T,menuRef:C,buttonRef:A,focusedIndex:D,closeOnSelect:n,closeOnBlur:r,autoSelect:i,setFocusedIndex:I,isLazy:o,lazyBehavior:p}}((0,i.Lr)(e)),{descendants:s}=a,c=W(a,["descendants"]),f=d.useMemo((()=>c),[c]),{isOpen:p,onClose:h,forceUpdate:m}=f;return d.createElement(R,{value:s},d.createElement(B,{value:f},d.createElement(o.Fo,{value:n},(0,u.Pu)(t,{isOpen:p,onClose:h,forceUpdate:m}))))};c.Ts&&(G.displayName="Menu");var K=(0,a.G)(((e,t)=>{var n=(0,o.yK)();return d.createElement(s.m$.button,V({ref:t},e,{__css:V({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))})),q=(0,a.G)(((e,t)=>{var{as:n}=e,r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=H(),{isOpen:r,onClose:i,autoSelect:o,popper:a,openAndFocusFirstItem:s,openAndFocusLastItem:c,openAndFocusMenu:f}=n,h=d.useCallback((()=>{r?i():(o?s:f)()}),[o,r,i,s,f]),m=d.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 P({},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)})}(W(e,["children","as"]),t),i=n||K;return d.createElement(i,V({},r,{className:(0,l.cx)("chakra-menu__menu-button",e.className)}),d.createElement(s.m$.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))}));c.Ts&&(q.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 f.E?f.E.custom(s.m$.div):(0,f.E)(s.m$.div),Y=(0,a.G)(((e,t)=>{var n,r,{rootProps:i}=e,a=W(e,["rootProps"]),{isOpen:c,onTransitionEnd:f}=H(),h=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=H();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:a,onClose:s,menuId:c,isLazy:f,lazyBehavior:h}=n,m=L(),v=T({preventDefault:e=>" "!==e.key&&z(e.target)}),g=d.useCallback((e=>{var t=(0,l.uh)(e),n={Tab:e=>e.preventDefault(),Escape:s,ArrowDown:()=>{var e=m.nextEnabled(r);e&&i(e.index)},ArrowUp:()=>{var e=m.prevEnabled(r);e&&i(e.index)}}[t];if(n)return e.preventDefault(),void n(e);var o=v((e=>{var t=(0,M.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);i(n)}}));z(e.target)&&o(e)}),[m,r,v,s,i]),y=d.useRef(!1);a&&(y.current=!0);var b=(0,D.V)({hasBeenSelected:y.current,isLazy:f,lazyBehavior:h,isSelected:a});return P({},e,{ref:(0,p.l)(o,t),children:b?e.children:null,tabIndex:-1,role:"menu",id:c,style:P({},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}=H();return t.getPopperProps(P({},e,{style:P({visibility:n?"visible":"hidden"},e.style)}))}(i),v=(0,o.yK)();return d.createElement(s.m$.div,V({},m,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=v.list)?void 0:r.zIndex}}),d.createElement($,V({},h,{onUpdate:f,className:(0,l.cx)("chakra-menu__menu-list",h.className),variants:Z,initial:!1,animate:c?"enter":"exit",__css:V({outline:0},v.list)})))}));c.Ts&&(Y.displayName="MenuList");var X=(0,a.G)(((e,t)=>{var{type:n}=e,r=W(e,["type"]),i=(0,o.yK)(),a=r.as?null!=n?n:void 0:"button",u=V({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},i.item);return d.createElement(s.m$.button,V({ref:t,type:a},r,{__css:u}))})),Q=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem",command:i,commandSpacing:o="0.75rem",children:a}=e,s=U(W(e,["icon","iconSpacing","command","commandSpacing","children"]),t),u=n||i?d.createElement("span",{style:{pointerEvents:"none",flex:1}},a):a;return d.createElement(X,V({},s,{className:(0,l.cx)("chakra-menu__menuitem",s.className)}),n&&d.createElement(ie,{fontSize:"0.8em",marginEnd:r},n),u,i&&d.createElement(re,{marginStart:o},i))}));c.Ts&&(Q.displayName="MenuItem");var J=e=>d.createElement("svg",V({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),d.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"})),ee=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem"}=e,i=W(e,["icon","iconSpacing"]),o=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{type:n="radio",isChecked:r}=e;return P({},U(N(e,["type","isChecked"]),t),{role:"menuitem"+n,"aria-checked":r})}(i,t);return d.createElement(X,V({},o,{className:(0,l.cx)("chakra-menu__menuitem-option",i.className)}),d.createElement(ie,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||d.createElement(J,null)),d.createElement("span",{style:{flex:1}},o.children))}));ee.id="MenuItemOption",c.Ts&&(ee.displayName="MenuItemOption");var te=e=>{var{className:t,title:n}=e,r=function(e){void 0===e&&(e={});var{children:t,type:n="radio",value:r,defaultValue:i,onChange:o}=e,a=N(e,["children","type","value","defaultValue","onChange"]),s="radio"===n?"":[],[u,l]=(0,k.T)({defaultValue:null!=i?i:s,value:r,onChange:o}),f=d.useCallback((e=>{if("radio"===n&&(0,c.HD)(u)&&l(e),"checkbox"===n&&(0,c.kJ)(u)){var t=u.includes(e)?(0,M.cl)(u,e):(0,M.jX)(u,e);l(t)}}),[u,l,n]);return P({},a,{children:(0,A.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 d.cloneElement(e,{type:n,onClick:t=>{f(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})}))})}(W(e,["className","title"]));return d.createElement(ne,V({title:n,className:(0,l.cx)("chakra-menu__option-group",t)},r))};c.Ts&&(te.displayName="MenuOptionGroup");var ne=(0,a.G)(((e,t)=>{var{title:n,children:r,className:i}=e,a=W(e,["title","children","className"]),u=(0,l.cx)("chakra-menu__group__title",i),c=(0,o.yK)();return d.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&d.createElement(s.m$.p,V({className:u},a,{__css:c.groupTitle}),n),r)}));c.Ts&&(ne.displayName="MenuGroup");var re=(0,a.G)(((e,t)=>{var n=(0,o.yK)();return d.createElement(s.m$.span,V({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))}));c.Ts&&(re.displayName="MenuCommand");var ie=e=>{var{className:t,children:n}=e,r=W(e,["className","children"]),i=d.Children.only(n),o=d.isValidElement(i)?d.cloneElement(i,{focusable:"false","aria-hidden":!0,className:(0,l.cx)("chakra-menu__icon",i.props.className)}):null,a=(0,l.cx)("chakra-menu__icon-wrapper",t);return d.createElement(s.m$.span,V({className:a},r,{__css:{flexShrink:0}}),o)};c.Ts&&(ie.displayName="MenuIcon");var oe=e=>{var{className:t}=e,n=W(e,["className"]),r=(0,o.yK)();return d.createElement(s.m$.hr,V({role:"separator","aria-orientation":"horizontal",className:(0,l.cx)("chakra-menu__divider",t)},n,{__css:r.divider}))};c.Ts&&(oe.displayName="MenuDivider")},85675:function(e,t,n){"use strict";n.d(t,{u_:function(){return Wt},fe:function(){return Yt},ol:function(){return Qt},hz:function(){return Kt},mz:function(){return Xt},xB:function(){return $t},ZA:function(){return Zt}});var r=n(31033),i=n(67294),o=n(63366),a=n(87462),s=(n(45697),"data-focus-lock"),u="data-focus-lock-disabled";function c(e,t){return function(e,t){var n=(0,i.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"},f=function(e){var t=e.children;return i.createElement(i.Fragment,null,i.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}),t,t&&i.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}))};f.propTypes={},f.defaultProps={children:null};var d=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 i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},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 i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};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=d.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}),_=[],w=i.forwardRef((function(e,t){var n,r=i.useState(),o=r[0],f=r[1],d=i.useRef(),p=i.useRef(!1),h=i.useRef(null),m=e.children,v=e.disabled,b=e.noFocusGuards,w=e.persistentFocus,x=e.crossFrame,T=e.autoFocus,k=(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=i.useState({})[0],B=i.useCallback((function(){h.current=h.current||document&&document.activeElement,d.current&&L&&L(d.current),p.current=!0}),[L]),H=i.useCallback((function(){p.current=!1,j&&j(d.current)}),[j]),z=i.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]),U=i.useCallback((function(e){p.current&&g.useMedium(e)}),[]),V=y.useMedium,W=i.useCallback((function(e){d.current!==e&&(d.current=e,f(e))}),[]);var G=(0,a.Z)(((n={})[u]=v&&"disabled",n[s]=k,n),P),K=!0!==b,q=K&&"tail"!==b,Z=c([t,W]);return i.createElement(i.Fragment,null,K&&[i.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:l}),i.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:l})],!v&&i.createElement(N,{id:F,sideCar:E,observed:o,disabled:v,persistentFocus:w,crossFrame:x,autoFocus:T,whiteList:C,shards:S,onActivation:B,onDeactivation:H,returnFocus:z}),i.createElement(D,(0,a.Z)({ref:Z},G,{className:O,onBlur:V,onFocus:U}),m),q&&i.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:l}))}));w.propTypes={},w.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 x=w,T=n(94578),k=n(4942);var O=function(e,t){return function(n){var r,o=[];function a(){r=e(o.map((function(e){return e.props}))),t(r)}var s=function(e){function t(){return e.apply(this,arguments)||this}(0,T.Z)(t,e),t.peek=function(){return r};var s=t.prototype;return s.componentDidMount=function(){o.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),a()},s.render=function(){return i.createElement(n,this.props)},t}(i.PureComponent);return(0,k.Z)(s,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s}},C=function(e){return"INPUT"===e.tagName&&"radio"===e.type},A=function(e,t){return C(e)&&e.name?function(e,t){return t.filter(C).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},S=function(e){return e[0]&&e.length>1?A(e[0],e):e[0]},M=function(e,t){return e.length>1?e.indexOf(A(e[t],e)):t},D=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")))&&D(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode);var t},I=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},P=function(e){return!I(e)},N=function(e){return Boolean(e)},R="NEW_FOCUS",L=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=I(n);if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),c=r?t.indexOf(r):u,l=r?e.indexOf(r):-1,f=u-c,d=t.indexOf(o),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(A(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=h.indexOf(n)-(r?h.indexOf(r):u),v=M(e,0),g=M(e,i-1);return-1===u||-1===l?R:!f&&l>=0?l:u<=d&&s&&Math.abs(f)>1?g:u>=p&&s&&Math.abs(f)>1?v:f&&Math.abs(m)>1?l:u<=d?g:u>p?v:f?Math.abs(f)>1?l:(i+l+f)%i:void 0}},j=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},F=function(e){return Array.isArray(e)?e:[e]},B=function(e){return e.parentNode?B(e.parentNode):e},H=function(e){return F(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 i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(j(B(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+u+'="disabled"])'))):[t]),e}),[])},z=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 j(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(z)},V=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),W=V+", [data-focus-guard]",G=function(e,t){return e.reduce((function(e,n){return e.concat(j(n.querySelectorAll(t?W:V)),n.parentNode?j(n.parentNode.querySelectorAll(V)).filter((function(e){return e===n})):[])}),[])},K=function(e){return j(e).filter((function(e){return D(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},q=function(e,t){return U(K(G(e,t)),!0,t)},Z=function(e){return U(K(G(e)),!1)},$=function(e){return K(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return j(t).map((function(e){return G([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e))},Y=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Y(e.parentNode,t),t},X=function(e,t){for(var n=Y(e),r=Y(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},Q=function(e,t,n){var r=F(e),i=F(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=X(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=X(o,e);t&&(a=!a||t.contains(a)?t:X(t,a))}))})),a},J=function(e,t){var n=document&&document.activeElement,r=H(e).filter(P),i=Q(n||e,e,r),o=Z(r),a=q(r).filter((function(e){var t=e.node;return P(t)}));if(a[0]||(a=o)[0]){var s,u=Z([i]).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(N)}(u,a),l=c.map((function(e){return e.node})),f=L(l,u,n,t);if(f===R){var d=o.map((function(e){return e.node})).filter((s=function(e){return e.reduce((function(e,t){return e.concat($(t))}),[])}(r),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||s.indexOf(e)>=0}));return{node:d&&d.length?S(d):S(l)}}return void 0===f?f:c[f]}},ee=0,te=!1,ne=function(e,t){var n,r=J(e,t);if(!te&&r){if(ee>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"),te=!0,void setTimeout((function(){te=!1}),1);ee++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),ee--}},re=function(e){return Boolean(j(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},ie=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&H(e).reduce((function(e,n){return e||n.contains(t)||re(n)}),!1)};function oe(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var ae=function(){return document&&document.activeElement===document.body||document&&j(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},se=null,ue=null,ce=null,le=!1,fe=function(){return!0};function de(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var pe=function(e){return e&&"current"in e?e.current:e},he=function(){var e,t=!1;if(se){var n=se,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||ce&&ce.portaledElement,c=document&&document.activeElement;if(u){var l=[u].concat(a.map(pe).filter(Boolean));if(c&&!function(e){return(se.whiteList||fe)(e)}(c)||(i||(s?Boolean(le):"meanwhile"===le)||!ae()||!ue&&o)&&(!u||ie(l)||(e=c,ce&&ce.portaledElement===e)||(document&&!ue&&c&&!o?(c.blur&&c.blur(),document.body.focus()):(t=ne(l,ue),ce={})),le=!1,ue=document&&document.activeElement),document){var f=document&&document.activeElement,d=function(e){var t=H(e).filter(P),n=Q(e,e,t),r=q([n],!0),i=q(t).filter((function(e){var t=e.node;return P(t)})).map((function(e){return e.node}));return r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:I(t)}}))}(l),p=d.map((function(e){return e.node})).indexOf(f);p>-1&&(d.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,d.length,1,d),de(p,-1,-1,d))}}}return t},me=function(e){he()&&e&&(e.stopPropagation(),e.preventDefault())},ve=function(){return oe(he)},ge=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ce={observerNode:n,portaledElement:t})},ye=function(){le="just",setTimeout((function(){le="meanwhile"}),0)};g.assignSyncMedium(ge),y.assignMedium(ve),b.assignMedium((function(e){return e({moveFocusInside:ne,focusInside:ie})}));var be=O((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!se&&(document.addEventListener("focusin",me,!0),document.addEventListener("focusout",ve),window.addEventListener("blur",ye));var n=se,r=n&&t&&t.id===n.id;se=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(ue=null,r&&n.observed===t.observed||t.onActivation(),he(),oe(he)):(document.removeEventListener("focusin",me,!0),document.removeEventListener("focusout",ve),window.removeEventListener("blur",ye),ue=null)}))((function(){return null})),Ee=i.forwardRef((function(e,t){return i.createElement(x,(0,a.Z)({sideCar:be,ref:t},e))})),_e=x.propTypes||{};_e.sideCar,(0,o.Z)(_e,["sideCar"]);Ee.propTypes={};var we=Ee,xe=n(77658),Te=n(47248),ke=n(73808),Oe=e=>{var{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:a,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:l}=e,f=i.useCallback((()=>{if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===(0,xe.t5)(r.current).length&&(0,Te.T)(r.current,{nextTick:!0})}}),[t,r]),d=i.useCallback((()=>{var e;null==n||null==(e=n.current)||e.focus()}),[n]),p=o&&!n;return i.createElement(we,{crossFrame:l,persistentFocus:c,autoFocus:u,disabled:s,onActivation:f,onDeactivation:d,returnFocus:p},a)};ke.Ts&&(Oe.displayName="FocusLock");var Ce=n(67273),Ae=n(2326),Se=n(29676),Me=n(89384),De=n(90063),Ie=n(84461),Pe=n(53869),Ne=n(39629),Re=n(24722);function Le(){return(Le=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 je={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,{transition:n,transitionEnd:r,delay:i}=void 0===e?{}:e;return{opacity:1,transition:null!=(t=null==n?void 0:n.enter)?t:Re.p$.enter(Re.R.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,{transition:n,transitionEnd:r,delay:i}=void 0===e?{}:e;return{opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:Re.p$.exit(Re.R.exit,i),transitionEnd:null==r?void 0:r.exit}}}},Fe=i.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,className:o,transition:a,transitionEnd:s,delay:u}=e,c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["unmountOnExit","in","className","transition","transitionEnd","delay"]),l=r||n?"enter":"exit",f=!n||r&&n,d={transition:a,transitionEnd:s,delay:u};return i.createElement(Pe.M,{custom:d},f&&i.createElement(Ne.E.div,Le({ref:t,className:(0,Ie.cx)("chakra-fade",o),custom:d},je,{animate:l},c)))}));ke.Ts&&(Fe.displayName="Fade");var Be=n(80658),He=n(28500),ze=n(69283),Ue="right-scroll-bar-position",Ve="width-before-scroll-bar",We=v(),Ge=function(){},Ke=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Ge,onWheelCapture:Ge,onTouchMoveCapture:Ge}),o=r[0],a=r[1],s=e.forwardProps,u=e.children,l=e.className,f=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,_=d._T(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,x=c([n,t]),T=d.pi({},_,o);return i.createElement(i.Fragment,null,p&&i.createElement(w,{sideCar:We,removeScrollBar:f,shards:h,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:n}),s?i.cloneElement(i.Children.only(u),d.pi({},T,{ref:x})):i.createElement(E,d.pi({},T,{className:l,ref:x}),u))}));Ke.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ke.classNames={fullWidth:Ve,zeroRight:Ue};var qe,Ze=function(e){var t=e.sideCar,n=d._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 i.createElement(r,d.pi({},n))};Ze.isSideCarExport=!0;function $e(){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 Ye=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=$e())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xe=function(){var e=function(){var e=Ye();return function(t){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},Qe={left:0,top:0,right:0,gap:0},Je=function(e){return parseInt(e||"",10)||0},et=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Qe;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Je(n),Je(r),Je(i)]}(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])}},tt=Xe(),nt=function(e,t,n,r){var i=e.left,o=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: "+i+"px;\n padding-top: "+o+"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 ."+Ve+" {\n margin-right: "+s+"px "+r+";\n }\n \n ."+Ue+" ."+Ue+" {\n right: 0 "+r+";\n }\n \n ."+Ve+" ."+Ve+" {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+s+"px;\n }\n"},rt=function(e){var t=i.useState(et(e.gapMode)),n=t[0],r=t[1];i.useEffect((function(){r(et(e.gapMode))}),[e.gapMode]);var o=e.noRelative,a=e.noImportant,s=e.gapMode,u=void 0===s?"margin":s;return i.createElement(tt,{styles:nt(n,!o,u,a?"":"!important")})},it=function(e,t){var n=t;do{if(ot(e,n)){var r=at(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)},at=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},st=!1;if("undefined"!==typeof window)try{var ut=Object.defineProperty({},"passive",{get:function(){return st=!0,!0}});window.addEventListener("test",ut,ut),window.removeEventListener("test",ut,ut)}catch(Jt){st=!1}var ct=!!st&&{passive:!1},lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ft=function(e){return[e.deltaX,e.deltaY]},dt=function(e){return e&&"current"in e?e.current:e},pt=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},ht=0,mt=[];var vt,gt=(vt=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(ht++)[0],a=i.useState((function(){return Xe()}))[0],s=i.useRef(e);i.useEffect((function(){s.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(dt)).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 u=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=lt(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v",d=it(f,l);if(!d)return!0;if(d?i=f:(i="v"===f?"h":"v",d=it(f,l)),!d)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=i),!i)return!0;var p=r.current||i;return function(e,t,n,r,i){var o=r,a=n.target,s=t.contains(a),u=!1,c=o>0,l=0,f=0;do{var d=at(e,a),p=d[0],h=d[1]-d[2]-p;(p||h)&&ot(e,a)&&(l+=h,f+=p),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(i&&0===l||!i&&o>l)||!c&&(i&&0===f||!i&&-o>f))&&(u=!0),u}(p,t,e,"h"===p?u:c,!0)}),[]),c=i.useCallback((function(e){var n=e;if(mt.length&&mt[mt.length-1]===a){var r="deltaY"in n?ft(n):lt(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i}))[0];if(i&&i.should)n.preventDefault();else if(!i){var o=(s.current.shards||[]).map(dt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(o.length>0?u(n,o[0]):!s.current.noIsolation)&&n.preventDefault()}}}),[]),l=i.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),f=i.useCallback((function(e){n.current=lt(e),r.current=void 0}),[]),d=i.useCallback((function(t){l(t.type,ft(t),t.target,u(t,e.lockRef.current))}),[]),p=i.useCallback((function(t){l(t.type,lt(t),t.target,u(t,e.lockRef.current))}),[]);i.useEffect((function(){return mt.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ct),document.addEventListener("touchmove",c,ct),document.addEventListener("touchstart",f,ct),function(){mt=mt.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,ct),document.removeEventListener("touchmove",c,ct),document.removeEventListener("touchstart",f,ct)}}),[]);var h=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:pt(o)}):null,h?i.createElement(rt,{gapMode:"margin"}):null)},We.useMedium(vt),Ze),yt=i.forwardRef((function(e,t){return i.createElement(Ke,d.pi({},e,{ref:t,sideCar:gt}))}));yt.classNames=Ke.classNames;var bt=yt;function Et(){return(Et=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={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t,{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!=(t=null==i?void 0:i.exit)?t:Re.p$.exit(Re.R.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:e=>{var t,{transition:n,transitionEnd:r,delay:i}=e;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:Re.p$.enter(Re.R.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t,{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:a,delay:s}=e,u={x:r,y:n};return Et({opacity:0,transition:null!=(t=null==i?void 0:i.exit)?t:Re.p$.exit(Re.R.exit,s)},a?Et({},u,{transitionEnd:null==o?void 0:o.exit}):{transitionEnd:Et({},u,null==o?void 0:o.exit)})}}},wt=i.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:o=!0,className:a,offsetX:s=0,offsetY:u=8,transition:c,transitionEnd:l,delay:f}=e,d=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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:o,transition:c,transitionEnd:l,delay:f};return i.createElement(Pe.M,{custom:m},p&&i.createElement(Ne.E.div,Et({ref:t,className:(0,Ie.cx)("chakra-offset-slide",a),custom:m},_t,{animate: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&&(wt.displayName="SlideFade");var Tt={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t,{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:a}=e;return xt({opacity:0},n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:xt({scale:r},null==o?void 0:o.exit)},{transition:null!=(t=null==i?void 0:i.exit)?t:Re.p$.exit(Re.R.exit,a)})},enter:e=>{var t,{transitionEnd:n,transition:r,delay:i}=e;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:Re.p$.enter(Re.R.enter,i),transitionEnd:null==n?void 0:n.enter}}}},kt=i.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:o=!0,initialScale:a=.95,className:s,transition:u,transitionEnd:c,delay:l}=e,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"]),d=!n||r&&n,p=r||n?"enter":"exit",h={initialScale:a,reverse:o,transition:u,transitionEnd:c,delay:l};return i.createElement(Pe.M,{custom:h},d&&i.createElement(Ne.E.div,xt({ref:t,className:(0,Ie.cx)("chakra-offset-slide",s)},Tt,{animate:p,custom:h},f)))}));function Ot(){return(Ot=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 Ct={slideInBottom:Ot({},_t,{custom:{offsetY:16,reverse:!0}}),slideInRight:Ot({},_t,{custom:{offsetX:16,reverse:!0}}),scale:Ot({},Tt,{custom:{initialScale:.95,reverse:!0}}),none:{}},At=(0,Me.m$)(Ne.E.section),St=i.forwardRef(((e,t)=>{var{preset:n}=e,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["preset"]),o=Ct[n];return i.createElement(At,Ot({ref:t},o,r))})),Mt=n(94577),Dt=n(72947),It=new WeakMap,Pt=new WeakMap,Nt={},Rt=0,Lt=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];Nt[n]||(Nt[n]=new WeakMap);var i=Nt[n],o=[],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=(It.get(e)||0)+1,c=(i.get(e)||0)+1;It.set(e,s),i.set(e,c),o.push(e),1===s&&r&&Pt.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),a.clear(),Rt++,function(){o.forEach((function(e){var t=It.get(e)-1,r=i.get(e)-1;It.set(e,t),i.set(e,r),t||(Pt.has(e)||e.removeAttribute("aria-hidden"),Pt.delete(e)),r||e.removeAttribute(n)})),--Rt||(It=new WeakMap,It=new WeakMap,Pt=new WeakMap,Nt={})}};var jt=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 Ft(){return(Ft=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 Bt(e){var t,n,{isOpen:r,onClose:o,id:a,closeOnOverlayClick:s=!0,closeOnEsc:u=!0,useInert:c=!0,onOverlayClick:l,onEsc:f}=e,d=(0,i.useRef)(null),p=(0,i.useRef)(null),[h,m,v]=(0,Mt.ZS)(a,"chakra-modal","chakra-modal--header","chakra-modal--body");t=d,n=r&&c,(0,i.useEffect)((()=>{if(t.current){var e=null;return n&&t.current&&(e=Lt(t.current)),()=>{n&&(null==e||e())}}}),[n,t]),function(e,t){(0,i.useEffect)((()=>(t&&jt.add(e),()=>{jt.remove(e)})),[t,e])}(d,r);var g=(0,i.useRef)(null),y=(0,i.useCallback)((e=>{g.current=e.target}),[]),b=(0,i.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),u&&(null==o||o()),null==f||f())}),[u,o,f]),[E,_]=(0,i.useState)(!1),[w,x]=(0,i.useState)(!1),T=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Ft({role:"dialog"},e,{ref:(0,Dt.l)(t,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":w?v:void 0,onClick:(0,Be.v0)(e.onClick,(e=>e.stopPropagation()))})}),[v,w,h,m,E]),k=(0,i.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&jt.isTopModal(d)&&(s&&(null==o||o()),null==l||l())}),[o,s,l]),O=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Ft({},e,{ref:(0,Dt.l)(t,p),onClick:(0,Be.v0)(e.onClick,k),onKeyDown:(0,Be.v0)(e.onKeyDown,b),onMouseDown:(0,Be.v0)(e.onMouseDown,y)})}),[b,y,k]);return{isOpen:r,onClose:o,headerId:m,bodyId:v,setBodyMounted:x,setHeaderMounted:_,dialogRef:d,overlayRef:p,getDialogProps:T,getDialogContainerProps:O}}function Ht(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function zt(){return(zt=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,Vt]=(0,He.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Wt=e=>{var{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:l,preserveScrollBarGap:f,motionPreset:d,lockFocusAcrossFrames:p}=e,h=(0,Ae.j)("Modal",e),m=zt({},Bt(e),{autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:l,preserveScrollBarGap:f,motionPreset:d,lockFocusAcrossFrames:p});return i.createElement(Ut,{value:m},i.createElement(Se.Fo,{value:h},i.createElement(Pe.M,null,m.isOpen&&i.createElement(Ce.h,t,n))))};Wt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},ke.Ts&&(Wt.displayName="Modal");var Gt=(0,Me.m$)(Ne.E.div),Kt=(0,De.G)(((e,t)=>{var{className:n,children:r,containerProps:o}=e,a=Ht(e,["className","children","containerProps"]),{getDialogProps:s,getDialogContainerProps:u}=Vt(),c=s(a,t),l=u(o),f=(0,Ie.cx)("chakra-modal__content",n),d=(0,Se.yK)(),p=zt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},d.dialog),h=zt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},d.dialogContainer),{motionPreset:m}=Vt();return i.createElement(qt,null,i.createElement(Me.m$.div,zt({},l,{className:"chakra-modal__content-container",__css:h}),i.createElement(St,zt({preset:m,className:f},c,{__css:p}),r)))}));function qt(e){var{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:l,lockFocusAcrossFrames:f}=Vt(),[d,p]=(0,ze.oO)();return i.useEffect((()=>{!d&&p&&setTimeout(p)}),[d,p]),i.createElement(Oe,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:f},i.createElement(bt,{removeScrollBar:!l,allowPinchZoom:s,enabled:a,forwardProps:!0},e.children))}ke.Ts&&(Kt.displayName="ModalContent");var Zt=(0,De.G)(((e,t)=>{var{className:n}=e,r=Ht(e,["className","transition"]),o=(0,Ie.cx)("chakra-modal__overlay",n),a=zt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,Se.yK)().overlay),{motionPreset:s}=Vt(),u="none"===s?{}:je;return i.createElement(Gt,zt({},u,{__css:a,ref:t,className:o},r))}));ke.Ts&&(Zt.displayName="ModalOverlay");var $t=(0,De.G)(((e,t)=>{var{className:n}=e,r=Ht(e,["className"]),{headerId:o,setHeaderMounted:a}=Vt();i.useEffect((()=>(a(!0),()=>a(!1))),[a]);var s=(0,Ie.cx)("chakra-modal__header",n),u=zt({flex:0},(0,Se.yK)().header);return i.createElement(Me.m$.header,zt({ref:t,className:s,id:o},r,{__css:u}))}));ke.Ts&&($t.displayName="ModalHeader");var Yt=(0,De.G)(((e,t)=>{var{className:n}=e,r=Ht(e,["className"]),{bodyId:o,setBodyMounted:a}=Vt();i.useEffect((()=>(a(!0),()=>a(!1))),[a]);var s=(0,Ie.cx)("chakra-modal__body",n),u=(0,Se.yK)();return i.createElement(Me.m$.div,zt({ref:t,className:s,id:o},r,{__css:u.body}))}));ke.Ts&&(Yt.displayName="ModalBody");var Xt=(0,De.G)(((e,t)=>{var{className:n}=e,r=Ht(e,["className"]),o=(0,Ie.cx)("chakra-modal__footer",n),a=zt({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,Se.yK)().footer);return i.createElement(Me.m$.footer,zt({ref:t},r,{__css:a,className:o}))}));ke.Ts&&(Xt.displayName="ModalFooter");var Qt=(0,De.G)(((e,t)=>{var{onClick:n,className:o}=e,a=Ht(e,["onClick","className"]),{onClose:s}=Vt(),u=(0,Ie.cx)("chakra-modal__close-btn",o),c=(0,Se.yK)();return i.createElement(r.P,zt({ref:t,__css:c.closeButton,className:u,onClick:(0,Be.v0)(n,(e=>{e.stopPropagation(),s()}))},a))}));ke.Ts&&(Qt.displayName="ModalCloseButton")},45170:function(e,t,n){"use strict";n.d(t,{J2:function(){return V},QH:function(){return Z},b:function(){return q},yk:function(){return G},xo:function(){return W}});n(31033);var r=n(2326),i=n(55284),o=n(29676),a=n(90063),s=n(89384),u=n(80658),c=n(73808),l=n(84461),f=n(67294),d=n(28500),[p,h]=(0,d.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),_=f.forwardRef(((e,t)=>{var{isOpen:n}=h();return f.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 w=n(74860),x=n(94577);var T=n(17768),k=n(47248),O=n(63158);function C(e){var t,{ref:n,elements:r,enabled:i}=e,o=(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(o&&i){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,T.H9)(t)&&a&&(e.preventDefault(),(0,k.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:i,returnFocusOnClose:o=!0,autoFocus:a=!0,arrowSize:s,arrowShadowColor:d,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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["closeOnBlur","closeOnEsc","initialFocusRef","id","returnFocusOnClose","autoFocus","arrowSize","arrowShadowColor","trigger","openDelay","closeDelay","isLazy","lazyBehavior","computePositionOnMount"]),{isOpen:E,onClose:_,onOpen:T,onToggle:O}=(0,w.q)(e),H=(0,f.useRef)(null),z=(0,f.useRef)(null),U=(0,f.useRef)(!1),V=(0,f.useRef)(!1);E&&(V.current=!0);var[W,G]=(0,f.useState)(!1),[K,q]=(0,f.useState)(!1),[Z,$,Y,X]=(0,x.ZS)(i,"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)(z,{focusRef:H,visible:E,shouldFocus:o&&p===B.click}),function(e,t){void 0===t&&(t=I);var{focusRef:n,preventScroll:r,shouldFocus:i,visible:o}=t,a=(0,c.Ik)(e)?e.current:e,s=i&&o,u=(0,f.useCallback)((()=>{if(a&&s&&!(0,l.r3)(a,document.activeElement))if(null!=n&&n.current)(0,k.T)(n.current,{preventScroll:r,nextTick:!0});else{var e=(0,S.t5)(a);e.length>0&&(0,k.T)(e[0],{preventScroll:r,nextTick:!0})}}),[s,r,a,n]);(0,D.r)((()=>{u()}),[u]),(0,M.O)("transitionend",u,a)}(z,{focusRef:r,visible:E,shouldFocus:a&&p===B.click});var re=(0,L.V)({hasBeenSelected:V.current,isLazy:v,lazyBehavior:g,isSelected:E}),ie=(0,f.useCallback)((function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var i=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]:d}),ref:(0,R.l)(z,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)(z.current,n),i=(0,l.r3)(H.current,n);E&&t&&(!r&&!i)&&_()})),"aria-labelledby":W?Y:void 0,"aria-describedby":K?X:void 0});return p===B.hover&&(i.role="tooltip",i.onMouseEnter=(0,u.v0)(e.onMouseEnter,(()=>{U.current=!0})),i.onMouseLeave=(0,u.v0)(e.onMouseLeave,(()=>{U.current=!1,setTimeout(_,m)}))),i}),[re,$,W,Y,K,X,p,n,_,E,t,m,d,s]),oe=(0,f.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,f.useRef)(),se=(0,f.useRef)(),ue=(0,f.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:Z,"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,T),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,(()=>{U.current=!0,ae.current=window.setTimeout(T,h)})),n.onMouseLeave=(0,u.v0)(e.onMouseLeave,(()=>{U.current=!1,ae.current&&(clearTimeout(ae.current),ae.current=void 0),se.current=window.setTimeout((()=>{!1===U.current&&_()}),m)}))),n}),[Z,E,$,p,Q,O,T,_,h,m]);(0,f.useEffect)((()=>()=>{ae.current&&clearTimeout(ae.current),se.current&&clearTimeout(se.current)}),[]);var ce=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),F({},e,{id:Y,ref:(0,R.l)(t,(e=>{G(!!e)}))})}),[Y]),le=(0,f.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:oe,getPopoverProps:ie,getTriggerProps:ue,getHeaderProps:ce,getBodyProps:le}}function z(){return(z=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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var V=e=>{var t=(0,r.j)("Popover",e),n=(0,i.Lr)(e),{children:a}=n,s=H(U(n,["children"]));return f.createElement(p,{value:s},f.createElement(o.Fo,{value:t},(0,u.Pu)(a,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate})))};c.Ts&&(V.displayName="Popover");var W=e=>{var t=f.Children.only(e.children),{getTriggerProps:n}=h();return f.cloneElement(t,n(t.props,t.ref))};c.Ts&&(W.displayName="PopoverTrigger");var G=(0,a.G)(((e,t)=>{var{rootProps:n}=e,r=U(e,["rootProps"]),{getPopoverProps:i,getPopoverPositionerProps:a}=h(),u=(0,o.yK)(),c=z({position:"relative",display:"flex",flexDirection:"column"},u.content);return f.createElement(s.m$.div,z({},a(n),{__css:u.popper,className:"chakra-popover__popper"}),f.createElement(_,z({},i(r,t),{className:(0,l.cx)("chakra-popover__content",e.className),__css:c})))}));c.Ts&&(G.displayName="PopoverContent");var K=(0,a.G)(((e,t)=>{var{getHeaderProps:n}=h(),r=(0,o.yK)();return f.createElement(s.m$.header,z({},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,o.yK)();return f.createElement(s.m$.div,z({},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 Z=e=>{var t,{bg:n,bgColor:r,backgroundColor:i}=e,{getArrowProps:a,getArrowInnerProps:u}=h(),c=(0,o.yK)(),d=null!=(t=null!=n?n:r)?t:i;return f.createElement(s.m$.div,z({},a(),{className:"chakra-popover__arrow-positioner"}),f.createElement(s.m$.div,z({className:(0,l.cx)("chakra-popover__arrow",e.className)},u(e),{__css:z({},c.arrow,{"--popper-arrow-bg":d?"colors."+d+", "+d:void 0})})))};c.Ts&&(Z.displayName="PopoverArrow")},8931:function(e,t,n){"use strict";n.d(t,{D:function(){return be}});var r=n(72947);function i(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 o(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function a(e){var t=o(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function s(e){return e instanceof o(e).Element||e instanceof Element}function u(e){return e instanceof o(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 f(e){return i(l(e)).left+a(e).scrollLeft}function d(e){return o(e).getComputedStyle(e)}function p(e){var t=d(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function h(e,t,n){void 0===n&&(n=!1);var r=l(t),s=i(e),d=u(t),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(d||!d&&!n)&&(("body"!==c(t)||p(r))&&(h=function(e){return e!==o(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:a(e);var t}(t)),u(t)?((m=i(t)).x+=t.clientLeft,m.y+=t.clientTop):r&&(m.x=f(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),i=o(n),a=r?[i].concat(i.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"===d(e).position)return null;var t=e.offsetParent;if(t){var n=l(t);if("body"===c(t)&&"static"===d(t).position&&"static"!==d(n).position)return n}return t}function _(e){for(var t=o(e),n=E(e);n&&b(n)&&"static"===d(n).position;)n=E(n);return n&&"body"===c(n)&&"static"===d(n).position?t:n||function(e){for(var t=v(e);u(t)&&["html","body"].indexOf(c(t))<0;){var n=d(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var w="top",x="bottom",T="right",k="left",O="auto",C=[w,x,T,k],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 i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(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,i=t.defaultOptions,o=void 0===i?j:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},j),o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],u=!1,c={state:i,setOptions:function(n){l(),i.options=Object.assign(Object.assign(Object.assign({},o),i.options),n),i.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,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:c,options:r}),u=function(){};a.push(s||u)}})),c.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,n=e.popper;if(F(t,n)){i.rects={reference:h(t,_(n),"fixed"===i.options.strategy),popper:m(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,s=o.options,l=void 0===s?{}:s,f=o.name;"function"===typeof a&&(i=a({state:i,options:l,name:f,instance:c})||i)}else i.reset=!1,r=-1}}},update:L((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),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 z(e){return e.split("-")[0]}function U(e){return e.split("-")[1]}function V(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function W(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?z(i):null,a=i?U(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case w:t={x:s,y:n.y-r.height};break;case x:t={x:s,y:n.y+n.height};break;case T:t={x:n.x+n.width,y:u};break;case k:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?V(o):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 G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,f=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),d=f.x,p=f.y,h=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=k,g=w,y=window;if(c){var b=_(n);b===o(n)&&(b=l(n)),i===w&&(g=x,p-=b.clientHeight-r.height,p*=u?1:-1),i===k&&(v=T,d-=b.clientWidth-r.width,d*=u?1:-1)}var E,O=Object.assign({position:s},c&&G);return u?Object.assign(Object.assign({},O),{},((E={})[g]=m?"0":"",E[v]=h?"0":"",E.transform=(y.devicePixelRatio||1)<2?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",E)):Object.assign(Object.assign({},O),{},((t={})[g]=m?p+"px":"",t[v]=h?d+"px":"",t.transform="",t))}var q={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(function(e){return q[e]}))}var $={start:"end",end:"start"};function Y(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=o(e),n=l(e),r=t.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:i,height:a,x:s+f(e),y:u}}(e)):u(t)?function(e){var t=i(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,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+f(e),u=-n.scrollTop;return"rtl"===d(r||t).direction&&(s+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,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(d(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),i=[].concat(r,[n]),o=i[0],a=i.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,o));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,o=void 0===r?e.placement:r,a=n.boundary,u=void 0===a?"clippingParents":a,c=n.rootBoundary,f=void 0===c?M:c,d=n.elementContext,p=void 0===d?D:d,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,k=e.elements[m?b:p],O=ee(s(k)?k:k.contextElement||l(e.elements.popper),u,f),A=i(E),S=W({reference:A,element:_,strategy:"absolute",placement:o}),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[o];Object.keys(N).forEach((function(e){var t=[T,x].indexOf(e)>=0?1:-1,n=[w,x].indexOf(e)>=0?"y":"x";N[e]+=L[n]*t}))}return N}function ie(e,t,n){return Math.max(e,Math.min(t,n))}function oe(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[w,T,x,k].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,i=r.scroll,a=void 0===i||i,s=r.resize,u=void 0===s||s,c=o(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]=W({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,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s={placement:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};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]||{},i=t.elements[e];u(i)&&c(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.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],i=t.attributes[e]||{},o=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,o),Object.keys(i).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,i=n.offset,o=void 0===i?[0,0]:i,a=P.reduce((function(e,n){return e[n]=function(e,t,n){var r=z(e),i=[k,w].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[k,T].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),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 i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=z(v),y=u||(g===v||!h?[Z(v)]:function(e){if(z(e)===O)return[];var t=Z(e);return[Y(e),t,Y(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(z(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?P:u,l=U(r),f=l?s?I:I.filter((function(e){return U(e)===l})):C,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=re(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[z(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,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=z(R),j=U(R)===A,F=[w,x].indexOf(L)>=0,B=F?"width":"height",H=re(t,{placement:R,boundary:l,rootBoundary:f,altBoundary:d,padding:c}),V=F?j?T:k:j?x:w;E[B]>_[B]&&(V=Z(V));var W=Z(V),G=[];if(o&&G.push(H[L]<=0),s&&G.push(H[V]<=0,H[W]<=0),G.every((function(e){return e}))){D=R,M=!1;break}S.set(R,G)}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,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,g=re(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),y=z(t.placement),b=U(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(o){var N="y"===O?w:k,R="y"===O?x:T,L="y"===O?"height":"width",j=S[O],F=S[O]+g[N],B=S[O]-g[R],H=p?-D[L]/2:0,W=b===A?M[L]:D[L],G=b===A?-D[L]:-M[L],K=t.elements.arrow,q=p&&K?m(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=Z[N],Y=Z[R],X=ie(0,M[L],q[L]),Q=E?M[L]/2-H-X-$-I:W-X-$-I,J=E?-M[L]/2+H+X+Y+I:G+X+Y+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,oe=S[O]+Q-ne-te,ae=S[O]+J-ne,se=ie(p?Math.min(F,oe):F,j,p?Math.max(B,ae):B);S[O]=se,P[O]=se-j}if(s){var ue="x"===O?w:k,ce="x"===O?x:T,le=S[C],fe=ie(le+g[ue],le,le-g[ce]);S[C]=fe,P[C]=fe-le}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=z(n.placement),s=V(a),u=[k,T].indexOf(a)>=0?"height":"width";if(i&&o){var c=n.modifiersData[r+"#persistent"].padding,l=m(i),f="y"===s?w:k,d="y"===s?x:T,p=n.rects.reference[u]+n.rects.reference[s]-o[s]-n.rects.popper[u],h=o[s]-n.rects.reference[s],v=_(i),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=p/2-h/2,b=c[f],E=g-l[u]-c[d],O=g/2-l[u]/2+y,C=ie(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,i=n.element,o=void 0===i?"[data-popper-arrow]":i,a=n.padding,s=void 0===a?0:a;null!=o&&("string"!==typeof o||(o=t.elements.popper.querySelector(o)))&&X(t.elements.popper,o)&&(t.elements.arrow=o,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,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=re(t,{elementContext:"reference"}),s=re(t,{altBoundary:!0}),u=oe(a,r),c=oe(s,i,o),l=ae(u),f=ae(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),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"}}},fe={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{var{state:t}=e;de(t)},effect:e=>{var{state:t}=e;return()=>{de(t)}}},de=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 i in r)e.elements.arrow.style.setProperty(i,r[i])}}},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:i="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:u,gutter:c=8,flip:l=!0,boundary:f="clippingParents",preventOverflow:d=!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:i,modifiers:[ve,pe,fe,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:!!d,options:{boundary:f}},...n],strategy:o}),v.current.forceUpdate(),g.current=v.current.destroy)}),[t,i,n,p,s,a,u,c,l,d,f,o]);(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]),w=(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:o,minWidth:"max-content",inset:"0 auto auto 0"})})}),[o,_]),x=(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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["size","shadowColor","bg","style"]),{ref:t,"data-popper-arrow":"",style:Ee(e)})}),[]),T=(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:w,getArrowProps:x,getArrowInnerProps:T,getReferenceProps:E}}function Ee(e){var{size:t,shadowColor:n,bg:r,style:i}=e,o=ye({},i,{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}},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 o},Ke:function(){return a},mv:function(){return u},$B:function(){return l}});var i=(e,t)=>({var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}),o={arrowShadowColor:i("--popper-arrow-shadow-color"),arrowSize:i("--popper-arrow-size","8px"),arrowSizeHalf:i("--popper-arrow-size-half"),arrowBg:i("--popper-arrow-bg"),transformOrigin:i("--popper-transform-origin"),arrowOffset:i("--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),i=n(77581);function o(){var e=r.useRef(!1),[t,n]=r.useState(0);return(0,i.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),f=n(34288);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[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,i=r.useRef(null),s=r.useRef(null),u=o(),c=h(),d=(0,f.L)();(0,a.G)((()=>{if(i.current){var e=i.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!=d&&d.zIndex?r.createElement(v,{zIndex:null==d?void 0:d.zIndex},n):n;return s.current?(0,l.createPortal)(r.createElement(p,{value:s.current},g),s.current):r.createElement("span",{ref:i})},y=e=>{var{children:t,containerRef:n,appendToParentPortal:i}=e,u=n.current,c=null!=u?u:s.jU?document.body:void 0,f=r.useMemo((()=>{var e=null==u?void 0:u.ownerDocument.createElement("div");return e&&(e.className=m),e}),[u]),d=o();return(0,a.G)((()=>{d()}),[]),(0,a.G)((()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}}),[f,c]),c&&f?(0,l.createPortal)(r.createElement(p,{value:i?f:null},t),f):null};function b(e){var{containerRef:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["containerRef"]);return t?r.createElement(y,d({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=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}},40805:function(e,t,n){"use strict";t.__esModule=!0,t.createContext=function(e){void 0===e&&(e={});var t=e,n=t.strict,i=void 0===n||n,o=t.errorMessage,a=void 0===o?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":o,s=t.name,u=r.createContext(void 0);return u.displayName=s,[u.Provider,function e(){var t=r.useContext(u);if(!t&&i){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=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}},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 i=n(40805);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(47412);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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=i,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 i(t,e)}))}};var r=n(66751);function i(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 i}});var r=n(67294);function i(e){return r.Children.toArray(e).filter((e=>r.isValidElement(e)))}},72947:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(73808);function i(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 o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>i(t,e)))}}},40980:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return i.useTheme}});n(62300);var r=n(84806);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var i=n(11180)},46049:function(e,t,n){"use strict";n.d(t,{Ph:function(){return I}});var r=n(84461),i=n(80658),o=n(94577),a=n(90639),s=n(90063),u=n(2326),c=n(55284),l=n(29676),f=n(89384),d=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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}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"]),f=(0,o.Me)(),d=t||"field-"+f,p=d+"-label",y=d+"-feedback",b=d+"-helptext",[E,_]=m.useState(!1),[w,x]=m.useState(!1),[T,k]=(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&&x(!0)}))})}),[b]),C=m.useCallback((function(e,t){var n,i;return void 0===e&&(e={}),void 0===t&&(t=null),v({},e,{ref:t,"data-focus":(0,r.PB)(T),"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!=(i=e.htmlFor)?i:d})}),[d,u,T,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,i.A4)(k.on)}),[k]);return{isRequired:!!n,isInvalid:!!s,isReadOnly:!!c,isDisabled:!!u,isFocused:!!T,onFocus:D,onBlur:k.off,hasFeedbackText:E,setHasFeedbackText:_,hasHelpText:w,setHasHelpText:x,id:d,labelId:p,feedbackId:y,helpTextId:b,htmlProps:l,getHelpTextProps:O,getErrorMessageProps:A,getRootProps:S,getLabelProps:C,getRequiredIndicatorProps:M}}((0,c.Lr)(e)),{getRootProps:d}=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(f.m$.div,v({},d({},t),{className:b,__css:{width:"100%",position:"relative"}}))))}));d.Ts&&(E.displayName="FormControl");var _=(0,s.G)(((e,t)=>{var n=b(),i=(0,l.yK)(),o=(0,r.cx)("chakra-form__helper-text",e.className);return m.createElement(f.m$.div,v({},null==n?void 0:n.getHelpTextProps(e,t),{__css:i.helperText,className:o}))}));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 x(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function T(e){var t=function(e){var t,n,r,o=b(),{id:a,disabled:s,readOnly:u,required:c,isRequired:l,isInvalid:f,isReadOnly:d,isDisabled:p,onFocus:h,onBlur:m}=e,v=x(e,["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"]),g=[];null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&g.push(o.feedbackId);null!=o&&o.hasHelpText&&g.push(o.helpTextId);return w({},v,{"aria-describedby":g.join(" ")||void 0,id:null!=a?a:null==o?void 0:o.id,isDisabled:null!=(t=null!=s?s:p)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=u?u:d)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=c?c:l)?r:null==o?void 0:o.isRequired,isInvalid:null!=f?f:null==o?void 0:o.isInvalid,onFocus:(0,i.v0)(null==o?void 0:o.onFocus,h),onBlur:(0,i.v0)(null==o?void 0:o.onBlur,m)})}(e),{isDisabled:n,isInvalid:o,isReadOnly:a,isRequired:s}=t;return w({},x(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:a,required:s,"aria-invalid":(0,r.Qm)(o),"aria-required":(0,r.Qm)(s),"aria-readonly":(0,r.Qm)(a)})}d.Ts&&(_.displayName="FormHelperText");var k=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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var D=(0,s.G)(((e,t)=>{var{children:n,placeholder:i,className:o}=e,a=T(M(e,["children","placeholder","className"]));return m.createElement(f.m$.select,S({},a,{ref:t,className:(0,r.cx)("chakra-select",o)}),i&&m.createElement("option",{value:""},i),n)}));d.Ts&&(D.displayName="SelectField");var I=(0,s.G)(((e,t)=>{var n=(0,u.j)("Select",e),r=(0,c.Lr)(e),{rootProps:i,placeholder:o,icon:a,color:s,height:l,h:d,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,k.layoutPropNames),_={width:"100%",height:"fit-content",position:"relative",color:s},w=A()({},n.field,{paddingEnd:"2rem",_focus:{zIndex:"unset"}});return m.createElement(f.m$.div,S({className:"chakra-select__wrapper",__css:_},b,i),m.createElement(D,S({ref:t,height:null!=d?d:l,minH:null!=p?p:h,placeholder:o},E,{__css:w}),e.children),m.createElement(R,S({"data-disabled":e.isDisabled},(v||s)&&{color:v||s},{__css:n.icon},g&&{fontSize:g}),a))}));d.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,f.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)};d.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 Z}});var r=n(90063),i=n(2326),o=n(55284),a=n(29676),s=n(89384),u=n(73808),c=n(84461),l=n(28500),f=n(67294),d=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 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 x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T{constructor(e,t,n){if(x(this,"history",[]),x(this,"startEvent",null),x(this,"lastEvent",null),x(this,"lastEventInfo",null),x(this,"handlers",{}),x(this,"removeListeners",_.ZT),x(this,"threshold",3),x(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(w({},e.point,{timestamp:r}));var{onStart:i,onMove:o}=this.handlers;t||(null==i||i(this.lastEvent,e),this.startEvent=this.lastEvent),null==o||o(this.lastEvent,e)}}})),x(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)})),x(this,"onPointerUp",((e,t)=>{var n=A(t,this.history),{onEnd:r,onSessionEnd:i}=this.handlers;null==i||i(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:i}=(0,b.$B)();this.history=[w({},r.point,{timestamp:i})];var{onSessionStart:o}=t;null==o||o(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 k(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:k(e.point,C(t)),offset:k(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,i=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};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 z(e){var t,{min:n=0,max:r=100,onChange:i,value:o,defaultValue:a,isReversed:s,orientation:u="horizontal",id:l,isDisabled:b,isReadOnly:E,onChangeStart:w,onChangeEnd:x,step:k=1,getAriaValueText:O,"aria-valuetext":C,"aria-label":A,"aria-labelledby":S,name:P,focusThumbOnChange:z=!0}=e,V=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["min","max","onChange","value","defaultValue","isReversed","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"]),W=(0,d.W)(w),G=(0,d.W)(x),K=(0,d.W)(O),[q,Z]=(0,p.T)({value:o,defaultValue:null!=a?a:U(n,r),onChange:i}),[$,Y]=(0,h.k)(),X=function(e){var t=(0,f.useRef)();return(0,f.useEffect)((()=>{t.current=e}),[e]),t.current}($),[Q,J]=(0,h.k)(),ee=(0,f.useRef)(null),te=!(b||E),ne=L(q,n,r),re=function(e){var t=f.useRef(null);return t.current=e,t}(ne),ie=(0,f.useRef)(re.current),oe=N(s?r-ne+n:ne,n,r),ae="vertical"===u,se=(0,f.useRef)(null),ue=(0,f.useRef)(null),ce=(0,f.useRef)(null),[le,fe]=(0,m.ZS)(l,"slider-thumb","slider-track"),de=(0,f.useCallback)((e=>{var t,i;if(se.current){ee.current="pointer";var o=(0,v.getBox)(se.current).borderBox,{clientX:a,clientY:u}=null!=(t=null==(i=e.touches)?void 0:i[0])?t:e,c=(ae?o.bottom-u:a-o.left)/(ae?o.height:o.width);s&&(c=1-c);var l=function(e,t,n){return(n-t)*e+t}(c,n,r);return k&&(l=parseFloat(R(l,n,k))),l=L(l,n,r)}}),[ae,s,r,n,k]),pe=(r-n)/10,he=k||(r-n)/100,me=(0,f.useCallback)((e=>{te&&(e=L(e=parseFloat(R(e,n,he)),n,r),Z(e))}),[he,r,n,Z,te]),ve=(0,f.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,f.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]=f.useState(null),i=f.useRef();return(0,g.G)((()=>{if(e.current){var n=e.current;return o(),t&&(window.addEventListener("resize",o),window.addEventListener("scroll",o)),()=>{t&&(window.removeEventListener("resize",o),window.removeEventListener("scroll",o)),i.current&&cancelAnimationFrame(i.current)}}function o(){i.current=requestAnimationFrame((()=>{var e=(0,v.getBox)(n);r(e)}))}}),[t]),n}(ue),{thumbStyle:Ee,rootStyle:_e,trackStyle:we,innerTrackStyle:xe}=(0,f.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:i}=e,o=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:i?{height:100-n+"%",top:0}:{height:n+"%",bottom:0},horizontal:i?{width:100-n+"%",right:0}:{width:n+"%",left:0}})),rootStyle:a,thumbStyle:o}}({isReversed:s,orientation:u,thumbRect:t,trackPercent:oe})}),[s,u,null==be?void 0:be.borderBox,oe]),Te=(0,f.useCallback)((()=>{ue.current&&z&&setTimeout((()=>(0,j.T)(ue.current)))}),[z]);(0,y.r)((()=>{Te(),"keyboard"===ee.current&&(null==x||x(re.current))}),[ne,x]);var ke=e=>{var t=de(e);null!=t&&t!==re.current&&Z(t)};!function(e,t){var{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a}=t,s=Boolean(n||r||i||o||a),u=(0,f.useRef)(null),c={onSessionStart:o,onSessionEnd:a,onStart:r,onMove:n,onEnd(e,t){u.current=null,null==i||i(e,t)}};(0,f.useEffect)((()=>{var e;null==(e=u.current)||e.updateHandlers(c)})),(0,M.m)((()=>e.current),"pointerdown",s?function(e){u.current=new T(e,c)}:_.ZT),(0,D.z)((()=>{var e;null==(e=u.current)||e.end(),u.current=null}))}(ce,{onPanSessionStart(e){te&&ke(e)},onPanSessionEnd(){te&&(X||ie.current===re.current||(null==G||G(re.current),ie.current=re.current))},onPanStart(){te&&(Y.on(),null==W||W(re.current))},onPan(e){te&&ke(e)},onPanEnd(){te&&(Y.off(),null==G||G(re.current))}});var Oe=(0,f.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,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),H({},e,{ref:(0,I.l)(t,se),id:fe,"data-disabled":(0,c.PB)(b),style:H({},e.style,we)})}),[b,fe,we]),Ae=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),H({},e,{ref:t,style:H({},e.style,xe)})}),[xe]),Se=(0,f.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,f.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var i=!(e.value<n||e.value>r),o=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)(!i),"data-highlighted":(0,c.PB)(o),style:H({},e.style,l)})}),[b,s,r,n,u,ne]),De=(0,f.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 U(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[W,G]=(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,i.j)("Slider",e),r=z((0,o.Lr)(e)),{getInputProps:u,getRootProps:c}=r,l=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,["getInputProps","getRootProps"]),d=c(),p=u({},t),h=V({display:"inline-block",position:"relative",cursor:"pointer"},n.container);return f.createElement(W,{value:l},f.createElement(a.Fo,{value:n},f.createElement(s.m$.div,V({},d,{className:"chakra-slider",__css:h}),e.children,f.createElement("input",p))))}));K.defaultProps={orientation:"horizontal"},u.Ts&&(K.displayName="Slider");var q=(0,r.G)(((e,t)=>{var{getThumbProps:n}=G(),r=V({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0},(0,a.yK)().thumb),i=n(e,t);return f.createElement(s.m$.div,V({},i,{className:(0,c.cx)("chakra-slider__thumb",e.className),__css:r}))}));u.Ts&&(q.displayName="SliderThumb");var Z=(0,r.G)(((e,t)=>{var{getTrackProps:n}=G(),r=V({overflow:"hidden"},(0,a.yK)().track),i=n(e,t);return f.createElement(s.m$.div,V({},i,{className:(0,c.cx)("chakra-slider__track",e.className),__css:r}))}));u.Ts&&(Z.displayName="SliderTrack");var $=(0,r.G)(((e,t)=>{var{getInnerTrackProps:n}=G(),r=V({width:"inherit",height:"inherit"},(0,a.yK)().filledTrack),i=n(e,t);return f.createElement(s.m$.div,V({},i,{className:"chakra-slider__filled-track",__css:r}))}));u.Ts&&($.displayName="SliderFilledTrack");var Y=(0,r.G)(((e,t)=>{var{getMarkerProps:n}=G(),r=n(e,t);return f.createElement(s.m$.div,V({},r,{className:(0,c.cx)("chakra-slider__marker",e.className)}))}));u.Ts&&(Y.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),i=n(66751),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,f=void 0===l?"Loading...":l,d=s.thickness,p=void 0===d?"2px":d,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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(s,["label","thickness","speed","emptyColor","className"]),E=(0,i.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),f&&a.createElement(o.VisuallyHidden,null,f))}));t.Spinner=l,i.__DEV__&&(l.displayName="Spinner")},56693:function(e,t,n){"use strict";t.__esModule=!0,t.background=void 0;var r=n(77050),i={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=i,Object.assign(i,{bgImage:i.backgroundImage,bgImg:i.backgroundImage})},24689:function(e,t,n){"use strict";t.__esModule=!0,t.border=void 0;var r=n(77050),i={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=i,Object.assign(i,{rounded:i.borderRadius,roundedTop:i.borderTopRadius,roundedTopLeft:i.borderTopLeftRadius,roundedTopRight:i.borderTopRightRadius,roundedTopStart:i.borderStartStartRadius,roundedTopEnd:i.borderStartEndRadius,roundedBottom:i.borderBottomRadius,roundedBottomLeft:i.borderBottomLeftRadius,roundedBottomRight:i.borderBottomRightRadius,roundedBottomStart:i.borderEndStartRadius,roundedBottomEnd:i.borderEndEndRadius,roundedLeft:i.borderLeftRadius,roundedRight:i.borderRightRadius,roundedStart:i.borderInlineStartRadius,roundedEnd:i.borderInlineEndRadius,borderStart:i.borderInlineStart,borderEnd:i.borderInlineEnd,borderTopStartRadius:i.borderStartStartRadius,borderTopEndRadius:i.borderStartEndRadius,borderBottomStartRadius:i.borderEndStartRadius,borderBottomEndRadius:i.borderEndEndRadius,borderStartRadius:i.borderInlineStartRadius,borderEndRadius:i.borderInlineEndRadius,borderStartWidth:i.borderInlineStartWidth,borderEndWidth:i.borderInlineEndWidth,borderStartColor:i.borderInlineStartColor,borderEndColor:i.borderInlineEndColor,borderStartStyle:i.borderInlineStartStyle,borderEndStyle:i.borderInlineEndStyle})},4561:function(e,t,n){"use strict";t.__esModule=!0,t.color=void 0;var r=n(77050),i={color:r.t.colors("color"),textColor:r.t.colors("color"),fill:r.t.colors("fill"),stroke:r.t.colors("stroke")};t.color=i},93103:function(e,t,n){"use strict";t.__esModule=!0,t.effect=void 0;var r=n(77050),i={boxShadow:r.t.shadows("boxShadow"),mixBlendMode:!0,blendMode:r.t.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:r.t.prop("backgroundBlendMode"),opacity:!0};t.effect=i,Object.assign(i,{shadow:i.boxShadow})},94015:function(e,t,n){"use strict";t.__esModule=!0,t.filter=void 0;var r=n(77050),i={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=i},17608:function(e,t,n){"use strict";t.__esModule=!0,t.flexbox=void 0;var r=n(77050),i=n(41629),o=n(23744),a={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:r.transforms.flexDirection},experimental_spaceX:{static:o.spaceXTemplate,transform:(0,i.createTransform)({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:o.spaceYTemplate,transform:(0,i.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),i={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=i},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 i=n(24689);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(4561);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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 f=n(24569);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var d=n(59472);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[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),i={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:r.transforms.outline},outlineOffset:!0,outlineColor:r.t.colors("outlineColor")};t.interactivity=i},24569:function(e,t,n){"use strict";t.__esModule=!0,t.layout=void 0;var r=n(77050),i={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=i,Object.assign(i,{w:i.width,h:i.height,minW:i.minWidth,maxW:i.maxWidth,minH:i.minHeight,maxH:i.maxHeight,overscroll:i.overscrollBehavior,overscrollX:i.overscrollBehaviorX,overscrollY:i.overscrollBehaviorY})},59472:function(e,t,n){"use strict";t.__esModule=!0,t.list=void 0;var r=n(77050),i={listStyleType:!0,listStylePosition:!0,listStylePos:r.t.prop("listStylePosition"),listStyleImage:!0,listStyleImg:r.t.prop("listStyleImage")};t.list=i},51237:function(e,t,n){"use strict";t.__esModule=!0,t.others=void 0;var r=n(66751),i={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},o={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},a=function(e,t,n){var i={},o=(0,r.memoizedGet)(e,t,{});for(var a in o){a in n&&null!=n[a]||(i[a]=o[a])}return i},s={srOnly:{transform:function(e){return!0===e?i:"focusable"===e?o:{}}},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),i={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=i,Object.assign(i,{insetStart:i.insetInlineStart,insetEnd:i.insetInlineEnd})},39650:function(e,t,n){"use strict";t.__esModule=!0,t.ring=void 0;var r=n(77050),i={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=i},19309:function(e,t,n){"use strict";t.__esModule=!0,t.space=void 0;var r=n(77050),i={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=i,Object.assign(i,{m:i.margin,mt:i.marginTop,mr:i.marginRight,me:i.marginInlineEnd,marginEnd:i.marginInlineEnd,mb:i.marginBottom,ml:i.marginLeft,ms:i.marginInlineStart,marginStart:i.marginInlineStart,mx:i.marginX,my:i.marginY,p:i.padding,pt:i.paddingTop,py:i.paddingY,px:i.paddingX,pb:i.paddingBottom,pl:i.paddingLeft,ps:i.paddingInlineStart,paddingStart:i.paddingInlineStart,pr:i.paddingRight,pe:i.paddingInlineEnd,paddingEnd:i.paddingInlineEnd})},86705:function(e,t,n){"use strict";t.__esModule=!0,t.textDecoration=void 0;var r=n(77050),i={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=i},75438:function(e,t,n){"use strict";t.__esModule=!0,t.transform=void 0;var r=n(77050),i={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=i},63646:function(e,t,n){"use strict";t.__esModule=!0,t.transition=void 0;var r=n(77050),i={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=i},58275:function(e,t,n){"use strict";t.__esModule=!0,t.typography=void 0;var r=n(77050),i={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=i},38986:function(e,t,n){"use strict";t.__esModule=!0,t.calc=void 0;var r=n(66751);function i(e){return(0,r.isObject)(e)&&e.reference?e.reference:String(e)}var o=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(i).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("+o.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("+o.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("+o.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("+o.apply(void 0,["/"].concat(t))+")"},l=function(e){var t=i(e);return null==t||Number.isNaN(parseFloat(t))?u(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},f=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 f(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 f(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 f(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 f(c.apply(void 0,[e].concat(n)))},negate:function(){return f(l(e))},toString:function(){return e.toString()}}}),{add:a,subtract:s,multiply:u,divide:c,negate:l});t.calc=f},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 i,o=r[0],a=(null!=(i=s[o])?i: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),i=n(38986),o=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("-"),f=(0,o.cssVar)(l,void 0,n.cssVarPrefix),d=f.variable,p=f.reference,h=i.calc.negate(t),m=i.calc.negate(p);return{cssVars:u.cssVars,cssMap:a({},u.cssMap,(r={},r[c]={value:""+h,var:""+d,varRef:m},r))}},defaultHandler:function(e,t,n){var r,i,a=e.join("."),s=e.join("-"),u=(0,o.cssVar)(s,void 0,n.cssVarPrefix),c=u.variable,l=u.reference;return{cssVars:(r={},r[c]=t,r),cssMap:(i={},i[a]={value:t,var:c,varRef:l},i)}}}},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 i(e,t){return"var("+n(e)+(t?", "+t:"")+")"}function o(e,t){return void 0===t&&(t=""),"--"+r(e,t)}t.__esModule=!0,t.addPrefix=r,t.toVarReference=i,t.toVarDefinition=o,t.cssVar=function(e,t,n){var r=o(e,n);return{variable:r,reference:i(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 i=n(21541);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(51898);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},88708:function(e,t,n){"use strict";t.__esModule=!0,t.extractTokens=function(e){var t=i;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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["__cssMap","__cssVars","__breakpoints"])};var r=n(66751);var i=["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,o.omitVars)(e),s=(0,o.extractTokens)(n),u=null==(t=n.config)?void 0:t.cssVarPrefix,c=(0,i.createThemeVars)(s,{cssVarPrefix:u}),l=c.cssMap,f=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"},f),__cssMap:l,__breakpoints:(0,r.analyzeBreakpoints)(n.breakpoints)}),n};var r=n(66751),i=n(98179),o=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=f,t.css=void 0;var r=n(66751),i=n(61527),o=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 i=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},o=function(e){var t;return null!=(t=i(e))?t:e},a=t.split(",").map((function(e){return e.trim()})),s=a[0],u=a[1];return t=null!=(n=null!=(r=i(s))?r:o(u))?n:o(t)};function f(e){var t=e.configs,n=void 0===t?{}:t,i=e.pseudos,o=void 0===i?{}:i,u=e.theme;return function e(t,i){void 0===i&&(i=!1);var f=(0,r.runIfFn)(t,u),d=(0,a.expandResponsive)(f)(u),p={};for(var h in d){var m,v,g,y,b,E=d[h],_=(0,r.runIfFn)(E,u);h in o&&(h=o[h]),c(h,_)&&(_=l(u,_));var w=n[h];if(!0===w&&(w={property:h}),(0,r.isObject)(_)){var x;p[h]=null!=(x=p[h])?x:{},p[h]=(0,r.mergeWith)({},p[h],e(_,!0))}else{var T=null!=(m=null==(v=w)||null==v.transform?void 0:v.transform(_,u,f))?m:_;T=null!=(g=w)&&g.processResult?e(T,!0):T;var k=(0,r.runIfFn)(null==(y=w)?void 0:y.property,u);if(!i&&null!=(b=w)&&b.static){var O=(0,r.runIfFn)(w.static,u);p=(0,r.mergeWith)({},p,O)}if(k&&Array.isArray(k))for(var C,A=s(k);!(C=A()).done;){p[C.value]=T}else k?"&"===k&&(0,r.isObject)(T)?p=(0,r.mergeWith)({},p,T):p[k]=T:(0,r.isObject)(T)?p=(0,r.mergeWith)({},p,T):p[h]=T}}return p}}t.css=function(e){return function(t){return f({theme:t,pseudos:i.pseudoSelectors,configs:o.systemProps})(e)}}},39907:function(e,t,n){"use strict";t.__esModule=!0;var r={tokenToCSSVar:!0};t.tokenToCSSVar=void 0;var i=n(10147);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 o=n(49423);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 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),i=function(e){return e+":focus &, "+e+"[data-focus] &"},o=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(", ")},f={_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(i),_groupActive:c(o),_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=f;var d=(0,r.objectKeys)(f);t.pseudoPropNames=d},19113:function(e,t,n){"use strict";t.__esModule=!0,t.isStyleProp=t.propNames=t.layoutPropNames=t.systemProps=void 0;var r=n(66751),i=n(10147),o=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)({},i.background,i.border,i.color,i.flexbox,i.layout,i.filter,i.ring,i.interactivity,i.grid,i.others,i.position,i.effect,i.space,i.typography,i.textDecoration,i.transform,i.list,i.transition);t.systemProps=s;var u=Object.assign({},i.space,i.layout,i.flexbox,i.grid,i.position),c=(0,r.objectKeys)(u);t.layoutPropNames=c;var l=[].concat((0,r.objectKeys)(s),o.pseudoPropNames);t.propNames=l;var f=a({},s,o.pseudoSelectors);t.isStyleProp=function(e){return e in f}},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,o){var a,s=i(t,e)(o),u=null!=(a=null==n?void 0:n(s,o))?a:s;return r&&(u=r(u,o)),u}},t.tokenToCSSVar=void 0;var r=n(66751),i=function(e,t){return function(n){var i=String(t),o=e?e+"."+i:i;return(0,r.isObject)(n.__cssMap)&&o in n.__cssMap?n.__cssMap[o].varRef:t}};t.tokenToCSSVar=i},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,i=n.isResponsive,o=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)&&i(c)?o(c):c,Array.isArray(c))for(var l=c.slice(0,a.length).length,f=0;f<l;f+=1){var d=null==a?void 0:a[f];d?(s[d]=s[d]||{},null!=c[f]&&(s[d][u]=c[f])):s[u]=c[f]}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 i=n(41629),o=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,o.toConfig)("borderWidths"),borderStyles:(0,o.toConfig)("borderStyles"),colors:(0,o.toConfig)("colors"),borders:(0,o.toConfig)("borders"),radii:(0,o.toConfig)("radii",a.transformFunctions.px),space:(0,o.toConfig)("space",a.transformFunctions.px),spaceT:(0,o.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,i.createTransform)({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:(0,o.toConfig)("sizes",a.transformFunctions.px),sizesT:(0,o.toConfig)("sizes",a.transformFunctions.fraction),shadows:(0,o.toConfig)("shadows"),logical:o.logical,blur:(0,o.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 o=i(RegExp),a=RegExp.prototype,s=new WeakMap;function u(e,t,n){var r=o.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,o),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 i(e){var t="function"===typeof Map?new Map:void 0;return(i=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 o(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 o(e,t,n){return(o=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&s(i,n.prototype),i}).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)),f=new Set(["none","-moz-initial","inherit","initial","revert","unset"]);t.globalSet=f;var d=function(e){return e.trim()};function p(e,t){var r,i;if(null==e||f.has(e))return e;var o=null!=(r=null==(i=n(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:i.groups)?r:{},a=o.type,s=o.values;if(!a||!s)return e;var u=a.includes("-gradient")?a:a+"-gradient",p=s.split(",").map(d).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],i=n[1],o="colors."+r,a=o in t.__cssMap?t.__cssMap[o].varRef:r;return i?[a,i].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 i={property:n,scale:e};return i.transform=(0,r.createTransform)({scale:e,transform:t}),i}},t.logical=function(e){var t=e.property,n=e.scale,o=e.transform;return{scale:n,property:i(t),transform:n?(0,r.createTransform)({scale:n,compose:o}):o}};var r=n(41629);var i=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(i).join(" ")},t.getTransformGpuTemplate=function(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(i).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 i=["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 o={"--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=o;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),i=n(23744),o=n(21612),a=function(e){return function(t){return e+"("+t+")"}},s={filter:function(e){return"auto"!==e?e:i.filterTemplate},backdropFilter:function(e){return"auto"!==e?e:i.backdropFilterTemplate},ring:function(e){return(0,i.getRingTemplate)(s.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?(0,i.getTransformTemplate)():"auto-gpu"===e?(0,i.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:o.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)||o.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=i.flexDirectionTemplate[e])?t:{},r=n.space,o=n.divide,a={flexDirection:e};return r&&(a[r]=1),o&&(a[o]=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 w}});var r=n(10762),i=n(90639),o=n(51034),a=n(68327),s=n(72947),u=n(80658),c=n(84461),l=n(47248),f=n(65415),d=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:w,name:x,value:T,id:k,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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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,i.k)(),[F,B]=(0,i.k)(),[H,z]=(0,i.k)(),U=(0,d.useRef)(null),[V,W]=(0,d.useState)(!0),[G,K]=(0,d.useState)(!!n),[q,Z]=(0,o.p)(h,G);(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,d.useCallback)((e=>{y||g?e.preventDefault():(q||K(Z?e.target.checked:!!_||e.target.checked),null==P||P(e))}),[y,g,Z,q,_,P]);(0,a.G)((()=>{U.current&&(U.current.indeterminate=Boolean(_))}),[_]);var Y=g&&!v,X=(0,d.useCallback)((e=>{" "===e.key&&z.on()}),[z]),Q=(0,d.useCallback)((e=>{" "===e.key&&z.off()}),[z]);(0,a.G)((()=>{U.current&&(U.current.checked!==Z&&K(U.current.checked))}),[U.current]);var J=(0,d.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)(Z),"data-focus":(0,c.PB)(L),"data-indeterminate":(0,c.PB)(_),"data-disabled":(0,c.PB)(g),"data-invalid":(0,c.PB)(w),"data-readonly":(0,c.PB)(y),"aria-hidden":!0,onMouseDown:(0,u.v0)(e.onMouseDown,(e=>{e.preventDefault(),z.on()})),onMouseUp:(0,u.v0)(e.onMouseUp,z.off),onMouseEnter:(0,u.v0)(e.onMouseEnter,B.on),onMouseLeave:(0,u.v0)(e.onMouseLeave,B.off)})}),[H,Z,g,L,F,_,w,y,z,B.off,B.on]),ee=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},I,e,{ref:(0,s.l)(t,(e=>{e&&W("LABEL"===e.tagName)})),onClick:(0,u.v0)(e.onClick,(()=>{var e;V||(null==(e=U.current)||e.click(),(0,l.T)(U.current,{nextTick:!0}))})),"data-disabled":(0,c.PB)(g)})}),[I,g,V]),te=(0,d.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return p({},e,{ref:(0,s.l)(U,t),type:"checkbox",name:x,value:T,id:k,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:Z,disabled:Y,readOnly:y,"aria-label":A,"aria-labelledby":S,"aria-invalid":M?Boolean(M):w,"aria-describedby":D,"aria-disabled":g,style:f.NL})}),[x,T,k,$,j.off,j.on,N,R,X,Q,b,Z,Y,y,A,S,M,w,D,g]),ne=(0,d.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)(Z),"data-invalid":(0,c.PB)(w)})}),[Z,g,w]);return{state:{isInvalid:w,isFocused:L,isChecked:Z,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 w=(0,v.G)(((e,t)=>{var n=(0,g.j)("Switch",e),r=(0,y.Lr)(e),{spacing:i="0.5rem",children:o}=r,a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,["spacing","children"]),{state:s,getInputProps:u,getCheckboxProps:l,getRootProps:f,getLabelProps:p}=h(a),m=d.useMemo((()=>_({display:"inline-block",verticalAlign:"middle",lineHeight:"normal"},n.container)),[n.container]),v=d.useMemo((()=>_({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)),[n.track]),E=d.useMemo((()=>_({userSelect:"none",marginStart:i},n.label)),[i,n.label]);return d.createElement(b.m$.label,_({},f(),{className:(0,c.cx)("chakra-switch",e.className),__css:m}),d.createElement("input",_({className:"chakra-switch__input"},u({},t))),d.createElement(b.m$.span,_({},l(),{className:"chakra-switch__track",__css:v}),d.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)})),o&&d.createElement(b.m$.span,_({className:"chakra-switch__label"},p(),{__css:E}),o))}));E.Ts&&(w.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=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}},46063:function(e,t,n){"use strict";t.__esModule=!0,t.useChakra=f,t.useToken=function(e,t,n){var r=(0,u.useTheme)();if(Array.isArray(t)){var i=[];return n&&(i=Array.isArray(n)?n:[n]),t.map((function(t,n){var a,s=e+"."+t;return(0,o.memoizedGet)(r,s,null!=(a=i[n])?a:t)}))}var a=e+"."+t;return(0,o.memoizedGet)(r,a,null!=n?n:t)},t.useProps=function(e,t){var n,r,i=f(),u=i.theme,d=i.colorMode,p=t.styleConfig||(null==(n=u.components)?void 0:n[e]),h=l({},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,o.filterUndefined)(t)),m=(0,a.useRef)({}),v=(0,o.mergeWith)({},h,{theme:u,colorMode:d});return{styles:(0,a.useMemo)((function(){if(p){var e,t,n,r,i,a=(0,o.runIfFn)(null!=(e=p.baseStyle)?e:{},v),u=(0,o.runIfFn)(null!=(t=null==(n=p.variants)?void 0:n[v.variant])?t:{},v),c=(0,o.runIfFn)(null!=(r=null==(i=p.sizes)?void 0:i[v.size])?r:{},v),l=(0,o.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,i=n(12094),o=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 f(){return l({},(0,i.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 i=n(12094);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 o=n(39907);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 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(47949);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 f=n(40065);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 d=n(15867);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 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),i=n(39907),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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,o=e.children,a=u.useMemo((function(){return(0,i.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}}),o)};var l=(0,a.createContext)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),f=l[0],d=l[1];t.useStyles=d,t.StylesProvider=f;t.GlobalStyle=function(){var e=(0,r.useColorMode)().colorMode;return u.createElement(s.Global,{styles:function(t){var n=(0,o.memoizedGet)(t,"styles.global"),r=(0,o.runIfFn)(n,{theme:t,colorMode:e});if(r){var a=(0,i.css)(r)(t);return a}}})}},99214:function(e,t,n){"use strict";t.__esModule=!0,t.shouldForwardProp=void 0;var r=n(39907),i=new Set([].concat(r.propNames,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),o=new Set(["htmlWidth","htmlHeight","htmlSize"]);t.shouldForwardProp=function(e){return o.has(e)||!i.has(e)}},40065:function(e,t,n){"use strict";t.__esModule=!0,t.styled=f,t.chakra=t.toCSSObject=void 0;var r,i=n(39907),o=n(66751),a=(r=n(24524))&&r.__esModule?r:{default:r},s=n(99214),u=n(93138);function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}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,o.objectFilter)(s,(function(e,t){return(0,i.isStyleProp)(t)})),l=(0,o.runIfFn)(t,e),f=Object.assign({},r,l,(0,o.filterUndefined)(u),a),d=(0,i.css)(f)(e.theme);return n?[d,n]:d}};function f(e,t){var n=null!=t?t:{},r=n.baseStyle,i=c(n,["baseStyle"]);i.shouldForwardProp||(i.shouldForwardProp=s.shouldForwardProp);var o=l({baseStyle:r});return(0,a.default)(e,i)(o)}t.toCSSObject=l;var d=f;t.chakra=d,u.domElements.forEach((function(e){d[e]=d(e)}))},47949: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=i,t.getDisplayName=function(e){return i(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 i(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,i=n(66751),o=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,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(c,["styleConfig"]),d=(0,s.useChakra)(),p=d.theme,h=d.colorMode,m=(0,i.memoizedGet)(p,"components."+e),v=l||m,g=(0,i.mergeWith)({theme:p,colorMode:h},null!=(r=null==v?void 0:v.defaultProps)?r:{},(0,i.filterUndefined)((0,i.omit)(f,["children"]))),y=(0,o.useRef)({});return(0,o.useMemo)((function(){if(v){var e,t,r,o,s,u,c=(0,i.runIfFn)(null!=(e=v.baseStyle)?e:{},g),l=(0,i.runIfFn)(null!=(t=null==(r=v.variants)?void 0:r[g.variant])?t:{},g),f=(0,i.runIfFn)(null!=(o=null==(s=v.sizes)?void 0:s[g.size])?o:{},g),d=(0,i.mergeWith)({},c,f,l);null!=(u=n)&&u.isMultiPart&&v.parts&&v.parts.forEach((function(e){var t;d[e]=null!=(t=d[e])?t:{}})),(0,a.default)(y.current,d)||(y.current=d)}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 i}});var r=n(67294);function i(e){return r.forwardRef(e)}},11180:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return o.Fg}});var r=n(9421);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var i=n(5070);n.o(i,"useTheme")&&n.d(t,{useTheme:function(){return i.useTheme}});var o=n(29676)},89384:function(e,t,n){"use strict";n.d(t,{m$:function(){return d}});var r=n(9421),i=n(4651),o=n(80658),a=n(24524),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 f(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=function(e,t){var n=null!=t?t:{},{baseStyle:s}=n,u=f(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=f(e,["theme","css","__css","sx"]),c=(0,i.lw)(u,((e,t)=>(0,r.isStyleProp)(t))),l=(0,o.Pu)(t,e),d=Object.assign({},a,l,(0,i.YU)(c),s),p=(0,r.css)(d)(e.theme);return n?[p,n]:p}})({baseStyle:s});return(0,a.default)(e,u)(l)};l.t6.forEach((e=>{d[e]=d(e)}))},5070:function(){},55284:function(e,t,n){"use strict";n.d(t,{t6:function(){return i},Lr:function(){return o}});var r=n(4651),i=["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 o(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),i=n(38554),o=n.n(i),a=n(80658),s=n(67294),u=n(69590),c=n.n(u),l=n(24738),f=n(29676);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)}function p(){return d({},(0,l.If)(),{theme:(0,f.Fg)()})}function h(e,t,n){var i,u;void 0===t&&(t={}),void 0===n&&(n={});var{styleConfig:l}=t,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["styleConfig"]),{theme:d,colorMode:h}=p(),m=(0,r.Wf)(d,"components."+e),v=l||m,g=o()({theme:d,colorMode:h},null!=(i=null==v?void 0:v.defaultProps)?i:{},(0,r.YU)((0,r.CE)(f,["children"]))),y=(0,s.useRef)({});return(0,s.useMemo)((()=>{if(v){var e,t,r,i,s,u,l=(0,a.Pu)(null!=(e=v.baseStyle)?e:{},g),f=(0,a.Pu)(null!=(t=null==(r=v.variants)?void 0:r[g.variant])?t:{},g),d=(0,a.Pu)(null!=(i=null==(s=v.sizes)?void 0:s[g.size])?i:{},g),p=o()({},l,d,f);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),i=n(48121),o=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}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.forwardRef)((function(e,t){var n=(0,i.useMultiStyleConfig)("Tag",e),r=(0,i.omitThemingProps)(e),o=u({display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%"},n.container);return a.createElement(i.StylesProvider,{value:n},a.createElement(i.chakra.span,u({ref:t},r,{__css:o})))}));t.Tag=c,o.__DEV__&&(c.displayName="Tag");var l=(0,i.forwardRef)((function(e,t){var n=(0,i.useStyles)();return a.createElement(i.chakra.span,u({ref:t,isTruncated:!0},e,{__css:n.label}))}));t.TagLabel=l,o.__DEV__&&(l.displayName="TagLabel");var f=(0,i.forwardRef)((function(e,t){return a.createElement(r.Icon,u({ref:t,verticalAlign:"top",marginEnd:"0.5rem"},e))}));t.TagLeftIcon=f,o.__DEV__&&(f.displayName="TagLeftIcon");var d=(0,i.forwardRef)((function(e,t){return a.createElement(r.Icon,u({ref:t,verticalAlign:"top",marginStart:"0.5rem"},e))}));t.TagRightIcon=d,o.__DEV__&&(d.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"}))};o.__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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["isDisabled","children"]),o=u({display:"flex",alignItems:"center",justifyContent:"center",outline:"0"},(0,i.useStyles)().closeButton);return a.createElement(i.chakra.button,u({},r,{type:"button","aria-label":"close",disabled:t,__css:o}),n||a.createElement(p,null))};t.TagCloseButton=h,o.__DEV__&&(h.displayName="TagCloseButton")},35528:function(e,t,n){"use strict";n.d(t,{Vp:function(){return d},Sn:function(){return p},bq:function(){return m}});var r=n(70058),i=n(90063),o=n(2326),a=n(55284),s=n(29676),u=n(89384),c=n(73808),l=n(67294);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 d=(0,i.G)(((e,t)=>{var n=(0,o.j)("Tag",e),r=(0,a.Lr)(e),i=f({display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%"},n.container);return l.createElement(s.Fo,{value:n},l.createElement(u.m$.span,f({ref:t},r,{__css:i})))}));c.Ts&&(d.displayName="Tag");var p=(0,i.G)(((e,t)=>{var n=(0,s.yK)();return l.createElement(u.m$.span,f({ref:t,isTruncated:!0},e,{__css:n.label}))}));c.Ts&&(p.displayName="TagLabel");var h=(0,i.G)(((e,t)=>l.createElement(r.J,f({ref:t,verticalAlign:"top",marginEnd:"0.5rem"},e))));c.Ts&&(h.displayName="TagLeftIcon");var m=(0,i.G)(((e,t)=>l.createElement(r.J,f({ref:t,verticalAlign:"top",marginStart:"0.5rem"},e))));c.Ts&&(m.displayName="TagRightIcon");var v=e=>l.createElement(r.J,f({verticalAlign:"inherit",viewBox:"0 0 512 512"},e),l.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"}));c.Ts&&(v.displayName="TagCloseIcon");c.Ts},96699:function(e,t,n){"use strict";n.d(t,{u:function(){return A}});var r=n(23459),i=n(67273),o=n(89384),a=n(90063),s=n(2326),u=n(55284),c=n(29676),l=n(4651),f=n(73808),d=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),w=n(88456),x=n(72947);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 k(e){void 0===e&&(e={});var{openDelay:t=0,closeDelay:n=0,closeOnClick:i=!0,closeOnMouseDown:o,onOpen:a,onClose:s,placement:u,id:c,isOpen:l,defaultIsOpen:f,arrowSize:d=10,arrowShadowColor:p,arrowPadding:h,modifiers:v,isDisabled:k,gutter:O,offset:C}=e,A=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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:f,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((()=>{k||(F.current=window.setTimeout(M,t))}),[k,M,t]),z=m.useCallback((()=>{F.current&&clearTimeout(F.current),B.current=window.setTimeout(D,n)}),[n,D]),U=m.useCallback((()=>{i&&z()}),[i,z]),V=m.useCallback((()=>{o&&z()}),[o,z]);(0,b.O)("keydown",(e=>{S&&"Escape"===e.key&&z()})),m.useEffect((()=>()=>{clearTimeout(F.current),clearTimeout(B.current)}),[]),(0,b.O)("mouseleave",z,j.current);var W=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),T({},e,{ref:(0,x.l)(j,t,I),onMouseEnter:(0,_.v0)(e.onMouseEnter,H),onClick:(0,_.v0)(e.onClick,U),onMouseDown:(0,_.v0)(e.onMouseDown,V),onFocus:(0,_.v0)(e.onFocus,H),onBlur:(0,_.v0)(e.onBlur,z),"aria-describedby":S?L:void 0})}),[H,z,V,S,L,U,I]),G=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),P(T({},e,{style:T({},e.style,{[r.Dq.arrowSize.var]:d?(0,w.px)(d):void 0,[r.Dq.arrowShadowColor.var]:p})}),t)}),[P,d,p]),K=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),T({ref:t},A,e,{id:L,role:"tooltip",style:T({},e.style,{position:"relative",transformOrigin:r.Dq.transformOrigin.varRef})})}),[A,L]);return{isOpen:S,show:H,hide:z,getTriggerProps:W,getTooltipProps:K,getTooltipPositionerProps:G,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,o.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:w,portalProps:x}=a,T=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(a,["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps"]);w&&(n.bg=w,n[r.Dq.arrowBg.var]=(0,l.K1)(p,"colors",w));var A,S=k(T);if((0,f.HD)(g)||b)A=m.createElement(o.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(i.h,x,m.createElement(o.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(d.TX,N,E),_&&m.createElement(o.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},m.createElement(o.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))))))):m.createElement(m.Fragment,null,g)}));f.Ts&&(A.displayName="Tooltip")},15267:function(e,t,n){"use strict";n.d(t,{U:function(){return m}});var r=n(80658),i=n(38554),o=n.n(i),a=n(84461),s=n(73808),u=n(53869),c=n(39629),l=n(67294),f=n(24722);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 p={exit:{height:{duration:.2,ease:f.YI.ease},opacity:{duration:.3,ease:f.YI.ease}},enter:{height:{duration:.3,ease:f.YI.ease},opacity:{duration:.4,ease:f.YI.ease}}},h={exit:e=>{var t,n,{animateOpacity:r,startingHeight:i,transition:o,transitionEnd:a,delay:s}=e;return d({},r&&{opacity:(n=i,null!=n&&parseInt(n.toString(),10)>0?1:0)},{overflow:"hidden",height:i,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:f.p$.exit(p.exit,s)})},enter:e=>{var t,{animateOpacity:n,endingHeight:r,transition:i,transitionEnd:o,delay:a}=e;return d({},n&&{opacity:1},{height:r,transitionEnd:null==o?void 0:o.enter,transition:null!=(t=null==i?void 0:i.enter)?t:f.p$.enter(p.enter,a)})}},m=l.forwardRef(((e,t)=>{var{in:n,unmountOnExit:i,animateOpacity:s=!0,startingHeight:f=0,endingHeight:p="auto",style:m,className:v,transition:g,transitionEnd:y}=e,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(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(f>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var w=parseFloat(f.toString())>0,x={startingHeight:f,endingHeight:p,animateOpacity:s,transition:E?g:{enter:{duration:0}},transitionEnd:o()(y,{enter:{overflow:"initial"},exit:i?void 0:{display:w?"block":"none"}})},T=!i||n,k=n||i?"enter":"exit";return l.createElement(u.M,{initial:!1,custom:x},T&&l.createElement(c.E.div,d({ref:t},b,{className:(0,a.cx)("chakra-collapse",v),style:d({overflow:"hidden",display:"block"},m),custom:x,variants:h,initial:!!i&&"exit",animate:k,exit:"exit"})))}));s.Ts&&(m.displayName="Collapse")},24722:function(e,t,n){"use strict";n.d(t,{YI:function(){return o},R:function(){return a},p$:function(){return s}});var r=n(73808);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)}var o={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var a={enter:{duration:.2,ease:o.easeOut},exit:{duration:.1,ease:o.easeIn}},s={enter:(e,t)=>i({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter}),exit:(e,t)=>i({},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 i=t-1;if(-1===e)return n>0?0:i;var o=e+n;return o<0?r?i:0:o>=t?r?0:e>t?t:e:o}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 i=r(e,t.length,n);return t[i]},t.getNextItem=function(e,t,r){void 0===r&&(r=!0);var i=n(e,t.length,1,r);return t[i]},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 i=e.filter((function(e){return n(e).toLowerCase().startsWith(t.toLowerCase())}));if(i.length>0){var o;if(i.includes(r)){var a=i.indexOf(r);return(o=a+1)===i.length&&(o=0),i[o]}return o=e.indexOf(i[0]),e[o]}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 i(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!n(e)}function o(e){return i(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=i,t.isEmptyObject=o,t.isNotEmptyObject=function(e){return e&&!o(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):i(e)?o(e):null==e||""===e},t.isRefObject=function(e){return"current"in e},t.isInputEvent=function(e){return e&&i(e)&&i(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),o=Object.entries(e).sort(s).map((function(e,t,n){var r,o=e[0],s=e[1],u=(null!=(r=n[t+1])?r:[])[1];return{breakpoint:o,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,i.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)}})),f=function(e){var t=Object.keys(u(e));return new Set(t)}(e),d=Array.from(f.values());return{keys:f,normalized:n,isResponsive:function(e){var t=Object.keys(e);return t.length>0&&t.every((function(e){return f.has(e)}))},asObject:u(e),asArray:c(e),details:o,media:[null].concat(n.map((function(e){return l(e)})).slice(1)),toArrayValue:function(e){if(!(0,i.isObject)(e))throw new Error("toArrayValue: value must be an object");for(var t=d.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=d[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}};var r=n(4706),i=n(22229),o=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,i.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,o.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=o,t.getFirstFocusable=function(e){var t=o(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),i=["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 o(e){var t=Array.from(e.querySelectorAll(i));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(i)),o=n.filter(r.isTabbable);return(0,r.isTabbable)(e)&&o.unshift(e),!o.length&&t?n:o}function s(e,t){var n=o(e),i=n.indexOf(document.activeElement),a=n.slice(i+1);return a.find(r.isTabbable)||n.find(r.isTabbable)||(t?a[0]:null)}function u(e,t){var n=o(e).reverse(),i=n.indexOf(document.activeElement),a=n.slice(i+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=o,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,i=o(null!=(t=e.target)?t:e.currentTarget),a=e.nativeEvent.explicitOriginalTarget;return null!=(n=null!=(r=e.relatedTarget)?r:a)?n:i},t.isRightClick=function(e){return 0!==e.button},t.cx=t.ariaAttr=t.dataAttr=t.isBrowser=void 0;var i=r();t.isBrowser=i;t.dataAttr=function(e){return e?"":void 0};t.ariaAttr=function(e){return!!e||void 0};function o(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?o.isActiveElement:u,l=n.nextTick,f=n.preventScroll,d=void 0===f||f,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:d});else if(e.focus(),d)!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,i=r.element,o=r.scrollTop,s=r.scrollLeft;i.scrollTop=o,i.scrollLeft=s}}(function(e){var t=(0,r.getOwnerDocument)(e),n=e.parentNode,i=[],o=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==o;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&i.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;o instanceof HTMLElement&&i.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft});return i}(e));(0,o.isInputElement)(e)&&h&&e.select()}else(0,i.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),i=n(25981),o=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),i=1;i<t;i++)n[i-1]=arguments[i];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=i,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),i=u(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}return 0},t.pipe=t.scheduleMicrotask=t.error=t.warn=t.noop=t.compose=void 0;var r=n(22229);function i(e){var t;return function(){if(e){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];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 o=i((function(e){return function(){var t=e.condition,n=e.message;t&&r.__DEV__&&console.warn(n)}}));t.warn=o;var a=i((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 i=n(4706);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var o=n(22229);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[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 f=n(65636);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var d=n(39407);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[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,i=e.lazyBehavior,o=void 0===i?"unmount":i;return!n||(!!r||!("keepMounted"!==o||!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,i=u(n);return s(r,i)},t.clampValue=function(e,t,n){return null==e?e:((0,i.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),i=n(25981),o=Number.MIN_SAFE_INTEGER||-9007199254740991;t.minSafeInteger=o;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),i=Math.pow(10,null!=t?t:10);return n=Math.round(n*i)/i,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(i){t.includes(i)?n[i]=e[i]:r[i]=e[i]})),[n,r]},t.get=o,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,i=(r=n(38554))&&r.__esModule?r:{default:r};function o(e,t,n,r){var i="string"===typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}t.mergeWith=i.default;var a=function(e){var t=new WeakMap;return function(n,r,i,o){if("undefined"===typeof n)return e(n,r,i);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,i,o);return a.set(r,s),s}};t.memoize=a;var s=a(o);function u(e,t){var n={};return Object.keys(e).forEach((function(r){var i=e[r];t(i,r,e)&&(n[r]=i)})),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,i;return null!=(r=null==(i=e.__cssMap[t+"."+n])?void 0:i.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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(84839)),i=n(91373),o=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",o.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,o.distance)(e.offset,{x:0,y:0})>=a.threshold;if(t||n){var i=(0,r.getFrameData)().timestamp;a.history.push(s({},e.point,{timestamp:i}));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,i.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,i=r.onEnd,o=r.onSessionEnd;null==o||o(e,n),a.end(),i&&a.startEvent&&(null==i||i(e,n))})),!(0,i.isMultiTouchEvent)(e)){this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var c=(0,i.extractEventInfo)(e),l=(0,r.getFrameData)().timestamp;this.history=[s({},c.point,{timestamp:l})];var f=t.onSessionStart;null==f||f(e,p(c,this.history)),this.removeListeners=(0,o.pipe)((0,i.addPointerEvent)(window,"pointermove",this.onPointerMove),(0,i.addPointerEvent)(window,"pointerup",this.onPointerUp),(0,i.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 f(e){return e[0]}function d(e){return e[e.length-1]}function p(e,t){return{point:e.point,delta:l(e.point,d(t)),offset:l(e.point,f(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,i=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};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=i,t.extractEventInfo=u,t.getViewportPointFromEvent=function(e){return u(e,"client")},t.getPointerEventName=d,t.addPointerEvent=function(e,t,n,i){return(0,r.addDomEvent)(e,d(t),c(n,"pointerdown"===t),i)},t.isMultiTouchEvent=function(e){return i(e)&&e.touches.length>1},t.wrapPointerEventHandler=void 0;var r=n(14576);function i(e){return!!e.touches}var o={pageX:0,pageY:0};function a(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||o;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:i(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"},f={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function d(e){return r.isBrowser&&null===window.onpointerdown?e:r.isBrowser&&null===window.ontouchstart?f[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,i.isArray)(e))return e.map((function(e){return null===e?null:t(e)}));if((0,i.isObject)(e))return(0,o.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 i=t[r];null!=e&&(n[i]=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),i=n(22229),o=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)&&!o(e))},t.hasNegativeTabIndex=t.hasTabIndex=t.hasDisplayNone=void 0;var r=n(14576);t.hasDisplayNone=function(e){return"none"===window.getComputedStyle(e).display};var i=function(e){return e.hasAttribute("tabindex")};t.hasTabIndex=i;var o=function(e){return i(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)||i(e)}t.hasNegativeTabIndex=o},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,i){return void 0===i&&(i=[]),(0,r.isArray)(n)?n.map((function(t,n){return e(t,[].concat(i,[String(n)]))})):(0,r.isObject)(n)?Object.fromEntries(Object.entries(n).map((function(t){var n=t[0];return[n,e(t[1],[].concat(i,[n]))]}))):t(n,i)}(e)};var r=n(22229)},77658:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(17768),i=["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 o(e){var t=Array.from(e.querySelectorAll(i));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),i=n(80658),o=n(17768);function a(e,t){void 0===t&&(t={});var{isActive:n=o.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,i=[],o=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==o;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&i.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;o instanceof HTMLElement&&i.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft});return i}(e));(0,o.cK)(e)&&c&&e.select()}else(0,i.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:i="unmount"}=e;return!n||(!!r||!("keepMounted"!==i||!t))}n.d(t,{V:function(){return r}})},75027:function(e,t,n){"use strict";n.d(t,{N5:function(){return i},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 i(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function o(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:o(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},f={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 p(e){return r.jU&&null===window.onpointerdown?e:r.jU&&null===window.ontouchstart?d[e]:r.jU&&null===window.onmousedown?f[e]:e}function h(e,t,n,i){return(0,r.EV)(e,p(t),l(n,"pointerdown"===t),i)}function m(e){return o(e)&&e.touches.length>1}},17768:function(e,t,n){"use strict";n.d(t,{cK:function(){return o},H9:function(){return a},EB:function(){return c},Wq:function(){return l}});var r=n(84461),i=e=>e.hasAttribute("tabindex");function o(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)||i(e)}function l(e){return!!e&&(s(e)&&c(e)&&!(e=>i(e)&&-1===e.tabIndex)(e))}},22944:function(e,t,n){"use strict";t.__esModule=!0;var r={};t.default=void 0;var i=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(13267));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}t.default=i.default,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]))}))},13267:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.VisuallyHiddenInput=t.VisuallyHidden=t.visuallyHiddenStyle=void 0;var r=n(48121),i=n(66751),o={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};t.visuallyHiddenStyle=o;var a=(0,r.chakra)("span",{baseStyle:o});t.VisuallyHidden=a,i.__DEV__&&(a.displayName="VisuallyHidden");var s=(0,r.chakra)("input",{baseStyle:o});t.VisuallyHiddenInput=s,i.__DEV__&&(s.displayName="VisuallyHiddenInput");var u=a;t.default=u},65415:function(e,t,n){"use strict";n.d(t,{NL:function(){return o},TX:function(){return a}});var r=n(89384),i=n(73808),o={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:o});i.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:o});i.Ts&&(s.displayName="VisuallyHiddenInput")},24524:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(67294),i=n(87462),o=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,o.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),u=n(30495),c=n(70444),l=n(94199),f=s,d=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:d},h=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function e(t,n){var o,a,s=t.__emotion_real===t,f=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var d=h(t,n,s),m=d||p(f),v=!m("as");return function(){var g=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),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 i=v&&e.as||f,o="",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?o=(0,c.f)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var b=(0,l.O)(y.concat(s),t.registered,h);(0,c.M)(t,b,"string"===typeof i);o+=t.key+"-"+b.name,void 0!==a&&(o+=" "+a);var E=v&&void 0===d?p(i):m,_={};for(var w in e)v&&"as"===w||E(w)&&(_[w]=e[w]);return _.className=o,_.ref=n,(0,r.createElement)(i,_)}));return _.displayName=void 0!==o?o:"Styled("+("string"===typeof f?f:f.displayName||f.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=f,_.__emotion_styles=y,_.__emotion_forwardProp=d,Object.defineProperty(_,"toString",{value:function(){return"."+a}}),_.withComponent=function(t,r){return e(t,(0,i.Z)({},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},57775:function(e,t,n){"use strict";n.d(t,{_7:function(){return m}});var r=n(67294);var i=function(e){(0,r.useEffect)((function(){e()}),[])};var o=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(70885),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 f=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 d(e){return(d="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 i,o=!1,s=!0;"number"===typeof n?i=n:"object"===d(n)&&n&&("wait"in n&&(i=+n.wait),"leading"in n&&(o=!!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=f((function(){var n=Date.now(),r=n-h.current,o=n-m.current;if(p.current&&clearTimeout(p.current),r>=i||e&&o>=i)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=i-r,f=i-o,d=e?Math.min(a,f):a;p.current=setTimeout(v,d)}})),g=f((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>=i)&&void 0===p.current&&(m.current=e,p.current=setTimeout(v,i),o&&(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=f((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 i=l(e),a=(0,r.useState)(e),c=(0,s.Z)(a,2),d=c[0],p=c[1],h=(0,r.useRef)(d);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=f((function(e){b(),m(arguments.length>0?e:i.current)}));return o((function(){y(e)}),[e]),[d,{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,i;"number"===typeof t?n=t:"object"===d(t)&&null!==t&&("duration"in t&&(n=+t.duration),"function"===typeof t.algorithm&&(i=t.algorithm));var o=(0,r.useRef)(),s=(0,r.useRef)(),u=f(e),c=f((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&&(o.current=requestAnimationFrame(c)),u(i?i(r):r)})),l=(0,r.useCallback)((function(){void 0!==o.current&&(cancelAnimationFrame(o.current),o.current=void 0),s.current=void 0}),[]),p=f((function(){l(),o.current=requestAnimationFrame(c)}));return a(l),[p,l]};var v=function(){var e=(0,r.useRef)(!1);return i((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,i){var o,a,s;"boolean"===typeof i?o=i:"object"===d(i)&&null!==i&&("capture"in i&&(o=!!i.capture),"once"in i&&(a=!!i.once),"passive"in i&&(s=!!i.passive));var u=f(n);(0,r.useEffect)((function(){if(e&&e.addEventListener&&e.removeEventListener)return e.addEventListener(t,u,{capture:o,once:a,passive:s}),function(){e.removeEventListener(t,u,{capture:o})}}),[e,t,u,o,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(),i=g(t),o=(0,r.useRef)();return n.current&&c(i.current,t)||(o.current=e()),o.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)(),i=(0,r.useState)(t),a=(0,s.Z)(i,2),u=a[0],c=a[1],l=f((function(e){n.current=e,c(e)})),d=f((function(){c(t)}));return o((function(){n.current=void 0,c(t)}),[e]),o((function(){void 0===n.current&&c(t)}),[t]),[u,{set:l,remove:d}]}var w=function(e){return e?function(t,n,i){var a=i&&i.serialize?i.serialize:JSON.stringify,u=i&&i.deserialize?i.deserialize:JSON.parse,c=f((function(){try{var r=e.getItem(t);return null!==r?u(r):n}catch(i){return n}})),l=f((function(n){try{e.setItem(t,a(n))}catch(r){}})),p=f((function(){e.removeItem(t)})),h=(0,r.useState)(c()),m=(0,s.Z)(h,2),v=m[0],g=m[1],y=f((function(e){l(e),g(e)})),b=f((function(){p(),g(c())}));return o((function(){g(c())}),[t]),o((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":d(window)))return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}}),[t]),[v,{set:y,remove:b}]}:_};w("undefined"!==typeof localStorage?localStorage:null),w("undefined"!==typeof sessionStorage?sessionStorage:null)},90478:function(e,t,n){"use strict";var r=n(50791),i=Object.prototype.hasOwnProperty,o={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 o)i.call(o,t)&&void 0!==e.properties[t]&&(s(e,o[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 i=r+t+": "+n+";";e.properties.style=i}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 i;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,i=-1;++i<r;)n[i]=t(e[i]);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 i(){return!0}e.exports=t},11150:function(e,t,n){"use strict";e.exports=a;var r=n(93790),i="skip",o=!1;function a(e,t,n,a){var u;function c(e,r,l){var f,d=[];return(t&&!u(e,r,l[l.length-1]||null)||(d=s(n(e,l)))[0]!==o)&&e.children&&d[0]!==i&&(f=s(function(e,t){var n,r=-1,i=a?-1:1,s=(a?e.length:r)+i;for(;s>r&&s<e.length;){if((n=c(e[s],s,t))[0]===o)return n;s="number"===typeof n[1]?n[1]:s+i}}(e.children,l.concat(e))))[0]===o?f:d}"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=i,a.EXIT=o},50791:function(e,t,n){"use strict";e.exports=s;var r=n(11150),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"===typeof t&&"function"!==typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},54309:function(e,t,n){"use strict";n.d(t,{iP:function(){return f}});var r=n(67294);var i=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t};const o=(e,t=100,n=!1)=>{const o=i(e),a=r.useRef(),s=[t,n,o];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),o.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout((()=>{a.current=void 0,o.current.apply(null,e)}),t)}),s)};var a=r["undefined"!==typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];var s=function(e,t,n,i){const o=r.useRef(n),s=r.useRef(i);a((()=>{o.current=n,s.current=i})),a((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;let r=0;function i(...e){r||o.current.apply(this,e)}n.addEventListener(t,i);const a=s.current;return()=>{r=1,n.removeEventListener(t,i),a&&a()}}),[e,t])};const u={},c="undefined"===typeof window?null:window,l=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],f=(e=u)=>{const{wait:t,leading:n,initialWidth:i=0,initialHeight:a=0}=e,[f,d]=((e,t,n)=>{const i=r.useState(e);return[i[0],o(i[1],t,n)]})("undefined"===typeof document?[i,a]:l,t,n),p=()=>d(l);return s(c,"resize",p),s(c,"orientationchange",p),f}},36194:function(e,t,n){"use strict";n.d(t,{oY:function(){return i}});var r=n(34155),i={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-i.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*i.Bounce.In(2*e):.5*i.Bounce.Out(2*e-1)+.5}}},o="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=o()),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 i=this._tweens[n[r]],a=!t;i&&!1===i.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,i=Math.floor(r),o=s.Utils.Linear;return t<0?o(e[0],e[1],r):t>1?o(e[n],e[n-1],n-r):o(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,o=s.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-t,r-a)*i(t,a)*e[a]*o(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),o(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(o(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(o(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):o(e[i?i-1:0],e[i],e[n<i+1?n:i+1],e[n<i+2?n:i+2],r-i)},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,i){var o=.5*(n-e),a=.5*(r-t),s=i*i;return(2*t-2*n+o+a)*(i*s)+(-3*t+3*n-2*o-a)*s+o*i+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=i.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?o()+parseFloat(e):e:o(),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 i in n){var o=e[i],a=Array.isArray(o),s=a?"array":typeof o,u=!a&&Array.isArray(n[i]);if("undefined"!==s&&"function"!==s){if(u){var c=n[i];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,o)),n[i]=[o].concat(c)}if("object"!==s&&!a||!o||u)"undefined"===typeof t[i]&&(t[i]=o),a||(t[i]*=1),r[i]=u?n[i].slice().reverse():t[i]||0;else{for(var l in t[i]=a?[]:{},o)t[i][l]=o[l];r[i]=a?[]:{},this._setupProperties(o,t[i],n[i],r[i])}}}},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=o()),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=o()),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=o()),void 0===t&&(t=!0),this._isPaused)return!0;var n,r,i=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>i)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 i in n)if(void 0!==t[i]){var o=t[i]||0,a=n[i],s=Array.isArray(e[i]),u=Array.isArray(a);!s&&u?e[i]=this._interpolationFunction(a,r):"object"===typeof a&&a?this._updateProperties(e[i],o,a,r):"number"===typeof(a=this._handleRelativeValue(o,a))&&(e[i]=o+(a-o)*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}(),f=u.nextId,d=c,p=d.getAll.bind(d),h=d.removeAll.bind(d),m=d.add.bind(d),v=d.remove.bind(d),g=d.update.bind(d),y={Easing:i,Group:a,Interpolation:s,now:o,Sequence:u,nextId:f,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 i=this,o=void 0===i.path?THREE.LoaderUtils.extractUrlBase(e):i.path,a=new THREE.FileLoader(i.manager);a.setPath(i.path),a.load(e,(function(e){t(i.parse(e,o))}),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,i=0,o=r.length;i<o;i++){var a=r[i];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,i=t.length;r<i;r++)n[r]=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,i=t.length;r<i;r++)n[r]=parseFloat(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,i=t.length;r<i;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,i){var o=n(e,t)[0];if(void 0!==o)for(var a=n(o,r),s=0;s<a.length;s++)i(a[s])}function f(e,t){for(var n in e){e[n].build=t(e[n])}}function d(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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var o=a(i.getAttribute("source")),s=i.getAttribute("semantic");t.inputs[s]=o}}return t}function h(e){var t={},n=e.getAttribute("target").split("/"),r=n.shift(),i=n.shift(),o=-1!==i.indexOf("("),s=-1!==i.indexOf(".");if(s)n=i.split("."),i=n.shift(),t.member=n.shift();else if(o){var u=i.split("(");i=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=i,t.arraySyntax=o,t.memberSyntax=s,t.sampler=a(e.getAttribute("source")),t}function m(e){var t=[],n=e.channels,r=e.samplers,i=e.sources;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o],s=r[a.sampler],u=s.inputs.INPUT,c=s.inputs.OUTPUT;_(g(a,i[u],i[c]),t)}return t}function v(e){return d(Ke.animations[e],m)}function g(e,t,n){var r,i,o,a,s,u,c=Ke.nodes[e.id],l=Re(c.id),f=c.transforms[e.sid],d=c.matrix.clone().transpose(),p={};switch(f){case"matrix":for(o=0,a=t.array.length;o<a;o++)if(r=t.array[o],i=o*n.stride,void 0===p[r]&&(p[r]={}),!0===e.arraySyntax){var h=n.array[i],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[i+s];break;case"translate":case"rotate":case"scale":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',f)}var v=function(e,t){var n=[];for(var r in e)n.push({time:parseFloat(r),value:e[r]});n.sort(o);for(var i=0;i<16;i++)w(n,i,t.elements[i]);return n;function o(e,t){return e.time-t.time}}(p,d);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,i=[],o=[],a=[],s=[],u=0,c=n.length;u<c;u++){var l=n[u],f=l.time,d=l.value;Te.fromArray(d).transpose(),Te.decompose(y,E,b),i.push(f),o.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 o.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".position",i,o)),a.length>0&&t.push(new THREE.QuaternionKeyframeTrack(r+".quaternion",i,a)),s.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".scale",i,s)),t}function w(e,t,n){var r,i,o,a=!0;for(i=0,o=e.length;i<o;i++)void 0===(r=e[i]).value[t]?r.value[t]=null:a=!1;if(!0===a)for(i=0,o=e.length;i<o;i++)(r=e[i]).value[t]=n;else!function(e,t){for(var n,r,i=0,o=e.length;i<o;i++){var a=e[i];if(null===a.value[t]){if(n=x(e,i,t),r=T(e,i,t),null===n){a.value[t]=r.value[t];continue}if(null===r){a.value[t]=n.value[t];continue}k(a,n,r,t)}}}(e,t)}function x(e,t,n){for(;t>=0;){var r=e[t];if(null!==r.value[n])return r;t--}return null}function T(e,t,n){for(;t<e.length;){var r=e[t];if(null!==r.value[n])return r;t++}return null}function k(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,i=e.animations,o=0,a=i.length;o<a;o++)for(var s=v(i[o]),u=0,c=s.length;u<c;u++)t.push(s[u]);return new THREE.AnimationClip(n,r,t)}function C(e){return d(Ke.clips[e],O)}function A(e){for(var t={sources:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"bind_shape_matrix":t.bindShapeMatrix=i(o.textContent);break;case"source":var a=o.getAttribute("id");t.sources[a]=ie(o);break;case"joints":t.joints=S(o);break;case"vertex_weights":t.vertexWeights=M(o)}}return t}function S(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var o=i.getAttribute("semantic"),s=a(i.getAttribute("source"));t.inputs[o]=s}}return t}function M(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var s=i.getAttribute("semantic"),u=a(i.getAttribute("source")),c=parseInt(i.getAttribute("offset"));t.inputs[s]={id:u,offset:c};break;case"vcount":t.vcount=o(i.textContent);break;case"v":t.v=o(i.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,i=4,o={joints:[],indices:{array:[],stride:i},weights:{array:[],stride:i}},a=e.sources,s=e.vertexWeights,u=s.vcount,c=s.v,l=s.inputs.JOINT.offset,f=s.inputs.WEIGHT.offset,d=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+f]];g.push({index:y,weight:b}),m+=2}for(g.sort(x),n=0;n<i;n++){var E=g[n];void 0!==E?(o.indices.array.push(E.index),o.weights.array.push(E.weight)):(o.indices.array.push(0),o.weights.array.push(0))}}e.bindShapeMatrix?o.bindMatrix=(new THREE.Matrix4).fromArray(e.bindShapeMatrix).transpose():o.bindMatrix=(new THREE.Matrix4).identity();for(t=0,r=d.array.length;t<r;t++){var _=d.array[t],w=(new THREE.Matrix4).fromArray(p.array,t*p.stride).transpose();o.joints.push({name:_,boneInverse:w})}return o;function x(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?d(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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"newparam":R(i,t);break;case"technique":t.technique=F(i);break;case"extra":t.extra=W(i)}}return t}function R(e,t){for(var n=e.getAttribute("sid"),r=0,i=e.childNodes.length;r<i;r++){var o=e.childNodes[r];if(1===o.nodeType)switch(o.nodeName){case"surface":t.surfaces[n]=L(o);break;case"sampler2D":t.samplers[n]=j(o)}}}function L(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"init_from":t.init_from=i.textContent}}return t}function j(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"source":t.source=i.textContent}}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"constant":case"lambert":case"blinn":case"phong":t.type=i.nodeName,t.parameters=B(i)}}return t}function B(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"emission":case"diffuse":case"specular":case"bump":case"ambient":case"shininess":case"transparency":t[i.nodeName]=H(i);break;case"transparent":t[i.nodeName]={opaque:i.getAttribute("opaque"),data:H(i)}}}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"color":t[o.nodeName]=i(o.textContent);break;case"float":t[o.nodeName]=parseFloat(o.textContent);break;case"texture":t[o.nodeName]={id:o.getAttribute("texture"),extra:z(o)}}}return t}function z(e){for(var t={technique:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"extra":U(i,t)}}return t}function U(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"technique":V(i,t)}}}function V(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"repeatU":case"repeatV":case"offsetU":case"offsetV":t.technique[i.nodeName]=parseFloat(i.textContent);break;case"wrapU":case"wrapV":"TRUE"===i.textContent.toUpperCase()?t.technique[i.nodeName]=1:"FALSE"===i.textContent.toUpperCase()?t.technique[i.nodeName]=0:t.technique[i.nodeName]=parseInt(i.textContent)}}}function W(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"technique":t.technique=G(i)}}return t}function G(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"double_sided":t[i.nodeName]=parseInt(i.textContent)}}return t}function K(e){return e}function q(e){var t,n,r=(t=e.url,d(Ke.effects[t],K)),i=r.profile.technique,o=r.profile.extra;switch(i.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 i=function(e){var t,n=e.slice(2+(e.lastIndexOf(".")-1>>>0));switch(n=n.toLowerCase()){case"tga":t=He;break;default:t=Ue}return t}(n);if(void 0!==i){var o=i.load(n),a=e.extra;if(void 0!==a&&void 0!==a.technique&&!1===s(a.technique)){var u=a.technique;o.wrapS=u.wrapU?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,o.wrapT=u.wrapV?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,o.offset.set(u.offsetU||0,u.offsetV||0),o.repeat.set(u.repeatU||1,u.repeatV||1)}else o.wrapS=THREE.RepeatWrapping,o.wrapT=THREE.RepeatWrapping;return o}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=i.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 f=u.transparent,p=u.transparency;if(void 0===p&&f&&(p={float:1}),void 0===f&&p&&(f={opaque:"A_ONE",data:{color:[1,1,1,1]}}),f&&p)if(f.data.texture)n.transparent=!0;else{var h=f.data.color;switch(f.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.',f.opaque)}n.opacity<1&&(n.transparent=!0)}return void 0!==o&&void 0!==o.technique&&1===o.technique.double_sided&&(n.side=THREE.DoubleSide),n}function Z(e){return d(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 Y(n)}}return{}}function Y(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,i=e.optics.parameters.aspect_ratio;r=void 0===r?n*i:r,n=void 0===n?r/i: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?d(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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"directional":case"point":case"spot":case"ambient":t.technique=i.nodeName,t.parameters=te(i)}}return t}function te(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"color":var a=i(o.textContent);t.color=(new THREE.Color).fromArray(a);break;case"falloff_angle":t.falloffAngle=parseFloat(o.textContent);break;case"quadratic_attenuation":var s=parseFloat(o.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?d(t,ne):(console.warn("THREE.ColladaLoader: Couldn't find light with ID:",e),null)}function ie(e){for(var t={array:[],stride:3},o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];if(1===a.nodeType)switch(a.nodeName){case"float_array":t.array=i(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 oe(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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var s=a(i.getAttribute("source")),u=i.getAttribute("semantic"),c=parseInt(i.getAttribute("offset")),l=parseInt(i.getAttribute("set")),f=l>0?u+l:u;t.inputs[f]={id:s,offset:c},t.stride=Math.max(t.stride,c+1),"TEXCOORD"===u&&(t.hasUV=!0);break;case"vcount":t.vcount=o(i.textContent);break;case"p":t.p=o(i.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,i=e.primitives;if(0===i.length)return{};var o=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}(i);for(var a in o){var s=o[a];se(s),t[a]=ce(s,n,r)}return t}function ce(e,t,n){for(var r={},i={array:[],stride:0},o={array:[],stride:0},a={array:[],stride:0},s={array:[],stride:0},u={array:[],stride:0},c=[],l=4,f=[],d=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 w in p.addGroup(m,b,v),m+=b,g.material&&h.push(g.material),y){var x=y[w];switch(w){case"VERTEX":for(var T in n){var k=n[T];switch(T){case"POSITION":var O=i.array.length;if(le(g,t[k],x.offset,i.array),i.stride=t[k].stride,t.skinWeights&&t.skinIndices&&(le(g,t.skinIndices,x.offset,c),le(g,t.skinWeights,x.offset,f)),!1===g.hasUV&&!0===e.uvsNeedsFix){b=(i.array.length-O)/i.stride;for(var C=0;C<b;C++)a.array.push(0,0)}break;case"NORMAL":le(g,t[k],x.offset,o.array),o.stride=t[k].stride;break;case"COLOR":le(g,t[k],x.offset,u.array),u.stride=t[k].stride;break;case"TEXCOORD":le(g,t[k],x.offset,a.array),a.stride=t[k].stride;break;case"TEXCOORD1":le(g,t[k],x.offset,s.array),a.stride=t[k].stride;break;default:console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',T)}}break;case"NORMAL":le(g,t[x.id],x.offset,o.array),o.stride=t[x.id].stride;break;case"COLOR":le(g,t[x.id],x.offset,u.array),u.stride=t[x.id].stride;break;case"TEXCOORD":le(g,t[x.id],x.offset,a.array),a.stride=t[x.id].stride;break;case"TEXCOORD1":le(g,t[x.id],x.offset,s.array),s.stride=t[x.id].stride}}}return i.array.length>0&&p.addAttribute("position",new THREE.Float32BufferAttribute(i.array,i.stride)),o.array.length>0&&p.addAttribute("normal",new THREE.Float32BufferAttribute(o.array,o.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)),f.length>0&&p.addAttribute("skinWeight",new THREE.Float32BufferAttribute(f,d)),r.data=p,r.type=e[0].type,r.materialKeys=h,r}function le(e,t,n,r){var i=e.p,o=e.stride,a=e.vcount;function s(e){for(var t=i[e+n]*c,o=t+c;t<o;t++)r.push(u[t])}var u=t.array,c=t.stride;if(void 0!==e.vcount)for(var l=0,f=0,d=a.length;f<d;f++){var p=a[f];if(4===p){var h=l+1*o,m=l+2*o,v=l+3*o;s(l+0*o),s(h),s(v),s(h),s(m),s(v)}else if(3===p){h=l+1*o,m=l+2*o;s(l+0*o),s(h),s(m)}else if(p>4)for(var g=1,y=p-2;g<=y;g++){h=l+o*g,m=l+o*(g+1);s(l+0*o),s(h),s(m)}l+=o*p}else for(f=0,d=i.length;f<d;f+=o)s(f)}function fe(e){return d(Ke.geometries[e],ue)}function de(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 o=i(r.textContent);t.axis.fromArray(o);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=i(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=i(r.textContent);break;case"mass":t.mass=i(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 i=r.getElementsByTagName("param")[0];t.axis=i.textContent;var o=t.axis.split("inst_").pop().split("axis")[0];t.jointIndex=o.substr(0,o.length-1)}}return t}function we(e){return void 0!==e.build?e.build:e}function xe(e){for(var t=[],n=Fe.querySelector('[id="'+e.id+'"]'),r=0;r<n.childNodes.length;r++){var o=n.childNodes[r];if(1===o.nodeType)switch(o.nodeName){case"matrix":var a=i(o.textContent),s=(new THREE.Matrix4).fromArray(a).transpose();t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:s});break;case"translate":case"scale":a=i(o.textContent);var u=(new THREE.Vector3).fromArray(a);t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:u});break;case"rotate":a=i(o.textContent),u=(new THREE.Vector3).fromArray(a);var c=THREE.Math.degToRad(a[3]);t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:u,angle:c})}}return t}var Te=new THREE.Matrix4,ke=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 o=i(r.textContent);t.matrix.multiply(Te.fromArray(o).transpose()),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"translate":o=i(r.textContent);ke.fromArray(o),t.matrix.multiply(Te.makeTranslation(ke.x,ke.y,ke.z)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"rotate":o=i(r.textContent);var s=THREE.Math.degToRad(o[3]);t.matrix.multiply(Te.makeRotationAxis(ke.fromArray(o),s)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"scale":o=i(r.textContent);t.matrix.scale(ke.fromArray(o)),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 i=r.getElementsByTagName("instance_material"),o=0;o<i.length;o++){var s=i[o],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,i,o=[],a=[];for(n=0;n<e.length;n++){var s=e[n];if(Ne(s))Se(Re(s),t,o);else if(i=s,void 0!==Ke.visualScenes[i])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,o)}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<o.length;c++)if((r=o[c]).bone.name===t[n].name){a[n]=r,r.processed=!0;break}for(n=0;n<o.length;n++)!1===(r=o[n]).processed&&(a.push(r),r.processed=!0);var f=[],d=[];for(n=0;n<a.length;n++)r=a[n],f.push(r.bone),d.push(r.boneInverse);return new THREE.Skeleton(f,d)}function Se(e,t,n){e.traverse((function(e){if(!0===e.isBone){for(var r,i=0;i<t.length;i++){var o=t[i];if(o.name===e.name){r=o.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,i=e.nodes,o=e.type,a=e.instanceCameras,s=e.instanceControllers,u=e.instanceLights,c=e.instanceGeometries,l=e.instanceNodes,f=0,p=i.length;f<p;f++)n.push(Re(i[f]));for(f=0,p=a.length;f<p;f++){var h=J(a[f]);null!==h&&n.push(h.clone())}for(f=0,p=s.length;f<p;f++)for(var m=s[f],v=(t=m.id,d(Ke.controllers[t],D)),g=Pe(fe(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(f=0,p=u.length;f<p;f++){var w=re(u[f]);null!==w&&n.push(w.clone())}for(f=0,p=c.length;f<p;f++)for(b=0,E=(g=Pe(fe((m=c[f]).id),m.materials)).length;b<E;b++)n.push(g[b]);for(f=0,p=l.length;f<p;f++)n.push(Re(l[f]).clone());if(0===i.length&&1===n.length)_=n[0];else{_="JOINT"===o?new THREE.Bone:new THREE.Group;for(f=0;f<n.length;f++)_.add(n[f])}return""===_.name&&(_.name="JOINT"===o?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,i=e.length;r<i;r++){var o=t[e[r]];void 0===o?(console.warn("THREE.ColladaLoader: Material with key %s not found. Apply fallback material.",e[r]),n.push(De)):n.push(Z(o))}return n}function Pe(e,t){var n=[];for(var r in e){var i=e[r],o=Ie(i.materialKeys,t);0===o.length&&("lines"===r||"linestrips"===r?o.push(new THREE.LineBasicMaterial):o.push(new THREE.MeshPhongMaterial));var a=void 0!==i.data.attributes.skinIndex;if(a)for(var s=0,u=o.length;s<u;s++)o[s].skinning=!0;var c,l=1===o.length?o[0]:o;switch(r){case"lines":c=new THREE.LineSegments(i.data,l);break;case"linestrips":c=new THREE.Line(i.data,l);break;case"triangles":case"polylist":c=a?new THREE.SkinnedMesh(i.data,l):new THREE.Mesh(i.data,l)}n.push(c)}return n}function Ne(e){return void 0!==Ke.nodes[e]}function Re(e){return d(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 i=n[r];t.add(Re(i.id))}return t}function je(e){return d(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,ze=function(e){return{unit:u(n(e,"unit")[0]),upAxis:c(n(e,"up_axis")[0])}}(n(Fe,"asset")[0]),Ue=new THREE.TextureLoader(this.manager);Ue.setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin),THREE.TGALoader&&(He=new THREE.TGALoader(this.manager)).setPath(this.resourcePath||t);var Ve=[],We={},Ge=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 i,o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"source":i=o.getAttribute("id"),t.sources[i]=ie(o);break;case"sampler":i=o.getAttribute("id"),t.samplers[i]=p(o);break;case"channel":i=o.getAttribute("target"),t.channels[i]=h(o);break;default:console.log(o)}}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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"instance_animation":t.animations.push(a(i.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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"skin":t.id=a(i.getAttribute("source")),t.skin=A(i);break;case"morph":t.id=a(i.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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"profile_COMMON":t.profile=N(i)}}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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"instance_effect":t.url=a(i.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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"optics":t.optics=$(i)}}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 i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"technique_common":t=ee(i)}}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 i=0;i<r.childNodes.length;i++){var o=r.childNodes[i];if(1===o.nodeType){var a=o.getAttribute("id");switch(o.nodeName){case"source":t.sources[a]=ie(o);break;case"vertices":t.vertices=oe(o);break;case"polygons":console.warn("THREE.ColladaLoader: Unsupported primitive type: ",o.nodeName);break;case"lines":case"linestrips":case"polylist":case"triangles":t.primitives.push(ae(o));break;default:console.log(o)}}}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_"+Ge++)}}(e);for(var r=n(e,"node"),i=0;i<r.length;i++)t.children.push(Oe(r[i]));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})),f(Ke.animations,m),f(Ke.clips,O),f(Ke.controllers,D),f(Ke.images,I),f(Ke.effects,K),f(Ke.materials,q),f(Ke.cameras,Q),f(Ke.lights,ne),f(Ke.geometries,ue),f(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),i=0,o=r.length;i<o;i++)t.push(r[i]);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,i=(r=e,d(Ke.kinematicsModels[r],de)),o=function(e){return d(Ke.kinematicsScenes[e],we)}(t),a=je(n),s=o.bindJointAxis,u={},c=0,l=s.length;c<l;c++){var f=s[c],p=Fe.querySelector('[sid="'+f.target+'"]');if(p){var h=p.parentElement;v(f.jointIndex,h)}}var m=new THREE.Matrix4;We={joints:i&&i.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 i=n.object,o=r.axis,a=n.transforms;Te.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":Te.multiply(m.makeRotationAxis(o,THREE.Math.degToRad(t)));break;case"prismatic":Te.multiply(m.makeTranslation(o.x*t,o.y*t,o.z*t));break;default:console.warn("THREE.ColladaLoader: Unknown joint type: "+r.type)}else switch(c.type){case"matrix":Te.multiply(c.obj);break;case"translate":Te.multiply(m.makeTranslation(c.obj.x,c.obj.y,c.obj.z));break;case"scale":Te.scale(c.obj);break;case"rotate":Te.multiply(m.makeRotationAxis(c.obj,c.angle))}}i.matrix.copy(Te),i.matrix.decompose(i.position,i.quaternion,i.scale),u[e].position=t}}else console.log("THREE.ColladaLoader: "+e+" does not exist.")}}}function v(e,t){var n=t.getAttribute("name"),r=i.joints[e];a.traverse((function(i){i.name===n&&(u[e]={object:i,transforms:xe(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"===ze.upAxis&&qe.quaternion.setFromEuler(new THREE.Euler(-Math.PI/2,0,0)),qe.scale.multiplyScalar(ze.unit),{animations:Ve,kinematics:We,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 i(e){this.textureLoader=e}function o(){}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 f(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 d(e){return e/46186158e3}r.prototype={constructor:r,crossOrigin:"anonymous",load:function(e,t,n,r){var i=this,o=THREE.LoaderUtils.extractUrlBase(e),a=new THREE.FileLoader(this.manager);a.setResponseType("arraybuffer"),a.load(e,(function(n){try{var a=i.parse(n,o);t(a)}catch(s){setTimeout((function(){r&&r(s),i.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===x(e,0,t.length)}(t))e=(new u).parse(t);else{var r=x(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 i=0;i<t.length;++i){if(r(1)===t[i])return!1}return!0}(r))throw new Error("THREE.FBXLoader: Unknown format.");if(f(r)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+f(r));e=(new s).parse(r)}return new i(new THREE.TextureLoader(this.manager).setPath(n).setCrossOrigin(this.crossOrigin)).parse(e)}},i.prototype={constructor:i,parse:function(){t=this.parseConnections();var e=this.parseImages(),r=this.parseTextures(e),i=this.parseMaterials(r),a=this.parseDeformers(),s=(new o).parse(a);return this.parseScene(a,s,i),n},parseConnections:function(){var t=new Map;"Connections"in e&&e.Connections.connections.forEach((function(e){var n=e[0],r=e[1],i=e[2];t.has(n)||t.set(n,{parents:[],children:[]});var o={ID:r,relationship:i};t.get(n).parents.push(o),t.has(r)||t.set(r,{parents:[],children:[]});var a={ID:n,relationship:i};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 i in r){var o=r[i];if(t[c=parseInt(i)]=o.RelativeFilename||o.Filename,"Content"in o){var a=o.Content instanceof ArrayBuffer&&o.Content.byteLength>0,s="string"===typeof o.Content&&""!==o.Content;if(a||s){var u=this.parseImage(r[i]);n[o.RelativeFilename||o.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,i=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(i){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 "'+i+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var o=new Uint8Array(n);return window.URL.createObjectURL(new Blob([o],{type:t}))},parseTextures:function(t){var n=new Map;if("Texture"in e.Objects){var r=e.Objects.Texture;for(var i in r){var o=this.parseTexture(r[i],t);n.set(parseInt(i),o)}}return n},parseTexture:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,i=e.WrapModeV,o=void 0!==r?r.value:0,a=void 0!==i?i.value:0;if(n.wrapS=0===o?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,i,o=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),i=new THREE.Texture):i=u.load(r)}else"psd"===s?(console.warn("FBXLoader: PSD textures are not supported, creating empty placeholder texture for",r),i=new THREE.Texture):i=this.textureLoader.load(r);return this.textureLoader.setPath(o),i},parseMaterials:function(t){var n=new Map;if("Material"in e.Objects){var r=e.Objects.Material;for(var i in r){var o=this.parseMaterial(r[i],t);null!==o&&n.set(parseInt(i),o)}}return n},parseMaterial:function(e,n){var r=e.id,i=e.attrName,o=e.ShadingModel;if("object"===typeof o&&(o=o.value),!t.has(r))return null;var a,s=this.parseParameters(e,n,r);switch(o.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.',o),a=new THREE.MeshPhongMaterial({color:3342591})}return a.setValues(s),a.name=i,a},parseParameters:function(e,n,r){var i={};e.BumpFactor&&(i.bumpScale=e.BumpFactor.value),e.Diffuse?i.color=(new THREE.Color).fromArray(e.Diffuse.value):e.DiffuseColor&&"Color"===e.DiffuseColor.type&&(i.color=(new THREE.Color).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(i.displacementScale=e.DisplacementFactor.value),e.Emissive?i.emissive=(new THREE.Color).fromArray(e.Emissive.value):e.EmissiveColor&&"Color"===e.EmissiveColor.type&&(i.emissive=(new THREE.Color).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(i.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(i.opacity=parseFloat(e.Opacity.value)),i.opacity<1&&(i.transparent=!0),e.ReflectionFactor&&(i.reflectivity=e.ReflectionFactor.value),e.Shininess&&(i.shininess=e.Shininess.value),e.Specular?i.specular=(new THREE.Color).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(i.specular=(new THREE.Color).fromArray(e.SpecularColor.value));var o=this;return t.get(r).children.forEach((function(e){var t=e.relationship;switch(t){case"Bump":i.bumpMap=o.getTexture(n,e.ID);break;case"DiffuseColor":i.map=o.getTexture(n,e.ID);break;case"DisplacementColor":i.displacementMap=o.getTexture(n,e.ID);break;case"EmissiveColor":i.emissiveMap=o.getTexture(n,e.ID);break;case"NormalMap":i.normalMap=o.getTexture(n,e.ID);break;case"ReflectionColor":i.envMap=o.getTexture(n,e.ID),i.envMap.mapping=THREE.EquirectangularReflectionMapping;break;case"SpecularColor":i.specularMap=o.getTexture(n,e.ID);break;case"TransparentColor":i.alphaMap=o.getTexture(n,e.ID),i.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)}})),i},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 i=e.Objects.Deformer;for(var o in i){var a=i[o],s=t.get(parseInt(o));if("Skin"===a.attrType){var u=this.parseSkeleton(s,i);u.ID=o,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[o]=u}else if("BlendShape"===a.attrType){var c={id:o};c.rawTargets=this.parseMorphTargets(s,i),c.id=o,s.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),r[o]=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 i={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&&(i.indices=r.Indexes.a,i.weights=r.Weights.a),n.push(i)}})),{rawBones:n,bones:[]}},parseMorphTargets:function(e,n){for(var r=[],i=0;i<e.children.length;i++){if(8===i){console.warn("FBXLoader: maximum of 8 morph targets supported. Ignoring additional targets.");break}var o=e.children[i],a=n[o.ID],s={name:a.attrName,initialWeight:a.DeformPercent,id:a.id,fullWeights:a.FullWeights.a};if("BlendShapeChannel"!==a.attrType)return;t.get(parseInt(o.ID)).children.forEach((function(e){void 0===e.relationship&&(s.geoID=e.ID)})),r.push(s)}return r},parseScene:function(r,i,o){n=new THREE.Group;var s=this.parseModels(r.skeletons,i,o),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,i,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,i){var o=new Map,a=e.Objects.Model;for(var s in a){var u=parseInt(s),c=a[s],l=t.get(u),f=this.buildSkeleton(l,n,u,c.attrName);if(!f){switch(c.attrType){case"Camera":f=this.createCamera(l);break;case"Light":f=this.createLight(l);break;case"Mesh":f=this.createMesh(l,r,i);break;case"NurbsCurve":f=this.createCurve(l,r);break;case"LimbNode":case"Null":default:f=new THREE.Group}f.name=THREE.PropertyBinding.sanitizeNodeName(c.attrName),f.ID=u}this.setModelTransforms(f,c),o.set(u,f)}return o},buildSkeleton:function(e,t,n,r){var i=null;return e.parents.forEach((function(e){for(var o in t){var a=t[o];a.rawBones.forEach((function(t,o){if(t.ID===e.ID){var s=i;(i=new THREE.Bone).matrixWorld.copy(t.transformLink),i.name=THREE.PropertyBinding.sanitizeNodeName(r),i.ID=n,a.bones[o]=i,null!==s&&i.add(s)}}))}})),i},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 i=0;void 0!==r.CameraProjectionType&&1===r.CameraProjectionType.value&&(i=1);var o=1;void 0!==r.NearPlane&&(o=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 f=r.FocalLength?r.FocalLength.value:null;switch(i){case 0:n=new THREE.PerspectiveCamera(l,c,o,a),null!==f&&n.setFocalLength(f);break;case 1:n=new THREE.OrthographicCamera(-s/2,s/2,u/2,-u/2,o,a);break;default:console.warn("THREE.FBXLoader: Unknown camera type "+i+"."),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 i;i=void 0===r.LightType?0:r.LightType.value;var o=16777215;void 0!==r.Color&&(o=(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(i){case 0:n=new THREE.PointLight(o,a,s,1);break;case 1:n=new THREE.DirectionalLight(o,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(o,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(o,a)}void 0!==r.CastShadows&&1===r.CastShadows.value&&(n.castShadow=!0)}return n},createMesh:function(e,t,n){var r,i=null,o=null,a=[];return e.children.forEach((function(e){t.has(e.ID)&&(i=t.get(e.ID)),n.has(e.ID)&&a.push(n.get(e.ID))})),a.length>1?o=a:a.length>0?o=a[0]:(o=new THREE.MeshPhongMaterial({color:13421772}),a.push(o)),"color"in i.attributes&&a.forEach((function(e){e.vertexColors=THREE.VertexColors})),i.FBX_Deformer?(a.forEach((function(e){e.skinning=!0})),r=new THREE.SkinnedMesh(i,o)):r=new THREE.Mesh(i,o),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,i){"LookAtProperty"in i&&t.get(r.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){var i=e.Objects.Model[t.ID];if("Lcl_Translation"in i){var o=i.Lcl_Translation.value;void 0!==r.target?(r.target.position.fromArray(o),n.add(r.target)):r.lookAt((new THREE.Vector3).fromArray(o))}}}))},bindSkeleton:function(e,n,r){var i=this.parsePoseNodes();for(var o in e){var a=e[o];t.get(parseInt(a.ID)).parents.forEach((function(e){if(n.has(e.ID)){var o=e.ID;t.get(o).parents.forEach((function(e){r.has(e.ID)&&r.get(e.ID).bind(new THREE.Skeleton(a.bones),i[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 i=n[r].PoseNode;Array.isArray(i)?i.forEach((function(e){t[e.Node]=(new THREE.Matrix4).fromArray(e.Matrix.a)})):t[i.Node]=(new THREE.Matrix4).fromArray(i.Matrix.a)}}return t},createAmbientLight:function(){if("GlobalSettings"in e&&"AmbientColor"in e.GlobalSettings){var t=e.GlobalSettings.AmbientColor.value,r=t[0],i=t[1],o=t[2];if(0!==r||0!==i||0!==o){var a=new THREE.Color(r,i,o);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,i=!1;n.traverse((function(e){e.isMesh&&e.material.uuid===r&&e.uuid!==t&&(i=!0)})),!0===i&&(e.material=e.material.clone()),e.material.morphTargets=!0}}))}},o.prototype={constructor:o,parse:function(n){var r=new Map;if("Geometry"in e.Objects){var i=e.Objects.Geometry;for(var o in i){var a=t.get(parseInt(o)),s=this.parseGeometry(a,i[o],n);r.set(parseInt(o),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 i=r.skeletons,o=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!==i[t.ID]&&(e=i[t.ID]),e}),null),u=t.children.reduce((function(e,t){return void 0!==o[t.ID]&&(e=o[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 f=E(l);return this.genGeometry(n,s,u,f)}},genGeometry:function(e,t,n,r){var i=new THREE.BufferGeometry;e.attrName&&(i.name=e.attrName);var o=this.parseGeoNode(e,t),a=this.genBuffers(o),s=new THREE.Float32BufferAttribute(a.vertex,3);if(r.applyToBufferAttribute(s),i.addAttribute("position",s),a.colors.length>0&&i.addAttribute("color",new THREE.Float32BufferAttribute(a.colors,3)),t&&(i.addAttribute("skinIndex",new THREE.Uint16BufferAttribute(a.weightsIndices,4)),i.addAttribute("skinWeight",new THREE.Float32BufferAttribute(a.vertexWeights,4)),i.FBX_Deformer=t),a.normal.length>0){var u=new THREE.Float32BufferAttribute(a.normal,3);(new THREE.Matrix3).getNormalMatrix(r).applyToBufferAttribute(u),i.addAttribute("normal",u)}if(a.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),i.addAttribute(n,new THREE.Float32BufferAttribute(a.uvs[t],2))})),o.material&&"AllSame"!==o.material.mappingType){var c=a.materialIndex[0],l=0;if(a.materialIndex.forEach((function(e,t){e!==c&&(i.addGroup(l,t-l,c),c=e,l=t)})),i.groups.length>0){var f=i.groups[i.groups.length-1],d=f.start+f.count;d!==a.materialIndex.length&&i.addGroup(d,a.materialIndex.length-d,c)}0===i.groups.length&&i.addGroup(0,a.materialIndex.length,a.materialIndex[0])}return this.addMorphTargets(i,e,n,r),i},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,i){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[i]})}))}))),n},genBuffers:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,i=!1,o=[],a=[],s=[],u=[],c=[],l=[],f=this;return e.vertexIndices.forEach((function(d,p){var m=!1;d<0&&(d^=-1,m=!0);var v=[],g=[];if(o.push(3*d,3*d+1,3*d+2),e.color){var y=h(p,n,d,e.color);s.push(y[0],y[1],y[2])}if(e.skeleton){if(void 0!==e.weightTable[d]&&e.weightTable[d].forEach((function(e){g.push(e.weight),v.push(e.id)})),g.length>4){i||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),i=!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,i){if(n>e){i[t]=n,n=e;var o=b[t];b[t]=r,r=o}}))})),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,d,e.normal);a.push(y[0],y[1],y[2])}if(e.material&&"AllSame"!==e.material.mappingType)var w=h(p,n,d,e.material)[0];e.uv&&e.uv.forEach((function(e,t){var r=h(p,n,d,e);void 0===u[t]&&(u[t]=[]),u[t].push(r[0]),u[t].push(r[1])})),r++,m&&(f.genFace(t,e,o,w,a,s,u,c,l,r),n++,r=0,o=[],a=[],s=[],u=[],c=[],l=[])})),t},genFace:function(e,t,n,r,i,o,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(o[0]),e.colors.push(o[1]),e.colors.push(o[2]),e.colors.push(o[3*(l-1)]),e.colors.push(o[3*(l-1)+1]),e.colors.push(o[3*(l-1)+2]),e.colors.push(o[3*l]),e.colors.push(o[3*l+1]),e.colors.push(o[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(i[0]),e.normal.push(i[1]),e.normal.push(i[2]),e.normal.push(i[3*(l-1)]),e.normal.push(i[3*(l-1)+1]),e.normal.push(i[3*(l-1)+2]),e.normal.push(i[3*l]),e.normal.push(i[3*l+1]),e.normal.push(i[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,i){if(null!==r){t.morphAttributes.position=[],t.morphAttributes.normal=[];var o=this;r.rawTargets.forEach((function(r){var a=e.Objects.Geometry[r.geoID];void 0!==a&&o.genMorphGeometry(t,n,a,i)}))}},genMorphGeometry:function(e,t,n,r){var i=new THREE.BufferGeometry;n.attrName&&(i.name=n.attrName);for(var o=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 f={vertexIndices:o,vertexPositions:a},d=this.genBuffers(f),p=new THREE.Float32BufferAttribute(d.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,i=[];return"IndexToDirect"===n&&("NormalIndex"in e?i=e.NormalIndex.a:"NormalsIndex"in e&&(i=e.NormalsIndex.a)),{dataSize:3,buffer:r,indices:i,mappingType:t,referenceType:n}},parseUVs:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.UV.a,i=[];return"IndexToDirect"===n&&(i=e.UVIndex.a),{dataSize:2,buffer:r,indices:i,mappingType:t,referenceType:n}},parseVertexColors:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Colors.a,i=[];return"IndexToDirect"===n&&(i=e.ColorIndex.a),{dataSize:4,buffer:r,indices:i,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,i=[],o=0;o<r.length;++o)i.push(o);return{dataSize:1,buffer:r,indices:i,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,i=t-1,o=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=i,r=o.length-1-n;for(u=0;u<i;++u)a.push(a[u])}var l=new THREE.NURBSCurve(i,o,a,n,r).getPoints(7*a.length),f=new Float32Array(3*l.length);l.forEach((function(e,t){e.toArray(f,3*t)}));var d=new THREE.BufferGeometry;return d.addAttribute("position",new THREE.BufferAttribute(f,3)),d}},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],i=this.addClip(r);e.push(i)}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 i=t[r];if(null!==i.attrName.match(/S|R|T|DeformPercent/)){var o={id:i.id,attr:i.attrName,curves:{}};n.set(o.id,o)}}return n},parseAnimationCurves:function(n){var r=e.Objects.AnimationCurve;for(var i in r){var o={id:r[i].id,times:r[i].KeyTime.a.map(d),values:r[i].KeyValueFloat.a},a=t.get(o.id);if(void 0!==a){var s=a.parents[0].ID,u=a.parents[0].relationship;u.match(/X/)?n.get(s).curves.x=o:u.match(/Y/)?n.get(s).curves.y=o:u.match(/Z/)?n.get(s).curves.z=o:u.match(/d|DeformPercent/)&&n.has(s)&&(n.get(s).curves.morph=o)}}},parseAnimationLayers:function(n){var r=e.Objects.AnimationLayer,i=new Map;for(var o in r){var a=[],s=t.get(parseInt(o));if(void 0!==s){var u=s.children,c=this;u.forEach((function(r,i){if(n.has(r.ID)){var o=n.get(r.ID);if(void 0!==o.curves.x||void 0!==o.curves.y||void 0!==o.curves.z){if(void 0===a[i]){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[i]=u}a[i][o.attr]=o}else if(void 0!==o.curves.morph){if(void 0===a[i]){var l;t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(l=e.ID)}));var f=t.get(l).parents[0].ID,d=t.get(f).parents[0].ID,p=t.get(d).parents[0].ID;s=e.Objects.Model[p],u={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),morphName:e.Objects.Deformer[l].attrName};a[i]=u}a[i][o.attr]=o}}})),i.set(parseInt(o),a)}}return i},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,i={};for(var o in r){var a=t.get(parseInt(o)).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);i[o]={name:r[o].attrName,layer:s}}return i},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,i=new THREE.Vector3;if(e.transform&&e.transform.decompose(n,r,i),n=n.toArray(),r=(new THREE.Euler).setFromQuaternion(r).toArray(),i=i.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var o=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==o&&t.push(o)}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,i,"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 i=this.getTimesForAllAxes(t),o=this.getKeyframeTrackValues(i,t,n);return new THREE.VectorKeyframeTrack(e+"."+r,i,o)},generateRotationTrack:function(e,t,n,r,i){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 o=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(o,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!==i&&((i=i.map(THREE.Math.degToRad)).push("ZYX"),i=(new THREE.Euler).fromArray(i),i=(new THREE.Quaternion).setFromEuler(i).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!==i&&s.multiply(i),s.toArray(c,l/3*4);return new THREE.QuaternionKeyframeTrack(e+".quaternion",o,c)},generateMorphTrack:function(e){var t=e.DeformPercent.curves.morph,r=t.values.map((function(e){return e/100})),i=n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];return new THREE.NumberKeyframeTrack(e.modelName+".morphTargetInfluences["+i+"]",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,i=[],o=-1,a=-1,s=-1;return e.forEach((function(e){if(t.x&&(o=t.x.times.indexOf(e)),t.y&&(a=t.y.times.indexOf(e)),t.z&&(s=t.z.times.indexOf(e)),-1!==o){var n=t.x.values[o];i.push(n),r[0]=n}else i.push(r[0]);if(-1!==a){var u=t.y.values[a];i.push(u),r[1]=u}else i.push(r[1]);if(-1!==s){var c=t.z.values[s];i.push(c),r[2]=c}else i.push(r[2])})),i},interpolateRotations:function(e){for(var t=1;t<e.values.length;t++){var n=e.values[t-1],r=e.values[t]-n,i=Math.abs(r);if(i>=180){for(var o=i/180,a=r/o,s=n+a,u=e.times[t-1],c=(e.times[t]-u)/o,l=u+c,f=[],d=[];l<e.times[t];)f.push(l),l+=c,d.push(s),s+=a;e.times=T(e.times,t,f),e.values=T(e.values,t,d)}}}},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 i=e.match(/^[\s\t]*;/),o=e.match(/^[\s\t]*$/);if(!i&&!o){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(/"$/,"")})),i={name:n},o=this.parseNodeAttr(r),a=this.getCurrentNode();0===this.currentIndent?this.allNodes.add(n,i):n in a?("PoseNode"===n?a.PoseNode.push(i):void 0!==a[n].id&&(a[n]={},a[n][a[n].id]=a[n]),""!==o.id&&(a[n][o.id]=i)):"number"===typeof o.id?(a[n]={},a[n][o.id]=i):"Properties70"!==n&&(a[n]="PoseNode"===n?[i]:i),"number"===typeof o.id&&(i.id=o.id),""!==o.name&&(i.attrName=o.name),""!==o.type&&(i.attrType=o.type),this.pushStack(i)},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(),i=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===i&&(i=n.replace(/"/g,"").replace(/,$/,"").trim());var o=this.getCurrentNode();if("Properties70"!==o.name){if("C"===r){var a=i.split(",").slice(1),s=parseInt(a[0]),u=parseInt(a[1]),c=i.split(",").slice(3);r="connections",function(e,t){for(var n=0,r=e.length,i=t.length;n<i;n++,r++)e[r]=t[n]}(i=[s,u],c=c.map((function(e){return e.trim().replace(/^"/,"")}))),void 0===o[r]&&(o[r]=[])}"Node"===r&&(o.id=i),r in o&&Array.isArray(o[r])?o[r].push(i):"a"!==r?o[r]=i:o.a=i,this.setCurrentProp(o,r),"a"===r&&","!==i.slice(-1)&&(o.a=w(i))}else this.parseNodeSpecialProperty(e,r,i)},parseNodePropertyContinued:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=w(t.a))},parseNodeSpecialProperty:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];switch(o){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=w(u)}this.getPrevNode()[i]={type:o,type2:a,flag:s,value:u},this.setCurrentProp(this.getPrevNode(),i)}},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 i=this.parseNode(t,n);null!==i&&r.add(i.name,i)}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(),i=t>=7500?e.getUint64():e.getUint32(),o=(t>=7500?e.getUint64():e.getUint32(),e.getUint8()),a=e.getString(o);if(0===r)return null;for(var s=[],u=0;u<i;u++)s.push(this.parseProperty(e));var c=s.length>0?s[0]:"",l=s.length>1?s[1]:"",f=s.length>2?s[2]:"";for(n.singleProperty=1===i&&e.getOffset()===r;r>e.getOffset();){var d=this.parseNode(e,t);null!==d&&this.parseSubNode(a,n,d)}return n.propertyList=s,"number"===typeof c&&(n.id=c),""!==l&&(n.attrName=l),""!==f&&(n.attrType=f),""!==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 i=[];n.propertyList.forEach((function(e,t){0!==t&&i.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(i)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var o,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_")),o="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:o}}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(),i=e.getUint32(),o=e.getUint32();if(0===i)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(o))).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 i;switch(r.mappingType){case"ByPolygonVertex":i=e;break;case"ByPolygon":i=t;break;case"ByVertice":i=n;break;case"AllSame":i=r.indices[0];break;default:console.warn("THREE.FBXLoader: unknown attribute mapping type "+r.mappingType)}"IndexToDirect"===r.referenceType&&(i=r.indices[i]);var o=i*r.dataSize,a=o+r.dataSize;return function(e,t,n,r){for(var i=n,o=0;i<r;i++,o++)e[o]=t[i];return e}(p,r.buffer,o,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 w(e){return e.split(",").map((function(e){return parseFloat(e)}))}function x(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.byteLength),THREE.LoaderUtils.decodeText(new Uint8Array(e,t,n))}function T(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,i){const o=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(){i(new Error("Script request to "+e+" timed out")),t(a)}),o),c=function(e){clearTimeout(e)};s.addEventListener("load",(function(e){r({ok:!0}),c(u),t(a)})),s.addEventListener("error",(function(n){i(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,i){this.q=e||0,this.r=t||0,this.s=r||0,this.h=i||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,i,o=this._directions.length;for(this._list.length=0,r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);if(t)for(r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);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 i=Math.abs(e.h);1>i&&(i=1);var o=this._geoCache[i];o||(this.extrudeSettings.amount=i,o=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[i]=o);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:o,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,i,o=[],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)i=this.cells[t],(r=this.generateTile(i,a.tileScale,a.material)).position.copy(this.cellToPixel(i)),r.position.y=0,o.push(r);return o},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,i,o;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++)i=-t-r,Math.abs(t)<=this.size&&Math.abs(r)<=this.size&&Math.abs(i)<=this.size&&(o=new n.Cell(t,r,i),this.add(o))},generateOverlay:function(e,t,r){var i,o,a,s=this.cellShape.createPointsGeometry();for(i=-e;e+1>i;i++)for(o=-e;e+1>o;o++)if(a=-i-o,Math.abs(i)<=e&&Math.abs(o)<=e&&Math.abs(a)<=e){this._cel.set(i,o,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 i=this;n.Tools.getJSON({url:e,callback:function(e){i.fromJSON(e),t.call(r||null,e)},cache:!1,scope:i})},fromJSON:function(e){var t,r,i=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<i.length;t++)(r=new n.Cell).copy(i[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),i=Math.abs(t-e.q),o=Math.abs(n-e.r),a=Math.abs(r-e.s);return i>o&&i>a?t=-n-r:o>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,i,o=this._directions.length;for(this._list.length=0,r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);if(t)for(r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);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 i=Math.abs(e.h);1>i&&(i=1);var o=this._geoCache[i];o||(this.extrudeSettings.amount=i,o=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[i]=o);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:o,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,i,o=[],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)i=this.cells[t],(r=this.generateTile(i,a.tileScale,a.material)).position.copy(this.cellToPixel(i)),r.position.y=0,o.push(r);return o},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,i,o=Math.ceil(this.size/2);for(t=-o;o>t;t++)for(r=-o;o>r;r++)i=new n.Cell(t,r+1),this.add(i)},generateOverlay:function(e,t,r){var i,o,a=Math.ceil(e/2);for(i=-a;a>i;i++)for(o=-a;a>o;o++){this._cel.set(i,o);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,i=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<i.length;t++)(r=new n.Cell).copy(i[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(i){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 i=t.next;r&&(r.next=t),t.next=n,t.prev=n.prev,n.next=i,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,i=this.first;for(r.length=0;i;)r.push(i.obj),i=i.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,i){this._listener=t,this.isOnce=n,this.context=r,this.signal=e,this._priority=i||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,i){var o,a=this._indexOfListener(t,r);if(-1!==a){if((o=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 o=new e(this,t,n,r,i),this._addBinding(o);return this.memorize&&this._prevParams&&o.execute(this._prevParams),o},_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,i){var o,a,s,u,c,l;for(r=r||this.heuristicFilter,i.clearPath(),this.list.clear(),this.list.add(e);this.list.length>0;){if(this.list.sort(this.compare),(o=this.list.shift())._visited=!0,o===t)return n.PathUtil.backtrace(t);for(c=0,l=(s=i.getNeighbors(o,this.allowDiagonal,r)).length;l>c;c++)if((u=s[c]).walkable&&(a=o._calcCost+i.distance(o,u),!u._visited||a<u._calcCost)){if(u._visited=!0,u._parent=o,u._calcCost=a,u._priority=a+i.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,i,o,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],i=n[0]-r[0],o=n[1]-r[1],a+=Math.sqrt(i*i+o*o);return a},interpolate:function(e,t,n,r){var i,o,a,s,u,c,l=Math.abs,f=[];for(i=n>e?1:-1,o=r>t?1:-1,u=(a=l(n-e))-(s=l(r-t));e!==n||t!==r;)f.push([e,t]),(c=2*u)>-s&&(u-=s,e+=i),a>c&&(u+=a,t+=o);return f},expandPath:function(e){var t,n,r,i,o,a,s=[],u=e.length;if(2>u)return s;for(o=0;u-1>o;++o)for(t=e[o],n=e[o+1],i=(r=this.interpolate(t[0],t[1],n[0],n[1])).length,a=0;i-1>a;++a)s.push(r[a]);return s.push(e[u-1]),s},smoothenPath:function(e,t){var n,r,i,o,a,s,u,c,l,f,d,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(i=(l=t[u])[0],o=l[1],f=this.interpolate(n,r,i,o),p=!1,c=1;c<f.length;++c)if(d=f[c],!e.isWalkableAt(d[0],d[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,i,o,a,s=[],u=e[0][0],c=e[0][1],l=e[1][0],f=e[1][1],d=l-u,p=f-c;for(d/=o=Math.sqrt(d*d+p*p),p/=o,s.push([u,c]),a=2;a<e.length;a++)t=l,n=f,r=d,i=p,d=(l=e[a][0])-t,p=(f=e[a][1])-n,p/=o=Math.sqrt(d*d+p*p),((d/=o)!==r||p!==i)&&s.push([t,n]);return s.push([l,f]),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 i=new THREE.Texture(null,t);return this.imageLoader.load(e,(function(e){i.image=e,i.needsUpdate=!0,n&&n(i)}),null,(function(e){r&&r(e)})),i.sourceFile=e,i}},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},i={minDistance:100,maxDistance:1e3,zoomSpeed:2,noZoom:!1};if(r=n.Tools.merge(r,e),"boolean"!=typeof t&&(i=n.Tools.merge(i,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 o=window.innerWidth/this.orthoZoom,a=window.innerHeight/this.orthoZoom;this.camera=new THREE.OrthographicCamera(o/-2,o/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=i.minDistance,this.controls.maxDistance=i.maxDistance,this.controls.zoomSpeed=i.zoomSpeed,this.controls.noZoom=i.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),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach((function(t,r){"undefined"==typeof i[r]?i[r]=t:n.isPlainObject(t)?i[r]=n.merge(e[r],t):-1===e.indexOf(t)&&i.push(t)})),i):(e&&n.isPlainObject(e)&&Object.keys(e).forEach((function(t){i[t]=e[t]})),Object.keys(t).forEach((function(r){t[r]&&n.isPlainObject(t[r])&&e[r]?i[r]=n.merge(e[r],t[r]):i[r]=t[r]})),i)},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 i=t,o=n,a=1<<r;o>i;)if(e[i]&a){--o;var s=e[i];e[i]=e[o],e[o]=s}else++i;this.radixSort(e,t,o,r-1),this.radixSort(e,o,n,r-1)}},randomizeRGB:function(e,t){var n,r,i=e.split(","),o="rgb(";for(t=this.randomInt(t),n=0;3>n;n++)0>(r=parseInt(i[n])+t)?r=0:r>255&&(r=255),o+=r+",";return(o=o.substring(0,o.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,i=window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,o=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 f={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:i},93:{code:"ContextMenu"},95:{code:"Standby"},96:{code:"Numpad0",keyCap:"0",location:o},97:{code:"Numpad1",keyCap:"1",location:o},98:{code:"Numpad2",keyCap:"2",location:o},99:{code:"Numpad3",keyCap:"3",location:o},100:{code:"Numpad4",keyCap:"4",location:o},101:{code:"Numpad5",keyCap:"5",location:o},102:{code:"Numpad6",keyCap:"6",location:o},103:{code:"Numpad7",keyCap:"7",location:o},104:{code:"Numpad8",keyCap:"8",location:o},105:{code:"Numpad9",keyCap:"9",location:o},106:{code:"NumpadMultiply",keyCap:"*",location:o},107:{code:"NumpadAdd",keyCap:"+",location:o},108:{code:"NumpadComma",keyCap:",",location:o},109:{code:"NumpadSubtract",keyCap:"-",location:o},110:{code:"NumpadDecimal",keyCap:".",location:o},111:{code:"NumpadDivide",keyCap:"/",location:o},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:o},145:{code:"ScrollLock"},160:{code:"ShiftLeft",location:r},161:{code:"ShiftRight",location:i},162:{code:"ControlLeft",location:r},163:{code:"ControlRight",location:i},164:{code:"AltLeft",location:r},165:{code:"AltRight",location:i},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(f,"moz",{59:{code:"Semicolon",keyCap:";"},61:{code:"Equal",keyCap:"="},107:{code:"Equal",keyCap:"="},109:{code:"Minus",keyCap:"-"},187:{code:"NumpadAdd",keyCap:"+",location:o},189:{code:"NumpadSubtract",keyCap:"-",location:o}}),l(f,"moz-mac",{12:{code:"NumLock",location:o},173:{code:"Minus",keyCap:"-"}}),l(f,"moz-win",{173:{code:"Minus",keyCap:"-"}}),l(f,"chrome-mac",{93:{code:"OSRight",location:i}}),l(f,"safari",{3:{code:"Enter"},25:{code:"Tab"}}),l(f,"ios",{10:{code:"Enter",location:n}}),l(f,"safari-mac",{91:{code:"OSLeft",location:r},93:{code:"OSRight",location:i},229:{code:"KeyQ",keyCap:"Q"}});var d={};"cros"===s&&(d["U+00A0"]={code:"ShiftLeft",location:r},d["U+00A1"]={code:"ShiftRight",location:i},d["U+00A2"]={code:"ControlLeft",location:r},d["U+00A3"]={code:"ControlRight",location:i},d["U+00A4"]={code:"AltLeft",location:r},d["U+00A5"]={code:"AltRight",location:i}),"chrome-mac"===c&&(d["U+0010"]={code:"ContextMenu"}),"safari-mac"===c&&(d["U+0010"]={code:"ContextMenu"}),"ios"===s&&(d["U+0010"]={code:"Function"},d["U+001C"]={code:"ArrowLeft"},d["U+001D"]={code:"ArrowRight"},d["U+001E"]={code:"ArrowUp"},d["U+001F"]={code:"ArrowDown"},d["U+0001"]={code:"Home"},d["U+0004"]={code:"End"},d["U+000B"]={code:"PageUp"},d["U+000C"]={code:"PageDown"});var p=[];p[r]={16:{code:"ShiftLeft",location:r},17:{code:"ControlLeft",location:r},18:{code:"AltLeft",location:r}},p[i]={16:{code:"ShiftRight",location:i},17:{code:"ControlRight",location:i},18:{code:"AltRight",location:i}},p[o]={13:{code:"NumpadEnter",location:o}},l(p[o],"moz",{109:{code:"NumpadSubtract",location:o},107:{code:"NumpadAdd",location:o}}),l(p[r],"moz-mac",{224:{code:"OSLeft",location:r}}),l(p[i],"moz-mac",{224:{code:"OSRight",location:i}}),l(p[i],"moz-win",{91:{code:"OSRight",location:i}}),l(p[i],"mac",{93:{code:"OSRight",location:i}}),l(p[o],"chrome-mac",{12:{code:"NumLock",location:o}}),l(p[o],"safari-mac",{12:{code:"NumLock",location:o},187:{code:"NumpadAdd",location:o},189:{code:"NumpadSubtract",location:o},190:{code:"NumpadDecimal",location:o},191:{code:"NumpadDivide",location:o}});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 i=e[r];t in i&&(n[i[t]]=i)})),n}(f,"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 d?d[e.keyIdentifier]:t in f?f[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,i=this.checkpoint;return this.sync(),n.distanceTo(r)<.1?(this.checkpoint=null,this.el.emit("navigation-end",{checkpoint:i}),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),i=n(44379),o=.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)>o||Math.abs(r)>o},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,i=new THREE.Vector3;return Math.abs(n)>o&&(i.x+=n),Math.abs(r)>o&&(i.z+=r),i},isRotationActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._lookVector;return this.getJoystick(c,e),Math.abs(e.x)>o||Math.abs(e.y)>o},updateRotation:function(e){if(!this.isRotationActive())return;const t=this.data,n=this.yaw,r=this.pitch,i=t.camera.components["look-controls"],a=i&&i.pitchObject&&i.yawObject;a&&(r.rotation.copy(i.pitchObject.rotation),n.rotation.copy(i.yawObject.rotation));const s=this._lookVector;this.getJoystick(c,s),Math.abs(s.x)<=o&&(s.x=0),Math.abs(s.y)<=o&&(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&&(i.pitchObject.rotation.copy(r.rotation),i.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 i("gamepadbuttondown",t,e.buttons[t])):!e.buttons[t].pressed&&this.buttons[t]&&this.emit(new i("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 i(e.type,e.index,e))},getGamepad:function(){const e=[],t=[];return function(n){const r=this.el.sceneEl.components["proxy-controls"],i=r&&r.isConnected()&&r.getGamepad(0);if(i)return i;e.length=0;for(let t=0;t<this.system.controllers.length;t++){const r=this.system.controllers[t],i=r?r.gamepad:null;if(e.push(i),i&&i.handedness===n)return i}const o=navigator.getGamepads?navigator.getGamepads():t;for(let e=0;e<o.length;e++){const t=o[e];if(t&&t.hand===n)return t}return e[0]||o[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,i){if(!i)return;const o=this.el,a=this.data;if(!a.enabled)return;this.updateVelocityCtrl();const s=this.velocityCtrl,u=this.velocity;if(s)if(i/1e3>.2?u.set(0,0,0):this.updateVelocity(i),a.constrainToNavMesh&&!1!==s.isNavMeshConstrained){if(u.lengthSq()<1e-5)return;e.copy(o.object3D.position),t.copy(u).multiplyScalar(i/1e3).add(e);const r=o.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),o.object3D.position.copy(n)}else o.hasAttribute("velocity")?o.setAttribute("velocity",u):(o.object3D.position.x+=u.x*i/1e3,o.object3D.position.y+=u.y*i/1e3,o.object3D.position.z+=u.z*i/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 i=this.el,o=this.velocityCtrl,a=this.velocity,s=this.data;if(o){if(!o.getVelocityDelta){if(o.getVelocity)return void a.copy(o.getVelocity());if(o.getPositionDelta)return void a.copy(o.getPositionDelta(n).multiplyScalar(1e3/n));throw new Error("Incompatible movement controls: ",o)}r=o.getVelocityDelta(n)}if(i.hasAttribute("velocity")&&!s.constrainToNavMesh&&a.copy(this.el.getAttribute("velocity")),r&&s.enabled){const n=s.camera;t.copy(n.object3D.quaternion),t.premultiply(i.object3D.quaternion),r.applyQuaternion(t);const o=r.length();s.fly?(a.copy(r),a.multiplyScalar(16.66667*this.data.speed)):(e.set(r.x,r.z),e.setLength(o*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 i=Math.abs(this.startingAxisData[1]-n[1]);Math.abs(this.startingAxisData[0]-n[0])>i?(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,i=0;t.enableNegX&&n[0]<0&&(r=-1),t.enablePosX&&n[0]>0&&(r=1),t.enablePosZ&&n[1]>0&&(i=-1),t.enableNegZ&&n[1]<0&&(i=1),Math.abs(n[0])>Math.abs(n[1])?(this.zVel=0,this.xVel=r):(this.xVel=0,this.zVel=i)}})},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,i=e.animations||(e.geometry||{}).animations||[];if(!i.length)return;const o=(a=r.clip,new RegExp("^"+a.split(/\*+/).map(n).join(".*")+"$"));var a;for(let n,s=0;n=i[s];s++)if(n.name.match(o)){const i=this.mixer.clipAction(n,e);i.enabled=!0,i.clampWhenFinished=r.clampWhenFinished,r.duration&&i.setDuration(r.duration),1!==r.timeScale&&i.setEffectiveTimeScale(r.timeScale),i.setLoop(t[r.loop],r.repetitions).fadeIn(r.crossFadeDuration).play(),this.activeActions.push(i)}},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)(),i=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=i().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 i;((i=e.material)?Array.isArray(i)?i:i.materials?i.materials:[i]:[]).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 i=[],o=[];if(n.materials.length&&(e.materials?(i=n.materials.filter((t=>!e.materials.includes(t))),o=e.materials.filter((e=>!n.materials.includes(e)))):i=n.materials),i.length&&t(r,i,this.texture,n.reflectivity),o.length&&t(r,o,null,1),e.materials&&n.reflectivity!==e.reflectivity){const i=n.materials.filter((t=>e.materials.includes(t)));i.length&&t(r,i,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,i=this.body;r.enableJumps||i.velocity.set(0,0,0),i.position.copy(n.getAttribute("position"))},step:function(){const e=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,i=new THREE.Vector3;return function(o,a){if(!a)return;let s,u,c=this.body,l=this.data,f=!1,d=-1/0,p=this.system.getContacts();a=Math.min(a,1e3*this.system.data.maxInterval),i.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)}f=c.velocity.dot(r)<-t,f&&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>d&&(d=s,i.copy(r),u=c.id===h.bi.id?h.bj:h.bi))}n.copy(e).normalize(),u&&(!l.enableJumps||n.y<.5)?(l.enableSlopes?i.y<1-t&&i.copy(this.raycastToGround(u,i)):i.set(0,1,0),e.projectOnPlane(i)):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,i=this.body.position,o=this.body.position.clone();return n=new CANNON.Ray(i,o),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,i=new THREE.Box3,o=new Map;return function(){const a=this.el,s=this.data,u=a.getObject3D("mesh"),c=[];let l;var f;u&&(o.clear(),a.object3D.getWorldPosition(e),a.object3D.getWorldScale(n),l=s.radius*(f=n,Math.max.apply(null,f.toArray())),this.els.forEach((function(n){let a,s,u,f;if(!n.isEntity)return;if(s=n.getObject3D("mesh"),!s)return;if(i.setFromObject(s).getSize(r),f=Math.max(r.x,r.y,r.z)/2,a=Math.sqrt(2*f*f),i.getCenter(t),!a)return;u=e.distanceTo(t),u<a+l&&(c.push(n),o.set(n,u))})),c.sort(((e,t)=>o.get(e)>o.get(t)?1:-1)).forEach(this.handleHit),0===c.length&&a.emit("hit",{el:null}),this.collisions.filter((e=>!o.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,i){const o=this.el,a=this.data,s=this.raycaster,u=a.speed*i/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)||[],o.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 o.emit("navigation-end");const c=o.object3D.position,l=this.path[0];t.subVectors(l,c);let f;if(t.length()<u){if(this.path.shift(),!this.path.length)return this.el.setAttribute("nav-agent",{active:!1}),void o.emit("navigation-end");n.copy(c),f=this.path[0]}else n.copy(t.setLength(u)).add(c),f=l;f.y=c.y,o.object3D.lookAt(f),s.ray.origin.copy(n),s.ray.origin.y+=1.5,s.ray.direction.y=-1;const d=s.intersectObject(this.system.getNavMesh());d.length?(t.subVectors(d[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),i=new r,o="level";e.exports=AFRAME.registerSystem("nav",{init:function(){this.navMesh=null,this.agents=new Set},setNavMeshGeometry:function(e){this.navMesh=new THREE.Mesh(e),i.setZoneData(o,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?i.findPath(e,t,o,n):null},getGroup:function(e){return this.navMesh?i.getGroup(o,e):null},getNode:function(e,t){return this.navMesh?i.getClosestNode(e,o,t,!0):null},clampStep:function(e,t,n,r,a){return this.navMesh?r?i.clampStep(e,t,r,o,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/[email protected]/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),i=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(i)},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 i,o=0,a=r.vertices.length;o<a;o++)i=r.vertices[o],this.waves.push({z:i.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,i,o=0;r=n[o];o++)i=this.waves[o],r.z=i.z+Math.sin(i.ang)*i.amp,i.ang+=i.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]))}))),i=new THREE.TubeGeometry(r,t.segments,t.radius,t.radialSegments,t.closed);n||(n={},n.material=new THREE.MeshPhongMaterial),this.mesh=new THREE.Mesh(i,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 i=n(81398);"default"in i&&(i=i.default);const o=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:o,default:[]},links:{parse:o,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:o,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 i),this.forceGraph.getGraphBbox()},emitParticle:function(){this.forceGraph||(this.forceGraph=new i);const e=this.forceGraph,t=e.emitParticle.apply(e,arguments);return t===e?this:t},d3Force:function(){this.forceGraph||(this.forceGraph=new i);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 i),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,i=n.hoverDetail?n.hoverDetail.getIntersection?n.hoverDetail.getIntersection(this.el):n.hoverDetail.intersection||void 0:void 0;let o=i?i.object:void 0;for(;o&&!o.hasOwnProperty("__graphObjType");)o=o.parent;if(o!==n.hoverObj){const e=n.hoverObj?n.hoverObj.__graphObjType:null,t=n.hoverObj?n.hoverObj.__data:null,i=o?o.__graphObjType:null,a=o?o.__data:null;e&&e!==i&&r["on"+("node"===e?"Node":"Link")+"Hover"](null,t),i&&r["on"+("node"===i?"Node":"Link")+"Hover"](a,e===i?t:null),n.hoverObj=o}this.forceGraph.tickFrame()}})},18869:function(e){"use strict";e.exports=function(e){if(e)throw e}},30932:function(e){"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!==typeof t)throw new Error("Expected character");n=r.indexOf(t);for(;-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},45403:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(67294),o=n(79374),a=r(n(90233)),s=r(n(37763)),u=r(n(96705)),c=n(88323),l=n(11487),f=n(46017),d=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 i.createElement(l.Text,null,i.createElement(l.Box,{as:"span"},"Create")," ",i.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,w=e.listStyleProps,x=e.labelStyleProps,T=e.inputStyleProps,k=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,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,["items","optionFilterFunc","itemRenderer","highlightItemBg","placeholder","label","listStyleProps","labelStyleProps","inputStyleProps","toggleButtonStyleProps","tagStyleProps","selectedIconProps","listItemStyleProps","onCreateItem","icon","hideToggleButton","disableCreateItem","createItemRenderer","renderCustomInput"]),B=i.useState(!1),H=B[0],z=B[1],U=i.useState(""),V=U[0],W=U[1],G=i.useState(t),K=G[0],q=G[1],Z=i.useRef(null),$=o.useMultipleSelection(F),Y=$.getSelectedItemProps,X=$.getDropdownProps,Q=$.addSelectedItem,J=$.removeSelectedItem,ee=$.selectedItems,te=ee.map((function(e){return e.value})),ne=o.useCombobox({inputValue:V,selectedItem:void 0,items:K,onInputValueChange:function(e){var n=e.selectedItem,i=r(t,e.inputValue||"");H&&i.length>0&&z(!1),n||q(i)},stateReducer:function(e,t){var n=t.changes;switch(t.type){case o.useCombobox.stateChangeTypes.InputBlur:return m({},n,{isOpen:!1});case o.useCombobox.stateChangeTypes.InputKeyDownEnter:case o.useCombobox.stateChangeTypes.ItemClick:return m({},n,{highlightedIndex:e.highlightedIndex,inputValue:V,isOpen:!0});case o.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 o.useCombobox.stateChangeTypes.InputChange:W(n||"");break;case o.useCombobox.stateChangeTypes.InputKeyDownEnter:case o.useCombobox.stateChangeTypes.ItemClick:r&&(te.includes(r.value)?J(r):S&&H?(S(r),z(!1),q(t),W("")):Q(r),de(null))}}}),re=ne.isOpen,ie=ne.getToggleButtonProps,oe=ne.getLabelProps,ae=ne.getMenuProps,se=ne.getInputProps,ue=ne.getComboboxProps,ce=ne.highlightedIndex,le=ne.getItemProps,fe=ne.openMenu,de=ne.selectItem,pe=ne.setHighlightedIndex;return i.useEffect((function(){0!==K.length||N||(z(!0),q([{label:""+V,value:V}]),pe(0))}),[K,z,pe,V,N]),u((function(){q(t)}),[t]),i.createElement(l.Stack,null,i.createElement(c.FormLabel,Object.assign({},m({},oe({}),x)),_),ee&&i.createElement(l.Stack,{spacing:2,isInline:!0,flexWrap:"wrap"},ee.map((function(e,t){return i.createElement(h.Tag,Object.assign({mb:1},O,{key:"selected-item-"+t},Y({selectedItem:e,index:t})),i.createElement(h.TagLabel,null,e.label),i.createElement(h.TagCloseButton,{onClick:function(t){t.stopPropagation(),J(e)},"aria-label":"Remove menu selection badge"}))}))),i.createElement(l.Stack,Object.assign({isInline:!0},ue()),j?j(m({},T,se(X({placeholder:E,onClick:re?function(){}:fe,onFocus:re?function(){}:fe,ref:Z}))),m({},k,ie(),{ariaLabel:"toggle menu",hideToggleButton:I})):i.createElement(i.Fragment,null,i.createElement(d.Input,Object.assign({},T,se(X({placeholder:E,onClick:re?function(){}:fe,onFocus:re?function(){}:fe,ref:Z})))),!I&&i.createElement(f.Button,Object.assign({},k,ie(),{"aria-label":"toggle menu"}),i.createElement(p.ArrowDownIcon,null)))),i.createElement(l.Box,{pb:4,mb:4},i.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)"},w,ae()),re&&K.map((function(e,t){return i.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):i.createElement(l.Box,{display:"inline-flex",alignItems:"center"},te.includes(e.value)&&i.createElement(l.ListIcon,Object.assign({as:M||p.CheckCircleIcon,color:"green.500",role:"img",display:"inline","aria-label":"Selected"},C)),a?a(e):i.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||""),i=r.indexOf(","),o=0,a=!1;for(;!a;)-1===i&&(i=r.length,a=!0),!(t=r.slice(o,i).trim())&&a||n.push(t),o=i+1,i=r.indexOf(",",o);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(i+","+r).trim()}},20640:function(e,t,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,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 o=i[t.format]||i.default;window.clipboardData.setData(o,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(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),o=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(o,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 o},offset:function(){return f},shrink:function(){return s},withScroll:function(){return d}});var r="Invariant failed";var i=function(e,t){if(!e)throw new Error(r)},o=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/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,i=e.border,c=void 0===i?u:i,l=e.padding,f=void 0===l?u:l,d=o(a(t,r)),p=o(s(t,c)),h=o(s(p,f));return{marginBox:d,borderBox:o(t),paddingBox:p,contentBox:h,margin:r,border:c,padding:f}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&i(!1),n},f=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,u=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return c({borderBox:u,border:o,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),f(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)},i={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:i})},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,i,o,a,s;function u(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},53879:function(e,t,n){var r=n(87236),i=n(6189),o={float:"cssFloat"},a=n(93379);function s(e,t,n){var s=o[t];if("undefined"===typeof s&&(s=function(e){var t=i(e),n=r(t);return o[t]=o[e]=o[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||"")}},79374:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K},resetIdCounter:function(){return T},useCombobox:function(){return Ne},useMultipleSelection:function(){return Ge},useSelect:function(){return Te}});var r=n(63366),i=n(87462),o=n(97326),a=n(94578),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 f(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function d(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return f(n.overflowY,t)||f(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,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i: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,i=t.block,o=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,f=[],h=e;l(h)&&u(h);){if((h=h.parentElement)===c){f.push(h);break}null!=h&&h===document.body&&d(h)&&!d(document.documentElement)||null!=h&&d(h,s)&&f.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,w=b.top,x=b.right,T=b.bottom,k=b.left,O="start"===i||"nearest"===i?w:"end"===i?T:w+E/2,C="center"===o?k+_/2:"end"===o?x:k,A=[],S=0;S<f.length;S++){var M=f[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&&w>=0&&k>=0&&T<=v&&x<=m&&w>=N&&T<=L&&k>=j&&x<=R)return A;var F=getComputedStyle(M),B=parseInt(F.borderLeftWidth,10),H=parseInt(F.borderTopWidth,10),z=parseInt(F.borderRightWidth,10),U=parseInt(F.borderBottomWidth,10),V=0,W=0,G="offsetWidth"in M?M.offsetWidth-M.clientWidth-B-z:0,K="offsetHeight"in M?M.offsetHeight-M.clientHeight-H-U:0;if(c===M)V="start"===i?O:"end"===i?O-v:"nearest"===i?p(y,y+v,v,H,U,y+O,y+O+E,E):O-v/2,W="start"===o?C:"center"===o?C-m/2:"end"===o?C-m:p(g,g+m,m,B,z,g+C,g+C+_,_),V=Math.max(0,V+y),W=Math.max(0,W+g);else{V="start"===i?O-N-H:"end"===i?O-L+U+K:"nearest"===i?p(N,L,I,H,U+K,O,O+E,E):O-(N+I/2)+K/2,W="start"===o?C-j-B:"center"===o?C-(j+P/2)+G/2:"end"===o?C-R+z+G:p(j,R,P,B,z+G,C,C+_,_);var q=M.scrollLeft,Z=M.scrollTop;O+=Z-(V=Math.max(0,Math.min(Z+V,M.scrollHeight-I+K))),C+=q-(W=Math.max(0,Math.min(q+W,M.scrollWidth-P+G)))}A.push({el:M,top:V,left:W})}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 i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}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),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function w(){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 x(){return String(m++)}function T(){m=0}function k(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,i){if(void 0===i&&(i=!0),0===n)return-1;var o=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var a=t+e;a<0?a=i?o:0:a>o&&(a=i?0:o);var s=R(e,a,n,r,i);return-1===s?t>=n?-1:t:s}function R(e,t,n,r,i){var o=r(t);if(!o||!o.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 i?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}),z=["refKey","ref"],U=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],V=["onKeyDown","onBlur","onChange","onInput","onChangeText"],W=["refKey","ref"],G=["onMouseMove","onMouseDown","onClick","onPress","index","item"],K=function(){var e=function(e){function t(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+x(),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((0,i.Z)({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((0,i.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var i=n.items[e];null!=i&&n.selectItem(i,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,a={},s="function"===typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,(0,i.Z)({},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&&(o=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,(0,i.Z)({},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!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=(0,r.Z)(a,z),f=(void 0===t?{}:t).suppressRefError,d=void 0!==f&&f;n.getRootProps.called=!0,n.getRootProps.refKey=u,n.getRootProps.suppressRefError=d;var p=n.getState().isOpen;return(0,i.Z)(((o={})[u]=w(c,n.rootRef),o.role="combobox",o["aria-expanded"]=p,o["aria-haspopup"]="listbox",o["aria-owns"]=p?n.menuId:null,o["aria-labelledby"]=n.labelId,o),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 i=this.items[r],o=this.getItemNodeFromIndex(r);if(null==i||o&&o.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset((0,i.Z)({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=(0,i.Z)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=(0,i.Z)({},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 i=R(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(i,{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 i=R(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(i,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,u=t.onBlur,c=(0,r.Z)(t,U),l=n.getState().isOpen,f={onClick:_(o,n.buttonHandleClick),onKeyDown:_(a,n.buttonHandleKeyDown),onKeyUp:_(s,n.buttonHandleKeyUp),onBlur:_(u,n.buttonHandleBlur)},d=c.disabled?{}:f;return(0,i.Z)({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},d,c)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=P(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call((0,o.Z)(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(0,i.Z)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,o=t.onKeyDown,a=t.onBlur,s=t.onChange,u=t.onInput;t.onChangeText;var c=(0,r.Z)(t,V),l={};var f,d=n.getState(),p=d.inputValue,h=d.isOpen,m=d.highlightedIndex;c.disabled||((f={}).onChange=_(s,u,n.inputHandleChange),f.onKeyDown=_(o,n.inputHandleKeyDown),f.onBlur=_(a,n.inputHandleBlur),l=f);return(0,i.Z)({"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((0,o.Z)(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 o,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=(0,r.Z)(a,W),f=(void 0===t?{}:t).suppressRefError,d=void 0!==f&&f;return n.getMenuProps.called=!0,n.getMenuProps.refKey=u,n.getMenuProps.suppressRefError=d,(0,i.Z)(((o={})[u]=w(c,n.menuRef),o.role="listbox",o["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,o.id=n.menuId,o),l)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,a=o.onMouseMove,s=o.onMouseDown,u=o.onClick;o.onPress;var c=o.index,l=o.item,f=void 0===l?void 0:l,d=(0,r.Z)(o,G);void 0===c?(n.items.push(f),c=n.items.indexOf(f)):n.items[c]=f;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=d.disabled?{onMouseDown:h.onMouseDown}:h;return(0,i.Z)({id:n.getItemId(c),role:"option","aria-selected":n.getState().highlightedIndex===c},m,d)},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(0,i.Z)({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(0,i.Z)({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),i=r.isOpen,o=r.highlightedIndex;i&&n.getItemCount()>0&&"number"===typeof o&&n.setHighlightedIndex(o,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(),o=n.props.getA11yStatusMessage((0,i.Z)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,F(o,n.props.environment.document)}),200);var a=n.props,s=a.defaultHighlightedIndex,u=a.initialHighlightedIndex,c=void 0===u?s:u,l=a.defaultIsOpen,f=a.initialIsOpen,d=void 0===f?l:f,p=a.initialInputValue,h=void 0===p?"":p,m=a.initialSelectedItem,g=void 0===m?null:m,y=n.getState({highlightedIndex:c,isOpen:d,inputValue:h,selectedItem:g});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}(0,a.Z)(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},n.getState=function(e){return void 0===e&&(e=this.state),D(e,this.props)},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),i=this.getState().highlightedIndex;if(r>0){var o=N(e,i,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(o,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,i=e.isOpen,o=this.props.itemToString,a=this.id,s=this.getRootProps,u=this.getToggleButtonProps,c=this.getLabelProps,l=this.getMenuProps,f=this.getInputProps,d=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:f,getItemProps:d,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:o,id:a,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:r}},n.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},i=function(){e.isTouchMove=!0},o=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",i),a.addEventListener("touchend",o),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",i),a.removeEventListener("touchend",o)}},n.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},n.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()},n.componentWillUnmount=function(){this.cleanup()},n.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},t}(c.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:k,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"],Z={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function $(e,t,n){var r=e.props,o=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var o=t.props,a=t.type,s="on"+te(e)+"Change";o[s]&&void 0!==r[e]&&r[e]!==n[e]&&o[s]((0,i.Z)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange((0,i.Z)({type:o},a))}var Y=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-"+x():t,r=e.labelId,i=e.menuId,o=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:o||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)(),o=(0,c.useRef)(),a=(0,c.useCallback)((function(t,n){o.current=n,t=D(t,n.props);var r=e(t,n);return n.props.stateReducer(t,(0,i.Z)({},n,{changes:r}))}),[e]),s=(0,c.useReducer)(a,t),u=s[0],l=s[1],f=ne(n),d=(0,c.useCallback)((function(e){return l((0,i.Z)({props:f.current},e))}),[f]),p=o.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,d]}function ie(e,t,n){var r=re(e,t,n),i=r[0],o=r[1];return[D(i,n),o]}var oe={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=Z);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=Z),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"),i=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function ce(e,t,n,r){var i=e.items,o=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return 0===i.length?-1:void 0!==o&&u===o?o:void 0!==a?a:s?0===n?i.indexOf(s):N(n,i.indexOf(s),i.length,r,!1):0===n?-1:n<0?i.length-1:0}function le(e,t,n,r){var i=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((function(){var o=function(){i.current.isMouseDown=!0},a=function(o){i.current.isMouseDown=!1,e&&!L(o.target,t.map((function(e){return e.current})),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(o){!e||i.current.isTouchMove||L(o.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}),[e,n]),i}var fe=function(){return g};function de(e,t,n){var o=n.isInitialMount,a=n.highlightedIndex,s=n.items,u=n.environment,l=(0,r.Z)(n,q);(0,c.useEffect)((function(){o||Y((function(){return e((0,i.Z)({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,i=e.getItemNodeFromIndex,o=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(i(t),o))}),[t]),s}var he=g;function me(e,t,n){var r,o=t.type,a=t.props;switch(o){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(0,i.Z)({},e,r)}function ve(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=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&&i(c).toLowerCase().startsWith(a)){var l=o(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)({},oe),{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,o=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case 15:var s=t.key,u=""+e.inputValue+s,c=ve({keysSoFar:u,highlightedIndex:e.selectedItem?o.items.indexOf(e.selectedItem):-1,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=(0,i.Z)({inputValue:u},c>=0&&{selectedItem:o.items[c]});break;case 13:n={highlightedIndex:ce(o,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ce(o,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=(0,i.Z)({isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:R(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:R(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,f=""+e.inputValue+l,d=ve({keysSoFar:f,highlightedIndex:e.highlightedIndex,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=(0,i.Z)({inputValue:f},d>=0&&{highlightedIndex:d});break;case 0:n={highlightedIndex:N(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 1:n={highlightedIndex:N(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return me(e,t,be)}return(0,i.Z)({},e,n)}var _e=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],we=["onClick","onKeyDown","refKey","ref"],xe=["item","index","onMouseMove","onClick","refKey","ref"];function Te(e){void 0===e&&(e={}),ye(e,Te);var t=(0,i.Z)({},ge,e),n=t.items,o=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,u=t.defaultIsOpen,l=t.itemToString,f=t.getA11ySelectionMessage,d=t.getA11yStatusMessage,p=ie(Ee,ue(t),t),h=p[0],m=p[1],v=h.isOpen,g=h.highlightedIndex,y=h.selectedItem,b=h.inputValue,x=(0,c.useRef)(null),T=(0,c.useRef)(null),k=(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 k.current[A.getItemId(e)]}),[A]);de(d,[v,g,b,n],(0,i.Z)({isInitialMount:M.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h)),de(f,[y],(0,i.Z)({isInitialMount:M.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h));var N=pe({menuElement:T.current,highlightedIndex:g,isOpen:v,itemRefs:k,scrollIntoView:o,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)&&T.current&&T.current.focus():v?T.current&&T.current.focus():a.document.activeElement===T.current&&x.current&&(O.current=!1,x.current.focus())}),[v]),(0,c.useEffect)((function(){M.current||(S.current=n.length)}));var R=le(v,[T,x],a,(function(){m({type:8})})),L=fe();(0,c.useEffect)((function(){M.current=!1}),[]),(0,c.useEffect)((function(){v||(k.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]),z=(0,c.useCallback)((function(){m({type:17})}),[m]),U=(0,c.useCallback)((function(e){m({type:19,highlightedIndex:e})}),[m]),V=(0,c.useCallback)((function(e){m({type:20,selectedItem:e})}),[m]),W=(0,c.useCallback)((function(){m({type:22})}),[m]),G=(0,c.useCallback)((function(e){m({type:21,inputValue:e})}),[m]),K=(0,c.useCallback)((function(e){return(0,i.Z)({id:A.labelId,htmlFor:A.toggleButtonId},e)}),[A]),q=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,u=void 0===s?"ref":s,c=o.onKeyDown,l=o.onBlur,f=o.ref,d=(0,r.Z)(o,_e),p=(void 0===t?{}:t).suppressRefError,h=void 0!==p&&p,v=D.current.state;return L("getMenuProps",h,u,T),(0,i.Z)(((n={})[u]=w(f,(function(e){T.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}))},d)}),[m,D,F,R,L,A,I]);return{getToggleButtonProps:(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onClick,s=o.onKeyDown,u=o.refKey,c=void 0===u?"ref":u,l=o.ref,f=(0,r.Z)(o,we),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d,h=(0,i.Z)(((n={})[c]=w(l,(function(e){x.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),f);return f.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,x),h}),[m,D,j,L,A,I]),getLabelProps:K,getMenuProps:q,getItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.item,a=n.index,s=n.onMouseMove,u=n.onClick,c=n.refKey,l=void 0===c?"ref":c,f=n.ref,d=(0,r.Z)(n,xe),p=D.current,h=p.state,v=p.props,g=J(a,o,v.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");var y=(0,i.Z)(((t={role:"option","aria-selected":""+(g===h.highlightedIndex),id:A.getItemId(g)})[l]=w(f,(function(e){e&&(k.current[A.getItemId(g)]=e)})),t),d);return d.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:z,closeMenu:H,setHighlightedIndex:U,selectItem:V,reset:W,setInputValue:G,highlightedIndex:g,isOpen:v,selectedItem:y,inputValue:b}}Te.stateChangeTypes=be;var ke=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=(0,i.Z)({},oe,{getA11yStatusMessage:k,circularNavigation:!0});function Ae(e,t){var n,r=t.type,o=t.props,a=t.shiftKey;switch(r){case 10:n={isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),selectedItem:o.items[t.index],inputValue:o.itemToString(o.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:N(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ce(o,e,1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:N(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ce(o,e,-1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 5:n=(0,i.Z)({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex],isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 2:n=(0,i.Z)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:R(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:R(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=(0,i.Z)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:o.items[e.highlightedIndex],inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:ae(o,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:o.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return me(e,t,ke)}return(0,i.Z)({},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=(0,i.Z)({},Ce,e),n=t.initialIsOpen,o=t.defaultIsOpen,a=t.items,s=t.scrollIntoView,u=t.environment,l=t.getA11yStatusMessage,f=t.getA11ySelectionMessage,d=t.itemToString,p=function(e,t,n){var r=(0,c.useRef)(),i=re(e,t,n),o=i[0],a=i[1];return(0,c.useEffect)((function(){I(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:19,inputValue:n.itemToString(n.selectedItem)}),r.current=o.selectedItem===r.current?n.selectedItem:o.selectedItem)})),[D(o,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)),(0,i.Z)({},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),x=(0,c.useRef)({}),T=(0,c.useRef)(null),k=(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 x.current[A.getItemId(e)]}),[A]);de(l,[v,g,b,a],(0,i.Z)({isInitialMount:C.current,previousResultCount:S.current,items:a,environment:u,itemToString:d},h)),de(f,[y],(0,i.Z)({isInitialMount:C.current,previousResultCount:S.current,items:a,environment:u,itemToString:d},h));var R=pe({menuElement:E.current,highlightedIndex:g,isOpen:v,itemRefs:x,scrollIntoView:s,getItemNodeFromIndex:N});he({isInitialMount:C.current,props:t,state:h}),(0,c.useEffect)((function(){(n||o||v)&&T.current&&T.current.focus()}),[]),(0,c.useEffect)((function(){C.current||(S.current=a.length)}));var L=le(v,[O,E,k],u,(function(){m({type:7,selectItem:!1})})),j=fe();(0,c.useEffect)((function(){C.current=!1}),[]),(0,c.useEffect)((function(){v||(x.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(0,i.Z)({id:A.labelId,htmlFor:A.inputId},e)}),[A]),H=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,u=void 0===s?"ref":s,c=o.ref,l=(0,r.Z)(o,Se),f=(void 0===t?{}:t).suppressRefError;return j("getMenuProps",void 0!==f&&f,u,E),(0,i.Z)(((n={})[u]=w(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]),z=(0,c.useCallback)((function(e){var t,n,o=void 0===e?{}:e,a=o.item,s=o.index,u=o.refKey,c=void 0===u?"ref":u,l=o.ref,f=o.onMouseMove,d=o.onClick;o.onPress;var p=(0,r.Z)(o,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=d;return(0,i.Z)(((t={})[c]=w(l,(function(e){e&&(x.current[A.getItemId(y)]=e)})),t.role="option",t["aria-selected"]=""+(y===g.highlightedIndex),t.id=A.getItemId(y),t),!p.disabled&&((n={onMouseMove:_(f,(function(){s!==g.highlightedIndex&&(R.current=!1,m({type:9,index:s}))}))}).onClick=_(b,(function(){m({type:10,index:s}),T.current&&T.current.focus()})),n),p)}),[m,M,R,A]),U=(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,u=n.ref,c=(0,r.Z)(n,De);return(0,i.Z)(((t={})[s]=w(u,(function(e){k.current=e})),t.id=A.toggleButtonId,t.tabIndex=-1,t),!c.disabled&&(0,i.Z)({},{onClick:_(o,(function(){m({type:11}),!M.current.state.isOpen&&T.current&&T.current.focus()}))}),c)}),[m,M,A]),V=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onKeyDown,s=o.onChange,u=o.onInput,c=o.onBlur;o.onChangeText;var l=o.refKey,f=void 0===l?"ref":l,d=o.ref,p=(0,r.Z)(o,Ie),h=(void 0===t?{}:t).suppressRefError;j("getInputProps",void 0!==h&&h,f,T);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(0,i.Z)(((n={})[f]=w(d,(function(e){T.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]),W=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.refKey,s=void 0===a?"ref":a,u=o.ref,c=(0,r.Z)(o,Pe),l=(void 0===t?{}:t).suppressRefError;return j("getComboboxProps",void 0!==l&&l,s,O),(0,i.Z)(((n={})[s]=w(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]),G=(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]),Z=(0,c.useCallback)((function(e){m({type:15,highlightedIndex:e})}),[m]),$=(0,c.useCallback)((function(e){m({type:16,selectedItem:e})}),[m]);return{getItemProps:z,getLabelProps:B,getMenuProps:H,getInputProps:V,getComboboxProps:W,getToggleButtonProps:U,toggleMenu:G,openMenu:q,closeMenu:K,setHighlightedIndex:Z,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=ke;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:oe.itemToString,stateReducer:oe.stateReducer,environment:oe.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},He=g;var ze=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 Ue(e,t){var n,r=t.type,o=t.index,a=t.props,s=t.selectedItem,u=e.activeIndex,c=e.selectedItems;switch(r){case 0:n={activeIndex:o};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=(0,i.Z)({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 f=u,d=c.indexOf(s);1===c.length?f=-1:d===c.length-1&&(f=c.length-2),n=(0,i.Z)({selectedItems:[].concat(c.slice(0,d),c.slice(d+1))},{activeIndex:f});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(0,i.Z)({},e,n)}var Ve=["refKey","ref","onClick","onKeyDown","selectedItem","index"],We=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function Ge(e){void 0===e&&(e={}),He(e,Ge);var t=(0,i.Z)({},Be,e),n=t.getA11yRemovalMessage,o=t.itemToString,a=t.environment,s=t.keyNavigationNext,u=t.keyNavigationPrevious,l=ie(Ue,function(e){return{activeIndex:Le(e,"activeIndex"),selectedItems:Le(e,"selectedItems")}}(t),t),f=l[0],d=l[1],p=f.activeIndex,h=f.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:f,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:o,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:f});var E=fe();(0,c.useEffect)((function(){m.current=!1}),[]);var x=(0,c.useMemo)((function(){var e;return(e={})[u]=function(){d({type:4})},e[s]=function(){d({type:3})},e.Delete=function(){d({type:1})},e.Backspace=function(){d({type:2})},e}),[d,s,u]),T=(0,c.useMemo)((function(){var e;return(e={})[u]=function(e){Fe(e)&&d({type:5})},e.Backspace=function(e){Fe(e)&&d({type:6})},e}),[d,u]);return{getSelectedItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.refKey,a=void 0===o?"ref":o,s=n.ref,u=n.onClick,c=n.onKeyDown,l=n.selectedItem,f=n.index,p=(0,r.Z)(n,Ve),h=b.current.state;if(J(f,l,h.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return(0,i.Z)(((t={})[a]=w(s,(function(e){e&&y.current.push(e)})),t.tabIndex=f===h.activeIndex?0:-1,t.onClick=_(u,(function(){d({type:0,index:f})})),t.onKeyDown=_(c,(function(e){var t=P(e);t&&x[t]&&x[t](e)})),t),p)}),[d,b,x]),getDropdownProps:(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.refKey,s=void 0===a?"ref":a,u=o.ref,c=o.onKeyDown,l=o.onClick,f=o.preventKeyAction,p=void 0!==f&&f,h=(0,r.Z)(o,We),m=(void 0===t?{}:t).suppressRefError;E("getDropdownProps",void 0!==m&&m,s,v);return(0,i.Z)(((n={})[s]=w(u,(function(e){e&&(v.current=e)})),n),!p&&{onKeyDown:_(c,(function(e){var t=P(e);t&&T[t]&&T[t](e)})),onClick:_(l,(function(){d({type:7})}))},h)}),[d,T,E]),addSelectedItem:(0,c.useCallback)((function(e){d({type:8,selectedItem:e})}),[d]),removeSelectedItem:(0,c.useCallback)((function(e){d({type:9,selectedItem:e})}),[d]),setSelectedItems:(0,c.useCallback)((function(e){d({type:10,selectedItems:e})}),[d]),setActiveIndex:(0,c.useCallback)((function(e){d({type:11,activeIndex:e})}),[d]),reset:(0,c.useCallback)((function(){d({type:12})}),[d]),selectedItems:h,activeIndex:p}}Ge.stateChangeTypes=ze},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=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,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)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(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,l,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=u(f,n),f!==(i=u(t,n))&&(h&&i&&(a(i)||(c=o(i)))?(c?(c=!1,l=r&&o(r)?r:[]):l=r&&a(r)?r:{},s(f,{name:n,newValue:e(h,l,i)})):"undefined"!==typeof i&&s(f,{name:n,newValue:i}));return f}},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,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))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=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},53316:function(e){function t(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function r(e,t,n,r,i){return n.bind(t,e,r,i)}function i(e,i){return r(e,this,1===e.length?t:n,i.cache.create(),i.serializer)}function o(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},21102:function(e,t,n){"use strict";var r=n(46291),i=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=i,i.eval=o(EvalError),i.range=o(RangeError),i.reference=o(ReferenceError),i.syntax=o(SyntaxError),i.type=o(TypeError),i.uri=o(URIError),i.create=o},46291:function(e){!function(){var t;function n(e){for(var t,n,r,i,o=1,a=[].slice.call(arguments),s=0,u=e.length,c="",l=!1,f=!1,d=function(){return a[o++]},p=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s<u;++s)if(t=e[s],l)switch(l=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,t=e[s+=2]):f=!0,i=p(),t){case"b":c+=parseInt(d(),10).toString(2);break;case"c":c+="string"===typeof(n=d())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(d(),10);break;case"f":r=String(parseFloat(d()).toFixed(i||6)),c+=f?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(d());break;case"o":c+="0"+parseInt(d(),10).toString(8);break;case"s":c+=d();break;case"x":c+="0x"+parseInt(d(),10).toString(16);break;case"X":c+="0x"+parseInt(d(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?l=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!==typeof console&&"function"===typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},53869:function(e,t,n){"use strict";n.d(t,{M:function(){return h}});var r=n(81439),i=n(67294),o=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,o=e.onExitComplete,u=e.custom,l=e.presenceAffectsLayout,d=(0,s.h)(f),p=(0,s.h)(c),h=(0,i.useMemo)((function(){return{id:p,initial:n,isPresent:r,custom:u,onExitComplete:function(e){d.set(e,!0);var t=!0;d.forEach((function(e){e||(t=!1)})),t&&(null===o||void 0===o||o())},register:function(e){return d.set(e,!1),function(){return d.delete(e)}}}}),l?void 0:[r]);return(0,i.useMemo)((function(){d.forEach((function(e,t){return d.set(t,!1)}))}),[r]),i.useEffect((function(){!r&&!d.size&&(null===o||void 0===o||o())}),[r]),i.createElement(a.O.Provider,{value:h},t)};function f(){return new Map}var d=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,f=e.presenceAffectsLayout,h=void 0===f||f,m=function(){var e=(0,i.useRef)(!1),t=(0,r.CR)((0,i.useState)(0),2),n=t[0],a=t[1];return(0,o.z)((function(){return e.current=!0})),(0,i.useCallback)((function(){!e.current&&a(n+1)}),[n])}(),v=(0,i.useContext)(d.WH);(0,d.Md)(v)&&(m=v.forceUpdate);var g=(0,i.useRef)(!0),y=function(e){var t=[];return i.Children.forEach(e,(function(e){(0,i.isValidElement)(e)&&t.push(e)})),t}(t),b=(0,i.useRef)(y),E=(0,i.useRef)(new Map).current,_=(0,i.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,i.createElement(i.Fragment,null,y.map((function(e){return i.createElement(l,{key:p(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:h},e)})));for(var w=(0,r.ev)([],(0,r.CR)(y)),x=b.current.map(p),T=y.map(p),k=x.length,O=0;O<k;O++){var C=x[O];-1===T.indexOf(C)?_.add(C):_.delete(C)}return c&&_.size&&(w=[]),_.forEach((function(e){if(-1===T.indexOf(e)){var t=E.get(e);if(t){var r=x.indexOf(e);w.splice(r,0,i.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))}}})),w=w.map((function(e){var t=e.key;return _.has(t)?e:i.createElement(l,{key:p(e),isPresent:!0,presenceAffectsLayout:h},e)})),b.current=w,i.createElement(i.Fragment,null,_.size?w:w.map((function(e){return(0,i.cloneElement)(e)})))}},69283:function(e,t,n){"use strict";n.d(t,{EN:function(){return s},oO:function(){return a}});var r=n(67294),i=n(8626),o=n(45930);function a(){var e=(0,r.useContext)(i.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,o=e.register,a=l();(0,r.useEffect)((function(){return o(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,o.h)(c)}},7646:function(e,t,n){"use strict";var r,i;n.d(t,{z:function(){return r},c:function(){return i}}),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"}(i||(i={}))},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),i=n(81439),o=n(9839),a=n(58839),s=n(27565),u=n(519),c=n(7646),l={layoutReady:function(e){return e.notifyLayoutReady()}};function f(){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,f=n.parent;(0,s.U)((function(t,n){var s=Array.from(e).sort(u._),l=f?(0,a.kv)(f):[];n((function(){(0,i.ev)((0,i.ev)([],(0,i.CR)(l)),(0,i.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(){o.iW.preRender(),o.iW.render()})),t((function(){o.ZP.postRender((function(){return s.forEach(d)})),e.clear()}))})),(0,s.R)()}}}function d(e){e.prevViewportBox=e.projection.target}var p=(0,r.createContext)(f()),h=(0,r.createContext)(f());function m(e){return!!e.forceUpdate}},39629:function(e,t,n){"use strict";n.d(t,{E:function(){return wo}});var r=n(81439),i=n(67294),o=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},a={measureLayout:o(["layout","layoutId","drag","_layoutResetTransform"]),animation:o(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:o(["exit"]),drag:o(["drag","dragControls"]),focus:o(["whileFocus"]),hover:o(["whileHover","onHoverStart","onHoverEnd"]),tap:o(["whileTap","onTap","onTapStart","onTapCancel"]),pan:o(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:o(["layout","layoutId"])};var s=(0,i.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var l=(0,i.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),f=(0,i.createContext)({});var d=n(8626),p=n(69283),h=(0,i.createContext)(null),m="undefined"!==typeof window,v=m?i.useLayoutEffect:i.useEffect;function g(e,t,n,o){var a=(0,i.useContext)(l),u=(0,i.useContext)(s),c=(0,i.useContext)(f).visualElement,m=(0,i.useContext)(d.O),g=function(e){var t=e.layoutId,n=(0,i.useContext)(h);return n&&void 0!==t?n+"-"+t:t}(n),y=(0,i.useRef)(void 0);o||(o=u.renderer),!y.current&&o&&(y.current=o(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,i.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,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"string"===typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"===typeof t?t(null!==n&&void 0!==n?n:e.custom,r,i):t}function w(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 x(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 T(e){return Boolean(x(e)||e.variants)}function k(e,t){var n=function(e,t){if(x(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,i.useContext)(f)),r=n.initial,o=n.animate;return(0,i.useMemo)((function(){return{initial:r,animate:o}}),t?[O(r),O(o)]:[])}function O(e){return Array.isArray(e)?e.join(" "):e}function C(e){var t=e.preloadedFeatures,n=e.createVisualElement,o=e.useRender,d=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,i.forwardRef)((function(e,t){var h=(0,i.useContext)(l).isStatic,v=null,b=k(e,h),E=d(e,h);return!h&&m&&(b.visualElement=g(p,E,e,n),v=function(e,t,n){var o=[];if((0,i.useContext)(s),!t)return null;for(var l=0;l<c;l++){var f=u[l],d=a[f],p=d.isEnabled,h=d.Component;p(e)&&h&&o.push(i.createElement(h,(0,r.pi)({key:f},e,{visualElement:t})))}return o}(e,b.visualElement)),i.createElement(i.Fragment,null,i.createElement(f.Provider,{value:b},o(p,e,function(e,t,n){return(0,i.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.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},z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function U(e){return e.startsWith("--")}var V=function(e,t){return t&&"number"===typeof e?t.transform(e):e};var W=function(){return(W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;Object.create;var G=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,Z=/(#[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 Y(e){return"string"===typeof e}var X=function(e){return{test:function(t){return Y(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=W(W({},J),{parse:function(e){return J.parse(e)/100},transform:function(e){return J.transform(100*e)}}),ie={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},oe=W(W({},ie),{transform:G(0,1)}),ae=W(W({},ie),{default:1}),se=(0,r.pi)((0,r.pi)({},ie),{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:oe,originX:re,originY:re,originZ:ee,zIndex:se,fillOpacity:oe,strokeOpacity:oe,numOctaves:se};function ce(e,t,n,r,i,o,a,s){var u,c=e.style,l=e.vars,f=e.transform,d=e.transformKeys,p=e.transformOrigin;d.length=0;var h=!1,m=!1,v=!0;for(var g in t){var y=t[g];if(U(g))l[g]=y;else{var b=ue[g],E=V(y,b);if(L(g)){if(h=!0,f[g]=E,d.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),w=D[g].applyTo;if(w)for(var x=w.length,T=0;T<x;T++)c[w[T]]=_;else c[g]=_}else c[g]=E}}r&&n&&a&&s?(c.transform=a(r.deltaFinal,r.treeScale,h?f:void 0),o&&(c.transform=o(f,c.transform)),c.transformOrigin=s(r)):(h&&(c.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";o.sort(N);for(var f=!1,d=o.length,p=0;p<d;p++){var h=o[p];l+=(z[h]||h)+"("+i[h]+") ","z"===h&&(f=!0)}return!f&&s?l+="translateZ(0)":l=l.trim(),r?l=r(i,n?"":l):c&&n&&(l="none"),l}(e,i,v,o)),m&&(c.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ;return n+" "+i+" "+(void 0===o?0:o)}(p)))}var le=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function fe(e,t,n){for(var r in t)H(t[r])||B(r,n)||(e[r]=t[r])}function de(e,t,n){var o={};return fe(o,e.style||{},e),Object.assign(o,function(e,t,n){var o=e.transformTemplate;return(0,i.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ce(e,t,void 0,void 0,{enableHardwareAcceleration:!n},o);var i=e.vars,a=e.style;return(0,r.pi)((0,r.pi)({},i),a)}),[t])}(e,t,n)),e.transformValues&&(o=e.transformValues(o)),o}function pe(e,t,n){var r={},i=de(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=i,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(xo){}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 we(e,t,n,i,o,a,s,u){var c=t.attrX,l=t.attrY,f=t.originX,d=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,i,o,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!==f||void 0!==d||b.transform)&&(b.transformOrigin=function(e,t,n){return ye(t,e.x,e.width)+" "+ye(n,e.y,e.height)}(E,void 0!==f?f:.5,void 0!==d?d:.5)),void 0!==c&&(y.x=c),void 0!==l&&(y.y=l),void 0!==_&&void 0!==p&&function(e,t,n,r,i,o){void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=!0);var a=o?Ee:_e;e[a.offset]=be(-i,t);var s=be(n,t),u=be(r,t);e[a.array]=s+" "+u}(y,_,p,m,g,!1)}var xe=function(){return(0,r.pi)((0,r.pi)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Te(e,t){var n=(0,i.useMemo)((function(){var n=xe();return we(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 o={};fe(o,e.style,e),n.style=(0,r.pi)((0,r.pi)({},o),n.style)}return n}function ke(e){void 0===e&&(e=!1);return function(t,n,o,a,s){var u=a.latestValues,c=(M(t)?Te:pe)(n,u,s),l=function(e,t,n){var r={};for(var i in e)(ve(i)||!0===n&&me(i)||!t&&!me(i))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),f=(0,r.pi)((0,r.pi)((0,r.pi)({},l),c),{ref:o});return(0,i.createElement)(t,f)}}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 i in Object.assign(e.style,n),r)e.style.setProperty(i,r[i])}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 i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:Be(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Fe=function(e){return function(t,n){var r=(0,i.useContext)(f),o=(0,i.useContext)(d.O);return n?je(e,t,r,o):(0,Ne.h)((function(){return je(e,t,r,o)}))}};function Be(e,t,n,i){var o={},a=!1===(null===n||void 0===n?void 0:n.initial),s=i(e);for(var u in s)o[u]=Le(s[u]);var c=e.initial,l=e.animate,f=x(e),d=T(e);t&&d&&!f&&!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 i=n.transitionEnd;n.transition;var a=(0,r._T)(n,["transitionEnd","transition"]);for(var s in a)o[s]=a[s];for(var s in i)o[s]=i[s]}}));return o}var He={useVisualState:Fe({scrapeMotionValuesFromProps:Ie,createRenderState:xe,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),we(r,i,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Me(t,r)}})};var ze,Ue={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 We(e,t,n,r){(0,i.useEffect)((function(){var i=e.current;if(n&&i)return Ve(i,t,n,r)}),[e,t,n,r])}function Ge(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"}(ze||(ze={}));var qe={pageX:0,pageY:0};function Ze(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 Ye(e,t){return void 0===t&&(t="page"),{point:Ke(e)?Ze(e,t):$e(e,t)}}var Xe=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Ye(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 We(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 it=rt("dragHorizontal"),ot=rt("dragVertical");function at(e){var t=!1;if("y"===e)t=ot();else if("x"===e)t=it();else{var n=it(),r=ot();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,i){var o;Ge(r)&&!st()&&(null===n||void 0===n||n(r,i),null===(o=e.animationState)||void 0===o||o.setActive(ze.Hover,t))}}var ct=function(e,t){return!!t&&(e===t||ct(e,t.parentElement))},lt=n(6717),ft=function(e,t){return function(n){return t(e(n))}},dt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(ft)};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,o=e.whileTap,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(!1),c=(0,i.useRef)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function f(){var e;return l(),u.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(ze.Tap,!1),!st()}function d(e,n){f()&&(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){f()&&(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=dt(tt(window,"pointerup",d),tt(window,"pointercancel",p)),null===n||void 0===n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(ze.Tap,!0))}:void 0),(0,lt.z)(l)})),focus:pt((function(e){var t=e.whileFocus,n=e.visualElement;We(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ze.Focus,!0)}:void 0),We(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ze.Focus,!1)}:void 0)})),hover:pt((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;nt(i,"pointerenter",t||r?ut(i,!0,t):void 0),nt(i,"pointerleave",n||r?ut(i,!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 i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}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,i=void 0===r?800:r,o=e.bounce,a=void 0===o?.25:o,s=e.velocity,u=void 0===s?0:s,c=e.mass,l=void 0===c?1:c,f=1-a;f=yt(.05,1,f),i=yt(.01,10,i/1e3),f<1?(t=function(e){var t=e*f,n=t*i,r=t-u,o=_t(e,f),a=Math.exp(-n);return bt-r/o*a},n=function(e){var n=e*f*i,r=n*u+u,o=Math.pow(f,2)*Math.pow(e,2)*i,a=Math.exp(-n),s=_t(Math.pow(e,2),f);return(-t(e)+bt>0?-1:1)*((r-o)*a)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var d=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*l;return{stiffness:p,damping:2*f*Math.sqrt(l*p),duration:i}}function _t(e,t){return e*Math.sqrt(1-t*t)}var wt=["duration","bounce"],xt=["stiffness","damping","mass"];function Tt(e,t){return t.some((function(t){return void 0!==e[t]}))}function kt(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,o=e.restSpeed,a=void 0===o?2:o,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(!Tt(e,xt)&&Tt(e,wt)){var n=Et(e);(t=vt(vt(vt({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),f=l.stiffness,d=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=i-n,r=d/(2*Math.sqrt(f*p)),o=Math.sqrt(f/p)/1e3;if(null!==s&&void 0!==s||(s=Math.abs(i-n)<=1?.01:.4),r<1){var a=_t(o,r);g=function(n){var s=Math.exp(-r*o*n);return i-s*((e+r*o*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},y=function(n){var i=Math.exp(-r*o*n);return r*o*i*(Math.sin(a*n)*(e+r*o*t)/a+t*Math.cos(a*n))-i*(Math.cos(a*n)*(e+r*o*t)-a*t*Math.sin(a*n))}}else if(1===r)g=function(n){return i-Math.exp(-o*n)*(t+(e+o*t)*n)};else{var u=o*Math.sqrt(r*r-1);g=function(n){var a=Math.exp(-r*o*n),s=Math.min(u*n,300);return i-a*((e+r*o*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,o=Math.abs(i-t)<=s;c.done=r&&o}return c.value=c.done?i:t,c},flipTarget:function(){var e;h=-h,n=(e=[i,n])[0],i=e[1],b()}}}kt.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(Y(n)&&$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Mt=function(e,t,n){return function(r){var i;if(!Y(r))return r;var o=r.match(q),a=o[0],s=o[1],u=o[2],c=o[3];return(i={})[e]=parseFloat(a),i[t]=parseFloat(s),i[n]=parseFloat(u),i.alpha=void 0!==c?parseFloat(c):1,i}},Dt=G(0,255),It=W(W({},ie),{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,i=e.alpha,o=void 0===i?1:i;return"rgba("+It.transform(t)+", "+It.transform(n)+", "+It.transform(r)+", "+K(oe.transform(o))+")"}};var Nt={test:St("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,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,i=e.alpha,o=void 0===i?1:i;return"hsla("+Math.round(t)+", "+J.transform(K(n))+", "+J.transform(K(r))+", "+K(oe.transform(o))+")"}},Lt=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-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 i=n.parse(e),o=r.parse(t),a=vt({},i),s=n===Rt?At:Lt;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(i[t],o[t],e));return a.alpha=At(i.alpha,o.alpha,e),n.transform(a)}},zt={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 Y(e)?e:e.hasOwnProperty("red")?Pt.transform(e):Rt.transform(e)}},Ut="${c}",Vt="${n}";function Wt(e){var t=[],n=0,r=e.match(Z);r&&(n=r.length,e=e.replace(Z,Ut),t.push.apply(t,r.map(zt.parse)));var i=e.match(q);return i&&(e=e.replace(q,Vt),t.push.apply(t,i.map(ie.parse))),{values:t,numColors:n,tokenised:e}}function Gt(e){return Wt(e).values}function Kt(e){var t=Wt(e),n=t.values,r=t.numColors,i=t.tokenised,o=n.length;return function(e){for(var t=i,n=0;n<o;n++)t=t.replace(n<r?Ut:Vt,n<r?zt.transform(e[n]):K(e[n]));return t}}var qt=function(e){return"number"===typeof e?0:e};var Zt={test:function(e){var t,n,r,i;return isNaN(e)&&Y(e)&&(null!==(n=null===(t=e.match(q))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(Z))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Gt,createTransformer:Kt,getAnimatableNone:function(e){var t=Gt(e);return Kt(e)(t.map(qt))}},$t=function(e){return"number"===typeof e};function Yt(e,t){return $t(e)?function(n){return At(e,t,n)}:zt.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,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}([],e),r=n.length,i=e.map((function(e,n){return Yt(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},Qt=function(e,t){var n=vt(vt({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Yt(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Jt(e){for(var t=Zt.parse(e),n=t.length,r=0,i=0,o=0,a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}var en=function(e,t){var n=Zt.createTransformer(t),r=Jt(e),i=Jt(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&(r.numNumbers,i.numNumbers),dt(Xt(r.parsed,i.parsed),n)},tn=function(e,t){return function(n){return At(e,t,n)}};function nn(e,t,n){for(var r,i=[],o=n||("number"===typeof(r=e[0])?tn:"string"===typeof r?zt.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=o(e[s],e[s+1]);if(t){var c=Array.isArray(t)?t[s]:t;u=dt(c,u)}i.push(u)}return i}function rn(e,t,n){var r=void 0===n?{}:n,i=r.clamp,o=void 0===i||i,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],i=t[0];return function(e){return i(Ct(n,r,e))}}(e,c):function(e,t){var n=e.length,r=n-1;return function(i){var o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>i||s===r);s++);o=s-1}var u=Ct(e[o],e[o+1],i);return t[o](u)}}(e,c);return o?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)}),fn=an(ln),dn=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 wn(e,t){return e.map((function(){return t||dn})).splice(0,e.length-1)}function xn(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,o=e.ease,a=e.offset,s=e.duration,u=void 0===s?300:s,c={done:!1,value:n},l=Array.isArray(i)?i:[n,i],f=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 d(){return rn(f,l,{ease:Array.isArray(o)?o:wn(l,o)})}var p=d();return{next:function(e){return c.value=p(e),c.done=e>=u,c},flipTarget:function(){l.reverse(),p=d()}}}var Tn={keyframes:xn,spring:kt,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,o=e.power,a=void 0===o?.8:o,s=e.timeConstant,u=void 0===s?350:s,c=e.restDelta,l=void 0===c?.5:c,f=e.modifyTarget,d={done:!1,value:i},p=a*n,h=i+p,m=void 0===f?h:f(h);return m!==h&&(p=m-i),{next:function(e){var t=-p*Math.exp(-e/u);return d.done=!(t>l||t<-l),d.value=d.done?m:m+t,d},flipTarget:function(){}}}};var kn=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 kn.ZP.update(t,!0)},stop:function(){return kn.qY.update(t)}}};function An(e){var t,n,r,i,o,a=e.from,s=e.autoplay,u=void 0===s||s,c=e.driver,l=void 0===c?Cn:c,f=e.elapsed,d=void 0===f?0:f,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,w=e.onRepeat,x=e.onUpdate,T=gt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),k=T.to,O=0,C=T.duration,A=!1,S=!0,M=function(e){if(Array.isArray(e.to))return xn;if(Tn[e.type])return Tn[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?xn:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?kt:xn}(T);(null===(n=(t=M).needsInterpolation)||void 0===n?void 0:n.call(t,a,k))&&(o=rn([0,100],[a,k],{clamp:!1}),a=0,k=100);var D=M(vt(vt({},T),{from:a,to:k}));function I(){O++,"reverse"===v?d=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}(d,C,y,S=O%2===0):(d=On(d,C,y),"mirror"===v&&D.flipTarget()),A=!1,w&&w()}function P(e){if(S||(e=-e),d+=e,!A){var t=D.next(Math.max(0,d));i=t.value,o&&(i=o(i)),A=S?t.done:d<=0}null===x||void 0===x||x(i),A&&(0===O&&(null!==C&&void 0!==C||(C=d)),O<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(d,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 i=new Float32Array(11),o=0;o<11;++o)i[o]=Nn(o*Ln,e,n);function a(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=Ln;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*Ln,s=Rn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var o=Rn(t,n,r);if(0===o)return t;t-=(Nn(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0;do{(o=Nn(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(o)>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:dn,easeOut:fn,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||!Zt.test(t)||t.startsWith("url(")))},zn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Un=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}},Wn=function(e){return{type:"keyframes",duration:.8,values:e}},Gn={x:zn,y:zn,z:zn,rotate:zn,rotateX:zn,rotateY:zn,rotateZ:zn,scaleX:Un,scaleY:Un,scale:Un,opacity:Vn,backgroundColor:Vn,color:Vn,default:Un},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 i=(r.match(q)||[])[0];if(!i)return e;var o=r.replace(i,""),a=Kn.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+o+")"}var Zn=/([a-z-]*)\(.*?\)/g,$n=W(W({},Zt),{getAnimatableNone:function(e){var t=e.match(Zn);return t?t.map(qn).join(" "):e}}),Yn=(0,r.pi)((0,r.pi)({},ue),{color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:$n,WebkitFilter:$n}),Xn=function(e){return Yn[e]};function Qn(e,t){var n,r=Xn(e);return r!==$n&&(r=Zt),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Jn(e){var t=e.ease,n=e.times,i=e.yoyo,o=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"),(i||a||o)&&(!0,i?u.repeatType="reverse":a?u.repeatType="loop":o&&(u.repeatType="mirror"),u.repeat=a||i||o||s.repeat),"spring"!==s.type&&(u.type="keyframes"),u}function er(e,t,n){var i;return Array.isArray(t.to)&&(null!==(i=e.duration)&&void 0!==i||(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)?Wn:Gn[e]||Gn.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,i,o){var a,s=ir(i,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 i={from:u,to:n,velocity:t.getVelocity(),onComplete:o,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,i=e.velocity,o=void 0===i?0:i,a=e.min,s=e.max,u=e.power,c=void 0===u?.8:u,l=e.timeConstant,f=void 0===l?750:l,d=e.bounceStiffness,p=void 0===d?500:d,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 w(e){return void 0!==a&&e<a||void 0!==s&&e>s}function x(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function T(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 k(e){T(vt({type:"spring",stiffness:p,damping:m,restDelta:g},e))}if(w(r))k({from:r,velocity:o,to:x(r)});else{var O=c*o+r;"undefined"!==typeof y&&(O=y(O));var C,A,S=x(O),M=S===a?-1:1;T({type:"decay",from:r,velocity:o,timeConstant:f,power:c,restDelta:g,modifyTarget:y,onUpdate:w(O)?function(e){C=A,A=e,o=Sn(e-C,(0,kn.$B)().delta),(1===M&&e>S||-1===M&&e<S)&&k({from:e,to:S,velocity:o})}:void 0})}return{stop:function(){return null===t||void 0===t?void 0:t.stop()}}}((0,r.pi)((0,r.pi)({},i),s)):An((0,r.pi)((0,r.pi)({},er(s,i,e)),{onUpdate:function(e){var t;i.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;i.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e;return t.set(n),o(),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 ir(e,t){return e[t]||e.default||e}function or(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var o,a,s=tr(e,t,n,r,i),u=function(e,t){var n;return null!==(n=(ir(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),c=function(){return a=s()};return u?o=setTimeout(c,Mn(u)):c(),function(){clearTimeout(o),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 i=0;i<r;i++){var o=this.subscriptions[i];o&&o(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,kn.$B)(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,kn.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 kn.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 fr=function(e){return function(t){return t.test(e)}},dr=[ie,ee,J,Q,ne,te,{test:function(e){return"auto"===e},parse:function(e){return e}}],pr=function(e){return dr.find(fr(e))},hr=(0,r.ev)((0,r.ev)([],(0,r.CR)(dr)),[zt,Zt]),mr=function(e){return hr.find(fr(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=w(e,t),i=n?e.makeTargetAnimatable(n,!1):{},o=i.transitionEnd,a=void 0===o?{}:o;i.transition;var s,u=(0,r._T)(i,["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 i;void 0===n&&(n={});var o=w(e,t,n.custom),a=(o||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var u=o?function(){return Er(e,o,n)}:function(){return Promise.resolve()},c=(null===(i=e.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var o=s.delayChildren,a=void 0===o?0:o,u=s.staggerChildren,c=s.staggerDirection;return function(e,t,n,i,o,a){void 0===n&&(n=0);void 0===i&&(i=0);void 0===o&&(o=1);var s=[],u=(e.variantChildren.size-1)*i,c=1===o?function(e){return void 0===e&&(e=0),e*i}:function(e){return void 0===e&&(e=0),u-e*i};return Array.from(e.variantChildren).sort(_r).forEach((function(e,i){s.push(br(e,t,(0,r.pi)((0,r.pi)({},a),{delay:n+c(i)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+i,u,c,n)}:function(){return Promise.resolve()},l=s.when;if(l){var f=(0,r.CR)("beforeChildren"===l?[u,c]:[c,u],2),d=f[0],p=f[1];return d().then(p)}return Promise.all([u(),c(n.delay)])}function Er(e,t,n){var i,o=void 0===n?{}:n,a=o.delay,s=void 0===a?0:a,u=o.transitionOverride,c=o.type,l=e.makeTargetAnimatable(t),f=l.transition,d=void 0===f?e.getDefaultTransition():f,p=l.transitionEnd,h=(0,r._T)(l,["transition","transitionEnd"]);u&&(d=u);var m=[],v=c&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[c]);for(var g in h){var y=e.getValue(g),b=h[g];if(!(!y||void 0===b||v&&wr(v,g))){var E=or(g,y,b,(0,r.pi)({delay:s},d));m.push(E)}}return Promise.all(m).then((function(){p&&gr(e,p)}))}function _r(e,t){return e.sortNodePosition(t)}function wr(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var xr=[ze.Animate,ze.Hover,ze.Tap,ze.Drag,ze.Focus,ze.Exit],Tr=(0,r.ev)([],(0,r.CR)(xr)).reverse(),kr=xr.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 i=t.map((function(t){return br(e,t,n)}));r=Promise.all(i)}else if("string"===typeof t)r=br(e,t,n);else{var o="function"===typeof t?w(e,t,n.custom):t;r=Er(e,o,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={})[ze.Animate]=Ar(!0),e[ze.Hover]=Ar(),e[ze.Tap]=Ar(),e[ze.Drag]=Ar(),e[ze.Focus]=Ar(),e[ze.Exit]=Ar(),e}(),i={},o=!0,a=function(t,n){var i=w(e,n);if(i){i.transition;var o=i.transitionEnd,a=(0,r._T)(i,["transition","transitionEnd"]);t=(0,r.pi)((0,r.pi)((0,r.pi)({},t),a),o)}return t};function s(s,u){for(var c,l=e.getProps(),f=e.getVariantContext(!0)||{},d=[],p=new Set,h={},m=1/0,v=function(t){var i=Tr[t],v=n[i],g=null!==(c=l[i])&&void 0!==c?c:f[i],y=E(g),_=i===u?v.isActive:null;!1===_&&(m=t);var w=g===f[i]&&g!==l[i]&&y;if(w&&o&&e.manuallyAnimateOnMount&&(w=!1),v.protectedKeys=(0,r.pi)({},h),!v.isActive&&null===_||!g&&!v.prevProp||Pe(g)||"boolean"===typeof g)return"continue";var x=function(e,t){if("string"===typeof t)return t!==e;if(b(t))return!mt(t,e);return!1}(v.prevProp,g)||i===u&&v.isActive&&!w&&y||t>m&&y,T=Array.isArray(g)?g:[g],k=T.reduce(a,{});!1===_&&(k={});var O=v.prevResolvedValues,C=void 0===O?{}:O,A=(0,r.pi)((0,r.pi)({},C),k),S=function(e){x=!0,p.delete(e),v.needsAnimating[e]=!0};for(var M in A){var D=k[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=k,v.isActive&&(h=(0,r.pi)((0,r.pi)({},h),k)),o&&e.blockInitialAnimation&&(x=!1),x&&!w&&d.push.apply(d,(0,r.ev)([],(0,r.CR)(T.map((function(e){return{animation:e,options:(0,r.pi)({type:i},s)}})))))},g=0;g<kr;g++)v(g);if(i=(0,r.pi)({},h),p.size){var y={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),d.push({animation:y})}var _=Boolean(d.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(_=!1),o=!1,_?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:s,setActive:function(t,r,i){var o;return n[t].isActive===r?Promise.resolve():(null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,s(i,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,i.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:pt((function(e){var t=e.custom,n=e.visualElement,o=(0,r.CR)((0,p.oO)(),2),a=o[0],s=o[1],u=(0,i.useContext)(d.O);(0,i.useEffect)((function(){var e,r,i=null===(e=n.animationState)||void 0===e?void 0:e.setActive(ze.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:t});!a&&(null===i||void 0===i||i.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),i=Dr(e)&&Dr(t)?Ir(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var Nr=function(){function e(e,t,n){var i=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=jr(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=Pr(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=(0,kn.$B)().timestamp;i.history.push((0,r.pi)((0,r.pi)({},o),{timestamp:a}));var s=i.handlers,u=s.onStart,c=s.onMove;t||(u&&u(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=Rr(t,i.transformPagePoint),Ge(e)&&0===e.buttons?i.handlePointerUp(e,t):kn.ZP.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=jr(Rr(t,i.transformPagePoint),i.history);i.startEvent&&r&&r(e,a),o&&o(e,a)},!(Ke(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Rr(Ye(e),this.transformPagePoint),s=a.point,u=(0,kn.$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=dt(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(),kn.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,i=Br(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var zr=n(93327);function Ur(e){return[e("x"),e("y")]}function Vr(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?At(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?At(i,e,n.max):Math.min(e,i)),e}function Wr(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 Gr(e,t){var n,i=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(i=(n=(0,r.CR)([o,i],2))[0],o=n[1]),{min:e.min+i,max:e.min+o}}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 Zr(e,t){var n=e.getBoundingClientRect();return(0,zr.RX)((0,zr.dV)(n,t))}function $r(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Pr(e,t)<n}function Yr(e){return e.max-e.min}function Xr(e,t){var n=.5,r=Yr(e),i=Yr(t);return i>r?n=Ct(t.min,t.max-r,e.min):r>i&&(n=Ct(e.min,e.max-i,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=Yr(n)/Yr(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,ei(r.originX)),Qr(e.y,t.y,n.y,ei(r.originY))}function ei(e){return"number"===typeof e?e:.5}function ti(e,t,n){e.min=n.min+t.min,e.max=e.min+Yr(t)}var ni=n(58839);function ri(e,t){return{min:t.min-e.min,max:t.max-e.min}}function ii(e,t){return{x:ri(e.x,t.x),y:ri(e.y,t.y)}}function oi(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function ai(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function si(e,t){e.min=t.min,e.max=t.max}function ui(e,t,n){return n+t*(e-n)}function ci(e,t,n,r,i){return void 0!==i&&(e=ui(e,i,r)),ui(e,n,r)+t}function li(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ci(e.min,t,n,r,i),e.max=ci(e.max,t,n,r,i)}function fi(e,t){var n=t.x,r=t.y;li(e.x,n.translate,n.scale,n.originPoint),li(e.y,r.translate,r.scale,r.originPoint)}function di(e,t,n,i){var o=(0,r.CR)(i,3),a=o[0],s=o[1],u=o[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);li(e,n[a],n[s],l,n.scale)}var pi=["x","scaleX","originX"],hi=["y","scaleY","originY"];function mi(e,t,n){di(e.x,t.x,n,pi),di(e.y,t.y,n,hi)}function vi(e,t,n,r,i){return e=ui(e-=t,1/n,r),void 0!==i&&(e=ui(e,1/i,r)),e}function gi(e,t,n){var i=(0,r.CR)(n,3),o=i[0],a=i[1],s=i[2];!function(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var o=At(e.min,e.max,r)-t;e.min=vi(e.min,t,n,o,i),e.max=vi(e.max,t,n,o,i)}(e,t[o],t[a],t[s],t.scale)}function yi(e,t){gi(e.x,t,pi),gi(e.y,t,hi)}var bi,Ei=n(27565),_i=new WeakMap,wi=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,zr.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(),_i.set(t,this)}return e.prototype.start=function(e,t){var n=this,i=void 0===t?{}:t,o=i.snapToCursor,a=void 0!==o&&o,s=i.cursorProgress,u=this.props.transformPagePoint;this.panSession=new Nr(e,{onSessionStart:function(e){var t;n.stopMotion();var i=function(e){return Ye(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=(0,Ei.U)((function(e,t){var o=(0,ni.kv)(n.visualElement),u=(0,ni.e3)(n.visualElement),c=(0,r.ev)((0,r.ev)([],(0,r.CR)(o)),(0,r.CR)(u)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){(0,ni.de)(n.visualElement),u.forEach(ni.de)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(i))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;Ur((function(t){if(!l){var r=e.target[t],o=r.min,a=r.max;n.cursorProgress[t]=s?s[t]:Ct(o,a,i[t])}var u=n.getAxisMotionValue(t);u&&(n.originPoint[t]=u.get())}))})),t((function(){kn.iW.update(),kn.iW.preRender(),kn.iW.render(),kn.iW.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,i,o,a=n.props,s=a.drag,u=a.dragPropagation;(!s||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=at(s),n.openGlobalLock))&&((0,Ei.R)(),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,e,t),null===(o=n.visualElement.animationState)||void 0===o||o.setActive(ze.Drag,!0))},onMove:function(e,t){var r,i,o,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===(i=(r=n.props).onDirectionLock)||void 0===i||i.call(r,n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,e,t),bi=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,i=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(y(n)?this.resolveRefConstraints(i,n):function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Wr(e.x,r,o),y:Wr(e.y,n,i)}}(i,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&&Ur((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}(i[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,i=n.transformPagePoint,o=t.current;this.constraintsBox=Zr(o,i);var a=function(e,t){return{x:Gr(e.x,t.x),y:Gr(e.y,t.y)}}(e,this.constraintsBox);if(r){var s=r((0,zr._6)(a));this.hasMutatedConstraints=!!s,s&&(a=(0,zr.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(ze.Drag,!1)},e.prototype.stop=function(e,t){var n,r,i;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),o){var a=t.velocity;this.animateDragEnd(a),null===(i=(r=this.props).onDragEnd)||void 0===i||i.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return Ur((function(n){if(xi(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var i=t.visualElement.getLayoutState().layout,o=i[n].max-i[n].min,a=i[n].min+o/2,s=e[n]-a;t.originPoint[n]=e[n],r.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(xi(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],i=this.constraints?Vr(r,this.constraints[e],this.elastic[e]):r;n.set(i)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],i=r.max-r.min,o=this.cursorProgress[e],a=function(e,t,n,r,i){var o=e-t*n;return r?Vr(o,r,i):o}(t[e],i,o,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+i)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,i=e.dragDirectionLock,o=void 0!==i&&i,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,c=void 0!==u&&u,l=e.dragElastic,f=void 0===l?.35:l,d=e.dragMomentum,p=void 0===d||d,h=(0,r._T)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.pi)({drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:c,dragElastic:f,dragMomentum:p},h)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,i="_drag"+e.toUpperCase();return this.props[i]?this.props[i]: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,i=n.drag,o=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?yi(n=ii(r.projection.target,e.projection.target),r.getLatestValues()):n=ii(r.getLayoutState().layout,e.getLayoutState().layout),Ur((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 f=ii(l.projection.targetFinal,c);Ur((function(e){var t=f[e],n=t.min,r=t.max;c[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=Ur((function(n){var l;if(xi(n,i,t.currentDirection)){var f=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{},d=a?200:1e6,p=a?40:1e7,h=(0,r.pi)((0,r.pi)({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),f);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,h):t.visualElement.startLayoutAnimation(n,h,u)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;Ur((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),or(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};Ur((function(t){r[t]=Xr(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){Ur((function(t){if(xi(t,n,null)){var i=function(e,t,n){var r=e.max-e.min,i=At(t.min,t.max-r,n);return{min:i,max:i+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),o=i.min,a=i.max;e.visualElement.setProjectionTargetAxis(t,o,a)}}))})),setTimeout(Ei.R,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=(0,Ei.U)((function(n,r){var i=(0,ni.kv)(t.visualElement);r((function(){return i.forEach((function(e){return e.resetTransform()}))})),n((function(){return(0,ni.de)(t.visualElement)})),r((function(){return i.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,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=Ve(window,"resize",(function(){t.scalePoint()})),i=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),o=e.prevDragCursor;return o&&this.start(bi,{cursorProgress:o}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===i||void 0===i||i(),t.cancelDrag()}},e}();function xi(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var Ti={pan:pt((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(null),c=(0,i.useContext)(l).transformPagePoint,f={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,i.useEffect)((function(){null!==u.current&&u.current.updateHandlers(f)})),nt(a,"pointerdown",s&&function(e){u.current=new Nr(e,f,{transformPagePoint:c})}),(0,lt.z)((function(){return u.current&&u.current.end()}))})),drag:pt((function(e){var t=e.dragControls,n=e.visualElement,o=(0,i.useContext)(l).transformPagePoint,a=(0,Ne.h)((function(){return new wi({visualElement:n})}));a.setProps((0,r.pi)((0,r.pi)({},e),{transformPagePoint:o})),(0,i.useEffect)((function(){return t&&t.subscribe(a)}),[a]),(0,i.useEffect)((function(){return a.mount(n)}),[])}))},ki=n(7646);function Oi(e){return"string"===typeof e&&e.startsWith("var(--")}var Ci=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ai(e,t,n){void 0===n&&(n=1);var i=(0,r.CR)(function(e){var t=Ci.exec(e);if(!t)return[,];var n=(0,r.CR)(t,3);return[n[1],n[2]]}(e),2),o=i[0],a=i[1];if(o){var s=window.getComputedStyle(t).getPropertyValue(o);return s?s.trim():Oi(a)?Ai(a,t,n+1):a}}function Si(e,t){return e/(t.max-t.min)*100}var Mi="_$css";var Di={process:function(e,t,n){var r=n.target;if("string"===typeof e){if(!ee.test(e))return e;e=parseFloat(e)}return Si(e,r.x)+"% "+Si(e,r.y)+"%"}},Ii={borderRadius:(0,r.pi)((0,r.pi)({},Di),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Di,borderTopRightRadius:Di,borderBottomLeftRadius:Di,borderBottomRightRadius:Di,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(Ci,(function(e){return a.push(e),Mi})));var s=Zt.parse(e);if(s.length>5)return i;var u=Zt.createTransformer(e),c="number"!==typeof s[0]?1:0,l=n.x.scale*r.x,f=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=f;var d=At(l,f,.5);"number"===typeof s[2+c]&&(s[2+c]/=d),"number"===typeof s[3+c]&&(s[3+c]/=d);var p=u(s);if(o){var h=0;p=p.replace(Mi,(function(){var e=a[h];return h++,e}))}return p}}},Pi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget=(0,zr.VZ)(),t.currentAnimationTarget=(0,zr.VZ)(),t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,i){void 0===i&&(i={});var o=i.originBox,a=i.targetBox,s=i.visibilityAction,u=i.shouldStackAnimate,c=i.onComplete,l=i.prevParent,f=(0,r._T)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,p=d.visualElement,h=d.layout;if(!1===u)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===u){u&&(t.isAnimatingTree=!0),n=o||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),o&&!oi(l,v)&&l.prevViewportBox&&(g=l.prevViewportBox)),g&&Bi(l,o,a)&&(m=!0,n=ii(g,n),e=ii(y,e))}var b=Ni(n,e),E=Ur((function(i){var o,a;if("position"===h){var u=e[i].max-e[i].min;n[i].max=n[i].min+u}if(!p.projection.isTargetLocked)return void 0===s?b?t.animateAxis(i,e[i],n[i],(0,r.pi)((0,r.pi)({},f),{isRelative:m})):(null===(a=(o=t.stopAxisAnimation)[i])||void 0===a||a.call(o),p.setProjectionTargetAxis(i,e[i].min,e[i].max,m)):void p.setVisibility(s===ki.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=or,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]}(Ii)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Ur((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 i,o,a=this,s=void 0===r?{}:r,u=s.transition,c=s.isRelative;if(!this.isAnimating[e]||!ji(t,this.currentAnimationTarget[e])){null===(o=(i=this.stopAxisAnimation)[e])||void 0===o||o.call(i),this.isAnimating[e]=!0;var l=this.props.visualElement,f=this.frameTarget[e],d=l.getProjectionAnimationProgress()[e];d.clearListeners(),d.set(0),d.set(0);var p=function(){var r=d.get()/1e3;!function(e,t,n,r){e.min=At(t.min,n.min,r),e.max=At(t.max,n.max,r)}(f,n,t,r),l.setProjectionTargetAxis(e,f.min,f.max,c)};p();var h=d.onChange(p);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,d.stop(),h()},this.currentAnimationTarget[e]=t;var m=u||l.getDefaultTransition()||Fi;return or("x"===e?"layoutX":"layoutY",d,1e3,m&&ir(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}(i.Component);function Ni(e,t){return!Li(e)&&!Li(t)&&(!ji(e.x,t.x)||!ji(e.y,t.y))}var Ri={min:0,max:0};function Li(e){return ji(e.x,Ri)&&ji(e.y,Ri)}function ji(e,t){return e.min===t.min&&e.max===t.max}var Fi={duration:.45,ease:[.4,0,.1,1]};function Bi(e,t,n){return e||!e&&!(t||n)}var Hi=n(49870),zi=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,Hi.Md)(t)&&t.register(r),(0,Hi.Md)(n)&&n.register(r),r.onUnmount((function(){(0,Hi.Md)(t)&&t.remove(r),(0,Hi.Md)(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return(0,Hi.Md)(t)?t.syncUpdate():((0,ni.x7)(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;(0,Hi.Md)(e)||e.flush()},t.prototype.render=function(){return null},t}(i.Component);var Ui={measureLayout:function(e){var t=(0,i.useContext)(Hi.WH),n=(0,i.useContext)(Hi.bg);return i.createElement(zi,(0,r.pi)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,r.CR)((0,p.oO)(),2)[1];return i.createElement(Pi,(0,r.pi)({},e,{safeToRemove:t}))}};function Vi(){return{isHydrated:!1,layout:(0,zr.VZ)(),layoutCorrected:(0,zr.VZ)(),treeScale:{x:1,y:1},delta:(0,zr.pY)(),deltaFinal:(0,zr.pY)(),deltaTransform:""}}var Wi=Vi();function Gi(e,t,n){var r=e.x,i=e.y,o="translate3d("+r.translate/t.x+"px, "+i.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(o+="rotate("+a+") "),s&&(o+="rotateX("+s+") "),u&&(o+="rotateY("+u+") ")}return o+="scale("+r.scale+", "+i.scale+")",n||o!==qi?o:""}function Ki(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var qi=Gi(Wi.delta,Wi.treeScale,{x:1,y:1}),Zi=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function $i(e,t,n,r){var i,o,a=e.delta,s=e.layout,u=e.layoutCorrected,c=e.treeScale,l=t.target;o=s,si((i=u).x,o.x),si(i.y,o.y),function(e,t,n){var r=n.length;if(r){var i,o;t.x=t.y=1;for(var a=0;a<r;a++)o=(i=n[a]).getLayoutState().delta,t.x*=o.x.scale,t.y*=o.y.scale,fi(e,o),ai(i)&&mi(e,e,i.getLatestValues())}}(u,c,n),Jr(a,u,l,r)}var Yi=n(519),Xi=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(Yi._),this.isDirty=!1,this.children.forEach(e)},e}();var Qi=function(e){var t=e.treeType,n=void 0===t?"":t,i=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.resetTransform,f=e.restoreTransform,d=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 _,w,k,O,C,A,S=b.latestValues,M=b.renderState,D=function(){var e=Zi.map((function(){return new ur})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Zi.forEach((function(r){var i;null===(i=t[r])||void 0===i||i.call(t);var o="on"+r,a=e[o];a&&(t[r]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+Zi[t]]=function(t){return e.add(t)},n["notify"+Zi[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,zr.VZ)(),targetFinal:(0,zr.VZ)()},P=I,N=S,R=Vi(),L=!1,j=new Map,F=new Map,B={},z=(0,r.pi)({},S);function U(){_&&(X.isProjectionReady()&&(mi(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)}i(X,M,e,P,R,t,v)}function W(){D.notifyUpdate(S)}function G(){X.layoutTree.forEach(eo)}var K=h(v);for(var q in K){var Z=K[q];void 0!==S[q]&&H(Z)&&Z.set(S[q],!1)}var $=x(v),Y=T(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 Xi,presenceId:g,projection:I,variantChildren:Y?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),Y&&m&&!$&&(A=null===m||void 0===m?void 0:m.addVariantChild(X)),null===m||void 0===m||m.children.add(X)},unmount:function(){kn.qY.update(W),kn.qY.render(U),kn.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===k||void 0===k||k(),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 Y?X:null===m||void 0===m?void 0:m.getClosestVariantNode()},scheduleUpdateLayoutProjection:m?m.scheduleUpdateLayoutProjection:function(){return kn.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&&kn.ZP.update(W,!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],d(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){z[e]=t},getBaseTarget:function(e){if(o){var t=o(v,e);if(void 0!==t&&!H(t))return t}return z[e]}},D),{build:function(){return V(),M},scheduleRender:function(){kn.ZP.render(U,!1,!0)},syncRender:U,setProps:function(e){v=e,D.updatePropListeners(e),B=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(H(o))e.addValue(i,o);else if(H(a))e.addValue(i,lr(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,lr(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);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<ro;r++){var i=no[r],o=v[i];(E(o)||!1===o)&&(n[i]=o)}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],i=n?I.relativeTarget[e]:I.target[e],o=i.min,a=i.max-o;return r.clearListeners(),r.set(o),r.set(o),r.onChange((function(t){X.setProjectionTargetAxis(e,t,t+a,n)})),X.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){Ur((function(e){return X.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=s(_,t);return e||yi(n,S),n},getProjectionAnimationProgress:function(){return C||(C={x:lr(0),y:lr(0)}),C},setProjectionTargetAxis:function(e,t,n,r){var i;void 0===r&&(r=!1),r?(I.relativeTarget||(I.relativeTarget=(0,zr.VZ)()),i=I.relativeTarget[e]):(I.relativeTarget=void 0,i=I.target[e]),I.isHydrated=!0,i.min=t,i.max=n,L=!0,D.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=R.layout);var n=X.getProjectionAnimationProgress(),r=n.x,i=n.y,o=!I.relativeTarget&&!I.isTargetLocked&&!r.isAnimating()&&!i.isAnimating();(e||o)&&Ur((function(e){var n=t[e],r=n.min,i=n.max;X.setProjectionTargetAxis(e,r,i)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=ii(t.getLayoutState().layout,e.getLayoutState().layout);Ur((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 f(_,M)},updateLayoutProjection:function(){if(X.isProjectionReady()){var e=R.delta,t=R.treeScale,n=t.x,r=t.y,i=R.deltaTransform;$i(R,P,X.path,S),L&&X.notifyViewportBoxUpdate(P.target,e),L=!1;var o=Gi(e,t);o===i&&n===t.x&&r===t.y||X.scheduleRender(),R.deltaTransform=o}},updateTreeLayoutProjection:function(){X.layoutTree.forEach(Ji),kn.ZP.preRender(G,!1,!0)},getProjectionParent:function(){if(void 0===w){for(var e=!1,t=X.path.length-1;t>=0;t--){var n=X.path[t];if(n.projection.isEnabled){e=n;break}}w=e}return w},resolveRelativeTargetBox:function(){var e=X.getProjectionParent();if(I.relativeTarget&&e&&(function(e,t){ti(e.target.x,e.relativeTarget.x,t.target.x),ti(e.target.y,e.relativeTarget.y,t.target.y)}(I,e.projection),ai(e))){var t=I.target;mi(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(v._layoutResetTransform)},pointTo:function(e){P=e.projection,N=e.getLatestValues(),null===k||void 0===k||k(),k=dt(e.onSetAxisTarget(X.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;X.isPresent?X.presence=ki.z.Present:null===(e=X.layoutSafeToRemove)||void 0===e||e.call(X)})))},isPresent:!0,presence:ki.z.Entering});return X}};function Ji(e){e.resolveRelativeTargetBox()}function eo(e){e.updateLayoutProjection()}var to,no=(0,r.ev)(["initial"],(0,r.CR)(xr)),ro=no.length,io=new Set(["width","height","top","left","right","bottom","x","y"]),oo=function(e){return io.has(e)},ao=function(e,t){e.set(t,!1),e.set(t)},so=function(e){return e===ie||e===ee};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(to||(to={}));var uo=function(e,t){return parseFloat(e.split(", ")[t])},co=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return uo(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?uo(a[1],e):0}},lo=new Set(["x","y","z"]),fo=P.filter((function(e){return!lo.has(e)}));var po={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:co(4,13),y:co(5,14)},ho=function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),t=(0,r.pi)({},t),i=(0,r.pi)({},i);var o=Object.keys(t).filter(oo),a=[],s=!1,u=[];if(o.forEach((function(r){var o=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],f=t[r],d=pr(l);if(Re(f))for(var p=f.length,h=null===f[0]?1:0;h<p;h++)c?pr(f[h]):(c=pr(f[h]))===d||so(d)&&so(c);else c=pr(f);if(d!==c)if(so(d)&&so(c)){var m=o.get();"string"===typeof m&&o.set(parseFloat(m)),"string"===typeof f?t[r]=parseFloat(f):Array.isArray(f)&&c===ee&&(t[r]=f.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===f)?0===l?o.set(c.transform(l)):t[r]=d.transform(f):(s||(a=function(e){var t=[];return fo.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),i[r]=void 0!==i[r]?i[r]:t[r],ao(o,f))}})),u.length){var c=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={top:o.top,left:o.left,bottom:o.bottom,right:o.right,transform:o.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var i=t.getValue(n);ao(i,po[n](r,s)),e[n]=po[n](u,o)})),e}(t,e,u);return a.length&&a.forEach((function(t){var n=(0,r.CR)(t,2),i=n[0],o=n[1];e.getValue(i).set(o)})),e.syncRender(),{target:c,transitionEnd:i}}return{target:t,transitionEnd:i}};function mo(e,t,n,r){return function(e){return Object.keys(e).some(oo)}(t)?ho(e,t,n,r):{target:t,transitionEnd:r}}var vo=function(e,t,n,i){var o=function(e,t,n){var i,o=(0,r._T)(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var s in n&&(n=(0,r.pi)({},n)),e.forEachValue((function(e){var t=e.get();if(Oi(t)){var n=Ai(t,a);n&&e.set(n)}})),o){var u=o[s];if(Oi(u)){var c=Ai(u,a);c&&(o[s]=c,n&&(null!==(i=n[s])&&void 0!==i||(n[s]=u)))}}return{target:o,transitionEnd:n}}(e,t,i);return mo(e,t=o.target,n,i=o.transitionEnd)};var go={treeType:"dom",readValueFromInstance:function(e,t){if(L(t)){var n=Xn(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(U(t)?i.getPropertyValue(t):i[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 Zr(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,i){var o=n.transformValues;void 0===i&&(i=!0);var a=t.transition,s=t.transitionEnd,u=(0,r._T)(t,["transition","transitionEnd"]),c=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=yr(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(u,a||{},e);if(o&&(s&&(s=o(s)),u&&(u=o(u)),c&&(c=o(c))),i){!function(e,t,n){var r,i,o,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],f=t[l],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==i?i:t[l]),void 0!==d&&null!==d&&("string"===typeof d&&/^\-?\d*\.?\d+$/.test(d)?d=parseFloat(d):!mr(d)&&Zt.test(f)&&(d=Qn(l,f)),e.addValue(l,lr(d)),null!==(o=(a=n)[l])&&void 0!==o||(a[l]=d),e.setBaseTarget(l,d))}}(e,u,c);var l=vo(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,i,o,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=r.isEnabled&&i.isHydrated;ce(t,n,r,i,o,a.transformTemplate,s?Gi:void 0,s?Ki:void 0)},render:Ae},yo=Qi(go),bo=Qi((0,r.pi)((0,r.pi)({},go),{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,i,o,a){var s=r.isEnabled&&i.isHydrated;we(t,n,r,i,o,a.transformTemplate,s?Gi:void 0,s?Ki:void 0)},render:Me})),Eo=function(e,t){return M(e)?bo(t,{enableHardwareAcceleration:!1}):yo(t,{enableHardwareAcceleration:!0})},_o=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Sr),ht),Ti),Ui),wo=A((function(e,t){return function(e,t,n,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=M(e)?He:Ue;return(0,r.pi)((0,r.pi)({},s),{preloadedFeatures:n,useRender:ke(a),createVisualElement:i,Component:e})}(e,t,_o,Eo)}))},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),i=n(93327),o=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(o._)}function c(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=(0,i.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 o},R:function(){return a}});var r=new Set;function i(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function o(e){return r.add(e),function(){return r.delete(e)}}function a(){if(r.size){var e=0,t=[[]],n=[],o=function(n){return i(t,n,e)},a=function(t){i(n,t,e),e++};r.forEach((function(t){t(o,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 o},nP:function(){return c},pY:function(){return f},dV:function(){return s}});var r=n(81439);function i(e){return e}function o(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,o=e.bottom,a=e.right;void 0===t&&(t=i);var s=t({x:r,y:n}),u=t({x:a,y:o});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 f(){return{x:(0,r.pi)({},l),y:(0,r.pi)({},l)}}},45930:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(67294);function i(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 i}});var r=n(67294);function i(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},64910:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});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)-.*))$/,i=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 i},pi:function(){return o},_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 i(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 o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);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,i="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(i())}),r)};var a=!0,s=!1,u=!1,c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],f=l.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,o=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var u=s&&i,c=u?t:n;return a&&o.add(e),-1===c.indexOf(e)&&(c.push(e),u&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(s){var u;if(i=!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),o.has(l)&&(a.schedule(l),e())}i=!1}};return a}((function(){return s=!0})),e}),{}),d=l.reduce((function(e,t){var n=f[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]=f[t].cancel,e}),{}),h=l.reduce((function(e,t){return e[t]=function(){return f[t].process(c)},e}),{}),m=function(e){return f[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,o(v))},g=function(){s=!0,a=!0,u||o(v)},y=function(){return c},b=d},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()},i="undefined"!==typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(r())}),n)};var o=!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,i=!1,o=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var u=s&&i,c=u?t:n;return a&&o.add(e),-1===c.indexOf(e)&&(c.push(e),u&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(s){var u;if(i=!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),o.has(l)&&(a.schedule(l),e())}i=!1}};return a}((function(){return a=!0})),e}),{}),f=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}),{}),d=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=o?n:Math.max(Math.min(e-u.timestamp,40),1),u.timestamp=e,s=!0,c.forEach(h),s=!1,a&&(o=!1,i(m))},v=function(){a=!0,o=!0,s||i(m)};t.cancelSync=d,t.default=f,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=o;const i=Object.hasOwnProperty;function o(){if(!(this instanceof o))return new o;this.reset()}function a(e,t){return"string"!==typeof e?"":(t||(e=e.toLowerCase()),e.replace(r,"").replace(/ /g,"-"))}o.prototype.slug=function(e,t){const n=this;let r=a(e,!0===t);const o=r;for(;i.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r},o.prototype.reset=function(){this.occurrences=Object.create(null)},o.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),i=n(11218),o=n(99560),a=n(99640),s=n(143),u=n(56851),c=n(57848),l=n(70006),f=n(48145),d=f("root"),p=f("element"),h=f("text");function m(e,t,n){var r,o,a=n.schema,s=a,u=t.tagName,c={},f=[],d=-1;for(r in"html"===a.space&&"svg"===u.toLowerCase()&&(s=i,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(;++d<t.children.length;)o=t.children[d],p(o)?f.push(m(e,o,n)):h(o)&&f.push(o.value);return n.schema=a,f.length?e.call(t,u,c,f):e.call(t,u,c)}function v(e,t,n,r,i){var l,f=o(r.schema,t);null==n||n!==n||!1===n&&(r.vue||r.vdom||r.hyperscript)||!n&&f.boolean&&(r.vue||r.vdom||r.hyperscript)||(n&&"object"===typeof n&&"length"in n&&(n=(f.commaSeparated?u:s).stringify(n)),f.boolean&&r.hyperscript&&(n=""),"style"===f.property&&"string"===typeof n&&(r.react||r.vue||r.vdom)&&(n=function(e,t){var n={};try{c(e,r)}catch(i){throw i.message=t+"[style]"+i.message.slice("undefined".length),i}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,i)),r.vue?"style"!==f.property&&(l="attrs"):f.mustUseProperty||(r.vdom?"style"!==f.property&&(l="attributes"):r.hyperscript&&(l="attrs")),l?(e[l]||(e[l]={}),e[l][f.attribute]=n):f.space&&r.react?e[a[f.property]||f.property]=n:e[f.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 o,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?(o=a,a={}):o=a.prefix;if(d(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?i:r,prefix:null==o?s||u||c?"h-":null:o,key:0,react:s,vue:u,vdom:c,hyperscript:g(e)})}},143: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},92114:function(e,t,n){"use strict";var r=n(9505),i=n(31742),o=n(99560),a=n(97247),s=n(11218),u=n(14787),c=n(70006);e.exports=function(e,t){var n,r=t||{};r.messages?(n=r,r={}):n=r.file;return d(e,{schema:"svg"===r.space?s:a,file:n,verbose:r.verbose})};var l={}.hasOwnProperty,f={"#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 d(e,t){var n,r,i,o=t.schema,u=l.call(f,e.nodeName)?f[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]=d(e[n],t);return r}(e.childNodes,t)),r=u(e,n,t),e.sourceCodeLocation&&t.file&&(i=m(r,e.sourceCodeLocation,t))&&(t.location=!0,r.position=i),t.schema=o,r}function p(e,t,n){var r,i,o={type:"root",children:t,data:{quirksMode:"quirks"===e.mode||"limited-quirks"===e.mode}};return n.file&&n.location&&(r=String(n.file),i=u(r),o.position={start:i.toPoint(0),end:i.toPoint(r.length)}),o}function h(e,t,n){for(var o,a,s,u,c,l="svg"===n.schema.space?r:i,f={},p=-1;++p<e.attrs.length;)f[((a=e.attrs[p]).prefix?a.prefix+":":"")+a.name]=a.value;return"template"===(o=l(e.tagName,f,t)).tagName&&"content"in e&&(u=(s=e.sourceCodeLocation)&&s.startTag&&v(s.startTag).end,c=s&&s.endTag&&v(s.endTag).start,o.content=d(e.content,n),(u||c)&&n.file&&(o.content.position={start:u,end:c})),o}function m(e,t,n){var r,i,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(i in a={},t.attrs)a[o(n.schema,i).property]=v(t.attrs[i]);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,i=[];for(;++r<n;)i[r]=t(e[r]);return i}(e),r=n.length;return i;function i(){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,i,o,a=e||"",s=n||"div",u={},c=0;for(;c<a.length;)t.lastIndex=c,o=t.exec(a),(r=a.slice(c,o?o.index:a.length))&&(i?"#"===i?u.id=r:u.className?u.className.push(r):u.className=[r]:s=r,c+=r.length),o&&(i=o[0],c++);return{type:"element",tagName:s,properties:u,children:[]}};var t=/[#.]/g},85330:function(e,t,n){"use strict";var r=n(96464),i=n(83216),o=n(33262);e.exports=function(e){var t,n,i,o,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(i=t[l])?void 0!==o&&i>o&&(o=i):i&&(o&&n.push(r("\n",o)),o=0,n.push(i));return n.join("")};var a=/\n/g,s=/[\t ]+/g,u=i("br"),c=i("p"),l=i(["th","td"]),f=i("tr"),d=i(["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=i(["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 i,a,s=y(e,r),m=e.children||[],v=-1,g=[];if(d(e))return g;u(e)||f(e)&&o(n,e,f)?a="\n":c(e)?(i=2,a=2):p(e)&&(i=1,a=1);for(;++v<m.length;)g=g.concat(h(m[v],v,e,{whiteSpace:s,breakBefore:v?null:i,breakAfter:v<m.length-1?u(m[v+1]):a}));l(e)&&o(n,e,l)&&g.push("\t");i&&g.unshift(i);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,i,o=String(e.value),s=[],u=[],c=0,l=-1;c<o.length;)a.lastIndex=c,r=(n=a.exec(o))?n.index:o.length,s.push(g(o.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]),i=""):s[l]&&(i&&u.push(i),u.push(s[l]),i=" ");return u.join("")}function v(e){return String(e.value)}function g(e,t,n){for(var r,i,o=[],a=0;a<e.length;)s.lastIndex=a,i=(r=s.exec(e))?r.index:e.length,a||i||!r||t||o.push(""),a!==i&&o.push(e.slice(a,i)),a=r?i+r[0].length:i;return a===i||n||o.push(""),o.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),i=n(66632),o=n(78892),a=n(32473).Q,s=n(56851).parse;e.exports=function(e,t,n){var i=n?function(e){var t,n=e.length,r=-1,i={};for(;++r<n;)i[(t=e[r]).toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),f=a.tagName.toLowerCase();a.tagName=i&&u.call(i,f)?i[f]:f,n&&c(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)d(a.properties,r,n[r]);l(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function d(t,n,i){var o,u,c;null!==i&&void 0!==i&&i===i&&(u=(o=r(e,n)).property,"string"===typeof(c=i)&&(o.spaceSeparated?c=a(c):o.commaSeparated?c=s(c):o.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===u&&"string"!==typeof i&&(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,i,o;if("object"!==typeof n||!("length"in n))return f(e,t,n);i=n.length,r=-1,o=[];for(;++r<i;)o[r]=f(e,t,n[r]);return o}(o,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 f(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&&i(n)!==i(t)||(r=!0)),r}},52579:function(e,t,n){"use strict";var r=n(97247),i=n(62502)(r,"div");i.displayName="html",e.exports=i},31742:function(e,t,n){"use strict";e.exports=n(52579)},32473:function(e,t){"use strict";t.Q=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)};var n=/[ \t\n\r\f]+/g},9505:function(e,t,n){"use strict";var r=n(11218),i=n(76947),o=n(62502)(r,"g",i);o.displayName="svg",e.exports=o},1527:function(e,t){"use strict";function n(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 i(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)||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 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]:[],o=!(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,i=t;return u.forEach((function(e,t){var a,c=e.keyAccessor;if(e.isProp){var l=i,f=l[c],d=n(l,[c].map(s));a=f,i=d}else a=c(i,t);t+1<u.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):o?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(i)):r[a]=i})),e}),{});o 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]=o(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 o=r(t,2),a=o[0],s=o[1];return e(s,[].concat(i(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*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\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 f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:f,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:f,column:d},this.source=u.source}m.prototype.content=e;var v=[];function g(t){var n=new Error(u.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=u.source,n.line=f,n.column=d,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 d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=y(i);if(n){if(_(),!y(o))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=w();)!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}},32802:function(e,t){var n,r,i;function o(e){return(o="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 a,s,u,c={},l={};function f(e){var t={};return e.forEach((function(e,n){t[e]=!0})),Object.keys(t)}function d(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function p(e,t){var n=e._assoc_mat[t]?Object.keys(e._assoc_mat[t]):[],r=0;return n.forEach((function(n,i){var o=e._assoc_mat[t][n]||1;t===n&&(o*=2),r+=o})),r}function h(e,t){return"undefined"===typeof e._assoc_mat[t]?[]:Object.keys(e._assoc_mat[t])}function m(e,t,n){return e._assoc_mat[t]?e._assoc_mat[t][n]:void 0}function v(e){var t={};return e.forEach((function(e,n){t[e.source]=t[e.source]||{},t[e.source][e.target]=e.weight,t[e.target]=t[e.target]||{},t[e.target][e.source]=e.weight})),t}function g(e){if(null===e||"object"!==o(e))return e;var t=e.constructor();for(var n in e)t[n]=g(e[n]);return t}function y(e,t,n){t.nodes_to_com={},t.total_weight=0,t.internals={},t.degrees={},t.gdegrees={},t.loops={},t.total_weight=function(e){var t=0;return e.edges.forEach((function(e){t+=e.weight})),t}(e),"undefined"===typeof n?e.nodes.forEach((function(n,r){t.nodes_to_com[n]=r;var i=p(e,n);if(i<0)throw new TypeError("Graph should only have positive weights.");t.degrees[r]=i,t.gdegrees[n]=i,t.loops[n]=m(e,n,n)||0,t.internals[r]=t.loops[n]})):e.nodes.forEach((function(r,i){var o=n[r];t.nodes_to_com[r]=o;var a=p(e,r);t.degrees[o]=(t.degrees[o]||0)+a,t.gdegrees[r]=a;var s=0;h(e,r).forEach((function(t){var i=e._assoc_mat[r][t];if(i<=0)throw new TypeError("Graph should only have positive weights.");n[t]===o&&(s+=t===r?i:i/2)})),t.internals[o]=(t.internals[o]||0)+s}))}function b(e){var t=e.total_weight,n=0;return f(d(e.nodes_to_com)).forEach((function(r,i){var o=e.internals[r]||0,a=e.degrees[r]||0;t>0&&(n=n+o/t-Math.pow(a/(2*t),2))})),n}function E(e,t,n){var r={};return h(t,e).forEach((function(i){if(i!==e){var o=t._assoc_mat[e][i]||1,a=n.nodes_to_com[i];r[a]=(r[a]||0)+o}})),r}function _(e,t,n,r){r.nodes_to_com[e]=+t,r.degrees[t]=(r.degrees[t]||0)+(r.gdegrees[e]||0),r.internals[t]=(r.internals[t]||0)+n+(r.loops[e]||0)}function w(e,t,n,r){r.degrees[t]=(r.degrees[t]||0)-(r.gdegrees[e]||0),r.internals[t]=(r.internals[t]||0)-n-(r.loops[e]||0),r.nodes_to_com[e]=-1}function x(e){var t=0,n=g(e),r={};return Object.keys(e).forEach((function(i){var o=e[i],a="undefined"===typeof r[o]?-1:r[o];-1===a&&(r[o]=t,a=t,t+=1),n[i]=a})),n}function T(e,t){for(var n=!0,r=0,i=b(t),o=i;n&&-1!==r&&(i=o,n=!1,r+=1,e.nodes.forEach((function(r,i){var o=t.nodes_to_com[r],a=(t.gdegrees[r]||0)/(2*t.total_weight),s=E(r,e,t);w(r,o,s[o]||0,t);var u=o,c=0;Object.keys(s).forEach((function(e){var n=s[e]-(t.degrees[e]||0)*a;n>c&&(c=n,u=e)})),_(r,u,s[u]||0,t),u!==o&&(n=!0)})),!((o=b(t))-i<1e-7)););}function k(e,t){var n,r,i={nodes:[],edges:[],_assoc_mat:{}},o=d(e);return i.nodes=i.nodes.concat(f(o)),t.edges.forEach((function(t,o){r=t.weight||1;var a=e[t.source],s=e[t.target];n=m(i,a,s)||0,function(e,t){!function(e,t){e._assoc_mat[t.source]=e._assoc_mat[t.source]||{},e._assoc_mat[t.source][t.target]=t.weight,e._assoc_mat[t.target]=e._assoc_mat[t.target]||{},e._assoc_mat[t.target][t.source]=t.weight}(e,t),l[t.source+"_"+t.target]?e.edges[l[t.source+"_"+t.target]].weight=t.weight:(e.edges.push(t),l[t.source+"_"+t.target]=e.edges.length-1)}(i,{source:a,target:s,weight:n+r})})),l={},i}"undefined"!==typeof self&&self,r=[],void 0===(i="function"===typeof(n=function(){return function(){var e=function(){var e=function(e,t){if(0===e.edges.length){var n={};return e.nodes.forEach((function(e){n[e]=e})),n}var r={};y(c,r,t);var i=b(r),o=[];T(c,r);var a=b(r),s=x(r.nodes_to_com);o.push(s),i=a;var u=k(s,c);for(y(u,r);T(u,r),!((a=b(r))-i<1e-7);)s=x(r.nodes_to_com),o.push(s),i=a,y(u=k(s,u),r);return o}(c,u);return function(e,t){for(var n=g(e[0]),r=function(t){Object.keys(n).forEach((function(r,i){var o=r,a=n[r];n[o]=e[t][a]}))},i=1;i<t+1;i++)r(i);return n}(e,e.length-1)};return e.nodes=function(t){return arguments.length>0&&(a=t),e},e.edges=function(t){if("undefined"===typeof a)throw new TypeError("Graph nodes are undefined");if(arguments.length>0){s=t;var n=v(t);c={nodes:a,edges:s,_assoc_mat:n}}return e},e.partition_init=function(t){return arguments.length>0&&(u=t),e},e}})?n.apply(t,r):n)||(e.exports=i)},36808:function(e,t,n){var r,i;!function(o){if(void 0===(i="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();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 i(){}function o(t,n,o){if("undefined"!==typeof document){"number"===typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.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 o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[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(i[c]=u,e===c)break}catch(l){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},44858:function(e,t,n){"use strict";var r=n(20296),i=n.n(r);function o(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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,i=void 0===r?null:r,o=n.triggerUpdate,a=void 0===o||o,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=i,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,f=void 0===l?{}:l,d=e.init,p=void 0===d?function(){}:d,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=i()((function(){t.initialised&&(m.call(a,t,r),r={})}),1);return v.forEach((function(e){a[e.name]=function(e){var n=e.name,i=e.triggerUpdate,o=void 0!==i&&i,s=e.onChange,c=void 0===s?function(e,t){}:s,l=e.defaultVal,f=void 0===l?null:l;return function(e){var i=t[n];if(!arguments.length)return i;var s=void 0===e?f:e;return t[n]=s,c.call(a,s,t,i),!r.hasOwnProperty(n)&&(r[n]=i),o&&u(),a}}(e)})),Object.keys(c).forEach((function(e){a[e]=function(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=c[e]).call.apply(n,[a,t].concat(i))}})),Object.entries(f).forEach((function(e){var t=o(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",i=/^\s+|\s+$/g,o=/^[-+]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,f=c||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return f.Date.now()};function v(e,t,n){var i,o,a,s,u,c,l=0,f=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function E(e){return l=e,u=setTimeout(w,t),f?b(e):s}function _(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=a}function w(){var e=m();if(_(e))return x(e);u=setTimeout(w,function(e){var n=t-(e-c);return d?h(n,a-(e-l)):n}(e))}function x(e){return u=void 0,v&&i?b(e):(i=o=void 0,s)}function T(){var e=m(),n=_(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return E(c);if(d)return u=setTimeout(w,t),b(c)}return void 0===u&&(u=setTimeout(w,t)),s}return t=y(t)||0,g(n)&&(f=!!n.leading,a=(d="maxWait"in n)?p(y(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),T.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},T.flush=function(){return void 0===u?s:x(m())},T}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]"==d.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(i,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),v(e,t,{leading:i,maxWait:t,trailing:o})}},52491:function(e){"use strict";e.exports=function(e,t){var n,r,i=0,o=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),r=e.indexOf(t),n=r;for(;-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}},78234:function(e,t,n){"use strict";var r=n(96464);e.exports=function(e,t){var n,l,f,d,p,h,m,v,g,y,b,E=t||{},_=!1!==E.padding,w=!1!==E.delimiterStart,x=!1!==E.delimiterEnd,T=(E.align||[]).concat(),k=!1!==E.alignDelimiters,O=[],C=E.stringLength||u,A=-1,S=e.length,M=[],D=[],I=[],P=[],N=[],R=0;for(;++A<S;){for(n=e[A],l=-1,f=n.length,I=[],P=[],f>R&&(R=f);++l<f;)L=n[l],h=null===L||void 0===L?"":String(L),!0===k&&(p=C(h),P[l]=p,(void 0===(d=N[l])||p>d)&&(N[l]=p)),I.push(h);M[A]=I,D[A]=P}var L;if(l=-1,f=R,"object"===typeof T&&"length"in T)for(;++l<f;)O[l]=c(T[l]);else for(b=c(T);++l<f;)O[l]=b;l=-1,f=R,I=[],P=[];for(;++l<f;)b=O[l],g="",y="",108===b?g=a:b===s?y=a:99===b&&(g=a,y=a),p=k?Math.max(1,N[l]-g.length-y.length):1,h=g+r("-",p)+y,!0===k&&((p=g.length+p+y.length)>N[l]&&(N[l]=p),P[l]=p),I[l]=h;M.splice(1,0,I),D.splice(1,0,P),A=-1,S=M.length,m=[];for(;++A<S;){for(I=M[A],P=D[A],l=-1,f=R,v=[];++l<f;)h=I[l]||"",g="",y="",!0===k&&(p=N[l]-(P[l]||0),(b=O[l])===s?g=r(o,p):99===b?p%2===0?(g=r(o,p/2),y=g):(g=r(o,p/2+.5),y=r(o,p/2-.5)):y=r(o,p)),!0===w&&0===l&&v.push("|"),!0!==_||!1===k&&""===h||!0!==w&&0===l||v.push(o),!0===k&&v.push(g),v.push(h),!0===k&&v.push(y),!0===_&&v.push(o),!0!==x&&l===f-1||v.push("|");v=v.join(""),!1===x&&(v=v.replace(i,"")),m.push(v)}return m.join("\n")};var i=/ +$/,o=" ",a=":",s=114;function u(e){return e.length}function c(e){var t="string"===typeof e?e.charCodeAt(0):0;return 76===t||108===t?108:82===t||t===s?s:67===t||99===t?99:0}},90233:function(e,t,n){"use strict";n.r(t),n.d(t,{rankings:function(){return a}});var r=n(87462),i=n(76826),o=n.n(i),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,i=r.keys,o=r.threshold,s=void 0===o?a.MATCHES:o,c=r.baseSort,f=void 0===c?u:c;return e.reduce((function(e,r,o){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:d(n)})})),t}),[])}(e,t).reduce((function(e,t,i){var o=e.rank,s=e.rankedItem,u=e.keyIndex,c=e.keyThreshold,f=t.itemValue,d=t.attributes,p=l(f,n,r),h=s,m=d.minRanking,v=d.maxRanking,g=d.threshold;return p<m&&p>=a.MATCHES?p=m:p>v&&(p=v),p>o&&(o=p,u=i,c=g,h=f),{rankedItem:h,rank:o,keyIndex:u,keyThreshold:c}}),{rank:a.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,i,t,n),c=u.rankedItem,f=u.rank,p=u.keyIndex,h=u.keyThreshold;f>=(void 0===h?s:h)&&e.push({rankedItem:c,item:r,rank:f,index:o,keyIndex:p});return e}),[]).sort((function(e,t){return function(e,t,n){var r=-1,i=1,o=e.rank,a=e.keyIndex,s=t.rank,u=t.keyIndex;return o===s?a===u?n(e,t):a<u?r:i:o>s?r:i}(e,t,f)})).map((function(e){return e.item}))}function l(e,t,n){if(e=f(e,n),(t=f(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),i=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),o=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 i=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=i[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:i?a.STRING_CASE+r:r>0&&o?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 i(e,t,r){for(var i=r;i<t.length;i++){if(t[i]===e)return n+=1,i+1}return-1}function o(e){var r=n/t.length;return a.MATCHES+r*(1/e)}var s=i(t[0],e,0);if(s<0)return a.NO_MATCH;r=s;for(var u=1;u<t.length;u++){if(!((r=i(t[u],e,r))>-1))return a.NO_MATCH}return o(r-s)}(e,t)}function f(e,t){return e=""+e,t.keepDiacritics||(e=o()(e)),e}function d(e){return"string"===typeof e&&(e={key:e}),(0,r.Z)({maxRanking:1/0,minRanking:-1/0},e)}t.default=c},86630:function(e,t,n){"use strict";var r=n(62854);e.exports=function(e,t){return function(e){return t;function t(t){var n=t&&o(t);return n&&i.call(e,n)?e[n]:null}}(function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",n),t;function n(e){var n=o(e.identifier);i.call(t,n)||(t[n]=e)}}(e))};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},52962:function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o;"string"===typeof t||t&&"function"===typeof t.exec?o=[[t,n]]:(o=t,r=n);return s(e,i=r||{},function e(t){var n=t[0];return r;function r(r,o){var u,c,l,f,d=n[0],p=n[1],h=[],m=0,v=o.children.indexOf(r);for(d.lastIndex=0,c=d.exec(r.value);c&&(u=c.index,!1!==(f=p.apply(null,[].concat(c,{index:c.index,input:c.input})))&&(m!==u&&h.push({type:"text",value:r.value.slice(m,u)}),"string"===typeof f&&f.length>0&&(f={type:"text",value:f}),f&&(h=[].concat(h,f)),m=u+c[0].length),d.global);)c=d.exec(r.value);if(void 0===u?(h=[r],v--):(m<r.value.length&&h.push({type:"text",value:r.value.slice(m)}),h.unshift(v,1),a.apply(o.children,h)),t.length>1)for(l=e(t.slice(1)),u=-1;++u<h.length;)"text"===(r=h[u]).type?l(r,o):s(r,i,l);return v+h.length+1}}(function(e){var t,n,r=[];if("object"!==typeof e)throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)r.push([u(e[n][0]),c(e[n][1])]);else for(t in e)r.push([u(t),c(e[t])]);return r}(o))),e};var r=n(99294),i=n(48145),o=n(31719),a=[].splice;function s(e,t,n){var o=i(t.ignore||[]);return r(e,"text",(function(e,t){var r,i,a=-1;for(;++a<t.length;){if(r=t[a],o(r,i?i.children.indexOf(r):void 0,i))return;i=r}return n(e,i)})),[]}function u(e){return"string"===typeof e?new RegExp(o(e),"g"):e}function c(e){return"function"===typeof e?e:function(){return e}}},31719:function(e){"use strict";e.exports=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},52524:function(e,t,n){"use strict";e.exports=function(e,t,n){"string"!==typeof t&&(n=t,t=void 0);return function(e){var t=e||{},n=function(e,t){var n=-1;for(;++n<t.length;)p(e,t[n]);return e}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:g(de),autolinkProtocol:j,autolinkEmail:j,atxHeading:g(ue),blockQuote:g(re),characterEscape:j,characterReference:j,codeFenced:g(ie),codeFencedFenceInfo:y,codeFencedFenceMeta:y,codeIndented:g(ie,y),codeText:g(oe,y),codeTextData:j,data:j,codeFlowValue:j,definition:g(ae),definitionDestinationString:y,definitionLabelString:y,definitionTitleString:y,emphasis:g(se),hardBreakEscape:g(ce),hardBreakTrailing:g(ce),htmlFlow:g(le,y),htmlFlowData:j,htmlText:g(le,y),htmlTextData:j,image:g(fe),label:y,link:g(de),listItem:g(he),listItemValue:T,listOrdered:g(pe,x),listUnordered:g(pe),paragraph:g(me),reference:X,referenceString:y,resourceDestinationString:y,resourceTitleString:y,setextHeading:g(ue),strong:g(ve),thematicBreak:g(ye)},exit:{atxHeading:E(),atxHeadingSequence:P,autolink:E(),autolinkEmail:ne,autolinkProtocol:te,blockQuote:E(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:ee,codeFenced:E(A),codeFencedFence:C,codeFencedFenceInfo:k,codeFencedFenceMeta:O,codeFlowValue:F,codeIndented:E(S),codeText:E(V),codeTextData:F,data:F,definition:E(),definitionDestinationString:I,definitionLabelString:M,definitionTitleString:D,emphasis:E(),hardBreakEscape:E(H),hardBreakTrailing:E(H),htmlFlow:E(z),htmlFlowData:F,htmlText:E(U),htmlTextData:F,image:E(G),label:q,labelText:K,lineEnding:B,link:E(W),listItem:E(),listOrdered:E(),listUnordered:E(),paragraph:E(),referenceString:Q,resourceDestinationString:Z,resourceTitleString:$,resource:Y,setextHeading:E(L),setextHeadingLineSequence:R,setextHeadingText:N,strong:E(),thematicBreak:E()}},t.mdastExtensions||[]),u={};return c;function c(e){for(var t,r={type:"root",children:[]},a=[],s=[],u=-1,c={stack:[r],tokenStack:a,config:n,enter:b,exit:_,buffer:y,resume:w,setData:h,getData:m};++u<e.length;)"listOrdered"!==e[u][1].type&&"listUnordered"!==e[u][1].type||("enter"===e[u][0]?s.push(u):u=l(e,s.pop(u),u));for(u=-1;++u<e.length;)t=n[e[u][0]],o.call(t,e[u][1].type)&&t[e[u][1].type].call(i({sliceSerialize:e[u][2].sliceSerialize},c),e[u][1]);if(a.length)throw new Error("Cannot close document, a token (`"+a[a.length-1].type+"`, "+d({start:a[a.length-1].start,end:a[a.length-1].end})+") is still open");for(r.position={start:v(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:v(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<n.transforms.length;)r=n.transforms[u](r)||r;return r}function l(e,t,n){for(var r,i,o,a,s,u,c,l=t-1,f=-1,d=!1;++l<=n;)if("listUnordered"===(s=e[l])[1].type||"listOrdered"===s[1].type||"blockQuote"===s[1].type?("enter"===s[0]?f++:f--,c=void 0):"lineEndingBlank"===s[1].type?"enter"===s[0]&&(!r||c||f||u||(u=l),c=void 0):"linePrefix"===s[1].type||"listItemValue"===s[1].type||"listItemMarker"===s[1].type||"listItemPrefix"===s[1].type||"listItemPrefixWhitespace"===s[1].type||(c=void 0),!f&&"enter"===s[0]&&"listItemPrefix"===s[1].type||-1===f&&"exit"===s[0]&&("listUnordered"===s[1].type||"listOrdered"===s[1].type)){if(r){for(i=l,o=void 0;i--;)if("lineEnding"===(a=e[i])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;o&&(e[o][1].type="lineEndingBlank",d=!0),a[1].type="lineEnding",o=i}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;u&&(!o||u<o)&&(r._spread=!0),r.end=v(o?e[o][1].start:s[1].end),e.splice(o||l,0,["exit",r,s[2]]),l++,n++}"listItemPrefix"===s[1].type&&(r={type:"listItem",_spread:!1,start:v(s[1].start)},e.splice(l,0,["enter",r,s[2]]),l++,n++,u=void 0,c=!0)}return e[t][1]._spread=d,n}function h(e,t){u[e]=t}function m(e){return u[e]}function v(e){return{line:e.line,column:e.column,offset:e.offset}}function g(e,t){return n;function n(n){b.call(this,e(n),n),t&&t.call(this,n)}}function y(){this.stack.push({type:"fragment",children:[]})}function b(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:v(t.start)},e}function E(e){return t;function t(t){e&&e.call(this,t),_.call(this,t)}}function _(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+d({start:e.start,end:e.end})+"): it\u2019s not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+d({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+d({start:n.start,end:n.end})+") is open");return t.position.end=v(e.end),t}function w(){return r(this.stack.pop())}function x(){h("expectingFirstListItemValue",!0)}function T(e){m("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),h("expectingFirstListItemValue"))}function k(){var e=this.resume();this.stack[this.stack.length-1].lang=e}function O(){var e=this.resume();this.stack[this.stack.length-1].meta=e}function C(){m("flowCodeInside")||(this.buffer(),h("flowCodeInside",!0))}function A(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h("flowCodeInside")}function S(){var e=this.resume();this.stack[this.stack.length-1].value=e}function M(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()}function D(){var e=this.resume();this.stack[this.stack.length-1].title=e}function I(){var e=this.resume();this.stack[this.stack.length-1].url=e}function P(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)}function N(){h("setextHeadingSlurpLineEnding",!0)}function R(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function L(){h("setextHeadingSlurpLineEnding")}function j(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n=ge()).position={start:v(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function F(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=v(e.end)}function B(e){var t=this.stack[this.stack.length-1];if(m("atHardBreak"))return t.children[t.children.length-1].position.end=v(e.end),void h("atHardBreak");!m("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(j.call(this,e),F.call(this,e))}function H(){h("atHardBreak",!0)}function z(){var e=this.resume();this.stack[this.stack.length-1].value=e}function U(){var e=this.resume();this.stack[this.stack.length-1].value=e}function V(){var e=this.resume();this.stack[this.stack.length-1].value=e}function W(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),h("referenceType")}function G(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),h("referenceType")}function K(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()}function q(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,h("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Z(){var e=this.resume();this.stack[this.stack.length-1].url=e}function $(){var e=this.resume();this.stack[this.stack.length-1].title=e}function Y(){h("inReference")}function X(){h("referenceType","collapsed")}function Q(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),h("referenceType","full")}function J(e){h("characterReferenceType",e.type)}function ee(e){var t,n,r=this.sliceSerialize(e),i=m("characterReferenceType");i?(t=s(r,"characterReferenceMarkerNumeric"===i?10:16),h("characterReferenceType")):t=f(r),(n=this.stack.pop()).value+=t,n.position.end=v(e.end)}function te(e){F.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function ne(e){F.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function re(){return{type:"blockquote",children:[]}}function ie(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function ue(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function de(){return{type:"link",title:null,url:"",children:[]}}function pe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function he(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ve(){return{type:"strong",children:[]}}function ge(){return{type:"text",value:""}}function ye(){return{type:"thematicBreak"}}}(n)(l(u(n).document().write(c()(e,t,!0))))};var r=n(4999),i=n(99198),o=n(46706),a=n(35478),s=n(10596),u=n(32976),c=n(30162),l=n(61242),f=n(89435),d=n(75432);function p(e,t){var n,r;for(n in t)r=o.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},39671:function(e,t,n){"use strict";e.exports=n(52524)},2215:function(e,t,n){e.exports=function(e){var t,n=r(e),s=n.length,u=-1,c={},l={};for(;++u<s;)t=n[u],c[t.type]=i(t),l[t.type]=o,l[t.type+"Value"]=a;return{enter:c,exit:l}};var r=n(74035);function i(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function o(e){var t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function a(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}},63934:function(e,t,n){e.exports=function(e){var t,n=[],a={},s=r(e),u=s.length,c=-1;for(;++c<u;)t=s[c],a[t.type]=i(t),n.push({atBreak:!0,character:o(t,"open").charAt(0)});return{unsafe:n,handlers:a}};var r=n(74035);function i(e){var t=o(e,"open"),n=o(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+n}}function o(e,t){var n;return e.marker?(n=a(e.marker,t))+n+n:a(e.fence,t)}function a(e,t){return"string"===typeof e?e:e[t]}},57824:function(e,t,n){var r=n(30932),i=n(52962),o=n(36996),a=n(10395);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function u(e,t,n,i,o){var a,s,u="";return!!l(o)&&(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!!function(e){var t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n)&&(!!(a=function(e){var t,n,i,o=/[!"&'),.:;<>?\]}]+$/.exec(e);if(o)for(e=e.slice(0,o.index),t=(o=o[0]).indexOf(")"),n=r(e,"("),i=r(e,")");-1!==t&&n>i;)e+=o.slice(0,t+1),t=(o=o.slice(t+1)).indexOf(")"),i++;return[e,o]}(n+i))[0]&&(s={type:"link",title:null,url:u+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(s=[s,{type:"text",value:a[1]}]),s)))}function c(e,t,n,r){return!(!l(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function l(e,t){var n=e.input.charCodeAt(e.index-1);return(n!==n||a(n)||o(n))&&(!t||47!==n)}t.transforms=[function(e){i(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,u],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,c]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},45574:function(e,t){var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},89828:function(e,t){t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},9888:function(e,t,n){var r=n(25362);function i(e,t,n){var i=n.enter("emphasis"),o=r(e,n,{before:"~",after:"~"});return i(),"~~"+o+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:i},i.peek=function(){return"~"}},4865:function(e,t){function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function i(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,i));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},63046:function(e,t,n){var r=n(25362),i=n(11595),o=n(78234);e.exports=function(e){var t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return l(function(e,t){var n=e.children,r=-1,i=n.length,o=[],a=t.enter("table");for(;++r<i;)o[r]=f(n[r],t);return a(),o}(e,n),e.align)},tableRow:function(e,t,n){var r=l([f(e,n)]);return r.slice(0,r.indexOf("\n"))},tableCell:c,inlineCode:function(e,t,n){var r=i(e,t,n);-1!==n.stack.indexOf("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function c(e,t,n){var i=n.enter("tableCell"),o=r(e,n,{before:u,after:u});return i(),o}function l(e,t){return o(e,{align:t,alignDelimiters:a,padding:n,stringLength:s})}function f(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("tableRow");++r<i;)o[r]=c(n[r],0,t);return a(),o}}},29511:function(e,t){function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],i=n.children,o=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"===typeof n.checked&&o&&"text"===o.type){for(;++a<i.length;)if("paragraph"===i[a].type){t=i[a];break}t===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},94625:function(e,t,n){var r=n(48618);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var i=r(e,t,n),o=e.children[0];"boolean"===typeof e.checked&&o&&"paragraph"===o.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}},10438:function(e,t,n){var r=n(57824),i=n(89828),o=n(4865),a=n(29511),s={}.hasOwnProperty;function u(e,t){var n,r,i;for(n in t)r=s.call(e,n)?e[n]:e[n]={},i=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,i):Object.assign(r,i)}e.exports=function(e){var t={transforms:[],canContainEols:[]},n=e.length,r=-1;for(;++r<n;)u(t,e[r]);return t}([r,i,o,a])},48135:function(e,t,n){var r=n(45574),i=n(9888),o=n(63046),a=n(94625),s=n(2564);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,i,o(e),a]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},54550:function(e,t){"use strict";function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}t.enter={mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},e),this.buffer()}},t.exit={mathFlow:function(e){var t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t,this.setData("mathFlowInside")},mathFlowFence:function(){if(this.getData("mathFlowInside"))return;this.buffer(),this.setData("mathFlowInside",!0)},mathFlowFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},mathFlowValue:n,mathText:function(e){var t=this.resume(),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t},mathTextData:n}},74749:function(e,t,n){"use strict";t.unsafe=[{character:"\r",inConstruct:["mathFlowMeta"]},{character:"\r",inConstruct:["mathFlowMeta"]},{character:"$",inConstruct:["mathFlowMeta","phrasing"]},{atBreak:!0,character:"$",after:"\\$"}],t.handlers={math:function(e,t,n){var a,s=e.value||"",u=r("$",Math.max(i(s,"$")+1,2)),c=n.enter("mathFlow"),l=u;e.meta&&(a=n.enter("mathFlowMeta"),l+=o(n,e.meta,{before:"$",after:" ",encode:["$"]}),a());l+="\n",s&&(l+=s+"\n");return l+=u,c(),l},inlineMath:a},a.peek=function(){return"$"};var r=n(96464),i=n(52491),o=n(51113);function a(e){for(var t,n=e.value||"",i=1,o="";new RegExp("(^|[^$])"+r("\\$",i)+"([^$]|$)").test(n);)i++;return/[^ \r\n]/.test(n)&&(/[ \r\n$]/.test(n.charAt(0))||/[ \r\n$]/.test(n.charAt(n.length-1)))&&(o=" "),(t=r("$",i))+o+n+o+t}},55288:function(e,t,n){"use strict";e.exports=n(31601)},95426:function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o=t.children||[],a=o.length,s=[],u=-1;for(;++u<a;)(n=r(e,o[u],t))&&(u&&"break"===o[u-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(i=n.children&&n.children[0])&&i.value&&(i.value=i.value.replace(/^\s+/,""))),s=s.concat(n));return s};var r=n(60719)},61696:function(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,u=e.footnoteById,c=e.footnoteOrder,l=c.length,f=-1,d=[];for(;++f<l;)(t=u[c[f].toUpperCase()])&&(a=t.children.concat(),s=a[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"\u21a9"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),d.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));if(0===d.length)return null;return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:d})],!0))};var r=n(37552),i=n(47888),o=n(96115)},34590:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(96115),i=n(95426)},13562:function(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(50914)},37891:function(e,t,n){"use strict";e.exports=function(e,t){var n,i=t.value?t.value+"\n":"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};o&&(a.className=["language-"+o]);n=e(t,"code",a,[r("text",i)]),t.meta&&(n.data={meta:t.meta});return e(t.position,"pre",[n])};var r=n(50914)},59381:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(95426)},80790:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(95426)},58235:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteOrder,i=String(t.identifier);-1===n.indexOf(i)&&n.push(i);return e(t.position,"sup",{id:"fnref-"+i},[e(t,"a",{href:"#fn-"+i,className:["footnote-ref"]},[r("text",t.label||i)])])};var r=n(50914)},85758:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteById,i=e.footnoteOrder,o=1;for(;o in n;)o++;return o=String(o),i.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:o,position:t.position})};var r=n(58235)},34890:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(95426)},92202:function(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(50914)},71454:function(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);if(!o)return i(e,t);n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title);return e(t,"img",n)};var r=n(70729),i=n(713)},5037:function(e,t,n){"use strict";var r=n(70729);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"img",n)}},44617:function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(34590),break:n(13562),code:n(37891),delete:n(59381),emphasis:n(80790),footnoteReference:n(58235),footnote:n(85758),heading:n(34890),html:n(92202),imageReference:n(71454),image:n(5037),inlineCode:n(28409),linkReference:n(79266),link:n(20404),listItem:n(94463),list:n(47888),paragraph:n(68346),root:n(68100),strong:n(4970),table:n(72605),text:n(50989),thematicBreak:n(37552),toml:r,yaml:r,definition:r,footnoteDefinition:r}},28409:function(e,t,n){"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(50914)},79266:function(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);if(!a)return i(e,t);n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title);return e(t,"a",n,o(e,t))};var r=n(70729),i=n(713),o=n(95426)},20404:function(e,t,n){"use strict";var r=n(70729),i=n(95426);e.exports=function(e,t){var n={href:r(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"a",n,i(e,t))}},94463:function(e,t,n){"use strict";e.exports=function(e,t,n){var a,s,u,c=i(e,t),l=c[0],f=n?function(e){var t=e.spread,n=e.children,r=n.length,i=-1;for(;!t&&++i<r;)t=o(n[i]);return t}(n):o(t),d={},p=[];"boolean"===typeof t.checked&&(l&&"p"===l.tagName||(l=e(null,"p",[]),c.unshift(l)),l.children.length>0&&l.children.unshift(r("text"," ")),l.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),d.className=["task-list-item"]);a=c.length,s=-1;for(;++s<a;)u=c[s],(f||0!==s||"p"!==u.tagName)&&p.push(r("text","\n")),"p"!==u.tagName||f?p.push(u):p=p.concat(u.children);a&&(f||"p"!==u.tagName)&&p.push(r("text","\n"));return e(t,"li",d,p)};var r=n(50914),i=n(95426);function o(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}},47888:function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a={},s=t.ordered?"ol":"ul",u=-1;"number"===typeof t.start&&1!==t.start&&(a.start=t.start);n=i(e,t),o=n.length;for(;++u<o;)if(n[u].properties.className&&-1!==n[u].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,s,a,r(n,!0))};var r=n(96115),i=n(95426)},68346:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(95426)},68100:function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(50914),i=n(96115),o=n(95426)},4970:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(95426)},72605:function(e,t,n){"use strict";e.exports=function(e,t){var n,a,s,u,c,l=t.children,f=l.length,d=t.align||[],p=d.length,h=[];for(;f--;){for(a=l[f].children,u=0===f?"th":"td",n=p||a.length,s=[];n--;)c=a[n],s[n]=e(c,u,{align:d[n]},c?o(e,c):[]);h[f]=e(l[f],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0))].concat(h[1]?e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0)):[]),!0))};var r=n(77361),i=n(96115),o=n(95426)},50989:function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(50914)},37552:function(e){"use strict";e.exports=function(e,t){return e(t,"hr")}},31601:function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||d||(d=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,u={};return p.dangerous=r,p.definition=s(e),p.footnoteById=u,p.footnoteOrder=[],p.augment=c,p.handlers=Object.assign({},l,n.handlers),p.unknownHandler=n.unknownHandler,p.passThrough=n.passThrough,i(e,"footnoteDefinition",h),p;function c(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:o.start(r),end:o.end(r)}),t}function p(e,t,n,r){return void 0!==r&&null!==r||"object"!==typeof n||!("length"in n)||(r=n,n={}),c(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}function h(e){var t=String(e.identifier).toUpperCase();f.call(u,t)||(u[t]=e)}}(e,t),p=u(n,e),h=c(n);h&&(p.children=p.children.concat(r("text","\n"),h));return p};var r=n(50914),i=n(62854),o=n(77361),a=n(61744),s=n(86630),u=n(60719),c=n(61696),l=n(44617),f={}.hasOwnProperty,d=!1},60719:function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");r=o.call(e.handlers,i)?e.handlers[i]:e.passThrough&&e.passThrough.indexOf(i)>-1?s:e.unknownHandler;return("function"===typeof r?r:a)(e,t,n)};var r=n(50914),i=n(95426),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};if(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=i(e,t),n):t}},713:function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,u="]";"collapsed"===s?u+="[]":"full"===s&&(u+="["+(t.label||t.identifier)+"]");if("imageReference"===t.type)return r("text","!["+t.alt+u);n=i(e,t),(o=n[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","["));(a=n[n.length-1])&&"text"===a.type?a.value+=u:n.push(r("text",u));return n};var r=n(50914),i=n(95426)},96115:function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);t&&e.length>0&&n.push(r("text","\n"));return n};var r=n(50914)},2564:function(e){e.exports=function e(t,n){var r,i=-1;if(n.extensions)for(;++i<n.extensions.length;)e(t,n.extensions[i]);for(r in n)"extensions"===r||("unsafe"===r||"join"===r?t[r]=t[r].concat(n[r]||[]):"handlers"===r?t[r]=Object.assign(t[r],n[r]||{}):t.options[r]=n[r]);return t}},11595:function(e,t,n){e.exports=i,i.peek=function(){return"`"};var r=n(84553);function i(e,t,n){for(var i,o,a,s,u=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(u);)c+="`";for(/[^ \r\n]/.test(u)&&(/[ \r\n`]/.test(u.charAt(0))||/[ \r\n`]/.test(u.charAt(u.length-1)))&&(u=" "+u+" ");++l<n.unsafe.length;)if((i=n.unsafe[l]).atBreak)for(o=r(i);a=o.exec(u);)s=a.index,10===u.charCodeAt(s)&&13===u.charCodeAt(s-1)&&s--,u=u.slice(0,s)+" "+u.slice(a.index+1);return c+u+c}},48618:function(e,t,n){e.exports=function(e,t,n){var u,c,l,f=i(n),d=o(n);t&&t.ordered&&(f=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+".");u=f.length+1,("tab"===d||"mixed"===d&&(t&&t.spread||e.spread))&&(u=4*Math.ceil(u/4));return l=n.enter("listItem"),c=s(a(e,n),(function(e,t,n){if(t)return(n?"":r(" ",u))+e;return(n?f:f+r(" ",u-f.length))+e})),l(),c};var r=n(96464),i=n(89400),o=n(56636),a=n(93493),s=n(92670)},89400:function(e){e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},56636:function(e){e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},93493:function(e,t,n){e.exports=function(e,t){var n,i=e.children||[],o=[],a=-1;for(;++a<i.length;)n=i[a],o.push(t.handle(n,e,t,{before:"\n",after:"\n"})),a+1<i.length&&o.push(s(n,i[a+1]));return o.join("");function s(n,i){for(var o,a=-1;++a<t.join.length&&!0!==(o=t.join[a](n,i,e,t))&&1!==o;){if("number"===typeof o)return r("\n",1+Number(o));if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}};var r=n(96464)},25362:function(e){e.exports=function(e,t,n){var r,i,o,a=e.children||[],s=[],u=-1,c=n.before;for(;++u<a.length;)o=a[u],u+1<a.length?((i=t.handle.handlers[a[u+1].type])&&i.peek&&(i=i.peek),r=i?i(a[u+1],e,t,{before:"",after:""}).charAt(0):""):r=n.after,s.length>0&&("\r"===c||"\n"===c)&&"html"===o.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),c=" "),s.push(t.handle(o,e,t,{before:c,after:r})),c=s[s.length-1].slice(-1);return s.join("")}},92670:function(e){e.exports=function(e,n){var r,i=[],o=0,a=0;for(;r=t.exec(e);)s(e.slice(o,r.index)),i.push(r[0]),o=r.index+r[0].length,a++;return s(e.slice(o)),i.join("");function s(e){i.push(n(e,a,!e))}};var t=/\r?\n|\r/g},84553:function(e){e.exports=function(e){var t,n;e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g"));return e._compiled}},76112:function(e){function t(e,t,n){var r;if(!t)return n;for("string"===typeof t&&(t=[t]),r=-1;++r<t.length;)if(-1!==e.indexOf(t[r]))return!0;return!1}e.exports=function(e,n){return t(e,n.inConstruct,!0)&&!t(e,n.notInConstruct)}},51113:function(e,t,n){e.exports=function(e,t,n){var s,u,c,l,f,d,p,h,m=(n.before||"")+(t||"")+(n.after||""),v=[],g=[],y={},b=-1;for(;++b<e.unsafe.length;)if(l=e.unsafe[b],i(e.stack,l))for(f=r(l);d=f.exec(m);)s="before"in l||l.atBreak,u="after"in l,c=d.index+(s?d[1].length:0),-1===v.indexOf(c)?(v.push(c),y[c]={before:s,after:u}):(y[c].before&&!s&&(y[c].before=!1),y[c].after&&!u&&(y[c].after=!1));v.sort(o),p=n.before?n.before.length:0,h=m.length-(n.after?n.after.length:0),b=-1;for(;++b<v.length;)(c=v[b])<p||c>=h||c+1<h&&v[b+1]===c+1&&y[c].after&&!y[c+1].before&&!y[c+1].after||(p!==c&&g.push(a(m.slice(p,c),"\\")),p=c,!/[!-/:-@[-`{-~]/.test(m.charAt(c))||n.encode&&-1!==n.encode.indexOf(m.charAt(c))?(g.push("&#x"+m.charCodeAt(c).toString(16).toUpperCase()+";"),p++):g.push("\\"));return g.push(a(m.slice(p,h),n.after)),g.join("")};var r=n(84553),i=n(76112);function o(e,t){return e-t}function a(e,t){for(var n,r=/\\(?=[!-/:-@[-`{-~])/g,i=[],o=[],a=-1,s=0,u=e+t;n=r.exec(u);)i.push(n.index);for(;++a<i.length;)s!==i[a]&&o.push(e.slice(s,i[a])),o.push("\\"),s=i[a];return o.push(e.slice(s)),o.join("")}},4999:function(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},70729:function(e){"use strict";var t={};function n(e,r,i){var o,a,s,u,c,l="";for("string"!==typeof r&&(i=r,r=n.defaultChars),"undefined"===typeof i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))l+=e.slice(o,o+3),o+=2;else if(s<128)l+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},7969:function(e,t,n){e.exports=n(36385)},74035:function(e,t,n){e.exports=function(e){var t,n=e||"yaml",r=[],i=-1;"string"!==typeof n&&"length"in n||(n=[n]);t=n.length;for(;++i<t;)r[i]=a(n[i]);return r};var r=n(21102),i={}.hasOwnProperty,o={yaml:"-",toml:"+"};function a(e){var t=e;if("string"===typeof t){if(!i.call(o,t))throw r("Missing matter definition for `%s`",t);t={type:t,marker:o[t]}}else if("object"!==typeof t)throw r("Expected matter to be an object, not `%j`",t);if(!i.call(t,"type"))throw r("Missing `type` in matter `%j`",t);if(!i.call(t,"fence")&&!i.call(t,"marker"))throw r("Missing `marker` or `fence` in matter `%j`",t);return t}},36385:function(e,t,n){e.exports=function(e){var t,n,a=r(e),s=a.length,u=-1,c={};for(;++u<s;)t=a[u],(n=o(t,"open").charCodeAt(0))in c?c[n].push(i(t)):c[n]=[i(t)];return{flow:c}};var r=n(74035);function i(e){var t,n=e.type,r=e.anywhere,i=n+"Value",a=n+"Fence",s=a+"Sequence",u={tokenize:function(e,n,r){var i=0;return function(n){if(n===t.charCodeAt(i))return e.enter(a),e.enter(s),o(n);return r(n)};function o(n){return i===t.length?(e.exit(s),-2===n||-1===n||32===n?(e.enter("whitespace"),u(n)):c(n)):n===t.charCodeAt(i)?(e.consume(n),i++,o):r(n)}function u(t){return-2===t||-1===t||32===t?(e.consume(t),u):(e.exit("whitespace"),c(t))}function c(t){return-5===t||-4===t||-3===t||null===t?(e.exit(a),n(t)):r(t)}},partial:!0};return{tokenize:function(a,s,c){var l=this;return function(i){var s=l.now();if(1!==s.column||!r&&1!==s.line)return c(i);return a.enter(n),t=o(e,"open"),a.attempt(u,f,c)(i)};function f(n){return t=o(e,"close"),h(n)}function d(e){return-5===e||-4===e||-3===e||null===e?h(e):(a.enter(i),p(e))}function p(e){return-5===e||-4===e||-3===e||null===e?(a.exit(i),h(e)):(a.consume(e),p)}function h(e){return null===e?c(e):(a.enter("lineEnding"),a.consume(e),a.exit("lineEnding"),a.attempt(u,m,d))}function m(e){return a.exit(n),s(e)}},concrete:!0}}function o(e,t){var n;return e.marker?(n=a(e.marker,t))+n+n:a(e.fence,t)}function a(e,t){return"string"===typeof e?e:e[t]}},57539:function(e,t,n){e.exports=n(62346)},62346:function(e,t,n){var r=n(76734),i=n(46712),o=n(89696),a=n(17238),s=n(36996),u=n(10395),c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32===87?(e.consume(t),i):n(t)}function i(t){return 87===t||t-32===87?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||a(e)?n(e):t(e)}},partial:!0},l={tokenize:function(e,t,n){var r,i;return a;function a(t){return 38===t?e.check(p,l,c)(t):46===t||95===t?e.check(d,l,c)(t):o(t)||u(t)||45!==t&&s(t)?l(t):(e.consume(t),a)}function c(t){return 46===t?(i=r,r=void 0,e.consume(t),a):(95===t&&(r=!0),e.consume(t),a)}function l(e){return i||r?n(e):t(e)}},partial:!0},f={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(p,t,i)(a):(40===a&&n++,41===a?e.check(d,o,i)(a):E(a)?t(a):b(a)?e.check(d,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},d={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return b(i)?(e.consume(i),r):E(i)?t(i):n(i)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(t){return r(t)?(e.consume(t),i):59===t?(e.consume(t),o):n(t)}function o(e){return E(e)?t(e):n(e)}},partial:!0},h={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&t-32!==87||!w(r.previous)||k(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(c,e.attempt(l,e.attempt(f,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:w},m={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&t-32!==72||!x(r.previous)||k(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||t-32===84?(e.consume(t),a):n(t)}function a(t){return 84===t||t-32===84?(e.consume(t),c):n(t)}function c(t){return 80===t||t-32===80?(e.consume(t),d):n(t)}function d(t){return 83===t||t-32===83?(e.consume(t),p):p(t)}function p(t){return 58===t?(e.consume(t),h):n(t)}function h(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return 47===t?(e.consume(t),v):n(t)}function v(t){return o(t)||u(t)||s(t)?n(t):e.attempt(l,e.attempt(f,g),n)(t)}function g(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:x},v={tokenize:function(e,t,n){var r,o=this;return function(t){if(!_(t)||!T(o.previous)||k(o.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return _(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(d,f,u)(t):45===t||95===t?e.check(d,n,c)(t):i(t)?(e.consume(t),s):f(t)}function u(t){return e.consume(t),r=!0,s}function c(t){return e.consume(t),l}function l(t){return 46===t?e.check(d,n,u)(t):s(t)}function f(i){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:T},g={};t.text=g;for(var y=48;y<123;)g[y]=v,58===++y?y=65:91===y&&(y=97);function b(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function E(e){return null===e||e<0||32===e||60===e}function _(e){return 43===e||45===e||46===e||95===e||i(e)}function w(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function x(e){return null===e||!r(e)}function T(e){return 47!==e&&x(e)}function k(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}g[43]=v,g[45]=v,g[46]=v,g[95]=v,g[72]=[v,m],g[104]=[v,m],g[87]=[v,h],g[119]=[v,h]},3490:function(e,t,n){e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,i){var o=this.previous,a=this.events,s=0;return u;function u(t){return 126!==t||126===o&&"characterEscape"!==a[a.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),c(t))}function c(a){var u,l,f=r(o);return 126===a?s>1?i(a):(e.consume(a),s++,c):s<2&&!t?i(a):(u=e.exit("strikethroughSequenceTemporary"),l=r(a),u._open=!l||2===l&&f,u._close=!f||2===f&&l,n(a))}},resolveAll:function(e,t){var n,r,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"strikethroughSequenceTemporary"===e[c][1].type&&e[c][1]._close)for(s=c;s--;)if("exit"===e[s][0]&&"strikethroughSequenceTemporary"===e[s][1].type&&e[s][1]._open&&e[c][1].end.offset-e[c][1].start.offset===e[s][1].end.offset-e[s][1].start.offset){e[c][1].type="strikethroughSequence",e[s][1].type="strikethroughSequence",n={type:"strikethrough",start:a(e[s][1].start),end:a(e[c][1].end)},r={type:"strikethroughText",start:a(e[s][1].end),end:a(e[c][1].start)},u=[["enter",n,t],["enter",e[s][1],t],["exit",e[s][1],t],["enter",r,t]],i(u,u.length,0,o(t.parser.constructs.insideSpan.null,e.slice(s+1,c),t)),i(u,u.length,0,[["exit",r,t],["enter",e[c][1],t],["exit",e[c][1],t],["exit",n,t]]),i(e,s-1,c-s+3,u),c=s+u.length-2;break}return function(e){var t=-1,n=e.length;for(;++t<n;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}(e)}};null!==t&&void 0!==t||(t=!0);return{text:{126:n},insideSpan:{null:n}}};var r=n(19444),i=n(56808),o=n(58280),a=n(75923)},81286:function(e,t,n){e.exports=n(23993)},23993:function(e,t,n){t.flow={null:{tokenize:function(e,t,n){var a,s,u=[],c=0;return function(t){if(null===t||-5===t||-4===t||-3===t)return n(t);if(e.enter("table")._align=u,e.enter("tableHead"),e.enter("tableRow"),124===t)return l(t);return c++,e.enter("temporaryTableCellContent"),p(t)};function l(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,f}function f(t){return null===t||-5===t||-4===t||-3===t?function(t){if(null===t)return n(t);return e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(i,n,r(e,m,"linePrefix",4))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),d):(a&&(a=void 0,c++),124===t?l(t):(e.enter("temporaryTableCellContent"),p(t)))}function d(t){return-2===t||-1===t||32===t?(e.consume(t),d):(e.exit("whitespace"),f(t))}function p(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),f(t)):(e.consume(t),92===t?h:p)}function h(t){return 92===t||124===t?(e.consume(t),p):p(t)}function m(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),v(t))}function v(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),g):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,u.push(null),y):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),u.push("left"),b):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),v):n(t)}function g(t){return-2===t||-1===t||32===t?(e.consume(t),g):(e.exit("whitespace"),v(t))}function y(t){return 45===t?(e.consume(t),y):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),u[u.length-1]="left"===u[u.length-1]?"center":"right",E):v(t))}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,y):n(t)}function E(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),v):n(t)}function _(t){return e.exit("tableDelimiterRow"),s&&c===u.length?null===t?w(t):e.check(o,w,x)(t):n(t)}function w(n){return e.exit("table"),t(n)}function x(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,T,"linePrefix",4)}function T(t){return e.enter("tableBody"),k(t)}function k(t){return e.enter("tableRow"),124===t?O(t):(e.enter("temporaryTableCellContent"),S(t))}function O(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),C}function C(t){return null===t||-5===t||-4===t||-3===t?function(t){if(e.exit("tableRow"),null===t)return D(t);return e.check(o,D,I)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),A):124===t?O(t):(e.enter("temporaryTableCellContent"),S(t))}function A(t){return-2===t||-1===t||32===t?(e.consume(t),A):(e.exit("whitespace"),C(t))}function S(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),C(t)):(e.consume(t),92===t?M:S)}function M(t){return 92===t||124===t?(e.consume(t),S):S(t)}function D(t){return e.exit("tableBody"),w(t)}function I(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,k,"linePrefix",4)}},resolve:function(e,t){var n,r,i,o,a,s,u,c,l,f,d=e.length,p=-1;for(;++p<d;)n=e[p][1],o&&("temporaryTableCellContent"===n.type&&(c=c||p,l=p),"tableCellDivider"!==n.type&&"tableRow"!==n.type||!l||(s={type:"tableContent",start:e[c][1].start,end:e[l][1].end},u={type:"chunkText",start:s.start,end:s.end,contentType:"text"},e.splice(c,l-c+1,["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t]),p-=l-c-3,d=e.length,c=void 0,l=void 0)),"exit"===e[p][0]&&f&&f+1<p&&("tableCellDivider"===n.type||"tableRow"===n.type&&(f+3<p||"whitespace"!==e[f][1].type))&&(a={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[f][1].start,end:e[p][1].end},e.splice(p+("tableCellDivider"===n.type?1:0),0,["exit",a,t]),e.splice(f,0,["enter",a,t]),p+=2,d=e.length,f=p+1),"tableRow"===n.type&&(o="enter"===e[p][0])&&(f=p+1),"tableDelimiterRow"===n.type&&(i="enter"===e[p][0])&&(f=p+1),"tableHead"===n.type&&(r="enter"===e[p][0]);return e},interruptible:!0}};var r=n(52928),i={tokenize:function(e,t,n){return function(t){if(45!==t)return n(t);return e.enter("setextUnderline"),r(t)};function r(t){return 45===t?(e.consume(t),r):i(t)}function i(r){return-2===r||-1===r||32===r?(e.consume(r),i):null===r||-5===r||-4===r||-3===r?t(r):n(r)}},partial:!0},o={tokenize:function(e,t,n){var r=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),4===++r?t:i):null===o||o<0?t(o):n(o)}},partial:!0}},5675:function(e,t,n){e.exports=n(27224)},27224:function(e,t,n){var r=n(88367),i=n(52928),o=n(15096),a={tokenize:function(e,t,n){var r=this;return function(t){if(91!==t||null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var a=this;return i(e,(function(e){return o(a.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)}),"whitespace")}t.text={91:a}},82747:function(e,t,n){e.exports=n(2518)},2518:function(e,t,n){var r=n(12952),i=n(57539),o=n(3490),a=n(81286),s=n(5675);e.exports=function(e){return r([i,o(e),a,s])}},50444:function(e,t,n){e.exports=n(92349)},92349:function(e,t,n){"use strict";t.flow={36:n(13857)},t.text={36:n(27141)}},13857:function(e,t,n){"use strict";t.tokenize=function(e,t,n){var o=this,a=r(this.events,"linePrefix"),s=0;return function(t){if(36!==t)throw new Error("expected `$`");return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(t)};function u(t){return 36===t?(e.consume(t),s++,u):(e.exit("mathFlowFenceSequence"),s<2?n(t):i(e,c,"whitespace")(t))}function c(t){return null===t||-5===t||-4===t||-3===t?f(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return null===t||-5===t||-4===t||-3===t?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(t)):36===t?n(t):(e.consume(t),l)}function f(n){return e.exit("mathFlowFence"),o.interrupt?t(n):d(n)}function d(t){return null===t?h(t):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt({tokenize:m,partial:!0},h,a?i(e,d,"linePrefix",a+1):d)):(e.enter("mathFlowValue"),p(t))}function p(t){return null===t||-5===t||-4===t||-3===t?(e.exit("mathFlowValue"),d(t)):(e.consume(t),p)}function h(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){var r=0;return i(e,(function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),o(t)}),"linePrefix",4);function o(t){return 36===t?(e.consume(t),r++,o):r<s?n(t):(e.exit("mathFlowFenceSequence"),i(e,a,"whitespace")(t))}function a(r){return null===r||-5===r||-4===r||-3===r?(e.exit("mathFlowFence"),t(r)):n(r)}}},t.concrete=!0;var r=n(15096),i=n(52928)},27141:function(e,t){"use strict";function n(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}t.tokenize=function(e,t,r){var i,o,a=this,s=0;return function(t){if(36!==t)throw new Error("expected `$`");if(!n.call(a,a.previous))throw new Error("expected correct previous");return e.enter("mathText"),e.enter("mathTextSequence"),u(t)};function u(t){return 36===t?(e.consume(t),s++,u):(e.exit("mathTextSequence"),c(t))}function c(t){return null===t?r(t):36===t?(o=e.enter("mathTextSequence"),i=0,f(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),c):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||-5===t||-4===t||-3===t?(e.exit("mathTextData"),c(t)):(e.consume(t),l)}function f(n){return 36===n?(e.consume(n),i++,f):i===s?(e.exit("mathTextSequence"),e.exit("mathText"),t(n)):(o.type="mathTextData",l(n))}},t.resolve=function(e){var t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},t.previous=n},76734:function(e,t,n){"use strict";var r=n(2841)(/[A-Za-z]/);e.exports=r},46712:function(e,t,n){"use strict";var r=n(2841)(/[\dA-Za-z]/);e.exports=r},13571:function(e,t,n){"use strict";var r=n(2841)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},89696:function(e){"use strict";e.exports=function(e){return e<32||127===e}},73977:function(e,t,n){"use strict";var r=n(2841)(/\d/);e.exports=r},56238:function(e,t,n){"use strict";var r=n(2841)(/[\dA-Fa-f]/);e.exports=r},83074:function(e,t,n){"use strict";var r=n(2841)(/[!-/:-@[-`{-~]/);e.exports=r},88367:function(e){"use strict";e.exports=function(e){return e<0||32===e}},17238:function(e){"use strict";e.exports=function(e){return e<-2}},73654:function(e){"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},36996:function(e,t,n){"use strict";var r=n(76830),i=n(2841)(r);e.exports=i},10395:function(e,t,n){"use strict";var r=n(2841)(/\s/);e.exports=r},99198:function(e){"use strict";var t=Object.assign;e.exports=t},93267:function(e){"use strict";var t=String.fromCharCode;e.exports=t},46706:function(e){"use strict";var t={}.hasOwnProperty;e.exports=t},57139:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},16871:function(e){"use strict";e.exports=["pre","script","style","textarea"]},21362:function(e){"use strict";var t=[].splice;e.exports=t},76830:function(e){"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},36274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(97082),i=n(47542),o=n(1349),a=n(45485),s=n(49653),u=n(36713),c=n(46597),l=n(20431),f=n(60026),d=n(93865),p=n(65694),h=n(596),m=n(76872),v=n(28911),g=n(31294),y=n(36215),b=n(60534),E=n(92607),_=n(46931),w=n(15874),x=n(37039),T={42:_,43:_,45:_,48:_,49:_,50:_,51:_,52:_,53:_,54:_,55:_,56:_,57:_,62:a},k={91:d},O={"-2":l,"-1":l,32:l},C={35:h,42:x,45:[w,x],60:m,61:w,95:x,96:c,126:c},A={38:u,92:s},S={"-5":E,"-4":E,"-3":E,33:y,38:u,42:i,60:[o,v],91:b,92:[p,s],93:g,95:i,96:f},M={null:[i,r.resolver]};t.contentInitial=k,t.disable={null:[]},t.document=T,t.flow=C,t.flowInitial=O,t.insideSpan=M,t.string=A,t.text=S},13745:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17238),i=n(52928),o=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),o(t)}));return n;function o(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),o):(e.consume(t),a)}};t.tokenize=o},14201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17238),i=n(52928),o=n(66532),a=function(e){var t,n,i,a=this,c=[],l=0,f={tokenize:function(e,r){var i=0;return t={},l;function l(r){return i<c.length?(a.containerState=c[i][1],e.attempt(c[i][0].continuation,f,d)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,m(r)):(a.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,h,m)(r))}function f(e){return i++,a.containerState._closeFlow?h(e):l(e)}function d(t){return n.currentConstruct&&n.currentConstruct.lazy?(a.containerState={},e.attempt(s,h,e.attempt(u,h,e.check(o,h,p)))(t)):h(t)}function p(e){return i=c.length,t.lazy=!0,t.flowContinue=!0,m(e)}function h(e){return t.flowEnd=!0,m(e)}function m(e){return t.continued=i,a.interrupt=a.containerState=void 0,r(e)}},partial:!0};return d;function d(t){return l<c.length?(a.containerState=c[l][1],e.attempt(c[l][0].continuation,p,h)(t)):h(t)}function p(e){return l++,d(e)}function h(r){return t&&t.flowContinue?v(r):(a.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,m,v)(r))}function m(e){return c.push([a.currentConstruct,a.containerState]),a.containerState=void 0,h(e)}function v(t){return null===t?(E(0,!0),void e.consume(t)):(n=n||a.parser.flow(a.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),g(t))}function g(t){return null===t?(b(e.exit("chunkFlow")),v(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(f,y)):(e.consume(t),g)}function y(e){return E(t.continued,t&&t.flowEnd),l=0,d(e)}function b(e){i&&(i.next=e),i=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(a.sliceStream(e))}function E(t,r){var o=c.length;for(n&&r&&(n.write([null]),i=n=void 0);o-- >t;)a.containerState=c[o][1],c[o][0].exit.call(a,e);c.length=t}},s={tokenize:function(e,t,n){return i(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},u={tokenize:function(e,t,n){return i(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=a},22871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64590),i=n(52928),o=n(66532),a=function(e){var t=this,n=e.attempt(o,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,a,i(e,e.attempt(this.parser.constructs.flow,a,e.attempt(r,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}};t.tokenize=a},97082:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99198),i=n(75923),o=u("text"),a=u("string"),s={resolveAll:c()};function u(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){var t=r[e],i=-1;if(null===e)return!0;if(t)for(;++i<t.length;)if(!t[i].previous||t[i].previous.call(n,n.previous))return!0}},resolveAll:c("text"===e?l:void 0)}}function c(e){return function(t,n){var r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function l(e,t){for(var n,o,a,s,u,c,l,f,d=-1;++d<=e.length;)if((d===e.length||"lineEnding"===e[d][1].type)&&"data"===e[d-1][1].type){for(o=e[d-1][1],s=(n=t.sliceStream(o)).length,u=-1,c=0,l=void 0;s--;)if("string"===typeof(a=n[s])){for(u=a.length;32===a.charCodeAt(u-1);)c++,u--;if(u)break;u=-1}else if(-2===a)l=!0,c++;else if(-1!==a){s++;break}c&&(f={type:d===e.length||l||c<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-c,offset:o.end.offset-c,_index:o.start._index+s,_bufferIndex:s?u:o.start._bufferIndex+u},end:i(o.end)},o.end=i(f.start),o.start.offset===o.end.offset?r(o,f):(e.splice(d,0,["enter",f,t],["exit",f,t]),d+=2)),d++}return e}t.resolver=s,t.string=a,t.text=o},32976:function(e,t,n){"use strict";var r=n(13745),i=n(14201),o=n(22871),a=n(97082),s=n(12952),u=n(21388),c=n(28180),l=n(36274);e.exports=function(e){var t={defined:[],constructs:s([l].concat(c((e||{}).extensions))),content:n(r),document:n(i),flow:n(o),string:n(a.string),text:n(a.text)};return t;function n(e){return function(n){return u(t,e,n)}}}},61242:function(e,t,n){"use strict";var r=n(84423);e.exports=function(e){for(;!r(e););return e}},30162:function(e){"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,i="";return function(o,a,s){var u,c,l,f,d,p=[];o=i+o.toString(a),l=0,i="",n&&(65279===o.charCodeAt(0)&&l++,n=void 0);for(;l<o.length;){if(t.lastIndex=l,u=t.exec(o),f=u?u.index:o.length,d=o.charCodeAt(f),!u){i=o.slice(l);break}if(10===d&&l===f&&e)p.push(-3),e=void 0;else if(e&&(p.push(-5),e=void 0),l<f&&(p.push(o.slice(l,f)),r+=f-l),0===d)p.push(65533),r++;else if(9===d)for(c=4*Math.ceil(r/4),p.push(-2);r++<c;)p.push(-1);else 10===d?(p.push(-4),r=1):(e=!0,r=1);l=f+1}s&&(e&&p.push(-5),i&&p.push(i),p.push(null));return p}}},47542:function(e,t,n){"use strict";var r=n(78811),i=n(56808),o=n(19444),a=n(15644),s=n(58280),u=n(75923),c={name:"attention",tokenize:function(e,t){var n,r=o(this.previous);return function(t){return e.enter("attentionSequence"),n=t,i(t)};function i(a){var s,u,c,l;return a===n?(e.consume(a),i):(s=e.exit("attentionSequence"),c=!(u=o(a))||2===u&&r,l=!r||2===r&&u,s._open=42===n?c:c&&(r||!l),s._close=42===n?l:l&&(u||!c),t(a))}},resolveAll:function(e,t){var n,o,c,l,f,d,p,h,m=-1;for(;++m<e.length;)if("enter"===e[m][0]&&"attentionSequence"===e[m][1].type&&e[m][1]._close)for(n=m;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[m][1]).charCodeAt(0)){if((e[n][1]._close||e[m][1]._open)&&(e[m][1].end.offset-e[m][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[m][1].end.offset-e[m][1].start.offset)%3))continue;d=e[n][1].end.offset-e[n][1].start.offset>1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1,l={type:d>1?"strongSequence":"emphasisSequence",start:a(u(e[n][1].end),-d),end:u(e[n][1].end)},f={type:d>1?"strongSequence":"emphasisSequence",start:u(e[m][1].start),end:a(u(e[m][1].start),d)},c={type:d>1?"strongText":"emphasisText",start:u(e[n][1].end),end:u(e[m][1].start)},o={type:d>1?"strong":"emphasis",start:u(l.start),end:u(f.end)},e[n][1].end=u(l.start),e[m][1].start=u(f.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=r(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=r(p,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",c,t]]),p=r(p,s(t.parser.constructs.insideSpan.null,e.slice(n+1,m),t)),p=r(p,[["exit",c,t],["enter",f,t],["exit",f,t],["exit",o,t]]),e[m][1].end.offset-e[m][1].start.offset?(h=2,p=r(p,[["enter",e[m][1],t],["exit",e[m][1],t]])):h=0,i(e,n-1,m-n+3,p),m=n+p.length-h-2;break}m=-1;for(;++m<e.length;)"attentionSequence"===e[m][1].type&&(e[m][1].type="data");return e}};e.exports=c},1349:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(13571),a=n(89696),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u};function u(t){return r(t)?(e.consume(t),c):o(t)?d(t):n(t)}function c(e){return 43===e||45===e||46===e||i(e)?l(e):d(e)}function l(t){return 58===t?(e.consume(t),f):(43===t||45===t||46===t||i(t))&&s++<32?(e.consume(t),l):d(t)}function f(t){return 62===t?(e.exit("autolinkProtocol"),v(t)):32===t||60===t||a(t)?n(t):(e.consume(t),f)}function d(t){return 64===t?(e.consume(t),s=0,p):o(t)?(e.consume(t),d):n(t)}function p(e){return i(e)?h(e):n(e)}function h(t){return 46===t?(e.consume(t),s=0,p):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",v(t)):m(t)}function m(t){return(45===t||i(t))&&s++<63?(e.consume(t),45===t?m:h):n(t)}function v(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},45485:function(e,t,n){"use strict";var r=n(73654),i=n(52928),o={name:"blockQuote",tokenize:function(e,t,n){var i=this;return function(t){if(62===t)return i.containerState.open||(e.enter("blockQuote",{_container:!0}),i.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o;return n(t)};function o(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return i(e,e.attempt(o,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=o},49653:function(e,t,n){"use strict";var r=n(83074),i={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return r(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}};e.exports=i},36713:function(e,t,n){"use strict";var r=n(89435),i=n(46712),o=n(73977),a=n(56238);function s(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var u=s(r),c={name:"characterReference",tokenize:function(e,t,n){var r,s,c=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),f};function f(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),r=31,s=i,p(t))}function d(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=a,p):(e.enter("characterReferenceValue"),r=7,s=o,p(t))}function p(o){var a;return 59===o&&l?(a=e.exit("characterReferenceValue"),s!==i||u.default(c.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)):s(o)&&l++<r?(e.consume(o),p):n(o)}}};e.exports=c},46597:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(15096),a=n(52928),s={name:"codeFenced",tokenize:function(e,t,n){var s,u=this,c={tokenize:function(e,t,n){var i=0;return a(e,o,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function o(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(t)}function u(t){return t===s?(e.consume(t),i++,u):i<f?n(t):(e.exit("codeFencedFenceSequence"),a(e,c,"whitespace")(t))}function c(i){return null===i||r(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0},l=o(this.events,"linePrefix"),f=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=t,d(t)};function d(t){return t===s?(e.consume(t),f++,d):(e.exit("codeFencedFenceSequence"),f<3?n(t):a(e,p,"whitespace")(t))}function p(t){return null===t||r(t)?g(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(e,m,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),h)}function m(t){return null===t||r(t)?g(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(t))}function v(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(t)):96===t&&t===s?n(t):(e.consume(t),v)}function g(n){return e.exit("codeFencedFence"),u.interrupt?t(n):y(n)}function y(t){return null===t?E(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(c,E,l?a(e,y,"linePrefix",l+1):y)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function E(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=s},20431:function(e,t,n){"use strict";var r=n(17238),i=n(56808),o=n(15096),a=n(52928),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(u,i,n);function i(n){return null===n?t(n):r(n)?e.attempt(u,i,t)(n):(e.enter("codeFlowValue"),o(n))}function o(t){return null===t||r(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return i(e,0,0,[["enter",n,t]]),i(e,e.length,0,[["exit",n,t]]),e}},u={tokenize:function(e,t,n){var i=this;return a(e,(function s(u){if(r(u))return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a(e,s,"linePrefix",5);return o(i.events,"linePrefix")<4?n(u):t(u)}),"linePrefix",5)},partial:!0};e.exports=s},60026:function(e,t,n){"use strict";var r=n(17238),i={name:"codeText",tokenize:function(e,t,n){var i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):96===t?(o=e.enter("codeTextSequence"),i=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),c)}function l(n){return 96===n?(e.consume(n),i++,l):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",c(n))}},resolve:function(e){var t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[i][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=i},64590:function(e,t,n){"use strict";var r=n(17238),i=n(15096),o=n(84423),a=n(52928),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?o(t):r(t)?e.check(u,a,o)(t):(e.consume(t),i)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),i}},resolve:function(e){return o(e),e},interruptible:!0,lazy:!0},u={tokenize:function(e,t,n){var o=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,s,"linePrefix")};function s(a){return null===a||r(a)?n(a):o.parser.constructs.disable.null.indexOf("codeIndented")>-1||i(o.events,"linePrefix")<4?e.interrupt(o.parser.constructs.flow,n,t)(a):t(a)}},partial:!0};e.exports=s},93865:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(35478),a=n(38229),s=n(97154),u=n(52928),c=n(31056),l=n(59283),f={name:"definition",tokenize:function(e,t,n){var i,l=this;return function(t){return e.enter("definition"),s.call(l,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function f(t){return i=o(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,a(e,e.attempt(d,u(e,p,"whitespace"),u(e,p,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function p(o){return null===o||r(o)?(e.exit("definition"),l.parser.defined.indexOf(i)<0&&l.parser.defined.push(i),t(o)):n(o)}}},d={tokenize:function(e,t,n){return function(t){return i(t)?c(e,o)(t):n(t)};function o(t){return 34===t||39===t||40===t?l(e,u(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function a(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=f},38229:function(e,t,n){"use strict";var r=n(89696),i=n(88367),o=n(17238);e.exports=function(e,t,n,a,s,u,c,l,f){var d=f||1/0,p=0;return function(t){if(60===t)return e.enter(a),e.enter(s),e.enter(u),e.consume(t),e.exit(u),h;if(r(t)||41===t)return n(t);return e.enter(a),e.enter(c),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(t)};function h(n){return 62===n?(e.enter(u),e.consume(n),e.exit(u),e.exit(s),e.exit(a),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(l),h(t)):null===t||60===t||o(t)?n(t):(e.consume(t),92===t?v:m)}function v(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function g(o){return 40===o?++p>d?n(o):(e.consume(o),g):41===o?p--?(e.consume(o),g):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(a),t(o)):null===o||i(o)?p?n(o):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(a),t(o)):r(o)?n(o):(e.consume(o),92===o?y:g)}function y(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}},97154:function(e,t,n){"use strict";var r=n(17238),i=n(73654);e.exports=function(e,t,n,o,a,s){var u,c=this,l=0;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),e.enter(s),f};function f(i){return null===i||91===i||93===i&&!u||94===i&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs||l>999?n(i):93===i?(e.exit(s),e.enter(a),e.consume(i),e.exit(a),e.exit(o),t):r(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(i))}function d(t){return null===t||91===t||93===t||r(t)||l++>999?(e.exit("chunkString"),f(t)):(e.consume(t),u=u||!i(t),92===t?p:d)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,d):d(t)}}},52928:function(e,t,n){"use strict";var r=n(73654);e.exports=function(e,t,n,i){var o=i?i-1:1/0,a=0;return function(i){if(r(i))return e.enter(n),s(i);return t(i)};function s(i){return r(i)&&a++<o?(e.consume(i),s):(e.exit(n),t(i))}}},59283:function(e,t,n){"use strict";var r=n(17238),i=n(52928);e.exports=function(e,t,n,o,a,s){var u;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),u=40===t?41:t,c};function c(n){return n===u?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),t):(e.enter(s),l(n))}function l(t){return t===u?(e.exit(s),c(u)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===u||null===t||r(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?d:f)}function d(t){return t===u||92===t?(e.consume(t),f):f(t)}}},31056:function(e,t,n){"use strict";var r=n(17238),i=n(73654),o=n(52928);e.exports=function(e,t){var n;return function a(s){if(r(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a;if(i(s))return o(e,a,n?"linePrefix":"lineSuffix")(s);return t(s)}}},65694:function(e,t,n){"use strict";var r=n(17238),i={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return r(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}};e.exports=i},596:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(73654),a=n(56808),s=n(52928),u={name:"headingAtx",tokenize:function(e,t,n){var a=this,u=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(r){return 35===r&&u++<6?(e.consume(r),c):null===r||i(r)?(e.exit("atxHeadingSequence"),a.interrupt?t(r):l(r)):n(r)}function l(n){return 35===n?(e.enter("atxHeadingSequence"),f(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):o(n)?s(e,l,"whitespace")(n):(e.enter("atxHeadingText"),d(n))}function f(t){return 35===t?(e.consume(t),f):(e.exit("atxHeadingSequence"),l(t))}function d(t){return null===t||35===t||i(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),d)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},a(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};e.exports=u},76872:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(17238),a=n(88367),s=n(73654),u=n(93267),c=n(57139),l=n(16871),f=n(66532),d={name:"htmlFlow",tokenize:function(e,t,n){var f,d,h,m,v,g=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(i){return 33===i?(e.consume(i),b):47===i?(e.consume(i),w):63===i?(e.consume(i),f=3,g.interrupt?t:U):r(i)?(e.consume(i),h=u(i),d=!0,x):n(i)}function b(i){return 45===i?(e.consume(i),f=2,E):91===i?(e.consume(i),f=5,h="CDATA[",m=0,_):r(i)?(e.consume(i),f=4,g.interrupt?t:U):n(i)}function E(r){return 45===r?(e.consume(r),g.interrupt?t:U):n(r)}function _(r){return r===h.charCodeAt(m++)?(e.consume(r),m===h.length?g.interrupt?t:R:_):n(r)}function w(t){return r(t)?(e.consume(t),h=u(t),x):n(t)}function x(r){return null===r||47===r||62===r||a(r)?47!==r&&d&&l.indexOf(h.toLowerCase())>-1?(f=1,g.interrupt?t(r):R(r)):c.indexOf(h.toLowerCase())>-1?(f=6,47===r?(e.consume(r),T):g.interrupt?t(r):R(r)):(f=7,g.interrupt?n(r):d?O(r):k(r)):45===r||i(r)?(e.consume(r),h+=u(r),x):n(r)}function T(r){return 62===r?(e.consume(r),g.interrupt?t:R):n(r)}function k(t){return s(t)?(e.consume(t),k):P(t)}function O(t){return 47===t?(e.consume(t),P):58===t||95===t||r(t)?(e.consume(t),C):s(t)?(e.consume(t),O):P(t)}function C(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),C):A(t)}function A(t){return 61===t?(e.consume(t),S):s(t)?(e.consume(t),A):O(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),v=t,M):s(t)?(e.consume(t),S):(v=void 0,D(t))}function M(t){return t===v?(e.consume(t),I):null===t||o(t)?n(t):(e.consume(t),M)}function D(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||a(t)?A(t):(e.consume(t),D)}function I(e){return 47===e||62===e||s(e)?O(e):n(e)}function P(t){return 62===t?(e.consume(t),N):n(t)}function N(t){return s(t)?(e.consume(t),N):null===t||o(t)?R(t):n(t)}function R(t){return 45===t&&2===f?(e.consume(t),F):60===t&&1===f?(e.consume(t),B):62===t&&4===f?(e.consume(t),V):63===t&&3===f?(e.consume(t),U):93===t&&5===f?(e.consume(t),z):!o(t)||6!==f&&7!==f?null===t||o(t)?L(t):(e.consume(t),R):e.check(p,V,L)(t)}function L(t){return e.exit("htmlFlowData"),j(t)}function j(t){return null===t?W(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j):(e.enter("htmlFlowData"),R(t))}function F(t){return 45===t?(e.consume(t),U):R(t)}function B(t){return 47===t?(e.consume(t),h="",H):R(t)}function H(t){return 62===t&&l.indexOf(h.toLowerCase())>-1?(e.consume(t),V):r(t)&&h.length<8?(e.consume(t),h+=u(t),H):R(t)}function z(t){return 93===t?(e.consume(t),U):R(t)}function U(t){return 62===t?(e.consume(t),V):R(t)}function V(t){return null===t||o(t)?(e.exit("htmlFlowData"),W(t)):(e.consume(t),V)}function W(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},p={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(f,t,n)}},partial:!0};e.exports=d},28911:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(17238),a=n(88367),s=n(73654),u=n(52928),c={name:"htmlText",tokenize:function(e,t,n){var c,l,f,d,p=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),h};function h(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),A):63===t?(e.consume(t),O):r(t)?(e.consume(t),D):n(t)}function m(t){return 45===t?(e.consume(t),v):91===t?(e.consume(t),l="CDATA[",f=0,_):r(t)?(e.consume(t),k):n(t)}function v(t){return 45===t?(e.consume(t),g):n(t)}function g(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),E):o(t)?(d=b,B(t)):(e.consume(t),b)}function E(t){return 45===t?(e.consume(t),z):b(t)}function _(t){return t===l.charCodeAt(f++)?(e.consume(t),f===l.length?w:_):n(t)}function w(t){return null===t?n(t):93===t?(e.consume(t),x):o(t)?(d=w,B(t)):(e.consume(t),w)}function x(t){return 93===t?(e.consume(t),T):w(t)}function T(t){return 62===t?z(t):93===t?(e.consume(t),T):w(t)}function k(t){return null===t||62===t?z(t):o(t)?(d=k,B(t)):(e.consume(t),k)}function O(t){return null===t?n(t):63===t?(e.consume(t),C):o(t)?(d=O,B(t)):(e.consume(t),O)}function C(e){return 62===e?z(e):O(e)}function A(t){return r(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||i(t)?(e.consume(t),S):M(t)}function M(t){return o(t)?(d=M,B(t)):s(t)?(e.consume(t),M):z(t)}function D(t){return 45===t||i(t)?(e.consume(t),D):47===t||62===t||a(t)?I(t):n(t)}function I(t){return 47===t?(e.consume(t),z):58===t||95===t||r(t)?(e.consume(t),P):o(t)?(d=I,B(t)):s(t)?(e.consume(t),I):z(t)}function P(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),P):N(t)}function N(t){return 61===t?(e.consume(t),R):o(t)?(d=N,B(t)):s(t)?(e.consume(t),N):I(t)}function R(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,L):o(t)?(d=R,B(t)):s(t)?(e.consume(t),R):(e.consume(t),c=void 0,F)}function L(t){return t===c?(e.consume(t),j):null===t?n(t):o(t)?(d=L,B(t)):(e.consume(t),L)}function j(e){return 62===e||47===e||a(e)?I(e):n(e)}function F(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||a(t)?I(t):(e.consume(t),F)}function B(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u(e,H,"linePrefix",p.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function H(t){return e.enter("htmlTextData"),d(t)}function z(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=c},31294:function(e,t,n){"use strict";var r=n(88367),i=n(78811),o=n(56808),a=n(35478),s=n(58280),u=n(75923),c=n(38229),l=n(97154),f=n(59283),d=n(31056),p={name:"labelEnd",tokenize:function(e,t,n){var r,i,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){if(!r)return n(t);return r._inactive?c(t):(i=o.parser.defined.indexOf(a(o.sliceSerialize({start:r.end,end:o.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u)};function u(n){return 40===n?e.attempt(h,t,i?t:c)(n):91===n?e.attempt(m,t,i?e.attempt(v,t,c):c)(n):i?t(n):c(n)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,a,c,l,f,d,p=e.length,h=0;for(;p--;)if(c=e[p][1],l){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[p][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(f){if("enter"===e[p][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(l=p,"labelLink"!==c.type)){h=2;break}}else"labelEnd"===c.type&&(f=p);return n={type:"labelLink"===e[l][1].type?"link":"image",start:u(e[l][1].start),end:u(e[e.length-1][1].end)},r={type:"label",start:u(e[l][1].start),end:u(e[f][1].end)},a={type:"labelText",start:u(e[l+h+2][1].end),end:u(e[f-2][1].start)},d=i(d=[["enter",n,t],["enter",r,t]],e.slice(l+1,l+h+3)),d=i(d,[["enter",a,t]]),d=i(d,s(t.parser.constructs.insideSpan.null,e.slice(l+h+4,f-3),t)),d=i(d,[["exit",a,t],e[f-2],e[f-1],["exit",r,t]]),d=i(d,e.slice(f+1)),d=i(d,[["exit",n,t]]),o(e,l,e.length,d),e},resolveAll:function(e){var t,n=-1;for(;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},h={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),d(e,i)};function i(t){return 41===t?s(t):c(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function o(t){return r(t)?d(e,a)(t):s(t)}function a(t){return 34===t||39===t||40===t?f(e,d(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},m={tokenize:function(e,t,n){var r=this;return function(t){return l.call(r,e,i,n,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.indexOf(a(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},v={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=p},36215:function(e,t,n){"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(31294).resolveAll};e.exports=r},60534:function(e,t,n){"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(31294).resolveAll};e.exports=r},92607:function(e,t,n){"use strict";var r=n(52928),i={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=i},46931:function(e,t,n){"use strict";var r=n(73977),i=n(73654),o=n(15096),a=n(18892),s=n(52928),u=n(66532),c=n(37039),l={name:"list",tokenize:function(e,t,n){var s=this,l=o(s.events,"linePrefix"),d=0;return function(t){var i=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,n,h)(t):h(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(t)}return n(t)};function p(t){return r(t)&&++d<10?(e.consume(t),p):(!s.interrupt||d<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):n(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(u,s.interrupt?n:m,e.attempt(f,g,v))}function m(e){return s.containerState.initialBlankLine=!0,l++,g(e)}function v(t){return i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),g):n(t)}function g(n){return s.containerState.size=l+a(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(u,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!i(n))return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(d,t,o)(n)}));function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(l,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},f={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return i(e)||!o(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},d={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return o(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=l},66532:function(e,t,n){"use strict";var r=n(17238),i=n(52928),o={tokenize:function(e,t,n){return i(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=o},15874:function(e,t,n){"use strict";var r=n(17238),i=n(75923),o=n(52928),a={name:"setextUnderline",tokenize:function(e,t,n){var i,a,s=this,u=s.events.length;for(;u--;)if("lineEnding"!==s.events[u][1].type&&"linePrefix"!==s.events[u][1].type&&"content"!==s.events[u][1].type){a="paragraph"===s.events[u][1].type;break}return function(t){if(!s.lazy&&(s.interrupt||a))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,c(t);return n(t)};function c(t){return t===i?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),o(e,l,"lineSuffix")(t))}function l(i){return null===i||r(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function(e,t){var n,r,o,a,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),o||"definition"!==e[s][1].type||(o=s);a={type:"setextHeading",start:i(e[r][1].start),end:i(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=i(e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};e.exports=a},37039:function(e,t,n){"use strict";var r=n(17238),i=n(73654),o=n(52928),a={name:"thematicBreak",tokenize:function(e,t,n){var a,s=0;return function(t){return e.enter("thematicBreak"),a=t,u(t)};function u(l){return l===a?(e.enter("thematicBreakSequence"),c(l)):i(l)?o(e,u,"whitespace")(l):s<3||null!==l&&!r(l)?n(l):(e.exit("thematicBreak"),t(l))}function c(t){return t===a?(e.consume(t),s++,c):(e.exit("thematicBreakSequence"),u(t))}}};e.exports=a},78811:function(e,t,n){"use strict";var r=n(56808);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},56808:function(e,t,n){"use strict";var r=n(21362);e.exports=function(e,t,n,i){var o,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(o=Array.from(i)).unshift(t,n),r.apply(e,o);else for(n&&r.apply(e,[t,n]);s<i.length;)(o=i.slice(s,s+1e4)).unshift(t,0),r.apply(e,o),s+=1e4,t+=1e4}},19444:function(e,t,n){"use strict";var r=n(88367),i=n(36996),o=n(10395);e.exports=function(e){return null===e||r(e)||o(e)?1:i(e)?2:void 0}},12952:function(e,t,n){"use strict";var r=n(46706),i=n(56808),o=n(28180);function a(e,t){var n,i,a,u;for(n in t)for(u in i=r.call(e,n)?e[n]:e[n]={},a=t[n])i[u]=s(o(a[u]),r.call(i,u)?i[u]:[])}function s(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return i(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},21388:function(e,t,n){"use strict";var r=n(99198),i=n(17238),o=n(78811),a=n(56808),s=n(28180),u=n(58280),c=n(23082),l=n(75923),f=n(12774);e.exports=function(e,t,n){var d=n?l(n):{line:1,column:1,offset:0},p={},h=[],m=[],v=[],g={consume:function(e){i(e)?(d.line++,d.column=1,d.offset+=-3===e?2:1,C()):-1!==e&&(d.column++,d.offset++);d._bufferIndex<0?d._index++:(d._bufferIndex++,d._bufferIndex===m[d._index].length&&(d._bufferIndex=-1,d._index++));y.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=_(),y.events.push(["enter",n,y]),v.push(n),n},exit:function(e){var t=v.pop();return t.end=_(),y.events.push(["exit",t,y]),t},attempt:k((function(e,t){O(e,t.from)})),check:k(T),interrupt:k(T,{interrupt:!0}),lazy:k(T,{lazy:!0})},y={previous:null,events:[],parser:e,sliceStream:E,sliceSerialize:function(e){return c(E(e))},now:_,defineSkip:function(e){p[e.line]=e.column,C()},write:function(e){if(m=o(m,e),w(),null!==m[m.length-1])return[];return O(t,0),y.events=u(h,y.events,y),y.events}},b=t.tokenize.call(y,g);return t.resolveAll&&h.push(t),d._index=0,d._bufferIndex=-1,y;function E(e){return f(m,e)}function _(){return l(d)}function w(){for(var e,t;d._index<m.length;)if("string"===typeof(t=m[d._index]))for(e=d._index,d._bufferIndex<0&&(d._bufferIndex=0);d._index===e&&d._bufferIndex<t.length;)x(t.charCodeAt(d._bufferIndex));else x(t)}function x(e){b=b(e)}function T(e,t){t.restore()}function k(e,t){return function(n,i,o){var a,u,c,l;return n.tokenize||"length"in n?f(s(n)):function(e){if(e in n||null in n)return f(n.null?s(n[e]).concat(s(n.null)):n[e])(e);return o(e)};function f(e){return a=e,p(e[u=0])}function p(e){return function(n){l=function(){var e=_(),t=y.previous,n=y.currentConstruct,r=y.events.length,i=Array.from(v);return{restore:o,from:r};function o(){d=e,y.previous=t,y.currentConstruct=n,y.events.length=r,v=i,C()}}(),c=e,e.partial||(y.currentConstruct=e);if(e.name&&y.parser.constructs.disable.null.indexOf(e.name)>-1)return m();return e.tokenize.call(t?r({},y,t):y,g,h,m)(n)}}function h(t){return e(c,l),i}function m(e){return l.restore(),++u<a.length?p(a[u]):o}}}function O(e,t){e.resolveAll&&h.indexOf(e)<0&&h.push(e),e.resolve&&a(y.events,t,y.events.length-t,e.resolve(y.events.slice(t),y)),e.resolveTo&&(y.events=e.resolveTo(y.events,y))}function C(){d.line in p&&d.column<2&&(d.column=p[d.line],d.offset+=p[d.line]-1)}}},28180:function(e){"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},15644:function(e){"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},35478:function(e){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},15096:function(e,t,n){"use strict";var r=n(18892);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},2841:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e){return function(t){return e.test(r(t))}}},58280:function(e){"use strict";e.exports=function(e,t,n){for(var r,i=[],o=-1;++o<e.length;)(r=e[o].resolveAll)&&i.indexOf(r)<0&&(t=r(t,n),i.push(r));return t}},10596:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":r(n)}},23082:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e){for(var t,n,i,o=-1,a=[];++o<e.length;){if("string"===typeof(t=e[o]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(i)continue;n=" "}else n=r(t);i=-2===t,a.push(n)}return a.join("")}},75923:function(e,t,n){"use strict";var r=n(99198);e.exports=function(e){return r({},e)}},18892:function(e){"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"===typeof e[t]?e[t].length:1;return n}},12774:function(e){"use strict";e.exports=function(e,t){var n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;return r===o?n=[e[r].slice(i,a)]:(n=e.slice(r,o),i>-1&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a))),n}},84423:function(e,t,n){"use strict";var r=n(99198),i=n(56808),o=n(75923);function a(e,t){for(var n,r,o,a,s,u,c=e[t][1],l=e[t][2],f=t-1,d=[],p=c._tokenizer||l.parser[c.contentType](c.start),h=p.events,m=[],v={};c;){for(;e[++f][1]!==c;);d.push(f),c._tokenizer||(n=l.sliceStream(c),c.next||n.push(null),r&&p.defineSkip(c.start),c.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(n),c.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),r=c,c=c.next}for(c=r,o=h.length;o--;)"enter"===h[o][0]?a=!0:a&&h[o][1].type===h[o-1][1].type&&h[o][1].start.line!==h[o][1].end.line&&(g(h.slice(o+1,s)),c._tokenizer=c.next=void 0,c=c.previous,s=o+1);for(p.events=c._tokenizer=c.next=void 0,g(h.slice(0,s)),o=-1,u=0;++o<m.length;)v[u+m[o][0]]=u+m[o][1],u+=m[o][1]-m[o][0]-1;return v;function g(t){var n=d.pop();m.unshift([n,n+t.length-1]),i(e,n,2,t)}}e.exports=function(e){for(var t,n,s,u,c,l,f,d={},p=-1;++p<e.length;){for(;p in d;)p=d[p];if(t=e[p],p&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[p-1][1].type&&((s=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[s][1].type&&(s+=2),s<l.length&&"content"===l[s][1].type))for(;++s<l.length&&"content"!==l[s][1].type;)"chunkText"===l[s][1].type&&(l[s][1].isInFirstContentOfListItem=!0,s++);if("enter"===t[0])t[1].contentType&&(r(d,a(e,p)),p=d[p],f=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(s=p,n=void 0;s--&&("lineEnding"===(u=e[s])[1].type||"lineEndingBlank"===u[1].type);)"enter"===u[0]&&(n&&(e[n][1].type="lineEndingBlank"),u[1].type="lineEnding",n=s);n&&(t[1].end=o(e[n][1].start),(c=e.slice(n,p)).unshift(t),i(e,n,p-n+1,c))}}return!f}},39917:function(e,t,n){"use strict";var r=n(63038),i=n(319);t.default=function(e){var t=e.src,n=e.sizes,i=e.unoptimized,u=void 0!==i&&i,l=e.priority,f=void 0!==l&&l,h=e.loading,v=e.lazyBoundary,g=void 0===v?"200px":v,y=e.className,b=e.quality,E=e.width,_=e.height,k=e.objectFit,O=e.objectPosition,C=e.onLoadingComplete,A=e.loader,S=void 0===A?T:A,M=e.placeholder,D=void 0===M?"empty":M,I=e.blurDataURL,P=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["src","sizes","unoptimized","priority","loading","lazyBoundary","className","quality","width","height","objectFit","objectPosition","onLoadingComplete","loader","placeholder","blurDataURL"]),N=n?"responsive":"intrinsic";"layout"in P&&(P.layout&&(N=P.layout),delete P.layout);var R="";if(function(e){return"object"===typeof e&&(m(e)||function(e){return void 0!==e.src}(e))}(t)){var L=m(t)?t.default:t;if(!L.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(L)));if(I=I||L.blurDataURL,R=L.src,(!N||"fill"!==N)&&(_=_||L.height,E=E||L.width,!L.height||!L.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(L)))}t="string"===typeof t?t:R;var j=x(E),F=x(_),B=x(b),H=!f&&("lazy"===h||"undefined"===typeof h);(t.startsWith("data:")||t.startsWith("blob:"))&&(u=!0,H=!1);p.has(t)&&(H=!1);0;var z,U,V,W=c.useIntersection({rootMargin:g,disabled:!H}),G=r(W,2),K=G[0],q=G[1],Z=!H||q,$={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:k,objectPosition:O},Y="blur"===D?{filter:"blur(20px)",backgroundSize:k||"cover",backgroundImage:'url("'.concat(I,'")'),backgroundPosition:O||"0% 0%"}:{};if("fill"===N)z={display:"block",overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",margin:0};else if("undefined"!==typeof j&&"undefined"!==typeof F){var X=F/j,Q=isNaN(X)?"100%":"".concat(100*X,"%");"responsive"===N?(z={display:"block",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},U={display:"block",boxSizing:"border-box",paddingTop:Q}):"intrinsic"===N?(z={display:"inline-block",maxWidth:"100%",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},U={boxSizing:"border-box",display:"block",maxWidth:"100%"},V='<svg width="'.concat(j,'" height="').concat(F,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')):"fixed"===N&&(z={overflow:"hidden",boxSizing:"border-box",display:"inline-block",position:"relative",width:j,height:F})}else 0;var J={src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",srcSet:void 0,sizes:void 0};Z&&(J=w({src:t,unoptimized:u,layout:N,width:j,quality:B,sizes:n,loader:S}));var ee=t;return o.default.createElement("div",{style:z},U?o.default.createElement("div",{style:U},V?o.default.createElement("img",{style:{maxWidth:"100%",display:"block",margin:0,border:"none",padding:0},alt:"","aria-hidden":!0,src:"data:image/svg+xml;base64,".concat(s.toBase64(V))}):null):null,o.default.createElement("img",Object.assign({},P,J,{decoding:"async","data-nimg":N,className:y,ref:function(e){K(e),function(e,t,n,r,i){if(!e)return;var o=function(){e.src.startsWith("data:")||("decode"in e?e.decode():Promise.resolve()).catch((function(){})).then((function(){if("blur"===r&&(e.style.filter="none",e.style.backgroundSize="none",e.style.backgroundImage="none"),p.add(t),i){var n=e.naturalWidth,o=e.naturalHeight;i({naturalWidth:n,naturalHeight:o})}}))};e.complete?o():e.onload=o}(e,ee,0,D,C)},style:d({},$,Y)})),o.default.createElement("noscript",null,o.default.createElement("img",Object.assign({},P,w({src:t,unoptimized:u,layout:N,width:j,quality:B,sizes:n,loader:S}),{decoding:"async","data-nimg":N,style:$,className:y,loading:h||"lazy"}))),f?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+J.src+J.srcSet+J.sizes,rel:"preload",as:"image",href:J.srcSet?void 0:J.src,imagesrcset:J.srcSet,imagesizes:J.sizes})):null)};var o=f(n(67294)),a=f(n(70639)),s=n(28997),u=n(5809),c=n(7426);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 f(e){return e&&e.__esModule?e:{default:e}}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}var p=new Set;var h=new Map([["default",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality;0;return"".concat(t,"?url=").concat(encodeURIComponent(n),"&w=").concat(r,"&q=").concat(i||75)}],["imgix",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality,o=new URL("".concat(t).concat(k(n))),a=o.searchParams;a.set("auto",a.get("auto")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||r.toString()),i&&a.set("q",i.toString());return o.href}],["cloudinary",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality,o=["f_auto","c_limit","w_"+r,"q_"+(i||"auto")].join(",")+"/";return"".concat(t).concat(o).concat(k(n))}],["akamai",function(e){var t=e.root,n=e.src,r=e.width;return"".concat(t).concat(k(n),"?imwidth=").concat(r)}],["custom",function(e){var t=e.src;throw new Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function m(e){return void 0!==e.default}var v={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"custom"}||u.imageConfigDefault,g=v.deviceSizes,y=v.imageSizes,b=v.loader,E=v.path,_=(v.domains,[].concat(i(g),i(y)));function w(e){var t=e.src,n=e.unoptimized,r=e.layout,o=e.width,a=e.quality,s=e.sizes,u=e.loader;if(n)return{src:t,srcSet:void 0,sizes:void 0};var c=function(e,t,n){if(n&&("fill"===t||"responsive"===t)){for(var r,o=/(^|\s)(1?\d?\d)vw/g,a=[];r=o.exec(n);r)a.push(parseInt(r[2]));if(a.length){var s=.01*Math.min.apply(Math,a);return{widths:_.filter((function(e){return e>=g[0]*s})),kind:"w"}}return{widths:_,kind:"w"}}return"number"!==typeof e||"fill"===t||"responsive"===t?{widths:g,kind:"w"}:{widths:i(new Set([e,2*e].map((function(e){return _.find((function(t){return t>=e}))||_[_.length-1]})))),kind:"x"}}(o,r,s),l=c.widths,f=c.kind,d=l.length-1;return{sizes:s||"w"!==f?s:"100vw",srcSet:l.map((function(e,n){return"".concat(u({src:t,quality:a,width:e})," ").concat("w"===f?e:n+1).concat(f)})).join(", "),src:u({src:t,quality:a,width:l[d]})}}function x(e){return"number"===typeof e?e:"string"===typeof e?parseInt(e,10):void 0}function T(e){var t=h.get(b);if(t)return t(d({root:E},e));throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(u.VALID_LOADERS.join(", "),". Received: ").concat(b))}function k(e){return"/"===e[0]?e.slice(1):e}g.sort((function(e,t){return e-t})),_.sort((function(e,t){return e-t}))},7426:function(e,t,n){"use strict";var r=n(63038);Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,u=i.useRef(),c=i.useState(!1),l=r(c,2),f=l[0],d=l[1],p=i.useCallback((function(e){u.current&&(u.current(),u.current=void 0),n||f||e&&e.tagName&&(u.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=s.get(t);if(n)return n;var r=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return s.set(t,n={id:t,observer:i,elements:r}),n}(n),i=r.id,o=r.observer,a=r.elements;return a.set(e,t),o.observe(e),function(){a.delete(e),o.unobserve(e),0===a.size&&(o.disconnect(),s.delete(i))}}(e,(function(e){return e&&d(e)}),{rootMargin:t}))}),[n,t,f]);return i.useEffect((function(){if(!a&&!f){var e=o.requestIdleCallback((function(){return d(!0)}));return function(){return o.cancelIdleCallback(e)}}}),[f]),[p,f]};var i=n(67294),o=n(73447),a="undefined"!==typeof IntersectionObserver;var s=new Map},28997:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBase64=function(e){return window.btoa(e)}},15352:function(e,t,n){"use strict";function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(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 i(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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},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 i(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 o(e,t){var n;if(void 0===t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}}catch(f){o.e(f)}finally{o.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(f){c.e(f)}finally{c.f()}}return n}n.d(t,{Z:function(){return o}})},76554:function(e,t,n){"use strict";function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(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 i(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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},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 i(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 o(e,t){var n;if(void 0===t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(f){o.e(f)}finally{o.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(f){c.e(f)}finally{c.f()}}return n}n.d(t,{Z:function(){return o}})},65574:function(e,t,n){"use strict";function r(e,t,n){if(isNaN(t))return e;var r,i,o,a,s,u,c=e._root,l={data:n},f=e._x0,d=e._x1;if(!c)return e._root=l,e;for(;c.length;)if((a=t>=(i=(f+d)/2))?f=i:d=i,r=c,!(c=c[s=+a]))return r[s]=l,e;if(t===(o=+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>=(i=(f+d)/2))?f=i:d=i}while((s=+a)===(u=+(o>=i)));return r[u]=c,r[s]=l,e}function i(e,t,n){this.node=e,this.x0=t,this.x1=n}function o(e){return e[0]}function a(e,t){var n=new s(null==t?o: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 i=0;i<2;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(2)}):r.target[i]=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,i=e.length,o=new Array(i),a=1/0,s=-1/0;for(t=0;t<i;++t)isNaN(n=+this._x.call(null,e[t]))||(o[t]=n,n<a&&(a=n),n>s&&(s=n));if(a>s)return this;for(this.cover(a).cover(s),t=0;t<i;++t)r(this,o[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,i,o=n-t||1,a=this._root;t>e||e>=n;)switch(i=+(e<t),(r=new Array(2))[i]=a,a=r,o*=2,i){case 0:n=t+o;break;case 1:t=n-o}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,o,a,s,u=this._x0,c=this._x1,l=[],f=this._root;for(f&&l.push(new i(f,u,c)),null==t?t=1/0:(u=e-t,c=e+t);a=l.pop();)if(!(!(f=a.node)||(r=a.x0)>c||(o=a.x1)<u))if(f.length){var d=(r+o)/2;l.push(new i(f[1],d,o),new i(f[0],r,d)),(s=+(e>=d))&&(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,f.data));p<t&&(t=p,u=e-p,c=e+p,n=f.data)}return n},c.remove=function(e){if(isNaN(o=+this._x.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l=this._root,f=this._x0,d=this._x1;if(!l)return this;if(l.length)for(;;){if((s=o>=(a=(f+d)/2))?f=a:d=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(i=l.next)&&delete l.next,r?(i?r.next=i:delete r.next,this):t?(i?t[u]=i: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=i,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,o,a=[],s=this._root;for(s&&a.push(new i(s,this._x0,this._x1));t=a.pop();)if(!e(s=t.node,r=t.x0,o=t.x1)&&s.length){var u=(r+o)/2;(n=s[1])&&a.push(new i(n,u,o)),(n=s[0])&&a.push(new i(n,r,u))}return this},c.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._x1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.x1,c=(s+u)/2;(a=o[0])&&n.push(new i(a,s,c)),(a=o[1])&&n.push(new i(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}},54586: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 i(r)}function i(e){this._=e}function o(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,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function s(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=o(e+"",r),u=-1,c=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++u<c;)if(n=(e=i[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=i[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 i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},54625:function(e,t,n){"use strict";function r(e,t,n){var r,i=1;function o(){var o,a,s=r.length,u=0,c=0,l=0;for(o=0;o<s;++o)u+=(a=r[o]).x||0,c+=a.y||0,l+=a.z||0;for(u=(u/s-e)*i,c=(c/s-t)*i,l=(l/s-n)*i,o=0;o<s;++o)a=r[o],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),o.initialize=function(e){r=e},o.x=function(t){return arguments.length?(e=+t,o):e},o.y=function(e){return arguments.length?(t=+e,o):t},o.z=function(e){return arguments.length?(n=+e,o):n},o.strength=function(e){return arguments.length?(i=+e,o):i},o}n.d(t,{Z:function(){return r}})},12282:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},14286:function(e,t,n){"use strict";function r(e){return 1e-6*(e()-.5)}n.d(t,{Z:function(){return r}})},66252:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(12282),i=n(14286);function o(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,f,d=o,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 o=0,a=e.length;o<m;++o)for(var s,c,d,p,h,v=0,g=0,y=0,b=0;v<a;++v)c=(s=e[v]).source,g=(d=s.target).x+d.vx-c.x-c.vx||(0,i.Z)(f),u>1&&(y=d.y+d.vy-c.y-c.vy||(0,i.Z)(f)),u>2&&(b=d.z+d.vz-c.z-c.vz||(0,i.Z)(f)),g*=p=((p=Math.sqrt(g*g+y*y+b*b))-n[v])/p*r*t[v],y*=p,b*=p,d.vx-=g*(h=l[v]),u>1&&(d.vy-=y*h),u>2&&(d.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,i,o=s.length,u=e.length,f=new Map(s.map((function(e,t){return[d(e,t,s),e]})));for(r=0,c=new Array(o);r<u;++r)(i=e[r]).index=r,"object"!==typeof i.source&&(i.source=a(f,i.source)),"object"!==typeof i.target&&(i.target=a(f,i.target)),c[i.source.index]=(c[i.source.index]||0)+1,c[i.target.index]=(c[i.target.index]||0)+1;for(r=0,l=new Array(u);r<u;++r)i=e[r],l[r]=c[i.source.index]/(c[i.source.index]+c[i.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];f=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?(d=e,v):d},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}},3286:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(65574),i=n(29052),o=n(15145),a=n(12282),s=n(14286),u=n(55061);function c(){var e,t,n,c,l,f,d=(0,a.Z)(-30),p=1,h=1/0,m=.81;function v(a){var s,c=e.length,f=(1===t?(0,r.Z)(e,u.x):2===t?(0,i.Z)(e,u.x,u.y):3===t?(0,o.Z)(e,u.x,u.y,u.z):null).visitAfter(y);for(l=a,s=0;s<c;++s)n=e[s],f.visit(b)}function g(){if(e){var t,n,r=e.length;for(f=new Array(r),t=0;t<r;++t)n=e[t],f[n.index]=+d(n,t,e)}}function y(e){var n,r,i,o,a,s,u=0,c=0,l=e.length;if(l){for(i=o=a=s=0;s<l;++s)(n=e[s])&&(r=Math.abs(n.value))&&(u+=n.value,c+=r,i+=r*(n.x||0),o+=r*(n.y||0),a+=r*(n.z||0));u*=Math.sqrt(4/l),e.x=i/c,t>1&&(e.y=o/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+=f[n.data.index]}while(n=n.next)}e.value=u}function b(e,r,i,o,a){if(!e.value)return!0;var u=[i,o,a][t-1],d=e.x-n.x,v=t>1?e.y-n.y:0,g=t>2?e.z-n.z:0,y=u-r,b=d*d+v*v+g*g;if(y*y/m<b)return b<h&&(0===d&&(b+=(d=(0,s.Z)(c))*d),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+=d*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===d&&(b+=(d=(0,s.Z)(c))*d),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=f[e.data.index]*l/b,n.vx+=d*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,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];c=i.find((function(e){return"function"===typeof e}))||Math.random,t=i.find((function(e){return[1,2,3].includes(e)}))||2,g()},v.strength=function(e){return arguments.length?(d="function"===typeof e?e:(0,a.Z)(+e),g(),v):d},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}},77729:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(12282);function i(e,t,n,i){var o,a,s,u,c=(0,r.Z)(.1);function l(e){for(var r=0,c=o.length;r<c;++r){var l=o[r],f=l.x-t||1e-6,d=(l.y||0)-n||1e-6,p=(l.z||0)-i||1e-6,h=Math.sqrt(f*f+d*d+p*p),m=(u[r]-h)*s[r]*e/h;l.vx+=f*m,a>1&&(l.vy+=d*m),a>2&&(l.vz+=p*m)}}function f(){if(o){var t,n=o.length;for(s=new Array(n),u=new Array(n),t=0;t<n;++t)u[t]=+e(o[t],t,o),s[t]=isNaN(u[t])?0:+c(o[t],t,o)}}return"function"!==typeof e&&(e=(0,r.Z)(+e)),null==t&&(t=0),null==n&&(n=0),null==i&&(i=0),l.initialize=function(e){o=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,f()},l.strength=function(e){return arguments.length?(c="function"===typeof e?e:(0,r.Z)(+e),f(),l):c},l.radius=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),f(),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?(i=+e,l):i},l}},55061:function(e,t,n){"use strict";n.d(t,{Z:function(){return f},x:function(){return a},y:function(){return s},z:function(){return u}});var r=n(54586),i=n(50867),o=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 f(e,t){t=t||2;var n,a=Math.min(3,Math.max(1,Math.round(t))),s=1,u=.001,f=1-Math.pow(u,1/300),d=0,p=.6,h=new Map,m=(0,i.HT)(y),v=(0,r.Z)("tick","end"),g=function(){var e=1;return function(){return(e=(1664525*e+1013904223)%o)/o}}();function y(){b(),v.call("tick",n),s<u&&(m.stop(),v.call("end",n))}function b(t){var r,i,o=e.length;void 0===t&&(t=1);for(var u=0;u<t;++u)for(s+=(d-s)*f,h.forEach((function(e){e(s)})),r=0;r<o;++r)null==(i=e[r]).fx?i.x+=i.vx*=p:(i.x=i.fx,i.vx=0),a>1&&(null==i.fy?i.y+=i.vy*=p:(i.y=i.fy,i.vy=0)),a>2&&(null==i.fz?i.z+=i.vz*=p:(i.z=i.fz,i.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 i=10*(a>2?Math.cbrt(.5+n):a>1?Math.sqrt(.5+n):n),o=n*c,s=n*l;1===a?t.x=i:2===a?(t.x=i*Math.cos(o),t.y=i*Math.sin(o)):(t.x=i*Math.sin(o)*Math.cos(s),t.y=i*Math.cos(o),t.z=i*Math.sin(o)*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?(f=+e,n):+f},alphaTarget:function(e){return arguments.length?(d=+e,n):d},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,i,o,s,u=Array.prototype.slice.call(arguments),c=u.shift()||0,l=(a>1?u.shift():null)||0,f=(a>2?u.shift():null)||0,d=u.shift()||1/0,p=0,h=e.length;for(d*=d,p=0;p<h;++p)(i=(t=c-(o=e[p]).x)*t+(n=l-(o.y||0))*n+(r=f-(o.z||0))*r)<d&&(s=o,d=i);return s},on:function(e,t){return arguments.length>1?(v.on(e,t),n):v.on(e)}}}},15145:function(e,t,n){"use strict";function r(e,t,n,r,i){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var o,a,s,u,c,l,f,d,p,h,m,v,g=e._root,y={data:i},b=e._x0,E=e._y0,_=e._z0,w=e._x1,x=e._y1,T=e._z1;if(!g)return e._root=y,e;for(;g.length;)if((d=t>=(a=(b+w)/2))?b=a:w=a,(p=n>=(s=(E+x)/2))?E=s:x=s,(h=r>=(u=(_+T)/2))?_=u:T=u,o=g,!(g=g[m=h<<2|p<<1|d]))return o[m]=y,e;if(c=+e._x.call(null,g.data),l=+e._y.call(null,g.data),f=+e._z.call(null,g.data),t===c&&n===l&&r===f)return y.next=g,o?o[m]=y:e._root=y,e;do{o=o?o[m]=new Array(8):e._root=new Array(8),(d=t>=(a=(b+w)/2))?b=a:w=a,(p=n>=(s=(E+x)/2))?E=s:x=s,(h=r>=(u=(_+T)/2))?_=u:T=u}while((m=h<<2|p<<1|d)===(v=(f>=u)<<2|(l>=s)<<1|c>=a));return o[v]=g,o[m]=y,e}function i(e,t,n,r,i,o,a){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=i,this.y1=o,this.z1=a}function o(e){return e[0]}function a(e){return e[1]}function s(e){return e[2]}function u(e,t,n,r){var i=new c(null==t?o:t,null==n?a:n,null==r?s:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function c(e,t,n,r,i,o,a,s,u){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=i,this._z0=o,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 f=u.prototype=c.prototype;f.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 i=0;i<8;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(8)}):r.target[i]=l(t));return n},f.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e),i=+this._z.call(null,e);return r(this.cover(t,n,i),t,n,i,e)},f.addAll=function(e){var t,n,i,o,a,s=e.length,u=new Array(s),c=new Array(s),l=new Array(s),f=1/0,d=1/0,p=1/0,h=-1/0,m=-1/0,v=-1/0;for(n=0;n<s;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||isNaN(a=+this._z.call(null,t))||(u[n]=i,c[n]=o,l[n]=a,i<f&&(f=i),i>h&&(h=i),o<d&&(d=o),o>m&&(m=o),a<p&&(p=a),a>v&&(v=a));if(f>h||d>m||p>v)return this;for(this.cover(f,d,p).cover(h,m,v),n=0;n<s;++n)r(this,u[n],c[n],l[n],e[n]);return this},f.cover=function(e,t,n){if(isNaN(e=+e)||isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,o=this._z0,a=this._x1,s=this._y1,u=this._z1;if(isNaN(r))a=(r=Math.floor(e))+1,s=(i=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var c,l,f=a-r||1,d=this._root;r>e||e>=a||i>t||t>=s||o>n||n>=u;)switch(l=(n<o)<<2|(t<i)<<1|e<r,(c=new Array(8))[l]=d,d=c,f*=2,l){case 0:a=r+f,s=i+f,u=o+f;break;case 1:r=a-f,s=i+f,u=o+f;break;case 2:a=r+f,i=s-f,u=o+f;break;case 3:r=a-f,i=s-f,u=o+f;break;case 4:a=r+f,s=i+f,o=u-f;break;case 5:r=a-f,s=i+f,o=u-f;break;case 6:a=r+f,i=s-f,o=u-f;break;case 7:r=a-f,i=s-f,o=u-f}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=s,this._z1=u,this},f.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},f.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]]},f.find=function(e,t,n,r){var o,a,s,u,c,l,f,d,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 i(_,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);d=E.pop();)if(!(!(_=d.node)||(a=d.x0)>g||(s=d.y0)>y||(u=d.z0)>b||(c=d.x1)<h||(l=d.y1)<m||(f=d.z1)<v))if(_.length){var w=(a+c)/2,x=(s+l)/2,T=(u+f)/2;E.push(new i(_[7],w,x,T,c,l,f),new i(_[6],a,x,T,w,l,f),new i(_[5],w,s,T,c,x,f),new i(_[4],a,s,T,w,x,f),new i(_[3],w,x,u,c,l,T),new i(_[2],a,x,u,w,l,T),new i(_[1],w,s,u,c,x,T),new i(_[0],a,s,u,w,x,T)),(p=(n>=T)<<2|(t>=x)<<1|e>=w)&&(d=E[E.length-1],E[E.length-1]=E[E.length-1-p],E[E.length-1-p]=d)}else{var k=e-+this._x.call(null,_.data),O=t-+this._y.call(null,_.data),C=n-+this._z.call(null,_.data),A=k*k+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,o=_.data}}return o},f.remove=function(e){if(isNaN(o=+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,i,o,a,s,u,c,l,f,d,p,h,m,v=this._root,g=this._x0,y=this._y0,b=this._z0,E=this._x1,_=this._y1,w=this._z1;if(!v)return this;if(v.length)for(;;){if((f=o>=(u=(g+E)/2))?g=u:E=u,(d=a>=(c=(y+_)/2))?y=c:_=c,(p=s>=(l=(b+w)/2))?b=l:w=l,t=v,!(v=v[h=p<<2|d<<1|f]))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(i=v.next)&&delete v.next,r?(i?r.next=i:delete r.next,this):t?(i?t[h]=i: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=i,this)},f.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},f.root=function(){return this._root},f.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},f.visit=function(e){var t,n,r,o,a,s,u,c,l=[],f=this._root;for(f&&l.push(new i(f,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=l.pop();)if(!e(f=t.node,r=t.x0,o=t.y0,a=t.z0,s=t.x1,u=t.y1,c=t.z1)&&f.length){var d=(r+s)/2,p=(o+u)/2,h=(a+c)/2;(n=f[7])&&l.push(new i(n,d,p,h,s,u,c)),(n=f[6])&&l.push(new i(n,r,p,h,d,u,c)),(n=f[5])&&l.push(new i(n,d,o,h,s,p,c)),(n=f[4])&&l.push(new i(n,r,o,h,d,p,c)),(n=f[3])&&l.push(new i(n,d,p,a,s,u,h)),(n=f[2])&&l.push(new i(n,r,p,a,d,u,h)),(n=f[1])&&l.push(new i(n,d,o,a,s,p,h)),(n=f[0])&&l.push(new i(n,r,o,a,d,p,h))}return this},f.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.y0,c=t.z0,l=t.x1,f=t.y1,d=t.z1,p=(s+l)/2,h=(u+f)/2,m=(c+d)/2;(a=o[0])&&n.push(new i(a,s,u,c,p,h,m)),(a=o[1])&&n.push(new i(a,p,u,c,l,h,m)),(a=o[2])&&n.push(new i(a,s,h,c,p,f,m)),(a=o[3])&&n.push(new i(a,p,h,c,l,f,m)),(a=o[4])&&n.push(new i(a,s,u,m,p,h,d)),(a=o[5])&&n.push(new i(a,p,u,m,l,h,d)),(a=o[6])&&n.push(new i(a,s,h,m,p,f,d)),(a=o[7])&&n.push(new i(a,p,h,m,l,f,d))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.z0,t.x1,t.y1,t.z1);return this},f.x=function(e){return arguments.length?(this._x=e,this):this._x},f.y=function(e){return arguments.length?(this._y=e,this):this._y},f.z=function(e){return arguments.length?(this._z=e,this):this._z}},29052:function(e,t,n){"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,u,c,l,f,d,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>=(o=(m+g)/2))?m=o:g=o,(l=n>=(a=(v+y)/2))?v=a:y=a,i=p,!(p=p[f=l<<1|c]))return i[f]=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,i?i[f]=h:e._root=h,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+g)/2))?m=o:g=o,(l=n>=(a=(v+y)/2))?v=a:y=a}while((f=l<<1|c)===(d=(u>=a)<<1|s>=o));return i[d]=p,i[f]=h,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function o(e){return e[0]}function a(e){return e[1]}function s(e,t,n){var r=new u(null==t?o:t,null==n?a:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function u(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,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 i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=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,i,o,a=e.length,s=new Array(a),u=new Array(a),c=1/0,l=1/0,f=-1/0,d=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=i,u[n]=o,i<c&&(c=i),i>f&&(f=i),o<l&&(l=o),o>d&&(d=o));if(c>f||l>d)return this;for(this.cover(c,l).cover(f,d),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,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a,s,u=i-n||1,c=this._root;n>e||e>=i||r>t||t>=o;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=c,c=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,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,o,a,s,u,c,l,f=this._x0,d=this._y0,p=this._x1,h=this._y1,m=[],v=this._root;for(v&&m.push(new i(v,f,d,p,h)),null==n?n=1/0:(f=e-n,d=t-n,p=e+n,h=t+n,n*=n);c=m.pop();)if(!(!(v=c.node)||(o=c.x0)>p||(a=c.y0)>h||(s=c.x1)<f||(u=c.y1)<d))if(v.length){var g=(o+s)/2,y=(a+u)/2;m.push(new i(v[3],g,y,s,u),new i(v[2],o,y,g,u),new i(v[1],g,a,s,y),new i(v[0],o,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 w=Math.sqrt(n=_);f=e-w,d=t-w,p=e+w,h=t+w,r=v.data}}return r},l.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l,f,d,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=o>=(s=(h+v)/2))?h=s:v=s,(l=a>=(u=(m+g)/2))?m=u:g=u,t=p,!(p=p[f=l<<1|c]))return this;if(!p.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[d]=p:this._root=p),this):(this._root=i,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,o,a,s,u=[],c=this._root;for(c&&u.push(new i(c,this._x0,this._y0,this._x1,this._y1));t=u.pop();)if(!e(c=t.node,r=t.x0,o=t.y0,a=t.x1,s=t.y1)&&c.length){var l=(r+a)/2,f=(o+s)/2;(n=c[3])&&u.push(new i(n,l,f,a,s)),(n=c[2])&&u.push(new i(n,r,f,l,s)),(n=c[1])&&u.push(new i(n,l,o,a,f)),(n=c[0])&&u.push(new i(n,r,o,l,f))}return this},l.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.y0,c=t.x1,l=t.y1,f=(s+c)/2,d=(u+l)/2;(a=o[0])&&n.push(new i(a,s,u,f,d)),(a=o[1])&&n.push(new i(a,f,u,c,d)),(a=o[2])&&n.push(new i(a,s,d,f,l)),(a=o[3])&&n.push(new i(a,f,d,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}},59735: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")},93704:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});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(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(o(this,e),t)}delete(e){return super.delete(a(this,e))}}Set;function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function o({_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="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){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,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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}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 f=Symbol("implicit");function d(){var e=new r,t=[],n=[],i=f;function o(r){var o=e.get(r);if(void 0===o){if(i!==f)return i;e.set(r,o=t.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;var i,a=c(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;e.has(s)||e.set(s,t.push(s)-1)}}catch(u){a.e(u)}finally{a.f()}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return d(t,n).unknown(i)},u.apply(o,arguments),o}},50867:function(e,t,n){"use strict";n.d(t,{zO:function(){return p},B7:function(){return m},HT:function(){return v}});var r,i,o=0,a=0,s=0,u=0,c=0,l=0,f="object"===typeof performance&&performance.now?performance:Date,d=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function p(){return c||(d(h),c=f.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=f.now())+l,o=a=0;try{!function(){p(),++o;for(var e,t=r;t;)(e=c-t._time)>=0&&t._call.call(void 0,e),t=t._next;--o}()}finally{o=0,function(){var e,t,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);i=e,b(o)}(),c=0}}function y(){var e=f.now(),t=e-u;t>1e3&&(l-=t,u=e)}function b(e){o||(a&&(a=clearTimeout(a)),e-c>24?(e<1/0&&(a=setTimeout(g,e-f.now()-l)),s&&(s=clearInterval(s))):(s||(u=f.now(),s=setInterval(y,1e3)),o=1,d(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||i===this||(i?i._next=this:r=this,i=this),this._call=e,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},85062:function(){},5809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0;t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60}},9008:function(e,t,n){e.exports=n(70639)},25675:function(e,t,n){e.exports=n(39917)},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,i){if("function"!==typeof r)throw new Error("callback is expected to be a function");var o=t[n];return o||(o=t[n]=[]),o.push({callback:r,ctx:i}),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 i=t[n],o=0;o<i.length;++o)i[o].callback===r&&i.splice(o,1);return e},fire:function(n){var r,i=t[n];if(!i)return e;arguments.length>1&&(r=Array.prototype.splice.call(arguments,1));for(var o=0;o<i.length;++o){var a=i[o];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 o=(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=o.settings.springTransform||i;c=0,e.forEachNode((function(e){v(e.id),c+=1})),e.forEachLink(y),e.on("changed",m);var f=!1,d={step:function(){if(0===c)return p(!0),!0;var e=o.step();d.lastMove=e,d.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 o.getBBox()},forEachBody:h,pinNode:function(e,t){_(e.id).isPinned=!!t},isNodePinned:function(e){return _(e.id).isPinned},dispose:function(){e.off("changed",m),d.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 i=e.hasLink(t,n);if(!i)return;r=i.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:o,graph:e,lastMove:0};return r(d),d;function p(e){var t;f!==e&&(f=e,t=e,d.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 i=r.position;if(!i){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 i=e.links[r],o=i.fromId!==e.id?s.get(i.fromId):s.get(i.toId);o&&o.pos&&t.push(o)}return t}(r);i=o.getBestNewBodyPosition(a)}(n=o.addBodyAt(i)).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),o.removeBody(n))}function y(e){E(e.fromId),E(e.toId);var t=s.get(e.fromId),n=s.get(e.toId),r=o.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),i=e.getNode(t.toId);r&&E(r.id),i&&E(i.id),delete u[t.id],o.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 i(){}},15189:function(e,t,n){const r=n(16422);e.exports=function(e){return function(t,n){let i=n&&n.indent||0,o=n&&void 0!==n.join?n.join:"\n",a=Array(i+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(o)}}},30891:function(e,t,n){e.exports=function(e){let t=i(e);return new Function("bodies","settings","random",t)},e.exports.generateFunctionBody=i;const r=n(15189);function i(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 i(e,t){return`\n${a(e,t)}\n${o(e)}\nreturn {Body: Body, Vector: Vector};\n`}function o(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),i="";return t&&(i=`${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 ${i}\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=i(e,t),{Body:r}=new Function(n)();return r},e.exports.generateCreateBodyFunctionBody=i,e.exports.getVectorCode=a,e.exports.getBodyCode=o},36647:function(e,t,n){const r=n(15189);function i(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=i(e);return new Function("options",t)},e.exports.generateCreateDragForceFunctionBody=i},34079:function(e,t,n){const r=n(15189);function i(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=i(e);return new Function("options","random",t)},e.exports.generateCreateSpringForceFunctionBody=i},51763:function(e,t,n){const r=n(15189);function i(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=i(e);return new Function("bodies","timeStep","adaptiveTimeStepWeight",t)},e.exports.generateIntegratorFunctionBody=i},1584:function(e,t,n){const r=n(15189),i=n(16422);function o(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_${i(0)} - node.min_${i(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 o=0;o<e;++o)n.push(r+`if (${i(o)} > max_${i(o)}) {`),n.push(r+` quadIdx = quadIdx + ${Math.pow(2,o)};`),n.push(r+` min_${i(o)} = max_${i(o)};`),n.push(r+` max_${i(o)} = node.max_${i(o)};`),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=o(e);return new Function(t)()},e.exports.generateQuadTreeFunctionBody=o,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),f=n(35510),d=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=f(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:i(h),createBounds:o(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),w=[],x=[],T=v(e,_),k=g(w,e,_),O=b(e,_),C=y(e),A=[],S=new Map,M=0;P("nbody",(function(){if(0===w.length)return;T.insertBodies(w);var e=w.length;for(;e--;){var t=w[e];t.isPinned||(t.reset(),T.updateBodyForce(t),C.update(t))}})),P("spring",(function(){var e=x.length;for(;e--;)O.update(x[e])}));var D={bodies:w,quadTree:T,springs:x,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(w,e.timeStep,e.adaptiveTimeStepWeight);return M+=1,n},addBody:function(e){if(!e)throw new Error("Body is required");return w.push(e),e},addBodyAt:function(e){if(!e)throw new Error("Body position is required");var t=(e=>new m(e))(e);return w.push(t),t},removeBody:function(e){if(e){var t=w.indexOf(e);if(!(t<0))return w.splice(t,1),0===w.length&&k.reset(),!0}},addSpring:function(e,n,r,i){if(!e||!n)throw new Error("Cannot add null spring to force simulator");"number"!==typeof r&&(r=-1);var o=new t(e,n,r,i>=0?i:-1);return x.push(o),o},getTotalMovement:function(){return 0},removeSpring:function(e){if(e){var t=x.indexOf(e);return t>-1?(x.splice(t,1),!0):void 0}},getBestNewBodyPosition:function(e){return k.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,T.options({gravity:t}),this):e.gravity},theta:function(t){return void 0!==t?(e.theta=t,T.options({theta:t}),this):e.theta},random:_};return function(e,t){for(var n in e)l(e,t,n)}(e,D),d(D),D;function I(){return k.update(),k.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),i=n(1584),o=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,f=e.multigraph?function(e,t,n){var r=u(e,t),i=c.hasOwnProperty(r);if(i||O(e,t)){i||(c[r]=0);var o="@"+ ++c[r];r=u(e+o,t+o)}return new s(e,t,n,r)}:function(e,t,n){var r=u(e,t);return new s(e,t,n,r)},d=[],p=C,h=C,m=C,v=C,g={addNode:E,addLink:function(e,t,r){m();var i=_(e)||E(e),o=_(t)||E(t),s=f(e,t,r);n.push(s),a(i,s),e!==t&&a(o,s);return p(s,"add"),v(),s},removeLink:k,removeNode:w,getNode:_,getNodeCount:x,getLinkCount:T,getLinksCount:T,getNodesCount:x,getLinks:function(e){var t=_(e);return t?t.links:null},forEachNode:M,forEachLinkedNode:function(e,n,r){var i=_(e);if(i&&i.links&&"function"===typeof n)return r?function(e,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(o.fromId===n&&r(t.get(o.toId),o))return!0}}(i.links,e,n):function(e,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=o.fromId===n?o.toId:o.fromId;if(r(t.get(a),o))return!0}}(i.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){w(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){d.push({link:e,changeType:t})}function b(e,t){d.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 o(e,n),h(r,"add")),t.set(e,r),v(),r}function _(e){return t.get(e)}function w(e){var n=_(e);if(!n)return!1;m();var r=n.links;if(r){n.links=null;for(var i=0;i<r.length;++i)k(r[i])}return t.delete(e),h(n,"remove"),v(),!0}function x(){return t.size}function T(){return n.length}function k(e){if(!e)return!1;var t=i(e,n);if(t<0)return!1;m(),n.splice(t,1);var r=_(e.fromId),o=_(e.toId);return r&&(t=i(e,r.links))>=0&&r.links.splice(t,1),o&&(t=i(e,o.links))>=0&&o.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 i=r.links[n];if(i.fromId===e&&i.toId===t)return i}return null}function C(){}function A(){l+=1}function S(){0===(l-=1)&&d.length>0&&(g.fire("changed",d),d.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 i(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 o(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 i=t.hasOwnProperty(r),o=typeof n[r];!i||typeof t[r]!==o?t[r]=n[r]:"object"===o&&(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 i(){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,i,o;for(n=e.length-1;n>0;--n)i=r.next(n+1),o=e[i],e[i]=e[n],e[n]=o,t(o);e.length&&t(e[0])},shuffle:function(){var t,n,i;for(t=e.length-1;t>0;--t)n=r.next(t+1),i=e[n],e[n]=e[t],e[t]=i;return e}}},n.prototype.next=function(e){return Math.floor(this.nextDouble()*e)},n.prototype.nextDouble=i,n.prototype.uniform=i,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)}},29033:function(e,t){"use strict";function n(e,t={}){return r(e)}function r(e){return e?Array.isArray(e)?i(e):"string"===typeof e.value?e.value:"children"in e?i(e.children):"":""}function i(e){return e.map(r).join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0,t.toString=n,t.default=n},89435:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";if((t=t||document.createElement("i")).innerHTML=r,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==r&&n}},31515:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152),i="html",o=["+//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=o.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 f(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===i&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==i)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:o;if(f(n,e))return r.QUIRKS;if(e=null===t?u:c,f(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),i=n(16152),o=i.TAG_NAMES,a=i.NAMESPACES,s=i.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"},f={"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}},d=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={[o.B]:!0,[o.BIG]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.CENTER]:!0,[o.CODE]:!0,[o.DD]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EM]:!0,[o.EMBED]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HR]:!0,[o.I]:!0,[o.IMG]:!0,[o.LI]:!0,[o.LISTING]:!0,[o.MENU]:!0,[o.META]:!0,[o.NOBR]:!0,[o.OL]:!0,[o.P]:!0,[o.PRE]:!0,[o.RUBY]:!0,[o.S]:!0,[o.SMALL]:!0,[o.SPAN]:!0,[o.STRONG]:!0,[o.STRIKE]:!0,[o.SUB]:!0,[o.SUP]:!0,[o.TABLE]:!0,[o.TT]:!0,[o.U]:!0,[o.UL]:!0,[o.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===o.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=f[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=d[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===o.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===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.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),i=n(70050),o=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,i,e.opts),a.install(this.tokenizer,o)},_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),i=n(57930),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=o.install(e,i),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),i=n(23288),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t);const n=o.install(e.preprocessor,i,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),i=n(55763),o=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),o={};t.type===i.END_TAG_TOKEN&&r===t.tagName?(o.endTag=Object.assign({},n),o.endLine=n.endLine,o.endCol=n.endCol,o.endOffset=n.endOffset):(o.endLine=n.startLine,o.endCol=n.startCol,o.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,o);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===i.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),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=r&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[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),i=n(55763),o=n(57930);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,o),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===i.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(i.MODE).forEach((r=>{const o=i.MODE[r];n[o]=function(n){e.ctLoc=e._getCurrentLocation(),t[o].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,i=this.treeAdapter.getTagName(e),o=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)===i&&this.treeAdapter.getNamespaceURI(s)===o&&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),i=r.length,o=Object.create(null);for(let e=0;e<i;e++){const t=r[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(o[i.name]!==i.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),i=n(46519),o=n(12484),a=n(452),s=n(22232),u=n(81704),c=n(17296),l=n(8904),f=n(31515),d=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",w="BEFORE_HTML_MODE",x="BEFORE_HEAD_MODE",T="IN_HEAD_MODE",k="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",z="AFTER_FRAMESET_MODE",U="AFTER_AFTER_BODY_MODE",V="AFTER_AFTER_FRAMESET_MODE",W={[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},G={[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:f.getDocumentMode(t);f.isConforming(t)||e._err(p.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=w},[r.START_TAG_TOKEN]:ae,[r.END_TAG_TOKEN]:ae,[r.EOF_TOKEN]:ae},[w]:{[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=x):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},[x]:{[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=T):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},[T]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ce,[r.END_TAG_TOKEN]:le,[r.EOF_TOKEN]:fe},[k]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[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):de(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.NOSCRIPT?(e.openElements.pop(),e.insertionMode=T):n===v.BR?de(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:de},[O]:{[r.CHARACTER_TOKEN]:pe,[r.NULL_CHARACTER_TOKEN]:pe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[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]:ie,[r.NULL_CHARACTER_TOKEN]:ie,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[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]:ie,[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]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[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]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[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.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=G[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]:ze,[r.NULL_CHARACTER_TOKEN]:ze,[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):ze(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?e.fragmentContext||(e.insertionMode=U):ze(e,t)},[r.EOF_TOKEN]:oe},[H]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[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.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=z))},[r.EOF_TOKEN]:oe},[z]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[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.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]:oe},[U]:{[r.CHARACTER_TOKEN]:Ue,[r.NULL_CHARACTER_TOKEN]:Ue,[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):Ue(e,t)},[r.END_TAG_TOKEN]:Ue,[r.EOF_TOKEN]:oe},[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]:oe}};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 Z(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function $(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Y(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Y(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),i=e.treeAdapter.getNamespaceURI(t);r===v.TEMPLATE&&i===g.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Q(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function J(e,t){let n;for(let r=0;r<8&&(n=q(e,t),n);r++){const t=Z(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=$(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),X(e,i,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 ie(e,t){e._insertCharacters(t)}function oe(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=w,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=x,e._processToken(t)}function ue(e,t){e._insertFakeElement(v.HEAD),e.headElement=e.openElements.current,e.insertionMode=T,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=k):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):fe(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?fe(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 fe(e,t){e.openElements.pop(),e.insertionMode=O,e._processToken(t)}function de(e,t){const n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=T,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 we(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function xe(e,t){e.openElements.currentTagName===v.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function Te(e,t){e.openElements.hasInScope(v.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,g.HTML)}function ke(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):ke(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],i=e.treeAdapter.getTagName(t);let o=null;if(n===v.LI&&i===v.LI?o=v.LI:n!==v.DD&&n!==v.DT||i!==v.DD&&i!==v.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==v.ADDRESS&&i!==v.DIV&&i!==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?Te(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&&ke(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(),d.adjustTokenSVGAttrs(t),d.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,g.SVG):e._insertElement(t,g.SVG),t.ackSelfClosing=!0}(e,t):n===v.RTC?Te(e,t):n!==v.COL&&ke(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(),d.adjustTokenMathMLAttrs(t),d.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&&ke(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&&ke(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?xe(e,t):ke(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?we(e,t):n!==v.CAPTION&&ke(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?we(e,t):ke(e,t):n===v.OPTGROUP?xe(e,t):n!==v.COLGROUP&&ke(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):ke(e,t);break;case 10:n===v.BLOCKQUOTE||n===v.FIGCAPTION?ve(e,t):ke(e,t);break;default:ke(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 ze(e,t){e.insertionMode=C,e._processToken(t)}function Ue(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),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_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 i(this.document,this.treeAdapter),this.activeFormattingElements=new o(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 i=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)&&!i||!this._isIntegrationPoint(t,g.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!i||!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?ie(this,e):e.type===r.COMMENT_TOKEN?ne(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(d.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?d.adjustTokenMathMLAttrs(t):r===g.SVG&&(d.adjustTokenSVGTagName(t),d.adjustTokenSVGAttrs(t)),d.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),i=this.treeAdapter.getAttrList(e);return d.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===o.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),i=W[r];if(i){this.insertionMode=i;break}if(!(t||r!==v.TD&&r!==v.TH)){this.insertionMode=R;break}if(!t&&r===v.HEAD){this.insertionMode=T;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:x;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),i=this.treeAdapter.getNamespaceURI(n);if(r===v.TEMPLATE&&i===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),i=r.TAG_NAMES,o=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function u(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===o.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===o.MATHML;break;case 4:if(e===i.HTML)return t===o.HTML;if(e===i.DESC)return t===o.SVG;break;case 5:if(e===i.TABLE)return t===o.HTML;if(e===i.MTEXT)return t===o.MATHML;if(e===i.TITLE)return t===o.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===o.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===o.HTML;case 8:return e===i.TEMPLATE&&t===o.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===o.SVG;case 14:return e===i.ANNOTATION_XML&&t===o.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===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.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===o.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===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.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)===i.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===i.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===o.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===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===o.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===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.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===o.HTML)return!0;if(n===i.BUTTON&&r===o.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])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.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])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.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])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.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),i=n(54284),o=n(5482),a=n(41734),s=i.CODE_POINTS,u=i.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",f="RCDATA_STATE",d="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",w="RAWTEXT_END_TAG_OPEN_STATE",x="RAWTEXT_END_TAG_NAME_STATE",T="SCRIPT_DATA_LESS_THAN_SIGN_STATE",k="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",z="BEFORE_ATTRIBUTE_NAME_STATE",U="ATTRIBUTE_NAME_STATE",V="AFTER_ATTRIBUTE_NAME_STATE",W="BEFORE_ATTRIBUTE_VALUE_STATE",G="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",K="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_UNQUOTED_STATE",Z="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",$="SELF_CLOSING_START_TAG_STATE",Y="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",ie="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",oe="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",fe="AFTER_DOCTYPE_NAME_STATE",de="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",we="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",xe="BOGUS_DOCTYPE_STATE",Te="CDATA_SECTION_STATE",ke="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 ze(e){return He(e)||je(e)}function Ue(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 We(e){return e+32}function Ge(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(We(e))}function qe(e,t){const n=o[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,a=o[e];if(a<t)r=e+1;else{if(!(a>t))return o[e+n];i=e-1}}return-1}class Ze{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:Ze.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,i=!0;const o=e.length;let a,u=0,c=t;for(;u<o;u++){if(u>0&&(c=this._consume(),r++),c===s.EOF){i=!1;break}if(a=e[u],c!==a&&(n||c!==We(a))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_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:Ze.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Ze.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Ze.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Ze.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Ze.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Ze.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===Ze.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Ze.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=Ze.CHARACTER_TOKEN;Le(e)?t=Ze.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=Ze.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,Ge(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Ze.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=qe(0,e);for(this.tempBuff.push(e);r>-1;){const e=o[r],i=e<7;i&&1&e&&(t=2&e?[o[++r],o[++r]]:[o[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=i?4&e?qe(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===G||this.returnState===K||this.returnState===q}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||ze(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=Ge(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)}[f](e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState=f,this.state=Ce):e===s.LESS_THAN_SIGN?this.state=y:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[d](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=_:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=T:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.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(Y)):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(Y))}[g](e){Le(e)?this.state=z: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+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Ge(e)}[y](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChars("<"),this._reconsumeInState(f))}[b](e){He(e)?(this._createEndTagToken(),this._reconsumeInState(E)):(this._emitChars("</"),this._reconsumeInState(f))}[E](e){if(Fe(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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(f)}}[_](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=w):(this._emitChars("<"),this._reconsumeInState(d))}[w](e){He(e)?(this._createEndTagToken(),this._reconsumeInState(x)):(this._emitChars("</"),this._reconsumeInState(d))}[x](e){if(Fe(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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(d)}}[T](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=k):e===s.EXCLAMATION_MARK?(this.state=C,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(p))}[k](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+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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(i.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(i.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(i.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+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);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(We(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(i.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(i.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(i.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(We(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(L)}[z](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=U):(this._createAttr(""),this._reconsumeInState(U)))}[U](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(W):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+=Ge(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=Ge(e)}[V](e){Le(e)||(e===s.SOLIDUS?this.state=$:e===s.EQUALS_SIGN?this.state=W:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(U)))}[W](e){Le(e)||(e===s.QUOTATION_MARK?this.state=G:e===s.APOSTROPHE?this.state=K:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=l,this._emitCurrentToken()):this._reconsumeInState(q))}[G](e){e===s.QUOTATION_MARK?this.state=Z:e===s.AMPERSAND?(this.returnState=G,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[K](e){e===s.APOSTROPHE?this.state=Z:e===s.AMPERSAND?(this.returnState=K,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[q](e){Le(e)?this._leaveAttrValue(z):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+=i.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+=Ge(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[Z](e){Le(e)?this._leaveAttrValue(z):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(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(z))}[Y](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+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=Ge(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=Te:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Y):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Y))}[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=oe:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Ge(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=ie:this._reconsumeInState(oe)}[ie](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[oe](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=oe):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(i.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(Ge(e)),this.state=le))}[le](e){Le(e)?this.state=fe: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+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Ge(e)}[fe](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=de:this._consumeSequenceIfMatch(u.SYSTEM_STRING,e,!1)?this.state=ye:this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(xe)))}[de](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(xe))}[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(xe)))}[he](e){e===s.QUOTATION_MARK?this.state=ve:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.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+=Ge(e)}[me](e){e===s.APOSTROPHE?this.state=ve:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.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+=Ge(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(xe))}[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(xe)))}[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(xe))}[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(xe)))}[Ee](e){e===s.QUOTATION_MARK?this.state=we:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.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+=Ge(e)}[_e](e){e===s.APOSTROPHE?this.state=we:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.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+=Ge(e)}[we](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(xe)))}[xe](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())}[Te](e){e===s.RIGHT_SQUARE_BRACKET?this.state=ke:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[ke](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Oe:(this._emitChars("]"),this._reconsumeInState(Te))}[Oe](e){e===s.GREATER_THAN_SIGN?this.state=l:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Te))}[Ce](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Me):ze(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){ze(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Ge(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)||Ue(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){Ue(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(i.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(i.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)}}Ze.CHARACTER_TOKEN="CHARACTER_TOKEN",Ze.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ze.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ze.START_TAG_TOKEN="START_TAG_TOKEN",Ze.END_TAG_TOKEN="END_TAG_TOKEN",Ze.COMMENT_TOKEN="COMMENT_TOKEN",Ze.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ze.EOF_TOKEN="EOF_TOKEN",Ze.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ze.MODE={DATA:l,RCDATA:f,RAWTEXT:d,SCRIPT_DATA:p,PLAINTEXT:h},Ze.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=Ze},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),i=n(41734),o=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,o.EOF;return this._err(i.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,o.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===o.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===o.CARRIAGE_RETURN)return this.skipNextNewLine=!0,o.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===o.LINE_FEED||e===o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.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 i=function(e){return{nodeName:"#text",value:e,parentNode:null}},o=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 i=null;for(let o=0;o<e.childNodes.length;o++)if("#documentType"===e.childNodes[o].nodeName){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):o(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)}o(e,i(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,i(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 i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];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),i=/%[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,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)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<o;u=r[++n])m(u)||!E(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,i){if(y(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===r.noDeprecation)return e;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,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&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=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(o)return o;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)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(x(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(w(n))return f(n)}var c,E="",T=!1,k=["{","}"];(p(n)&&(T=!0,k=["[","]"]),x(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(E=" "+RegExp.prototype.toString.call(n)),_(n)&&(E=" "+Date.prototype.toUTCString.call(n)),w(n)&&(E=" "+f(n)),0!==a.length||T&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=T?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(d(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return d(e,n,r,s,t,T)})),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,k)):k[0]+E+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(a="["+i+"]"),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=o?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(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).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]"===T(e)}function E(e){return"object"===typeof e&&null!==e}function _(e){return E(e)&&"[object Date]"===T(e)}function w(e){return E(e)&&("[object Error]"===T(e)||e instanceof Error)}function x(e){return"function"===typeof e}function T(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){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=w,t.isFunction=x,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=[k(e.getHours()),k(e.getMinutes()),k(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),i="win32"===r.platform,o=n(18059);function a(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}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 f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=c.exec(r);return[n,i[1],i[2],i[3]]}function d(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,i=arguments.length-1;i>=-1;i--){var s;if(i>=0?s=arguments[i]:e?(s=r.env["="+e])&&s.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(s=e+"\\"):s=r.cwd(),!o.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var u=d(s),c=u.device,l=u.isUnc,f=u.isAbsolute,h=u.tail;if((!c||!e||c.toLowerCase()===e.toLowerCase())&&(e||(e=c),n||(t=h+"\\"+t,n=f),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},l.normalize=function(e){var t=d(e),n=t.device,r=t.isUnc,i=t.isAbsolute,o=t.tail,s=/[\\\/]$/.test(o);return(o=a(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&s&&(o+="\\"),r&&(n=p(n)),n+(i?"\\":"")+o},l.isAbsolute=function(e){return d(e).isAbsolute},l.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!o.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(),i=s(t.split("\\")),o=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(o.length,a.length),c=u,f=0;f<u;f++)if(o[f]!==a[f]){c=f;break}if(0==c)return t;var d=[];for(f=c;f<o.length;f++)d.push("..");return(d=d.concat(i.slice(c))).join("\\")},l._makeLong=function(e){if(!o.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=f(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=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},l.extname=function(e){return f(e)[3]},l.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!o.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(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=f(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 i=n>=0?arguments[n]:r.cwd();if(!o.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[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(!o.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("/")),i=Math.min(n.length,r.length),o=i,a=0;a<i;a++)if(n[a]!==r[a]){o=a;break}var u=[];for(a=o;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(o))).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(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!o.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(!o.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=i?l:m,e.exports.posix=m,e.exports.win32=l},75:function(e,t,n){var r=n(34155);(function(){var t,n,i,o,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,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),s=1e9*r.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(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 i=e.charAt(0).toUpperCase()+e.slice(1),o=n.length;o>=0;o--){var a=n[o]+i;if(a in r)return a}return!1}},34155:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!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:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);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===o||!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(d)},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),i=n(98805),o=n(57643),a="data";e.exports=function(e,t){var n=r(t),d=t,p=o;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)?d=function(e){var t=e.slice(5).replace(u,f);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=i);return new p(d,t)};var s=/^data[-\w.:]+$/i,u=/-[a-z]/g,c=/[A-Z]/g;function l(e){return"-"+e.toLowerCase()}function f(e){return e.charAt(1).toUpperCase()}},97247:function(e,t,n){"use strict";var r=n(19940),i=n(8289),o=n(5812),a=n(94397),s=n(67716),u=n(61805);e.exports=r([o,i,a,s,u])},67716:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,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),i=n(17596),o=n(10855),a=r.boolean,s=r.overloadedBoolean,u=r.booleanish,c=r.number,l=r.spaceSeparated,f=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:f,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|f,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:f,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:f,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),i=n(17596),o=n(28740),a=r.boolean,s=r.number,u=r.spaceSeparated,c=r.commaSeparated,l=r.commaOrSpaceSeparated;e.exports=i({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:o,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),i=n(99607),o=n(98805);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],u=e.attributes||{},c=e.properties,l=e.transform,f={},d={};for(t in c)n=new o(t,l(u,t),c[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),f[t]=n,d[r(t)]=t,d[r(n.attribute)]=t;return new i(f,d,a)}},98805:function(e,t,n){"use strict";var r=n(57643),i=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.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=o[l],(n&i[c])===i[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),i=n(99607);e.exports=function(e){var t,n,o=e.length,a=[],s=[],u=-1;for(;++u<o;)t=e[u],a.push(t.property),s.push(t.normal),n=t.space;return new i(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),i=n(10855);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,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),i=n(8289),o=n(5812),a=n(94397),s=n(67716),u=n(45789);e.exports=r([o,i,a,s,u])},54087:function(e,t,n){for(var r=n(75),i="undefined"===typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,d=[];s=function(e){if(0===d.length){var t=r(),n=Math.max(0,16.666666666666668-(t-l));l=n+t,setTimeout((function(){var e=d.slice(0);d.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 d.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},29119:function(e,t,n){"use strict";n.d(t,{e:function(){return T}});var r=n(67294),i=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return i(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:o(o({position:"absolute",userSelect:"none"},a[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),u=n(53316),c=n.n(u),l=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d={width:"auto",height:"auto"},p=c()((function(e,t,n){return Math.max(Math.min(e,n),t)})),h=c()((function(e,t){return Math.round(e/t)*t})),m=c()((function(e,t){return new RegExp(e,"i").test(t)})),v=function(e){return Boolean(e.touches&&e.touches.length)},g=c()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,i){return Math.abs(r-e)<Math.abs(t[n]-e)?i:n}),0),i=Math.abs(t[r]-e);return 0===n||i<n?t[r]:e})),y=c()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),b=c()((function(e){return"auto"===(e=e.toString())||y(e,"px")||y(e,"%")||y(e,"vh")||y(e,"vw")||y(e,"vmax")||y(e,"vmin")?e:e+"px"})),E=function(e,t,n,r){if(e&&"string"===typeof e){if(y(e,"px"))return Number(e.replace("px",""));if(y(e,"%"))return t*(Number(e.replace("%",""))/100);if(y(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(y(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},_=c()((function(e,t,n,r,i,o,a){return r=E(r,e.width,t,n),i=E(i,e.height,t,n),o=E(o,e.width,t,n),a=E(a,e.height,t,n),{maxWidth:"undefined"===typeof r?void 0:Number(r),maxHeight:"undefined"===typeof i?void 0:Number(i),minWidth:"undefined"===typeof o?void 0:Number(o),minHeight:"undefined"===typeof a?void 0:Number(a)}})),w=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],x="__resizable_base__",T=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(x):t.className+=x,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:"undefined"===typeof(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:"undefined"===typeof(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||d},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if("undefined"===typeof e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&y(e.propsSize[t].toString(),"%")){if(y(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return b(e.state[t])};return{width:t&&"undefined"!==typeof t.width&&!this.state.isResizing?b(t.width):n("width"),height:t&&"undefined"!==typeof t.height&&!this.state.isResizing?b(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||"undefined"!==typeof n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,i=this.props.boundsByDirection,o=this.state.direction,a=i&&m("left",o),s=i&&m("top",o);if("parent"===this.props.bounds){var u=this.parentNode;u&&(n=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,i=this.state,o=i.direction,a=i.original,s=this.props,u=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,l=s.lockAspectRatioExtraWidth,f=a.width,d=a.height,p=c||0,h=l||0;return m("right",o)&&(f=a.width+(e-a.x)*r/n,u&&(d=(f-h)/this.ratio+p)),m("left",o)&&(f=a.width-(e-a.x)*r/n,u&&(d=(f-h)/this.ratio+p)),m("bottom",o)&&(d=a.height+(t-a.y)*r/n,u&&(f=(d-p)*this.ratio+h)),m("top",o)&&(d=a.height-(t-a.y)*r/n,u&&(f=(d-p)*this.ratio+h)),{newWidth:f,newHeight:d}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var i=this.props,o=i.lockAspectRatio,a=i.lockAspectRatioExtraHeight,s=i.lockAspectRatioExtraWidth,u="undefined"===typeof r.width?10:r.width,c="undefined"===typeof n.width||n.width<0?e:n.width,l="undefined"===typeof r.height?10:r.height,f="undefined"===typeof n.height||n.height<0?t:n.height,d=a||0,h=s||0;if(o){var m=(l-d)*this.ratio+h,v=(f-d)*this.ratio+h,g=(u-h)/this.ratio+d,y=(c-h)/this.ratio+d,b=Math.max(u,m),E=Math.min(c,v),_=Math.max(l,g),w=Math.min(f,y);e=p(e,b,E),t=p(t,_,w)}else e=p(e,u,c),t=p(t,l,f);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!==typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),i=r.left,o=r.top,a=r.right,s=r.bottom;this.resizableLeft=i,this.resizableRight=a,this.resizableTop=o,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,i=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,i=e.nativeEvent.clientY):e.nativeEvent&&v(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,i=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&("undefined"!==typeof this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),"undefined"!==typeof this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"===typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:r,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:f(f({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(u)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&v(e))try{e.preventDefault(),e.stopPropagation()}catch(M){}var t=this.props,n=t.maxWidth,r=t.maxHeight,i=t.minWidth,o=t.minHeight,a=v(e)?e.touches[0].clientX:e.clientX,s=v(e)?e.touches[0].clientY:e.clientY,u=this.state,c=u.direction,l=u.original,f=u.width,d=u.height,p=this.getParentSize(),m=_(p,this.window.innerWidth,this.window.innerHeight,n,r,i,o);n=m.maxWidth,r=m.maxHeight,i=m.minWidth,o=m.minHeight;var b=this.calculateNewSizeFromDirection(a,s),E=b.newHeight,w=b.newWidth,x=this.calculateNewMaxFromBoundary(n,r),T=this.calculateNewSizeFromAspectRatio(w,E,{width:x.maxWidth,height:x.maxHeight},{width:i,height:o});if(w=T.newWidth,E=T.newHeight,this.props.grid){var k=h(w,this.props.grid[0]),O=h(E,this.props.grid[1]),C=this.props.snapGap||0;w=0===C||Math.abs(k-w)<=C?k:w,E=0===C||Math.abs(O-E)<=C?O:E}this.props.snap&&this.props.snap.x&&(w=g(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=g(E,this.props.snap.y,this.props.snapGap));var A={width:w-l.width,height:E-l.height};if(f&&"string"===typeof f)if(y(f,"%"))w=w/p.width*100+"%";else if(y(f,"vw")){w=w/this.window.innerWidth*100+"vw"}else if(y(f,"vh")){w=w/this.window.innerHeight*100+"vh"}if(d&&"string"===typeof d)if(y(d,"%"))E=E/p.height*100+"%";else if(y(d,"vw")){E=E/this.window.innerWidth*100+"vw"}else if(y(d,"vh")){E=E/this.window.innerHeight*100+"vh"}var S={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(E,"height")};"row"===this.flexDir?S.flexBasis=S.width:"column"===this.flexDir&&(S.flexBasis=S.height),this.setState(S),this.props.onResize&&this.props.onResize(e,c,this.resizable,A)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,i=t.original;if(n&&this.resizable){var o={width:this.size.width-i.width,height:this.size.height-i.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:f(f({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,i=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,u=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(s,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:i&&i[t],className:o&&o[t]},c&&c[t]?c[t]:null):null}));return r.createElement("div",{className:u,style:a},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==w.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=f(f(f({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return r.createElement(i,f({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent)},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"]),i=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))};var i,o=n(67294),a=(i=o)&&i.__esModule?i:{default:i};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},i=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}}(),o=n(54087),a=g(o),s=g(n(53879)),u=n(67294),c=g(n(45697)),l=g(n(77928)),f=g(n(66445)),d=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,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=b(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));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),i(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,o.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,i=void 0===r?0:r,o=e.scrollWidth,a=void 0===o?0:o,s=e.scrollHeight,u=void 0===s?0:s,c=e.clientWidth,l=void 0===c?0:c,f=e.clientHeight,d=void 0===f?0:f;return{left:n/(a-l)||0,top:i/(u-d)||0,scrollLeft:n,scrollTop:i,scrollWidth:a,scrollHeight:u,clientWidth:l,clientHeight:d}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,o=r.clientWidth,a=(0,p.default)(this.trackHorizontal),s=Math.ceil(o/i*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,i=r.scrollHeight,o=r.clientHeight,a=(0,h.default)(this.trackVertical),s=Math.ceil(o/i*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,i=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,f.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),i.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,i=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,f.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),i.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,i=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(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,f.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,i=this.getThumbHorizontalWidth(),o=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),o=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,i=t.getBoundingClientRect().left;this.prevPageX=r-(n-i)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,i=t.getBoundingClientRect().top;this.prevPageY=r-(n-i)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=d.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,i=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(i)}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,i=this.getValues();if((0,f.default)()){var o=i.scrollLeft,a=i.clientWidth,u=i.scrollWidth,c=(0,p.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),d={width:l,transform:"translateX("+o/(u-a)*(c-l)+"px)"},m=i.scrollTop,v=i.clientHeight,g=i.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"},w={visibility:g>v?"visible":"hidden"};(0,s.default)(this.trackHorizontal,_),(0,s.default)(this.trackVertical,w)}(0,s.default)(this.thumbHorizontal,d),(0,s.default)(this.thumbVertical,E)}n&&n(i),"function"===typeof e&&e(i)}},{key:"render",value:function(){var e=this,t=(0,f.default)(),n=this.props,i=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),o=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,d=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,w=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"]),x=this.state.didMountUniversal,T=r({},m.containerStyleDefault,g&&r({},m.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),E),k=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&&!x&&{minHeight:y,maxHeight:b},v&&!x&&m.viewStyleUniversalInitial),O={transition:"opacity "+h+"ms",opacity:0},C=r({},m.trackHorizontalStyleDefault,p&&O,(!t||v&&!x)&&{display:"none"}),A=r({},m.trackVerticalStyleDefault,p&&O,(!t||v&&!x)&&{display:"none"});return(0,u.createElement)(d,r({},w,{style:T,ref:function(t){e.container=t}}),[(0,u.cloneElement)(i({style:k}),{key:"view",ref:function(t){e.view=t}},_),(0,u.cloneElement)(o({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,i=n(36164),o=(r=i)&&r.__esModule?r:{default:r};t.ZP=o.default,t.$B=o.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,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}},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,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}},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,o.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,i=n(53879),o=(r=i)&&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,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(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(!o(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(!o(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(i&&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)&&!o(e[c[u]],a[c[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},24878:function(e,n,r){"use strict";r.d(n,{f$:function(){return Uo},s6:function(){return zo}});var i=r(67294);function o(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 o({},t[0],t[1])})))))},f=r(23405),d=r.n(f);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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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,o=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,f=n.initPropNames,v=void 0===f?[]:f;return(0,i.forwardRef)((function(t,n){var r=(0,i.useRef)(),a=h((0,i.useState)({}),2),u=a[0],f=a[1];(0,i.useEffect)((function(){return f(t)}));var p=(0,i.useMemo)((function(){var n=d()(v.filter((function(e){return t.hasOwnProperty(e)})).map((function(e){return[e,t[e]]})));return e(n)}),[]);(0,i.useLayoutEffect)((function(){p(s(r.current))}),[]),(0,i.useEffect)((function(){return p._destructor instanceof Function?p._destructor:void 0}),[]);var g=(0,i.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,i.useImperativeHandle)(n,(function(){return d()(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))}]})))})),i.createElement(o,{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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){x(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 x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 k(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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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:w(w({},Object.assign.apply(Object,[{}].concat(k(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return x({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=n[e].apply(n,i);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,i,o,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(i=document.createElement("a-text")),i.setAttribute("position","0 -0.3 -1"),i.setAttribute("width",2),i.setAttribute("align","center"),i.setAttribute("color","lavender"),i.setAttribute("value",""),r.appendChild(o=document.createElement("a-text")),o.setAttribute("position","0 -0.4 -1"),o.setAttribute("width",1.3),o.setAttribute("align","center"),o.setAttribute("color","lavender"),o.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,k(["node","link"].map((function(e){var n={node:"Node",link:"Link"}[e];return x({},"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)||"";i.setAttribute("value",s),o.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(k(Object.entries(e).filter((function(e){var r=T(e,2),i=r[0],o=r[1];return t.hasOwnProperty(i)&&-1!==n.indexOf(i)&&void 0!==o&&null!==o})).map((function(e){var t=T(e,2);return x({},t[0],t[1])}))),k(Object.entries(e.graphData).map((function(e){var t=T(e,2);return x({},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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=n[e].apply(n,i);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,i=void 0===r?{preset:"hiro"}:r;e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container);var o=document.createElement("a-scene");o.setAttribute("embedded",""),o.setAttribute("arjs","debugUIEnabled: false;");var a,s=document.createElement("a-marker");Object.entries(i).forEach((function(e){var t=N(e,2),n=t[0],r=t[1];return s.setAttribute(n,r)})),o.appendChild(s),o.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",""),o.appendChild(u),t.container.appendChild(o)},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),i=r[0],o=r[1];return t.hasOwnProperty(i)&&-1!==n.indexOf(i)&&void 0!==o&&null!==o})).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,z=new B.iMs,U=new B.FM8,V=new B.Pa4,W=new B.Pa4,G=new B.Pa4,K=new B.yGw;class q extends B.pBf{constructor(e,t,n){super(),n.style.touchAction="none";let r=null,i=null;const o=[],a=this;function s(){n.addEventListener("pointermove",c),n.addEventListener("pointerdown",l),n.addEventListener("pointerup",f),n.addEventListener("pointerleave",f)}function u(){n.removeEventListener("pointermove",c),n.removeEventListener("pointerdown",l),n.removeEventListener("pointerup",f),n.removeEventListener("pointerleave",f),n.style.cursor=""}function c(s){if(!1!==a.enabled){if(d(s),z.setFromCamera(U,t),r)return z.ray.intersectPlane(H,W)&&r.position.copy(W.sub(V).applyMatrix4(K)),void a.dispatchEvent({type:"drag",object:r});if("mouse"===s.pointerType||"pen"===s.pointerType)if(o.length=0,z.setFromCamera(U,t),z.intersectObjects(e,!0,o),o.length>0){const e=o[0].object;H.setFromNormalAndCoplanarPoint(t.getWorldDirection(H.normal),G.setFromMatrixPosition(e.matrixWorld)),i!==e&&null!==i&&(a.dispatchEvent({type:"hoveroff",object:i}),n.style.cursor="auto",i=null),i!==e&&(a.dispatchEvent({type:"hoveron",object:e}),n.style.cursor="pointer",i=e)}else null!==i&&(a.dispatchEvent({type:"hoveroff",object:i}),n.style.cursor="auto",i=null)}}function l(i){!1!==a.enabled&&(d(i),o.length=0,z.setFromCamera(U,t),z.intersectObjects(e,!0,o),o.length>0&&(r=!0===a.transformGroup?e[0]:o[0].object,H.setFromNormalAndCoplanarPoint(t.getWorldDirection(H.normal),G.setFromMatrixPosition(r.matrixWorld)),z.ray.intersectPlane(H,W)&&(K.copy(r.parent.matrixWorld).invert(),V.copy(W).sub(G.setFromMatrixPosition(r.matrixWorld))),n.style.cursor="move",a.dispatchEvent({type:"dragstart",object:r})))}function f(){!1!==a.enabled&&(r&&(a.dispatchEvent({type:"dragend",object:r}),r=null),n.style.cursor=i?"pointer":"auto")}function d(e){const t=n.getBoundingClientRect();U.x=(e.clientX-t.left)/t.width*2-1,U.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 Z=r(81398);const $={type:"change"},Y={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,i=0,o=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 f=1,d=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,w=new B.FM8,x=new B.FM8,T=new B.FM8,k=[],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===k.length&&(n.domElement.ownerDocument.addEventListener("pointermove",M),n.domElement.ownerDocument.addEventListener("pointerup",D)),function(e){k.push(e)}(e),"touch"===e.pointerType?function(e){switch(F(e),k.length){case 1:d=s,b.copy(A(k[0].pageX,k[0].pageY)),y.copy(b);break;default:d=u;const e=k[0].pageX-k[1].pageX,t=k[0].pageY-k[1].pageY;m=h=Math.sqrt(e*e+t*t);const n=(k[0].pageX+k[1].pageX)/2,r=(k[0].pageY+k[1].pageY)/2;x.copy(C(n,r)),T.copy(x)}n.dispatchEvent(Y)}(e):function(e){if(d===r)switch(e.button){case n.mouseButtons.LEFT:d=i;break;case n.mouseButtons.MIDDLE:d=o;break;case n.mouseButtons.RIGHT:d=a;break;default:d=r}const t=p!==r?p:d;t!==i||n.noRotate?t!==o||n.noZoom?t!==a||n.noPan||(x.copy(C(e.pageX,e.pageY)),T.copy(x)):(_.copy(C(e.pageX,e.pageY)),w.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(Y)}(e))}function M(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(F(e),k.length){case 1:y.copy(b),b.copy(A(e.pageX,e.pageY));break;default:const t=function(e){const t=e.pointerId===k[0].pointerId?k[1]:k[0];return O[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;m=Math.sqrt(n*n+r*r);const i=(e.pageX+t.x)/2,o=(e.pageY+t.y)/2;T.copy(C(i,o))}}(e):function(e){const t=p!==r?p:d;t!==i||n.noRotate?t!==o||n.noZoom?t!==a||n.noPan||T.copy(C(e.pageX,e.pageY)):w.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(k.length){case 0:d=r;break;case 1:d=s,b.copy(A(e.pageX,e.pageY)),y.copy(b)}n.dispatchEvent(X)}(e):(d=r,n.domElement.ownerDocument.removeEventListener("pointermove",M),n.domElement.ownerDocument.removeEventListener("pointerup",D),n.dispatchEvent(X)),j(e),0===k.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[i]||n.noRotate?e.code!==n.keys[o]||n.noZoom?e.code!==n.keys[a]||n.noPan||(p=a):p=o:p=i))}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(Y),n.dispatchEvent(X)}}function L(e){!1!==n.enabled&&e.preventDefault()}function j(e){delete O[e.pointerId];for(let t=0;t<k.length;t++)if(k[t].pointerId==e.pointerId)return void k.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,i=new B.Pa4,o=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(),i.copy(n.object.up).normalize(),o.crossVectors(i,r).normalize(),i.setLength(b.y-y.y),o.setLength(b.x-y.x),a.copy(i.add(o)),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;d===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+(w.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(w):_.y+=(w.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(T).sub(x),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?x.copy(T):x.add(e.subVectors(T,x).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(w)),g.lengthSq()<n.minDistance*n.minDistance&&(n.object.position.addVectors(n.target,g.setLength(n.minDistance)),_.copy(w)))},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||f!==n.object.zoom)&&(n.dispatchEvent($),l.copy(n.object.position),f=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){d=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),f=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",W),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(),i=r.NONE},this.update=function(){const t=new B.Pa4,f=(new B._fP).setFromUnitVectors(e.up,new B.Pa4(0,1,0)),d=f.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(f),a.setFromVector3(t),n.autoRotate&&i===r.NONE&&x(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(d),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)>o||8*(1-h.dot(n.object.quaternion))>o)&&(n.dispatchEvent(J),p.copy(n.object.position),h.copy(n.object.quaternion),l=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",G),n.domElement.removeEventListener("pointerdown",F),n.domElement.removeEventListener("pointercancel",U),n.domElement.removeEventListener("wheel",V),n.domElement.ownerDocument.removeEventListener("pointermove",H),n.domElement.ownerDocument.removeEventListener("pointerup",z),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",W)};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 i=r.NONE;const o=1e-6,a=new B.$V,s=new B.$V;let u=1;const c=new B.Pa4;let l=!1;const f=new B.FM8,d=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 w(){return Math.pow(.95,n.zoomSpeed)}function x(e){s.theta-=e}function T(e){s.phi-=e}const k=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 i=n.domElement;if(n.object.isPerspectiveCamera){const o=n.object.position;e.copy(o).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),k(2*t*a/i.clientHeight,n.object.matrix),O(2*r*a/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(k(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),O(r*(n.object.top-n.object.bottom)/n.object.zoom/i.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){f.set(e.clientX,e.clientY)}function D(e){h.set(e.clientX,e.clientY)}function I(){if(1===E.length)f.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);f.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)d.set(e.pageX,e.pageY);else{const t=Z(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);d.set(n,r)}p.subVectors(d,f).multiplyScalar(n.rotateSpeed);const t=n.domElement;x(2*Math.PI*p.x/t.clientHeight),T(2*Math.PI*p.y/t.clientHeight),f.copy(d)}function L(e){if(1===E.length)m.set(e.pageX,e.pageY);else{const t=Z(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=Z(e),r=e.pageX-t.x,i=e.pageY-t.y,o=Math.sqrt(r*r+i*i);y.set(0,o),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",z)),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(),i=r.TOUCH_ROTATE;break;case B.QmN.PAN:if(!1===n.enablePan)return;P(),i=r.TOUCH_PAN;break;default:i=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(),i=r.TOUCH_DOLLY_PAN;break;case B.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&N(),n.enableRotate&&I(),i=r.TOUCH_DOLLY_ROTATE;break;default:i=r.NONE}break;default:i=r.NONE}i!==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),i=r.DOLLY;break;case B.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;D(e),i=r.PAN}else{if(!1===n.enableRotate)return;M(e),i=r.ROTATE}break;case B.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;M(e),i=r.ROTATE}else{if(!1===n.enablePan)return;D(e),i=r.PAN}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(ee)}(e))}function H(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(q(e),i){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:i=r.NONE}}(e):function(e){if(!1===n.enabled)return;switch(i){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){d.set(e.clientX,e.clientY),p.subVectors(d,f).multiplyScalar(n.rotateSpeed);const t=n.domElement;x(2*Math.PI*p.x/t.clientHeight),T(2*Math.PI*p.y/t.clientHeight),f.copy(d),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(w()):b.y<0&&S(w()),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 z(e){!1!==n.enabled&&(e.pointerType,n.dispatchEvent(te),i=r.NONE,K(e),0===E.length&&(n.domElement.ownerDocument.removeEventListener("pointermove",H),n.domElement.ownerDocument.removeEventListener("pointerup",z)))}function U(e){K(e)}function V(e){!1===n.enabled||!1===n.enableZoom||i!==r.NONE&&i!==r.ROTATE||(e.preventDefault(),n.dispatchEvent(ee),function(e){e.deltaY<0?S(w()):e.deltaY>0&&A(w()),n.update()}(e),n.dispatchEvent(te))}function W(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 G(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 Z(e){const t=e.pointerId===E[0].pointerId?E[1]:E[0];return _[t.pointerId]}n.domElement.addEventListener("contextmenu",G),n.domElement.addEventListener("pointerdown",F),n.domElement.addEventListener("pointercancel",U),n.domElement.addEventListener("wheel",V,{passive:!1}),this.update()}}const re={type:"change"};class ie 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,i=new B._fP,o=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),(o.distanceToSquared(n.object.position)>r||8*(1-i.dot(n.object.quaternion))>r)&&(n.dispatchEvent(re),i.copy(n.object.quaternion),o.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",oe),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",oe),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 oe(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 fe 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 de 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(),i=e.state;let o,a;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0),this.inverse?(o=0,a=1):(o=1,a=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,o,4294967295),i.buffers.stencil.setClear(a),i.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),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.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===fe&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new fe(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,i=this.passes.length;r<i;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!==de&&(t instanceof de?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 i=0;i<this.passes.length;i++)this.passes[i].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,i){super(),this.scene=e,this.camera=t,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=void 0!==i?i:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new B.Ilk}render(e,t,n){const r=e.autoClear;let i,o;e.autoClear=!1,void 0!==this.overrideMaterial&&(o=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(e.getClearColor(this._oldClearColor),i=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,i),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=o),e.autoClear=r}}var ge=r(87462),ye=r(97326),be=r(94578);function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _e=r(89611);function we(){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 xe(e,t,n){return(xe=we()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,_e.Z)(i,n.prototype),i}).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 xe(e,arguments,Ee(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,_e.Z)(r,e)})(e)}var ke=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,ye.Z)(n)}return(0,be.Z)(t,e),t}(Te(Error));function Oe(e){return Math.round(255*e)}function Ce(e,t,n){return Oe(e)+","+Oe(t)+","+Oe(n)}function Ae(e,t,n,r){if(void 0===r&&(r=Ce),0===t)return r(n,n,n);var i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(i%2-1)),s=0,u=0,c=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,c=a):i>=3&&i<4?(u=a,c=o):i>=4&&i<5?(s=a,c=o):i>=5&&i<6&&(s=o,c=a);var l=n-o/2;return r(s+l,u+l,c+l)}var Se={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 Me=/^#[a-fA-F0-9]{6}$/,De=/^#[a-fA-F0-9]{8}$/,Ie=/^#[a-fA-F0-9]{3}$/,Pe=/^#[a-fA-F0-9]{4}$/,Ne=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Re=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Le=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,je=/^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 Fe(e){if("string"!==typeof e)throw new ke(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return Se[t]?"#"+Se[t]:e}(e);if(t.match(Me))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(De)){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(Ie))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(Pe)){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 i=Ne.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=Re.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var a=Le.exec(t);if(a){var s="rgb("+Ae(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Ne.exec(s);if(!u)throw new ke(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=je.exec(t.substring(0,50));if(c){var l="rgb("+Ae(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",f=Ne.exec(l);if(!f)throw new ke(4,t,l);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+c[4])}}throw new ke(5)}var Be=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 ze(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return Be("#"+He(e)+He(t)+He(n));if("object"===typeof e&&void 0===t&&void 0===n)return Be("#"+He(e.red)+He(e.green)+He(e.blue));throw new ke(6)}function Ue(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var i=Fe(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?ze(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?ze(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ke(7)}function Ve(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ve(e,t,r)}}function We(e){return Ve(e,e.length,[])}function Ge(e,t,n){return Math.max(e,Math.min(t,n))}function Ke(e,t){if("transparent"===t)return t;var n=Fe(t),r="number"===typeof n.alpha?n.alpha:1;return Ue((0,ge.Z)({},n,{alpha:Ge(0,1,(100*r+100*parseFloat(e))/100)}))}var qe=We(Ke);var Ze=r(36194);function $e(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Qe(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 Xe(e){return function(e){if(Array.isArray(e))return Je(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qe(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 Qe(e,t){if(e){if("string"===typeof e)return Je(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)?Je(e,t):void 0}}function Je(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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 et=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},tt=(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)}Ze.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 i=e.camera;if(t&&e.initialised){var o=t,a=n||{x:0,y:0,z:0};if(r){var s=Object.assign({},i.position),u=f();new Ze.ZP.Tween(s).to(o,r).easing(Ze.ZP.Easing.Quadratic.Out).onUpdate(c).start(),new Ze.ZP.Tween(u).to(a,r/3).easing(Ze.ZP.Easing.Quadratic.Out).onUpdate(l).start()}else c(o),l(a);return this}return Object.assign({},i.position,{lookAt:f()});function c(e){var t=e.x,n=e.y,r=e.z;void 0!==t&&(i.position.x=t),void 0!==n&&(i.position.y=n),void 0!==r&&(i.position.z=r)}function l(t){e.controls.target=new et.Vector3(t.x,t.y,t.z)}function f(){return Object.assign(new et.Vector3(0,0,-1e3).applyQuaternion(i.quaternion).add(i.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,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return this.fitToBbox(this.getBbox.apply(this,i),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,i=e.camera;if(t){var o=new et.Vector3(0,0,0),a=2*Math.max.apply(Math,Xe(Object.entries(t).map((function(e){var t=Ye(e,2),n=t[0],r=t[1];return Math.max.apply(Math,Xe(r.map((function(e){return Math.abs(o[n]-e)}))))})))),s=(1-2*r/e.height)*i.fov,u=a/Math.atan(s*Math.PI/180),c=u/i.aspect,l=Math.max(u,c);if(l>0){var f=o.clone().sub(i.position).normalize().multiplyScalar(-l);this.cameraPosition(f,o,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new et.Box3(new et.Vector3(0,0,0),new et.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach((function(e){return n.expandByObject(e)})),Object.assign.apply(Object,Xe(["x","y","z"].map((function(e){return $e({},e,[n.min[e],n.max[e]])}))))):null},getScreenCoords:function(e,t,n,r){var i=new et.Vector3(t,n,r);return i.project(this.camera()),{x:(i.x+1)*e.width/2,y:-(i.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=new et.Vector2(t/e.width*2-1,-n/e.height*2+1),o=new et.Raycaster;return o.setFromCamera(i,e.camera),Object.assign({},o.ray.at(r,new et.Vector3))},intersectingObjects:function(e,t,n){var r=new et.Vector2(t/e.width*2-1,-n/e.height*2+1),i=new et.Raycaster;return i.params.Line.threshold=e.lineHoverPrecision,i.setFromCamera(r,e.camera),i.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 et.Scene,camera:new et.PerspectiveCamera,clock:new et.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,i=void 0===r?"trackball":r,o=n.rendererConfig,a=void 0===o?{}:o,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"}[i]||"",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 et.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 et.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:ie}[i](t.camera,t.renderer.domElement),"fly"===i&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),"trackball"!==i&&"orbit"!==i||(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(Xe(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 et.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(Xe(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 et.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=Fe(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new et.Color(qe(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?(new et.TextureLoader).load(e.backgroundImageUrl,(function(t){e.skysphere.material=new et.MeshBasicMaterial({map:t,side:et.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 nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){it(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e){return function(e){if(Array.isArray(e))return at(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 at(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 at(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 at(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 st(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],i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=r[t].apply(r,o);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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 ut=window.THREE?window.THREE:{AmbientLight:B.Mig,DirectionalLight:B.Ox3,Vector3:B.Pa4},ct=st("forceGraph",Z.default),lt=Object.assign.apply(Object,ot(["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 it({},e,ct.linkProp(e))})))),ft=Object.assign.apply(Object,ot(["refresh","getGraphBbox","d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return it({},e,ct.linkMethod(e))})))),dt=st("renderObjs",tt),pt=Object.assign.apply(Object,ot(["width","height","backgroundColor","showNavInfo","enablePointerInteraction"].map((function(e){return it({},e,dt.linkProp(e))})))),ht=Object.assign.apply(Object,ot(["cameraPosition","postProcessingComposer"].map((function(e){return it({},e,dt.linkMethod(e))}))).concat([{graph2ScreenCoords:dt.linkMethod("getScreenCoords"),screen2GraphCoords:dt.linkMethod("getSceneCoords")}]));function mt(e){for(var t=e;t&&!t.hasOwnProperty("__graphObjType");)t=t.parent;return t}var vt=(0,b.Z)({props:rt(rt({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}},lt),pt),methods:rt(rt({zoomToFit:function(e,t,n){for(var r,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return e.renderObjs.fitToBbox((r=e.forceGraph).getGraphBbox.apply(r,o),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:[]})}},ft),ht),stateInit:function(e){var t=e.controlType,n=e.rendererConfig,r=e.extraRenderers;return{forceGraph:new Z.default,renderObjs:tt({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,i=t.renderObjs.camera(),o=t.renderObjs.renderer(),a=t.renderObjs.controls();a.enabled=!!t.enableNavigationControls,t.lastSetCameraZ=i.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===i.position.x&&0===i.position.y&&i.position.z===t.lastSetCameraZ&&t.graphData.nodes.length&&(i.lookAt(t.forceGraph.position),t.lastSetCameraZ=i.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})),i,o.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=mt(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]})),o.domElement.classList.add("grabbable")})),n.addEventListener("drag",(function(e){var n=mt(e.object);if(!e.object.hasOwnProperty("__graphObjType")){var r=e.object.__initialPos,i=e.object.__prevPos,o=e.object.position;n.position.add(o.clone().sub(i)),i.copy(o),o.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=mt(e.object).__data;r.__disposeControlsAfterDrag&&(n.dispose(),delete r.__disposeControlsAfterDrag);var i=r.__initialFixedPos,s=r.__initialPos,u={x:s.x-r.x,y:s.y-r.y,z:s.z-r.z};i&&(["x","y","z"].forEach((function(e){var t="f".concat(e);void 0===i[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"}))),o.domElement.classList.remove("grabbable")}))}})),t.renderObjs.objects([new ut.AmbientLight(12303291),new ut.DirectionalLight(16777215,.6),t.forceGraph]).hoverOrderComparator((function(e,t){var n=mt(e);if(!n)return 1;var r=mt(t);if(!r)return-1;var i=function(e){return"node"===e.__graphObjType};return i(r)-i(n)})).tooltipContent((function(e){var n=mt(e);return n&&(0,E.default)(t["".concat(n.__graphObjType,"Label")])(n.__data)||""})).hoverDuringDrag(!1).onHover((function(e){var n=mt(e);if(n!==t.hoverObj){var r=t.hoverObj?t.hoverObj.__graphObjType:null,i=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,i)}if(a){var c=t["on".concat("node"===a?"Node":"Link","Hover")];c&&c(s,r===a?i:null)}o.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=mt(e);if(r){var i=t["on".concat("node"===r.__graphObjType?"Node":"Link","Click")];i&&i(r.__data,n)}else t.onBackgroundClick&&t.onBackgroundClick(n)})).onRightClick((function(e,n){var r=mt(e);if(r){var i=t["on".concat("node"===r.__graphObjType?"Node":"Link","RightClick")];i&&i(r.__data,n)}else t.onBackgroundRightClick&&t.onBackgroundRightClick(n)})),this._animationCycle()}}),gt=r(4942);function yt(){}function bt(e){return null==e?yt:function(){return this.querySelector(e)}}function Et(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function _t(){return[]}function wt(e){return null==e?_t:function(){return this.querySelectorAll(e)}}function xt(e){return function(){return this.matches(e)}}function Tt(e){return function(t){return t.matches(e)}}var kt=Array.prototype.find;function Ot(){return this.firstElementChild}var Ct=Array.prototype.filter;function At(){return Array.from(this.children)}function St(e){return new Array(e.length)}function Mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Dt(e){return function(){return e}}function It(e,t,n,r,i,o){for(var a,s=0,u=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Mt(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function Pt(e,t,n,r,i,o,a){var s,u,c,l=new Map,f=t.length,d=o.length,p=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(p[s]=c=a.call(u,u.__data__,s,t)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<d;++s)c=a.call(e,o[s],s,o)+"",(u=l.get(c))?(r[s]=u,u.__data__=o[s],l.delete(c)):n[s]=new Mt(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&l.get(p[s])===u&&(i[s]=u)}function Nt(e){return e.__data__}function Rt(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Lt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function jt(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Ft(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 Ft(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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ft(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}Mt.prototype={constructor:Mt,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 Bt="http://www.w3.org/1999/xhtml",Ht={svg:"http://www.w3.org/2000/svg",xhtml:Bt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zt(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 Ut(e){return function(){this.removeAttribute(e)}}function Vt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wt(e,t){return function(){this.setAttribute(e,t)}}function Gt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Kt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function qt(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 Zt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function $t(e){return function(){this.style.removeProperty(e)}}function Yt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Xt(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Qt(e,t){return e.style.getPropertyValue(t)||Zt(e).getComputedStyle(e,null).getPropertyValue(t)}function Jt(e){return function(){delete this[e]}}function en(e,t){return function(){this[e]=t}}function tn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function nn(e){return e.trim().split(/^|\s+/)}function rn(e){return e.classList||new on(e)}function on(e){this._node=e,this._names=nn(e.getAttribute("class")||"")}function an(e,t){for(var n=rn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function sn(e,t){for(var n=rn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function un(e){return function(){an(this,e)}}function cn(e){return function(){sn(this,e)}}function ln(e,t){return function(){(t.apply(this,arguments)?an:sn)(this,e)}}function fn(){this.textContent=""}function dn(e){return function(){this.textContent=e}}function pn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function hn(){this.innerHTML=""}function mn(e){return function(){this.innerHTML=e}}function vn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function gn(){this.nextSibling&&this.parentNode.appendChild(this)}function yn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Bt&&t.documentElement.namespaceURI===Bt?t.createElement(e):t.createElementNS(n,e)}}function En(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function _n(e){var t=zt(e);return(t.local?En:bn)(t)}function wn(){return null}function xn(){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 kn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function On(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 Cn(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function An(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Sn(e,t,n){var r=Zt(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Mn(e,t){return function(){return Sn(this,e,t)}}function Dn(e,t){return function(){return Sn(this,e,t.apply(this,arguments))}}on.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 In=r(87757),Pn=r.n(In),Nn=Pn().mark(Rn);function Rn(){var e,t,n,r,i,o,a;return Pn().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],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),Nn,this)}var Ln=[null];function jn(e,t){this._groups=e,this._parents=t}function Fn(){return new jn([[document.documentElement]],Ln)}jn.prototype=Fn.prototype=(0,gt.Z)({constructor:jn,select:function(e){"function"!==typeof e&&(e=bt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=e.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new jn(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return Et(e.apply(this,arguments))}}(e):wt(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new jn(r,i)},selectChild:function(e){return this.select(null==e?Ot:function(e){return function(){return kt.call(this.children,e)}}("function"===typeof e?e:Tt(e)))},selectChildren:function(e){return this.selectAll(null==e?At:function(e){return function(){return Ct.call(this.children,e)}}("function"===typeof e?e:Tt(e)))},filter:function(e){"function"!==typeof e&&(e=xt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new jn(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Nt);var n=t?Pt:It,r=this._parents,i=this._groups;"function"!==typeof e&&(e=Dt(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],f=i[c],d=f.length,p=Rt(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(d);n(l,f,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 jn(a,r))._enter=s,a._exit=u,a},enter:function(){return new jn(this._enter||this._groups.map(St),this._parents)},exit:function(){return new jn(this._exit||this._groups.map(St),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var c,l=n[u],f=r[u],d=l.length,p=s[u]=new Array(d),h=0;h<d;++h)(c=l[h]||f[h])&&(p[h]=c);for(;u<i;++u)s[u]=n[u];return new jn(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(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=Lt);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(t)}return new jn(i,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],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e,t=0,n=jt(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 i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=zt(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?Vt:Ut:"function"===typeof t?n.local?qt:Kt:n.local?Gt:Wt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?$t:"function"===typeof t?Xt:Yt)(e,t,null==n?"":n)):Qt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Jt:"function"===typeof t?tn:en)(e,t)):this.node()[e]},classed:function(e,t){var n=nn(e+"");if(arguments.length<2){for(var r=rn(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?ln:t?un:cn)(n,t))},text:function(e){return arguments.length?this.each(null==e?fn:("function"===typeof e?pn:dn)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?hn:("function"===typeof e?vn:mn)(e)):this.node().innerHTML},raise:function(){return this.each(gn)},lower:function(){return this.each(yn)},append:function(e){var t="function"===typeof e?e:_n(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:_n(e),r=null==t?wn:"function"===typeof t?t:bt(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(xn)},clone:function(e){return this.select(e?kn:Tn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=On(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?An:Cn,r=0;r<a;++r)this.each(s(o[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((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?Dn:Mn)(e,t))}},Symbol.iterator,Rn);var Bn=Fn;function Hn(e){return"string"===typeof e?new jn([[document.querySelector(e)]],[document.documentElement]):new jn([[e]],Ln)}var zn=r(54586),Un={passive:!1},Vn={capture:!0,passive:!1};function Wn(e){e.stopImmediatePropagation()}function Gn(e){e.preventDefault(),e.stopImmediatePropagation()}function Kn(e){var t=e.document.documentElement,n=Hn(e).on("dragstart.drag",Gn,Vn);"onselectstart"in t?n.on("selectstart.drag",Gn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function qn(e,t){var n=e.document.documentElement,r=Hn(e).on("dragstart.drag",null);t&&(r.on("click.drag",Gn,Vn),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 Zn(e){return((e=Math.exp(e))+1/e)/2}var $n=function e(t,n,r){function i(e,i){var o,a,s=e[0],u=e[1],c=e[2],l=i[0],f=i[1],d=i[2],p=l-s,h=f-u,m=p*p+h*h;if(m<1e-12)a=Math.log(d/c)/t,o=function(e){return[s+e*p,u+e*h,c*Math.exp(t*e*a)]};else{var v=Math.sqrt(m),g=(d*d-c*c+r*m)/(2*c*n*v),y=(d*d-c*c-r*m)/(2*d*n*v),b=Math.log(Math.sqrt(g*g+1)-g),E=Math.log(Math.sqrt(y*y+1)-y);a=(E-b)/t,o=function(e){var r,i=e*a,o=Zn(b),l=c/(n*v)*(o*(r=t*i+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*o/Zn(t*i+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(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 i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Xn=r(50867);function Qn(e,t,n){var r=new Xn.B7;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}var Jn=(0,zn.Z)("start","end","cancel","interrupt"),er=[];function tr(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,l,f,d;if(1!==n.state)return u();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return Qn(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(Qn((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),c=0,l=-1;c<f;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);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 i[t],i)return;delete e.__transition}i[t]=n,n.timer=(0,Xn.HT)(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:Jn,tween:er,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function nr(e,t){var n=ir(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function rr(e,t){var n=ir(e,t);if(n.state>3)throw new Error("too late; already running");return n}function ir(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function or(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).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 o[i]):a=!1;a&&delete e.__transition}}var ar,sr=r(13311),ur=180/Math.PI,cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lr(e,t,n,r,i,o){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:i,translateY:o,rotate:Math.atan2(t,e)*ur,skewX:Math.atan(u)*ur,scaleX:a,scaleY:s}}function fr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:(0,sr.Z)(e,i)},{i:u-2,x:(0,sr.Z)(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,sr.Z)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,sr.Z)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,sr.Z)(e,n)},{i:s-2,x:(0,sr.Z)(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=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 dr=fr((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?cr:lr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),pr=fr((function(e){return null==e?cr:(ar||(ar=document.createElementNS("http://www.w3.org/2000/svg","g")),ar.setAttribute("transform",e),(e=ar.transform.baseVal.consolidate())?lr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):cr)}),", ",")",")");function hr(e,t){var n,r;return function(){var i=rr(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function mr(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=rr(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}function vr(e,t,n){var r=e._id;return e.each((function(){var e=rr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return ir(e,r).value[t]}}var gr=r(94798),yr=r(20439),br=r(25996);function Er(e,t){var n;return("number"===typeof t?sr.Z:t instanceof gr.ZP?yr.ZP:(n=(0,gr.ZP)(t))?(t=n,yr.ZP):br.Z)(e,t)}function _r(e){return function(){this.removeAttribute(e)}}function wr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function xr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function Tr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function kr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function Or(e,t,n){var r,i,o;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===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function Cr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ar(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Sr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ar(e,i)),n}return i._value=t,i}function Mr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Cr(e,i)),n}return i._value=t,i}function Dr(e,t){return function(){nr(this,e).delay=+t.apply(this,arguments)}}function Ir(e,t){return t=+t,function(){nr(this,e).delay=t}}function Pr(e,t){return function(){rr(this,e).duration=+t.apply(this,arguments)}}function Nr(e,t){return t=+t,function(){rr(this,e).duration=t}}function Rr(e,t){if("function"!==typeof t)throw new Error;return function(){rr(this,e).ease=t}}function Lr(e,t,n){var r,i,o=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)?nr:rr;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var jr=Bn.prototype.constructor;function Fr(e){return function(){this.style.removeProperty(e)}}function Br(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Hr(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Br(e,o,n)),r}return o._value=t,o}function zr(e){return function(t){this.textContent=e.call(this,t)}}function Ur(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&zr(r)),t}return r._value=e,r}var Vr=0;function Wr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Gr(){return++Vr}var Kr=Bn.prototype;Wr.prototype=function(e){return Bn().transition(e)}.prototype=(0,gt.Z)({constructor:Wr,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=bt(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,f=o[a]=new Array(l),d=0;d<l;++d)(s=c[d])&&(u=e.call(s,s.__data__,d,c))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,tr(f[d],t,n,d,f,ir(s,n)));return new Wr(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=wt(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var d,p=e.call(u,u.__data__,f,c),h=ir(u,n),m=0,v=p.length;m<v;++m)(d=p[m])&&tr(d,t,n,m,p,h);o.push(p),a.push(u)}return new Wr(o,a,t,n)},selectChild:Kr.selectChild,selectChildren:Kr.selectChildren,filter:function(e){"function"!==typeof e&&(e=xt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new Wr(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,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=t[s],l=n[s],f=c.length,d=a[s]=new Array(f),p=0;p<f;++p)(u=c[p]||l[p])&&(d[p]=u);for(;s<r;++s)a[s]=t[s];return new Wr(a,this._parents,this._name,this._id)},selection:function(){return new jr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Gr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=ir(a,t);tr(a,e,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Wr(r,this._parents,e,n)},call:Kr.call,nodes:Kr.nodes,node:Kr.node,size:Kr.size,empty:Kr.empty,each:Kr.each,on:function(e,t){var n=this._id;return arguments.length<2?ir(this.node(),n).on.on(e):this.each(Lr(n,e,t))},attr:function(e,t){var n=zt(e),r="transform"===n?pr:Er;return this.attrTween(e,"function"===typeof t?(n.local?Or:kr)(n,r,vr(this,"attr."+e,t)):null==t?(n.local?wr:_r)(n):(n.local?Tr:xr)(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=zt(e);return this.tween(n,(r.local?Sr:Mr)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?dr:Er;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Qt(this,e),a=(this.style.removeProperty(e),Qt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,Fr(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=Qt(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Qt(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,vr(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=rr(this,e),c=u.on,l=null==u.value[a]?o||(o=Fr(t)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=Qt(this,e);return a===o?null:a===r?i:i=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}}(vr(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,Ur(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,i=ir(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?hr:mr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Dr:Ir)(t,e)):ir(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Pr:Nr)(t,e)):ir(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Rr(t,e)):ir(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;rr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=rr(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))}},Symbol.iterator,Kr[Symbol.iterator]);var qr={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Zr(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}Bn.prototype.interrupt=function(e){return this.each((function(){or(this,e)}))},Bn.prototype.transition=function(e){var t,n;e instanceof Wr?(t=e._id,e=e._name):(t=Gr(),(n=qr).time=(0,Xn.zO)(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&tr(a,e,t,c,s,n||Zr(a,t));return new Wr(r,this._parents,e,t)};var $r=function(e){return function(){return e}};function Yr(e,t){var n=t.sourceEvent,r=t.target,i=t.transform,o=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:i,enumerable:!0,configurable:!0},_:{value:o}})}function Xr(e,t,n){this.k=e,this.x=t,this.y=n}Xr.prototype={constructor:Xr,scale:function(e){return 1===e?this:new Xr(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Xr(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 Qr=new Xr(1,0,0);function Jr(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Qr;return e.__zoom}function ei(e){e.stopImmediatePropagation()}function ti(e){e.preventDefault(),e.stopImmediatePropagation()}function ni(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function ri(){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 ii(){return this.__zoom||Qr}function oi(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ai(){return navigator.maxTouchPoints||"ontouchstart"in this}function si(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function ui(){var e,t,n,r=ni,i=ri,o=si,a=oi,s=ai,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=$n,d=(0,zn.Z)("start","zoom","end"),p=500,h=0,m=10;function v(e){e.property("__zoom",ii).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",k).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 Xr(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Xr(e.k,r,i)}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,o=arguments,a=_(e,o).event(r),s=i.apply(e,o),u=null==n?b(s):"function"===typeof n?n.apply(e,o):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=e.__zoom,d="function"===typeof t?t.apply(e,o):t,p=f(l.invert(u).concat(c/l.k),d.invert(u).concat(c/d.k));return function(e){if(1===e)e=d;else{var t=p(e),n=c/t[2];e=new Xr(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function _(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=_(this,n).event(e),l=this.__zoom,f=Math.max(u[0],Math.min(u[1],l.k*Math.pow(2,a.apply(this,arguments)))),d=Yn(e);if(s.wheel)s.mouse[0][0]===d[0]&&s.mouse[0][1]===d[1]||(s.mouse[1]=l.invert(s.mouse[0]=d)),clearTimeout(s.wheel);else{if(l.k===f)return;s.mouse=[d,l.invert(d)],or(this),s.start()}ti(e),s.wheel=setTimeout(p,150),s.zoom("mouse",o(y(g(l,f),s.mouse[0],s.mouse[1]),s.extent,c))}function p(){s.wheel=null,s.end()}}function T(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=e.currentTarget,u=_(this,i,!0).event(e),l=Hn(e.view).on("mousemove.zoom",m,!0).on("mouseup.zoom",v,!0),f=Yn(e,s),d=e.clientX,p=e.clientY;Kn(e.view),ei(e),u.mouse=[f,this.__zoom.invert(f)],or(this),u.start()}function m(e){if(ti(e),!u.moved){var t=e.clientX-d,n=e.clientY-p;u.moved=t*t+n*n>h}u.event(e).zoom("mouse",o(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),qn(e.view,u.moved),ti(e),u.event(e).end()}}function k(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),f=s.invert(u),d=s.k*(e.shiftKey?.5:2),p=o(y(g(s,d),u,f),i.apply(this,n),c);ti(e),l>0?Hn(this).transition().duration(l).call(E,p,u,e):Hn(this).call(v.transform,p,u,e)}}function O(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r.apply(this,arguments)){var s,u,c,l,f=n.touches,d=f.length,h=_(this,o,n.changedTouches.length===d).event(n);for(ei(n),u=0;u<d;++u)l=[l=Yn(c=f[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)),or(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 i,a,s,u,l=_(this,n).event(e),f=e.changedTouches,d=f.length;for(ti(e),i=0;i<d;++i)s=Yn(a=f[i],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",o(y(a,s,u),l.extent,c))}}function A(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var a,s,u=_(this,i).event(e),c=e.changedTouches,l=c.length;for(ei(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 f=Hn(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",ii),e!==i?E(e,t,n,r):i.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=i.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 o(y(g(r,u),a,s),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return o(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},v.translateTo=function(e,t,n,r,a){v.transform(e,(function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?b(e):"function"===typeof r?r.apply(this,arguments):r;return o(Qr.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)},w.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();d.call(e,this.that,new Yr(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:d}),t)}},v.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:$r(+e),v):a},v.filter=function(e){return arguments.length?(r="function"===typeof e?e:$r(!!e),v):r},v.touchable=function(e){return arguments.length?(s="function"===typeof e?e:$r(!!e),v):s},v.extent=function(e){return arguments.length?(i="function"===typeof e?e:$r([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):i},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?(o=e,v):o},v.duration=function(e){return arguments.length?(l=+e,v):l},v.interpolate=function(e){return arguments.length?(f=e,v):f},v.on=function(){var e=d.on.apply(d,arguments);return e===d?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}Jr.prototype=Xr.prototype;var ci=function(e){return function(){return e}};function li(e,t){var n=t.sourceEvent,r=t.subject,i=t.target,o=t.identifier,a=t.active,s=t.x,u=t.y,c=t.dx,l=t.dy,f=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:i,enumerable:!0,configurable:!0},identifier:{value:o,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:f}})}function fi(e){return!e.ctrlKey&&!e.button}function di(){return this.parentNode}function pi(e,t){return null==t?{x:e.x,y:e.y}:t}function hi(){return navigator.maxTouchPoints||"ontouchstart"in this}li.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var mi=r(76554),vi=r(15352),gi=r(93096),yi=r.n(gi),bi=r(17621),Ei=r.n(bi);function _i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wi(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 xi(e){return function(e){if(Array.isArray(e))return Ti(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 Ti(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 Ti(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 Ti(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 ki=function(e,t,n){return(e<<16)+(t<<8)+n},Oi=function(e,t){return 123*e%Math.pow(2,t)},Ci=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;_i(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=Oi(n,this.csBits),i=(t=n+(r<<24-this.csBits),"#".concat(Math.min(t,Math.pow(2,24)).toString(16).padStart(6,"0")));return this.registry.push(e),i}},{key:"lookup",value:function(e){var t="string"===typeof e?function(e){var t=Ei()(e).toRgb(),n=t.r,r=t.g,i=t.b;return ki(n,r,i)}(e):ki.apply(void 0,xi(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 Oi(n,this.csBits)!==r||n>=this.registry.length?null:this.registry[n]}}])&&wi(t.prototype,n),r&&wi(t,r),e}(),Ai=r(55061),Si=r(66252),Mi=r(3286),Di=r(54625),Ii=r(77729);const{abs:Pi,cos:Ni,sin:Ri,acos:Li,atan2:ji,sqrt:Fi,pow:Bi}=Math;function Hi(e){return e<0?-Bi(-e,1/3):Bi(e,1/3)}const zi=Math.PI,Ui=2*zi,Vi=zi/2,Wi=Number.MAX_SAFE_INTEGER||9007199254740991,Gi=Number.MIN_SAFE_INTEGER||-9007199254740991,Ki={x:0,y:0,z:0},qi={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),Fi(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 i=1-e;let o=t;if(0===r)return t[0].t=e,t[0];if(1===r){const t={x:i*o[0].x+e*o[1].x,y:i*o[0].y+e*o[1].y,t:e};return n&&(t.z=i*o[0].z+e*o[1].z),t}if(r<4){let t,a,s,u=i*i,c=e*e,l=0;2===r?(o=[o[0],o[1],o[2],Ki],t=u,a=i*e*2,s=c):3===r&&(t=u*i,a=u*e*3,s=i*c*3,l=e*c);const f={x:t*o[0].x+a*o[1].x+s*o[2].x+l*o[3].x,y:t*o[0].y+a*o[1].y+s*o[2].y+l*o[3].y,t:e};return n&&(f.z=t*o[0].z+a*o[1].z+s*o[2].z+l*o[3].z),f}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 i=1-e,o=n,a=t;let s,u=o[0],c=o[1],l=o[2],f=o[3];return u*=i,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*=i,c*=2*i,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*=i,c*=1.5*i,l*=3*i,f*=e*e*e,4===a.length?(s=u+c+l+f,{x:(u*a[0].x+c*a[1].x+l*a[2].x+f*a[3].x)/s,y:(u*a[0].y+c*a[1].y+l*a[2].y+f*a[3].y)/s,z:!!r&&(u*a[0].z+c*a[1].z+l*a[2].z+f*a[3].z)/s,t:e}):void 0))},derive:function(e,t){const n=[];for(let r=e,i=r.length,o=i-1;i>1;i--,o--){const e=[];for(let n,i=0;i<o;i++)n={x:o*(r[i+1].x-r[i].x),y:o*(r[i+1].y-r[i].y)},t&&(n.z=o*(r[i+1].z-r[i].z)),e.push(n);n.push(e),r=e}return n},between:function(e,t,n){return t<=e&&e<=n||qi.approximately(e,t)||qi.approximately(e,n)},approximately:function(e,t,n){return Pi(e-t)<=(n||1e-6)},length:function(e){const t=qi.Tvalues.length;let n=0;for(let r,i=0;i<t;i++)r=.5*qi.Tvalues[i]+.5,n+=qi.Cvalues[i]*qi.arcfn(r,e);return.5*n},map:function(e,t,n,r,i){return r+(i-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(qi.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,t,n){const r=t.x-e.x,i=t.y-e.y,o=n.x-e.x,a=n.y-e.y;return ji(r*a-i*o,r*o+i*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 Fi(n*n+r*r)},closest:function(e,t){let n,r,i=Bi(2,63);return e.forEach((function(e,o){r=qi.dist(t,e),r<i&&(i=r,n=o)})),{mdist:i,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=Bi(e,t)+Bi(1-e,t);return Pi((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=Bi(1-e,t);return n/(Bi(e,t)+n)},lli8:function(e,t,n,r,i,o,a,s){const u=(e-n)*(o-s)-(t-r)*(i-a);return 0!=u&&{x:((e*r-t*n)*(i-a)-(e-n)*(i*s-o*a))/u,y:((e*r-t*n)*(o-s)-(t-r)*(i*s-o*a))/u}},lli4:function(e,t,n,r){const i=e.x,o=e.y,a=t.x,s=t.y,u=n.x,c=n.y,l=r.x,f=r.y;return qi.lli8(i,o,a,s,u,c,l,f)},lli:function(e,t){return qi.lli4(e,e.c,t,t.c)},makeline:function(e,t){const n=e.x,r=e.y,i=t.x,o=t.y,a=(i-n)/3,s=(o-r)/3;return new ro(n,r,n+a,r+s,n+2*a,r+2*s,i,o)},findbbox:function(e){let t=Wi,n=Wi,r=Gi,i=Gi;return e.forEach((function(e){const o=e.bbox();t>o.x.min&&(t=o.x.min),n>o.y.min&&(n=o.y.min),r<o.x.max&&(r=o.x.max),i<o.y.max&&(i=o.y.max)})),{x:{min:t,mid:(t+r)/2,max:r,size:r-t},y:{min:n,mid:(n+i)/2,max:i,size:i-n}}},shapeintersections:function(e,t,n,r,i){if(!qi.bboxoverlap(t,r))return[];const o=[],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,i);a.length>0&&(a.c1=t,a.c2=r,a.s1=e,a.s2=n,o.push(a))}))})),o},makeshape:function(e,t,n){const r=t.points.length,i=e.points.length,o=qi.makeline(t.points[r-1],e.points[0]),a=qi.makeline(e.points[i-1],t.points[0]),s={startcap:o,forward:e,back:t,endcap:a,bbox:qi.findbbox([o,e,t,a]),intersections:function(e){return qi.shapeintersections(s,s.bbox,e,e.bbox,n)}};return s},getminmax:function(e,t,n){if(!n)return{min:0,max:0};let r,i,o=Wi,a=Gi;-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],i=e.get(r),i[t]<o&&(o=i[t]),i[t]>a&&(a=i[t]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,t){const n=t.p1.x,r=t.p1.y,i=-ji(t.p2.y-r,t.p2.x-n);return e.map((function(e){return{x:(e.x-n)*Ni(i)-(e.y-r)*Ri(i),y:(e.x-n)*Ri(i)+(e.y-r)*Ni(i)}}))},roots:function(e,t){t=t||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,r=qi.align(e,t),i=function(e){return 0<=e&&e<=1};if(2===n){const e=r[0].y,t=r[1].y,n=r[2].y,o=e-2*t+n;if(0!==o){const r=-Fi(t*t-e*n),a=-e+t;return[-(r+a)/o,-(-r+a)/o].filter(i)}return t!==n&&0===o?[(2*t-n)/(2*t-2*n)].filter(i):[]}const o=r[0].y,a=r[1].y,s=r[2].y;let u=3*a-o-3*s+r[3].y,c=3*o-6*a+3*s,l=-3*o+3*a,f=o;if(qi.approximately(u,0)){if(qi.approximately(c,0))return qi.approximately(l,0)?[]:[-f/l].filter(i);const e=Fi(l*l-4*c*f),t=2*c;return[(e-l)/t,(-l-e)/t].filter(i)}c/=u,l/=u,f/=u;const d=(3*l-c*c)/3,p=d/3,h=(2*c*c*c-9*c*l+27*f)/27,m=h/2,v=m*m+p*p*p;let g,y,b,E,_;if(v<0){const e=-d/3,t=Fi(e*e*e),n=-h/(2*t),r=Li(n<-1?-1:n>1?1:n),o=2*Hi(t);return b=o*Ni(r/3)-c/3,E=o*Ni((r+Ui)/3)-c/3,_=o*Ni((r+2*Ui)/3)-c/3,[b,E,_].filter(i)}if(0===v)return g=m<0?Hi(-m):-Hi(m),b=2*g-c/3,E=-g-c/3,[b,E].filter(i);{const e=Fi(v);return g=Hi(-m+e),y=Hi(m+e),[g-y-c/3].filter(i)}},droots:function(e){if(3===e.length){const t=e[0],n=e[1],r=e[2],i=t-2*n+r;if(0!==i){const e=-Fi(n*n-t*r),o=-t+n;return[-(e+o)/i,-(-e+o)/i]}return n!==r&&0===i?[(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,i){let o,a,s,u,c=0,l=0;const f=qi.compute(e,t),d=qi.compute(e,n),p=f.x*f.x+f.y*f.y;if(r?(o=Fi(Bi(f.y*d.z-d.y*f.z,2)+Bi(f.z*d.x-d.z*f.x,2)+Bi(f.x*d.y-d.x*f.y,2)),a=Bi(p+f.z*f.z,1.5)):(o=f.x*d.y-f.y*d.x,a=Bi(p,1.5)),0===o||0===a)return{k:0,r:0};if(c=o/a,l=a/o,!i){const i=qi.curvature(e-.001,t,n,r,!0).k,o=qi.curvature(e+.001,t,n,r,!0).k;u=(o-c+(c-i))/2,s=(Pi(o-c)+Pi(c-i))/2}return{k:c,r:l,dk:u,adk:s}},inflections:function(e){if(e.length<4)return[];const t=qi.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=t[2].x*t[1].y,r=t[3].x*t[1].y,i=t[1].x*t[2].y,o=18*(-3*n+2*r+3*i-t[3].x*t[2].y),a=18*(3*n-r-3*i),s=18*(i-n);if(qi.approximately(o,0)){if(!qi.approximately(a,0)){let e=-s/a;if(0<=e&&e<=1)return[e]}return[]}const u=a*a-4*o*s,c=Math.sqrt(u),l=2*o;return qi.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 i,o,a,s,u=0;u<r;u++)if(i=n[u],o=e[i].mid,a=t[i].mid,s=(e[i].size+t[i].size)/2,Pi(o-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(),i=t.bbox(),o=1e5,a=n||.5;if(r.x.size+r.y.size<a&&i.x.size+i.y.size<a)return[(o*(e._t1+e._t2)/2|0)/o+"/"+(o*(t._t1+t._t2)/2|0)/o];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 qi.bboxoverlap(e.left.bbox(),e.right.bbox())}));let l=[];return 0===c.length||(c.forEach((function(e){l=l.concat(qi.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,i=t.y-e.y,o=n.x-t.x,a=n.y-t.y,s=r*Ni(Vi)-i*Ri(Vi),u=r*Ri(Vi)+i*Ni(Vi),c=o*Ni(Vi)-a*Ri(Vi),l=o*Ri(Vi)+a*Ni(Vi),f=(e.x+t.x)/2,d=(e.y+t.y)/2,p=(t.x+n.x)/2,h=(t.y+n.y)/2,m=f+s,v=d+u,g=p+c,y=h+l,b=qi.lli8(f,d,m,v,p,h,g,y),E=qi.dist(b,e);let _,w=ji(e.y-b.y,e.x-b.x),x=ji(t.y-b.y,t.x-b.x),T=ji(n.y-b.y,n.x-b.x);return w<T?((w>x||x>T)&&(w+=Ui),w>T&&(_=T,T=w,w=_)):T<x&&x<w?(_=T,T=w,w=_):T+=Ui,b.s=w,b.e=T,b.r=E,b},numberSort:function(e,t){return e-t}};class Zi{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 qi.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++)qi.expandbox(t,e[n].bbox());return t}offset(e){const t=[];return this.curves.forEach((function(n){t.push(...n.offset(e))})),new Zi(t)}}const{abs:$i,min:Yi,max:Xi,cos:Qi,sin:Ji,acos:eo,sqrt:to}=Math,no=Math.PI;class ro{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 i=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!==i&&8!==i&&9!==i&&12!==i&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const o=this._3d=!r&&(9===i||12===i)||e&&e[0]&&"undefined"!==typeof e[0].z,a=this.points=[];for(let f=0,d=o?3:2;f<i;f+=d){var s={x:t[f],y:t[f+1]};o&&(s.z=t[f+2]),a.push(s)}const u=this.order=a.length-1,c=this.dims=["x","y"];o&&c.push("z"),this.dimlen=c.length;const l=qi.align(a,{p1:a[0],p2:a[u]});this._linear=!l.some((e=>$i(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 ro(t,t,n);if(1===r)return new ro(e,t,t);const i=ro.getABC(2,e,t,n,r);return new ro(e,i.A,n)}static cubicFromPoints(e,t,n,r,i){"undefined"===typeof r&&(r=.5);const o=ro.getABC(3,e,t,n,r);"undefined"===typeof i&&(i=qi.dist(t,o.C));const a=i*(1-r)/r,s=qi.dist(e,n),u=(n.x-e.x)/s,c=(n.y-e.y)/s,l=i*u,f=i*c,d=a*u,p=a*c,h=t.x-l,m=t.y-f,v=t.x+d,g=t.y+p,y=o.A,b=y.x+(h-y.x)/(1-r),E=y.y+(m-y.y)/(1-r),_=y.x+(v-y.x)/r,w=y.y+(g-y.y)/r,x={x:e.x+(b-e.x)/r,y:e.y+(E-e.y)/r},T={x:n.x+(_-n.x)/(1-r),y:n.y+(w-n.y)/(1-r)};return new ro(e,x,T,n)}static getUtils(){return qi}getUtils(){return ro.getUtils()}static get PolyBezier(){return Zi}valueOf(){return this.toString()}toString(){return qi.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=qi.derive(this.points,this._3d),this.computedirection()}computedirection(){const e=this.points,t=qi.angle(e[0],e[this.order],e[1]);this.clockwise=t>0}length(){return qi.length(this.derivative.bind(this))}static getABC(e=2,t,n,r,i=.5){const o=qi.projectionratio(i,e),a=1-o,s={x:o*t.x+a*r.x,y:o*t.y+a*r.y},u=qi.abcratio(i,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 ro.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(),i=[];for(let t,o=0,a=0;o<r.length;o++)t=r[o],qi.dist(t,e)<n&&(i.push(t),a+=o/r.length);return!!i.length&&(t/=i.length)}project(e){const t=this.getLUT(),n=t.length-1,r=qi.closest(t,e),i=r.mpos,o=(i-1)/n,a=(i+1)/n,s=.1/n;let u,c,l=r.mdist,f=o,d=f;for(l+=1;f<a+s;f+=s)u=this.compute(f),c=qi.dist(e,u),c<l&&(l=c,d=f);return d=d<0?0:d>1?1:d,u=this.compute(d),u.t=d,u.d=l,u}get(e){return this.compute(e)}point(e){return this.points[e]}compute(e){return this.ratios?qi.computeWithRatios(e,this.points,this.ratios,this._3d):qi.compute(e,this.points,this._3d,this.ratios)}raise(){const e=this.points,t=[e[0]],n=e.length;for(let r,i,o=1;o<n;o++)r=e[o],i=e[o-1],t[o]={x:(n-o)/n*r.x+o/n*i.x,y:(n-o)/n*r.y+o/n*i.y};return t[n]=e[n-1],new ro(t)}derivative(e){return qi.compute(e,this.dpoints[0],this._3d)}dderivative(e){return qi.compute(e,this.dpoints[1],this._3d)}align(){let e=this.points;return new ro(qi.align(e,{p1:e[0],p2:e[e.length-1]}))}curvature(e){return qi.curvature(e,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return qi.inflections(this.points)}normal(e){return this._3d?this.__normal3(e):this.__normal2(e)}__normal2(e){const t=this.derivative(e),n=to(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=to(t.x*t.x+t.y*t.y+t.z*t.z),i=to(n.x*n.x+n.y*n.y+n.z*n.z);t.x/=r,t.y/=r,t.z/=r,n.x/=i,n.y/=i,n.z/=i;const o={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=to(o.x*o.x+o.y*o.y+o.z*o.z);o.x/=a,o.y/=a,o.z/=a;const s=[o.x*o.x,o.x*o.y-o.z,o.x*o.z+o.y,o.x*o.y+o.z,o.y*o.y,o.y*o.z-o.x,o.x*o.z-o.y,o.y*o.z+o.x,o.z*o.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=[],i=0;for(r[i++]=t[0],r[i++]=t[1],r[i++]=t[2],3===this.order&&(r[i++]=t[3]);t.length>1;){n=[];for(let o,a=0,s=t.length-1;a<s;a++)o=qi.lerp(e,t[a],t[a+1]),r[i++]=o,n.push(o);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 ro([n[0],n[3],n[5]]):new ro([n[0],n[4],n[7],n[9]]),right:2===this.order?new ro([n[5],n[4],n[2]]):new ro([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=qi.map(0,0,1,this._t1,this._t2),r.left._t2=qi.map(e,0,1,this._t1,this._t2),r.right._t1=qi.map(e,0,1,this._t1,this._t2),r.right._t2=qi.map(1,0,1,this._t1,this._t2),t?(t=qi.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]},i=this.dpoints[0].map(r);e[n]=qi.droots(i),3===this.order&&(i=this.dpoints[1].map(r),e[n]=e[n].concat(qi.droots(i))),e[n]=e[n].filter((function(e){return e>=0&&e<=1})),t=t.concat(e[n].sort(qi.numberSort))}.bind(this)),e.values=t.sort(qi.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]=qi.getminmax(this,n,e[n])}.bind(this)),t}overlaps(e){const t=this.bbox(),n=e.bbox();return qi.bboxoverlap(t,n)}offset(e,t){if("undefined"!==typeof t){const n=this.get(e),r=this.normal(e),i={c:n,n:r,x:n.x+r.x*t,y:n.y+r.y*t};return this._3d&&(i.z=n.z+r.z*t),i}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 ro(n)]}return this.reduce().map((function(t){return t._linear?t.offset(e)[0]:t.scale(e)}))}simple(){if(3===this.order){const e=qi.angle(this.points[0],this.points[3],this.points[1]),t=qi.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),$i(eo(n))<no/3}reduce(){let e,t,n=0,r=0,i=.01,o=[],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,o.push(t),n=r;return o.forEach((function(e){for(n=0,r=0;r<=1;)for(r=n+i;r<=1.01;r+=i)if(t=e.split(n,r),!t.simple()){if(r-=i,$i(n-r)<i)return[];t=e.split(n,r),t._t1=qi.map(n,0,1,e._t1,e._t2),t._t2=qi.map(r,0,1,e._t1,e._t2),a.push(t),n=r;break}n<1&&(t=e.split(n,1),t._t1=qi.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,i=n?n(0):e,o=n?n(1):e,a=[this.offset(0,10),this.offset(1,10)],s=this.points,u=[],c=qi.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]=qi.copy(s[e*t]);n.x+=(e?o:i)*a[e].n.x,n.y+=(e?o:i)*a[e].n.y})),n?([0,1].forEach((function(i){if(2!==t||!i){var o=s[i+1],a={x:o.x-c.x,y:o.y-c.y},l=n?n((i+1)/t):e;n&&!r&&(l=-l);var f=to(a.x*a.x+a.y*a.y);a.x/=f,a.y/=f,u[i+1]={x:o.x+l*a.x,y:o.y+l*a.y}}})),new ro(u)):([0,1].forEach((e=>{if(2===t&&e)return;const n=u[e*t],r=this.derivative(e),i={x:n.x+r.x,y:n.y+r.y};u[e+1]=qi.lli4(n,i,c,s[e+1])})),new ro(u))}outline(e,t,n,r){t="undefined"===typeof t?e:t;const i=this.reduce(),o=i.length,a=[];let s,u=[],c=0,l=this.length();const f="undefined"!==typeof n&&"undefined"!==typeof r;function d(e,t,n,r,i){return function(o){const a=r/n,s=(r+i)/n,u=t-e;return qi.map(o,0,1,e+a*u,e+s*u)}}i.forEach((function(i){const o=i.length();f?(a.push(i.scale(d(e,n,l,c,o))),u.push(i.scale(d(-t,-r,l,c,o)))):(a.push(i.scale(e)),u.push(i.scale(-t))),c+=o})),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[o-1].points[a[o-1].points.length-1],m=u[o-1].points[u[o-1].points.length-1],v=u[0].points[0],g=qi.makeline(m,p),y=qi.makeline(h,v),b=[g].concat(a).concat([y]).concat(u);b.length;return new Zi(b)}outlineshapes(e,t,n){t=t||e;const r=this.outline(e,t).curves,i=[];for(let o=1,a=r.length;o<a/2;o++){const e=qi.makeshape(r[o],r[a-o],n);e.startcap.virtual=o>1,e.endcap.virtual=o<a/2-1,i.push(e)}return i}intersects(e,t){return e?e.p1&&e.p2?this.lineIntersects(e):(e instanceof ro&&(e=e.reduce()),this.curveintersects(this.reduce(),e,t)):this.selfintersects(t)}lineIntersects(e){const t=Yi(e.p1.x,e.p2.x),n=Yi(e.p1.y,e.p2.y),r=Xi(e.p1.x,e.p2.x),i=Xi(e.p1.y,e.p2.y);return qi.roots(this.points,e).filter((e=>{var o=this.get(e);return qi.between(o.x,t,r)&&qi.between(o.y,n,i)}))}selfintersects(e){const t=this.reduce(),n=t.length-2,r=[];for(let i,o,a,s=0;s<n;s++)o=t.slice(s,s+1),a=t.slice(s+2),i=this.curveintersects(o,a,e),r.push(...i);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 i=[];return r.forEach((function(e){const t=qi.pairiteration(e.left,e.right,n);t.length>0&&(i=i.concat(t))})),i}arcs(e){return e=e||.5,this._iterate(e,[])}_error(e,t,n,r){const i=(r-n)/4,o=this.get(n+i),a=this.get(r-i),s=qi.dist(e,t),u=qi.dist(e,o),c=qi.dist(e,a);return $i(u-s)+$i(c-s)}_iterate(e,t){let n,r=0,i=1;do{n=0,i=1;let o,a,s,u,c,l=this.get(r),f=!1,d=!1,p=i,h=1,m=0;do{if(d=f,u=s,p=(r+i)/2,m++,o=this.get(p),a=this.get(i),s=qi.getccenter(l,o,a),s.interval={start:r,end:i},f=this._error(s,l,r,i)<=e,c=d&&!f,c||(h=i),f){if(i>=1){if(s.interval.end=h=1,u=s,i>1){let e={x:s.x+s.r*Qi(s.e),y:s.y+s.r*Ji(s.e)};s.e+=qi.angle({x:s.x,y:s.y},e,this.get(1))}break}i+=(i-r)/2}else i=p}while(!c&&n++<100);if(n>=100)break;u=u||s,t.push(u),r=h}while(i<1);return t}}var io=r(1527),oo=r(93704),ao=r(59735);function so(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 uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(e){return(co="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 lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){return(fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function po(){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 ho(e,t,n){return(ho=po()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&fo(i,n.prototype),i}).apply(null,arguments)}function mo(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||go(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 vo(e){return function(e){if(Array.isArray(e))return yo(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||go(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 go(e,t){if(e){if("string"===typeof e)return yo(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)?yo(e,t):void 0}}function yo(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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 bo=(0,oo.Z)(ao.Z);function Eo(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=bo(t(e))}))}var _o=function(e,t){return t.onNeedsRedraw&&t.onNeedsRedraw()},wo=(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:_o},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:_o},nodeColor:{default:"color",triggerUpdate:!1,onChange:_o},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:_o},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:_o},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:_o},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:_o},linkColor:{default:"color",triggerUpdate:!1,onChange:_o},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:_o},linkWidth:{default:1,triggerUpdate:!1,onChange:_o},linkCurvature:{default:0,triggerUpdate:!1,onChange:_o},linkCanvasObject:{triggerUpdate:!1,onChange:_o},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:_o},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:_o},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:_o},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:_o},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),i=(0,E.default)(e.linkLineDash),o=(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=o(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 i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2));if(i>0){var a=Math.atan2(r.y-n.y,r.x-n.x),s=i*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=[],f=[],d=c;if(e.linkCanvasObject){var p=[],h=[];c.forEach((function(e){return({before:l,after:f,replace:p}[a(e)]||h).push(e)})),d=[].concat(vo(l),f,h),l=l.concat(p)}s.save(),l.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore();var m=(0,io.Z)(d,[n,r,i]);s.save(),Object.entries(m).forEach((function(t){var n=mo(t,2),r=n[0],o=n[1],a=r&&"undefined"!==r?r:"rgba(0,0,0,0.15)";Object.entries(o).forEach((function(t){var n=mo(t,2),r=n[0],o=n[1],c=(r||1)/e.globalScale+u;Object.entries(o).forEach((function(e){var t=mo(e,2);t[0];var n=t[1],r=i(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,vo(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(),f.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),i=(0,E.default)(e.linkDirectionalArrowColor||e.linkColor),o=(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,o(u)||1))*e.nodeRelSize,f=Math.sqrt(Math.max(0,o(c)||1))*e.nodeRelSize,d=Math.min(1,Math.max(0,n(r))),p=i(r)||"rgba(0,0,0,0.28)",h=s/1.6/2,m=r.__controlPoints&&ho(ro,[u.x,u.y].concat(vo(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-f-s)*d,b=v(y/g),E=v((y-s)/g),_=v((y-.8*s)/g),w=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(w),E.y+h*Math.sin(w)),a.lineTo(_.x,_.y),a.lineTo(E.x-h*Math.cos(w),E.y-h*Math.sin(w)),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),i=(0,E.default)(e.linkVisibility),o=(0,E.default)(e.linkDirectionalParticleColor||e.linkColor),a=e.ctx;a.save(),e.graphData.links.filter(i).forEach((function(i){var s=t(i);if(i.hasOwnProperty("__photons")&&i.__photons.length){var u=i.source,c=i.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=n(i),f=i.__photons||[],d=Math.max(0,r(i)/2)/Math.sqrt(e.globalScale),p=o(i)||"rgba(0,0,0,0.28)";a.fillStyle=p;var h=i.__controlPoints?ho(ro,[u.x,u.y].concat(vo(i.__controlPoints),[c.x,c.y])):null,m=0,v=!1;f.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,d,0,2*Math.PI,!1),a.fill()})),v&&(i.__photons=i.__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),i=(0,E.default)(e.nodeCanvasObjectMode),o=e.ctx,a=e.isShadow/e.globalScale,s=e.graphData.nodes.filter(t);o.save(),s.forEach((function(t){var s=i(t);if(!e.nodeCanvasObject||"before"!==s&&"replace"!==s||(e.nodeCanvasObject(t,o,e.globalScale),"replace"!==s)){var u=Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize+a;o.beginPath(),o.arc(t.x,t.y,u,0,2*Math.PI,!1),o.fillStyle=r(t)||"rgba(31, 120, 180, 0.92)",o.fill(),e.nodeCanvasObject&&"after"===s&&e.nodeCanvasObject(t,e.ctx,e.globalScale)}else o.restore()})),o.restore()}(),this},emitParticle:function(e,t){return t&&(!t.__photons&&(t.__photons=[]),t.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:(0,Ai.Z)().force("link",(0,Si.Z)()).force("charge",(0,Mi.Z)()).force("center",(0,Di.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&&Eo(e.graphData.nodes,(0,E.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&Eo(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=vo(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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.nodeFilter,a=void 0===o?function(){return!0}:o,s=i.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,i=u(n),o=u(r);if(!c.hasOwnProperty(i))throw"Missing source node with id: ".concat(i);if(!c.hasOwnProperty(o))throw"Missing target node with id: ".concat(o);var a=c[i],s=c[o];function u(e){return"object"===co(e)?t(e):e}a.out.push(s)}));var l=[];return f(Object.values(c)),Object.assign.apply(Object,[{}].concat(vo(Object.entries(c).filter((function(e){return!mo(e,2)[1].skip})).map((function(e){var t=mo(e,2);return lo({},t[0],t[1].depth)})))));function f(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0,o=e.length;i<o;i++){var a=e[i];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(vo(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,f(a.out,[].concat(vo(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),i=Math.max.apply(Math,vo(Object.values(r||[]))),o=e.dagLevelDistance||e.graphData.nodes.length/(i||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]]-i/2)*o*(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,Ii.Z)((function(t){var n=r[t[e.nodeId]]||-1;return("radialin"===e.dagMode?i-n:n)*o})).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 xo(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,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=[];return n.forEach((function(n){var r=t[n],o=r[e].apply(r,i);o!==r&&a.push(o)})),a.length?a[0]:this}}}}var To=xo("forceGraph",wo),ko=xo(["forceGraph","shadowGraph"],wo),Oo=Object.assign.apply(Object,vo(["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 lo({},e,To.linkProp(e))}))).concat(vo(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map((function(e){return lo({},e,ko.linkProp(e))}))))),Co=Object.assign.apply(Object,vo(["d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return lo({},e,To.linkMethod(e))}))));function Ao(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(i){i.style.width="".concat(e.width,"px"),i.style.height="".concat(e.height,"px"),i.width=e.width*r,i.height=e.height*r,t||n||i.getContext("2d").scale(r,r)}));var i=Jr(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-t)/2/i,(e.height-n)/2/i),e.needsRedraw=!0}}function So(e){var t=window.devicePixelRatio;e.setTransform(t,0,0,t,0,0)}function Mo(e,t,n){e.save(),So(e),e.clearRect(0,0,t,n),e.restore()}var Do=(0,b.Z)({props:uo({width:{default:window.innerWidth,onChange:function(e,t){return Ao(t)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(e,t){return Ao(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}},Oo),aliases:{stopAnimation:"pauseAnimation"},methods:uo({graph2ScreenCoords:function(e,t,n){var r=Jr(e.canvas);return{x:t*r.k+r.x,y:n*r.k+r.y}},screen2GraphCoords:function(e,t,n){var r=Jr(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 i=Object.assign({},void 0!==t?{x:t}:{},void 0!==n?{y:n}:{});return r?new Ze.ZP.Tween(o()).to(i,r).easing(Ze.ZP.Easing.Quadratic.Out).onUpdate(a).start():a(i),this}return o();function o(){var t=Jr(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?o().x:n,void 0===r?o().y:r),e.needsRedraw=!0}},zoom:function(e,t,n){return e.canvas?void 0!==t?(n?new Ze.ZP.Tween({k:r()}).to({k:t},n).easing(Ze.ZP.Easing.Quadratic.Out).onUpdate((function(e){return i(e.k)})).start():i(t),this):r():null;function r(){return Jr(e.canvas).k}function i(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,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=this.getGraphBbox.apply(this,i);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},i=e.graphData.nodes.filter(t).map((function(e){return{x:e.x,y:e.y,r:r(e)}}));return i.length?{x:[(0,mi.Z)(i,(function(e){return e.x-e.r})),(0,vi.Z)(i,(function(e){return e.x+e.r}))],y:[(0,mi.Z)(i,(function(e){return e.y-e.r})),(0,vi.Z)(i,(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:[]})}},Co),stateInit:function(){return{lastSetZoom:1,zoom:ui(),forceGraph:new wo,shadowGraph:(new wo).cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Ci}},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"),i=t.shadowCanvas.getContext("2d"),o={x:-1e12,y:-1e12},a=function(){var e=null,n=window.devicePixelRatio,r=o.x>0&&o.y>0?i.getImageData(o.x*n,o.y*n,1,1):null;return r&&(e=t.colorTracker.lookup(r.data)),e};Hn(t.canvas).call(function(){var e,t,n,r,i=fi,o=di,a=pi,s=hi,u={},c=(0,zn.Z)("start","drag","end"),l=0,f=0;function d(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",v).on("touchmove.drag",g,Un).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&&i.call(this,a,s)){var u=b(this,o.call(this,a,s),a,s,"mouse");u&&(Hn(a.view).on("mousemove.drag",h,Vn).on("mouseup.drag",m,Vn),Kn(a.view),Wn(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function h(r){if(Gn(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>f}u.mouse("drag",r)}function m(e){Hn(e.view).on("mousemove.drag mouseup.drag",null),qn(e.view,n),Gn(e),u.mouse("end",e)}function v(e,t){if(i.call(this,e,t)){var n,r,a=e.changedTouches,s=o.call(this,e,t),u=a.length;for(n=0;n<u;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&(Wn(e),r("start",e,a[n]))}}function g(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=u[r[t].identifier])&&(Gn(e),n("drag",e,r[t]))}function y(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<o;++t)(n=u[i[t].identifier])&&(Wn(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var s,f,p,h=c.copy(),m=Yn(o||n,t);if(null!=(p=a.call(e,new li("beforestart",{sourceEvent:n,target:d,identifier:i,active:l,x:m[0],y:m[1],dx:0,dy:0,dispatch:h}),r)))return s=p.x-m[0]||0,f=p.y-m[1]||0,function n(o,a,c){var v,g=m;switch(o){case"start":u[i]=n,v=l++;break;case"end":delete u[i],--l;case"drag":m=Yn(c||a,t),v=l}h.call(o,e,new li(o,{sourceEvent:a,subject:p,target:d,identifier:i,active:v,x:m[0]+s,y:m[1]+f,dx:m[0]-g[0],dy:m[1]-g[1],dispatch:h}),r)}}return d.filter=function(e){return arguments.length?(i="function"===typeof e?e:ci(!!e),d):i},d.container=function(e){return arguments.length?(o="function"===typeof e?e:ci(e),d):o},d.subject=function(e){return arguments.length?(a="function"===typeof e?e:ci(e),d):a},d.touchable=function(e){return arguments.length?(s="function"===typeof e?e:ci(!!e),d):s},d.on=function(){var e=c.on.apply(c,arguments);return e===c?d:e},d.clickDistance=function(e){return arguments.length?(f=(e=+e)*e,d):Math.sqrt(f)},d}().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,i=e,o=Jr(t.canvas).k,a={x:r.x+(i.x-r.x)/o-n.x,y:r.y+(i.y-r.y)/o-n.y};["x","y"].forEach((function(e){return n["f".concat(e)]=n[e]=r[e]+(i[e]-r[e])/o})),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,i={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,i))}))),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,i].forEach((function(e){So(e),e.translate(n.x,n.y),e.scale(n.k,n.k)})),t.onZoom(uo({},n)),t.needsRedraw=!0})).on("end",(function(e){return t.onZoomEnd(uo({},e.transform))})),Ao(t),t.forceGraph.onNeedsRedraw((function(){return t.needsRedraw=!0})).onFinishUpdate((function(){Jr(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 i=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);o.x=r.pageX-i.left,o.y=r.pageY-i.top,s.style.top="".concat(o.y,"px"),s.style.left="".concat(o.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 i=t["on".concat(t.hoverObj.type,"RightClick")];i&&i.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(i);var u=yi()((function(){Mo(i,t.width,t.height),t.shadowGraph.linkWidth((function(e){return(0,E.default)(t.linkWidth)(e)+t.linkHoverPrecision}));var e=Jr(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 i=t.isPointerDragging?null:a();if(i!==t.hoverObj){var o=t.hoverObj,c=o?o.type:null,l=i?i.type:null;if(c&&c!==l){var f=t["on".concat(c,"Hover")];f&&f(null,o.d)}if(l){var d=t["on".concat(l,"Hover")];d&&d(i.d,c===l?o.d:null)}var p=i&&(0,E.default)(t["".concat(i.type.toLowerCase(),"Label")])(i.d)||"";s.style.visibility=p?"visible":"hidden",s.innerHTML=p,t.canvas.classList[i&&t["on".concat(l,"Click")]||!i&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=i}n&&u()}if(n){Mo(r,t.width,t.height);var h=Jr(t.canvas).k;t.onRenderFramePre&&t.onRenderFramePre(r,h),t.forceGraph.globalScale(h).tickFrame(),t.onRenderFramePost&&t.onRenderFramePost(r,h)}Ze.ZP.update(),t.animationFrameRequestId=requestAnimationFrame(e)})()},update:function(e){}}),Io={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},Po={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},No={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])},Ro=Object.assign({},Io,Po,{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}),Lo=Object.assign({},Io,Po,No,{enableNavigationControls:M().bool,controlType:M().oneOf(["trackball","orbit","fly"]),rendererConfig:M().object,extraRenderers:M().arrayOf(M().shape({render:M().func.isRequired}))}),jo=Object.assign({},Io,No,{nodeDesc:M().oneOfType([M().string,M().func]),linkDesc:M().oneOfType([M().string,M().func])}),Fo=Object.assign({},Io,No,{markerAttrs:M().object,yOffset:M().number,glScale:M().number});const Bo=y(A,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"]});Bo.displayName="ForceGraphVR",Bo.propTypes=jo;const Ho=y(F,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"],initPropNames:["markerAttrs"]});Ho.displayName="ForceGraphAR",Ho.propTypes=Fo;const zo=y(vt,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","cameraPosition","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords","postProcessingComposer","scene","camera","renderer","controls","refresh"],initPropNames:["controlType","rendererConfig","extraRenderers"]});zo.displayName="ForceGraph3D",zo.propTypes=Lo;const Uo=y(Do,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Uo.displayName="ForceGraph2D",Uo.propTypes=Ro},37763:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.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,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.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 i(e){return e&&e.__esModule?e:{default:e}}t.default=c;var o=n(3),a=i(n(4)),s=n(14),u=i(n(15));function c(e){var t=e.activeClassName,n=void 0===t?"":t,i=e.activeIndex,a=void 0===i?-1:i,c=e.activeStyle,l=e.autoEscape,f=e.caseSensitive,d=void 0!==f&&f,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,w=e.searchWords,x=e.textToHighlight,T=e.unhighlightClassName,k=void 0===T?"":T,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,o.findAll)({autoEscape:l,caseSensitive:d,findChunks:h,sanitize:_,searchWords:w,textToHighlight:x}),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=x.substr(e.start,e.end-e.start);if(e.highlight){M++;var i=void 0;i="object"===typeof v?d?v[r]:(v=P(v))[r.toLowerCase()]:v;var o=M===+a;D=i+" "+(o?n:""),I=!0===o&&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:k,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 i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.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,o=e.caseSensitive,a=void 0!==o&&o,s=e.findChunks,u=void 0===s?r:s,c=e.sanitize,l=e.searchWords,f=e.textToHighlight;return i({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:l,textToHighlight:f})}),totalLength:f?f.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,i=void 0===r?o:r,a=e.searchWords,s=e.textToHighlight;return s=i(s),a.filter((function(e){return e})).reduce((function(e,r){r=i(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(r,n?"g":"gi"),a=void 0;a=o.exec(s);){var u=a.index,c=o.lastIndex;c>u&&e.push({start:u,end:c}),a.index==o.lastIndex&&o.lastIndex++}return e}),[])};t.findChunks=r;var i=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],i=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)i(0,n,!1);else{var o=0;t.forEach((function(e){i(o,e.start,!1),i(e.start,e.end,!0),o=e.end})),i(o,n,!1)}return r};function o(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,i=e.exports={};function o(){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===o||!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:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-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(){}i.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)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(7),i=n(8),o=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>>",f={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,i,o){if("function"!==typeof e)return new p("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new p("Invalid "+i+" `"+o+"` of type `"+g(a)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<a.length;u++){var c=e(a,u,r,i,o+"["+u+"]",s);if(c instanceof Error)return c}return null}))},element:h((function(t,n,r,i,o){var a=t[n];return e(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+g(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||l;return new p("Invalid "+i+" `"+o+"` 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,i){return v(e[t])?null:new p("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,r,i,o){if("function"!==typeof e)return new p("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=g(a);if("object"!==u)return new p("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,i,o+"."+c,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return h((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(d(a,e[s]))return null;return new p("Invalid "+i+" `"+o+"` 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&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!==typeof i)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(i),n),r.thatReturnsNull}return h((function(t,n,r,i,o){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,i,o,s))return null;return new p("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(e){return h((function(t,n,r,i,o){var a=t[n],u=g(a);if("object"!==u)return new p("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var l=e[c];if(l){var f=l(a,c,r,i,o+"."+c,s);if(f)return f}}return null}))},exact:function(e){return h((function(t,n,r,i,o){var u=t[n],c=g(u);if("object"!==c)return new p("Invalid "+i+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var l=a({},t[n],e);for(var f in l){var d=e[f];if(!d)return new p("Invalid "+i+" `"+o+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=d(u,f,r,i,o+"."+f,s);if(h)return h}return null}))}};function d(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,f,d,h,m,v){if(d=d||l,m=m||f,v!==s)if(n)i(!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=d+":"+f;!r[g]&&a<3&&(o(!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,d),r[g]=!0,a++)}return null==c[f]?u?null===c[f]?new p("The "+h+" `"+m+"` is marked as required in `"+d+"`, but its value is `null`."):new p("The "+h+" `"+m+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(c,f,d,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,i,o,a){var s=t[n];return g(s)!==e?new p("Invalid "+i+" `"+o+"` 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,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!v(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!v(o[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,f.checkPropTypes=u,f.PropTypes=f,f}}).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,i,o,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,i,o,a,s,u],f=0;(c=new Error(t.replace(/%s/g,(function(){return l[f++]})))).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 i=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 i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!==typeof console&&console.error(o);try{throw new Error(o)}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),o=2;o<n;o++)r[o-2]=arguments[o];i.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,i=Object.prototype.propertyIsEnumerable;function o(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(i){return!1}}()?Object.assign:function(e,t){for(var a,s,u=o(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 f=0;f<s.length;f++)i.call(a,s[f])&&(u[s[f]]=a[s[f]])}}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),i=n(9),o=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 f;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]),f=e[l](n,l,u,s,null,o)}catch(p){f=p}if(i(!f||f 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 f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=c?c():"";i(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var r=n(7),i=n(8),o=n(11);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!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,i=[],o=void 0,a=!1,s=function(e,n){return t(e,i[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===i.length&&n.every(s)?o:(a=!0,r=this,i=n,o=e.apply(this,n))};return u}}])},44405:function(e,t,n){"use strict";n.d(t,{w_:function(){return c}});var r=n(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}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,i=e.attr,o=e.size,u=e.title,c=s(e,["attr","size","title"]),l=o||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,i,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!==o?r.createElement(o.Consumer,null,(function(e){return t(e)})):t(i)}},69921:function(e,t){"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,u=60110,c=60112,l=60113,f=60120,d=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"),i=b("react.fragment"),o=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"),f=b("react.suspense_list"),d=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 i:case a:case o:case l:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case p:case d: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 i=r.useRef(void 0);i.current&&n(t,i.current)||(i.current=t),r.useEffect(e,i.current)}},96705:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5272),i=n(85987),o=r.__importDefault(n(49909));t.default=function(e,t){o.default(e,t,i.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 i},__assign:function(){return o},__rest:function(){return a},__decorate:function(){return s},__param:function(){return u},__metadata:function(){return c},__awaiter:function(){return l},__generator:function(){return f},__createBinding:function(){return d},__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 w},__makeTemplateObject:function(){return x},__importStar:function(){return k},__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 i(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 o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>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(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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 f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var d=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)||d(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,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.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),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);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,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[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,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function w(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,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(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)&&d(t,e,n);return T(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,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.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 i(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(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 i=e.call(this,"close",r)||this;return i.wasClean=!0,i.code=t,i.reason=n,i}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},f=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 i=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),o=i.next();!o.done;o=i.next()){var a=o.value;this._callEventListener(e,a)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}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,o(["RWS>"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?l.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,i=void 0===r?l.minReconnectionDelay:r,o=e.maxReconnectionDelay,a=void 0===o?l.maxReconnectionDelay:o,s=0;return this._retryCount>0&&(s=i*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,i=t.connectionTimeout,o=void 0===i?l.connectionTimeout:i,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()}),o))}))}}},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=f},71167:function(e,t,n){const r=n(62854),i=n(20527).renderToString,o=n(18835),a=n(13322),s=n(85330);e.exports=function(e){const t=e||{},n=t.throwOnError||!1;return function(e,o){function a(e){const r=e.properties.className||[],a=r.includes("math-inline"),f=r.includes("math-display");if(!a&&!f)return;const d=s(e);let p;try{p=i(d,u({},t,{displayMode:f,throwOnError:!0}))}catch(h){const r=n?"fail":"message",a=[l,h.name.toLowerCase()].join(":");o[r](h.message,e.position,a),p=i(d,u({},t,{displayMode:f,throwOnError:!1,strict:"ignore"}))}e.children=c.parse(p).children}r(e,"element",a)}};const u=Object.assign,c=o().use(a,{fragment:!0,position:!1}),l="rehype-katex"},13322:function(e,t,n){"use strict";var r=n(92114),i=n(7045),o=n(92471),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,i,c=n.code,l=c.replace(/-[a-z]/g,s),f=t[l],d=void 0===f||null===f||f,p="number"===typeof d?d:d?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 i=r?-parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}p&&(r=o[l]||{reason:"",description:""},(i=u.message(v(r.reason),{start:h,end:m})).source="parse-error",i.ruleId=c,i.fatal=a[p],i.note=v(r.description),i.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+c)}:null,f=new i({sourceCodeLocationInfo:n,onParseError:l,scriptingEnabled:!1});return r(f[c](e),{space:t.space,file:u,verbose:t.verbose})}}},27431:function(e,t,n){"use strict";var r=n(76331),i=n(90478);e.exports=function(e){var t=e||{},n=t.createElement;function s(e,r,i){var s=e;return i&&a.has(e)&&(i=i.filter((function(e){return"\n"!==e}))),t.components&&o.call(t.components,e)&&(s=t.components[e],t.passNode&&(r.node=this)),n(s,r,i)}this.Compiler=function(e){var o=r(s,i(e),t.prefix);return"root"===e.type?(o="div"!==o.type||1===e.children.length&&"element"===e.children[0].type?[o]:o.props.children,n(t.Fragment||"div",{},o)):o}};var o={}.hasOwnProperty,a=new Set(["table","thead","tbody","tfoot","tr","th","td"])},67597:function(e){e.exports=function(e={}){return function(t,n){let r;function i(t){return function({type:t,value:i}){const o=e[t];if(!o||"function"!==typeof o)return;try{const e=o(i);if(!e)return;return r?(n.data[r]=n.data[r]||{},Object.assign(n.data[r],e)):Object.assign(n.data,e),1}catch(a){return function({message:t,column:r,line:i,name:o},a){let s=e.throws?"fail":"message";return void n[s](t,{line:i,column:r},`parseFrontMatter:${a}:${o}`)}(a,t)}}(t)?1:function({children:t}){if(!t)return;for(let n=0;n<t.length;n++){if(i(t[n]))return e.remove&&(t.splice(n,1),n--),1}return}(t)}"function"===typeof e&&(e.yaml=e),"function"!==typeof e&&e.name&&(r=e.name),i(t)}}},15941:function(e,t,n){"use strict";var r=n(7969),i=n(2215),o=n(63934);e.exports=function(e){var t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",r(e)),n("fromMarkdownExtensions",i(e)),n("toMarkdownExtensions",o(e))}},10043:function(e,t,n){"use strict";var r,i=n(82747),o=n(10438),a=n(48135);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",o),n("toMarkdownExtensions",a(e))}},93545:function(e,t,n){"use strict";var r,i=n(50444),o=n(54550),a=n(74749);e.exports=function(){var e=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-math] Warning: please upgrade to remark 13 to use this plugin"));function t(t,n){e[t]?e[t].push(n):e[t]=[n]}t("micromarkExtensions",i),t("fromMarkdownExtensions",o),t("toMarkdownExtensions",a)}},12861:function(e,t,n){"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(39671)},78818:function(e,t,n){"use strict";var r=n(55288);e.exports=function(e,t){e&&!e.process&&(t=e,e=null);return e?function(e,t){return n;function n(n,i,o){function a(e){o(e)}e.run(r(n,t),i,a)}}(e,t):function(e){return t;function t(t){return r(t,e)}}(t)}},44549:function(e,t,n){const r=n(80135),i=n(46955);function o(e){for(let t=6;t>0;t--)i(e,(e=>"heading"===e.type&&e.depth===t),a)}function a(e,t){const n=e,i=n.depth,o=t[t.length-1],a=r(o,n,(e=>"heading"===e.type&&e.depth<=i||"export"===e.type)),s=o.children.indexOf(n),u=o.children.indexOf(a),c=o.children.slice(s,u>0?u:void 0),l={type:"section",depth:i,children:c,data:{hName:"section"}};o.children.splice(s,l.children.length,l)}e.exports=function(){return o}},80135:function(e,t,n){"use strict";var r=n(34185);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},34185: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 i;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,i=-1;++i<r;)n[i]=t(e[i]);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 i(){return!0}e.exports=t},46955:function(e,t,n){"use strict";e.exports=a;var r=n(34185),i="skip",o=!1;function a(e,t,n,a){var u;function c(e,r,l){var f,d=[];return(t&&!u(e,r,l[l.length-1]||null)||(d=s(n(e,l)))[0]!==o)&&e.children&&d[0]!==i&&(f=s(function(e,t){var n,r=-1,i=a?-1:1,s=(a?e.length:r)+i;for(;s>r&&s<e.length;){if((n=c(e[s],s,t))[0]===o)return n;s="number"===typeof n[1]?n[1]:s+i}}(e.children,l.concat(e))))[0]===o?f:d}"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=i,a.EXIT=o},80816:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=-2,i=0,o=null,a=32;function s(e){return e<i||e===a}function u(e){return e<r}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.aliasDivider||":",n=t,r="[[",i="]]";function a(e,t,a){var c,l,f=0,d=0,p=0;return function(t){return t!==r.charCodeAt(d)?a(t):(e.enter("wikiLink"),e.enter("wikiLinkMarker"),h(t))};function h(t){return d===r.length?(e.exit("wikiLinkMarker"),function(t){if(u(t)||t===o)return a(t);return e.enter("wikiLinkData"),e.enter("wikiLinkTarget"),m(t)}(t)):t!==r.charCodeAt(d)?a(t):(e.consume(t),d++,h)}function m(t){return t===n.charCodeAt(f)?c?(e.exit("wikiLinkTarget"),e.enter("wikiLinkAliasMarker"),v(t)):a(t):t===i.charCodeAt(p)?c?(e.exit("wikiLinkTarget"),e.exit("wikiLinkData"),e.enter("wikiLinkMarker"),y(t)):a(t):u(t)||t===o?a(t):(s(t)||(c=!0),e.consume(t),m)}function v(t){return f===n.length?(e.exit("wikiLinkAliasMarker"),e.enter("wikiLinkAlias"),g(t)):t!==n.charCodeAt(f)?a(t):(e.consume(t),f++,v)}function g(t){return t===i.charCodeAt(p)?l?(e.exit("wikiLinkAlias"),e.exit("wikiLinkData"),e.enter("wikiLinkMarker"),y(t)):a(t):u(t)||t===o?a(t):(s(t)||(l=!0),e.consume(t),g)}function y(n){return p===i.length?(e.exit("wikiLinkMarker"),e.exit("wikiLink"),t(n)):n!==i.charCodeAt(p)?a(n):(e.consume(n),p++,y)}}var c={tokenize:a};return{text:{91:c}}}var l,f=n(51113),d=n.n(f);function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.permalinks||[],n=function(e){return[e.replace(/ /g,"_").toLowerCase()]},r=e.pageResolver||n,i=e.newClassName||"new",o=e.wikiLinkClassName||"internal",a=function(e){return"#/page/".concat(e)},s=e.hrefTemplate||a;function u(e){this.enter({type:"wikiLink",value:null,data:{alias:null,permalink:null,exists:null}},e)}function c(e){return e[e.length-1]}function l(e){var t=this.sliceSerialize(e);c(this.stack).data.alias=t}function f(e){var t=this.sliceSerialize(e);c(this.stack).value=t}function d(e){var n=this.exit(e),a=r(n.value),u=a.find((function(e){return-1!==t.indexOf(e)})),c=void 0!==u;c||(u=a[0]);var l=n.value;n.data.alias&&(l=n.data.alias);var f=o;c||(f+=" "+i),n.data.alias=l,n.data.permalink=u,n.data.exists=c,n.data.hName="a",n.data.hProperties={className:f,href:s(u)},n.data.hChildren=[{type:"text",value:l}]}return{enter:{wikiLink:u},exit:{wikiLinkTarget:f,wikiLinkAlias:l,wikiLink:d}}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.aliasDivider||":",n=[{character:"[",inConstruct:["phrasing","label","reference"]},{character:"]",inConstruct:["label","reference"]}];function r(e,n,r){var i,o=r.enter("wikiLink"),a=d()(r,e.value,{before:"[",after:"]"}),s=d()(r,e.data.alias,{before:"[",after:"]"});return i=s!==a?"[[".concat(a).concat(t).concat(s,"]]"):"[[".concat(a,"]]"),o(),i}return{unsafe:n,handlers:{wikiLink:r}}}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}!l&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(l=!0,console.warn("[remark-wiki-link] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",c(e)),n("fromMarkdownExtensions",p(e)),n("toMarkdownExtensions",h(e))}m.wikiLinkPlugin=m;var v=m},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"),i=new RegExp(n,""),o=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=o,e.exports.has=function(e){return!!e.match(i)},e.exports.remove=o},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 i=e.length*r;if(t!==e||"undefined"===typeof t)t=e,n="";else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,i)}},57848:function(e,t,n){var r=n(18139);e.exports=function(e,t){var n,i=null;if(!e||"string"!==typeof e)return i;for(var o,a,s=r(e),u="function"===typeof t,c=0,l=s.length;c<l;c++)o=(n=s[c]).property,a=n.value,u?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}},81398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ue}});var r=n(2212),i=n(55061),o=n(66252),a=n(3286),s=n(54625),u=n(77729),c=n(54736),l=n.n(c),f=n(16505),d=n.n(f),p=n(44858),h=n(92539),m=n(76554),v=n(15352),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,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||x(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 w(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(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 x(e,t){if(e){if("string"===typeof e)return T(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)?T(e,t):void 0}}function T(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 k(e,t,n){var r=n.objBindAttr,i=void 0===r?"__obj":r,o=n.dataBindAttr,a=void 0===o?"__data":o,s=n.idAccessor,u=n.purge,c=void 0!==u&&u,l=function(e){return e.hasOwnProperty(a)},f=t.filter((function(e){return!l(e)})),d=t.filter(l).map((function(e){return e[a]})),p=c?{enter:e,exit:d,update:[]}:function(e,t,n){var r={enter:[],update:[],exit:[]};if(n){var i=(0,g.Z)(e,n,!1),o=(0,g.Z)(t,n,!1),a=Object.assign({},i,o);Object.entries(a).forEach((function(e){var t=_(e,2),n=t[0],a=t[1],s=i.hasOwnProperty(n)?o.hasOwnProperty(n)?"update":"exit":"enter";r[s].push("update"===s?[i[n],o[n]]:a)}))}else{var s=new Set(e),u=new Set(t);new Set([].concat(w(s),w(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}(d,e,s);return p.update=p.update.map((function(e){var t=_(e,2),n=t[0],r=t[1];return n!==r&&(r[i]=n[i],r[i][a]=r),r})),p.exit=p.exit.concat(f.map((function(e){return b({},i,e)}))),p}var O=function(e,t,n,r,i){var o=i.createObj,a=void 0===o?function(e){return{}}:o,s=i.updateObj,u=void 0===s?function(e,t){}:s,c=i.exitObj,l=void 0===c?function(e){}:c,f=i.objBindAttr,d=void 0===f?"__obj":f,p=i.dataBindAttr,h=void 0===p?"__data":p,m=E(i,["createObj","updateObj","exitObj","objBindAttr","dataBindAttr"]),v=k(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:d,dataBindAttr:h},m)),g=v.enter,_=v.update;v.exit.forEach((function(e){var t=e[d];delete e[d],l(t),r(t)}));var x=function(e){var t=[];return e.forEach((function(e){var n=a(e);n&&(n[h]=e,e[d]=n,t.push(n))})),t}(g);!function(e){e.forEach((function(e){var t=e[d];t&&(t[h]=e,u(t,e))}))}([].concat(w(g),w(_))),x.forEach(n)},C=n(93704),A=n(59735),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 i=new(Function.bind.apply(e,r));return n&&F(i,n.prototype),i}).apply(null,arguments)}function z(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function U(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?U(e):t}function W(e){var t=B();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}function G(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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 Z(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 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)?Z(e,t):void 0}}function Z(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())},Y=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),Y(t)}},Q=["objFilter"];function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.objFilter,i=void 0===r?function(){return!0}:r,o=z(n,Q);return O(e,t.children.filter(i),(function(e){return t.add(e)}),(function(e){t.remove(e),X(e)}),I({objBindAttr:"__threeObj"},o))}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 ie=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},oe={graph:l(),forcelayout:d()},ae=(new ie.BufferGeometry).setAttribute?"setAttribute":"addAttribute",se=(new ie.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(i,t);var r=W(i);function i(){var t;N(this,i);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(t=r.call.apply(r,[this].concat(a))).__kapsuleInstance=e().apply(void 0,[].concat(K(n?[U(t)]:[]),a)),t}return i}(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 i=t?n:e.layout.getNodePosition(n[e.nodeId]);r.position.x=i.x,r.position.y=i.y||0,r.position.z=i.z||0}}));var n=(0,h.default)(e.linkWidth),r=(0,h.default)(e.linkCurvature),i=(0,h.default)(e.linkCurveRotation),o=(0,h.default)(e.linkThreeObjectExtend);function a(n){var o=t?n:e.layout.getLinkPosition(e.layout.graph.getLink(n.source,n.target).id),a=o[t?"source":"from"],s=o[t?"target":"to"];if(a&&s&&a.hasOwnProperty("x")&&s.hasOwnProperty("x")){var u=r(n);if(u){var c,l=new ie.Vector3(a.x,a.y||0,a.z||0),f=new ie.Vector3(s.x,s.y||0,s.z||0),d=l.distanceTo(f),p=i(n);if(d>0){var h=s.x-a.x,m=s.y-a.y||0,v=(new ie.Vector3).subVectors(f,l),g=v.clone().multiplyScalar(u).cross(0!==h||0!==m?new ie.Vector3(0,0,1):new ie.Vector3(0,1,0)).applyAxisAngle(v.normalize(),p).add((new ie.Vector3).addVectors(l,f).divideScalar(2));c=new ie.QuadraticBezierCurve3(l,g,f)}else{var y=70*u,b=-p,E=b+Math.PI/2;c=new ie.CubicBezierCurve3(l,new ie.Vector3(y*Math.cos(E),y*Math.sin(E),0).add(l),new ie.Vector3(y*Math.cos(b),y*Math.sin(b),0).add(l),f)}n.__curve=c}else n.__curve=null}}e.graphData.links.forEach((function(r){var i=r.__lineObj;if(i){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=o(r);if(!e.linkPositionUpdate||!e.linkPositionUpdate(l?i.children[1]:i,{start:{x:u.x,y:u.y,z:u.z},end:{x:c.x,y:c.y,z:c.z}},r)||l){var f=30,d=r.__curve,p=i.children.length?i.children[0]:i;if("Line"===p.type){if(d)p.geometry.setFromPoints(d.getPoints(f));else{var h=p.geometry.getAttribute("position");h&&h.array&&6===h.array.length||p.geometry[ae]("position",h=new ie.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(d){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 ie.TubeBufferGeometry(d,f,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 ie.CylinderBufferGeometry(g,g,1,e.linkResolution,1,!1);y[se]((new ie.Matrix4).makeTranslation(0,.5,0)),y[se]((new ie.Matrix4).makeRotationX(Math.PI/2)),p.geometry.dispose(),p.geometry=y}var b=new ie.Vector3(u.x,u.y||0,u.z||0),E=new ie.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),i=(0,h.default)(e.nodeVal);e.graphData.links.forEach((function(o){var a=o.__arrowObj;if(a){var s=t?o:e.layout.getLinkPosition(e.layout.graph.getLink(o.source,o.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,i(u)||1))*e.nodeRelSize,f=Math.sqrt(Math.max(0,i(c)||1))*e.nodeRelSize,d=r(o),p=n(o),h=o.__curve?function(e){return o.__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=o.__curve?o.__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+d+(m-l-f-d)*p,g=h(v/m),y=h((v-d)/m);["x","y","z"].forEach((function(e){return a.position[e]=y[e]}));var b=H(ie.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 i=r.__photonsObj&&r.__photonsObj.children,o=r.__singleHopPhotonsObj&&r.__singleHopPhotonsObj.children;if(o&&o.length||i&&i.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(i||[]),K(o||[])).forEach((function(e,t){var n="singleHopPhotons"===e.parent.__linkThreeObjType;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=n?0:t/i.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,o=l(r);["x","y","z"].forEach((function(t){return e.position[t]=o[t]}))}))}}}))}(),this},emitParticle:function(e,t){if(t){if(!t.__singleHopPhotonsObj){var n=new ie.Group;n.__linkThreeObjType="singleHopPhotons",t.__singleHopPhotonsObj=n,e.graphScene.add(n)}var r=(0,h.default)(e.linkDirectionalParticleWidth),i=Math.ceil(10*r(t))/10/2,o=e.linkDirectionalParticleResolution,a=new ie.SphereBufferGeometry(i,o,o),s=(0,h.default)(e.linkColor),u=(0,h.default)(e.linkDirectionalParticleColor)(t)||s(t)||"#f0f0f0",c=new ie.Color(ee(u)),l=3*e.linkOpacity,f=new ie.MeshLambertMaterial({color:c,transparent:!0,opacity:l});t.__singleHopPhotonsObj.add(new ie.Mesh(a,f))}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 i=new ie.Box3;i.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld),r.push(i)}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,i.Z)().force("link",(0,o.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),i=(0,h.default)(e.nodeThreeObjectExtend),o=(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,o=r(t),a=i(t);return o&&e.nodeThreeObject===o&&(o=o.clone()),o&&!a?n=o:((n=new ie.Mesh).__graphDefaultObj=!0,o&&a&&n.add(o)),n.__graphObjType="node",n},updateObj:function(t,n){if(t.__graphDefaultObj){var r=o(n)||1,i=Math.cbrt(r)*e.nodeRelSize,s=e.nodeResolution;t.geometry.type.match(/^Sphere(Buffer)?Geometry$/)&&t.geometry.parameters.radius===i&&t.geometry.parameters.widthSegments===s||(c.hasOwnProperty(r)||(c[r]=new ie.SphereBufferGeometry(i,s,s)),t.geometry.dispose(),t.geometry=c[r]);var u=a(n),f=new ie.Color(ee(u||"#ffffaa")),d=e.nodeOpacity*te(u);"MeshLambertMaterial"===t.material.type&&t.material.color.equals(f)&&t.material.opacity===d||(l.hasOwnProperty(u)||(l[u]=new ie.MeshLambertMaterial({color:f,transparent:!0,opacity:d})),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 f=(0,h.default)(e.linkThreeObject),d=(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,i=f(t),o=d(t);if(i&&e.linkThreeObject===i&&(i=i.clone()),!i||o)if(!!g(t))n=new ie.Mesh;else{var a=new ie.BufferGeometry;a[ae]("position",new ie.BufferAttribute(new Float32Array(6),3)),n=new ie.Line(a)}return i?o?((r=new ie.Group).__graphDefaultObj=!0,r.add(n),r.add(i)):r=i:(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,i=Math.ceil(10*g(n))/10,o=!!i;if(o){var a=i/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(i)){var u=new ie.CylinderBufferGeometry(a,a,1,s,1,!1);u[se]((new ie.Matrix4).makeTranslation(0,.5,0)),u[se]((new ie.Matrix4).makeRotationX(Math.PI/2)),y[i]=u}r.geometry.dispose(),r.geometry=y[i]}}var c=p(n);if(c)r.material=c;else{var l=v(n),f=new ie.Color(ee(l||"#f0f0f0")),d=e.linkOpacity*te(l),h=o?"MeshLambertMaterial":"LineBasicMaterial";if(r.material.type!==h||!r.material.color.equals(f)||r.material.opacity!==d){var m=o?b:E;m.hasOwnProperty(l)||(m[l]=new ie[h]({color:f,transparent:d<1,opacity:d,depthWrite:d>=1})),r.material.dispose(),r.material=m[l]}}}}}),e.linkDirectionalArrowLength||t.hasOwnProperty("linkDirectionalArrowLength")){var w=(0,h.default)(e.linkDirectionalArrowLength),x=(0,h.default)(e.linkDirectionalArrowColor);J(_.filter(w),e.graphScene,{objBindAttr:"__arrowObj",objFilter:function(e){return"arrow"===e.__linkThreeObjType},createObj:function(){var e=new ie.Mesh(void 0,new ie.MeshLambertMaterial({transparent:!0}));return e.__linkThreeObjType="arrow",e},updateObj:function(t,n){var r=w(n),i=e.linkDirectionalArrowResolution;if(!t.geometry.type.match(/^Cone(Buffer)?Geometry$/)||t.geometry.parameters.height!==r||t.geometry.parameters.radialSegments!==i){var o=new ie.ConeBufferGeometry(.25*r,r,i);o.translate(0,r/2,0),o.rotateX(Math.PI/2),t.geometry.dispose(),t.geometry=o}t.material.color=new ie.Color(x(n)||v(n)||"#f0f0f0"),t.material.opacity=3*e.linkOpacity}})}if(e.linkDirectionalParticles||t.hasOwnProperty("linkDirectionalParticles")){var T=(0,h.default)(e.linkDirectionalParticles),k=(0,h.default)(e.linkDirectionalParticleWidth),O=(0,h.default)(e.linkDirectionalParticleColor),C={},A={};J(_.filter(T),e.graphScene,{objBindAttr:"__photonsObj",objFilter:function(e){return"photons"===e.__linkThreeObjType},createObj:function(){var e=new ie.Group;return e.__linkThreeObjType="photons",e},updateObj:function(t,n){var r,i=Math.round(Math.abs(T(n))),o=!!t.children.length&&t.children[0],a=Math.ceil(10*k(n))/10/2,s=e.linkDirectionalParticleResolution;o&&o.geometry.parameters.radius===a&&o.geometry.parameters.widthSegments===s?r=o.geometry:(A.hasOwnProperty(a)||(A[a]=new ie.SphereBufferGeometry(a,s,s)),r=A[a],o&&o.geometry.dispose());var u,c=O(n)||v(n)||"#f0f0f0",l=new ie.Color(ee(c)),f=3*e.linkOpacity;o&&o.material.color.equals(l)&&o.material.opacity===f?u=o.material:(C.hasOwnProperty(c)||(C[c]=new ie.MeshLambertMaterial({color:l,transparent:!0,opacity:f})),u=C[c],o&&o.material.dispose()),J(K(new Array(i)).map((function(e,t){return{idx:t}})),t,{idAccessor:function(e){return e.idx},createObj:function(){return new ie.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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.nodeFilter,a=void 0===o?function(){return!0}:o,s=i.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,i=u(n),o=u(r);if(!c.hasOwnProperty(i))throw"Missing source node with id: ".concat(i);if(!c.hasOwnProperty(o))throw"Missing target node with id: ".concat(o);var a=c[i],s=c[o];function u(e){return"object"===P(e)?t(e):e}a.out.push(s)}));var l=[];return f(Object.values(c)),Object.assign.apply(Object,[{}].concat(K(Object.entries(c).filter((function(e){return!G(e,2)[1].skip})).map((function(e){var t=G(e,2);return R({},t[0],t[1].depth)})))));function f(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0,o=e.length;i<o;i++){var a=e[i];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,f(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),z=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=z(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 U=oe.graph();e.graphData.nodes.forEach((function(t){U.addNode(t[e.nodeId])})),e.graphData.links.forEach((function(e){U.addLink(e.source,e.target)})),(S=oe.forcelayout(U,I({dimensions:e.numDimensions},e.ngraphPhysics))).graph=U}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],i=n[0],o=e.slice();o[0]!==r;)o.push(o.shift());for(var a=0,s=t.slice();s[0]!==i;)if(s.push(s.shift()),a++>10)throw new Error("Unexpected state");return s.shift(),s.pop(),o.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,i=0;i<e.vertexIds.length;i++){var o,a,s,u=r[e.vertexIds[i]];0===i?(o=e.vertexIds[1],a=e.vertexIds[e.vertexIds.length-1]):i===e.vertexIds.length-1?(o=e.vertexIds[0],a=e.vertexIds[e.vertexIds.length-2]):(o=e.vertexIds[i+1],a=e.vertexIds[i-1]),s=r[a];var c=r[o].clone().sub(u),l=s.clone().sub(u),f=c.angleTo(l);if(f>Math.PI-.01&&f<Math.PI+.01){var d=[];e.neighbours.forEach((function(t){t.vertexIds.includes(e.vertexIds[i])||d.push(t)})),e.neighbours=d}else n.push(e.vertexIds[i])}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,i=[],o=0;o<e.vertexIds.length;o++){var a,s,u=n[e.vertexIds[o]];0===o?(a=n[e.vertexIds[1]],s=n[e.vertexIds[e.vertexIds.length-1]]):o===e.vertexIds.length-1?(a=n[e.vertexIds[0]],s=n[e.vertexIds[e.vertexIds.length-2]]):(a=n[e.vertexIds[o+1]],s=n[e.vertexIds[o-1]]);var c=a.clone().sub(u),l=s.clone().sub(u),f=c.angleTo(l);if(f===Math.PI||0===f)return!1;var d=c.cross(l).y;i.push(d)}return i.forEach((function(e){0===e&&(r=!1)})),i.forEach(i[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,i=e.z-t.z;return n*n+r*r+i*i},r.isPointInPoly=function(e,t){for(var n=!1,r=-1,i=e.length,o=i-1;++r<i;o=r)(e[r].z<=t.z&&t.z<e[o].z||e[o].z<=t.z&&t.z<e[r].z)&&t.x<(e[o].x-e[r].x)*(t.z-e[r].z)/(e[o].z-e[r].z)+e[r].x&&(n=!n);return n},r.isVectorInPolygon=function(e,t,n){var r=1e5,i=-1e5,o=[];return t.vertexIds.forEach((function(e){r=Math.min(n[e].y,r),i=Math.max(n[e].y,i),o.push(n[e])})),!!(e.y<i+.5&&e.y>r-.5&&this.isPointInPoly(o,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 i=function(e){this.content=[],this.scoreFunction=e};i.prototype.push=function(e){this.content.push(e),this.sinkDown(this.content.length-1)},i.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},i.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))},i.prototype.size=function(){return this.content.length},i.prototype.rescoreElement=function(e){this.sinkDown(this.content.indexOf(e))},i.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}},i.prototype.bubbleUp=function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i=e+1<<1,o=i-1,a=null,s=void 0;if(o<t&&(s=this.scoreFunction(this.content[o]))<r&&(a=o),i<t&&this.scoreFunction(this.content[i])<(null===a?r:s)&&(a=i),null===a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}};var o=function(){};o.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}},o.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}},o.heap=function(){return new i((function(e){return e.f}))},o.search=function(e,t,n){this.init(e);var r=this.heap();for(r.push(t);r.size()>0;){var i=r.pop();if(i===n){for(var o=i,a=[];o.parent;)a.push(o),o=o.parent;return this.cleanUp(a),a.reverse()}i.closed=!0;for(var s=this.neighbours(e,i),u=0,c=s.length;u<c;u++){var l=s[u];if(!l.closed){var f=i.g+l.cost,d=l.visited;if(!d||f<l.g){if(l.visited=!0,l.parent=i,!l.centroid||!n.centroid)throw new Error("Unexpected state");l.h=l.h||this.heuristic(l.centroid,n.centroid),l.g=f,l.f=l.g+l.h,d?r.rescoreElement(l):r.push(l)}}}}return[]},o.heuristic=function(e,t){return r.distanceToSquared(e,t)},o.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),i={};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)})),i.vertices=n.vertices;var o=this._buildPolygonGroups(n);i.groups=[];var a=function(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return n};return o.forEach((function(e){var n=[];e.forEach((function(i){var o=i.neighbours.map((function(t){return a(e,t)})),s=i.neighbours.map((function(e){return t._getSharedVerticesInOrder(i,e)}));i.centroid.x=r.roundNumber(i.centroid.x,2),i.centroid.y=r.roundNumber(i.centroid.y,2),i.centroid.z=r.roundNumber(i.centroid.z,2),n.push({id:a(e,i),neighbours:o,vertexIds:i.vertexIds,centroid:i.centroid,portals:s})})),i.groups.push(n)})),i},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,i=n.get(e.vertexIds[0]),o=n.get(e.vertexIds[1]),a=n.get(e.vertexIds[2]);i.forEach((function(e){(o.has(e)||a.has(e))&&r.add(t.polygons[e])})),o.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,i=e.faceVertexUvs,o=new Map,s=0;s<r.length;s++)o.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:[]}),o.get(e.a).add(n.length-1),o.get(e.b).add(n.length-1),o.get(e.c).add(n.length-1)}));var u={polygons:n,vertices:r,faceVertexUvs:i};return n.forEach((function(e){t._buildPolygonNeighbours(e,u,o)})),u},s._getSharedVerticesInOrder=function(e,t){var n=e.vertexIds,r=t.vertexIds,i=new Set;if(n.forEach((function(e){r.includes(e)&&i.add(e)})),i.size<2)return[];i.has(n[0])&&i.has(n[n.length-1])&&n.push(n.shift()),i.has(r[0])&&i.has(r[r.length-1])&&r.push(r.shift());var o=[];return n.forEach((function(e){r.includes(e)&&o.push(e)})),o};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,i=this.portals,o=[],a=0,s=0,u=0;t=i[0].left,n=i[0].right,o.push(e=i[0].left);for(var c=1;c<i.length;c++){var l=i[c].left,f=i[c].right;if(r.triarea2(e,n,f)<=0){if(!(r.vequal(e,n)||r.triarea2(e,t,f)>0)){o.push(t),t=e=t,n=e,s=a=s,u=a,c=a;continue}n=f,u=c}if(r.triarea2(e,t,l)>=0){if(!(r.vequal(e,t)||r.triarea2(e,n,l)<0)){o.push(n),t=e=n,n=e,s=a=u,u=a,c=a;continue}t=l,s=c}}return 0!==o.length&&r.vequal(o[o.length-1],i[i.length-1].left)||o.push(i[i.length-1].left),this.path=o,o};var c,l,f,d,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,i=Math.pow(50,2);return this.zones[e].groups.forEach((function(e,o){e.forEach((function(e){var a=r.distanceToSquared(e.centroid,t);a<i&&(n=o,i=a)}))})),n},m.prototype.getRandomNode=function(e,t,n,i){if(!this.zones[e])return new THREE.Vector3;n=n||null,i=i||0;var o=[];return this.zones[e].groups[t].forEach((function(e){n&&i?r.distanceToSquared(n,e.centroid)<i*i&&o.push(e.centroid):o.push(e.centroid)})),r.sample(o)||new THREE.Vector3},m.prototype.getClosestNode=function(e,t,n,i){void 0===i&&(i=!1);var o=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&&(!i||r.isVectorInPolygon(e,t,o))&&(a=t,s=n)})),a},m.prototype.findPath=function(e,t,n,r){var i=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=o.search(i,s,c),f=function(e,t){for(var n=0;n<e.neighbours.length;n++)if(e.neighbours[n]===t.id)return e.portals[n]},d=new u;d.push(e);for(var p=0;p<l.length;p++){var h=l[p+1];if(h){var m=f(l[p],h);d.push(a[m[0]],a[m[1]])}}d.push(t),d.stringPull();var v=d.path.map((function(e){return new THREE.Vector3(e.x,e.y,e.z)}));return v.shift(),v},m.prototype.clampStep=(f=new THREE.Vector3,d=new THREE.Plane,p=new THREE.Triangle,h=new THREE.Vector3,function(e,t,n,r,i,o){var a=this.zones[r].vertices,s=this.zones[r].groups[i],u=[n],m={};m[n.id]=0,c=void 0,h.set(0,0,0),l=1/0,d.setFromCoplanarPoints(a[n.vertexIds[0]],a[n.vertexIds[1]],a[n.vertexIds[2]]),d.projectPoint(t,f),t.copy(f);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,f),f.distanceToSquared(t)<l&&(c=v,h.copy(f),l=f.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 o.copy(h),c})},31122:function(e,t,n){"use strict";var r=n(2212);function i(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 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 i=a(this).constructor;n=Reflect.construct(r,arguments,i)}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,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(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 f(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)||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 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 i(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],i=r.map((function(t){return t*e.fontSize*.1})),o=(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 d=Math.max.apply(Math,f(u.map((function(e){return n.measureText(e).width})))),p=this.fontSize*u.length;if(t.width=d+2*i[0]+2*s[0],t.height=p+2*i[1]+2*s[1],this.borderWidth){if(n.strokeStyle=this.borderColor,i[0]){var h=i[0]/2;n.lineWidth=i[0],n.beginPath(),n.moveTo(h,o[0]),n.lineTo(h,t.height-o[3]),n.moveTo(t.width-h,o[1]),n.lineTo(t.width-h,t.height-o[2]),n.stroke()}if(i[1]){var m=i[1]/2;n.lineWidth=i[1],n.beginPath(),n.moveTo(Math.max(i[0],o[0]),m),n.lineTo(t.width-Math.max(i[0],o[1]),m),n.moveTo(Math.max(i[0],o[3]),t.height-m),n.lineTo(t.width-Math.max(i[0],o[2]),t.height-m),n.stroke()}if(this.borderRadius){var v=Math.max.apply(Math,f(i)),g=v/2;n.lineWidth=v,n.beginPath(),[!!o[0]&&[o[0],g,g,o[0]],!!o[1]&&[t.width-o[1],t.width-g,g,o[1]],!!o[2]&&[t.width-o[2],t.width-g,t.height-g,t.height-o[2]],!!o[3]&&[o[3],g,t.height-g,t.height-o[3]]].filter((function(e){return e})).forEach((function(e){var t=l(e,4),r=t[0],i=t[1],o=t[2],a=t[3];n.moveTo(r,o),n.quadraticCurveTo(i,o,i,a)})),n.stroke()}}this.backgroundColor&&(n.fillStyle=this.backgroundColor,this.borderRadius?(n.beginPath(),n.moveTo(i[0],o[0]),[[i[0],o[0],t.width-o[1],i[1],i[1],i[1]],[t.width-i[0],t.width-i[0],t.width-i[0],i[1],o[1],t.height-o[2]],[t.width-i[0],t.width-o[2],o[3],t.height-i[1],t.height-i[1],t.height-i[1]],[i[0],i[0],i[0],t.height-i[1],t.height-o[3],o[0]]].forEach((function(e){var t=l(e,6),r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5];n.quadraticCurveTo(r,a,i,s),n.lineTo(o,u)})),n.closePath(),n.fill()):n.fillRect(i[0],i[1],t.width-2*i[0],t.height-2*i[1])),n.translate.apply(n,f(i)),n.translate.apply(n,f(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 i=(d-n.measureText(t).width)/2,o=(r+1)*e.fontSize;y&&n.strokeText(t,i,o),n.fillText(t,i,o)})),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}}])&&o(t.prototype,n),r&&o(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(i,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(o,(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 i=/[\W_]+(.|$)/g;var o=/(.)([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=o,o.wrap=r;var i=[].slice;function o(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!==typeof o)throw new Error("Expected function as last argument, not "+o);function a(s){var u=e[++t],c=i.call(arguments,0),l=c.slice(1),f=n.length,d=-1;if(s)o(s);else{for(;++d<f;)null!==l[d]&&void 0!==l[d]||(l[d]=n[d]);n=l,u?r(u,a).apply(null,n):o.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(i);try{n=e.apply(null,a)}catch(u){if(s&&r)throw u;return i(u)}s||(n&&"function"===typeof n.then?n.then(o,i):n instanceof Error?i(n):o(n))};function i(){r||(r=!0,n.apply(null,arguments))}function o(e){i(null,e)}}},70655:function(e,t,n){"use strict";n.d(t,{pi:function(){return r},_T:function(){return i}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}},18835:function(e,t,n){"use strict";var r=n(18869),i=n(73469),o=n(94470),a=n(33310),s=n(28281),u=n(10939);e.exports=function e(){var t,n=[],i=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):i(e)}r&&(y.settings=o(y.settings||{},r));return E;function i(e){u(e.plugins),e.settings&&(r=o(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):i(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=w(e);r?(a(r[1])&&a(t)&&(t=o(!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),d(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),d(n,"compile"))return new n(e,r).compile();return n(e,r)},E.run=x,E.runSync=function(e,t){var n,i;return x(e,t,o),g("runSync","run",i),n;function o(e,t){i=!0,n=t,r(e)}},E.process=T,E.processSync=function(e){var t,n;return _(),p("processSync",E.Parser),h("processSync",E.Compiler),T(t=u(e),i),g("processSync","process",n),t;function i(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(o(!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)))&&i.use(r));return t=!0,b=1/0,E}function w(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}function x(e,t,n){if(v(e),_(),n||"function"!==typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,o){i.run(e,u(t),(function(t,i,a){i=i||e,t?o(t):r?r(i):n(null,i,a)}))}r(null,n)}function T(e,t){if(_(),p("process",E.Parser),h("process",E.Compiler),!t)return new Promise(n);function n(n,r){var i=u(e);f.run(E,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var c=[].slice,l={}.hasOwnProperty,f=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,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);void 0===n||null===n||("string"===typeof n||i(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}));function d(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 i=r(n(62520)),o=r(n(99294)),a={idDir:"data/",useInheritance:!1,idToPath:s};function s(e){return i.default.join(e.substring(0,2),e.substring(2))}t.idUuidFolderFormat=s,t.idTsFolderFormat=function(e){return i.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 i=n.children.find((e=>"property-drawer"===e.type)),o=null===(r=null===i||void 0===i?void 0:i.children.find((e=>e.key===t)))||void 0===r?void 0:r.value;if(void 0!==o)return o}while(n);return null}t.uniorgAttach=(e={})=>{const t=Object.assign(Object.assign({},a),e);return function(e,n){(0,o.default)(e,"link",((e,n)=>{if("attachment"===e.linkType){const r=function(e,t,n,r){if(i.default.isAbsolute(e.path))return e.path;const o=u(t,"DIR",r.useInheritance);if(o)return i.default.join(o,e.path);const a=u(t,"ID",r.useInheritance);if(a){const t=r.idToPath(a);return i.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 i=r(n(62854));t.extractKeywords=(e={})=>function(t,n){i.default(t,"keyword",(t=>{let r=n.data=n.data||{};e.name&&(r=r[e.name]=r[e.name]||{});let i=t.key;e.preserveCase||(i=i.toLowerCase()),r[i]=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 i=r(n(10939)),o=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 f(i.default(e),t).parse()};class f{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 o.default("org-data",{contentsBegin:0,contentsEnd:this.r.endOffset()},e)}parseElements(e,t){const n=[];let r=-1;for(;!this.r.eof();){const i=this.r.offset();if(i===r)throw console.log("elements:",n,"rest:",JSON.stringify(this.r.rest())),new Error("no progress (elements)");r=i;const o=this.parseElement(e,t),a=o.type,u=o.contentsBegin,c=o.contentsEnd;void 0===u||void 0===c||(s.greaterElements.has(a)?(this.r.narrow(u,c),x(o,this.parseElements(f.nextMode(e,a,!0),"plain-list"===o.type||"list-item"===o.type?o.structure:void 0)),this.r.widen(),o.structure&&delete o.structure):(this.r.narrow(u,c),x(o,this.parseObjects(s.restrictionFor(o.type))),this.r.widen())),n.push(o),e=f.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 i=0===this.r.offset()||"\n"===this.r.substring(this.r.offset()-1,this.r.offset());if(i&&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]*$/im))return this.parsePropertyDrawer();if(!i)return this.parseParagraph({});if(this.r.lookingAt(/^[ \t]*CLOCK:/))return this.parseClock();const o=this.parseAffiliatedKeywords();if(this.r.lookingAt(p))return this.parseLatexEnvironment(o);if(this.r.lookingAt(d))return this.parseDrawer(o);if(this.r.lookingAt(/[ \t]*:( |$)/m))return this.parseFixedWidth(o);{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",o);case"comment":return this.parseCommentBlock(o);case"example":return this.parseExampleBlock(o);case"export":return this.parseExportBlock(o);case"quote":return this.parseBlock("quote-block","quote",o);case"src":return this.parseSrcBlock(o);case"verse":return this.parseBlock("verse-block","verse",o);default:return this.parseSpecialBlock(o)}}return this.r.lookingAt(/^\S+:/)?(this.r.resetOffset(e),this.parseKeyword(o)):(this.r.resetOffset(e),this.parseParagraph(o))}}if(this.r.lookingAt(_))return this.parseFootnoteDefinition(o);if(this.r.lookingAt(/^[ \t]*-{5,}[ \t]*$/m))return this.parseHorizontalRule(o);if(this.r.lookingAt(/^%%\(/))return this.parseDiarySexp(o);const a=/[ \t]*\+(-+\+)+[ \t]*$/m;if(this.r.lookingAt(/^[ \t]*\|/))return this.parseTable(o);if(this.r.lookingAt(a)){const e=this.r.offset();this.r.advance(this.r.line());const t=this.r.offset(),i=null!==(r=null===(n=this.r.match(/^[ \t]*($|[^|])/m))||void 0===n?void 0:n.index)&&void 0!==r?r:null;this.r.advance(i);const s=this.r.offset()>t&&this.r.lookingAt(a);if(this.r.resetOffset(e),s)return this.parseTable(o)}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,o)}return this.parseParagraph(o)}parseObjects(e){const t=[];let n=this.r.offset();for(;!this.r.eof();){const r=this.r.offset(),i=this.parseObject(e);if(!i)break;if(this.r.offset()===r)throw new Error(`no progress (parseObject): ${JSON.stringify(i)}, text: ${JSON.stringify(this.r.rest())}, objects: ${JSON.stringify(t,null,2)}`);const[a,u]=i;if(a!==n){const e=this.r.substring(n,a);t.push(o.default("text",{value:e}))}const c=u.contentsBegin,l=u.contentsEnd;void 0!==c&&void 0!==l&&(this.r.narrow(c,l),x(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(o.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(),i=this.tryParseObject(e);if(i){if(r===this.r.offset())throw new Error("no progress (tryParseObject)");return[r,i]}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),o.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 i=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 f=this.r.offset(),d=this.r.lookingAt(/^(.*?)[ \t]+:([\w@#%:]+):[ \t]*$/m),p=null!==(n=null===d||void 0===d?void 0:d[2].split(":"))&&void 0!==n?n:[],h=d?f+d.index+d[1].length:f+this.r.forceLookingAt(/.*/)[0].length,m=this.r.substring(f,h),v=f,g=h;return this.r.widen(),this.parseEmptyLines(),o.default("headline",{level:i,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 i=r[1],o=this.parseTimestamp();"SCHEDULED:"===i&&(e=o),"DEADLINE:"===i&&(t=o),"CLOSED:"===i&&(n=o)}return this.r.widen(),this.r.advance(this.r.line()),this.parseEmptyLines(),o.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]*$/im);this.r.advance(t.index);const n=this.r.offset();return this.r.advance(this.r.line()),this.parseEmptyLines(),o.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 i=this.r.offset(),a=i+this.r.line().length,s=i+r.index;this.r.resetOffset(s),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return o.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)),o.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 o.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 o.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:i,parameters:a}=n.groups,u=this.r.offset(),c=u+this.r.line().length,l=u+t.index,f=s.unescapeCodeInString(this.r.substring(c,l));this.r.resetOffset(l),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return o.default("src-block",{affiliated:e,language:r,value:f})}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 o.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,i=this.r.offset(),a=i+this.r.line().length,u=i+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 o.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(),i=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 o.default("special-block",{affiliated:e,blockType:t,contentsBegin:i,contentsEnd:a},[])}parseAffiliatedKeywords(){var e,t,n,r;const i=this.r.offset(),o={};for(;!this.r.eof();){const i=this.r.lookingAt(b);if(!i)break;const a=(null!==(t=null!==(e=i.groups.dualKeyword)&&void 0!==e?e:i.groups.regularKeyword)&&void 0!==t?t:i.groups.attributeKeyword).toUpperCase(),u=null!==(n=y[a])&&void 0!==n?n:a,c=v.has(u);this.r.advance(i),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 f=m.has(u)&&null!==(r=i.groups.dualValue)&&void 0!==r?r:null,d=null===f?l:[l,f];g.has(u)||u.match(/^ATTR_/)?(o[u]=o[u]||[],o[u].push(d)):o[u]=d}return this.r.lookingAt(/^[ \t]*$/m)?(this.r.resetOffset(i),{}):o}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(),o.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 i=this.r.offset();this.parseEmptyLines();const a=this.r.substring(t,i);return o.default("latex-environment",{affiliated:e,value:a})}parseDrawer(e){const t=this.r.match(/^[ \t]*:END:[ \t]*$/im);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(d)[1];this.r.advance(this.r.line());const i=this.r.offset();return this.r.resetOffset(n),this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("drawer",{affiliated:e,name:r,contentsBegin:i,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(),o.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()),o.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(d)){if(!this.r.match(/^[ \t]*:END:[ \t]*$/im)){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(),o.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 i=this.r.match(w);this.r.advance(null===i||void 0===i?void 0:i.index);let a=i?this.r.offset():this.r.endOffset();if(i&&"["===i[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(),o.default("footnote-definition",{affiliated:e,label:n,contentsBegin:s,contentsEnd:a},[])}parseHorizontalRule(e){return this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("horizontal-rule",{affiliated:e})}parseDiarySexp(e){const t=this.r.forceLookingAt(/^(%%\(.*)[ \t]*$/m)[1];return this.r.advance(this.r.line()),this.parseEmptyLines(),o.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"),i=this.r.match(r),a=i?t+i.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?o.default("table",{tableType:n,tblfm:s,contentsBegin:t,contentsEnd:a},[]):o.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()),o.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 o.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 i=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===i));if(!t)break;s=t.end}const u=s;return this.r.resetOffset(u),o.default("plain-list",{affiliated:t,indent:i,listType:a,contentsBegin:n,contentsEnd:u,structure:e},[])}parseListItem(e){var t,n;const r=this.r.offset(),i=this.r.advance(this.r.forceMatch(this.re.fullListItemRe())),a=i.groups.bullet,s=null!==(t=i.groups.counter)&&void 0!==t?t:null,u="[ ]"===i.groups.checkbox?"off":"[x]"===(null===(n=i.groups.checkbox)||void 0===n?void 0:n.toLowerCase())?"on":"[-]"===i.groups.checkbox?"trans":null,c=e.find((e=>e.begin===r)),l=this.r.offset(),f=c.end;return this.r.resetOffset(f),o.default("list-item",{indent:c.indent,bullet:a,counter:s,checkbox:u,contentsBegin:l,contentsEnd:f,structure:e},c.tag?[c.tag]:[])}parseListStructure(){var e,t,n,r,i,a,u,c,l;const f=[],p=[];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 d=e.groups.indent.length;for(;f.length&&f[f.length-1].indent>=d;){const e=f.pop();e.end=this.r.offset(),p.push(e)}const h=this.r.forceMatch(this.re.fullListItemRe()),{bullet:m,counter:v,checkbox:g}=h.groups;if(0===d&&m.startsWith("*"))break;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!==(i=null===(r=h.groups.bullet)||void 0===r?void 0:r.length)&&void 0!==i?i: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),f=e+h.groups.tag.length;this.r.narrow(e,f),y=o.default("list-item-tag",{},this.parseObjects(s.restrictionFor("list-item"))),this.r.widen()}const b={begin:this.r.offset(),indent:d,bullet:m,counter:null!==v&&void 0!==v?v:null,checkbox:null!==g&&void 0!==g?g:null,tag:y,end:this.r.offset()};f.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(;f.length&&f[f.length-1].indent>=e;){const e=f.pop();e.end=this.r.offset(),p.push(e)}if(!f.length)break;const t=this.r.lookingAt(/[ \t]*#\+begin(:|_\S+)/i);t?this.r.advance(this.r.match(new RegExp(`^[ \\t]*#\\+end${t[1]}[ \\t]*`,"im"))):this.r.lookingAt(d)&&this.r.advance(this.r.match(/^[ \t]*:END:[ \t]*$/im)),this.r.advance(this.r.line())}}this.parseEmptyLines();const h=this.r.offset();return f.forEach((e=>{e.end=h})),p.push(...f),p.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,i=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return o.default("superscript",{contentsBegin:i,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,i=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return o.default("subscript",{contentsBegin:i,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),o.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),o.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),o.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),o.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),o.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),o.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?o.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 i=this.r.offset();if(t===i)return null;const a=this.r.substring(t,i);return o.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 i=this.r.offset(),a=t+n.index+n[0].length,s=i-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?o.default("footnote-reference",{label:c,footnoteType:u,contentsBegin:a,contentsEnd:s},[]):o.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 i=n.groups.link.replace(/[ \t]*\n[ \t]*/m," ").replace(/(\\+)([\[\]])/g,((e,t)=>"\\".repeat(e.length/2)+t)),{linkType:a,path:s}=this.linkType(i);return o.default("link",Object.assign({format:"bracket",linkType:a,rawLink:i,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 o.default("link",{format:"plain",linkType:e[1],rawLink:e[0],path:e[2]},[])}const i=new RegExp(`<${this.re.linkTypesRe()}([^>\\n]*(?:\\n[ \\t]*[^> \\t\\n][^>\\n]*)*)>`),a=this.r.advance(this.r.lookingAt(i));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 o.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],i=n[1],a=n[3],s=!!n[2];let u=null;if(!s){const e=i.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:f.parseDate(i),d=l?a?f.parseDate(a):u?Object.assign(Object.assign({},l),u):null:null;return o.default("timestamp",{timestampType:c,rawValue:r,start:l,end:d})}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 f.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 d=/^[ \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]+)\]/,w=/^\*|^\[fn:([-_\w]+)\]|^([ \t]*\n){2,}/m;function x(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,i,o,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},f=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)},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=void 0;const p=d(n(14787));t.Reader=class{constructor(e){r.set(this,void 0),i.set(this,void 0),o.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,f(this,r).length),l(this,i,e),l(this,o,p.default(e))}message(e,t,n){const r=void 0!==t?f(this,o).toPoint(t):void 0;f(this,i).message(e,r,n)}advance(e){return e&&("number"===typeof e?l(this,a,f(this,a)+e):"string"===typeof e?this.rest().startsWith(e)&&l(this,a,f(this,a)+e.length):l(this,a,f(this,a)+(e.index+e[0].length))),e}backoff(e){l(this,a,Math.max(f(this,s),f(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 f(this,r).substring(f(this,a),f(this,a)+e)}line(){const e=this.rest(),t=e.indexOf("\n");return e.substring(0,-1===t?e.length:t+1)}rest(){return f(this,r).substring(f(this,a),f(this,u))}substring(e,t){return f(this,r).substring(e,t)}eof(){return f(this,a)>=f(this,u)}offset(){return f(this,a)}endOffset(){return f(this,u)}resetOffset(e){l(this,a,e)}narrow(e,t,n=!1){f(this,c).push({prevLeft:f(this,s),prevRight:f(this,u),prevOffset:f(this,a)}),l(this,s,e),l(this,u,t),n||l(this,a,e)}widen(e=!1){const t=f(this,c).pop();t&&(l(this,s,t.prevLeft),l(this,u,t.prevRight),e||l(this,a,t.prevOffset))}},r=new WeakMap,i=new WeakMap,o=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 i=`[^${e}${t}]*?`;let o=`(?:${i}${e}${i}${t})+${i}`,a=i;for(let s=1;s<n;s++)a=`${a}|${o}`,o=`(?:${i}${e}${o}${t})+${i}`;return`${e}(${r?`?<${r}>`:""}${a})${t}`}}emphRe(){return this.emphTemplate("*/_+")}verbatimRe(){return this.emphTemplate("=~")}emphTemplate(e){const{pre:t,post:n,border:r,newline:i,body:o}=this.options.emphasisRegexpComponents;return new RegExp([`([${t}]|^)`,`(([${e}])([^${r}]|[^${r}]${i<=0?o:`${o}*?(?:\\n${o}*?){0,${i}}`}[^${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 i=new Set(r);i.delete("line-break");const o=new Set(r);return o.delete("footnote-reference"),{bold:r,"footnote-reference":r,headline:i,inlinetask:i,italic:r,"list-item":i,keyword:o,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 i=r(n(50914)),o=r(n(31742)),a={imageFilenameExtensions:["png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm","pnm","svg"],useSections:!1,footnotesSection:e=>[u(null,"h1",{},"Footnotes:"),...e]},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 i;const a=o.default(t,n||{},r||[]),s=null===(i=null===e||void 0===e?void 0:e.data)||void 0===i?void 0:i.hProperties;return s&&(a.properties=Object.assign({},a.properties,s)),a}t.orgToHast=function(e,t={}){const n=Object.assign(Object.assign({},a),t),r={footnotesOrder:[],footnotes:{}};return function e(o){var a;if(Array.isArray(o))return o.map(e).filter((e=>null!==e&&void 0!==e)).flatMap((e=>Array.isArray(e)?e:[e]));const l=o;switch(l.type){case"org-data":const o=e(l.children),f=r.footnotesOrder.map(((t,n)=>{const i=r.footnotes[t];return i?u(l,"div",{className:"footnote-definition"},[u(null,"sup",{},u(null,"a",{className:"footnum",id:`fn.${n+1}`,href:`#fnr.${n+1}`,role:"doc-backlink"},String(n+1))),u(l,"div",{className:"footdef",role:"doc-footnote"},e(i.children))]):null})).filter((e=>null!==e));return 0!==f.length&&(t.useSections?o.push(u(null,"section",{},n.footnotesSection(f))):o.push(...n.footnotesSection(f))),{type:"root",children:o};case"section":{const t=l.children[0];if(t.commented||t.tags.includes("noexport"))return null;const r=e(l.children);return n.useSections?u(l,"section",{class:`section-level-${t.level}`},r):r}case"headline":{const t=(e,t)=>e.flatMap((e=>[t,e])).slice(1),n=l.todoKeyword?[u(l,"span",{className:["todo-keyword",l.todoKeyword]},l.todoKeyword)," "]:null,r=l.priority?[u(l,"span",{className:["priority",`priority-${l.priority}`]},`[${l.priority}]`)," "]:null,o=l.tags.length?[i.default("text",{value:"\xa0\xa0\xa0"}),u(l,"span.tags",{},t(l.tags.map((e=>u(l,"span.tag",{className:`tag-${e}`},e))),"\xa0"))]:null;return u(l,`h${l.level}`,{},[n,r,e(l.children),o].filter((e=>e)))}case"plain-list":return"unordered"===l.listType?u(l,"ul",{},e(l.children)):"ordered"===l.listType?u(l,"ol",{},e(l.children)):u(l,"dl",{},e(l.children));case"list-item":return"list-item-tag"===(null===(a=l.children[0])||void 0===a?void 0:a.type)?[u(l,"dt",{},e(l.children[0].children)),u(l,"dd",{},e(l.children.slice(1)))]:u(l,"li",{},e(l.children));case"quote-block":return u(l,"blockquote",{},e(l.children));case"src-block":return u(l,"pre.src-block",{},u(l,"code",{className:l.language?`language-${l.language}`:void 0},c(l.value)));case"verse-block":return u(l,"pre.verse",{},e(l.children));case"center-block":return u(l,"div.center",{},e(l.children));case"comment-block":return null;case"example-block":return u(l,"div.exampe",{},l.value);case"export-block":return"html"===l.backend?i.default("raw",l.value):null;case"special-block":return s.has(l.blockType)?u(l,l.blockType,e(l.children)):u(l,"div",{className:["special-block",`block-${l.blockType}`]},e(l.children));case"keyword":return"HTML"===l.key?i.default("raw",l.value):null;case"horizontal-rule":return u(l,"hr",{});case"diary-sexp":return null;case"footnote-reference":let d=0,p="";if("inline"===l.footnoteType)d=r.footnotesOrder.length,r.footnotesOrder.push(d),r.footnotes[d]=l,p=`fnr.${d+1}`;else{if("standard"!==l.footnoteType)throw new Error(`unknown footnoteType: ${l.footnoteType}`);d=r.footnotesOrder.findIndex((e=>e===l.label)),-1===d&&(d=r.footnotesOrder.length,r.footnotesOrder.push(l.label),p=`fnr.${d+1}`)}return u(null,"sup",{},u(l,"a",{href:`#fn.${d+1}`,className:["footref"],id:p,role:"doc-backlink"},String(d+1)));case"footnote-definition":return r.footnotes[l.label]=l,null;case"paragraph":return u(l,"p",{},e(l.children));case"bold":return u(l,"strong",{},e(l.children));case"italic":return u(l,"em",{},e(l.children));case"superscript":return u(l,"sup",{},e(l.children));case"subscript":return u(l,"sub",{},e(l.children));case"code":return u(l,"code.inline-code",{},l.value);case"verbatim":return u(l,"code.inline-verbatim",{},l.value);case"strike-through":return u(l,"del",{},e(l.children));case"underline":return u(l,"span.underline",{style:"text-decoration: underline;"},e(l.children));case"text":return l.value;case"link":{let t=l.rawLink;"file"===l.linkType&&(t=encodeURI(t));const r=new RegExp(`.(${n.imageFilenameExtensions.join("|")})$`);return t.match(r)?u(l,"img",{src:t}):u(l,"a",{href:t},l.children.length?e(l.children):l.rawLink)}case"timestamp":return u(l,"span.timestamp",{},l.rawValue);case"planning":case"property-drawer":case"drawer":case"comment":return null;case"fixed-width":return u(l,"pre.fixed-width",{},l.value);case"clock":return null;case"latex-environment":return u(l,"div.math.math-display",{},l.value);case"latex-fragment":return u(l,"span.math.math-inline",{},l.contents.trim());case"entity":return i.default("text",{value:l.utf8});case"table":{if("table.el"===l.tableType)return u(l,"pre.table-el",{},l.value);const t=u(l,"table",{},[]);let n=!1,r=[];return l.children.forEach((i=>{"rule"===i.rowType&&(n?t.children.push(u(l,"tbody",e(r))):(t.children.push(u(l,"thead",{},r.map((t=>u(t,"tr",{},t.children.map((t=>u(t,"th",e(t.children))))))))),n=!0),r=[]),r.push(i)})),r.length&&t.children.push(u(l,"tbody",e(r))),t}case"table-row":return"standard"===l.rowType?u(l,"tr",e(l.children)):null;case"table-cell":return u(l,"td",e(l.children));default:return l}}(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(e){return function(t){return r.orgToHast(t,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 i=r(n(62854)),o=r(n(69671)),a=n(29033);t.uniorgSlug=(e={})=>function(e,t){const n=new o.default;i.default(e,"section",(e=>{var t;const r=e.children[0],i=r.data=r.data||{},o=i.hProperties=i.hProperties||{};if(!o.id){const i=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));o.id=i}}))},t.default=t.uniorgSlug},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 i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},61744:function(e){"use strict";e.exports=function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}},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 i;function i(){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},77361:function(e){"use strict";var t=i("start"),n=i("end");function r(e){return{start:t(e),end:n(e)}}function i(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=r,r.start=t,r.end=n},75432:function(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"===typeof e||(e={}),i(e.line)+":"+i(e.column)}function r(e){return e&&"object"===typeof e||(e={}),n(e.start)+"-"+n(e.end)}function i(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),i=n(66750),o=!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,f,d){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 ("+i(h.type+(p?"<"+p+">":""))+")");return m;function m(){var i,p,h=d.concat(r),m=[];if((!t||l(r,f,d[d.length-1]||null))&&(m=function(e){if(null!==e&&"object"===typeof e&&"length"in e)return e;if("number"===typeof e)return[o,e];return[e]}(n(r,d)))[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((i=e(r.children[p],p,h)())[0]===s)return i;p="number"===typeof i[1]?i[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),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"===typeof t&&"function"!==typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},7520:function(e,t,n){"use strict";var r,i=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)}!function(e){e.Undo="UNDO",e.Redo="REDO",e.Set="SET",e.Reset="RESET"}(r||(r={}));var a={past:[],present:null,future:[]},s=function(e,t){var n=e.past,i=e.present,o=e.future;switch(t.type){case r.Undo:if(0===n.length)return e;var a=n[n.length-1];return{past:n.slice(0,n.length-1),present:a,future:[i].concat(o)};case r.Redo:if(0===o.length)return e;var s=o[0],u=o.slice(1);return{past:[].concat(n,[i]),present:s,future:u};case r.Set:var c=t.newPresent;return c===i?e:{past:[].concat(n,[i]),present:c,future:[]};case r.Reset:return{past:[],present:t.newPresent,future:[]}}};t.Z=function(e){var t=(0,i.useReducer)(s,o({},a,{present:e})),n=t[0],u=t[1],c=0!==n.past.length,l=0!==n.future.length,f=(0,i.useCallback)((function(){c&&u({type:r.Undo})}),[c]),d=(0,i.useCallback)((function(){l&&u({type:r.Redo})}),[l]);return[n,{set:(0,i.useCallback)((function(e){return u({type:r.Set,newPresent:e})}),[]),reset:(0,i.useCallback)((function(e){return u({type:r.Reset,newPresent:e})}),[]),undo:f,redo:d,canUndo:c,canRedo:l}]}},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:i,toPosition:i,toOffset:function(e){var t,r=e&&e.line,i=e&&e.column;isNaN(r)||isNaN(i)||!(r-1 in n)||(t=(n[r-2]||0)+i-1||0);return t>-1&&t<n[n.length-1]?t:-1}};function i(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 i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"===typeof t&&(n=t,t=null),i=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),o=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=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},10939:function(e,t,n){"use strict";e.exports=n(65905)},45442:function(e,t,n){"use strict";var r=n(28064),i=n(54228),o=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||o(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=i.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 f(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){f(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"),f(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),i=n(45442);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);this.path&&(i.name=this.path+":"+i.name,i.file=this.path);return i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.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,i="",o=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(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=u,s=0;continue}}else if(i.length){i="",o=0,a=u,s=0;continue}t&&(i=i.length?i+"/..":"..",o=2)}else i.length?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===n&&s>-1?s++:s=-1}return i}(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,i,o,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(o){s=n+1;break}}else u<0&&(o=!0,u=n+1);return u<0?"":e.slice(s,u)}if(t===e)return"";i=-1,a=t.length-1;for(;n--;)if(47===e.charCodeAt(n)){if(o){s=n+1;break}}else i<0&&(o=!0,i=n+1),a>-1&&(e.charCodeAt(n)===t.charCodeAt(a--)?a<0&&(u=n):(a=-1,u=i));s===u?u=i:u<0&&(u=e.length);return e.slice(s,u)},t.dirname=function(e){var t,n,i;if(r(e),!e.length)return".";t=-1,i=e.length;for(;--i;)if(47===e.charCodeAt(i)){if(n){t=i;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,i,o=-1,a=0,s=-1,u=0;r(e),i=e.length;for(;i--;)if(47!==(n=e.charCodeAt(i)))s<0&&(t=!0,s=i+1),46===n?o<0?o=i:1!==u&&(u=1):o>-1&&(u=-1);else if(t){a=i+1;break}if(o<0||s<0||0===u||1===u&&o===s-1&&o===a+1)return"";return e.slice(o,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)}},22663:function(e){function t(e){return e}e.exports=function(e,n){if(null==e)return e;var r=(n=n||{}).width||50,i="string"===typeof n.indent?n.indent:" ",o=n.newline||"\n"+i,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=i+(e.match(u)||[]).map((function(e){return"\n"===e.slice(-1)&&(e=e.slice(0,e.length-1)),a(e)})).join(o);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 i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},30907: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}})},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15861:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return i}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},70885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(40181);function i(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){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(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.")}()}},42982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);var i=n(40181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.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.")}()}},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(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}}},76947: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"]')},99640: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"}')},92471: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"}}')},70006: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/"}')}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/b5f2ed29-b8c45246e6f61610d91f.js b/out/_next/static/chunks/b5f2ed29-b8c45246e6f61610d91f.js
new file mode 100644
index 0000000..6c59e90
--- /dev/null
+++ b/out/_next/static/chunks/b5f2ed29-b8c45246e6f61610d91f.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[573],{20527:function(e){var t;"undefined"!==typeof self&&self,t=function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return Xn}});var r=function e(t,r){this.position=void 0;var n,a="KaTeX parse error: "+t,i=r&&r.loc;if(i&&i.start<=i.end){var o=i.lexer.input;n=i.start;var s=i.end;n===o.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var l=o.slice(n,s).replace(/[^]/g,"$&\u0332");a+=(n>15?"\u2026"+o.slice(n-15,n):o.slice(0,n))+l+(s+15<o.length?o.slice(s,s+15)+"\u2026":o.slice(s))}var h=new Error(a);return h.name="ParseError",h.__proto__=e.prototype,h.position=n,h};r.prototype.__proto__=Error.prototype;var n=r,a=/([A-Z])/g,i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},o=/[&><"']/g,s=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},l={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(o,(function(e){return i[e]}))},hyphenate:function(e){return e.replace(a,"-$1").toLowerCase()},getBaseElem:s,isCharacterBox:function(e){var t=s(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},this.displayMode=l.deflt(e.displayMode,!1),this.output=l.deflt(e.output,"htmlAndMathml"),this.leqno=l.deflt(e.leqno,!1),this.fleqn=l.deflt(e.fleqn,!1),this.throwOnError=l.deflt(e.throwOnError,!0),this.errorColor=l.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,l.deflt(e.minRuleThickness,0)),this.colorIsTextColor=l.deflt(e.colorIsTextColor,!1),this.strict=l.deflt(e.strict,"warn"),this.trust=l.deflt(e.trust,!1),this.maxSize=Math.max(0,l.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,l.deflt(e.maxExpand,1e3)),this.globalGroup=l.deflt(e.globalGroup,!1)}var t=e.prototype;return t.reportNonstrict=function(e,t,r){var a=this.strict;if("function"===typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===a?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,r){var n=this.strict;if("function"===typeof n)try{n=n(e,t,r)}catch(a){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=l.protocolFromUrl(e.url));var t="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),m=function(){function e(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}var t=e.prototype;return t.sup=function(){return c[u[this.id]]},t.sub=function(){return c[p[this.id]]},t.fracNum=function(){return c[d[this.id]]},t.fracDen=function(){return c[f[this.id]]},t.cramp=function(){return c[g[this.id]]},t.text=function(){return c[v[this.id]]},t.isTight=function(){return this.size>=2},e}(),c=[new m(0,0,!1),new m(1,0,!0),new m(2,1,!1),new m(3,1,!0),new m(4,2,!1),new m(5,2,!0),new m(6,3,!1),new m(7,3,!0)],u=[4,5,4,5,6,7,6,7],p=[5,5,5,5,7,7,7,7],d=[2,3,4,5,6,7,6,7],f=[3,3,5,5,7,7,7,7],g=[1,1,3,3,5,5,7,7],v=[0,1,2,3,2,3,2,3],b={DISPLAY:c[0],TEXT:c[2],SCRIPT:c[4],SCRIPTSCRIPT:c[6]},y=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],x=[];function w(e){for(var t=0;t<x.length;t+=2)if(e>=x[t]&&e<=x[t+1])return!0;return!1}y.forEach((function(e){return e.blocks.forEach((function(e){return x.push.apply(x,e)}))}));var k=80,S={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},M=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){var e=function(e){return e.toText()};return this.children.map(e).join("")},e}(),z={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},A={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},T={"\xc5":"A","\xd0":"D","\xde":"o","\xe5":"a","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function B(e,t,r){if(!z[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=z[t][n];if(!a&&e[0]in T&&(n=T[e[0]].charCodeAt(0),a=z[t][n]),a||"text"!==r||w(n)&&(a=z[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var N={},q=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],C=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],I=function(e,t){return t.size<2?e:q[e-1][t.size-1]},R=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=C[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new e(r)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:I(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:C[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var r=I(e.BASESIZE,t);return this.size===r&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!N[t=e>=5?0:e>=3?1:2]){var r=N[t]={cssEmPerMu:A.quad[t]/18};for(var n in A)A.hasOwnProperty(n)&&(r[n]=A[n][t])}return N[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();R.BASESIZE=6;var O=R,E={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},H={ex:!0,em:!0,mu:!0},L=function(e){return"string"!==typeof e&&(e=e.unit),e in E||e in H||"ex"===e},D=function(e,t){var r;if(e.unit in E)r=E[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var a;if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else{if("em"!==e.unit)throw new n("Invalid unit: '"+e.unit+"'");r=a.fontMetrics().quad}a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},P=function(e){return+e.toFixed(4)+"em"},F=function(e){return e.filter((function(e){return e})).join(" ")},V=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},G=function(e){var t=document.createElement(e);for(var r in t.className=F(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},U=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+l.escape(F(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=l.hyphenate(n)+":"+this.style[n]+";");for(var a in r&&(t+=' style="'+l.escape(r)+'"'),this.attributes)this.attributes.hasOwnProperty(a)&&(t+=" "+a+'="'+l.escape(this.attributes[a])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"},Y=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,V.call(this,e,r,n),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return G.call(this,"span")},t.toMarkup=function(){return U.call(this,"span")},e}(),W=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,V.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return G.call(this,"a")},t.toMarkup=function(){return U.call(this,"a")},e}(),X=function(){function e(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=l.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+l.escape(t)+'"'),e+="'/>"},e}(),_={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"},j=function(){function e(e,t,r,n,a,i,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=a||0,this.width=i||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<y.length;t++)for(var r=y[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=_[this.text])}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=P(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=F(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=l.escape(F(this.classes)),t+='"');var r="";for(var n in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=l.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+l.escape(r)+'"');var a=l.escape(this.text);return e?(t+=">",t+=a,t+="</span>"):a},e}(),$=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e},t.toMarkup=function(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"},e}(),Z=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",S[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+S[this.pathName]+"'/>"},e}(),K=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"},e}();function J(e){if(e instanceof j)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var Q={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ee={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},te={math:{},text:{}},re=te;function ne(e,t,r,n,a,i){te[e][a]={font:t,group:r,replace:n},i&&n&&(te[e][n]=te[e][a])}var ae="math",ie="text",oe="main",se="ams",le="accent-token",he="bin",me="close",ce="inner",ue="mathord",pe="op-token",de="open",fe="punct",ge="rel",ve="spacing",be="textord";ne(ae,oe,ge,"\u2261","\\equiv",!0),ne(ae,oe,ge,"\u227a","\\prec",!0),ne(ae,oe,ge,"\u227b","\\succ",!0),ne(ae,oe,ge,"\u223c","\\sim",!0),ne(ae,oe,ge,"\u22a5","\\perp"),ne(ae,oe,ge,"\u2aaf","\\preceq",!0),ne(ae,oe,ge,"\u2ab0","\\succeq",!0),ne(ae,oe,ge,"\u2243","\\simeq",!0),ne(ae,oe,ge,"\u2223","\\mid",!0),ne(ae,oe,ge,"\u226a","\\ll",!0),ne(ae,oe,ge,"\u226b","\\gg",!0),ne(ae,oe,ge,"\u224d","\\asymp",!0),ne(ae,oe,ge,"\u2225","\\parallel"),ne(ae,oe,ge,"\u22c8","\\bowtie",!0),ne(ae,oe,ge,"\u2323","\\smile",!0),ne(ae,oe,ge,"\u2291","\\sqsubseteq",!0),ne(ae,oe,ge,"\u2292","\\sqsupseteq",!0),ne(ae,oe,ge,"\u2250","\\doteq",!0),ne(ae,oe,ge,"\u2322","\\frown",!0),ne(ae,oe,ge,"\u220b","\\ni",!0),ne(ae,oe,ge,"\u221d","\\propto",!0),ne(ae,oe,ge,"\u22a2","\\vdash",!0),ne(ae,oe,ge,"\u22a3","\\dashv",!0),ne(ae,oe,ge,"\u220b","\\owns"),ne(ae,oe,fe,".","\\ldotp"),ne(ae,oe,fe,"\u22c5","\\cdotp"),ne(ae,oe,be,"#","\\#"),ne(ie,oe,be,"#","\\#"),ne(ae,oe,be,"&","\\&"),ne(ie,oe,be,"&","\\&"),ne(ae,oe,be,"\u2135","\\aleph",!0),ne(ae,oe,be,"\u2200","\\forall",!0),ne(ae,oe,be,"\u210f","\\hbar",!0),ne(ae,oe,be,"\u2203","\\exists",!0),ne(ae,oe,be,"\u2207","\\nabla",!0),ne(ae,oe,be,"\u266d","\\flat",!0),ne(ae,oe,be,"\u2113","\\ell",!0),ne(ae,oe,be,"\u266e","\\natural",!0),ne(ae,oe,be,"\u2663","\\clubsuit",!0),ne(ae,oe,be,"\u2118","\\wp",!0),ne(ae,oe,be,"\u266f","\\sharp",!0),ne(ae,oe,be,"\u2662","\\diamondsuit",!0),ne(ae,oe,be,"\u211c","\\Re",!0),ne(ae,oe,be,"\u2661","\\heartsuit",!0),ne(ae,oe,be,"\u2111","\\Im",!0),ne(ae,oe,be,"\u2660","\\spadesuit",!0),ne(ae,oe,be,"\xa7","\\S",!0),ne(ie,oe,be,"\xa7","\\S"),ne(ae,oe,be,"\xb6","\\P",!0),ne(ie,oe,be,"\xb6","\\P"),ne(ae,oe,be,"\u2020","\\dag"),ne(ie,oe,be,"\u2020","\\dag"),ne(ie,oe,be,"\u2020","\\textdagger"),ne(ae,oe,be,"\u2021","\\ddag"),ne(ie,oe,be,"\u2021","\\ddag"),ne(ie,oe,be,"\u2021","\\textdaggerdbl"),ne(ae,oe,me,"\u23b1","\\rmoustache",!0),ne(ae,oe,de,"\u23b0","\\lmoustache",!0),ne(ae,oe,me,"\u27ef","\\rgroup",!0),ne(ae,oe,de,"\u27ee","\\lgroup",!0),ne(ae,oe,he,"\u2213","\\mp",!0),ne(ae,oe,he,"\u2296","\\ominus",!0),ne(ae,oe,he,"\u228e","\\uplus",!0),ne(ae,oe,he,"\u2293","\\sqcap",!0),ne(ae,oe,he,"\u2217","\\ast"),ne(ae,oe,he,"\u2294","\\sqcup",!0),ne(ae,oe,he,"\u25ef","\\bigcirc",!0),ne(ae,oe,he,"\u2219","\\bullet"),ne(ae,oe,he,"\u2021","\\ddagger"),ne(ae,oe,he,"\u2240","\\wr",!0),ne(ae,oe,he,"\u2a3f","\\amalg"),ne(ae,oe,he,"&","\\And"),ne(ae,oe,ge,"\u27f5","\\longleftarrow",!0),ne(ae,oe,ge,"\u21d0","\\Leftarrow",!0),ne(ae,oe,ge,"\u27f8","\\Longleftarrow",!0),ne(ae,oe,ge,"\u27f6","\\longrightarrow",!0),ne(ae,oe,ge,"\u21d2","\\Rightarrow",!0),ne(ae,oe,ge,"\u27f9","\\Longrightarrow",!0),ne(ae,oe,ge,"\u2194","\\leftrightarrow",!0),ne(ae,oe,ge,"\u27f7","\\longleftrightarrow",!0),ne(ae,oe,ge,"\u21d4","\\Leftrightarrow",!0),ne(ae,oe,ge,"\u27fa","\\Longleftrightarrow",!0),ne(ae,oe,ge,"\u21a6","\\mapsto",!0),ne(ae,oe,ge,"\u27fc","\\longmapsto",!0),ne(ae,oe,ge,"\u2197","\\nearrow",!0),ne(ae,oe,ge,"\u21a9","\\hookleftarrow",!0),ne(ae,oe,ge,"\u21aa","\\hookrightarrow",!0),ne(ae,oe,ge,"\u2198","\\searrow",!0),ne(ae,oe,ge,"\u21bc","\\leftharpoonup",!0),ne(ae,oe,ge,"\u21c0","\\rightharpoonup",!0),ne(ae,oe,ge,"\u2199","\\swarrow",!0),ne(ae,oe,ge,"\u21bd","\\leftharpoondown",!0),ne(ae,oe,ge,"\u21c1","\\rightharpoondown",!0),ne(ae,oe,ge,"\u2196","\\nwarrow",!0),ne(ae,oe,ge,"\u21cc","\\rightleftharpoons",!0),ne(ae,se,ge,"\u226e","\\nless",!0),ne(ae,se,ge,"\ue010","\\@nleqslant"),ne(ae,se,ge,"\ue011","\\@nleqq"),ne(ae,se,ge,"\u2a87","\\lneq",!0),ne(ae,se,ge,"\u2268","\\lneqq",!0),ne(ae,se,ge,"\ue00c","\\@lvertneqq"),ne(ae,se,ge,"\u22e6","\\lnsim",!0),ne(ae,se,ge,"\u2a89","\\lnapprox",!0),ne(ae,se,ge,"\u2280","\\nprec",!0),ne(ae,se,ge,"\u22e0","\\npreceq",!0),ne(ae,se,ge,"\u22e8","\\precnsim",!0),ne(ae,se,ge,"\u2ab9","\\precnapprox",!0),ne(ae,se,ge,"\u2241","\\nsim",!0),ne(ae,se,ge,"\ue006","\\@nshortmid"),ne(ae,se,ge,"\u2224","\\nmid",!0),ne(ae,se,ge,"\u22ac","\\nvdash",!0),ne(ae,se,ge,"\u22ad","\\nvDash",!0),ne(ae,se,ge,"\u22ea","\\ntriangleleft"),ne(ae,se,ge,"\u22ec","\\ntrianglelefteq",!0),ne(ae,se,ge,"\u228a","\\subsetneq",!0),ne(ae,se,ge,"\ue01a","\\@varsubsetneq"),ne(ae,se,ge,"\u2acb","\\subsetneqq",!0),ne(ae,se,ge,"\ue017","\\@varsubsetneqq"),ne(ae,se,ge,"\u226f","\\ngtr",!0),ne(ae,se,ge,"\ue00f","\\@ngeqslant"),ne(ae,se,ge,"\ue00e","\\@ngeqq"),ne(ae,se,ge,"\u2a88","\\gneq",!0),ne(ae,se,ge,"\u2269","\\gneqq",!0),ne(ae,se,ge,"\ue00d","\\@gvertneqq"),ne(ae,se,ge,"\u22e7","\\gnsim",!0),ne(ae,se,ge,"\u2a8a","\\gnapprox",!0),ne(ae,se,ge,"\u2281","\\nsucc",!0),ne(ae,se,ge,"\u22e1","\\nsucceq",!0),ne(ae,se,ge,"\u22e9","\\succnsim",!0),ne(ae,se,ge,"\u2aba","\\succnapprox",!0),ne(ae,se,ge,"\u2246","\\ncong",!0),ne(ae,se,ge,"\ue007","\\@nshortparallel"),ne(ae,se,ge,"\u2226","\\nparallel",!0),ne(ae,se,ge,"\u22af","\\nVDash",!0),ne(ae,se,ge,"\u22eb","\\ntriangleright"),ne(ae,se,ge,"\u22ed","\\ntrianglerighteq",!0),ne(ae,se,ge,"\ue018","\\@nsupseteqq"),ne(ae,se,ge,"\u228b","\\supsetneq",!0),ne(ae,se,ge,"\ue01b","\\@varsupsetneq"),ne(ae,se,ge,"\u2acc","\\supsetneqq",!0),ne(ae,se,ge,"\ue019","\\@varsupsetneqq"),ne(ae,se,ge,"\u22ae","\\nVdash",!0),ne(ae,se,ge,"\u2ab5","\\precneqq",!0),ne(ae,se,ge,"\u2ab6","\\succneqq",!0),ne(ae,se,ge,"\ue016","\\@nsubseteqq"),ne(ae,se,he,"\u22b4","\\unlhd"),ne(ae,se,he,"\u22b5","\\unrhd"),ne(ae,se,ge,"\u219a","\\nleftarrow",!0),ne(ae,se,ge,"\u219b","\\nrightarrow",!0),ne(ae,se,ge,"\u21cd","\\nLeftarrow",!0),ne(ae,se,ge,"\u21cf","\\nRightarrow",!0),ne(ae,se,ge,"\u21ae","\\nleftrightarrow",!0),ne(ae,se,ge,"\u21ce","\\nLeftrightarrow",!0),ne(ae,se,ge,"\u25b3","\\vartriangle"),ne(ae,se,be,"\u210f","\\hslash"),ne(ae,se,be,"\u25bd","\\triangledown"),ne(ae,se,be,"\u25ca","\\lozenge"),ne(ae,se,be,"\u24c8","\\circledS"),ne(ae,se,be,"\xae","\\circledR"),ne(ie,se,be,"\xae","\\circledR"),ne(ae,se,be,"\u2221","\\measuredangle",!0),ne(ae,se,be,"\u2204","\\nexists"),ne(ae,se,be,"\u2127","\\mho"),ne(ae,se,be,"\u2132","\\Finv",!0),ne(ae,se,be,"\u2141","\\Game",!0),ne(ae,se,be,"\u2035","\\backprime"),ne(ae,se,be,"\u25b2","\\blacktriangle"),ne(ae,se,be,"\u25bc","\\blacktriangledown"),ne(ae,se,be,"\u25a0","\\blacksquare"),ne(ae,se,be,"\u29eb","\\blacklozenge"),ne(ae,se,be,"\u2605","\\bigstar"),ne(ae,se,be,"\u2222","\\sphericalangle",!0),ne(ae,se,be,"\u2201","\\complement",!0),ne(ae,se,be,"\xf0","\\eth",!0),ne(ie,oe,be,"\xf0","\xf0"),ne(ae,se,be,"\u2571","\\diagup"),ne(ae,se,be,"\u2572","\\diagdown"),ne(ae,se,be,"\u25a1","\\square"),ne(ae,se,be,"\u25a1","\\Box"),ne(ae,se,be,"\u25ca","\\Diamond"),ne(ae,se,be,"\xa5","\\yen",!0),ne(ie,se,be,"\xa5","\\yen",!0),ne(ae,se,be,"\u2713","\\checkmark",!0),ne(ie,se,be,"\u2713","\\checkmark"),ne(ae,se,be,"\u2136","\\beth",!0),ne(ae,se,be,"\u2138","\\daleth",!0),ne(ae,se,be,"\u2137","\\gimel",!0),ne(ae,se,be,"\u03dd","\\digamma",!0),ne(ae,se,be,"\u03f0","\\varkappa"),ne(ae,se,de,"\u250c","\\@ulcorner",!0),ne(ae,se,me,"\u2510","\\@urcorner",!0),ne(ae,se,de,"\u2514","\\@llcorner",!0),ne(ae,se,me,"\u2518","\\@lrcorner",!0),ne(ae,se,ge,"\u2266","\\leqq",!0),ne(ae,se,ge,"\u2a7d","\\leqslant",!0),ne(ae,se,ge,"\u2a95","\\eqslantless",!0),ne(ae,se,ge,"\u2272","\\lesssim",!0),ne(ae,se,ge,"\u2a85","\\lessapprox",!0),ne(ae,se,ge,"\u224a","\\approxeq",!0),ne(ae,se,he,"\u22d6","\\lessdot"),ne(ae,se,ge,"\u22d8","\\lll",!0),ne(ae,se,ge,"\u2276","\\lessgtr",!0),ne(ae,se,ge,"\u22da","\\lesseqgtr",!0),ne(ae,se,ge,"\u2a8b","\\lesseqqgtr",!0),ne(ae,se,ge,"\u2251","\\doteqdot"),ne(ae,se,ge,"\u2253","\\risingdotseq",!0),ne(ae,se,ge,"\u2252","\\fallingdotseq",!0),ne(ae,se,ge,"\u223d","\\backsim",!0),ne(ae,se,ge,"\u22cd","\\backsimeq",!0),ne(ae,se,ge,"\u2ac5","\\subseteqq",!0),ne(ae,se,ge,"\u22d0","\\Subset",!0),ne(ae,se,ge,"\u228f","\\sqsubset",!0),ne(ae,se,ge,"\u227c","\\preccurlyeq",!0),ne(ae,se,ge,"\u22de","\\curlyeqprec",!0),ne(ae,se,ge,"\u227e","\\precsim",!0),ne(ae,se,ge,"\u2ab7","\\precapprox",!0),ne(ae,se,ge,"\u22b2","\\vartriangleleft"),ne(ae,se,ge,"\u22b4","\\trianglelefteq"),ne(ae,se,ge,"\u22a8","\\vDash",!0),ne(ae,se,ge,"\u22aa","\\Vvdash",!0),ne(ae,se,ge,"\u2323","\\smallsmile"),ne(ae,se,ge,"\u2322","\\smallfrown"),ne(ae,se,ge,"\u224f","\\bumpeq",!0),ne(ae,se,ge,"\u224e","\\Bumpeq",!0),ne(ae,se,ge,"\u2267","\\geqq",!0),ne(ae,se,ge,"\u2a7e","\\geqslant",!0),ne(ae,se,ge,"\u2a96","\\eqslantgtr",!0),ne(ae,se,ge,"\u2273","\\gtrsim",!0),ne(ae,se,ge,"\u2a86","\\gtrapprox",!0),ne(ae,se,he,"\u22d7","\\gtrdot"),ne(ae,se,ge,"\u22d9","\\ggg",!0),ne(ae,se,ge,"\u2277","\\gtrless",!0),ne(ae,se,ge,"\u22db","\\gtreqless",!0),ne(ae,se,ge,"\u2a8c","\\gtreqqless",!0),ne(ae,se,ge,"\u2256","\\eqcirc",!0),ne(ae,se,ge,"\u2257","\\circeq",!0),ne(ae,se,ge,"\u225c","\\triangleq",!0),ne(ae,se,ge,"\u223c","\\thicksim"),ne(ae,se,ge,"\u2248","\\thickapprox"),ne(ae,se,ge,"\u2ac6","\\supseteqq",!0),ne(ae,se,ge,"\u22d1","\\Supset",!0),ne(ae,se,ge,"\u2290","\\sqsupset",!0),ne(ae,se,ge,"\u227d","\\succcurlyeq",!0),ne(ae,se,ge,"\u22df","\\curlyeqsucc",!0),ne(ae,se,ge,"\u227f","\\succsim",!0),ne(ae,se,ge,"\u2ab8","\\succapprox",!0),ne(ae,se,ge,"\u22b3","\\vartriangleright"),ne(ae,se,ge,"\u22b5","\\trianglerighteq"),ne(ae,se,ge,"\u22a9","\\Vdash",!0),ne(ae,se,ge,"\u2223","\\shortmid"),ne(ae,se,ge,"\u2225","\\shortparallel"),ne(ae,se,ge,"\u226c","\\between",!0),ne(ae,se,ge,"\u22d4","\\pitchfork",!0),ne(ae,se,ge,"\u221d","\\varpropto"),ne(ae,se,ge,"\u25c0","\\blacktriangleleft"),ne(ae,se,ge,"\u2234","\\therefore",!0),ne(ae,se,ge,"\u220d","\\backepsilon"),ne(ae,se,ge,"\u25b6","\\blacktriangleright"),ne(ae,se,ge,"\u2235","\\because",!0),ne(ae,se,ge,"\u22d8","\\llless"),ne(ae,se,ge,"\u22d9","\\gggtr"),ne(ae,se,he,"\u22b2","\\lhd"),ne(ae,se,he,"\u22b3","\\rhd"),ne(ae,se,ge,"\u2242","\\eqsim",!0),ne(ae,oe,ge,"\u22c8","\\Join"),ne(ae,se,ge,"\u2251","\\Doteq",!0),ne(ae,se,he,"\u2214","\\dotplus",!0),ne(ae,se,he,"\u2216","\\smallsetminus"),ne(ae,se,he,"\u22d2","\\Cap",!0),ne(ae,se,he,"\u22d3","\\Cup",!0),ne(ae,se,he,"\u2a5e","\\doublebarwedge",!0),ne(ae,se,he,"\u229f","\\boxminus",!0),ne(ae,se,he,"\u229e","\\boxplus",!0),ne(ae,se,he,"\u22c7","\\divideontimes",!0),ne(ae,se,he,"\u22c9","\\ltimes",!0),ne(ae,se,he,"\u22ca","\\rtimes",!0),ne(ae,se,he,"\u22cb","\\leftthreetimes",!0),ne(ae,se,he,"\u22cc","\\rightthreetimes",!0),ne(ae,se,he,"\u22cf","\\curlywedge",!0),ne(ae,se,he,"\u22ce","\\curlyvee",!0),ne(ae,se,he,"\u229d","\\circleddash",!0),ne(ae,se,he,"\u229b","\\circledast",!0),ne(ae,se,he,"\u22c5","\\centerdot"),ne(ae,se,he,"\u22ba","\\intercal",!0),ne(ae,se,he,"\u22d2","\\doublecap"),ne(ae,se,he,"\u22d3","\\doublecup"),ne(ae,se,he,"\u22a0","\\boxtimes",!0),ne(ae,se,ge,"\u21e2","\\dashrightarrow",!0),ne(ae,se,ge,"\u21e0","\\dashleftarrow",!0),ne(ae,se,ge,"\u21c7","\\leftleftarrows",!0),ne(ae,se,ge,"\u21c6","\\leftrightarrows",!0),ne(ae,se,ge,"\u21da","\\Lleftarrow",!0),ne(ae,se,ge,"\u219e","\\twoheadleftarrow",!0),ne(ae,se,ge,"\u21a2","\\leftarrowtail",!0),ne(ae,se,ge,"\u21ab","\\looparrowleft",!0),ne(ae,se,ge,"\u21cb","\\leftrightharpoons",!0),ne(ae,se,ge,"\u21b6","\\curvearrowleft",!0),ne(ae,se,ge,"\u21ba","\\circlearrowleft",!0),ne(ae,se,ge,"\u21b0","\\Lsh",!0),ne(ae,se,ge,"\u21c8","\\upuparrows",!0),ne(ae,se,ge,"\u21bf","\\upharpoonleft",!0),ne(ae,se,ge,"\u21c3","\\downharpoonleft",!0),ne(ae,oe,ge,"\u22b6","\\origof",!0),ne(ae,oe,ge,"\u22b7","\\imageof",!0),ne(ae,se,ge,"\u22b8","\\multimap",!0),ne(ae,se,ge,"\u21ad","\\leftrightsquigarrow",!0),ne(ae,se,ge,"\u21c9","\\rightrightarrows",!0),ne(ae,se,ge,"\u21c4","\\rightleftarrows",!0),ne(ae,se,ge,"\u21a0","\\twoheadrightarrow",!0),ne(ae,se,ge,"\u21a3","\\rightarrowtail",!0),ne(ae,se,ge,"\u21ac","\\looparrowright",!0),ne(ae,se,ge,"\u21b7","\\curvearrowright",!0),ne(ae,se,ge,"\u21bb","\\circlearrowright",!0),ne(ae,se,ge,"\u21b1","\\Rsh",!0),ne(ae,se,ge,"\u21ca","\\downdownarrows",!0),ne(ae,se,ge,"\u21be","\\upharpoonright",!0),ne(ae,se,ge,"\u21c2","\\downharpoonright",!0),ne(ae,se,ge,"\u21dd","\\rightsquigarrow",!0),ne(ae,se,ge,"\u21dd","\\leadsto"),ne(ae,se,ge,"\u21db","\\Rrightarrow",!0),ne(ae,se,ge,"\u21be","\\restriction"),ne(ae,oe,be,"\u2018","`"),ne(ae,oe,be,"$","\\$"),ne(ie,oe,be,"$","\\$"),ne(ie,oe,be,"$","\\textdollar"),ne(ae,oe,be,"%","\\%"),ne(ie,oe,be,"%","\\%"),ne(ae,oe,be,"_","\\_"),ne(ie,oe,be,"_","\\_"),ne(ie,oe,be,"_","\\textunderscore"),ne(ae,oe,be,"\u2220","\\angle",!0),ne(ae,oe,be,"\u221e","\\infty",!0),ne(ae,oe,be,"\u2032","\\prime"),ne(ae,oe,be,"\u25b3","\\triangle"),ne(ae,oe,be,"\u0393","\\Gamma",!0),ne(ae,oe,be,"\u0394","\\Delta",!0),ne(ae,oe,be,"\u0398","\\Theta",!0),ne(ae,oe,be,"\u039b","\\Lambda",!0),ne(ae,oe,be,"\u039e","\\Xi",!0),ne(ae,oe,be,"\u03a0","\\Pi",!0),ne(ae,oe,be,"\u03a3","\\Sigma",!0),ne(ae,oe,be,"\u03a5","\\Upsilon",!0),ne(ae,oe,be,"\u03a6","\\Phi",!0),ne(ae,oe,be,"\u03a8","\\Psi",!0),ne(ae,oe,be,"\u03a9","\\Omega",!0),ne(ae,oe,be,"A","\u0391"),ne(ae,oe,be,"B","\u0392"),ne(ae,oe,be,"E","\u0395"),ne(ae,oe,be,"Z","\u0396"),ne(ae,oe,be,"H","\u0397"),ne(ae,oe,be,"I","\u0399"),ne(ae,oe,be,"K","\u039a"),ne(ae,oe,be,"M","\u039c"),ne(ae,oe,be,"N","\u039d"),ne(ae,oe,be,"O","\u039f"),ne(ae,oe,be,"P","\u03a1"),ne(ae,oe,be,"T","\u03a4"),ne(ae,oe,be,"X","\u03a7"),ne(ae,oe,be,"\xac","\\neg",!0),ne(ae,oe,be,"\xac","\\lnot"),ne(ae,oe,be,"\u22a4","\\top"),ne(ae,oe,be,"\u22a5","\\bot"),ne(ae,oe,be,"\u2205","\\emptyset"),ne(ae,se,be,"\u2205","\\varnothing"),ne(ae,oe,ue,"\u03b1","\\alpha",!0),ne(ae,oe,ue,"\u03b2","\\beta",!0),ne(ae,oe,ue,"\u03b3","\\gamma",!0),ne(ae,oe,ue,"\u03b4","\\delta",!0),ne(ae,oe,ue,"\u03f5","\\epsilon",!0),ne(ae,oe,ue,"\u03b6","\\zeta",!0),ne(ae,oe,ue,"\u03b7","\\eta",!0),ne(ae,oe,ue,"\u03b8","\\theta",!0),ne(ae,oe,ue,"\u03b9","\\iota",!0),ne(ae,oe,ue,"\u03ba","\\kappa",!0),ne(ae,oe,ue,"\u03bb","\\lambda",!0),ne(ae,oe,ue,"\u03bc","\\mu",!0),ne(ae,oe,ue,"\u03bd","\\nu",!0),ne(ae,oe,ue,"\u03be","\\xi",!0),ne(ae,oe,ue,"\u03bf","\\omicron",!0),ne(ae,oe,ue,"\u03c0","\\pi",!0),ne(ae,oe,ue,"\u03c1","\\rho",!0),ne(ae,oe,ue,"\u03c3","\\sigma",!0),ne(ae,oe,ue,"\u03c4","\\tau",!0),ne(ae,oe,ue,"\u03c5","\\upsilon",!0),ne(ae,oe,ue,"\u03d5","\\phi",!0),ne(ae,oe,ue,"\u03c7","\\chi",!0),ne(ae,oe,ue,"\u03c8","\\psi",!0),ne(ae,oe,ue,"\u03c9","\\omega",!0),ne(ae,oe,ue,"\u03b5","\\varepsilon",!0),ne(ae,oe,ue,"\u03d1","\\vartheta",!0),ne(ae,oe,ue,"\u03d6","\\varpi",!0),ne(ae,oe,ue,"\u03f1","\\varrho",!0),ne(ae,oe,ue,"\u03c2","\\varsigma",!0),ne(ae,oe,ue,"\u03c6","\\varphi",!0),ne(ae,oe,he,"\u2217","*",!0),ne(ae,oe,he,"+","+"),ne(ae,oe,he,"\u2212","-",!0),ne(ae,oe,he,"\u22c5","\\cdot",!0),ne(ae,oe,he,"\u2218","\\circ"),ne(ae,oe,he,"\xf7","\\div",!0),ne(ae,oe,he,"\xb1","\\pm",!0),ne(ae,oe,he,"\xd7","\\times",!0),ne(ae,oe,he,"\u2229","\\cap",!0),ne(ae,oe,he,"\u222a","\\cup",!0),ne(ae,oe,he,"\u2216","\\setminus"),ne(ae,oe,he,"\u2227","\\land"),ne(ae,oe,he,"\u2228","\\lor"),ne(ae,oe,he,"\u2227","\\wedge",!0),ne(ae,oe,he,"\u2228","\\vee",!0),ne(ae,oe,be,"\u221a","\\surd"),ne(ae,oe,de,"\u27e8","\\langle",!0),ne(ae,oe,de,"\u2223","\\lvert"),ne(ae,oe,de,"\u2225","\\lVert"),ne(ae,oe,me,"?","?"),ne(ae,oe,me,"!","!"),ne(ae,oe,me,"\u27e9","\\rangle",!0),ne(ae,oe,me,"\u2223","\\rvert"),ne(ae,oe,me,"\u2225","\\rVert"),ne(ae,oe,ge,"=","="),ne(ae,oe,ge,":",":"),ne(ae,oe,ge,"\u2248","\\approx",!0),ne(ae,oe,ge,"\u2245","\\cong",!0),ne(ae,oe,ge,"\u2265","\\ge"),ne(ae,oe,ge,"\u2265","\\geq",!0),ne(ae,oe,ge,"\u2190","\\gets"),ne(ae,oe,ge,">","\\gt",!0),ne(ae,oe,ge,"\u2208","\\in",!0),ne(ae,oe,ge,"\ue020","\\@not"),ne(ae,oe,ge,"\u2282","\\subset",!0),ne(ae,oe,ge,"\u2283","\\supset",!0),ne(ae,oe,ge,"\u2286","\\subseteq",!0),ne(ae,oe,ge,"\u2287","\\supseteq",!0),ne(ae,se,ge,"\u2288","\\nsubseteq",!0),ne(ae,se,ge,"\u2289","\\nsupseteq",!0),ne(ae,oe,ge,"\u22a8","\\models"),ne(ae,oe,ge,"\u2190","\\leftarrow",!0),ne(ae,oe,ge,"\u2264","\\le"),ne(ae,oe,ge,"\u2264","\\leq",!0),ne(ae,oe,ge,"<","\\lt",!0),ne(ae,oe,ge,"\u2192","\\rightarrow",!0),ne(ae,oe,ge,"\u2192","\\to"),ne(ae,se,ge,"\u2271","\\ngeq",!0),ne(ae,se,ge,"\u2270","\\nleq",!0),ne(ae,oe,ve,"\xa0","\\ "),ne(ae,oe,ve,"\xa0","\\space"),ne(ae,oe,ve,"\xa0","\\nobreakspace"),ne(ie,oe,ve,"\xa0","\\ "),ne(ie,oe,ve,"\xa0"," "),ne(ie,oe,ve,"\xa0","\\space"),ne(ie,oe,ve,"\xa0","\\nobreakspace"),ne(ae,oe,ve,null,"\\nobreak"),ne(ae,oe,ve,null,"\\allowbreak"),ne(ae,oe,fe,",",","),ne(ae,oe,fe,";",";"),ne(ae,se,he,"\u22bc","\\barwedge",!0),ne(ae,se,he,"\u22bb","\\veebar",!0),ne(ae,oe,he,"\u2299","\\odot",!0),ne(ae,oe,he,"\u2295","\\oplus",!0),ne(ae,oe,he,"\u2297","\\otimes",!0),ne(ae,oe,be,"\u2202","\\partial",!0),ne(ae,oe,he,"\u2298","\\oslash",!0),ne(ae,se,he,"\u229a","\\circledcirc",!0),ne(ae,se,he,"\u22a1","\\boxdot",!0),ne(ae,oe,he,"\u25b3","\\bigtriangleup"),ne(ae,oe,he,"\u25bd","\\bigtriangledown"),ne(ae,oe,he,"\u2020","\\dagger"),ne(ae,oe,he,"\u22c4","\\diamond"),ne(ae,oe,he,"\u22c6","\\star"),ne(ae,oe,he,"\u25c3","\\triangleleft"),ne(ae,oe,he,"\u25b9","\\triangleright"),ne(ae,oe,de,"{","\\{"),ne(ie,oe,be,"{","\\{"),ne(ie,oe,be,"{","\\textbraceleft"),ne(ae,oe,me,"}","\\}"),ne(ie,oe,be,"}","\\}"),ne(ie,oe,be,"}","\\textbraceright"),ne(ae,oe,de,"{","\\lbrace"),ne(ae,oe,me,"}","\\rbrace"),ne(ae,oe,de,"[","\\lbrack",!0),ne(ie,oe,be,"[","\\lbrack",!0),ne(ae,oe,me,"]","\\rbrack",!0),ne(ie,oe,be,"]","\\rbrack",!0),ne(ae,oe,de,"(","\\lparen",!0),ne(ae,oe,me,")","\\rparen",!0),ne(ie,oe,be,"<","\\textless",!0),ne(ie,oe,be,">","\\textgreater",!0),ne(ae,oe,de,"\u230a","\\lfloor",!0),ne(ae,oe,me,"\u230b","\\rfloor",!0),ne(ae,oe,de,"\u2308","\\lceil",!0),ne(ae,oe,me,"\u2309","\\rceil",!0),ne(ae,oe,be,"\\","\\backslash"),ne(ae,oe,be,"\u2223","|"),ne(ae,oe,be,"\u2223","\\vert"),ne(ie,oe,be,"|","\\textbar",!0),ne(ae,oe,be,"\u2225","\\|"),ne(ae,oe,be,"\u2225","\\Vert"),ne(ie,oe,be,"\u2225","\\textbardbl"),ne(ie,oe,be,"~","\\textasciitilde"),ne(ie,oe,be,"\\","\\textbackslash"),ne(ie,oe,be,"^","\\textasciicircum"),ne(ae,oe,ge,"\u2191","\\uparrow",!0),ne(ae,oe,ge,"\u21d1","\\Uparrow",!0),ne(ae,oe,ge,"\u2193","\\downarrow",!0),ne(ae,oe,ge,"\u21d3","\\Downarrow",!0),ne(ae,oe,ge,"\u2195","\\updownarrow",!0),ne(ae,oe,ge,"\u21d5","\\Updownarrow",!0),ne(ae,oe,pe,"\u2210","\\coprod"),ne(ae,oe,pe,"\u22c1","\\bigvee"),ne(ae,oe,pe,"\u22c0","\\bigwedge"),ne(ae,oe,pe,"\u2a04","\\biguplus"),ne(ae,oe,pe,"\u22c2","\\bigcap"),ne(ae,oe,pe,"\u22c3","\\bigcup"),ne(ae,oe,pe,"\u222b","\\int"),ne(ae,oe,pe,"\u222b","\\intop"),ne(ae,oe,pe,"\u222c","\\iint"),ne(ae,oe,pe,"\u222d","\\iiint"),ne(ae,oe,pe,"\u220f","\\prod"),ne(ae,oe,pe,"\u2211","\\sum"),ne(ae,oe,pe,"\u2a02","\\bigotimes"),ne(ae,oe,pe,"\u2a01","\\bigoplus"),ne(ae,oe,pe,"\u2a00","\\bigodot"),ne(ae,oe,pe,"\u222e","\\oint"),ne(ae,oe,pe,"\u222f","\\oiint"),ne(ae,oe,pe,"\u2230","\\oiiint"),ne(ae,oe,pe,"\u2a06","\\bigsqcup"),ne(ae,oe,pe,"\u222b","\\smallint"),ne(ie,oe,ce,"\u2026","\\textellipsis"),ne(ae,oe,ce,"\u2026","\\mathellipsis"),ne(ie,oe,ce,"\u2026","\\ldots",!0),ne(ae,oe,ce,"\u2026","\\ldots",!0),ne(ae,oe,ce,"\u22ef","\\@cdots",!0),ne(ae,oe,ce,"\u22f1","\\ddots",!0),ne(ae,oe,be,"\u22ee","\\varvdots"),ne(ae,oe,le,"\u02ca","\\acute"),ne(ae,oe,le,"\u02cb","\\grave"),ne(ae,oe,le,"\xa8","\\ddot"),ne(ae,oe,le,"~","\\tilde"),ne(ae,oe,le,"\u02c9","\\bar"),ne(ae,oe,le,"\u02d8","\\breve"),ne(ae,oe,le,"\u02c7","\\check"),ne(ae,oe,le,"^","\\hat"),ne(ae,oe,le,"\u20d7","\\vec"),ne(ae,oe,le,"\u02d9","\\dot"),ne(ae,oe,le,"\u02da","\\mathring"),ne(ae,oe,ue,"\ue131","\\@imath"),ne(ae,oe,ue,"\ue237","\\@jmath"),ne(ae,oe,be,"\u0131","\u0131"),ne(ae,oe,be,"\u0237","\u0237"),ne(ie,oe,be,"\u0131","\\i",!0),ne(ie,oe,be,"\u0237","\\j",!0),ne(ie,oe,be,"\xdf","\\ss",!0),ne(ie,oe,be,"\xe6","\\ae",!0),ne(ie,oe,be,"\u0153","\\oe",!0),ne(ie,oe,be,"\xf8","\\o",!0),ne(ie,oe,be,"\xc6","\\AE",!0),ne(ie,oe,be,"\u0152","\\OE",!0),ne(ie,oe,be,"\xd8","\\O",!0),ne(ie,oe,le,"\u02ca","\\'"),ne(ie,oe,le,"\u02cb","\\`"),ne(ie,oe,le,"\u02c6","\\^"),ne(ie,oe,le,"\u02dc","\\~"),ne(ie,oe,le,"\u02c9","\\="),ne(ie,oe,le,"\u02d8","\\u"),ne(ie,oe,le,"\u02d9","\\."),ne(ie,oe,le,"\xb8","\\c"),ne(ie,oe,le,"\u02da","\\r"),ne(ie,oe,le,"\u02c7","\\v"),ne(ie,oe,le,"\xa8",'\\"'),ne(ie,oe,le,"\u02dd","\\H"),ne(ie,oe,le,"\u25ef","\\textcircled");var ye={"--":!0,"---":!0,"``":!0,"''":!0};ne(ie,oe,be,"\u2013","--",!0),ne(ie,oe,be,"\u2013","\\textendash"),ne(ie,oe,be,"\u2014","---",!0),ne(ie,oe,be,"\u2014","\\textemdash"),ne(ie,oe,be,"\u2018","`",!0),ne(ie,oe,be,"\u2018","\\textquoteleft"),ne(ie,oe,be,"\u2019","'",!0),ne(ie,oe,be,"\u2019","\\textquoteright"),ne(ie,oe,be,"\u201c","``",!0),ne(ie,oe,be,"\u201c","\\textquotedblleft"),ne(ie,oe,be,"\u201d","''",!0),ne(ie,oe,be,"\u201d","\\textquotedblright"),ne(ae,oe,be,"\xb0","\\degree",!0),ne(ie,oe,be,"\xb0","\\degree"),ne(ie,oe,be,"\xb0","\\textdegree",!0),ne(ae,oe,be,"\xa3","\\pounds"),ne(ae,oe,be,"\xa3","\\mathsterling",!0),ne(ie,oe,be,"\xa3","\\pounds"),ne(ie,oe,be,"\xa3","\\textsterling",!0),ne(ae,se,be,"\u2720","\\maltese"),ne(ie,se,be,"\u2720","\\maltese");for(var xe='0123456789/@."',we=0;we<xe.length;we++){var ke=xe.charAt(we);ne(ae,oe,be,ke,ke)}for(var Se='0123456789!@*()-=+";:?/.,',Me=0;Me<Se.length;Me++){var ze=Se.charAt(Me);ne(ie,oe,be,ze,ze)}for(var Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Te=0;Te<Ae.length;Te++){var Be=Ae.charAt(Te);ne(ae,oe,ue,Be,Be),ne(ie,oe,be,Be,Be)}ne(ae,se,be,"C","\u2102"),ne(ie,se,be,"C","\u2102"),ne(ae,se,be,"H","\u210d"),ne(ie,se,be,"H","\u210d"),ne(ae,se,be,"N","\u2115"),ne(ie,se,be,"N","\u2115"),ne(ae,se,be,"P","\u2119"),ne(ie,se,be,"P","\u2119"),ne(ae,se,be,"Q","\u211a"),ne(ie,se,be,"Q","\u211a"),ne(ae,se,be,"R","\u211d"),ne(ie,se,be,"R","\u211d"),ne(ae,se,be,"Z","\u2124"),ne(ie,se,be,"Z","\u2124"),ne(ae,oe,ue,"h","\u210e"),ne(ie,oe,ue,"h","\u210e");for(var Ne="",qe=0;qe<Ae.length;qe++){var Ce=Ae.charAt(qe);ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56320+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56372+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56424+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56580+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56736+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56788+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56840+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56944+qe)),ne(ie,oe,be,Ce,Ne),qe<26&&(ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56632+qe)),ne(ie,oe,be,Ce,Ne),ne(ae,oe,ue,Ce,Ne=String.fromCharCode(55349,56476+qe)),ne(ie,oe,be,Ce,Ne))}ne(ae,oe,ue,"k",Ne=String.fromCharCode(55349,56668)),ne(ie,oe,be,"k",Ne);for(var Ie=0;Ie<10;Ie++){var Re=Ie.toString();ne(ae,oe,ue,Re,Ne=String.fromCharCode(55349,57294+Ie)),ne(ie,oe,be,Re,Ne),ne(ae,oe,ue,Re,Ne=String.fromCharCode(55349,57314+Ie)),ne(ie,oe,be,Re,Ne),ne(ae,oe,ue,Re,Ne=String.fromCharCode(55349,57324+Ie)),ne(ie,oe,be,Re,Ne),ne(ae,oe,ue,Re,Ne=String.fromCharCode(55349,57334+Ie)),ne(ie,oe,be,Re,Ne)}for(var Oe="\xd0\xde\xfe",Ee=0;Ee<Oe.length;Ee++){var He=Oe.charAt(Ee);ne(ae,oe,ue,He,He),ne(ie,oe,be,He,He)}var Le=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],De=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Pe=function(e,t,r){return re[r][e]&&re[r][e].replace&&(e=re[r][e].replace),{value:e,metrics:B(e,t,r)}},Fe=function(e,t,r,n,a){var i,o=Pe(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),i=new j(e,s.height,s.depth,l,s.skew,s.width,a)}else"undefined"!==typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new j(e,0,0,0,0,0,a);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var h=n.getColor();h&&(i.style.color=h)}return i},Ve=function(e,t){if(F(e.classes)!==F(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},Ge=function(e){for(var t=0,r=0,n=0,a=0;a<e.children.length;a++){var i=e.children[a];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Ue=function(e,t,r,n){var a=new Y(e,t,r,n);return Ge(a),a},Ye=function(e,t,r,n){return new Y(e,t,r,n)},We=function(e){var t=new M(e);return Ge(t),t},Xe=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},_e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},je={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},$e={fontMap:_e,makeSymbol:Fe,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&Pe(e,"Main-Bold",t).metrics?Fe(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===re[t][e].font?Fe(e,"Main-Regular",t,r,n):Fe(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:Ue,makeSvgSpan:Ye,makeLineSpan:function(e,t,r){var n=Ue([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=P(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var a=new W(e,t,r,n);return Ge(a),a},makeFragment:We,wrapFragment:function(e,t){return e instanceof M?Ue([],[e],t):e},makeVList:function(e,t){for(var r=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,a=n,i=1;i<t.length;i++){var o=-t[i].shift-a-t[i].elem.depth,s=o-(t[i-1].elem.height+t[i-1].elem.depth);a+=o,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:n}}var l;if("top"===e.positionType){for(var h=e.positionData,m=0;m<e.children.length;m++){var c=e.children[m];h-="kern"===c.type?c.size:c.elem.height+c.elem.depth}l=h}else if("bottom"===e.positionType)l=-e.positionData;else{var u=e.children[0];if("elem"!==u.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-u.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-u.elem.depth}}return{children:e.children,depth:l}}(e),n=r.children,a=r.depth,i=0,o=0;o<n.length;o++){var s=n[o];if("elem"===s.type){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var h=Ue(["pstrut"],[]);h.style.height=P(i);for(var m=[],c=a,u=a,p=a,d=0;d<n.length;d++){var f=n[d];if("kern"===f.type)p+=f.size;else{var g=f.elem,v=f.wrapperClasses||[],b=f.wrapperStyle||{},y=Ue(v,[h,g],void 0,b);y.style.top=P(-i-p-g.depth),f.marginLeft&&(y.style.marginLeft=f.marginLeft),f.marginRight&&(y.style.marginRight=f.marginRight),m.push(y),p+=g.height+g.depth}c=Math.min(c,p),u=Math.max(u,p)}var x,w=Ue(["vlist"],m);if(w.style.height=P(u),c<0){var k=Ue([],[]),S=Ue(["vlist"],[k]);S.style.height=P(-c);var M=Ue(["vlist-s"],[new j("\u200b")]);x=[Ue(["vlist-r"],[w,M]),Ue(["vlist-r"],[S])]}else x=[Ue(["vlist-r"],[w])];var z=Ue(["vlist-t"],x);return 2===x.length&&z.classes.push("vlist-t2"),z.height=u,z.depth=-c,z},makeOrd:function(e,t,r){var a=e.mode,i=e.text,o=["mord"],s="math"===a||"text"===a&&t.font,l=s?t.font:t.fontFamily;if(55349===i.charCodeAt(0)){var h=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,a="math"===t?0:1;if(119808<=r&&r<120484){var i=Math.floor((r-119808)/26);return[Le[i][2],Le[i][a]]}if(120782<=r&&r<=120831){var o=Math.floor((r-120782)/10);return[De[o][2],De[o][a]]}if(120485===r||120486===r)return[Le[0][2],Le[0][a]];if(120486<r&&r<120782)return["",""];throw new n("Unsupported character: "+e)}(i,a),m=h[0],c=h[1];return Fe(i,m,a,t,o.concat(c))}if(l){var u,p;if("boldsymbol"===l){var d=function(e,t,r,n,a){return"textord"!==a&&Pe(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,a,0,0,r);u=d.fontName,p=[d.fontClass]}else s?(u=_e[l].fontName,p=[l]):(u=Xe(l,t.fontWeight,t.fontShape),p=[l,t.fontWeight,t.fontShape]);if(Pe(i,u,a).metrics)return Fe(i,u,a,t,o.concat(p));if(ye.hasOwnProperty(i)&&"Typewriter"===u.substr(0,10)){for(var f=[],g=0;g<i.length;g++)f.push(Fe(i[g],u,a,t,o.concat(p)));return We(f)}}if("mathord"===r)return Fe(i,"Math-Italic",a,t,o.concat(["mathnormal"]));if("textord"===r){var v=re[a][i]&&re[a][i].font;if("ams"===v){var b=Xe("amsrm",t.fontWeight,t.fontShape);return Fe(i,b,a,t,o.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==v&&v){var y=Xe(v,t.fontWeight,t.fontShape);return Fe(i,y,a,t,o.concat(y,t.fontWeight,t.fontShape))}var x=Xe("textrm",t.fontWeight,t.fontShape);return Fe(i,x,a,t,o.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:function(e,t){var r=Ue(["mspace"],[],t),n=D(e,t);return r.style.marginRight=P(n),r},staticSvg:function(e,t){var r=je[e],n=r[0],a=r[1],i=r[2],o=new Z(n),s=new $([o],{width:P(a),height:P(i),style:"width:"+P(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Ye(["overlay"],[s],t);return l.height=i,l.style.height=P(i),l.style.width=P(a),l},svgData:je,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof j&&n instanceof j&&Ve(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e}},Ze={number:3,unit:"mu"},Ke={number:4,unit:"mu"},Je={number:5,unit:"mu"},Qe={mord:{mop:Ze,mbin:Ke,mrel:Je,minner:Ze},mop:{mord:Ze,mop:Ze,mrel:Je,minner:Ze},mbin:{mord:Ke,mop:Ke,mopen:Ke,minner:Ke},mrel:{mord:Je,mop:Je,mopen:Je,minner:Je},mopen:{},mclose:{mop:Ze,mbin:Ke,mrel:Je,minner:Ze},mpunct:{mord:Ze,mop:Ze,mrel:Je,mopen:Ze,mclose:Ze,mpunct:Ze,minner:Ze},minner:{mord:Ze,mop:Ze,mbin:Ke,mrel:Je,mopen:Ze,mpunct:Ze,minner:Ze}},et={mord:{mop:Ze},mop:{mord:Ze,mop:Ze},mbin:{},mrel:{},mopen:{},mclose:{mop:Ze},mpunct:{},minner:{mop:Ze}},tt={},rt={},nt={};function at(e){for(var t=e.type,r=e.names,n=e.props,a=e.handler,i=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)tt[r[l]]=s;t&&(i&&(rt[t]=i),o&&(nt[t]=o))}function it(e){at({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var ot=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},st=function(e){return"ordgroup"===e.type?e.body:[e]},lt=$e.makeSpan,ht=["leftmost","mbin","mopen","mrel","mop","mpunct"],mt=["rightmost","mrel","mclose","mpunct"],ct={display:b.DISPLAY,text:b.TEXT,script:b.SCRIPT,scriptscript:b.SCRIPTSCRIPT},ut={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},pt=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var a=[],i=0;i<e.length;i++){var o=yt(e[i],t);if(o instanceof M){var s=o.children;a.push.apply(a,s)}else a.push(o)}if($e.tryCombineChars(a),!r)return a;var h=t;if(1===e.length){var m=e[0];"sizing"===m.type?h=t.havingSize(m.size):"styling"===m.type&&(h=t.havingStyle(ct[m.style]))}var c=lt([n[0]||"leftmost"],[],t),u=lt([n[1]||"rightmost"],[],t),p="root"===r;return dt(a,(function(e,t){var r=t.classes[0],n=e.classes[0];"mbin"===r&&l.contains(mt,n)?t.classes[0]="mord":"mbin"===n&&l.contains(ht,r)&&(e.classes[0]="mord")}),{node:c},u,p),dt(a,(function(e,t){var r=vt(t),n=vt(e),a=r&&n?e.hasClass("mtight")?et[r][n]:Qe[r][n]:null;if(a)return $e.makeGlue(a,h)}),{node:c},u,p),a},dt=function e(t,r,n,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var s=t[o],l=ft(s);if(l)e(l.children,r,n,null,i);else{var h=!s.hasClass("mspace");if(h){var m=r(s,n.node);m&&(n.insertAfter?n.insertAfter(m):(t.unshift(m),o++))}h?n.node=s:i&&s.hasClass("newline")&&(n.node=lt(["leftmost"])),n.insertAfter=function(e){return function(r){t.splice(e+1,0,r),o++}}(o)}}a&&t.pop()},ft=function(e){return e instanceof M||e instanceof W||e instanceof Y&&e.hasClass("enclosing")?e:null},gt=function e(t,r){var n=ft(t);if(n){var a=n.children;if(a.length){if("right"===r)return e(a[a.length-1],"right");if("left"===r)return e(a[0],"left")}}return t},vt=function(e,t){return e?(t&&(e=gt(e,t)),ut[e.classes[0]]||null):null},bt=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return lt(t.concat(r))},yt=function(e,t,r){if(!e)return lt();if(rt[e.type]){var a=rt[e.type](e,t);if(r&&t.size!==r.size){a=lt(t.sizingClasses(r),[a],t);var i=t.sizeMultiplier/r.sizeMultiplier;a.height*=i,a.depth*=i}return a}throw new n("Got group of unknown type: '"+e.type+"'")};function xt(e,t){var r=lt(["base"],e,t),n=lt(["strut"]);return n.style.height=P(r.height+r.depth),r.depth&&(n.style.verticalAlign=P(-r.depth)),r.children.unshift(n),r}function wt(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,a=pt(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(n=a.pop());for(var i,o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var h=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(h=!0);h||(o.push(xt(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(xt(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(xt(s,t)),r?((i=xt(pt(r,t,!0))).classes=["tag"],o.push(i)):n&&o.push(n);var m=lt(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),i){var c=i.children[0];c.style.height=P(m.height+m.depth),m.depth&&(c.style.verticalAlign=P(-m.depth))}return m}function kt(e){return new M(e)}var St=function(){function e(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=F(this.classes));for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=l.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+l.escape(F(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),Mt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return l.escape(this.toText())},t.toText=function(){return this.text},e}(),zt={MathNode:St,TextNode:Mt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",P(this.width)),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+P(this.width)+'"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:kt},At=function(e,t,r){return!re[t][e]||!re[t][e].replace||55349===e.charCodeAt(0)||ye.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(e=re[t][e].replace),new zt.TextNode(e)},Tt=function(e){return 1===e.length?e[0]:new zt.MathNode("mrow",e)},Bt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var a=e.text;return l.contains(["\\imath","\\jmath"],a)?null:(re[n][a]&&re[n][a].replace&&(a=re[n][a].replace),B(a,$e.fontMap[r].fontName,n)?$e.fontMap[r].variant:null)},Nt=function(e,t,r){if(1===e.length){var n=Ct(e[0],t);return r&&n instanceof St&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a,i=[],o=0;o<e.length;o++){var s=Ct(e[o],t);if(s instanceof St&&a instanceof St){if("mtext"===s.type&&"mtext"===a.type&&s.getAttribute("mathvariant")===a.getAttribute("mathvariant")){var l;(l=a.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===a.type){var h;(h=a.children).push.apply(h,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===a.type){var m=s.children[0];if(m instanceof Mt&&"."===m.text){var c;(c=a.children).push.apply(c,s.children);continue}}else if("mi"===a.type&&1===a.children.length){var u=a.children[0];if(u instanceof Mt&&"\u0338"===u.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof Mt&&p.text.length>0&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),i.pop())}}}i.push(s),a=s}return i},qt=function(e,t,r){return Tt(Nt(e,t,r))},Ct=function(e,t){if(!e)return new zt.MathNode("mrow");if(nt[e.type])return nt[e.type](e,t);throw new n("Got group of unknown type: '"+e.type+"'")};function It(e,t,r,n,a){var i,o=Nt(e,r);i=1===o.length&&o[0]instanceof St&&l.contains(["mrow","mtable"],o[0].type)?o[0]:new zt.MathNode("mrow",o);var s=new zt.MathNode("annotation",[new zt.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var h=new zt.MathNode("semantics",[i,s]),m=new zt.MathNode("math",[h]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&m.setAttribute("display","block");var c=a?"katex":"katex-mathml";return $e.makeSpan([c],[m])}var Rt=function(e){return new O({style:e.displayMode?b.DISPLAY:b.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Ot=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=$e.makeSpan(r,[e])}return e},Et={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Ht={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Lt=function(e,t,r,n,a){var i,o=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=$e.makeSpan(["stretchy",t],[],a),"fbox"===t){var s=a.color&&a.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new K({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new K({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new $(l,{width:"100%",height:P(o)});i=$e.makeSvgSpan([],[h],a)}return i.height=o,i.style.height=P(o),i},Dt=function(e){var t=new zt.MathNode("mo",[new zt.TextNode(Et[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Pt=function(e,t){var r=function(){var r=4e5,n=e.label.substr(1);if(l.contains(["widehat","widecheck","widetilde","utilde"],n)){var a,i,o,s="ordgroup"===(d=e.base).type?d.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(a=420,r=2364,o=.42,i=n+"4"):(a=312,r=2340,o=.34,i="tilde4");else{var h=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][h],a=[0,239,300,360,420][h],o=[0,.24,.3,.3,.36,.42][h],i=n+h):(r=[0,600,1033,2339,2340][h],a=[0,260,286,306,312][h],o=[0,.26,.286,.3,.306,.34][h],i="tilde"+h)}var m=new Z(i),c=new $([m],{width:"100%",height:P(o),viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"});return{span:$e.makeSvgSpan([],[c],t),minWidth:0,height:o}}var u,p,d,f=[],g=Ht[n],v=g[0],b=g[1],y=g[2],x=y/1e3,w=v.length;if(1===w)u=["hide-tail"],p=[g[3]];else if(2===w)u=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");u=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k<w;k++){var S=new Z(v[k]),M=new $([S],{width:"400em",height:P(x),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:p[k]+" slice"}),z=$e.makeSvgSpan([u[k]],[M],t);if(1===w)return{span:z,minWidth:b,height:x};z.style.height=P(x),f.push(z)}return{span:$e.makeSpan(["stretchy"],f,t),minWidth:b,height:x}}(),n=r.span,a=r.minWidth,i=r.height;return n.height=i,n.style.height=P(i),a>0&&(n.style.minWidth=P(a)),n};function Ft(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Vt(e){var t=Gt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Gt(e){return e&&("atom"===e.type||ee.hasOwnProperty(e.type))?e:null}var Ut=function(e,t){var r,n,a;e&&"supsub"===e.type?(r=(n=Ft(e.base,"accent")).base,e.base=r,a=function(e){if(e instanceof Y)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(yt(e,t)),e.base=n):r=(n=Ft(e,"accent")).base;var i=yt(r,t.havingCrampedStyle()),o=0;if(n.isShifty&&l.isCharacterBox(r)){var s=l.getBaseElem(r);o=J(yt(s,t.havingCrampedStyle())).skew}var h,m="\\c"===n.label,c=m?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)h=Pt(n,t),h=$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+P(2*o)+")",marginLeft:P(2*o)}:void 0}]},t);else{var u,p;"\\vec"===n.label?(u=$e.staticSvg("vec",t),p=$e.svgData.vec[1]):((u=J(u=$e.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,p=u.width,m&&(c+=u.depth)),h=$e.makeSpan(["accent-body"],[u]);var d="\\textcircled"===n.label;d&&(h.classes.push("accent-full"),c=i.height);var f=o;d||(f-=p/2),h.style.left=P(f),"\\textcircled"===n.label&&(h.style.top=".2em"),h=$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:h}]},t)}var g=$e.makeSpan(["mord","accent"],[h],t);return a?(a.children[0]=g,a.height=Math.max(g.height,a.height),a.classes[0]="mord",a):g},Yt=function(e,t){var r=e.isStretchy?Dt(e.label):new zt.MathNode("mo",[At(e.label,e.mode)]),n=new zt.MathNode("mover",[Ct(e.base,t),r]);return n.setAttribute("accent","true"),n},Wt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));at({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var r=ot(t[0]),n=!Wt.test(e.funcName),a=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Ut,mathmlBuilder:Yt}),at({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Ut,mathmlBuilder:Yt}),at({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:function(e,t){var r=yt(e.base,t),n=Pt(e,t),a="\\utilde"===e.label?.12:0,i=$e.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return $e.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var r=Dt(e.label),n=new zt.MathNode("munder",[Ct(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Xt=function(e){var t=new zt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};at({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,r){var n=e.parser,a=e.funcName;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder:function(e,t){var r,n=t.style,a=t.havingStyle(n.sup()),i=$e.wrapFragment(yt(e.body,a,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(a=t.havingStyle(n.sub()),(r=$e.wrapFragment(yt(e.below,a,t),t)).classes.push(o+"-arrow-pad"));var s,l=Pt(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=i.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=$e.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h},{type:"elem",elem:r,shift:c}]},t)}else s=$e.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),$e.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var r,n=Dt(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=Xt(Ct(e.body,t));if(e.below){var i=Xt(Ct(e.below,t));r=new zt.MathNode("munderover",[n,i,a])}else r=new zt.MathNode("mover",[n,a])}else if(e.below){var o=Xt(Ct(e.below,t));r=new zt.MathNode("munder",[n,o])}else r=Xt(),r=new zt.MathNode("mover",[n,r]);return r}});var _t={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},jt=function(e){return"textord"===e.type&&"@"===e.text};function $t(e,t,r){var n=_t[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[a],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}at({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder:function(e,t){var r=t.havingStyle(t.style.sup()),n=$e.wrapFragment(yt(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=P(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder:function(e,t){var r=new zt.MathNode("mrow",[Ct(e.label,t)]);return(r=new zt.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new zt.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),at({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){return{type:"cdlabelparent",mode:e.parser.mode,fragment:t[0]}},htmlBuilder:function(e,t){var r=$e.wrapFragment(yt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:function(e,t){return new zt.MathNode("mrow",[Ct(e.fragment,t)])}}),at({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var r=e.parser,a=Ft(t[0],"ordgroup").body,i="",o=0;o<a.length;o++)i+=Ft(a[o],"textord").text;var s,l=parseInt(i);if(isNaN(l))throw new n("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new n("\\@char with invalid code point "+i);return l<=65535?s=String.fromCharCode(l):(l-=65536,s=String.fromCharCode(55296+(l>>10),56320+(1023&l))),{type:"textord",mode:r.mode,text:s}}});var Zt=function(e,t){var r=pt(e.body,t.withColor(e.color),!1);return $e.makeFragment(r)},Kt=function(e,t){var r=Nt(e.body,t.withColor(e.color)),n=new zt.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};at({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var r=e.parser,n=Ft(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:st(a)}},htmlBuilder:Zt,mathmlBuilder:Kt}),at({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var r=e.parser,n=e.breakOnTokenText,a=Ft(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Zt,mathmlBuilder:Kt}),at({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,r){var n=e.parser,a=r[0],i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&Ft(a,"size").value}},htmlBuilder:function(e,t){var r=$e.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=P(D(e.size,t)))),r},mathmlBuilder:function(e,t){var r=new zt.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",P(D(e.size,t)))),r}});var Jt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Qt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new n("Expected a control sequence",e);return t},er=function(e,t,r,n){var a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};at({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,r=e.funcName;t.consumeSpaces();var a=t.fetch();if(Jt[a.text])return"\\global"!==r&&"\\\\globallong"!==r||(a.text=Jt[a.text]),Ft(t.parseFunction(),"internal");throw new n("Invalid token after macro prefix",a)}}),at({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=t.gullet.popToken(),i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new n("Expected a control sequence",a);for(var o,s=0,l=[[]];"{"!==t.gullet.future().text;)if("#"===(a=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),l[s].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new n('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new n('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if("EOF"===a.text)throw new n("Expected a macro definition");l[s].push(a.text)}var h=t.gullet.consumeArg().tokens;return o&&h.unshift(o),"\\edef"!==r&&"\\xdef"!==r||(h=t.gullet.expandTokens(h)).reverse(),t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:l},r===Jt[r]),{type:"internal",mode:t.mode}}}),at({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=Qt(t.gullet.popToken());t.gullet.consumeSpaces();var a=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return er(t,n,a,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),at({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=Qt(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return er(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var tr=function(e,t,r){var n=B(re.math[e]&&re.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},rr=function(e,t,r,n){var a=r.havingBaseStyle(t),i=$e.makeSpan(n.concat(a.sizingClasses(r)),[e],r),o=a.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=a.sizeMultiplier,i},nr=function(e,t,r){var n=t.havingBaseStyle(r),a=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=P(a),e.height-=a,e.depth+=a},ar=function(e,t,r,n,a,i){var o=function(e,t,r,n){return $e.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,a,n),s=rr($e.makeSpan(["delimsizing","size"+t],[o],n),b.TEXT,n,i);return r&&nr(s,n,b.TEXT),s},ir=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:$e.makeSpan(["delimsizinginner",n],[$e.makeSpan([],[$e.makeSymbol(e,t,r)])])}},or=function(e,t,r){var n=z["Size4-Regular"][e.charCodeAt(0)]?z["Size4-Regular"][e.charCodeAt(0)][4]:z["Size1-Regular"][e.charCodeAt(0)][4],a=new Z("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new $([a],{width:P(n),height:P(t),style:"width:"+P(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=$e.makeSvgSpan([],[i],r);return o.height=t,o.style.height=P(t),o.style.width=P(n),{type:"elem",elem:o}},sr={type:"kern",size:-.008},lr=["|","\\lvert","\\rvert","\\vert"],hr=["\\|","\\lVert","\\rVert","\\Vert"],mr=function(e,t,r,n,a,i){var o,s,h,m;o=h=m=e,s=null;var c="Size1-Regular";"\\uparrow"===e?h=m="\u23d0":"\\Uparrow"===e?h=m="\u2016":"\\downarrow"===e?o=h="\u23d0":"\\Downarrow"===e?o=h="\u2016":"\\updownarrow"===e?(o="\\uparrow",h="\u23d0",m="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",h="\u2016",m="\\Downarrow"):l.contains(lr,e)?h="\u2223":l.contains(hr,e)?h="\u2225":"["===e||"\\lbrack"===e?(o="\u23a1",h="\u23a2",m="\u23a3",c="Size4-Regular"):"]"===e||"\\rbrack"===e?(o="\u23a4",h="\u23a5",m="\u23a6",c="Size4-Regular"):"\\lfloor"===e||"\u230a"===e?(h=o="\u23a2",m="\u23a3",c="Size4-Regular"):"\\lceil"===e||"\u2308"===e?(o="\u23a1",h=m="\u23a2",c="Size4-Regular"):"\\rfloor"===e||"\u230b"===e?(h=o="\u23a5",m="\u23a6",c="Size4-Regular"):"\\rceil"===e||"\u2309"===e?(o="\u23a4",h=m="\u23a5",c="Size4-Regular"):"("===e||"\\lparen"===e?(o="\u239b",h="\u239c",m="\u239d",c="Size4-Regular"):")"===e||"\\rparen"===e?(o="\u239e",h="\u239f",m="\u23a0",c="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(o="\u23a7",s="\u23a8",m="\u23a9",h="\u23aa",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="\u23ab",s="\u23ac",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(o="\u23a7",m="\u23a9",h="\u23aa",c="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(o="\u23ab",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(o="\u23a7",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(o="\u23ab",m="\u23a9",h="\u23aa",c="Size4-Regular");var u=tr(o,c,a),p=u.height+u.depth,d=tr(h,c,a),f=d.height+d.depth,g=tr(m,c,a),v=g.height+g.depth,y=0,x=1;if(null!==s){var w=tr(s,c,a);y=w.height+w.depth,x=2}var k=p+v+y,S=k+Math.max(0,Math.ceil((t-k)/(x*f)))*x*f,M=n.fontMetrics().axisHeight;r&&(M*=n.sizeMultiplier);var z=S/2-M,A=[];if(A.push(ir(m,c,a)),A.push(sr),null===s){var T=S-p-v+.016;A.push(or(h,T,n))}else{var B=(S-p-v-y)/2+.016;A.push(or(h,B,n)),A.push(sr),A.push(ir(s,c,a)),A.push(sr),A.push(or(h,B,n))}A.push(sr),A.push(ir(o,c,a));var N=n.havingBaseStyle(b.TEXT),q=$e.makeVList({positionType:"bottom",positionData:z,children:A},N);return rr($e.makeSpan(["delimsizing","mult"],[q],N),b.TEXT,n,i)},cr=.08,ur=function(e,t,r,n,a){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,k);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,k,r)}return n}(e,n,r),o=new Z(e,i),s=new $([o],{width:"400em",height:P(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return $e.makeSvgSpan(["hide-tail"],[s],a)},pr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],dr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],fr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],gr=[0,1.2,1.8,2.4,3],vr=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],br=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"stack"}],yr=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],xr=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},wr=function(e,t,r,n){for(var a=Math.min(2,3-n.style.size);a<r.length&&"stack"!==r[a].type;a++){var i=tr(e,xr(r[a]),"math"),o=i.height+i.depth;if("small"===r[a].type&&(o*=n.havingBaseStyle(r[a].style).sizeMultiplier),o>t)return r[a]}return r[r.length-1]},kr=function(e,t,r,n,a,i){var o;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),o=l.contains(fr,e)?vr:l.contains(pr,e)?yr:br;var s=wr(e,t,o,n);return"small"===s.type?function(e,t,r,n,a,i){var o=$e.makeSymbol(e,"Main-Regular",a,n),s=rr(o,t,n,i);return r&&nr(s,n,t),s}(e,s.style,r,n,a,i):"large"===s.type?ar(e,s.size,r,n,a,i):mr(e,t,r,n,a,i)},Sr={sqrtImage:function(e,t){var r,n,a=t.havingBaseSizing(),i=wr("\\surd",e*a.sizeMultiplier,yr,a),o=a.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,h=0,m=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),h=(1+s)/o,(r=ur("sqrtMain",l=(1+s+cr)/o,m=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/o):"large"===i.type?(m=1080*gr[i.size],h=(gr[i.size]+s)/o,l=(gr[i.size]+s+cr)/o,(r=ur("sqrtSize"+i.size,l,m,s,t)).style.minWidth="1.02em",n=1/o):(l=e+s+cr,h=e+s,m=Math.floor(1e3*e+s)+80,(r=ur("sqrtTall",l,m,s,t)).style.minWidth="0.742em",n=1.056),r.height=h,r.style.height=P(l),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(e,t,r,a,i){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),l.contains(pr,e)||l.contains(fr,e))return ar(e,t,!1,r,a,i);if(l.contains(dr,e))return mr(e,gr[t],!1,r,a,i);throw new n("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:gr,customSizedDelim:kr,leftRightDelim:function(e,t,r,n,a,i){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return kr(e,h,!0,n,a,i)}},Mr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},zr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ar(e,t){var r=Gt(e);if(r&&l.contains(zr,r.text))return r;throw new n(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Tr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}at({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var r=Ar(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Mr[e.funcName].size,mclass:Mr[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return"."===e.delim?$e.makeSpan([e.mclass]):Sr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(At(e.delim,e.mode));var r=new zt.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=P(Sr.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),at({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!==typeof r)throw new n("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Ar(t[0],e).text,color:r}}}),at({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=Ar(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=Ft(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){Tr(e);for(var r,n,a=pt(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l<a.length;l++)a[l].isMiddle?s=!0:(i=Math.max(a[l].height,i),o=Math.max(a[l].depth,o));if(i*=t.sizeMultiplier,o*=t.sizeMultiplier,r="."===e.left?bt(t,["mopen"]):Sr.leftRightDelim(e.left,i,o,t,e.mode,["mopen"]),a.unshift(r),s)for(var h=1;h<a.length;h++){var m=a[h].isMiddle;m&&(a[h]=Sr.leftRightDelim(m.delim,i,o,m.options,e.mode,[]))}if("."===e.right)n=bt(t,["mclose"]);else{var c=e.rightColor?t.withColor(e.rightColor):t;n=Sr.leftRightDelim(e.right,i,o,c,e.mode,["mclose"])}return a.push(n),$e.makeSpan(["minner"],a,t)},mathmlBuilder:function(e,t){Tr(e);var r=Nt(e.body,t);if("."!==e.left){var n=new zt.MathNode("mo",[At(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var a=new zt.MathNode("mo",[At(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return Tt(r)}}),at({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=Ar(t[0],e);if(!e.parser.leftrightDepth)throw new n("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:function(e,t){var r;if("."===e.delim)r=bt(t,[]);else{r=Sr.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:function(e,t){var r="\\vert"===e.delim||"|"===e.delim?At("|","text"):At(e.delim,e.mode),n=new zt.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Br=function(e,t){var r,n,a,i=$e.wrapFragment(yt(e.body,t),t),o=e.label.substr(1),s=t.sizeMultiplier,h=0,m=l.isCharacterBox(e.body);if("sout"===o)(r=$e.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,h=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=D({number:.6,unit:"pt"},t),u=D({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var p=i.height+i.depth+c+u;i.style.paddingLeft=P(p/2+c);var d=Math.floor(1e3*p*s),f="M400000 "+(n=d)+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z",g=new $([new Z("phase",f)],{width:"400em",height:P(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});(r=$e.makeSvgSpan(["hide-tail"],[g],t)).style.height=P(p),h=i.depth+c+u}else{/cancel/.test(o)?m||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var v=0,b=0,y=0;/box/.test(o)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),b=v=t.fontMetrics().fboxsep+("colorbox"===o?0:y)):"angl"===o?(v=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),b=Math.max(0,.25-i.depth)):b=v=m?.2:0,r=Lt(i,o,v,b,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=P(y)):"angl"===o&&.049!==y&&(r.style.borderTopWidth=P(y),r.style.borderRightWidth=P(y)),h=i.depth+b,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)a=$e.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:h},{type:"elem",elem:i,shift:0}]},t);else{var x=/cancel|phase/.test(o)?["svg-align"]:[];a=$e.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:h,wrapperClasses:x}]},t)}return/cancel/.test(o)&&(a.height=i.height,a.depth=i.depth),/cancel/.test(o)&&!m?$e.makeSpan(["mord","cancel-lap"],[a],t):$e.makeSpan(["mord"],[a],t)},Nr=function(e,t){var r=0,n=new zt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ct(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};at({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,r){var n=e.parser,a=e.funcName,i=Ft(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:Br,mathmlBuilder:Nr}),at({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,r){var n=e.parser,a=e.funcName,i=Ft(t[0],"color-token").color,o=Ft(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:Br,mathmlBuilder:Nr}),at({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),at({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Br,mathmlBuilder:Nr}),at({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\angl",body:t[0]}}});var qr={};function Cr(e){for(var t=e.type,r=e.names,n=e.props,a=e.handler,i=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)qr[r[l]]=s;i&&(rt[t]=i),o&&(nt[t]=o)}function Ir(e){var t=[];e.consumeSpaces();for(var r=e.fetch().text;"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var Rr=function(e){if(!e.parser.settings.displayMode)throw new n("{"+e.envName+"} can be used only in display mode.")};function Or(e,t,r){var a=t.hskipBeforeAndAfter,i=t.addJot,o=t.cols,s=t.arraystretch,l=t.colSeparationType,h=t.addEqnNum,m=t.singleRow,c=t.emptySingleRow,u=t.maxNumCols,p=t.leqno;if(e.gullet.beginGroup(),m||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var d=e.gullet.expandMacroAsText("\\arraystretch");if(null==d)s=1;else if(!(s=parseFloat(d))||s<0)throw new n("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var f=[],g=[f],v=[],b=[];for(b.push(Ir(e));;){var y=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),y={type:"ordgroup",mode:e.mode,body:y},r&&(y={type:"styling",mode:e.mode,style:r,body:[y]}),f.push(y);var x=e.fetch().text;if("&"===x){if(u&&f.length===u){if(m||l)throw new n("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===x){1===f.length&&"styling"===y.type&&0===y.body[0].body.length&&(g.length>1||!c)&&g.pop(),b.length<g.length+1&&b.push([]);break}if("\\\\"!==x)throw new n("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var w=void 0;" "!==e.gullet.future().text&&(w=e.parseSizeGroup(!0)),v.push(w?w.value:null),b.push(Ir(e)),f=[],g.push(f)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:g,cols:o,rowGaps:v,hskipBeforeAndAfter:a,hLinesBeforeRow:b,colSeparationType:l,addEqnNum:h,leqno:p}}function Er(e){return"d"===e.substr(0,1)?"display":"text"}var Hr=function(e,t){var r,a,i=e.body.length,o=e.hLinesBeforeRow,s=0,h=new Array(i),m=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,p=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(b.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var d="CD"===e.colSeparationType?D({number:3,unit:"ex"},t):12*u,f=3*u,g=e.arraystretch*d,v=.7*g,y=.3*g,x=0;function w(e){for(var t=0;t<e.length;++t)t>0&&(x+=.25),m.push({pos:x,isDashed:e[t]})}for(w(o[0]),r=0;r<e.body.length;++r){var k=e.body[r],S=v,M=y;s<k.length&&(s=k.length);var z=new Array(k.length);for(a=0;a<k.length;++a){var A=yt(k[a],t);M<A.depth&&(M=A.depth),S<A.height&&(S=A.height),z[a]=A}var T=e.rowGaps[r],B=0;T&&(B=D(T,t))>0&&(M<(B+=y)&&(M=B),B=0),e.addJot&&(M+=f),z.height=S,z.depth=M,x+=S,z.pos=x,x+=M+B,h[r]=z,w(o[r+1])}var N,q,C=x/2+t.fontMetrics().axisHeight,I=e.cols||[],R=[],O=[];if(e.addEqnNum)for(r=0;r<i;++r){var E=h[r],H=E.pos-C,L=$e.makeSpan(["eqn-num"],[],t);L.depth=E.depth,L.height=E.height,O.push({type:"elem",elem:L,shift:H})}for(a=0,q=0;a<s||q<I.length;++a,++q){for(var F=I[q]||{},V=!0;"separator"===F.type;){if(V||((N=$e.makeSpan(["arraycolsep"],[])).style.width=P(t.fontMetrics().doubleRuleSep),R.push(N)),"|"!==F.separator&&":"!==F.separator)throw new n("Invalid separator type: "+F.separator);var G="|"===F.separator?"solid":"dashed",U=$e.makeSpan(["vertical-separator"],[],t);U.style.height=P(x),U.style.borderRightWidth=P(c),U.style.borderRightStyle=G,U.style.margin="0 "+P(-c/2);var Y=x-C;Y&&(U.style.verticalAlign=P(-Y)),R.push(U),F=I[++q]||{},V=!1}if(!(a>=s)){var W=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(W=l.deflt(F.pregap,p))&&((N=$e.makeSpan(["arraycolsep"],[])).style.width=P(W),R.push(N));var X=[];for(r=0;r<i;++r){var _=h[r],j=_[a];if(j){var $=_.pos-C;j.depth=_.depth,j.height=_.height,X.push({type:"elem",elem:j,shift:$})}}X=$e.makeVList({positionType:"individualShift",children:X},t),X=$e.makeSpan(["col-align-"+(F.align||"c")],[X]),R.push(X),(a<s-1||e.hskipBeforeAndAfter)&&0!==(W=l.deflt(F.postgap,p))&&((N=$e.makeSpan(["arraycolsep"],[])).style.width=P(W),R.push(N))}}if(h=$e.makeSpan(["mtable"],R),m.length>0){for(var Z=$e.makeLineSpan("hline",t,c),K=$e.makeLineSpan("hdashline",t,c),J=[{type:"elem",elem:h,shift:0}];m.length>0;){var Q=m.pop(),ee=Q.pos-C;Q.isDashed?J.push({type:"elem",elem:K,shift:ee}):J.push({type:"elem",elem:Z,shift:ee})}h=$e.makeVList({positionType:"individualShift",children:J},t)}if(e.addEqnNum){var te=$e.makeVList({positionType:"individualShift",children:O},t);return te=$e.makeSpan(["tag"],[te],t),$e.makeFragment([h,te])}return $e.makeSpan(["mord"],[h],t)},Lr={c:"center ",l:"left ",r:"right "},Dr=function(e,t){for(var r=[],n=new zt.MathNode("mtd",[],["mtr-glue"]),a=new zt.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],s=[],l=0;l<o.length;l++)s.push(new zt.MathNode("mtd",[Ct(o[l],t)]));e.addEqnNum&&(s.unshift(n),s.push(n),e.leqno?s.unshift(a):s.push(a)),r.push(new zt.MathNode("mtr",s))}var h=new zt.MathNode("mtable",r),m=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);h.setAttribute("rowspacing",P(m));var c="",u="";if(e.cols&&e.cols.length>0){var p=e.cols,d="",f=!1,g=0,v=p.length;"separator"===p[0].type&&(c+="top ",g=1),"separator"===p[p.length-1].type&&(c+="bottom ",v-=1);for(var b=g;b<v;b++)"align"===p[b].type?(u+=Lr[p[b].align],f&&(d+="none "),f=!0):"separator"===p[b].type&&f&&(d+="|"===p[b].separator?"solid ":"dashed ",f=!1);h.setAttribute("columnalign",u.trim()),/[sd]/.test(d)&&h.setAttribute("columnlines",d.trim())}if("align"===e.colSeparationType){for(var y=e.cols||[],x="",w=1;w<y.length;w++)x+=w%2?"0em ":"1em ";h.setAttribute("columnspacing",x.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?h.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?h.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var k="",S=e.hLinesBeforeRow;c+=S[0].length>0?"left ":"",c+=S[S.length-1].length>0?"right ":"";for(var M=1;M<S.length-1;M++)k+=0===S[M].length?"none ":S[M][0]?"dashed ":"solid ";return/[sd]/.test(k)&&h.setAttribute("rowlines",k.trim()),""!==c&&(h=new zt.MathNode("menclose",[h])).setAttribute("notation",c.trim()),e.arraystretch&&e.arraystretch<1&&(h=new zt.MathNode("mstyle",[h])).setAttribute("scriptlevel","1"),h},Pr=function(e,t){-1===e.envName.indexOf("ed")&&Rr(e);var r,a=[],i=e.envName.indexOf("at")>-1?"alignat":"align",o=Or(e.parser,{cols:a,addJot:!0,addEqnNum:"align"===e.envName||"alignat"===e.envName,emptySingleRow:!0,colSeparationType:i,maxNumCols:"split"===e.envName?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var h="",m=0;m<t[0].body.length;m++)h+=Ft(t[0].body[m],"textord").text;r=Number(h),s=2*r}var c=!s;o.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var a=Ft(e[t],"styling");Ft(a.body[0],"ordgroup").body.unshift(l)}if(c)s<e.length&&(s=e.length);else{var i=e.length/2;if(r<i)throw new n("Too many math in a row: expected "+r+", but got "+i,e[0])}}));for(var u=0;u<s;++u){var p="r",d=0;u%2===1?p="l":u>0&&c&&(d=1),a[u]={type:"align",align:p,pregap:d,postgap:0}}return o.colSeparationType=c?"align":"alignat",o};Cr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var r=(Gt(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=Vt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new n("Unknown column alignment: "+t,e)})),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Or(e.parser,a,Er(e.envName))},htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,-1==="lcr".indexOf(r))throw new n("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),a.cols=[{type:"align",align:r}]}}var o=Or(e.parser,a,Er(e.envName)),s=Math.max.apply(Math,[0].concat(o.body.map((function(e){return e.length}))));return o.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Or(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var r=(Gt(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=Vt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new n("Unknown column alignment: "+t,e)}));if(r.length>1)throw new n("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=Or(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new n("{subarray} can contain only one column");return a},htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=Or(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Er(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Pr,htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){l.contains(["gather","gather*"],e.envName)&&Rr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",addEqnNum:"gather"===e.envName,emptySingleRow:!0,leqno:e.parser.settings.leqno};return Or(e.parser,t,"display")},htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Pr,htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Rr(e);var t={addEqnNum:"equation"===e.envName,emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Or(e.parser,t,"display")},htmlBuilder:Hr,mathmlBuilder:Dr}),Cr({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Rr(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var a,i,o=[],s=[o],l=0;l<t.length;l++){for(var h=t[l],m={type:"styling",body:[],mode:"math",style:"display"},c=0;c<h.length;c++)if(jt(h[c])){o.push(m);var u=Vt(h[c+=1]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(u)>-1);else{if(!("<>AV".indexOf(u)>-1))throw new n('Expected one of "<>AV=|." after @',h[c]);for(var d=0;d<2;d++){for(var f=!0,g=c+1;g<h.length;g++){if(i=u,("mathord"===(a=h[g]).type||"atom"===a.type)&&a.text===i){f=!1,c=g;break}if(jt(h[g]))throw new n("Missing a "+u+" character to complete a CD arrow.",h[g]);p[d].body.push(h[g])}if(f)throw new n("Missing a "+u+" character to complete a CD arrow.",h[c])}}var v={type:"styling",body:[$t(u,p,e)],mode:"math",style:"display"};o.push(v),m={type:"styling",body:[],mode:"math",style:"display"}}else m.body.push(h[c]);l%2===0?o.push(m):o.shift(),o=[],s.push(o)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}(e.parser)},htmlBuilder:Hr,mathmlBuilder:Dr}),at({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new n(e.funcName+" valid only within array environment")}});var Fr=qr;at({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var r=e.parser,a=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new n("Invalid environment name",i);for(var o="",s=0;s<i.body.length;++s)o+=Ft(i.body[s],"textord").text;if("\\begin"===a){if(!Fr.hasOwnProperty(o))throw new n("No such environment: "+o,i);var l=Fr[o],h=r.parseArguments("\\begin{"+o+"}",l),m=h.args,c=h.optArgs,u={mode:r.mode,envName:o,parser:r},p=l.handler(u,m,c);r.expect("\\end",!1);var d=r.nextToken,f=Ft(r.parseFunction(),"environment");if(f.name!==o)throw new n("Mismatch: \\begin{"+o+"} matched by \\end{"+f.name+"}",d);return p}return{type:"environment",mode:r.mode,name:o,nameGroup:i}}});var Vr=$e.makeSpan;function Gr(e,t){var r=pt(e.body,t,!0);return Vr([e.mclass],r,t)}function Ur(e,t){var r,n=Nt(e.body,t);return"minner"===e.mclass?zt.newDocumentFragment(n):("mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new zt.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new zt.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(r.attributes.lspace="0em",r.attributes.rspace="0em")),r)}at({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.substr(5),body:st(a),isCharacterBox:l.isCharacterBox(a)}},htmlBuilder:Gr,mathmlBuilder:Ur});var Yr=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};at({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:Yr(t[0]),body:st(t[1]),isCharacterBox:l.isCharacterBox(t[1])}}}),at({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var r,n=e.parser,a=e.funcName,i=t[1],o=t[0];r="\\stackrel"!==a?Yr(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:st(i)},h={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===a?null:o,sub:"\\underset"===a?o:null};return{type:"mclass",mode:n.mode,mclass:r,body:[h],isCharacterBox:l.isCharacterBox(h)}},htmlBuilder:Gr,mathmlBuilder:Ur});var Wr=function(e,t){var r=e.font,n=t.withFont(r);return yt(e.body,n)},Xr=function(e,t){var r=e.font,n=t.withFont(r);return Ct(e.body,n)},_r={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};at({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=ot(t[0]),i=n;return i in _r&&(i=_r[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Wr,mathmlBuilder:Xr}),at({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=t[0],a=l.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Yr(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}}),at({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=e.breakOnTokenText,i=r.mode,o=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:Wr,mathmlBuilder:Xr});var jr=function(e,t){var r=t;return"display"===e?r=r.id>=b.SCRIPT.id?r.text():b.DISPLAY:"text"===e&&r.size===b.DISPLAY.size?r=b.TEXT:"script"===e?r=b.SCRIPT:"scriptscript"===e&&(r=b.SCRIPTSCRIPT),r},$r=function(e,t){var r,n=jr(e.size,t.style),a=n.fracNum(),i=n.fracDen();r=t.havingStyle(a);var o=yt(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}r=t.havingStyle(i);var h,m,c,u,p,d,f,g,v,y,x=yt(e.denom,r,t);if(e.hasBarLine?(e.barSize?(m=D(e.barSize,t),h=$e.makeLineSpan("frac-line",t,m)):h=$e.makeLineSpan("frac-line",t),m=h.height,c=h.height):(h=null,m=0,c=t.fontMetrics().defaultRuleThickness),n.size===b.DISPLAY.size||"display"===e.size?(u=t.fontMetrics().num1,p=m>0?3*c:7*c,d=t.fontMetrics().denom1):(m>0?(u=t.fontMetrics().num2,p=c):(u=t.fontMetrics().num3,p=3*c),d=t.fontMetrics().denom2),h){var w=t.fontMetrics().axisHeight;u-o.depth-(w+.5*m)<p&&(u+=p-(u-o.depth-(w+.5*m))),w-.5*m-(x.height-d)<p&&(d+=p-(w-.5*m-(x.height-d)));var k=-(w-.5*m);f=$e.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:d},{type:"elem",elem:h,shift:k},{type:"elem",elem:o,shift:-u}]},t)}else{var S=u-o.depth-(x.height-d);S<p&&(u+=.5*(p-S),d+=.5*(p-S)),f=$e.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:d},{type:"elem",elem:o,shift:-u}]},t)}return r=t.havingStyle(n),f.height*=r.sizeMultiplier/t.sizeMultiplier,f.depth*=r.sizeMultiplier/t.sizeMultiplier,g=n.size===b.DISPLAY.size?t.fontMetrics().delim1:n.size===b.SCRIPTSCRIPT.size?t.havingStyle(b.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?bt(t,["mopen"]):Sr.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?$e.makeSpan([]):null==e.rightDelim?bt(t,["mclose"]):Sr.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(n),e.mode,["mclose"]),$e.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,$e.makeSpan(["mfrac"],[f]),y],t)},Zr=function(e,t){var r=new zt.MathNode("mfrac",[Ct(e.numer,t),Ct(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=D(e.barSize,t);r.setAttribute("linethickness",P(n))}}else r.setAttribute("linethickness","0px");var a=jr(e.size,t.style);if(a.size!==t.style.size){r=new zt.MathNode("mstyle",[r]);var i=a.size===b.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new zt.MathNode("mo",[new zt.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(r),null!=e.rightDelim){var l=new zt.MathNode("mo",[new zt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Tt(o)}return r};at({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:function(e,t){var r,n=e.parser,a=e.funcName,i=t[0],o=t[1],s=null,l=null,h="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:o,hasBarLine:r,leftDelim:s,rightDelim:l,size:h,barSize:null}},htmlBuilder:$r,mathmlBuilder:Zr}),at({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:function(e,t){var r=e.parser,n=(e.funcName,t[0]),a=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),at({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,r=e.parser,n=e.funcName,a=e.token;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:a}}});var Kr=["display","text","script","scriptscript"],Jr=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};at({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var r,n=e.parser,a=t[4],i=t[5],o=ot(t[0]),s="atom"===o.type&&"open"===o.family?Jr(o.text):null,l=ot(t[1]),h="atom"===l.type&&"close"===l.family?Jr(l.text):null,m=Ft(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var u="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var d=Ft(p.body[0],"textord");u=Kr[Number(d.text)]}}else p=Ft(p,"textord"),u=Kr[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:s,rightDelim:h,size:u}},htmlBuilder:$r,mathmlBuilder:Zr}),at({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var r=e.parser,n=(e.funcName,e.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ft(t[0],"size").value,token:n}}}),at({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var r=e.parser,n=(e.funcName,t[0]),a=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ft(t[1],"infix").size),i=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:$r,mathmlBuilder:Zr});var Qr=function(e,t){var r,n,a=t.style;"supsub"===e.type?(r=e.sup?yt(e.sup,t.havingStyle(a.sup()),t):yt(e.sub,t.havingStyle(a.sub()),t),n=Ft(e.base,"horizBrace")):n=Ft(e,"horizBrace");var i,o=yt(n.base,t.havingBaseStyle(b.DISPLAY)),s=Pt(n,t);if(n.isOver?(i=$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=$e.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=$e.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):$e.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return $e.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};at({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Qr,mathmlBuilder:function(e,t){var r=Dt(e.label);return new zt.MathNode(e.isOver?"mover":"munder",[Ct(e.base,t),r])}}),at({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[1],a=Ft(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:st(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var r=pt(e.body,t,!1);return $e.makeAnchor(e.href,[],r,t)},mathmlBuilder:function(e,t){var r=qt(e.body,t);return r instanceof St||(r=new St("mrow",[r])),r.setAttribute("href",e.href),r}}),at({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=Ft(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var o=n[i];"~"===o&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:st(s)}}}),at({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler:function(e,t){return{type:"hbox",mode:e.parser.mode,body:st(t[0])}},htmlBuilder:function(e,t){var r=pt(e.body,t,!1);return $e.makeFragment(r)},mathmlBuilder:function(e,t){return new zt.MathNode("mrow",Nt(e.body,t))}}),at({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var r,a=e.parser,i=e.funcName,o=(e.token,Ft(t[0],"raw").string),s=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var h=o.split(","),m=0;m<h.length;m++){var c=h[m].split("=");if(2!==c.length)throw new n("Error parsing key-value for \\htmlData");l["data-"+c[0].trim()]=c[1].trim()}r={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return a.settings.isTrusted(r)?{type:"html",mode:a.mode,attributes:l,body:st(s)}:a.formatUnsupportedCmd(i)},htmlBuilder:function(e,t){var r=pt(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push.apply(n,e.attributes.class.trim().split(/\s+/));var a=$e.makeSpan(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:function(e,t){return qt(e.body,t)}}),at({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:st(t[0]),mathml:st(t[1])}},htmlBuilder:function(e,t){var r=pt(e.html,t,!1);return $e.makeFragment(r)},mathmlBuilder:function(e,t){return qt(e.mathml,t)}});var en=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new n("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!L(r))throw new n("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};at({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,r){var a=e.parser,i={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(r[0])for(var h=Ft(r[0],"raw").string.split(","),m=0;m<h.length;m++){var c=h[m].split("=");if(2===c.length){var u=c[1].trim();switch(c[0].trim()){case"alt":l=u;break;case"width":i=en(u);break;case"height":o=en(u);break;case"totalheight":s=en(u);break;default:throw new n("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var p=Ft(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:a.mode,alt:l,width:i,height:o,totalheight:s,src:p}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var r=D(e.height,t),n=0;e.totalheight.number>0&&(n=D(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=D(e.width,t));var i={height:P(r+n)};a>0&&(i.width=P(a)),n>0&&(i.verticalAlign=P(-n));var o=new X(e.src,e.alt,i);return o.height=r,o.depth=n,o},mathmlBuilder:function(e,t){var r=new zt.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=D(e.height,t),a=0;if(e.totalheight.number>0&&(a=D(e.totalheight,t)-n,r.setAttribute("valign",P(-a))),r.setAttribute("height",P(n+a)),e.width.number>0){var i=D(e.width,t);r.setAttribute("width",P(i))}return r.setAttribute("src",e.src),r}}),at({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=Ft(t[0],"size");if(r.settings.strict){var i="m"===n[1],o="mu"===a.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+a.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder:function(e,t){return $e.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var r=D(e.dimension,t);return new zt.SpaceNode(r)}}),at({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:function(e,t){var r;"clap"===e.alignment?(r=$e.makeSpan([],[yt(e.body,t)]),r=$e.makeSpan(["inner"],[r],t)):r=$e.makeSpan(["inner"],[yt(e.body,t)]);var n=$e.makeSpan(["fix"],[]),a=$e.makeSpan([e.alignment],[r,n],t),i=$e.makeSpan(["strut"]);return i.style.height=P(a.height+a.depth),a.depth&&(i.style.verticalAlign=P(-a.depth)),a.children.unshift(i),a=$e.makeSpan(["thinbox"],[a],t),$e.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:function(e,t){var r=new zt.MathNode("mpadded",[Ct(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),at({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var r=e.funcName,n=e.parser,a=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:o}}}),at({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new n("Mismatched "+e.funcName)}});var tn=function(e,t){switch(t.style.size){case b.DISPLAY.size:return e.display;case b.TEXT.size:return e.text;case b.SCRIPT.size:return e.script;case b.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};at({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:st(t[0]),text:st(t[1]),script:st(t[2]),scriptscript:st(t[3])}},htmlBuilder:function(e,t){var r=tn(e,t),n=pt(r,t,!1);return $e.makeFragment(n)},mathmlBuilder:function(e,t){var r=tn(e,t);return qt(r,t)}});var rn=function(e,t,r,n,a,i,o){e=$e.makeSpan([],[e]);var s,h,m,c=r&&l.isCharacterBox(r);if(t){var u=yt(t,n.havingStyle(a.sup()),n);h={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var p=yt(r,n.havingStyle(a.sub()),n);s={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}if(h&&s){var d=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;m=$e.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:P(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:P(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var f=e.height-o;m=$e.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:P(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!h)return e;var g=e.depth+o;m=$e.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:P(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var v=[m];if(s&&0!==i&&!c){var b=$e.makeSpan(["mspace"],[],n);b.style.marginRight=P(i),v.unshift(b)}return $e.makeSpan(["mop","op-limits"],v,n)},nn=["\\smallint"],an=function(e,t){var r,n,a,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,a=Ft(e.base,"op"),i=!0):a=Ft(e,"op");var o,s=t.style,h=!1;if(s.size===b.DISPLAY.size&&a.symbol&&!l.contains(nn,a.name)&&(h=!0),a.symbol){var m=h?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==a.name&&"\\oiiint"!==a.name||(c=a.name.substr(1),a.name="oiint"===c?"\\iint":"\\iiint"),o=$e.makeSymbol(a.name,m,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),c.length>0){var u=o.italic,p=$e.staticSvg(c+"Size"+(h?"2":"1"),t);o=$e.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:h?.08:0}]},t),a.name="\\"+c,o.classes.unshift("mop"),o.italic=u}}else if(a.body){var d=pt(a.body,t,!0);1===d.length&&d[0]instanceof j?(o=d[0]).classes[0]="mop":o=$e.makeSpan(["mop"],d,t)}else{for(var f=[],g=1;g<a.name.length;g++)f.push($e.mathsym(a.name[g],a.mode,t));o=$e.makeSpan(["mop"],f,t)}var v=0,y=0;return(o instanceof j||"\\oiint"===a.name||"\\oiiint"===a.name)&&!a.suppressBaseShift&&(v=(o.height-o.depth)/2-t.fontMetrics().axisHeight,y=o.italic),i?rn(o,r,n,t,s,y,v):(v&&(o.style.position="relative",o.style.top=P(v)),o)},on=function(e,t){var r;if(e.symbol)r=new St("mo",[At(e.name,e.mode)]),l.contains(nn,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new St("mo",Nt(e.body,t));else{r=new St("mi",[new Mt(e.name.slice(1))]);var n=new St("mo",[At("\u2061","text")]);r=e.parentIsSupSub?new St("mrow",[r,n]):kt([r,n])}return r},sn={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};at({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:function(e,t){var r=e.parser,n=e.funcName;return 1===n.length&&(n=sn[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:an,mathmlBuilder:on}),at({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:st(n)}},htmlBuilder:an,mathmlBuilder:on});var ln={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};at({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,r=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:an,mathmlBuilder:on}),at({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,r=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:an,mathmlBuilder:on}),at({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler:function(e){var t=e.parser,r=e.funcName;return 1===r.length&&(r=ln[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:an,mathmlBuilder:on});var hn={};function mn(e,t){hn[e]=t}var cn=function(e,t){var r,n,a,i,o=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,a=Ft(e.base,"operatorname"),o=!0):a=Ft(e,"operatorname"),a.body.length>0){for(var s=a.body.map((function(e){var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=pt(s,t.withFont("mathrm"),!0),h=0;h<l.length;h++){var m=l[h];m instanceof j&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=$e.makeSpan(["mop"],l,t)}else i=$e.makeSpan(["mop"],[],t);return o?rn(i,r,n,t,t.style,0,0):i};function un(e,t,r){for(var n=pt(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var o=n[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[o+1]==="reset-size"+t.size&&(n[i].classes[o+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return $e.makeFragment(n)}at({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"operatorname",mode:r.mode,body:st(a),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:cn,mathmlBuilder:function(e,t){for(var r=Nt(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(i instanceof zt.SpaceNode);else if(i instanceof zt.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=i.children[0];1===i.children.length&&o instanceof zt.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map((function(e){return e.toText()})).join("");r=[new zt.TextNode(s)]}var l=new zt.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new zt.MathNode("mo",[At("\u2061","text")]);return e.parentIsSupSub?new zt.MathNode("mrow",[l,h]):zt.newDocumentFragment([l,h])}}),mn("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),it({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?$e.makeFragment(pt(e.body,t,!1)):$e.makeSpan(["mord"],pt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return qt(e.body,t,!0)}}),at({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder:function(e,t){var r=yt(e.body,t.havingCrampedStyle()),n=$e.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return $e.makeSpan(["mord","overline"],[i],t)},mathmlBuilder:function(e,t){var r=new zt.MathNode("mo",[new zt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new zt.MathNode("mover",[Ct(e.body,t),r]);return n.setAttribute("accent","true"),n}}),at({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"phantom",mode:r.mode,body:st(n)}},htmlBuilder:function(e,t){var r=pt(e.body,t.withPhantom(),!1);return $e.makeFragment(r)},mathmlBuilder:function(e,t){var r=Nt(e.body,t);return new zt.MathNode("mphantom",r)}}),at({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:function(e,t){var r=$e.makeSpan([],[yt(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),$e.makeSpan(["mord"],[r],t)},mathmlBuilder:function(e,t){var r=Nt(st(e.body),t),n=new zt.MathNode("mphantom",r),a=new zt.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),at({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:function(e,t){var r=$e.makeSpan(["inner"],[yt(e.body,t.withPhantom())]),n=$e.makeSpan(["fix"],[]);return $e.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:function(e,t){var r=Nt(st(e.body),t),n=new zt.MathNode("mphantom",r),a=new zt.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}}),at({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=Ft(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder:function(e,t){var r=yt(e.body,t),n=D(e.dy,t);return $e.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){var r=new zt.MathNode("mpadded",[Ct(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),at({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,r){var n=e.parser,a=r[0],i=Ft(t[0],"size"),o=Ft(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&Ft(a,"size").value,width:i.value,height:o.value}},htmlBuilder:function(e,t){var r=$e.makeSpan(["mord","rule"],[],t),n=D(e.width,t),a=D(e.height,t),i=e.shift?D(e.shift,t):0;return r.style.borderRightWidth=P(n),r.style.borderTopWidth=P(a),r.style.bottom=P(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=1.125*a*t.sizeMultiplier,r},mathmlBuilder:function(e,t){var r=D(e.width,t),n=D(e.height,t),a=e.shift?D(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new zt.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",P(r)),o.setAttribute("height",P(n));var s=new zt.MathNode("mpadded",[o]);return a>=0?s.setAttribute("height",P(a)):(s.setAttribute("height",P(a)),s.setAttribute("depth",P(-a))),s.setAttribute("voffset",P(a)),s}});var pn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];at({type:"sizing",names:pn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,a=e.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:pn.indexOf(n)+1,body:i}},htmlBuilder:function(e,t){var r=t.havingSize(e.size);return un(e.body,r,t)},mathmlBuilder:function(e,t){var r=t.havingSize(e.size),n=Nt(e.body,r),a=new zt.MathNode("mstyle",n);return a.setAttribute("mathsize",P(r.sizeMultiplier)),a}}),at({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,r){var n=e.parser,a=!1,i=!1,o=r[0]&&Ft(r[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=o.body[l].text))a=!0;else{if("b"!==s){a=!1,i=!1;break}i=!0}else a=!0,i=!0;var h=t[0];return{type:"smash",mode:n.mode,body:h,smashHeight:a,smashDepth:i}},htmlBuilder:function(e,t){var r=$e.makeSpan([],[yt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return $e.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var r=new zt.MathNode("mpadded",[Ct(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),at({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,r){var n=e.parser,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder:function(e,t){var r=yt(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=$e.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,a=n;t.style.id<b.TEXT.id&&(a=t.fontMetrics().xHeight);var i=n+a/4,o=r.height+r.depth+i+n,s=Sr.sqrtImage(o,t),l=s.span,h=s.ruleWidth,m=s.advanceWidth,c=l.height-h;c>r.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var u=l.height-r.height-i-h;r.style.paddingLeft=P(m);var p=$e.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+u)},{type:"elem",elem:l},{type:"kern",size:h}]},t);if(e.index){var d=t.havingStyle(b.SCRIPTSCRIPT),f=yt(e.index,d,t),g=.6*(p.height-p.depth),v=$e.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},t),y=$e.makeSpan(["root"],[v]);return $e.makeSpan(["mord","sqrt"],[y,p],t)}return $e.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var r=e.body,n=e.index;return n?new zt.MathNode("mroot",[Ct(r,t),Ct(n,t)]):new zt.MathNode("msqrt",[Ct(r,t)])}});var dn={display:b.DISPLAY,text:b.TEXT,script:b.SCRIPT,scriptscript:b.SCRIPTSCRIPT};at({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,a=e.parser,i=a.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder:function(e,t){var r=dn[e.style],n=t.havingStyle(r).withFont("");return un(e.body,n,t)},mathmlBuilder:function(e,t){var r=dn[e.style],n=t.havingStyle(r),a=Nt(e.body,n),i=new zt.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var fn=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===b.DISPLAY.size||r.alwaysHandleSupSub)?an:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===b.DISPLAY.size||r.limits)?cn:null:"accent"===r.type?l.isCharacterBox(r.base)?Ut:null:"horizBrace"===r.type&&!e.sub===r.isOver?Qr:null:null};it({type:"supsub",htmlBuilder:function(e,t){var r=fn(e,t);if(r)return r(e,t);var n,a,i,o=e.base,s=e.sup,h=e.sub,m=yt(o,t),c=t.fontMetrics(),u=0,p=0,d=o&&l.isCharacterBox(o);if(s){var f=t.havingStyle(t.style.sup());n=yt(s,f,t),d||(u=m.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(h){var g=t.havingStyle(t.style.sub());a=yt(h,g,t),d||(p=m.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===b.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var v,y=t.sizeMultiplier,x=P(.5/c.ptPerEm/y),w=null;if(a){var k=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(m instanceof j||k)&&(w=P(-m.italic))}if(n&&a){u=Math.max(u,i,n.depth+.25*c.xHeight),p=Math.max(p,c.sub2);var S=4*c.defaultRuleThickness;if(u-n.depth-(a.height-p)<S){p=S-(u-n.depth)+a.height;var M=.8*c.xHeight-(u-n.depth);M>0&&(u+=M,p-=M)}var z=[{type:"elem",elem:a,shift:p,marginRight:x,marginLeft:w},{type:"elem",elem:n,shift:-u,marginRight:x}];v=$e.makeVList({positionType:"individualShift",children:z},t)}else if(a){p=Math.max(p,c.sub1,a.height-.8*c.xHeight);var A=[{type:"elem",elem:a,marginLeft:w,marginRight:x}];v=$e.makeVList({positionType:"shift",positionData:p,children:A},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");u=Math.max(u,i,n.depth+.25*c.xHeight),v=$e.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:n,marginRight:x}]},t)}var T=vt(m,"right")||"mord";return $e.makeSpan([T],[m,$e.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,i=[Ct(e.base,t)];if(e.sub&&i.push(Ct(e.sub,t)),e.sup&&i.push(Ct(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;a=o&&"op"===o.type&&o.limits&&t.style===b.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===b.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===b.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===b.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===b.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===b.DISPLAY)?"mover":"msup"}return new zt.MathNode(a,i)}}),it({type:"atom",htmlBuilder:function(e,t){return $e.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var r=new zt.MathNode("mo",[At(e.text,e.mode)]);if("bin"===e.family){var n=Bt(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var gn={mi:"italic",mn:"normal",mtext:"normal"};it({type:"mathord",htmlBuilder:function(e,t){return $e.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var r=new zt.MathNode("mi",[At(e.text,e.mode,t)]),n=Bt(e,t)||"italic";return n!==gn[r.type]&&r.setAttribute("mathvariant",n),r}}),it({type:"textord",htmlBuilder:function(e,t){return $e.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var r,n=At(e.text,e.mode,t),a=Bt(e,t)||"normal";return r="text"===e.mode?new zt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new zt.MathNode("mn",[n]):"\\prime"===e.text?new zt.MathNode("mo",[n]):new zt.MathNode("mi",[n]),a!==gn[r.type]&&r.setAttribute("mathvariant",a),r}});var vn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},bn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};it({type:"spacing",htmlBuilder:function(e,t){if(bn.hasOwnProperty(e.text)){var r=bn[e.text].className||"";if("text"===e.mode){var a=$e.makeOrd(e,t,"textord");return a.classes.push(r),a}return $e.makeSpan(["mspace",r],[$e.mathsym(e.text,e.mode,t)],t)}if(vn.hasOwnProperty(e.text))return $e.makeSpan(["mspace",vn[e.text]],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!bn.hasOwnProperty(e.text)){if(vn.hasOwnProperty(e.text))return new zt.MathNode("mspace");throw new n('Unknown type of space "'+e.text+'"')}return new zt.MathNode("mtext",[new zt.TextNode("\xa0")])}});var yn=function(){var e=new zt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};it({type:"tag",mathmlBuilder:function(e,t){var r=new zt.MathNode("mtable",[new zt.MathNode("mtr",[yn(),new zt.MathNode("mtd",[qt(e.body,t)]),yn(),new zt.MathNode("mtd",[qt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var xn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},wn={"\\textbf":"textbf","\\textmd":"textmd"},kn={"\\textit":"textit","\\textup":"textup"},Sn=function(e,t){var r=e.font;return r?xn[r]?t.withTextFontFamily(xn[r]):wn[r]?t.withTextFontWeight(wn[r]):t.withTextFontShape(kn[r]):t};at({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"text",mode:r.mode,body:st(a),font:n}},htmlBuilder:function(e,t){var r=Sn(e,t),n=pt(e.body,r,!0);return $e.makeSpan(["mord","text"],n,r)},mathmlBuilder:function(e,t){var r=Sn(e,t);return qt(e.body,r)}}),at({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=yt(e.body,t),n=$e.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=$e.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return $e.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var r=new zt.MathNode("mo",[new zt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new zt.MathNode("munder",[Ct(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),at({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=yt(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return $e.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){return new zt.MathNode("mpadded",[Ct(e.body,t)],["vcenter"])}}),at({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var r=Mn(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var o=r[i];"~"===o&&(o="\\textasciitilde"),n.push($e.makeSymbol(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return $e.makeSpan(["mord","text"].concat(a.sizingClasses(t)),$e.tryCombineChars(n),a)},mathmlBuilder:function(e,t){var r=new zt.TextNode(Mn(e)),n=new zt.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Mn=function(e){return e.body.replace(/ /g,e.star?"\u2423":"\xa0")},zn=tt,An=function(){function e(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}return e.range=function(t,r){return r?t&&t.loc&&r.loc&&t.loc.lexer===r.loc.lexer?new e(t.loc.lexer,t.loc.start,r.loc.end):null:t&&t.loc},e}(),Tn=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,r){return new e(r,An.range(this,t))},e}(),Bn=new RegExp("[\u0300-\u036f]+$"),Nn=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Tn("EOF",new An(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new n("Unexpected character: '"+e[t]+"'",new Tn(e[t],new An(this,t,t+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[a]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Tn(a,new An(this,t,this.tokenRegex.lastIndex))},e}(),qn=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new n("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}this.current[e]=t},e}(),Cn=hn;mn("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),mn("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),mn("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),mn("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),mn("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),mn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),mn("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var In={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};mn("\\char",(function(e){var t,r=e.popToken(),a="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])a=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new n("\\char` missing argument");a=r.text.charCodeAt(0)}else t=10;if(t){if(null==(a=In[r.text])||a>=t)throw new n("Invalid base-"+t+" digit "+r.text);for(var i;null!=(i=In[e.future().text])&&i<t;)a*=t,a+=i,e.popToken()}return"\\@char{"+a+"}"}));var Rn=function(e,t,r){var a=e.consumeArg().tokens;if(1!==a.length)throw new n("\\newcommand's first argument must be a macro name");var i=a[0].text,o=e.isDefined(i);if(o&&!t)throw new n("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!o&&!r)throw new n("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(a=e.consumeArg().tokens).length&&"["===a[0].text){for(var l="",h=e.expandNextToken();"]"!==h.text&&"EOF"!==h.text;)l+=h.text,h=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new n("Invalid number of arguments: "+l);s=parseInt(l),a=e.consumeArg().tokens}return e.macros.set(i,{tokens:a,numArgs:s}),""};mn("\\newcommand",(function(e){return Rn(e,!1,!0)})),mn("\\renewcommand",(function(e){return Rn(e,!0,!1)})),mn("\\providecommand",(function(e){return Rn(e,!0,!0)})),mn("\\message",(function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((function(e){return e.text})).join("")),""})),mn("\\errmessage",(function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((function(e){return e.text})).join("")),""})),mn("\\show",(function(e){var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),zn[r],re.math[r],re.text[r]),""})),mn("\\bgroup","{"),mn("\\egroup","}"),mn("~","\\nobreakspace"),mn("\\lq","`"),mn("\\rq","'"),mn("\\aa","\\r a"),mn("\\AA","\\r A"),mn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),mn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),mn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),mn("\u212c","\\mathscr{B}"),mn("\u2130","\\mathscr{E}"),mn("\u2131","\\mathscr{F}"),mn("\u210b","\\mathscr{H}"),mn("\u2110","\\mathscr{I}"),mn("\u2112","\\mathscr{L}"),mn("\u2133","\\mathscr{M}"),mn("\u211b","\\mathscr{R}"),mn("\u212d","\\mathfrak{C}"),mn("\u210c","\\mathfrak{H}"),mn("\u2128","\\mathfrak{Z}"),mn("\\Bbbk","\\Bbb{k}"),mn("\xb7","\\cdotp"),mn("\\llap","\\mathllap{\\textrm{#1}}"),mn("\\rlap","\\mathrlap{\\textrm{#1}}"),mn("\\clap","\\mathclap{\\textrm{#1}}"),mn("\\mathstrut","\\vphantom{(}"),mn("\\underbar","\\underline{\\text{#1}}"),mn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),mn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),mn("\\ne","\\neq"),mn("\u2260","\\neq"),mn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),mn("\u2209","\\notin"),mn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),mn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),mn("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),mn("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),mn("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),mn("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),mn("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),mn("\u27c2","\\perp"),mn("\u203c","\\mathclose{!\\mkern-0.8mu!}"),mn("\u220c","\\notni"),mn("\u231c","\\ulcorner"),mn("\u231d","\\urcorner"),mn("\u231e","\\llcorner"),mn("\u231f","\\lrcorner"),mn("\xa9","\\copyright"),mn("\xae","\\textregistered"),mn("\ufe0f","\\textregistered"),mn("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),mn("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),mn("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),mn("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),mn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),mn("\u22ee","\\vdots"),mn("\\varGamma","\\mathit{\\Gamma}"),mn("\\varDelta","\\mathit{\\Delta}"),mn("\\varTheta","\\mathit{\\Theta}"),mn("\\varLambda","\\mathit{\\Lambda}"),mn("\\varXi","\\mathit{\\Xi}"),mn("\\varPi","\\mathit{\\Pi}"),mn("\\varSigma","\\mathit{\\Sigma}"),mn("\\varUpsilon","\\mathit{\\Upsilon}"),mn("\\varPhi","\\mathit{\\Phi}"),mn("\\varPsi","\\mathit{\\Psi}"),mn("\\varOmega","\\mathit{\\Omega}"),mn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),mn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),mn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),mn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),mn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),mn("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var On={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};mn("\\dots",(function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in On?t=On[r]:("\\not"===r.substr(0,4)||r in re.math&&l.contains(["bin","rel"],re.math[r].group))&&(t="\\dotsb"),t}));var En={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};mn("\\dotso",(function(e){return e.future().text in En?"\\ldots\\,":"\\ldots"})),mn("\\dotsc",(function(e){var t=e.future().text;return t in En&&","!==t?"\\ldots\\,":"\\ldots"})),mn("\\cdots",(function(e){return e.future().text in En?"\\@cdots\\,":"\\@cdots"})),mn("\\dotsb","\\cdots"),mn("\\dotsm","\\cdots"),mn("\\dotsi","\\!\\cdots"),mn("\\dotsx","\\ldots\\,"),mn("\\DOTSI","\\relax"),mn("\\DOTSB","\\relax"),mn("\\DOTSX","\\relax"),mn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),mn("\\,","\\tmspace+{3mu}{.1667em}"),mn("\\thinspace","\\,"),mn("\\>","\\mskip{4mu}"),mn("\\:","\\tmspace+{4mu}{.2222em}"),mn("\\medspace","\\:"),mn("\\;","\\tmspace+{5mu}{.2777em}"),mn("\\thickspace","\\;"),mn("\\!","\\tmspace-{3mu}{.1667em}"),mn("\\negthinspace","\\!"),mn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),mn("\\negthickspace","\\tmspace-{5mu}{.277em}"),mn("\\enspace","\\kern.5em "),mn("\\enskip","\\hskip.5em\\relax"),mn("\\quad","\\hskip1em\\relax"),mn("\\qquad","\\hskip2em\\relax"),mn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),mn("\\tag@paren","\\tag@literal{({#1})}"),mn("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new n("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),mn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),mn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),mn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),mn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),mn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),mn("\\newline","\\\\\\relax"),mn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Hn=P(z["Main-Regular"]["T".charCodeAt(0)][1]-.7*z["Main-Regular"]["A".charCodeAt(0)][1]);mn("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Hn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),mn("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Hn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),mn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),mn("\\@hspace","\\hskip #1\\relax"),mn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),mn("\\ordinarycolon",":"),mn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),mn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),mn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),mn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),mn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),mn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),mn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),mn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),mn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),mn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),mn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),mn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),mn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),mn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),mn("\u2237","\\dblcolon"),mn("\u2239","\\eqcolon"),mn("\u2254","\\coloneqq"),mn("\u2255","\\eqqcolon"),mn("\u2a74","\\Coloneqq"),mn("\\ratio","\\vcentcolon"),mn("\\coloncolon","\\dblcolon"),mn("\\colonequals","\\coloneqq"),mn("\\coloncolonequals","\\Coloneqq"),mn("\\equalscolon","\\eqqcolon"),mn("\\equalscoloncolon","\\Eqqcolon"),mn("\\colonminus","\\coloneq"),mn("\\coloncolonminus","\\Coloneq"),mn("\\minuscolon","\\eqcolon"),mn("\\minuscoloncolon","\\Eqcolon"),mn("\\coloncolonapprox","\\Colonapprox"),mn("\\coloncolonsim","\\Colonsim"),mn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),mn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),mn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),mn("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),mn("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),mn("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),mn("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),mn("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),mn("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),mn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),mn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),mn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),mn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),mn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),mn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),mn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),mn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),mn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),mn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),mn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),mn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),mn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),mn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),mn("\\imath","\\html@mathml{\\@imath}{\u0131}"),mn("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),mn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),mn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),mn("\u27e6","\\llbracket"),mn("\u27e7","\\rrbracket"),mn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),mn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),mn("\u2983","\\lBrace"),mn("\u2984","\\rBrace"),mn("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),mn("\u29b5","\\minuso"),mn("\\darr","\\downarrow"),mn("\\dArr","\\Downarrow"),mn("\\Darr","\\Downarrow"),mn("\\lang","\\langle"),mn("\\rang","\\rangle"),mn("\\uarr","\\uparrow"),mn("\\uArr","\\Uparrow"),mn("\\Uarr","\\Uparrow"),mn("\\N","\\mathbb{N}"),mn("\\R","\\mathbb{R}"),mn("\\Z","\\mathbb{Z}"),mn("\\alef","\\aleph"),mn("\\alefsym","\\aleph"),mn("\\Alpha","\\mathrm{A}"),mn("\\Beta","\\mathrm{B}"),mn("\\bull","\\bullet"),mn("\\Chi","\\mathrm{X}"),mn("\\clubs","\\clubsuit"),mn("\\cnums","\\mathbb{C}"),mn("\\Complex","\\mathbb{C}"),mn("\\Dagger","\\ddagger"),mn("\\diamonds","\\diamondsuit"),mn("\\empty","\\emptyset"),mn("\\Epsilon","\\mathrm{E}"),mn("\\Eta","\\mathrm{H}"),mn("\\exist","\\exists"),mn("\\harr","\\leftrightarrow"),mn("\\hArr","\\Leftrightarrow"),mn("\\Harr","\\Leftrightarrow"),mn("\\hearts","\\heartsuit"),mn("\\image","\\Im"),mn("\\infin","\\infty"),mn("\\Iota","\\mathrm{I}"),mn("\\isin","\\in"),mn("\\Kappa","\\mathrm{K}"),mn("\\larr","\\leftarrow"),mn("\\lArr","\\Leftarrow"),mn("\\Larr","\\Leftarrow"),mn("\\lrarr","\\leftrightarrow"),mn("\\lrArr","\\Leftrightarrow"),mn("\\Lrarr","\\Leftrightarrow"),mn("\\Mu","\\mathrm{M}"),mn("\\natnums","\\mathbb{N}"),mn("\\Nu","\\mathrm{N}"),mn("\\Omicron","\\mathrm{O}"),mn("\\plusmn","\\pm"),mn("\\rarr","\\rightarrow"),mn("\\rArr","\\Rightarrow"),mn("\\Rarr","\\Rightarrow"),mn("\\real","\\Re"),mn("\\reals","\\mathbb{R}"),mn("\\Reals","\\mathbb{R}"),mn("\\Rho","\\mathrm{P}"),mn("\\sdot","\\cdot"),mn("\\sect","\\S"),mn("\\spades","\\spadesuit"),mn("\\sub","\\subset"),mn("\\sube","\\subseteq"),mn("\\supe","\\supseteq"),mn("\\Tau","\\mathrm{T}"),mn("\\thetasym","\\vartheta"),mn("\\weierp","\\wp"),mn("\\Zeta","\\mathrm{Z}"),mn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),mn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),mn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),mn("\\bra","\\mathinner{\\langle{#1}|}"),mn("\\ket","\\mathinner{|{#1}\\rangle}"),mn("\\braket","\\mathinner{\\langle{#1}\\rangle}"),mn("\\Bra","\\left\\langle#1\\right|"),mn("\\Ket","\\left|#1\\right\\rangle"),mn("\\angln","{\\angl n}"),mn("\\blue","\\textcolor{##6495ed}{#1}"),mn("\\orange","\\textcolor{##ffa500}{#1}"),mn("\\pink","\\textcolor{##ff00af}{#1}"),mn("\\red","\\textcolor{##df0030}{#1}"),mn("\\green","\\textcolor{##28ae7b}{#1}"),mn("\\gray","\\textcolor{gray}{#1}"),mn("\\purple","\\textcolor{##9d38bd}{#1}"),mn("\\blueA","\\textcolor{##ccfaff}{#1}"),mn("\\blueB","\\textcolor{##80f6ff}{#1}"),mn("\\blueC","\\textcolor{##63d9ea}{#1}"),mn("\\blueD","\\textcolor{##11accd}{#1}"),mn("\\blueE","\\textcolor{##0c7f99}{#1}"),mn("\\tealA","\\textcolor{##94fff5}{#1}"),mn("\\tealB","\\textcolor{##26edd5}{#1}"),mn("\\tealC","\\textcolor{##01d1c1}{#1}"),mn("\\tealD","\\textcolor{##01a995}{#1}"),mn("\\tealE","\\textcolor{##208170}{#1}"),mn("\\greenA","\\textcolor{##b6ffb0}{#1}"),mn("\\greenB","\\textcolor{##8af281}{#1}"),mn("\\greenC","\\textcolor{##74cf70}{#1}"),mn("\\greenD","\\textcolor{##1fab54}{#1}"),mn("\\greenE","\\textcolor{##0d923f}{#1}"),mn("\\goldA","\\textcolor{##ffd0a9}{#1}"),mn("\\goldB","\\textcolor{##ffbb71}{#1}"),mn("\\goldC","\\textcolor{##ff9c39}{#1}"),mn("\\goldD","\\textcolor{##e07d10}{#1}"),mn("\\goldE","\\textcolor{##a75a05}{#1}"),mn("\\redA","\\textcolor{##fca9a9}{#1}"),mn("\\redB","\\textcolor{##ff8482}{#1}"),mn("\\redC","\\textcolor{##f9685d}{#1}"),mn("\\redD","\\textcolor{##e84d39}{#1}"),mn("\\redE","\\textcolor{##bc2612}{#1}"),mn("\\maroonA","\\textcolor{##ffbde0}{#1}"),mn("\\maroonB","\\textcolor{##ff92c6}{#1}"),mn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),mn("\\maroonD","\\textcolor{##ca337c}{#1}"),mn("\\maroonE","\\textcolor{##9e034e}{#1}"),mn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),mn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),mn("\\purpleC","\\textcolor{##aa87ff}{#1}"),mn("\\purpleD","\\textcolor{##7854ab}{#1}"),mn("\\purpleE","\\textcolor{##543b78}{#1}"),mn("\\mintA","\\textcolor{##f5f9e8}{#1}"),mn("\\mintB","\\textcolor{##edf2df}{#1}"),mn("\\mintC","\\textcolor{##e0e5cc}{#1}"),mn("\\grayA","\\textcolor{##f6f7f7}{#1}"),mn("\\grayB","\\textcolor{##f0f1f2}{#1}"),mn("\\grayC","\\textcolor{##e3e5e6}{#1}"),mn("\\grayD","\\textcolor{##d6d8da}{#1}"),mn("\\grayE","\\textcolor{##babec2}{#1}"),mn("\\grayF","\\textcolor{##888d93}{#1}"),mn("\\grayG","\\textcolor{##626569}{#1}"),mn("\\grayH","\\textcolor{##3b3e40}{#1}"),mn("\\grayI","\\textcolor{##21242c}{#1}"),mn("\\kaBlue","\\textcolor{##314453}{#1}"),mn("\\kaGreen","\\textcolor{##71B307}{#1}");var Ln={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Dn=function(){function e(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new qn(Cn,t.macros),this.mode=r,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Nn(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var a=this.consumeArg(["]"]);n=a.tokens,r=a.end}else{var i=this.consumeArg();n=i.tokens,t=i.start,r=i.end}return this.pushToken(new Tn("EOF",r.loc)),this.pushTokens(n),t.range(r,"")},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArg=function(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var a,i=this.future(),o=0,s=0;do{if(a=this.popToken(),t.push(a),"{"===a.text)++o;else if("}"===a.text){if(-1===--o)throw new n("Extra }",a)}else if("EOF"===a.text)throw new n("Unexpected end of input in a macro argument, expected '"+(e&&r?e[s]:"}")+"'",a);if(e&&r)if((0===o||1===o&&"{"===e[s])&&a.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}while(0!==o||r);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:a}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new n("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;a<r.length;a++){var i=this.popToken();if(r[a]!==i.text)throw new n("Use of the macro doesn't match its definition",i)}}for(var o=[],s=0;s<e;s++)o.push(this.consumeArg(t&&t[s+1]).tokens);return o},t.expandOnce=function(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===r[0]&&!this.isDefined(r))throw new n("Undefined control sequence: "+r);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new n("Too many expansions: infinite loop or need to increase maxExpand setting");var i=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs)for(var s=(i=i.slice()).length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new n("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new n("Not a valid argument number",l);var h;(h=i).splice.apply(h,[s,2].concat(o[+l.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof Tn){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Tn(e)]):void 0},t.expandTokens=function(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;){var n=this.expandOnce(!0);n instanceof Tn&&(n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(this.stack.pop()))}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"===typeof t?t(this):t;if("string"===typeof n){var a=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(a+1));)++a;for(var o=new Nn(n,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:a}}return n},t.isDefined=function(e){return this.macros.has(e)||zn.hasOwnProperty(e)||re.math.hasOwnProperty(e)||re.text.hasOwnProperty(e)||Ln.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:zn.hasOwnProperty(e)&&!zn[e].primitive},e}(),Pn={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},Fn={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},Vn=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Dn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.parseExpression=function(t,r){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==e.endOfExpression.indexOf(a.text))break;if(r&&a.text===r)break;if(t&&zn[a.text]&&zn[a.text].infix)break;var i=this.parseAtom(r);if(!i)break;"internal"!==i.type&&n.push(i)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},t.handleInfixNodes=function(e){for(var t,r=-1,a=0;a<e.length;a++)if("infix"===e[a].type){if(-1!==r)throw new n("only one infix operator per group",e[a].token);r=a,t=e[a].replaceWith}if(-1!==r&&t){var i,o,s=e.slice(0,r),l=e.slice(r+1);return i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[i,e[r],o],[]):this.callFunction(t,[i,o],[])]}return e},t.handleSupSubscript=function(e){var t=this.fetch(),r=t.text;this.consume(),this.consumeSpaces();var a=this.parseGroup(e);if(!a)throw new n("Expected group after '"+r+"'",t);return a},t.formatUnsupportedCmd=function(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}},t.parseAtom=function(e){var t,r,a=this.parseGroup("atom",e);if("text"===this.mode)return a;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(a&&"op"===a.type){var o="\\limits"===i.text;a.limits=o,a.alwaysHandleSupSub=!0}else{if(!a||"operatorname"!==a.type)throw new n("Limit controls must follow a math operator",i);a.alwaysHandleSupSub&&(a.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new n("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(r)throw new n("Double subscript",i);r=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(t)throw new n("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();"'"===this.fetch().text;)l.push(s),this.consume();"^"===this.fetch().text&&l.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:l}}}return t||r?{type:"supsub",mode:this.mode,base:a,sup:t,sub:r}:a},t.parseFunction=function(e,t){var r=this.fetch(),a=r.text,i=zn[a];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new n("Got function '"+a+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!i.allowedInText)throw new n("Can't use function '"+a+"' in text mode",r);if("math"===this.mode&&!1===i.allowedInMath)throw new n("Can't use function '"+a+"' in math mode",r);var o=this.parseArguments(a,i),s=o.args,l=o.optArgs;return this.callFunction(a,s,l,r,e)},t.callFunction=function(e,t,r,a,i){var o={funcName:e,parser:this,token:a,breakOnTokenText:i},s=zn[e];if(s&&s.handler)return s.handler(o,t,r);throw new n("No function handler for "+e)},t.parseArguments=function(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var a=[],i=[],o=0;o<r;o++){var s=t.argTypes&&t.argTypes[o],l=o<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===o&&null==i[0])&&(s="primitive");var h=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)i.push(h);else{if(null==h)throw new n("Null argument, please report this as a bug");a.push(h)}}return{args:a,optArgs:i}},t.parseGroupOfType=function(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var a=this.parseArgumentGroup(r,"text");return null!=a?{type:"styling",mode:a.mode,body:[a],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",r);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(r)throw new n("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new n("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new n("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,a="";"EOF"!==(n=this.fetch()).text;)a+=n.text,this.consume();return this.consume(),r.text=a,r},t.parseRegexGroup=function(e,t){for(var r,a=this.fetch(),i=a,o="";"EOF"!==(r=this.fetch()).text&&e.test(o+r.text);)o+=(i=r).text,this.consume();if(""===o)throw new n("Invalid "+t+": '"+a.text+"'",a);return a.range(i,o)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new n("Invalid color: '"+t.text+"'",t);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}},t.parseSizeGroup=function(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!a)throw new n("Invalid size: '"+t.text+"'",t);var i={number:+(a[1]+a[2]),unit:a[3]};if(!L(i))throw new n("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:r}},t.parseUrlGroup=function(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},t.parseArgumentGroup=function(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return t&&this.switchMode(n),i},t.parseGroup=function(e,t){var r,a=this.fetch(),i=a.text;if("{"===i||"\\begingroup"===i){this.consume();var o="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:An.range(a,l),body:s,semisimple:"\\begingroup"===i||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!Ln.hasOwnProperty(i)){if(this.settings.throwOnError)throw new n("Undefined control sequence: "+i,a);r=this.formatUnsupportedCmd(i),this.consume()}return r},t.formLigatures=function(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],a=n.text;"-"===a&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:An.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:An.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[r+1].text!==a||(e.splice(r,2,{type:"textord",mode:"text",loc:An.range(n,e[r+1]),text:a+a}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),a="*"===r.charAt(0);if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new n("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:a}}Fn.hasOwnProperty(t[0])&&!re[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Fn[t[0]]+t.substr(1));var i,o=Bn.exec(t);if(o&&("i"===(t=t.substring(0,o.index))?t="\u0131":"j"===t&&(t="\u0237")),re[this.mode][t]){this.settings.strict&&"math"===this.mode&&Oe.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=re[this.mode][t].group,h=An.range(e);if(Q.hasOwnProperty(l)){var m=l;s={type:"atom",mode:this.mode,family:m,loc:h,text:t}}else s={type:l,mode:this.mode,loc:h,text:t};i=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(w(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:An.range(e),text:t}}if(this.consume(),o)for(var c=0;c<o[0].length;c++){var u=o[0][c];if(!Pn[u])throw new n("Unknown accent ' "+u+"'",e);var p=Pn[u][this.mode]||Pn[u].text;if(!p)throw new n("Accent "+u+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:An.range(e),label:p,isStretchy:!1,isShifty:!0,base:i}}return i},e}();Vn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Gn=function(e,t){if(!("string"===typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Vn(e,t);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new n("\\tag works only in display equations");r.gullet.feed("\\df@tag"),a=[{type:"tag",mode:"text",body:a,tag:r.parse()}]}return a},Un=function(e,t,r){t.textContent="";var n=Wn(e,r).toNode();t.appendChild(n)};"undefined"!==typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!==typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Un=function(){throw new n("KaTeX doesn't work in quirks mode.")});var Yn=function(e,t,r){if(r.throwOnError||!(e instanceof n))throw e;var a=$e.makeSpan(["katex-error"],[new j(t)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+r.errorColor),a},Wn=function(e,t){var r=new h(t);try{return function(e,t,r){var n,a=Rt(r);if("mathml"===r.output)return It(e,t,a,r.displayMode,!0);if("html"===r.output){var i=wt(e,a);n=$e.makeSpan(["katex"],[i])}else{var o=It(e,t,a,r.displayMode,!1),s=wt(e,a);n=$e.makeSpan(["katex"],[o,s])}return Ot(n,r)}(Gn(e,r),e,r)}catch(n){return Yn(n,e,r)}},Xn={version:"0.13.24",render:Un,renderToString:function(e,t){return Wn(e,t).toMarkup()},ParseError:n,__parse:function(e,t){var r=new h(t);return Gn(e,r)},__renderToDomTree:Wn,__renderToHTMLTree:function(e,t){var r=new h(t);try{return function(e,t,r){var n=wt(e,Rt(r)),a=$e.makeSpan(["katex"],[n]);return Ot(a,r)}(Gn(e,r),0,r)}catch(n){return Yn(n,e,r)}},__setFontMetrics:function(e,t){z[e]=t},__defineSymbol:ne,__defineMacro:mn,__domTree:{Span:Y,Anchor:W,SymbolNode:j,SvgNode:$,PathNode:Z,LineNode:K}};return t=t.default}()},e.exports=t()}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js b/out/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js
deleted file mode 100644
index ee846ee..0000000
--- a/out/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[573],{20527:function(e){var t;"undefined"!==typeof self&&self,t=function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return $n}});var r=function e(t,r){this.position=void 0;var n,a="KaTeX parse error: "+t,i=r&&r.loc;if(i&&i.start<=i.end){var o=i.lexer.input;n=i.start;var s=i.end;n===o.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var l=o.slice(n,s).replace(/[^]/g,"$&\u0332");a+=(n>15?"\u2026"+o.slice(n-15,n):o.slice(0,n))+l+(s+15<o.length?o.slice(s,s+15)+"\u2026":o.slice(s))}var h=new Error(a);return h.name="ParseError",h.__proto__=e.prototype,h.position=n,h};r.prototype.__proto__=Error.prototype;var n=r,a=/([A-Z])/g,i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},o=/[&><"']/g,s=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},l={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(o,(function(e){return i[e]}))},hyphenate:function(e){return e.replace(a,"-$1").toLowerCase()},getBaseElem:s,isCharacterBox:function(e){var t=s(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},this.displayMode=l.deflt(e.displayMode,!1),this.output=l.deflt(e.output,"htmlAndMathml"),this.leqno=l.deflt(e.leqno,!1),this.fleqn=l.deflt(e.fleqn,!1),this.throwOnError=l.deflt(e.throwOnError,!0),this.errorColor=l.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,l.deflt(e.minRuleThickness,0)),this.colorIsTextColor=l.deflt(e.colorIsTextColor,!1),this.strict=l.deflt(e.strict,"warn"),this.trust=l.deflt(e.trust,!1),this.maxSize=Math.max(0,l.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,l.deflt(e.maxExpand,1e3)),this.globalGroup=l.deflt(e.globalGroup,!1)}var t=e.prototype;return t.reportNonstrict=function(e,t,r){var a=this.strict;if("function"===typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===a?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,r){var n=this.strict;if("function"===typeof n)try{n=n(e,t,r)}catch(a){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=l.protocolFromUrl(e.url));var t="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),m=function(){function e(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}var t=e.prototype;return t.sup=function(){return c[u[this.id]]},t.sub=function(){return c[p[this.id]]},t.fracNum=function(){return c[d[this.id]]},t.fracDen=function(){return c[f[this.id]]},t.cramp=function(){return c[g[this.id]]},t.text=function(){return c[v[this.id]]},t.isTight=function(){return this.size>=2},e}(),c=[new m(0,0,!1),new m(1,0,!0),new m(2,1,!1),new m(3,1,!0),new m(4,2,!1),new m(5,2,!0),new m(6,3,!1),new m(7,3,!0)],u=[4,5,4,5,6,7,6,7],p=[5,5,5,5,7,7,7,7],d=[2,3,4,5,6,7,6,7],f=[3,3,5,5,7,7,7,7],g=[1,1,3,3,5,5,7,7],v=[0,1,2,3,2,3,2,3],b={DISPLAY:c[0],TEXT:c[2],SCRIPT:c[4],SCRIPTSCRIPT:c[6]},y=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],x=[];function w(e){for(var t=0;t<x.length;t+=2)if(e>=x[t]&&e<=x[t+1])return!0;return!1}y.forEach((function(e){return e.blocks.forEach((function(e){return x.push.apply(x,e)}))}));var k=80,S={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},M=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){var e=function(e){return e.toText()};return this.children.map(e).join("")},e}(),z=function(e){return e.filter((function(e){return e})).join(" ")},A=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},T=function(e){var t=document.createElement(e);for(var r in t.className=z(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},B=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+l.escape(z(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=l.hyphenate(n)+":"+this.style[n]+";");for(var a in r&&(t+=' style="'+l.escape(r)+'"'),this.attributes)this.attributes.hasOwnProperty(a)&&(t+=" "+a+'="'+l.escape(this.attributes[a])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"},N=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,A.call(this,e,r,n),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"span")},t.toMarkup=function(){return B.call(this,"span")},e}(),C=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,A.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"a")},t.toMarkup=function(){return B.call(this,"a")},e}(),q=function(){function e(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=l.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+l.escape(t)+'"'),e+="'/>"},e}(),I={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"},R=function(){function e(e,t,r,n,a,i,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=a||0,this.width=i||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<y.length;t++)for(var r=y[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=I[this.text])}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=z(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=l.escape(z(this.classes)),t+='"');var r="";for(var n in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=l.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+l.escape(r)+'"');var a=l.escape(this.text);return e?(t+=">",t+=a,t+="</span>"):a},e}(),O=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e},t.toMarkup=function(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"},e}(),E=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",S[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+S[this.pathName]+"'/>"},e}(),H=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"},e}();function L(e){if(e instanceof R)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var D={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},P={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},F={"\xc5":"A","\xd0":"D","\xde":"o","\xe5":"a","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function V(e,t,r){if(!D[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=D[t][n];if(!a&&e[0]in F&&(n=F[e[0]].charCodeAt(0),a=D[t][n]),a||"text"!==r||w(n)&&(a=D[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var G={},U={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Y={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},W={math:{},text:{}},X=W;function _(e,t,r,n,a,i){W[e][a]={font:t,group:r,replace:n},i&&n&&(W[e][n]=W[e][a])}var j="math",$="text",Z="main",K="ams",J="accent-token",Q="bin",ee="close",te="inner",re="mathord",ne="op-token",ae="open",ie="punct",oe="rel",se="spacing",le="textord";_(j,Z,oe,"\u2261","\\equiv",!0),_(j,Z,oe,"\u227a","\\prec",!0),_(j,Z,oe,"\u227b","\\succ",!0),_(j,Z,oe,"\u223c","\\sim",!0),_(j,Z,oe,"\u22a5","\\perp"),_(j,Z,oe,"\u2aaf","\\preceq",!0),_(j,Z,oe,"\u2ab0","\\succeq",!0),_(j,Z,oe,"\u2243","\\simeq",!0),_(j,Z,oe,"\u2223","\\mid",!0),_(j,Z,oe,"\u226a","\\ll",!0),_(j,Z,oe,"\u226b","\\gg",!0),_(j,Z,oe,"\u224d","\\asymp",!0),_(j,Z,oe,"\u2225","\\parallel"),_(j,Z,oe,"\u22c8","\\bowtie",!0),_(j,Z,oe,"\u2323","\\smile",!0),_(j,Z,oe,"\u2291","\\sqsubseteq",!0),_(j,Z,oe,"\u2292","\\sqsupseteq",!0),_(j,Z,oe,"\u2250","\\doteq",!0),_(j,Z,oe,"\u2322","\\frown",!0),_(j,Z,oe,"\u220b","\\ni",!0),_(j,Z,oe,"\u221d","\\propto",!0),_(j,Z,oe,"\u22a2","\\vdash",!0),_(j,Z,oe,"\u22a3","\\dashv",!0),_(j,Z,oe,"\u220b","\\owns"),_(j,Z,ie,".","\\ldotp"),_(j,Z,ie,"\u22c5","\\cdotp"),_(j,Z,le,"#","\\#"),_($,Z,le,"#","\\#"),_(j,Z,le,"&","\\&"),_($,Z,le,"&","\\&"),_(j,Z,le,"\u2135","\\aleph",!0),_(j,Z,le,"\u2200","\\forall",!0),_(j,Z,le,"\u210f","\\hbar",!0),_(j,Z,le,"\u2203","\\exists",!0),_(j,Z,le,"\u2207","\\nabla",!0),_(j,Z,le,"\u266d","\\flat",!0),_(j,Z,le,"\u2113","\\ell",!0),_(j,Z,le,"\u266e","\\natural",!0),_(j,Z,le,"\u2663","\\clubsuit",!0),_(j,Z,le,"\u2118","\\wp",!0),_(j,Z,le,"\u266f","\\sharp",!0),_(j,Z,le,"\u2662","\\diamondsuit",!0),_(j,Z,le,"\u211c","\\Re",!0),_(j,Z,le,"\u2661","\\heartsuit",!0),_(j,Z,le,"\u2111","\\Im",!0),_(j,Z,le,"\u2660","\\spadesuit",!0),_(j,Z,le,"\xa7","\\S",!0),_($,Z,le,"\xa7","\\S"),_(j,Z,le,"\xb6","\\P",!0),_($,Z,le,"\xb6","\\P"),_(j,Z,le,"\u2020","\\dag"),_($,Z,le,"\u2020","\\dag"),_($,Z,le,"\u2020","\\textdagger"),_(j,Z,le,"\u2021","\\ddag"),_($,Z,le,"\u2021","\\ddag"),_($,Z,le,"\u2021","\\textdaggerdbl"),_(j,Z,ee,"\u23b1","\\rmoustache",!0),_(j,Z,ae,"\u23b0","\\lmoustache",!0),_(j,Z,ee,"\u27ef","\\rgroup",!0),_(j,Z,ae,"\u27ee","\\lgroup",!0),_(j,Z,Q,"\u2213","\\mp",!0),_(j,Z,Q,"\u2296","\\ominus",!0),_(j,Z,Q,"\u228e","\\uplus",!0),_(j,Z,Q,"\u2293","\\sqcap",!0),_(j,Z,Q,"\u2217","\\ast"),_(j,Z,Q,"\u2294","\\sqcup",!0),_(j,Z,Q,"\u25ef","\\bigcirc",!0),_(j,Z,Q,"\u2219","\\bullet"),_(j,Z,Q,"\u2021","\\ddagger"),_(j,Z,Q,"\u2240","\\wr",!0),_(j,Z,Q,"\u2a3f","\\amalg"),_(j,Z,Q,"&","\\And"),_(j,Z,oe,"\u27f5","\\longleftarrow",!0),_(j,Z,oe,"\u21d0","\\Leftarrow",!0),_(j,Z,oe,"\u27f8","\\Longleftarrow",!0),_(j,Z,oe,"\u27f6","\\longrightarrow",!0),_(j,Z,oe,"\u21d2","\\Rightarrow",!0),_(j,Z,oe,"\u27f9","\\Longrightarrow",!0),_(j,Z,oe,"\u2194","\\leftrightarrow",!0),_(j,Z,oe,"\u27f7","\\longleftrightarrow",!0),_(j,Z,oe,"\u21d4","\\Leftrightarrow",!0),_(j,Z,oe,"\u27fa","\\Longleftrightarrow",!0),_(j,Z,oe,"\u21a6","\\mapsto",!0),_(j,Z,oe,"\u27fc","\\longmapsto",!0),_(j,Z,oe,"\u2197","\\nearrow",!0),_(j,Z,oe,"\u21a9","\\hookleftarrow",!0),_(j,Z,oe,"\u21aa","\\hookrightarrow",!0),_(j,Z,oe,"\u2198","\\searrow",!0),_(j,Z,oe,"\u21bc","\\leftharpoonup",!0),_(j,Z,oe,"\u21c0","\\rightharpoonup",!0),_(j,Z,oe,"\u2199","\\swarrow",!0),_(j,Z,oe,"\u21bd","\\leftharpoondown",!0),_(j,Z,oe,"\u21c1","\\rightharpoondown",!0),_(j,Z,oe,"\u2196","\\nwarrow",!0),_(j,Z,oe,"\u21cc","\\rightleftharpoons",!0),_(j,K,oe,"\u226e","\\nless",!0),_(j,K,oe,"\ue010","\\@nleqslant"),_(j,K,oe,"\ue011","\\@nleqq"),_(j,K,oe,"\u2a87","\\lneq",!0),_(j,K,oe,"\u2268","\\lneqq",!0),_(j,K,oe,"\ue00c","\\@lvertneqq"),_(j,K,oe,"\u22e6","\\lnsim",!0),_(j,K,oe,"\u2a89","\\lnapprox",!0),_(j,K,oe,"\u2280","\\nprec",!0),_(j,K,oe,"\u22e0","\\npreceq",!0),_(j,K,oe,"\u22e8","\\precnsim",!0),_(j,K,oe,"\u2ab9","\\precnapprox",!0),_(j,K,oe,"\u2241","\\nsim",!0),_(j,K,oe,"\ue006","\\@nshortmid"),_(j,K,oe,"\u2224","\\nmid",!0),_(j,K,oe,"\u22ac","\\nvdash",!0),_(j,K,oe,"\u22ad","\\nvDash",!0),_(j,K,oe,"\u22ea","\\ntriangleleft"),_(j,K,oe,"\u22ec","\\ntrianglelefteq",!0),_(j,K,oe,"\u228a","\\subsetneq",!0),_(j,K,oe,"\ue01a","\\@varsubsetneq"),_(j,K,oe,"\u2acb","\\subsetneqq",!0),_(j,K,oe,"\ue017","\\@varsubsetneqq"),_(j,K,oe,"\u226f","\\ngtr",!0),_(j,K,oe,"\ue00f","\\@ngeqslant"),_(j,K,oe,"\ue00e","\\@ngeqq"),_(j,K,oe,"\u2a88","\\gneq",!0),_(j,K,oe,"\u2269","\\gneqq",!0),_(j,K,oe,"\ue00d","\\@gvertneqq"),_(j,K,oe,"\u22e7","\\gnsim",!0),_(j,K,oe,"\u2a8a","\\gnapprox",!0),_(j,K,oe,"\u2281","\\nsucc",!0),_(j,K,oe,"\u22e1","\\nsucceq",!0),_(j,K,oe,"\u22e9","\\succnsim",!0),_(j,K,oe,"\u2aba","\\succnapprox",!0),_(j,K,oe,"\u2246","\\ncong",!0),_(j,K,oe,"\ue007","\\@nshortparallel"),_(j,K,oe,"\u2226","\\nparallel",!0),_(j,K,oe,"\u22af","\\nVDash",!0),_(j,K,oe,"\u22eb","\\ntriangleright"),_(j,K,oe,"\u22ed","\\ntrianglerighteq",!0),_(j,K,oe,"\ue018","\\@nsupseteqq"),_(j,K,oe,"\u228b","\\supsetneq",!0),_(j,K,oe,"\ue01b","\\@varsupsetneq"),_(j,K,oe,"\u2acc","\\supsetneqq",!0),_(j,K,oe,"\ue019","\\@varsupsetneqq"),_(j,K,oe,"\u22ae","\\nVdash",!0),_(j,K,oe,"\u2ab5","\\precneqq",!0),_(j,K,oe,"\u2ab6","\\succneqq",!0),_(j,K,oe,"\ue016","\\@nsubseteqq"),_(j,K,Q,"\u22b4","\\unlhd"),_(j,K,Q,"\u22b5","\\unrhd"),_(j,K,oe,"\u219a","\\nleftarrow",!0),_(j,K,oe,"\u219b","\\nrightarrow",!0),_(j,K,oe,"\u21cd","\\nLeftarrow",!0),_(j,K,oe,"\u21cf","\\nRightarrow",!0),_(j,K,oe,"\u21ae","\\nleftrightarrow",!0),_(j,K,oe,"\u21ce","\\nLeftrightarrow",!0),_(j,K,oe,"\u25b3","\\vartriangle"),_(j,K,le,"\u210f","\\hslash"),_(j,K,le,"\u25bd","\\triangledown"),_(j,K,le,"\u25ca","\\lozenge"),_(j,K,le,"\u24c8","\\circledS"),_(j,K,le,"\xae","\\circledR"),_($,K,le,"\xae","\\circledR"),_(j,K,le,"\u2221","\\measuredangle",!0),_(j,K,le,"\u2204","\\nexists"),_(j,K,le,"\u2127","\\mho"),_(j,K,le,"\u2132","\\Finv",!0),_(j,K,le,"\u2141","\\Game",!0),_(j,K,le,"\u2035","\\backprime"),_(j,K,le,"\u25b2","\\blacktriangle"),_(j,K,le,"\u25bc","\\blacktriangledown"),_(j,K,le,"\u25a0","\\blacksquare"),_(j,K,le,"\u29eb","\\blacklozenge"),_(j,K,le,"\u2605","\\bigstar"),_(j,K,le,"\u2222","\\sphericalangle",!0),_(j,K,le,"\u2201","\\complement",!0),_(j,K,le,"\xf0","\\eth",!0),_($,Z,le,"\xf0","\xf0"),_(j,K,le,"\u2571","\\diagup"),_(j,K,le,"\u2572","\\diagdown"),_(j,K,le,"\u25a1","\\square"),_(j,K,le,"\u25a1","\\Box"),_(j,K,le,"\u25ca","\\Diamond"),_(j,K,le,"\xa5","\\yen",!0),_($,K,le,"\xa5","\\yen",!0),_(j,K,le,"\u2713","\\checkmark",!0),_($,K,le,"\u2713","\\checkmark"),_(j,K,le,"\u2136","\\beth",!0),_(j,K,le,"\u2138","\\daleth",!0),_(j,K,le,"\u2137","\\gimel",!0),_(j,K,le,"\u03dd","\\digamma",!0),_(j,K,le,"\u03f0","\\varkappa"),_(j,K,ae,"\u250c","\\@ulcorner",!0),_(j,K,ee,"\u2510","\\@urcorner",!0),_(j,K,ae,"\u2514","\\@llcorner",!0),_(j,K,ee,"\u2518","\\@lrcorner",!0),_(j,K,oe,"\u2266","\\leqq",!0),_(j,K,oe,"\u2a7d","\\leqslant",!0),_(j,K,oe,"\u2a95","\\eqslantless",!0),_(j,K,oe,"\u2272","\\lesssim",!0),_(j,K,oe,"\u2a85","\\lessapprox",!0),_(j,K,oe,"\u224a","\\approxeq",!0),_(j,K,Q,"\u22d6","\\lessdot"),_(j,K,oe,"\u22d8","\\lll",!0),_(j,K,oe,"\u2276","\\lessgtr",!0),_(j,K,oe,"\u22da","\\lesseqgtr",!0),_(j,K,oe,"\u2a8b","\\lesseqqgtr",!0),_(j,K,oe,"\u2251","\\doteqdot"),_(j,K,oe,"\u2253","\\risingdotseq",!0),_(j,K,oe,"\u2252","\\fallingdotseq",!0),_(j,K,oe,"\u223d","\\backsim",!0),_(j,K,oe,"\u22cd","\\backsimeq",!0),_(j,K,oe,"\u2ac5","\\subseteqq",!0),_(j,K,oe,"\u22d0","\\Subset",!0),_(j,K,oe,"\u228f","\\sqsubset",!0),_(j,K,oe,"\u227c","\\preccurlyeq",!0),_(j,K,oe,"\u22de","\\curlyeqprec",!0),_(j,K,oe,"\u227e","\\precsim",!0),_(j,K,oe,"\u2ab7","\\precapprox",!0),_(j,K,oe,"\u22b2","\\vartriangleleft"),_(j,K,oe,"\u22b4","\\trianglelefteq"),_(j,K,oe,"\u22a8","\\vDash",!0),_(j,K,oe,"\u22aa","\\Vvdash",!0),_(j,K,oe,"\u2323","\\smallsmile"),_(j,K,oe,"\u2322","\\smallfrown"),_(j,K,oe,"\u224f","\\bumpeq",!0),_(j,K,oe,"\u224e","\\Bumpeq",!0),_(j,K,oe,"\u2267","\\geqq",!0),_(j,K,oe,"\u2a7e","\\geqslant",!0),_(j,K,oe,"\u2a96","\\eqslantgtr",!0),_(j,K,oe,"\u2273","\\gtrsim",!0),_(j,K,oe,"\u2a86","\\gtrapprox",!0),_(j,K,Q,"\u22d7","\\gtrdot"),_(j,K,oe,"\u22d9","\\ggg",!0),_(j,K,oe,"\u2277","\\gtrless",!0),_(j,K,oe,"\u22db","\\gtreqless",!0),_(j,K,oe,"\u2a8c","\\gtreqqless",!0),_(j,K,oe,"\u2256","\\eqcirc",!0),_(j,K,oe,"\u2257","\\circeq",!0),_(j,K,oe,"\u225c","\\triangleq",!0),_(j,K,oe,"\u223c","\\thicksim"),_(j,K,oe,"\u2248","\\thickapprox"),_(j,K,oe,"\u2ac6","\\supseteqq",!0),_(j,K,oe,"\u22d1","\\Supset",!0),_(j,K,oe,"\u2290","\\sqsupset",!0),_(j,K,oe,"\u227d","\\succcurlyeq",!0),_(j,K,oe,"\u22df","\\curlyeqsucc",!0),_(j,K,oe,"\u227f","\\succsim",!0),_(j,K,oe,"\u2ab8","\\succapprox",!0),_(j,K,oe,"\u22b3","\\vartriangleright"),_(j,K,oe,"\u22b5","\\trianglerighteq"),_(j,K,oe,"\u22a9","\\Vdash",!0),_(j,K,oe,"\u2223","\\shortmid"),_(j,K,oe,"\u2225","\\shortparallel"),_(j,K,oe,"\u226c","\\between",!0),_(j,K,oe,"\u22d4","\\pitchfork",!0),_(j,K,oe,"\u221d","\\varpropto"),_(j,K,oe,"\u25c0","\\blacktriangleleft"),_(j,K,oe,"\u2234","\\therefore",!0),_(j,K,oe,"\u220d","\\backepsilon"),_(j,K,oe,"\u25b6","\\blacktriangleright"),_(j,K,oe,"\u2235","\\because",!0),_(j,K,oe,"\u22d8","\\llless"),_(j,K,oe,"\u22d9","\\gggtr"),_(j,K,Q,"\u22b2","\\lhd"),_(j,K,Q,"\u22b3","\\rhd"),_(j,K,oe,"\u2242","\\eqsim",!0),_(j,Z,oe,"\u22c8","\\Join"),_(j,K,oe,"\u2251","\\Doteq",!0),_(j,K,Q,"\u2214","\\dotplus",!0),_(j,K,Q,"\u2216","\\smallsetminus"),_(j,K,Q,"\u22d2","\\Cap",!0),_(j,K,Q,"\u22d3","\\Cup",!0),_(j,K,Q,"\u2a5e","\\doublebarwedge",!0),_(j,K,Q,"\u229f","\\boxminus",!0),_(j,K,Q,"\u229e","\\boxplus",!0),_(j,K,Q,"\u22c7","\\divideontimes",!0),_(j,K,Q,"\u22c9","\\ltimes",!0),_(j,K,Q,"\u22ca","\\rtimes",!0),_(j,K,Q,"\u22cb","\\leftthreetimes",!0),_(j,K,Q,"\u22cc","\\rightthreetimes",!0),_(j,K,Q,"\u22cf","\\curlywedge",!0),_(j,K,Q,"\u22ce","\\curlyvee",!0),_(j,K,Q,"\u229d","\\circleddash",!0),_(j,K,Q,"\u229b","\\circledast",!0),_(j,K,Q,"\u22c5","\\centerdot"),_(j,K,Q,"\u22ba","\\intercal",!0),_(j,K,Q,"\u22d2","\\doublecap"),_(j,K,Q,"\u22d3","\\doublecup"),_(j,K,Q,"\u22a0","\\boxtimes",!0),_(j,K,oe,"\u21e2","\\dashrightarrow",!0),_(j,K,oe,"\u21e0","\\dashleftarrow",!0),_(j,K,oe,"\u21c7","\\leftleftarrows",!0),_(j,K,oe,"\u21c6","\\leftrightarrows",!0),_(j,K,oe,"\u21da","\\Lleftarrow",!0),_(j,K,oe,"\u219e","\\twoheadleftarrow",!0),_(j,K,oe,"\u21a2","\\leftarrowtail",!0),_(j,K,oe,"\u21ab","\\looparrowleft",!0),_(j,K,oe,"\u21cb","\\leftrightharpoons",!0),_(j,K,oe,"\u21b6","\\curvearrowleft",!0),_(j,K,oe,"\u21ba","\\circlearrowleft",!0),_(j,K,oe,"\u21b0","\\Lsh",!0),_(j,K,oe,"\u21c8","\\upuparrows",!0),_(j,K,oe,"\u21bf","\\upharpoonleft",!0),_(j,K,oe,"\u21c3","\\downharpoonleft",!0),_(j,Z,oe,"\u22b6","\\origof",!0),_(j,Z,oe,"\u22b7","\\imageof",!0),_(j,K,oe,"\u22b8","\\multimap",!0),_(j,K,oe,"\u21ad","\\leftrightsquigarrow",!0),_(j,K,oe,"\u21c9","\\rightrightarrows",!0),_(j,K,oe,"\u21c4","\\rightleftarrows",!0),_(j,K,oe,"\u21a0","\\twoheadrightarrow",!0),_(j,K,oe,"\u21a3","\\rightarrowtail",!0),_(j,K,oe,"\u21ac","\\looparrowright",!0),_(j,K,oe,"\u21b7","\\curvearrowright",!0),_(j,K,oe,"\u21bb","\\circlearrowright",!0),_(j,K,oe,"\u21b1","\\Rsh",!0),_(j,K,oe,"\u21ca","\\downdownarrows",!0),_(j,K,oe,"\u21be","\\upharpoonright",!0),_(j,K,oe,"\u21c2","\\downharpoonright",!0),_(j,K,oe,"\u21dd","\\rightsquigarrow",!0),_(j,K,oe,"\u21dd","\\leadsto"),_(j,K,oe,"\u21db","\\Rrightarrow",!0),_(j,K,oe,"\u21be","\\restriction"),_(j,Z,le,"\u2018","`"),_(j,Z,le,"$","\\$"),_($,Z,le,"$","\\$"),_($,Z,le,"$","\\textdollar"),_(j,Z,le,"%","\\%"),_($,Z,le,"%","\\%"),_(j,Z,le,"_","\\_"),_($,Z,le,"_","\\_"),_($,Z,le,"_","\\textunderscore"),_(j,Z,le,"\u2220","\\angle",!0),_(j,Z,le,"\u221e","\\infty",!0),_(j,Z,le,"\u2032","\\prime"),_(j,Z,le,"\u25b3","\\triangle"),_(j,Z,le,"\u0393","\\Gamma",!0),_(j,Z,le,"\u0394","\\Delta",!0),_(j,Z,le,"\u0398","\\Theta",!0),_(j,Z,le,"\u039b","\\Lambda",!0),_(j,Z,le,"\u039e","\\Xi",!0),_(j,Z,le,"\u03a0","\\Pi",!0),_(j,Z,le,"\u03a3","\\Sigma",!0),_(j,Z,le,"\u03a5","\\Upsilon",!0),_(j,Z,le,"\u03a6","\\Phi",!0),_(j,Z,le,"\u03a8","\\Psi",!0),_(j,Z,le,"\u03a9","\\Omega",!0),_(j,Z,le,"A","\u0391"),_(j,Z,le,"B","\u0392"),_(j,Z,le,"E","\u0395"),_(j,Z,le,"Z","\u0396"),_(j,Z,le,"H","\u0397"),_(j,Z,le,"I","\u0399"),_(j,Z,le,"K","\u039a"),_(j,Z,le,"M","\u039c"),_(j,Z,le,"N","\u039d"),_(j,Z,le,"O","\u039f"),_(j,Z,le,"P","\u03a1"),_(j,Z,le,"T","\u03a4"),_(j,Z,le,"X","\u03a7"),_(j,Z,le,"\xac","\\neg",!0),_(j,Z,le,"\xac","\\lnot"),_(j,Z,le,"\u22a4","\\top"),_(j,Z,le,"\u22a5","\\bot"),_(j,Z,le,"\u2205","\\emptyset"),_(j,K,le,"\u2205","\\varnothing"),_(j,Z,re,"\u03b1","\\alpha",!0),_(j,Z,re,"\u03b2","\\beta",!0),_(j,Z,re,"\u03b3","\\gamma",!0),_(j,Z,re,"\u03b4","\\delta",!0),_(j,Z,re,"\u03f5","\\epsilon",!0),_(j,Z,re,"\u03b6","\\zeta",!0),_(j,Z,re,"\u03b7","\\eta",!0),_(j,Z,re,"\u03b8","\\theta",!0),_(j,Z,re,"\u03b9","\\iota",!0),_(j,Z,re,"\u03ba","\\kappa",!0),_(j,Z,re,"\u03bb","\\lambda",!0),_(j,Z,re,"\u03bc","\\mu",!0),_(j,Z,re,"\u03bd","\\nu",!0),_(j,Z,re,"\u03be","\\xi",!0),_(j,Z,re,"\u03bf","\\omicron",!0),_(j,Z,re,"\u03c0","\\pi",!0),_(j,Z,re,"\u03c1","\\rho",!0),_(j,Z,re,"\u03c3","\\sigma",!0),_(j,Z,re,"\u03c4","\\tau",!0),_(j,Z,re,"\u03c5","\\upsilon",!0),_(j,Z,re,"\u03d5","\\phi",!0),_(j,Z,re,"\u03c7","\\chi",!0),_(j,Z,re,"\u03c8","\\psi",!0),_(j,Z,re,"\u03c9","\\omega",!0),_(j,Z,re,"\u03b5","\\varepsilon",!0),_(j,Z,re,"\u03d1","\\vartheta",!0),_(j,Z,re,"\u03d6","\\varpi",!0),_(j,Z,re,"\u03f1","\\varrho",!0),_(j,Z,re,"\u03c2","\\varsigma",!0),_(j,Z,re,"\u03c6","\\varphi",!0),_(j,Z,Q,"\u2217","*",!0),_(j,Z,Q,"+","+"),_(j,Z,Q,"\u2212","-",!0),_(j,Z,Q,"\u22c5","\\cdot",!0),_(j,Z,Q,"\u2218","\\circ"),_(j,Z,Q,"\xf7","\\div",!0),_(j,Z,Q,"\xb1","\\pm",!0),_(j,Z,Q,"\xd7","\\times",!0),_(j,Z,Q,"\u2229","\\cap",!0),_(j,Z,Q,"\u222a","\\cup",!0),_(j,Z,Q,"\u2216","\\setminus"),_(j,Z,Q,"\u2227","\\land"),_(j,Z,Q,"\u2228","\\lor"),_(j,Z,Q,"\u2227","\\wedge",!0),_(j,Z,Q,"\u2228","\\vee",!0),_(j,Z,le,"\u221a","\\surd"),_(j,Z,ae,"\u27e8","\\langle",!0),_(j,Z,ae,"\u2223","\\lvert"),_(j,Z,ae,"\u2225","\\lVert"),_(j,Z,ee,"?","?"),_(j,Z,ee,"!","!"),_(j,Z,ee,"\u27e9","\\rangle",!0),_(j,Z,ee,"\u2223","\\rvert"),_(j,Z,ee,"\u2225","\\rVert"),_(j,Z,oe,"=","="),_(j,Z,oe,":",":"),_(j,Z,oe,"\u2248","\\approx",!0),_(j,Z,oe,"\u2245","\\cong",!0),_(j,Z,oe,"\u2265","\\ge"),_(j,Z,oe,"\u2265","\\geq",!0),_(j,Z,oe,"\u2190","\\gets"),_(j,Z,oe,">","\\gt",!0),_(j,Z,oe,"\u2208","\\in",!0),_(j,Z,oe,"\ue020","\\@not"),_(j,Z,oe,"\u2282","\\subset",!0),_(j,Z,oe,"\u2283","\\supset",!0),_(j,Z,oe,"\u2286","\\subseteq",!0),_(j,Z,oe,"\u2287","\\supseteq",!0),_(j,K,oe,"\u2288","\\nsubseteq",!0),_(j,K,oe,"\u2289","\\nsupseteq",!0),_(j,Z,oe,"\u22a8","\\models"),_(j,Z,oe,"\u2190","\\leftarrow",!0),_(j,Z,oe,"\u2264","\\le"),_(j,Z,oe,"\u2264","\\leq",!0),_(j,Z,oe,"<","\\lt",!0),_(j,Z,oe,"\u2192","\\rightarrow",!0),_(j,Z,oe,"\u2192","\\to"),_(j,K,oe,"\u2271","\\ngeq",!0),_(j,K,oe,"\u2270","\\nleq",!0),_(j,Z,se,"\xa0","\\ "),_(j,Z,se,"\xa0","\\space"),_(j,Z,se,"\xa0","\\nobreakspace"),_($,Z,se,"\xa0","\\ "),_($,Z,se,"\xa0"," "),_($,Z,se,"\xa0","\\space"),_($,Z,se,"\xa0","\\nobreakspace"),_(j,Z,se,null,"\\nobreak"),_(j,Z,se,null,"\\allowbreak"),_(j,Z,ie,",",","),_(j,Z,ie,";",";"),_(j,K,Q,"\u22bc","\\barwedge",!0),_(j,K,Q,"\u22bb","\\veebar",!0),_(j,Z,Q,"\u2299","\\odot",!0),_(j,Z,Q,"\u2295","\\oplus",!0),_(j,Z,Q,"\u2297","\\otimes",!0),_(j,Z,le,"\u2202","\\partial",!0),_(j,Z,Q,"\u2298","\\oslash",!0),_(j,K,Q,"\u229a","\\circledcirc",!0),_(j,K,Q,"\u22a1","\\boxdot",!0),_(j,Z,Q,"\u25b3","\\bigtriangleup"),_(j,Z,Q,"\u25bd","\\bigtriangledown"),_(j,Z,Q,"\u2020","\\dagger"),_(j,Z,Q,"\u22c4","\\diamond"),_(j,Z,Q,"\u22c6","\\star"),_(j,Z,Q,"\u25c3","\\triangleleft"),_(j,Z,Q,"\u25b9","\\triangleright"),_(j,Z,ae,"{","\\{"),_($,Z,le,"{","\\{"),_($,Z,le,"{","\\textbraceleft"),_(j,Z,ee,"}","\\}"),_($,Z,le,"}","\\}"),_($,Z,le,"}","\\textbraceright"),_(j,Z,ae,"{","\\lbrace"),_(j,Z,ee,"}","\\rbrace"),_(j,Z,ae,"[","\\lbrack",!0),_($,Z,le,"[","\\lbrack",!0),_(j,Z,ee,"]","\\rbrack",!0),_($,Z,le,"]","\\rbrack",!0),_(j,Z,ae,"(","\\lparen",!0),_(j,Z,ee,")","\\rparen",!0),_($,Z,le,"<","\\textless",!0),_($,Z,le,">","\\textgreater",!0),_(j,Z,ae,"\u230a","\\lfloor",!0),_(j,Z,ee,"\u230b","\\rfloor",!0),_(j,Z,ae,"\u2308","\\lceil",!0),_(j,Z,ee,"\u2309","\\rceil",!0),_(j,Z,le,"\\","\\backslash"),_(j,Z,le,"\u2223","|"),_(j,Z,le,"\u2223","\\vert"),_($,Z,le,"|","\\textbar",!0),_(j,Z,le,"\u2225","\\|"),_(j,Z,le,"\u2225","\\Vert"),_($,Z,le,"\u2225","\\textbardbl"),_($,Z,le,"~","\\textasciitilde"),_($,Z,le,"\\","\\textbackslash"),_($,Z,le,"^","\\textasciicircum"),_(j,Z,oe,"\u2191","\\uparrow",!0),_(j,Z,oe,"\u21d1","\\Uparrow",!0),_(j,Z,oe,"\u2193","\\downarrow",!0),_(j,Z,oe,"\u21d3","\\Downarrow",!0),_(j,Z,oe,"\u2195","\\updownarrow",!0),_(j,Z,oe,"\u21d5","\\Updownarrow",!0),_(j,Z,ne,"\u2210","\\coprod"),_(j,Z,ne,"\u22c1","\\bigvee"),_(j,Z,ne,"\u22c0","\\bigwedge"),_(j,Z,ne,"\u2a04","\\biguplus"),_(j,Z,ne,"\u22c2","\\bigcap"),_(j,Z,ne,"\u22c3","\\bigcup"),_(j,Z,ne,"\u222b","\\int"),_(j,Z,ne,"\u222b","\\intop"),_(j,Z,ne,"\u222c","\\iint"),_(j,Z,ne,"\u222d","\\iiint"),_(j,Z,ne,"\u220f","\\prod"),_(j,Z,ne,"\u2211","\\sum"),_(j,Z,ne,"\u2a02","\\bigotimes"),_(j,Z,ne,"\u2a01","\\bigoplus"),_(j,Z,ne,"\u2a00","\\bigodot"),_(j,Z,ne,"\u222e","\\oint"),_(j,Z,ne,"\u222f","\\oiint"),_(j,Z,ne,"\u2230","\\oiiint"),_(j,Z,ne,"\u2a06","\\bigsqcup"),_(j,Z,ne,"\u222b","\\smallint"),_($,Z,te,"\u2026","\\textellipsis"),_(j,Z,te,"\u2026","\\mathellipsis"),_($,Z,te,"\u2026","\\ldots",!0),_(j,Z,te,"\u2026","\\ldots",!0),_(j,Z,te,"\u22ef","\\@cdots",!0),_(j,Z,te,"\u22f1","\\ddots",!0),_(j,Z,le,"\u22ee","\\varvdots"),_(j,Z,J,"\u02ca","\\acute"),_(j,Z,J,"\u02cb","\\grave"),_(j,Z,J,"\xa8","\\ddot"),_(j,Z,J,"~","\\tilde"),_(j,Z,J,"\u02c9","\\bar"),_(j,Z,J,"\u02d8","\\breve"),_(j,Z,J,"\u02c7","\\check"),_(j,Z,J,"^","\\hat"),_(j,Z,J,"\u20d7","\\vec"),_(j,Z,J,"\u02d9","\\dot"),_(j,Z,J,"\u02da","\\mathring"),_(j,Z,re,"\ue131","\\@imath"),_(j,Z,re,"\ue237","\\@jmath"),_(j,Z,le,"\u0131","\u0131"),_(j,Z,le,"\u0237","\u0237"),_($,Z,le,"\u0131","\\i",!0),_($,Z,le,"\u0237","\\j",!0),_($,Z,le,"\xdf","\\ss",!0),_($,Z,le,"\xe6","\\ae",!0),_($,Z,le,"\u0153","\\oe",!0),_($,Z,le,"\xf8","\\o",!0),_($,Z,le,"\xc6","\\AE",!0),_($,Z,le,"\u0152","\\OE",!0),_($,Z,le,"\xd8","\\O",!0),_($,Z,J,"\u02ca","\\'"),_($,Z,J,"\u02cb","\\`"),_($,Z,J,"\u02c6","\\^"),_($,Z,J,"\u02dc","\\~"),_($,Z,J,"\u02c9","\\="),_($,Z,J,"\u02d8","\\u"),_($,Z,J,"\u02d9","\\."),_($,Z,J,"\xb8","\\c"),_($,Z,J,"\u02da","\\r"),_($,Z,J,"\u02c7","\\v"),_($,Z,J,"\xa8",'\\"'),_($,Z,J,"\u02dd","\\H"),_($,Z,J,"\u25ef","\\textcircled");var he={"--":!0,"---":!0,"``":!0,"''":!0};_($,Z,le,"\u2013","--",!0),_($,Z,le,"\u2013","\\textendash"),_($,Z,le,"\u2014","---",!0),_($,Z,le,"\u2014","\\textemdash"),_($,Z,le,"\u2018","`",!0),_($,Z,le,"\u2018","\\textquoteleft"),_($,Z,le,"\u2019","'",!0),_($,Z,le,"\u2019","\\textquoteright"),_($,Z,le,"\u201c","``",!0),_($,Z,le,"\u201c","\\textquotedblleft"),_($,Z,le,"\u201d","''",!0),_($,Z,le,"\u201d","\\textquotedblright"),_(j,Z,le,"\xb0","\\degree",!0),_($,Z,le,"\xb0","\\degree"),_($,Z,le,"\xb0","\\textdegree",!0),_(j,Z,le,"\xa3","\\pounds"),_(j,Z,le,"\xa3","\\mathsterling",!0),_($,Z,le,"\xa3","\\pounds"),_($,Z,le,"\xa3","\\textsterling",!0),_(j,K,le,"\u2720","\\maltese"),_($,K,le,"\u2720","\\maltese");for(var me='0123456789/@."',ce=0;ce<me.length;ce++){var ue=me.charAt(ce);_(j,Z,le,ue,ue)}for(var pe='0123456789!@*()-=+";:?/.,',de=0;de<pe.length;de++){var fe=pe.charAt(de);_($,Z,le,fe,fe)}for(var ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ve=0;ve<ge.length;ve++){var be=ge.charAt(ve);_(j,Z,re,be,be),_($,Z,le,be,be)}_(j,K,le,"C","\u2102"),_($,K,le,"C","\u2102"),_(j,K,le,"H","\u210d"),_($,K,le,"H","\u210d"),_(j,K,le,"N","\u2115"),_($,K,le,"N","\u2115"),_(j,K,le,"P","\u2119"),_($,K,le,"P","\u2119"),_(j,K,le,"Q","\u211a"),_($,K,le,"Q","\u211a"),_(j,K,le,"R","\u211d"),_($,K,le,"R","\u211d"),_(j,K,le,"Z","\u2124"),_($,K,le,"Z","\u2124"),_(j,Z,re,"h","\u210e"),_($,Z,re,"h","\u210e");for(var ye="",xe=0;xe<ge.length;xe++){var we=ge.charAt(xe);_(j,Z,re,we,ye=String.fromCharCode(55349,56320+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56372+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56424+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56580+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56736+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56788+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56840+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56944+xe)),_($,Z,le,we,ye),xe<26&&(_(j,Z,re,we,ye=String.fromCharCode(55349,56632+xe)),_($,Z,le,we,ye),_(j,Z,re,we,ye=String.fromCharCode(55349,56476+xe)),_($,Z,le,we,ye))}_(j,Z,re,"k",ye=String.fromCharCode(55349,56668)),_($,Z,le,"k",ye);for(var ke=0;ke<10;ke++){var Se=ke.toString();_(j,Z,re,Se,ye=String.fromCharCode(55349,57294+ke)),_($,Z,le,Se,ye),_(j,Z,re,Se,ye=String.fromCharCode(55349,57314+ke)),_($,Z,le,Se,ye),_(j,Z,re,Se,ye=String.fromCharCode(55349,57324+ke)),_($,Z,le,Se,ye),_(j,Z,re,Se,ye=String.fromCharCode(55349,57334+ke)),_($,Z,le,Se,ye)}for(var Me="\xd0\xde\xfe",ze=0;ze<Me.length;ze++){var Ae=Me.charAt(ze);_(j,Z,re,Ae,Ae),_($,Z,le,Ae,Ae)}var Te=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Be=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ne=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ce=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],qe=function(e,t){return t.size<2?e:Ne[e-1][t.size-1]},Ie=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ce[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new e(r)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:qe(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ce[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var r=qe(e.BASESIZE,t);return this.size===r&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!G[t=e>=5?0:e>=3?1:2]){var r=G[t]={cssEmPerMu:P.quad[t]/18};for(var n in P)P.hasOwnProperty(n)&&(r[n]=P[n][t])}return G[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Ie.BASESIZE=6;var Re=Ie,Oe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Ee={ex:!0,em:!0,mu:!0},He=function(e){return"string"!==typeof e&&(e=e.unit),e in Oe||e in Ee||"ex"===e},Le=function(e,t){var r;if(e.unit in Oe)r=Oe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var a;if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else{if("em"!==e.unit)throw new n("Invalid unit: '"+e.unit+"'");r=a.fontMetrics().quad}a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},De=function(e,t,r){return X[r][e]&&X[r][e].replace&&(e=X[r][e].replace),{value:e,metrics:V(e,t,r)}},Pe=function(e,t,r,n,a){var i,o=De(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),i=new R(e,s.height,s.depth,l,s.skew,s.width,a)}else"undefined"!==typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new R(e,0,0,0,0,0,a);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var h=n.getColor();h&&(i.style.color=h)}return i},Fe=function(e,t){if(z(e.classes)!==z(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},Ve=function(e){for(var t=0,r=0,n=0,a=0;a<e.children.length;a++){var i=e.children[a];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Ge=function(e,t,r,n){var a=new N(e,t,r,n);return Ve(a),a},Ue=function(e,t,r,n){return new N(e,t,r,n)},Ye=function(e){var t=new M(e);return Ve(t),t},We=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Xe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},_e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},je={fontMap:Xe,makeSymbol:Pe,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&De(e,"Main-Bold",t).metrics?Pe(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===X[t][e].font?Pe(e,"Main-Regular",t,r,n):Pe(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:Ge,makeSvgSpan:Ue,makeLineSpan:function(e,t,r){var n=Ge([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=n.height+"em",n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var a=new C(e,t,r,n);return Ve(a),a},makeFragment:Ye,wrapFragment:function(e,t){return e instanceof M?Ge([],[e],t):e},makeVList:function(e,t){for(var r=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,a=n,i=1;i<t.length;i++){var o=-t[i].shift-a-t[i].elem.depth,s=o-(t[i-1].elem.height+t[i-1].elem.depth);a+=o,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:n}}var l;if("top"===e.positionType){for(var h=e.positionData,m=0;m<e.children.length;m++){var c=e.children[m];h-="kern"===c.type?c.size:c.elem.height+c.elem.depth}l=h}else if("bottom"===e.positionType)l=-e.positionData;else{var u=e.children[0];if("elem"!==u.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-u.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-u.elem.depth}}return{children:e.children,depth:l}}(e),n=r.children,a=r.depth,i=0,o=0;o<n.length;o++){var s=n[o];if("elem"===s.type){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var h=Ge(["pstrut"],[]);h.style.height=i+"em";for(var m=[],c=a,u=a,p=a,d=0;d<n.length;d++){var f=n[d];if("kern"===f.type)p+=f.size;else{var g=f.elem,v=f.wrapperClasses||[],b=f.wrapperStyle||{},y=Ge(v,[h,g],void 0,b);y.style.top=-i-p-g.depth+"em",f.marginLeft&&(y.style.marginLeft=f.marginLeft),f.marginRight&&(y.style.marginRight=f.marginRight),m.push(y),p+=g.height+g.depth}c=Math.min(c,p),u=Math.max(u,p)}var x,w=Ge(["vlist"],m);if(w.style.height=u+"em",c<0){var k=Ge([],[]),S=Ge(["vlist"],[k]);S.style.height=-c+"em";var M=Ge(["vlist-s"],[new R("\u200b")]);x=[Ge(["vlist-r"],[w,M]),Ge(["vlist-r"],[S])]}else x=[Ge(["vlist-r"],[w])];var z=Ge(["vlist-t"],x);return 2===x.length&&z.classes.push("vlist-t2"),z.height=u,z.depth=-c,z},makeOrd:function(e,t,r){var a=e.mode,i=e.text,o=["mord"],s="math"===a||"text"===a&&t.font,l=s?t.font:t.fontFamily;if(55349===i.charCodeAt(0)){var h=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,a="math"===t?0:1;if(119808<=r&&r<120484){var i=Math.floor((r-119808)/26);return[Te[i][2],Te[i][a]]}if(120782<=r&&r<=120831){var o=Math.floor((r-120782)/10);return[Be[o][2],Be[o][a]]}if(120485===r||120486===r)return[Te[0][2],Te[0][a]];if(120486<r&&r<120782)return["",""];throw new n("Unsupported character: "+e)}(i,a),m=h[0],c=h[1];return Pe(i,m,a,t,o.concat(c))}if(l){var u,p;if("boldsymbol"===l){var d=function(e,t,r,n,a){return"textord"!==a&&De(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,a,0,0,r);u=d.fontName,p=[d.fontClass]}else s?(u=Xe[l].fontName,p=[l]):(u=We(l,t.fontWeight,t.fontShape),p=[l,t.fontWeight,t.fontShape]);if(De(i,u,a).metrics)return Pe(i,u,a,t,o.concat(p));if(he.hasOwnProperty(i)&&"Typewriter"===u.substr(0,10)){for(var f=[],g=0;g<i.length;g++)f.push(Pe(i[g],u,a,t,o.concat(p)));return Ye(f)}}if("mathord"===r)return Pe(i,"Math-Italic",a,t,o.concat(["mathnormal"]));if("textord"===r){var v=X[a][i]&&X[a][i].font;if("ams"===v){var b=We("amsrm",t.fontWeight,t.fontShape);return Pe(i,b,a,t,o.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==v&&v){var y=We(v,t.fontWeight,t.fontShape);return Pe(i,y,a,t,o.concat(y,t.fontWeight,t.fontShape))}var x=We("textrm",t.fontWeight,t.fontShape);return Pe(i,x,a,t,o.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:function(e,t){var r=Ge(["mspace"],[],t),n=Le(e,t);return r.style.marginRight=n+"em",r},staticSvg:function(e,t){var r=_e[e],n=r[0],a=r[1],i=r[2],o=new E(n),s=new O([o],{width:a+"em",height:i+"em",style:"width:"+a+"em",viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Ue(["overlay"],[s],t);return l.height=i,l.style.height=i+"em",l.style.width=a+"em",l},svgData:_e,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof R&&n instanceof R&&Fe(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e}},$e={number:3,unit:"mu"},Ze={number:4,unit:"mu"},Ke={number:5,unit:"mu"},Je={mord:{mop:$e,mbin:Ze,mrel:Ke,minner:$e},mop:{mord:$e,mop:$e,mrel:Ke,minner:$e},mbin:{mord:Ze,mop:Ze,mopen:Ze,minner:Ze},mrel:{mord:Ke,mop:Ke,mopen:Ke,minner:Ke},mopen:{},mclose:{mop:$e,mbin:Ze,mrel:Ke,minner:$e},mpunct:{mord:$e,mop:$e,mrel:Ke,mopen:$e,mclose:$e,mpunct:$e,minner:$e},minner:{mord:$e,mop:$e,mbin:Ze,mrel:Ke,mopen:$e,mpunct:$e,minner:$e}},Qe={mord:{mop:$e},mop:{mord:$e,mop:$e},mbin:{},mrel:{},mopen:{},mclose:{mop:$e},mpunct:{},minner:{mop:$e}},et={},tt={},rt={};function nt(e){for(var t=e.type,r=e.names,n=e.props,a=e.handler,i=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)et[r[l]]=s;t&&(i&&(tt[t]=i),o&&(rt[t]=o))}function at(e){nt({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var it=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},ot=function(e){return"ordgroup"===e.type?e.body:[e]},st=je.makeSpan,lt=["leftmost","mbin","mopen","mrel","mop","mpunct"],ht=["rightmost","mrel","mclose","mpunct"],mt={display:b.DISPLAY,text:b.TEXT,script:b.SCRIPT,scriptscript:b.SCRIPTSCRIPT},ct={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ut=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var a=[],i=0;i<e.length;i++){var o=bt(e[i],t);if(o instanceof M){var s=o.children;a.push.apply(a,s)}else a.push(o)}if(je.tryCombineChars(a),!r)return a;var h=t;if(1===e.length){var m=e[0];"sizing"===m.type?h=t.havingSize(m.size):"styling"===m.type&&(h=t.havingStyle(mt[m.style]))}var c=st([n[0]||"leftmost"],[],t),u=st([n[1]||"rightmost"],[],t),p="root"===r;return pt(a,(function(e,t){var r=t.classes[0],n=e.classes[0];"mbin"===r&&l.contains(ht,n)?t.classes[0]="mord":"mbin"===n&&l.contains(lt,r)&&(e.classes[0]="mord")}),{node:c},u,p),pt(a,(function(e,t){var r=gt(t),n=gt(e),a=r&&n?e.hasClass("mtight")?Qe[r][n]:Je[r][n]:null;if(a)return je.makeGlue(a,h)}),{node:c},u,p),a},pt=function e(t,r,n,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var s=t[o],l=dt(s);if(l)e(l.children,r,n,null,i);else{var h=!s.hasClass("mspace");if(h){var m=r(s,n.node);m&&(n.insertAfter?n.insertAfter(m):(t.unshift(m),o++))}h?n.node=s:i&&s.hasClass("newline")&&(n.node=st(["leftmost"])),n.insertAfter=function(e){return function(r){t.splice(e+1,0,r),o++}}(o)}}a&&t.pop()},dt=function(e){return e instanceof M||e instanceof C||e instanceof N&&e.hasClass("enclosing")?e:null},ft=function e(t,r){var n=dt(t);if(n){var a=n.children;if(a.length){if("right"===r)return e(a[a.length-1],"right");if("left"===r)return e(a[0],"left")}}return t},gt=function(e,t){return e?(t&&(e=ft(e,t)),ct[e.classes[0]]||null):null},vt=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return st(t.concat(r))},bt=function(e,t,r){if(!e)return st();if(tt[e.type]){var a=tt[e.type](e,t);if(r&&t.size!==r.size){a=st(t.sizingClasses(r),[a],t);var i=t.sizeMultiplier/r.sizeMultiplier;a.height*=i,a.depth*=i}return a}throw new n("Got group of unknown type: '"+e.type+"'")};function yt(e,t){var r=st(["base"],e,t),n=st(["strut"]);return n.style.height=r.height+r.depth+"em",n.style.verticalAlign=-r.depth+"em",r.children.unshift(n),r}function xt(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,a=ut(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(n=a.pop());for(var i,o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var h=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(h=!0);h||(o.push(yt(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(yt(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(yt(s,t)),r?((i=yt(ut(r,t,!0))).classes=["tag"],o.push(i)):n&&o.push(n);var m=st(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),i){var c=i.children[0];c.style.height=m.height+m.depth+"em",c.style.verticalAlign=-m.depth+"em"}return m}function wt(e){return new M(e)}var kt=function(){function e(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=z(this.classes));for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=l.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+l.escape(z(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),St=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return l.escape(this.toText())},t.toText=function(){return this.text},e}(),Mt={MathNode:kt,TextNode:St,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:wt},zt=function(e,t,r){return!X[t][e]||!X[t][e].replace||55349===e.charCodeAt(0)||he.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(e=X[t][e].replace),new Mt.TextNode(e)},At=function(e){return 1===e.length?e[0]:new Mt.MathNode("mrow",e)},Tt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var a=e.text;return l.contains(["\\imath","\\jmath"],a)?null:(X[n][a]&&X[n][a].replace&&(a=X[n][a].replace),V(a,je.fontMap[r].fontName,n)?je.fontMap[r].variant:null)},Bt=function(e,t,r){if(1===e.length){var n=Ct(e[0],t);return r&&n instanceof kt&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a,i=[],o=0;o<e.length;o++){var s=Ct(e[o],t);if(s instanceof kt&&a instanceof kt){if("mtext"===s.type&&"mtext"===a.type&&s.getAttribute("mathvariant")===a.getAttribute("mathvariant")){var l;(l=a.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===a.type){var h;(h=a.children).push.apply(h,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===a.type){var m=s.children[0];if(m instanceof St&&"."===m.text){var c;(c=a.children).push.apply(c,s.children);continue}}else if("mi"===a.type&&1===a.children.length){var u=a.children[0];if(u instanceof St&&"\u0338"===u.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof St&&p.text.length>0&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Nt=function(e,t,r){return At(Bt(e,t,r))},Ct=function(e,t){if(!e)return new Mt.MathNode("mrow");if(rt[e.type])return rt[e.type](e,t);throw new n("Got group of unknown type: '"+e.type+"'")};function qt(e,t,r,n,a){var i,o=Bt(e,r);i=1===o.length&&o[0]instanceof kt&&l.contains(["mrow","mtable"],o[0].type)?o[0]:new Mt.MathNode("mrow",o);var s=new Mt.MathNode("annotation",[new Mt.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var h=new Mt.MathNode("semantics",[i,s]),m=new Mt.MathNode("math",[h]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&m.setAttribute("display","block");var c=a?"katex":"katex-mathml";return je.makeSpan([c],[m])}var It=function(e){return new Re({style:e.displayMode?b.DISPLAY:b.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Rt=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=je.makeSpan(r,[e])}return e},Ot={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Et={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ht=function(e,t,r,n,a){var i,o=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=je.makeSpan(["stretchy",t],[],a),"fbox"===t){var s=a.color&&a.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new H({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new H({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new O(l,{width:"100%",height:o+"em"});i=je.makeSvgSpan([],[h],a)}return i.height=o,i.style.height=o+"em",i},Lt=function(e){var t=new Mt.MathNode("mo",[new Mt.TextNode(Ot[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Dt=function(e,t){var r=function(){var r=4e5,n=e.label.substr(1);if(l.contains(["widehat","widecheck","widetilde","utilde"],n)){var a,i,o,s="ordgroup"===(d=e.base).type?d.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(a=420,r=2364,o=.42,i=n+"4"):(a=312,r=2340,o=.34,i="tilde4");else{var h=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][h],a=[0,239,300,360,420][h],o=[0,.24,.3,.3,.36,.42][h],i=n+h):(r=[0,600,1033,2339,2340][h],a=[0,260,286,306,312][h],o=[0,.26,.286,.3,.306,.34][h],i="tilde"+h)}var m=new E(i),c=new O([m],{width:"100%",height:o+"em",viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"});return{span:je.makeSvgSpan([],[c],t),minWidth:0,height:o}}var u,p,d,f=[],g=Et[n],v=g[0],b=g[1],y=g[2],x=y/1e3,w=v.length;if(1===w)u=["hide-tail"],p=[g[3]];else if(2===w)u=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");u=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k<w;k++){var S=new E(v[k]),M=new O([S],{width:"400em",height:x+"em",viewBox:"0 0 "+r+" "+y,preserveAspectRatio:p[k]+" slice"}),z=je.makeSvgSpan([u[k]],[M],t);if(1===w)return{span:z,minWidth:b,height:x};z.style.height=x+"em",f.push(z)}return{span:je.makeSpan(["stretchy"],f,t),minWidth:b,height:x}}(),n=r.span,a=r.minWidth,i=r.height;return n.height=i,n.style.height=i+"em",a>0&&(n.style.minWidth=a+"em"),n};function Pt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Ft(e){var t=Vt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Vt(e){return e&&("atom"===e.type||Y.hasOwnProperty(e.type))?e:null}var Gt=function(e,t){var r,n,a;e&&"supsub"===e.type?(r=(n=Pt(e.base,"accent")).base,e.base=r,a=function(e){if(e instanceof N)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(bt(e,t)),e.base=n):r=(n=Pt(e,"accent")).base;var i=bt(r,t.havingCrampedStyle()),o=0;if(n.isShifty&&l.isCharacterBox(r)){var s=l.getBaseElem(r);o=L(bt(s,t.havingCrampedStyle())).skew}var h,m="\\c"===n.label,c=m?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)h=Dt(n,t),h=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+2*o+"em)",marginLeft:2*o+"em"}:void 0}]},t);else{var u,p;"\\vec"===n.label?(u=je.staticSvg("vec",t),p=je.svgData.vec[1]):((u=L(u=je.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,p=u.width,m&&(c+=u.depth)),h=je.makeSpan(["accent-body"],[u]);var d="\\textcircled"===n.label;d&&(h.classes.push("accent-full"),c=i.height);var f=o;d||(f-=p/2),h.style.left=f+"em","\\textcircled"===n.label&&(h.style.top=".2em"),h=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:h}]},t)}var g=je.makeSpan(["mord","accent"],[h],t);return a?(a.children[0]=g,a.height=Math.max(g.height,a.height),a.classes[0]="mord",a):g},Ut=function(e,t){var r=e.isStretchy?Lt(e.label):new Mt.MathNode("mo",[zt(e.label,e.mode)]),n=new Mt.MathNode("mover",[Ct(e.base,t),r]);return n.setAttribute("accent","true"),n},Yt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));nt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var r=it(t[0]),n=!Yt.test(e.funcName),a=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Gt,mathmlBuilder:Ut}),nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Gt,mathmlBuilder:Ut}),nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:function(e,t){var r=bt(e.base,t),n=Dt(e,t),a="\\utilde"===e.label?.12:0,i=je.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return je.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var r=Lt(e.label),n=new Mt.MathNode("munder",[Ct(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Wt=function(e){var t=new Mt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};nt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,r){var n=e.parser,a=e.funcName;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder:function(e,t){var r,n=t.style,a=t.havingStyle(n.sup()),i=je.wrapFragment(bt(e.body,a,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(a=t.havingStyle(n.sub()),(r=je.wrapFragment(bt(e.below,a,t),t)).classes.push(o+"-arrow-pad"));var s,l=Dt(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=i.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h},{type:"elem",elem:r,shift:c}]},t)}else s=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),je.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var r,n=Lt(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=Wt(Ct(e.body,t));if(e.below){var i=Wt(Ct(e.below,t));r=new Mt.MathNode("munderover",[n,i,a])}else r=new Mt.MathNode("mover",[n,a])}else if(e.below){var o=Wt(Ct(e.below,t));r=new Mt.MathNode("munder",[n,o])}else r=Wt(),r=new Mt.MathNode("mover",[n,r]);return r}});var Xt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},_t=function(e){return"textord"===e.type&&"@"===e.text};function jt(e,t,r){var n=Xt[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[a],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}nt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder:function(e,t){var r=t.havingStyle(t.style.sup()),n=je.wrapFragment(bt(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=.8-n.depth+"em",n.height=0,n.depth=0,n},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mrow",[Ct(e.label,t)]);return(r=new Mt.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new Mt.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),nt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){return{type:"cdlabelparent",mode:e.parser.mode,fragment:t[0]}},htmlBuilder:function(e,t){var r=je.wrapFragment(bt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:function(e,t){return new Mt.MathNode("mrow",[Ct(e.fragment,t)])}}),nt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var r=e.parser,a=Pt(t[0],"ordgroup").body,i="",o=0;o<a.length;o++)i+=Pt(a[o],"textord").text;var s,l=parseInt(i);if(isNaN(l))throw new n("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new n("\\@char with invalid code point "+i);return l<=65535?s=String.fromCharCode(l):(l-=65536,s=String.fromCharCode(55296+(l>>10),56320+(1023&l))),{type:"textord",mode:r.mode,text:s}}});var $t=function(e,t){var r=ut(e.body,t.withColor(e.color),!1);return je.makeFragment(r)},Zt=function(e,t){var r=Bt(e.body,t.withColor(e.color)),n=new Mt.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var r=e.parser,n=Pt(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:ot(a)}},htmlBuilder:$t,mathmlBuilder:Zt}),nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var r=e.parser,n=e.breakOnTokenText,a=Pt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:$t,mathmlBuilder:Zt}),nt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,r){var n=e.parser,a=r[0],i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&Pt(a,"size").value}},htmlBuilder:function(e,t){var r=je.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Le(e.size,t)+"em")),r},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Le(e.size,t)+"em")),r}});var Kt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Jt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new n("Expected a control sequence",e);return t},Qt=function(e,t,r,n){var a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};nt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,r=e.funcName;t.consumeSpaces();var a=t.fetch();if(Kt[a.text])return"\\global"!==r&&"\\\\globallong"!==r||(a.text=Kt[a.text]),Pt(t.parseFunction(),"internal");throw new n("Invalid token after macro prefix",a)}}),nt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=t.gullet.popToken(),i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new n("Expected a control sequence",a);for(var o,s=0,l=[[]];"{"!==t.gullet.future().text;)if("#"===(a=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),l[s].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new n('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new n('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if("EOF"===a.text)throw new n("Expected a macro definition");l[s].push(a.text)}var h=t.gullet.consumeArg().tokens;return o&&h.unshift(o),"\\edef"!==r&&"\\xdef"!==r||(h=t.gullet.expandTokens(h)).reverse(),t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:l},r===Kt[r]),{type:"internal",mode:t.mode}}}),nt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=Jt(t.gullet.popToken());t.gullet.consumeSpaces();var a=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return Qt(t,n,a,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),nt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=Jt(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return Qt(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var er=function(e,t,r){var n=V(X.math[e]&&X.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},tr=function(e,t,r,n){var a=r.havingBaseStyle(t),i=je.makeSpan(n.concat(a.sizingClasses(r)),[e],r),o=a.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=a.sizeMultiplier,i},rr=function(e,t,r){var n=t.havingBaseStyle(r),a=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=a+"em",e.height-=a,e.depth+=a},nr=function(e,t,r,n,a,i){var o=function(e,t,r,n){return je.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,a,n),s=tr(je.makeSpan(["delimsizing","size"+t],[o],n),b.TEXT,n,i);return r&&rr(s,n,b.TEXT),s},ar=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:je.makeSpan(["delimsizinginner",n],[je.makeSpan([],[je.makeSymbol(e,t,r)])])}},ir=function(e,t,r){var n=D["Size4-Regular"][e.charCodeAt(0)]?D["Size4-Regular"][e.charCodeAt(0)][4].toFixed(3):D["Size1-Regular"][e.charCodeAt(0)][4].toFixed(3),a=new E("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new O([a],{width:n+"em",height:t+"em",style:"width:"+n+"em",viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=je.makeSvgSpan([],[i],r);return o.height=t,o.style.height=t+"em",o.style.width=n+"em",{type:"elem",elem:o}},or={type:"kern",size:-.008},sr=["|","\\lvert","\\rvert","\\vert"],lr=["\\|","\\lVert","\\rVert","\\Vert"],hr=function(e,t,r,n,a,i){var o,s,h,m;o=h=m=e,s=null;var c="Size1-Regular";"\\uparrow"===e?h=m="\u23d0":"\\Uparrow"===e?h=m="\u2016":"\\downarrow"===e?o=h="\u23d0":"\\Downarrow"===e?o=h="\u2016":"\\updownarrow"===e?(o="\\uparrow",h="\u23d0",m="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",h="\u2016",m="\\Downarrow"):l.contains(sr,e)?h="\u2223":l.contains(lr,e)?h="\u2225":"["===e||"\\lbrack"===e?(o="\u23a1",h="\u23a2",m="\u23a3",c="Size4-Regular"):"]"===e||"\\rbrack"===e?(o="\u23a4",h="\u23a5",m="\u23a6",c="Size4-Regular"):"\\lfloor"===e||"\u230a"===e?(h=o="\u23a2",m="\u23a3",c="Size4-Regular"):"\\lceil"===e||"\u2308"===e?(o="\u23a1",h=m="\u23a2",c="Size4-Regular"):"\\rfloor"===e||"\u230b"===e?(h=o="\u23a5",m="\u23a6",c="Size4-Regular"):"\\rceil"===e||"\u2309"===e?(o="\u23a4",h=m="\u23a5",c="Size4-Regular"):"("===e||"\\lparen"===e?(o="\u239b",h="\u239c",m="\u239d",c="Size4-Regular"):")"===e||"\\rparen"===e?(o="\u239e",h="\u239f",m="\u23a0",c="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(o="\u23a7",s="\u23a8",m="\u23a9",h="\u23aa",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="\u23ab",s="\u23ac",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(o="\u23a7",m="\u23a9",h="\u23aa",c="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(o="\u23ab",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(o="\u23a7",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(o="\u23ab",m="\u23a9",h="\u23aa",c="Size4-Regular");var u=er(o,c,a),p=u.height+u.depth,d=er(h,c,a),f=d.height+d.depth,g=er(m,c,a),v=g.height+g.depth,y=0,x=1;if(null!==s){var w=er(s,c,a);y=w.height+w.depth,x=2}var k=p+v+y,S=k+Math.max(0,Math.ceil((t-k)/(x*f)))*x*f,M=n.fontMetrics().axisHeight;r&&(M*=n.sizeMultiplier);var z=S/2-M,A=[];if(A.push(ar(m,c,a)),A.push(or),null===s){var T=S-p-v+.016;A.push(ir(h,T,n))}else{var B=(S-p-v-y)/2+.016;A.push(ir(h,B,n)),A.push(or),A.push(ar(s,c,a)),A.push(or),A.push(ir(h,B,n))}A.push(or),A.push(ar(o,c,a));var N=n.havingBaseStyle(b.TEXT),C=je.makeVList({positionType:"bottom",positionData:z,children:A},N);return tr(je.makeSpan(["delimsizing","mult"],[C],N),b.TEXT,n,i)},mr=.08,cr=function(e,t,r,n,a){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,k);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,k,r)}return n}(e,n,r),o=new E(e,i),s=new O([o],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return je.makeSvgSpan(["hide-tail"],[s],a)},ur=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],pr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],dr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fr=[0,1.2,1.8,2.4,3],gr=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],vr=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"stack"}],br=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],yr=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},xr=function(e,t,r,n){for(var a=Math.min(2,3-n.style.size);a<r.length&&"stack"!==r[a].type;a++){var i=er(e,yr(r[a]),"math"),o=i.height+i.depth;if("small"===r[a].type&&(o*=n.havingBaseStyle(r[a].style).sizeMultiplier),o>t)return r[a]}return r[r.length-1]},wr=function(e,t,r,n,a,i){var o;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),o=l.contains(dr,e)?gr:l.contains(ur,e)?br:vr;var s=xr(e,t,o,n);return"small"===s.type?function(e,t,r,n,a,i){var o=je.makeSymbol(e,"Main-Regular",a,n),s=tr(o,t,n,i);return r&&rr(s,n,t),s}(e,s.style,r,n,a,i):"large"===s.type?nr(e,s.size,r,n,a,i):hr(e,t,r,n,a,i)},kr=function(e,t){var r,n,a=t.havingBaseSizing(),i=xr("\\surd",e*a.sizeMultiplier,br,a),o=a.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,h=0,m=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),h=(1+s)/o,(r=cr("sqrtMain",l=(1+s+mr)/o,m=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/o):"large"===i.type?(m=1080*fr[i.size],h=(fr[i.size]+s)/o,l=(fr[i.size]+s+mr)/o,(r=cr("sqrtSize"+i.size,l,m,s,t)).style.minWidth="1.02em",n=1/o):(l=e+s+mr,h=e+s,m=Math.floor(1e3*e+s)+80,(r=cr("sqrtTall",l,m,s,t)).style.minWidth="0.742em",n=1.056),r.height=h,r.style.height=l+"em",{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},Sr=function(e,t,r,a,i){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),l.contains(ur,e)||l.contains(dr,e))return nr(e,t,!1,r,a,i);if(l.contains(pr,e))return hr(e,fr[t],!1,r,a,i);throw new n("Illegal delimiter: '"+e+"'")},Mr=fr,zr=wr,Ar=function(e,t,r,n,a,i){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return wr(e,h,!0,n,a,i)},Tr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Br=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Nr(e,t){var r=Vt(e);if(r&&l.contains(Br,r.text))return r;throw new n(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Cr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}nt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var r=Nr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Tr[e.funcName].size,mclass:Tr[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return"."===e.delim?je.makeSpan([e.mclass]):Sr(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(zt(e.delim,e.mode));var r=new Mt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true"),r.setAttribute("minsize",Mr[e.size]+"em"),r.setAttribute("maxsize",Mr[e.size]+"em"),r}}),nt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!==typeof r)throw new n("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Nr(t[0],e).text,color:r}}}),nt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=Nr(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=Pt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){Cr(e);for(var r,n,a=ut(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l<a.length;l++)a[l].isMiddle?s=!0:(i=Math.max(a[l].height,i),o=Math.max(a[l].depth,o));if(i*=t.sizeMultiplier,o*=t.sizeMultiplier,r="."===e.left?vt(t,["mopen"]):Ar(e.left,i,o,t,e.mode,["mopen"]),a.unshift(r),s)for(var h=1;h<a.length;h++){var m=a[h].isMiddle;m&&(a[h]=Ar(m.delim,i,o,m.options,e.mode,[]))}if("."===e.right)n=vt(t,["mclose"]);else{var c=e.rightColor?t.withColor(e.rightColor):t;n=Ar(e.right,i,o,c,e.mode,["mclose"])}return a.push(n),je.makeSpan(["minner"],a,t)},mathmlBuilder:function(e,t){Cr(e);var r=Bt(e.body,t);if("."!==e.left){var n=new Mt.MathNode("mo",[zt(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var a=new Mt.MathNode("mo",[zt(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return At(r)}}),nt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=Nr(t[0],e);if(!e.parser.leftrightDepth)throw new n("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:function(e,t){var r;if("."===e.delim)r=vt(t,[]);else{r=Sr(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:function(e,t){var r="\\vert"===e.delim||"|"===e.delim?zt("|","text"):zt(e.delim,e.mode),n=new Mt.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var qr=function(e,t){var r,n,a,i=je.wrapFragment(bt(e.body,t),t),o=e.label.substr(1),s=t.sizeMultiplier,h=0,m=l.isCharacterBox(e.body);if("sout"===o)(r=je.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,h=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=Le({number:.6,unit:"pt"},t),u=Le({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var p=i.height+i.depth+c+u;i.style.paddingLeft=p/2+c+"em";var d=Math.floor(1e3*p*s),f="M400000 "+(n=d)+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z",g=new O([new E("phase",f)],{width:"400em",height:d/1e3+"em",viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});(r=je.makeSvgSpan(["hide-tail"],[g],t)).style.height=p+"em",h=i.depth+c+u}else{/cancel/.test(o)?m||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var v=0,b=0,y=0;/box/.test(o)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),b=v=t.fontMetrics().fboxsep+("colorbox"===o?0:y)):"angl"===o?(v=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),b=Math.max(0,.25-i.depth)):b=v=m?.2:0,r=Ht(i,o,v,b,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=y+"em"):"angl"===o&&.049!==y&&(r.style.borderTopWidth=y+"em",r.style.borderRightWidth=y+"em"),h=i.depth+b,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)a=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:h},{type:"elem",elem:i,shift:0}]},t);else{var x=/cancel|phase/.test(o)?["svg-align"]:[];a=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:h,wrapperClasses:x}]},t)}return/cancel/.test(o)&&(a.height=i.height,a.depth=i.depth),/cancel/.test(o)&&!m?je.makeSpan(["mord","cancel-lap"],[a],t):je.makeSpan(["mord"],[a],t)},Ir=function(e,t){var r=0,n=new Mt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ct(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,r){var n=e.parser,a=e.funcName,i=Pt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:qr,mathmlBuilder:Ir}),nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,r){var n=e.parser,a=e.funcName,i=Pt(t[0],"color-token").color,o=Pt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:qr,mathmlBuilder:Ir}),nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:qr,mathmlBuilder:Ir}),nt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\angl",body:t[0]}}});var Rr={};function Or(e){for(var t=e.type,r=e.names,n=e.props,a=e.handler,i=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)Rr[r[l]]=s;i&&(tt[t]=i),o&&(rt[t]=o)}function Er(e){var t=[];e.consumeSpaces();for(var r=e.fetch().text;"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var Hr=function(e){if(!e.parser.settings.displayMode)throw new n("{"+e.envName+"} can be used only in display mode.")};function Lr(e,t,r){var a=t.hskipBeforeAndAfter,i=t.addJot,o=t.cols,s=t.arraystretch,l=t.colSeparationType,h=t.addEqnNum,m=t.singleRow,c=t.emptySingleRow,u=t.maxNumCols,p=t.leqno;if(e.gullet.beginGroup(),m||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var d=e.gullet.expandMacroAsText("\\arraystretch");if(null==d)s=1;else if(!(s=parseFloat(d))||s<0)throw new n("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var f=[],g=[f],v=[],b=[];for(b.push(Er(e));;){var y=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),y={type:"ordgroup",mode:e.mode,body:y},r&&(y={type:"styling",mode:e.mode,style:r,body:[y]}),f.push(y);var x=e.fetch().text;if("&"===x){if(u&&f.length===u){if(m||l)throw new n("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===x){1===f.length&&"styling"===y.type&&0===y.body[0].body.length&&(g.length>1||!c)&&g.pop(),b.length<g.length+1&&b.push([]);break}if("\\\\"!==x)throw new n("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var w=void 0;" "!==e.gullet.future().text&&(w=e.parseSizeGroup(!0)),v.push(w?w.value:null),b.push(Er(e)),f=[],g.push(f)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:g,cols:o,rowGaps:v,hskipBeforeAndAfter:a,hLinesBeforeRow:b,colSeparationType:l,addEqnNum:h,leqno:p}}function Dr(e){return"d"===e.substr(0,1)?"display":"text"}var Pr=function(e,t){var r,a,i=e.body.length,o=e.hLinesBeforeRow,s=0,h=new Array(i),m=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,p=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(b.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var d="CD"===e.colSeparationType?Le({number:3,unit:"ex"},t):12*u,f=3*u,g=e.arraystretch*d,v=.7*g,y=.3*g,x=0;function w(e){for(var t=0;t<e.length;++t)t>0&&(x+=.25),m.push({pos:x,isDashed:e[t]})}for(w(o[0]),r=0;r<e.body.length;++r){var k=e.body[r],S=v,M=y;s<k.length&&(s=k.length);var z=new Array(k.length);for(a=0;a<k.length;++a){var A=bt(k[a],t);M<A.depth&&(M=A.depth),S<A.height&&(S=A.height),z[a]=A}var T=e.rowGaps[r],B=0;T&&(B=Le(T,t))>0&&(M<(B+=y)&&(M=B),B=0),e.addJot&&(M+=f),z.height=S,z.depth=M,x+=S,z.pos=x,x+=M+B,h[r]=z,w(o[r+1])}var N,C,q=x/2+t.fontMetrics().axisHeight,I=e.cols||[],R=[],O=[];if(e.addEqnNum)for(r=0;r<i;++r){var E=h[r],H=E.pos-q,L=je.makeSpan(["eqn-num"],[],t);L.depth=E.depth,L.height=E.height,O.push({type:"elem",elem:L,shift:H})}for(a=0,C=0;a<s||C<I.length;++a,++C){for(var D=I[C]||{},P=!0;"separator"===D.type;){if(P||((N=je.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",R.push(N)),"|"!==D.separator&&":"!==D.separator)throw new n("Invalid separator type: "+D.separator);var F="|"===D.separator?"solid":"dashed",V=je.makeSpan(["vertical-separator"],[],t);V.style.height=x+"em",V.style.borderRightWidth=c+"em",V.style.borderRightStyle=F,V.style.margin="0 -"+c/2+"em",V.style.verticalAlign=-(x-q)+"em",R.push(V),D=I[++C]||{},P=!1}if(!(a>=s)){var G=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(G=l.deflt(D.pregap,p))&&((N=je.makeSpan(["arraycolsep"],[])).style.width=G+"em",R.push(N));var U=[];for(r=0;r<i;++r){var Y=h[r],W=Y[a];if(W){var X=Y.pos-q;W.depth=Y.depth,W.height=Y.height,U.push({type:"elem",elem:W,shift:X})}}U=je.makeVList({positionType:"individualShift",children:U},t),U=je.makeSpan(["col-align-"+(D.align||"c")],[U]),R.push(U),(a<s-1||e.hskipBeforeAndAfter)&&0!==(G=l.deflt(D.postgap,p))&&((N=je.makeSpan(["arraycolsep"],[])).style.width=G+"em",R.push(N))}}if(h=je.makeSpan(["mtable"],R),m.length>0){for(var _=je.makeLineSpan("hline",t,c),j=je.makeLineSpan("hdashline",t,c),$=[{type:"elem",elem:h,shift:0}];m.length>0;){var Z=m.pop(),K=Z.pos-q;Z.isDashed?$.push({type:"elem",elem:j,shift:K}):$.push({type:"elem",elem:_,shift:K})}h=je.makeVList({positionType:"individualShift",children:$},t)}if(e.addEqnNum){var J=je.makeVList({positionType:"individualShift",children:O},t);return J=je.makeSpan(["tag"],[J],t),je.makeFragment([h,J])}return je.makeSpan(["mord"],[h],t)},Fr={c:"center ",l:"left ",r:"right "},Vr=function(e,t){for(var r=[],n=new Mt.MathNode("mtd",[],["mtr-glue"]),a=new Mt.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],s=[],l=0;l<o.length;l++)s.push(new Mt.MathNode("mtd",[Ct(o[l],t)]));e.addEqnNum&&(s.unshift(n),s.push(n),e.leqno?s.unshift(a):s.push(a)),r.push(new Mt.MathNode("mtr",s))}var h=new Mt.MathNode("mtable",r),m=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);h.setAttribute("rowspacing",m.toFixed(4)+"em");var c="",u="";if(e.cols&&e.cols.length>0){var p=e.cols,d="",f=!1,g=0,v=p.length;"separator"===p[0].type&&(c+="top ",g=1),"separator"===p[p.length-1].type&&(c+="bottom ",v-=1);for(var b=g;b<v;b++)"align"===p[b].type?(u+=Fr[p[b].align],f&&(d+="none "),f=!0):"separator"===p[b].type&&f&&(d+="|"===p[b].separator?"solid ":"dashed ",f=!1);h.setAttribute("columnalign",u.trim()),/[sd]/.test(d)&&h.setAttribute("columnlines",d.trim())}if("align"===e.colSeparationType){for(var y=e.cols||[],x="",w=1;w<y.length;w++)x+=w%2?"0em ":"1em ";h.setAttribute("columnspacing",x.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?h.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?h.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var k="",S=e.hLinesBeforeRow;c+=S[0].length>0?"left ":"",c+=S[S.length-1].length>0?"right ":"";for(var M=1;M<S.length-1;M++)k+=0===S[M].length?"none ":S[M][0]?"dashed ":"solid ";return/[sd]/.test(k)&&h.setAttribute("rowlines",k.trim()),""!==c&&(h=new Mt.MathNode("menclose",[h])).setAttribute("notation",c.trim()),e.arraystretch&&e.arraystretch<1&&(h=new Mt.MathNode("mstyle",[h])).setAttribute("scriptlevel","1"),h},Gr=function(e,t){-1===e.envName.indexOf("ed")&&Hr(e);var r,a=[],i=e.envName.indexOf("at")>-1?"alignat":"align",o=Lr(e.parser,{cols:a,addJot:!0,addEqnNum:"align"===e.envName||"alignat"===e.envName,emptySingleRow:!0,colSeparationType:i,maxNumCols:"split"===e.envName?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var h="",m=0;m<t[0].body.length;m++)h+=Pt(t[0].body[m],"textord").text;r=Number(h),s=2*r}var c=!s;o.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var a=Pt(e[t],"styling");Pt(a.body[0],"ordgroup").body.unshift(l)}if(c)s<e.length&&(s=e.length);else{var i=e.length/2;if(r<i)throw new n("Too many math in a row: expected "+r+", but got "+i,e[0])}}));for(var u=0;u<s;++u){var p="r",d=0;u%2===1?p="l":u>0&&c&&(d=1),a[u]={type:"align",align:p,pregap:d,postgap:0}}return o.colSeparationType=c?"align":"alignat",o};Or({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var r=(Vt(t[0])?[t[0]]:Pt(t[0],"ordgroup").body).map((function(e){var t=Ft(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new n("Unknown column alignment: "+t,e)})),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Lr(e.parser,a,Dr(e.envName))},htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,-1==="lcr".indexOf(r))throw new n("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),a.cols=[{type:"align",align:r}]}}var o=Lr(e.parser,a,Dr(e.envName)),s=Math.max.apply(Math,[0].concat(o.body.map((function(e){return e.length}))));return o.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Lr(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var r=(Vt(t[0])?[t[0]]:Pt(t[0],"ordgroup").body).map((function(e){var t=Ft(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new n("Unknown column alignment: "+t,e)}));if(r.length>1)throw new n("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=Lr(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new n("{subarray} can contain only one column");return a},htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=Lr(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Dr(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Gr,htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){l.contains(["gather","gather*"],e.envName)&&Hr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",addEqnNum:"gather"===e.envName,emptySingleRow:!0,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Gr,htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Hr(e);var t={addEqnNum:"equation"===e.envName,emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Pr,mathmlBuilder:Vr}),Or({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Hr(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var a,i,o=[],s=[o],l=0;l<t.length;l++){for(var h=t[l],m={type:"styling",body:[],mode:"math",style:"display"},c=0;c<h.length;c++)if(_t(h[c])){o.push(m);var u=Ft(h[c+=1]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(u)>-1);else{if(!("<>AV".indexOf(u)>-1))throw new n('Expected one of "<>AV=|." after @',h[c]);for(var d=0;d<2;d++){for(var f=!0,g=c+1;g<h.length;g++){if(i=u,("mathord"===(a=h[g]).type||"atom"===a.type)&&a.text===i){f=!1,c=g;break}if(_t(h[g]))throw new n("Missing a "+u+" character to complete a CD arrow.",h[g]);p[d].body.push(h[g])}if(f)throw new n("Missing a "+u+" character to complete a CD arrow.",h[c])}}var v={type:"styling",body:[jt(u,p,e)],mode:"math",style:"display"};o.push(v),m={type:"styling",body:[],mode:"math",style:"display"}}else m.body.push(h[c]);l%2===0?o.push(m):o.shift(),o=[],s.push(o)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}(e.parser)},htmlBuilder:Pr,mathmlBuilder:Vr}),nt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new n(e.funcName+" valid only within array environment")}});var Ur=Rr;nt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var r=e.parser,a=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new n("Invalid environment name",i);for(var o="",s=0;s<i.body.length;++s)o+=Pt(i.body[s],"textord").text;if("\\begin"===a){if(!Ur.hasOwnProperty(o))throw new n("No such environment: "+o,i);var l=Ur[o],h=r.parseArguments("\\begin{"+o+"}",l),m=h.args,c=h.optArgs,u={mode:r.mode,envName:o,parser:r},p=l.handler(u,m,c);r.expect("\\end",!1);var d=r.nextToken,f=Pt(r.parseFunction(),"environment");if(f.name!==o)throw new n("Mismatch: \\begin{"+o+"} matched by \\end{"+f.name+"}",d);return p}return{type:"environment",mode:r.mode,name:o,nameGroup:i}}});var Yr=je.makeSpan;function Wr(e,t){var r=ut(e.body,t,!0);return Yr([e.mclass],r,t)}function Xr(e,t){var r,n=Bt(e.body,t);return"minner"===e.mclass?Mt.newDocumentFragment(n):("mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new Mt.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new Mt.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(r.attributes.lspace="0em",r.attributes.rspace="0em")),r)}nt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.substr(5),body:ot(a),isCharacterBox:l.isCharacterBox(a)}},htmlBuilder:Wr,mathmlBuilder:Xr});var _r=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};nt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:_r(t[0]),body:ot(t[1]),isCharacterBox:l.isCharacterBox(t[1])}}}),nt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var r,n=e.parser,a=e.funcName,i=t[1],o=t[0];r="\\stackrel"!==a?_r(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:ot(i)},h={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===a?null:o,sub:"\\underset"===a?o:null};return{type:"mclass",mode:n.mode,mclass:r,body:[h],isCharacterBox:l.isCharacterBox(h)}},htmlBuilder:Wr,mathmlBuilder:Xr});var jr=function(e,t){var r=e.font,n=t.withFont(r);return bt(e.body,n)},$r=function(e,t){var r=e.font,n=t.withFont(r);return Ct(e.body,n)},Zr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};nt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=it(t[0]),i=n;return i in Zr&&(i=Zr[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:jr,mathmlBuilder:$r}),nt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=t[0],a=l.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:_r(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}}),nt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=e.breakOnTokenText,i=r.mode,o=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:jr,mathmlBuilder:$r});var Kr=function(e,t){var r=t;return"display"===e?r=r.id>=b.SCRIPT.id?r.text():b.DISPLAY:"text"===e&&r.size===b.DISPLAY.size?r=b.TEXT:"script"===e?r=b.SCRIPT:"scriptscript"===e&&(r=b.SCRIPTSCRIPT),r},Jr=function(e,t){var r,n=Kr(e.size,t.style),a=n.fracNum(),i=n.fracDen();r=t.havingStyle(a);var o=bt(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}r=t.havingStyle(i);var h,m,c,u,p,d,f,g,v,y,x=bt(e.denom,r,t);if(e.hasBarLine?(e.barSize?(m=Le(e.barSize,t),h=je.makeLineSpan("frac-line",t,m)):h=je.makeLineSpan("frac-line",t),m=h.height,c=h.height):(h=null,m=0,c=t.fontMetrics().defaultRuleThickness),n.size===b.DISPLAY.size||"display"===e.size?(u=t.fontMetrics().num1,p=m>0?3*c:7*c,d=t.fontMetrics().denom1):(m>0?(u=t.fontMetrics().num2,p=c):(u=t.fontMetrics().num3,p=3*c),d=t.fontMetrics().denom2),h){var w=t.fontMetrics().axisHeight;u-o.depth-(w+.5*m)<p&&(u+=p-(u-o.depth-(w+.5*m))),w-.5*m-(x.height-d)<p&&(d+=p-(w-.5*m-(x.height-d)));var k=-(w-.5*m);f=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:d},{type:"elem",elem:h,shift:k},{type:"elem",elem:o,shift:-u}]},t)}else{var S=u-o.depth-(x.height-d);S<p&&(u+=.5*(p-S),d+=.5*(p-S)),f=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:d},{type:"elem",elem:o,shift:-u}]},t)}return r=t.havingStyle(n),f.height*=r.sizeMultiplier/t.sizeMultiplier,f.depth*=r.sizeMultiplier/t.sizeMultiplier,g=n.size===b.DISPLAY.size?t.fontMetrics().delim1:n.size===b.SCRIPTSCRIPT.size?t.havingStyle(b.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?vt(t,["mopen"]):zr(e.leftDelim,g,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?je.makeSpan([]):null==e.rightDelim?vt(t,["mclose"]):zr(e.rightDelim,g,!0,t.havingStyle(n),e.mode,["mclose"]),je.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,je.makeSpan(["mfrac"],[f]),y],t)},Qr=function(e,t){var r=new Mt.MathNode("mfrac",[Ct(e.numer,t),Ct(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=Le(e.barSize,t);r.setAttribute("linethickness",n+"em")}}else r.setAttribute("linethickness","0px");var a=Kr(e.size,t.style);if(a.size!==t.style.size){r=new Mt.MathNode("mstyle",[r]);var i=a.size===b.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new Mt.MathNode("mo",[new Mt.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(r),null!=e.rightDelim){var l=new Mt.MathNode("mo",[new Mt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return At(o)}return r};nt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:function(e,t){var r,n=e.parser,a=e.funcName,i=t[0],o=t[1],s=null,l=null,h="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:o,hasBarLine:r,leftDelim:s,rightDelim:l,size:h,barSize:null}},htmlBuilder:Jr,mathmlBuilder:Qr}),nt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:function(e,t){var r=e.parser,n=(e.funcName,t[0]),a=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),nt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,r=e.parser,n=e.funcName,a=e.token;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:a}}});var en=["display","text","script","scriptscript"],tn=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var r,n=e.parser,a=t[4],i=t[5],o=it(t[0]),s="atom"===o.type&&"open"===o.family?tn(o.text):null,l=it(t[1]),h="atom"===l.type&&"close"===l.family?tn(l.text):null,m=Pt(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var u="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var d=Pt(p.body[0],"textord");u=en[Number(d.text)]}}else p=Pt(p,"textord"),u=en[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:s,rightDelim:h,size:u}},htmlBuilder:Jr,mathmlBuilder:Qr}),nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var r=e.parser,n=(e.funcName,e.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Pt(t[0],"size").value,token:n}}}),nt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var r=e.parser,n=(e.funcName,t[0]),a=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Pt(t[1],"infix").size),i=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Jr,mathmlBuilder:Qr});var rn=function(e,t){var r,n,a=t.style;"supsub"===e.type?(r=e.sup?bt(e.sup,t.havingStyle(a.sup()),t):bt(e.sub,t.havingStyle(a.sub()),t),n=Pt(e.base,"horizBrace")):n=Pt(e,"horizBrace");var i,o=bt(n.base,t.havingBaseStyle(b.DISPLAY)),s=Dt(n,t);if(n.isOver?(i=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=je.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=je.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):je.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return je.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};nt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:rn,mathmlBuilder:function(e,t){var r=Lt(e.label);return new Mt.MathNode(e.isOver?"mover":"munder",[Ct(e.base,t),r])}}),nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[1],a=Pt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ot(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var r=ut(e.body,t,!1);return je.makeAnchor(e.href,[],r,t)},mathmlBuilder:function(e,t){var r=Nt(e.body,t);return r instanceof kt||(r=new kt("mrow",[r])),r.setAttribute("href",e.href),r}}),nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=Pt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var o=n[i];"~"===o&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:ot(s)}}}),nt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler:function(e,t){return{type:"hbox",mode:e.parser.mode,body:ot(t[0])}},htmlBuilder:function(e,t){var r=ut(e.body,t,!1);return je.makeFragment(r)},mathmlBuilder:function(e,t){return new Mt.MathNode("mrow",Bt(e.body,t))}}),nt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var r,a=e.parser,i=e.funcName,o=(e.token,Pt(t[0],"raw").string),s=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var h=o.split(","),m=0;m<h.length;m++){var c=h[m].split("=");if(2!==c.length)throw new n("Error parsing key-value for \\htmlData");l["data-"+c[0].trim()]=c[1].trim()}r={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return a.settings.isTrusted(r)?{type:"html",mode:a.mode,attributes:l,body:ot(s)}:a.formatUnsupportedCmd(i)},htmlBuilder:function(e,t){var r=ut(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push.apply(n,e.attributes.class.trim().split(/\s+/));var a=je.makeSpan(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:function(e,t){return Nt(e.body,t)}}),nt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:ot(t[0]),mathml:ot(t[1])}},htmlBuilder:function(e,t){var r=ut(e.html,t,!1);return je.makeFragment(r)},mathmlBuilder:function(e,t){return Nt(e.mathml,t)}});var nn=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new n("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!He(r))throw new n("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};nt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,r){var a=e.parser,i={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(r[0])for(var h=Pt(r[0],"raw").string.split(","),m=0;m<h.length;m++){var c=h[m].split("=");if(2===c.length){var u=c[1].trim();switch(c[0].trim()){case"alt":l=u;break;case"width":i=nn(u);break;case"height":o=nn(u);break;case"totalheight":s=nn(u);break;default:throw new n("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var p=Pt(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:a.mode,alt:l,width:i,height:o,totalheight:s,src:p}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var r=Le(e.height,t),n=0;e.totalheight.number>0&&(n=Le(e.totalheight,t)-r,n=Number(n.toFixed(2)));var a=0;e.width.number>0&&(a=Le(e.width,t));var i={height:r+n+"em"};a>0&&(i.width=a+"em"),n>0&&(i.verticalAlign=-n+"em");var o=new q(e.src,e.alt,i);return o.height=r,o.depth=n,o},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Le(e.height,t),a=0;if(e.totalheight.number>0&&(a=(a=Le(e.totalheight,t)-n).toFixed(2),r.setAttribute("valign","-"+a+"em")),r.setAttribute("height",n+a+"em"),e.width.number>0){var i=Le(e.width,t);r.setAttribute("width",i+"em")}return r.setAttribute("src",e.src),r}}),nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=Pt(t[0],"size");if(r.settings.strict){var i="m"===n[1],o="mu"===a.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+a.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder:function(e,t){return je.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var r=Le(e.dimension,t);return new Mt.SpaceNode(r)}}),nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:function(e,t){var r;"clap"===e.alignment?(r=je.makeSpan([],[bt(e.body,t)]),r=je.makeSpan(["inner"],[r],t)):r=je.makeSpan(["inner"],[bt(e.body,t)]);var n=je.makeSpan(["fix"],[]),a=je.makeSpan([e.alignment],[r,n],t),i=je.makeSpan(["strut"]);return i.style.height=a.height+a.depth+"em",i.style.verticalAlign=-a.depth+"em",a.children.unshift(i),a=je.makeSpan(["thinbox"],[a],t),je.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mpadded",[Ct(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var r=e.funcName,n=e.parser,a=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:o}}}),nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new n("Mismatched "+e.funcName)}});var an=function(e,t){switch(t.style.size){case b.DISPLAY.size:return e.display;case b.TEXT.size:return e.text;case b.SCRIPT.size:return e.script;case b.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};nt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:ot(t[0]),text:ot(t[1]),script:ot(t[2]),scriptscript:ot(t[3])}},htmlBuilder:function(e,t){var r=an(e,t),n=ut(r,t,!1);return je.makeFragment(n)},mathmlBuilder:function(e,t){var r=an(e,t);return Nt(r,t)}});var on=function(e,t,r,n,a,i,o){e=je.makeSpan([],[e]);var s,h,m,c=r&&l.isCharacterBox(r);if(t){var u=bt(t,n.havingStyle(a.sup()),n);h={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var p=bt(r,n.havingStyle(a.sub()),n);s={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}if(h&&s){var d=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;m=je.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:i+"em"},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var f=e.height-o;m=je.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!h)return e;var g=e.depth+o;m=je.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:i+"em"},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var v=[m];if(s&&0!==i&&!c){var b=je.makeSpan(["mspace"],[],n);b.style.marginRight=i+"em",v.unshift(b)}return je.makeSpan(["mop","op-limits"],v,n)},sn=["\\smallint"],ln=function(e,t){var r,n,a,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,a=Pt(e.base,"op"),i=!0):a=Pt(e,"op");var o,s=t.style,h=!1;if(s.size===b.DISPLAY.size&&a.symbol&&!l.contains(sn,a.name)&&(h=!0),a.symbol){var m=h?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==a.name&&"\\oiiint"!==a.name||(c=a.name.substr(1),a.name="oiint"===c?"\\iint":"\\iiint"),o=je.makeSymbol(a.name,m,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),c.length>0){var u=o.italic,p=je.staticSvg(c+"Size"+(h?"2":"1"),t);o=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:h?.08:0}]},t),a.name="\\"+c,o.classes.unshift("mop"),o.italic=u}}else if(a.body){var d=ut(a.body,t,!0);1===d.length&&d[0]instanceof R?(o=d[0]).classes[0]="mop":o=je.makeSpan(["mop"],d,t)}else{for(var f=[],g=1;g<a.name.length;g++)f.push(je.mathsym(a.name[g],a.mode,t));o=je.makeSpan(["mop"],f,t)}var v=0,y=0;return(o instanceof R||"\\oiint"===a.name||"\\oiiint"===a.name)&&!a.suppressBaseShift&&(v=(o.height-o.depth)/2-t.fontMetrics().axisHeight,y=o.italic),i?on(o,r,n,t,s,y,v):(v&&(o.style.position="relative",o.style.top=v+"em"),o)},hn=function(e,t){var r;if(e.symbol)r=new kt("mo",[zt(e.name,e.mode)]),l.contains(sn,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new kt("mo",Bt(e.body,t));else{r=new kt("mi",[new St(e.name.slice(1))]);var n=new kt("mo",[zt("\u2061","text")]);r=e.parentIsSupSub?new kt("mrow",[r,n]):wt([r,n])}return r},mn={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};nt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:function(e,t){var r=e.parser,n=e.funcName;return 1===n.length&&(n=mn[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ln,mathmlBuilder:hn}),nt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ot(n)}},htmlBuilder:ln,mathmlBuilder:hn});var cn={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};nt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,r=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ln,mathmlBuilder:hn}),nt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,r=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ln,mathmlBuilder:hn}),nt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler:function(e){var t=e.parser,r=e.funcName;return 1===r.length&&(r=cn[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ln,mathmlBuilder:hn});var un={};function pn(e,t){un[e]=t}var dn=function(e,t){var r,n,a,i,o=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,a=Pt(e.base,"operatorname"),o=!0):a=Pt(e,"operatorname"),a.body.length>0){for(var s=a.body.map((function(e){var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=ut(s,t.withFont("mathrm"),!0),h=0;h<l.length;h++){var m=l[h];m instanceof R&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=je.makeSpan(["mop"],l,t)}else i=je.makeSpan(["mop"],[],t);return o?on(i,r,n,t,t.style,0,0):i};function fn(e,t,r){for(var n=ut(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var o=n[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[o+1]==="reset-size"+t.size&&(n[i].classes[o+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return je.makeFragment(n)}nt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"operatorname",mode:r.mode,body:ot(a),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:dn,mathmlBuilder:function(e,t){for(var r=Bt(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(i instanceof Mt.SpaceNode);else if(i instanceof Mt.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=i.children[0];1===i.children.length&&o instanceof Mt.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map((function(e){return e.toText()})).join("");r=[new Mt.TextNode(s)]}var l=new Mt.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new Mt.MathNode("mo",[zt("\u2061","text")]);return e.parentIsSupSub?new Mt.MathNode("mrow",[l,h]):Mt.newDocumentFragment([l,h])}}),pn("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),at({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?je.makeFragment(ut(e.body,t,!1)):je.makeSpan(["mord"],ut(e.body,t,!0),t)},mathmlBuilder:function(e,t){return Nt(e.body,t,!0)}}),nt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder:function(e,t){var r=bt(e.body,t.havingCrampedStyle()),n=je.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return je.makeSpan(["mord","overline"],[i],t)},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mo",[new Mt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new Mt.MathNode("mover",[Ct(e.body,t),r]);return n.setAttribute("accent","true"),n}}),nt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"phantom",mode:r.mode,body:ot(n)}},htmlBuilder:function(e,t){var r=ut(e.body,t.withPhantom(),!1);return je.makeFragment(r)},mathmlBuilder:function(e,t){var r=Bt(e.body,t);return new Mt.MathNode("mphantom",r)}}),nt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:function(e,t){var r=je.makeSpan([],[bt(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),je.makeSpan(["mord"],[r],t)},mathmlBuilder:function(e,t){var r=Bt(ot(e.body),t),n=new Mt.MathNode("mphantom",r),a=new Mt.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),nt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:function(e,t){var r=je.makeSpan(["inner"],[bt(e.body,t.withPhantom())]),n=je.makeSpan(["fix"],[]);return je.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:function(e,t){var r=Bt(ot(e.body),t),n=new Mt.MathNode("mphantom",r),a=new Mt.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}}),nt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=Pt(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder:function(e,t){var r=bt(e.body,t),n=Le(e.dy,t);return je.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mpadded",[Ct(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),nt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,r){var n=e.parser,a=r[0],i=Pt(t[0],"size"),o=Pt(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&Pt(a,"size").value,width:i.value,height:o.value}},htmlBuilder:function(e,t){var r=je.makeSpan(["mord","rule"],[],t),n=Le(e.width,t),a=Le(e.height,t),i=e.shift?Le(e.shift,t):0;return r.style.borderRightWidth=n+"em",r.style.borderTopWidth=a+"em",r.style.bottom=i+"em",r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=1.125*a*t.sizeMultiplier,r},mathmlBuilder:function(e,t){var r=Le(e.width,t),n=Le(e.height,t),a=e.shift?Le(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new Mt.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",r+"em"),o.setAttribute("height",n+"em");var s=new Mt.MathNode("mpadded",[o]);return a>=0?s.setAttribute("height","+"+a+"em"):(s.setAttribute("height",a+"em"),s.setAttribute("depth","+"+-a+"em")),s.setAttribute("voffset",a+"em"),s}});var gn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];nt({type:"sizing",names:gn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,a=e.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:gn.indexOf(n)+1,body:i}},htmlBuilder:function(e,t){var r=t.havingSize(e.size);return fn(e.body,r,t)},mathmlBuilder:function(e,t){var r=t.havingSize(e.size),n=Bt(e.body,r),a=new Mt.MathNode("mstyle",n);return a.setAttribute("mathsize",r.sizeMultiplier+"em"),a}}),nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,r){var n=e.parser,a=!1,i=!1,o=r[0]&&Pt(r[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=o.body[l].text))a=!0;else{if("b"!==s){a=!1,i=!1;break}i=!0}else a=!0,i=!0;var h=t[0];return{type:"smash",mode:n.mode,body:h,smashHeight:a,smashDepth:i}},htmlBuilder:function(e,t){var r=je.makeSpan([],[bt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return je.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mpadded",[Ct(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),nt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,r){var n=e.parser,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder:function(e,t){var r=bt(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=je.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,a=n;t.style.id<b.TEXT.id&&(a=t.fontMetrics().xHeight);var i=n+a/4,o=r.height+r.depth+i+n,s=kr(o,t),l=s.span,h=s.ruleWidth,m=s.advanceWidth,c=l.height-h;c>r.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var u=l.height-r.height-i-h;r.style.paddingLeft=m+"em";var p=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+u)},{type:"elem",elem:l},{type:"kern",size:h}]},t);if(e.index){var d=t.havingStyle(b.SCRIPTSCRIPT),f=bt(e.index,d,t),g=.6*(p.height-p.depth),v=je.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},t),y=je.makeSpan(["root"],[v]);return je.makeSpan(["mord","sqrt"],[y,p],t)}return je.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var r=e.body,n=e.index;return n?new Mt.MathNode("mroot",[Ct(r,t),Ct(n,t)]):new Mt.MathNode("msqrt",[Ct(r,t)])}});var vn={display:b.DISPLAY,text:b.TEXT,script:b.SCRIPT,scriptscript:b.SCRIPTSCRIPT};nt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,a=e.parser,i=a.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder:function(e,t){var r=vn[e.style],n=t.havingStyle(r).withFont("");return fn(e.body,n,t)},mathmlBuilder:function(e,t){var r=vn[e.style],n=t.havingStyle(r),a=Bt(e.body,n),i=new Mt.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var bn=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===b.DISPLAY.size||r.alwaysHandleSupSub)?ln:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===b.DISPLAY.size||r.limits)?dn:null:"accent"===r.type?l.isCharacterBox(r.base)?Gt:null:"horizBrace"===r.type&&!e.sub===r.isOver?rn:null:null};at({type:"supsub",htmlBuilder:function(e,t){var r=bn(e,t);if(r)return r(e,t);var n,a,i,o=e.base,s=e.sup,h=e.sub,m=bt(o,t),c=t.fontMetrics(),u=0,p=0,d=o&&l.isCharacterBox(o);if(s){var f=t.havingStyle(t.style.sup());n=bt(s,f,t),d||(u=m.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(h){var g=t.havingStyle(t.style.sub());a=bt(h,g,t),d||(p=m.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===b.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var v,y=t.sizeMultiplier,x=.5/c.ptPerEm/y+"em",w=null;if(a){var k=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(m instanceof R||k)&&(w=-m.italic+"em")}if(n&&a){u=Math.max(u,i,n.depth+.25*c.xHeight),p=Math.max(p,c.sub2);var S=4*c.defaultRuleThickness;if(u-n.depth-(a.height-p)<S){p=S-(u-n.depth)+a.height;var M=.8*c.xHeight-(u-n.depth);M>0&&(u+=M,p-=M)}var z=[{type:"elem",elem:a,shift:p,marginRight:x,marginLeft:w},{type:"elem",elem:n,shift:-u,marginRight:x}];v=je.makeVList({positionType:"individualShift",children:z},t)}else if(a){p=Math.max(p,c.sub1,a.height-.8*c.xHeight);var A=[{type:"elem",elem:a,marginLeft:w,marginRight:x}];v=je.makeVList({positionType:"shift",positionData:p,children:A},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");u=Math.max(u,i,n.depth+.25*c.xHeight),v=je.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:n,marginRight:x}]},t)}var T=gt(m,"right")||"mord";return je.makeSpan([T],[m,je.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,i=[Ct(e.base,t)];if(e.sub&&i.push(Ct(e.sub,t)),e.sup&&i.push(Ct(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;a=o&&"op"===o.type&&o.limits&&t.style===b.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===b.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===b.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===b.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===b.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===b.DISPLAY)?"mover":"msup"}return new Mt.MathNode(a,i)}}),at({type:"atom",htmlBuilder:function(e,t){return je.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mo",[zt(e.text,e.mode)]);if("bin"===e.family){var n=Tt(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var yn={mi:"italic",mn:"normal",mtext:"normal"};at({type:"mathord",htmlBuilder:function(e,t){return je.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mi",[zt(e.text,e.mode,t)]),n=Tt(e,t)||"italic";return n!==yn[r.type]&&r.setAttribute("mathvariant",n),r}}),at({type:"textord",htmlBuilder:function(e,t){return je.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var r,n=zt(e.text,e.mode,t),a=Tt(e,t)||"normal";return r="text"===e.mode?new Mt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new Mt.MathNode("mn",[n]):"\\prime"===e.text?new Mt.MathNode("mo",[n]):new Mt.MathNode("mi",[n]),a!==yn[r.type]&&r.setAttribute("mathvariant",a),r}});var xn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},wn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};at({type:"spacing",htmlBuilder:function(e,t){if(wn.hasOwnProperty(e.text)){var r=wn[e.text].className||"";if("text"===e.mode){var a=je.makeOrd(e,t,"textord");return a.classes.push(r),a}return je.makeSpan(["mspace",r],[je.mathsym(e.text,e.mode,t)],t)}if(xn.hasOwnProperty(e.text))return je.makeSpan(["mspace",xn[e.text]],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!wn.hasOwnProperty(e.text)){if(xn.hasOwnProperty(e.text))return new Mt.MathNode("mspace");throw new n('Unknown type of space "'+e.text+'"')}return new Mt.MathNode("mtext",[new Mt.TextNode("\xa0")])}});var kn=function(){var e=new Mt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};at({type:"tag",mathmlBuilder:function(e,t){var r=new Mt.MathNode("mtable",[new Mt.MathNode("mtr",[kn(),new Mt.MathNode("mtd",[Nt(e.body,t)]),kn(),new Mt.MathNode("mtd",[Nt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Sn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Mn={"\\textbf":"textbf","\\textmd":"textmd"},zn={"\\textit":"textit","\\textup":"textup"},An=function(e,t){var r=e.font;return r?Sn[r]?t.withTextFontFamily(Sn[r]):Mn[r]?t.withTextFontWeight(Mn[r]):t.withTextFontShape(zn[r]):t};nt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"text",mode:r.mode,body:ot(a),font:n}},htmlBuilder:function(e,t){var r=An(e,t),n=ut(e.body,r,!0);return je.makeSpan(["mord","text"],n,r)},mathmlBuilder:function(e,t){var r=An(e,t);return Nt(e.body,r)}}),nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=bt(e.body,t),n=je.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=je.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return je.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mo",[new Mt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new Mt.MathNode("munder",[Ct(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),nt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=bt(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return je.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){return new Mt.MathNode("mpadded",[Ct(e.body,t)],["vcenter"])}}),nt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var r=Tn(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var o=r[i];"~"===o&&(o="\\textasciitilde"),n.push(je.makeSymbol(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return je.makeSpan(["mord","text"].concat(a.sizingClasses(t)),je.tryCombineChars(n),a)},mathmlBuilder:function(e,t){var r=new Mt.TextNode(Tn(e)),n=new Mt.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Tn=function(e){return e.body.replace(/ /g,e.star?"\u2423":"\xa0")},Bn=et,Nn=function(){function e(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}return e.range=function(t,r){return r?t&&t.loc&&r.loc&&t.loc.lexer===r.loc.lexer?new e(t.loc.lexer,t.loc.start,r.loc.end):null:t&&t.loc},e}(),Cn=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,r){return new e(r,Nn.range(this,t))},e}(),qn=new RegExp("[\u0300-\u036f]+$"),In=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Cn("EOF",new Nn(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new n("Unexpected character: '"+e[t]+"'",new Cn(e[t],new Nn(this,t,t+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[a]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Cn(a,new Nn(this,t,this.tokenRegex.lastIndex))},e}(),Rn=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new n("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}this.current[e]=t},e}(),On=un;pn("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),pn("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),pn("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),pn("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),pn("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),pn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),pn("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var En={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};pn("\\char",(function(e){var t,r=e.popToken(),a="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])a=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new n("\\char` missing argument");a=r.text.charCodeAt(0)}else t=10;if(t){if(null==(a=En[r.text])||a>=t)throw new n("Invalid base-"+t+" digit "+r.text);for(var i;null!=(i=En[e.future().text])&&i<t;)a*=t,a+=i,e.popToken()}return"\\@char{"+a+"}"}));var Hn=function(e,t,r){var a=e.consumeArg().tokens;if(1!==a.length)throw new n("\\newcommand's first argument must be a macro name");var i=a[0].text,o=e.isDefined(i);if(o&&!t)throw new n("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!o&&!r)throw new n("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(a=e.consumeArg().tokens).length&&"["===a[0].text){for(var l="",h=e.expandNextToken();"]"!==h.text&&"EOF"!==h.text;)l+=h.text,h=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new n("Invalid number of arguments: "+l);s=parseInt(l),a=e.consumeArg().tokens}return e.macros.set(i,{tokens:a,numArgs:s}),""};pn("\\newcommand",(function(e){return Hn(e,!1,!0)})),pn("\\renewcommand",(function(e){return Hn(e,!0,!1)})),pn("\\providecommand",(function(e){return Hn(e,!0,!0)})),pn("\\message",(function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((function(e){return e.text})).join("")),""})),pn("\\errmessage",(function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((function(e){return e.text})).join("")),""})),pn("\\show",(function(e){var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Bn[r],X.math[r],X.text[r]),""})),pn("\\bgroup","{"),pn("\\egroup","}"),pn("~","\\nobreakspace"),pn("\\lq","`"),pn("\\rq","'"),pn("\\aa","\\r a"),pn("\\AA","\\r A"),pn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),pn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),pn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),pn("\u212c","\\mathscr{B}"),pn("\u2130","\\mathscr{E}"),pn("\u2131","\\mathscr{F}"),pn("\u210b","\\mathscr{H}"),pn("\u2110","\\mathscr{I}"),pn("\u2112","\\mathscr{L}"),pn("\u2133","\\mathscr{M}"),pn("\u211b","\\mathscr{R}"),pn("\u212d","\\mathfrak{C}"),pn("\u210c","\\mathfrak{H}"),pn("\u2128","\\mathfrak{Z}"),pn("\\Bbbk","\\Bbb{k}"),pn("\xb7","\\cdotp"),pn("\\llap","\\mathllap{\\textrm{#1}}"),pn("\\rlap","\\mathrlap{\\textrm{#1}}"),pn("\\clap","\\mathclap{\\textrm{#1}}"),pn("\\mathstrut","\\vphantom{(}"),pn("\\underbar","\\underline{\\text{#1}}"),pn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),pn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),pn("\\ne","\\neq"),pn("\u2260","\\neq"),pn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),pn("\u2209","\\notin"),pn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),pn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),pn("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),pn("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),pn("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),pn("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),pn("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),pn("\u27c2","\\perp"),pn("\u203c","\\mathclose{!\\mkern-0.8mu!}"),pn("\u220c","\\notni"),pn("\u231c","\\ulcorner"),pn("\u231d","\\urcorner"),pn("\u231e","\\llcorner"),pn("\u231f","\\lrcorner"),pn("\xa9","\\copyright"),pn("\xae","\\textregistered"),pn("\ufe0f","\\textregistered"),pn("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),pn("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),pn("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),pn("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),pn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),pn("\u22ee","\\vdots"),pn("\\varGamma","\\mathit{\\Gamma}"),pn("\\varDelta","\\mathit{\\Delta}"),pn("\\varTheta","\\mathit{\\Theta}"),pn("\\varLambda","\\mathit{\\Lambda}"),pn("\\varXi","\\mathit{\\Xi}"),pn("\\varPi","\\mathit{\\Pi}"),pn("\\varSigma","\\mathit{\\Sigma}"),pn("\\varUpsilon","\\mathit{\\Upsilon}"),pn("\\varPhi","\\mathit{\\Phi}"),pn("\\varPsi","\\mathit{\\Psi}"),pn("\\varOmega","\\mathit{\\Omega}"),pn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),pn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),pn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),pn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),pn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),pn("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ln={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};pn("\\dots",(function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Ln?t=Ln[r]:("\\not"===r.substr(0,4)||r in X.math&&l.contains(["bin","rel"],X.math[r].group))&&(t="\\dotsb"),t}));var Dn={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};pn("\\dotso",(function(e){return e.future().text in Dn?"\\ldots\\,":"\\ldots"})),pn("\\dotsc",(function(e){var t=e.future().text;return t in Dn&&","!==t?"\\ldots\\,":"\\ldots"})),pn("\\cdots",(function(e){return e.future().text in Dn?"\\@cdots\\,":"\\@cdots"})),pn("\\dotsb","\\cdots"),pn("\\dotsm","\\cdots"),pn("\\dotsi","\\!\\cdots"),pn("\\dotsx","\\ldots\\,"),pn("\\DOTSI","\\relax"),pn("\\DOTSB","\\relax"),pn("\\DOTSX","\\relax"),pn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),pn("\\,","\\tmspace+{3mu}{.1667em}"),pn("\\thinspace","\\,"),pn("\\>","\\mskip{4mu}"),pn("\\:","\\tmspace+{4mu}{.2222em}"),pn("\\medspace","\\:"),pn("\\;","\\tmspace+{5mu}{.2777em}"),pn("\\thickspace","\\;"),pn("\\!","\\tmspace-{3mu}{.1667em}"),pn("\\negthinspace","\\!"),pn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),pn("\\negthickspace","\\tmspace-{5mu}{.277em}"),pn("\\enspace","\\kern.5em "),pn("\\enskip","\\hskip.5em\\relax"),pn("\\quad","\\hskip1em\\relax"),pn("\\qquad","\\hskip2em\\relax"),pn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),pn("\\tag@paren","\\tag@literal{({#1})}"),pn("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new n("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),pn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),pn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),pn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),pn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),pn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),pn("\\newline","\\\\\\relax"),pn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Pn=D["Main-Regular"]["T".charCodeAt(0)][1]-.7*D["Main-Regular"]["A".charCodeAt(0)][1]+"em";pn("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Pn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),pn("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Pn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),pn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),pn("\\@hspace","\\hskip #1\\relax"),pn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),pn("\\ordinarycolon",":"),pn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),pn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),pn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),pn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),pn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),pn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),pn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),pn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),pn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),pn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),pn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),pn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),pn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),pn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),pn("\u2237","\\dblcolon"),pn("\u2239","\\eqcolon"),pn("\u2254","\\coloneqq"),pn("\u2255","\\eqqcolon"),pn("\u2a74","\\Coloneqq"),pn("\\ratio","\\vcentcolon"),pn("\\coloncolon","\\dblcolon"),pn("\\colonequals","\\coloneqq"),pn("\\coloncolonequals","\\Coloneqq"),pn("\\equalscolon","\\eqqcolon"),pn("\\equalscoloncolon","\\Eqqcolon"),pn("\\colonminus","\\coloneq"),pn("\\coloncolonminus","\\Coloneq"),pn("\\minuscolon","\\eqcolon"),pn("\\minuscoloncolon","\\Eqcolon"),pn("\\coloncolonapprox","\\Colonapprox"),pn("\\coloncolonsim","\\Colonsim"),pn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),pn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),pn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),pn("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),pn("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),pn("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),pn("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),pn("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),pn("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),pn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),pn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),pn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),pn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),pn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),pn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),pn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),pn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),pn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),pn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),pn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),pn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),pn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),pn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),pn("\\imath","\\html@mathml{\\@imath}{\u0131}"),pn("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),pn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),pn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),pn("\u27e6","\\llbracket"),pn("\u27e7","\\rrbracket"),pn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),pn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),pn("\u2983","\\lBrace"),pn("\u2984","\\rBrace"),pn("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),pn("\u29b5","\\minuso"),pn("\\darr","\\downarrow"),pn("\\dArr","\\Downarrow"),pn("\\Darr","\\Downarrow"),pn("\\lang","\\langle"),pn("\\rang","\\rangle"),pn("\\uarr","\\uparrow"),pn("\\uArr","\\Uparrow"),pn("\\Uarr","\\Uparrow"),pn("\\N","\\mathbb{N}"),pn("\\R","\\mathbb{R}"),pn("\\Z","\\mathbb{Z}"),pn("\\alef","\\aleph"),pn("\\alefsym","\\aleph"),pn("\\Alpha","\\mathrm{A}"),pn("\\Beta","\\mathrm{B}"),pn("\\bull","\\bullet"),pn("\\Chi","\\mathrm{X}"),pn("\\clubs","\\clubsuit"),pn("\\cnums","\\mathbb{C}"),pn("\\Complex","\\mathbb{C}"),pn("\\Dagger","\\ddagger"),pn("\\diamonds","\\diamondsuit"),pn("\\empty","\\emptyset"),pn("\\Epsilon","\\mathrm{E}"),pn("\\Eta","\\mathrm{H}"),pn("\\exist","\\exists"),pn("\\harr","\\leftrightarrow"),pn("\\hArr","\\Leftrightarrow"),pn("\\Harr","\\Leftrightarrow"),pn("\\hearts","\\heartsuit"),pn("\\image","\\Im"),pn("\\infin","\\infty"),pn("\\Iota","\\mathrm{I}"),pn("\\isin","\\in"),pn("\\Kappa","\\mathrm{K}"),pn("\\larr","\\leftarrow"),pn("\\lArr","\\Leftarrow"),pn("\\Larr","\\Leftarrow"),pn("\\lrarr","\\leftrightarrow"),pn("\\lrArr","\\Leftrightarrow"),pn("\\Lrarr","\\Leftrightarrow"),pn("\\Mu","\\mathrm{M}"),pn("\\natnums","\\mathbb{N}"),pn("\\Nu","\\mathrm{N}"),pn("\\Omicron","\\mathrm{O}"),pn("\\plusmn","\\pm"),pn("\\rarr","\\rightarrow"),pn("\\rArr","\\Rightarrow"),pn("\\Rarr","\\Rightarrow"),pn("\\real","\\Re"),pn("\\reals","\\mathbb{R}"),pn("\\Reals","\\mathbb{R}"),pn("\\Rho","\\mathrm{P}"),pn("\\sdot","\\cdot"),pn("\\sect","\\S"),pn("\\spades","\\spadesuit"),pn("\\sub","\\subset"),pn("\\sube","\\subseteq"),pn("\\supe","\\supseteq"),pn("\\Tau","\\mathrm{T}"),pn("\\thetasym","\\vartheta"),pn("\\weierp","\\wp"),pn("\\Zeta","\\mathrm{Z}"),pn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),pn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),pn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),pn("\\bra","\\mathinner{\\langle{#1}|}"),pn("\\ket","\\mathinner{|{#1}\\rangle}"),pn("\\braket","\\mathinner{\\langle{#1}\\rangle}"),pn("\\Bra","\\left\\langle#1\\right|"),pn("\\Ket","\\left|#1\\right\\rangle"),pn("\\angln","{\\angl n}"),pn("\\blue","\\textcolor{##6495ed}{#1}"),pn("\\orange","\\textcolor{##ffa500}{#1}"),pn("\\pink","\\textcolor{##ff00af}{#1}"),pn("\\red","\\textcolor{##df0030}{#1}"),pn("\\green","\\textcolor{##28ae7b}{#1}"),pn("\\gray","\\textcolor{gray}{#1}"),pn("\\purple","\\textcolor{##9d38bd}{#1}"),pn("\\blueA","\\textcolor{##ccfaff}{#1}"),pn("\\blueB","\\textcolor{##80f6ff}{#1}"),pn("\\blueC","\\textcolor{##63d9ea}{#1}"),pn("\\blueD","\\textcolor{##11accd}{#1}"),pn("\\blueE","\\textcolor{##0c7f99}{#1}"),pn("\\tealA","\\textcolor{##94fff5}{#1}"),pn("\\tealB","\\textcolor{##26edd5}{#1}"),pn("\\tealC","\\textcolor{##01d1c1}{#1}"),pn("\\tealD","\\textcolor{##01a995}{#1}"),pn("\\tealE","\\textcolor{##208170}{#1}"),pn("\\greenA","\\textcolor{##b6ffb0}{#1}"),pn("\\greenB","\\textcolor{##8af281}{#1}"),pn("\\greenC","\\textcolor{##74cf70}{#1}"),pn("\\greenD","\\textcolor{##1fab54}{#1}"),pn("\\greenE","\\textcolor{##0d923f}{#1}"),pn("\\goldA","\\textcolor{##ffd0a9}{#1}"),pn("\\goldB","\\textcolor{##ffbb71}{#1}"),pn("\\goldC","\\textcolor{##ff9c39}{#1}"),pn("\\goldD","\\textcolor{##e07d10}{#1}"),pn("\\goldE","\\textcolor{##a75a05}{#1}"),pn("\\redA","\\textcolor{##fca9a9}{#1}"),pn("\\redB","\\textcolor{##ff8482}{#1}"),pn("\\redC","\\textcolor{##f9685d}{#1}"),pn("\\redD","\\textcolor{##e84d39}{#1}"),pn("\\redE","\\textcolor{##bc2612}{#1}"),pn("\\maroonA","\\textcolor{##ffbde0}{#1}"),pn("\\maroonB","\\textcolor{##ff92c6}{#1}"),pn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),pn("\\maroonD","\\textcolor{##ca337c}{#1}"),pn("\\maroonE","\\textcolor{##9e034e}{#1}"),pn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),pn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),pn("\\purpleC","\\textcolor{##aa87ff}{#1}"),pn("\\purpleD","\\textcolor{##7854ab}{#1}"),pn("\\purpleE","\\textcolor{##543b78}{#1}"),pn("\\mintA","\\textcolor{##f5f9e8}{#1}"),pn("\\mintB","\\textcolor{##edf2df}{#1}"),pn("\\mintC","\\textcolor{##e0e5cc}{#1}"),pn("\\grayA","\\textcolor{##f6f7f7}{#1}"),pn("\\grayB","\\textcolor{##f0f1f2}{#1}"),pn("\\grayC","\\textcolor{##e3e5e6}{#1}"),pn("\\grayD","\\textcolor{##d6d8da}{#1}"),pn("\\grayE","\\textcolor{##babec2}{#1}"),pn("\\grayF","\\textcolor{##888d93}{#1}"),pn("\\grayG","\\textcolor{##626569}{#1}"),pn("\\grayH","\\textcolor{##3b3e40}{#1}"),pn("\\grayI","\\textcolor{##21242c}{#1}"),pn("\\kaBlue","\\textcolor{##314453}{#1}"),pn("\\kaGreen","\\textcolor{##71B307}{#1}");var Fn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Vn=function(){function e(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Rn(On,t.macros),this.mode=r,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new In(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var a=this.consumeArg(["]"]);n=a.tokens,r=a.end}else{var i=this.consumeArg();n=i.tokens,t=i.start,r=i.end}return this.pushToken(new Cn("EOF",r.loc)),this.pushTokens(n),t.range(r,"")},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArg=function(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var a,i=this.future(),o=0,s=0;do{if(a=this.popToken(),t.push(a),"{"===a.text)++o;else if("}"===a.text){if(-1===--o)throw new n("Extra }",a)}else if("EOF"===a.text)throw new n("Unexpected end of input in a macro argument, expected '"+(e&&r?e[s]:"}")+"'",a);if(e&&r)if((0===o||1===o&&"{"===e[s])&&a.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}while(0!==o||r);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:a}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new n("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;a<r.length;a++){var i=this.popToken();if(r[a]!==i.text)throw new n("Use of the macro doesn't match its definition",i)}}for(var o=[],s=0;s<e;s++)o.push(this.consumeArg(t&&t[s+1]).tokens);return o},t.expandOnce=function(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===r[0]&&!this.isDefined(r))throw new n("Undefined control sequence: "+r);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new n("Too many expansions: infinite loop or need to increase maxExpand setting");var i=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs)for(var s=(i=i.slice()).length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new n("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new n("Not a valid argument number",l);var h;(h=i).splice.apply(h,[s,2].concat(o[+l.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof Cn){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Cn(e)]):void 0},t.expandTokens=function(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;){var n=this.expandOnce(!0);n instanceof Cn&&(n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(this.stack.pop()))}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"===typeof t?t(this):t;if("string"===typeof n){var a=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(a+1));)++a;for(var o=new In(n,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:a}}return n},t.isDefined=function(e){return this.macros.has(e)||Bn.hasOwnProperty(e)||X.math.hasOwnProperty(e)||X.text.hasOwnProperty(e)||Fn.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:Bn.hasOwnProperty(e)&&!Bn[e].primitive},e}(),Gn={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},Un={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},Yn=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Vn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.parseExpression=function(t,r){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==e.endOfExpression.indexOf(a.text))break;if(r&&a.text===r)break;if(t&&Bn[a.text]&&Bn[a.text].infix)break;var i=this.parseAtom(r);if(!i)break;"internal"!==i.type&&n.push(i)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},t.handleInfixNodes=function(e){for(var t,r=-1,a=0;a<e.length;a++)if("infix"===e[a].type){if(-1!==r)throw new n("only one infix operator per group",e[a].token);r=a,t=e[a].replaceWith}if(-1!==r&&t){var i,o,s=e.slice(0,r),l=e.slice(r+1);return i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[i,e[r],o],[]):this.callFunction(t,[i,o],[])]}return e},t.handleSupSubscript=function(e){var t=this.fetch(),r=t.text;this.consume(),this.consumeSpaces();var a=this.parseGroup(e);if(!a)throw new n("Expected group after '"+r+"'",t);return a},t.formatUnsupportedCmd=function(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}},t.parseAtom=function(e){var t,r,a=this.parseGroup("atom",e);if("text"===this.mode)return a;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(a&&"op"===a.type){var o="\\limits"===i.text;a.limits=o,a.alwaysHandleSupSub=!0}else{if(!a||"operatorname"!==a.type)throw new n("Limit controls must follow a math operator",i);a.alwaysHandleSupSub&&(a.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new n("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(r)throw new n("Double subscript",i);r=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(t)throw new n("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();"'"===this.fetch().text;)l.push(s),this.consume();"^"===this.fetch().text&&l.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:l}}}return t||r?{type:"supsub",mode:this.mode,base:a,sup:t,sub:r}:a},t.parseFunction=function(e,t){var r=this.fetch(),a=r.text,i=Bn[a];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new n("Got function '"+a+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!i.allowedInText)throw new n("Can't use function '"+a+"' in text mode",r);if("math"===this.mode&&!1===i.allowedInMath)throw new n("Can't use function '"+a+"' in math mode",r);var o=this.parseArguments(a,i),s=o.args,l=o.optArgs;return this.callFunction(a,s,l,r,e)},t.callFunction=function(e,t,r,a,i){var o={funcName:e,parser:this,token:a,breakOnTokenText:i},s=Bn[e];if(s&&s.handler)return s.handler(o,t,r);throw new n("No function handler for "+e)},t.parseArguments=function(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var a=[],i=[],o=0;o<r;o++){var s=t.argTypes&&t.argTypes[o],l=o<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===o&&null==i[0])&&(s="primitive");var h=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)i.push(h);else{if(null==h)throw new n("Null argument, please report this as a bug");a.push(h)}}return{args:a,optArgs:i}},t.parseGroupOfType=function(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var a=this.parseArgumentGroup(r,"text");return null!=a?{type:"styling",mode:a.mode,body:[a],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",r);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(r)throw new n("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new n("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new n("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,a="";"EOF"!==(n=this.fetch()).text;)a+=n.text,this.consume();return this.consume(),r.text=a,r},t.parseRegexGroup=function(e,t){for(var r,a=this.fetch(),i=a,o="";"EOF"!==(r=this.fetch()).text&&e.test(o+r.text);)o+=(i=r).text,this.consume();if(""===o)throw new n("Invalid "+t+": '"+a.text+"'",a);return a.range(i,o)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new n("Invalid color: '"+t.text+"'",t);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}},t.parseSizeGroup=function(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!a)throw new n("Invalid size: '"+t.text+"'",t);var i={number:+(a[1]+a[2]),unit:a[3]};if(!He(i))throw new n("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:r}},t.parseUrlGroup=function(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},t.parseArgumentGroup=function(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return t&&this.switchMode(n),i},t.parseGroup=function(e,t){var r,a=this.fetch(),i=a.text;if("{"===i||"\\begingroup"===i){this.consume();var o="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:Nn.range(a,l),body:s,semisimple:"\\begingroup"===i||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!Fn.hasOwnProperty(i)){if(this.settings.throwOnError)throw new n("Undefined control sequence: "+i,a);r=this.formatUnsupportedCmd(i),this.consume()}return r},t.formLigatures=function(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],a=n.text;"-"===a&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:Nn.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Nn.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[r+1].text!==a||(e.splice(r,2,{type:"textord",mode:"text",loc:Nn.range(n,e[r+1]),text:a+a}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),a="*"===r.charAt(0);if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new n("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:a}}Un.hasOwnProperty(t[0])&&!X[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Un[t[0]]+t.substr(1));var i,o=qn.exec(t);if(o&&("i"===(t=t.substring(0,o.index))?t="\u0131":"j"===t&&(t="\u0237")),X[this.mode][t]){this.settings.strict&&"math"===this.mode&&Me.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=X[this.mode][t].group,h=Nn.range(e);if(U.hasOwnProperty(l)){var m=l;s={type:"atom",mode:this.mode,family:m,loc:h,text:t}}else s={type:l,mode:this.mode,loc:h,text:t};i=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(w(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:Nn.range(e),text:t}}if(this.consume(),o)for(var c=0;c<o[0].length;c++){var u=o[0][c];if(!Gn[u])throw new n("Unknown accent ' "+u+"'",e);var p=Gn[u][this.mode]||Gn[u].text;if(!p)throw new n("Accent "+u+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:Nn.range(e),label:p,isStretchy:!1,isShifty:!0,base:i}}return i},e}();Yn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Wn=function(e,t){if(!("string"===typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Yn(e,t);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new n("\\tag works only in display equations");r.gullet.feed("\\df@tag"),a=[{type:"tag",mode:"text",body:a,tag:r.parse()}]}return a},Xn=function(e,t,r){t.textContent="";var n=jn(e,r).toNode();t.appendChild(n)};"undefined"!==typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!==typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Xn=function(){throw new n("KaTeX doesn't work in quirks mode.")});var _n=function(e,t,r){if(r.throwOnError||!(e instanceof n))throw e;var a=je.makeSpan(["katex-error"],[new R(t)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+r.errorColor),a},jn=function(e,t){var r=new h(t);try{return function(e,t,r){var n,a=It(r);if("mathml"===r.output)return qt(e,t,a,r.displayMode,!0);if("html"===r.output){var i=xt(e,a);n=je.makeSpan(["katex"],[i])}else{var o=qt(e,t,a,r.displayMode,!1),s=xt(e,a);n=je.makeSpan(["katex"],[o,s])}return Rt(n,r)}(Wn(e,r),e,r)}catch(n){return _n(n,e,r)}},$n={version:"0.13.18",render:Xn,renderToString:function(e,t){return jn(e,t).toMarkup()},ParseError:n,__parse:function(e,t){var r=new h(t);return Wn(e,r)},__renderToDomTree:jn,__renderToHTMLTree:function(e,t){var r=new h(t);try{return function(e,t,r){var n=xt(e,It(r)),a=je.makeSpan(["katex"],[n]);return Rt(a,r)}(Wn(e,r),0,r)}catch(n){return _n(n,e,r)}},__setFontMetrics:function(e,t){D[e]=t},__defineSymbol:_,__defineMacro:pn,__domTree:{Span:N,Anchor:C,SymbolNode:R,SvgNode:O,PathNode:E,LineNode:H}};return t=t.default}()},e.exports=t()}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/fb7d5399-9c00dff9225b87a317ed.js b/out/_next/static/chunks/fb7d5399-9c00dff9225b87a317ed.js
new file mode 100644
index 0000000..cfb417a
--- /dev/null
+++ b/out/_next/static/chunks/fb7d5399-9c00dff9225b87a317ed.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[737],{99477:function(t,e,n){n.d(e,{Mig:function(){return Rl},_Li:function(){return a},ZzF:function(){return Rt},TlE:function(){return We},u9r:function(){return en},SUY:function(){return Bl},Ilk:function(){return mt},_3:function(){return Pa},yj7:function(){return ja},m_w:function(){return Ca},Ox3:function(){return Al},pBf:function(){return Y},a$l:function(){return Xe},ZAu:function(){return bs},x12:function(){return va},nls:function(){return ua},wem:function(){return _},RsA:function(){return r},yGw:function(){return ne},Kj0:function(){return _n},vBJ:function(){return Ge},YBo:function(){return Ho},iKG:function(){return Qn},cPb:function(){return Rn},JOQ:function(){return On},mXe:function(){return Ja},_fP:function(){return St},wk1:function(){return R},iMs:function(){return tc},xsS:function(){return Ps},jyz:function(){return En},Aip:function(){return Do},xo$:function(){return Do},$V:function(){return ic},jyi:function(){return Ys},xeV:function(){return zs},QmN:function(){return s},xEZ:function(){return yt},dpR:function(){return dl},Lcc:function(){return Io},rDY:function(){return Tn},FM8:function(){return st},Pa4:function(){return Tt},dd2:function(){return bt},CP7:function(){return Rs}});const i="137",r={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},s={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},a=1,o=100,l=301,c=302,h=303,u=304,d=306,p=307,f=1e3,m=1001,g=1002,v=1003,x=1004,y=1005,_=1006,M=1008,b=1009,w=1012,S=1014,T=1015,E=1016,A=1020,R=1023,L=1026,C=1027,P=33776,D=33777,I=33778,N=33779,z=2300,O=2301,B=2302,U=2400,F=2401,H=2402,G=2500,V=3e3,k=3001,W=7680,j=35044,q=35048,X="300 es",J=1035;class Y{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,i=n.length;e<i;e++)n[e].call(this,t);t.target=null}}}const Z=[];for(let uc=0;uc<256;uc++)Z[uc]=(uc<16?"0":"")+uc.toString(16);const K=Math.PI/180,Q=180/Math.PI;function $(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(Z[255&t]+Z[t>>8&255]+Z[t>>16&255]+Z[t>>24&255]+"-"+Z[255&e]+Z[e>>8&255]+"-"+Z[e>>16&15|64]+Z[e>>24&255]+"-"+Z[63&n|128]+Z[n>>8&255]+"-"+Z[n>>16&255]+Z[n>>24&255]+Z[255&i]+Z[i>>8&255]+Z[i>>16&255]+Z[i>>24&255]).toUpperCase()}function tt(t,e,n){return Math.max(e,Math.min(n,t))}function et(t,e){return(t%e+e)%e}function nt(t,e,n){return(1-n)*t+n*e}function it(t){return 0===(t&t-1)&&0!==t}function rt(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}class st{constructor(t=0,e=0){this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,s=this.y-t.y;return this.x=r*n-s*i+t.x,this.y=r*i+s*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}st.prototype.isVector2=!0;class at{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,i,r,s,a,o,l){const c=this.elements;return c[0]=t,c[1]=i,c[2]=a,c[3]=e,c[4]=r,c[5]=o,c[6]=n,c[7]=s,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,s=n[0],a=n[3],o=n[6],l=n[1],c=n[4],h=n[7],u=n[2],d=n[5],p=n[8],f=i[0],m=i[3],g=i[6],v=i[1],x=i[4],y=i[7],_=i[2],M=i[5],b=i[8];return r[0]=s*f+a*v+o*_,r[3]=s*m+a*x+o*M,r[6]=s*g+a*y+o*b,r[1]=l*f+c*v+h*_,r[4]=l*m+c*x+h*M,r[7]=l*g+c*y+h*b,r[2]=u*f+d*v+p*_,r[5]=u*m+d*x+p*M,r[8]=u*g+d*y+p*b,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8];return e*s*c-e*a*l-n*r*c+n*a*o+i*r*l-i*s*o}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=c*s-a*l,u=a*o-c*r,d=l*r-s*o,p=e*h+n*u+i*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return t[0]=h*f,t[1]=(i*l-c*n)*f,t[2]=(a*n-i*s)*f,t[3]=u*f,t[4]=(c*e-i*o)*f,t[5]=(i*r-a*e)*f,t[6]=d*f,t[7]=(n*o-l*e)*f,t[8]=(s*e-n*r)*f,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,i,r,s,a){const o=Math.cos(r),l=Math.sin(r);return this.set(n*o,n*l,-n*(o*s+l*a)+s+t,-i*l,i*o,-i*(-l*s+o*a)+a+e,0,0,1),this}scale(t,e){const n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this}rotate(t){const e=Math.cos(t),n=Math.sin(t),i=this.elements,r=i[0],s=i[3],a=i[6],o=i[1],l=i[4],c=i[7];return i[0]=e*r+n*o,i[3]=e*s+n*l,i[6]=e*a+n*c,i[1]=-n*r+e*o,i[4]=-n*s+e*l,i[7]=-n*a+e*c,this}translate(t,e){const n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this}equals(t){const e=this.elements,n=t.elements;for(let i=0;i<9;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}function ot(t){for(let e=t.length-1;e>=0;--e)if(t[e]>65535)return!0;return!1}at.prototype.isMatrix3=!0;Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function lt(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}const ct={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},ht={h:0,s:0,l:0},ut={h:0,s:0,l:0};function dt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}function pt(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function ft(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class mt{constructor(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"===typeof t?this.setHex(t):"string"===typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setHSL(t,e,n){if(t=et(t,1),e=tt(e,0,1),n=tt(n,0,1),0===e)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+e):n+e-n*e,r=2*n-i;this.r=dt(r,i,t+1/3),this.g=dt(r,i,t),this.b=dt(r,i,t-1/3)}return this}setStyle(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(t)){let t;const i=n[1],r=n[2];switch(i){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,e(t[4]),this;if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,e(t[4]),this;break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r)){const n=parseFloat(t[1])/360,i=parseInt(t[2],10)/100,r=parseInt(t[3],10)/100;return e(t[4]),this.setHSL(n,i,r)}}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(t)){const t=n[1],e=t.length;if(3===e)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this;if(6===e)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this}setColorName(t){const e=ct[t.toLowerCase()];return void 0!==e?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=pt(t.r),this.g=pt(t.g),this.b=pt(t.b),this}copyLinearToSRGB(t){return this.r=ft(t.r),this.g=ft(t.g),this.b=ft(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(t){const e=this.r,n=this.g,i=this.b,r=Math.max(e,n,i),s=Math.min(e,n,i);let a,o;const l=(s+r)/2;if(s===r)a=0,o=0;else{const t=r-s;switch(o=l<=.5?t/(r+s):t/(2-r-s),r){case e:a=(n-i)/t+(n<i?6:0);break;case n:a=(i-e)/t+2;break;case i:a=(e-n)/t+4}a/=6}return t.h=a,t.s=o,t.l=l,t}getStyle(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}offsetHSL(t,e,n){return this.getHSL(ht),ht.h+=t,ht.s+=e,ht.l+=n,this.setHSL(ht.h,ht.s,ht.l),this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(ht),t.getHSL(ut);const n=nt(ht.h,ut.h,e),i=nt(ht.s,ut.s,e),r=nt(ht.l,ut.l,e);return this.setHSL(n,i,r),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),!0===t.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}let gt;mt.NAMES=ct,mt.prototype.isColor=!0,mt.prototype.r=1,mt.prototype.g=1,mt.prototype.b=1;class vt{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===gt&&(gt=lt("canvas")),gt.width=t.width,gt.height=t.height;const n=gt.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=gt}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if("undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap){const e=lt("canvas");e.width=t.width,e.height=t.height;const n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);const i=n.getImageData(0,0,t.width,t.height),r=i.data;for(let t=0;t<r.length;t++)r[t]=255*pt(r[t]/255);return n.putImageData(i,0,0),e}if(t.data){const e=t.data.slice(0);for(let t=0;t<e.length;t++)e instanceof Uint8Array||e instanceof Uint8ClampedArray?e[t]=Math.floor(255*pt(e[t]/255)):e[t]=pt(e[t]);return{data:e,width:t.width,height:t.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}}let xt=0;class yt extends Y{constructor(t=yt.DEFAULT_IMAGE,e=yt.DEFAULT_MAPPING,n=1001,i=1001,r=_,s=1008,a=R,o=1009,l=1,c=3e3){super(),Object.defineProperty(this,"id",{value:xt++}),this.uuid=$(),this.name="",this.image=t,this.mipmaps=[],this.mapping=e,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=s,this.anisotropy=l,this.format=a,this.internalFormat=null,this.type=o,this.offset=new st(0,0),this.repeat=new st(1,1),this.center=new st(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new at,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this.userData=JSON.parse(JSON.stringify(t.userData)),this}toJSON(t){const e=void 0===t||"string"===typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){const i=this.image;if(void 0===i.uuid&&(i.uuid=$()),!e&&void 0===t.images[i.uuid]){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(_t(i[t].image)):e.push(_t(i[t]))}else e=_t(i);t.images[i.uuid]={uuid:i.uuid,url:e}}n.image=i.uuid}return"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case f:t.x=t.x-Math.floor(t.x);break;case m:t.x=t.x<0?0:1;break;case g:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case f:t.y=t.y-Math.floor(t.y);break;case m:t.y=t.y<0?0:1;break;case g:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&this.version++}}function _t(t){return"undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap?vt.getDataURL(t):t.data?{data:Array.prototype.slice.call(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}yt.DEFAULT_IMAGE=void 0,yt.DEFAULT_MAPPING=300,yt.prototype.isTexture=!0;class Mt{constructor(t=0,e=0,n=0,i=1){this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=this.w,s=t.elements;return this.x=s[0]*e+s[4]*n+s[8]*i+s[12]*r,this.y=s[1]*e+s[5]*n+s[9]*i+s[13]*r,this.z=s[2]*e+s[6]*n+s[10]*i+s[14]*r,this.w=s[3]*e+s[7]*n+s[11]*i+s[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,i,r;const s=.01,a=.1,o=t.elements,l=o[0],c=o[4],h=o[8],u=o[1],d=o[5],p=o[9],f=o[2],m=o[6],g=o[10];if(Math.abs(c-u)<s&&Math.abs(h-f)<s&&Math.abs(p-m)<s){if(Math.abs(c+u)<a&&Math.abs(h+f)<a&&Math.abs(p+m)<a&&Math.abs(l+d+g-3)<a)return this.set(1,0,0,0),this;e=Math.PI;const t=(l+1)/2,o=(d+1)/2,v=(g+1)/2,x=(c+u)/4,y=(h+f)/4,_=(p+m)/4;return t>o&&t>v?t<s?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(t),i=x/n,r=y/n):o>v?o<s?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(o),n=x/i,r=_/i):v<s?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=y/r,i=_/r),this.set(n,i,r,e),this}let v=Math.sqrt((m-p)*(m-p)+(h-f)*(h-f)+(u-c)*(u-c));return Math.abs(v)<.001&&(v=1),this.x=(m-p)/v,this.y=(h-f)/v,this.z=(u-c)/v,this.w=Math.acos((l+d+g-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}Mt.prototype.isVector4=!0;class bt extends Y{constructor(t,e,n={}){super(),this.width=t,this.height=e,this.depth=1,this.scissor=new Mt(0,0,t,e),this.scissorTest=!1,this.viewport=new Mt(0,0,t,e),this.texture=new yt(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.isRenderTargetTexture=!0,this.texture.image={width:t,height:e,depth:1},this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.internalFormat=void 0!==n.internalFormat?n.internalFormat:null,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:_,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}setTexture(t){t.image={width:this.width,height:this.height,depth:this.depth},this.texture=t}setSize(t,e,n=1){this.width===t&&this.height===e&&this.depth===n||(this.width=t,this.height=e,this.depth=n,this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return(new this.constructor).copy(this)}copy(t){return this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.texture.image=Object.assign({},t.texture.image),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this}dispose(){this.dispatchEvent({type:"dispose"})}}bt.prototype.isWebGLRenderTarget=!0;(class extends bt{constructor(t,e,n){super(t,e);const i=this.texture;this.texture=[];for(let r=0;r<n;r++)this.texture[r]=i.clone()}setSize(t,e,n=1){if(this.width!==t||this.height!==e||this.depth!==n){this.width=t,this.height=e,this.depth=n;for(let i=0,r=this.texture.length;i<r;i++)this.texture[i].image.width=t,this.texture[i].image.height=e,this.texture[i].image.depth=n;this.dispose()}return this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e),this}copy(t){this.dispose(),this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.set(0,0,this.width,this.height),this.scissor.set(0,0,this.width,this.height),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this.texture.length=0;for(let e=0,n=t.texture.length;e<n;e++)this.texture[e]=t.texture[e].clone();return this}}).prototype.isWebGLMultipleRenderTargets=!0;class wt extends bt{constructor(t,e,n={}){super(t,e,n),this.samples=4,this.ignoreDepthForMultisampleCopy=void 0===n.ignoreDepth||n.ignoreDepth,this.useRenderToTexture=void 0!==n.useRenderToTexture&&n.useRenderToTexture,this.useRenderbuffer=!1===this.useRenderToTexture}copy(t){return super.copy.call(this,t),this.samples=t.samples,this.useRenderToTexture=t.useRenderToTexture,this.useRenderbuffer=t.useRenderbuffer,this}}wt.prototype.isWebGLMultisampleRenderTarget=!0;class St{constructor(t=0,e=0,n=0,i=1){this._x=t,this._y=e,this._z=n,this._w=i}static slerp(t,e,n,i){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(t,e,i)}static slerpFlat(t,e,n,i,r,s,a){let o=n[i+0],l=n[i+1],c=n[i+2],h=n[i+3];const u=r[s+0],d=r[s+1],p=r[s+2],f=r[s+3];if(0===a)return t[e+0]=o,t[e+1]=l,t[e+2]=c,void(t[e+3]=h);if(1===a)return t[e+0]=u,t[e+1]=d,t[e+2]=p,void(t[e+3]=f);if(h!==f||o!==u||l!==d||c!==p){let t=1-a;const e=o*u+l*d+c*p+h*f,n=e>=0?1:-1,i=1-e*e;if(i>Number.EPSILON){const r=Math.sqrt(i),s=Math.atan2(r,e*n);t=Math.sin(t*s)/r,a=Math.sin(a*s)/r}const r=a*n;if(o=o*t+u*r,l=l*t+d*r,c=c*t+p*r,h=h*t+f*r,t===1-a){const t=1/Math.sqrt(o*o+l*l+c*c+h*h);o*=t,l*=t,c*=t,h*=t}}t[e]=o,t[e+1]=l,t[e+2]=c,t[e+3]=h}static multiplyQuaternionsFlat(t,e,n,i,r,s){const a=n[i],o=n[i+1],l=n[i+2],c=n[i+3],h=r[s],u=r[s+1],d=r[s+2],p=r[s+3];return t[e]=a*p+c*h+o*d-l*u,t[e+1]=o*p+c*u+l*h-a*d,t[e+2]=l*p+c*d+a*u-o*h,t[e+3]=c*p-a*h-o*u-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=t._x,i=t._y,r=t._z,s=t._order,a=Math.cos,o=Math.sin,l=a(n/2),c=a(i/2),h=a(r/2),u=o(n/2),d=o(i/2),p=o(r/2);switch(s){case"XYZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"YXZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"ZXY":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"ZYX":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"YZX":this._x=u*c*h+l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h-u*d*p;break;case"XZY":this._x=u*c*h-l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h+u*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],i=e[4],r=e[8],s=e[1],a=e[5],o=e[9],l=e[2],c=e[6],h=e[10],u=n+a+h;if(u>0){const t=.5/Math.sqrt(u+1);this._w=.25/t,this._x=(c-o)*t,this._y=(r-l)*t,this._z=(s-i)*t}else if(n>a&&n>h){const t=2*Math.sqrt(1+n-a-h);this._w=(c-o)/t,this._x=.25*t,this._y=(i+s)/t,this._z=(r+l)/t}else if(a>h){const t=2*Math.sqrt(1+a-n-h);this._w=(r-l)/t,this._x=(i+s)/t,this._y=.25*t,this._z=(o+c)/t}else{const t=2*Math.sqrt(1+h-n-a);this._w=(s-i)/t,this._x=(r+l)/t,this._y=(o+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(tt(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const i=Math.min(1,e/n);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,i=t._y,r=t._z,s=t._w,a=e._x,o=e._y,l=e._z,c=e._w;return this._x=n*c+s*a+i*l-r*o,this._y=i*c+s*o+r*a-n*l,this._z=r*c+s*l+n*o-i*a,this._w=s*c-n*a-i*o-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,i=this._y,r=this._z,s=this._w;let a=s*t._w+n*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=n,this._y=i,this._z=r,this;const o=1-a*a;if(o<=Number.EPSILON){const t=1-e;return this._w=t*s+e*this._w,this._x=t*n+e*this._x,this._y=t*i+e*this._y,this._z=t*r+e*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(o),c=Math.atan2(l,a),h=Math.sin((1-e)*c)/l,u=Math.sin(e*c)/l;return this._w=s*h+this._w*u,this._x=n*h+this._x*u,this._y=i*h+this._y*u,this._z=r*h+this._z*u,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){const t=Math.random(),e=Math.sqrt(1-t),n=Math.sqrt(t),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(e*Math.cos(i),n*Math.sin(r),n*Math.cos(r),e*Math.sin(i))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}St.prototype.isQuaternion=!0;class Tt{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(At.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(At.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=t.elements,s=1/(r[3]*e+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*i+r[12])*s,this.y=(r[1]*e+r[5]*n+r[9]*i+r[13])*s,this.z=(r[2]*e+r[6]*n+r[10]*i+r[14])*s,this}applyQuaternion(t){const e=this.x,n=this.y,i=this.z,r=t.x,s=t.y,a=t.z,o=t.w,l=o*e+s*i-a*n,c=o*n+a*e-r*i,h=o*i+r*n-s*e,u=-r*e-s*n-a*i;return this.x=l*o+u*-r+c*-a-h*-s,this.y=c*o+u*-s+h*-r-l*-a,this.z=h*o+u*-a+l*-s-c*-r,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,i=t.y,r=t.z,s=e.x,a=e.y,o=e.z;return this.x=i*o-r*a,this.y=r*s-n*o,this.z=n*a-i*s,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return Et.copy(this).projectOnVector(t),this.sub(Et)}reflect(t){return this.sub(Et.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(tt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,n=Math.sqrt(1-t**2);return this.x=n*Math.cos(e),this.y=n*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}Tt.prototype.isVector3=!0;const Et=new Tt,At=new St;class Rt{constructor(t=new Tt(1/0,1/0,1/0),e=new Tt(-1/0,-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){let e=1/0,n=1/0,i=1/0,r=-1/0,s=-1/0,a=-1/0;for(let o=0,l=t.length;o<l;o+=3){const l=t[o],c=t[o+1],h=t[o+2];l<e&&(e=l),c<n&&(n=c),h<i&&(i=h),l>r&&(r=l),c>s&&(s=c),h>a&&(a=h)}return this.min.set(e,n,i),this.max.set(r,s,a),this}setFromBufferAttribute(t){let e=1/0,n=1/0,i=1/0,r=-1/0,s=-1/0,a=-1/0;for(let o=0,l=t.count;o<l;o++){const l=t.getX(o),c=t.getY(o),h=t.getZ(o);l<e&&(e=l),c<n&&(n=c),h<i&&(i=h),l>r&&(r=l),c>s&&(s=c),h>a&&(a=h)}return this.min.set(e,n,i),this.max.set(r,s,a),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=Ct.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t,e=!1){return this.makeEmpty(),this.expandByObject(t,e)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,e=!1){t.updateWorldMatrix(!1,!1);const n=t.geometry;if(void 0!==n)if(e&&void 0!=n.attributes&&void 0!==n.attributes.position){const e=n.attributes.position;for(let n=0,i=e.count;n<i;n++)Ct.fromBufferAttribute(e,n).applyMatrix4(t.matrixWorld),this.expandByPoint(Ct)}else null===n.boundingBox&&n.computeBoundingBox(),Pt.copy(n.boundingBox),Pt.applyMatrix4(t.matrixWorld),this.union(Pt);const i=t.children;for(let r=0,s=i.length;r<s;r++)this.expandByObject(i[r],e);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,Ct),Ct.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Ut),Ft.subVectors(this.max,Ut),Dt.subVectors(t.a,Ut),It.subVectors(t.b,Ut),Nt.subVectors(t.c,Ut),zt.subVectors(It,Dt),Ot.subVectors(Nt,It),Bt.subVectors(Dt,Nt);let e=[0,-zt.z,zt.y,0,-Ot.z,Ot.y,0,-Bt.z,Bt.y,zt.z,0,-zt.x,Ot.z,0,-Ot.x,Bt.z,0,-Bt.x,-zt.y,zt.x,0,-Ot.y,Ot.x,0,-Bt.y,Bt.x,0];return!!Vt(e,Dt,It,Nt,Ft)&&(e=[1,0,0,0,1,0,0,0,1],!!Vt(e,Dt,It,Nt,Ft)&&(Ht.crossVectors(zt,Ot),e=[Ht.x,Ht.y,Ht.z],Vt(e,Dt,It,Nt,Ft)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return Ct.copy(t).clamp(this.min,this.max).sub(t).length()}getBoundingSphere(t){return this.getCenter(t.center),t.radius=.5*this.getSize(Ct).length(),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(Lt[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Lt[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Lt[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Lt[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Lt[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Lt[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Lt[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Lt[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Lt)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}Rt.prototype.isBox3=!0;const Lt=[new Tt,new Tt,new Tt,new Tt,new Tt,new Tt,new Tt,new Tt],Ct=new Tt,Pt=new Rt,Dt=new Tt,It=new Tt,Nt=new Tt,zt=new Tt,Ot=new Tt,Bt=new Tt,Ut=new Tt,Ft=new Tt,Ht=new Tt,Gt=new Tt;function Vt(t,e,n,i,r){for(let s=0,a=t.length-3;s<=a;s+=3){Gt.fromArray(t,s);const a=r.x*Math.abs(Gt.x)+r.y*Math.abs(Gt.y)+r.z*Math.abs(Gt.z),o=e.dot(Gt),l=n.dot(Gt),c=i.dot(Gt);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>a)return!1}return!0}const kt=new Rt,Wt=new Tt,jt=new Tt,qt=new Tt;class Xt{constructor(t=new Tt,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):kt.setFromPoints(t).getCenter(n);let i=0;for(let r=0,s=t.length;r<s;r++)i=Math.max(i,n.distanceToSquared(t[r]));return this.radius=Math.sqrt(i),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const n=this.center.distanceToSquared(t);return e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){qt.subVectors(t,this.center);const e=qt.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.add(qt.multiplyScalar(n/t)),this.radius+=n}return this}union(t){return!0===this.center.equals(t.center)?jt.set(0,0,1).multiplyScalar(t.radius):jt.subVectors(t.center,this.center).normalize().multiplyScalar(t.radius),this.expandByPoint(Wt.copy(t.center).add(jt)),this.expandByPoint(Wt.copy(t.center).sub(jt)),this}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Jt=new Tt,Yt=new Tt,Zt=new Tt,Kt=new Tt,Qt=new Tt,$t=new Tt,te=new Tt;class ee{constructor(t=new Tt,e=new Tt(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.direction).multiplyScalar(t).add(this.origin)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Jt)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Jt.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Jt.copy(this.direction).multiplyScalar(e).add(this.origin),Jt.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){Yt.copy(t).add(e).multiplyScalar(.5),Zt.copy(e).sub(t).normalize(),Kt.copy(this.origin).sub(Yt);const r=.5*t.distanceTo(e),s=-this.direction.dot(Zt),a=Kt.dot(this.direction),o=-Kt.dot(Zt),l=Kt.lengthSq(),c=Math.abs(1-s*s);let h,u,d,p;if(c>0)if(h=s*o-a,u=s*a-o,p=r*c,h>=0)if(u>=-p)if(u<=p){const t=1/c;h*=t,u*=t,d=h*(h+s*u+2*a)+u*(s*h+u+2*o)+l}else u=r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;else u=-r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;else u<=-p?(h=Math.max(0,-(-s*r+a)),u=h>0?-r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l):u<=p?(h=0,u=Math.min(Math.max(-r,-o),r),d=u*(u+2*o)+l):(h=Math.max(0,-(s*r+a)),u=h>0?r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l);else u=s>0?-r:r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;return n&&n.copy(this.direction).multiplyScalar(h).add(this.origin),i&&i.copy(Zt).multiplyScalar(u).add(Yt),d}intersectSphere(t,e){Jt.subVectors(t.center,this.origin);const n=Jt.dot(this.direction),i=Jt.dot(Jt)-n*n,r=t.radius*t.radius;if(i>r)return null;const s=Math.sqrt(r-i),a=n-s,o=n+s;return a<0&&o<0?null:a<0?this.at(o,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,i,r,s,a,o;const l=1/this.direction.x,c=1/this.direction.y,h=1/this.direction.z,u=this.origin;return l>=0?(n=(t.min.x-u.x)*l,i=(t.max.x-u.x)*l):(n=(t.max.x-u.x)*l,i=(t.min.x-u.x)*l),c>=0?(r=(t.min.y-u.y)*c,s=(t.max.y-u.y)*c):(r=(t.max.y-u.y)*c,s=(t.min.y-u.y)*c),n>s||r>i?null:((r>n||n!==n)&&(n=r),(s<i||i!==i)&&(i=s),h>=0?(a=(t.min.z-u.z)*h,o=(t.max.z-u.z)*h):(a=(t.max.z-u.z)*h,o=(t.min.z-u.z)*h),n>o||a>i?null:((a>n||n!==n)&&(n=a),(o<i||i!==i)&&(i=o),i<0?null:this.at(n>=0?n:i,e)))}intersectsBox(t){return null!==this.intersectBox(t,Jt)}intersectTriangle(t,e,n,i,r){Qt.subVectors(e,t),$t.subVectors(n,t),te.crossVectors(Qt,$t);let s,a=this.direction.dot(te);if(a>0){if(i)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Kt.subVectors(this.origin,t);const o=s*this.direction.dot($t.crossVectors(Kt,$t));if(o<0)return null;const l=s*this.direction.dot(Qt.cross(Kt));if(l<0)return null;if(o+l>a)return null;const c=-s*Kt.dot(te);return c<0?null:this.at(c/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class ne{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,i,r,s,a,o,l,c,h,u,d,p,f,m){const g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=s,g[9]=a,g[13]=o,g[2]=l,g[6]=c,g[10]=h,g[14]=u,g[3]=d,g[7]=p,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new ne).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,i=1/ie.setFromMatrixColumn(t,0).length(),r=1/ie.setFromMatrixColumn(t,1).length(),s=1/ie.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*s,e[9]=n[9]*s,e[10]=n[10]*s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,n=t.x,i=t.y,r=t.z,s=Math.cos(n),a=Math.sin(n),o=Math.cos(i),l=Math.sin(i),c=Math.cos(r),h=Math.sin(r);if("XYZ"===t.order){const t=s*c,n=s*h,i=a*c,r=a*h;e[0]=o*c,e[4]=-o*h,e[8]=l,e[1]=n+i*l,e[5]=t-r*l,e[9]=-a*o,e[2]=r-t*l,e[6]=i+n*l,e[10]=s*o}else if("YXZ"===t.order){const t=o*c,n=o*h,i=l*c,r=l*h;e[0]=t+r*a,e[4]=i*a-n,e[8]=s*l,e[1]=s*h,e[5]=s*c,e[9]=-a,e[2]=n*a-i,e[6]=r+t*a,e[10]=s*o}else if("ZXY"===t.order){const t=o*c,n=o*h,i=l*c,r=l*h;e[0]=t-r*a,e[4]=-s*h,e[8]=i+n*a,e[1]=n+i*a,e[5]=s*c,e[9]=r-t*a,e[2]=-s*l,e[6]=a,e[10]=s*o}else if("ZYX"===t.order){const t=s*c,n=s*h,i=a*c,r=a*h;e[0]=o*c,e[4]=i*l-n,e[8]=t*l+r,e[1]=o*h,e[5]=r*l+t,e[9]=n*l-i,e[2]=-l,e[6]=a*o,e[10]=s*o}else if("YZX"===t.order){const t=s*o,n=s*l,i=a*o,r=a*l;e[0]=o*c,e[4]=r-t*h,e[8]=i*h+n,e[1]=h,e[5]=s*c,e[9]=-a*c,e[2]=-l*c,e[6]=n*h+i,e[10]=t-r*h}else if("XZY"===t.order){const t=s*o,n=s*l,i=a*o,r=a*l;e[0]=o*c,e[4]=-h,e[8]=l*c,e[1]=t*h+r,e[5]=s*c,e[9]=n*h-i,e[2]=i*h-n,e[6]=a*c,e[10]=r*h+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(se,t,ae)}lookAt(t,e,n){const i=this.elements;return ce.subVectors(t,e),0===ce.lengthSq()&&(ce.z=1),ce.normalize(),oe.crossVectors(n,ce),0===oe.lengthSq()&&(1===Math.abs(n.z)?ce.x+=1e-4:ce.z+=1e-4,ce.normalize(),oe.crossVectors(n,ce)),oe.normalize(),le.crossVectors(ce,oe),i[0]=oe.x,i[4]=le.x,i[8]=ce.x,i[1]=oe.y,i[5]=le.y,i[9]=ce.y,i[2]=oe.z,i[6]=le.z,i[10]=ce.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,s=n[0],a=n[4],o=n[8],l=n[12],c=n[1],h=n[5],u=n[9],d=n[13],p=n[2],f=n[6],m=n[10],g=n[14],v=n[3],x=n[7],y=n[11],_=n[15],M=i[0],b=i[4],w=i[8],S=i[12],T=i[1],E=i[5],A=i[9],R=i[13],L=i[2],C=i[6],P=i[10],D=i[14],I=i[3],N=i[7],z=i[11],O=i[15];return r[0]=s*M+a*T+o*L+l*I,r[4]=s*b+a*E+o*C+l*N,r[8]=s*w+a*A+o*P+l*z,r[12]=s*S+a*R+o*D+l*O,r[1]=c*M+h*T+u*L+d*I,r[5]=c*b+h*E+u*C+d*N,r[9]=c*w+h*A+u*P+d*z,r[13]=c*S+h*R+u*D+d*O,r[2]=p*M+f*T+m*L+g*I,r[6]=p*b+f*E+m*C+g*N,r[10]=p*w+f*A+m*P+g*z,r[14]=p*S+f*R+m*D+g*O,r[3]=v*M+x*T+y*L+_*I,r[7]=v*b+x*E+y*C+_*N,r[11]=v*w+x*A+y*P+_*z,r[15]=v*S+x*R+y*D+_*O,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],s=t[1],a=t[5],o=t[9],l=t[13],c=t[2],h=t[6],u=t[10],d=t[14];return t[3]*(+r*o*h-i*l*h-r*a*u+n*l*u+i*a*d-n*o*d)+t[7]*(+e*o*d-e*l*u+r*s*u-i*s*d+i*l*c-r*o*c)+t[11]*(+e*l*h-e*a*d-r*s*h+n*s*d+r*a*c-n*l*c)+t[15]*(-i*a*c-e*o*h+e*a*u+i*s*h-n*s*u+n*o*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=t[11],p=t[12],f=t[13],m=t[14],g=t[15],v=h*m*l-f*u*l+f*o*d-a*m*d-h*o*g+a*u*g,x=p*u*l-c*m*l-p*o*d+s*m*d+c*o*g-s*u*g,y=c*f*l-p*h*l+p*a*d-s*f*d-c*a*g+s*h*g,_=p*h*o-c*f*o-p*a*u+s*f*u+c*a*m-s*h*m,M=e*v+n*x+i*y+r*_;if(0===M)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const b=1/M;return t[0]=v*b,t[1]=(f*u*r-h*m*r-f*i*d+n*m*d+h*i*g-n*u*g)*b,t[2]=(a*m*r-f*o*r+f*i*l-n*m*l-a*i*g+n*o*g)*b,t[3]=(h*o*r-a*u*r-h*i*l+n*u*l+a*i*d-n*o*d)*b,t[4]=x*b,t[5]=(c*m*r-p*u*r+p*i*d-e*m*d-c*i*g+e*u*g)*b,t[6]=(p*o*r-s*m*r-p*i*l+e*m*l+s*i*g-e*o*g)*b,t[7]=(s*u*r-c*o*r+c*i*l-e*u*l-s*i*d+e*o*d)*b,t[8]=y*b,t[9]=(p*h*r-c*f*r-p*n*d+e*f*d+c*n*g-e*h*g)*b,t[10]=(s*f*r-p*a*r+p*n*l-e*f*l-s*n*g+e*a*g)*b,t[11]=(c*a*r-s*h*r-c*n*l+e*h*l+s*n*d-e*a*d)*b,t[12]=_*b,t[13]=(c*f*i-p*h*i+p*n*u-e*f*u-c*n*m+e*h*m)*b,t[14]=(p*a*i-s*f*i-p*n*o+e*f*o+s*n*m-e*a*m)*b,t[15]=(s*h*i-c*a*i+c*n*o-e*h*o-s*n*u+e*a*u)*b,this}scale(t){const e=this.elements,n=t.x,i=t.y,r=t.z;return e[0]*=n,e[4]*=i,e[8]*=r,e[1]*=n,e[5]*=i,e[9]*=r,e[2]*=n,e[6]*=i,e[10]*=r,e[3]*=n,e[7]*=i,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),i=Math.sin(e),r=1-n,s=t.x,a=t.y,o=t.z,l=r*s,c=r*a;return this.set(l*s+n,l*a-i*o,l*o+i*a,0,l*a+i*o,c*a+n,c*o-i*s,0,l*o-i*a,c*o+i*s,r*o*o+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,r,s){return this.set(1,n,r,0,t,1,s,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){const i=this.elements,r=e._x,s=e._y,a=e._z,o=e._w,l=r+r,c=s+s,h=a+a,u=r*l,d=r*c,p=r*h,f=s*c,m=s*h,g=a*h,v=o*l,x=o*c,y=o*h,_=n.x,M=n.y,b=n.z;return i[0]=(1-(f+g))*_,i[1]=(d+y)*_,i[2]=(p-x)*_,i[3]=0,i[4]=(d-y)*M,i[5]=(1-(u+g))*M,i[6]=(m+v)*M,i[7]=0,i[8]=(p+x)*b,i[9]=(m-v)*b,i[10]=(1-(u+f))*b,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){const i=this.elements;let r=ie.set(i[0],i[1],i[2]).length();const s=ie.set(i[4],i[5],i[6]).length(),a=ie.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],re.copy(this);const o=1/r,l=1/s,c=1/a;return re.elements[0]*=o,re.elements[1]*=o,re.elements[2]*=o,re.elements[4]*=l,re.elements[5]*=l,re.elements[6]*=l,re.elements[8]*=c,re.elements[9]*=c,re.elements[10]*=c,e.setFromRotationMatrix(re),n.x=r,n.y=s,n.z=a,this}makePerspective(t,e,n,i,r,s){void 0===s&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const a=this.elements,o=2*r/(e-t),l=2*r/(n-i),c=(e+t)/(e-t),h=(n+i)/(n-i),u=-(s+r)/(s-r),d=-2*s*r/(s-r);return a[0]=o,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=h,a[13]=0,a[2]=0,a[6]=0,a[10]=u,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,n,i,r,s){const a=this.elements,o=1/(e-t),l=1/(n-i),c=1/(s-r),h=(e+t)*o,u=(n+i)*l,d=(s+r)*c;return a[0]=2*o,a[4]=0,a[8]=0,a[12]=-h,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-u,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}ne.prototype.isMatrix4=!0;const ie=new Tt,re=new ne,se=new Tt(0,0,0),ae=new Tt(1,1,1),oe=new Tt,le=new Tt,ce=new Tt,he=new ne,ue=new St;class de{constructor(t=0,e=0,n=0,i=de.DefaultOrder){this._x=t,this._y=e,this._z=n,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,i=this._order){return this._x=t,this._y=e,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){const i=t.elements,r=i[0],s=i[4],a=i[8],o=i[1],l=i[5],c=i[9],h=i[2],u=i[6],d=i[10];switch(e){case"XYZ":this._y=Math.asin(tt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-s,r)):(this._x=Math.atan2(u,l),this._z=0);break;case"YXZ":this._x=Math.asin(-tt(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(tt(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(-h,d),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-tt(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(u,d),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(tt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-tt(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(u,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return he.makeRotationFromQuaternion(t),this.setFromRotationMatrix(he,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return ue.setFromEuler(this),this.setFromQuaternion(ue,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}toVector3(t){return t?t.set(this._x,this._y,this._z):new Tt(this._x,this._y,this._z)}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}de.prototype.isEuler=!0,de.DefaultOrder="XYZ",de.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class pe{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return 0!==(this.mask&t.mask)}isEnabled(t){return 0!==(this.mask&(1<<t|0))}}let fe=0;const me=new Tt,ge=new St,ve=new ne,xe=new Tt,ye=new Tt,_e=new Tt,Me=new St,be=new Tt(1,0,0),we=new Tt(0,1,0),Se=new Tt(0,0,1),Te={type:"added"},Ee={type:"removed"};class Ae extends Y{constructor(){super(),Object.defineProperty(this,"id",{value:fe++}),this.uuid=$(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Ae.DefaultUp.clone();const t=new Tt,e=new de,n=new St,i=new Tt(1,1,1);e._onChange((function(){n.setFromEuler(e,!1)})),n._onChange((function(){e.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new ne},normalMatrix:{value:new at}}),this.matrix=new ne,this.matrixWorld=new ne,this.matrixAutoUpdate=Ae.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new pe,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return ge.setFromAxisAngle(t,e),this.quaternion.multiply(ge),this}rotateOnWorldAxis(t,e){return ge.setFromAxisAngle(t,e),this.quaternion.premultiply(ge),this}rotateX(t){return this.rotateOnAxis(be,t)}rotateY(t){return this.rotateOnAxis(we,t)}rotateZ(t){return this.rotateOnAxis(Se,t)}translateOnAxis(t,e){return me.copy(t).applyQuaternion(this.quaternion),this.position.add(me.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(be,t)}translateY(t){return this.translateOnAxis(we,t)}translateZ(t){return this.translateOnAxis(Se,t)}localToWorld(t){return t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return t.applyMatrix4(ve.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?xe.copy(t):xe.set(t,e,n);const i=this.parent;this.updateWorldMatrix(!0,!1),ye.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ve.lookAt(ye,xe,this.up):ve.lookAt(xe,ye,this.up),this.quaternion.setFromRotationMatrix(ve),i&&(ve.extractRotation(i.matrixWorld),ge.setFromRotationMatrix(ve),this.quaternion.premultiply(ge.invert()))}add(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(Te)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(Ee)),this}removeFromParent(){const t=this.parent;return null!==t&&t.remove(this),this}clear(){for(let t=0;t<this.children.length;t++){const e=this.children[t];e.parent=null,e.dispatchEvent(Ee)}return this.children.length=0,this}attach(t){return this.updateWorldMatrix(!0,!1),ve.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),ve.multiply(t.parent.matrixWorld)),t.applyMatrix4(ve),this.add(t),t.updateWorldMatrix(!1,!0),this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n].getObjectByProperty(t,e);if(void 0!==i)return i}}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ye,t,_e),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ye,Me,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverse(t)}traverseVisible(t){if(!1===this.visible)return;t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}traverseAncestors(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].updateMatrixWorld(t)}updateWorldMatrix(t,e){const n=this.parent;if(!0===t&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e){const t=this.children;for(let e=0,n=t.length;e<n;e++)t[e].updateWorldMatrix(!1,!0)}}toJSON(t){const e=void 0===t||"string"===typeof t,n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const i={};function r(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,i=n.length;e<i;e++){const i=n[e];r(t.shapes,i)}else r(t.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(t.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let n=0,i=this.material.length;n<i;n++)e.push(r(t.materials,this.material[n]));i.material=e}else i.material=r(t.materials,this.material);if(this.children.length>0){i.children=[];for(let e=0;e<this.children.length;e++)i.children.push(this.children[e].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let e=0;e<this.animations.length;e++){const n=this.animations[e];i.animations.push(r(t.animations,n))}}if(e){const e=s(t.geometries),i=s(t.materials),r=s(t.textures),a=s(t.images),o=s(t.shapes),l=s(t.skeletons),c=s(t.animations);e.length>0&&(n.geometries=e),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),a.length>0&&(n.images=a),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c)}return n.object=i,n;function s(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}}clone(t){return(new this.constructor).copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let n=0;n<t.children.length;n++){const e=t.children[n];this.add(e.clone())}return this}}Ae.DefaultUp=new Tt(0,1,0),Ae.DefaultMatrixAutoUpdate=!0,Ae.prototype.isObject3D=!0;const Re=new Tt,Le=new Tt,Ce=new Tt,Pe=new Tt,De=new Tt,Ie=new Tt,Ne=new Tt,ze=new Tt,Oe=new Tt,Be=new Tt;class Ue{constructor(t=new Tt,e=new Tt,n=new Tt){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),Re.subVectors(t,e),i.cross(Re);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(t,e,n,i,r){Re.subVectors(i,e),Le.subVectors(n,e),Ce.subVectors(t,e);const s=Re.dot(Re),a=Re.dot(Le),o=Re.dot(Ce),l=Le.dot(Le),c=Le.dot(Ce),h=s*l-a*a;if(0===h)return r.set(-2,-1,-1);const u=1/h,d=(l*o-a*c)*u,p=(s*c-a*o)*u;return r.set(1-d-p,p,d)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,Pe),Pe.x>=0&&Pe.y>=0&&Pe.x+Pe.y<=1}static getUV(t,e,n,i,r,s,a,o){return this.getBarycoord(t,e,n,i,Pe),o.set(0,0),o.addScaledVector(r,Pe.x),o.addScaledVector(s,Pe.y),o.addScaledVector(a,Pe.z),o}static isFrontFacing(t,e,n,i){return Re.subVectors(n,e),Le.subVectors(t,e),Re.cross(Le).dot(i)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,n,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,i),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return Re.subVectors(this.c,this.b),Le.subVectors(this.a,this.b),.5*Re.cross(Le).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return Ue.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return Ue.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,i,r){return Ue.getUV(t,this.a,this.b,this.c,e,n,i,r)}containsPoint(t){return Ue.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return Ue.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const n=this.a,i=this.b,r=this.c;let s,a;De.subVectors(i,n),Ie.subVectors(r,n),ze.subVectors(t,n);const o=De.dot(ze),l=Ie.dot(ze);if(o<=0&&l<=0)return e.copy(n);Oe.subVectors(t,i);const c=De.dot(Oe),h=Ie.dot(Oe);if(c>=0&&h<=c)return e.copy(i);const u=o*h-c*l;if(u<=0&&o>=0&&c<=0)return s=o/(o-c),e.copy(n).addScaledVector(De,s);Be.subVectors(t,r);const d=De.dot(Be),p=Ie.dot(Be);if(p>=0&&d<=p)return e.copy(r);const f=d*l-o*p;if(f<=0&&l>=0&&p<=0)return a=l/(l-p),e.copy(n).addScaledVector(Ie,a);const m=c*p-d*h;if(m<=0&&h-c>=0&&d-p>=0)return Ne.subVectors(r,i),a=(h-c)/(h-c+(d-p)),e.copy(i).addScaledVector(Ne,a);const g=1/(m+f+u);return s=f*g,a=u*g,e.copy(n).addScaledVector(De,s).addScaledVector(Ie,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let Fe=0;class He extends Y{constructor(){super(),Object.defineProperty(this,"id",{value:Fe++}),this.uuid=$(),this.name="",this.type="Material",this.fog=!0,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=o,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=W,this.stencilZFail=W,this.stencilZPass=W,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!==t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if("shading"===e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===n;continue}const i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}}toJSON(t){const e=void 0===t||"string"===typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function i(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),0!==this.side&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e){const e=i(t.textures),r=i(t.images);e.length>0&&(n.textures=e),r.length>0&&(n.images=r)}return n}clone(){return(new this.constructor).copy(this)}copy(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let i=0;i!==t;++i)n[i]=e[i].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}He.prototype.isMaterial=!0;class Ge extends He{constructor(t){super(),this.type="MeshBasicMaterial",this.color=new mt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this}}Ge.prototype.isMeshBasicMaterial=!0;const Ve=new Tt,ke=new st;class We{constructor(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===n,this.usage=j,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let i=0,r=this.itemSize;i<r;i++)this.array[t+i]=e.array[n+i];return this}copyArray(t){return this.array.set(t),this}copyColorsArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),r=new mt),e[n++]=r.r,e[n++]=r.g,e[n++]=r.b}return this}copyVector2sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",i),r=new st),e[n++]=r.x,e[n++]=r.y}return this}copyVector3sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i),r=new Tt),e[n++]=r.x,e[n++]=r.y,e[n++]=r.z}return this}copyVector4sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i),r=new Mt),e[n++]=r.x,e[n++]=r.y,e[n++]=r.z,e[n++]=r.w}return this}applyMatrix3(t){if(2===this.itemSize)for(let e=0,n=this.count;e<n;e++)ke.fromBufferAttribute(this,e),ke.applyMatrix3(t),this.setXY(e,ke.x,ke.y);else if(3===this.itemSize)for(let e=0,n=this.count;e<n;e++)Ve.fromBufferAttribute(this,e),Ve.applyMatrix3(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)Ve.x=this.getX(e),Ve.y=this.getY(e),Ve.z=this.getZ(e),Ve.applyMatrix4(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Ve.x=this.getX(e),Ve.y=this.getY(e),Ve.z=this.getZ(e),Ve.applyNormalMatrix(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Ve.x=this.getX(e),Ve.y=this.getY(e),Ve.z=this.getZ(e),Ve.transformDirection(t),this.setXYZ(e,Ve.x,Ve.y,Ve.z);return this}set(t,e=0){return this.array.set(t,e),this}getX(t){return this.array[t*this.itemSize]}setX(t,e){return this.array[t*this.itemSize]=e,this}getY(t){return this.array[t*this.itemSize+1]}setY(t,e){return this.array[t*this.itemSize+1]=e,this}getZ(t){return this.array[t*this.itemSize+2]}setZ(t,e){return this.array[t*this.itemSize+2]=e,this}getW(t){return this.array[t*this.itemSize+3]}setW(t,e){return this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this}setXYZ(t,e,n,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this}setXYZW(t,e,n,i,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=r,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==j&&(t.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(t.updateRange=this.updateRange),t}}We.prototype.isBufferAttribute=!0;class je extends We{constructor(t,e,n){super(new Uint16Array(t),e,n)}}class qe extends We{constructor(t,e,n){super(new Uint32Array(t),e,n)}}(class extends We{constructor(t,e,n){super(new Uint16Array(t),e,n)}}).prototype.isFloat16BufferAttribute=!0;class Xe extends We{constructor(t,e,n){super(new Float32Array(t),e,n)}}let Je=0;const Ye=new ne,Ze=new Ae,Ke=new Tt,Qe=new Rt,$e=new Rt,tn=new Tt;class en extends Y{constructor(){super(),Object.defineProperty(this,"id",{value:Je++}),this.uuid=$(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(t){return Array.isArray(t)?this.index=new(ot(t)?qe:je)(t,1):this.index=t,this}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return void 0!==this.attributes[t]}addGroup(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const e=(new at).getNormalMatrix(t);n.applyNormalMatrix(e),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(t),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(t){return Ye.makeRotationFromQuaternion(t),this.applyMatrix4(Ye),this}rotateX(t){return Ye.makeRotationX(t),this.applyMatrix4(Ye),this}rotateY(t){return Ye.makeRotationY(t),this.applyMatrix4(Ye),this}rotateZ(t){return Ye.makeRotationZ(t),this.applyMatrix4(Ye),this}translate(t,e,n){return Ye.makeTranslation(t,e,n),this.applyMatrix4(Ye),this}scale(t,e,n){return Ye.makeScale(t,e,n),this.applyMatrix4(Ye),this}lookAt(t){return Ze.lookAt(t),Ze.updateMatrix(),this.applyMatrix4(Ze.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Ke).negate(),this.translate(Ke.x,Ke.y,Ke.z),this}setFromPoints(t){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new Xe(e,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Rt);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new Tt(-1/0,-1/0,-1/0),new Tt(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let n=0,i=e.length;n<i;n++){const t=e[n];Qe.setFromBufferAttribute(t),this.morphTargetsRelative?(tn.addVectors(this.boundingBox.min,Qe.min),this.boundingBox.expandByPoint(tn),tn.addVectors(this.boundingBox.max,Qe.max),this.boundingBox.expandByPoint(tn)):(this.boundingBox.expandByPoint(Qe.min),this.boundingBox.expandByPoint(Qe.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Xt);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new Tt,1/0);if(t){const n=this.boundingSphere.center;if(Qe.setFromBufferAttribute(t),e)for(let t=0,r=e.length;t<r;t++){const n=e[t];$e.setFromBufferAttribute(n),this.morphTargetsRelative?(tn.addVectors(Qe.min,$e.min),Qe.expandByPoint(tn),tn.addVectors(Qe.max,$e.max),Qe.expandByPoint(tn)):(Qe.expandByPoint($e.min),Qe.expandByPoint($e.max))}Qe.getCenter(n);let i=0;for(let e=0,r=t.count;e<r;e++)tn.fromBufferAttribute(t,e),i=Math.max(i,n.distanceToSquared(tn));if(e)for(let r=0,s=e.length;r<s;r++){const s=e[r],a=this.morphTargetsRelative;for(let e=0,r=s.count;e<r;e++)tn.fromBufferAttribute(s,e),a&&(Ke.fromBufferAttribute(t,e),tn.add(Ke)),i=Math.max(i,n.distanceToSquared(tn))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const t=this.index,e=this.attributes;if(null===t||void 0===e.position||void 0===e.normal||void 0===e.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.array,i=e.position.array,r=e.normal.array,s=e.uv.array,a=i.length/3;void 0===e.tangent&&this.setAttribute("tangent",new We(new Float32Array(4*a),4));const o=e.tangent.array,l=[],c=[];for(let T=0;T<a;T++)l[T]=new Tt,c[T]=new Tt;const h=new Tt,u=new Tt,d=new Tt,p=new st,f=new st,m=new st,g=new Tt,v=new Tt;function x(t,e,n){h.fromArray(i,3*t),u.fromArray(i,3*e),d.fromArray(i,3*n),p.fromArray(s,2*t),f.fromArray(s,2*e),m.fromArray(s,2*n),u.sub(h),d.sub(h),f.sub(p),m.sub(p);const r=1/(f.x*m.y-m.x*f.y);isFinite(r)&&(g.copy(u).multiplyScalar(m.y).addScaledVector(d,-f.y).multiplyScalar(r),v.copy(d).multiplyScalar(f.x).addScaledVector(u,-m.x).multiplyScalar(r),l[t].add(g),l[e].add(g),l[n].add(g),c[t].add(v),c[e].add(v),c[n].add(v))}let y=this.groups;0===y.length&&(y=[{start:0,count:n.length}]);for(let T=0,E=y.length;T<E;++T){const t=y[T],e=t.start;for(let i=e,r=e+t.count;i<r;i+=3)x(n[i+0],n[i+1],n[i+2])}const _=new Tt,M=new Tt,b=new Tt,w=new Tt;function S(t){b.fromArray(r,3*t),w.copy(b);const e=l[t];_.copy(e),_.sub(b.multiplyScalar(b.dot(e))).normalize(),M.crossVectors(w,e);const n=M.dot(c[t])<0?-1:1;o[4*t]=_.x,o[4*t+1]=_.y,o[4*t+2]=_.z,o[4*t+3]=n}for(let T=0,E=y.length;T<E;++T){const t=y[T],e=t.start;for(let i=e,r=e+t.count;i<r;i+=3)S(n[i+0]),S(n[i+1]),S(n[i+2])}}computeVertexNormals(){const t=this.index,e=this.getAttribute("position");if(void 0!==e){let n=this.getAttribute("normal");if(void 0===n)n=new We(new Float32Array(3*e.count),3),this.setAttribute("normal",n);else for(let t=0,e=n.count;t<e;t++)n.setXYZ(t,0,0,0);const i=new Tt,r=new Tt,s=new Tt,a=new Tt,o=new Tt,l=new Tt,c=new Tt,h=new Tt;if(t)for(let u=0,d=t.count;u<d;u+=3){const d=t.getX(u+0),p=t.getX(u+1),f=t.getX(u+2);i.fromBufferAttribute(e,d),r.fromBufferAttribute(e,p),s.fromBufferAttribute(e,f),c.subVectors(s,r),h.subVectors(i,r),c.cross(h),a.fromBufferAttribute(n,d),o.fromBufferAttribute(n,p),l.fromBufferAttribute(n,f),a.add(c),o.add(c),l.add(c),n.setXYZ(d,a.x,a.y,a.z),n.setXYZ(p,o.x,o.y,o.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let t=0,u=e.count;t<u;t+=3)i.fromBufferAttribute(e,t+0),r.fromBufferAttribute(e,t+1),s.fromBufferAttribute(e,t+2),c.subVectors(s,r),h.subVectors(i,r),c.cross(h),n.setXYZ(t+0,c.x,c.y,c.z),n.setXYZ(t+1,c.x,c.y,c.z),n.setXYZ(t+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}merge(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const n=this.attributes;for(const i in n){if(void 0===t.attributes[i])continue;const r=n[i].array,s=t.attributes[i],a=s.array,o=s.itemSize*e,l=Math.min(a.length,r.length-o);for(let t=0,e=o;t<l;t++,e++)r[e]=a[t]}return this}normalizeNormals(){const t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)tn.fromBufferAttribute(t,e),tn.normalize(),t.setXYZ(e,tn.x,tn.y,tn.z)}toNonIndexed(){function t(t,e){const n=t.array,i=t.itemSize,r=t.normalized,s=new n.constructor(e.length*i);let a=0,o=0;for(let l=0,c=e.length;l<c;l++){a=t.isInterleavedBufferAttribute?e[l]*t.data.stride+t.offset:e[l]*i;for(let t=0;t<i;t++)s[o++]=n[a++]}return new We(s,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new en,n=this.index.array,i=this.attributes;for(const a in i){const r=t(i[a],n);e.setAttribute(a,r)}const r=this.morphAttributes;for(const a in r){const i=[],s=r[a];for(let e=0,r=s.length;e<r;e++){const r=t(s[e],n);i.push(r)}e.morphAttributes[a]=i}e.morphTargetsRelative=this.morphTargetsRelative;const s=this.groups;for(let a=0,o=s.length;a<o;a++){const t=s[a];e.addGroup(t.start,t.count,t.materialIndex)}return e}toJSON(){const t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const o in n){const e=n[o];t.data.attributes[o]=e.toJSON(t.data)}const i={};let r=!1;for(const o in this.morphAttributes){const e=this.morphAttributes[o],n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];n.push(r.toJSON(t.data))}n.length>0&&(i[o]=n,r=!0)}r&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(t.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return(new this.constructor).copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const i=t.attributes;for(const l in i){const t=i[l];this.setAttribute(l,t.clone(e))}const r=t.morphAttributes;for(const l in r){const t=[],n=r[l];for(let i=0,r=n.length;i<r;i++)t.push(n[i].clone(e));this.morphAttributes[l]=t}this.morphTargetsRelative=t.morphTargetsRelative;const s=t.groups;for(let l=0,c=s.length;l<c;l++){const t=s[l];this.addGroup(t.start,t.count,t.materialIndex)}const a=t.boundingBox;null!==a&&(this.boundingBox=a.clone());const o=t.boundingSphere;return null!==o&&(this.boundingSphere=o.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,void 0!==t.parameters&&(this.parameters=Object.assign({},t.parameters)),this}dispose(){this.dispatchEvent({type:"dispose"})}}en.prototype.isBufferGeometry=!0;const nn=new ne,rn=new ee,sn=new Xt,an=new Tt,on=new Tt,ln=new Tt,cn=new Tt,hn=new Tt,un=new Tt,dn=new Tt,pn=new Tt,fn=new Tt,mn=new st,gn=new st,vn=new st,xn=new Tt,yn=new Tt;class _n extends Ae{constructor(t=new en,e=new Ge){super(),this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=t.material,this.geometry=t.geometry,this}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}raycast(t,e){const n=this.geometry,i=this.material,r=this.matrixWorld;if(void 0===i)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),sn.copy(n.boundingSphere),sn.applyMatrix4(r),!1===t.ray.intersectsSphere(sn))return;if(nn.copy(r).invert(),rn.copy(t.ray).applyMatrix4(nn),null!==n.boundingBox&&!1===rn.intersectsBox(n.boundingBox))return;let s;if(n.isBufferGeometry){const r=n.index,a=n.attributes.position,o=n.morphAttributes.position,l=n.morphTargetsRelative,c=n.attributes.uv,h=n.attributes.uv2,u=n.groups,d=n.drawRange;if(null!==r)if(Array.isArray(i))for(let n=0,p=u.length;n<p;n++){const p=u[n],f=i[p.materialIndex];for(let n=Math.max(p.start,d.start),i=Math.min(r.count,Math.min(p.start+p.count,d.start+d.count));n<i;n+=3){const i=r.getX(n),u=r.getX(n+1),d=r.getX(n+2);s=Mn(this,f,t,rn,a,o,l,c,h,i,u,d),s&&(s.faceIndex=Math.floor(n/3),s.face.materialIndex=p.materialIndex,e.push(s))}}else{for(let n=Math.max(0,d.start),u=Math.min(r.count,d.start+d.count);n<u;n+=3){const u=r.getX(n),d=r.getX(n+1),p=r.getX(n+2);s=Mn(this,i,t,rn,a,o,l,c,h,u,d,p),s&&(s.faceIndex=Math.floor(n/3),e.push(s))}}else if(void 0!==a)if(Array.isArray(i))for(let n=0,p=u.length;n<p;n++){const r=u[n],p=i[r.materialIndex];for(let n=Math.max(r.start,d.start),i=Math.min(a.count,Math.min(r.start+r.count,d.start+d.count));n<i;n+=3){s=Mn(this,p,t,rn,a,o,l,c,h,n,n+1,n+2),s&&(s.faceIndex=Math.floor(n/3),s.face.materialIndex=r.materialIndex,e.push(s))}}else{for(let n=Math.max(0,d.start),r=Math.min(a.count,d.start+d.count);n<r;n+=3){s=Mn(this,i,t,rn,a,o,l,c,h,n,n+1,n+2),s&&(s.faceIndex=Math.floor(n/3),e.push(s))}}}else n.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}function Mn(t,e,n,i,r,s,o,l,c,h,u,d){an.fromBufferAttribute(r,h),on.fromBufferAttribute(r,u),ln.fromBufferAttribute(r,d);const p=t.morphTargetInfluences;if(s&&p){dn.set(0,0,0),pn.set(0,0,0),fn.set(0,0,0);for(let t=0,e=s.length;t<e;t++){const e=p[t],n=s[t];0!==e&&(cn.fromBufferAttribute(n,h),hn.fromBufferAttribute(n,u),un.fromBufferAttribute(n,d),o?(dn.addScaledVector(cn,e),pn.addScaledVector(hn,e),fn.addScaledVector(un,e)):(dn.addScaledVector(cn.sub(an),e),pn.addScaledVector(hn.sub(on),e),fn.addScaledVector(un.sub(ln),e)))}an.add(dn),on.add(pn),ln.add(fn)}t.isSkinnedMesh&&(t.boneTransform(h,an),t.boneTransform(u,on),t.boneTransform(d,ln));const f=function(t,e,n,i,r,s,o,l){let c;if(c=e.side===a?i.intersectTriangle(o,s,r,!0,l):i.intersectTriangle(r,s,o,2!==e.side,l),null===c)return null;yn.copy(l),yn.applyMatrix4(t.matrixWorld);const h=n.ray.origin.distanceTo(yn);return h<n.near||h>n.far?null:{distance:h,point:yn.clone(),object:t}}(t,e,n,i,an,on,ln,xn);if(f){l&&(mn.fromBufferAttribute(l,h),gn.fromBufferAttribute(l,u),vn.fromBufferAttribute(l,d),f.uv=Ue.getUV(xn,an,on,ln,mn,gn,vn,new st)),c&&(mn.fromBufferAttribute(c,h),gn.fromBufferAttribute(c,u),vn.fromBufferAttribute(c,d),f.uv2=Ue.getUV(xn,an,on,ln,mn,gn,vn,new st));const t={a:h,b:u,c:d,normal:new Tt,materialIndex:0};Ue.getNormal(an,on,ln,t.normal),f.face=t}return f}_n.prototype.isMesh=!0;class bn extends en{constructor(t=1,e=1,n=1,i=1,r=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:s};const a=this;i=Math.floor(i),r=Math.floor(r),s=Math.floor(s);const o=[],l=[],c=[],h=[];let u=0,d=0;function p(t,e,n,i,r,s,p,f,m,g,v){const x=s/m,y=p/g,_=s/2,M=p/2,b=f/2,w=m+1,S=g+1;let T=0,E=0;const A=new Tt;for(let a=0;a<S;a++){const s=a*y-M;for(let o=0;o<w;o++){const u=o*x-_;A[t]=u*i,A[e]=s*r,A[n]=b,l.push(A.x,A.y,A.z),A[t]=0,A[e]=0,A[n]=f>0?1:-1,c.push(A.x,A.y,A.z),h.push(o/m),h.push(1-a/g),T+=1}}for(let a=0;a<g;a++)for(let t=0;t<m;t++){const e=u+t+w*a,n=u+t+w*(a+1),i=u+(t+1)+w*(a+1),r=u+(t+1)+w*a;o.push(e,n,r),o.push(n,i,r),E+=6}a.addGroup(d,E,v),d+=E,u+=T}p("z","y","x",-1,-1,n,e,t,s,r,0),p("z","y","x",1,-1,n,e,-t,s,r,1),p("x","z","y",1,1,t,n,e,i,s,2),p("x","z","y",1,-1,t,n,-e,i,s,3),p("x","y","z",1,-1,t,e,n,i,r,4),p("x","y","z",-1,-1,t,e,-n,i,r,5),this.setIndex(o),this.setAttribute("position",new Xe(l,3)),this.setAttribute("normal",new Xe(c,3)),this.setAttribute("uv",new Xe(h,2))}static fromJSON(t){return new bn(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}function wn(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}}return e}function Sn(t){const e={};for(let n=0;n<t.length;n++){const i=wn(t[n]);for(const t in i)e[t]=i[t]}return e}const Tn={clone:wn,merge:Sn};class En extends He{constructor(t){super(),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}copy(t){return super.copy(t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=wn(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this}toJSON(t){const e=super.toJSON(t);e.glslVersion=this.glslVersion,e.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i].value;n&&n.isTexture?e.uniforms[i]={type:"t",value:n.toJSON(t).uuid}:n&&n.isColor?e.uniforms[i]={type:"c",value:n.getHex()}:n&&n.isVector2?e.uniforms[i]={type:"v2",value:n.toArray()}:n&&n.isVector3?e.uniforms[i]={type:"v3",value:n.toArray()}:n&&n.isVector4?e.uniforms[i]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?e.uniforms[i]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?e.uniforms[i]={type:"m4",value:n.toArray()}:e.uniforms[i]={value:n}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const i in this.extensions)!0===this.extensions[i]&&(n[i]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}}En.prototype.isShaderMaterial=!0;class An extends Ae{constructor(){super(),this.type="Camera",this.matrixWorldInverse=new ne,this.projectionMatrix=new ne,this.projectionMatrixInverse=new ne}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}An.prototype.isCamera=!0;class Rn extends An{constructor(t=50,e=1,n=.1,i=2e3){super(),this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*Q*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*K*this.fov);return.5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*Q*Math.atan(Math.tan(.5*K*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(t,e,n,i,r,s){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*K*this.fov)/this.zoom,n=2*e,i=this.aspect*n,r=-.5*i;const s=this.view;if(null!==this.view&&this.view.enabled){const t=s.fullWidth,a=s.fullHeight;r+=s.offsetX*i/t,e-=s.offsetY*n/a,i*=s.width/t,n*=s.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}Rn.prototype.isPerspectiveCamera=!0;const Ln=90;class Cn extends Ae{constructor(t,e,n){if(super(),this.type="CubeCamera",!0!==n.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=n;const i=new Rn(Ln,1,t,e);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new Tt(1,0,0)),this.add(i);const r=new Rn(Ln,1,t,e);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new Tt(-1,0,0)),this.add(r);const s=new Rn(Ln,1,t,e);s.layers=this.layers,s.up.set(0,0,1),s.lookAt(new Tt(0,1,0)),this.add(s);const a=new Rn(Ln,1,t,e);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(new Tt(0,-1,0)),this.add(a);const o=new Rn(Ln,1,t,e);o.layers=this.layers,o.up.set(0,-1,0),o.lookAt(new Tt(0,0,1)),this.add(o);const l=new Rn(Ln,1,t,e);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new Tt(0,0,-1)),this.add(l)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[i,r,s,a,o,l]=this.children,c=t.xr.enabled,h=t.getRenderTarget();t.xr.enabled=!1;const u=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,i),t.setRenderTarget(n,1),t.render(e,r),t.setRenderTarget(n,2),t.render(e,s),t.setRenderTarget(n,3),t.render(e,a),t.setRenderTarget(n,4),t.render(e,o),n.texture.generateMipmaps=u,t.setRenderTarget(n,5),t.render(e,l),t.setRenderTarget(h),t.xr.enabled=c,n.texture.needsPMREMUpdate=!0}}class Pn extends yt{constructor(t,e,n,i,r,s,a,o,c,h){super(t=void 0!==t?t:[],e=void 0!==e?e:l,n,i,r,s,a,o,c,h),this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}Pn.prototype.isCubeTexture=!0;class Dn extends bt{constructor(t,e,n){Number.isInteger(e)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),e=n),super(t,t,e),e=e||{},this.texture=new Pn(void 0,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:_}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.format=R,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new bn(5,5,5),r=new En({name:"CubemapFromEquirect",uniforms:wn(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:a,blending:0});r.uniforms.tEquirect.value=e;const s=new _n(i,r),o=e.minFilter;e.minFilter===M&&(e.minFilter=_);return new Cn(1,10,this).update(t,s),e.minFilter=o,s.geometry.dispose(),s.material.dispose(),this}clear(t,e,n,i){const r=t.getRenderTarget();for(let s=0;s<6;s++)t.setRenderTarget(this,s),t.clear(e,n,i);t.setRenderTarget(r)}}Dn.prototype.isWebGLCubeRenderTarget=!0;const In=new Tt,Nn=new Tt,zn=new at;class On{constructor(t=new Tt(1,0,0),e=0){this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const i=In.subVectors(n,e).cross(Nn.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(i,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)}intersectLine(t,e){const n=t.delta(In),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const r=-(t.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:e.copy(n).multiplyScalar(r).add(t.start)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||zn.getNormalMatrix(t),i=this.coplanarPoint(In).applyMatrix4(t),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}On.prototype.isPlane=!0;const Bn=new Xt,Un=new Tt;class Fn{constructor(t=new On,e=new On,n=new On,i=new On,r=new On,s=new On){this.planes=[t,e,n,i,r,s]}set(t,e,n,i,r,s){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(s),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,i=n[0],r=n[1],s=n[2],a=n[3],o=n[4],l=n[5],c=n[6],h=n[7],u=n[8],d=n[9],p=n[10],f=n[11],m=n[12],g=n[13],v=n[14],x=n[15];return e[0].setComponents(a-i,h-o,f-u,x-m).normalize(),e[1].setComponents(a+i,h+o,f+u,x+m).normalize(),e[2].setComponents(a+r,h+l,f+d,x+g).normalize(),e[3].setComponents(a-r,h-l,f-d,x-g).normalize(),e[4].setComponents(a-s,h-c,f-p,x-v).normalize(),e[5].setComponents(a+s,h+c,f+p,x+v).normalize(),this}intersectsObject(t){const e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Bn.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(Bn)}intersectsSprite(t){return Bn.center.set(0,0,0),Bn.radius=.7071067811865476,Bn.applyMatrix4(t.matrixWorld),this.intersectsSphere(Bn)}intersectsSphere(t){const e=this.planes,n=t.center,i=-t.radius;for(let r=0;r<6;r++){if(e[r].distanceToPoint(n)<i)return!1}return!0}intersectsBox(t){const e=this.planes;for(let n=0;n<6;n++){const i=e[n];if(Un.x=i.normal.x>0?t.max.x:t.min.x,Un.y=i.normal.y>0?t.max.y:t.min.y,Un.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(Un)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Hn(){let t=null,e=!1,n=null,i=null;function r(e,s){n(e,s),i=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==n&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Gn(t,e){const n=e.isWebGL2,i=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),i.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=i.get(e);n&&(t.deleteBuffer(n.buffer),i.delete(e))},update:function(e,r){if(e.isGLBufferAttribute){const t=i.get(e);return void((!t||t.version<e.version)&&i.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version}))}e.isInterleavedBufferAttribute&&(e=e.data);const s=i.get(e);void 0===s?i.set(e,function(e,i){const r=e.array,s=e.usage,a=t.createBuffer();t.bindBuffer(i,a),t.bufferData(i,r,s),e.onUploadCallback();let o=5126;return r instanceof Float32Array?o=5126:r instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):r instanceof Uint16Array?e.isFloat16BufferAttribute?n?o=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):o=5123:r instanceof Int16Array?o=5122:r instanceof Uint32Array?o=5125:r instanceof Int32Array?o=5124:r instanceof Int8Array?o=5120:(r instanceof Uint8Array||r instanceof Uint8ClampedArray)&&(o=5121),{buffer:a,type:o,bytesPerElement:r.BYTES_PER_ELEMENT,version:e.version}}(e,r)):s.version<e.version&&(!function(e,i,r){const s=i.array,a=i.updateRange;t.bindBuffer(r,e),-1===a.count?t.bufferSubData(r,0,s):(n?t.bufferSubData(r,a.offset*s.BYTES_PER_ELEMENT,s,a.offset,a.count):t.bufferSubData(r,a.offset*s.BYTES_PER_ELEMENT,s.subarray(a.offset,a.offset+a.count)),a.count=-1)}(s.buffer,e,r),s.version=e.version)}}}class Vn extends en{constructor(t=1,e=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i};const r=t/2,s=e/2,a=Math.floor(n),o=Math.floor(i),l=a+1,c=o+1,h=t/a,u=e/o,d=[],p=[],f=[],m=[];for(let g=0;g<c;g++){const t=g*u-s;for(let e=0;e<l;e++){const n=e*h-r;p.push(n,-t,0),f.push(0,0,1),m.push(e/a),m.push(1-g/o)}}for(let g=0;g<o;g++)for(let t=0;t<a;t++){const e=t+l*g,n=t+l*(g+1),i=t+1+l*(g+1),r=t+1+l*g;d.push(e,n,r),d.push(n,i,r)}this.setIndex(d),this.setAttribute("position",new Xe(p,3)),this.setAttribute("normal",new Xe(f,3)),this.setAttribute("uv",new Xe(m,2))}static fromJSON(t){return new Vn(t.width,t.height,t.widthSegments,t.heightSegments)}}const kn={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 ) + 0.5;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\treturn texture2D( envMap, uv ).rgb;\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec;\n\t\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\t\treflectVec = reflect( - viewDir, normal );\n\t\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\t#else\n\t\t\t\treflectVec = refract( - viewDir, normal, refractionRatio );\n\t\t\t#endif\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tlightMapIrradiance *= PI;\n\t#endif\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointLightInfo( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotLightInfo( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalLightInfo( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#else\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\t#ifdef SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULARINTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n\t\t#endif\n\t\t#ifdef USE_SPECULARCOLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\tvec3 FssEss = specularColor * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1, 2 ) * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform vec2 morphTargetsTextureSize;\n\t\tvec3 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset, const in int stride ) {\n\t\t\tfloat texelIndex = float( vertexIndex * stride + offset );\n\t\t\tfloat y = floor( texelIndex / morphTargetsTextureSize.x );\n\t\t\tfloat x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tvec3 morphUV = vec3( ( x + 0.5 ) / morphTargetsTextureSize.x, y / morphTargetsTextureSize.y, morphTargetIndex );\n\t\t\treturn texture( morphTargetsTexture, morphUV ).xyz;\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\t#ifndef USE_MORPHNORMALS\n\t\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 1 ) * morphTargetInfluences[ i ];\n\t\t\t#else\n\t\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 2 ) * morphTargetInfluences[ i ];\n\t\t\t#endif\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tfloat transmissionAlpha = 1.0;\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );\n\ttransmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\treturn texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#else\n\t\t\treturn texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#endif\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( attenuationDistance == 0.0 ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tgl_FragColor = texture2D( t2D, vUv );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULARINTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n\t#ifdef USE_SPECULARCOLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}"},Wn={common:{diffuse:{value:new mt(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new at},uv2Transform:{value:new at},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new st(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new mt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new mt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new at}},sprite:{diffuse:{value:new mt(16777215)},opacity:{value:1},center:{value:new st(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new at}}},jn={basic:{uniforms:Sn([Wn.common,Wn.specularmap,Wn.envmap,Wn.aomap,Wn.lightmap,Wn.fog]),vertexShader:kn.meshbasic_vert,fragmentShader:kn.meshbasic_frag},lambert:{uniforms:Sn([Wn.common,Wn.specularmap,Wn.envmap,Wn.aomap,Wn.lightmap,Wn.emissivemap,Wn.fog,Wn.lights,{emissive:{value:new mt(0)}}]),vertexShader:kn.meshlambert_vert,fragmentShader:kn.meshlambert_frag},phong:{uniforms:Sn([Wn.common,Wn.specularmap,Wn.envmap,Wn.aomap,Wn.lightmap,Wn.emissivemap,Wn.bumpmap,Wn.normalmap,Wn.displacementmap,Wn.fog,Wn.lights,{emissive:{value:new mt(0)},specular:{value:new mt(1118481)},shininess:{value:30}}]),vertexShader:kn.meshphong_vert,fragmentShader:kn.meshphong_frag},standard:{uniforms:Sn([Wn.common,Wn.envmap,Wn.aomap,Wn.lightmap,Wn.emissivemap,Wn.bumpmap,Wn.normalmap,Wn.displacementmap,Wn.roughnessmap,Wn.metalnessmap,Wn.fog,Wn.lights,{emissive:{value:new mt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:kn.meshphysical_vert,fragmentShader:kn.meshphysical_frag},toon:{uniforms:Sn([Wn.common,Wn.aomap,Wn.lightmap,Wn.emissivemap,Wn.bumpmap,Wn.normalmap,Wn.displacementmap,Wn.gradientmap,Wn.fog,Wn.lights,{emissive:{value:new mt(0)}}]),vertexShader:kn.meshtoon_vert,fragmentShader:kn.meshtoon_frag},matcap:{uniforms:Sn([Wn.common,Wn.bumpmap,Wn.normalmap,Wn.displacementmap,Wn.fog,{matcap:{value:null}}]),vertexShader:kn.meshmatcap_vert,fragmentShader:kn.meshmatcap_frag},points:{uniforms:Sn([Wn.points,Wn.fog]),vertexShader:kn.points_vert,fragmentShader:kn.points_frag},dashed:{uniforms:Sn([Wn.common,Wn.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:kn.linedashed_vert,fragmentShader:kn.linedashed_frag},depth:{uniforms:Sn([Wn.common,Wn.displacementmap]),vertexShader:kn.depth_vert,fragmentShader:kn.depth_frag},normal:{uniforms:Sn([Wn.common,Wn.bumpmap,Wn.normalmap,Wn.displacementmap,{opacity:{value:1}}]),vertexShader:kn.meshnormal_vert,fragmentShader:kn.meshnormal_frag},sprite:{uniforms:Sn([Wn.sprite,Wn.fog]),vertexShader:kn.sprite_vert,fragmentShader:kn.sprite_frag},background:{uniforms:{uvTransform:{value:new at},t2D:{value:null}},vertexShader:kn.background_vert,fragmentShader:kn.background_frag},cube:{uniforms:Sn([Wn.envmap,{opacity:{value:1}}]),vertexShader:kn.cube_vert,fragmentShader:kn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:kn.equirect_vert,fragmentShader:kn.equirect_frag},distanceRGBA:{uniforms:Sn([Wn.common,Wn.displacementmap,{referencePosition:{value:new Tt},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:kn.distanceRGBA_vert,fragmentShader:kn.distanceRGBA_frag},shadow:{uniforms:Sn([Wn.lights,Wn.fog,{color:{value:new mt(0)},opacity:{value:1}}]),vertexShader:kn.shadow_vert,fragmentShader:kn.shadow_frag}};function qn(t,e,n,i,r,s){const o=new mt(0);let l,c,h=!0===r?0:1,u=null,p=0,f=null;function m(t,e){n.buffers.color.setClear(t.r,t.g,t.b,e,s)}return{getClearColor:function(){return o},setClearColor:function(t,e=1){o.set(t),h=e,m(o,h)},getClearAlpha:function(){return h},setClearAlpha:function(t){h=t,m(o,h)},render:function(n,r){let s=!1,g=!0===r.isScene?r.background:null;g&&g.isTexture&&(g=e.get(g));const v=t.xr,x=v.getSession&&v.getSession();x&&"additive"===x.environmentBlendMode&&(g=null),null===g?m(o,h):g&&g.isColor&&(m(g,1),s=!0),(t.autoClear||s)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),g&&(g.isCubeTexture||g.mapping===d)?(void 0===c&&(c=new _n(new bn(1,1,1),new En({name:"BackgroundCubeMaterial",uniforms:wn(jn.cube.uniforms),vertexShader:jn.cube.vertexShader,fragmentShader:jn.cube.fragmentShader,side:a,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(c)),c.material.uniforms.envMap.value=g,c.material.uniforms.flipEnvMap.value=g.isCubeTexture&&!1===g.isRenderTargetTexture?-1:1,u===g&&p===g.version&&f===t.toneMapping||(c.material.needsUpdate=!0,u=g,p=g.version,f=t.toneMapping),n.unshift(c,c.geometry,c.material,0,0,null)):g&&g.isTexture&&(void 0===l&&(l=new _n(new Vn(2,2),new En({name:"BackgroundMaterial",uniforms:wn(jn.background.uniforms),vertexShader:jn.background.vertexShader,fragmentShader:jn.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=g,!0===g.matrixAutoUpdate&&g.updateMatrix(),l.material.uniforms.uvTransform.value.copy(g.matrix),u===g&&p===g.version&&f===t.toneMapping||(l.material.needsUpdate=!0,u=g,p=g.version,f=t.toneMapping),n.unshift(l,l.geometry,l.material,0,0,null))}}}function Xn(t,e,n,i){const r=t.getParameter(34921),s=i.isWebGL2?null:e.get("OES_vertex_array_object"),a=i.isWebGL2||null!==s,o={},l=d(null);let c=l;function h(e){return i.isWebGL2?t.bindVertexArray(e):s.bindVertexArrayOES(e)}function u(e){return i.isWebGL2?t.deleteVertexArray(e):s.deleteVertexArrayOES(e)}function d(t){const e=[],n=[],i=[];for(let s=0;s<r;s++)e[s]=0,n[s]=0,i[s]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:n,attributeDivisors:i,object:t,attributes:{},index:null}}function p(){const t=c.newAttributes;for(let e=0,n=t.length;e<n;e++)t[e]=0}function f(t){m(t,0)}function m(n,r){const s=c.newAttributes,a=c.enabledAttributes,o=c.attributeDivisors;if(s[n]=1,0===a[n]&&(t.enableVertexAttribArray(n),a[n]=1),o[n]!==r){(i.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),o[n]=r}}function g(){const e=c.newAttributes,n=c.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==e[i]&&(t.disableVertexAttribArray(i),n[i]=0)}function v(e,n,r,s,a,o){!0!==i.isWebGL2||5124!==r&&5125!==r?t.vertexAttribPointer(e,n,r,s,a,o):t.vertexAttribIPointer(e,n,r,a,o)}function x(){y(),c!==l&&(c=l,h(c.object))}function y(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(r,l,u,x,y){let _=!1;if(a){const e=function(e,n,r){const a=!0===r.wireframe;let l=o[e.id];void 0===l&&(l={},o[e.id]=l);let c=l[n.id];void 0===c&&(c={},l[n.id]=c);let h=c[a];void 0===h&&(h=d(i.isWebGL2?t.createVertexArray():s.createVertexArrayOES()),c[a]=h);return h}(x,u,l);c!==e&&(c=e,h(c.object)),_=function(t,e){const n=c.attributes,i=t.attributes;let r=0;for(const s in i){const t=n[s],e=i[s];if(void 0===t)return!0;if(t.attribute!==e)return!0;if(t.data!==e.data)return!0;r++}return c.attributesNum!==r||c.index!==e}(x,y),_&&function(t,e){const n={},i=t.attributes;let r=0;for(const s in i){const t=i[s],e={};e.attribute=t,t.data&&(e.data=t.data),n[s]=e,r++}c.attributes=n,c.attributesNum=r,c.index=e}(x,y)}else{const t=!0===l.wireframe;c.geometry===x.id&&c.program===u.id&&c.wireframe===t||(c.geometry=x.id,c.program=u.id,c.wireframe=t,_=!0)}!0===r.isInstancedMesh&&(_=!0),null!==y&&n.update(y,34963),_&&(!function(r,s,a,o){if(!1===i.isWebGL2&&(r.isInstancedMesh||o.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;p();const l=o.attributes,c=a.getAttributes(),h=s.defaultAttributeValues;for(const e in c){const i=c[e];if(i.location>=0){let s=l[e];if(void 0===s&&("instanceMatrix"===e&&r.instanceMatrix&&(s=r.instanceMatrix),"instanceColor"===e&&r.instanceColor&&(s=r.instanceColor)),void 0!==s){const e=s.normalized,a=s.itemSize,l=n.get(s);if(void 0===l)continue;const c=l.buffer,h=l.type,u=l.bytesPerElement;if(s.isInterleavedBufferAttribute){const n=s.data,l=n.stride,d=s.offset;if(n&&n.isInstancedInterleavedBuffer){for(let t=0;t<i.locationSize;t++)m(i.location+t,n.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let t=0;t<i.locationSize;t++)f(i.location+t);t.bindBuffer(34962,c);for(let t=0;t<i.locationSize;t++)v(i.location+t,a/i.locationSize,h,e,l*u,(d+a/i.locationSize*t)*u)}else{if(s.isInstancedBufferAttribute){for(let t=0;t<i.locationSize;t++)m(i.location+t,s.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=s.meshPerAttribute*s.count)}else for(let t=0;t<i.locationSize;t++)f(i.location+t);t.bindBuffer(34962,c);for(let t=0;t<i.locationSize;t++)v(i.location+t,a/i.locationSize,h,e,a*u,a/i.locationSize*t*u)}}else if(void 0!==h){const n=h[e];if(void 0!==n)switch(n.length){case 2:t.vertexAttrib2fv(i.location,n);break;case 3:t.vertexAttrib3fv(i.location,n);break;case 4:t.vertexAttrib4fv(i.location,n);break;default:t.vertexAttrib1fv(i.location,n)}}}}g()}(r,l,u,x),null!==y&&t.bindBuffer(34963,n.get(y).buffer))},reset:x,resetDefaultState:y,dispose:function(){x();for(const t in o){const e=o[t];for(const t in e){const n=e[t];for(const t in n)u(n[t].object),delete n[t];delete e[t]}delete o[t]}},releaseStatesOfGeometry:function(t){if(void 0===o[t.id])return;const e=o[t.id];for(const n in e){const t=e[n];for(const e in t)u(t[e].object),delete t[e];delete e[n]}delete o[t.id]},releaseStatesOfProgram:function(t){for(const e in o){const n=o[e];if(void 0===n[t.id])continue;const i=n[t.id];for(const t in i)u(i[t].object),delete i[t];delete n[t.id]}},initAttributes:p,enableAttribute:f,disableUnusedAttributes:g}}function Jn(t,e,n,i){const r=i.isWebGL2;let s;this.setMode=function(t){s=t},this.render=function(e,i){t.drawArrays(s,e,i),n.update(i,s,1)},this.renderInstances=function(i,a,o){if(0===o)return;let l,c;if(r)l=t,c="drawArraysInstanced";else if(l=e.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](s,i,a,o),n.update(a,s,o)}}function Yn(t,e,n){let i;function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s="undefined"!==typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&t instanceof WebGL2ComputeRenderingContext;let a=void 0!==n.precision?n.precision:"highp";const o=r(a);o!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",o,"instead."),a=o);const l=s||e.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,h=t.getParameter(34930),u=t.getParameter(35660),d=t.getParameter(3379),p=t.getParameter(34076),f=t.getParameter(34921),m=t.getParameter(36347),g=t.getParameter(36348),v=t.getParameter(36349),x=u>0,y=s||e.has("OES_texture_float");return{isWebGL2:s,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==i)return i;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:c,maxTextures:h,maxVertexTextures:u,maxTextureSize:d,maxCubemapSize:p,maxAttributes:f,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:x,floatFragmentTextures:y,floatVertexTextures:x&&y,maxSamples:s?t.getParameter(36183):0}}function Zn(t){const e=this;let n=null,i=0,r=!1,s=!1;const a=new On,o=new at,l={value:null,needsUpdate:!1};function c(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function h(t,n,i,r){const s=null!==t?t.length:0;let c=null;if(0!==s){if(c=l.value,!0!==r||null===c){const e=i+4*s,r=n.matrixWorldInverse;o.getNormalMatrix(r),(null===c||c.length<e)&&(c=new Float32Array(e));for(let n=0,l=i;n!==s;++n,l+=4)a.copy(t[n]).applyMatrix4(r,o),a.normal.toArray(c,l),c[l+3]=a.constant}l.value=c,l.needsUpdate=!0}return e.numPlanes=s,e.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e,s){const a=0!==t.length||e||0!==i||r;return r=e,n=h(t,s,0),i=t.length,a},this.beginShadows=function(){s=!0,h(null)},this.endShadows=function(){s=!1,c()},this.setState=function(e,a,o){const u=e.clippingPlanes,d=e.clipIntersection,p=e.clipShadows,f=t.get(e);if(!r||null===u||0===u.length||s&&!p)s?h(null):c();else{const t=s?0:i,e=4*t;let r=f.clippingState||null;l.value=r,r=h(u,a,e,o);for(let i=0;i!==e;++i)r[i]=n[i];f.clippingState=r,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function Kn(t){let e=new WeakMap;function n(t,e){return e===h?t.mapping=l:e===u&&(t.mapping=c),t}function i(t){const n=t.target;n.removeEventListener("dispose",i);const r=e.get(n);void 0!==r&&(e.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture&&!1===r.isRenderTargetTexture){const s=r.mapping;if(s===h||s===u){if(e.has(r)){return n(e.get(r).texture,r.mapping)}{const s=r.image;if(s&&s.height>0){const a=new Dn(s.height/2);return a.fromEquirectangularTexture(t,r),e.set(r,a),r.addEventListener("dispose",i),n(a.texture,r.mapping)}return null}}}return r},dispose:function(){e=new WeakMap}}}jn.physical={uniforms:Sn([jn.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new st(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new mt(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new st},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new mt(0)},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new mt(1,1,1)},specularColorMap:{value:null}}]),vertexShader:kn.meshphysical_vert,fragmentShader:kn.meshphysical_frag};class Qn extends An{constructor(t=-1,e=1,n=1,i=-1,r=.1,s=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=i,this.near=r,this.far=s,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,i,r,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-t,s=n+t,a=i+e,o=i-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=t*this.view.offsetX,s=r+t*this.view.width,a-=e*this.view.offsetY,o=a-e*this.view.height}this.projectionMatrix.makeOrthographic(r,s,a,o,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}Qn.prototype.isOrthographicCamera=!0;class $n extends En{constructor(t){super(t),this.type="RawShaderMaterial"}}$n.prototype.isRawShaderMaterial=!0;const ti=Math.pow(2,8),ei=[.125,.215,.35,.446,.526,.582],ni=5+ei.length,ii=20,ri=new Qn,{_lodPlanes:si,_sizeLods:ai,_sigmas:oi}=fi(),li=new mt;let ci=null;const hi=(1+Math.sqrt(5))/2,ui=1/hi,di=[new Tt(1,1,1),new Tt(-1,1,1),new Tt(1,1,-1),new Tt(-1,1,-1),new Tt(0,hi,ui),new Tt(0,hi,-ui),new Tt(ui,0,hi),new Tt(-ui,0,hi),new Tt(hi,ui,0),new Tt(-hi,ui,0)];class pi{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._blurMaterial=function(t){const e=new Float32Array(t),n=new Tt(0,1,0);return new $n({name:"SphericalGaussianBlur",defines:{n:t},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:e},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:n}},vertexShader:yi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}(ii),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,i=100){ci=this._renderer.getRenderTarget();const r=this._allocateTargets();return this._sceneToCubeUV(t,n,i,r),e>0&&this._blur(r,0,0,e),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(t,e=null){return this._fromTexture(t,e)}fromCubemap(t,e=null){return this._fromTexture(t,e)}compileCubemapShader(){null===this._cubemapShader&&(this._cubemapShader=xi(),this._compileMaterial(this._cubemapShader))}compileEquirectangularShader(){null===this._equirectShader&&(this._equirectShader=vi(),this._compileMaterial(this._equirectShader))}dispose(){this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose(),null!==this._cubemapShader&&this._cubemapShader.dispose(),null!==this._equirectShader&&this._equirectShader.dispose();for(let t=0;t<si.length;t++)si[t].dispose()}_cleanup(t){this._renderer.setRenderTarget(ci),t.scissorTest=!1,gi(t,0,0,t.width,t.height)}_fromTexture(t,e){ci=this._renderer.getRenderTarget();const n=e||this._allocateTargets(t);return this._textureToCubeUV(t,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(t){const e={magFilter:_,minFilter:_,generateMipmaps:!1,type:E,format:R,encoding:V,depthBuffer:!1},n=mi(e);return n.depthBuffer=!t,null===this._pingPongRenderTarget&&(this._pingPongRenderTarget=mi(e)),n}_compileMaterial(t){const e=new _n(si[0],t);this._renderer.compile(e,ri)}_sceneToCubeUV(t,e,n,i){const r=new Rn(90,1,e,n),s=[1,-1,1,1,1,1],o=[1,1,1,-1,-1,-1],l=this._renderer,c=l.autoClear,h=l.toneMapping;l.getClearColor(li),l.toneMapping=0,l.autoClear=!1;const u=new Ge({name:"PMREM.Background",side:a,depthWrite:!1,depthTest:!1}),d=new _n(new bn,u);let p=!1;const f=t.background;f?f.isColor&&(u.color.copy(f),t.background=null,p=!0):(u.color.copy(li),p=!0);for(let a=0;a<6;a++){const e=a%3;0===e?(r.up.set(0,s[a],0),r.lookAt(o[a],0,0)):1===e?(r.up.set(0,0,s[a]),r.lookAt(0,o[a],0)):(r.up.set(0,s[a],0),r.lookAt(0,0,o[a])),gi(i,e*ti,a>2?ti:0,ti,ti),l.setRenderTarget(i),p&&l.render(d,r),l.render(t,r)}d.geometry.dispose(),d.material.dispose(),l.toneMapping=h,l.autoClear=c,t.background=f}_textureToCubeUV(t,e){const n=this._renderer,i=t.mapping===l||t.mapping===c;i?(null===this._cubemapShader&&(this._cubemapShader=xi()),this._cubemapShader.uniforms.flipEnvMap.value=!1===t.isRenderTargetTexture?-1:1):null===this._equirectShader&&(this._equirectShader=vi());const r=i?this._cubemapShader:this._equirectShader,s=new _n(si[0],r),a=r.uniforms;a.envMap.value=t,i||a.texelSize.value.set(1/t.image.width,1/t.image.height),gi(e,0,0,3*ti,2*ti),n.setRenderTarget(e),n.render(s,ri)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let i=1;i<ni;i++){const e=Math.sqrt(oi[i]*oi[i]-oi[i-1]*oi[i-1]),n=di[(i-1)%di.length];this._blur(t,i-1,i,e,n)}e.autoClear=n}_blur(t,e,n,i,r){const s=this._pingPongRenderTarget;this._halfBlur(t,s,e,n,i,"latitudinal",r),this._halfBlur(s,t,n,n,i,"longitudinal",r)}_halfBlur(t,e,n,i,r,s,a){const o=this._renderer,l=this._blurMaterial;"latitudinal"!==s&&"longitudinal"!==s&&console.error("blur direction must be either latitudinal or longitudinal!");const c=new _n(si[i],l),h=l.uniforms,u=ai[n]-1,d=isFinite(r)?Math.PI/(2*u):2*Math.PI/39,p=r/d,f=isFinite(r)?1+Math.floor(3*p):ii;f>ii&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${f} samples when the maximum is set to 20`);const m=[];let g=0;for(let x=0;x<ii;++x){const t=x/p,e=Math.exp(-t*t/2);m.push(e),0===x?g+=e:x<f&&(g+=2*e)}for(let x=0;x<m.length;x++)m[x]=m[x]/g;h.envMap.value=t.texture,h.samples.value=f,h.weights.value=m,h.latitudinal.value="latitudinal"===s,a&&(h.poleAxis.value=a),h.dTheta.value=d,h.mipInt.value=8-n;const v=ai[i];gi(e,3*Math.max(0,ti-2*v),(0===i?0:2*ti)+2*v*(i>4?i-8+4:0),3*v,2*v),o.setRenderTarget(e),o.render(c,ri)}}function fi(){const t=[],e=[],n=[];let i=8;for(let r=0;r<ni;r++){const s=Math.pow(2,i);e.push(s);let a=1/s;r>4?a=ei[r-8+4-1]:0===r&&(a=0),n.push(a);const o=1/(s-1),l=-o/2,c=1+o/2,h=[l,l,c,l,c,c,l,l,c,c,l,c],u=6,d=6,p=3,f=2,m=1,g=new Float32Array(p*d*u),v=new Float32Array(f*d*u),x=new Float32Array(m*d*u);for(let t=0;t<u;t++){const e=t%3*2/3-1,n=t>2?0:-1,i=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];g.set(i,p*d*t),v.set(h,f*d*t);const r=[t,t,t,t,t,t];x.set(r,m*d*t)}const y=new en;y.setAttribute("position",new We(g,p)),y.setAttribute("uv",new We(v,f)),y.setAttribute("faceIndex",new We(x,m)),t.push(y),i>4&&i--}return{_lodPlanes:t,_sizeLods:e,_sigmas:n}}function mi(t){const e=new bt(3*ti,3*ti,t);return e.texture.mapping=d,e.texture.name="PMREM.cubeUv",e.scissorTest=!0,e}function gi(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function vi(){const t=new st(1,1);return new $n({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:t}},vertexShader:yi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = texture2D ( envMap, uv ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = texture2D ( envMap, uv ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = texture2D ( envMap, uv ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = texture2D ( envMap, uv ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function xi(){return new $n({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:yi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function yi(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function _i(t){let e=new WeakMap,n=null;function i(t){const n=t.target;n.removeEventListener("dispose",i);const r=e.get(n);void 0!==r&&(e.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const s=r.mapping,a=s===h||s===u,o=s===l||s===c;if(a||o){if(r.isRenderTargetTexture&&!0===r.needsPMREMUpdate){r.needsPMREMUpdate=!1;let i=e.get(r);return null===n&&(n=new pi(t)),i=a?n.fromEquirectangular(r,i):n.fromCubemap(r,i),e.set(r,i),i.texture}if(e.has(r))return e.get(r).texture;{const s=r.image;if(a&&s&&s.height>0||o&&s&&function(t){let e=0;const n=6;for(let i=0;i<n;i++)void 0!==t[i]&&e++;return e===n}(s)){null===n&&(n=new pi(t));const s=a?n.fromEquirectangular(r):n.fromCubemap(r);return e.set(r,s),r.addEventListener("dispose",i),s.texture}return null}}}return r},dispose:function(){e=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function Mi(t){const e={};function n(n){if(void 0!==e[n])return e[n];let i;switch(n){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=t.getExtension(n)}return e[n]=i,i}return{has:function(t){return null!==n(t)},init:function(t){t.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(t){const e=n(t);return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e}}}function bi(t,e,n,i){const r={},s=new WeakMap;function a(t){const o=t.target;null!==o.index&&e.remove(o.index);for(const n in o.attributes)e.remove(o.attributes[n]);o.removeEventListener("dispose",a),delete r[o.id];const l=s.get(o);l&&(e.remove(l),s.delete(o)),i.releaseStatesOfGeometry(o),!0===o.isInstancedBufferGeometry&&delete o._maxInstanceCount,n.memory.geometries--}function o(t){const n=[],i=t.index,r=t.attributes.position;let a=0;if(null!==i){const t=i.array;a=i.version;for(let e=0,i=t.length;e<i;e+=3){const i=t[e+0],r=t[e+1],s=t[e+2];n.push(i,r,r,s,s,i)}}else{const t=r.array;a=r.version;for(let e=0,i=t.length/3-1;e<i;e+=3){const t=e+0,i=e+1,r=e+2;n.push(t,i,i,r,r,t)}}const o=new(ot(n)?qe:je)(n,1);o.version=a;const l=s.get(t);l&&e.remove(l),s.set(t,o)}return{get:function(t,e){return!0===r[e.id]||(e.addEventListener("dispose",a),r[e.id]=!0,n.memory.geometries++),e},update:function(t){const n=t.attributes;for(const r in n)e.update(n[r],34962);const i=t.morphAttributes;for(const r in i){const t=i[r];for(let n=0,i=t.length;n<i;n++)e.update(t[n],34962)}},getWireframeAttribute:function(t){const e=s.get(t);if(e){const n=t.index;null!==n&&e.version<n.version&&o(t)}else o(t);return s.get(t)}}}function wi(t,e,n,i){const r=i.isWebGL2;let s,a,o;this.setMode=function(t){s=t},this.setIndex=function(t){a=t.type,o=t.bytesPerElement},this.render=function(e,i){t.drawElements(s,i,a,e*o),n.update(i,s,1)},this.renderInstances=function(i,l,c){if(0===c)return;let h,u;if(r)h=t,u="drawElementsInstanced";else if(h=e.get("ANGLE_instanced_arrays"),u="drawElementsInstancedANGLE",null===h)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");h[u](s,l,a,i*o,c),n.update(l,s,c)}}function Si(t){const e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(t,n,i){switch(e.calls++,n){case 4:e.triangles+=i*(t/3);break;case 1:e.lines+=i*(t/2);break;case 3:e.lines+=i*(t-1);break;case 2:e.lines+=i*t;break;case 0:e.points+=i*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}class Ti extends yt{constructor(t=null,e=1,n=1,i=1){super(null),this.image={data:t,width:e,height:n,depth:i},this.magFilter=v,this.minFilter=v,this.wrapR=m,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}function Ei(t,e){return t[0]-e[0]}function Ai(t,e){return Math.abs(e[1])-Math.abs(t[1])}function Ri(t,e){let n=1;const i=e.isInterleavedBufferAttribute?e.data.array:e.array;i instanceof Int8Array?n=127:i instanceof Int16Array?n=32767:i instanceof Int32Array?n=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",i),t.divideScalar(n)}function Li(t,e,n){const i={},r=new Float32Array(8),s=new WeakMap,a=new Tt,o=[];for(let l=0;l<8;l++)o[l]=[l,0];return{update:function(l,c,h,u){const d=l.morphTargetInfluences;if(!0===e.isWebGL2){const i=c.morphAttributes.position.length;let r=s.get(c);if(void 0===r||r.count!==i){void 0!==r&&r.texture.dispose();const t=void 0!==c.morphAttributes.normal,n=c.morphAttributes.position,o=c.morphAttributes.normal||[],l=!0===t?2:1;let h=c.attributes.position.count*l,u=1;h>e.maxTextureSize&&(u=Math.ceil(h/e.maxTextureSize),h=e.maxTextureSize);const d=new Float32Array(h*u*4*i),p=new Ti(d,h,u,i);p.format=R,p.type=T,p.needsUpdate=!0;const f=4*l;for(let e=0;e<i;e++){const i=n[e],r=o[e],s=h*u*4*e;for(let e=0;e<i.count;e++){a.fromBufferAttribute(i,e),!0===i.normalized&&Ri(a,i);const n=e*f;d[s+n+0]=a.x,d[s+n+1]=a.y,d[s+n+2]=a.z,d[s+n+3]=0,!0===t&&(a.fromBufferAttribute(r,e),!0===r.normalized&&Ri(a,r),d[s+n+4]=a.x,d[s+n+5]=a.y,d[s+n+6]=a.z,d[s+n+7]=0)}}function m(){p.dispose(),s.delete(c),c.removeEventListener("dispose",m)}r={count:i,texture:p,size:new st(h,u)},s.set(c,r),c.addEventListener("dispose",m)}let o=0;for(let t=0;t<d.length;t++)o+=d[t];const l=c.morphTargetsRelative?1:1-o;u.getUniforms().setValue(t,"morphTargetBaseInfluence",l),u.getUniforms().setValue(t,"morphTargetInfluences",d),u.getUniforms().setValue(t,"morphTargetsTexture",r.texture,n),u.getUniforms().setValue(t,"morphTargetsTextureSize",r.size)}else{const e=void 0===d?0:d.length;let n=i[c.id];if(void 0===n||n.length!==e){n=[];for(let t=0;t<e;t++)n[t]=[t,0];i[c.id]=n}for(let t=0;t<e;t++){const e=n[t];e[0]=t,e[1]=d[t]}n.sort(Ai);for(let t=0;t<8;t++)t<e&&n[t][1]?(o[t][0]=n[t][0],o[t][1]=n[t][1]):(o[t][0]=Number.MAX_SAFE_INTEGER,o[t][1]=0);o.sort(Ei);const s=c.morphAttributes.position,a=c.morphAttributes.normal;let l=0;for(let t=0;t<8;t++){const e=o[t],n=e[0],i=e[1];n!==Number.MAX_SAFE_INTEGER&&i?(s&&c.getAttribute("morphTarget"+t)!==s[n]&&c.setAttribute("morphTarget"+t,s[n]),a&&c.getAttribute("morphNormal"+t)!==a[n]&&c.setAttribute("morphNormal"+t,a[n]),r[t]=i,l+=i):(s&&!0===c.hasAttribute("morphTarget"+t)&&c.deleteAttribute("morphTarget"+t),a&&!0===c.hasAttribute("morphNormal"+t)&&c.deleteAttribute("morphNormal"+t),r[t]=0)}const h=c.morphTargetsRelative?1:1-l;u.getUniforms().setValue(t,"morphTargetBaseInfluence",h),u.getUniforms().setValue(t,"morphTargetInfluences",r)}}}}function Ci(t,e,n,i){let r=new WeakMap;function s(t){const e=t.target;e.removeEventListener("dispose",s),n.remove(e.instanceMatrix),null!==e.instanceColor&&n.remove(e.instanceColor)}return{update:function(t){const a=i.render.frame,o=t.geometry,l=e.get(t,o);return r.get(l)!==a&&(e.update(l),r.set(l,a)),t.isInstancedMesh&&(!1===t.hasEventListener("dispose",s)&&t.addEventListener("dispose",s),n.update(t.instanceMatrix,34962),null!==t.instanceColor&&n.update(t.instanceColor,34962)),l},dispose:function(){r=new WeakMap}}}Ti.prototype.isDataTexture2DArray=!0;class Pi extends yt{constructor(t=null,e=1,n=1,i=1){super(null),this.image={data:t,width:e,height:n,depth:i},this.magFilter=v,this.minFilter=v,this.wrapR=m,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}Pi.prototype.isDataTexture3D=!0;const Di=new yt,Ii=new Ti,Ni=new Pi,zi=new Pn,Oi=[],Bi=[],Ui=new Float32Array(16),Fi=new Float32Array(9),Hi=new Float32Array(4);function Gi(t,e,n){const i=t[0];if(i<=0||i>0)return t;const r=e*n;let s=Oi[r];if(void 0===s&&(s=new Float32Array(r),Oi[r]=s),0!==e){i.toArray(s,0);for(let i=1,r=0;i!==e;++i)r+=n,t[i].toArray(s,r)}return s}function Vi(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function ki(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function Wi(t,e){let n=Bi[e];void 0===n&&(n=new Int32Array(e),Bi[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function ji(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function qi(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Vi(n,e))return;t.uniform2fv(this.addr,e),ki(n,e)}}function Xi(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(void 0!==e.r)n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(Vi(n,e))return;t.uniform3fv(this.addr,e),ki(n,e)}}function Ji(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Vi(n,e))return;t.uniform4fv(this.addr,e),ki(n,e)}}function Yi(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Vi(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),ki(n,e)}else{if(Vi(n,i))return;Hi.set(i),t.uniformMatrix2fv(this.addr,!1,Hi),ki(n,i)}}function Zi(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Vi(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),ki(n,e)}else{if(Vi(n,i))return;Fi.set(i),t.uniformMatrix3fv(this.addr,!1,Fi),ki(n,i)}}function Ki(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Vi(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),ki(n,e)}else{if(Vi(n,i))return;Ui.set(i),t.uniformMatrix4fv(this.addr,!1,Ui),ki(n,i)}}function Qi(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function $i(t,e){const n=this.cache;Vi(n,e)||(t.uniform2iv(this.addr,e),ki(n,e))}function tr(t,e){const n=this.cache;Vi(n,e)||(t.uniform3iv(this.addr,e),ki(n,e))}function er(t,e){const n=this.cache;Vi(n,e)||(t.uniform4iv(this.addr,e),ki(n,e))}function nr(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function ir(t,e){const n=this.cache;Vi(n,e)||(t.uniform2uiv(this.addr,e),ki(n,e))}function rr(t,e){const n=this.cache;Vi(n,e)||(t.uniform3uiv(this.addr,e),ki(n,e))}function sr(t,e){const n=this.cache;Vi(n,e)||(t.uniform4uiv(this.addr,e),ki(n,e))}function ar(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.safeSetTexture2D(e||Di,r)}function or(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||Ni,r)}function lr(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.safeSetTextureCube(e||zi,r)}function cr(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(e||Ii,r)}function hr(t,e){t.uniform1fv(this.addr,e)}function ur(t,e){const n=Gi(e,this.size,2);t.uniform2fv(this.addr,n)}function dr(t,e){const n=Gi(e,this.size,3);t.uniform3fv(this.addr,n)}function pr(t,e){const n=Gi(e,this.size,4);t.uniform4fv(this.addr,n)}function fr(t,e){const n=Gi(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function mr(t,e){const n=Gi(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function gr(t,e){const n=Gi(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function vr(t,e){t.uniform1iv(this.addr,e)}function xr(t,e){t.uniform2iv(this.addr,e)}function yr(t,e){t.uniform3iv(this.addr,e)}function _r(t,e){t.uniform4iv(this.addr,e)}function Mr(t,e){t.uniform1uiv(this.addr,e)}function br(t,e){t.uniform2uiv(this.addr,e)}function wr(t,e){t.uniform3uiv(this.addr,e)}function Sr(t,e){t.uniform4uiv(this.addr,e)}function Tr(t,e,n){const i=e.length,r=Wi(n,i);t.uniform1iv(this.addr,r);for(let s=0;s!==i;++s)n.safeSetTexture2D(e[s]||Di,r[s])}function Er(t,e,n){const i=e.length,r=Wi(n,i);t.uniform1iv(this.addr,r);for(let s=0;s!==i;++s)n.setTexture3D(e[s]||Ni,r[s])}function Ar(t,e,n){const i=e.length,r=Wi(n,i);t.uniform1iv(this.addr,r);for(let s=0;s!==i;++s)n.safeSetTextureCube(e[s]||zi,r[s])}function Rr(t,e,n){const i=e.length,r=Wi(n,i);t.uniform1iv(this.addr,r);for(let s=0;s!==i;++s)n.setTexture2DArray(e[s]||Ii,r[s])}function Lr(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=function(t){switch(t){case 5126:return ji;case 35664:return qi;case 35665:return Xi;case 35666:return Ji;case 35674:return Yi;case 35675:return Zi;case 35676:return Ki;case 5124:case 35670:return Qi;case 35667:case 35671:return $i;case 35668:case 35672:return tr;case 35669:case 35673:return er;case 5125:return nr;case 36294:return ir;case 36295:return rr;case 36296:return sr;case 35678:case 36198:case 36298:case 36306:case 35682:return ar;case 35679:case 36299:case 36307:return or;case 35680:case 36300:case 36308:case 36293:return lr;case 36289:case 36303:case 36311:case 36292:return cr}}(e.type)}function Cr(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return hr;case 35664:return ur;case 35665:return dr;case 35666:return pr;case 35674:return fr;case 35675:return mr;case 35676:return gr;case 5124:case 35670:return vr;case 35667:case 35671:return xr;case 35668:case 35672:return yr;case 35669:case 35673:return _r;case 5125:return Mr;case 36294:return br;case 36295:return wr;case 36296:return Sr;case 35678:case 36198:case 36298:case 36306:case 35682:return Tr;case 35679:case 36299:case 36307:return Er;case 35680:case 36300:case 36308:case 36293:return Ar;case 36289:case 36303:case 36311:case 36292:return Rr}}(e.type)}function Pr(t){this.id=t,this.seq=[],this.map={}}Cr.prototype.updateCache=function(t){const e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),ki(e,t)},Pr.prototype.setValue=function(t,e,n){const i=this.seq;for(let r=0,s=i.length;r!==s;++r){const s=i[r];s.setValue(t,e[s.id],n)}};const Dr=/(\w+)(\])?(\[|\.)?/g;function Ir(t,e){t.seq.push(e),t.map[e.id]=e}function Nr(t,e,n){const i=t.name,r=i.length;for(Dr.lastIndex=0;;){const s=Dr.exec(i),a=Dr.lastIndex;let o=s[1];const l="]"===s[2],c=s[3];if(l&&(o|=0),void 0===c||"["===c&&a+2===r){Ir(n,void 0===c?new Lr(o,t,e):new Cr(o,t,e));break}{let t=n.map[o];void 0===t&&(t=new Pr(o),Ir(n,t)),n=t}}}function zr(t,e){this.seq=[],this.map={};const n=t.getProgramParameter(e,35718);for(let i=0;i<n;++i){const n=t.getActiveUniform(e,i);Nr(n,t.getUniformLocation(e,n.name),this)}}function Or(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}zr.prototype.setValue=function(t,e,n,i){const r=this.map[e];void 0!==r&&r.setValue(t,n,i)},zr.prototype.setOptional=function(t,e,n){const i=e[n];void 0!==i&&this.setValue(t,n,i)},zr.upload=function(t,e,n,i){for(let r=0,s=e.length;r!==s;++r){const s=e[r],a=n[s.id];!1!==a.needsUpdate&&s.setValue(t,a.value,i)}},zr.seqWithValue=function(t,e){const n=[];for(let i=0,r=t.length;i!==r;++i){const r=t[i];r.id in e&&n.push(r)}return n};let Br=0;function Ur(t,e,n){const i=t.getShaderParameter(e,35713),r=t.getShaderInfoLog(e).trim();return i&&""===r?"":n.toUpperCase()+"\n\n"+r+"\n\n"+function(t){const e=t.split("\n");for(let n=0;n<e.length;n++)e[n]=n+1+": "+e[n];return e.join("\n")}(t.getShaderSource(e))}function Fr(t,e){const n=function(t){switch(t){case V:return["Linear","( value )"];case k:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Hr(t,e){let n;switch(e){case 1:n="Linear";break;case 2:n="Reinhard";break;case 3:n="OptimizedCineon";break;case 4:n="ACESFilmic";break;case 5:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Gr(t){return""!==t}function Vr(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function kr(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const Wr=/^[ \t]*#include +<([\w\d./]+)>/gm;function jr(t){return t.replace(Wr,qr)}function qr(t,e){const n=kn[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return jr(n)}const Xr=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Jr=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Yr(t){return t.replace(Jr,Kr).replace(Xr,Zr)}function Zr(t,e,n,i){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Kr(t,e,n,i)}function Kr(t,e,n,i){let r="";for(let s=parseInt(e);s<parseInt(n);s++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+s+" ]").replace(/UNROLLED_LOOP_INDEX/g,s);return r}function Qr(t){let e="precision "+t.precision+" float;\nprecision "+t.precision+" int;";return"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function $r(t,e,n,i){const r=t.getContext(),s=n.defines;let a=n.vertexShader,o=n.fragmentShader;const h=function(t){let e="SHADOWMAP_TYPE_BASIC";return 1===t.shadowMapType?e="SHADOWMAP_TYPE_PCF":2===t.shadowMapType?e="SHADOWMAP_TYPE_PCF_SOFT":3===t.shadowMapType&&(e="SHADOWMAP_TYPE_VSM"),e}(n),u=function(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case l:case c:e="ENVMAP_TYPE_CUBE";break;case d:case p:e="ENVMAP_TYPE_CUBE_UV"}return e}(n),f=function(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case c:case p:e="ENVMAP_MODE_REFRACTION"}return e}(n),m=function(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case 0:e="ENVMAP_BLENDING_MULTIPLY";break;case 1:e="ENVMAP_BLENDING_MIX";break;case 2:e="ENVMAP_BLENDING_ADD"}return e}(n),g=n.isWebGL2?"":function(t){return[t.extensionDerivatives||t.envMapCubeUV||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Gr).join("\n")}(n),v=function(t){const e=[];for(const n in t){const i=t[n];!1!==i&&e.push("#define "+n+" "+i)}return e.join("\n")}(s),x=r.createProgram();let y,_,M=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(y=[v].filter(Gr).join("\n"),y.length>0&&(y+="\n"),_=[g,v].filter(Gr).join("\n"),_.length>0&&(_+="\n")):(y=[Qr(n),"#define SHADER_NAME "+n.shaderName,v,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Gr).join("\n"),_=[g,Qr(n),"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+f:"",n.envMap?"#define "+m:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",0!==n.toneMapping?"#define TONE_MAPPING":"",0!==n.toneMapping?kn.tonemapping_pars_fragment:"",0!==n.toneMapping?Hr("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.transparent?"":"#define OPAQUE",kn.encodings_pars_fragment,Fr("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Gr).join("\n")),a=jr(a),a=Vr(a,n),a=kr(a,n),o=jr(o),o=Vr(o,n),o=kr(o,n),a=Yr(a),o=Yr(o),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(M="#version 300 es\n",y=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+y,_=["#define varying in",n.glslVersion===X?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===X?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+_);const b=M+_+o,w=Or(r,35633,M+y+a),S=Or(r,35632,b);if(r.attachShader(x,w),r.attachShader(x,S),void 0!==n.index0AttributeName?r.bindAttribLocation(x,0,n.index0AttributeName):!0===n.morphTargets&&r.bindAttribLocation(x,0,"position"),r.linkProgram(x),t.debug.checkShaderErrors){const t=r.getProgramInfoLog(x).trim(),e=r.getShaderInfoLog(w).trim(),n=r.getShaderInfoLog(S).trim();let i=!0,s=!0;if(!1===r.getProgramParameter(x,35714)){i=!1;const e=Ur(r,w,"vertex"),n=Ur(r,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(x,35715)+"\n\nProgram Info Log: "+t+"\n"+e+"\n"+n)}else""!==t?console.warn("THREE.WebGLProgram: Program Info Log:",t):""!==e&&""!==n||(s=!1);s&&(this.diagnostics={runnable:i,programLog:t,vertexShader:{log:e,prefix:y},fragmentShader:{log:n,prefix:_}})}let T,E;return r.deleteShader(w),r.deleteShader(S),this.getUniforms=function(){return void 0===T&&(T=new zr(r,x)),T},this.getAttributes=function(){return void 0===E&&(E=function(t,e){const n={},i=t.getProgramParameter(e,35721);for(let r=0;r<i;r++){const i=t.getActiveAttrib(e,r),s=i.name;let a=1;35674===i.type&&(a=2),35675===i.type&&(a=3),35676===i.type&&(a=4),n[s]={type:i.type,location:t.getAttribLocation(e,s),locationSize:a}}return n}(r,x)),E},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(x),this.program=void 0},this.name=n.shaderName,this.id=Br++,this.cacheKey=e,this.usedTimes=1,this.program=x,this.vertexShader=w,this.fragmentShader=S,this}let ts=0;class es{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(t){const e=t.vertexShader,n=t.fragmentShader,i=this._getShaderStage(e),r=this._getShaderStage(n),s=this._getShaderCacheForMaterial(t);return!1===s.has(i)&&(s.add(i),i.usedTimes++),!1===s.has(r)&&(s.add(r),r.usedTimes++),this}remove(t){const e=this.materialCache.get(t);for(const n of e)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n);return this.materialCache.delete(t),this}getVertexShaderID(t){return this._getShaderStage(t.vertexShader).id}getFragmentShaderID(t){return this._getShaderStage(t.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(t){const e=this.materialCache;return!1===e.has(t)&&e.set(t,new Set),e.get(t)}_getShaderStage(t){const e=this.shaderCache;if(!1===e.has(t)){const n=new ns;e.set(t,n)}return e.get(t)}}class ns{constructor(){this.id=ts++,this.usedTimes=0}}function is(t,e,n,i,r,s,o){const l=new pe,c=new es,h=[],u=r.isWebGL2,f=r.logarithmicDepthBuffer,m=r.floatVertexTextures,g=r.maxVertexUniforms,v=r.vertexTextures;let x=r.precision;const y={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};return{getParameters:function(s,l,h,_,M){const b=_.fog,w=s.isMeshStandardMaterial?_.environment:null,S=(s.isMeshStandardMaterial?n:e).get(s.envMap||w),T=y[s.type],E=M.isSkinnedMesh?function(t){const e=t.skeleton.bones;if(m)return 1024;{const t=g,n=Math.floor((t-20)/4),i=Math.min(n,e.length);return i<e.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+e.length+" bones. This GPU supports "+i+"."),0):i}}(M):0;let A,R,L,C;if(null!==s.precision&&(x=r.getMaxPrecision(s.precision),x!==s.precision&&console.warn("THREE.WebGLProgram.getParameters:",s.precision,"not supported, using",x,"instead.")),T){const t=jn[T];A=t.vertexShader,R=t.fragmentShader}else A=s.vertexShader,R=s.fragmentShader,c.update(s),L=c.getVertexShaderID(s),C=c.getFragmentShaderID(s);const P=t.getRenderTarget(),D=s.alphaTest>0,I=s.clearcoat>0;return{isWebGL2:u,shaderID:T,shaderName:s.type,vertexShader:A,fragmentShader:R,defines:s.defines,customVertexShaderID:L,customFragmentShaderID:C,isRawShaderMaterial:!0===s.isRawShaderMaterial,glslVersion:s.glslVersion,precision:x,instancing:!0===M.isInstancedMesh,instancingColor:!0===M.isInstancedMesh&&null!==M.instanceColor,supportsVertexTextures:v,outputEncoding:null===P?t.outputEncoding:!0===P.isXRRenderTarget?P.texture.encoding:V,map:!!s.map,matcap:!!s.matcap,envMap:!!S,envMapMode:S&&S.mapping,envMapCubeUV:!!S&&(S.mapping===d||S.mapping===p),lightMap:!!s.lightMap,aoMap:!!s.aoMap,emissiveMap:!!s.emissiveMap,bumpMap:!!s.bumpMap,normalMap:!!s.normalMap,objectSpaceNormalMap:1===s.normalMapType,tangentSpaceNormalMap:0===s.normalMapType,decodeVideoTexture:!!s.map&&!0===s.map.isVideoTexture&&s.map.encoding===k,clearcoat:I,clearcoatMap:I&&!!s.clearcoatMap,clearcoatRoughnessMap:I&&!!s.clearcoatRoughnessMap,clearcoatNormalMap:I&&!!s.clearcoatNormalMap,displacementMap:!!s.displacementMap,roughnessMap:!!s.roughnessMap,metalnessMap:!!s.metalnessMap,specularMap:!!s.specularMap,specularIntensityMap:!!s.specularIntensityMap,specularColorMap:!!s.specularColorMap,transparent:s.transparent,alphaMap:!!s.alphaMap,alphaTest:D,gradientMap:!!s.gradientMap,sheen:s.sheen>0,sheenColorMap:!!s.sheenColorMap,sheenRoughnessMap:!!s.sheenRoughnessMap,transmission:s.transmission>0,transmissionMap:!!s.transmissionMap,thicknessMap:!!s.thicknessMap,combine:s.combine,vertexTangents:!!s.normalMap&&!!M.geometry&&!!M.geometry.attributes.tangent,vertexColors:s.vertexColors,vertexAlphas:!0===s.vertexColors&&!!M.geometry&&!!M.geometry.attributes.color&&4===M.geometry.attributes.color.itemSize,vertexUvs:!!s.map||!!s.bumpMap||!!s.normalMap||!!s.specularMap||!!s.alphaMap||!!s.emissiveMap||!!s.roughnessMap||!!s.metalnessMap||!!s.clearcoatMap||!!s.clearcoatRoughnessMap||!!s.clearcoatNormalMap||!!s.displacementMap||!!s.transmissionMap||!!s.thicknessMap||!!s.specularIntensityMap||!!s.specularColorMap||!!s.sheenColorMap||!!s.sheenRoughnessMap,uvsVertexOnly:!(s.map||s.bumpMap||s.normalMap||s.specularMap||s.alphaMap||s.emissiveMap||s.roughnessMap||s.metalnessMap||s.clearcoatNormalMap||s.transmission>0||s.transmissionMap||s.thicknessMap||s.specularIntensityMap||s.specularColorMap||s.sheen>0||s.sheenColorMap||s.sheenRoughnessMap)&&!!s.displacementMap,fog:!!b,useFog:s.fog,fogExp2:b&&b.isFogExp2,flatShading:!!s.flatShading,sizeAttenuation:s.sizeAttenuation,logarithmicDepthBuffer:f,skinning:!0===M.isSkinnedMesh&&E>0,maxBones:E,useVertexTexture:m,morphTargets:!!M.geometry&&!!M.geometry.morphAttributes.position,morphNormals:!!M.geometry&&!!M.geometry.morphAttributes.normal,morphTargetsCount:M.geometry&&M.geometry.morphAttributes.position?M.geometry.morphAttributes.position.length:0,numDirLights:l.directional.length,numPointLights:l.point.length,numSpotLights:l.spot.length,numRectAreaLights:l.rectArea.length,numHemiLights:l.hemi.length,numDirLightShadows:l.directionalShadowMap.length,numPointLightShadows:l.pointShadowMap.length,numSpotLightShadows:l.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:s.dithering,shadowMapEnabled:t.shadowMap.enabled&&h.length>0,shadowMapType:t.shadowMap.type,toneMapping:s.toneMapped?t.toneMapping:0,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:s.premultipliedAlpha,doubleSided:2===s.side,flipSided:s.side===a,depthPacking:void 0!==s.depthPacking&&s.depthPacking,index0AttributeName:s.index0AttributeName,extensionDerivatives:s.extensions&&s.extensions.derivatives,extensionFragDepth:s.extensions&&s.extensions.fragDepth,extensionDrawBuffers:s.extensions&&s.extensions.drawBuffers,extensionShaderTextureLOD:s.extensions&&s.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||i.has("EXT_shader_texture_lod"),customProgramCacheKey:s.customProgramCacheKey()}},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.customVertexShaderID),n.push(e.customFragmentShaderID)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);return!1===e.isRawShaderMaterial&&(!function(t,e){t.push(e.precision),t.push(e.outputEncoding),t.push(e.envMapMode),t.push(e.combine),t.push(e.vertexUvs),t.push(e.fogExp2),t.push(e.sizeAttenuation),t.push(e.maxBones),t.push(e.morphTargetsCount),t.push(e.numDirLights),t.push(e.numPointLights),t.push(e.numSpotLights),t.push(e.numHemiLights),t.push(e.numRectAreaLights),t.push(e.numDirLightShadows),t.push(e.numPointLightShadows),t.push(e.numSpotLightShadows),t.push(e.shadowMapType),t.push(e.toneMapping),t.push(e.numClippingPlanes),t.push(e.numClipIntersection)}(n,e),function(t,e){l.disableAll(),e.isWebGL2&&l.enable(0);e.supportsVertexTextures&&l.enable(1);e.instancing&&l.enable(2);e.instancingColor&&l.enable(3);e.map&&l.enable(4);e.matcap&&l.enable(5);e.envMap&&l.enable(6);e.envMapCubeUV&&l.enable(7);e.lightMap&&l.enable(8);e.aoMap&&l.enable(9);e.emissiveMap&&l.enable(10);e.bumpMap&&l.enable(11);e.normalMap&&l.enable(12);e.objectSpaceNormalMap&&l.enable(13);e.tangentSpaceNormalMap&&l.enable(14);e.clearcoat&&l.enable(15);e.clearcoatMap&&l.enable(16);e.clearcoatRoughnessMap&&l.enable(17);e.clearcoatNormalMap&&l.enable(18);e.displacementMap&&l.enable(19);e.specularMap&&l.enable(20);e.roughnessMap&&l.enable(21);e.metalnessMap&&l.enable(22);e.gradientMap&&l.enable(23);e.alphaMap&&l.enable(24);e.alphaTest&&l.enable(25);e.vertexColors&&l.enable(26);e.vertexAlphas&&l.enable(27);e.vertexUvs&&l.enable(28);e.vertexTangents&&l.enable(29);e.uvsVertexOnly&&l.enable(30);e.fog&&l.enable(31);t.push(l.mask),l.disableAll(),e.useFog&&l.enable(0);e.flatShading&&l.enable(1);e.logarithmicDepthBuffer&&l.enable(2);e.skinning&&l.enable(3);e.useVertexTexture&&l.enable(4);e.morphTargets&&l.enable(5);e.morphNormals&&l.enable(6);e.premultipliedAlpha&&l.enable(7);e.shadowMapEnabled&&l.enable(8);e.physicallyCorrectLights&&l.enable(9);e.doubleSided&&l.enable(10);e.flipSided&&l.enable(11);e.depthPacking&&l.enable(12);e.dithering&&l.enable(13);e.specularIntensityMap&&l.enable(14);e.specularColorMap&&l.enable(15);e.transmission&&l.enable(16);e.transmissionMap&&l.enable(17);e.thicknessMap&&l.enable(18);e.sheen&&l.enable(19);e.sheenColorMap&&l.enable(20);e.sheenRoughnessMap&&l.enable(21);e.decodeVideoTexture&&l.enable(22);e.transparent&&l.enable(23);t.push(l.mask)}(n,e),n.push(t.outputEncoding)),n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=y[t.type];let n;if(e){const t=jn[e];n=Tn.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let i;for(let t=0,r=h.length;t<r;t++){const e=h[t];if(e.cacheKey===n){i=e,++i.usedTimes;break}}return void 0===i&&(i=new $r(t,n,e,s),h.push(i)),i},releaseProgram:function(t){if(0===--t.usedTimes){const e=h.indexOf(t);h[e]=h[h.length-1],h.pop(),t.destroy()}},releaseShaderCache:function(t){c.remove(t)},programs:h,dispose:function(){c.dispose()}}}function rs(){let t=new WeakMap;return{get:function(e){let n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n},remove:function(e){t.delete(e)},update:function(e,n,i){t.get(e)[n]=i},dispose:function(){t=new WeakMap}}}function ss(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function as(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function os(){const t=[];let e=0;const n=[],i=[],r=[];function s(n,i,r,s,a,o){let l=t[e];return void 0===l?(l={id:n.id,object:n,geometry:i,material:r,groupOrder:s,renderOrder:n.renderOrder,z:a,group:o},t[e]=l):(l.id=n.id,l.object=n,l.geometry=i,l.material=r,l.groupOrder=s,l.renderOrder=n.renderOrder,l.z=a,l.group=o),e++,l}return{opaque:n,transmissive:i,transparent:r,init:function(){e=0,n.length=0,i.length=0,r.length=0},push:function(t,e,a,o,l,c){const h=s(t,e,a,o,l,c);a.transmission>0?i.push(h):!0===a.transparent?r.push(h):n.push(h)},unshift:function(t,e,a,o,l,c){const h=s(t,e,a,o,l,c);a.transmission>0?i.unshift(h):!0===a.transparent?r.unshift(h):n.unshift(h)},finish:function(){for(let n=e,i=t.length;n<i;n++){const e=t[n];if(null===e.id)break;e.id=null,e.object=null,e.geometry=null,e.material=null,e.group=null}},sort:function(t,e){n.length>1&&n.sort(t||ss),i.length>1&&i.sort(e||as),r.length>1&&r.sort(e||as)}}}function ls(){let t=new WeakMap;return{get:function(e,n){let i;return!1===t.has(e)?(i=new os,t.set(e,[i])):n>=t.get(e).length?(i=new os,t.get(e).push(i)):i=t.get(e)[n],i},dispose:function(){t=new WeakMap}}}function cs(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new Tt,color:new mt};break;case"SpotLight":n={position:new Tt,direction:new Tt,color:new mt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Tt,color:new mt,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Tt,skyColor:new mt,groundColor:new mt};break;case"RectAreaLight":n={color:new mt,position:new Tt,halfWidth:new Tt,halfHeight:new Tt}}return t[e.id]=n,n}}}let hs=0;function us(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function ds(t,e){const n=new cs,i=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new st,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=n,n}}}(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let l=0;l<9;l++)r.probe.push(new Tt);const s=new Tt,a=new ne,o=new ne;return{setup:function(s,a){let o=0,l=0,c=0;for(let t=0;t<9;t++)r.probe[t].set(0,0,0);let h=0,u=0,d=0,p=0,f=0,m=0,g=0,v=0;s.sort(us);const x=!0!==a?Math.PI:1;for(let t=0,e=s.length;t<e;t++){const e=s[t],a=e.color,y=e.intensity,_=e.distance,M=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)o+=a.r*y*x,l+=a.g*y*x,c+=a.b*y*x;else if(e.isLightProbe)for(let t=0;t<9;t++)r.probe[t].addScaledVector(e.sh.coefficients[t],y);else if(e.isDirectionalLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*x),e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,r.directionalShadow[h]=n,r.directionalShadowMap[h]=M,r.directionalShadowMatrix[h]=e.shadow.matrix,m++}r.directional[h]=t,h++}else if(e.isSpotLight){const t=n.get(e);if(t.position.setFromMatrixPosition(e.matrixWorld),t.color.copy(a).multiplyScalar(y*x),t.distance=_,t.coneCos=Math.cos(e.angle),t.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),t.decay=e.decay,e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,r.spotShadow[d]=n,r.spotShadowMap[d]=M,r.spotShadowMatrix[d]=e.shadow.matrix,v++}r.spot[d]=t,d++}else if(e.isRectAreaLight){const t=n.get(e);t.color.copy(a).multiplyScalar(y),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),r.rectArea[p]=t,p++}else if(e.isPointLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*x),t.distance=e.distance,t.decay=e.decay,e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,n.shadowCameraNear=t.camera.near,n.shadowCameraFar=t.camera.far,r.pointShadow[u]=n,r.pointShadowMap[u]=M,r.pointShadowMatrix[u]=e.shadow.matrix,g++}r.point[u]=t,u++}else if(e.isHemisphereLight){const t=n.get(e);t.skyColor.copy(e.color).multiplyScalar(y*x),t.groundColor.copy(e.groundColor).multiplyScalar(y*x),r.hemi[f]=t,f++}}p>0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(r.rectAreaLTC1=Wn.LTC_FLOAT_1,r.rectAreaLTC2=Wn.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(r.rectAreaLTC1=Wn.LTC_HALF_1,r.rectAreaLTC2=Wn.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=o,r.ambient[1]=l,r.ambient[2]=c;const y=r.hash;y.directionalLength===h&&y.pointLength===u&&y.spotLength===d&&y.rectAreaLength===p&&y.hemiLength===f&&y.numDirectionalShadows===m&&y.numPointShadows===g&&y.numSpotShadows===v||(r.directional.length=h,r.spot.length=d,r.rectArea.length=p,r.point.length=u,r.hemi.length=f,r.directionalShadow.length=m,r.directionalShadowMap.length=m,r.pointShadow.length=g,r.pointShadowMap.length=g,r.spotShadow.length=v,r.spotShadowMap.length=v,r.directionalShadowMatrix.length=m,r.pointShadowMatrix.length=g,r.spotShadowMatrix.length=v,y.directionalLength=h,y.pointLength=u,y.spotLength=d,y.rectAreaLength=p,y.hemiLength=f,y.numDirectionalShadows=m,y.numPointShadows=g,y.numSpotShadows=v,r.version=hs++)},setupView:function(t,e){let n=0,i=0,l=0,c=0,h=0;const u=e.matrixWorldInverse;for(let d=0,p=t.length;d<p;d++){const e=t[d];if(e.isDirectionalLight){const t=r.directional[n];t.direction.setFromMatrixPosition(e.matrixWorld),s.setFromMatrixPosition(e.target.matrixWorld),t.direction.sub(s),t.direction.transformDirection(u),n++}else if(e.isSpotLight){const t=r.spot[l];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(u),t.direction.setFromMatrixPosition(e.matrixWorld),s.setFromMatrixPosition(e.target.matrixWorld),t.direction.sub(s),t.direction.transformDirection(u),l++}else if(e.isRectAreaLight){const t=r.rectArea[c];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(u),o.identity(),a.copy(e.matrixWorld),a.premultiply(u),o.extractRotation(a),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),t.halfWidth.applyMatrix4(o),t.halfHeight.applyMatrix4(o),c++}else if(e.isPointLight){const t=r.point[i];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(u),i++}else if(e.isHemisphereLight){const t=r.hemi[h];t.direction.setFromMatrixPosition(e.matrixWorld),t.direction.transformDirection(u),t.direction.normalize(),h++}}},state:r}}function ps(t,e){const n=new ds(t,e),i=[],r=[];return{init:function(){i.length=0,r.length=0},state:{lightsArray:i,shadowsArray:r,lights:n},setupLights:function(t){n.setup(i,t)},setupLightsView:function(t){n.setupView(i,t)},pushLight:function(t){i.push(t)},pushShadow:function(t){r.push(t)}}}function fs(t,e){let n=new WeakMap;return{get:function(i,r=0){let s;return!1===n.has(i)?(s=new ps(t,e),n.set(i,[s])):r>=n.get(i).length?(s=new ps(t,e),n.get(i).push(s)):s=n.get(i)[r],s},dispose:function(){n=new WeakMap}}}class ms extends He{constructor(t){super(),this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}ms.prototype.isMeshDepthMaterial=!0;class gs extends He{constructor(t){super(),this.type="MeshDistanceMaterial",this.referencePosition=new Tt,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}gs.prototype.isMeshDistanceMaterial=!0;function vs(t,e,n){let i=new Fn;const r=new st,s=new st,o=new Mt,l=new ms({depthPacking:3201}),c=new gs,h={},u=n.maxTextureSize,d={0:a,1:0,2:2},p=new En({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new st},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),f=p.clone();f.defines.HORIZONTAL_PASS=1;const m=new en;m.setAttribute("position",new We(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const g=new _n(m,p),x=this;function y(n,i){const r=e.update(g);p.defines.VSM_SAMPLES!==n.blurSamples&&(p.defines.VSM_SAMPLES=n.blurSamples,f.defines.VSM_SAMPLES=n.blurSamples,p.needsUpdate=!0,f.needsUpdate=!0),p.uniforms.shadow_pass.value=n.map.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(i,null,r,p,g,null),f.uniforms.shadow_pass.value=n.mapPass.texture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(i,null,r,f,g,null)}function M(e,n,i,r,s,a,o){let u=null;const p=!0===r.isPointLight?e.customDistanceMaterial:e.customDepthMaterial;if(u=void 0!==p?p:!0===r.isPointLight?c:l,t.localClippingEnabled&&!0===i.clipShadows&&0!==i.clippingPlanes.length||i.displacementMap&&0!==i.displacementScale||i.alphaMap&&i.alphaTest>0){const t=u.uuid,e=i.uuid;let n=h[t];void 0===n&&(n={},h[t]=n);let r=n[e];void 0===r&&(r=u.clone(),n[e]=r),u=r}return u.visible=i.visible,u.wireframe=i.wireframe,u.side=3===o?null!==i.shadowSide?i.shadowSide:i.side:null!==i.shadowSide?i.shadowSide:d[i.side],u.alphaMap=i.alphaMap,u.alphaTest=i.alphaTest,u.clipShadows=i.clipShadows,u.clippingPlanes=i.clippingPlanes,u.clipIntersection=i.clipIntersection,u.displacementMap=i.displacementMap,u.displacementScale=i.displacementScale,u.displacementBias=i.displacementBias,u.wireframeLinewidth=i.wireframeLinewidth,u.linewidth=i.linewidth,!0===r.isPointLight&&!0===u.isMeshDistanceMaterial&&(u.referencePosition.setFromMatrixPosition(r.matrixWorld),u.nearDistance=s,u.farDistance=a),u}function b(n,r,s,a,o){if(!1===n.visible)return;if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&3===o)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(s.matrixWorldInverse,n.matrixWorld);const i=e.update(n),r=n.material;if(Array.isArray(r)){const e=i.groups;for(let l=0,c=e.length;l<c;l++){const c=e[l],h=r[c.materialIndex];if(h&&h.visible){const e=M(n,0,h,a,s.near,s.far,o);t.renderBufferDirect(s,null,i,e,n,c)}}}else if(r.visible){const e=M(n,0,r,a,s.near,s.far,o);t.renderBufferDirect(s,null,i,e,n,null)}}const l=n.children;for(let t=0,e=l.length;t<e;t++)b(l[t],r,s,a,o)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(e,n,a){if(!1===x.enabled)return;if(!1===x.autoUpdate&&!1===x.needsUpdate)return;if(0===e.length)return;const l=t.getRenderTarget(),c=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),d=t.state;d.setBlending(0),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(let p=0,f=e.length;p<f;p++){const l=e[p],c=l.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;r.copy(c.mapSize);const h=c.getFrameExtents();if(r.multiply(h),s.copy(c.mapSize),(r.x>u||r.y>u)&&(r.x>u&&(s.x=Math.floor(u/h.x),r.x=s.x*h.x,c.mapSize.x=s.x),r.y>u&&(s.y=Math.floor(u/h.y),r.y=s.y*h.y,c.mapSize.y=s.y)),null===c.map&&!c.isPointLightShadow&&3===this.type){const t={minFilter:_,magFilter:_,format:R};c.map=new bt(r.x,r.y,t),c.map.texture.name=l.name+".shadowMap",c.mapPass=new bt(r.x,r.y,t),c.camera.updateProjectionMatrix()}if(null===c.map){const t={minFilter:v,magFilter:v,format:R};c.map=new bt(r.x,r.y,t),c.map.texture.name=l.name+".shadowMap",c.camera.updateProjectionMatrix()}t.setRenderTarget(c.map),t.clear();const f=c.getViewportCount();for(let t=0;t<f;t++){const e=c.getViewport(t);o.set(s.x*e.x,s.y*e.y,s.x*e.z,s.y*e.w),d.viewport(o),c.updateMatrices(l,t),i=c.getFrustum(),b(n,a,c.camera,l,this.type)}c.isPointLightShadow||3!==this.type||y(c,a),c.needsUpdate=!1}x.needsUpdate=!1,t.setRenderTarget(l,c,h)}}function xs(t,e,n){const i=n.isWebGL2;const r=new function(){let e=!1;const n=new Mt;let i=null;const r=new Mt(0,0,0,0);return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,s,a,o){!0===o&&(e*=a,i*=a,s*=a),n.set(e,i,s,a),!1===r.equals(n)&&(t.clearColor(e,i,s,a),r.copy(n))},reset:function(){e=!1,i=null,r.set(-1,0,0,0)}}},s=new function(){let e=!1,n=null,i=null,r=null;return{setTest:function(t){t?H(2929):G(2929)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}},l=new function(){let e=!1,n=null,i=null,r=null,s=null,a=null,o=null,l=null,c=null;return{setTest:function(t){e||(t?H(2960):G(2960))},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,a){i===e&&r===n&&s===a||(t.stencilFunc(e,n,a),i=e,r=n,s=a)},setOp:function(e,n,i){a===e&&o===n&&l===i||(t.stencilOp(e,n,i),a=e,o=n,l=i)},setLocked:function(t){e=t},setClear:function(e){c!==e&&(t.clearStencil(e),c=e)},reset:function(){e=!1,n=null,i=null,r=null,s=null,a=null,o=null,l=null,c=null}}};let c={},h={},u=new WeakMap,d=[],p=null,f=!1,m=null,g=null,v=null,x=null,y=null,_=null,M=null,b=!1,w=null,S=null,T=null,E=null,A=null;const R=t.getParameter(35661);let L=!1,C=0;const P=t.getParameter(7938);-1!==P.indexOf("WebGL")?(C=parseFloat(/^WebGL (\d)/.exec(P)[1]),L=C>=1):-1!==P.indexOf("OpenGL ES")&&(C=parseFloat(/^OpenGL ES (\d)/.exec(P)[1]),L=C>=2);let D=null,I={};const N=t.getParameter(3088),z=t.getParameter(2978),O=(new Mt).fromArray(N),B=(new Mt).fromArray(z);function U(e,n,i){const r=new Uint8Array(4),s=t.createTexture();t.bindTexture(e,s),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let a=0;a<i;a++)t.texImage2D(n+a,0,6408,1,1,0,6408,5121,r);return s}const F={};function H(e){!0!==c[e]&&(t.enable(e),c[e]=!0)}function G(e){!1!==c[e]&&(t.disable(e),c[e]=!1)}F[3553]=U(3553,3553,1),F[34067]=U(34067,34069,6),r.setClear(0,0,0,1),s.setClear(1),l.setClear(0),H(2929),s.setFunc(3),j(!1),q(1),H(2884),W(0);const V={[o]:32774,101:32778,102:32779};if(i)V[103]=32775,V[104]=32776;else{const t=e.get("EXT_blend_minmax");null!==t&&(V[103]=t.MIN_EXT,V[104]=t.MAX_EXT)}const k={200:0,201:1,202:768,204:770,210:776,208:774,206:772,203:769,205:771,209:775,207:773};function W(e,n,i,r,s,a,l,c){if(0!==e){if(!1===f&&(H(3042),f=!0),5===e)s=s||n,a=a||i,l=l||r,n===g&&s===y||(t.blendEquationSeparate(V[n],V[s]),g=n,y=s),i===v&&r===x&&a===_&&l===M||(t.blendFuncSeparate(k[i],k[r],k[a],k[l]),v=i,x=r,_=a,M=l),m=e,b=null;else if(e!==m||c!==b){if(g===o&&y===o||(t.blendEquation(32774),g=o,y=o),c)switch(e){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,769,0,1);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}else switch(e){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFuncSeparate(0,769,0,1);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}v=null,x=null,_=null,M=null,m=e,b=c}}else!0===f&&(G(3042),f=!1)}function j(e){w!==e&&(e?t.frontFace(2304):t.frontFace(2305),w=e)}function q(e){0!==e?(H(2884),e!==S&&(1===e?t.cullFace(1029):2===e?t.cullFace(1028):t.cullFace(1032))):G(2884),S=e}function X(e,n,i){e?(H(32823),E===n&&A===i||(t.polygonOffset(n,i),E=n,A=i)):G(32823)}function J(e){void 0===e&&(e=33984+R-1),D!==e&&(t.activeTexture(e),D=e)}return{buffers:{color:r,depth:s,stencil:l},enable:H,disable:G,bindFramebuffer:function(e,n){return h[e]!==n&&(t.bindFramebuffer(e,n),h[e]=n,i&&(36009===e&&(h[36160]=n),36160===e&&(h[36009]=n)),!0)},drawBuffers:function(i,r){let s=d,a=!1;if(i)if(s=u.get(r),void 0===s&&(s=[],u.set(r,s)),i.isWebGLMultipleRenderTargets){const t=i.texture;if(s.length!==t.length||36064!==s[0]){for(let e=0,n=t.length;e<n;e++)s[e]=36064+e;s.length=t.length,a=!0}}else 36064!==s[0]&&(s[0]=36064,a=!0);else 1029!==s[0]&&(s[0]=1029,a=!0);a&&(n.isWebGL2?t.drawBuffers(s):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(s))},useProgram:function(e){return p!==e&&(t.useProgram(e),p=e,!0)},setBlending:W,setMaterial:function(t,e){2===t.side?G(2884):H(2884);let n=t.side===a;e&&(n=!n),j(n),1===t.blending&&!1===t.transparent?W(0):W(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),s.setFunc(t.depthFunc),s.setTest(t.depthTest),s.setMask(t.depthWrite),r.setMask(t.colorWrite);const i=t.stencilWrite;l.setTest(i),i&&(l.setMask(t.stencilWriteMask),l.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),l.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),X(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?H(32926):G(32926)},setFlipSided:j,setCullFace:q,setLineWidth:function(e){e!==T&&(L&&t.lineWidth(e),T=e)},setPolygonOffset:X,setScissorTest:function(t){t?H(3089):G(3089)},activeTexture:J,bindTexture:function(e,n){null===D&&J();let i=I[D];void 0===i&&(i={type:void 0,texture:void 0},I[D]=i),i.type===e&&i.texture===n||(t.bindTexture(e,n||F[e]),i.type=e,i.texture=n)},unbindTexture:function(){const e=I[D];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texStorage2D:function(){try{t.texStorage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texStorage3D:function(){try{t.texStorage3D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage2D:function(){try{t.texSubImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage3D:function(){try{t.texSubImage3D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage2D:function(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(e){!1===O.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),O.copy(e))},viewport:function(e){!1===B.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),B.copy(e))},reset:function(){t.disable(3042),t.disable(2884),t.disable(2929),t.disable(32823),t.disable(3089),t.disable(2960),t.disable(32926),t.blendEquation(32774),t.blendFunc(1,0),t.blendFuncSeparate(1,0,1,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(513),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(519,0,4294967295),t.stencilOp(7680,7680,7680),t.clearStencil(0),t.cullFace(1029),t.frontFace(2305),t.polygonOffset(0,0),t.activeTexture(33984),t.bindFramebuffer(36160,null),!0===i&&(t.bindFramebuffer(36009,null),t.bindFramebuffer(36008,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),c={},D=null,I={},h={},u=new WeakMap,d=[],p=null,f=!1,m=null,g=null,v=null,x=null,y=null,_=null,M=null,b=!1,w=null,S=null,T=null,E=null,A=null,O.set(0,0,t.canvas.width,t.canvas.height),B.set(0,0,t.canvas.width,t.canvas.height),r.reset(),s.reset(),l.reset()}}}function ys(t,e,n,i,r,s,a){const o=r.isWebGL2,l=r.maxTextures,c=r.maxCubemapSize,h=r.maxTextureSize,u=r.maxSamples,d=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):void 0,p=new WeakMap;let P,D=!1;try{D="undefined"!==typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(ht){}function I(t,e){return D?new OffscreenCanvas(t,e):lt("canvas")}function N(t,e,n,i){let r=1;if((t.width>i||t.height>i)&&(r=i/Math.max(t.width,t.height)),r<1||!0===e){if("undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap){const i=e?rt:Math.floor,s=i(r*t.width),a=i(r*t.height);void 0===P&&(P=I(s,a));const o=n?I(s,a):P;o.width=s,o.height=a;return o.getContext("2d").drawImage(t,0,0,s,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+s+"x"+a+")."),o}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function z(t){return it(t.width)&&it(t.height)}function O(t,e){return t.generateMipmaps&&e&&t.minFilter!==v&&t.minFilter!==_}function B(e){t.generateMipmap(e)}function U(n,i,r,s,a=!1){if(!1===o)return i;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let l=i;return 6403===i&&(5126===r&&(l=33326),5131===r&&(l=33325),5121===r&&(l=33321)),33319===i&&(5126===r&&(l=33328),5131===r&&(l=33327),5121===r&&(l=33323)),6408===i&&(5126===r&&(l=34836),5131===r&&(l=34842),5121===r&&(l=s===k&&!1===a?35907:32856),32819===r&&(l=32854),32820===r&&(l=32855)),33325!==l&&33326!==l&&33327!==l&&33328!==l&&34842!==l&&34836!==l||e.get("EXT_color_buffer_float"),l}function F(t,e,n){return!0===O(t,n)||t.isFramebufferTexture&&t.minFilter!==v&&t.minFilter!==_?Math.log2(Math.max(e.width,e.height))+1:void 0!==t.mipmaps&&t.mipmaps.length>0?t.mipmaps.length:t.isCompressedTexture&&Array.isArray(t.image)?e.mipmaps.length:1}function H(t){return t===v||t===x||t===y?9728:9729}function G(e){const n=e.target;n.removeEventListener("dispose",G),function(e){const n=i.get(e);if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture),i.remove(e)}(n),n.isVideoTexture&&p.delete(n),a.memory.textures--}function W(e){const n=e.target;n.removeEventListener("dispose",W),function(e){const n=e.texture,r=i.get(e),s=i.get(n);if(!e)return;void 0!==s.__webglTexture&&(t.deleteTexture(s.__webglTexture),a.memory.textures--);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let i=0;i<6;i++)t.deleteFramebuffer(r.__webglFramebuffer[i]),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer[i]);else t.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&t.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer&&t.deleteRenderbuffer(r.__webglColorRenderbuffer),r.__webglDepthRenderbuffer&&t.deleteRenderbuffer(r.__webglDepthRenderbuffer);if(e.isWebGLMultipleRenderTargets)for(let o=0,l=n.length;o<l;o++){const e=i.get(n[o]);e.__webglTexture&&(t.deleteTexture(e.__webglTexture),a.memory.textures--),i.remove(n[o])}i.remove(n),i.remove(e)}(n)}let j=0;function q(t,e){const r=i.get(t);if(t.isVideoTexture&&function(t){const e=a.render.frame;p.get(t)!==e&&(p.set(t,e),t.update())}(t),t.version>0&&r.__version!==t.version){const n=t.image;if(void 0===n)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==n.complete)return void $(r,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+e),n.bindTexture(3553,r.__webglTexture)}function X(e,r){const a=i.get(e);e.version>0&&a.__version!==e.version?function(e,i,r){if(6!==i.image.length)return;Q(e,i),n.activeTexture(33984+r),n.bindTexture(34067,e.__webglTexture),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const a=i&&(i.isCompressedTexture||i.image[0].isCompressedTexture),l=i.image[0]&&i.image[0].isDataTexture,h=[];for(let t=0;t<6;t++)h[t]=a||l?l?i.image[t].image:i.image[t]:N(i.image[t],!1,!0,c),h[t]=at(i,h[t]);const u=h[0],d=z(u)||o,p=s.convert(i.format,i.encoding),f=s.convert(i.type),m=U(i.internalFormat,p,f,i.encoding),g=o&&!0!==i.isVideoTexture,v=void 0===e.__version;let x,y=F(i,u,d);if(K(34067,i,d),a){g&&v&&n.texStorage2D(34067,y,m,u.width,u.height);for(let t=0;t<6;t++){x=h[t].mipmaps;for(let e=0;e<x.length;e++){const r=x[e];i.format!==R?null!==p?g?n.compressedTexSubImage2D(34069+t,e,0,0,r.width,r.height,p,r.data):n.compressedTexImage2D(34069+t,e,m,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):g?n.texSubImage2D(34069+t,e,0,0,r.width,r.height,p,f,r.data):n.texImage2D(34069+t,e,m,r.width,r.height,0,p,f,r.data)}}}else{x=i.mipmaps,g&&v&&(x.length>0&&y++,n.texStorage2D(34067,y,m,h[0].width,h[0].height));for(let t=0;t<6;t++)if(l){g?n.texSubImage2D(34069+t,0,0,0,h[t].width,h[t].height,p,f,h[t].data):n.texImage2D(34069+t,0,m,h[t].width,h[t].height,0,p,f,h[t].data);for(let e=0;e<x.length;e++){const i=x[e].image[t].image;g?n.texSubImage2D(34069+t,e+1,0,0,i.width,i.height,p,f,i.data):n.texImage2D(34069+t,e+1,m,i.width,i.height,0,p,f,i.data)}}else{g?n.texSubImage2D(34069+t,0,0,0,p,f,h[t]):n.texImage2D(34069+t,0,m,p,f,h[t]);for(let e=0;e<x.length;e++){const i=x[e];g?n.texSubImage2D(34069+t,e+1,0,0,p,f,i.image[t]):n.texImage2D(34069+t,e+1,m,p,f,i.image[t])}}}O(i,d)&&B(34067);e.__version=i.version,i.onUpdate&&i.onUpdate(i)}(a,e,r):(n.activeTexture(33984+r),n.bindTexture(34067,a.__webglTexture))}const Y={[f]:10497,[m]:33071,[g]:33648},Z={[v]:9728,[x]:9984,[y]:9986,[_]:9729,1007:9985,[M]:9987};function K(n,s,a){if(a?(t.texParameteri(n,10242,Y[s.wrapS]),t.texParameteri(n,10243,Y[s.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,Y[s.wrapR]),t.texParameteri(n,10240,Z[s.magFilter]),t.texParameteri(n,10241,Z[s.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),s.wrapS===m&&s.wrapT===m||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,H(s.magFilter)),t.texParameteri(n,10241,H(s.minFilter)),s.minFilter!==v&&s.minFilter!==_&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(s.type===T&&!1===e.has("OES_texture_float_linear"))return;if(!1===o&&s.type===E&&!1===e.has("OES_texture_half_float_linear"))return;(s.anisotropy>1||i.get(s).__currentAnisotropy)&&(t.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(s.anisotropy,r.getMaxAnisotropy())),i.get(s).__currentAnisotropy=s.anisotropy)}}function Q(e,n){void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",G),e.__webglTexture=t.createTexture(),a.memory.textures++)}function $(e,i,r){let a=3553;i.isDataTexture2DArray&&(a=35866),i.isDataTexture3D&&(a=32879),Q(e,i),n.activeTexture(33984+r),n.bindTexture(a,e.__webglTexture),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const l=function(t){return!o&&(t.wrapS!==m||t.wrapT!==m||t.minFilter!==v&&t.minFilter!==_)}(i)&&!1===z(i.image);let c=N(i.image,l,!1,h);c=at(i,c);const u=z(c)||o,d=s.convert(i.format,i.encoding);let p,f=s.convert(i.type),g=U(i.internalFormat,d,f,i.encoding,i.isVideoTexture);K(a,i,u);const x=i.mipmaps,y=o&&!0!==i.isVideoTexture,M=void 0===e.__version,b=F(i,c,u);if(i.isDepthTexture)g=6402,o?g=i.type===T?36012:i.type===S?33190:i.type===A?35056:33189:i.type===T&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),i.format===L&&6402===g&&i.type!==w&&i.type!==S&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=w,f=s.convert(i.type)),i.format===C&&6402===g&&(g=34041,i.type!==A&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=A,f=s.convert(i.type))),y&&M?n.texStorage2D(3553,1,g,c.width,c.height):n.texImage2D(3553,0,g,c.width,c.height,0,d,f,null);else if(i.isDataTexture)if(x.length>0&&u){y&&M&&n.texStorage2D(3553,b,g,x[0].width,x[0].height);for(let t=0,e=x.length;t<e;t++)p=x[t],y?n.texSubImage2D(3553,0,0,0,p.width,p.height,d,f,p.data):n.texImage2D(3553,t,g,p.width,p.height,0,d,f,p.data);i.generateMipmaps=!1}else y?(M&&n.texStorage2D(3553,b,g,c.width,c.height),n.texSubImage2D(3553,0,0,0,c.width,c.height,d,f,c.data)):n.texImage2D(3553,0,g,c.width,c.height,0,d,f,c.data);else if(i.isCompressedTexture){y&&M&&n.texStorage2D(3553,b,g,x[0].width,x[0].height);for(let t=0,e=x.length;t<e;t++)p=x[t],i.format!==R?null!==d?y?n.compressedTexSubImage2D(3553,t,0,0,p.width,p.height,d,p.data):n.compressedTexImage2D(3553,t,g,p.width,p.height,0,p.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):y?n.texSubImage2D(3553,t,0,0,p.width,p.height,d,f,p.data):n.texImage2D(3553,t,g,p.width,p.height,0,d,f,p.data)}else if(i.isDataTexture2DArray)y?(M&&n.texStorage3D(35866,b,g,c.width,c.height,c.depth),n.texSubImage3D(35866,0,0,0,0,c.width,c.height,c.depth,d,f,c.data)):n.texImage3D(35866,0,g,c.width,c.height,c.depth,0,d,f,c.data);else if(i.isDataTexture3D)y?(M&&n.texStorage3D(32879,b,g,c.width,c.height,c.depth),n.texSubImage3D(32879,0,0,0,0,c.width,c.height,c.depth,d,f,c.data)):n.texImage3D(32879,0,g,c.width,c.height,c.depth,0,d,f,c.data);else if(i.isFramebufferTexture)y&&M?n.texStorage2D(3553,b,g,c.width,c.height):n.texImage2D(3553,0,g,c.width,c.height,0,d,f,null);else if(x.length>0&&u){y&&M&&n.texStorage2D(3553,b,g,x[0].width,x[0].height);for(let t=0,e=x.length;t<e;t++)p=x[t],y?n.texSubImage2D(3553,t,0,0,d,f,p):n.texImage2D(3553,t,g,d,f,p);i.generateMipmaps=!1}else y?(M&&n.texStorage2D(3553,b,g,c.width,c.height),n.texSubImage2D(3553,0,0,0,d,f,c)):n.texImage2D(3553,0,g,d,f,c);O(i,u)&&B(a),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function tt(e,r,a,o,l){const c=s.convert(a.format,a.encoding),h=s.convert(a.type),u=U(a.internalFormat,c,h,a.encoding);i.get(r).__hasExternalTextures||(32879===l||35866===l?n.texImage3D(l,0,u,r.width,r.height,r.depth,0,c,h,null):n.texImage2D(l,0,u,r.width,r.height,0,c,h,null)),n.bindFramebuffer(36160,e),r.useRenderToTexture?d.framebufferTexture2DMultisampleEXT(36160,o,l,i.get(a).__webglTexture,0,st(r)):t.framebufferTexture2D(36160,o,l,i.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function et(e,n,i){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let r=33189;if(i||n.useRenderToTexture){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===T?r=36012:e.type===S&&(r=33190));const i=st(n);n.useRenderToTexture?d.renderbufferStorageMultisampleEXT(36161,i,r,n.width,n.height):t.renderbufferStorageMultisample(36161,i,r,n.width,n.height)}else t.renderbufferStorage(36161,r,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){const r=st(n);i&&n.useRenderbuffer?t.renderbufferStorageMultisample(36161,r,35056,n.width,n.height):n.useRenderToTexture?d.renderbufferStorageMultisampleEXT(36161,r,35056,n.width,n.height):t.renderbufferStorage(36161,34041,n.width,n.height),t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=!0===n.isWebGLMultipleRenderTargets?n.texture[0]:n.texture,r=s.convert(e.format,e.encoding),a=s.convert(e.type),o=U(e.internalFormat,r,a,e.encoding),l=st(n);i&&n.useRenderbuffer?t.renderbufferStorageMultisample(36161,l,o,n.width,n.height):n.useRenderToTexture?d.renderbufferStorageMultisampleEXT(36161,l,o,n.width,n.height):t.renderbufferStorage(36161,o,n.width,n.height)}t.bindRenderbuffer(36161,null)}function nt(e){const r=i.get(e),s=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture&&!r.__autoAllocateDepthBuffer){if(s)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,r){if(r&&r.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,e),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),q(r.depthTexture,0);const s=i.get(r.depthTexture).__webglTexture,a=st(r);if(r.depthTexture.format===L)r.useRenderToTexture?d.framebufferTexture2DMultisampleEXT(36160,36096,3553,s,0,a):t.framebufferTexture2D(36160,36096,3553,s,0);else{if(r.depthTexture.format!==C)throw new Error("Unknown depthTexture format");r.useRenderToTexture?d.framebufferTexture2DMultisampleEXT(36160,33306,3553,s,0,a):t.framebufferTexture2D(36160,33306,3553,s,0)}}(r.__webglFramebuffer,e)}else if(s){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(36160,r.__webglFramebuffer[i]),r.__webglDepthbuffer[i]=t.createRenderbuffer(),et(r.__webglDepthbuffer[i],e,!1)}else n.bindFramebuffer(36160,r.__webglFramebuffer),r.__webglDepthbuffer=t.createRenderbuffer(),et(r.__webglDepthbuffer,e,!1);n.bindFramebuffer(36160,null)}function st(t){return o&&(t.useRenderbuffer||t.useRenderToTexture)?Math.min(u,t.samples):0}function at(t,n){const i=t.encoding,r=t.format,s=t.type;return!0===t.isCompressedTexture||!0===t.isVideoTexture||t.format===J||i!==V&&(i===k?!1===o?!0===e.has("EXT_sRGB")&&r===R?(t.format=J,t.minFilter=_,t.generateMipmaps=!1):n=vt.sRGBToLinear(n):r===R&&s===b||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",i)),n}let ot=!1,ct=!1;this.allocateTextureUnit=function(){const t=j;return t>=l&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+l),j+=1,t},this.resetTextureUnits=function(){j=0},this.setTexture2D=q,this.setTexture2DArray=function(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?$(r,t,e):(n.activeTexture(33984+e),n.bindTexture(35866,r.__webglTexture))},this.setTexture3D=function(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?$(r,t,e):(n.activeTexture(33984+e),n.bindTexture(32879,r.__webglTexture))},this.setTextureCube=X,this.rebindTextures=function(t,e,n){const r=i.get(t);void 0!==e&&tt(r.__webglFramebuffer,t,t.texture,36064,3553),void 0!==n&&nt(t)},this.setupRenderTarget=function(e){const l=e.texture,c=i.get(e),h=i.get(l);e.addEventListener("dispose",W),!0!==e.isWebGLMultipleRenderTargets&&(void 0===h.__webglTexture&&(h.__webglTexture=t.createTexture()),h.__version=l.version,a.memory.textures++);const u=!0===e.isWebGLCubeRenderTarget,d=!0===e.isWebGLMultipleRenderTargets,p=l.isDataTexture3D||l.isDataTexture2DArray,f=z(e)||o;if(u){c.__webglFramebuffer=[];for(let e=0;e<6;e++)c.__webglFramebuffer[e]=t.createFramebuffer()}else if(c.__webglFramebuffer=t.createFramebuffer(),d)if(r.drawBuffers){const n=e.texture;for(let e=0,r=n.length;e<r;e++){const r=i.get(n[e]);void 0===r.__webglTexture&&(r.__webglTexture=t.createTexture(),a.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");else if(e.useRenderbuffer)if(o){c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,c.__webglColorRenderbuffer);const i=s.convert(l.format,l.encoding),r=s.convert(l.type),a=U(l.internalFormat,i,r,l.encoding),o=st(e);t.renderbufferStorageMultisample(36161,o,a,e.width,e.height),n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,c.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),e.depthBuffer&&(c.__webglDepthRenderbuffer=t.createRenderbuffer(),et(c.__webglDepthRenderbuffer,e,!0)),n.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(u){n.bindTexture(34067,h.__webglTexture),K(34067,l,f);for(let t=0;t<6;t++)tt(c.__webglFramebuffer[t],e,l,36064,34069+t);O(l,f)&&B(34067),n.unbindTexture()}else if(d){const t=e.texture;for(let r=0,s=t.length;r<s;r++){const s=t[r],a=i.get(s);n.bindTexture(3553,a.__webglTexture),K(3553,s,f),tt(c.__webglFramebuffer,e,s,36064+r,3553),O(s,f)&&B(3553)}n.unbindTexture()}else{let t=3553;if(p)if(o){t=l.isDataTexture3D?32879:35866}else console.warn("THREE.DataTexture3D and THREE.DataTexture2DArray only supported with WebGL2.");n.bindTexture(t,h.__webglTexture),K(t,l,f),tt(c.__webglFramebuffer,e,l,36064,t),O(l,f)&&B(t),n.unbindTexture()}e.depthBuffer&&nt(e)},this.updateRenderTargetMipmap=function(t){const e=z(t)||o,r=!0===t.isWebGLMultipleRenderTargets?t.texture:[t.texture];for(let s=0,a=r.length;s<a;s++){const a=r[s];if(O(a,e)){const e=t.isWebGLCubeRenderTarget?34067:3553,r=i.get(a).__webglTexture;n.bindTexture(e,r),B(e),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(e){if(e.useRenderbuffer)if(o){const r=e.width,s=e.height;let a=16384;const o=[36064],l=e.stencilBuffer?33306:36096;e.depthBuffer&&o.push(l),e.ignoreDepthForMultisampleCopy||(e.depthBuffer&&(a|=256),e.stencilBuffer&&(a|=1024));const c=i.get(e);n.bindFramebuffer(36008,c.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,c.__webglFramebuffer),e.ignoreDepthForMultisampleCopy&&(t.invalidateFramebuffer(36008,[l]),t.invalidateFramebuffer(36009,[l])),t.blitFramebuffer(0,0,r,s,0,0,r,s,a,9728),t.invalidateFramebuffer(36008,o),n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,c.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.setupDepthRenderbuffer=nt,this.setupFrameBufferTexture=tt,this.safeSetTexture2D=function(t,e){t&&t.isWebGLRenderTarget&&(!1===ot&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),ot=!0),t=t.texture),q(t,e)},this.safeSetTextureCube=function(t,e){t&&t.isWebGLCubeRenderTarget&&(!1===ct&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),ct=!0),t=t.texture),X(t,e)}}function _s(t,e,n){const i=n.isWebGL2;return{convert:function(t,n=null){let r;if(t===b)return 5121;if(1017===t)return 32819;if(1018===t)return 32820;if(1010===t)return 5120;if(1011===t)return 5122;if(t===w)return 5123;if(1013===t)return 5124;if(t===S)return 5125;if(t===T)return 5126;if(t===E)return i?5131:(r=e.get("OES_texture_half_float"),null!==r?r.HALF_FLOAT_OES:null);if(1021===t)return 6406;if(t===R)return 6408;if(1024===t)return 6409;if(1025===t)return 6410;if(t===L)return 6402;if(t===C)return 34041;if(1028===t)return 6403;if(1022===t)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(t===J)return r=e.get("EXT_sRGB"),null!==r?r.SRGB_ALPHA_EXT:null;if(1029===t)return 36244;if(1030===t)return 33319;if(1031===t)return 33320;if(1033===t)return 36249;if(t===P||t===D||t===I||t===N)if(n===k){if(r=e.get("WEBGL_compressed_texture_s3tc_srgb"),null===r)return null;if(t===P)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(t===D)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(t===I)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(t===N)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(r=e.get("WEBGL_compressed_texture_s3tc"),null===r)return null;if(t===P)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===D)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===I)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===N)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(35840===t||35841===t||35842===t||35843===t){if(r=e.get("WEBGL_compressed_texture_pvrtc"),null===r)return null;if(35840===t)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===t)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===t)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===t)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===t)return r=e.get("WEBGL_compressed_texture_etc1"),null!==r?r.COMPRESSED_RGB_ETC1_WEBGL:null;if(37492===t||37496===t){if(r=e.get("WEBGL_compressed_texture_etc"),null===r)return null;if(37492===t)return n===k?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(37496===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}if(37808===t||37809===t||37810===t||37811===t||37812===t||37813===t||37814===t||37815===t||37816===t||37817===t||37818===t||37819===t||37820===t||37821===t){if(r=e.get("WEBGL_compressed_texture_astc"),null===r)return null;if(37808===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(37809===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(37810===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(37811===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(37812===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(37813===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(37814===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(37815===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(37816===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(37817===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(37818===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(37819===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(37820===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(37821===t)return n===k?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}if(36492===t){if(r=e.get("EXT_texture_compression_bptc"),null===r)return null;if(36492===t)return n===k?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT}return t===A?i?34042:(r=e.get("WEBGL_depth_texture"),null!==r?r.UNSIGNED_INT_24_8_WEBGL:null):void 0}}}class Ms extends Rn{constructor(t=[]){super(),this.cameras=t}}Ms.prototype.isArrayCamera=!0;class bs extends Ae{constructor(){super(),this.type="Group"}}bs.prototype.isGroup=!0;const ws={type:"move"};class Ss{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new bs,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new bs,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Tt,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Tt),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new bs,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Tt,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Tt),this._grip}dispatchEvent(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(t,e,n){let i=null,r=null,s=null;const a=this._targetRay,o=this._grip,l=this._hand;if(t&&"visible-blurred"!==e.session.visibilityState)if(null!==a&&(i=e.getPose(t.targetRaySpace,n),null!==i&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(ws))),l&&t.hand){s=!0;for(const s of t.hand.values()){const t=e.getJointPose(s,n);if(void 0===l.joints[s.jointName]){const t=new bs;t.matrixAutoUpdate=!1,t.visible=!1,l.joints[s.jointName]=t,l.add(t)}const i=l.joints[s.jointName];null!==t&&(i.matrix.fromArray(t.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=t.radius),i.visible=null!==t}const i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],a=i.position.distanceTo(r.position),o=.02,c=.005;l.inputState.pinching&&a>o+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!l.inputState.pinching&&a<=o-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==o&&t.gripSpace&&(r=e.getPose(t.gripSpace,n),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1));return null!==a&&(a.visible=null!==i),null!==o&&(o.visible=null!==r),null!==l&&(l.visible=null!==s),this}}class Ts extends yt{constructor(t,e,n,i,r,s,a,o,l,c){if((c=void 0!==c?c:L)!==L&&c!==C)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===L&&(n=w),void 0===n&&c===C&&(n=A),super(null,i,r,s,a,o,c,n,l),this.image={width:t,height:e},this.magFilter=void 0!==a?a:v,this.minFilter=void 0!==o?o:v,this.flipY=!1,this.generateMipmaps=!1}}Ts.prototype.isDepthTexture=!0;class Es extends Y{constructor(t,e){super();const n=this;let i=null,r=1,s=null,a="local-floor";const o=t.extensions.has("WEBGL_multisampled_render_to_texture");let l=null,c=null,h=null,u=null,d=!1,p=null;const f=e.getContextAttributes();let m=null,g=null;const v=[],x=new Map,y=new Rn;y.layers.enable(1),y.viewport=new Mt;const _=new Rn;_.layers.enable(2),_.viewport=new Mt;const M=[y,_],S=new Ms;S.layers.enable(1),S.layers.enable(2);let T=null,E=null;function P(t){const e=x.get(t.inputSource);e&&e.dispatchEvent({type:t.type,data:t.inputSource})}function D(){x.forEach((function(t,e){t.disconnect(e)})),x.clear(),T=null,E=null,t.setRenderTarget(m),u=null,h=null,c=null,i=null,g=null,U.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function I(t){const e=i.inputSources;for(let n=0;n<v.length;n++)x.set(e[n],v[n]);for(let n=0;n<t.removed.length;n++){const e=t.removed[n],i=x.get(e);i&&(i.dispatchEvent({type:"disconnected",data:e}),x.delete(e))}for(let n=0;n<t.added.length;n++){const e=t.added[n],i=x.get(e);i&&i.dispatchEvent({type:"connected",data:e})}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=v[t];return void 0===e&&(e=new Ss,v[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=v[t];return void 0===e&&(e=new Ss,v[t]=e),e.getGripSpace()},this.getHand=function(t){let e=v[t];return void 0===e&&(e=new Ss,v[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){r=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return s},this.getBaseLayer=function(){return null!==h?h:u},this.getBinding=function(){return c},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(l){if(i=l,null!==i){if(m=t.getRenderTarget(),i.addEventListener("select",P),i.addEventListener("selectstart",P),i.addEventListener("selectend",P),i.addEventListener("squeeze",P),i.addEventListener("squeezestart",P),i.addEventListener("squeezeend",P),i.addEventListener("end",D),i.addEventListener("inputsourceschange",I),!0!==f.xrCompatible&&await e.makeXRCompatible(),void 0===i.renderState.layers||!1===t.capabilities.isWebGL2){const n={antialias:void 0!==i.renderState.layers||f.antialias,alpha:f.alpha,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:r};u=new XRWebGLLayer(i,e,n),i.updateRenderState({baseLayer:u}),g=new bt(u.framebufferWidth,u.framebufferHeight,{format:R,type:b,encoding:t.outputEncoding})}else{d=f.antialias;let n=null,s=null,a=null;f.depth&&(a=f.stencil?35056:33190,n=f.stencil?C:L,s=f.stencil?A:w);const l={colorFormat:t.outputEncoding===k?35907:32856,depthFormat:a,scaleFactor:r};c=new XRWebGLBinding(i,e),h=c.createProjectionLayer(l),i.updateRenderState({layers:[h]}),g=d?new wt(h.textureWidth,h.textureHeight,{format:R,type:b,depthTexture:new Ts(h.textureWidth,h.textureHeight,s,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,ignoreDepth:h.ignoreDepthValues,useRenderToTexture:o,encoding:t.outputEncoding}):new bt(h.textureWidth,h.textureHeight,{format:R,type:b,depthTexture:new Ts(h.textureWidth,h.textureHeight,s,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,ignoreDepth:h.ignoreDepthValues,encoding:t.outputEncoding})}g.isXRRenderTarget=!0,this.setFoveation(1),s=await i.requestReferenceSpace(a),U.setContext(i),U.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const N=new Tt,z=new Tt;function O(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===i)return;S.near=_.near=y.near=t.near,S.far=_.far=y.far=t.far,T===S.near&&E===S.far||(i.updateRenderState({depthNear:S.near,depthFar:S.far}),T=S.near,E=S.far);const e=t.parent,n=S.cameras;O(S,e);for(let i=0;i<n.length;i++)O(n[i],e);S.matrixWorld.decompose(S.position,S.quaternion,S.scale),t.position.copy(S.position),t.quaternion.copy(S.quaternion),t.scale.copy(S.scale),t.matrix.copy(S.matrix),t.matrixWorld.copy(S.matrixWorld);const r=t.children;for(let i=0,s=r.length;i<s;i++)r[i].updateMatrixWorld(!0);2===n.length?function(t,e,n){N.setFromMatrixPosition(e.matrixWorld),z.setFromMatrixPosition(n.matrixWorld);const i=N.distanceTo(z),r=e.projectionMatrix.elements,s=n.projectionMatrix.elements,a=r[14]/(r[10]-1),o=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],h=(r[8]-1)/r[0],u=(s[8]+1)/s[0],d=a*h,p=a*u,f=i/(-h+u),m=f*-h;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(m),t.translateZ(f),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert();const g=a+f,v=o+f,x=d-m,y=p+(i-m),_=l*o/v*g,M=c*o/v*g;t.projectionMatrix.makePerspective(x,y,_,M,g,v)}(S,y,_):S.projectionMatrix.copy(y.projectionMatrix)},this.getCamera=function(){return S},this.getFoveation=function(){return null!==h?h.fixedFoveation:null!==u?u.fixedFoveation:void 0},this.setFoveation=function(t){null!==h&&(h.fixedFoveation=t),null!==u&&void 0!==u.fixedFoveation&&(u.fixedFoveation=t)};let B=null;const U=new Hn;U.setAnimationLoop((function(e,n){if(l=n.getViewerPose(s),p=n,null!==l){const e=l.views;null!==u&&(t.setRenderTargetFramebuffer(g,u.framebuffer),t.setRenderTarget(g));let n=!1;e.length!==S.cameras.length&&(S.cameras.length=0,n=!0);for(let i=0;i<e.length;i++){const r=e[i];let s=null;if(null!==u)s=u.getViewport(r);else{const e=c.getViewSubImage(h,r);s=e.viewport,0===i&&(t.setRenderTargetTextures(g,e.colorTexture,h.ignoreDepthValues?void 0:e.depthStencilTexture),t.setRenderTarget(g))}const a=M[i];a.matrix.fromArray(r.transform.matrix),a.projectionMatrix.fromArray(r.projectionMatrix),a.viewport.set(s.x,s.y,s.width,s.height),0===i&&S.matrix.copy(a.matrix),!0===n&&S.cameras.push(a)}}const r=i.inputSources;for(let t=0;t<v.length;t++){const e=v[t],i=r[t];e.update(i,n,s)}B&&B(e,n),p=null})),this.setAnimationLoop=function(t){B=t},this.dispose=function(){}}}function As(t){function e(e,n){e.opacity.value=n.opacity,n.color&&e.diffuse.value.copy(n.color),n.emissive&&e.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(e.map.value=n.map),n.alphaMap&&(e.alphaMap.value=n.alphaMap),n.specularMap&&(e.specularMap.value=n.specularMap),n.alphaTest>0&&(e.alphaTest.value=n.alphaTest);const i=t.get(n).envMap;let r,s;i&&(e.envMap.value=i,e.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,e.reflectivity.value=n.reflectivity,e.ior.value=n.ior,e.refractionRatio.value=n.refractionRatio),n.lightMap&&(e.lightMap.value=n.lightMap,e.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(e.aoMap.value=n.aoMap,e.aoMapIntensity.value=n.aoMapIntensity),n.map?r=n.map:n.specularMap?r=n.specularMap:n.displacementMap?r=n.displacementMap:n.normalMap?r=n.normalMap:n.bumpMap?r=n.bumpMap:n.roughnessMap?r=n.roughnessMap:n.metalnessMap?r=n.metalnessMap:n.alphaMap?r=n.alphaMap:n.emissiveMap?r=n.emissiveMap:n.clearcoatMap?r=n.clearcoatMap:n.clearcoatNormalMap?r=n.clearcoatNormalMap:n.clearcoatRoughnessMap?r=n.clearcoatRoughnessMap:n.specularIntensityMap?r=n.specularIntensityMap:n.specularColorMap?r=n.specularColorMap:n.transmissionMap?r=n.transmissionMap:n.thicknessMap?r=n.thicknessMap:n.sheenColorMap?r=n.sheenColorMap:n.sheenRoughnessMap&&(r=n.sheenRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),e.uvTransform.value.copy(r.matrix)),n.aoMap?s=n.aoMap:n.lightMap&&(s=n.lightMap),void 0!==s&&(s.isWebGLRenderTarget&&(s=s.texture),!0===s.matrixAutoUpdate&&s.updateMatrix(),e.uv2Transform.value.copy(s.matrix))}function n(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(e.emissiveMap.value=n.emissiveMap),n.bumpMap&&(e.bumpMap.value=n.bumpMap,e.bumpScale.value=n.bumpScale,n.side===a&&(e.bumpScale.value*=-1)),n.normalMap&&(e.normalMap.value=n.normalMap,e.normalScale.value.copy(n.normalScale),n.side===a&&e.normalScale.value.negate()),n.displacementMap&&(e.displacementMap.value=n.displacementMap,e.displacementScale.value=n.displacementScale,e.displacementBias.value=n.displacementBias);t.get(n).envMap&&(e.envMapIntensity.value=n.envMapIntensity)}return{refreshFogUniforms:function(t,e){t.fogColor.value.copy(e.color),e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)},refreshMaterialUniforms:function(t,i,r,s,o){i.isMeshBasicMaterial?e(t,i):i.isMeshLambertMaterial?(e(t,i),function(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}(t,i)):i.isMeshToonMaterial?(e(t,i),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap);e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===a&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===a&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshPhongMaterial?(e(t,i),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===a&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===a&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshStandardMaterial?(e(t,i),i.isMeshPhysicalMaterial?function(t,e,i){n(t,e),t.ior.value=e.ior,e.sheen>0&&(t.sheenColor.value.copy(e.sheenColor).multiplyScalar(e.sheen),t.sheenRoughness.value=e.sheenRoughness,e.sheenColorMap&&(t.sheenColorMap.value=e.sheenColorMap),e.sheenRoughnessMap&&(t.sheenRoughnessMap.value=e.sheenRoughnessMap));e.clearcoat>0&&(t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap),e.clearcoatNormalMap&&(t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),t.clearcoatNormalMap.value=e.clearcoatNormalMap,e.side===a&&t.clearcoatNormalScale.value.negate()));e.transmission>0&&(t.transmission.value=e.transmission,t.transmissionSamplerMap.value=i.texture,t.transmissionSamplerSize.value.set(i.width,i.height),e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap),t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap),t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor));t.specularIntensity.value=e.specularIntensity,t.specularColor.value.copy(e.specularColor),e.specularIntensityMap&&(t.specularIntensityMap.value=e.specularIntensityMap);e.specularColorMap&&(t.specularColorMap.value=e.specularColorMap)}(t,i,o):n(t,i)):i.isMeshMatcapMaterial?(e(t,i),function(t,e){e.matcap&&(t.matcap.value=e.matcap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===a&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===a&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshDepthMaterial?(e(t,i),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshDistanceMaterial?(e(t,i),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias);t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}(t,i)):i.isMeshNormalMaterial?(e(t,i),function(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===a&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===a&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity}(t,i),i.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,i)):i.isPointsMaterial?function(t,e,n,i){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*n,t.scale.value=.5*i,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest);let r;e.map?r=e.map:e.alphaMap&&(r=e.alphaMap);void 0!==r&&(!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix))}(t,i,r,s):i.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest);let n;e.map?n=e.map:e.alphaMap&&(n=e.alphaMap);void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),t.uvTransform.value.copy(n.matrix))}(t,i):i.isShadowMaterial?(t.color.value.copy(i.color),t.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function Rs(t={}){const e=void 0!==t.canvas?t.canvas:function(){const t=lt("canvas");return t.style.display="block",t}(),n=void 0!==t.context?t.context:null,i=void 0!==t.alpha&&t.alpha,r=void 0===t.depth||t.depth,s=void 0===t.stencil||t.stencil,o=void 0!==t.antialias&&t.antialias,l=void 0===t.premultipliedAlpha||t.premultipliedAlpha,c=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,h=void 0!==t.powerPreference?t.powerPreference:"default",u=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat;let d=null,p=null;const f=[],g=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=V,this.physicallyCorrectLights=!1,this.toneMapping=0,this.toneMappingExposure=1;const x=this;let y=!1,_=0,w=0,S=null,A=-1,L=null;const C=new Mt,P=new Mt;let D=null,I=e.width,N=e.height,z=1,O=null,B=null;const U=new Mt(0,0,I,N),F=new Mt(0,0,I,N);let H=!1;const G=new Fn;let k=!1,W=!1,j=null;const q=new ne,X=new Tt,J={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Y(){return null===S?z:1}let Z,K,Q,$,tt,et,nt,it,rt,st,at,ot,ct,ht,ut,dt,pt,ft,mt,gt,vt,xt,yt,_t=n;function St(t,n){for(let i=0;i<t.length;i++){const r=t[i],s=e.getContext(r,n);if(null!==s)return s}return null}try{const t={alpha:!0,depth:r,stencil:s,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:h,failIfMajorPerformanceCaveat:u};if("setAttribute"in e&&e.setAttribute("data-engine","three.js r137"),e.addEventListener("webglcontextlost",Rt,!1),e.addEventListener("webglcontextrestored",Lt,!1),null===_t){const e=["webgl2","webgl","experimental-webgl"];if(!0===x.isWebGL1Renderer&&e.shift(),_t=St(e,t),null===_t)throw St(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===_t.getShaderPrecisionFormat&&(_t.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(Gt){throw console.error("THREE.WebGLRenderer: "+Gt.message),Gt}function Et(){Z=new Mi(_t),K=new Yn(_t,Z,t),Z.init(K),xt=new _s(_t,Z,K),Q=new xs(_t,Z,K),$=new Si(_t),tt=new rs,et=new ys(_t,Z,Q,tt,K,xt,$),nt=new Kn(x),it=new _i(x),rt=new Gn(_t,K),yt=new Xn(_t,Z,rt,K),st=new bi(_t,rt,$,yt),at=new Ci(_t,st,rt,$),mt=new Li(_t,K,et),dt=new Zn(tt),ot=new is(x,nt,it,Z,K,yt,dt),ct=new As(tt),ht=new ls,ut=new fs(Z,K),ft=new qn(x,nt,Q,at,i,l),pt=new vs(x,at,K),gt=new Jn(_t,Z,$,K),vt=new wi(_t,Z,$,K),$.programs=ot.programs,x.capabilities=K,x.extensions=Z,x.properties=tt,x.renderLists=ht,x.shadowMap=pt,x.state=Q,x.info=$}Et();const At=new Es(x,_t);function Rt(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),y=!0}function Lt(){console.log("THREE.WebGLRenderer: Context Restored."),y=!1;const t=$.autoReset,e=pt.enabled,n=pt.autoUpdate,i=pt.needsUpdate,r=pt.type;Et(),$.autoReset=t,pt.enabled=e,pt.autoUpdate=n,pt.needsUpdate=i,pt.type=r}function Ct(t){const e=t.target;e.removeEventListener("dispose",Ct),function(t){(function(t){const e=tt.get(t).programs;void 0!==e&&(e.forEach((function(t){ot.releaseProgram(t)})),t.isShaderMaterial&&ot.releaseShaderCache(t))})(t),tt.remove(t)}(e)}this.xr=At,this.getContext=function(){return _t},this.getContextAttributes=function(){return _t.getContextAttributes()},this.forceContextLoss=function(){const t=Z.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=Z.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return z},this.setPixelRatio=function(t){void 0!==t&&(z=t,this.setSize(I,N,!1))},this.getSize=function(t){return t.set(I,N)},this.setSize=function(t,n,i){At.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(I=t,N=n,e.width=Math.floor(t*z),e.height=Math.floor(n*z),!1!==i&&(e.style.width=t+"px",e.style.height=n+"px"),this.setViewport(0,0,t,n))},this.getDrawingBufferSize=function(t){return t.set(I*z,N*z).floor()},this.setDrawingBufferSize=function(t,n,i){I=t,N=n,z=i,e.width=Math.floor(t*i),e.height=Math.floor(n*i),this.setViewport(0,0,t,n)},this.getCurrentViewport=function(t){return t.copy(C)},this.getViewport=function(t){return t.copy(U)},this.setViewport=function(t,e,n,i){t.isVector4?U.set(t.x,t.y,t.z,t.w):U.set(t,e,n,i),Q.viewport(C.copy(U).multiplyScalar(z).floor())},this.getScissor=function(t){return t.copy(F)},this.setScissor=function(t,e,n,i){t.isVector4?F.set(t.x,t.y,t.z,t.w):F.set(t,e,n,i),Q.scissor(P.copy(F).multiplyScalar(z).floor())},this.getScissorTest=function(){return H},this.setScissorTest=function(t){Q.setScissorTest(H=t)},this.setOpaqueSort=function(t){O=t},this.setTransparentSort=function(t){B=t},this.getClearColor=function(t){return t.copy(ft.getClearColor())},this.setClearColor=function(){ft.setClearColor.apply(ft,arguments)},this.getClearAlpha=function(){return ft.getClearAlpha()},this.setClearAlpha=function(){ft.setClearAlpha.apply(ft,arguments)},this.clear=function(t,e,n){let i=0;(void 0===t||t)&&(i|=16384),(void 0===e||e)&&(i|=256),(void 0===n||n)&&(i|=1024),_t.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",Rt,!1),e.removeEventListener("webglcontextrestored",Lt,!1),ht.dispose(),ut.dispose(),tt.dispose(),nt.dispose(),it.dispose(),at.dispose(),yt.dispose(),ot.dispose(),At.dispose(),At.removeEventListener("sessionstart",Dt),At.removeEventListener("sessionend",It),j&&(j.dispose(),j=null),Nt.stop()},this.renderBufferDirect=function(t,e,n,i,r,s){null===e&&(e=J);const a=r.isMesh&&r.matrixWorld.determinant()<0,o=function(t,e,n,i,r){!0!==e.isScene&&(e=J);et.resetTextureUnits();const s=e.fog,a=i.isMeshStandardMaterial?e.environment:null,o=null===S?x.outputEncoding:!0===S.isXRRenderTarget?S.texture.encoding:V,l=(i.isMeshStandardMaterial?it:nt).get(i.envMap||a),c=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,h=!!i.normalMap&&!!n.attributes.tangent,u=!!n.morphAttributes.position,d=!!n.morphAttributes.normal,f=n.morphAttributes.position?n.morphAttributes.position.length:0,m=i.toneMapped?x.toneMapping:0,g=tt.get(i),v=p.state.lights;if(!0===k&&(!0===W||t!==L)){const e=t===L&&i.id===A;dt.setState(i,t,e)}let y=!1;i.version===g.__version?g.needsLights&&g.lightsStateVersion!==v.state.version||g.outputEncoding!==o||r.isInstancedMesh&&!1===g.instancing?y=!0:r.isInstancedMesh||!0!==g.instancing?r.isSkinnedMesh&&!1===g.skinning?y=!0:r.isSkinnedMesh||!0!==g.skinning?g.envMap!==l||i.fog&&g.fog!==s?y=!0:void 0===g.numClippingPlanes||g.numClippingPlanes===dt.numPlanes&&g.numIntersection===dt.numIntersection?(g.vertexAlphas!==c||g.vertexTangents!==h||g.morphTargets!==u||g.morphNormals!==d||g.toneMapping!==m||!0===K.isWebGL2&&g.morphTargetsCount!==f)&&(y=!0):y=!0:y=!0:y=!0:(y=!0,g.__version=i.version);let _=g.currentProgram;!0===y&&(_=Ft(i,e,r));let M=!1,b=!1,w=!1;const T=_.getUniforms(),E=g.uniforms;Q.useProgram(_.program)&&(M=!0,b=!0,w=!0);i.id!==A&&(A=i.id,b=!0);if(M||L!==t){if(T.setValue(_t,"projectionMatrix",t.projectionMatrix),K.logarithmicDepthBuffer&&T.setValue(_t,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),L!==t&&(L=t,b=!0,w=!0),i.isShaderMaterial||i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshStandardMaterial||i.envMap){const e=T.map.cameraPosition;void 0!==e&&e.setValue(_t,X.setFromMatrixPosition(t.matrixWorld))}(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&T.setValue(_t,"isOrthographic",!0===t.isOrthographicCamera),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial||i.isShadowMaterial||r.isSkinnedMesh)&&T.setValue(_t,"viewMatrix",t.matrixWorldInverse)}if(r.isSkinnedMesh){T.setOptional(_t,r,"bindMatrix"),T.setOptional(_t,r,"bindMatrixInverse");const t=r.skeleton;t&&(K.floatVertexTextures?(null===t.boneTexture&&t.computeBoneTexture(),T.setValue(_t,"boneTexture",t.boneTexture,et),T.setValue(_t,"boneTextureSize",t.boneTextureSize)):T.setOptional(_t,t,"boneMatrices"))}!n||void 0===n.morphAttributes.position&&void 0===n.morphAttributes.normal||mt.update(r,n,i,_);(b||g.receiveShadow!==r.receiveShadow)&&(g.receiveShadow=r.receiveShadow,T.setValue(_t,"receiveShadow",r.receiveShadow));b&&(T.setValue(_t,"toneMappingExposure",x.toneMappingExposure),g.needsLights&&(C=w,(R=E).ambientLightColor.needsUpdate=C,R.lightProbe.needsUpdate=C,R.directionalLights.needsUpdate=C,R.directionalLightShadows.needsUpdate=C,R.pointLights.needsUpdate=C,R.pointLightShadows.needsUpdate=C,R.spotLights.needsUpdate=C,R.spotLightShadows.needsUpdate=C,R.rectAreaLights.needsUpdate=C,R.hemisphereLights.needsUpdate=C),s&&i.fog&&ct.refreshFogUniforms(E,s),ct.refreshMaterialUniforms(E,i,z,N,j),zr.upload(_t,g.uniformsList,E,et));var R,C;i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(zr.upload(_t,g.uniformsList,E,et),i.uniformsNeedUpdate=!1);i.isSpriteMaterial&&T.setValue(_t,"center",r.center);return T.setValue(_t,"modelViewMatrix",r.modelViewMatrix),T.setValue(_t,"normalMatrix",r.normalMatrix),T.setValue(_t,"modelMatrix",r.matrixWorld),_}(t,e,n,i,r);Q.setMaterial(i,a);let l=n.index;const c=n.attributes.position;if(null===l){if(void 0===c||0===c.count)return}else if(0===l.count)return;let h,u=1;!0===i.wireframe&&(l=st.getWireframeAttribute(n),u=2),yt.setup(r,i,o,n,l);let d=gt;null!==l&&(h=rt.get(l),d=vt,d.setIndex(h));const f=null!==l?l.count:c.count,m=n.drawRange.start*u,g=n.drawRange.count*u,v=null!==s?s.start*u:0,y=null!==s?s.count*u:1/0,_=Math.max(m,v),M=Math.min(f,m+g,v+y)-1,b=Math.max(0,M-_+1);if(0!==b){if(r.isMesh)!0===i.wireframe?(Q.setLineWidth(i.wireframeLinewidth*Y()),d.setMode(1)):d.setMode(4);else if(r.isLine){let t=i.linewidth;void 0===t&&(t=1),Q.setLineWidth(t*Y()),r.isLineSegments?d.setMode(1):r.isLineLoop?d.setMode(2):d.setMode(3)}else r.isPoints?d.setMode(0):r.isSprite&&d.setMode(4);if(r.isInstancedMesh)d.renderInstances(_,b,r.count);else if(n.isInstancedBufferGeometry){const t=Math.min(n.instanceCount,n._maxInstanceCount);d.renderInstances(_,b,t)}else d.render(_,b)}},this.compile=function(t,e){p=ut.get(t),p.init(),g.push(p),t.traverseVisible((function(t){t.isLight&&t.layers.test(e.layers)&&(p.pushLight(t),t.castShadow&&p.pushShadow(t))})),p.setupLights(x.physicallyCorrectLights),t.traverse((function(e){const n=e.material;if(n)if(Array.isArray(n))for(let i=0;i<n.length;i++){Ft(n[i],t,e)}else Ft(n,t,e)})),g.pop(),p=null};let Pt=null;function Dt(){Nt.stop()}function It(){Nt.start()}const Nt=new Hn;function zt(t,e,n,i){if(!1===t.visible)return;if(t.layers.test(e.layers))if(t.isGroup)n=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)p.pushLight(t),t.castShadow&&p.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||G.intersectsSprite(t)){i&&X.setFromMatrixPosition(t.matrixWorld).applyMatrix4(q);const e=at.update(t),r=t.material;r.visible&&d.push(t,e,r,n,X.z,null)}}else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==$.render.frame&&(t.skeleton.update(),t.skeleton.frame=$.render.frame),!t.frustumCulled||G.intersectsObject(t))){i&&X.setFromMatrixPosition(t.matrixWorld).applyMatrix4(q);const e=at.update(t),r=t.material;if(Array.isArray(r)){const i=e.groups;for(let s=0,a=i.length;s<a;s++){const a=i[s],o=r[a.materialIndex];o&&o.visible&&d.push(t,e,o,n,X.z,a)}}else r.visible&&d.push(t,e,r,n,X.z,null)}const r=t.children;for(let s=0,a=r.length;s<a;s++)zt(r[s],e,n,i)}function Ot(t,e,n,i){const r=t.opaque,s=t.transmissive,a=t.transparent;p.setupLightsView(n),s.length>0&&function(t,e,n){if(null===j){const t=!0===o&&!0===K.isWebGL2;j=new(t?wt:bt)(1024,1024,{generateMipmaps:!0,type:null!==xt.convert(E)?E:b,minFilter:M,magFilter:v,wrapS:m,wrapT:m,useRenderToTexture:Z.has("WEBGL_multisampled_render_to_texture")})}const i=x.getRenderTarget();x.setRenderTarget(j),x.clear();const r=x.toneMapping;x.toneMapping=0,Bt(t,e,n),x.toneMapping=r,et.updateMultisampleRenderTarget(j),et.updateRenderTargetMipmap(j),x.setRenderTarget(i)}(r,e,n),i&&Q.viewport(C.copy(i)),r.length>0&&Bt(r,e,n),s.length>0&&Bt(s,e,n),a.length>0&&Bt(a,e,n)}function Bt(t,e,n){const i=!0===e.isScene?e.overrideMaterial:null;for(let r=0,s=t.length;r<s;r++){const s=t[r],a=s.object,o=s.geometry,l=null===i?s.material:i,c=s.group;a.layers.test(n.layers)&&Ut(a,e,n,o,l,c)}}function Ut(t,e,n,i,r,s){t.onBeforeRender(x,e,n,i,r,s),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),r.onBeforeRender(x,e,n,i,t,s),!0===r.transparent&&2===r.side?(r.side=a,r.needsUpdate=!0,x.renderBufferDirect(n,e,i,r,t,s),r.side=0,r.needsUpdate=!0,x.renderBufferDirect(n,e,i,r,t,s),r.side=2):x.renderBufferDirect(n,e,i,r,t,s),t.onAfterRender(x,e,n,i,r,s)}function Ft(t,e,n){!0!==e.isScene&&(e=J);const i=tt.get(t),r=p.state.lights,s=p.state.shadowsArray,a=r.state.version,o=ot.getParameters(t,r.state,s,e,n),l=ot.getProgramCacheKey(o);let c=i.programs;i.environment=t.isMeshStandardMaterial?e.environment:null,i.fog=e.fog,i.envMap=(t.isMeshStandardMaterial?it:nt).get(t.envMap||i.environment),void 0===c&&(t.addEventListener("dispose",Ct),c=new Map,i.programs=c);let h=c.get(l);if(void 0!==h){if(i.currentProgram===h&&i.lightsStateVersion===a)return Ht(t,o),h}else o.uniforms=ot.getUniforms(t),t.onBuild(n,o,x),t.onBeforeCompile(o,x),h=ot.acquireProgram(o,l),c.set(l,h),i.uniforms=o.uniforms;const u=i.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(u.clippingPlanes=dt.uniform),Ht(t,o),i.needsLights=function(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}(t),i.lightsStateVersion=a,i.needsLights&&(u.ambientLightColor.value=r.state.ambient,u.lightProbe.value=r.state.probe,u.directionalLights.value=r.state.directional,u.directionalLightShadows.value=r.state.directionalShadow,u.spotLights.value=r.state.spot,u.spotLightShadows.value=r.state.spotShadow,u.rectAreaLights.value=r.state.rectArea,u.ltc_1.value=r.state.rectAreaLTC1,u.ltc_2.value=r.state.rectAreaLTC2,u.pointLights.value=r.state.point,u.pointLightShadows.value=r.state.pointShadow,u.hemisphereLights.value=r.state.hemi,u.directionalShadowMap.value=r.state.directionalShadowMap,u.directionalShadowMatrix.value=r.state.directionalShadowMatrix,u.spotShadowMap.value=r.state.spotShadowMap,u.spotShadowMatrix.value=r.state.spotShadowMatrix,u.pointShadowMap.value=r.state.pointShadowMap,u.pointShadowMatrix.value=r.state.pointShadowMatrix);const d=h.getUniforms(),f=zr.seqWithValue(d.seq,u);return i.currentProgram=h,i.uniformsList=f,h}function Ht(t,e){const n=tt.get(t);n.outputEncoding=e.outputEncoding,n.instancing=e.instancing,n.skinning=e.skinning,n.morphTargets=e.morphTargets,n.morphNormals=e.morphNormals,n.morphTargetsCount=e.morphTargetsCount,n.numClippingPlanes=e.numClippingPlanes,n.numIntersection=e.numClipIntersection,n.vertexAlphas=e.vertexAlphas,n.vertexTangents=e.vertexTangents,n.toneMapping=e.toneMapping}Nt.setAnimationLoop((function(t){Pt&&Pt(t)})),"undefined"!==typeof window&&Nt.setContext(window),this.setAnimationLoop=function(t){Pt=t,At.setAnimationLoop(t),null===t?Nt.stop():Nt.start()},At.addEventListener("sessionstart",Dt),At.addEventListener("sessionend",It),this.render=function(t,e){if(void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===y)return;!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),!0===At.enabled&&!0===At.isPresenting&&(!0===At.cameraAutoUpdate&&At.updateCamera(e),e=At.getCamera()),!0===t.isScene&&t.onBeforeRender(x,t,e,S),p=ut.get(t,g.length),p.init(),g.push(p),q.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),G.setFromProjectionMatrix(q),W=this.localClippingEnabled,k=dt.init(this.clippingPlanes,W,e),d=ht.get(t,f.length),d.init(),f.push(d),zt(t,e,0,x.sortObjects),d.finish(),!0===x.sortObjects&&d.sort(O,B),!0===k&&dt.beginShadows();const n=p.state.shadowsArray;if(pt.render(n,t,e),!0===k&&dt.endShadows(),!0===this.info.autoReset&&this.info.reset(),ft.render(d,t),p.setupLights(x.physicallyCorrectLights),e.isArrayCamera){const n=e.cameras;for(let e=0,i=n.length;e<i;e++){const i=n[e];Ot(d,t,i,i.viewport)}}else Ot(d,t,e);null!==S&&(et.updateMultisampleRenderTarget(S),et.updateRenderTargetMipmap(S)),!0===t.isScene&&t.onAfterRender(x,t,e),Q.buffers.depth.setTest(!0),Q.buffers.depth.setMask(!0),Q.buffers.color.setMask(!0),Q.setPolygonOffset(!1),yt.resetDefaultState(),A=-1,L=null,g.pop(),p=g.length>0?g[g.length-1]:null,f.pop(),d=f.length>0?f[f.length-1]:null},this.getActiveCubeFace=function(){return _},this.getActiveMipmapLevel=function(){return w},this.getRenderTarget=function(){return S},this.setRenderTargetTextures=function(t,e,n){tt.get(t.texture).__webglTexture=e,tt.get(t.depthTexture).__webglTexture=n;const i=tt.get(t);i.__hasExternalTextures=!0,i.__hasExternalTextures&&(i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||t.useRenderToTexture&&(console.warn("render-to-texture extension was disabled because an external texture was provided"),t.useRenderToTexture=!1,t.useRenderbuffer=!0))},this.setRenderTargetFramebuffer=function(t,e){const n=tt.get(t);n.__webglFramebuffer=e,n.__useDefaultFramebuffer=void 0===e},this.setRenderTarget=function(t,e=0,n=0){S=t,_=e,w=n;let i=!0;if(t){const e=tt.get(t);void 0!==e.__useDefaultFramebuffer?(Q.bindFramebuffer(36160,null),i=!1):void 0===e.__webglFramebuffer?et.setupRenderTarget(t):e.__hasExternalTextures&&et.rebindTextures(t,tt.get(t.texture).__webglTexture,tt.get(t.depthTexture).__webglTexture)}let r=null,s=!1,a=!1;if(t){const n=t.texture;(n.isDataTexture3D||n.isDataTexture2DArray)&&(a=!0);const i=tt.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(r=i[e],s=!0):r=t.useRenderbuffer?tt.get(t).__webglMultisampledFramebuffer:i,C.copy(t.viewport),P.copy(t.scissor),D=t.scissorTest}else C.copy(U).multiplyScalar(z).floor(),P.copy(F).multiplyScalar(z).floor(),D=H;if(Q.bindFramebuffer(36160,r)&&K.drawBuffers&&i&&Q.drawBuffers(t,r),Q.viewport(C),Q.scissor(P),Q.setScissorTest(D),s){const i=tt.get(t.texture);_t.framebufferTexture2D(36160,36064,34069+e,i.__webglTexture,n)}else if(a){const i=tt.get(t.texture),r=e||0;_t.framebufferTextureLayer(36160,36064,i.__webglTexture,n||0,r)}A=-1},this.readRenderTargetPixels=function(t,e,n,i,r,s,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=tt.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(o=o[a]),o){Q.bindFramebuffer(36160,o);try{const a=t.texture,o=a.format,l=a.type;if(o!==R&&xt.convert(o)!==_t.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===E&&(Z.has("EXT_color_buffer_half_float")||K.isWebGL2&&Z.has("EXT_color_buffer_float"));if(l!==b&&xt.convert(l)!==_t.getParameter(35738)&&(l!==T||!(K.isWebGL2||Z.has("OES_texture_float")||Z.has("WEBGL_color_buffer_float")))&&!c)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===_t.checkFramebufferStatus(36160)?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&_t.readPixels(e,n,i,r,xt.convert(o),xt.convert(l),s):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{const t=null!==S?tt.get(S).__webglFramebuffer:null;Q.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){if(!0!==e.isFramebufferTexture)return void console.error("THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.");const i=Math.pow(2,-n),r=Math.floor(e.image.width*i),s=Math.floor(e.image.height*i);et.setTexture2D(e,0),_t.copyTexSubImage2D(3553,n,0,0,t.x,t.y,r,s),Q.unbindTexture()},this.copyTextureToTexture=function(t,e,n,i=0){const r=e.image.width,s=e.image.height,a=xt.convert(n.format),o=xt.convert(n.type);et.setTexture2D(n,0),_t.pixelStorei(37440,n.flipY),_t.pixelStorei(37441,n.premultiplyAlpha),_t.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?_t.texSubImage2D(3553,i,t.x,t.y,r,s,a,o,e.image.data):e.isCompressedTexture?_t.compressedTexSubImage2D(3553,i,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):_t.texSubImage2D(3553,i,t.x,t.y,a,o,e.image),0===i&&n.generateMipmaps&&_t.generateMipmap(3553),Q.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,i,r=0){if(x.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const s=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,o=t.max.z-t.min.z+1,l=xt.convert(i.format),c=xt.convert(i.type);let h;if(i.isDataTexture3D)et.setTexture3D(i,0),h=32879;else{if(!i.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");et.setTexture2DArray(i,0),h=35866}_t.pixelStorei(37440,i.flipY),_t.pixelStorei(37441,i.premultiplyAlpha),_t.pixelStorei(3317,i.unpackAlignment);const u=_t.getParameter(3314),d=_t.getParameter(32878),p=_t.getParameter(3316),f=_t.getParameter(3315),m=_t.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;_t.pixelStorei(3314,g.width),_t.pixelStorei(32878,g.height),_t.pixelStorei(3316,t.min.x),_t.pixelStorei(3315,t.min.y),_t.pixelStorei(32877,t.min.z),n.isDataTexture||n.isDataTexture3D?_t.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,g.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),_t.compressedTexSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,g.data)):_t.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,g),_t.pixelStorei(3314,u),_t.pixelStorei(32878,d),_t.pixelStorei(3316,p),_t.pixelStorei(3315,f),_t.pixelStorei(32877,m),0===r&&i.generateMipmaps&&_t.generateMipmap(h),Q.unbindTexture()},this.initTexture=function(t){et.setTexture2D(t,0),Q.unbindTexture()},this.resetState=function(){_=0,w=0,S=null,Q.reset(),yt.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Rs.prototype.isWebGLRenderer=!0;(class extends Rs{}).prototype.isWebGL1Renderer=!0;class Ls{constructor(t,e=25e-5){this.name="",this.color=new mt(t),this.density=e}clone(){return new Ls(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}Ls.prototype.isFogExp2=!0;class Cs{constructor(t,e=1,n=1e3){this.name="",this.color=new mt(t),this.near=e,this.far=n}clone(){return new Cs(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}Cs.prototype.isFog=!0;class Ps extends Ae{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}Ps.prototype.isScene=!0;class Ds{constructor(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=j,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=$()}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let i=0,r=this.stride;i<r;i++)this.array[t+i]=e.array[n+i];return this}set(t,e=0){return this.array.set(t,e),this}clone(t){void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=$()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(e,this.stride);return n.setUsage(this.usage),n}onUpload(t){return this.onUploadCallback=t,this}toJSON(t){return void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=$()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}Ds.prototype.isInterleavedBuffer=!0;const Is=new Tt;class Ns{constructor(t,e,n,i=!1){this.name="",this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(t){this.data.needsUpdate=t}applyMatrix4(t){for(let e=0,n=this.data.count;e<n;e++)Is.x=this.getX(e),Is.y=this.getY(e),Is.z=this.getZ(e),Is.applyMatrix4(t),this.setXYZ(e,Is.x,Is.y,Is.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Is.x=this.getX(e),Is.y=this.getY(e),Is.z=this.getZ(e),Is.applyNormalMatrix(t),this.setXYZ(e,Is.x,Is.y,Is.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Is.x=this.getX(e),Is.y=this.getY(e),Is.z=this.getZ(e),Is.transformDirection(t),this.setXYZ(e,Is.x,Is.y,Is.z);return this}setX(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this}setY(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this}setZ(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this}setW(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this}getX(t){return this.data.array[t*this.data.stride+this.offset]}getY(t){return this.data.array[t*this.data.stride+this.offset+1]}getZ(t){return this.data.array[t*this.data.stride+this.offset+2]}getW(t){return this.data.array[t*this.data.stride+this.offset+3]}setXY(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this}setXYZ(t,e,n,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this}setXYZW(t,e,n,i,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this.data.array[t+3]=r,this}clone(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return new We(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new Ns(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.toJSON(t)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}Ns.prototype.isInterleavedBufferAttribute=!0;class zs extends He{constructor(t){super(),this.type="SpriteMaterial",this.color=new mt(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this}}let Os;zs.prototype.isSpriteMaterial=!0;const Bs=new Tt,Us=new Tt,Fs=new Tt,Hs=new st,Gs=new st,Vs=new ne,ks=new Tt,Ws=new Tt,js=new Tt,qs=new st,Xs=new st,Js=new st;class Ys extends Ae{constructor(t){if(super(),this.type="Sprite",void 0===Os){Os=new en;const t=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),e=new Ds(t,5);Os.setIndex([0,1,2,0,2,3]),Os.setAttribute("position",new Ns(e,3,0,!1)),Os.setAttribute("uv",new Ns(e,2,3,!1))}this.geometry=Os,this.material=void 0!==t?t:new zs,this.center=new st(.5,.5)}raycast(t,e){null===t.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),Us.setFromMatrixScale(this.matrixWorld),Vs.copy(t.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse,this.matrixWorld),Fs.setFromMatrixPosition(this.modelViewMatrix),t.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&Us.multiplyScalar(-Fs.z);const n=this.material.rotation;let i,r;0!==n&&(r=Math.cos(n),i=Math.sin(n));const s=this.center;Zs(ks.set(-.5,-.5,0),Fs,s,Us,i,r),Zs(Ws.set(.5,-.5,0),Fs,s,Us,i,r),Zs(js.set(.5,.5,0),Fs,s,Us,i,r),qs.set(0,0),Xs.set(1,0),Js.set(1,1);let a=t.ray.intersectTriangle(ks,Ws,js,!1,Bs);if(null===a&&(Zs(Ws.set(-.5,.5,0),Fs,s,Us,i,r),Xs.set(0,1),a=t.ray.intersectTriangle(ks,js,Ws,!1,Bs),null===a))return;const o=t.ray.origin.distanceTo(Bs);o<t.near||o>t.far||e.push({distance:o,point:Bs.clone(),uv:Ue.getUV(Bs,ks,Ws,js,qs,Xs,Js,new st),face:null,object:this})}copy(t){return super.copy(t),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function Zs(t,e,n,i,r,s){Hs.subVectors(t,n).addScalar(.5).multiply(i),void 0!==r?(Gs.x=s*Hs.x-r*Hs.y,Gs.y=r*Hs.x+s*Hs.y):Gs.copy(Hs),t.copy(e),t.x+=Gs.x,t.y+=Gs.y,t.applyMatrix4(Vs)}Ys.prototype.isSprite=!0;const Ks=new Tt,Qs=new Mt,$s=new Mt,ta=new Tt,ea=new ne;class na extends _n{constructor(t,e){super(t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new ne,this.bindMatrixInverse=new ne}copy(t){return super.copy(t),this.bindMode=t.bindMode,this.bindMatrix.copy(t.bindMatrix),this.bindMatrixInverse.copy(t.bindMatrixInverse),this.skeleton=t.skeleton,this}bind(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.copy(e).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const t=new Mt,e=this.geometry.attributes.skinWeight;for(let n=0,i=e.count;n<i;n++){t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.w=e.getW(n);const i=1/t.manhattanLength();i!==1/0?t.multiplyScalar(i):t.set(1,0,0,0),e.setXYZW(n,t.x,t.y,t.z,t.w)}}updateMatrixWorld(t){super.updateMatrixWorld(t),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}boneTransform(t,e){const n=this.skeleton,i=this.geometry;Qs.fromBufferAttribute(i.attributes.skinIndex,t),$s.fromBufferAttribute(i.attributes.skinWeight,t),Ks.copy(e).applyMatrix4(this.bindMatrix),e.set(0,0,0);for(let r=0;r<4;r++){const t=$s.getComponent(r);if(0!==t){const i=Qs.getComponent(r);ea.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),e.addScaledVector(ta.copy(Ks).applyMatrix4(ea),t)}}return e.applyMatrix4(this.bindMatrixInverse)}}na.prototype.isSkinnedMesh=!0;class ia extends Ae{constructor(){super(),this.type="Bone"}}ia.prototype.isBone=!0;class ra extends yt{constructor(t=null,e=1,n=1,i,r,s,a,o,l=1003,c=1003,h,u){super(null,s,a,o,l,c,i,r,h,u),this.image={data:t,width:e,height:n},this.magFilter=l,this.minFilter=c,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}ra.prototype.isDataTexture=!0;class sa extends We{constructor(t,e,n,i=1){"number"===typeof n&&(i=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),super(t,e,n),this.meshPerAttribute=i}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}toJSON(){const t=super.toJSON();return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}}sa.prototype.isInstancedBufferAttribute=!0;const aa=new ne,oa=new ne,la=[],ca=new _n;class ha extends _n{constructor(t,e,n){super(t,e),this.instanceMatrix=new sa(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1}copy(t){return super.copy(t),this.instanceMatrix.copy(t.instanceMatrix),null!==t.instanceColor&&(this.instanceColor=t.instanceColor.clone()),this.count=t.count,this}getColorAt(t,e){e.fromArray(this.instanceColor.array,3*t)}getMatrixAt(t,e){e.fromArray(this.instanceMatrix.array,16*t)}raycast(t,e){const n=this.matrixWorld,i=this.count;if(ca.geometry=this.geometry,ca.material=this.material,void 0!==ca.material)for(let r=0;r<i;r++){this.getMatrixAt(r,aa),oa.multiplyMatrices(n,aa),ca.matrixWorld=oa,ca.raycast(t,la);for(let t=0,n=la.length;t<n;t++){const n=la[t];n.instanceId=r,n.object=this,e.push(n)}la.length=0}}setColorAt(t,e){null===this.instanceColor&&(this.instanceColor=new sa(new Float32Array(3*this.instanceMatrix.count),3)),e.toArray(this.instanceColor.array,3*t)}setMatrixAt(t,e){e.toArray(this.instanceMatrix.array,16*t)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}ha.prototype.isInstancedMesh=!0;class ua extends He{constructor(t){super(),this.type="LineBasicMaterial",this.color=new mt(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this}}ua.prototype.isLineBasicMaterial=!0;const da=new Tt,pa=new Tt,fa=new ne,ma=new ee,ga=new Xt;class va extends Ae{constructor(t=new en,e=new ua){super(),this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),this.material=t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[0];for(let t=1,i=e.count;t<i;t++)da.fromBufferAttribute(e,t-1),pa.fromBufferAttribute(e,t),n[t]=n[t-1],n[t]+=da.distanceTo(pa);t.setAttribute("lineDistance",new Xe(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}raycast(t,e){const n=this.geometry,i=this.matrixWorld,r=t.params.Line.threshold,s=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),ga.copy(n.boundingSphere),ga.applyMatrix4(i),ga.radius+=r,!1===t.ray.intersectsSphere(ga))return;fa.copy(i).invert(),ma.copy(t.ray).applyMatrix4(fa);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a,l=new Tt,c=new Tt,h=new Tt,u=new Tt,d=this.isLineSegments?2:1;if(n.isBufferGeometry){const i=n.index,r=n.attributes.position;if(null!==i){for(let n=Math.max(0,s.start),a=Math.min(i.count,s.start+s.count)-1;n<a;n+=d){const s=i.getX(n),a=i.getX(n+1);l.fromBufferAttribute(r,s),c.fromBufferAttribute(r,a);if(ma.distanceSqToSegment(l,c,u,h)>o)continue;u.applyMatrix4(this.matrixWorld);const d=t.ray.origin.distanceTo(u);d<t.near||d>t.far||e.push({distance:d,point:h.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,s.start),i=Math.min(r.count,s.start+s.count)-1;n<i;n+=d){l.fromBufferAttribute(r,n),c.fromBufferAttribute(r,n+1);if(ma.distanceSqToSegment(l,c,u,h)>o)continue;u.applyMatrix4(this.matrixWorld);const i=t.ray.origin.distanceTo(u);i<t.near||i>t.far||e.push({distance:i,point:h.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}va.prototype.isLine=!0;const xa=new Tt,ya=new Tt;class _a extends va{constructor(t,e){super(t,e),this.type="LineSegments"}computeLineDistances(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[];for(let t=0,i=e.count;t<i;t+=2)xa.fromBufferAttribute(e,t),ya.fromBufferAttribute(e,t+1),n[t]=0===t?0:n[t-1],n[t+1]=n[t]+xa.distanceTo(ya);t.setAttribute("lineDistance",new Xe(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}}_a.prototype.isLineSegments=!0;class Ma extends va{constructor(t,e){super(t,e),this.type="LineLoop"}}Ma.prototype.isLineLoop=!0;class ba extends He{constructor(t){super(),this.type="PointsMaterial",this.color=new mt(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this}}ba.prototype.isPointsMaterial=!0;const wa=new ne,Sa=new ee,Ta=new Xt,Ea=new Tt;class Aa extends Ae{constructor(t=new en,e=new ba){super(),this.type="Points",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),this.material=t.material,this.geometry=t.geometry,this}raycast(t,e){const n=this.geometry,i=this.matrixWorld,r=t.params.Points.threshold,s=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Ta.copy(n.boundingSphere),Ta.applyMatrix4(i),Ta.radius+=r,!1===t.ray.intersectsSphere(Ta))return;wa.copy(i).invert(),Sa.copy(t.ray).applyMatrix4(wa);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a;if(n.isBufferGeometry){const r=n.index,a=n.attributes.position;if(null!==r){for(let n=Math.max(0,s.start),l=Math.min(r.count,s.start+s.count);n<l;n++){const s=r.getX(n);Ea.fromBufferAttribute(a,s),Ra(Ea,s,o,i,t,e,this)}}else{for(let n=Math.max(0,s.start),r=Math.min(a.count,s.start+s.count);n<r;n++)Ea.fromBufferAttribute(a,n),Ra(Ea,n,o,i,t,e,this)}}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}function Ra(t,e,n,i,r,s,a){const o=Sa.distanceSqToPoint(t);if(o<n){const n=new Tt;Sa.closestPointToPoint(t,n),n.applyMatrix4(i);const l=r.ray.origin.distanceTo(n);if(l<r.near||l>r.far)return;s.push({distance:l,distanceToRay:Math.sqrt(o),point:n,index:e,face:null,object:a})}}Aa.prototype.isPoints=!0;(class extends yt{constructor(t,e,n,i,r,s,a,o,l){super(t,e,n,i,r,s,a,o,l),this.minFilter=void 0!==s?s:_,this.magFilter=void 0!==r?r:_,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in t&&t.requestVideoFrameCallback((function e(){c.needsUpdate=!0,t.requestVideoFrameCallback(e)}))}clone(){return new this.constructor(this.image).copy(this)}update(){const t=this.image;!1==="requestVideoFrameCallback"in t&&t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}).prototype.isVideoTexture=!0;(class extends yt{constructor(t,e,n){super({width:t,height:e}),this.format=n,this.magFilter=v,this.minFilter=v,this.generateMipmaps=!1,this.needsUpdate=!0}}).prototype.isFramebufferTexture=!0;class La extends yt{constructor(t,e,n,i,r,s,a,o,l,c,h,u){super(null,s,a,o,l,c,i,r,h,u),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}}La.prototype.isCompressedTexture=!0;(class extends yt{constructor(t,e,n,i,r,s,a,o,l){super(t,e,n,i,r,s,a,o,l),this.needsUpdate=!0}}).prototype.isCanvasTexture=!0;class Ca extends en{constructor(t=1,e=1,n=1,i=8,r=1,s=!1,a=0,o=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:i,heightSegments:r,openEnded:s,thetaStart:a,thetaLength:o};const l=this;i=Math.floor(i),r=Math.floor(r);const c=[],h=[],u=[],d=[];let p=0;const f=[],m=n/2;let g=0;function v(n){const r=p,s=new st,f=new Tt;let v=0;const x=!0===n?t:e,y=!0===n?1:-1;for(let t=1;t<=i;t++)h.push(0,m*y,0),u.push(0,y,0),d.push(.5,.5),p++;const _=p;for(let t=0;t<=i;t++){const e=t/i*o+a,n=Math.cos(e),r=Math.sin(e);f.x=x*r,f.y=m*y,f.z=x*n,h.push(f.x,f.y,f.z),u.push(0,y,0),s.x=.5*n+.5,s.y=.5*r*y+.5,d.push(s.x,s.y),p++}for(let t=0;t<i;t++){const e=r+t,i=_+t;!0===n?c.push(i,i+1,e):c.push(i+1,i,e),v+=3}l.addGroup(g,v,!0===n?1:2),g+=v}!function(){const s=new Tt,v=new Tt;let x=0;const y=(e-t)/n;for(let l=0;l<=r;l++){const c=[],g=l/r,x=g*(e-t)+t;for(let t=0;t<=i;t++){const e=t/i,r=e*o+a,l=Math.sin(r),f=Math.cos(r);v.x=x*l,v.y=-g*n+m,v.z=x*f,h.push(v.x,v.y,v.z),s.set(l,y,f).normalize(),u.push(s.x,s.y,s.z),d.push(e,1-g),c.push(p++)}f.push(c)}for(let t=0;t<i;t++)for(let e=0;e<r;e++){const n=f[e][t],i=f[e+1][t],r=f[e+1][t+1],s=f[e][t+1];c.push(n,i,s),c.push(i,r,s),x+=6}l.addGroup(g,x,0),g+=x}(),!1===s&&(t>0&&v(!0),e>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new Xe(h,3)),this.setAttribute("normal",new Xe(u,3)),this.setAttribute("uv",new Xe(d,2))}static fromJSON(t){return new Ca(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class Pa extends Ca{constructor(t=1,e=1,n=8,i=1,r=!1,s=0,a=2*Math.PI){super(0,t,e,n,i,r,s,a),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:s,thetaLength:a}}static fromJSON(t){return new Pa(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}new Tt,new Tt,new Tt,new Ue;class Da{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),r=0;e.push(0);for(let s=1;s<=t;s++)n=this.getPoint(s/t),r+=n.distanceTo(i),e.push(r),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const r=n.length;let s;s=e||t*n[r-1];let a,o=0,l=r-1;for(;o<=l;)if(i=Math.floor(o+(l-o)/2),a=n[i]-s,a<0)o=i+1;else{if(!(a>0)){l=i;break}l=i-1}if(i=l,n[i]===s)return i/(r-1);const c=n[i];return(i+(s-c)/(n[i+1]-c))/(r-1)}getTangent(t,e){const n=1e-4;let i=t-n,r=t+n;i<0&&(i=0),r>1&&(r=1);const s=this.getPoint(i),a=this.getPoint(r),o=e||(s.isVector2?new st:new Tt);return o.copy(a).sub(s).normalize(),o}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new Tt,i=[],r=[],s=[],a=new Tt,o=new ne;for(let d=0;d<=t;d++){const e=d/t;i[d]=this.getTangentAt(e,new Tt)}r[0]=new Tt,s[0]=new Tt;let l=Number.MAX_VALUE;const c=Math.abs(i[0].x),h=Math.abs(i[0].y),u=Math.abs(i[0].z);c<=l&&(l=c,n.set(1,0,0)),h<=l&&(l=h,n.set(0,1,0)),u<=l&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),s[0].crossVectors(i[0],r[0]);for(let d=1;d<=t;d++){if(r[d]=r[d-1].clone(),s[d]=s[d-1].clone(),a.crossVectors(i[d-1],i[d]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(tt(i[d-1].dot(i[d]),-1,1));r[d].applyMatrix4(o.makeRotationAxis(a,t))}s[d].crossVectors(i[d],r[d])}if(!0===e){let e=Math.acos(tt(r[0].dot(r[t]),-1,1));e/=t,i[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let n=1;n<=t;n++)r[n].applyMatrix4(o.makeRotationAxis(i[n],e*n)),s[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:s}}clone(){return(new this.constructor).copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class Ia extends Da{constructor(t=0,e=0,n=1,i=1,r=0,s=2*Math.PI,a=!1,o=0){super(),this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=s,this.aClockwise=a,this.aRotation=o}getPoint(t,e){const n=e||new st,i=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const s=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=s?0:i),!0!==this.aClockwise||s||(r===i?r=-i:r-=i);const a=this.aStartAngle+t*r;let o=this.aX+this.xRadius*Math.cos(a),l=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),n=o-this.aX,i=l-this.aY;o=n*t-i*e+this.aX,l=n*e+i*t+this.aY}return n.set(o,l)}copy(t){return super.copy(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}toJSON(){const t=super.toJSON();return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t}fromJSON(t){return super.fromJSON(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}}Ia.prototype.isEllipseCurve=!0;class Na extends Ia{constructor(t,e,n,i,r,s){super(t,e,n,n,i,r,s),this.type="ArcCurve"}}function za(){let t=0,e=0,n=0,i=0;function r(r,s,a,o){t=r,e=a,n=-3*r+3*s-2*a-o,i=2*r-2*s+a+o}return{initCatmullRom:function(t,e,n,i,s){r(e,n,s*(n-t),s*(i-e))},initNonuniformCatmullRom:function(t,e,n,i,s,a,o){let l=(e-t)/s-(n-t)/(s+a)+(n-e)/a,c=(n-e)/a-(i-e)/(a+o)+(i-n)/o;l*=a,c*=a,r(e,n,l,c)},calc:function(r){const s=r*r;return t+e*r+n*s+i*(s*r)}}}Na.prototype.isArcCurve=!0;const Oa=new Tt,Ba=new za,Ua=new za,Fa=new za;class Ha extends Da{constructor(t=[],e=!1,n="centripetal",i=.5){super(),this.type="CatmullRomCurve3",this.points=t,this.closed=e,this.curveType=n,this.tension=i}getPoint(t,e=new Tt){const n=e,i=this.points,r=i.length,s=(r-(this.closed?0:1))*t;let a,o,l=Math.floor(s),c=s-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===c&&l===r-1&&(l=r-2,c=1),this.closed||l>0?a=i[(l-1)%r]:(Oa.subVectors(i[0],i[1]).add(i[0]),a=Oa);const h=i[l%r],u=i[(l+1)%r];if(this.closed||l+2<r?o=i[(l+2)%r]:(Oa.subVectors(i[r-1],i[r-2]).add(i[r-1]),o=Oa),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(a.distanceToSquared(h),t),n=Math.pow(h.distanceToSquared(u),t),i=Math.pow(u.distanceToSquared(o),t);n<1e-4&&(n=1),e<1e-4&&(e=n),i<1e-4&&(i=n),Ba.initNonuniformCatmullRom(a.x,h.x,u.x,o.x,e,n,i),Ua.initNonuniformCatmullRom(a.y,h.y,u.y,o.y,e,n,i),Fa.initNonuniformCatmullRom(a.z,h.z,u.z,o.z,e,n,i)}else"catmullrom"===this.curveType&&(Ba.initCatmullRom(a.x,h.x,u.x,o.x,this.tension),Ua.initCatmullRom(a.y,h.y,u.y,o.y,this.tension),Fa.initCatmullRom(a.z,h.z,u.z,o.z,this.tension));return n.set(Ba.calc(c),Ua.calc(c),Fa.calc(c)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new Tt).fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}}function Ga(t,e,n,i,r){const s=.5*(i-e),a=.5*(r-n),o=t*t;return(2*n-2*i+s+a)*(t*o)+(-3*n+3*i-2*s-a)*o+s*t+n}function Va(t,e,n,i){return function(t,e){const n=1-t;return n*n*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,n)+function(t,e){return t*t*e}(t,i)}function ka(t,e,n,i,r){return function(t,e){const n=1-t;return n*n*n*e}(t,e)+function(t,e){const n=1-t;return 3*n*n*t*e}(t,n)+function(t,e){return 3*(1-t)*t*t*e}(t,i)+function(t,e){return t*t*t*e}(t,r)}Ha.prototype.isCatmullRomCurve3=!0;class Wa extends Da{constructor(t=new st,e=new st,n=new st,i=new st){super(),this.type="CubicBezierCurve",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new st){const n=e,i=this.v0,r=this.v1,s=this.v2,a=this.v3;return n.set(ka(t,i.x,r.x,s.x,a.x),ka(t,i.y,r.y,s.y,a.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}Wa.prototype.isCubicBezierCurve=!0;class ja extends Da{constructor(t=new Tt,e=new Tt,n=new Tt,i=new Tt){super(),this.type="CubicBezierCurve3",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new Tt){const n=e,i=this.v0,r=this.v1,s=this.v2,a=this.v3;return n.set(ka(t,i.x,r.x,s.x,a.x),ka(t,i.y,r.y,s.y,a.y),ka(t,i.z,r.z,s.z,a.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}ja.prototype.isCubicBezierCurve3=!0;class qa extends Da{constructor(t=new st,e=new st){super(),this.type="LineCurve",this.v1=t,this.v2=e}getPoint(t,e=new st){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}getTangent(t,e){const n=e||new st;return n.copy(this.v2).sub(this.v1).normalize(),n}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}qa.prototype.isLineCurve=!0;class Xa extends Da{constructor(t=new st,e=new st,n=new st){super(),this.type="QuadraticBezierCurve",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new st){const n=e,i=this.v0,r=this.v1,s=this.v2;return n.set(Va(t,i.x,r.x,s.x),Va(t,i.y,r.y,s.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}Xa.prototype.isQuadraticBezierCurve=!0;class Ja extends Da{constructor(t=new Tt,e=new Tt,n=new Tt){super(),this.type="QuadraticBezierCurve3",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new Tt){const n=e,i=this.v0,r=this.v1,s=this.v2;return n.set(Va(t,i.x,r.x,s.x),Va(t,i.y,r.y,s.y),Va(t,i.z,r.z,s.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}Ja.prototype.isQuadraticBezierCurve3=!0;class Ya extends Da{constructor(t=[]){super(),this.type="SplineCurve",this.points=t}getPoint(t,e=new st){const n=e,i=this.points,r=(i.length-1)*t,s=Math.floor(r),a=r-s,o=i[0===s?s:s-1],l=i[s],c=i[s>i.length-2?i.length-1:s+1],h=i[s>i.length-3?i.length-1:s+2];return n.set(Ga(a,o.x,l.x,c.x,h.x),Ga(a,o.y,l.y,c.y,h.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new st).fromArray(n))}return this}}Ya.prototype.isSplineCurve=!0;var Za=Object.freeze({__proto__:null,ArcCurve:Na,CatmullRomCurve3:Ha,CubicBezierCurve:Wa,CubicBezierCurve3:ja,EllipseCurve:Ia,LineCurve:qa,LineCurve3:class extends Da{constructor(t=new Tt,e=new Tt){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=t,this.v2=e}getPoint(t,e=new Tt){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}},QuadraticBezierCurve:Xa,QuadraticBezierCurve3:Ja,SplineCurve:Ya});class Ka extends Da{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(t){this.curves.push(t)}closePath(){const t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new qa(e,t))}getPoint(t,e){const n=t*this.getLength(),i=this.getCurveLengths();let r=0;for(;r<i.length;){if(i[r]>=n){const t=i[r]-n,s=this.curves[r],a=s.getLength(),o=0===a?0:1-t/a;return s.getPointAt(o,e)}r++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,i=this.curves.length;n<i;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t,t}getSpacedPoints(t=40){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e}getPoints(t=12){const e=[];let n;for(let i=0,r=this.curves;i<r.length;i++){const s=r[i],a=s&&s.isEllipseCurve?2*t:s&&(s.isLineCurve||s.isLineCurve3)?1:s&&s.isSplineCurve?t*s.points.length:t,o=s.getPoints(a);for(let t=0;t<o.length;t++){const i=o[t];n&&n.equals(i)||(e.push(i),n=i)}}return this.autoClose&&e.length>1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push(n.clone())}return this.autoClose=t.autoClose,this}toJSON(){const t=super.toJSON();t.autoClose=this.autoClose,t.curves=[];for(let e=0,n=this.curves.length;e<n;e++){const n=this.curves[e];t.curves.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.autoClose=t.autoClose,this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push((new Za[n.type]).fromJSON(n))}return this}}class Qa extends Ka{constructor(t){super(),this.type="Path",this.currentPoint=new st,t&&this.setFromPoints(t)}setFromPoints(t){this.moveTo(t[0].x,t[0].y);for(let e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y);return this}moveTo(t,e){return this.currentPoint.set(t,e),this}lineTo(t,e){const n=new qa(this.currentPoint.clone(),new st(t,e));return this.curves.push(n),this.currentPoint.set(t,e),this}quadraticCurveTo(t,e,n,i){const r=new Xa(this.currentPoint.clone(),new st(t,e),new st(n,i));return this.curves.push(r),this.currentPoint.set(n,i),this}bezierCurveTo(t,e,n,i,r,s){const a=new Wa(this.currentPoint.clone(),new st(t,e),new st(n,i),new st(r,s));return this.curves.push(a),this.currentPoint.set(r,s),this}splineThru(t){const e=[this.currentPoint.clone()].concat(t),n=new Ya(e);return this.curves.push(n),this.currentPoint.copy(t[t.length-1]),this}arc(t,e,n,i,r,s){const a=this.currentPoint.x,o=this.currentPoint.y;return this.absarc(t+a,e+o,n,i,r,s),this}absarc(t,e,n,i,r,s){return this.absellipse(t,e,n,n,i,r,s),this}ellipse(t,e,n,i,r,s,a,o){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(t+l,e+c,n,i,r,s,a,o),this}absellipse(t,e,n,i,r,s,a,o){const l=new Ia(t,e,n,i,r,s,a,o);if(this.curves.length>0){const t=l.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class $a extends Qa{constructor(t){super(t),this.uuid=$(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,i=this.holes.length;n<i;n++)e[n]=this.holes[n].getPoints(t);return e}extractPoints(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}}copy(t){super.copy(t),this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.uuid=this.uuid,t.holes=[];for(let e=0,n=this.holes.length;e<n;e++){const n=this.holes[e];t.holes.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.uuid=t.uuid,this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push((new Qa).fromJSON(n))}return this}}const to=function(t,e,n=2){const i=e&&e.length,r=i?e[0]*n:t.length;let s=eo(t,0,r,n,!0);const a=[];if(!s||s.next===s.prev)return a;let o,l,c,h,u,d,p;if(i&&(s=function(t,e,n,i){const r=[];let s,a,o,l,c;for(s=0,a=e.length;s<a;s++)o=e[s]*i,l=s<a-1?e[s+1]*i:t.length,c=eo(t,o,l,i,!1),c===c.next&&(c.steiner=!0),r.push(po(c));for(r.sort(lo),s=0;s<r.length;s++)co(r[s],n),n=no(n,n.next);return n}(t,e,s,n)),t.length>80*n){o=c=t[0],l=h=t[1];for(let e=n;e<r;e+=n)u=t[e],d=t[e+1],u<o&&(o=u),d<l&&(l=d),u>c&&(c=u),d>h&&(h=d);p=Math.max(c-o,h-l),p=0!==p?1/p:0}return io(s,a,n,o,l,p),a};function eo(t,e,n,i,r){let s,a;if(r===function(t,e,n,i){let r=0;for(let s=e,a=n-i;s<n;s+=i)r+=(t[a]-t[s])*(t[s+1]+t[a+1]),a=s;return r}(t,e,n,i)>0)for(s=e;s<n;s+=i)a=wo(s,t[s],t[s+1],a);else for(s=n-i;s>=e;s-=i)a=wo(s,t[s],t[s+1],a);return a&&vo(a,a.next)&&(So(a),a=a.next),a}function no(t,e){if(!t)return t;e||(e=t);let n,i=t;do{if(n=!1,i.steiner||!vo(i,i.next)&&0!==go(i.prev,i,i.next))i=i.next;else{if(So(i),i=e=i.prev,i===i.next)break;n=!0}}while(n||i!==e);return e}function io(t,e,n,i,r,s,a){if(!t)return;!a&&s&&function(t,e,n,i){let r=t;do{null===r.z&&(r.z=uo(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){let e,n,i,r,s,a,o,l,c=1;do{for(n=t,t=null,s=null,a=0;n;){for(a++,i=n,o=0,e=0;e<c&&(o++,i=i.nextZ,i);e++);for(l=c;o>0||l>0&&i;)0!==o&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,o--):(r=i,i=i.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;n=i}s.nextZ=null,c*=2}while(a>1)}(r)}(t,i,r,s);let o,l,c=t;for(;t.prev!==t.next;)if(o=t.prev,l=t.next,s?so(t,i,r,s):ro(t))e.push(o.i/n),e.push(t.i/n),e.push(l.i/n),So(t),t=l.next,c=l.next;else if((t=l)===c){a?1===a?io(t=ao(no(t),e,n),e,n,i,r,s,2):2===a&&oo(t,e,n,i,r,s):io(no(t),e,n,i,r,s,1);break}}function ro(t){const e=t.prev,n=t,i=t.next;if(go(e,n,i)>=0)return!1;let r=t.next.next;for(;r!==t.prev;){if(fo(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&go(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function so(t,e,n,i){const r=t.prev,s=t,a=t.next;if(go(r,s,a)>=0)return!1;const o=r.x<s.x?r.x<a.x?r.x:a.x:s.x<a.x?s.x:a.x,l=r.y<s.y?r.y<a.y?r.y:a.y:s.y<a.y?s.y:a.y,c=r.x>s.x?r.x>a.x?r.x:a.x:s.x>a.x?s.x:a.x,h=r.y>s.y?r.y>a.y?r.y:a.y:s.y>a.y?s.y:a.y,u=uo(o,l,e,n,i),d=uo(c,h,e,n,i);let p=t.prevZ,f=t.nextZ;for(;p&&p.z>=u&&f&&f.z<=d;){if(p!==t.prev&&p!==t.next&&fo(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&go(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,f!==t.prev&&f!==t.next&&fo(r.x,r.y,s.x,s.y,a.x,a.y,f.x,f.y)&&go(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&fo(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&go(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;f&&f.z<=d;){if(f!==t.prev&&f!==t.next&&fo(r.x,r.y,s.x,s.y,a.x,a.y,f.x,f.y)&&go(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function ao(t,e,n){let i=t;do{const r=i.prev,s=i.next.next;!vo(r,s)&&xo(r,i,i.next,s)&&Mo(r,s)&&Mo(s,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(s.i/n),So(i),So(i.next),i=t=s),i=i.next}while(i!==t);return no(i)}function oo(t,e,n,i,r,s){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.i!==t.i&&mo(a,t)){let o=bo(a,t);return a=no(a,a.next),o=no(o,o.next),io(a,e,n,i,r,s),void io(o,e,n,i,r,s)}t=t.next}a=a.next}while(a!==t)}function lo(t,e){return t.x-e.x}function co(t,e){if(e=function(t,e){let n=e;const i=t.x,r=t.y;let s,a=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){const t=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=i&&t>a){if(a=t,t===i){if(r===n.y)return n;if(r===n.next.y)return n.next}s=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!s)return null;if(i===a)return s;const o=s,l=s.x,c=s.y;let h,u=1/0;n=s;do{i>=n.x&&n.x>=l&&i!==n.x&&fo(r<c?i:a,r,l,c,r<c?a:i,r,n.x,n.y)&&(h=Math.abs(r-n.y)/(i-n.x),Mo(n,t)&&(h<u||h===u&&(n.x>s.x||n.x===s.x&&ho(s,n)))&&(s=n,u=h)),n=n.next}while(n!==o);return s}(t,e)){const n=bo(e,t);no(e,e.next),no(n,n.next)}}function ho(t,e){return go(t.prev,t,e.prev)<0&&go(e.next,t,t.next)<0}function uo(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function po(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function fo(t,e,n,i,r,s,a,o){return(r-a)*(e-o)-(t-a)*(s-o)>=0&&(t-a)*(i-o)-(n-a)*(e-o)>=0&&(n-a)*(s-o)-(r-a)*(i-o)>=0}function mo(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&xo(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Mo(t,e)&&Mo(e,t)&&function(t,e){let n=t,i=!1;const r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{n.y>s!==n.next.y>s&&n.next.y!==n.y&&r<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)&&(go(t.prev,t,e.prev)||go(t,e.prev,e))||vo(t,e)&&go(t.prev,t,t.next)>0&&go(e.prev,e,e.next)>0)}function go(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function vo(t,e){return t.x===e.x&&t.y===e.y}function xo(t,e,n,i){const r=_o(go(t,e,n)),s=_o(go(t,e,i)),a=_o(go(n,i,t)),o=_o(go(n,i,e));return r!==s&&a!==o||(!(0!==r||!yo(t,n,e))||(!(0!==s||!yo(t,i,e))||(!(0!==a||!yo(n,t,i))||!(0!==o||!yo(n,e,i)))))}function yo(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function _o(t){return t>0?1:t<0?-1:0}function Mo(t,e){return go(t.prev,t,t.next)<0?go(t,e,t.next)>=0&&go(t,t.prev,e)>=0:go(t,e,t.prev)<0||go(t,t.next,e)<0}function bo(t,e){const n=new To(t.i,t.x,t.y),i=new To(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,s.next=i,i.prev=s,i}function wo(t,e,n,i){const r=new To(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function So(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function To(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Eo{static area(t){const e=t.length;let n=0;for(let i=e-1,r=0;r<e;i=r++)n+=t[i].x*t[r].y-t[r].x*t[i].y;return.5*n}static isClockWise(t){return Eo.area(t)<0}static triangulateShape(t,e){const n=[],i=[],r=[];Ao(t),Ro(n,t);let s=t.length;e.forEach(Ao);for(let o=0;o<e.length;o++)i.push(s),s+=e[o].length,Ro(n,e[o]);const a=to(n,i);for(let o=0;o<a.length;o+=3)r.push(a.slice(o,o+3));return r}}function Ao(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function Ro(t,e){for(let n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}class Lo extends en{constructor(t=new $a([new st(.5,.5),new st(-.5,.5),new st(-.5,-.5),new st(.5,-.5)]),e={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];const n=this,i=[],r=[];for(let a=0,o=t.length;a<o;a++){s(t[a])}function s(t){const s=[],a=void 0!==e.curveSegments?e.curveSegments:12,o=void 0!==e.steps?e.steps:1;let l=void 0!==e.depth?e.depth:1,c=void 0===e.bevelEnabled||e.bevelEnabled,h=void 0!==e.bevelThickness?e.bevelThickness:.2,u=void 0!==e.bevelSize?e.bevelSize:h-.1,d=void 0!==e.bevelOffset?e.bevelOffset:0,p=void 0!==e.bevelSegments?e.bevelSegments:3;const f=e.extrudePath,m=void 0!==e.UVGenerator?e.UVGenerator:Co;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=e.amount);let g,v,x,y,_,M=!1;f&&(g=f.getSpacedPoints(o),M=!0,c=!1,v=f.computeFrenetFrames(o,!1),x=new Tt,y=new Tt,_=new Tt),c||(p=0,h=0,u=0,d=0);const b=t.extractPoints(a);let w=b.shape;const S=b.holes;if(!Eo.isClockWise(w)){w=w.reverse();for(let t=0,e=S.length;t<e;t++){const e=S[t];Eo.isClockWise(e)&&(S[t]=e.reverse())}}const T=Eo.triangulateShape(w,S),E=w;for(let e=0,n=S.length;e<n;e++){const t=S[e];w=w.concat(t)}function A(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}const R=w.length,L=T.length;function C(t,e,n){let i,r,s;const a=t.x-e.x,o=t.y-e.y,l=n.x-t.x,c=n.y-t.y,h=a*a+o*o,u=a*c-o*l;if(Math.abs(u)>Number.EPSILON){const u=Math.sqrt(h),d=Math.sqrt(l*l+c*c),p=e.x-o/u,f=e.y+a/u,m=((n.x-c/d-p)*c-(n.y+l/d-f)*l)/(a*c-o*l);i=p+a*m-t.x,r=f+o*m-t.y;const g=i*i+r*r;if(g<=2)return new st(i,r);s=Math.sqrt(g/2)}else{let t=!1;a>Number.EPSILON?l>Number.EPSILON&&(t=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(t=!0):Math.sign(o)===Math.sign(c)&&(t=!0),t?(i=-o,r=a,s=Math.sqrt(h)):(i=a,r=o,s=Math.sqrt(h/2))}return new st(i/s,r/s)}const P=[];for(let e=0,n=E.length,i=n-1,r=e+1;e<n;e++,i++,r++)i===n&&(i=0),r===n&&(r=0),P[e]=C(E[e],E[i],E[r]);const D=[];let I,N=P.concat();for(let e=0,n=S.length;e<n;e++){const t=S[e];I=[];for(let e=0,n=t.length,i=n-1,r=e+1;e<n;e++,i++,r++)i===n&&(i=0),r===n&&(r=0),I[e]=C(t[e],t[i],t[r]);D.push(I),N=N.concat(I)}for(let e=0;e<p;e++){const t=e/p,n=h*Math.cos(t*Math.PI/2),i=u*Math.sin(t*Math.PI/2)+d;for(let e=0,r=E.length;e<r;e++){const t=A(E[e],P[e],i);B(t.x,t.y,-n)}for(let e=0,r=S.length;e<r;e++){const t=S[e];I=D[e];for(let e=0,r=t.length;e<r;e++){const r=A(t[e],I[e],i);B(r.x,r.y,-n)}}}const z=u+d;for(let e=0;e<R;e++){const t=c?A(w[e],N[e],z):w[e];M?(y.copy(v.normals[0]).multiplyScalar(t.x),x.copy(v.binormals[0]).multiplyScalar(t.y),_.copy(g[0]).add(y).add(x),B(_.x,_.y,_.z)):B(t.x,t.y,0)}for(let e=1;e<=o;e++)for(let t=0;t<R;t++){const n=c?A(w[t],N[t],z):w[t];M?(y.copy(v.normals[e]).multiplyScalar(n.x),x.copy(v.binormals[e]).multiplyScalar(n.y),_.copy(g[e]).add(y).add(x),B(_.x,_.y,_.z)):B(n.x,n.y,l/o*e)}for(let e=p-1;e>=0;e--){const t=e/p,n=h*Math.cos(t*Math.PI/2),i=u*Math.sin(t*Math.PI/2)+d;for(let e=0,r=E.length;e<r;e++){const t=A(E[e],P[e],i);B(t.x,t.y,l+n)}for(let e=0,r=S.length;e<r;e++){const t=S[e];I=D[e];for(let e=0,r=t.length;e<r;e++){const r=A(t[e],I[e],i);M?B(r.x,r.y+g[o-1].y,g[o-1].x+n):B(r.x,r.y,l+n)}}}function O(t,e){let n=t.length;for(;--n>=0;){const i=n;let r=n-1;r<0&&(r=t.length-1);for(let t=0,n=o+2*p;t<n;t++){const n=R*t,s=R*(t+1);F(e+i+n,e+r+n,e+r+s,e+i+s)}}}function B(t,e,n){s.push(t),s.push(e),s.push(n)}function U(t,e,r){H(t),H(e),H(r);const s=i.length/3,a=m.generateTopUV(n,i,s-3,s-2,s-1);G(a[0]),G(a[1]),G(a[2])}function F(t,e,r,s){H(t),H(e),H(s),H(e),H(r),H(s);const a=i.length/3,o=m.generateSideWallUV(n,i,a-6,a-3,a-2,a-1);G(o[0]),G(o[1]),G(o[3]),G(o[1]),G(o[2]),G(o[3])}function H(t){i.push(s[3*t+0]),i.push(s[3*t+1]),i.push(s[3*t+2])}function G(t){r.push(t.x),r.push(t.y)}!function(){const t=i.length/3;if(c){let t=0,e=R*t;for(let n=0;n<L;n++){const t=T[n];U(t[2]+e,t[1]+e,t[0]+e)}t=o+2*p,e=R*t;for(let n=0;n<L;n++){const t=T[n];U(t[0]+e,t[1]+e,t[2]+e)}}else{for(let t=0;t<L;t++){const e=T[t];U(e[2],e[1],e[0])}for(let t=0;t<L;t++){const e=T[t];U(e[0]+R*o,e[1]+R*o,e[2]+R*o)}}n.addGroup(t,i.length/3-t,0)}(),function(){const t=i.length/3;let e=0;O(E,e),e+=E.length;for(let n=0,i=S.length;n<i;n++){const t=S[n];O(t,e),e+=t.length}n.addGroup(t,i.length/3-t,1)}()}this.setAttribute("position",new Xe(i,3)),this.setAttribute("uv",new Xe(r,2)),this.computeVertexNormals()}toJSON(){const t=super.toJSON();return function(t,e,n){if(n.shapes=[],Array.isArray(t))for(let i=0,r=t.length;i<r;i++){const e=t[i];n.shapes.push(e.uuid)}else n.shapes.push(t.uuid);void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,t)}static fromJSON(t,e){const n=[];for(let r=0,s=t.shapes.length;r<s;r++){const i=e[t.shapes[r]];n.push(i)}const i=t.options.extrudePath;return void 0!==i&&(t.options.extrudePath=(new Za[i.type]).fromJSON(i)),new Lo(n,t.options)}}const Co={generateTopUV:function(t,e,n,i,r){const s=e[3*n],a=e[3*n+1],o=e[3*i],l=e[3*i+1],c=e[3*r],h=e[3*r+1];return[new st(s,a),new st(o,l),new st(c,h)]},generateSideWallUV:function(t,e,n,i,r,s){const a=e[3*n],o=e[3*n+1],l=e[3*n+2],c=e[3*i],h=e[3*i+1],u=e[3*i+2],d=e[3*r],p=e[3*r+1],f=e[3*r+2],m=e[3*s],g=e[3*s+1],v=e[3*s+2];return Math.abs(o-h)<Math.abs(a-c)?[new st(a,1-l),new st(c,1-u),new st(d,1-f),new st(m,1-v)]:[new st(o,1-l),new st(h,1-u),new st(p,1-f),new st(g,1-v)]}};class Po extends en{constructor(t=new $a([new st(0,.5),new st(-.5,-.5),new st(.5,-.5)]),e=12){super(),this.type="ShapeGeometry",this.parameters={shapes:t,curveSegments:e};const n=[],i=[],r=[],s=[];let a=0,o=0;if(!1===Array.isArray(t))l(t);else for(let c=0;c<t.length;c++)l(t[c]),this.addGroup(a,o,c),a+=o,o=0;function l(t){const a=i.length/3,l=t.extractPoints(e);let c=l.shape;const h=l.holes;!1===Eo.isClockWise(c)&&(c=c.reverse());for(let e=0,n=h.length;e<n;e++){const t=h[e];!0===Eo.isClockWise(t)&&(h[e]=t.reverse())}const u=Eo.triangulateShape(c,h);for(let e=0,n=h.length;e<n;e++){const t=h[e];c=c.concat(t)}for(let e=0,n=c.length;e<n;e++){const t=c[e];i.push(t.x,t.y,0),r.push(0,0,1),s.push(t.x,t.y)}for(let e=0,i=u.length;e<i;e++){const t=u[e],i=t[0]+a,r=t[1]+a,s=t[2]+a;n.push(i,r,s),o+=3}}this.setIndex(n),this.setAttribute("position",new Xe(i,3)),this.setAttribute("normal",new Xe(r,3)),this.setAttribute("uv",new Xe(s,2))}toJSON(){const t=super.toJSON();return function(t,e){if(e.shapes=[],Array.isArray(t))for(let n=0,i=t.length;n<i;n++){const i=t[n];e.shapes.push(i.uuid)}else e.shapes.push(t.uuid);return e}(this.parameters.shapes,t)}static fromJSON(t,e){const n=[];for(let i=0,r=t.shapes.length;i<r;i++){const r=e[t.shapes[i]];n.push(r)}return new Po(n,t.curveSegments)}}class Do extends en{constructor(t=1,e=32,n=16,i=0,r=2*Math.PI,s=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:s,thetaLength:a},e=Math.max(3,Math.floor(e)),n=Math.max(2,Math.floor(n));const o=Math.min(s+a,Math.PI);let l=0;const c=[],h=new Tt,u=new Tt,d=[],p=[],f=[],m=[];for(let g=0;g<=n;g++){const d=[],v=g/n;let x=0;0==g&&0==s?x=.5/e:g==n&&o==Math.PI&&(x=-.5/e);for(let n=0;n<=e;n++){const o=n/e;h.x=-t*Math.cos(i+o*r)*Math.sin(s+v*a),h.y=t*Math.cos(s+v*a),h.z=t*Math.sin(i+o*r)*Math.sin(s+v*a),p.push(h.x,h.y,h.z),u.copy(h).normalize(),f.push(u.x,u.y,u.z),m.push(o+x,1-v),d.push(l++)}c.push(d)}for(let g=0;g<n;g++)for(let t=0;t<e;t++){const e=c[g][t+1],i=c[g][t],r=c[g+1][t],a=c[g+1][t+1];(0!==g||s>0)&&d.push(e,i,a),(g!==n-1||o<Math.PI)&&d.push(i,r,a)}this.setIndex(d),this.setAttribute("position",new Xe(p,3)),this.setAttribute("normal",new Xe(f,3)),this.setAttribute("uv",new Xe(m,2))}static fromJSON(t){return new Do(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}}class Io extends en{constructor(t=new Ja(new Tt(-1,-1,0),new Tt(-1,1,0),new Tt(1,1,0)),e=64,n=1,i=8,r=!1){super(),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:i,closed:r};const s=t.computeFrenetFrames(e,r);this.tangents=s.tangents,this.normals=s.normals,this.binormals=s.binormals;const a=new Tt,o=new Tt,l=new st;let c=new Tt;const h=[],u=[],d=[],p=[];function f(r){c=t.getPointAt(r/e,c);const l=s.normals[r],d=s.binormals[r];for(let t=0;t<=i;t++){const e=t/i*Math.PI*2,r=Math.sin(e),s=-Math.cos(e);o.x=s*l.x+r*d.x,o.y=s*l.y+r*d.y,o.z=s*l.z+r*d.z,o.normalize(),u.push(o.x,o.y,o.z),a.x=c.x+n*o.x,a.y=c.y+n*o.y,a.z=c.z+n*o.z,h.push(a.x,a.y,a.z)}}!function(){for(let t=0;t<e;t++)f(t);f(!1===r?e:0),function(){for(let t=0;t<=e;t++)for(let n=0;n<=i;n++)l.x=t/e,l.y=n/i,d.push(l.x,l.y)}(),function(){for(let t=1;t<=e;t++)for(let e=1;e<=i;e++){const n=(i+1)*(t-1)+(e-1),r=(i+1)*t+(e-1),s=(i+1)*t+e,a=(i+1)*(t-1)+e;p.push(n,r,a),p.push(r,s,a)}}()}(),this.setIndex(p),this.setAttribute("position",new Xe(h,3)),this.setAttribute("normal",new Xe(u,3)),this.setAttribute("uv",new Xe(d,2))}toJSON(){const t=super.toJSON();return t.path=this.parameters.path.toJSON(),t}static fromJSON(t){return new Io((new Za[t.path.type]).fromJSON(t.path),t.tubularSegments,t.radius,t.radialSegments,t.closed)}}class No extends He{constructor(t){super(),this.type="ShadowMaterial",this.color=new mt(0),this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this}}No.prototype.isShadowMaterial=!0;class zo extends He{constructor(t){super(),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new mt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this}}zo.prototype.isMeshStandardMaterial=!0;class Oo extends zo{constructor(t){super(),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new st(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return tt(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.sheenColor=new mt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=0,this.attenuationColor=new mt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new mt(1,1,1),this.specularColorMap=null,this._sheen=0,this._clearcoat=0,this._transmission=0,this.setValues(t)}get sheen(){return this._sheen}set sheen(t){this._sheen>0!==t>0&&this.version++,this._sheen=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!==t>0&&this.version++,this._clearcoat=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!==t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}Oo.prototype.isMeshPhysicalMaterial=!0;class Bo extends He{constructor(t){super(),this.type="MeshPhongMaterial",this.color=new mt(16777215),this.specular=new mt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this}}Bo.prototype.isMeshPhongMaterial=!0;class Uo extends He{constructor(t){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new mt(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this}}Uo.prototype.isMeshToonMaterial=!0;class Fo extends He{constructor(t){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.flatShading=t.flatShading,this}}Fo.prototype.isMeshNormalMaterial=!0;class Ho extends He{constructor(t){super(),this.type="MeshLambertMaterial",this.color=new mt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this}}Ho.prototype.isMeshLambertMaterial=!0;class Go extends He{constructor(t){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new mt(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new st(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.flatShading=t.flatShading,this}}Go.prototype.isMeshMatcapMaterial=!0;class Vo extends ua{constructor(t){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}copy(t){return super.copy(t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this}}Vo.prototype.isLineDashedMaterial=!0;const ko={arraySlice:function(t,e,n){return ko.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"===typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){const e=t.length,n=new Array(e);for(let i=0;i!==e;++i)n[i]=i;return n.sort((function(e,n){return t[e]-t[n]})),n},sortedArray:function(t,e,n){const i=t.length,r=new t.constructor(i);for(let s=0,a=0;a!==i;++s){const i=n[s]*e;for(let n=0;n!==e;++n)r[a++]=t[i+n]}return r},flattenJSON:function(t,e,n,i){let r=1,s=t[0];for(;void 0!==s&&void 0===s[i];)s=t[r++];if(void 0===s)return;let a=s[i];if(void 0!==a)if(Array.isArray(a))do{a=s[i],void 0!==a&&(e.push(s.time),n.push.apply(n,a)),s=t[r++]}while(void 0!==s);else if(void 0!==a.toArray)do{a=s[i],void 0!==a&&(e.push(s.time),a.toArray(n,n.length)),s=t[r++]}while(void 0!==s);else do{a=s[i],void 0!==a&&(e.push(s.time),n.push(a)),s=t[r++]}while(void 0!==s)},subclip:function(t,e,n,i,r=30){const s=t.clone();s.name=e;const a=[];for(let l=0;l<s.tracks.length;++l){const t=s.tracks[l],e=t.getValueSize(),o=[],c=[];for(let s=0;s<t.times.length;++s){const a=t.times[s]*r;if(!(a<n||a>=i)){o.push(t.times[s]);for(let n=0;n<e;++n)c.push(t.values[s*e+n])}}0!==o.length&&(t.times=ko.convertArray(o,t.times.constructor),t.values=ko.convertArray(c,t.values.constructor),a.push(t))}s.tracks=a;let o=1/0;for(let l=0;l<s.tracks.length;++l)o>s.tracks[l].times[0]&&(o=s.tracks[l].times[0]);for(let l=0;l<s.tracks.length;++l)s.tracks[l].shift(-1*o);return s.resetDuration(),s},makeClipAdditive:function(t,e=0,n=t,i=30){i<=0&&(i=30);const r=n.tracks.length,s=e/i;for(let a=0;a<r;++a){const e=n.tracks[a],i=e.ValueTypeName;if("bool"===i||"string"===i)continue;const r=t.tracks.find((function(t){return t.name===e.name&&t.ValueTypeName===i}));if(void 0===r)continue;let o=0;const l=e.getValueSize();e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(o=l/3);let c=0;const h=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(c=h/3);const u=e.times.length-1;let d;if(s<=e.times[0]){const t=o,n=l-o;d=ko.arraySlice(e.values,t,n)}else if(s>=e.times[u]){const t=u*l+o,n=t+l-o;d=ko.arraySlice(e.values,t,n)}else{const t=e.createInterpolant(),n=o,i=l-o;t.evaluate(s),d=ko.arraySlice(t.resultBuffer,n,i)}if("quaternion"===i){(new St).fromArray(d).normalize().conjugate().toArray(d)}const p=r.times.length;for(let t=0;t<p;++t){const e=t*h+c;if("quaternion"===i)St.multiplyQuaternionsFlat(r.values,e,d,0,r.values,e);else{const t=h-2*c;for(let n=0;n<t;++n)r.values[e+n]-=d[n]}}}return t.blendMode=2501,t}};class Wo{constructor(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{let s;n:{i:if(!(t<i)){for(let s=n+2;;){if(void 0===i){if(t<r)break i;return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,t,r)}if(n===s)break;if(r=i,i=e[++n],t<i)break e}s=e.length;break n}if(t>=r)break t;{const a=e[1];t<a&&(n=2,r=a);for(let s=n-2;;){if(void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(n===s)break;if(i=r,r=e[--n-1],t>=r)break e}s=n,n=0}}for(;n<s;){const i=n+s>>>1;t<e[i]?s=i:n=i+1}if(i=e[n],r=e[n-1],void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(void 0===i)return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,r,t)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,t,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(t){const e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i;for(let s=0;s!==i;++s)e[s]=n[r+s];return e}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}Wo.prototype.beforeStart_=Wo.prototype.copySampleValue_,Wo.prototype.afterEnd_=Wo.prototype.copySampleValue_;class jo extends Wo{constructor(t,e,n,i){super(t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:U,endingEnd:U}}intervalChanged_(t,e,n){const i=this.parameterPositions;let r=t-2,s=t+1,a=i[r],o=i[s];if(void 0===a)switch(this.getSettings_().endingStart){case F:r=t,a=2*e-n;break;case H:r=i.length-2,a=e+i[r]-i[r+1];break;default:r=t,a=n}if(void 0===o)switch(this.getSettings_().endingEnd){case F:s=t,o=2*n-e;break;case H:s=1,o=n+i[1]-i[0];break;default:s=t-1,o=e}const l=.5*(n-e),c=this.valueSize;this._weightPrev=l/(e-a),this._weightNext=l/(o-n),this._offsetPrev=r*c,this._offsetNext=s*c}interpolate_(t,e,n,i){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=t*a,l=o-a,c=this._offsetPrev,h=this._offsetNext,u=this._weightPrev,d=this._weightNext,p=(n-e)/(i-e),f=p*p,m=f*p,g=-u*m+2*u*f-u*p,v=(1+u)*m+(-1.5-2*u)*f+(-.5+u)*p+1,x=(-1-d)*m+(1.5+d)*f+.5*p,y=d*m-d*f;for(let _=0;_!==a;++_)r[_]=g*s[c+_]+v*s[l+_]+x*s[o+_]+y*s[h+_];return r}}class qo extends Wo{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=t*a,l=o-a,c=(n-e)/(i-e),h=1-c;for(let u=0;u!==a;++u)r[u]=s[l+u]*h+s[o+u]*c;return r}}class Xo extends Wo{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t){return this.copySampleValue_(t-1)}}class Jo{constructor(t,e,n,i){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=ko.convertArray(e,this.TimeBufferType),this.values=ko.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(t){const e=t.constructor;let n;if(e.toJSON!==this.toJSON)n=e.toJSON(t);else{n={name:t.name,times:ko.convertArray(t.times,Array),values:ko.convertArray(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(n.interpolation=e)}return n.type=t.ValueTypeName,n}InterpolantFactoryMethodDiscrete(t){return new Xo(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new qo(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new jo(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let e;switch(t){case z:e=this.InterpolantFactoryMethodDiscrete;break;case O:e=this.InterpolantFactoryMethodLinear;break;case B:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return z;case this.InterpolantFactoryMethodLinear:return O;case this.InterpolantFactoryMethodSmooth:return B}}getValueSize(){return this.values.length/this.times.length}shift(t){if(0!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]+=t}return this}scale(t){if(1!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]*=t}return this}trim(t,e){const n=this.times,i=n.length;let r=0,s=i-1;for(;r!==i&&n[r]<t;)++r;for(;-1!==s&&n[s]>e;)--s;if(++s,0!==r||s!==i){r>=s&&(s=Math.max(s,1),r=s-1);const t=this.getValueSize();this.times=ko.arraySlice(n,r,s),this.values=ko.arraySlice(this.values,r*t,s*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let s=null;for(let a=0;a!==r;a++){const e=n[a];if("number"===typeof e&&isNaN(e)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,e),t=!1;break}if(null!==s&&s>e){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,e,s),t=!1;break}s=e}if(void 0!==i&&ko.isTypedArray(i))for(let a=0,o=i.length;a!==o;++a){const e=i[a];if(isNaN(e)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,e),t=!1;break}}return t}optimize(){const t=ko.arraySlice(this.times),e=ko.arraySlice(this.values),n=this.getValueSize(),i=this.getInterpolation()===B,r=t.length-1;let s=1;for(let a=1;a<r;++a){let r=!1;const o=t[a];if(o!==t[a+1]&&(1!==a||o!==t[0]))if(i)r=!0;else{const t=a*n,i=t-n,s=t+n;for(let a=0;a!==n;++a){const n=e[t+a];if(n!==e[i+a]||n!==e[s+a]){r=!0;break}}}if(r){if(a!==s){t[s]=t[a];const i=a*n,r=s*n;for(let t=0;t!==n;++t)e[r+t]=e[i+t]}++s}}if(r>0){t[s]=t[r];for(let t=r*n,i=s*n,a=0;a!==n;++a)e[i+a]=e[t+a];++s}return s!==t.length?(this.times=ko.arraySlice(t,0,s),this.values=ko.arraySlice(e,0,s*n)):(this.times=t,this.values=e),this}clone(){const t=ko.arraySlice(this.times,0),e=ko.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}Jo.prototype.TimeBufferType=Float32Array,Jo.prototype.ValueBufferType=Float32Array,Jo.prototype.DefaultInterpolation=O;class Yo extends Jo{}Yo.prototype.ValueTypeName="bool",Yo.prototype.ValueBufferType=Array,Yo.prototype.DefaultInterpolation=z,Yo.prototype.InterpolantFactoryMethodLinear=void 0,Yo.prototype.InterpolantFactoryMethodSmooth=void 0;class Zo extends Jo{}Zo.prototype.ValueTypeName="color";class Ko extends Jo{}Ko.prototype.ValueTypeName="number";class Qo extends Wo{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=(n-e)/(i-e);let l=t*a;for(let c=l+a;l!==c;l+=4)St.slerpFlat(r,0,s,l-a,s,l,o);return r}}class $o extends Jo{InterpolantFactoryMethodLinear(t){return new Qo(this.times,this.values,this.getValueSize(),t)}}$o.prototype.ValueTypeName="quaternion",$o.prototype.DefaultInterpolation=O,$o.prototype.InterpolantFactoryMethodSmooth=void 0;class tl extends Jo{}tl.prototype.ValueTypeName="string",tl.prototype.ValueBufferType=Array,tl.prototype.DefaultInterpolation=z,tl.prototype.InterpolantFactoryMethodLinear=void 0,tl.prototype.InterpolantFactoryMethodSmooth=void 0;class el extends Jo{}el.prototype.ValueTypeName="vector";class nl{constructor(t,e=-1,n,i=2500){this.name=t,this.tracks=n,this.duration=e,this.blendMode=i,this.uuid=$(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,i=1/(t.fps||1);for(let s=0,a=n.length;s!==a;++s)e.push(il(n[s]).scale(i));const r=new this(t.name,t.duration,e,t.blendMode);return r.uuid=t.uuid,r}static toJSON(t){const e=[],n=t.tracks,i={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let r=0,s=n.length;r!==s;++r)e.push(Jo.toJSON(n[r]));return i}static CreateFromMorphTargetSequence(t,e,n,i){const r=e.length,s=[];for(let a=0;a<r;a++){let t=[],o=[];t.push((a+r-1)%r,a,(a+1)%r),o.push(0,1,0);const l=ko.getKeyframeOrder(t);t=ko.sortedArray(t,1,l),o=ko.sortedArray(o,1,l),i||0!==t[0]||(t.push(r),o.push(o[0])),s.push(new Ko(".morphTargetInfluences["+e[a].name+"]",t,o).scale(1/n))}return new this(t,-1,s)}static findByName(t,e){let n=t;if(!Array.isArray(t)){const e=t;n=e.geometry&&e.geometry.animations||e.animations}for(let i=0;i<n.length;i++)if(n[i].name===e)return n[i];return null}static CreateClipsFromMorphTargetSequences(t,e,n){const i={},r=/^([\w-]*?)([\d]+)$/;for(let a=0,o=t.length;a<o;a++){const e=t[a],n=e.name.match(r);if(n&&n.length>1){const t=n[1];let r=i[t];r||(i[t]=r=[]),r.push(e)}}const s=[];for(const a in i)s.push(this.CreateFromMorphTargetSequence(a,i[a],e,n));return s}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,i,r){if(0!==n.length){const s=[],a=[];ko.flattenJSON(n,s,a,i),0!==s.length&&r.push(new t(e,s,a))}},i=[],r=t.name||"default",s=t.fps||30,a=t.blendMode;let o=t.length||-1;const l=t.hierarchy||[];for(let c=0;c<l.length;c++){const t=l[c].keys;if(t&&0!==t.length)if(t[0].morphTargets){const e={};let n;for(n=0;n<t.length;n++)if(t[n].morphTargets)for(let i=0;i<t[n].morphTargets.length;i++)e[t[n].morphTargets[i]]=-1;for(const r in e){const e=[],s=[];for(let i=0;i!==t[n].morphTargets.length;++i){const i=t[n];e.push(i.time),s.push(i.morphTarget===r?1:0)}i.push(new Ko(".morphTargetInfluence["+r+"]",e,s))}o=e.length*(s||1)}else{const r=".bones["+e[c].name+"]";n(el,r+".position",t,"pos",i),n($o,r+".quaternion",t,"rot",i),n(el,r+".scale",t,"scl",i)}}if(0===i.length)return null;return new this(r,o,i,a)}resetDuration(){let t=0;for(let e=0,n=this.tracks.length;e!==n;++e){const n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this}trim(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this}validate(){let t=!0;for(let e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t}optimize(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}clone(){const t=[];for(let e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new this.constructor(this.name,this.duration,t,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function il(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Ko;case"vector":case"vector2":case"vector3":case"vector4":return el;case"color":return Zo;case"quaternion":return $o;case"bool":case"boolean":return Yo;case"string":return tl}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){const e=[],n=[];ko.flattenJSON(t.keys,e,n,"value"),t.times=e,t.values=n}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const rl={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class sl{constructor(t,e,n){const i=this;let r,s=!1,a=0,o=0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){o++,!1===s&&void 0!==i.onStart&&i.onStart(t,a,o),s=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,o),a===o&&(s=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return r?r(t):t},this.setURLModifier=function(t){return r=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=l.length;e<n;e+=2){const n=l[e],i=l[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return i}return null}}}const al=new sl;class ol{constructor(t){this.manager=void 0!==t?t:al,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,e){const n=this;return new Promise((function(i,r){n.load(t,i,e,r)}))}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}const ll={};class cl extends ol{constructor(t){super(t)}load(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=rl.get(t);if(void 0!==r)return this.manager.itemStart(t),setTimeout((()=>{e&&e(r),this.manager.itemEnd(t)}),0),r;if(void 0!==ll[t])return void ll[t].push({onLoad:e,onProgress:n,onError:i});ll[t]=[],ll[t].push({onLoad:e,onProgress:n,onError:i});const s=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,o=this.responseType;fetch(s).then((e=>{if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"===typeof ReadableStream||void 0===e.body.getReader)return e;const n=ll[t],i=e.body.getReader(),r=e.headers.get("Content-Length"),s=r?parseInt(r):0,a=0!==s;let o=0;const l=new ReadableStream({start(t){!function e(){i.read().then((({done:i,value:r})=>{if(i)t.close();else{o+=r.byteLength;const i=new ProgressEvent("progress",{lengthComputable:a,loaded:o,total:s});for(let t=0,e=n.length;t<e;t++){const e=n[t];e.onProgress&&e.onProgress(i)}t.enqueue(r),e()}}))}()}});return new Response(l)}throw Error(`fetch for "${e.url}" responded with ${e.status}: ${e.statusText}`)})).then((t=>{switch(o){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then((t=>(new DOMParser).parseFromString(t,a)));case"json":return t.json();default:if(void 0===a)return t.text();{const e=/charset="?([^;"\s]*)"?/i.exec(a),n=e&&e[1]?e[1].toLowerCase():void 0,i=new TextDecoder(n);return t.arrayBuffer().then((t=>i.decode(t)))}}})).then((e=>{rl.add(t,e);const n=ll[t];delete ll[t];for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onLoad&&i.onLoad(e)}})).catch((e=>{const n=ll[t];if(void 0===n)throw this.manager.itemError(t),e;delete ll[t];for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onError&&i.onError(e)}this.manager.itemError(t)})).finally((()=>{this.manager.itemEnd(t)})),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class hl extends ol{constructor(t){super(t)}load(t,e,n,i){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=rl.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout((function(){e&&e(s),r.manager.itemEnd(t)}),0),s;const a=lt("img");function o(){c(),rl.add(t,this),e&&e(this),r.manager.itemEnd(t)}function l(e){c(),i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)}function c(){a.removeEventListener("load",o,!1),a.removeEventListener("error",l,!1)}return a.addEventListener("load",o,!1),a.addEventListener("error",l,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(t),a.src=t,a}}class ul extends ol{constructor(t){super(t)}load(t,e,n,i){const r=new Pn,s=new hl(this.manager);s.setCrossOrigin(this.crossOrigin),s.setPath(this.path);let a=0;function o(n){s.load(t[n],(function(t){r.images[n]=t,a++,6===a&&(r.needsUpdate=!0,e&&e(r))}),void 0,i)}for(let l=0;l<t.length;++l)o(l);return r}}class dl extends ol{constructor(t){super(t)}load(t,e,n,i){const r=new yt,s=new hl(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(t,(function(t){r.image=t,r.needsUpdate=!0,void 0!==e&&e(r)}),n,i),r}}class pl extends Ae{constructor(t,e=1){super(),this.type="Light",this.color=new mt(t),this.intensity=e}dispose(){}copy(t){return super.copy(t),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}pl.prototype.isLight=!0;class fl extends pl{constructor(t,e,n){super(t,n),this.type="HemisphereLight",this.position.copy(Ae.DefaultUp),this.updateMatrix(),this.groundColor=new mt(e)}copy(t){return pl.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}fl.prototype.isHemisphereLight=!0;const ml=new ne,gl=new Tt,vl=new Tt;class xl{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new st(512,512),this.map=null,this.mapPass=null,this.matrix=new ne,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Fn,this._frameExtents=new st(1,1),this._viewportCount=1,this._viewports=[new Mt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;gl.setFromMatrixPosition(t.matrixWorld),e.position.copy(gl),vl.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(vl),e.updateMatrixWorld(),ml.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ml),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(e.projectionMatrix),n.multiply(e.matrixWorldInverse)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class yl extends xl{constructor(){super(new Rn(50,1,.5,500)),this.focus=1}updateMatrices(t){const e=this.camera,n=2*Q*t.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=t.distance||e.far;n===e.fov&&i===e.aspect&&r===e.far||(e.fov=n,e.aspect=i,e.far=r,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}yl.prototype.isSpotLightShadow=!0;class _l extends pl{constructor(t,e,n=0,i=Math.PI/3,r=0,s=1){super(t,e),this.type="SpotLight",this.position.copy(Ae.DefaultUp),this.updateMatrix(),this.target=new Ae,this.distance=n,this.angle=i,this.penumbra=r,this.decay=s,this.shadow=new yl}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}_l.prototype.isSpotLight=!0;const Ml=new ne,bl=new Tt,wl=new Tt;class Sl extends xl{constructor(){super(new Rn(90,1,.5,500)),this._frameExtents=new st(4,2),this._viewportCount=6,this._viewports=[new Mt(2,1,1,1),new Mt(0,1,1,1),new Mt(3,1,1,1),new Mt(1,1,1,1),new Mt(3,0,1,1),new Mt(1,0,1,1)],this._cubeDirections=[new Tt(1,0,0),new Tt(-1,0,0),new Tt(0,0,1),new Tt(0,0,-1),new Tt(0,1,0),new Tt(0,-1,0)],this._cubeUps=[new Tt(0,1,0),new Tt(0,1,0),new Tt(0,1,0),new Tt(0,1,0),new Tt(0,0,1),new Tt(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,i=this.matrix,r=t.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),bl.setFromMatrixPosition(t.matrixWorld),n.position.copy(bl),wl.copy(n.position),wl.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(wl),n.updateMatrixWorld(),i.makeTranslation(-bl.x,-bl.y,-bl.z),Ml.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Ml)}}Sl.prototype.isPointLightShadow=!0;class Tl extends pl{constructor(t,e,n=0,i=1){super(t,e),this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new Sl}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}Tl.prototype.isPointLight=!0;class El extends xl{constructor(){super(new Qn(-5,5,5,-5,.5,500))}}El.prototype.isDirectionalLightShadow=!0;class Al extends pl{constructor(t,e){super(t,e),this.type="DirectionalLight",this.position.copy(Ae.DefaultUp),this.updateMatrix(),this.target=new Ae,this.shadow=new El}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}Al.prototype.isDirectionalLight=!0;class Rl extends pl{constructor(t,e){super(t,e),this.type="AmbientLight"}}Rl.prototype.isAmbientLight=!0;class Ll extends pl{constructor(t,e,n=10,i=10){super(t,e),this.type="RectAreaLight",this.width=n,this.height=i}get power(){return this.intensity*this.width*this.height*Math.PI}set power(t){this.intensity=t/(this.width*this.height*Math.PI)}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}Ll.prototype.isRectAreaLight=!0;class Cl{constructor(){this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new Tt)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const n=t.x,i=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.282095),e.addScaledVector(s[1],.488603*i),e.addScaledVector(s[2],.488603*r),e.addScaledVector(s[3],.488603*n),e.addScaledVector(s[4],n*i*1.092548),e.addScaledVector(s[5],i*r*1.092548),e.addScaledVector(s[6],.315392*(3*r*r-1)),e.addScaledVector(s[7],n*r*1.092548),e.addScaledVector(s[8],.546274*(n*n-i*i)),e}getIrradianceAt(t,e){const n=t.x,i=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.886227),e.addScaledVector(s[1],1.023328*i),e.addScaledVector(s[2],1.023328*r),e.addScaledVector(s[3],1.023328*n),e.addScaledVector(s[4],.858086*n*i),e.addScaledVector(s[5],.858086*i*r),e.addScaledVector(s[6],.743125*r*r-.247708),e.addScaledVector(s[7],.858086*n*r),e.addScaledVector(s[8],.429043*(n*n-i*i)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(t.coefficients[n],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let n=0;n<9;n++)this.coefficients[n].lerp(t.coefficients[n],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(t,e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].fromArray(t,e+3*i);return this}toArray(t=[],e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].toArray(t,e+3*i);return t}static getBasisAt(t,e){const n=t.x,i=t.y,r=t.z;e[0]=.282095,e[1]=.488603*i,e[2]=.488603*r,e[3]=.488603*n,e[4]=1.092548*n*i,e[5]=1.092548*i*r,e[6]=.315392*(3*r*r-1),e[7]=1.092548*n*r,e[8]=.546274*(n*n-i*i)}}Cl.prototype.isSphericalHarmonics3=!0;class Pl extends pl{constructor(t=new Cl,e=1){super(void 0,e),this.sh=t}copy(t){return super.copy(t),this.sh.copy(t.sh),this}fromJSON(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this}toJSON(t){const e=super.toJSON(t);return e.object.sh=this.sh.toArray(),e}}Pl.prototype.isLightProbe=!0;class Dl{static decodeText(t){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(t);let e="";for(let i=0,r=t.length;i<r;i++)e+=String.fromCharCode(t[i]);try{return decodeURIComponent(escape(e))}catch(n){return e}}static extractUrlBase(t){const e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)}static resolveURL(t,e){return"string"!==typeof t||""===t?"":(/^https?:\/\//i.test(e)&&/^\//.test(t)&&(e=e.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(t)||/^data:.*,.*$/i.test(t)||/^blob:.*$/i.test(t)?t:e+t)}}class Il extends en{constructor(){super(),this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(t){return super.copy(t),this.instanceCount=t.instanceCount,this}clone(){return(new this.constructor).copy(this)}toJSON(){const t=super.toJSON(this);return t.instanceCount=this.instanceCount,t.isInstancedBufferGeometry=!0,t}}Il.prototype.isInstancedBufferGeometry=!0;let Nl;(class extends ol{constructor(t){super(t),"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(t){return this.options=t,this}load(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=rl.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout((function(){e&&e(s),r.manager.itemEnd(t)}),0),s;const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",a.headers=this.requestHeader,fetch(t,a).then((function(t){return t.blob()})).then((function(t){return createImageBitmap(t,Object.assign(r.options,{colorSpaceConversion:"none"}))})).then((function(n){rl.add(t,n),e&&e(n),r.manager.itemEnd(t)})).catch((function(e){i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)})),r.manager.itemStart(t)}}).prototype.isImageBitmapLoader=!0;const zl=function(){return void 0===Nl&&(Nl=new(window.AudioContext||window.webkitAudioContext)),Nl};class Ol extends ol{constructor(t){super(t)}load(t,e,n,i){const r=this,s=new cl(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,(function(n){try{const t=n.slice(0);zl().decodeAudioData(t,(function(t){e(t)}))}catch(s){i?i(s):console.error(s),r.manager.itemError(t)}}),n,i)}}(class extends Pl{constructor(t,e,n=1){super(void 0,n);const i=(new mt).set(t),r=(new mt).set(e),s=new Tt(i.r,i.g,i.b),a=new Tt(r.r,r.g,r.b),o=Math.sqrt(Math.PI),l=o*Math.sqrt(.75);this.sh.coefficients[0].copy(s).add(a).multiplyScalar(o),this.sh.coefficients[1].copy(s).sub(a).multiplyScalar(l)}}).prototype.isHemisphereLightProbe=!0;(class extends Pl{constructor(t,e=1){super(void 0,e);const n=(new mt).set(t);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}).prototype.isAmbientLightProbe=!0;class Bl{constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Ul(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Ul();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function Ul(){return("undefined"===typeof performance?Date:performance).now()}class Fl extends Ae{constructor(t){super(),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this}setMediaElementSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this}setMediaStreamSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(t),this.connect(),this}setBuffer(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this}play(t=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+t;const e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.onended=this.onEnded.bind(this),e.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=e,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}getFilters(){return this.filters}setFilters(t){return t||(t=[]),!0===this._connected?(this.disconnect(),this.filters=t.slice(),this.connect()):this.filters=t.slice(),this}setDetune(t){if(this.detune=t,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(t){return this.setFilters(t?[t]:[])}setPlaybackRate(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}setLoopStart(t){return this.loopStart=t,this}setLoopEnd(t){return this.loopEnd=t,this}getVolume(){return this.gain.gain.value}setVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}class Hl{constructor(t,e,n){let i,r,s;switch(this.binding=t,this.valueSize=n,e){case"quaternion":i=this._slerp,r=this._slerpAdditive,s=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":i=this._select,r=this._select,s=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:i=this._lerp,r=this._lerpAdditive,s=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=i,this._mixBufferRegionAdditive=r,this._setIdentity=s,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(t,e){const n=this.buffer,i=this.valueSize,r=t*i+i;let s=this.cumulativeWeight;if(0===s){for(let t=0;t!==i;++t)n[r+t]=n[t];s=e}else{s+=e;const t=e/s;this._mixBufferRegion(n,r,0,t,i)}this.cumulativeWeight=s}accumulateAdditive(t){const e=this.buffer,n=this.valueSize,i=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(e,i,0,t,n),this.cumulativeWeightAdditive+=t}apply(t){const e=this.valueSize,n=this.buffer,i=t*e+e,r=this.cumulativeWeight,s=this.cumulativeWeightAdditive,a=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,r<1){const t=e*this._origIndex;this._mixBufferRegion(n,i,t,1-r,e)}s>0&&this._mixBufferRegionAdditive(n,i,this._addIndex*e,1,e);for(let o=e,l=e+e;o!==l;++o)if(n[o]!==n[o+e]){a.setValue(n,i);break}}saveOriginalState(){const t=this.binding,e=this.buffer,n=this.valueSize,i=n*this._origIndex;t.getValue(e,i);for(let r=n,s=i;r!==s;++r)e[r]=e[i+r%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)}_setAdditiveIdentityNumeric(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let n=t;n<e;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const t=this._origIndex*this.valueSize,e=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[e+n]=this.buffer[t+n]}_select(t,e,n,i,r){if(i>=.5)for(let s=0;s!==r;++s)t[e+s]=t[n+s]}_slerp(t,e,n,i){St.slerpFlat(t,e,t,e,t,n,i)}_slerpAdditive(t,e,n,i,r){const s=this._workIndex*r;St.multiplyQuaternionsFlat(t,s,t,e,t,n),St.slerpFlat(t,e,t,e,t,s,i)}_lerp(t,e,n,i,r){const s=1-i;for(let a=0;a!==r;++a){const r=e+a;t[r]=t[r]*s+t[n+a]*i}}_lerpAdditive(t,e,n,i,r){for(let s=0;s!==r;++s){const r=e+s;t[r]=t[r]+t[n+s]*i}}}const Gl="\\[\\]\\.:\\/",Vl=new RegExp("[\\[\\]\\.:\\/]","g"),kl="[^\\[\\]\\.:\\/]",Wl="[^"+Gl.replace("\\.","")+"]",jl=/((?:WC+[\/:])*)/.source.replace("WC",kl),ql=/(WCOD+)?/.source.replace("WCOD",Wl),Xl=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",kl),Jl=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",kl),Yl=new RegExp("^"+jl+ql+Xl+Jl+"$"),Zl=["material","materials","bones"];class Kl{constructor(t,e,n){this.path=e,this.parsedPath=n||Kl.parseTrackName(e),this.node=Kl.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,n){return t&&t.isAnimationObjectGroup?new Kl.Composite(t,e,n):new Kl(t,e,n)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(Vl,"")}static parseTrackName(t){const e=Yl.exec(t);if(!e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){const t=n.nodeName.substring(i+1);-1!==Zl.indexOf(t)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=t)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}static findNode(t,e){if(!e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){const n=function(t){for(let i=0;i<t.length;i++){const r=t[i];if(r.name===e||r.uuid===e)return r;const s=n(r.children);if(s)return s}return null},i=n(t.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,e){t[e]=this.targetObject[this.propertyName]}_getValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)t[e++]=n[i]}_getValue_arrayElement(t,e){t[e]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,e){this.resolvedProperty.toArray(t,e)}_setValue_direct(t,e){this.targetObject[this.propertyName]=t[e]}_setValue_direct_setNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++]}_setValue_array_setNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,e){this.resolvedProperty[this.propertyIndex]=t[e]}_setValue_arrayElement_setNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,e){this.resolvedProperty.fromArray(t,e)}_setValue_fromArray_setNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,e){this.bind(),this.getValue(t,e)}_setValue_unbound(t,e){this.bind(),this.setValue(t,e)}bind(){let t=this.node;const e=this.parsedPath,n=e.objectName,i=e.propertyName;let r=e.propertyIndex;if(t||(t=Kl.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let i=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===i){i=e;break}break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==i){if(void 0===t[i])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[i]}}const s=t[i];if(void 0===s){const n=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+i+" but it wasn't found.",t)}let a=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let o=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[r]&&(r=t.morphTargetDictionary[r])}o=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=r}else void 0!==s.fromArray&&void 0!==s.toArray?(o=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(o=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=i;this.getValue=this.GetterByBindingType[o],this.setValue=this.SetterByBindingTypeAndVersioning[o][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}Kl.Composite=class{constructor(t,e,n){const i=n||Kl.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,i)}getValue(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(t,e)}setValue(t,e){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(t,e)}bind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()}unbind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}},Kl.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Kl.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},Kl.prototype.GetterByBindingType=[Kl.prototype._getValue_direct,Kl.prototype._getValue_array,Kl.prototype._getValue_arrayElement,Kl.prototype._getValue_toArray],Kl.prototype.SetterByBindingTypeAndVersioning=[[Kl.prototype._setValue_direct,Kl.prototype._setValue_direct_setNeedsUpdate,Kl.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Kl.prototype._setValue_array,Kl.prototype._setValue_array_setNeedsUpdate,Kl.prototype._setValue_array_setMatrixWorldNeedsUpdate],[Kl.prototype._setValue_arrayElement,Kl.prototype._setValue_arrayElement_setNeedsUpdate,Kl.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Kl.prototype._setValue_fromArray,Kl.prototype._setValue_fromArray_setNeedsUpdate,Kl.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class Ql{constructor(t,e,n=null,i=e.blendMode){this._mixer=t,this._clip=e,this._localRoot=n,this.blendMode=i;const r=e.tracks,s=r.length,a=new Array(s),o={endingStart:U,endingEnd:U};for(let l=0;l!==s;++l){const t=r[l].createInterpolant(null);a[l]=t,t.settings=o}this._interpolantSettings=o,this._interpolants=a,this._propertyBindings=new Array(s),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(t){return this._startTime=t,this}setLoop(t,e){return this.loop=t,this.repetitions=e,this}setEffectiveWeight(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(t){return this._scheduleFading(t,0,1)}fadeOut(t){return this._scheduleFading(t,1,0)}crossFadeFrom(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){const n=this._clip.duration,i=t._clip.duration,r=i/n,s=n/i;t.warp(1,r,e),this.warp(s,1,e)}return this}crossFadeTo(t,e,n){return t.crossFadeFrom(this,e,n)}stopFading(){const t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}setEffectiveTimeScale(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(t){return this.timeScale=this._clip.duration/t,this.stopWarping()}syncWith(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()}halt(t){return this.warp(this._effectiveTimeScale,0,t)}warp(t,e,n){const i=this._mixer,r=i.time,s=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const o=a.parameterPositions,l=a.sampleValues;return o[0]=r,o[1]=r+n,l[0]=t/s,l[1]=e/s,this}stopWarping(){const t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(t,e,n,i){if(!this.enabled)return void this._updateWeight(t);const r=this._startTime;if(null!==r){const i=(t-r)*n;if(i<0||0===n)return;this._startTime=null,e=n*i}e*=this._updateTimeScale(t);const s=this._updateTime(e),a=this._updateWeight(t);if(a>0){const t=this._interpolants,e=this._propertyBindings;switch(this.blendMode){case 2501:for(let n=0,i=t.length;n!==i;++n)t[n].evaluate(s),e[n].accumulateAdditive(a);break;case G:default:for(let n=0,r=t.length;n!==r;++n)t[n].evaluate(s),e[n].accumulate(i,a)}}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const n=this._weightInterpolant;if(null!==n){const i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,n=this.loop;let i=this.time+t,r=this._loopCount;const s=2202===n;if(0===t)return-1===r?i:s&&1===(1&r)?e-i:i;if(2200===n){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(i>=e)i=e;else{if(!(i<0)){this.time=i;break t}i=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,s)):this._setEndings(0===this.repetitions,!0,s)),i>=e||i<0){const n=Math.floor(i/e);i-=e*n,r+=Math.abs(n);const a=this.repetitions-r;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=t>0?e:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===a){const e=t<0;this._setEndings(e,!e,s)}else this._setEndings(!1,!1,s);this._loopCount=r,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=i;if(s&&1===(1&r))return e-i}return i}_setEndings(t,e,n){const i=this._interpolantSettings;n?(i.endingStart=F,i.endingEnd=F):(i.endingStart=t?this.zeroSlopeAtStart?F:U:H,i.endingEnd=e?this.zeroSlopeAtEnd?F:U:H)}_scheduleFading(t,e,n){const i=this._mixer,r=i.time;let s=this._weightInterpolant;null===s&&(s=i._lendControlInterpolant(),this._weightInterpolant=s);const a=s.parameterPositions,o=s.sampleValues;return a[0]=r,o[0]=e,a[1]=r+t,o[1]=n,this}}(class extends Y{constructor(t){super(),this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(t,e){const n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,s=t._propertyBindings,a=t._interpolants,o=n.uuid,l=this._bindingsByRootAndName;let c=l[o];void 0===c&&(c={},l[o]=c);for(let h=0;h!==r;++h){const t=i[h],r=t.name;let l=c[r];if(void 0!==l)++l.referenceCount,s[h]=l;else{if(l=s[h],void 0!==l){null===l._cacheIndex&&(++l.referenceCount,this._addInactiveBinding(l,o,r));continue}const i=e&&e._propertyBindings[h].binding.parsedPath;l=new Hl(Kl.create(n,r,i),t.ValueTypeName,t.getValueSize()),++l.referenceCount,this._addInactiveBinding(l,o,r),s[h]=l}a[h].resultBuffer=l.buffer}}_activateAction(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){const e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0===n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(t)}}_deactivateAction(t){if(this._isActiveAction(t)){const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0===--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(t)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}}_isActiveAction(t){const e=t._cacheIndex;return null!==e&&e<this._nActiveActions}_addInactiveAction(t,e,n){const i=this._actions,r=this._actionsByClip;let s=r[e];if(void 0===s)s={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=s;else{const e=s.knownActions;t._byClipCacheIndex=e.length,e.push(t)}t._cacheIndex=i.length,i.push(t),s.actionByRoot[n]=t}_removeInactiveAction(t){const e=this._actions,n=e[e.length-1],i=t._cacheIndex;n._cacheIndex=i,e[i]=n,e.pop(),t._cacheIndex=null;const r=t._clip.uuid,s=this._actionsByClip,a=s[r],o=a.knownActions,l=o[o.length-1],c=t._byClipCacheIndex;l._byClipCacheIndex=c,o[c]=l,o.pop(),t._byClipCacheIndex=null;delete a.actionByRoot[(t._localRoot||this._root).uuid],0===o.length&&delete s[r],this._removeInactiveBindingsForAction(t)}_removeInactiveBindingsForAction(t){const e=t._propertyBindings;for(let n=0,i=e.length;n!==i;++n){const t=e[n];0===--t.referenceCount&&this._removeInactiveBinding(t)}}_lendAction(t){const e=this._actions,n=t._cacheIndex,i=this._nActiveActions++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_takeBackAction(t){const e=this._actions,n=t._cacheIndex,i=--this._nActiveActions,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_addInactiveBinding(t,e,n){const i=this._bindingsByRootAndName,r=this._bindings;let s=i[e];void 0===s&&(s={},i[e]=s),s[n]=t,t._cacheIndex=r.length,r.push(t)}_removeInactiveBinding(t){const e=this._bindings,n=t.binding,i=n.rootNode.uuid,r=n.path,s=this._bindingsByRootAndName,a=s[i],o=e[e.length-1],l=t._cacheIndex;o._cacheIndex=l,e[l]=o,e.pop(),delete a[r],0===Object.keys(a).length&&delete s[i]}_lendBinding(t){const e=this._bindings,n=t._cacheIndex,i=this._nActiveBindings++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_takeBackBinding(t){const e=this._bindings,n=t._cacheIndex,i=--this._nActiveBindings,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_lendControlInterpolant(){const t=this._controlInterpolants,e=this._nActiveControlInterpolants++;let n=t[e];return void 0===n&&(n=new qo(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=e,t[e]=n),n}_takeBackControlInterpolant(t){const e=this._controlInterpolants,n=t.__cacheIndex,i=--this._nActiveControlInterpolants,r=e[i];t.__cacheIndex=i,e[i]=t,r.__cacheIndex=n,e[n]=r}clipAction(t,e,n){const i=e||this._root,r=i.uuid;let s="string"===typeof t?nl.findByName(i,t):t;const a=null!==s?s.uuid:t,o=this._actionsByClip[a];let l=null;if(void 0===n&&(n=null!==s?s.blendMode:G),void 0!==o){const t=o.actionByRoot[r];if(void 0!==t&&t.blendMode===n)return t;l=o.knownActions[0],null===s&&(s=l._clip)}if(null===s)return null;const c=new Ql(this,s,e,n);return this._bindAction(c,l),this._addInactiveAction(c,a,r),c}existingAction(t,e){const n=e||this._root,i=n.uuid,r="string"===typeof t?nl.findByName(n,t):t,s=r?r.uuid:t,a=this._actionsByClip[s];return void 0!==a&&a.actionByRoot[i]||null}stopAllAction(){const t=this._actions;for(let e=this._nActiveActions-1;e>=0;--e)t[e].stop();return this}update(t){t*=this.timeScale;const e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),s=this._accuIndex^=1;for(let l=0;l!==n;++l){e[l]._update(i,t,r,s)}const a=this._bindings,o=this._nActiveBindings;for(let l=0;l!==o;++l)a[l].apply(s);return this}setTime(t){this.time=0;for(let e=0;e<this._actions.length;e++)this._actions[e].time=0;return this.update(t)}getRoot(){return this._root}uncacheClip(t){const e=this._actions,n=t.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){const t=r.knownActions;for(let n=0,i=t.length;n!==i;++n){const i=t[n];this._deactivateAction(i);const r=i._cacheIndex,s=e[e.length-1];i._cacheIndex=null,i._byClipCacheIndex=null,s._cacheIndex=r,e[r]=s,e.pop(),this._removeInactiveBindingsForAction(i)}delete i[n]}}uncacheRoot(t){const e=t.uuid,n=this._actionsByClip;for(const r in n){const t=n[r].actionByRoot[e];void 0!==t&&(this._deactivateAction(t),this._removeInactiveAction(t))}const i=this._bindingsByRootAndName[e];if(void 0!==i)for(const r in i){const t=i[r];t.restoreOriginalState(),this._removeInactiveBinding(t)}}uncacheAction(t,e){const n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}).prototype._controlInterpolantsResultBuffer=new Float32Array(1);class $l{constructor(t){"string"===typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}clone(){return new $l(void 0===this.value.clone?this.value:this.value.clone())}}(class extends Ds{constructor(t,e,n=1){super(t,e),this.meshPerAttribute=n}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}clone(t){const e=super.clone(t);return e.meshPerAttribute=this.meshPerAttribute,e}toJSON(t){const e=super.toJSON(t);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}}).prototype.isInstancedInterleavedBuffer=!0;class tc{constructor(t,e,n=0,i=1/0){this.ray=new ee(t,e),this.near=n,this.far=i,this.camera=null,this.layers=new pe,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(t,e){this.ray.set(t,e)}setFromCamera(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)}intersectObject(t,e=!0,n=[]){return nc(t,this,n,e),n.sort(ec),n}intersectObjects(t,e=!0,n=[]){for(let i=0,r=t.length;i<r;i++)nc(t[i],this,n,e);return n.sort(ec),n}}function ec(t,e){return t.distance-e.distance}function nc(t,e,n,i){if(t.layers.test(e.layers)&&t.raycast(e,n),!0===i){const i=t.children;for(let t=0,r=i.length;t<r;t++)nc(i[t],e,n,!0)}}class ic{constructor(t=1,e=0,n=0){return this.radius=t,this.phi=e,this.theta=n,this}set(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this}makeSafe(){const t=1e-6;return this.phi=Math.max(t,Math.min(Math.PI-t,this.phi)),this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+e*e+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,n),this.phi=Math.acos(tt(e/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}const rc=new st;class sc{constructor(t=new st(1/0,1/0),e=new st(-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=rc.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(t){return this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return rc.copy(t).clamp(this.min,this.max).sub(t).length()}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}sc.prototype.isBox2=!0;const ac=new Tt,oc=new ne,lc=new ne;function cc(t){const e=[];t&&t.isBone&&e.push(t);for(let n=0;n<t.children.length;n++)e.push.apply(e,cc(t.children[n]));return e}const hc=new Float32Array(1);new Int32Array(hc.buffer);Da.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Da.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Qa.prototype.fromPoints=function(t){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)},class extends _a{constructor(t=10,e=10,n=4473924,i=8947848){n=new mt(n),i=new mt(i);const r=e/2,s=t/e,a=t/2,o=[],l=[];for(let h=0,u=0,d=-a;h<=e;h++,d+=s){o.push(-a,0,d,a,0,d),o.push(d,0,-a,d,0,a);const t=h===r?n:i;t.toArray(l,u),u+=3,t.toArray(l,u),u+=3,t.toArray(l,u),u+=3,t.toArray(l,u),u+=3}const c=new en;c.setAttribute("position",new Xe(o,3)),c.setAttribute("color",new Xe(l,3));super(c,new ua({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}}.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},class extends _a{constructor(t){const e=cc(t),n=new en,i=[],r=[],s=new mt(0,0,1),a=new mt(0,1,0);for(let o=0;o<e.length;o++){const t=e[o];t.parent&&t.parent.isBone&&(i.push(0,0,0),i.push(0,0,0),r.push(s.r,s.g,s.b),r.push(a.r,a.g,a.b))}n.setAttribute("position",new Xe(i,3)),n.setAttribute("color",new Xe(r,3));super(n,new ua({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(t){const e=this.bones,n=this.geometry,i=n.getAttribute("position");lc.copy(this.root.matrixWorld).invert();for(let r=0,s=0;r<e.length;r++){const t=e[r];t.parent&&t.parent.isBone&&(oc.multiplyMatrices(lc,t.matrixWorld),ac.setFromMatrixPosition(oc),i.setXYZ(s,ac.x,ac.y,ac.z),oc.multiplyMatrices(lc,t.parent.matrixWorld),ac.setFromMatrixPosition(oc),i.setXYZ(s+1,ac.x,ac.y,ac.z),s+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(t)}}.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},ol.prototype.extractUrlBase=function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Dl.extractUrlBase(t)},ol.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},sc.prototype.center=function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},sc.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},sc.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},sc.prototype.size=function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)},Rt.prototype.center=function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Rt.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Rt.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Rt.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},Rt.prototype.size=function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)},Xt.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Fn.prototype.setFromMatrix=function(t){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(t)},at.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},at.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},at.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},at.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},at.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},at.prototype.getInverse=function(t){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},ne.prototype.extractPosition=function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},ne.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},ne.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new Tt).setFromMatrixColumn(this,3)},ne.prototype.setRotationFromQuaternion=function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},ne.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},ne.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},ne.prototype.multiplyVector4=function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},ne.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},ne.prototype.rotateAxis=function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},ne.prototype.crossVector=function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},ne.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},ne.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},ne.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},ne.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},ne.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},ne.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},ne.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},ne.prototype.makeFrustum=function(t,e,n,i,r,s){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,i,n,r,s)},ne.prototype.getInverse=function(t){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},On.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},St.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},St.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},ee.prototype.isIntersectionBox=function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},ee.prototype.isIntersectionPlane=function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},ee.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},Ue.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},Ue.prototype.barycoordFromPoint=function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},Ue.prototype.midpoint=function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},Ue.prototypenormal=function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},Ue.prototype.plane=function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)},Ue.barycoordFromPoint=function(t,e,n,i,r){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Ue.getBarycoord(t,e,n,i,r)},Ue.normal=function(t,e,n,i){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Ue.getNormal(t,e,n,i)},$a.prototype.extractAllPoints=function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},$a.prototype.extrude=function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Lo(this,t)},$a.prototype.makeGeometry=function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Po(this,t)},st.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},st.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},st.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Tt.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},Tt.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},Tt.prototype.getPositionFromMatrix=function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},Tt.prototype.getScaleFromMatrix=function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},Tt.prototype.getColumnFromMatrix=function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},Tt.prototype.applyProjection=function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},Tt.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},Tt.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},Tt.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Mt.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},Mt.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Ae.prototype.getChildByName=function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},Ae.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},Ae.prototype.translate=function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},Ae.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},Ae.prototype.applyMatrix=function(t){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(Ae.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),_n.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(_n.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),0},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),na.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Rn.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(pl.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(We.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===q},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(q)}}}),We.prototype.setDynamic=function(t){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?q:j),this},We.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},We.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},en.prototype.addIndex=function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},en.prototype.addAttribute=function(t,e){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):this.setAttribute(t,e):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(t,new We(arguments[1],arguments[2])))},en.prototype.addDrawCall=function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},en.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},en.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},en.prototype.removeAttribute=function(t){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(t)},en.prototype.applyMatrix=function(t){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(en.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Ds.prototype.setDynamic=function(t){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?q:j),this},Ds.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Lo.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Lo.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Lo.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Ps.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},$l.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(He.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new mt}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===t}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(t){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=t}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}}),Object.defineProperties(En.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Rs.prototype.clearTarget=function(t,e,n,i){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,n,i)},Rs.prototype.animate=function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},Rs.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Rs.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Rs.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Rs.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Rs.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Rs.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Rs.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Rs.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Rs.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Rs.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Rs.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Rs.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Rs.prototype.enableScissorTest=function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},Rs.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Rs.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Rs.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Rs.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Rs.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Rs.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Rs.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Rs.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Rs.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Rs.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Rs.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(t){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===t?k:V}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}},gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}}),Object.defineProperties(vs.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(bt.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Fl.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const e=this;return(new Ol).load(t,(function(t){e.setBuffer(t)})),this},Cn.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},Cn.prototype.clear=function(t,e,n,i){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(t,e,n,i)},vt.crossOrigin=void 0,vt.loadTexture=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const r=new dl;r.setCrossOrigin(this.crossOrigin);const s=r.load(t,n,void 0,i);return e&&(s.mapping=e),s},vt.loadTextureCube=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const r=new ul;r.setCrossOrigin(this.crossOrigin);const s=r.load(t,n,void 0,i);return e&&(s.mapping=e),s},vt.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},vt.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:i}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=i)}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/fb7d5399-b53d39280eb7028fd5fb.js b/out/_next/static/chunks/fb7d5399-b53d39280eb7028fd5fb.js
deleted file mode 100644
index 8d4d736..0000000
--- a/out/_next/static/chunks/fb7d5399-b53d39280eb7028fd5fb.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[737],{2212:function(t,e,n){n.d(e,{Mig:function(){return Jo},_Li:function(){return s},ZzF:function(){return mt},TlE:function(){return Be},u9r:function(){return Je},SUY:function(){return ll},Ilk:function(){return Ne},_3:function(){return Zs},yj7:function(){return ha},m_w:function(){return Js},Ox3:function(){return Yo},pBf:function(){return W},a$l:function(){return He},ZAu:function(){return kr},x12:function(){return Os},nls:function(){return Cs},wem:function(){return v},RsA:function(){return i},yGw:function(){return Vt},Kj0:function(){return mn},vBJ:function(){return Ie},YBo:function(){return no},iKG:function(){return qo},cPb:function(){return bn},JOQ:function(){return Cn},mXe:function(){return pa},_fP:function(){return ht},wk1:function(){return E},iMs:function(){return Tl},xsS:function(){return Qr},jyz:function(){return _n},Aip:function(){return Xa},xo$:function(){return Xa},$V:function(){return Al},jyi:function(){return fs},xeV:function(){return es},QmN:function(){return r},xEZ:function(){return st},dpR:function(){return Ro},Lcc:function(){return Ya},rDY:function(){return yn},FM8:function(){return tt},Pa4:function(){return ut},dd2:function(){return lt},CP7:function(){return Yr}});const i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},r={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},s=1,a=100,o=301,l=302,c=306,h=307,u=1e3,d=1001,p=1002,m=1003,f=1004,g=1005,v=1006,x=1008,y=1009,_=1012,M=1014,b=1015,w=1016,S=1020,T=1022,E=1023,L=1026,A=1027,R=2300,C=2301,P=2302,D=2400,N=2401,I=2402,z=2500,O=3e3,B=3001,F=3007,U=3002,H=7680,G=35044,V=35048,k="300 es";class W{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,i=n.length;e<i;e++)n[e].call(this,t);t.target=null}}}const j=[];for(let kl=0;kl<256;kl++)j[kl]=(kl<16?"0":"")+kl.toString(16);const q=Math.PI/180,X=180/Math.PI;function Y(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(j[255&t]+j[t>>8&255]+j[t>>16&255]+j[t>>24&255]+"-"+j[255&e]+j[e>>8&255]+"-"+j[e>>16&15|64]+j[e>>24&255]+"-"+j[63&n|128]+j[n>>8&255]+"-"+j[n>>16&255]+j[n>>24&255]+j[255&i]+j[i>>8&255]+j[i>>16&255]+j[i>>24&255]).toUpperCase()}function J(t,e,n){return Math.max(e,Math.min(n,t))}function Z(t,e){return(t%e+e)%e}function Q(t,e,n){return(1-n)*t+n*e}function K(t){return 0===(t&t-1)&&0!==t}function $(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}class tt{constructor(t=0,e=0){this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,s=this.y-t.y;return this.x=r*n-s*i+t.x,this.y=r*i+s*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}}tt.prototype.isVector2=!0;class et{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,i,r,s,a,o,l){const c=this.elements;return c[0]=t,c[1]=i,c[2]=a,c[3]=e,c[4]=r,c[5]=o,c[6]=n,c[7]=s,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,s=n[0],a=n[3],o=n[6],l=n[1],c=n[4],h=n[7],u=n[2],d=n[5],p=n[8],m=i[0],f=i[3],g=i[6],v=i[1],x=i[4],y=i[7],_=i[2],M=i[5],b=i[8];return r[0]=s*m+a*v+o*_,r[3]=s*f+a*x+o*M,r[6]=s*g+a*y+o*b,r[1]=l*m+c*v+h*_,r[4]=l*f+c*x+h*M,r[7]=l*g+c*y+h*b,r[2]=u*m+d*v+p*_,r[5]=u*f+d*x+p*M,r[8]=u*g+d*y+p*b,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8];return e*s*c-e*a*l-n*r*c+n*a*o+i*r*l-i*s*o}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=c*s-a*l,u=a*o-c*r,d=l*r-s*o,p=e*h+n*u+i*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const m=1/p;return t[0]=h*m,t[1]=(i*l-c*n)*m,t[2]=(a*n-i*s)*m,t[3]=u*m,t[4]=(c*e-i*o)*m,t[5]=(i*r-a*e)*m,t[6]=d*m,t[7]=(n*o-l*e)*m,t[8]=(s*e-n*r)*m,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,i,r,s,a){const o=Math.cos(r),l=Math.sin(r);return this.set(n*o,n*l,-n*(o*s+l*a)+s+t,-i*l,i*o,-i*(-l*s+o*a)+a+e,0,0,1),this}scale(t,e){const n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this}rotate(t){const e=Math.cos(t),n=Math.sin(t),i=this.elements,r=i[0],s=i[3],a=i[6],o=i[1],l=i[4],c=i[7];return i[0]=e*r+n*o,i[3]=e*s+n*l,i[6]=e*a+n*c,i[1]=-n*r+e*o,i[4]=-n*s+e*l,i[7]=-n*a+e*c,this}translate(t,e){const n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this}equals(t){const e=this.elements,n=t.elements;for(let i=0;i<9;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}let nt;et.prototype.isMatrix3=!0;class it{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===nt&&(nt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),nt.width=t.width,nt.height=t.height;const n=nt.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=nt}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}}let rt=0;class st extends W{constructor(t=st.DEFAULT_IMAGE,e=st.DEFAULT_MAPPING,n=1001,i=1001,r=v,s=1008,a=E,o=1009,l=1,c=3e3){super(),Object.defineProperty(this,"id",{value:rt++}),this.uuid=Y(),this.name="",this.image=t,this.mipmaps=[],this.mapping=e,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=s,this.anisotropy=l,this.format=a,this.internalFormat=null,this.type=o,this.offset=new tt(0,0),this.repeat=new tt(1,1),this.center=new tt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new et,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=c,this.version=0,this.onUpdate=null}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this}toJSON(t){const e=void 0===t||"string"===typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){const i=this.image;if(void 0===i.uuid&&(i.uuid=Y()),!e&&void 0===t.images[i.uuid]){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(at(i[t].image)):e.push(at(i[t]))}else e=at(i);t.images[i.uuid]={uuid:i.uuid,url:e}}n.image=i.uuid}return e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case u:t.x=t.x-Math.floor(t.x);break;case d:t.x=t.x<0?0:1;break;case p:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case u:t.y=t.y-Math.floor(t.y);break;case d:t.y=t.y<0?0:1;break;case p:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&this.version++}}function at(t){return"undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap?it.getDataURL(t):t.data?{data:Array.prototype.slice.call(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}st.DEFAULT_IMAGE=void 0,st.DEFAULT_MAPPING=300,st.prototype.isTexture=!0;class ot{constructor(t=0,e=0,n=0,i=1){this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=this.w,s=t.elements;return this.x=s[0]*e+s[4]*n+s[8]*i+s[12]*r,this.y=s[1]*e+s[5]*n+s[9]*i+s[13]*r,this.z=s[2]*e+s[6]*n+s[10]*i+s[14]*r,this.w=s[3]*e+s[7]*n+s[11]*i+s[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,i,r;const s=.01,a=.1,o=t.elements,l=o[0],c=o[4],h=o[8],u=o[1],d=o[5],p=o[9],m=o[2],f=o[6],g=o[10];if(Math.abs(c-u)<s&&Math.abs(h-m)<s&&Math.abs(p-f)<s){if(Math.abs(c+u)<a&&Math.abs(h+m)<a&&Math.abs(p+f)<a&&Math.abs(l+d+g-3)<a)return this.set(1,0,0,0),this;e=Math.PI;const t=(l+1)/2,o=(d+1)/2,v=(g+1)/2,x=(c+u)/4,y=(h+m)/4,_=(p+f)/4;return t>o&&t>v?t<s?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(t),i=x/n,r=y/n):o>v?o<s?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(o),n=x/i,r=_/i):v<s?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=y/r,i=_/r),this.set(n,i,r,e),this}let v=Math.sqrt((f-p)*(f-p)+(h-m)*(h-m)+(u-c)*(u-c));return Math.abs(v)<.001&&(v=1),this.x=(f-p)/v,this.y=(h-m)/v,this.z=(u-c)/v,this.w=Math.acos((l+d+g-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}}ot.prototype.isVector4=!0;class lt extends W{constructor(t,e,n={}){super(),this.width=t,this.height=e,this.depth=1,this.scissor=new ot(0,0,t,e),this.scissorTest=!1,this.viewport=new ot(0,0,t,e),this.texture=new st(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={width:t,height:e,depth:1},this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:v,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}setTexture(t){t.image={width:this.width,height:this.height,depth:this.depth},this.texture=t}setSize(t,e,n=1){this.width===t&&this.height===e&&this.depth===n||(this.width=t,this.height=e,this.depth=n,this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return(new this.constructor).copy(this)}copy(t){return this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.texture.image={...this.texture.image},this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this}dispose(){this.dispatchEvent({type:"dispose"})}}lt.prototype.isWebGLRenderTarget=!0;(class extends lt{constructor(t,e,n){super(t,e);const i=this.texture;this.texture=[];for(let r=0;r<n;r++)this.texture[r]=i.clone()}setSize(t,e,n=1){if(this.width!==t||this.height!==e||this.depth!==n){this.width=t,this.height=e,this.depth=n;for(let i=0,r=this.texture.length;i<r;i++)this.texture[i].image.width=t,this.texture[i].image.height=e,this.texture[i].image.depth=n;this.dispose()}return this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e),this}copy(t){this.dispose(),this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.set(0,0,this.width,this.height),this.scissor.set(0,0,this.width,this.height),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this.texture.length=0;for(let e=0,n=t.texture.length;e<n;e++)this.texture[e]=t.texture[e].clone();return this}}).prototype.isWebGLMultipleRenderTargets=!0;class ct extends lt{constructor(t,e,n){super(t,e,n),this.samples=4}copy(t){return super.copy.call(this,t),this.samples=t.samples,this}}ct.prototype.isWebGLMultisampleRenderTarget=!0;class ht{constructor(t=0,e=0,n=0,i=1){this._x=t,this._y=e,this._z=n,this._w=i}static slerp(t,e,n,i){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(t,e,i)}static slerpFlat(t,e,n,i,r,s,a){let o=n[i+0],l=n[i+1],c=n[i+2],h=n[i+3];const u=r[s+0],d=r[s+1],p=r[s+2],m=r[s+3];if(0===a)return t[e+0]=o,t[e+1]=l,t[e+2]=c,void(t[e+3]=h);if(1===a)return t[e+0]=u,t[e+1]=d,t[e+2]=p,void(t[e+3]=m);if(h!==m||o!==u||l!==d||c!==p){let t=1-a;const e=o*u+l*d+c*p+h*m,n=e>=0?1:-1,i=1-e*e;if(i>Number.EPSILON){const r=Math.sqrt(i),s=Math.atan2(r,e*n);t=Math.sin(t*s)/r,a=Math.sin(a*s)/r}const r=a*n;if(o=o*t+u*r,l=l*t+d*r,c=c*t+p*r,h=h*t+m*r,t===1-a){const t=1/Math.sqrt(o*o+l*l+c*c+h*h);o*=t,l*=t,c*=t,h*=t}}t[e]=o,t[e+1]=l,t[e+2]=c,t[e+3]=h}static multiplyQuaternionsFlat(t,e,n,i,r,s){const a=n[i],o=n[i+1],l=n[i+2],c=n[i+3],h=r[s],u=r[s+1],d=r[s+2],p=r[s+3];return t[e]=a*p+c*h+o*d-l*u,t[e+1]=o*p+c*u+l*h-a*d,t[e+2]=l*p+c*d+a*u-o*h,t[e+3]=c*p-a*h-o*u-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=t._x,i=t._y,r=t._z,s=t._order,a=Math.cos,o=Math.sin,l=a(n/2),c=a(i/2),h=a(r/2),u=o(n/2),d=o(i/2),p=o(r/2);switch(s){case"XYZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"YXZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"ZXY":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"ZYX":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"YZX":this._x=u*c*h+l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h-u*d*p;break;case"XZY":this._x=u*c*h-l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h+u*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],i=e[4],r=e[8],s=e[1],a=e[5],o=e[9],l=e[2],c=e[6],h=e[10],u=n+a+h;if(u>0){const t=.5/Math.sqrt(u+1);this._w=.25/t,this._x=(c-o)*t,this._y=(r-l)*t,this._z=(s-i)*t}else if(n>a&&n>h){const t=2*Math.sqrt(1+n-a-h);this._w=(c-o)/t,this._x=.25*t,this._y=(i+s)/t,this._z=(r+l)/t}else if(a>h){const t=2*Math.sqrt(1+a-n-h);this._w=(r-l)/t,this._x=(i+s)/t,this._y=.25*t,this._z=(o+c)/t}else{const t=2*Math.sqrt(1+h-n-a);this._w=(s-i)/t,this._x=(r+l)/t,this._y=(o+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(J(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const i=Math.min(1,e/n);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,i=t._y,r=t._z,s=t._w,a=e._x,o=e._y,l=e._z,c=e._w;return this._x=n*c+s*a+i*l-r*o,this._y=i*c+s*o+r*a-n*l,this._z=r*c+s*l+n*o-i*a,this._w=s*c-n*a-i*o-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,i=this._y,r=this._z,s=this._w;let a=s*t._w+n*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=n,this._y=i,this._z=r,this;const o=1-a*a;if(o<=Number.EPSILON){const t=1-e;return this._w=t*s+e*this._w,this._x=t*n+e*this._x,this._y=t*i+e*this._y,this._z=t*r+e*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(o),c=Math.atan2(l,a),h=Math.sin((1-e)*c)/l,u=Math.sin(e*c)/l;return this._w=s*h+this._w*u,this._x=n*h+this._x*u,this._y=i*h+this._y*u,this._z=r*h+this._z*u,this._onChangeCallback(),this}slerpQuaternions(t,e,n){this.copy(t).slerp(e,n)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}ht.prototype.isQuaternion=!0;class ut{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(pt.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(pt.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=t.elements,s=1/(r[3]*e+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*i+r[12])*s,this.y=(r[1]*e+r[5]*n+r[9]*i+r[13])*s,this.z=(r[2]*e+r[6]*n+r[10]*i+r[14])*s,this}applyQuaternion(t){const e=this.x,n=this.y,i=this.z,r=t.x,s=t.y,a=t.z,o=t.w,l=o*e+s*i-a*n,c=o*n+a*e-r*i,h=o*i+r*n-s*e,u=-r*e-s*n-a*i;return this.x=l*o+u*-r+c*-a-h*-s,this.y=c*o+u*-s+h*-r-l*-a,this.z=h*o+u*-a+l*-s-c*-r,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,i=t.y,r=t.z,s=e.x,a=e.y,o=e.z;return this.x=i*o-r*a,this.y=r*s-n*o,this.z=n*a-i*s,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return dt.copy(this).projectOnVector(t),this.sub(dt)}reflect(t){return this.sub(dt.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(J(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}}ut.prototype.isVector3=!0;const dt=new ut,pt=new ht;class mt{constructor(t=new ut(1/0,1/0,1/0),e=new ut(-1/0,-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){let e=1/0,n=1/0,i=1/0,r=-1/0,s=-1/0,a=-1/0;for(let o=0,l=t.length;o<l;o+=3){const l=t[o],c=t[o+1],h=t[o+2];l<e&&(e=l),c<n&&(n=c),h<i&&(i=h),l>r&&(r=l),c>s&&(s=c),h>a&&(a=h)}return this.min.set(e,n,i),this.max.set(r,s,a),this}setFromBufferAttribute(t){let e=1/0,n=1/0,i=1/0,r=-1/0,s=-1/0,a=-1/0;for(let o=0,l=t.count;o<l;o++){const l=t.getX(o),c=t.getY(o),h=t.getZ(o);l<e&&(e=l),c<n&&(n=c),h<i&&(i=h),l>r&&(r=l),c>s&&(s=c),h>a&&(a=h)}return this.min.set(e,n,i),this.max.set(r,s,a),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=gt.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t){return this.makeEmpty(),this.expandByObject(t)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t){t.updateWorldMatrix(!1,!1);const e=t.geometry;void 0!==e&&(null===e.boundingBox&&e.computeBoundingBox(),vt.copy(e.boundingBox),vt.applyMatrix4(t.matrixWorld),this.union(vt));const n=t.children;for(let i=0,r=n.length;i<r;i++)this.expandByObject(n[i]);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,gt),gt.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(St),Tt.subVectors(this.max,St),xt.subVectors(t.a,St),yt.subVectors(t.b,St),_t.subVectors(t.c,St),Mt.subVectors(yt,xt),bt.subVectors(_t,yt),wt.subVectors(xt,_t);let e=[0,-Mt.z,Mt.y,0,-bt.z,bt.y,0,-wt.z,wt.y,Mt.z,0,-Mt.x,bt.z,0,-bt.x,wt.z,0,-wt.x,-Mt.y,Mt.x,0,-bt.y,bt.x,0,-wt.y,wt.x,0];return!!At(e,xt,yt,_t,Tt)&&(e=[1,0,0,0,1,0,0,0,1],!!At(e,xt,yt,_t,Tt)&&(Et.crossVectors(Mt,bt),e=[Et.x,Et.y,Et.z],At(e,xt,yt,_t,Tt)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return gt.copy(t).clamp(this.min,this.max).sub(t).length()}getBoundingSphere(t){return this.getCenter(t.center),t.radius=.5*this.getSize(gt).length(),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(ft[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),ft[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),ft[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),ft[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),ft[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),ft[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),ft[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),ft[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(ft)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}mt.prototype.isBox3=!0;const ft=[new ut,new ut,new ut,new ut,new ut,new ut,new ut,new ut],gt=new ut,vt=new mt,xt=new ut,yt=new ut,_t=new ut,Mt=new ut,bt=new ut,wt=new ut,St=new ut,Tt=new ut,Et=new ut,Lt=new ut;function At(t,e,n,i,r){for(let s=0,a=t.length-3;s<=a;s+=3){Lt.fromArray(t,s);const a=r.x*Math.abs(Lt.x)+r.y*Math.abs(Lt.y)+r.z*Math.abs(Lt.z),o=e.dot(Lt),l=n.dot(Lt),c=i.dot(Lt);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>a)return!1}return!0}const Rt=new mt,Ct=new ut,Pt=new ut,Dt=new ut;class Nt{constructor(t=new ut,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):Rt.setFromPoints(t).getCenter(n);let i=0;for(let r=0,s=t.length;r<s;r++)i=Math.max(i,n.distanceToSquared(t[r]));return this.radius=Math.sqrt(i),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const n=this.center.distanceToSquared(t);return e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){Dt.subVectors(t,this.center);const e=Dt.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.add(Dt.multiplyScalar(n/t)),this.radius+=n}return this}union(t){return Pt.subVectors(t.center,this.center).normalize().multiplyScalar(t.radius),this.expandByPoint(Ct.copy(t.center).add(Pt)),this.expandByPoint(Ct.copy(t.center).sub(Pt)),this}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const It=new ut,zt=new ut,Ot=new ut,Bt=new ut,Ft=new ut,Ut=new ut,Ht=new ut;class Gt{constructor(t=new ut,e=new ut(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.direction).multiplyScalar(t).add(this.origin)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,It)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=It.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(It.copy(this.direction).multiplyScalar(e).add(this.origin),It.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){zt.copy(t).add(e).multiplyScalar(.5),Ot.copy(e).sub(t).normalize(),Bt.copy(this.origin).sub(zt);const r=.5*t.distanceTo(e),s=-this.direction.dot(Ot),a=Bt.dot(this.direction),o=-Bt.dot(Ot),l=Bt.lengthSq(),c=Math.abs(1-s*s);let h,u,d,p;if(c>0)if(h=s*o-a,u=s*a-o,p=r*c,h>=0)if(u>=-p)if(u<=p){const t=1/c;h*=t,u*=t,d=h*(h+s*u+2*a)+u*(s*h+u+2*o)+l}else u=r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;else u=-r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;else u<=-p?(h=Math.max(0,-(-s*r+a)),u=h>0?-r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l):u<=p?(h=0,u=Math.min(Math.max(-r,-o),r),d=u*(u+2*o)+l):(h=Math.max(0,-(s*r+a)),u=h>0?r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l);else u=s>0?-r:r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;return n&&n.copy(this.direction).multiplyScalar(h).add(this.origin),i&&i.copy(Ot).multiplyScalar(u).add(zt),d}intersectSphere(t,e){It.subVectors(t.center,this.origin);const n=It.dot(this.direction),i=It.dot(It)-n*n,r=t.radius*t.radius;if(i>r)return null;const s=Math.sqrt(r-i),a=n-s,o=n+s;return a<0&&o<0?null:a<0?this.at(o,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,i,r,s,a,o;const l=1/this.direction.x,c=1/this.direction.y,h=1/this.direction.z,u=this.origin;return l>=0?(n=(t.min.x-u.x)*l,i=(t.max.x-u.x)*l):(n=(t.max.x-u.x)*l,i=(t.min.x-u.x)*l),c>=0?(r=(t.min.y-u.y)*c,s=(t.max.y-u.y)*c):(r=(t.max.y-u.y)*c,s=(t.min.y-u.y)*c),n>s||r>i?null:((r>n||n!==n)&&(n=r),(s<i||i!==i)&&(i=s),h>=0?(a=(t.min.z-u.z)*h,o=(t.max.z-u.z)*h):(a=(t.max.z-u.z)*h,o=(t.min.z-u.z)*h),n>o||a>i?null:((a>n||n!==n)&&(n=a),(o<i||i!==i)&&(i=o),i<0?null:this.at(n>=0?n:i,e)))}intersectsBox(t){return null!==this.intersectBox(t,It)}intersectTriangle(t,e,n,i,r){Ft.subVectors(e,t),Ut.subVectors(n,t),Ht.crossVectors(Ft,Ut);let s,a=this.direction.dot(Ht);if(a>0){if(i)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Bt.subVectors(this.origin,t);const o=s*this.direction.dot(Ut.crossVectors(Bt,Ut));if(o<0)return null;const l=s*this.direction.dot(Ft.cross(Bt));if(l<0)return null;if(o+l>a)return null;const c=-s*Bt.dot(Ht);return c<0?null:this.at(c/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Vt{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,i,r,s,a,o,l,c,h,u,d,p,m,f){const g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=s,g[9]=a,g[13]=o,g[2]=l,g[6]=c,g[10]=h,g[14]=u,g[3]=d,g[7]=p,g[11]=m,g[15]=f,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Vt).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,i=1/kt.setFromMatrixColumn(t,0).length(),r=1/kt.setFromMatrixColumn(t,1).length(),s=1/kt.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*s,e[9]=n[9]*s,e[10]=n[10]*s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,n=t.x,i=t.y,r=t.z,s=Math.cos(n),a=Math.sin(n),o=Math.cos(i),l=Math.sin(i),c=Math.cos(r),h=Math.sin(r);if("XYZ"===t.order){const t=s*c,n=s*h,i=a*c,r=a*h;e[0]=o*c,e[4]=-o*h,e[8]=l,e[1]=n+i*l,e[5]=t-r*l,e[9]=-a*o,e[2]=r-t*l,e[6]=i+n*l,e[10]=s*o}else if("YXZ"===t.order){const t=o*c,n=o*h,i=l*c,r=l*h;e[0]=t+r*a,e[4]=i*a-n,e[8]=s*l,e[1]=s*h,e[5]=s*c,e[9]=-a,e[2]=n*a-i,e[6]=r+t*a,e[10]=s*o}else if("ZXY"===t.order){const t=o*c,n=o*h,i=l*c,r=l*h;e[0]=t-r*a,e[4]=-s*h,e[8]=i+n*a,e[1]=n+i*a,e[5]=s*c,e[9]=r-t*a,e[2]=-s*l,e[6]=a,e[10]=s*o}else if("ZYX"===t.order){const t=s*c,n=s*h,i=a*c,r=a*h;e[0]=o*c,e[4]=i*l-n,e[8]=t*l+r,e[1]=o*h,e[5]=r*l+t,e[9]=n*l-i,e[2]=-l,e[6]=a*o,e[10]=s*o}else if("YZX"===t.order){const t=s*o,n=s*l,i=a*o,r=a*l;e[0]=o*c,e[4]=r-t*h,e[8]=i*h+n,e[1]=h,e[5]=s*c,e[9]=-a*c,e[2]=-l*c,e[6]=n*h+i,e[10]=t-r*h}else if("XZY"===t.order){const t=s*o,n=s*l,i=a*o,r=a*l;e[0]=o*c,e[4]=-h,e[8]=l*c,e[1]=t*h+r,e[5]=s*c,e[9]=n*h-i,e[2]=i*h-n,e[6]=a*c,e[10]=r*h+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(jt,t,qt)}lookAt(t,e,n){const i=this.elements;return Jt.subVectors(t,e),0===Jt.lengthSq()&&(Jt.z=1),Jt.normalize(),Xt.crossVectors(n,Jt),0===Xt.lengthSq()&&(1===Math.abs(n.z)?Jt.x+=1e-4:Jt.z+=1e-4,Jt.normalize(),Xt.crossVectors(n,Jt)),Xt.normalize(),Yt.crossVectors(Jt,Xt),i[0]=Xt.x,i[4]=Yt.x,i[8]=Jt.x,i[1]=Xt.y,i[5]=Yt.y,i[9]=Jt.y,i[2]=Xt.z,i[6]=Yt.z,i[10]=Jt.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,s=n[0],a=n[4],o=n[8],l=n[12],c=n[1],h=n[5],u=n[9],d=n[13],p=n[2],m=n[6],f=n[10],g=n[14],v=n[3],x=n[7],y=n[11],_=n[15],M=i[0],b=i[4],w=i[8],S=i[12],T=i[1],E=i[5],L=i[9],A=i[13],R=i[2],C=i[6],P=i[10],D=i[14],N=i[3],I=i[7],z=i[11],O=i[15];return r[0]=s*M+a*T+o*R+l*N,r[4]=s*b+a*E+o*C+l*I,r[8]=s*w+a*L+o*P+l*z,r[12]=s*S+a*A+o*D+l*O,r[1]=c*M+h*T+u*R+d*N,r[5]=c*b+h*E+u*C+d*I,r[9]=c*w+h*L+u*P+d*z,r[13]=c*S+h*A+u*D+d*O,r[2]=p*M+m*T+f*R+g*N,r[6]=p*b+m*E+f*C+g*I,r[10]=p*w+m*L+f*P+g*z,r[14]=p*S+m*A+f*D+g*O,r[3]=v*M+x*T+y*R+_*N,r[7]=v*b+x*E+y*C+_*I,r[11]=v*w+x*L+y*P+_*z,r[15]=v*S+x*A+y*D+_*O,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],s=t[1],a=t[5],o=t[9],l=t[13],c=t[2],h=t[6],u=t[10],d=t[14];return t[3]*(+r*o*h-i*l*h-r*a*u+n*l*u+i*a*d-n*o*d)+t[7]*(+e*o*d-e*l*u+r*s*u-i*s*d+i*l*c-r*o*c)+t[11]*(+e*l*h-e*a*d-r*s*h+n*s*d+r*a*c-n*l*c)+t[15]*(-i*a*c-e*o*h+e*a*u+i*s*h-n*s*u+n*o*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=t[11],p=t[12],m=t[13],f=t[14],g=t[15],v=h*f*l-m*u*l+m*o*d-a*f*d-h*o*g+a*u*g,x=p*u*l-c*f*l-p*o*d+s*f*d+c*o*g-s*u*g,y=c*m*l-p*h*l+p*a*d-s*m*d-c*a*g+s*h*g,_=p*h*o-c*m*o-p*a*u+s*m*u+c*a*f-s*h*f,M=e*v+n*x+i*y+r*_;if(0===M)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const b=1/M;return t[0]=v*b,t[1]=(m*u*r-h*f*r-m*i*d+n*f*d+h*i*g-n*u*g)*b,t[2]=(a*f*r-m*o*r+m*i*l-n*f*l-a*i*g+n*o*g)*b,t[3]=(h*o*r-a*u*r-h*i*l+n*u*l+a*i*d-n*o*d)*b,t[4]=x*b,t[5]=(c*f*r-p*u*r+p*i*d-e*f*d-c*i*g+e*u*g)*b,t[6]=(p*o*r-s*f*r-p*i*l+e*f*l+s*i*g-e*o*g)*b,t[7]=(s*u*r-c*o*r+c*i*l-e*u*l-s*i*d+e*o*d)*b,t[8]=y*b,t[9]=(p*h*r-c*m*r-p*n*d+e*m*d+c*n*g-e*h*g)*b,t[10]=(s*m*r-p*a*r+p*n*l-e*m*l-s*n*g+e*a*g)*b,t[11]=(c*a*r-s*h*r-c*n*l+e*h*l+s*n*d-e*a*d)*b,t[12]=_*b,t[13]=(c*m*i-p*h*i+p*n*u-e*m*u-c*n*f+e*h*f)*b,t[14]=(p*a*i-s*m*i-p*n*o+e*m*o+s*n*f-e*a*f)*b,t[15]=(s*h*i-c*a*i+c*n*o-e*h*o-s*n*u+e*a*u)*b,this}scale(t){const e=this.elements,n=t.x,i=t.y,r=t.z;return e[0]*=n,e[4]*=i,e[8]*=r,e[1]*=n,e[5]*=i,e[9]*=r,e[2]*=n,e[6]*=i,e[10]*=r,e[3]*=n,e[7]*=i,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),i=Math.sin(e),r=1-n,s=t.x,a=t.y,o=t.z,l=r*s,c=r*a;return this.set(l*s+n,l*a-i*o,l*o+i*a,0,l*a+i*o,c*a+n,c*o-i*s,0,l*o-i*a,c*o+i*s,r*o*o+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,r,s){return this.set(1,n,r,0,t,1,s,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){const i=this.elements,r=e._x,s=e._y,a=e._z,o=e._w,l=r+r,c=s+s,h=a+a,u=r*l,d=r*c,p=r*h,m=s*c,f=s*h,g=a*h,v=o*l,x=o*c,y=o*h,_=n.x,M=n.y,b=n.z;return i[0]=(1-(m+g))*_,i[1]=(d+y)*_,i[2]=(p-x)*_,i[3]=0,i[4]=(d-y)*M,i[5]=(1-(u+g))*M,i[6]=(f+v)*M,i[7]=0,i[8]=(p+x)*b,i[9]=(f-v)*b,i[10]=(1-(u+m))*b,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){const i=this.elements;let r=kt.set(i[0],i[1],i[2]).length();const s=kt.set(i[4],i[5],i[6]).length(),a=kt.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],Wt.copy(this);const o=1/r,l=1/s,c=1/a;return Wt.elements[0]*=o,Wt.elements[1]*=o,Wt.elements[2]*=o,Wt.elements[4]*=l,Wt.elements[5]*=l,Wt.elements[6]*=l,Wt.elements[8]*=c,Wt.elements[9]*=c,Wt.elements[10]*=c,e.setFromRotationMatrix(Wt),n.x=r,n.y=s,n.z=a,this}makePerspective(t,e,n,i,r,s){void 0===s&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const a=this.elements,o=2*r/(e-t),l=2*r/(n-i),c=(e+t)/(e-t),h=(n+i)/(n-i),u=-(s+r)/(s-r),d=-2*s*r/(s-r);return a[0]=o,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=h,a[13]=0,a[2]=0,a[6]=0,a[10]=u,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,n,i,r,s){const a=this.elements,o=1/(e-t),l=1/(n-i),c=1/(s-r),h=(e+t)*o,u=(n+i)*l,d=(s+r)*c;return a[0]=2*o,a[4]=0,a[8]=0,a[12]=-h,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-u,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}Vt.prototype.isMatrix4=!0;const kt=new ut,Wt=new Vt,jt=new ut(0,0,0),qt=new ut(1,1,1),Xt=new ut,Yt=new ut,Jt=new ut,Zt=new Vt,Qt=new ht;class Kt{constructor(t=0,e=0,n=0,i=Kt.DefaultOrder){this._x=t,this._y=e,this._z=n,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,i=this._order){return this._x=t,this._y=e,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){const i=t.elements,r=i[0],s=i[4],a=i[8],o=i[1],l=i[5],c=i[9],h=i[2],u=i[6],d=i[10];switch(e){case"XYZ":this._y=Math.asin(J(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-s,r)):(this._x=Math.atan2(u,l),this._z=0);break;case"YXZ":this._x=Math.asin(-J(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(J(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(-h,d),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-J(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(u,d),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(J(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-J(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(u,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return Zt.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Zt,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return Qt.setFromEuler(this),this.setFromQuaternion(Qt,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}toVector3(t){return t?t.set(this._x,this._y,this._z):new ut(this._x,this._y,this._z)}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}Kt.prototype.isEuler=!0,Kt.DefaultOrder="XYZ",Kt.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class $t{constructor(){this.mask=1}set(t){this.mask=1<<t|0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return 0!==(this.mask&t.mask)}}let te=0;const ee=new ut,ne=new ht,ie=new Vt,re=new ut,se=new ut,ae=new ut,oe=new ht,le=new ut(1,0,0),ce=new ut(0,1,0),he=new ut(0,0,1),ue={type:"added"},de={type:"removed"};class pe extends W{constructor(){super(),Object.defineProperty(this,"id",{value:te++}),this.uuid=Y(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=pe.DefaultUp.clone();const t=new ut,e=new Kt,n=new ht,i=new ut(1,1,1);e._onChange((function(){n.setFromEuler(e,!1)})),n._onChange((function(){e.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Vt},normalMatrix:{value:new et}}),this.matrix=new Vt,this.matrixWorld=new Vt,this.matrixAutoUpdate=pe.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new $t,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return ne.setFromAxisAngle(t,e),this.quaternion.multiply(ne),this}rotateOnWorldAxis(t,e){return ne.setFromAxisAngle(t,e),this.quaternion.premultiply(ne),this}rotateX(t){return this.rotateOnAxis(le,t)}rotateY(t){return this.rotateOnAxis(ce,t)}rotateZ(t){return this.rotateOnAxis(he,t)}translateOnAxis(t,e){return ee.copy(t).applyQuaternion(this.quaternion),this.position.add(ee.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(le,t)}translateY(t){return this.translateOnAxis(ce,t)}translateZ(t){return this.translateOnAxis(he,t)}localToWorld(t){return t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return t.applyMatrix4(ie.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?re.copy(t):re.set(t,e,n);const i=this.parent;this.updateWorldMatrix(!0,!1),se.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ie.lookAt(se,re,this.up):ie.lookAt(re,se,this.up),this.quaternion.setFromRotationMatrix(ie),i&&(ie.extractRotation(i.matrixWorld),ne.setFromRotationMatrix(ie),this.quaternion.premultiply(ne.invert()))}add(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(ue)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(de)),this}removeFromParent(){const t=this.parent;return null!==t&&t.remove(this),this}clear(){for(let t=0;t<this.children.length;t++){const e=this.children[t];e.parent=null,e.dispatchEvent(de)}return this.children.length=0,this}attach(t){return this.updateWorldMatrix(!0,!1),ie.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),ie.multiply(t.parent.matrixWorld)),t.applyMatrix4(ie),this.add(t),t.updateWorldMatrix(!1,!0),this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n].getObjectByProperty(t,e);if(void 0!==i)return i}}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(se,t,ae),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(se,oe,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverse(t)}traverseVisible(t){if(!1===this.visible)return;t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}traverseAncestors(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].updateMatrixWorld(t)}updateWorldMatrix(t,e){const n=this.parent;if(!0===t&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e){const t=this.children;for(let e=0,n=t.length;e<n;e++)t[e].updateWorldMatrix(!1,!0)}}toJSON(t){const e=void 0===t||"string"===typeof t,n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const i={};function r(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,i=n.length;e<i;e++){const i=n[e];r(t.shapes,i)}else r(t.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(t.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let n=0,i=this.material.length;n<i;n++)e.push(r(t.materials,this.material[n]));i.material=e}else i.material=r(t.materials,this.material);if(this.children.length>0){i.children=[];for(let e=0;e<this.children.length;e++)i.children.push(this.children[e].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let e=0;e<this.animations.length;e++){const n=this.animations[e];i.animations.push(r(t.animations,n))}}if(e){const e=s(t.geometries),i=s(t.materials),r=s(t.textures),a=s(t.images),o=s(t.shapes),l=s(t.skeletons),c=s(t.animations);e.length>0&&(n.geometries=e),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),a.length>0&&(n.images=a),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c)}return n.object=i,n;function s(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}}clone(t){return(new this.constructor).copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let n=0;n<t.children.length;n++){const e=t.children[n];this.add(e.clone())}return this}}pe.DefaultUp=new ut(0,1,0),pe.DefaultMatrixAutoUpdate=!0,pe.prototype.isObject3D=!0;const me=new ut,fe=new ut,ge=new ut,ve=new ut,xe=new ut,ye=new ut,_e=new ut,Me=new ut,be=new ut,we=new ut;class Se{constructor(t=new ut,e=new ut,n=new ut){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),me.subVectors(t,e),i.cross(me);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(t,e,n,i,r){me.subVectors(i,e),fe.subVectors(n,e),ge.subVectors(t,e);const s=me.dot(me),a=me.dot(fe),o=me.dot(ge),l=fe.dot(fe),c=fe.dot(ge),h=s*l-a*a;if(0===h)return r.set(-2,-1,-1);const u=1/h,d=(l*o-a*c)*u,p=(s*c-a*o)*u;return r.set(1-d-p,p,d)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,ve),ve.x>=0&&ve.y>=0&&ve.x+ve.y<=1}static getUV(t,e,n,i,r,s,a,o){return this.getBarycoord(t,e,n,i,ve),o.set(0,0),o.addScaledVector(r,ve.x),o.addScaledVector(s,ve.y),o.addScaledVector(a,ve.z),o}static isFrontFacing(t,e,n,i){return me.subVectors(n,e),fe.subVectors(t,e),me.cross(fe).dot(i)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return me.subVectors(this.c,this.b),fe.subVectors(this.a,this.b),.5*me.cross(fe).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return Se.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return Se.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,i,r){return Se.getUV(t,this.a,this.b,this.c,e,n,i,r)}containsPoint(t){return Se.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return Se.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const n=this.a,i=this.b,r=this.c;let s,a;xe.subVectors(i,n),ye.subVectors(r,n),Me.subVectors(t,n);const o=xe.dot(Me),l=ye.dot(Me);if(o<=0&&l<=0)return e.copy(n);be.subVectors(t,i);const c=xe.dot(be),h=ye.dot(be);if(c>=0&&h<=c)return e.copy(i);const u=o*h-c*l;if(u<=0&&o>=0&&c<=0)return s=o/(o-c),e.copy(n).addScaledVector(xe,s);we.subVectors(t,r);const d=xe.dot(we),p=ye.dot(we);if(p>=0&&d<=p)return e.copy(r);const m=d*l-o*p;if(m<=0&&l>=0&&p<=0)return a=l/(l-p),e.copy(n).addScaledVector(ye,a);const f=c*p-d*h;if(f<=0&&h-c>=0&&d-p>=0)return _e.subVectors(r,i),a=(h-c)/(h-c+(d-p)),e.copy(i).addScaledVector(_e,a);const g=1/(f+m+u);return s=m*g,a=u*g,e.copy(n).addScaledVector(xe,s).addScaledVector(ye,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let Te=0;class Ee extends W{constructor(){super(),Object.defineProperty(this,"id",{value:Te++}),this.uuid=Y(),this.name="",this.type="Material",this.fog=!0,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=a,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=H,this.stencilZFail=H,this.stencilZPass=H,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}onBuild(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if("shading"===e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===n;continue}const i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}}toJSON(t){const e=void 0===t||"string"===typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function i(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(n.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),0!==this.side&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(n.morphTargets=!0),!0===this.morphNormals&&(n.morphNormals=!0),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e){const e=i(t.textures),r=i(t.images);e.length>0&&(n.textures=e),r.length>0&&(n.images=r)}return n}clone(){return(new this.constructor).copy(this)}copy(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let i=0;i!==t;++i)n[i]=e[i].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}Ee.prototype.isMaterial=!0;const Le={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},Ae={h:0,s:0,l:0},Re={h:0,s:0,l:0};function Ce(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}function Pe(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function De(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class Ne{constructor(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"===typeof t?this.setHex(t):"string"===typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setHSL(t,e,n){if(t=Z(t,1),e=J(e,0,1),n=J(n,0,1),0===e)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+e):n+e-n*e,r=2*n-i;this.r=Ce(r,i,t+1/3),this.g=Ce(r,i,t),this.b=Ce(r,i,t-1/3)}return this}setStyle(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(t)){let t;const i=n[1],r=n[2];switch(i){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,e(t[4]),this;if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,e(t[4]),this;break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r)){const n=parseFloat(t[1])/360,i=parseInt(t[2],10)/100,r=parseInt(t[3],10)/100;return e(t[4]),this.setHSL(n,i,r)}}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(t)){const t=n[1],e=t.length;if(3===e)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this;if(6===e)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this}setColorName(t){const e=Le[t.toLowerCase()];return void 0!==e?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copyGammaToLinear(t,e=2){return this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this}copyLinearToGamma(t,e=2){const n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this}convertGammaToLinear(t){return this.copyGammaToLinear(this,t),this}convertLinearToGamma(t){return this.copyLinearToGamma(this,t),this}copySRGBToLinear(t){return this.r=Pe(t.r),this.g=Pe(t.g),this.b=Pe(t.b),this}copyLinearToSRGB(t){return this.r=De(t.r),this.g=De(t.g),this.b=De(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(t){const e=this.r,n=this.g,i=this.b,r=Math.max(e,n,i),s=Math.min(e,n,i);let a,o;const l=(s+r)/2;if(s===r)a=0,o=0;else{const t=r-s;switch(o=l<=.5?t/(r+s):t/(2-r-s),r){case e:a=(n-i)/t+(n<i?6:0);break;case n:a=(i-e)/t+2;break;case i:a=(e-n)/t+4}a/=6}return t.h=a,t.s=o,t.l=l,t}getStyle(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}offsetHSL(t,e,n){return this.getHSL(Ae),Ae.h+=t,Ae.s+=e,Ae.l+=n,this.setHSL(Ae.h,Ae.s,Ae.l),this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(Ae),t.getHSL(Re);const n=Q(Ae.h,Re.h,e),i=Q(Ae.s,Re.s,e),r=Q(Ae.l,Re.l,e);return this.setHSL(n,i,r),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),!0===t.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}Ne.NAMES=Le,Ne.prototype.isColor=!0,Ne.prototype.r=1,Ne.prototype.g=1,Ne.prototype.b=1;class Ie extends Ee{constructor(t){super(),this.type="MeshBasicMaterial",this.color=new Ne(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.morphTargets=t.morphTargets,this}}Ie.prototype.isMeshBasicMaterial=!0;const ze=new ut,Oe=new tt;class Be{constructor(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===n,this.usage=G,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let i=0,r=this.itemSize;i<r;i++)this.array[t+i]=e.array[n+i];return this}copyArray(t){return this.array.set(t),this}copyColorsArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),r=new Ne),e[n++]=r.r,e[n++]=r.g,e[n++]=r.b}return this}copyVector2sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",i),r=new tt),e[n++]=r.x,e[n++]=r.y}return this}copyVector3sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i),r=new ut),e[n++]=r.x,e[n++]=r.y,e[n++]=r.z}return this}copyVector4sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i),r=new ot),e[n++]=r.x,e[n++]=r.y,e[n++]=r.z,e[n++]=r.w}return this}applyMatrix3(t){if(2===this.itemSize)for(let e=0,n=this.count;e<n;e++)Oe.fromBufferAttribute(this,e),Oe.applyMatrix3(t),this.setXY(e,Oe.x,Oe.y);else if(3===this.itemSize)for(let e=0,n=this.count;e<n;e++)ze.fromBufferAttribute(this,e),ze.applyMatrix3(t),this.setXYZ(e,ze.x,ze.y,ze.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)ze.x=this.getX(e),ze.y=this.getY(e),ze.z=this.getZ(e),ze.applyMatrix4(t),this.setXYZ(e,ze.x,ze.y,ze.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)ze.x=this.getX(e),ze.y=this.getY(e),ze.z=this.getZ(e),ze.applyNormalMatrix(t),this.setXYZ(e,ze.x,ze.y,ze.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)ze.x=this.getX(e),ze.y=this.getY(e),ze.z=this.getZ(e),ze.transformDirection(t),this.setXYZ(e,ze.x,ze.y,ze.z);return this}set(t,e=0){return this.array.set(t,e),this}getX(t){return this.array[t*this.itemSize]}setX(t,e){return this.array[t*this.itemSize]=e,this}getY(t){return this.array[t*this.itemSize+1]}setY(t,e){return this.array[t*this.itemSize+1]=e,this}getZ(t){return this.array[t*this.itemSize+2]}setZ(t,e){return this.array[t*this.itemSize+2]=e,this}getW(t){return this.array[t*this.itemSize+3]}setW(t,e){return this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this}setXYZ(t,e,n,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this}setXYZW(t,e,n,i,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=r,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==G&&(t.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(t.updateRange=this.updateRange),t}}Be.prototype.isBufferAttribute=!0;class Fe extends Be{constructor(t,e,n){super(new Uint16Array(t),e,n)}}class Ue extends Be{constructor(t,e,n){super(new Uint32Array(t),e,n)}}(class extends Be{constructor(t,e,n){super(new Uint16Array(t),e,n)}}).prototype.isFloat16BufferAttribute=!0;class He extends Be{constructor(t,e,n){super(new Float32Array(t),e,n)}}function Ge(t){if(0===t.length)return-1/0;let e=t[0];for(let n=1,i=t.length;n<i;++n)t[n]>e&&(e=t[n]);return e}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;let Ve=0;const ke=new Vt,We=new pe,je=new ut,qe=new mt,Xe=new mt,Ye=new ut;class Je extends W{constructor(){super(),Object.defineProperty(this,"id",{value:Ve++}),this.uuid=Y(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(t){return Array.isArray(t)?this.index=new(Ge(t)>65535?Ue:Fe)(t,1):this.index=t,this}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return void 0!==this.attributes[t]}addGroup(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const e=(new et).getNormalMatrix(t);n.applyNormalMatrix(e),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(t),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(t){return ke.makeRotationFromQuaternion(t),this.applyMatrix4(ke),this}rotateX(t){return ke.makeRotationX(t),this.applyMatrix4(ke),this}rotateY(t){return ke.makeRotationY(t),this.applyMatrix4(ke),this}rotateZ(t){return ke.makeRotationZ(t),this.applyMatrix4(ke),this}translate(t,e,n){return ke.makeTranslation(t,e,n),this.applyMatrix4(ke),this}scale(t,e,n){return ke.makeScale(t,e,n),this.applyMatrix4(ke),this}lookAt(t){return We.lookAt(t),We.updateMatrix(),this.applyMatrix4(We.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(je).negate(),this.translate(je.x,je.y,je.z),this}setFromPoints(t){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new He(e,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new mt);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new ut(-1/0,-1/0,-1/0),new ut(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let n=0,i=e.length;n<i;n++){const t=e[n];qe.setFromBufferAttribute(t),this.morphTargetsRelative?(Ye.addVectors(this.boundingBox.min,qe.min),this.boundingBox.expandByPoint(Ye),Ye.addVectors(this.boundingBox.max,qe.max),this.boundingBox.expandByPoint(Ye)):(this.boundingBox.expandByPoint(qe.min),this.boundingBox.expandByPoint(qe.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Nt);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new ut,1/0);if(t){const n=this.boundingSphere.center;if(qe.setFromBufferAttribute(t),e)for(let t=0,r=e.length;t<r;t++){const n=e[t];Xe.setFromBufferAttribute(n),this.morphTargetsRelative?(Ye.addVectors(qe.min,Xe.min),qe.expandByPoint(Ye),Ye.addVectors(qe.max,Xe.max),qe.expandByPoint(Ye)):(qe.expandByPoint(Xe.min),qe.expandByPoint(Xe.max))}qe.getCenter(n);let i=0;for(let e=0,r=t.count;e<r;e++)Ye.fromBufferAttribute(t,e),i=Math.max(i,n.distanceToSquared(Ye));if(e)for(let r=0,s=e.length;r<s;r++){const s=e[r],a=this.morphTargetsRelative;for(let e=0,r=s.count;e<r;e++)Ye.fromBufferAttribute(s,e),a&&(je.fromBufferAttribute(t,e),Ye.add(je)),i=Math.max(i,n.distanceToSquared(Ye))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeFaceNormals(){}computeTangents(){const t=this.index,e=this.attributes;if(null===t||void 0===e.position||void 0===e.normal||void 0===e.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.array,i=e.position.array,r=e.normal.array,s=e.uv.array,a=i.length/3;void 0===e.tangent&&this.setAttribute("tangent",new Be(new Float32Array(4*a),4));const o=e.tangent.array,l=[],c=[];for(let T=0;T<a;T++)l[T]=new ut,c[T]=new ut;const h=new ut,u=new ut,d=new ut,p=new tt,m=new tt,f=new tt,g=new ut,v=new ut;function x(t,e,n){h.fromArray(i,3*t),u.fromArray(i,3*e),d.fromArray(i,3*n),p.fromArray(s,2*t),m.fromArray(s,2*e),f.fromArray(s,2*n),u.sub(h),d.sub(h),m.sub(p),f.sub(p);const r=1/(m.x*f.y-f.x*m.y);isFinite(r)&&(g.copy(u).multiplyScalar(f.y).addScaledVector(d,-m.y).multiplyScalar(r),v.copy(d).multiplyScalar(m.x).addScaledVector(u,-f.x).multiplyScalar(r),l[t].add(g),l[e].add(g),l[n].add(g),c[t].add(v),c[e].add(v),c[n].add(v))}let y=this.groups;0===y.length&&(y=[{start:0,count:n.length}]);for(let T=0,E=y.length;T<E;++T){const t=y[T],e=t.start;for(let i=e,r=e+t.count;i<r;i+=3)x(n[i+0],n[i+1],n[i+2])}const _=new ut,M=new ut,b=new ut,w=new ut;function S(t){b.fromArray(r,3*t),w.copy(b);const e=l[t];_.copy(e),_.sub(b.multiplyScalar(b.dot(e))).normalize(),M.crossVectors(w,e);const n=M.dot(c[t])<0?-1:1;o[4*t]=_.x,o[4*t+1]=_.y,o[4*t+2]=_.z,o[4*t+3]=n}for(let T=0,E=y.length;T<E;++T){const t=y[T],e=t.start;for(let i=e,r=e+t.count;i<r;i+=3)S(n[i+0]),S(n[i+1]),S(n[i+2])}}computeVertexNormals(){const t=this.index,e=this.getAttribute("position");if(void 0!==e){let n=this.getAttribute("normal");if(void 0===n)n=new Be(new Float32Array(3*e.count),3),this.setAttribute("normal",n);else for(let t=0,e=n.count;t<e;t++)n.setXYZ(t,0,0,0);const i=new ut,r=new ut,s=new ut,a=new ut,o=new ut,l=new ut,c=new ut,h=new ut;if(t)for(let u=0,d=t.count;u<d;u+=3){const d=t.getX(u+0),p=t.getX(u+1),m=t.getX(u+2);i.fromBufferAttribute(e,d),r.fromBufferAttribute(e,p),s.fromBufferAttribute(e,m),c.subVectors(s,r),h.subVectors(i,r),c.cross(h),a.fromBufferAttribute(n,d),o.fromBufferAttribute(n,p),l.fromBufferAttribute(n,m),a.add(c),o.add(c),l.add(c),n.setXYZ(d,a.x,a.y,a.z),n.setXYZ(p,o.x,o.y,o.z),n.setXYZ(m,l.x,l.y,l.z)}else for(let t=0,u=e.count;t<u;t+=3)i.fromBufferAttribute(e,t+0),r.fromBufferAttribute(e,t+1),s.fromBufferAttribute(e,t+2),c.subVectors(s,r),h.subVectors(i,r),c.cross(h),n.setXYZ(t+0,c.x,c.y,c.z),n.setXYZ(t+1,c.x,c.y,c.z),n.setXYZ(t+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}merge(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const n=this.attributes;for(const i in n){if(void 0===t.attributes[i])continue;const r=n[i].array,s=t.attributes[i],a=s.array,o=s.itemSize*e,l=Math.min(a.length,r.length-o);for(let t=0,e=o;t<l;t++,e++)r[e]=a[t]}return this}normalizeNormals(){const t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)Ye.fromBufferAttribute(t,e),Ye.normalize(),t.setXYZ(e,Ye.x,Ye.y,Ye.z)}toNonIndexed(){function t(t,e){const n=t.array,i=t.itemSize,r=t.normalized,s=new n.constructor(e.length*i);let a=0,o=0;for(let l=0,c=e.length;l<c;l++){a=t.isInterleavedBufferAttribute?e[l]*t.data.stride+t.offset:e[l]*i;for(let t=0;t<i;t++)s[o++]=n[a++]}return new Be(s,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new Je,n=this.index.array,i=this.attributes;for(const a in i){const r=t(i[a],n);e.setAttribute(a,r)}const r=this.morphAttributes;for(const a in r){const i=[],s=r[a];for(let e=0,r=s.length;e<r;e++){const r=t(s[e],n);i.push(r)}e.morphAttributes[a]=i}e.morphTargetsRelative=this.morphTargetsRelative;const s=this.groups;for(let a=0,o=s.length;a<o;a++){const t=s[a];e.addGroup(t.start,t.count,t.materialIndex)}return e}toJSON(){const t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const o in n){const e=n[o];t.data.attributes[o]=e.toJSON(t.data)}const i={};let r=!1;for(const o in this.morphAttributes){const e=this.morphAttributes[o],n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];n.push(r.toJSON(t.data))}n.length>0&&(i[o]=n,r=!0)}r&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(t.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return(new Je).copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const i=t.attributes;for(const l in i){const t=i[l];this.setAttribute(l,t.clone(e))}const r=t.morphAttributes;for(const l in r){const t=[],n=r[l];for(let i=0,r=n.length;i<r;i++)t.push(n[i].clone(e));this.morphAttributes[l]=t}this.morphTargetsRelative=t.morphTargetsRelative;const s=t.groups;for(let l=0,c=s.length;l<c;l++){const t=s[l];this.addGroup(t.start,t.count,t.materialIndex)}const a=t.boundingBox;null!==a&&(this.boundingBox=a.clone());const o=t.boundingSphere;return null!==o&&(this.boundingSphere=o.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}Je.prototype.isBufferGeometry=!0;const Ze=new Vt,Qe=new Gt,Ke=new Nt,$e=new ut,tn=new ut,en=new ut,nn=new ut,rn=new ut,sn=new ut,an=new ut,on=new ut,ln=new ut,cn=new tt,hn=new tt,un=new tt,dn=new ut,pn=new ut;class mn extends pe{constructor(t=new Je,e=new Ie){super(),this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=t.material,this.geometry=t.geometry,this}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}raycast(t,e){const n=this.geometry,i=this.material,r=this.matrixWorld;if(void 0===i)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),Ke.copy(n.boundingSphere),Ke.applyMatrix4(r),!1===t.ray.intersectsSphere(Ke))return;if(Ze.copy(r).invert(),Qe.copy(t.ray).applyMatrix4(Ze),null!==n.boundingBox&&!1===Qe.intersectsBox(n.boundingBox))return;let s;if(n.isBufferGeometry){const r=n.index,a=n.attributes.position,o=n.morphAttributes.position,l=n.morphTargetsRelative,c=n.attributes.uv,h=n.attributes.uv2,u=n.groups,d=n.drawRange;if(null!==r)if(Array.isArray(i))for(let n=0,p=u.length;n<p;n++){const p=u[n],m=i[p.materialIndex];for(let n=Math.max(p.start,d.start),i=Math.min(p.start+p.count,d.start+d.count);n<i;n+=3){const i=r.getX(n),u=r.getX(n+1),d=r.getX(n+2);s=fn(this,m,t,Qe,a,o,l,c,h,i,u,d),s&&(s.faceIndex=Math.floor(n/3),s.face.materialIndex=p.materialIndex,e.push(s))}}else{for(let n=Math.max(0,d.start),u=Math.min(r.count,d.start+d.count);n<u;n+=3){const u=r.getX(n),d=r.getX(n+1),p=r.getX(n+2);s=fn(this,i,t,Qe,a,o,l,c,h,u,d,p),s&&(s.faceIndex=Math.floor(n/3),e.push(s))}}else if(void 0!==a)if(Array.isArray(i))for(let n=0,p=u.length;n<p;n++){const r=u[n],p=i[r.materialIndex];for(let n=Math.max(r.start,d.start),i=Math.min(r.start+r.count,d.start+d.count);n<i;n+=3){s=fn(this,p,t,Qe,a,o,l,c,h,n,n+1,n+2),s&&(s.faceIndex=Math.floor(n/3),s.face.materialIndex=r.materialIndex,e.push(s))}}else{for(let n=Math.max(0,d.start),r=Math.min(a.count,d.start+d.count);n<r;n+=3){s=fn(this,i,t,Qe,a,o,l,c,h,n,n+1,n+2),s&&(s.faceIndex=Math.floor(n/3),e.push(s))}}}else n.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}function fn(t,e,n,i,r,a,o,l,c,h,u,d){$e.fromBufferAttribute(r,h),tn.fromBufferAttribute(r,u),en.fromBufferAttribute(r,d);const p=t.morphTargetInfluences;if(e.morphTargets&&a&&p){an.set(0,0,0),on.set(0,0,0),ln.set(0,0,0);for(let t=0,e=a.length;t<e;t++){const e=p[t],n=a[t];0!==e&&(nn.fromBufferAttribute(n,h),rn.fromBufferAttribute(n,u),sn.fromBufferAttribute(n,d),o?(an.addScaledVector(nn,e),on.addScaledVector(rn,e),ln.addScaledVector(sn,e)):(an.addScaledVector(nn.sub($e),e),on.addScaledVector(rn.sub(tn),e),ln.addScaledVector(sn.sub(en),e)))}$e.add(an),tn.add(on),en.add(ln)}t.isSkinnedMesh&&(t.boneTransform(h,$e),t.boneTransform(u,tn),t.boneTransform(d,en));const m=function(t,e,n,i,r,a,o,l){let c;if(c=e.side===s?i.intersectTriangle(o,a,r,!0,l):i.intersectTriangle(r,a,o,2!==e.side,l),null===c)return null;pn.copy(l),pn.applyMatrix4(t.matrixWorld);const h=n.ray.origin.distanceTo(pn);return h<n.near||h>n.far?null:{distance:h,point:pn.clone(),object:t}}(t,e,n,i,$e,tn,en,dn);if(m){l&&(cn.fromBufferAttribute(l,h),hn.fromBufferAttribute(l,u),un.fromBufferAttribute(l,d),m.uv=Se.getUV(dn,$e,tn,en,cn,hn,un,new tt)),c&&(cn.fromBufferAttribute(c,h),hn.fromBufferAttribute(c,u),un.fromBufferAttribute(c,d),m.uv2=Se.getUV(dn,$e,tn,en,cn,hn,un,new tt));const t={a:h,b:u,c:d,normal:new ut,materialIndex:0};Se.getNormal($e,tn,en,t.normal),m.face=t}return m}mn.prototype.isMesh=!0;class gn extends Je{constructor(t=1,e=1,n=1,i=1,r=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:s};const a=this;i=Math.floor(i),r=Math.floor(r),s=Math.floor(s);const o=[],l=[],c=[],h=[];let u=0,d=0;function p(t,e,n,i,r,s,p,m,f,g,v){const x=s/f,y=p/g,_=s/2,M=p/2,b=m/2,w=f+1,S=g+1;let T=0,E=0;const L=new ut;for(let a=0;a<S;a++){const s=a*y-M;for(let o=0;o<w;o++){const u=o*x-_;L[t]=u*i,L[e]=s*r,L[n]=b,l.push(L.x,L.y,L.z),L[t]=0,L[e]=0,L[n]=m>0?1:-1,c.push(L.x,L.y,L.z),h.push(o/f),h.push(1-a/g),T+=1}}for(let a=0;a<g;a++)for(let t=0;t<f;t++){const e=u+t+w*a,n=u+t+w*(a+1),i=u+(t+1)+w*(a+1),r=u+(t+1)+w*a;o.push(e,n,r),o.push(n,i,r),E+=6}a.addGroup(d,E,v),d+=E,u+=T}p("z","y","x",-1,-1,n,e,t,s,r,0),p("z","y","x",1,-1,n,e,-t,s,r,1),p("x","z","y",1,1,t,n,e,i,s,2),p("x","z","y",1,-1,t,n,-e,i,s,3),p("x","y","z",1,-1,t,e,n,i,r,4),p("x","y","z",-1,-1,t,e,-n,i,r,5),this.setIndex(o),this.setAttribute("position",new He(l,3)),this.setAttribute("normal",new He(c,3)),this.setAttribute("uv",new He(h,2))}static fromJSON(t){return new gn(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}function vn(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}}return e}function xn(t){const e={};for(let n=0;n<t.length;n++){const i=vn(t[n]);for(const t in i)e[t]=i[t]}return e}const yn={clone:vn,merge:xn};class _n extends Ee{constructor(t){super(),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.morphTargets=!1,this.morphNormals=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}copy(t){return super.copy(t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=vn(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this}toJSON(t){const e=super.toJSON(t);e.glslVersion=this.glslVersion,e.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i].value;n&&n.isTexture?e.uniforms[i]={type:"t",value:n.toJSON(t).uuid}:n&&n.isColor?e.uniforms[i]={type:"c",value:n.getHex()}:n&&n.isVector2?e.uniforms[i]={type:"v2",value:n.toArray()}:n&&n.isVector3?e.uniforms[i]={type:"v3",value:n.toArray()}:n&&n.isVector4?e.uniforms[i]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?e.uniforms[i]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?e.uniforms[i]={type:"m4",value:n.toArray()}:e.uniforms[i]={value:n}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const i in this.extensions)!0===this.extensions[i]&&(n[i]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}}_n.prototype.isShaderMaterial=!0;class Mn extends pe{constructor(){super(),this.type="Camera",this.matrixWorldInverse=new Vt,this.projectionMatrix=new Vt,this.projectionMatrixInverse=new Vt}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}Mn.prototype.isCamera=!0;class bn extends Mn{constructor(t=50,e=1,n=.1,i=2e3){super(),this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*X*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*q*this.fov);return.5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*X*Math.atan(Math.tan(.5*q*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(t,e,n,i,r,s){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*q*this.fov)/this.zoom,n=2*e,i=this.aspect*n,r=-.5*i;const s=this.view;if(null!==this.view&&this.view.enabled){const t=s.fullWidth,a=s.fullHeight;r+=s.offsetX*i/t,e-=s.offsetY*n/a,i*=s.width/t,n*=s.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}bn.prototype.isPerspectiveCamera=!0;const wn=90;class Sn extends pe{constructor(t,e,n){if(super(),this.type="CubeCamera",!0!==n.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=n;const i=new bn(wn,1,t,e);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new ut(1,0,0)),this.add(i);const r=new bn(wn,1,t,e);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new ut(-1,0,0)),this.add(r);const s=new bn(wn,1,t,e);s.layers=this.layers,s.up.set(0,0,1),s.lookAt(new ut(0,1,0)),this.add(s);const a=new bn(wn,1,t,e);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(new ut(0,-1,0)),this.add(a);const o=new bn(wn,1,t,e);o.layers=this.layers,o.up.set(0,-1,0),o.lookAt(new ut(0,0,1)),this.add(o);const l=new bn(wn,1,t,e);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new ut(0,0,-1)),this.add(l)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[i,r,s,a,o,l]=this.children,c=t.xr.enabled,h=t.getRenderTarget();t.xr.enabled=!1;const u=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,i),t.setRenderTarget(n,1),t.render(e,r),t.setRenderTarget(n,2),t.render(e,s),t.setRenderTarget(n,3),t.render(e,a),t.setRenderTarget(n,4),t.render(e,o),n.texture.generateMipmaps=u,t.setRenderTarget(n,5),t.render(e,l),t.setRenderTarget(h),t.xr.enabled=c}}class Tn extends st{constructor(t,e,n,i,r,s,a,l,c,h){super(t=void 0!==t?t:[],e=void 0!==e?e:o,n,i,r,s,a=void 0!==a?a:T,l,c,h),this._needsFlipEnvMap=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}Tn.prototype.isCubeTexture=!0;class En extends lt{constructor(t,e,n){Number.isInteger(e)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),e=n),super(t,t,e),e=e||{},this.texture=new Tn(void 0,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:v,this.texture._needsFlipEnvMap=!1}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.format=E,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new gn(5,5,5),r=new _n({name:"CubemapFromEquirect",uniforms:vn(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:s,blending:0});r.uniforms.tEquirect.value=e;const a=new mn(i,r),o=e.minFilter;e.minFilter===x&&(e.minFilter=v);return new Sn(1,10,this).update(t,a),e.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(t,e,n,i){const r=t.getRenderTarget();for(let s=0;s<6;s++)t.setRenderTarget(this,s),t.clear(e,n,i);t.setRenderTarget(r)}}En.prototype.isWebGLCubeRenderTarget=!0;const Ln=new ut,An=new ut,Rn=new et;class Cn{constructor(t=new ut(1,0,0),e=0){this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const i=Ln.subVectors(n,e).cross(An.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(i,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)}intersectLine(t,e){const n=t.delta(Ln),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const r=-(t.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:e.copy(n).multiplyScalar(r).add(t.start)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||Rn.getNormalMatrix(t),i=this.coplanarPoint(Ln).applyMatrix4(t),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}Cn.prototype.isPlane=!0;const Pn=new Nt,Dn=new ut;class Nn{constructor(t=new Cn,e=new Cn,n=new Cn,i=new Cn,r=new Cn,s=new Cn){this.planes=[t,e,n,i,r,s]}set(t,e,n,i,r,s){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(s),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,i=n[0],r=n[1],s=n[2],a=n[3],o=n[4],l=n[5],c=n[6],h=n[7],u=n[8],d=n[9],p=n[10],m=n[11],f=n[12],g=n[13],v=n[14],x=n[15];return e[0].setComponents(a-i,h-o,m-u,x-f).normalize(),e[1].setComponents(a+i,h+o,m+u,x+f).normalize(),e[2].setComponents(a+r,h+l,m+d,x+g).normalize(),e[3].setComponents(a-r,h-l,m-d,x-g).normalize(),e[4].setComponents(a-s,h-c,m-p,x-v).normalize(),e[5].setComponents(a+s,h+c,m+p,x+v).normalize(),this}intersectsObject(t){const e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Pn.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(Pn)}intersectsSprite(t){return Pn.center.set(0,0,0),Pn.radius=.7071067811865476,Pn.applyMatrix4(t.matrixWorld),this.intersectsSphere(Pn)}intersectsSphere(t){const e=this.planes,n=t.center,i=-t.radius;for(let r=0;r<6;r++){if(e[r].distanceToPoint(n)<i)return!1}return!0}intersectsBox(t){const e=this.planes;for(let n=0;n<6;n++){const i=e[n];if(Dn.x=i.normal.x>0?t.max.x:t.min.x,Dn.y=i.normal.y>0?t.max.y:t.min.y,Dn.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(Dn)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function In(){let t=null,e=!1,n=null,i=null;function r(e,s){n(e,s),i=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==n&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function zn(t,e){const n=e.isWebGL2,i=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),i.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=i.get(e);n&&(t.deleteBuffer(n.buffer),i.delete(e))},update:function(e,r){if(e.isGLBufferAttribute){const t=i.get(e);return void((!t||t.version<e.version)&&i.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version}))}e.isInterleavedBufferAttribute&&(e=e.data);const s=i.get(e);void 0===s?i.set(e,function(e,i){const r=e.array,s=e.usage,a=t.createBuffer();t.bindBuffer(i,a),t.bufferData(i,r,s),e.onUploadCallback();let o=5126;return r instanceof Float32Array?o=5126:r instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):r instanceof Uint16Array?e.isFloat16BufferAttribute?n?o=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):o=5123:r instanceof Int16Array?o=5122:r instanceof Uint32Array?o=5125:r instanceof Int32Array?o=5124:r instanceof Int8Array?o=5120:(r instanceof Uint8Array||r instanceof Uint8ClampedArray)&&(o=5121),{buffer:a,type:o,bytesPerElement:r.BYTES_PER_ELEMENT,version:e.version}}(e,r)):s.version<e.version&&(!function(e,i,r){const s=i.array,a=i.updateRange;t.bindBuffer(r,e),-1===a.count?t.bufferSubData(r,0,s):(n?t.bufferSubData(r,a.offset*s.BYTES_PER_ELEMENT,s,a.offset,a.count):t.bufferSubData(r,a.offset*s.BYTES_PER_ELEMENT,s.subarray(a.offset,a.offset+a.count)),a.count=-1)}(s.buffer,e,r),s.version=e.version)}}}class On extends Je{constructor(t=1,e=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i};const r=t/2,s=e/2,a=Math.floor(n),o=Math.floor(i),l=a+1,c=o+1,h=t/a,u=e/o,d=[],p=[],m=[],f=[];for(let g=0;g<c;g++){const t=g*u-s;for(let e=0;e<l;e++){const n=e*h-r;p.push(n,-t,0),m.push(0,0,1),f.push(e/a),f.push(1-g/o)}}for(let g=0;g<o;g++)for(let t=0;t<a;t++){const e=t+l*g,n=t+l*(g+1),i=t+1+l*(g+1),r=t+1+l*g;d.push(e,n,r),d.push(n,i,r)}this.setIndex(d),this.setAttribute("position",new He(p,3)),this.setAttribute("normal",new He(m,3)),this.setAttribute("uv",new He(f,2))}static fromJSON(t){return new On(t.width,t.height,t.widthSegments,t.heightSegments)}}const Bn={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotVH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\n\t\tvec2 f = fract( uv );\n\t\tuv += 0.5 - f;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x += texelSize;\n\t\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.y += texelSize;\n\t\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x -= texelSize;\n\t\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tvec3 tm = mix( tl, tr, f.x );\n\t\tvec3 bm = mix( bl, br, f.x );\n\t\treturn mix( tm, bm, f.y );\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tfogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat specularRoughness;\n\tvec3 specularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\t\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\t\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSNMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition.xyz / vWorldPosition.w;\n\tvec3 v = normalize( cameraPosition - pos );\n\tfloat ior = ( 1.0 + 0.4 * reflectivity ) / ( 1.0 - 0.4 * reflectivity );\n\tvec3 transmission = transmissionFactor * getIBLVolumeRefraction(\n\t\tnormal, v, roughnessFactor, material.diffuseColor, totalSpecular,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission, transmissionFactor );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec4 vWorldPosition;\n\tvec3 getVolumeTransmissionRay(vec3 n, vec3 v, float thickness, float ior, mat4 modelMatrix) {\n\t\tvec3 refractionVector = refract(-v, normalize(n), 1.0 / ior);\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length(vec3(modelMatrix[0].xyz));\n\t\tmodelScale.y = length(vec3(modelMatrix[1].xyz));\n\t\tmodelScale.z = length(vec3(modelMatrix[2].xyz));\n\t\treturn normalize(refractionVector) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness(float roughness, float ior) {\n\t\treturn roughness * clamp(ior * 2.0 - 2.0, 0.0, 1.0);\n\t}\n\tvec3 getTransmissionSample(vec2 fragCoord, float roughness, float ior) {\n\t\tfloat framebufferLod = log2(transmissionSamplerSize.x) * applyIorToRoughness(roughness, ior);\n\t\treturn texture2DLodEXT(transmissionSamplerMap, fragCoord.xy, framebufferLod).rgb;\n\t}\n\tvec3 applyVolumeAttenuation(vec3 radiance, float transmissionDistance, vec3 attenuationColor, float attenuationDistance) {\n\t\tif (attenuationDistance == 0.0) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log(attenuationColor) / attenuationDistance;\n\t\t\tvec3 transmittance = exp(-attenuationCoefficient * transmissionDistance);\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec3 getIBLVolumeRefraction(vec3 n, vec3 v, float perceptualRoughness, vec3 baseColor, vec3 specularColor,\n\t\tvec3 position, mat4 modelMatrix, mat4 viewMatrix, mat4 projMatrix, float ior, float thickness,\n\t\tvec3 attenuationColor, float attenuationDistance) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay(n, v, thickness, ior, modelMatrix);\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4(refractedRayExit, 1.0);\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec3 transmittedLight = getTransmissionSample(refractionCoords, perceptualRoughness, ior);\n\t\tvec3 attenuatedColor = applyVolumeAttenuation(transmittedLight, length(transmissionRay), attenuationColor, attenuationDistance);\n\t\treturn (1.0 - specularColor) * attenuatedColor * baseColor;\n\t}\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define REFLECTIVITY\n\t#define CLEARCOAT\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform vec3 attenuationColor;\n\tuniform float attenuationDistance;\n#endif\n#ifdef REFLECTIVITY\n\tuniform float reflectivity;\n#endif\n#ifdef CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheen;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <transmission_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#ifdef USE_TRANSMISSION\n\tvarying vec4 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition;\n#endif\n}",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}"},Fn={common:{diffuse:{value:new Ne(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new et},uv2Transform:{value:new et},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new tt(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ne(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ne(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},uvTransform:{value:new et}},sprite:{diffuse:{value:new Ne(16777215)},opacity:{value:1},center:{value:new tt(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new et}}},Un={basic:{uniforms:xn([Fn.common,Fn.specularmap,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.fog]),vertexShader:Bn.meshbasic_vert,fragmentShader:Bn.meshbasic_frag},lambert:{uniforms:xn([Fn.common,Fn.specularmap,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.fog,Fn.lights,{emissive:{value:new Ne(0)}}]),vertexShader:Bn.meshlambert_vert,fragmentShader:Bn.meshlambert_frag},phong:{uniforms:xn([Fn.common,Fn.specularmap,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.fog,Fn.lights,{emissive:{value:new Ne(0)},specular:{value:new Ne(1118481)},shininess:{value:30}}]),vertexShader:Bn.meshphong_vert,fragmentShader:Bn.meshphong_frag},standard:{uniforms:xn([Fn.common,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.roughnessmap,Fn.metalnessmap,Fn.fog,Fn.lights,{emissive:{value:new Ne(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Bn.meshphysical_vert,fragmentShader:Bn.meshphysical_frag},toon:{uniforms:xn([Fn.common,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.gradientmap,Fn.fog,Fn.lights,{emissive:{value:new Ne(0)}}]),vertexShader:Bn.meshtoon_vert,fragmentShader:Bn.meshtoon_frag},matcap:{uniforms:xn([Fn.common,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.fog,{matcap:{value:null}}]),vertexShader:Bn.meshmatcap_vert,fragmentShader:Bn.meshmatcap_frag},points:{uniforms:xn([Fn.points,Fn.fog]),vertexShader:Bn.points_vert,fragmentShader:Bn.points_frag},dashed:{uniforms:xn([Fn.common,Fn.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Bn.linedashed_vert,fragmentShader:Bn.linedashed_frag},depth:{uniforms:xn([Fn.common,Fn.displacementmap]),vertexShader:Bn.depth_vert,fragmentShader:Bn.depth_frag},normal:{uniforms:xn([Fn.common,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,{opacity:{value:1}}]),vertexShader:Bn.normal_vert,fragmentShader:Bn.normal_frag},sprite:{uniforms:xn([Fn.sprite,Fn.fog]),vertexShader:Bn.sprite_vert,fragmentShader:Bn.sprite_frag},background:{uniforms:{uvTransform:{value:new et},t2D:{value:null}},vertexShader:Bn.background_vert,fragmentShader:Bn.background_frag},cube:{uniforms:xn([Fn.envmap,{opacity:{value:1}}]),vertexShader:Bn.cube_vert,fragmentShader:Bn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Bn.equirect_vert,fragmentShader:Bn.equirect_frag},distanceRGBA:{uniforms:xn([Fn.common,Fn.displacementmap,{referencePosition:{value:new ut},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Bn.distanceRGBA_vert,fragmentShader:Bn.distanceRGBA_frag},shadow:{uniforms:xn([Fn.lights,Fn.fog,{color:{value:new Ne(0)},opacity:{value:1}}]),vertexShader:Bn.shadow_vert,fragmentShader:Bn.shadow_frag}};function Hn(t,e,n,i,r){const a=new Ne(0);let o,l,h=0,u=null,d=0,p=null;function m(t,e){n.buffers.color.setClear(t.r,t.g,t.b,e,r)}return{getClearColor:function(){return a},setClearColor:function(t,e=1){a.set(t),h=e,m(a,h)},getClearAlpha:function(){return h},setClearAlpha:function(t){h=t,m(a,h)},render:function(n,r){let f=!1,g=!0===r.isScene?r.background:null;g&&g.isTexture&&(g=e.get(g));const v=t.xr,x=v.getSession&&v.getSession();x&&"additive"===x.environmentBlendMode&&(g=null),null===g?m(a,h):g&&g.isColor&&(m(g,1),f=!0),(t.autoClear||f)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),g&&(g.isCubeTexture||g.mapping===c)?(void 0===l&&(l=new mn(new gn(1,1,1),new _n({name:"BackgroundCubeMaterial",uniforms:vn(Un.cube.uniforms),vertexShader:Un.cube.vertexShader,fragmentShader:Un.cube.fragmentShader,side:s,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(l)),l.material.uniforms.envMap.value=g,l.material.uniforms.flipEnvMap.value=g.isCubeTexture&&g._needsFlipEnvMap?-1:1,u===g&&d===g.version&&p===t.toneMapping||(l.material.needsUpdate=!0,u=g,d=g.version,p=t.toneMapping),n.unshift(l,l.geometry,l.material,0,0,null)):g&&g.isTexture&&(void 0===o&&(o=new mn(new On(2,2),new _n({name:"BackgroundMaterial",uniforms:vn(Un.background.uniforms),vertexShader:Un.background.vertexShader,fragmentShader:Un.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1})),o.geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(o)),o.material.uniforms.t2D.value=g,!0===g.matrixAutoUpdate&&g.updateMatrix(),o.material.uniforms.uvTransform.value.copy(g.matrix),u===g&&d===g.version&&p===t.toneMapping||(o.material.needsUpdate=!0,u=g,d=g.version,p=t.toneMapping),n.unshift(o,o.geometry,o.material,0,0,null))}}}function Gn(t,e,n,i){const r=t.getParameter(34921),s=i.isWebGL2?null:e.get("OES_vertex_array_object"),a=i.isWebGL2||null!==s,o={},l=d(null);let c=l;function h(e){return i.isWebGL2?t.bindVertexArray(e):s.bindVertexArrayOES(e)}function u(e){return i.isWebGL2?t.deleteVertexArray(e):s.deleteVertexArrayOES(e)}function d(t){const e=[],n=[],i=[];for(let s=0;s<r;s++)e[s]=0,n[s]=0,i[s]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:n,attributeDivisors:i,object:t,attributes:{},index:null}}function p(){const t=c.newAttributes;for(let e=0,n=t.length;e<n;e++)t[e]=0}function m(t){f(t,0)}function f(n,r){const s=c.newAttributes,a=c.enabledAttributes,o=c.attributeDivisors;if(s[n]=1,0===a[n]&&(t.enableVertexAttribArray(n),a[n]=1),o[n]!==r){(i.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),o[n]=r}}function g(){const e=c.newAttributes,n=c.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==e[i]&&(t.disableVertexAttribArray(i),n[i]=0)}function v(e,n,r,s,a,o){!0!==i.isWebGL2||5124!==r&&5125!==r?t.vertexAttribPointer(e,n,r,s,a,o):t.vertexAttribIPointer(e,n,r,a,o)}function x(){y(),c!==l&&(c=l,h(c.object))}function y(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(r,l,u,x,y){let _=!1;if(a){const e=function(e,n,r){const a=!0===r.wireframe;let l=o[e.id];void 0===l&&(l={},o[e.id]=l);let c=l[n.id];void 0===c&&(c={},l[n.id]=c);let h=c[a];void 0===h&&(h=d(i.isWebGL2?t.createVertexArray():s.createVertexArrayOES()),c[a]=h);return h}(x,u,l);c!==e&&(c=e,h(c.object)),_=function(t,e){const n=c.attributes,i=t.attributes;let r=0;for(const s in i){const t=n[s],e=i[s];if(void 0===t)return!0;if(t.attribute!==e)return!0;if(t.data!==e.data)return!0;r++}return c.attributesNum!==r||c.index!==e}(x,y),_&&function(t,e){const n={},i=t.attributes;let r=0;for(const s in i){const t=i[s],e={};e.attribute=t,t.data&&(e.data=t.data),n[s]=e,r++}c.attributes=n,c.attributesNum=r,c.index=e}(x,y)}else{const t=!0===l.wireframe;c.geometry===x.id&&c.program===u.id&&c.wireframe===t||(c.geometry=x.id,c.program=u.id,c.wireframe=t,_=!0)}!0===r.isInstancedMesh&&(_=!0),null!==y&&n.update(y,34963),_&&(!function(r,s,a,o){if(!1===i.isWebGL2&&(r.isInstancedMesh||o.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;p();const l=o.attributes,c=a.getAttributes(),h=s.defaultAttributeValues;for(const e in c){const i=c[e];if(i>=0){const s=l[e];if(void 0!==s){const e=s.normalized,r=s.itemSize,a=n.get(s);if(void 0===a)continue;const l=a.buffer,c=a.type,h=a.bytesPerElement;if(s.isInterleavedBufferAttribute){const n=s.data,a=n.stride,u=s.offset;n&&n.isInstancedInterleavedBuffer?(f(i,n.meshPerAttribute),void 0===o._maxInstanceCount&&(o._maxInstanceCount=n.meshPerAttribute*n.count)):m(i),t.bindBuffer(34962,l),v(i,r,c,e,a*h,u*h)}else s.isInstancedBufferAttribute?(f(i,s.meshPerAttribute),void 0===o._maxInstanceCount&&(o._maxInstanceCount=s.meshPerAttribute*s.count)):m(i),t.bindBuffer(34962,l),v(i,r,c,e,0,0)}else if("instanceMatrix"===e){const e=n.get(r.instanceMatrix);if(void 0===e)continue;const s=e.buffer,a=e.type;f(i+0,1),f(i+1,1),f(i+2,1),f(i+3,1),t.bindBuffer(34962,s),t.vertexAttribPointer(i+0,4,a,!1,64,0),t.vertexAttribPointer(i+1,4,a,!1,64,16),t.vertexAttribPointer(i+2,4,a,!1,64,32),t.vertexAttribPointer(i+3,4,a,!1,64,48)}else if("instanceColor"===e){const e=n.get(r.instanceColor);if(void 0===e)continue;const s=e.buffer,a=e.type;f(i,1),t.bindBuffer(34962,s),t.vertexAttribPointer(i,3,a,!1,12,0)}else if(void 0!==h){const n=h[e];if(void 0!==n)switch(n.length){case 2:t.vertexAttrib2fv(i,n);break;case 3:t.vertexAttrib3fv(i,n);break;case 4:t.vertexAttrib4fv(i,n);break;default:t.vertexAttrib1fv(i,n)}}}}g()}(r,l,u,x),null!==y&&t.bindBuffer(34963,n.get(y).buffer))},reset:x,resetDefaultState:y,dispose:function(){x();for(const t in o){const e=o[t];for(const t in e){const n=e[t];for(const t in n)u(n[t].object),delete n[t];delete e[t]}delete o[t]}},releaseStatesOfGeometry:function(t){if(void 0===o[t.id])return;const e=o[t.id];for(const n in e){const t=e[n];for(const e in t)u(t[e].object),delete t[e];delete e[n]}delete o[t.id]},releaseStatesOfProgram:function(t){for(const e in o){const n=o[e];if(void 0===n[t.id])continue;const i=n[t.id];for(const t in i)u(i[t].object),delete i[t];delete n[t.id]}},initAttributes:p,enableAttribute:m,disableUnusedAttributes:g}}function Vn(t,e,n,i){const r=i.isWebGL2;let s;this.setMode=function(t){s=t},this.render=function(e,i){t.drawArrays(s,e,i),n.update(i,s,1)},this.renderInstances=function(i,a,o){if(0===o)return;let l,c;if(r)l=t,c="drawArraysInstanced";else if(l=e.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](s,i,a,o),n.update(a,s,o)}}function kn(t,e,n){let i;function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s="undefined"!==typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&t instanceof WebGL2ComputeRenderingContext;let a=void 0!==n.precision?n.precision:"highp";const o=r(a);o!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",o,"instead."),a=o);const l=s||e.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,h=t.getParameter(34930),u=t.getParameter(35660),d=t.getParameter(3379),p=t.getParameter(34076),m=t.getParameter(34921),f=t.getParameter(36347),g=t.getParameter(36348),v=t.getParameter(36349),x=u>0,y=s||e.has("OES_texture_float");return{isWebGL2:s,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==i)return i;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:c,maxTextures:h,maxVertexTextures:u,maxTextureSize:d,maxCubemapSize:p,maxAttributes:m,maxVertexUniforms:f,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:x,floatFragmentTextures:y,floatVertexTextures:x&&y,maxSamples:s?t.getParameter(36183):0}}function Wn(t){const e=this;let n=null,i=0,r=!1,s=!1;const a=new Cn,o=new et,l={value:null,needsUpdate:!1};function c(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function h(t,n,i,r){const s=null!==t?t.length:0;let c=null;if(0!==s){if(c=l.value,!0!==r||null===c){const e=i+4*s,r=n.matrixWorldInverse;o.getNormalMatrix(r),(null===c||c.length<e)&&(c=new Float32Array(e));for(let n=0,l=i;n!==s;++n,l+=4)a.copy(t[n]).applyMatrix4(r,o),a.normal.toArray(c,l),c[l+3]=a.constant}l.value=c,l.needsUpdate=!0}return e.numPlanes=s,e.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e,s){const a=0!==t.length||e||0!==i||r;return r=e,n=h(t,s,0),i=t.length,a},this.beginShadows=function(){s=!0,h(null)},this.endShadows=function(){s=!1,c()},this.setState=function(e,a,o){const u=e.clippingPlanes,d=e.clipIntersection,p=e.clipShadows,m=t.get(e);if(!r||null===u||0===u.length||s&&!p)s?h(null):c();else{const t=s?0:i,e=4*t;let r=m.clippingState||null;l.value=r,r=h(u,a,e,o);for(let i=0;i!==e;++i)r[i]=n[i];m.clippingState=r,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function jn(t){let e=new WeakMap;function n(t,e){return 303===e?t.mapping=o:304===e&&(t.mapping=l),t}function i(t){const n=t.target;n.removeEventListener("dispose",i);const r=e.get(n);void 0!==r&&(e.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const s=r.mapping;if(303===s||304===s){if(e.has(r)){return n(e.get(r).texture,r.mapping)}{const s=r.image;if(s&&s.height>0){const a=t.getRenderTarget(),o=new En(s.height/2);return o.fromEquirectangularTexture(t,r),e.set(r,o),t.setRenderTarget(a),r.addEventListener("dispose",i),n(o.texture,r.mapping)}return null}}}return r},dispose:function(){e=new WeakMap}}}function qn(t){const e={};function n(n){if(void 0!==e[n])return e[n];let i;switch(n){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=t.getExtension(n)}return e[n]=i,i}return{has:function(t){return null!==n(t)},init:function(t){t.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float")},get:function(t){const e=n(t);return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e}}}function Xn(t,e,n,i){const r={},s=new WeakMap;function a(t){const o=t.target;null!==o.index&&e.remove(o.index);for(const n in o.attributes)e.remove(o.attributes[n]);o.removeEventListener("dispose",a),delete r[o.id];const l=s.get(o);l&&(e.remove(l),s.delete(o)),i.releaseStatesOfGeometry(o),!0===o.isInstancedBufferGeometry&&delete o._maxInstanceCount,n.memory.geometries--}function o(t){const n=[],i=t.index,r=t.attributes.position;let a=0;if(null!==i){const t=i.array;a=i.version;for(let e=0,i=t.length;e<i;e+=3){const i=t[e+0],r=t[e+1],s=t[e+2];n.push(i,r,r,s,s,i)}}else{const t=r.array;a=r.version;for(let e=0,i=t.length/3-1;e<i;e+=3){const t=e+0,i=e+1,r=e+2;n.push(t,i,i,r,r,t)}}const o=new(Ge(n)>65535?Ue:Fe)(n,1);o.version=a;const l=s.get(t);l&&e.remove(l),s.set(t,o)}return{get:function(t,e){return!0===r[e.id]||(e.addEventListener("dispose",a),r[e.id]=!0,n.memory.geometries++),e},update:function(t){const n=t.attributes;for(const r in n)e.update(n[r],34962);const i=t.morphAttributes;for(const r in i){const t=i[r];for(let n=0,i=t.length;n<i;n++)e.update(t[n],34962)}},getWireframeAttribute:function(t){const e=s.get(t);if(e){const n=t.index;null!==n&&e.version<n.version&&o(t)}else o(t);return s.get(t)}}}function Yn(t,e,n,i){const r=i.isWebGL2;let s,a,o;this.setMode=function(t){s=t},this.setIndex=function(t){a=t.type,o=t.bytesPerElement},this.render=function(e,i){t.drawElements(s,i,a,e*o),n.update(i,s,1)},this.renderInstances=function(i,l,c){if(0===c)return;let h,u;if(r)h=t,u="drawElementsInstanced";else if(h=e.get("ANGLE_instanced_arrays"),u="drawElementsInstancedANGLE",null===h)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");h[u](s,l,a,i*o,c),n.update(l,s,c)}}function Jn(t){const e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(t,n,i){switch(e.calls++,n){case 4:e.triangles+=i*(t/3);break;case 1:e.lines+=i*(t/2);break;case 3:e.lines+=i*(t-1);break;case 2:e.lines+=i*t;break;case 0:e.points+=i*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function Zn(t,e){return t[0]-e[0]}function Qn(t,e){return Math.abs(e[1])-Math.abs(t[1])}function Kn(t){const e={},n=new Float32Array(8),i=[];for(let r=0;r<8;r++)i[r]=[r,0];return{update:function(r,s,a,o){const l=r.morphTargetInfluences,c=void 0===l?0:l.length;let h=e[s.id];if(void 0===h||h.length!==c){h=[];for(let t=0;t<c;t++)h[t]=[t,0];e[s.id]=h}for(let t=0;t<c;t++){const e=h[t];e[0]=t,e[1]=l[t]}h.sort(Qn);for(let t=0;t<8;t++)t<c&&h[t][1]?(i[t][0]=h[t][0],i[t][1]=h[t][1]):(i[t][0]=Number.MAX_SAFE_INTEGER,i[t][1]=0);i.sort(Zn);const u=a.morphTargets&&s.morphAttributes.position,d=a.morphNormals&&s.morphAttributes.normal;let p=0;for(let t=0;t<8;t++){const e=i[t],r=e[0],a=e[1];r!==Number.MAX_SAFE_INTEGER&&a?(u&&s.getAttribute("morphTarget"+t)!==u[r]&&s.setAttribute("morphTarget"+t,u[r]),d&&s.getAttribute("morphNormal"+t)!==d[r]&&s.setAttribute("morphNormal"+t,d[r]),n[t]=a,p+=a):(u&&!0===s.hasAttribute("morphTarget"+t)&&s.deleteAttribute("morphTarget"+t),d&&!0===s.hasAttribute("morphNormal"+t)&&s.deleteAttribute("morphNormal"+t),n[t]=0)}const m=s.morphTargetsRelative?1:1-p;o.getUniforms().setValue(t,"morphTargetBaseInfluence",m),o.getUniforms().setValue(t,"morphTargetInfluences",n)}}}function $n(t,e,n,i){let r=new WeakMap;function s(t){const e=t.target;e.removeEventListener("dispose",s),n.remove(e.instanceMatrix),null!==e.instanceColor&&n.remove(e.instanceColor)}return{update:function(t){const a=i.render.frame,o=t.geometry,l=e.get(t,o);return r.get(l)!==a&&(e.update(l),r.set(l,a)),t.isInstancedMesh&&(!1===t.hasEventListener("dispose",s)&&t.addEventListener("dispose",s),n.update(t.instanceMatrix,34962),null!==t.instanceColor&&n.update(t.instanceColor,34962)),l},dispose:function(){r=new WeakMap}}}Un.physical={uniforms:xn([Un.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new tt(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new Ne(0)},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new tt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new Ne(0)}}]),vertexShader:Bn.meshphysical_vert,fragmentShader:Bn.meshphysical_frag};class ti extends st{constructor(t=null,e=1,n=1,i=1){super(null),this.image={data:t,width:e,height:n,depth:i},this.magFilter=m,this.minFilter=m,this.wrapR=d,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}}ti.prototype.isDataTexture2DArray=!0;class ei extends st{constructor(t=null,e=1,n=1,i=1){super(null),this.image={data:t,width:e,height:n,depth:i},this.magFilter=m,this.minFilter=m,this.wrapR=d,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}}ei.prototype.isDataTexture3D=!0;const ni=new st,ii=new ti,ri=new ei,si=new Tn,ai=[],oi=[],li=new Float32Array(16),ci=new Float32Array(9),hi=new Float32Array(4);function ui(t,e,n){const i=t[0];if(i<=0||i>0)return t;const r=e*n;let s=ai[r];if(void 0===s&&(s=new Float32Array(r),ai[r]=s),0!==e){i.toArray(s,0);for(let i=1,r=0;i!==e;++i)r+=n,t[i].toArray(s,r)}return s}function di(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function pi(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function mi(t,e){let n=oi[e];void 0===n&&(n=new Int32Array(e),oi[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function fi(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function gi(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(di(n,e))return;t.uniform2fv(this.addr,e),pi(n,e)}}function vi(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(void 0!==e.r)n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(di(n,e))return;t.uniform3fv(this.addr,e),pi(n,e)}}function xi(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(di(n,e))return;t.uniform4fv(this.addr,e),pi(n,e)}}function yi(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(di(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),pi(n,e)}else{if(di(n,i))return;hi.set(i),t.uniformMatrix2fv(this.addr,!1,hi),pi(n,i)}}function _i(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(di(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),pi(n,e)}else{if(di(n,i))return;ci.set(i),t.uniformMatrix3fv(this.addr,!1,ci),pi(n,i)}}function Mi(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(di(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),pi(n,e)}else{if(di(n,i))return;li.set(i),t.uniformMatrix4fv(this.addr,!1,li),pi(n,i)}}function bi(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function wi(t,e){const n=this.cache;di(n,e)||(t.uniform2iv(this.addr,e),pi(n,e))}function Si(t,e){const n=this.cache;di(n,e)||(t.uniform3iv(this.addr,e),pi(n,e))}function Ti(t,e){const n=this.cache;di(n,e)||(t.uniform4iv(this.addr,e),pi(n,e))}function Ei(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function Li(t,e){const n=this.cache;di(n,e)||(t.uniform2uiv(this.addr,e),pi(n,e))}function Ai(t,e){const n=this.cache;di(n,e)||(t.uniform3uiv(this.addr,e),pi(n,e))}function Ri(t,e){const n=this.cache;di(n,e)||(t.uniform4uiv(this.addr,e),pi(n,e))}function Ci(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.safeSetTexture2D(e||ni,r)}function Pi(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||ri,r)}function Di(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.safeSetTextureCube(e||si,r)}function Ni(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(e||ii,r)}function Ii(t,e){t.uniform1fv(this.addr,e)}function zi(t,e){const n=ui(e,this.size,2);t.uniform2fv(this.addr,n)}function Oi(t,e){const n=ui(e,this.size,3);t.uniform3fv(this.addr,n)}function Bi(t,e){const n=ui(e,this.size,4);t.uniform4fv(this.addr,n)}function Fi(t,e){const n=ui(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function Ui(t,e){const n=ui(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function Hi(t,e){const n=ui(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function Gi(t,e){t.uniform1iv(this.addr,e)}function Vi(t,e){t.uniform2iv(this.addr,e)}function ki(t,e){t.uniform3iv(this.addr,e)}function Wi(t,e){t.uniform4iv(this.addr,e)}function ji(t,e){t.uniform1uiv(this.addr,e)}function qi(t,e){t.uniform2uiv(this.addr,e)}function Xi(t,e){t.uniform3uiv(this.addr,e)}function Yi(t,e){t.uniform4uiv(this.addr,e)}function Ji(t,e,n){const i=e.length,r=mi(n,i);t.uniform1iv(this.addr,r);for(let s=0;s!==i;++s)n.safeSetTexture2D(e[s]||ni,r[s])}function Zi(t,e,n){const i=e.length,r=mi(n,i);t.uniform1iv(this.addr,r);for(let s=0;s!==i;++s)n.safeSetTextureCube(e[s]||si,r[s])}function Qi(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=function(t){switch(t){case 5126:return fi;case 35664:return gi;case 35665:return vi;case 35666:return xi;case 35674:return yi;case 35675:return _i;case 35676:return Mi;case 5124:case 35670:return bi;case 35667:case 35671:return wi;case 35668:case 35672:return Si;case 35669:case 35673:return Ti;case 5125:return Ei;case 36294:return Li;case 36295:return Ai;case 36296:return Ri;case 35678:case 36198:case 36298:case 36306:case 35682:return Ci;case 35679:case 36299:case 36307:return Pi;case 35680:case 36300:case 36308:case 36293:return Di;case 36289:case 36303:case 36311:case 36292:return Ni}}(e.type)}function Ki(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return Ii;case 35664:return zi;case 35665:return Oi;case 35666:return Bi;case 35674:return Fi;case 35675:return Ui;case 35676:return Hi;case 5124:case 35670:return Gi;case 35667:case 35671:return Vi;case 35668:case 35672:return ki;case 35669:case 35673:return Wi;case 5125:return ji;case 36294:return qi;case 36295:return Xi;case 36296:return Yi;case 35678:case 36198:case 36298:case 36306:case 35682:return Ji;case 35680:case 36300:case 36308:case 36293:return Zi}}(e.type)}function $i(t){this.id=t,this.seq=[],this.map={}}Ki.prototype.updateCache=function(t){const e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),pi(e,t)},$i.prototype.setValue=function(t,e,n){const i=this.seq;for(let r=0,s=i.length;r!==s;++r){const s=i[r];s.setValue(t,e[s.id],n)}};const tr=/(\w+)(\])?(\[|\.)?/g;function er(t,e){t.seq.push(e),t.map[e.id]=e}function nr(t,e,n){const i=t.name,r=i.length;for(tr.lastIndex=0;;){const s=tr.exec(i),a=tr.lastIndex;let o=s[1];const l="]"===s[2],c=s[3];if(l&&(o|=0),void 0===c||"["===c&&a+2===r){er(n,void 0===c?new Qi(o,t,e):new Ki(o,t,e));break}{let t=n.map[o];void 0===t&&(t=new $i(o),er(n,t)),n=t}}}function ir(t,e){this.seq=[],this.map={};const n=t.getProgramParameter(e,35718);for(let i=0;i<n;++i){const n=t.getActiveUniform(e,i);nr(n,t.getUniformLocation(e,n.name),this)}}function rr(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}ir.prototype.setValue=function(t,e,n,i){const r=this.map[e];void 0!==r&&r.setValue(t,n,i)},ir.prototype.setOptional=function(t,e,n){const i=e[n];void 0!==i&&this.setValue(t,n,i)},ir.upload=function(t,e,n,i){for(let r=0,s=e.length;r!==s;++r){const s=e[r],a=n[s.id];!1!==a.needsUpdate&&s.setValue(t,a.value,i)}},ir.seqWithValue=function(t,e){const n=[];for(let i=0,r=t.length;i!==r;++i){const r=t[i];r.id in e&&n.push(r)}return n};let sr=0;function ar(t){switch(t){case O:return["Linear","( value )"];case B:return["sRGB","( value )"];case U:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case F:return["Gamma","( value, float( GAMMA_FACTOR ) )"];case 3003:return["LogLuv","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}function or(t,e,n){const i=t.getShaderParameter(e,35713),r=t.getShaderInfoLog(e).trim();if(i&&""===r)return"";return"THREE.WebGLShader: gl.getShaderInfoLog() "+n+"\n"+r+function(t){const e=t.split("\n");for(let n=0;n<e.length;n++)e[n]=n+1+": "+e[n];return e.join("\n")}(t.getShaderSource(e))}function lr(t,e){const n=ar(e);return"vec4 "+t+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function cr(t,e){const n=ar(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function hr(t,e){let n;switch(e){case 1:n="Linear";break;case 2:n="Reinhard";break;case 3:n="OptimizedCineon";break;case 4:n="ACESFilmic";break;case 5:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function ur(t){return""!==t}function dr(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function pr(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const mr=/^[ \t]*#include +<([\w\d./]+)>/gm;function fr(t){return t.replace(mr,gr)}function gr(t,e){const n=Bn[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return fr(n)}const vr=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,xr=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function yr(t){return t.replace(xr,Mr).replace(vr,_r)}function _r(t,e,n,i){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Mr(t,e,n,i)}function Mr(t,e,n,i){let r="";for(let s=parseInt(e);s<parseInt(n);s++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+s+" ]").replace(/UNROLLED_LOOP_INDEX/g,s);return r}function br(t){let e="precision "+t.precision+" float;\nprecision "+t.precision+" int;";return"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function wr(t,e,n,i){const r=t.getContext(),s=n.defines;let a=n.vertexShader,u=n.fragmentShader;const d=function(t){let e="SHADOWMAP_TYPE_BASIC";return 1===t.shadowMapType?e="SHADOWMAP_TYPE_PCF":2===t.shadowMapType?e="SHADOWMAP_TYPE_PCF_SOFT":3===t.shadowMapType&&(e="SHADOWMAP_TYPE_VSM"),e}(n),p=function(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case o:case l:e="ENVMAP_TYPE_CUBE";break;case c:case h:e="ENVMAP_TYPE_CUBE_UV"}return e}(n),m=function(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case l:case h:e="ENVMAP_MODE_REFRACTION"}return e}(n),f=function(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case 0:e="ENVMAP_BLENDING_MULTIPLY";break;case 1:e="ENVMAP_BLENDING_MIX";break;case 2:e="ENVMAP_BLENDING_ADD"}return e}(n),g=t.gammaFactor>0?t.gammaFactor:1,v=n.isWebGL2?"":function(t){return[t.extensionDerivatives||t.envMapCubeUV||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission>0)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(ur).join("\n")}(n),x=function(t){const e=[];for(const n in t){const i=t[n];!1!==i&&e.push("#define "+n+" "+i)}return e.join("\n")}(s),y=r.createProgram();let _,M,b=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(_=[x].filter(ur).join("\n"),_.length>0&&(_+="\n"),M=[v,x].filter(ur).join("\n"),M.length>0&&(M+="\n")):(_=[br(n),"#define SHADER_NAME "+n.shaderName,x,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+g,"#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+m:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+d:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(ur).join("\n"),M=[v,br(n),"#define SHADER_NAME "+n.shaderName,x,n.alphaTest?"#define ALPHATEST "+n.alphaTest+(n.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+g,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+p:"",n.envMap?"#define "+m:"",n.envMap?"#define "+f:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.sheen?"#define USE_SHEEN":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+d:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",0!==n.toneMapping?"#define TONE_MAPPING":"",0!==n.toneMapping?Bn.tonemapping_pars_fragment:"",0!==n.toneMapping?hr("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",Bn.encodings_pars_fragment,n.map?lr("mapTexelToLinear",n.mapEncoding):"",n.matcap?lr("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?lr("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?lr("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.lightMap?lr("lightMapTexelToLinear",n.lightMapEncoding):"",cr("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(ur).join("\n")),a=fr(a),a=dr(a,n),a=pr(a,n),u=fr(u),u=dr(u,n),u=pr(u,n),a=yr(a),u=yr(u),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(b="#version 300 es\n",_=["#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+_,M=["#define varying in",n.glslVersion===k?"":"out highp vec4 pc_fragColor;",n.glslVersion===k?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+M);const w=b+M+u,S=rr(r,35633,b+_+a),T=rr(r,35632,w);if(r.attachShader(y,S),r.attachShader(y,T),void 0!==n.index0AttributeName?r.bindAttribLocation(y,0,n.index0AttributeName):!0===n.morphTargets&&r.bindAttribLocation(y,0,"position"),r.linkProgram(y),t.debug.checkShaderErrors){const t=r.getProgramInfoLog(y).trim(),e=r.getShaderInfoLog(S).trim(),n=r.getShaderInfoLog(T).trim();let i=!0,s=!0;if(!1===r.getProgramParameter(y,35714)){i=!1;const e=or(r,S,"vertex"),n=or(r,T,"fragment");console.error("THREE.WebGLProgram: shader error: ",r.getError(),"35715",r.getProgramParameter(y,35715),"gl.getProgramInfoLog",t,e,n)}else""!==t?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",t):""!==e&&""!==n||(s=!1);s&&(this.diagnostics={runnable:i,programLog:t,vertexShader:{log:e,prefix:_},fragmentShader:{log:n,prefix:M}})}let E,L;return r.deleteShader(S),r.deleteShader(T),this.getUniforms=function(){return void 0===E&&(E=new ir(r,y)),E},this.getAttributes=function(){return void 0===L&&(L=function(t,e){const n={},i=t.getProgramParameter(e,35721);for(let r=0;r<i;r++){const i=t.getActiveAttrib(e,r).name;n[i]=t.getAttribLocation(e,i)}return n}(r,y)),L},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(y),this.program=void 0},this.name=n.shaderName,this.id=sr++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=S,this.fragmentShader=T,this}function Sr(t,e,n,i,r,a){const o=[],l=i.isWebGL2,u=i.logarithmicDepthBuffer,d=i.floatVertexTextures,p=i.maxVertexUniforms,m=i.vertexTextures;let f=i.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},v=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","instancingColor","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoatMap","clearcoatRoughnessMap","clearcoatNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","vertexAlphas","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","sheen","transmission","transmissionMap","thicknessMap"];function x(t){let e;return t&&t.isTexture?e=t.encoding:t&&t.isWebGLRenderTarget?(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),e=t.texture.encoding):e=O,e}return{getParameters:function(r,o,v,y,_){const M=y.fog,b=r.isMeshStandardMaterial?y.environment:null,w=e.get(r.envMap||b),S=g[r.type],T=_.isSkinnedMesh?function(t){const e=t.skeleton.bones;if(d)return 1024;{const t=p,n=Math.floor((t-20)/4),i=Math.min(n,e.length);return i<e.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+e.length+" bones. This GPU supports "+i+"."),0):i}}(_):0;let E,L;if(null!==r.precision&&(f=i.getMaxPrecision(r.precision),f!==r.precision&&console.warn("THREE.WebGLProgram.getParameters:",r.precision,"not supported, using",f,"instead.")),S){const t=Un[S];E=t.vertexShader,L=t.fragmentShader}else E=r.vertexShader,L=r.fragmentShader;const A=t.getRenderTarget();return{isWebGL2:l,shaderID:S,shaderName:r.type,vertexShader:E,fragmentShader:L,defines:r.defines,isRawShaderMaterial:!0===r.isRawShaderMaterial,glslVersion:r.glslVersion,precision:f,instancing:!0===_.isInstancedMesh,instancingColor:!0===_.isInstancedMesh&&null!==_.instanceColor,supportsVertexTextures:m,outputEncoding:null!==A?x(A.texture):t.outputEncoding,map:!!r.map,mapEncoding:x(r.map),matcap:!!r.matcap,matcapEncoding:x(r.matcap),envMap:!!w,envMapMode:w&&w.mapping,envMapEncoding:x(w),envMapCubeUV:!!w&&(w.mapping===c||w.mapping===h),lightMap:!!r.lightMap,lightMapEncoding:x(r.lightMap),aoMap:!!r.aoMap,emissiveMap:!!r.emissiveMap,emissiveMapEncoding:x(r.emissiveMap),bumpMap:!!r.bumpMap,normalMap:!!r.normalMap,objectSpaceNormalMap:1===r.normalMapType,tangentSpaceNormalMap:0===r.normalMapType,clearcoatMap:!!r.clearcoatMap,clearcoatRoughnessMap:!!r.clearcoatRoughnessMap,clearcoatNormalMap:!!r.clearcoatNormalMap,displacementMap:!!r.displacementMap,roughnessMap:!!r.roughnessMap,metalnessMap:!!r.metalnessMap,specularMap:!!r.specularMap,alphaMap:!!r.alphaMap,gradientMap:!!r.gradientMap,sheen:!!r.sheen,transmission:!!r.transmission,transmissionMap:!!r.transmissionMap,thicknessMap:!!r.thicknessMap,combine:r.combine,vertexTangents:r.normalMap&&r.vertexTangents,vertexColors:r.vertexColors,vertexAlphas:!0===r.vertexColors&&_.geometry&&_.geometry.attributes.color&&4===_.geometry.attributes.color.itemSize,vertexUvs:!!r.map||!!r.bumpMap||!!r.normalMap||!!r.specularMap||!!r.alphaMap||!!r.emissiveMap||!!r.roughnessMap||!!r.metalnessMap||!!r.clearcoatMap||!!r.clearcoatRoughnessMap||!!r.clearcoatNormalMap||!!r.displacementMap||!!r.transmissionMap||!!r.thicknessMap,uvsVertexOnly:!(r.map||r.bumpMap||r.normalMap||r.specularMap||r.alphaMap||r.emissiveMap||r.roughnessMap||r.metalnessMap||r.clearcoatNormalMap||r.transmission||r.transmissionMap||r.thicknessMap)&&!!r.displacementMap,fog:!!M,useFog:r.fog,fogExp2:M&&M.isFogExp2,flatShading:!!r.flatShading,sizeAttenuation:r.sizeAttenuation,logarithmicDepthBuffer:u,skinning:!0===_.isSkinnedMesh&&T>0,maxBones:T,useVertexTexture:d,morphTargets:r.morphTargets,morphNormals:r.morphNormals,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:r.dithering,shadowMapEnabled:t.shadowMap.enabled&&v.length>0,shadowMapType:t.shadowMap.type,toneMapping:r.toneMapped?t.toneMapping:0,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:2===r.side,flipSided:r.side===s,depthPacking:void 0!==r.depthPacking&&r.depthPacking,index0AttributeName:r.index0AttributeName,extensionDerivatives:r.extensions&&r.extensions.derivatives,extensionFragDepth:r.extensions&&r.extensions.fragDepth,extensionDrawBuffers:r.extensions&&r.extensions.drawBuffers,extensionShaderTextureLOD:r.extensions&&r.extensions.shaderTextureLOD,rendererExtensionFragDepth:l||n.has("EXT_frag_depth"),rendererExtensionDrawBuffers:l||n.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:l||n.has("EXT_shader_texture_lod"),customProgramCacheKey:r.customProgramCacheKey()}},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.fragmentShader),n.push(e.vertexShader)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);if(!1===e.isRawShaderMaterial){for(let t=0;t<v.length;t++)n.push(e[v[t]]);n.push(t.outputEncoding),n.push(t.gammaFactor)}return n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=g[t.type];let n;if(e){const t=Un[e];n=yn.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let i;for(let t=0,r=o.length;t<r;t++){const e=o[t];if(e.cacheKey===n){i=e,++i.usedTimes;break}}return void 0===i&&(i=new wr(t,n,e,r),o.push(i)),i},releaseProgram:function(t){if(0===--t.usedTimes){const e=o.indexOf(t);o[e]=o[o.length-1],o.pop(),t.destroy()}},programs:o}}function Tr(){let t=new WeakMap;return{get:function(e){let n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n},remove:function(e){t.delete(e)},update:function(e,n,i){t.get(e)[n]=i},dispose:function(){t=new WeakMap}}}function Er(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function Lr(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Ar(t){const e=[];let n=0;const i=[],r=[],s=[],a={id:-1};function o(i,r,s,o,l,c){let h=e[n];const u=t.get(s);return void 0===h?(h={id:i.id,object:i,geometry:r,material:s,program:u.program||a,groupOrder:o,renderOrder:i.renderOrder,z:l,group:c},e[n]=h):(h.id=i.id,h.object=i,h.geometry=r,h.material=s,h.program=u.program||a,h.groupOrder=o,h.renderOrder=i.renderOrder,h.z=l,h.group=c),n++,h}return{opaque:i,transmissive:r,transparent:s,init:function(){n=0,i.length=0,r.length=0,s.length=0},push:function(t,e,n,a,l,c){const h=o(t,e,n,a,l,c);n.transmission>0?r.push(h):!0===n.transparent?s.push(h):i.push(h)},unshift:function(t,e,n,a,l,c){const h=o(t,e,n,a,l,c);n.transmission>0?r.unshift(h):!0===n.transparent?s.unshift(h):i.unshift(h)},finish:function(){for(let t=n,i=e.length;t<i;t++){const n=e[t];if(null===n.id)break;n.id=null,n.object=null,n.geometry=null,n.material=null,n.program=null,n.group=null}},sort:function(t,e){i.length>1&&i.sort(t||Er),r.length>1&&r.sort(e||Lr),s.length>1&&s.sort(e||Lr)}}}function Rr(t){let e=new WeakMap;return{get:function(n,i){let r;return!1===e.has(n)?(r=new Ar(t),e.set(n,[r])):i>=e.get(n).length?(r=new Ar(t),e.get(n).push(r)):r=e.get(n)[i],r},dispose:function(){e=new WeakMap}}}function Cr(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new ut,color:new Ne};break;case"SpotLight":n={position:new ut,direction:new ut,color:new Ne,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new ut,color:new Ne,distance:0,decay:0};break;case"HemisphereLight":n={direction:new ut,skyColor:new Ne,groundColor:new Ne};break;case"RectAreaLight":n={color:new Ne,position:new ut,halfWidth:new ut,halfHeight:new ut}}return t[e.id]=n,n}}}let Pr=0;function Dr(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function Nr(t,e){const n=new Cr,i=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tt,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=n,n}}}(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let l=0;l<9;l++)r.probe.push(new ut);const s=new ut,a=new Vt,o=new Vt;return{setup:function(s){let a=0,o=0,l=0;for(let t=0;t<9;t++)r.probe[t].set(0,0,0);let c=0,h=0,u=0,d=0,p=0,m=0,f=0,g=0;s.sort(Dr);for(let t=0,e=s.length;t<e;t++){const e=s[t],v=e.color,x=e.intensity,y=e.distance,_=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)a+=v.r*x,o+=v.g*x,l+=v.b*x;else if(e.isLightProbe)for(let t=0;t<9;t++)r.probe[t].addScaledVector(e.sh.coefficients[t],x);else if(e.isDirectionalLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity),e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,r.directionalShadow[c]=n,r.directionalShadowMap[c]=_,r.directionalShadowMatrix[c]=e.shadow.matrix,m++}r.directional[c]=t,c++}else if(e.isSpotLight){const t=n.get(e);if(t.position.setFromMatrixPosition(e.matrixWorld),t.color.copy(v).multiplyScalar(x),t.distance=y,t.coneCos=Math.cos(e.angle),t.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),t.decay=e.decay,e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,r.spotShadow[u]=n,r.spotShadowMap[u]=_,r.spotShadowMatrix[u]=e.shadow.matrix,g++}r.spot[u]=t,u++}else if(e.isRectAreaLight){const t=n.get(e);t.color.copy(v).multiplyScalar(x),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),r.rectArea[d]=t,d++}else if(e.isPointLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity),t.distance=e.distance,t.decay=e.decay,e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,n.shadowCameraNear=t.camera.near,n.shadowCameraFar=t.camera.far,r.pointShadow[h]=n,r.pointShadowMap[h]=_,r.pointShadowMatrix[h]=e.shadow.matrix,f++}r.point[h]=t,h++}else if(e.isHemisphereLight){const t=n.get(e);t.skyColor.copy(e.color).multiplyScalar(x),t.groundColor.copy(e.groundColor).multiplyScalar(x),r.hemi[p]=t,p++}}d>0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(r.rectAreaLTC1=Fn.LTC_FLOAT_1,r.rectAreaLTC2=Fn.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(r.rectAreaLTC1=Fn.LTC_HALF_1,r.rectAreaLTC2=Fn.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=l;const v=r.hash;v.directionalLength===c&&v.pointLength===h&&v.spotLength===u&&v.rectAreaLength===d&&v.hemiLength===p&&v.numDirectionalShadows===m&&v.numPointShadows===f&&v.numSpotShadows===g||(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=h,r.hemi.length=p,r.directionalShadow.length=m,r.directionalShadowMap.length=m,r.pointShadow.length=f,r.pointShadowMap.length=f,r.spotShadow.length=g,r.spotShadowMap.length=g,r.directionalShadowMatrix.length=m,r.pointShadowMatrix.length=f,r.spotShadowMatrix.length=g,v.directionalLength=c,v.pointLength=h,v.spotLength=u,v.rectAreaLength=d,v.hemiLength=p,v.numDirectionalShadows=m,v.numPointShadows=f,v.numSpotShadows=g,r.version=Pr++)},setupView:function(t,e){let n=0,i=0,l=0,c=0,h=0;const u=e.matrixWorldInverse;for(let d=0,p=t.length;d<p;d++){const e=t[d];if(e.isDirectionalLight){const t=r.directional[n];t.direction.setFromMatrixPosition(e.matrixWorld),s.setFromMatrixPosition(e.target.matrixWorld),t.direction.sub(s),t.direction.transformDirection(u),n++}else if(e.isSpotLight){const t=r.spot[l];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(u),t.direction.setFromMatrixPosition(e.matrixWorld),s.setFromMatrixPosition(e.target.matrixWorld),t.direction.sub(s),t.direction.transformDirection(u),l++}else if(e.isRectAreaLight){const t=r.rectArea[c];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(u),o.identity(),a.copy(e.matrixWorld),a.premultiply(u),o.extractRotation(a),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),t.halfWidth.applyMatrix4(o),t.halfHeight.applyMatrix4(o),c++}else if(e.isPointLight){const t=r.point[i];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(u),i++}else if(e.isHemisphereLight){const t=r.hemi[h];t.direction.setFromMatrixPosition(e.matrixWorld),t.direction.transformDirection(u),t.direction.normalize(),h++}}},state:r}}function Ir(t,e){const n=new Nr(t,e),i=[],r=[];return{init:function(){i.length=0,r.length=0},state:{lightsArray:i,shadowsArray:r,lights:n},setupLights:function(){n.setup(i)},setupLightsView:function(t){n.setupView(i,t)},pushLight:function(t){i.push(t)},pushShadow:function(t){r.push(t)}}}function zr(t,e){let n=new WeakMap;return{get:function(i,r=0){let s;return!1===n.has(i)?(s=new Ir(t,e),n.set(i,[s])):r>=n.get(i).length?(s=new Ir(t,e),n.get(i).push(s)):s=n.get(i)[r],s},dispose:function(){n=new WeakMap}}}class Or extends Ee{constructor(t){super(),this.type="MeshDepthMaterial",this.depthPacking=3200,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}Or.prototype.isMeshDepthMaterial=!0;class Br extends Ee{constructor(t){super(),this.type="MeshDistanceMaterial",this.referencePosition=new ut,this.nearDistance=1,this.farDistance=1e3,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}Br.prototype.isMeshDistanceMaterial=!0;function Fr(t,e,n){let i=new Nn;const r=new tt,a=new tt,o=new ot,l=[],c=[],h={},u=n.maxTextureSize,d={0:s,1:0,2:2},p=new _n({defines:{SAMPLE_RATE:2/8,HALF_SAMPLE_RATE:1/8},uniforms:{shadow_pass:{value:null},resolution:{value:new tt},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean * HALF_SAMPLE_RATE;\n\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),f=p.clone();f.defines.HORIZONTAL_PASS=1;const g=new Je;g.setAttribute("position",new Be(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new mn(g,p),y=this;function _(n,i){const r=e.update(x);p.uniforms.shadow_pass.value=n.map.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(i,null,r,p,x,null),f.uniforms.shadow_pass.value=n.mapPass.texture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(i,null,r,f,x,null)}function M(t){const e=t<<0;let n=l[e];return void 0===n&&(n=new Or({depthPacking:3201,morphTargets:t}),l[e]=n),n}function b(t){const e=t<<0;let n=c[e];return void 0===n&&(n=new Br({morphTargets:t}),c[e]=n),n}function w(e,n,i,r,s,a,o){let l=null,c=M,u=e.customDepthMaterial;if(!0===r.isPointLight&&(c=b,u=e.customDistanceMaterial),void 0===u){let t=!1;!0===i.morphTargets&&(t=n.morphAttributes&&n.morphAttributes.position&&n.morphAttributes.position.length>0),l=c(t)}else l=u;if(t.localClippingEnabled&&!0===i.clipShadows&&0!==i.clippingPlanes.length){const t=l.uuid,e=i.uuid;let n=h[t];void 0===n&&(n={},h[t]=n);let r=n[e];void 0===r&&(r=l.clone(),n[e]=r),l=r}return l.visible=i.visible,l.wireframe=i.wireframe,l.side=3===o?null!==i.shadowSide?i.shadowSide:i.side:null!==i.shadowSide?i.shadowSide:d[i.side],l.clipShadows=i.clipShadows,l.clippingPlanes=i.clippingPlanes,l.clipIntersection=i.clipIntersection,l.wireframeLinewidth=i.wireframeLinewidth,l.linewidth=i.linewidth,!0===r.isPointLight&&!0===l.isMeshDistanceMaterial&&(l.referencePosition.setFromMatrixPosition(r.matrixWorld),l.nearDistance=s,l.farDistance=a),l}function S(n,r,s,a,o){if(!1===n.visible)return;if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&3===o)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(s.matrixWorldInverse,n.matrixWorld);const i=e.update(n),r=n.material;if(Array.isArray(r)){const e=i.groups;for(let l=0,c=e.length;l<c;l++){const c=e[l],h=r[c.materialIndex];if(h&&h.visible){const e=w(n,i,h,a,s.near,s.far,o);t.renderBufferDirect(s,null,i,e,n,c)}}}else if(r.visible){const e=w(n,i,r,a,s.near,s.far,o);t.renderBufferDirect(s,null,i,e,n,null)}}const l=n.children;for(let t=0,e=l.length;t<e;t++)S(l[t],r,s,a,o)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(e,n,s){if(!1===y.enabled)return;if(!1===y.autoUpdate&&!1===y.needsUpdate)return;if(0===e.length)return;const l=t.getRenderTarget(),c=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),d=t.state;d.setBlending(0),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(let p=0,f=e.length;p<f;p++){const l=e[p],c=l.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;r.copy(c.mapSize);const h=c.getFrameExtents();if(r.multiply(h),a.copy(c.mapSize),(r.x>u||r.y>u)&&(r.x>u&&(a.x=Math.floor(u/h.x),r.x=a.x*h.x,c.mapSize.x=a.x),r.y>u&&(a.y=Math.floor(u/h.y),r.y=a.y*h.y,c.mapSize.y=a.y)),null===c.map&&!c.isPointLightShadow&&3===this.type){const t={minFilter:v,magFilter:v,format:E};c.map=new lt(r.x,r.y,t),c.map.texture.name=l.name+".shadowMap",c.mapPass=new lt(r.x,r.y,t),c.camera.updateProjectionMatrix()}if(null===c.map){const t={minFilter:m,magFilter:m,format:E};c.map=new lt(r.x,r.y,t),c.map.texture.name=l.name+".shadowMap",c.camera.updateProjectionMatrix()}t.setRenderTarget(c.map),t.clear();const f=c.getViewportCount();for(let t=0;t<f;t++){const e=c.getViewport(t);o.set(a.x*e.x,a.y*e.y,a.x*e.z,a.y*e.w),d.viewport(o),c.updateMatrices(l,t),i=c.getFrustum(),S(n,s,c.camera,l,this.type)}c.isPointLightShadow||3!==this.type||_(c,s),c.needsUpdate=!1}y.needsUpdate=!1,t.setRenderTarget(l,c,h)}}function Ur(t,e,n){const i=n.isWebGL2;const r=new function(){let e=!1;const n=new ot;let i=null;const r=new ot(0,0,0,0);return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,s,a,o){!0===o&&(e*=a,i*=a,s*=a),n.set(e,i,s,a),!1===r.equals(n)&&(t.clearColor(e,i,s,a),r.copy(n))},reset:function(){e=!1,i=null,r.set(-1,0,0,0)}}},o=new function(){let e=!1,n=null,i=null,r=null;return{setTest:function(t){t?U(2929):H(2929)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}},l=new function(){let e=!1,n=null,i=null,r=null,s=null,a=null,o=null,l=null,c=null;return{setTest:function(t){e||(t?U(2960):H(2960))},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,a){i===e&&r===n&&s===a||(t.stencilFunc(e,n,a),i=e,r=n,s=a)},setOp:function(e,n,i){a===e&&o===n&&l===i||(t.stencilOp(e,n,i),a=e,o=n,l=i)},setLocked:function(t){e=t},setClear:function(e){c!==e&&(t.clearStencil(e),c=e)},reset:function(){e=!1,n=null,i=null,r=null,s=null,a=null,o=null,l=null,c=null}}};let c={},h=null,u={},d=null,p=!1,m=null,f=null,g=null,v=null,x=null,y=null,_=null,M=!1,b=null,w=null,S=null,T=null,E=null;const L=t.getParameter(35661);let A=!1,R=0;const C=t.getParameter(7938);-1!==C.indexOf("WebGL")?(R=parseFloat(/^WebGL (\d)/.exec(C)[1]),A=R>=1):-1!==C.indexOf("OpenGL ES")&&(R=parseFloat(/^OpenGL ES (\d)/.exec(C)[1]),A=R>=2);let P=null,D={};const N=t.getParameter(3088),I=t.getParameter(2978),z=(new ot).fromArray(N),O=(new ot).fromArray(I);function B(e,n,i){const r=new Uint8Array(4),s=t.createTexture();t.bindTexture(e,s),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let a=0;a<i;a++)t.texImage2D(n+a,0,6408,1,1,0,6408,5121,r);return s}const F={};function U(e){!0!==c[e]&&(t.enable(e),c[e]=!0)}function H(e){!1!==c[e]&&(t.disable(e),c[e]=!1)}F[3553]=B(3553,3553,1),F[34067]=B(34067,34069,6),r.setClear(0,0,0,1),o.setClear(1),l.setClear(0),U(2929),o.setFunc(3),W(!1),j(1),U(2884),k(0);const G={[a]:32774,101:32778,102:32779};if(i)G[103]=32775,G[104]=32776;else{const t=e.get("EXT_blend_minmax");null!==t&&(G[103]=t.MIN_EXT,G[104]=t.MAX_EXT)}const V={200:0,201:1,202:768,204:770,210:776,208:774,206:772,203:769,205:771,209:775,207:773};function k(e,n,i,r,s,o,l,c){if(0!==e){if(!1===p&&(U(3042),p=!0),5===e)s=s||n,o=o||i,l=l||r,n===f&&s===x||(t.blendEquationSeparate(G[n],G[s]),f=n,x=s),i===g&&r===v&&o===y&&l===_||(t.blendFuncSeparate(V[i],V[r],V[o],V[l]),g=i,v=r,y=o,_=l),m=e,M=null;else if(e!==m||c!==M){if(f===a&&x===a||(t.blendEquation(32774),f=a,x=a),c)switch(e){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,0,769,771);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}else switch(e){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFunc(0,769);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}g=null,v=null,y=null,_=null,m=e,M=c}}else!0===p&&(H(3042),p=!1)}function W(e){b!==e&&(e?t.frontFace(2304):t.frontFace(2305),b=e)}function j(e){0!==e?(U(2884),e!==w&&(1===e?t.cullFace(1029):2===e?t.cullFace(1028):t.cullFace(1032))):H(2884),w=e}function q(e,n,i){e?(U(32823),T===n&&E===i||(t.polygonOffset(n,i),T=n,E=i)):H(32823)}function X(e){void 0===e&&(e=33984+L-1),P!==e&&(t.activeTexture(e),P=e)}return{buffers:{color:r,depth:o,stencil:l},enable:U,disable:H,bindFramebuffer:function(e,n){return null===n&&null!==h&&(n=h),u[e]!==n&&(t.bindFramebuffer(e,n),u[e]=n,i&&(36009===e&&(u[36160]=n),36160===e&&(u[36009]=n)),!0)},bindXRFramebuffer:function(e){e!==h&&(t.bindFramebuffer(36160,e),h=e)},useProgram:function(e){return d!==e&&(t.useProgram(e),d=e,!0)},setBlending:k,setMaterial:function(t,e){2===t.side?H(2884):U(2884);let n=t.side===s;e&&(n=!n),W(n),1===t.blending&&!1===t.transparent?k(0):k(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),o.setFunc(t.depthFunc),o.setTest(t.depthTest),o.setMask(t.depthWrite),r.setMask(t.colorWrite);const i=t.stencilWrite;l.setTest(i),i&&(l.setMask(t.stencilWriteMask),l.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),l.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),q(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?U(32926):H(32926)},setFlipSided:W,setCullFace:j,setLineWidth:function(e){e!==S&&(A&&t.lineWidth(e),S=e)},setPolygonOffset:q,setScissorTest:function(t){t?U(3089):H(3089)},activeTexture:X,bindTexture:function(e,n){null===P&&X();let i=D[P];void 0===i&&(i={type:void 0,texture:void 0},D[P]=i),i.type===e&&i.texture===n||(t.bindTexture(e,n||F[e]),i.type=e,i.texture=n)},unbindTexture:function(){const e=D[P];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(e){!1===z.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),z.copy(e))},viewport:function(e){!1===O.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),O.copy(e))},reset:function(){t.disable(3042),t.disable(2884),t.disable(2929),t.disable(32823),t.disable(3089),t.disable(2960),t.disable(32926),t.blendEquation(32774),t.blendFunc(1,0),t.blendFuncSeparate(1,0,1,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(513),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(519,0,4294967295),t.stencilOp(7680,7680,7680),t.clearStencil(0),t.cullFace(1029),t.frontFace(2305),t.polygonOffset(0,0),t.activeTexture(33984),t.bindFramebuffer(36160,null),!0===i&&(t.bindFramebuffer(36009,null),t.bindFramebuffer(36008,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),c={},P=null,D={},h=null,u={},d=null,p=!1,m=null,f=null,g=null,v=null,x=null,y=null,_=null,M=!1,b=null,w=null,S=null,T=null,E=null,z.set(0,0,t.canvas.width,t.canvas.height),O.set(0,0,t.canvas.width,t.canvas.height),r.reset(),o.reset(),l.reset()}}}function Hr(t,e,n,i,r,s,a){const o=r.isWebGL2,l=r.maxTextures,c=r.maxCubemapSize,h=r.maxTextureSize,y=r.maxSamples,R=new WeakMap;let C,P=!1;try{P="undefined"!==typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(it){}function D(t,e){return P?new OffscreenCanvas(t,e):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function N(t,e,n,i){let r=1;if((t.width>i||t.height>i)&&(r=i/Math.max(t.width,t.height)),r<1||!0===e){if("undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap){const i=e?$:Math.floor,s=i(r*t.width),a=i(r*t.height);void 0===C&&(C=D(s,a));const o=n?D(s,a):C;o.width=s,o.height=a;return o.getContext("2d").drawImage(t,0,0,s,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+s+"x"+a+")."),o}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function I(t){return K(t.width)&&K(t.height)}function z(t,e){return t.generateMipmaps&&e&&t.minFilter!==m&&t.minFilter!==v}function O(e,n,r,s,a=1){t.generateMipmap(e);i.get(n).__maxMipLevel=Math.log2(Math.max(r,s,a))}function B(n,i,r){if(!1===o)return i;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let s=i;return 6403===i&&(5126===r&&(s=33326),5131===r&&(s=33325),5121===r&&(s=33321)),6407===i&&(5126===r&&(s=34837),5131===r&&(s=34843),5121===r&&(s=32849)),6408===i&&(5126===r&&(s=34836),5131===r&&(s=34842),5121===r&&(s=32856)),33325!==s&&33326!==s&&34842!==s&&34836!==s||e.get("EXT_color_buffer_float"),s}function F(t){return t===m||t===f||t===g?9728:9729}function U(e){const n=e.target;n.removeEventListener("dispose",U),function(e){const n=i.get(e);if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture),i.remove(e)}(n),n.isVideoTexture&&R.delete(n),a.memory.textures--}function H(e){const n=e.target;n.removeEventListener("dispose",H),function(e){const n=e.texture,r=i.get(e),s=i.get(n);if(!e)return;void 0!==s.__webglTexture&&(t.deleteTexture(s.__webglTexture),a.memory.textures--);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let i=0;i<6;i++)t.deleteFramebuffer(r.__webglFramebuffer[i]),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer[i]);else t.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&t.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer&&t.deleteRenderbuffer(r.__webglColorRenderbuffer),r.__webglDepthRenderbuffer&&t.deleteRenderbuffer(r.__webglDepthRenderbuffer);if(e.isWebGLMultipleRenderTargets)for(let o=0,l=n.length;o<l;o++){const e=i.get(n[o]);e.__webglTexture&&(t.deleteTexture(e.__webglTexture),a.memory.textures--),i.remove(n[o])}i.remove(n),i.remove(e)}(n)}let G=0;function V(t,e){const r=i.get(t);if(t.isVideoTexture&&function(t){const e=a.render.frame;R.get(t)!==e&&(R.set(t,e),t.update())}(t),t.version>0&&r.__version!==t.version){const n=t.image;if(void 0===n)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==n.complete)return void Y(r,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+e),n.bindTexture(3553,r.__webglTexture)}function k(e,r){const a=i.get(e);e.version>0&&a.__version!==e.version?function(e,i,r){if(6!==i.image.length)return;X(e,i),n.activeTexture(33984+r),n.bindTexture(34067,e.__webglTexture),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const a=i&&(i.isCompressedTexture||i.image[0].isCompressedTexture),l=i.image[0]&&i.image[0].isDataTexture,h=[];for(let t=0;t<6;t++)h[t]=a||l?l?i.image[t].image:i.image[t]:N(i.image[t],!1,!0,c);const u=h[0],d=I(u)||o,p=s.convert(i.format),m=s.convert(i.type),f=B(i.internalFormat,p,m);let g;if(q(34067,i,d),a){for(let t=0;t<6;t++){g=h[t].mipmaps;for(let e=0;e<g.length;e++){const r=g[e];i.format!==E&&i.format!==T?null!==p?n.compressedTexImage2D(34069+t,e,f,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(34069+t,e,f,r.width,r.height,0,p,m,r.data)}}e.__maxMipLevel=g.length-1}else{g=i.mipmaps;for(let t=0;t<6;t++)if(l){n.texImage2D(34069+t,0,f,h[t].width,h[t].height,0,p,m,h[t].data);for(let e=0;e<g.length;e++){const i=g[e].image[t].image;n.texImage2D(34069+t,e+1,f,i.width,i.height,0,p,m,i.data)}}else{n.texImage2D(34069+t,0,f,p,m,h[t]);for(let e=0;e<g.length;e++){const i=g[e];n.texImage2D(34069+t,e+1,f,p,m,i.image[t])}}e.__maxMipLevel=g.length}z(i,d)&&O(34067,i,u.width,u.height);e.__version=i.version,i.onUpdate&&i.onUpdate(i)}(a,e,r):(n.activeTexture(33984+r),n.bindTexture(34067,a.__webglTexture))}const W={[u]:10497,[d]:33071,[p]:33648},j={[m]:9728,[f]:9984,[g]:9986,[v]:9729,1007:9985,[x]:9987};function q(n,s,a){if(a?(t.texParameteri(n,10242,W[s.wrapS]),t.texParameteri(n,10243,W[s.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,W[s.wrapR]),t.texParameteri(n,10240,j[s.magFilter]),t.texParameteri(n,10241,j[s.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),s.wrapS===d&&s.wrapT===d||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,F(s.magFilter)),t.texParameteri(n,10241,F(s.minFilter)),s.minFilter!==m&&s.minFilter!==v&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(s.type===b&&!1===e.has("OES_texture_float_linear"))return;if(!1===o&&s.type===w&&!1===e.has("OES_texture_half_float_linear"))return;(s.anisotropy>1||i.get(s).__currentAnisotropy)&&(t.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(s.anisotropy,r.getMaxAnisotropy())),i.get(s).__currentAnisotropy=s.anisotropy)}}function X(e,n){void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",U),e.__webglTexture=t.createTexture(),a.memory.textures++)}function Y(e,i,r){let a=3553;i.isDataTexture2DArray&&(a=35866),i.isDataTexture3D&&(a=32879),X(e,i),n.activeTexture(33984+r),n.bindTexture(a,e.__webglTexture),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const l=function(t){return!o&&(t.wrapS!==d||t.wrapT!==d||t.minFilter!==m&&t.minFilter!==v)}(i)&&!1===I(i.image),c=N(i.image,l,!1,h),u=I(c)||o,p=s.convert(i.format);let f,g=s.convert(i.type),x=B(i.internalFormat,p,g);q(a,i,u);const y=i.mipmaps;if(i.isDepthTexture)x=6402,o?x=i.type===b?36012:i.type===M?33190:i.type===S?35056:33189:i.type===b&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),i.format===L&&6402===x&&i.type!==_&&i.type!==M&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=_,g=s.convert(i.type)),i.format===A&&6402===x&&(x=34041,i.type!==S&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=S,g=s.convert(i.type))),n.texImage2D(3553,0,x,c.width,c.height,0,p,g,null);else if(i.isDataTexture)if(y.length>0&&u){for(let t=0,e=y.length;t<e;t++)f=y[t],n.texImage2D(3553,t,x,f.width,f.height,0,p,g,f.data);i.generateMipmaps=!1,e.__maxMipLevel=y.length-1}else n.texImage2D(3553,0,x,c.width,c.height,0,p,g,c.data),e.__maxMipLevel=0;else if(i.isCompressedTexture){for(let t=0,e=y.length;t<e;t++)f=y[t],i.format!==E&&i.format!==T?null!==p?n.compressedTexImage2D(3553,t,x,f.width,f.height,0,f.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(3553,t,x,f.width,f.height,0,p,g,f.data);e.__maxMipLevel=y.length-1}else if(i.isDataTexture2DArray)n.texImage3D(35866,0,x,c.width,c.height,c.depth,0,p,g,c.data),e.__maxMipLevel=0;else if(i.isDataTexture3D)n.texImage3D(32879,0,x,c.width,c.height,c.depth,0,p,g,c.data),e.__maxMipLevel=0;else if(y.length>0&&u){for(let t=0,e=y.length;t<e;t++)f=y[t],n.texImage2D(3553,t,x,p,g,f);i.generateMipmaps=!1,e.__maxMipLevel=y.length-1}else n.texImage2D(3553,0,x,p,g,c),e.__maxMipLevel=0;z(i,u)&&O(a,i,c.width,c.height),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function J(e,r,a,o,l){const c=s.convert(a.format),h=s.convert(a.type),u=B(a.internalFormat,c,h);32879===l||35866===l?n.texImage3D(l,0,u,r.width,r.height,r.depth,0,c,h,null):n.texImage2D(l,0,u,r.width,r.height,0,c,h,null),n.bindFramebuffer(36160,e),t.framebufferTexture2D(36160,o,l,i.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function Z(e,n,i){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let r=33189;if(i){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===b?r=36012:e.type===M&&(r=33190));const i=tt(n);t.renderbufferStorageMultisample(36161,i,r,n.width,n.height)}else t.renderbufferStorage(36161,r,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){if(i){const e=tt(n);t.renderbufferStorageMultisample(36161,e,35056,n.width,n.height)}else t.renderbufferStorage(36161,34041,n.width,n.height);t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=!0===n.isWebGLMultipleRenderTargets?n.texture[0]:n.texture,r=s.convert(e.format),a=s.convert(e.type),o=B(e.internalFormat,r,a);if(i){const e=tt(n);t.renderbufferStorageMultisample(36161,e,o,n.width,n.height)}else t.renderbufferStorage(36161,o,n.width,n.height)}t.bindRenderbuffer(36161,null)}function Q(e){const r=i.get(e),s=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture){if(s)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,r){if(r&&r.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,e),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),V(r.depthTexture,0);const s=i.get(r.depthTexture).__webglTexture;if(r.depthTexture.format===L)t.framebufferTexture2D(36160,36096,3553,s,0);else{if(r.depthTexture.format!==A)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(36160,33306,3553,s,0)}}(r.__webglFramebuffer,e)}else if(s){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(36160,r.__webglFramebuffer[i]),r.__webglDepthbuffer[i]=t.createRenderbuffer(),Z(r.__webglDepthbuffer[i],e,!1)}else n.bindFramebuffer(36160,r.__webglFramebuffer),r.__webglDepthbuffer=t.createRenderbuffer(),Z(r.__webglDepthbuffer,e,!1);n.bindFramebuffer(36160,null)}function tt(t){return o&&t.isWebGLMultisampleRenderTarget?Math.min(y,t.samples):0}let et=!1,nt=!1;this.allocateTextureUnit=function(){const t=G;return t>=l&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+l),G+=1,t},this.resetTextureUnits=function(){G=0},this.setTexture2D=V,this.setTexture2DArray=function(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?Y(r,t,e):(n.activeTexture(33984+e),n.bindTexture(35866,r.__webglTexture))},this.setTexture3D=function(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?Y(r,t,e):(n.activeTexture(33984+e),n.bindTexture(32879,r.__webglTexture))},this.setTextureCube=k,this.setupRenderTarget=function(e){const l=e.texture,c=i.get(e),h=i.get(l);e.addEventListener("dispose",H),!0!==e.isWebGLMultipleRenderTargets&&(h.__webglTexture=t.createTexture(),h.__version=l.version,a.memory.textures++);const u=!0===e.isWebGLCubeRenderTarget,d=!0===e.isWebGLMultipleRenderTargets,p=!0===e.isWebGLMultisampleRenderTarget,m=l.isDataTexture3D||l.isDataTexture2DArray,f=I(e)||o;if(!o||l.format!==T||l.type!==b&&l.type!==w||(l.format=E,console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")),u){c.__webglFramebuffer=[];for(let e=0;e<6;e++)c.__webglFramebuffer[e]=t.createFramebuffer()}else if(c.__webglFramebuffer=t.createFramebuffer(),d)if(r.drawBuffers){const n=e.texture;for(let e=0,r=n.length;e<r;e++){const r=i.get(n[e]);void 0===r.__webglTexture&&(r.__webglTexture=t.createTexture(),a.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");else if(p)if(o){c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,c.__webglColorRenderbuffer);const i=s.convert(l.format),r=s.convert(l.type),a=B(l.internalFormat,i,r),o=tt(e);t.renderbufferStorageMultisample(36161,o,a,e.width,e.height),n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,c.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),e.depthBuffer&&(c.__webglDepthRenderbuffer=t.createRenderbuffer(),Z(c.__webglDepthRenderbuffer,e,!0)),n.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(u){n.bindTexture(34067,h.__webglTexture),q(34067,l,f);for(let t=0;t<6;t++)J(c.__webglFramebuffer[t],e,l,36064,34069+t);z(l,f)&&O(34067,l,e.width,e.height),n.bindTexture(34067,null)}else if(d){const t=e.texture;for(let r=0,s=t.length;r<s;r++){const s=t[r],a=i.get(s);n.bindTexture(3553,a.__webglTexture),q(3553,s,f),J(c.__webglFramebuffer,e,s,36064+r,3553),z(s,f)&&O(3553,s,e.width,e.height)}n.bindTexture(3553,null)}else{let t=3553;if(m)if(o){t=l.isDataTexture3D?32879:35866}else console.warn("THREE.DataTexture3D and THREE.DataTexture2DArray only supported with WebGL2.");n.bindTexture(t,h.__webglTexture),q(t,l,f),J(c.__webglFramebuffer,e,l,36064,t),z(l,f)&&O(t,l,e.width,e.height,e.depth),n.bindTexture(t,null)}e.depthBuffer&&Q(e)},this.updateRenderTargetMipmap=function(t){const e=I(t)||o,r=!0===t.isWebGLMultipleRenderTargets?t.texture:[t.texture];for(let s=0,a=r.length;s<a;s++){const a=r[s];if(z(a,e)){const e=t.isWebGLCubeRenderTarget?34067:3553,r=i.get(a).__webglTexture;n.bindTexture(e,r),O(e,a,t.width,t.height),n.bindTexture(e,null)}}},this.updateMultisampleRenderTarget=function(e){if(e.isWebGLMultisampleRenderTarget)if(o){const r=e.width,s=e.height;let a=16384;e.depthBuffer&&(a|=256),e.stencilBuffer&&(a|=1024);const o=i.get(e);n.bindFramebuffer(36008,o.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,o.__webglFramebuffer),t.blitFramebuffer(0,0,r,s,0,0,r,s,a,9728),n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,o.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.safeSetTexture2D=function(t,e){t&&t.isWebGLRenderTarget&&(!1===et&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),et=!0),t=t.texture),V(t,e)},this.safeSetTextureCube=function(t,e){t&&t.isWebGLCubeRenderTarget&&(!1===nt&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),nt=!0),t=t.texture),k(t,e)}}function Gr(t,e,n){const i=n.isWebGL2;return{convert:function(t){let n;if(t===y)return 5121;if(1017===t)return 32819;if(1018===t)return 32820;if(1019===t)return 33635;if(1010===t)return 5120;if(1011===t)return 5122;if(t===_)return 5123;if(1013===t)return 5124;if(t===M)return 5125;if(t===b)return 5126;if(t===w)return i?5131:(n=e.get("OES_texture_half_float"),null!==n?n.HALF_FLOAT_OES:null);if(1021===t)return 6406;if(t===T)return 6407;if(t===E)return 6408;if(1024===t)return 6409;if(1025===t)return 6410;if(t===L)return 6402;if(t===A)return 34041;if(1028===t)return 6403;if(1029===t)return 36244;if(1030===t)return 33319;if(1031===t)return 33320;if(1032===t)return 36248;if(1033===t)return 36249;if(33776===t||33777===t||33778===t||33779===t){if(n=e.get("WEBGL_compressed_texture_s3tc"),null===n)return null;if(33776===t)return n.COMPRESSED_RGB_S3TC_DXT1_EXT;if(33777===t)return n.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(33778===t)return n.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(33779===t)return n.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(35840===t||35841===t||35842===t||35843===t){if(n=e.get("WEBGL_compressed_texture_pvrtc"),null===n)return null;if(35840===t)return n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===t)return n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===t)return n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===t)return n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===t)return n=e.get("WEBGL_compressed_texture_etc1"),null!==n?n.COMPRESSED_RGB_ETC1_WEBGL:null;if((37492===t||37496===t)&&(n=e.get("WEBGL_compressed_texture_etc"),null!==n)){if(37492===t)return n.COMPRESSED_RGB8_ETC2;if(37496===t)return n.COMPRESSED_RGBA8_ETC2_EAC}return 37808===t||37809===t||37810===t||37811===t||37812===t||37813===t||37814===t||37815===t||37816===t||37817===t||37818===t||37819===t||37820===t||37821===t||37840===t||37841===t||37842===t||37843===t||37844===t||37845===t||37846===t||37847===t||37848===t||37849===t||37850===t||37851===t||37852===t||37853===t?(n=e.get("WEBGL_compressed_texture_astc"),null!==n?t:null):36492===t?(n=e.get("EXT_texture_compression_bptc"),null!==n?t:null):t===S?i?34042:(n=e.get("WEBGL_depth_texture"),null!==n?n.UNSIGNED_INT_24_8_WEBGL:null):void 0}}}class Vr extends bn{constructor(t=[]){super(),this.cameras=t}}Vr.prototype.isArrayCamera=!0;class kr extends pe{constructor(){super(),this.type="Group"}}kr.prototype.isGroup=!0;const Wr={type:"move"};class jr{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new kr,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new kr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ut,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ut),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new kr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ut,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ut),this._grip}dispatchEvent(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(t,e,n){let i=null,r=null,s=null;const a=this._targetRay,o=this._grip,l=this._hand;if(t&&"visible-blurred"!==e.session.visibilityState)if(null!==a&&(i=e.getPose(t.targetRaySpace,n),null!==i&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(Wr))),l&&t.hand){s=!0;for(const s of t.hand.values()){const t=e.getJointPose(s,n);if(void 0===l.joints[s.jointName]){const t=new kr;t.matrixAutoUpdate=!1,t.visible=!1,l.joints[s.jointName]=t,l.add(t)}const i=l.joints[s.jointName];null!==t&&(i.matrix.fromArray(t.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=t.radius),i.visible=null!==t}const i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],a=i.position.distanceTo(r.position),o=.02,c=.005;l.inputState.pinching&&a>o+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!l.inputState.pinching&&a<=o-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==o&&t.gripSpace&&(r=e.getPose(t.gripSpace,n),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1));return null!==a&&(a.visible=null!==i),null!==o&&(o.visible=null!==r),null!==l&&(l.visible=null!==s),this}}class qr extends W{constructor(t,e){super();const n=this,i=t.state;let r=null,s=1,a=null,o="local-floor",l=null,c=null,h=null,u=null;const d=[],p=new Map,m=new bn;m.layers.enable(1),m.viewport=new ot;const f=new bn;f.layers.enable(2),f.viewport=new ot;const g=[m,f],v=new Vr;v.layers.enable(1),v.layers.enable(2);let x=null,y=null;function _(t){const e=p.get(t.inputSource);e&&e.dispatchEvent({type:t.type,data:t.inputSource})}function M(){p.forEach((function(t,e){t.disconnect(e)})),p.clear(),x=null,y=null,i.bindXRFramebuffer(null),t.setRenderTarget(t.getRenderTarget()),L.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function b(t){const e=r.inputSources;for(let n=0;n<d.length;n++)p.set(e[n],d[n]);for(let n=0;n<t.removed.length;n++){const e=t.removed[n],i=p.get(e);i&&(i.dispatchEvent({type:"disconnected",data:e}),p.delete(e))}for(let n=0;n<t.added.length;n++){const e=t.added[n],i=p.get(e);i&&i.dispatchEvent({type:"connected",data:e})}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=d[t];return void 0===e&&(e=new jr,d[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=d[t];return void 0===e&&(e=new jr,d[t]=e),e.getGripSpace()},this.getHand=function(t){let e=d[t];return void 0===e&&(e=new jr,d[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){s=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){o=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return a},this.getSession=function(){return r},this.setSession=async function(t){if(r=t,null!==r){r.addEventListener("select",_),r.addEventListener("selectstart",_),r.addEventListener("selectend",_),r.addEventListener("squeeze",_),r.addEventListener("squeezestart",_),r.addEventListener("squeezeend",_),r.addEventListener("end",M),r.addEventListener("inputsourceschange",b);const t=e.getContextAttributes();if(!0!==t.xrCompatible&&await e.makeXRCompatible(),void 0===r.renderState.layers){const n={antialias:t.antialias,alpha:t.alpha,depth:t.depth,stencil:t.stencil,framebufferScaleFactor:s},i=new XRWebGLLayer(r,e,n);r.updateRenderState({baseLayer:i})}else{let n=0;t.depth&&(n=t.stencil?34041:6402);const i={colorFormat:t.alpha?6408:6407,depthFormat:n,scaleFactor:s};c=new XRWebGLBinding(r,e),u=c.createProjectionLayer(i),h=e.createFramebuffer(),r.updateRenderState({layers:[u]})}a=await r.requestReferenceSpace(o),L.setContext(r),L.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const w=new ut,S=new ut;function T(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===r)return;v.near=f.near=m.near=t.near,v.far=f.far=m.far=t.far,x===v.near&&y===v.far||(r.updateRenderState({depthNear:v.near,depthFar:v.far}),x=v.near,y=v.far);const e=t.parent,n=v.cameras;T(v,e);for(let r=0;r<n.length;r++)T(n[r],e);v.matrixWorld.decompose(v.position,v.quaternion,v.scale),t.position.copy(v.position),t.quaternion.copy(v.quaternion),t.scale.copy(v.scale),t.matrix.copy(v.matrix),t.matrixWorld.copy(v.matrixWorld);const i=t.children;for(let r=0,s=i.length;r<s;r++)i[r].updateMatrixWorld(!0);2===n.length?function(t,e,n){w.setFromMatrixPosition(e.matrixWorld),S.setFromMatrixPosition(n.matrixWorld);const i=w.distanceTo(S),r=e.projectionMatrix.elements,s=n.projectionMatrix.elements,a=r[14]/(r[10]-1),o=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],h=(r[8]-1)/r[0],u=(s[8]+1)/s[0],d=a*h,p=a*u,m=i/(-h+u),f=m*-h;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(f),t.translateZ(m),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert();const g=a+m,v=o+m,x=d-f,y=p+(i-f),_=l*o/v*g,M=c*o/v*g;t.projectionMatrix.makePerspective(x,y,_,M,g,v)}(v,m,f):v.projectionMatrix.copy(m.projectionMatrix)},this.getCamera=function(){return v};let E=null;const L=new In;L.setAnimationLoop((function(t,n){if(l=n.getViewerPose(a),null!==l){const t=l.views,n=r.renderState.baseLayer;void 0===r.renderState.layers&&i.bindXRFramebuffer(n.framebuffer);let s=!1;t.length!==v.cameras.length&&(v.cameras.length=0,s=!0);for(let a=0;a<t.length;a++){const o=t[a];let l=null;if(void 0===r.renderState.layers)l=n.getViewport(o);else{const t=c.getViewSubImage(u,o);i.bindXRFramebuffer(h),e.framebufferTexture2D(36160,36064,3553,t.colorTexture,0),void 0!==t.depthStencilTexture&&e.framebufferTexture2D(36160,36096,3553,t.depthStencilTexture,0),l=t.viewport}const d=g[a];d.matrix.fromArray(o.transform.matrix),d.projectionMatrix.fromArray(o.projectionMatrix),d.viewport.set(l.x,l.y,l.width,l.height),0===a&&v.matrix.copy(d.matrix),!0===s&&v.cameras.push(d)}}const s=r.inputSources;for(let e=0;e<d.length;e++){const t=d[e],i=s[e];t.update(i,n,a)}E&&E(t,n)})),this.setAnimationLoop=function(t){E=t},this.dispose=function(){}}}function Xr(t){function e(e,n){e.opacity.value=n.opacity,n.color&&e.diffuse.value.copy(n.color),n.emissive&&e.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(e.map.value=n.map),n.alphaMap&&(e.alphaMap.value=n.alphaMap),n.specularMap&&(e.specularMap.value=n.specularMap);const i=t.get(n).envMap;if(i){e.envMap.value=i,e.flipEnvMap.value=i.isCubeTexture&&i._needsFlipEnvMap?-1:1,e.reflectivity.value=n.reflectivity,e.refractionRatio.value=n.refractionRatio;const r=t.get(i).__maxMipLevel;void 0!==r&&(e.maxMipLevel.value=r)}let r,s;n.lightMap&&(e.lightMap.value=n.lightMap,e.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(e.aoMap.value=n.aoMap,e.aoMapIntensity.value=n.aoMapIntensity),n.map?r=n.map:n.specularMap?r=n.specularMap:n.displacementMap?r=n.displacementMap:n.normalMap?r=n.normalMap:n.bumpMap?r=n.bumpMap:n.roughnessMap?r=n.roughnessMap:n.metalnessMap?r=n.metalnessMap:n.alphaMap?r=n.alphaMap:n.emissiveMap?r=n.emissiveMap:n.clearcoatMap?r=n.clearcoatMap:n.clearcoatNormalMap?r=n.clearcoatNormalMap:n.clearcoatRoughnessMap&&(r=n.clearcoatRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),e.uvTransform.value.copy(r.matrix)),n.aoMap?s=n.aoMap:n.lightMap&&(s=n.lightMap),void 0!==s&&(s.isWebGLRenderTarget&&(s=s.texture),!0===s.matrixAutoUpdate&&s.updateMatrix(),e.uv2Transform.value.copy(s.matrix))}function n(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(e.emissiveMap.value=n.emissiveMap),n.bumpMap&&(e.bumpMap.value=n.bumpMap,e.bumpScale.value=n.bumpScale,n.side===s&&(e.bumpScale.value*=-1)),n.normalMap&&(e.normalMap.value=n.normalMap,e.normalScale.value.copy(n.normalScale),n.side===s&&e.normalScale.value.negate()),n.displacementMap&&(e.displacementMap.value=n.displacementMap,e.displacementScale.value=n.displacementScale,e.displacementBias.value=n.displacementBias);t.get(n).envMap&&(e.envMapIntensity.value=n.envMapIntensity)}return{refreshFogUniforms:function(t,e){t.fogColor.value.copy(e.color),e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)},refreshMaterialUniforms:function(t,i,r,a,o){i.isMeshBasicMaterial?e(t,i):i.isMeshLambertMaterial?(e(t,i),function(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}(t,i)):i.isMeshToonMaterial?(e(t,i),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap);e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===s&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===s&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshPhongMaterial?(e(t,i),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===s&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===s&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshStandardMaterial?(e(t,i),i.isMeshPhysicalMaterial?function(t,e,i){n(t,e),t.reflectivity.value=e.reflectivity,t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.sheen&&t.sheen.value.copy(e.sheen);e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap);e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap);e.clearcoatNormalMap&&(t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),t.clearcoatNormalMap.value=e.clearcoatNormalMap,e.side===s&&t.clearcoatNormalScale.value.negate());t.transmission.value=e.transmission,e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap);e.transmission>0&&(t.transmissionSamplerMap.value=i.texture,t.transmissionSamplerSize.value.set(i.width,i.height));t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap);t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor)}(t,i,o):n(t,i)):i.isMeshMatcapMaterial?(e(t,i),function(t,e){e.matcap&&(t.matcap.value=e.matcap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===s&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===s&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshDepthMaterial?(e(t,i),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isMeshDistanceMaterial?(e(t,i),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias);t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}(t,i)):i.isMeshNormalMaterial?(e(t,i),function(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===s&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===s&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,i)):i.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity}(t,i),i.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,i)):i.isPointsMaterial?function(t,e,n,i){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*n,t.scale.value=.5*i,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);let r;e.map?r=e.map:e.alphaMap&&(r=e.alphaMap);void 0!==r&&(!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix))}(t,i,r,a):i.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);let n;e.map?n=e.map:e.alphaMap&&(n=e.alphaMap);void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),t.uvTransform.value.copy(n.matrix))}(t,i):i.isShadowMaterial?(t.color.value.copy(i.color),t.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function Yr(t={}){const e=void 0!==t.canvas?t.canvas:function(){const t=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return t.style.display="block",t}(),n=void 0!==t.context?t.context:null,i=void 0!==t.alpha&&t.alpha,r=void 0===t.depth||t.depth,a=void 0===t.stencil||t.stencil,o=void 0!==t.antialias&&t.antialias,l=void 0===t.premultipliedAlpha||t.premultipliedAlpha,c=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,h=void 0!==t.powerPreference?t.powerPreference:"default",u=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat;let p=null,f=null;const g=[],v=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=O,this.physicallyCorrectLights=!1,this.toneMapping=0,this.toneMappingExposure=1;const _=this;let M=!1,S=0,T=0,L=null,A=-1,R=null;const C=new ot,P=new ot;let D=null,N=e.width,I=e.height,z=1,B=null,F=null;const U=new ot(0,0,N,I),H=new ot(0,0,N,I);let G=!1;const V=[],k=new Nn;let W=!1,j=!1,q=null;const X=new Vt,Y=new ut,J={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Z(){return null===L?z:1}let Q,K,$,tt,et,nt,it,rt,st,at,ht,dt,pt,mt,ft,gt,vt,xt,yt,_t,Mt,bt,wt=n;function St(t,n){for(let i=0;i<t.length;i++){const r=t[i],s=e.getContext(r,n);if(null!==s)return s}return null}try{const t={alpha:i,depth:r,stencil:a,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:h,failIfMajorPerformanceCaveat:u};if(e.addEventListener("webglcontextlost",Lt,!1),e.addEventListener("webglcontextrestored",At,!1),null===wt){const e=["webgl2","webgl","experimental-webgl"];if(!0===_.isWebGL1Renderer&&e.shift(),wt=St(e,t),null===wt)throw St(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===wt.getShaderPrecisionFormat&&(wt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(Ht){throw console.error("THREE.WebGLRenderer: "+Ht.message),Ht}function Tt(){Q=new qn(wt),K=new kn(wt,Q,t),Q.init(K),Mt=new Gr(wt,Q,K),$=new Ur(wt,Q,K),V[0]=1029,tt=new Jn(wt),et=new Tr,nt=new Hr(wt,Q,$,et,K,Mt,tt),it=new jn(_),rt=new zn(wt,K),bt=new Gn(wt,Q,rt,K),st=new Xn(wt,rt,tt,bt),at=new $n(wt,st,rt,tt),xt=new Kn(wt),ft=new Wn(et),ht=new Sr(_,it,Q,K,bt,ft),dt=new Xr(et),pt=new Rr(et),mt=new zr(Q,K),vt=new Hn(_,it,$,at,l),gt=new Fr(_,at,K),yt=new Vn(wt,Q,tt,K),_t=new Yn(wt,Q,tt,K),tt.programs=ht.programs,_.capabilities=K,_.extensions=Q,_.properties=et,_.renderLists=pt,_.shadowMap=gt,_.state=$,_.info=tt}Tt();const Et=new qr(_,wt);function Lt(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),M=!0}function At(){console.log("THREE.WebGLRenderer: Context Restored."),M=!1;const t=tt.autoReset,e=gt.enabled,n=gt.autoUpdate,i=gt.needsUpdate,r=gt.type;Tt(),tt.autoReset=t,gt.enabled=e,gt.autoUpdate=n,gt.needsUpdate=i,gt.type=r}function Rt(t){const e=t.target;e.removeEventListener("dispose",Rt),function(t){(function(t){const e=et.get(t).programs;void 0!==e&&e.forEach((function(t){ht.releaseProgram(t)}))})(t),et.remove(t)}(e)}this.xr=Et,this.getContext=function(){return wt},this.getContextAttributes=function(){return wt.getContextAttributes()},this.forceContextLoss=function(){const t=Q.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=Q.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return z},this.setPixelRatio=function(t){void 0!==t&&(z=t,this.setSize(N,I,!1))},this.getSize=function(t){return t.set(N,I)},this.setSize=function(t,n,i){Et.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(N=t,I=n,e.width=Math.floor(t*z),e.height=Math.floor(n*z),!1!==i&&(e.style.width=t+"px",e.style.height=n+"px"),this.setViewport(0,0,t,n))},this.getDrawingBufferSize=function(t){return t.set(N*z,I*z).floor()},this.setDrawingBufferSize=function(t,n,i){N=t,I=n,z=i,e.width=Math.floor(t*i),e.height=Math.floor(n*i),this.setViewport(0,0,t,n)},this.getCurrentViewport=function(t){return t.copy(C)},this.getViewport=function(t){return t.copy(U)},this.setViewport=function(t,e,n,i){t.isVector4?U.set(t.x,t.y,t.z,t.w):U.set(t,e,n,i),$.viewport(C.copy(U).multiplyScalar(z).floor())},this.getScissor=function(t){return t.copy(H)},this.setScissor=function(t,e,n,i){t.isVector4?H.set(t.x,t.y,t.z,t.w):H.set(t,e,n,i),$.scissor(P.copy(H).multiplyScalar(z).floor())},this.getScissorTest=function(){return G},this.setScissorTest=function(t){$.setScissorTest(G=t)},this.setOpaqueSort=function(t){B=t},this.setTransparentSort=function(t){F=t},this.getClearColor=function(t){return t.copy(vt.getClearColor())},this.setClearColor=function(){vt.setClearColor.apply(vt,arguments)},this.getClearAlpha=function(){return vt.getClearAlpha()},this.setClearAlpha=function(){vt.setClearAlpha.apply(vt,arguments)},this.clear=function(t,e,n){let i=0;(void 0===t||t)&&(i|=16384),(void 0===e||e)&&(i|=256),(void 0===n||n)&&(i|=1024),wt.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",Lt,!1),e.removeEventListener("webglcontextrestored",At,!1),pt.dispose(),mt.dispose(),et.dispose(),it.dispose(),at.dispose(),bt.dispose(),Et.dispose(),Et.removeEventListener("sessionstart",Pt),Et.removeEventListener("sessionend",Dt),q&&(q.dispose(),q=null),Nt.stop()},this.renderBufferImmediate=function(t,e){bt.initAttributes();const n=et.get(t);t.hasPositions&&!n.position&&(n.position=wt.createBuffer()),t.hasNormals&&!n.normal&&(n.normal=wt.createBuffer()),t.hasUvs&&!n.uv&&(n.uv=wt.createBuffer()),t.hasColors&&!n.color&&(n.color=wt.createBuffer());const i=e.getAttributes();t.hasPositions&&(wt.bindBuffer(34962,n.position),wt.bufferData(34962,t.positionArray,35048),bt.enableAttribute(i.position),wt.vertexAttribPointer(i.position,3,5126,!1,0,0)),t.hasNormals&&(wt.bindBuffer(34962,n.normal),wt.bufferData(34962,t.normalArray,35048),bt.enableAttribute(i.normal),wt.vertexAttribPointer(i.normal,3,5126,!1,0,0)),t.hasUvs&&(wt.bindBuffer(34962,n.uv),wt.bufferData(34962,t.uvArray,35048),bt.enableAttribute(i.uv),wt.vertexAttribPointer(i.uv,2,5126,!1,0,0)),t.hasColors&&(wt.bindBuffer(34962,n.color),wt.bufferData(34962,t.colorArray,35048),bt.enableAttribute(i.color),wt.vertexAttribPointer(i.color,3,5126,!1,0,0)),bt.disableUnusedAttributes(),wt.drawArrays(4,0,t.count),t.count=0},this.renderBufferDirect=function(t,e,n,i,r,s){null===e&&(e=J);const a=r.isMesh&&r.matrixWorld.determinant()<0,o=Ut(t,e,i,r);$.setMaterial(i,a);let l=n.index;const c=n.attributes.position;if(null===l){if(void 0===c||0===c.count)return}else if(0===l.count)return;let h,u=1;!0===i.wireframe&&(l=st.getWireframeAttribute(n),u=2),(i.morphTargets||i.morphNormals)&&xt.update(r,n,i,o),bt.setup(r,i,o,n,l);let d=yt;null!==l&&(h=rt.get(l),d=_t,d.setIndex(h));const p=null!==l?l.count:c.count,m=n.drawRange.start*u,f=n.drawRange.count*u,g=null!==s?s.start*u:0,v=null!==s?s.count*u:1/0,x=Math.max(m,g),y=Math.min(p,m+f,g+v)-1,_=Math.max(0,y-x+1);if(0!==_){if(r.isMesh)!0===i.wireframe?($.setLineWidth(i.wireframeLinewidth*Z()),d.setMode(1)):d.setMode(4);else if(r.isLine){let t=i.linewidth;void 0===t&&(t=1),$.setLineWidth(t*Z()),r.isLineSegments?d.setMode(1):r.isLineLoop?d.setMode(2):d.setMode(3)}else r.isPoints?d.setMode(0):r.isSprite&&d.setMode(4);if(r.isInstancedMesh)d.renderInstances(x,_,r.count);else if(n.isInstancedBufferGeometry){const t=Math.min(n.instanceCount,n._maxInstanceCount);d.renderInstances(x,_,t)}else d.render(x,_)}},this.compile=function(t,e){f=mt.get(t),f.init(),t.traverseVisible((function(t){t.isLight&&t.layers.test(e.layers)&&(f.pushLight(t),t.castShadow&&f.pushShadow(t))})),f.setupLights(),t.traverse((function(e){const n=e.material;if(n)if(Array.isArray(n))for(let i=0;i<n.length;i++){Bt(n[i],t,e)}else Bt(n,t,e)}))};let Ct=null;function Pt(){Nt.stop()}function Dt(){Nt.start()}const Nt=new In;function It(t,e,n,i){if(!1===t.visible)return;if(t.layers.test(e.layers))if(t.isGroup)n=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)f.pushLight(t),t.castShadow&&f.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||k.intersectsSprite(t)){i&&Y.setFromMatrixPosition(t.matrixWorld).applyMatrix4(X);const e=at.update(t),r=t.material;r.visible&&p.push(t,e,r,n,Y.z,null)}}else if(t.isImmediateRenderObject)i&&Y.setFromMatrixPosition(t.matrixWorld).applyMatrix4(X),p.push(t,null,t.material,n,Y.z,null);else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==tt.render.frame&&(t.skeleton.update(),t.skeleton.frame=tt.render.frame),!t.frustumCulled||k.intersectsObject(t))){i&&Y.setFromMatrixPosition(t.matrixWorld).applyMatrix4(X);const e=at.update(t),r=t.material;if(Array.isArray(r)){const i=e.groups;for(let s=0,a=i.length;s<a;s++){const a=i[s],o=r[a.materialIndex];o&&o.visible&&p.push(t,e,o,n,Y.z,a)}}else r.visible&&p.push(t,e,r,n,Y.z,null)}const r=t.children;for(let s=0,a=r.length;s<a;s++)It(r[s],e,n,i)}function zt(t,e,n){const i=!0===e.isScene?e.overrideMaterial:null;for(let r=0,s=t.length;r<s;r++){const s=t[r],a=s.object,o=s.geometry,l=null===i?s.material:i,c=s.group;if(n.isArrayCamera){const t=n.cameras;for(let n=0,i=t.length;n<i;n++){const i=t[n];a.layers.test(i.layers)&&($.viewport(C.copy(i.viewport)),f.setupLightsView(i),Ot(a,e,i,o,l,c))}}else Ot(a,e,n,o,l,c)}}function Ot(t,e,n,i,r,a){if(t.onBeforeRender(_,e,n,i,r,a),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),t.isImmediateRenderObject){const i=Ut(n,e,r,t);$.setMaterial(r),bt.reset(),function(t,e){t.render((function(t){_.renderBufferImmediate(t,e)}))}(t,i)}else!0===r.transparent&&2===r.side?(r.side=s,r.needsUpdate=!0,_.renderBufferDirect(n,e,i,r,t,a),r.side=0,r.needsUpdate=!0,_.renderBufferDirect(n,e,i,r,t,a),r.side=2):_.renderBufferDirect(n,e,i,r,t,a);t.onAfterRender(_,e,n,i,r,a)}function Bt(t,e,n){!0!==e.isScene&&(e=J);const i=et.get(t),r=f.state.lights,s=f.state.shadowsArray,a=r.state.version,o=ht.getParameters(t,r.state,s,e,n),l=ht.getProgramCacheKey(o);let c=i.programs;i.environment=t.isMeshStandardMaterial?e.environment:null,i.fog=e.fog,i.envMap=it.get(t.envMap||i.environment),void 0===c&&(t.addEventListener("dispose",Rt),c=new Map,i.programs=c);let h=c.get(l);if(void 0!==h){if(i.currentProgram===h&&i.lightsStateVersion===a)return Ft(t,o),h}else o.uniforms=ht.getUniforms(t),t.onBuild(o,_),t.onBeforeCompile(o,_),h=ht.acquireProgram(o,l),c.set(l,h),i.uniforms=o.uniforms;const u=i.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(u.clippingPlanes=ft.uniform),Ft(t,o),i.needsLights=function(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}(t),i.lightsStateVersion=a,i.needsLights&&(u.ambientLightColor.value=r.state.ambient,u.lightProbe.value=r.state.probe,u.directionalLights.value=r.state.directional,u.directionalLightShadows.value=r.state.directionalShadow,u.spotLights.value=r.state.spot,u.spotLightShadows.value=r.state.spotShadow,u.rectAreaLights.value=r.state.rectArea,u.ltc_1.value=r.state.rectAreaLTC1,u.ltc_2.value=r.state.rectAreaLTC2,u.pointLights.value=r.state.point,u.pointLightShadows.value=r.state.pointShadow,u.hemisphereLights.value=r.state.hemi,u.directionalShadowMap.value=r.state.directionalShadowMap,u.directionalShadowMatrix.value=r.state.directionalShadowMatrix,u.spotShadowMap.value=r.state.spotShadowMap,u.spotShadowMatrix.value=r.state.spotShadowMatrix,u.pointShadowMap.value=r.state.pointShadowMap,u.pointShadowMatrix.value=r.state.pointShadowMatrix);const d=h.getUniforms(),p=ir.seqWithValue(d.seq,u);return i.currentProgram=h,i.uniformsList=p,h}function Ft(t,e){const n=et.get(t);n.outputEncoding=e.outputEncoding,n.instancing=e.instancing,n.skinning=e.skinning,n.numClippingPlanes=e.numClippingPlanes,n.numIntersection=e.numClipIntersection,n.vertexAlphas=e.vertexAlphas}function Ut(t,e,n,i){!0!==e.isScene&&(e=J),nt.resetTextureUnits();const r=e.fog,s=n.isMeshStandardMaterial?e.environment:null,a=null===L?_.outputEncoding:L.texture.encoding,o=it.get(n.envMap||s),l=!0===n.vertexColors&&i.geometry&&i.geometry.attributes.color&&4===i.geometry.attributes.color.itemSize,c=et.get(n),h=f.state.lights;if(!0===W&&(!0===j||t!==R)){const e=t===R&&n.id===A;ft.setState(n,t,e)}let u=!1;n.version===c.__version?c.needsLights&&c.lightsStateVersion!==h.state.version||c.outputEncoding!==a||i.isInstancedMesh&&!1===c.instancing?u=!0:i.isInstancedMesh||!0!==c.instancing?i.isSkinnedMesh&&!1===c.skinning?u=!0:i.isSkinnedMesh||!0!==c.skinning?c.envMap!==o||n.fog&&c.fog!==r?u=!0:void 0===c.numClippingPlanes||c.numClippingPlanes===ft.numPlanes&&c.numIntersection===ft.numIntersection?c.vertexAlphas!==l&&(u=!0):u=!0:u=!0:u=!0:(u=!0,c.__version=n.version);let d=c.currentProgram;!0===u&&(d=Bt(n,e,i));let p=!1,m=!1,g=!1;const v=d.getUniforms(),x=c.uniforms;if($.useProgram(d.program)&&(p=!0,m=!0,g=!0),n.id!==A&&(A=n.id,m=!0),p||R!==t){if(v.setValue(wt,"projectionMatrix",t.projectionMatrix),K.logarithmicDepthBuffer&&v.setValue(wt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),R!==t&&(R=t,m=!0,g=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshStandardMaterial||n.envMap){const e=v.map.cameraPosition;void 0!==e&&e.setValue(wt,Y.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial)&&v.setValue(wt,"isOrthographic",!0===t.isOrthographicCamera),(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.isShadowMaterial||i.isSkinnedMesh)&&v.setValue(wt,"viewMatrix",t.matrixWorldInverse)}if(i.isSkinnedMesh){v.setOptional(wt,i,"bindMatrix"),v.setOptional(wt,i,"bindMatrixInverse");const t=i.skeleton;t&&(K.floatVertexTextures?(null===t.boneTexture&&t.computeBoneTexture(),v.setValue(wt,"boneTexture",t.boneTexture,nt),v.setValue(wt,"boneTextureSize",t.boneTextureSize)):v.setOptional(wt,t,"boneMatrices"))}var y,M;return(m||c.receiveShadow!==i.receiveShadow)&&(c.receiveShadow=i.receiveShadow,v.setValue(wt,"receiveShadow",i.receiveShadow)),m&&(v.setValue(wt,"toneMappingExposure",_.toneMappingExposure),c.needsLights&&(M=g,(y=x).ambientLightColor.needsUpdate=M,y.lightProbe.needsUpdate=M,y.directionalLights.needsUpdate=M,y.directionalLightShadows.needsUpdate=M,y.pointLights.needsUpdate=M,y.pointLightShadows.needsUpdate=M,y.spotLights.needsUpdate=M,y.spotLightShadows.needsUpdate=M,y.rectAreaLights.needsUpdate=M,y.hemisphereLights.needsUpdate=M),r&&n.fog&&dt.refreshFogUniforms(x,r),dt.refreshMaterialUniforms(x,n,z,I,q),ir.upload(wt,c.uniformsList,x,nt)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(ir.upload(wt,c.uniformsList,x,nt),n.uniformsNeedUpdate=!1),n.isSpriteMaterial&&v.setValue(wt,"center",i.center),v.setValue(wt,"modelViewMatrix",i.modelViewMatrix),v.setValue(wt,"normalMatrix",i.normalMatrix),v.setValue(wt,"modelMatrix",i.matrixWorld),d}Nt.setAnimationLoop((function(t){Ct&&Ct(t)})),"undefined"!==typeof window&&Nt.setContext(window),this.setAnimationLoop=function(t){Ct=t,Et.setAnimationLoop(t),null===t?Nt.stop():Nt.start()},Et.addEventListener("sessionstart",Pt),Et.addEventListener("sessionend",Dt),this.render=function(t,e){if(void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===M)return;!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),!0===Et.enabled&&!0===Et.isPresenting&&(!0===Et.cameraAutoUpdate&&Et.updateCamera(e),e=Et.getCamera()),!0===t.isScene&&t.onBeforeRender(_,t,e,L),f=mt.get(t,v.length),f.init(),v.push(f),X.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),k.setFromProjectionMatrix(X),j=this.localClippingEnabled,W=ft.init(this.clippingPlanes,j,e),p=pt.get(t,g.length),p.init(),g.push(p),It(t,e,0,_.sortObjects),p.finish(),!0===_.sortObjects&&p.sort(B,F),!0===W&&ft.beginShadows();const n=f.state.shadowsArray;gt.render(n,t,e),f.setupLights(),f.setupLightsView(e),!0===W&&ft.endShadows(),!0===this.info.autoReset&&this.info.reset(),vt.render(p,t);const i=p.opaque,r=p.transmissive,s=p.transparent;i.length>0&&zt(i,t,e),r.length>0&&function(t,e,n,i){if(null===q){const t=!0===o&&!0===K.isWebGL2;q=new(t?ct:lt)(1024,1024,{generateMipmaps:!0,type:null!==Mt.convert(w)?w:y,minFilter:x,magFilter:m,wrapS:d,wrapT:d})}const r=_.getRenderTarget();_.setRenderTarget(q),_.clear();const s=_.toneMapping;_.toneMapping=0,zt(t,n,i),_.toneMapping=s,nt.updateMultisampleRenderTarget(q),nt.updateRenderTargetMipmap(q),_.setRenderTarget(r),zt(e,n,i)}(i,r,t,e),s.length>0&&zt(s,t,e),null!==L&&(nt.updateMultisampleRenderTarget(L),nt.updateRenderTargetMipmap(L)),!0===t.isScene&&t.onAfterRender(_,t,e),$.buffers.depth.setTest(!0),$.buffers.depth.setMask(!0),$.buffers.color.setMask(!0),$.setPolygonOffset(!1),bt.resetDefaultState(),A=-1,R=null,v.pop(),f=v.length>0?v[v.length-1]:null,g.pop(),p=g.length>0?g[g.length-1]:null},this.getActiveCubeFace=function(){return S},this.getActiveMipmapLevel=function(){return T},this.getRenderTarget=function(){return L},this.setRenderTarget=function(t,e=0,n=0){L=t,S=e,T=n,t&&void 0===et.get(t).__webglFramebuffer&&nt.setupRenderTarget(t);let i=null,r=!1,s=!1;if(t){const n=t.texture;(n.isDataTexture3D||n.isDataTexture2DArray)&&(s=!0);const a=et.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(i=a[e],r=!0):i=t.isWebGLMultisampleRenderTarget?et.get(t).__webglMultisampledFramebuffer:a,C.copy(t.viewport),P.copy(t.scissor),D=t.scissorTest}else C.copy(U).multiplyScalar(z).floor(),P.copy(H).multiplyScalar(z).floor(),D=G;if($.bindFramebuffer(36160,i)&&K.drawBuffers){let e=!1;if(t)if(t.isWebGLMultipleRenderTargets){const n=t.texture;if(V.length!==n.length||36064!==V[0]){for(let t=0,e=n.length;t<e;t++)V[t]=36064+t;V.length=n.length,e=!0}}else 1===V.length&&36064===V[0]||(V[0]=36064,V.length=1,e=!0);else 1===V.length&&1029===V[0]||(V[0]=1029,V.length=1,e=!0);e&&(K.isWebGL2?wt.drawBuffers(V):Q.get("WEBGL_draw_buffers").drawBuffersWEBGL(V))}if($.viewport(C),$.scissor(P),$.setScissorTest(D),r){const i=et.get(t.texture);wt.framebufferTexture2D(36160,36064,34069+e,i.__webglTexture,n)}else if(s){const i=et.get(t.texture),r=e||0;wt.framebufferTextureLayer(36160,36064,i.__webglTexture,n||0,r)}},this.readRenderTargetPixels=function(t,e,n,i,r,s,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=et.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(o=o[a]),o){$.bindFramebuffer(36160,o);try{const a=t.texture,o=a.format,l=a.type;if(o!==E&&Mt.convert(o)!==wt.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===w&&(Q.has("EXT_color_buffer_half_float")||K.isWebGL2&&Q.has("EXT_color_buffer_float"));if(l!==y&&Mt.convert(l)!==wt.getParameter(35738)&&(l!==b||!(K.isWebGL2||Q.has("OES_texture_float")||Q.has("WEBGL_color_buffer_float")))&&!c)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===wt.checkFramebufferStatus(36160)?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&wt.readPixels(e,n,i,r,Mt.convert(o),Mt.convert(l),s):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{const t=null!==L?et.get(L).__webglFramebuffer:null;$.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){const i=Math.pow(2,-n),r=Math.floor(e.image.width*i),s=Math.floor(e.image.height*i);let a=Mt.convert(e.format);K.isWebGL2&&(6407===a&&(a=32849),6408===a&&(a=32856)),nt.setTexture2D(e,0),wt.copyTexImage2D(3553,n,a,t.x,t.y,r,s,0),$.unbindTexture()},this.copyTextureToTexture=function(t,e,n,i=0){const r=e.image.width,s=e.image.height,a=Mt.convert(n.format),o=Mt.convert(n.type);nt.setTexture2D(n,0),wt.pixelStorei(37440,n.flipY),wt.pixelStorei(37441,n.premultiplyAlpha),wt.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?wt.texSubImage2D(3553,i,t.x,t.y,r,s,a,o,e.image.data):e.isCompressedTexture?wt.compressedTexSubImage2D(3553,i,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):wt.texSubImage2D(3553,i,t.x,t.y,a,o,e.image),0===i&&n.generateMipmaps&&wt.generateMipmap(3553),$.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,i,r=0){if(_.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const s=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,o=t.max.z-t.min.z+1,l=Mt.convert(i.format),c=Mt.convert(i.type);let h;if(i.isDataTexture3D)nt.setTexture3D(i,0),h=32879;else{if(!i.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");nt.setTexture2DArray(i,0),h=35866}wt.pixelStorei(37440,i.flipY),wt.pixelStorei(37441,i.premultiplyAlpha),wt.pixelStorei(3317,i.unpackAlignment);const u=wt.getParameter(3314),d=wt.getParameter(32878),p=wt.getParameter(3316),m=wt.getParameter(3315),f=wt.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;wt.pixelStorei(3314,g.width),wt.pixelStorei(32878,g.height),wt.pixelStorei(3316,t.min.x),wt.pixelStorei(3315,t.min.y),wt.pixelStorei(32877,t.min.z),n.isDataTexture||n.isDataTexture3D?wt.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,g.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),wt.compressedTexSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,g.data)):wt.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,g),wt.pixelStorei(3314,u),wt.pixelStorei(32878,d),wt.pixelStorei(3316,p),wt.pixelStorei(3315,m),wt.pixelStorei(32877,f),0===r&&i.generateMipmaps&&wt.generateMipmap(h),$.unbindTexture()},this.initTexture=function(t){nt.setTexture2D(t,0),$.unbindTexture()},this.resetState=function(){S=0,T=0,L=null,$.reset(),bt.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}(class extends Yr{}).prototype.isWebGL1Renderer=!0;class Jr{constructor(t,e=25e-5){this.name="",this.color=new Ne(t),this.density=e}clone(){return new Jr(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}Jr.prototype.isFogExp2=!0;class Zr{constructor(t,e=1,n=1e3){this.name="",this.color=new Ne(t),this.near=e,this.far=n}clone(){return new Zr(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}Zr.prototype.isFog=!0;class Qr extends pe{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}Qr.prototype.isScene=!0;class Kr{constructor(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=G,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Y()}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let i=0,r=this.stride;i<r;i++)this.array[t+i]=e.array[n+i];return this}set(t,e=0){return this.array.set(t,e),this}clone(t){void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Y()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(e,this.stride);return n.setUsage(this.usage),n}onUpload(t){return this.onUploadCallback=t,this}toJSON(t){return void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Y()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}Kr.prototype.isInterleavedBuffer=!0;const $r=new ut;class ts{constructor(t,e,n,i=!1){this.name="",this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(t){this.data.needsUpdate=t}applyMatrix4(t){for(let e=0,n=this.data.count;e<n;e++)$r.x=this.getX(e),$r.y=this.getY(e),$r.z=this.getZ(e),$r.applyMatrix4(t),this.setXYZ(e,$r.x,$r.y,$r.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)$r.x=this.getX(e),$r.y=this.getY(e),$r.z=this.getZ(e),$r.applyNormalMatrix(t),this.setXYZ(e,$r.x,$r.y,$r.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)$r.x=this.getX(e),$r.y=this.getY(e),$r.z=this.getZ(e),$r.transformDirection(t),this.setXYZ(e,$r.x,$r.y,$r.z);return this}setX(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this}setY(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this}setZ(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this}setW(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this}getX(t){return this.data.array[t*this.data.stride+this.offset]}getY(t){return this.data.array[t*this.data.stride+this.offset+1]}getZ(t){return this.data.array[t*this.data.stride+this.offset+2]}getW(t){return this.data.array[t*this.data.stride+this.offset+3]}setXY(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this}setXYZ(t,e,n,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this}setXYZW(t,e,n,i,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this.data.array[t+3]=r,this}clone(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return new Be(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new ts(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.toJSON(t)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}ts.prototype.isInterleavedBufferAttribute=!0;class es extends Ee{constructor(t){super(),this.type="SpriteMaterial",this.color=new Ne(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this}}let ns;es.prototype.isSpriteMaterial=!0;const is=new ut,rs=new ut,ss=new ut,as=new tt,os=new tt,ls=new Vt,cs=new ut,hs=new ut,us=new ut,ds=new tt,ps=new tt,ms=new tt;class fs extends pe{constructor(t){if(super(),this.type="Sprite",void 0===ns){ns=new Je;const t=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),e=new Kr(t,5);ns.setIndex([0,1,2,0,2,3]),ns.setAttribute("position",new ts(e,3,0,!1)),ns.setAttribute("uv",new ts(e,2,3,!1))}this.geometry=ns,this.material=void 0!==t?t:new es,this.center=new tt(.5,.5)}raycast(t,e){null===t.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),rs.setFromMatrixScale(this.matrixWorld),ls.copy(t.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse,this.matrixWorld),ss.setFromMatrixPosition(this.modelViewMatrix),t.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&rs.multiplyScalar(-ss.z);const n=this.material.rotation;let i,r;0!==n&&(r=Math.cos(n),i=Math.sin(n));const s=this.center;gs(cs.set(-.5,-.5,0),ss,s,rs,i,r),gs(hs.set(.5,-.5,0),ss,s,rs,i,r),gs(us.set(.5,.5,0),ss,s,rs,i,r),ds.set(0,0),ps.set(1,0),ms.set(1,1);let a=t.ray.intersectTriangle(cs,hs,us,!1,is);if(null===a&&(gs(hs.set(-.5,.5,0),ss,s,rs,i,r),ps.set(0,1),a=t.ray.intersectTriangle(cs,us,hs,!1,is),null===a))return;const o=t.ray.origin.distanceTo(is);o<t.near||o>t.far||e.push({distance:o,point:is.clone(),uv:Se.getUV(is,cs,hs,us,ds,ps,ms,new tt),face:null,object:this})}copy(t){return super.copy(t),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function gs(t,e,n,i,r,s){as.subVectors(t,n).addScalar(.5).multiply(i),void 0!==r?(os.x=s*as.x-r*as.y,os.y=r*as.x+s*as.y):os.copy(as),t.copy(e),t.x+=os.x,t.y+=os.y,t.applyMatrix4(ls)}fs.prototype.isSprite=!0;const vs=new ut,xs=new ot,ys=new ot,_s=new ut,Ms=new Vt;class bs extends mn{constructor(t,e){super(t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Vt,this.bindMatrixInverse=new Vt}copy(t){return super.copy(t),this.bindMode=t.bindMode,this.bindMatrix.copy(t.bindMatrix),this.bindMatrixInverse.copy(t.bindMatrixInverse),this.skeleton=t.skeleton,this}bind(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.copy(e).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const t=new ot,e=this.geometry.attributes.skinWeight;for(let n=0,i=e.count;n<i;n++){t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.w=e.getW(n);const i=1/t.manhattanLength();i!==1/0?t.multiplyScalar(i):t.set(1,0,0,0),e.setXYZW(n,t.x,t.y,t.z,t.w)}}updateMatrixWorld(t){super.updateMatrixWorld(t),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}boneTransform(t,e){const n=this.skeleton,i=this.geometry;xs.fromBufferAttribute(i.attributes.skinIndex,t),ys.fromBufferAttribute(i.attributes.skinWeight,t),vs.fromBufferAttribute(i.attributes.position,t).applyMatrix4(this.bindMatrix),e.set(0,0,0);for(let r=0;r<4;r++){const t=ys.getComponent(r);if(0!==t){const i=xs.getComponent(r);Ms.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),e.addScaledVector(_s.copy(vs).applyMatrix4(Ms),t)}}return e.applyMatrix4(this.bindMatrixInverse)}}bs.prototype.isSkinnedMesh=!0;class ws extends pe{constructor(){super(),this.type="Bone"}}ws.prototype.isBone=!0;class Ss extends st{constructor(t=null,e=1,n=1,i,r,s,a,o,l=1003,c=1003,h,u){super(null,s,a,o,l,c,i,r,h,u),this.image={data:t,width:e,height:n},this.magFilter=l,this.minFilter=c,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}}Ss.prototype.isDataTexture=!0;const Ts=new Vt,Es=new Vt,Ls=[],As=new mn;class Rs extends mn{constructor(t,e,n){super(t,e),this.instanceMatrix=new Be(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1}copy(t){return super.copy(t),this.instanceMatrix.copy(t.instanceMatrix),null!==t.instanceColor&&(this.instanceColor=t.instanceColor.clone()),this.count=t.count,this}getColorAt(t,e){e.fromArray(this.instanceColor.array,3*t)}getMatrixAt(t,e){e.fromArray(this.instanceMatrix.array,16*t)}raycast(t,e){const n=this.matrixWorld,i=this.count;if(As.geometry=this.geometry,As.material=this.material,void 0!==As.material)for(let r=0;r<i;r++){this.getMatrixAt(r,Ts),Es.multiplyMatrices(n,Ts),As.matrixWorld=Es,As.raycast(t,Ls);for(let t=0,n=Ls.length;t<n;t++){const n=Ls[t];n.instanceId=r,n.object=this,e.push(n)}Ls.length=0}}setColorAt(t,e){null===this.instanceColor&&(this.instanceColor=new Be(new Float32Array(3*this.count),3)),e.toArray(this.instanceColor.array,3*t)}setMatrixAt(t,e){e.toArray(this.instanceMatrix.array,16*t)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}Rs.prototype.isInstancedMesh=!0;class Cs extends Ee{constructor(t){super(),this.type="LineBasicMaterial",this.color=new Ne(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.morphTargets=t.morphTargets,this}}Cs.prototype.isLineBasicMaterial=!0;const Ps=new ut,Ds=new ut,Ns=new Vt,Is=new Gt,zs=new Nt;class Os extends pe{constructor(t=new Je,e=new Cs){super(),this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),this.material=t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[0];for(let t=1,i=e.count;t<i;t++)Ps.fromBufferAttribute(e,t-1),Ds.fromBufferAttribute(e,t),n[t]=n[t-1],n[t]+=Ps.distanceTo(Ds);t.setAttribute("lineDistance",new He(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}raycast(t,e){const n=this.geometry,i=this.matrixWorld,r=t.params.Line.threshold,s=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),zs.copy(n.boundingSphere),zs.applyMatrix4(i),zs.radius+=r,!1===t.ray.intersectsSphere(zs))return;Ns.copy(i).invert(),Is.copy(t.ray).applyMatrix4(Ns);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a,l=new ut,c=new ut,h=new ut,u=new ut,d=this.isLineSegments?2:1;if(n.isBufferGeometry){const i=n.index,r=n.attributes.position;if(null!==i){for(let n=Math.max(0,s.start),a=Math.min(i.count,s.start+s.count)-1;n<a;n+=d){const s=i.getX(n),a=i.getX(n+1);l.fromBufferAttribute(r,s),c.fromBufferAttribute(r,a);if(Is.distanceSqToSegment(l,c,u,h)>o)continue;u.applyMatrix4(this.matrixWorld);const d=t.ray.origin.distanceTo(u);d<t.near||d>t.far||e.push({distance:d,point:h.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,s.start),i=Math.min(r.count,s.start+s.count)-1;n<i;n+=d){l.fromBufferAttribute(r,n),c.fromBufferAttribute(r,n+1);if(Is.distanceSqToSegment(l,c,u,h)>o)continue;u.applyMatrix4(this.matrixWorld);const i=t.ray.origin.distanceTo(u);i<t.near||i>t.far||e.push({distance:i,point:h.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}Os.prototype.isLine=!0;const Bs=new ut,Fs=new ut;class Us extends Os{constructor(t,e){super(t,e),this.type="LineSegments"}computeLineDistances(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[];for(let t=0,i=e.count;t<i;t+=2)Bs.fromBufferAttribute(e,t),Fs.fromBufferAttribute(e,t+1),n[t]=0===t?0:n[t-1],n[t+1]=n[t]+Bs.distanceTo(Fs);t.setAttribute("lineDistance",new He(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}}Us.prototype.isLineSegments=!0;class Hs extends Os{constructor(t,e){super(t,e),this.type="LineLoop"}}Hs.prototype.isLineLoop=!0;class Gs extends Ee{constructor(t){super(),this.type="PointsMaterial",this.color=new Ne(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this}}Gs.prototype.isPointsMaterial=!0;const Vs=new Vt,ks=new Gt,Ws=new Nt,js=new ut;class qs extends pe{constructor(t=new Je,e=new Gs){super(),this.type="Points",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),this.material=t.material,this.geometry=t.geometry,this}raycast(t,e){const n=this.geometry,i=this.matrixWorld,r=t.params.Points.threshold,s=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Ws.copy(n.boundingSphere),Ws.applyMatrix4(i),Ws.radius+=r,!1===t.ray.intersectsSphere(Ws))return;Vs.copy(i).invert(),ks.copy(t.ray).applyMatrix4(Vs);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a;if(n.isBufferGeometry){const r=n.index,a=n.attributes.position;if(null!==r){for(let n=Math.max(0,s.start),l=Math.min(r.count,s.start+s.count);n<l;n++){const s=r.getX(n);js.fromBufferAttribute(a,s),Xs(js,s,o,i,t,e,this)}}else{for(let n=Math.max(0,s.start),r=Math.min(a.count,s.start+s.count);n<r;n++)js.fromBufferAttribute(a,n),Xs(js,n,o,i,t,e,this)}}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}function Xs(t,e,n,i,r,s,a){const o=ks.distanceSqToPoint(t);if(o<n){const n=new ut;ks.closestPointToPoint(t,n),n.applyMatrix4(i);const l=r.ray.origin.distanceTo(n);if(l<r.near||l>r.far)return;s.push({distance:l,distanceToRay:Math.sqrt(o),point:n,index:e,face:null,object:a})}}qs.prototype.isPoints=!0;(class extends st{constructor(t,e,n,i,r,s,a,o,l){super(t,e,n,i,r,s,a,o,l),this.format=void 0!==a?a:T,this.minFilter=void 0!==s?s:v,this.magFilter=void 0!==r?r:v,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in t&&t.requestVideoFrameCallback((function e(){c.needsUpdate=!0,t.requestVideoFrameCallback(e)}))}clone(){return new this.constructor(this.image).copy(this)}update(){const t=this.image;!1==="requestVideoFrameCallback"in t&&t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}).prototype.isVideoTexture=!0;class Ys extends st{constructor(t,e,n,i,r,s,a,o,l,c,h,u){super(null,s,a,o,l,c,i,r,h,u),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}}Ys.prototype.isCompressedTexture=!0;(class extends st{constructor(t,e,n,i,r,s,a,o,l){super(t,e,n,i,r,s,a,o,l),this.needsUpdate=!0}}).prototype.isCanvasTexture=!0;(class extends st{constructor(t,e,n,i,r,s,a,o,l,c){if((c=void 0!==c?c:L)!==L&&c!==A)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===L&&(n=_),void 0===n&&c===A&&(n=S),super(null,i,r,s,a,o,c,n,l),this.image={width:t,height:e},this.magFilter=void 0!==a?a:m,this.minFilter=void 0!==o?o:m,this.flipY=!1,this.generateMipmaps=!1}}).prototype.isDepthTexture=!0;class Js extends Je{constructor(t=1,e=1,n=1,i=8,r=1,s=!1,a=0,o=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:i,heightSegments:r,openEnded:s,thetaStart:a,thetaLength:o};const l=this;i=Math.floor(i),r=Math.floor(r);const c=[],h=[],u=[],d=[];let p=0;const m=[],f=n/2;let g=0;function v(n){const r=p,s=new tt,m=new ut;let v=0;const x=!0===n?t:e,y=!0===n?1:-1;for(let t=1;t<=i;t++)h.push(0,f*y,0),u.push(0,y,0),d.push(.5,.5),p++;const _=p;for(let t=0;t<=i;t++){const e=t/i*o+a,n=Math.cos(e),r=Math.sin(e);m.x=x*r,m.y=f*y,m.z=x*n,h.push(m.x,m.y,m.z),u.push(0,y,0),s.x=.5*n+.5,s.y=.5*r*y+.5,d.push(s.x,s.y),p++}for(let t=0;t<i;t++){const e=r+t,i=_+t;!0===n?c.push(i,i+1,e):c.push(i+1,i,e),v+=3}l.addGroup(g,v,!0===n?1:2),g+=v}!function(){const s=new ut,v=new ut;let x=0;const y=(e-t)/n;for(let l=0;l<=r;l++){const c=[],g=l/r,x=g*(e-t)+t;for(let t=0;t<=i;t++){const e=t/i,r=e*o+a,l=Math.sin(r),m=Math.cos(r);v.x=x*l,v.y=-g*n+f,v.z=x*m,h.push(v.x,v.y,v.z),s.set(l,y,m).normalize(),u.push(s.x,s.y,s.z),d.push(e,1-g),c.push(p++)}m.push(c)}for(let t=0;t<i;t++)for(let e=0;e<r;e++){const n=m[e][t],i=m[e+1][t],r=m[e+1][t+1],s=m[e][t+1];c.push(n,i,s),c.push(i,r,s),x+=6}l.addGroup(g,x,0),g+=x}(),!1===s&&(t>0&&v(!0),e>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new He(h,3)),this.setAttribute("normal",new He(u,3)),this.setAttribute("uv",new He(d,2))}static fromJSON(t){return new Js(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class Zs extends Js{constructor(t=1,e=1,n=8,i=1,r=!1,s=0,a=2*Math.PI){super(0,t,e,n,i,r,s,a),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:s,thetaLength:a}}static fromJSON(t){return new Zs(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}new ut,new ut,new ut,new Se;class Qs{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),r=0;e.push(0);for(let s=1;s<=t;s++)n=this.getPoint(s/t),r+=n.distanceTo(i),e.push(r),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const r=n.length;let s;s=e||t*n[r-1];let a,o=0,l=r-1;for(;o<=l;)if(i=Math.floor(o+(l-o)/2),a=n[i]-s,a<0)o=i+1;else{if(!(a>0)){l=i;break}l=i-1}if(i=l,n[i]===s)return i/(r-1);const c=n[i];return(i+(s-c)/(n[i+1]-c))/(r-1)}getTangent(t,e){const n=1e-4;let i=t-n,r=t+n;i<0&&(i=0),r>1&&(r=1);const s=this.getPoint(i),a=this.getPoint(r),o=e||(s.isVector2?new tt:new ut);return o.copy(a).sub(s).normalize(),o}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new ut,i=[],r=[],s=[],a=new ut,o=new Vt;for(let d=0;d<=t;d++){const e=d/t;i[d]=this.getTangentAt(e,new ut),i[d].normalize()}r[0]=new ut,s[0]=new ut;let l=Number.MAX_VALUE;const c=Math.abs(i[0].x),h=Math.abs(i[0].y),u=Math.abs(i[0].z);c<=l&&(l=c,n.set(1,0,0)),h<=l&&(l=h,n.set(0,1,0)),u<=l&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),s[0].crossVectors(i[0],r[0]);for(let d=1;d<=t;d++){if(r[d]=r[d-1].clone(),s[d]=s[d-1].clone(),a.crossVectors(i[d-1],i[d]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(J(i[d-1].dot(i[d]),-1,1));r[d].applyMatrix4(o.makeRotationAxis(a,t))}s[d].crossVectors(i[d],r[d])}if(!0===e){let e=Math.acos(J(r[0].dot(r[t]),-1,1));e/=t,i[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let n=1;n<=t;n++)r[n].applyMatrix4(o.makeRotationAxis(i[n],e*n)),s[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:s}}clone(){return(new this.constructor).copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class Ks extends Qs{constructor(t=0,e=0,n=1,i=1,r=0,s=2*Math.PI,a=!1,o=0){super(),this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=s,this.aClockwise=a,this.aRotation=o}getPoint(t,e){const n=e||new tt,i=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const s=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=s?0:i),!0!==this.aClockwise||s||(r===i?r=-i:r-=i);const a=this.aStartAngle+t*r;let o=this.aX+this.xRadius*Math.cos(a),l=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),n=o-this.aX,i=l-this.aY;o=n*t-i*e+this.aX,l=n*e+i*t+this.aY}return n.set(o,l)}copy(t){return super.copy(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}toJSON(){const t=super.toJSON();return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t}fromJSON(t){return super.fromJSON(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}}Ks.prototype.isEllipseCurve=!0;class $s extends Ks{constructor(t,e,n,i,r,s){super(t,e,n,n,i,r,s),this.type="ArcCurve"}}function ta(){let t=0,e=0,n=0,i=0;function r(r,s,a,o){t=r,e=a,n=-3*r+3*s-2*a-o,i=2*r-2*s+a+o}return{initCatmullRom:function(t,e,n,i,s){r(e,n,s*(n-t),s*(i-e))},initNonuniformCatmullRom:function(t,e,n,i,s,a,o){let l=(e-t)/s-(n-t)/(s+a)+(n-e)/a,c=(n-e)/a-(i-e)/(a+o)+(i-n)/o;l*=a,c*=a,r(e,n,l,c)},calc:function(r){const s=r*r;return t+e*r+n*s+i*(s*r)}}}$s.prototype.isArcCurve=!0;const ea=new ut,na=new ta,ia=new ta,ra=new ta;class sa extends Qs{constructor(t=[],e=!1,n="centripetal",i=.5){super(),this.type="CatmullRomCurve3",this.points=t,this.closed=e,this.curveType=n,this.tension=i}getPoint(t,e=new ut){const n=e,i=this.points,r=i.length,s=(r-(this.closed?0:1))*t;let a,o,l=Math.floor(s),c=s-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===c&&l===r-1&&(l=r-2,c=1),this.closed||l>0?a=i[(l-1)%r]:(ea.subVectors(i[0],i[1]).add(i[0]),a=ea);const h=i[l%r],u=i[(l+1)%r];if(this.closed||l+2<r?o=i[(l+2)%r]:(ea.subVectors(i[r-1],i[r-2]).add(i[r-1]),o=ea),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(a.distanceToSquared(h),t),n=Math.pow(h.distanceToSquared(u),t),i=Math.pow(u.distanceToSquared(o),t);n<1e-4&&(n=1),e<1e-4&&(e=n),i<1e-4&&(i=n),na.initNonuniformCatmullRom(a.x,h.x,u.x,o.x,e,n,i),ia.initNonuniformCatmullRom(a.y,h.y,u.y,o.y,e,n,i),ra.initNonuniformCatmullRom(a.z,h.z,u.z,o.z,e,n,i)}else"catmullrom"===this.curveType&&(na.initCatmullRom(a.x,h.x,u.x,o.x,this.tension),ia.initCatmullRom(a.y,h.y,u.y,o.y,this.tension),ra.initCatmullRom(a.z,h.z,u.z,o.z,this.tension));return n.set(na.calc(c),ia.calc(c),ra.calc(c)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new ut).fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}}function aa(t,e,n,i,r){const s=.5*(i-e),a=.5*(r-n),o=t*t;return(2*n-2*i+s+a)*(t*o)+(-3*n+3*i-2*s-a)*o+s*t+n}function oa(t,e,n,i){return function(t,e){const n=1-t;return n*n*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,n)+function(t,e){return t*t*e}(t,i)}function la(t,e,n,i,r){return function(t,e){const n=1-t;return n*n*n*e}(t,e)+function(t,e){const n=1-t;return 3*n*n*t*e}(t,n)+function(t,e){return 3*(1-t)*t*t*e}(t,i)+function(t,e){return t*t*t*e}(t,r)}sa.prototype.isCatmullRomCurve3=!0;class ca extends Qs{constructor(t=new tt,e=new tt,n=new tt,i=new tt){super(),this.type="CubicBezierCurve",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new tt){const n=e,i=this.v0,r=this.v1,s=this.v2,a=this.v3;return n.set(la(t,i.x,r.x,s.x,a.x),la(t,i.y,r.y,s.y,a.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}ca.prototype.isCubicBezierCurve=!0;class ha extends Qs{constructor(t=new ut,e=new ut,n=new ut,i=new ut){super(),this.type="CubicBezierCurve3",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new ut){const n=e,i=this.v0,r=this.v1,s=this.v2,a=this.v3;return n.set(la(t,i.x,r.x,s.x,a.x),la(t,i.y,r.y,s.y,a.y),la(t,i.z,r.z,s.z,a.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}ha.prototype.isCubicBezierCurve3=!0;class ua extends Qs{constructor(t=new tt,e=new tt){super(),this.type="LineCurve",this.v1=t,this.v2=e}getPoint(t,e=new tt){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}getTangent(t,e){const n=e||new tt;return n.copy(this.v2).sub(this.v1).normalize(),n}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}ua.prototype.isLineCurve=!0;class da extends Qs{constructor(t=new tt,e=new tt,n=new tt){super(),this.type="QuadraticBezierCurve",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new tt){const n=e,i=this.v0,r=this.v1,s=this.v2;return n.set(oa(t,i.x,r.x,s.x),oa(t,i.y,r.y,s.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}da.prototype.isQuadraticBezierCurve=!0;class pa extends Qs{constructor(t=new ut,e=new ut,n=new ut){super(),this.type="QuadraticBezierCurve3",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new ut){const n=e,i=this.v0,r=this.v1,s=this.v2;return n.set(oa(t,i.x,r.x,s.x),oa(t,i.y,r.y,s.y),oa(t,i.z,r.z,s.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}pa.prototype.isQuadraticBezierCurve3=!0;class ma extends Qs{constructor(t=[]){super(),this.type="SplineCurve",this.points=t}getPoint(t,e=new tt){const n=e,i=this.points,r=(i.length-1)*t,s=Math.floor(r),a=r-s,o=i[0===s?s:s-1],l=i[s],c=i[s>i.length-2?i.length-1:s+1],h=i[s>i.length-3?i.length-1:s+2];return n.set(aa(a,o.x,l.x,c.x,h.x),aa(a,o.y,l.y,c.y,h.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new tt).fromArray(n))}return this}}ma.prototype.isSplineCurve=!0;var fa=Object.freeze({__proto__:null,ArcCurve:$s,CatmullRomCurve3:sa,CubicBezierCurve:ca,CubicBezierCurve3:ha,EllipseCurve:Ks,LineCurve:ua,LineCurve3:class extends Qs{constructor(t=new ut,e=new ut){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=t,this.v2=e}getPoint(t,e=new ut){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}},QuadraticBezierCurve:da,QuadraticBezierCurve3:pa,SplineCurve:ma});const ga=function(t,e,n=2){const i=e&&e.length,r=i?e[0]*n:t.length;let s=va(t,0,r,n,!0);const a=[];if(!s||s.next===s.prev)return a;let o,l,c,h,u,d,p;if(i&&(s=function(t,e,n,i){const r=[];let s,a,o,l,c;for(s=0,a=e.length;s<a;s++)o=e[s]*i,l=s<a-1?e[s+1]*i:t.length,c=va(t,o,l,i,!1),c===c.next&&(c.steiner=!0),r.push(Aa(c));for(r.sort(Sa),s=0;s<r.length;s++)Ta(r[s],n),n=xa(n,n.next);return n}(t,e,s,n)),t.length>80*n){o=c=t[0],l=h=t[1];for(let e=n;e<r;e+=n)u=t[e],d=t[e+1],u<o&&(o=u),d<l&&(l=d),u>c&&(c=u),d>h&&(h=d);p=Math.max(c-o,h-l),p=0!==p?1/p:0}return ya(s,a,n,o,l,p),a};function va(t,e,n,i,r){let s,a;if(r===function(t,e,n,i){let r=0;for(let s=e,a=n-i;s<n;s+=i)r+=(t[a]-t[s])*(t[s+1]+t[a+1]),a=s;return r}(t,e,n,i)>0)for(s=e;s<n;s+=i)a=Fa(s,t[s],t[s+1],a);else for(s=n-i;s>=e;s-=i)a=Fa(s,t[s],t[s+1],a);return a&&Da(a,a.next)&&(Ua(a),a=a.next),a}function xa(t,e){if(!t)return t;e||(e=t);let n,i=t;do{if(n=!1,i.steiner||!Da(i,i.next)&&0!==Pa(i.prev,i,i.next))i=i.next;else{if(Ua(i),i=e=i.prev,i===i.next)break;n=!0}}while(n||i!==e);return e}function ya(t,e,n,i,r,s,a){if(!t)return;!a&&s&&function(t,e,n,i){let r=t;do{null===r.z&&(r.z=La(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){let e,n,i,r,s,a,o,l,c=1;do{for(n=t,t=null,s=null,a=0;n;){for(a++,i=n,o=0,e=0;e<c&&(o++,i=i.nextZ,i);e++);for(l=c;o>0||l>0&&i;)0!==o&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,o--):(r=i,i=i.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;n=i}s.nextZ=null,c*=2}while(a>1)}(r)}(t,i,r,s);let o,l,c=t;for(;t.prev!==t.next;)if(o=t.prev,l=t.next,s?Ma(t,i,r,s):_a(t))e.push(o.i/n),e.push(t.i/n),e.push(l.i/n),Ua(t),t=l.next,c=l.next;else if((t=l)===c){a?1===a?ya(t=ba(xa(t),e,n),e,n,i,r,s,2):2===a&&wa(t,e,n,i,r,s):ya(xa(t),e,n,i,r,s,1);break}}function _a(t){const e=t.prev,n=t,i=t.next;if(Pa(e,n,i)>=0)return!1;let r=t.next.next;for(;r!==t.prev;){if(Ra(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&Pa(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Ma(t,e,n,i){const r=t.prev,s=t,a=t.next;if(Pa(r,s,a)>=0)return!1;const o=r.x<s.x?r.x<a.x?r.x:a.x:s.x<a.x?s.x:a.x,l=r.y<s.y?r.y<a.y?r.y:a.y:s.y<a.y?s.y:a.y,c=r.x>s.x?r.x>a.x?r.x:a.x:s.x>a.x?s.x:a.x,h=r.y>s.y?r.y>a.y?r.y:a.y:s.y>a.y?s.y:a.y,u=La(o,l,e,n,i),d=La(c,h,e,n,i);let p=t.prevZ,m=t.nextZ;for(;p&&p.z>=u&&m&&m.z<=d;){if(p!==t.prev&&p!==t.next&&Ra(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&Pa(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,m!==t.prev&&m!==t.next&&Ra(r.x,r.y,s.x,s.y,a.x,a.y,m.x,m.y)&&Pa(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&Ra(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&Pa(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;m&&m.z<=d;){if(m!==t.prev&&m!==t.next&&Ra(r.x,r.y,s.x,s.y,a.x,a.y,m.x,m.y)&&Pa(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function ba(t,e,n){let i=t;do{const r=i.prev,s=i.next.next;!Da(r,s)&&Na(r,i,i.next,s)&&Oa(r,s)&&Oa(s,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(s.i/n),Ua(i),Ua(i.next),i=t=s),i=i.next}while(i!==t);return xa(i)}function wa(t,e,n,i,r,s){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.i!==t.i&&Ca(a,t)){let o=Ba(a,t);return a=xa(a,a.next),o=xa(o,o.next),ya(a,e,n,i,r,s),void ya(o,e,n,i,r,s)}t=t.next}a=a.next}while(a!==t)}function Sa(t,e){return t.x-e.x}function Ta(t,e){if(e=function(t,e){let n=e;const i=t.x,r=t.y;let s,a=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){const t=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=i&&t>a){if(a=t,t===i){if(r===n.y)return n;if(r===n.next.y)return n.next}s=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!s)return null;if(i===a)return s;const o=s,l=s.x,c=s.y;let h,u=1/0;n=s;do{i>=n.x&&n.x>=l&&i!==n.x&&Ra(r<c?i:a,r,l,c,r<c?a:i,r,n.x,n.y)&&(h=Math.abs(r-n.y)/(i-n.x),Oa(n,t)&&(h<u||h===u&&(n.x>s.x||n.x===s.x&&Ea(s,n)))&&(s=n,u=h)),n=n.next}while(n!==o);return s}(t,e)){const n=Ba(e,t);xa(e,e.next),xa(n,n.next)}}function Ea(t,e){return Pa(t.prev,t,e.prev)<0&&Pa(e.next,t,t.next)<0}function La(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Aa(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function Ra(t,e,n,i,r,s,a,o){return(r-a)*(e-o)-(t-a)*(s-o)>=0&&(t-a)*(i-o)-(n-a)*(e-o)>=0&&(n-a)*(s-o)-(r-a)*(i-o)>=0}function Ca(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Na(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Oa(t,e)&&Oa(e,t)&&function(t,e){let n=t,i=!1;const r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{n.y>s!==n.next.y>s&&n.next.y!==n.y&&r<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)&&(Pa(t.prev,t,e.prev)||Pa(t,e.prev,e))||Da(t,e)&&Pa(t.prev,t,t.next)>0&&Pa(e.prev,e,e.next)>0)}function Pa(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Da(t,e){return t.x===e.x&&t.y===e.y}function Na(t,e,n,i){const r=za(Pa(t,e,n)),s=za(Pa(t,e,i)),a=za(Pa(n,i,t)),o=za(Pa(n,i,e));return r!==s&&a!==o||(!(0!==r||!Ia(t,n,e))||(!(0!==s||!Ia(t,i,e))||(!(0!==a||!Ia(n,t,i))||!(0!==o||!Ia(n,e,i)))))}function Ia(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function za(t){return t>0?1:t<0?-1:0}function Oa(t,e){return Pa(t.prev,t,t.next)<0?Pa(t,e,t.next)>=0&&Pa(t,t.prev,e)>=0:Pa(t,e,t.prev)<0||Pa(t,t.next,e)<0}function Ba(t,e){const n=new Ha(t.i,t.x,t.y),i=new Ha(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,s.next=i,i.prev=s,i}function Fa(t,e,n,i){const r=new Ha(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function Ua(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Ha(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Ga{static area(t){const e=t.length;let n=0;for(let i=e-1,r=0;r<e;i=r++)n+=t[i].x*t[r].y-t[r].x*t[i].y;return.5*n}static isClockWise(t){return Ga.area(t)<0}static triangulateShape(t,e){const n=[],i=[],r=[];Va(t),ka(n,t);let s=t.length;e.forEach(Va);for(let o=0;o<e.length;o++)i.push(s),s+=e[o].length,ka(n,e[o]);const a=ga(n,i);for(let o=0;o<a.length;o+=3)r.push(a.slice(o,o+3));return r}}function Va(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function ka(t,e){for(let n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}class Wa extends Je{constructor(t,e){super(),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];const n=this,i=[],r=[];for(let a=0,o=t.length;a<o;a++){s(t[a])}function s(t){const s=[],a=void 0!==e.curveSegments?e.curveSegments:12,o=void 0!==e.steps?e.steps:1;let l=void 0!==e.depth?e.depth:100,c=void 0===e.bevelEnabled||e.bevelEnabled,h=void 0!==e.bevelThickness?e.bevelThickness:6,u=void 0!==e.bevelSize?e.bevelSize:h-2,d=void 0!==e.bevelOffset?e.bevelOffset:0,p=void 0!==e.bevelSegments?e.bevelSegments:3;const m=e.extrudePath,f=void 0!==e.UVGenerator?e.UVGenerator:ja;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=e.amount);let g,v,x,y,_,M=!1;m&&(g=m.getSpacedPoints(o),M=!0,c=!1,v=m.computeFrenetFrames(o,!1),x=new ut,y=new ut,_=new ut),c||(p=0,h=0,u=0,d=0);const b=t.extractPoints(a);let w=b.shape;const S=b.holes;if(!Ga.isClockWise(w)){w=w.reverse();for(let t=0,e=S.length;t<e;t++){const e=S[t];Ga.isClockWise(e)&&(S[t]=e.reverse())}}const T=Ga.triangulateShape(w,S),E=w;for(let e=0,n=S.length;e<n;e++){const t=S[e];w=w.concat(t)}function L(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}const A=w.length,R=T.length;function C(t,e,n){let i,r,s;const a=t.x-e.x,o=t.y-e.y,l=n.x-t.x,c=n.y-t.y,h=a*a+o*o,u=a*c-o*l;if(Math.abs(u)>Number.EPSILON){const u=Math.sqrt(h),d=Math.sqrt(l*l+c*c),p=e.x-o/u,m=e.y+a/u,f=((n.x-c/d-p)*c-(n.y+l/d-m)*l)/(a*c-o*l);i=p+a*f-t.x,r=m+o*f-t.y;const g=i*i+r*r;if(g<=2)return new tt(i,r);s=Math.sqrt(g/2)}else{let t=!1;a>Number.EPSILON?l>Number.EPSILON&&(t=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(t=!0):Math.sign(o)===Math.sign(c)&&(t=!0),t?(i=-o,r=a,s=Math.sqrt(h)):(i=a,r=o,s=Math.sqrt(h/2))}return new tt(i/s,r/s)}const P=[];for(let e=0,n=E.length,i=n-1,r=e+1;e<n;e++,i++,r++)i===n&&(i=0),r===n&&(r=0),P[e]=C(E[e],E[i],E[r]);const D=[];let N,I=P.concat();for(let e=0,n=S.length;e<n;e++){const t=S[e];N=[];for(let e=0,n=t.length,i=n-1,r=e+1;e<n;e++,i++,r++)i===n&&(i=0),r===n&&(r=0),N[e]=C(t[e],t[i],t[r]);D.push(N),I=I.concat(N)}for(let e=0;e<p;e++){const t=e/p,n=h*Math.cos(t*Math.PI/2),i=u*Math.sin(t*Math.PI/2)+d;for(let e=0,r=E.length;e<r;e++){const t=L(E[e],P[e],i);B(t.x,t.y,-n)}for(let e=0,r=S.length;e<r;e++){const t=S[e];N=D[e];for(let e=0,r=t.length;e<r;e++){const r=L(t[e],N[e],i);B(r.x,r.y,-n)}}}const z=u+d;for(let e=0;e<A;e++){const t=c?L(w[e],I[e],z):w[e];M?(y.copy(v.normals[0]).multiplyScalar(t.x),x.copy(v.binormals[0]).multiplyScalar(t.y),_.copy(g[0]).add(y).add(x),B(_.x,_.y,_.z)):B(t.x,t.y,0)}for(let e=1;e<=o;e++)for(let t=0;t<A;t++){const n=c?L(w[t],I[t],z):w[t];M?(y.copy(v.normals[e]).multiplyScalar(n.x),x.copy(v.binormals[e]).multiplyScalar(n.y),_.copy(g[e]).add(y).add(x),B(_.x,_.y,_.z)):B(n.x,n.y,l/o*e)}for(let e=p-1;e>=0;e--){const t=e/p,n=h*Math.cos(t*Math.PI/2),i=u*Math.sin(t*Math.PI/2)+d;for(let e=0,r=E.length;e<r;e++){const t=L(E[e],P[e],i);B(t.x,t.y,l+n)}for(let e=0,r=S.length;e<r;e++){const t=S[e];N=D[e];for(let e=0,r=t.length;e<r;e++){const r=L(t[e],N[e],i);M?B(r.x,r.y+g[o-1].y,g[o-1].x+n):B(r.x,r.y,l+n)}}}function O(t,e){let n=t.length;for(;--n>=0;){const i=n;let r=n-1;r<0&&(r=t.length-1);for(let t=0,n=o+2*p;t<n;t++){const n=A*t,s=A*(t+1);U(e+i+n,e+r+n,e+r+s,e+i+s)}}}function B(t,e,n){s.push(t),s.push(e),s.push(n)}function F(t,e,r){H(t),H(e),H(r);const s=i.length/3,a=f.generateTopUV(n,i,s-3,s-2,s-1);G(a[0]),G(a[1]),G(a[2])}function U(t,e,r,s){H(t),H(e),H(s),H(e),H(r),H(s);const a=i.length/3,o=f.generateSideWallUV(n,i,a-6,a-3,a-2,a-1);G(o[0]),G(o[1]),G(o[3]),G(o[1]),G(o[2]),G(o[3])}function H(t){i.push(s[3*t+0]),i.push(s[3*t+1]),i.push(s[3*t+2])}function G(t){r.push(t.x),r.push(t.y)}!function(){const t=i.length/3;if(c){let t=0,e=A*t;for(let n=0;n<R;n++){const t=T[n];F(t[2]+e,t[1]+e,t[0]+e)}t=o+2*p,e=A*t;for(let n=0;n<R;n++){const t=T[n];F(t[0]+e,t[1]+e,t[2]+e)}}else{for(let t=0;t<R;t++){const e=T[t];F(e[2],e[1],e[0])}for(let t=0;t<R;t++){const e=T[t];F(e[0]+A*o,e[1]+A*o,e[2]+A*o)}}n.addGroup(t,i.length/3-t,0)}(),function(){const t=i.length/3;let e=0;O(E,e),e+=E.length;for(let n=0,i=S.length;n<i;n++){const t=S[n];O(t,e),e+=t.length}n.addGroup(t,i.length/3-t,1)}()}this.setAttribute("position",new He(i,3)),this.setAttribute("uv",new He(r,2)),this.computeVertexNormals()}toJSON(){const t=super.toJSON();return function(t,e,n){if(n.shapes=[],Array.isArray(t))for(let i=0,r=t.length;i<r;i++){const e=t[i];n.shapes.push(e.uuid)}else n.shapes.push(t.uuid);void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,t)}static fromJSON(t,e){const n=[];for(let r=0,s=t.shapes.length;r<s;r++){const i=e[t.shapes[r]];n.push(i)}const i=t.options.extrudePath;return void 0!==i&&(t.options.extrudePath=(new fa[i.type]).fromJSON(i)),new Wa(n,t.options)}}const ja={generateTopUV:function(t,e,n,i,r){const s=e[3*n],a=e[3*n+1],o=e[3*i],l=e[3*i+1],c=e[3*r],h=e[3*r+1];return[new tt(s,a),new tt(o,l),new tt(c,h)]},generateSideWallUV:function(t,e,n,i,r,s){const a=e[3*n],o=e[3*n+1],l=e[3*n+2],c=e[3*i],h=e[3*i+1],u=e[3*i+2],d=e[3*r],p=e[3*r+1],m=e[3*r+2],f=e[3*s],g=e[3*s+1],v=e[3*s+2];return Math.abs(o-h)<Math.abs(a-c)?[new tt(a,1-l),new tt(c,1-u),new tt(d,1-m),new tt(f,1-v)]:[new tt(o,1-l),new tt(h,1-u),new tt(p,1-m),new tt(g,1-v)]}};class qa extends Je{constructor(t,e=12){super(),this.type="ShapeGeometry",this.parameters={shapes:t,curveSegments:e};const n=[],i=[],r=[],s=[];let a=0,o=0;if(!1===Array.isArray(t))l(t);else for(let c=0;c<t.length;c++)l(t[c]),this.addGroup(a,o,c),a+=o,o=0;function l(t){const a=i.length/3,l=t.extractPoints(e);let c=l.shape;const h=l.holes;!1===Ga.isClockWise(c)&&(c=c.reverse());for(let e=0,n=h.length;e<n;e++){const t=h[e];!0===Ga.isClockWise(t)&&(h[e]=t.reverse())}const u=Ga.triangulateShape(c,h);for(let e=0,n=h.length;e<n;e++){const t=h[e];c=c.concat(t)}for(let e=0,n=c.length;e<n;e++){const t=c[e];i.push(t.x,t.y,0),r.push(0,0,1),s.push(t.x,t.y)}for(let e=0,i=u.length;e<i;e++){const t=u[e],i=t[0]+a,r=t[1]+a,s=t[2]+a;n.push(i,r,s),o+=3}}this.setIndex(n),this.setAttribute("position",new He(i,3)),this.setAttribute("normal",new He(r,3)),this.setAttribute("uv",new He(s,2))}toJSON(){const t=super.toJSON();return function(t,e){if(e.shapes=[],Array.isArray(t))for(let n=0,i=t.length;n<i;n++){const i=t[n];e.shapes.push(i.uuid)}else e.shapes.push(t.uuid);return e}(this.parameters.shapes,t)}static fromJSON(t,e){const n=[];for(let i=0,r=t.shapes.length;i<r;i++){const r=e[t.shapes[i]];n.push(r)}return new qa(n,t.curveSegments)}}class Xa extends Je{constructor(t=1,e=8,n=6,i=0,r=2*Math.PI,s=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:s,thetaLength:a},e=Math.max(3,Math.floor(e)),n=Math.max(2,Math.floor(n));const o=Math.min(s+a,Math.PI);let l=0;const c=[],h=new ut,u=new ut,d=[],p=[],m=[],f=[];for(let g=0;g<=n;g++){const d=[],v=g/n;let x=0;0==g&&0==s?x=.5/e:g==n&&o==Math.PI&&(x=-.5/e);for(let n=0;n<=e;n++){const o=n/e;h.x=-t*Math.cos(i+o*r)*Math.sin(s+v*a),h.y=t*Math.cos(s+v*a),h.z=t*Math.sin(i+o*r)*Math.sin(s+v*a),p.push(h.x,h.y,h.z),u.copy(h).normalize(),m.push(u.x,u.y,u.z),f.push(o+x,1-v),d.push(l++)}c.push(d)}for(let g=0;g<n;g++)for(let t=0;t<e;t++){const e=c[g][t+1],i=c[g][t],r=c[g+1][t],a=c[g+1][t+1];(0!==g||s>0)&&d.push(e,i,a),(g!==n-1||o<Math.PI)&&d.push(i,r,a)}this.setIndex(d),this.setAttribute("position",new He(p,3)),this.setAttribute("normal",new He(m,3)),this.setAttribute("uv",new He(f,2))}static fromJSON(t){return new Xa(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}}class Ya extends Je{constructor(t,e=64,n=1,i=8,r=!1){super(),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:i,closed:r};const s=t.computeFrenetFrames(e,r);this.tangents=s.tangents,this.normals=s.normals,this.binormals=s.binormals;const a=new ut,o=new ut,l=new tt;let c=new ut;const h=[],u=[],d=[],p=[];function m(r){c=t.getPointAt(r/e,c);const l=s.normals[r],d=s.binormals[r];for(let t=0;t<=i;t++){const e=t/i*Math.PI*2,r=Math.sin(e),s=-Math.cos(e);o.x=s*l.x+r*d.x,o.y=s*l.y+r*d.y,o.z=s*l.z+r*d.z,o.normalize(),u.push(o.x,o.y,o.z),a.x=c.x+n*o.x,a.y=c.y+n*o.y,a.z=c.z+n*o.z,h.push(a.x,a.y,a.z)}}!function(){for(let t=0;t<e;t++)m(t);m(!1===r?e:0),function(){for(let t=0;t<=e;t++)for(let n=0;n<=i;n++)l.x=t/e,l.y=n/i,d.push(l.x,l.y)}(),function(){for(let t=1;t<=e;t++)for(let e=1;e<=i;e++){const n=(i+1)*(t-1)+(e-1),r=(i+1)*t+(e-1),s=(i+1)*t+e,a=(i+1)*(t-1)+e;p.push(n,r,a),p.push(r,s,a)}}()}(),this.setIndex(p),this.setAttribute("position",new He(h,3)),this.setAttribute("normal",new He(u,3)),this.setAttribute("uv",new He(d,2))}toJSON(){const t=super.toJSON();return t.path=this.parameters.path.toJSON(),t}static fromJSON(t){return new Ya((new fa[t.path.type]).fromJSON(t.path),t.tubularSegments,t.radius,t.radialSegments,t.closed)}}class Ja extends Ee{constructor(t){super(),this.type="ShadowMaterial",this.color=new Ne(0),this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this}}Ja.prototype.isShadowMaterial=!0;class Za extends _n{constructor(t){super(t),this.type="RawShaderMaterial"}}Za.prototype.isRawShaderMaterial=!0;class Qa extends Ee{constructor(t){super(),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Ne(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ne(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.vertexTangents=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this.vertexTangents=t.vertexTangents,this}}Qa.prototype.isMeshStandardMaterial=!0;class Ka extends Qa{constructor(t){super(),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoat=0,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new tt(1,1),this.clearcoatNormalMap=null,this.reflectivity=.5,Object.defineProperty(this,"ior",{get:function(){return(1+.4*this.reflectivity)/(1-.4*this.reflectivity)},set:function(t){this.reflectivity=J(2.5*(t-1)/(t+1),0,1)}}),this.sheen=null,this.transmission=0,this.transmissionMap=null,this.thickness=.01,this.thicknessMap=null,this.attenuationDistance=0,this.attenuationColor=new Ne(1,1,1),this.setValues(t)}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.reflectivity=t.reflectivity,t.sheen?this.sheen=(this.sheen||new Ne).copy(t.sheen):this.sheen=null,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this}}Ka.prototype.isMeshPhysicalMaterial=!0;class $a extends Ee{constructor(t){super(),this.type="MeshPhongMaterial",this.color=new Ne(16777215),this.specular=new Ne(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ne(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}$a.prototype.isMeshPhongMaterial=!0;class to extends Ee{constructor(t){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Ne(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ne(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this}}to.prototype.isMeshToonMaterial=!0;class eo extends Ee{constructor(t){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}eo.prototype.isMeshNormalMaterial=!0;class no extends Ee{constructor(t){super(),this.type="MeshLambertMaterial",this.color=new Ne(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ne(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this}}no.prototype.isMeshLambertMaterial=!0;class io extends Ee{constructor(t){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Ne(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}io.prototype.isMeshMatcapMaterial=!0;class ro extends Cs{constructor(t){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}copy(t){return super.copy(t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this}}ro.prototype.isLineDashedMaterial=!0;const so={arraySlice:function(t,e,n){return so.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"===typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){const e=t.length,n=new Array(e);for(let i=0;i!==e;++i)n[i]=i;return n.sort((function(e,n){return t[e]-t[n]})),n},sortedArray:function(t,e,n){const i=t.length,r=new t.constructor(i);for(let s=0,a=0;a!==i;++s){const i=n[s]*e;for(let n=0;n!==e;++n)r[a++]=t[i+n]}return r},flattenJSON:function(t,e,n,i){let r=1,s=t[0];for(;void 0!==s&&void 0===s[i];)s=t[r++];if(void 0===s)return;let a=s[i];if(void 0!==a)if(Array.isArray(a))do{a=s[i],void 0!==a&&(e.push(s.time),n.push.apply(n,a)),s=t[r++]}while(void 0!==s);else if(void 0!==a.toArray)do{a=s[i],void 0!==a&&(e.push(s.time),a.toArray(n,n.length)),s=t[r++]}while(void 0!==s);else do{a=s[i],void 0!==a&&(e.push(s.time),n.push(a)),s=t[r++]}while(void 0!==s)},subclip:function(t,e,n,i,r=30){const s=t.clone();s.name=e;const a=[];for(let l=0;l<s.tracks.length;++l){const t=s.tracks[l],e=t.getValueSize(),o=[],c=[];for(let s=0;s<t.times.length;++s){const a=t.times[s]*r;if(!(a<n||a>=i)){o.push(t.times[s]);for(let n=0;n<e;++n)c.push(t.values[s*e+n])}}0!==o.length&&(t.times=so.convertArray(o,t.times.constructor),t.values=so.convertArray(c,t.values.constructor),a.push(t))}s.tracks=a;let o=1/0;for(let l=0;l<s.tracks.length;++l)o>s.tracks[l].times[0]&&(o=s.tracks[l].times[0]);for(let l=0;l<s.tracks.length;++l)s.tracks[l].shift(-1*o);return s.resetDuration(),s},makeClipAdditive:function(t,e=0,n=t,i=30){i<=0&&(i=30);const r=n.tracks.length,s=e/i;for(let a=0;a<r;++a){const e=n.tracks[a],i=e.ValueTypeName;if("bool"===i||"string"===i)continue;const r=t.tracks.find((function(t){return t.name===e.name&&t.ValueTypeName===i}));if(void 0===r)continue;let o=0;const l=e.getValueSize();e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(o=l/3);let c=0;const h=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(c=h/3);const u=e.times.length-1;let d;if(s<=e.times[0]){const t=o,n=l-o;d=so.arraySlice(e.values,t,n)}else if(s>=e.times[u]){const t=u*l+o,n=t+l-o;d=so.arraySlice(e.values,t,n)}else{const t=e.createInterpolant(),n=o,i=l-o;t.evaluate(s),d=so.arraySlice(t.resultBuffer,n,i)}if("quaternion"===i){(new ht).fromArray(d).normalize().conjugate().toArray(d)}const p=r.times.length;for(let t=0;t<p;++t){const e=t*h+c;if("quaternion"===i)ht.multiplyQuaternionsFlat(r.values,e,d,0,r.values,e);else{const t=h-2*c;for(let n=0;n<t;++n)r.values[e+n]-=d[n]}}}return t.blendMode=2501,t}};class ao{constructor(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{let s;n:{i:if(!(t<i)){for(let s=n+2;;){if(void 0===i){if(t<r)break i;return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,t,r)}if(n===s)break;if(r=i,i=e[++n],t<i)break e}s=e.length;break n}if(t>=r)break t;{const a=e[1];t<a&&(n=2,r=a);for(let s=n-2;;){if(void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(n===s)break;if(i=r,r=e[--n-1],t>=r)break e}s=n,n=0}}for(;n<s;){const i=n+s>>>1;t<e[i]?s=i:n=i+1}if(i=e[n],r=e[n-1],void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(void 0===i)return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,r,t)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,t,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(t){const e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i;for(let s=0;s!==i;++s)e[s]=n[r+s];return e}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}ao.prototype.beforeStart_=ao.prototype.copySampleValue_,ao.prototype.afterEnd_=ao.prototype.copySampleValue_;class oo extends ao{constructor(t,e,n,i){super(t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:D,endingEnd:D}}intervalChanged_(t,e,n){const i=this.parameterPositions;let r=t-2,s=t+1,a=i[r],o=i[s];if(void 0===a)switch(this.getSettings_().endingStart){case N:r=t,a=2*e-n;break;case I:r=i.length-2,a=e+i[r]-i[r+1];break;default:r=t,a=n}if(void 0===o)switch(this.getSettings_().endingEnd){case N:s=t,o=2*n-e;break;case I:s=1,o=n+i[1]-i[0];break;default:s=t-1,o=e}const l=.5*(n-e),c=this.valueSize;this._weightPrev=l/(e-a),this._weightNext=l/(o-n),this._offsetPrev=r*c,this._offsetNext=s*c}interpolate_(t,e,n,i){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=t*a,l=o-a,c=this._offsetPrev,h=this._offsetNext,u=this._weightPrev,d=this._weightNext,p=(n-e)/(i-e),m=p*p,f=m*p,g=-u*f+2*u*m-u*p,v=(1+u)*f+(-1.5-2*u)*m+(-.5+u)*p+1,x=(-1-d)*f+(1.5+d)*m+.5*p,y=d*f-d*m;for(let _=0;_!==a;++_)r[_]=g*s[c+_]+v*s[l+_]+x*s[o+_]+y*s[h+_];return r}}class lo extends ao{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=t*a,l=o-a,c=(n-e)/(i-e),h=1-c;for(let u=0;u!==a;++u)r[u]=s[l+u]*h+s[o+u]*c;return r}}class co extends ao{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t){return this.copySampleValue_(t-1)}}class ho{constructor(t,e,n,i){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=so.convertArray(e,this.TimeBufferType),this.values=so.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(t){const e=t.constructor;let n;if(e.toJSON!==this.toJSON)n=e.toJSON(t);else{n={name:t.name,times:so.convertArray(t.times,Array),values:so.convertArray(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(n.interpolation=e)}return n.type=t.ValueTypeName,n}InterpolantFactoryMethodDiscrete(t){return new co(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new lo(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new oo(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let e;switch(t){case R:e=this.InterpolantFactoryMethodDiscrete;break;case C:e=this.InterpolantFactoryMethodLinear;break;case P:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return R;case this.InterpolantFactoryMethodLinear:return C;case this.InterpolantFactoryMethodSmooth:return P}}getValueSize(){return this.values.length/this.times.length}shift(t){if(0!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]+=t}return this}scale(t){if(1!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]*=t}return this}trim(t,e){const n=this.times,i=n.length;let r=0,s=i-1;for(;r!==i&&n[r]<t;)++r;for(;-1!==s&&n[s]>e;)--s;if(++s,0!==r||s!==i){r>=s&&(s=Math.max(s,1),r=s-1);const t=this.getValueSize();this.times=so.arraySlice(n,r,s),this.values=so.arraySlice(this.values,r*t,s*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let s=null;for(let a=0;a!==r;a++){const e=n[a];if("number"===typeof e&&isNaN(e)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,e),t=!1;break}if(null!==s&&s>e){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,e,s),t=!1;break}s=e}if(void 0!==i&&so.isTypedArray(i))for(let a=0,o=i.length;a!==o;++a){const e=i[a];if(isNaN(e)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,e),t=!1;break}}return t}optimize(){const t=so.arraySlice(this.times),e=so.arraySlice(this.values),n=this.getValueSize(),i=this.getInterpolation()===P,r=t.length-1;let s=1;for(let a=1;a<r;++a){let r=!1;const o=t[a];if(o!==t[a+1]&&(1!==a||o!==t[0]))if(i)r=!0;else{const t=a*n,i=t-n,s=t+n;for(let a=0;a!==n;++a){const n=e[t+a];if(n!==e[i+a]||n!==e[s+a]){r=!0;break}}}if(r){if(a!==s){t[s]=t[a];const i=a*n,r=s*n;for(let t=0;t!==n;++t)e[r+t]=e[i+t]}++s}}if(r>0){t[s]=t[r];for(let t=r*n,i=s*n,a=0;a!==n;++a)e[i+a]=e[t+a];++s}return s!==t.length?(this.times=so.arraySlice(t,0,s),this.values=so.arraySlice(e,0,s*n)):(this.times=t,this.values=e),this}clone(){const t=so.arraySlice(this.times,0),e=so.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}ho.prototype.TimeBufferType=Float32Array,ho.prototype.ValueBufferType=Float32Array,ho.prototype.DefaultInterpolation=C;class uo extends ho{}uo.prototype.ValueTypeName="bool",uo.prototype.ValueBufferType=Array,uo.prototype.DefaultInterpolation=R,uo.prototype.InterpolantFactoryMethodLinear=void 0,uo.prototype.InterpolantFactoryMethodSmooth=void 0;class po extends ho{}po.prototype.ValueTypeName="color";class mo extends ho{}mo.prototype.ValueTypeName="number";class fo extends ao{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=(n-e)/(i-e);let l=t*a;for(let c=l+a;l!==c;l+=4)ht.slerpFlat(r,0,s,l-a,s,l,o);return r}}class go extends ho{InterpolantFactoryMethodLinear(t){return new fo(this.times,this.values,this.getValueSize(),t)}}go.prototype.ValueTypeName="quaternion",go.prototype.DefaultInterpolation=C,go.prototype.InterpolantFactoryMethodSmooth=void 0;class vo extends ho{}vo.prototype.ValueTypeName="string",vo.prototype.ValueBufferType=Array,vo.prototype.DefaultInterpolation=R,vo.prototype.InterpolantFactoryMethodLinear=void 0,vo.prototype.InterpolantFactoryMethodSmooth=void 0;class xo extends ho{}xo.prototype.ValueTypeName="vector";class yo{constructor(t,e=-1,n,i=2500){this.name=t,this.tracks=n,this.duration=e,this.blendMode=i,this.uuid=Y(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,i=1/(t.fps||1);for(let s=0,a=n.length;s!==a;++s)e.push(_o(n[s]).scale(i));const r=new this(t.name,t.duration,e,t.blendMode);return r.uuid=t.uuid,r}static toJSON(t){const e=[],n=t.tracks,i={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let r=0,s=n.length;r!==s;++r)e.push(ho.toJSON(n[r]));return i}static CreateFromMorphTargetSequence(t,e,n,i){const r=e.length,s=[];for(let a=0;a<r;a++){let t=[],o=[];t.push((a+r-1)%r,a,(a+1)%r),o.push(0,1,0);const l=so.getKeyframeOrder(t);t=so.sortedArray(t,1,l),o=so.sortedArray(o,1,l),i||0!==t[0]||(t.push(r),o.push(o[0])),s.push(new mo(".morphTargetInfluences["+e[a].name+"]",t,o).scale(1/n))}return new this(t,-1,s)}static findByName(t,e){let n=t;if(!Array.isArray(t)){const e=t;n=e.geometry&&e.geometry.animations||e.animations}for(let i=0;i<n.length;i++)if(n[i].name===e)return n[i];return null}static CreateClipsFromMorphTargetSequences(t,e,n){const i={},r=/^([\w-]*?)([\d]+)$/;for(let a=0,o=t.length;a<o;a++){const e=t[a],n=e.name.match(r);if(n&&n.length>1){const t=n[1];let r=i[t];r||(i[t]=r=[]),r.push(e)}}const s=[];for(const a in i)s.push(this.CreateFromMorphTargetSequence(a,i[a],e,n));return s}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,i,r){if(0!==n.length){const s=[],a=[];so.flattenJSON(n,s,a,i),0!==s.length&&r.push(new t(e,s,a))}},i=[],r=t.name||"default",s=t.fps||30,a=t.blendMode;let o=t.length||-1;const l=t.hierarchy||[];for(let c=0;c<l.length;c++){const t=l[c].keys;if(t&&0!==t.length)if(t[0].morphTargets){const e={};let n;for(n=0;n<t.length;n++)if(t[n].morphTargets)for(let i=0;i<t[n].morphTargets.length;i++)e[t[n].morphTargets[i]]=-1;for(const r in e){const e=[],s=[];for(let i=0;i!==t[n].morphTargets.length;++i){const i=t[n];e.push(i.time),s.push(i.morphTarget===r?1:0)}i.push(new mo(".morphTargetInfluence["+r+"]",e,s))}o=e.length*(s||1)}else{const r=".bones["+e[c].name+"]";n(xo,r+".position",t,"pos",i),n(go,r+".quaternion",t,"rot",i),n(xo,r+".scale",t,"scl",i)}}if(0===i.length)return null;return new this(r,o,i,a)}resetDuration(){let t=0;for(let e=0,n=this.tracks.length;e!==n;++e){const n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this}trim(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this}validate(){let t=!0;for(let e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t}optimize(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}clone(){const t=[];for(let e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new this.constructor(this.name,this.duration,t,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function _o(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return mo;case"vector":case"vector2":case"vector3":case"vector4":return xo;case"color":return po;case"quaternion":return go;case"bool":case"boolean":return uo;case"string":return vo}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){const e=[],n=[];so.flattenJSON(t.keys,e,n,"value"),t.times=e,t.values=n}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const Mo={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class bo{constructor(t,e,n){const i=this;let r,s=!1,a=0,o=0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){o++,!1===s&&void 0!==i.onStart&&i.onStart(t,a,o),s=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,o),a===o&&(s=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return r?r(t):t},this.setURLModifier=function(t){return r=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=l.length;e<n;e+=2){const n=l[e],i=l[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return i}return null}}}const wo=new bo;class So{constructor(t){this.manager=void 0!==t?t:wo,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,e){const n=this;return new Promise((function(i,r){n.load(t,i,e,r)}))}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}const To={};class Eo extends So{constructor(t){super(t)}load(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=Mo.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout((function(){e&&e(s),r.manager.itemEnd(t)}),0),s;if(void 0!==To[t])return void To[t].push({onLoad:e,onProgress:n,onError:i});const a=t.match(/^data:(.*?)(;base64)?,(.*)$/);let o;if(a){const n=a[1],s=!!a[2];let o=a[3];o=decodeURIComponent(o),s&&(o=atob(o));try{let i;const s=(this.responseType||"").toLowerCase();switch(s){case"arraybuffer":case"blob":const t=new Uint8Array(o.length);for(let n=0;n<o.length;n++)t[n]=o.charCodeAt(n);i="blob"===s?new Blob([t.buffer],{type:n}):t.buffer;break;case"document":const e=new DOMParser;i=e.parseFromString(o,n);break;case"json":i=JSON.parse(o);break;default:i=o}setTimeout((function(){e&&e(i),r.manager.itemEnd(t)}),0)}catch(l){setTimeout((function(){i&&i(l),r.manager.itemError(t),r.manager.itemEnd(t)}),0)}}else{To[t]=[],To[t].push({onLoad:e,onProgress:n,onError:i}),o=new XMLHttpRequest,o.open("GET",t,!0),o.addEventListener("load",(function(e){const n=this.response,i=To[t];if(delete To[t],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),Mo.add(t,n);for(let t=0,e=i.length;t<e;t++){const e=i[t];e.onLoad&&e.onLoad(n)}r.manager.itemEnd(t)}else{for(let t=0,n=i.length;t<n;t++){const n=i[t];n.onError&&n.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)}}),!1),o.addEventListener("progress",(function(e){const n=To[t];for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onProgress&&i.onProgress(e)}}),!1),o.addEventListener("error",(function(e){const n=To[t];delete To[t];for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onError&&i.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)}),!1),o.addEventListener("abort",(function(e){const n=To[t];delete To[t];for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onError&&i.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)}),!1),void 0!==this.responseType&&(o.responseType=this.responseType),void 0!==this.withCredentials&&(o.withCredentials=this.withCredentials),o.overrideMimeType&&o.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain");for(const t in this.requestHeader)o.setRequestHeader(t,this.requestHeader[t]);o.send(null)}return r.manager.itemStart(t),o}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class Lo extends So{constructor(t){super(t)}load(t,e,n,i){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=Mo.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout((function(){e&&e(s),r.manager.itemEnd(t)}),0),s;const a=document.createElementNS("http://www.w3.org/1999/xhtml","img");function o(){a.removeEventListener("load",o,!1),a.removeEventListener("error",l,!1),Mo.add(t,this),e&&e(this),r.manager.itemEnd(t)}function l(e){a.removeEventListener("load",o,!1),a.removeEventListener("error",l,!1),i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)}return a.addEventListener("load",o,!1),a.addEventListener("error",l,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(t),a.src=t,a}}class Ao extends So{constructor(t){super(t)}load(t,e,n,i){const r=new Tn,s=new Lo(this.manager);s.setCrossOrigin(this.crossOrigin),s.setPath(this.path);let a=0;function o(n){s.load(t[n],(function(t){r.images[n]=t,a++,6===a&&(r.needsUpdate=!0,e&&e(r))}),void 0,i)}for(let l=0;l<t.length;++l)o(l);return r}}class Ro extends So{constructor(t){super(t)}load(t,e,n,i){const r=new st,s=new Lo(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(t,(function(n){r.image=n;const i=t.search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/);r.format=i?T:E,r.needsUpdate=!0,void 0!==e&&e(r)}),n,i),r}}class Co extends Qs{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(t){this.curves.push(t)}closePath(){const t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new ua(e,t))}getPoint(t){const e=t*this.getLength(),n=this.getCurveLengths();let i=0;for(;i<n.length;){if(n[i]>=e){const t=n[i]-e,r=this.curves[i],s=r.getLength(),a=0===s?0:1-t/s;return r.getPointAt(a)}i++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,i=this.curves.length;n<i;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t,t}getSpacedPoints(t=40){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e}getPoints(t=12){const e=[];let n;for(let i=0,r=this.curves;i<r.length;i++){const s=r[i],a=s&&s.isEllipseCurve?2*t:s&&(s.isLineCurve||s.isLineCurve3)?1:s&&s.isSplineCurve?t*s.points.length:t,o=s.getPoints(a);for(let t=0;t<o.length;t++){const i=o[t];n&&n.equals(i)||(e.push(i),n=i)}}return this.autoClose&&e.length>1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push(n.clone())}return this.autoClose=t.autoClose,this}toJSON(){const t=super.toJSON();t.autoClose=this.autoClose,t.curves=[];for(let e=0,n=this.curves.length;e<n;e++){const n=this.curves[e];t.curves.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.autoClose=t.autoClose,this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push((new fa[n.type]).fromJSON(n))}return this}}class Po extends Co{constructor(t){super(),this.type="Path",this.currentPoint=new tt,t&&this.setFromPoints(t)}setFromPoints(t){this.moveTo(t[0].x,t[0].y);for(let e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y);return this}moveTo(t,e){return this.currentPoint.set(t,e),this}lineTo(t,e){const n=new ua(this.currentPoint.clone(),new tt(t,e));return this.curves.push(n),this.currentPoint.set(t,e),this}quadraticCurveTo(t,e,n,i){const r=new da(this.currentPoint.clone(),new tt(t,e),new tt(n,i));return this.curves.push(r),this.currentPoint.set(n,i),this}bezierCurveTo(t,e,n,i,r,s){const a=new ca(this.currentPoint.clone(),new tt(t,e),new tt(n,i),new tt(r,s));return this.curves.push(a),this.currentPoint.set(r,s),this}splineThru(t){const e=[this.currentPoint.clone()].concat(t),n=new ma(e);return this.curves.push(n),this.currentPoint.copy(t[t.length-1]),this}arc(t,e,n,i,r,s){const a=this.currentPoint.x,o=this.currentPoint.y;return this.absarc(t+a,e+o,n,i,r,s),this}absarc(t,e,n,i,r,s){return this.absellipse(t,e,n,n,i,r,s),this}ellipse(t,e,n,i,r,s,a,o){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(t+l,e+c,n,i,r,s,a,o),this}absellipse(t,e,n,i,r,s,a,o){const l=new Ks(t,e,n,i,r,s,a,o);if(this.curves.length>0){const t=l.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class Do extends Po{constructor(t){super(t),this.uuid=Y(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,i=this.holes.length;n<i;n++)e[n]=this.holes[n].getPoints(t);return e}extractPoints(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}}copy(t){super.copy(t),this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.uuid=this.uuid,t.holes=[];for(let e=0,n=this.holes.length;e<n;e++){const n=this.holes[e];t.holes.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.uuid=t.uuid,this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push((new Po).fromJSON(n))}return this}}class No extends pe{constructor(t,e=1){super(),this.type="Light",this.color=new Ne(t),this.intensity=e}dispose(){}copy(t){return super.copy(t),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}No.prototype.isLight=!0;class Io extends No{constructor(t,e,n){super(t,n),this.type="HemisphereLight",this.position.copy(pe.DefaultUp),this.updateMatrix(),this.groundColor=new Ne(e)}copy(t){return No.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}Io.prototype.isHemisphereLight=!0;const zo=new Vt,Oo=new ut,Bo=new ut;class Fo{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.mapSize=new tt(512,512),this.map=null,this.mapPass=null,this.matrix=new Vt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Nn,this._frameExtents=new tt(1,1),this._viewportCount=1,this._viewports=[new ot(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;Oo.setFromMatrixPosition(t.matrixWorld),e.position.copy(Oo),Bo.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(Bo),e.updateMatrixWorld(),zo.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(zo),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(e.projectionMatrix),n.multiply(e.matrixWorldInverse)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class Uo extends Fo{constructor(){super(new bn(50,1,.5,500)),this.focus=1}updateMatrices(t){const e=this.camera,n=2*X*t.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=t.distance||e.far;n===e.fov&&i===e.aspect&&r===e.far||(e.fov=n,e.aspect=i,e.far=r,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}Uo.prototype.isSpotLightShadow=!0;class Ho extends No{constructor(t,e,n=0,i=Math.PI/3,r=0,s=1){super(t,e),this.type="SpotLight",this.position.copy(pe.DefaultUp),this.updateMatrix(),this.target=new pe,this.distance=n,this.angle=i,this.penumbra=r,this.decay=s,this.shadow=new Uo}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}Ho.prototype.isSpotLight=!0;const Go=new Vt,Vo=new ut,ko=new ut;class Wo extends Fo{constructor(){super(new bn(90,1,.5,500)),this._frameExtents=new tt(4,2),this._viewportCount=6,this._viewports=[new ot(2,1,1,1),new ot(0,1,1,1),new ot(3,1,1,1),new ot(1,1,1,1),new ot(3,0,1,1),new ot(1,0,1,1)],this._cubeDirections=[new ut(1,0,0),new ut(-1,0,0),new ut(0,0,1),new ut(0,0,-1),new ut(0,1,0),new ut(0,-1,0)],this._cubeUps=[new ut(0,1,0),new ut(0,1,0),new ut(0,1,0),new ut(0,1,0),new ut(0,0,1),new ut(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,i=this.matrix,r=t.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),Vo.setFromMatrixPosition(t.matrixWorld),n.position.copy(Vo),ko.copy(n.position),ko.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(ko),n.updateMatrixWorld(),i.makeTranslation(-Vo.x,-Vo.y,-Vo.z),Go.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Go)}}Wo.prototype.isPointLightShadow=!0;class jo extends No{constructor(t,e,n=0,i=1){super(t,e),this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new Wo}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}jo.prototype.isPointLight=!0;class qo extends Mn{constructor(t=-1,e=1,n=1,i=-1,r=.1,s=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=i,this.near=r,this.far=s,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,i,r,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-t,s=n+t,a=i+e,o=i-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=t*this.view.offsetX,s=r+t*this.view.width,a-=e*this.view.offsetY,o=a-e*this.view.height}this.projectionMatrix.makeOrthographic(r,s,a,o,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}qo.prototype.isOrthographicCamera=!0;class Xo extends Fo{constructor(){super(new qo(-5,5,5,-5,.5,500))}}Xo.prototype.isDirectionalLightShadow=!0;class Yo extends No{constructor(t,e){super(t,e),this.type="DirectionalLight",this.position.copy(pe.DefaultUp),this.updateMatrix(),this.target=new pe,this.shadow=new Xo}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}Yo.prototype.isDirectionalLight=!0;class Jo extends No{constructor(t,e){super(t,e),this.type="AmbientLight"}}Jo.prototype.isAmbientLight=!0;class Zo extends No{constructor(t,e,n=10,i=10){super(t,e),this.type="RectAreaLight",this.width=n,this.height=i}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}Zo.prototype.isRectAreaLight=!0;class Qo{constructor(){this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new ut)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const n=t.x,i=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.282095),e.addScaledVector(s[1],.488603*i),e.addScaledVector(s[2],.488603*r),e.addScaledVector(s[3],.488603*n),e.addScaledVector(s[4],n*i*1.092548),e.addScaledVector(s[5],i*r*1.092548),e.addScaledVector(s[6],.315392*(3*r*r-1)),e.addScaledVector(s[7],n*r*1.092548),e.addScaledVector(s[8],.546274*(n*n-i*i)),e}getIrradianceAt(t,e){const n=t.x,i=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.886227),e.addScaledVector(s[1],1.023328*i),e.addScaledVector(s[2],1.023328*r),e.addScaledVector(s[3],1.023328*n),e.addScaledVector(s[4],.858086*n*i),e.addScaledVector(s[5],.858086*i*r),e.addScaledVector(s[6],.743125*r*r-.247708),e.addScaledVector(s[7],.858086*n*r),e.addScaledVector(s[8],.429043*(n*n-i*i)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(t.coefficients[n],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let n=0;n<9;n++)this.coefficients[n].lerp(t.coefficients[n],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(t,e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].fromArray(t,e+3*i);return this}toArray(t=[],e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].toArray(t,e+3*i);return t}static getBasisAt(t,e){const n=t.x,i=t.y,r=t.z;e[0]=.282095,e[1]=.488603*i,e[2]=.488603*r,e[3]=.488603*n,e[4]=1.092548*n*i,e[5]=1.092548*i*r,e[6]=.315392*(3*r*r-1),e[7]=1.092548*n*r,e[8]=.546274*(n*n-i*i)}}Qo.prototype.isSphericalHarmonics3=!0;class Ko extends No{constructor(t=new Qo,e=1){super(void 0,e),this.sh=t}copy(t){return super.copy(t),this.sh.copy(t.sh),this}fromJSON(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this}toJSON(t){const e=super.toJSON(t);return e.object.sh=this.sh.toArray(),e}}Ko.prototype.isLightProbe=!0;class $o{static decodeText(t){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(t);let e="";for(let i=0,r=t.length;i<r;i++)e+=String.fromCharCode(t[i]);try{return decodeURIComponent(escape(e))}catch(n){return e}}static extractUrlBase(t){const e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)}}class tl extends Je{constructor(){super(),this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(t){return super.copy(t),this.instanceCount=t.instanceCount,this}clone(){return(new this.constructor).copy(this)}toJSON(){const t=super.toJSON(this);return t.instanceCount=this.instanceCount,t.isInstancedBufferGeometry=!0,t}}tl.prototype.isInstancedBufferGeometry=!0;class el extends Be{constructor(t,e,n,i=1){"number"===typeof n&&(i=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),super(t,e,n),this.meshPerAttribute=i}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}toJSON(){const t=super.toJSON();return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}}el.prototype.isInstancedBufferAttribute=!0;(class extends So{constructor(t){super(t),"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(t){return this.options=t,this}load(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=Mo.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout((function(){e&&e(s),r.manager.itemEnd(t)}),0),s;const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",a.headers=this.requestHeader,fetch(t,a).then((function(t){return t.blob()})).then((function(t){return createImageBitmap(t,Object.assign(r.options,{colorSpaceConversion:"none"}))})).then((function(n){Mo.add(t,n),e&&e(n),r.manager.itemEnd(t)})).catch((function(e){i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)})),r.manager.itemStart(t)}}).prototype.isImageBitmapLoader=!0;class nl{constructor(){this.type="ShapePath",this.color=new Ne,this.subPaths=[],this.currentPath=null}moveTo(t,e){return this.currentPath=new Po,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e),this}lineTo(t,e){return this.currentPath.lineTo(t,e),this}quadraticCurveTo(t,e,n,i){return this.currentPath.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,s){return this.currentPath.bezierCurveTo(t,e,n,i,r,s),this}splineThru(t){return this.currentPath.splineThru(t),this}toShapes(t,e){function n(t){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n],r=new Do;r.curves=i.curves,e.push(r)}return e}function i(t,e){const n=e.length;let i=!1;for(let r=n-1,s=0;s<n;r=s++){let n=e[r],a=e[s],o=a.x-n.x,l=a.y-n.y;if(Math.abs(l)>Number.EPSILON){if(l<0&&(n=e[s],o=-o,a=e[r],l=-l),t.y<n.y||t.y>a.y)continue;if(t.y===n.y){if(t.x===n.x)return!0}else{const e=l*(t.x-n.x)-o*(t.y-n.y);if(0===e)return!0;if(e<0)continue;i=!i}}else{if(t.y!==n.y)continue;if(a.x<=t.x&&t.x<=n.x||n.x<=t.x&&t.x<=a.x)return!0}}return i}const r=Ga.isClockWise,s=this.subPaths;if(0===s.length)return[];if(!0===e)return n(s);let a,o,l;const c=[];if(1===s.length)return o=s[0],l=new Do,l.curves=o.curves,c.push(l),c;let h=!r(s[0].getPoints());h=t?!h:h;const u=[],d=[];let p,m,f=[],g=0;d[g]=void 0,f[g]=[];for(let v=0,x=s.length;v<x;v++)o=s[v],p=o.getPoints(),a=r(p),a=t?!a:a,a?(!h&&d[g]&&g++,d[g]={s:new Do,p:p},d[g].s.curves=o.curves,h&&g++,f[g]=[]):f[g].push({h:o,p:p[0]});if(!d[0])return n(s);if(d.length>1){let t=!1;const e=[];for(let n=0,i=d.length;n<i;n++)u[n]=[];for(let n=0,r=d.length;n<r;n++){const r=f[n];for(let s=0;s<r.length;s++){const a=r[s];let o=!0;for(let r=0;r<d.length;r++)i(a.p,d[r].p)&&(n!==r&&e.push({froms:n,tos:r,hole:s}),o?(o=!1,u[r].push(a)):t=!0);o&&u[n].push(a)}}e.length>0&&(t||(f=u))}for(let v=0,x=d.length;v<x;v++){l=d[v].s,c.push(l),m=f[v];for(let t=0,e=m.length;t<e;t++)l.holes.push(m[t].h)}return c}}class il{constructor(t){this.type="Font",this.data=t}generateShapes(t,e=100){const n=[],i=function(t,e,n){const i=Array.from(t),r=e/n.resolution,s=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*r,a=[];let o=0,l=0;for(let c=0;c<i.length;c++){const t=i[c];if("\n"===t)o=0,l-=s;else{const e=rl(t,r,o,l,n);o+=e.offsetX,a.push(e.path)}}return a}(t,e,this.data);for(let r=0,s=i.length;r<s;r++)Array.prototype.push.apply(n,i[r].toShapes());return n}}function rl(t,e,n,i,r){const s=r.glyphs[t]||r.glyphs["?"];if(!s)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+r.familyName+".");const a=new nl;let o,l,c,h,u,d,p,m;if(s.o){const t=s._cachedOutline||(s._cachedOutline=s.o.split(" "));for(let r=0,s=t.length;r<s;){switch(t[r++]){case"m":o=t[r++]*e+n,l=t[r++]*e+i,a.moveTo(o,l);break;case"l":o=t[r++]*e+n,l=t[r++]*e+i,a.lineTo(o,l);break;case"q":c=t[r++]*e+n,h=t[r++]*e+i,u=t[r++]*e+n,d=t[r++]*e+i,a.quadraticCurveTo(u,d,c,h);break;case"b":c=t[r++]*e+n,h=t[r++]*e+i,u=t[r++]*e+n,d=t[r++]*e+i,p=t[r++]*e+n,m=t[r++]*e+i,a.bezierCurveTo(u,d,p,m,c,h)}}}return{offsetX:s.ha*e,path:a}}il.prototype.isFont=!0;let sl;const al=function(){return void 0===sl&&(sl=new(window.AudioContext||window.webkitAudioContext)),sl};class ol extends So{constructor(t){super(t)}load(t,e,n,i){const r=this,s=new Eo(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,(function(n){try{const t=n.slice(0);al().decodeAudioData(t,(function(t){e(t)}))}catch(s){i?i(s):console.error(s),r.manager.itemError(t)}}),n,i)}}(class extends Ko{constructor(t,e,n=1){super(void 0,n);const i=(new Ne).set(t),r=(new Ne).set(e),s=new ut(i.r,i.g,i.b),a=new ut(r.r,r.g,r.b),o=Math.sqrt(Math.PI),l=o*Math.sqrt(.75);this.sh.coefficients[0].copy(s).add(a).multiplyScalar(o),this.sh.coefficients[1].copy(s).sub(a).multiplyScalar(l)}}).prototype.isHemisphereLightProbe=!0;(class extends Ko{constructor(t,e=1){super(void 0,e);const n=(new Ne).set(t);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}).prototype.isAmbientLightProbe=!0;class ll{constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=cl(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=cl();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function cl(){return("undefined"===typeof performance?Date:performance).now()}class hl extends pe{constructor(t){super(),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this}setMediaElementSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this}setMediaStreamSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(t),this.connect(),this}setBuffer(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this}play(t=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+t;const e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.onended=this.onEnded.bind(this),e.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=e,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}getFilters(){return this.filters}setFilters(t){return t||(t=[]),!0===this._connected?(this.disconnect(),this.filters=t.slice(),this.connect()):this.filters=t.slice(),this}setDetune(t){if(this.detune=t,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(t){return this.setFilters(t?[t]:[])}setPlaybackRate(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}setLoopStart(t){return this.loopStart=t,this}setLoopEnd(t){return this.loopEnd=t,this}getVolume(){return this.gain.gain.value}setVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}class ul{constructor(t,e,n){let i,r,s;switch(this.binding=t,this.valueSize=n,e){case"quaternion":i=this._slerp,r=this._slerpAdditive,s=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":i=this._select,r=this._select,s=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:i=this._lerp,r=this._lerpAdditive,s=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=i,this._mixBufferRegionAdditive=r,this._setIdentity=s,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(t,e){const n=this.buffer,i=this.valueSize,r=t*i+i;let s=this.cumulativeWeight;if(0===s){for(let t=0;t!==i;++t)n[r+t]=n[t];s=e}else{s+=e;const t=e/s;this._mixBufferRegion(n,r,0,t,i)}this.cumulativeWeight=s}accumulateAdditive(t){const e=this.buffer,n=this.valueSize,i=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(e,i,0,t,n),this.cumulativeWeightAdditive+=t}apply(t){const e=this.valueSize,n=this.buffer,i=t*e+e,r=this.cumulativeWeight,s=this.cumulativeWeightAdditive,a=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,r<1){const t=e*this._origIndex;this._mixBufferRegion(n,i,t,1-r,e)}s>0&&this._mixBufferRegionAdditive(n,i,this._addIndex*e,1,e);for(let o=e,l=e+e;o!==l;++o)if(n[o]!==n[o+e]){a.setValue(n,i);break}}saveOriginalState(){const t=this.binding,e=this.buffer,n=this.valueSize,i=n*this._origIndex;t.getValue(e,i);for(let r=n,s=i;r!==s;++r)e[r]=e[i+r%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)}_setAdditiveIdentityNumeric(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let n=t;n<e;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const t=this._origIndex*this.valueSize,e=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[e+n]=this.buffer[t+n]}_select(t,e,n,i,r){if(i>=.5)for(let s=0;s!==r;++s)t[e+s]=t[n+s]}_slerp(t,e,n,i){ht.slerpFlat(t,e,t,e,t,n,i)}_slerpAdditive(t,e,n,i,r){const s=this._workIndex*r;ht.multiplyQuaternionsFlat(t,s,t,e,t,n),ht.slerpFlat(t,e,t,e,t,s,i)}_lerp(t,e,n,i,r){const s=1-i;for(let a=0;a!==r;++a){const r=e+a;t[r]=t[r]*s+t[n+a]*i}}_lerpAdditive(t,e,n,i,r){for(let s=0;s!==r;++s){const r=e+s;t[r]=t[r]+t[n+s]*i}}}const dl="\\[\\]\\.:\\/",pl=new RegExp("[\\[\\]\\.:\\/]","g"),ml="[^\\[\\]\\.:\\/]",fl="[^"+dl.replace("\\.","")+"]",gl=/((?:WC+[\/:])*)/.source.replace("WC",ml),vl=/(WCOD+)?/.source.replace("WCOD",fl),xl=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",ml),yl=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",ml),_l=new RegExp("^"+gl+vl+xl+yl+"$"),Ml=["material","materials","bones"];class bl{constructor(t,e,n){this.path=e,this.parsedPath=n||bl.parseTrackName(e),this.node=bl.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,n){return t&&t.isAnimationObjectGroup?new bl.Composite(t,e,n):new bl(t,e,n)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(pl,"")}static parseTrackName(t){const e=_l.exec(t);if(!e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){const t=n.nodeName.substring(i+1);-1!==Ml.indexOf(t)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=t)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}static findNode(t,e){if(!e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){const n=function(t){for(let i=0;i<t.length;i++){const r=t[i];if(r.name===e||r.uuid===e)return r;const s=n(r.children);if(s)return s}return null},i=n(t.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,e){t[e]=this.node[this.propertyName]}_getValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)t[e++]=n[i]}_getValue_arrayElement(t,e){t[e]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,e){this.resolvedProperty.toArray(t,e)}_setValue_direct(t,e){this.targetObject[this.propertyName]=t[e]}_setValue_direct_setNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++]}_setValue_array_setNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,e){this.resolvedProperty[this.propertyIndex]=t[e]}_setValue_arrayElement_setNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,e){this.resolvedProperty.fromArray(t,e)}_setValue_fromArray_setNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,e){this.bind(),this.getValue(t,e)}_setValue_unbound(t,e){this.bind(),this.setValue(t,e)}bind(){let t=this.node;const e=this.parsedPath,n=e.objectName,i=e.propertyName;let r=e.propertyIndex;if(t||(t=bl.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let i=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===i){i=e;break}break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==i){if(void 0===t[i])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[i]}}const s=t[i];if(void 0===s){const n=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+i+" but it wasn't found.",t)}let a=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let o=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[r]&&(r=t.morphTargetDictionary[r])}o=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=r}else void 0!==s.fromArray&&void 0!==s.toArray?(o=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(o=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=i;this.getValue=this.GetterByBindingType[o],this.setValue=this.SetterByBindingTypeAndVersioning[o][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}bl.Composite=class{constructor(t,e,n){const i=n||bl.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,i)}getValue(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(t,e)}setValue(t,e){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(t,e)}bind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()}unbind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}},bl.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},bl.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},bl.prototype.GetterByBindingType=[bl.prototype._getValue_direct,bl.prototype._getValue_array,bl.prototype._getValue_arrayElement,bl.prototype._getValue_toArray],bl.prototype.SetterByBindingTypeAndVersioning=[[bl.prototype._setValue_direct,bl.prototype._setValue_direct_setNeedsUpdate,bl.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[bl.prototype._setValue_array,bl.prototype._setValue_array_setNeedsUpdate,bl.prototype._setValue_array_setMatrixWorldNeedsUpdate],[bl.prototype._setValue_arrayElement,bl.prototype._setValue_arrayElement_setNeedsUpdate,bl.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[bl.prototype._setValue_fromArray,bl.prototype._setValue_fromArray_setNeedsUpdate,bl.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class wl{constructor(t,e,n=null,i=e.blendMode){this._mixer=t,this._clip=e,this._localRoot=n,this.blendMode=i;const r=e.tracks,s=r.length,a=new Array(s),o={endingStart:D,endingEnd:D};for(let l=0;l!==s;++l){const t=r[l].createInterpolant(null);a[l]=t,t.settings=o}this._interpolantSettings=o,this._interpolants=a,this._propertyBindings=new Array(s),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(t){return this._startTime=t,this}setLoop(t,e){return this.loop=t,this.repetitions=e,this}setEffectiveWeight(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(t){return this._scheduleFading(t,0,1)}fadeOut(t){return this._scheduleFading(t,1,0)}crossFadeFrom(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){const n=this._clip.duration,i=t._clip.duration,r=i/n,s=n/i;t.warp(1,r,e),this.warp(s,1,e)}return this}crossFadeTo(t,e,n){return t.crossFadeFrom(this,e,n)}stopFading(){const t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}setEffectiveTimeScale(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(t){return this.timeScale=this._clip.duration/t,this.stopWarping()}syncWith(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()}halt(t){return this.warp(this._effectiveTimeScale,0,t)}warp(t,e,n){const i=this._mixer,r=i.time,s=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const o=a.parameterPositions,l=a.sampleValues;return o[0]=r,o[1]=r+n,l[0]=t/s,l[1]=e/s,this}stopWarping(){const t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(t,e,n,i){if(!this.enabled)return void this._updateWeight(t);const r=this._startTime;if(null!==r){const i=(t-r)*n;if(i<0||0===n)return;this._startTime=null,e=n*i}e*=this._updateTimeScale(t);const s=this._updateTime(e),a=this._updateWeight(t);if(a>0){const t=this._interpolants,e=this._propertyBindings;switch(this.blendMode){case 2501:for(let n=0,i=t.length;n!==i;++n)t[n].evaluate(s),e[n].accumulateAdditive(a);break;case z:default:for(let n=0,r=t.length;n!==r;++n)t[n].evaluate(s),e[n].accumulate(i,a)}}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const n=this._weightInterpolant;if(null!==n){const i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,n=this.loop;let i=this.time+t,r=this._loopCount;const s=2202===n;if(0===t)return-1===r?i:s&&1===(1&r)?e-i:i;if(2200===n){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(i>=e)i=e;else{if(!(i<0)){this.time=i;break t}i=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,s)):this._setEndings(0===this.repetitions,!0,s)),i>=e||i<0){const n=Math.floor(i/e);i-=e*n,r+=Math.abs(n);const a=this.repetitions-r;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=t>0?e:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===a){const e=t<0;this._setEndings(e,!e,s)}else this._setEndings(!1,!1,s);this._loopCount=r,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=i;if(s&&1===(1&r))return e-i}return i}_setEndings(t,e,n){const i=this._interpolantSettings;n?(i.endingStart=N,i.endingEnd=N):(i.endingStart=t?this.zeroSlopeAtStart?N:D:I,i.endingEnd=e?this.zeroSlopeAtEnd?N:D:I)}_scheduleFading(t,e,n){const i=this._mixer,r=i.time;let s=this._weightInterpolant;null===s&&(s=i._lendControlInterpolant(),this._weightInterpolant=s);const a=s.parameterPositions,o=s.sampleValues;return a[0]=r,o[0]=e,a[1]=r+t,o[1]=n,this}}(class extends W{constructor(t){super(),this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(t,e){const n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,s=t._propertyBindings,a=t._interpolants,o=n.uuid,l=this._bindingsByRootAndName;let c=l[o];void 0===c&&(c={},l[o]=c);for(let h=0;h!==r;++h){const t=i[h],r=t.name;let l=c[r];if(void 0!==l)s[h]=l;else{if(l=s[h],void 0!==l){null===l._cacheIndex&&(++l.referenceCount,this._addInactiveBinding(l,o,r));continue}const i=e&&e._propertyBindings[h].binding.parsedPath;l=new ul(bl.create(n,r,i),t.ValueTypeName,t.getValueSize()),++l.referenceCount,this._addInactiveBinding(l,o,r),s[h]=l}a[h].resultBuffer=l.buffer}}_activateAction(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){const e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0===n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(t)}}_deactivateAction(t){if(this._isActiveAction(t)){const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0===--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(t)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}}_isActiveAction(t){const e=t._cacheIndex;return null!==e&&e<this._nActiveActions}_addInactiveAction(t,e,n){const i=this._actions,r=this._actionsByClip;let s=r[e];if(void 0===s)s={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=s;else{const e=s.knownActions;t._byClipCacheIndex=e.length,e.push(t)}t._cacheIndex=i.length,i.push(t),s.actionByRoot[n]=t}_removeInactiveAction(t){const e=this._actions,n=e[e.length-1],i=t._cacheIndex;n._cacheIndex=i,e[i]=n,e.pop(),t._cacheIndex=null;const r=t._clip.uuid,s=this._actionsByClip,a=s[r],o=a.knownActions,l=o[o.length-1],c=t._byClipCacheIndex;l._byClipCacheIndex=c,o[c]=l,o.pop(),t._byClipCacheIndex=null;delete a.actionByRoot[(t._localRoot||this._root).uuid],0===o.length&&delete s[r],this._removeInactiveBindingsForAction(t)}_removeInactiveBindingsForAction(t){const e=t._propertyBindings;for(let n=0,i=e.length;n!==i;++n){const t=e[n];0===--t.referenceCount&&this._removeInactiveBinding(t)}}_lendAction(t){const e=this._actions,n=t._cacheIndex,i=this._nActiveActions++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_takeBackAction(t){const e=this._actions,n=t._cacheIndex,i=--this._nActiveActions,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_addInactiveBinding(t,e,n){const i=this._bindingsByRootAndName,r=this._bindings;let s=i[e];void 0===s&&(s={},i[e]=s),s[n]=t,t._cacheIndex=r.length,r.push(t)}_removeInactiveBinding(t){const e=this._bindings,n=t.binding,i=n.rootNode.uuid,r=n.path,s=this._bindingsByRootAndName,a=s[i],o=e[e.length-1],l=t._cacheIndex;o._cacheIndex=l,e[l]=o,e.pop(),delete a[r],0===Object.keys(a).length&&delete s[i]}_lendBinding(t){const e=this._bindings,n=t._cacheIndex,i=this._nActiveBindings++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_takeBackBinding(t){const e=this._bindings,n=t._cacheIndex,i=--this._nActiveBindings,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_lendControlInterpolant(){const t=this._controlInterpolants,e=this._nActiveControlInterpolants++;let n=t[e];return void 0===n&&(n=new lo(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=e,t[e]=n),n}_takeBackControlInterpolant(t){const e=this._controlInterpolants,n=t.__cacheIndex,i=--this._nActiveControlInterpolants,r=e[i];t.__cacheIndex=i,e[i]=t,r.__cacheIndex=n,e[n]=r}clipAction(t,e,n){const i=e||this._root,r=i.uuid;let s="string"===typeof t?yo.findByName(i,t):t;const a=null!==s?s.uuid:t,o=this._actionsByClip[a];let l=null;if(void 0===n&&(n=null!==s?s.blendMode:z),void 0!==o){const t=o.actionByRoot[r];if(void 0!==t&&t.blendMode===n)return t;l=o.knownActions[0],null===s&&(s=l._clip)}if(null===s)return null;const c=new wl(this,s,e,n);return this._bindAction(c,l),this._addInactiveAction(c,a,r),c}existingAction(t,e){const n=e||this._root,i=n.uuid,r="string"===typeof t?yo.findByName(n,t):t,s=r?r.uuid:t,a=this._actionsByClip[s];return void 0!==a&&a.actionByRoot[i]||null}stopAllAction(){const t=this._actions;for(let e=this._nActiveActions-1;e>=0;--e)t[e].stop();return this}update(t){t*=this.timeScale;const e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),s=this._accuIndex^=1;for(let l=0;l!==n;++l){e[l]._update(i,t,r,s)}const a=this._bindings,o=this._nActiveBindings;for(let l=0;l!==o;++l)a[l].apply(s);return this}setTime(t){this.time=0;for(let e=0;e<this._actions.length;e++)this._actions[e].time=0;return this.update(t)}getRoot(){return this._root}uncacheClip(t){const e=this._actions,n=t.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){const t=r.knownActions;for(let n=0,i=t.length;n!==i;++n){const i=t[n];this._deactivateAction(i);const r=i._cacheIndex,s=e[e.length-1];i._cacheIndex=null,i._byClipCacheIndex=null,s._cacheIndex=r,e[r]=s,e.pop(),this._removeInactiveBindingsForAction(i)}delete i[n]}}uncacheRoot(t){const e=t.uuid,n=this._actionsByClip;for(const r in n){const t=n[r].actionByRoot[e];void 0!==t&&(this._deactivateAction(t),this._removeInactiveAction(t))}const i=this._bindingsByRootAndName[e];if(void 0!==i)for(const r in i){const t=i[r];t.restoreOriginalState(),this._removeInactiveBinding(t)}}uncacheAction(t,e){const n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}).prototype._controlInterpolantsResultBuffer=new Float32Array(1);class Sl{constructor(t){"string"===typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}clone(){return new Sl(void 0===this.value.clone?this.value:this.value.clone())}}(class extends Kr{constructor(t,e,n=1){super(t,e),this.meshPerAttribute=n}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}clone(t){const e=super.clone(t);return e.meshPerAttribute=this.meshPerAttribute,e}toJSON(t){const e=super.toJSON(t);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}}).prototype.isInstancedInterleavedBuffer=!0;class Tl{constructor(t,e,n=0,i=1/0){this.ray=new Gt(t,e),this.near=n,this.far=i,this.camera=null,this.layers=new $t,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(t,e){this.ray.set(t,e)}setFromCamera(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)}intersectObject(t,e=!1,n=[]){return Ll(t,this,n,e),n.sort(El),n}intersectObjects(t,e=!1,n=[]){for(let i=0,r=t.length;i<r;i++)Ll(t[i],this,n,e);return n.sort(El),n}}function El(t,e){return t.distance-e.distance}function Ll(t,e,n,i){if(t.layers.test(e.layers)&&t.raycast(e,n),!0===i){const i=t.children;for(let t=0,r=i.length;t<r;t++)Ll(i[t],e,n,!0)}}class Al{constructor(t=1,e=0,n=0){return this.radius=t,this.phi=e,this.theta=n,this}set(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this}makeSafe(){const t=1e-6;return this.phi=Math.max(t,Math.min(Math.PI-t,this.phi)),this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+e*e+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,n),this.phi=Math.acos(J(e/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}const Rl=new tt;class Cl{constructor(t=new tt(1/0,1/0),e=new tt(-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=Rl.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(t){return this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return Rl.copy(t).clamp(this.min,this.max).sub(t).length()}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}Cl.prototype.isBox2=!0;(class extends pe{constructor(t){super(),this.material=t,this.render=function(){},this.hasPositions=!1,this.hasNormals=!1,this.hasColors=!1,this.hasUvs=!1,this.positionArray=null,this.normalArray=null,this.colorArray=null,this.uvArray=null,this.count=0}}).prototype.isImmediateRenderObject=!0;const Pl=new ut,Dl=new Vt,Nl=new Vt;function Il(t){const e=[];t&&t.isBone&&e.push(t);for(let n=0;n<t.children.length;n++)e.push.apply(e,Il(t.children[n]));return e}const zl=new Float32Array(1);new Int32Array(zl.buffer);Math.pow(2,8);const Ol=[.125,.215,.35,.446,.526,.582],Bl=5+Ol.length,Fl=new Ie({side:s,depthWrite:!1,depthTest:!1}),{_lodPlanes:Ul,_sizeLods:Hl,_sigmas:Gl}=(new mn(new gn,Fl),Vl());Math.sqrt(5);function Vl(){const t=[],e=[],n=[];let i=8;for(let r=0;r<Bl;r++){const s=Math.pow(2,i);e.push(s);let a=1/s;r>4?a=Ol[r-8+4-1]:0==r&&(a=0),n.push(a);const o=1/(s-1),l=-o/2,c=1+o/2,h=[l,l,c,l,c,c,l,l,c,c,l,c],u=6,d=6,p=3,m=2,f=1,g=new Float32Array(p*d*u),v=new Float32Array(m*d*u),x=new Float32Array(f*d*u);for(let t=0;t<u;t++){const e=t%3*2/3-1,n=t>2?0:-1,i=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];g.set(i,p*d*t),v.set(h,m*d*t);const r=[t,t,t,t,t,t];x.set(r,f*d*t)}const y=new Je;y.setAttribute("position",new Be(g,p)),y.setAttribute("uv",new Be(v,m)),y.setAttribute("faceIndex",new Be(x,f)),t.push(y),i>4&&i--}return{_lodPlanes:t,_sizeLods:e,_sigmas:n}}Qs.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Qs.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Po.prototype.fromPoints=function(t){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)},class extends Us{constructor(t=10,e=10,n=4473924,i=8947848){n=new Ne(n),i=new Ne(i);const r=e/2,s=t/e,a=t/2,o=[],l=[];for(let h=0,u=0,d=-a;h<=e;h++,d+=s){o.push(-a,0,d,a,0,d),o.push(d,0,-a,d,0,a);const t=h===r?n:i;t.toArray(l,u),u+=3,t.toArray(l,u),u+=3,t.toArray(l,u),u+=3,t.toArray(l,u),u+=3}const c=new Je;c.setAttribute("position",new He(o,3)),c.setAttribute("color",new He(l,3));super(c,new Cs({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}}.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},class extends Us{constructor(t){const e=Il(t),n=new Je,i=[],r=[],s=new Ne(0,0,1),a=new Ne(0,1,0);for(let o=0;o<e.length;o++){const t=e[o];t.parent&&t.parent.isBone&&(i.push(0,0,0),i.push(0,0,0),r.push(s.r,s.g,s.b),r.push(a.r,a.g,a.b))}n.setAttribute("position",new He(i,3)),n.setAttribute("color",new He(r,3));super(n,new Cs({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(t){const e=this.bones,n=this.geometry,i=n.getAttribute("position");Nl.copy(this.root.matrixWorld).invert();for(let r=0,s=0;r<e.length;r++){const t=e[r];t.parent&&t.parent.isBone&&(Dl.multiplyMatrices(Nl,t.matrixWorld),Pl.setFromMatrixPosition(Dl),i.setXYZ(s,Pl.x,Pl.y,Pl.z),Dl.multiplyMatrices(Nl,t.parent.matrixWorld),Pl.setFromMatrixPosition(Dl),i.setXYZ(s+1,Pl.x,Pl.y,Pl.z),s+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(t)}}.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},So.prototype.extractUrlBase=function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),$o.extractUrlBase(t)},So.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Cl.prototype.center=function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},Cl.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Cl.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Cl.prototype.size=function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)},mt.prototype.center=function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},mt.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},mt.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},mt.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},mt.prototype.size=function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)},Nt.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Nn.prototype.setFromMatrix=function(t){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(t)},et.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},et.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},et.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},et.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},et.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},et.prototype.getInverse=function(t){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},Vt.prototype.extractPosition=function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},Vt.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},Vt.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new ut).setFromMatrixColumn(this,3)},Vt.prototype.setRotationFromQuaternion=function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},Vt.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Vt.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Vt.prototype.multiplyVector4=function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Vt.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Vt.prototype.rotateAxis=function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},Vt.prototype.crossVector=function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Vt.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Vt.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Vt.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Vt.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Vt.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Vt.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Vt.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Vt.prototype.makeFrustum=function(t,e,n,i,r,s){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,i,n,r,s)},Vt.prototype.getInverse=function(t){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},Cn.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},ht.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},ht.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Gt.prototype.isIntersectionBox=function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Gt.prototype.isIntersectionPlane=function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},Gt.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},Se.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},Se.prototype.barycoordFromPoint=function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},Se.prototype.midpoint=function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},Se.prototypenormal=function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},Se.prototype.plane=function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)},Se.barycoordFromPoint=function(t,e,n,i,r){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Se.getBarycoord(t,e,n,i,r)},Se.normal=function(t,e,n,i){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Se.getNormal(t,e,n,i)},Do.prototype.extractAllPoints=function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},Do.prototype.extrude=function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Wa(this,t)},Do.prototype.makeGeometry=function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new qa(this,t)},tt.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},tt.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},tt.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},ut.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},ut.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},ut.prototype.getPositionFromMatrix=function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},ut.prototype.getScaleFromMatrix=function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},ut.prototype.getColumnFromMatrix=function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},ut.prototype.applyProjection=function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},ut.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},ut.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},ut.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},ot.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},ot.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},pe.prototype.getChildByName=function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},pe.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},pe.prototype.translate=function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},pe.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},pe.prototype.applyMatrix=function(t){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(pe.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),mn.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(mn.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),0},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),bs.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},bn.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(No.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(Be.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===V},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(V)}}}),Be.prototype.setDynamic=function(t){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?V:G),this},Be.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Be.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Je.prototype.addIndex=function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},Je.prototype.addAttribute=function(t,e){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):this.setAttribute(t,e):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(t,new Be(arguments[1],arguments[2])))},Je.prototype.addDrawCall=function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},Je.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},Je.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},Je.prototype.removeAttribute=function(t){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(t)},Je.prototype.applyMatrix=function(t){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(Je.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Kr.prototype.setDynamic=function(t){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?V:G),this},Kr.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Wa.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Wa.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Wa.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Qr.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Sl.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(Ee.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Ne}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===t}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(t){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=t}}}),Object.defineProperties(_n.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Yr.prototype.clearTarget=function(t,e,n,i){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,n,i)},Yr.prototype.animate=function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},Yr.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Yr.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Yr.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Yr.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Yr.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Yr.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Yr.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Yr.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Yr.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Yr.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Yr.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Yr.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Yr.prototype.enableScissorTest=function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},Yr.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Yr.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Yr.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Yr.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Yr.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Yr.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Yr.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Yr.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Yr.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Yr.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Yr.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(t){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===t?B:O}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(Fr.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(lt.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),hl.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const e=this;return(new ol).load(t,(function(t){e.setBuffer(t)})),this},Sn.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},Sn.prototype.clear=function(t,e,n,i){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(t,e,n,i)},it.crossOrigin=void 0,it.loadTexture=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const r=new Ro;r.setCrossOrigin(this.crossOrigin);const s=r.load(t,n,void 0,i);return e&&(s.mapping=e),s},it.loadTextureCube=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const r=new Ao;r.setCrossOrigin(this.crossOrigin);const s=r.load(t,n,void 0,i);return e&&(s.mapping=e),s},it.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},it.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:"130"}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__="130")}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/framework-2f612445bd50b211f15a.js b/out/_next/static/chunks/framework-2f612445bd50b211f15a.js
deleted file mode 100644
index dced741..0000000
--- a/out/_next/static/chunks/framework-2f612445bd50b211f15a.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{92703:function(e,t,n){"use strict";var r=n(50414);function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,a,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:l};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64448:function(e,t,n){"use strict";var r=n(67294),l=n(96086),a=n(63840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var u=new Set,i={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,l,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var l=y.hasOwnProperty(t)?y[t]:null;(null!==l?0===l.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,l,r)&&(n=null),r||null===l?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,_=60107,x=60108,C=60114,P=60109,N=60110,T=60112,L=60113,z=60120,O=60115,R=60116,M=60121,I=60128,D=60129,F=60130,U=60131;if("function"===typeof Symbol&&Symbol.for){var A=Symbol.for;E=A("react.element"),S=A("react.portal"),_=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),P=A("react.provider"),N=A("react.context"),T=A("react.forward_ref"),L=A("react.suspense"),z=A("react.suspense_list"),O=A("react.memo"),R=A("react.lazy"),M=A("react.block"),A("react.scope"),I=A("react.opaque.id"),D=A("react.debug_trace_mode"),F=A("react.offscreen"),U=A("react.legacy_hidden")}var V,j="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}function W(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var $=!1;function H(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(i){var r=i}Reflect.construct(e,[],t)}else{try{t.call()}catch(i){r=i}e.call(t.prototype)}else{try{throw Error()}catch(i){r=i}e()}}catch(i){if(i&&r&&"string"===typeof i.stack){for(var l=i.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,u=a.length-1;1<=o&&0<=u&&l[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return q(e.type);case M:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?le(e,t.type,n):t.hasOwnProperty("defaultValue")&&le(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function le(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=l({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,l=0;l<e.length;l++){if(e[l].value===n)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return l({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function se(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ye=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=ke(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Ne=null,Te=null;function Le(e){if(e=el(e)){if("function"!==typeof Pe)throw Error(o(280));var t=e.stateNode;t&&(t=nl(t),Pe(e.stateNode,e.type,t))}}function ze(e){Ne?Te?Te.push(e):Te=[e]:Ne=e}function Oe(){if(Ne){var e=Ne,t=Te;if(Te=Ne=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function Re(e,t){return e(t)}function Me(e,t,n,r,l){return e(t,n,r,l)}function Ie(){}var De=Re,Fe=!1,Ue=!1;function Ae(){null===Ne&&null===Te||(Ie(),Oe())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=nl(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var je=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){je=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ve){je=!1}function We(e,t,n,r,l,a,o,u,i){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var $e=!1,He=null,Qe=!1,qe=null,Ke={onError:function(e){$e=!0,He=e}};function Ye(e,t,n,r,l,a,o,u,i){$e=!1,He=null,We.apply(Ke,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(Xe(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){n=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return Ze(l),e;if(a===r)return Ze(l),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=l,r=a;else{for(var u=!1,i=l.child;i;){if(i===n){u=!0,n=l,r=a;break}if(i===r){u=!0,r=l,n=a;break}i=i.sibling}if(!u){for(i=a.child;i;){if(i===n){u=!0,n=a,r=l;break}if(i===r){u=!0,r=a,n=l;break}i=i.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,lt,at=!1,ot=[],ut=null,it=null,st=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,l){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:l,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,l,a),null!==t&&(null!==(t=el(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l),e)}function yt(e){var t=Jr(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void lt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=el(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=el(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==ut&&gt(ut)&&(ut=null),null!==it&&gt(it)&&(it=null),null!==st&&gt(st)&&(st=null),ct.forEach(bt),ft.forEach(bt)}function kt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,wt)))}function Et(e){function t(t){return kt(t,e)}if(0<ot.length){kt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&kt(ut,e),null!==it&&kt(it,e),null!==st&&kt(st,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},xt={},Ct={};function Pt(e){if(xt[e])return xt[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return xt[e]=n[t];return e}f&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Nt=Pt("animationend"),Tt=Pt("animationiteration"),Lt=Pt("animationstart"),zt=Pt("transitionend"),Ot=new Map,Rt=new Map,Mt=["abort","abort",Nt,"animationEnd",Tt,"animationIteration",Lt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",zt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],l=e[n+1];l="on"+(l[0].toUpperCase()+l.slice(1)),Rt.set(r,t),Ot.set(r,l),s(l,[r])}}(0,a.unstable_now)();var Dt=8;function Ft(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ut(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,l=0,a=e.expiredLanes,o=e.suspendedLanes,u=e.pingedLanes;if(0!==a)r=a,l=Dt=15;else if(0!==(a=134217727&n)){var i=a&~o;0!==i?(r=Ft(i),l=Dt):0!==(u&=a)&&(r=Ft(u),l=Dt)}else 0!==(a=n&~o)?(r=Ft(a),l=Dt):0!==u&&(r=Ft(u),l=Dt);if(0===r)return 0;if(r=n&((0>(r=31-$t(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(Ft(t),l<=Dt)return t;Dt=l}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)l=1<<(n=31-$t(t)),r|=e[n],t&=~l;return r}function At(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Vt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?Vt(10,t):e;case 10:return 0===(e=jt(192&~t))?Vt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&(0===(e=jt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function jt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-$t(t)]=n}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Qt|0)|0},Ht=Math.log,Qt=Math.LN2;var qt=a.unstable_UserBlockingPriority,Kt=a.unstable_runWithPriority,Yt=!0;function Xt(e,t,n,r){Fe||Ie();var l=Zt,a=Fe;Fe=!0;try{Me(l,e,t,n,r)}finally{(Fe=a)||Ae()}}function Gt(e,t,n,r){Kt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var l;if(Yt)if((l=0===(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var a=Jt(e,t,n,r);if(null===a)l&&mt(e,r);else{if(l){if(-1<pt.indexOf(e))return e=ht(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,l){switch(t){case"focusin":return ut=vt(ut,e,t,n,r,l),!0;case"dragenter":return it=vt(it,e,t,n,r,l),!0;case"mouseover":return st=vt(st,e,t,n,r,l),!0;case"pointerover":var a=l.pointerId;return ct.set(a,vt(ct.get(a)||null,e,t,n,r,l)),!0;case"gotpointercapture":return a=l.pointerId,ft.set(a,vt(ft.get(a)||null,e,t,n,r,l)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}Or(e,t,r,null,n)}}}function Jt(e,t,n,r){var l=Ce(r);if(null!==(l=Jr(l))){var a=Xe(l);if(null===a)l=null;else{var o=a.tag;if(13===o){if(null!==(l=Ge(a)))return l;l=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;l=null}else a!==l&&(l=null)}}return Or(e,t,r,l,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,l="value"in en?en.value:en.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===l[a-t];t++);return nn=l.slice(e,1<t?1-t:void 0)}function ln(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function un(e){function t(t,n,r,l,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?an:on,this.isPropagationStopped=on,this}return l(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),hn=l({},dn,{view:0,detail:0}),mn=un(hn),vn=l({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(sn=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=sn=0,fn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=un(vn),gn=un(l({},vn,{dataTransfer:0})),bn=un(l({},hn,{relatedTarget:0})),wn=un(l({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=un(l({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=un(l({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Pn(){return Cn}var Nn=un(l({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ln(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?ln(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ln(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=un(l({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=un(l({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),zn=un(l({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=un(l({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=[9,13,27,32],Mn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Dn=f&&"TextEvent"in window&&!In,Fn=f&&(!Mn||In&&8<In&&11>=In),Un=String.fromCharCode(32),An=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){ze(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,qn=null;function Kn(e){Cr(e,0)}function Yn(e){if(G(tl(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(f){var Zn;if(f){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Gn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Qn&&(Qn.detachEvent("onpropertychange",nr),qn=Qn=null)}function nr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];if(Hn(t,qn,e,Ce(e)),e=Kn,Fe)e(t);else{Fe=!0;try{Re(e,t)}finally{Fe=!1,Ae()}}}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function ar(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ir=Object.prototype.hasOwnProperty;function sr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ir.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Z(r)||("selectionStart"in(r=vr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=Mr(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Mt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<kr.length;Er++)Rt.set(kr[Er],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,l,a,u,i,s){if(Ye.apply(this,arguments),$e){if(!$e)throw Error(o(198));var c=He;$e=!1,He=null,Qe||(Qe=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Cr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],i=u.instance,s=u.currentTarget;if(u=u.listener,i!==a&&l.isPropagationStopped())break e;xr(l,u,s),a=i}else for(o=0;o<r.length;o++){if(i=(u=r[o]).instance,s=u.currentTarget,u=u.listener,i!==a&&l.isPropagationStopped())break e;xr(l,u,s),a=i}}}if(Qe)throw e=qe,Qe=!1,qe=null,e}function Pr(e,t){var n=rl(t),r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}var Nr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Nr]||(e[Nr]=!0,u.forEach((function(t){_r.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&_r.has(e)){if("scroll"!==e)return;l|=2,a=r}var o=rl(a),u=e+"__"+(t?"capture":"bubble");o.has(u)||(t&&(l|=4),zr(a,e,l,t),o.add(u))}function zr(e,t,n,r){var l=Rt.get(t);switch(void 0===l?2:l){case 0:l=Xt;break;case 1:l=Gt;break;default:l=Zt}n=l.bind(null,t,n,e),l=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Or(e,t,n,r,l){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var u=r.stateNode.containerInfo;if(u===l||8===u.nodeType&&u.parentNode===l)break;if(4===o)for(o=r.return;null!==o;){var i=o.tag;if((3===i||4===i)&&((i=o.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;o=o.return}for(;null!==u;){if(null===(o=Jr(u)))return;if(5===(i=o.tag)||6===i){r=a=o;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e(t,n);Ue=!0;try{De(e,t,n)}finally{Ue=!1,Ae()}}((function(){var r=a,l=Ce(n),o=[];e:{var u=Ot.get(e);if(void 0!==u){var i=pn,s=e;switch(e){case"keypress":if(0===ln(n))break e;case"keydown":case"keyup":i=Nn;break;case"focusin":s="focus",i=bn;break;case"focusout":s="blur",i=bn;break;case"beforeblur":case"afterblur":i=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=Ln;break;case Nt:case Tt:case Lt:i=wn;break;case zt:i=zn;break;case"scroll":i=mn;break;case"wheel":i=On;break;case"copy":case"cut":case"paste":i=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=Tn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==u?u+"Capture":null:u;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ve(h,d))&&c.push(Rr(h,m,p)))),f)break;h=h.return}0<c.length&&(u=new i(u,s,null,n,l),o.push({event:u,listeners:c}))}}if(0===(7&t)){if(i="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(s=n.relatedTarget||n.fromElement)||!Jr(s)&&!s[Gr])&&(i||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,i?(i=r,null!==(s=(s=n.relatedTarget||n.toElement)?Jr(s):null)&&(s!==(f=Xe(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=yn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==i?u:tl(i),p=null==s?u:tl(s),(u=new c(m,h+"leave",i,n,l)).target=f,u.relatedTarget=p,m=null,Jr(l)===r&&((c=new c(d,h+"enter",s,n,l)).target=p,c.relatedTarget=f,m=c),f=m,i&&s)e:{for(d=s,h=0,p=c=i;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==i&&Dr(o,u,i,c,!1),null!==s&&null!==f&&Dr(o,f,s,c,!0)}if("select"===(i=(u=r?tl(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===i&&"file"===u.type)var v=Xn;else if($n(u))if(Gn)v=or;else{v=lr;var y=rr}else(i=u.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(v=ar);switch(v&&(v=v(e,r))?Hn(o,v,n,l):(y&&y(e,u,r),"focusout"===e&&(y=u._wrapperState)&&y.controlled&&"number"===u.type&&le(u,"number",u.value)),y=r?tl(r):window,e){case"focusin":($n(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,l);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,l)}var g;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=rn()):(tn="value"in(en=l)?en.value:en.textContent,Bn=!0)),0<(y=Mr(r,b)).length&&(b=new En(b,e,null,n,l),o.push({event:b,listeners:y}),g?b.data=g:null!==(g=jn(n))&&(b.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(An=!0,Un);case"textInput":return(e=t.data)===Un&&An?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Mn&&Vn(e,t)?(e=rn(),nn=tn=en=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(l=new En("onBeforeInput","beforeinput",null,n,l),o.push({event:l,listeners:r}),l.data=g))}Cr(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=Ve(e,n))&&r.unshift(Rr(e,a,l)),null!=(a=Ve(e,t))&&r.push(Rr(e,a,l))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,l){for(var a=t._reactName,o=[];null!==n&&n!==r;){var u=n,i=u.alternate,s=u.stateNode;if(null!==i&&i===r)break;5===u.tag&&null!==s&&(u=s,l?null!=(i=Ve(n,a))&&o.unshift(Rr(n,i,u)):l||null!=(i=Ve(n,a))&&o.push(Rr(n,i,u))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Fr(){}var Ur=null,Ar=null;function Vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function jr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Br="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function $r(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0;var Kr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+Kr,Xr="__reactProps$"+Kr,Gr="__reactContainer$"+Kr,Zr="__reactEvents$"+Kr;function Jr(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Qr(e);null!==e;){if(n=e[Yr])return n;e=Qr(e)}return t}n=(e=n).parentNode}return null}function el(e){return!(e=e[Yr]||e[Gr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function tl(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function nl(e){return e[Xr]||null}function rl(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var ll=[],al=-1;function ol(e){return{current:e}}function ul(e){0>al||(e.current=ll[al],ll[al]=null,al--)}function il(e,t){al++,ll[al]=e.current,e.current=t}var sl={},cl=ol(sl),fl=ol(!1),dl=sl;function pl(e,t){var n=e.type.contextTypes;if(!n)return sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hl(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ml(){ul(fl),ul(cl)}function vl(e,t,n){if(cl.current!==sl)throw Error(o(168));il(cl,t),il(fl,n)}function yl(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return l({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sl,dl=cl.current,il(cl,e),il(fl,fl.current),!0}function bl(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=yl(e,t,dl),r.__reactInternalMemoizedMergedChildContext=e,ul(fl),ul(cl),il(cl,e)):ul(fl),il(fl,n)}var wl=null,kl=null,El=a.unstable_runWithPriority,Sl=a.unstable_scheduleCallback,_l=a.unstable_cancelCallback,xl=a.unstable_shouldYield,Cl=a.unstable_requestPaint,Pl=a.unstable_now,Nl=a.unstable_getCurrentPriorityLevel,Tl=a.unstable_ImmediatePriority,Ll=a.unstable_UserBlockingPriority,zl=a.unstable_NormalPriority,Ol=a.unstable_LowPriority,Rl=a.unstable_IdlePriority,Ml={},Il=void 0!==Cl?Cl:function(){},Dl=null,Fl=null,Ul=!1,Al=Pl(),Vl=1e4>Al?Pl:function(){return Pl()-Al};function jl(){switch(Nl()){case Tl:return 99;case Ll:return 98;case zl:return 97;case Ol:return 96;case Rl:return 95;default:throw Error(o(332))}}function Bl(e){switch(e){case 99:return Tl;case 98:return Ll;case 97:return zl;case 96:return Ol;case 95:return Rl;default:throw Error(o(332))}}function Wl(e,t){return e=Bl(e),El(e,t)}function $l(e,t,n){return e=Bl(e),Sl(e,t,n)}function Hl(){if(null!==Fl){var e=Fl;Fl=null,_l(e)}Ql()}function Ql(){if(!Ul&&null!==Dl){Ul=!0;var e=0;try{var t=Dl;Wl(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Dl=null}catch(n){throw null!==Dl&&(Dl=Dl.slice(e+1)),Sl(Tl,Hl),n}finally{Ul=!1}}}var ql=k.ReactCurrentBatchConfig;function Kl(e,t){if(e&&e.defaultProps){for(var n in t=l({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yl=ol(null),Xl=null,Gl=null,Zl=null;function Jl(){Zl=Gl=Xl=null}function ea(e){var t=Yl.current;ul(Yl),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function na(e,t){Xl=e,Zl=Gl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Mo=!0),e.firstContext=null)}function ra(e,t){if(Zl!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Zl=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Gl){if(null===Xl)throw Error(o(308));Gl=t,Xl.dependencies={lanes:0,firstContext:t,responders:null}}else Gl=Gl.next=t;return e._currentValue}var la=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ua(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ia(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function sa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?l=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;return n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var a=e.updateQueue;la=!1;var o=a.firstBaseUpdate,u=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var s=i,c=s.next;s.next=null,null===u?o=c:u.next=c,u=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==o){for(d=a.baseState,u=0,f=c=s=null;;){i=o.lane;var p=o.eventTime;if((r&i)===i){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(i=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,i);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(i="function"===typeof(h=m.payload)?h.call(p,d,i):h)||void 0===i)break e;d=l({},d,i);break e;case 2:la=!0}}null!==o.callback&&(e.flags|=32,null===(i=a.effects)?a.effects=[o]:i.push(o))}else p={eventTime:p,lane:i,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,u|=i;if(null===(o=o.next)){if(null===(i=a.shared.pending))break;o=i.next,i.next=null,a.lastBaseUpdate=i,a.shared.pending=null}}null===f&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=f,Uu|=u,e.lanes=u,e.memoizedState=d}}function fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(null!==l){if(r.callback=null,r=n,"function"!==typeof l)throw Error(o(191,l));l.call(r)}}}var da=(new r.Component).refs;function pa(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:l({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ha={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=si(),l=ci(e),a=ua(r,l);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),ia(e,a),fi(e,l,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=si(),l=ci(e),a=ua(r,l);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),ia(e,a),fi(e,l,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=si(),r=ci(e),l=ua(n,r);l.tag=2,void 0!==t&&null!==t&&(l.callback=t),ia(e,l),fi(e,r,n)}};function ma(e,t,n,r,l,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(l,a))}function va(e,t,n){var r=!1,l=sl,a=t.contextType;return"object"===typeof a&&null!==a?a=ra(a):(l=hl(t)?dl:cl.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?pl(e,l):sl),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=da,aa(e);var a=t.contextType;"object"===typeof a&&null!==a?l.context=ra(a):(a=hl(t)?dl:cl.current,l.context=pl(e,a)),ca(e,n,l,r),l.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(pa(e,t,a,n),l.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof l.getSnapshotBeforeUpdate||"function"!==typeof l.UNSAFE_componentWillMount&&"function"!==typeof l.componentWillMount||(t=l.state,"function"===typeof l.componentWillMount&&l.componentWillMount(),"function"===typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&ha.enqueueReplaceState(l,l.state,null),ca(e,n,l,r),l.state=e.memoizedState),"function"===typeof l.componentDidMount&&(e.flags|=4)}var ba=Array.isArray;function wa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var l=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===l?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[l]:t[l]=e})._stringRef=l,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function ka(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ea(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=Wi(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function i(e,t,n,r){return null===t||6!==t.tag?((t=qi(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=l(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=$i(n.type,n.key,n.props,null,e.mode,r)).ref=wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ki(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Hi(n,e.mode,r,a)).return=e,t):((t=l(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=qi(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case E:return(n=$i(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case S:return(t=Ki(t,e.mode,n)).return=e,t}if(ba(t)||B(t))return(t=Hi(t,e.mode,n,null)).return=e,t;ka(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==l?null:i(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===l?n.type===_?f(e,t,n.props.children,r,l):s(e,t,n,r):null;case S:return n.key===l?c(e,t,n,r):null}if(ba(n)||B(n))return null!==l?null:f(e,t,n,r,null);ka(e,n)}return null}function h(e,t,n,r,l){if("string"===typeof r||"number"===typeof r)return i(t,e=e.get(n)||null,""+r,l);if("object"===typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===_?f(t,e,r.props.children,l,r.key):s(t,e,r,l);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l)}if(ba(r)||B(r))return f(t,e=e.get(n)||null,r,l,null);ka(t,r)}return null}function m(l,o,u,i){for(var s=null,c=null,f=o,m=o=0,v=null;null!==f&&m<u.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(l,f,u[m],i);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,m),null===c?s=y:c.sibling=y,c=y,f=v}if(m===u.length)return n(l,f),s;if(null===f){for(;m<u.length;m++)null!==(f=d(l,u[m],i))&&(o=a(f,o,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(l,f);m<u.length;m++)null!==(v=h(f,l,m,u[m],i))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(l,e)})),s}function v(l,u,i,s){var c=B(i);if("function"!==typeof c)throw Error(o(150));if(null==(i=c.call(i)))throw Error(o(151));for(var f=c=null,m=u,v=u=0,y=null,g=i.next();null!==m&&!g.done;v++,g=i.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(l,m,g.value,s);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(l,m),u=a(b,u,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(l,m),c;if(null===m){for(;!g.done;v++,g=i.next())null!==(g=d(l,g.value,s))&&(u=a(g,u,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(l,m);!g.done;v++,g=i.next())null!==(g=h(m,l,v,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),u=a(g,u,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(l,e)})),c}return function(e,r,a,i){var s="object"===typeof a&&null!==a&&a.type===_&&null===a.key;s&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case E:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(a.type===_){n(e,s.sibling),(r=l(s,a.props.children)).return=e,e=r;break e}break;default:if(s.elementType===a.type){n(e,s.sibling),(r=l(s,a.props)).ref=wa(e,s,a),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}a.type===_?((r=Hi(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=$i(a.type,a.key,a.props,null,e.mode,i)).ref=wa(e,r,a),i.return=e,e=i)}return u(e);case S:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ki(a,e.mode,i)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=l(r,a)).return=e,e=r):(n(e,r),(r=qi(a,e.mode,i)).return=e,e=r),u(e);if(ba(a))return m(e,r,a,i);if(B(a))return v(e,r,a,i);if(c&&ka(e,a),"undefined"===typeof a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var Sa=Ea(!0),_a=Ea(!1),xa={},Ca=ol(xa),Pa=ol(xa),Na=ol(xa);function Ta(e){if(e===xa)throw Error(o(174));return e}function La(e,t){switch(il(Na,t),il(Pa,e),il(Ca,xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ul(Ca),il(Ca,t)}function za(){ul(Ca),ul(Pa),ul(Na)}function Oa(e){Ta(Na.current);var t=Ta(Ca.current),n=he(t,e.type);t!==n&&(il(Pa,e),il(Ca,n))}function Ra(e){Pa.current===e&&(ul(Ca),ul(Pa))}var Ma=ol(0);function Ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=null,Fa=null,Ua=!1;function Aa(e,t){var n=ji(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Va(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ja(e){if(Ua){var t=Fa;if(t){var n=t;if(!Va(e,t)){if(!(t=Hr(n.nextSibling))||!Va(e,t))return e.flags=-1025&e.flags|2,Ua=!1,void(Da=e);Aa(Da,n)}Da=e,Fa=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,Da=e}}function Ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function Wa(e){if(e!==Da)return!1;if(!Ua)return Ba(e),Ua=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!jr(t,e.memoizedProps))for(t=Fa;t;)Aa(e,t),t=Hr(t.nextSibling);if(Ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fa=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fa=null}}else Fa=Da?Hr(e.stateNode.nextSibling):null;return!0}function $a(){Fa=Da=null,Ua=!1}var Ha=[];function Qa(){for(var e=0;e<Ha.length;e++)Ha[e]._workInProgressVersionPrimary=null;Ha.length=0}var qa=k.ReactCurrentDispatcher,Ka=k.ReactCurrentBatchConfig,Ya=0,Xa=null,Ga=null,Za=null,Ja=!1,eo=!1;function to(){throw Error(o(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,l,a){if(Ya=a,Xa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qa.current=null===e||null===e.memoizedState?Lo:zo,e=n(r,l),eo){a=0;do{if(eo=!1,!(25>a))throw Error(o(301));a+=1,Za=Ga=null,t.updateQueue=null,qa.current=Oo,e=n(r,l)}while(eo)}if(qa.current=To,t=null!==Ga&&null!==Ga.next,Ya=0,Za=Ga=Xa=null,Ja=!1,t)throw Error(o(300));return e}function lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Za?Xa.memoizedState=Za=e:Za=Za.next=e,Za}function ao(){if(null===Ga){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Ga.next;var t=null===Za?Xa.memoizedState:Za.next;if(null!==t)Za=t,Ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ga=e).memoizedState,baseState:Ga.baseState,baseQueue:Ga.baseQueue,queue:Ga.queue,next:null},null===Za?Xa.memoizedState=Za=e:Za=Za.next=e}return Za}function oo(e,t){return"function"===typeof t?t(e):t}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ga,l=r.baseQueue,a=n.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,n.pending=null}if(null!==l){l=l.next,r=r.baseState;var i=u=a=null,s=l;do{var c=s.lane;if((Ya&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,a=r):i=i.next=f,Xa.lanes|=c,Uu|=c}s=s.next}while(null!==s&&s!==l);null===i?a=r:i.next=u,ur(r,t.memoizedState)||(Mo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=i,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function io(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var u=l=l.next;do{a=e(a,u.action),u=u.next}while(u!==l);ur(a,t.memoizedState)||(Mo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function so(e,t,n){var r=t._getVersion;r=r(t._source);var l=t._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(Ya&e)===e)&&(t._workInProgressVersionPrimary=r,Ha.push(t))),e)return n(t._source);throw Ha.push(t),Error(o(350))}function co(e,t,n,r){var l=Lu;if(null===l)throw Error(o(349));var a=t._getVersion,u=a(t._source),i=qa.current,s=i.useState((function(){return so(l,t,n)})),c=s[1],f=s[0];s=Za;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Xa;return e.memoizedState={refs:p,source:t,subscribe:r},i.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!ur(u,e)){e=n(t._source),ur(f,e)||(c(e),e=ci(v),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var r=l.entanglements,o=e;0<o;){var i=31-$t(o),s=1<<i;r[i]|=e,o&=~s}}}),[n,t,r]),i.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ci(v);l.mutableReadLanes|=r&l.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=No.bind(null,Xa,e),s.queue=e,s.baseQueue=null,f=so(l,t,n),s.memoizedState=s.baseState=f),f}function fo(e,t,n){return co(ao(),e,t,n)}function po(e){var t=lo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=No.bind(null,Xa,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xa.updateQueue)?(t={lastEffect:null},Xa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function mo(e){return e={current:e},lo().memoizedState=e}function vo(){return ao().memoizedState}function yo(e,t,n,r){var l=lo();Xa.flags|=e,l.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function go(e,t,n,r){var l=ao();r=void 0===r?null:r;var a=void 0;if(null!==Ga){var o=Ga.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void ho(t,n,a,r)}Xa.flags|=e,l.memoizedState=ho(1|t,n,a,r)}function bo(e,t){return yo(516,4,e,t)}function wo(e,t){return go(516,4,e,t)}function ko(e,t){return go(4,2,e,t)}function Eo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function So(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,go(4,2,Eo.bind(null,t,e),n)}function _o(){}function xo(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Po(e,t){var n=jl();Wl(98>n?98:n,(function(){e(!0)})),Wl(97<n?97:n,(function(){var n=Ka.transition;Ka.transition=1;try{e(!1),t()}finally{Ka.transition=n}}))}function No(e,t,n){var r=si(),l=ci(e),a={lane:l,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Xa||null!==o&&o===Xa)eo=Ja=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var u=t.lastRenderedState,i=o(u,n);if(a.eagerReducer=o,a.eagerState=i,ur(i,u))return}catch(s){}fi(e,l,r)}}var To={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},Lo={readContext:ra,useCallback:function(e,t){return lo().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,yo(4,2,Eo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=lo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=No.bind(null,Xa,e),[r.memoizedState,e]},useRef:mo,useState:po,useDebugValue:_o,useDeferredValue:function(e){var t=po(e),n=t[0],r=t[1];return bo((function(){var t=Ka.transition;Ka.transition=1;try{r(e)}finally{Ka.transition=t}}),[e]),n},useTransition:function(){var e=po(!1),t=e[0];return mo(e=Po.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=lo();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(Ua){var e=!1,t=function(e){return{$$typeof:I,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(o(355))})),n=po(t)[1];return 0===(2&Xa.mode)&&(Xa.flags|=516,ho(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return po(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},zo={readContext:ra,useCallback:xo,useContext:ra,useEffect:wo,useImperativeHandle:So,useLayoutEffect:ko,useMemo:Co,useReducer:uo,useRef:vo,useState:function(){return uo(oo)},useDebugValue:_o,useDeferredValue:function(e){var t=uo(oo),n=t[0],r=t[1];return wo((function(){var t=Ka.transition;Ka.transition=1;try{r(e)}finally{Ka.transition=t}}),[e]),n},useTransition:function(){var e=uo(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return uo(oo)[0]},unstable_isNewReconciler:!1},Oo={readContext:ra,useCallback:xo,useContext:ra,useEffect:wo,useImperativeHandle:So,useLayoutEffect:ko,useMemo:Co,useReducer:io,useRef:vo,useState:function(){return io(oo)},useDebugValue:_o,useDeferredValue:function(e){var t=io(oo),n=t[0],r=t[1];return wo((function(){var t=Ka.transition;Ka.transition=1;try{r(e)}finally{Ka.transition=t}}),[e]),n},useTransition:function(){var e=io(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return io(oo)[0]},unstable_isNewReconciler:!1},Ro=k.ReactCurrentOwner,Mo=!1;function Io(e,t,n,r){t.child=null===e?_a(t,null,n,r):Sa(t,e.child,n,r)}function Do(e,t,n,r,l){n=n.render;var a=t.ref;return na(t,l),r=ro(e,t,n,r,a,l),null===e||Mo?(t.flags|=1,Io(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~l,nu(e,t,l))}function Fo(e,t,n,r,l,a){if(null===e){var o=n.type;return"function"!==typeof o||Bi(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$i(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Uo(e,t,o,r,l,a))}return o=e.child,0===(l&a)&&(l=o.memoizedProps,(n=null!==(n=n.compare)?n:sr)(l,r)&&e.ref===t.ref)?nu(e,t,a):(t.flags|=1,(e=Wi(o,r)).ref=t.ref,e.return=t,t.child=e)}function Uo(e,t,n,r,l,a){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(Mo=!1,0===(a&l))return t.lanes=e.lanes,nu(e,t,a);0!==(16384&e.flags)&&(Mo=!0)}return jo(e,t,n,r,a)}function Ao(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},bi(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bi(t,e),null;t.memoizedState={baseLanes:0},bi(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bi(t,r);return Io(e,t,l,n),t.child}function Vo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function jo(e,t,n,r,l){var a=hl(n)?dl:cl.current;return a=pl(t,a),na(t,l),n=ro(e,t,n,r,a,l),null===e||Mo?(t.flags|=1,Io(e,t,n,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~l,nu(e,t,l))}function Bo(e,t,n,r,l){if(hl(n)){var a=!0;gl(t)}else a=!1;if(na(t,l),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ga(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,u=t.memoizedProps;o.props=u;var i=o.context,s=n.contextType;"object"===typeof s&&null!==s?s=ra(s):s=pl(t,s=hl(n)?dl:cl.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==r||i!==s)&&ya(t,o,r,s),la=!1;var d=t.memoizedState;o.state=d,ca(t,r,o,l),i=t.memoizedState,u!==r||d!==i||fl.current||la?("function"===typeof c&&(pa(t,n,c,r),i=t.memoizedState),(u=la||ma(t,n,u,r,d,i,s))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=i),o.props=r,o.state=i,o.context=s,r=u):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oa(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:Kl(t.type,u),o.props=s,f=t.pendingProps,d=o.context,"object"===typeof(i=n.contextType)&&null!==i?i=ra(i):i=pl(t,i=hl(n)?dl:cl.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==f||d!==i)&&ya(t,o,r,i),la=!1,d=t.memoizedState,o.state=d,ca(t,r,o,l);var h=t.memoizedState;u!==f||d!==h||fl.current||la?("function"===typeof p&&(pa(t,n,p,r),h=t.memoizedState),(s=la||ma(t,n,s,r,d,h,i))?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,i),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,i)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=i,r=s):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,l)}function Wo(e,t,n,r,l,a){Vo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return l&&bl(t,n,!1),nu(e,t,a);r=t.stateNode,Ro.current=t;var u=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,u,a)):Io(e,t,u,a),t.memoizedState=r.state,l&&bl(t,n,!0),t.child}function $o(e){var t=e.stateNode;t.pendingContext?vl(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vl(0,t.context,!1),La(e,t.containerInfo)}var Ho,Qo,qo,Ko={dehydrated:null,retryLane:0};function Yo(e,t,n){var r,l=t.pendingProps,a=Ma.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),il(Ma,1&a),null===e?(void 0!==l.fallback&&ja(t),e=l.children,a=l.fallback,o?(e=Xo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,e):"number"===typeof l.unstable_expectedLoadTime?(e=Xo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,t.lanes=33554432,e):((n=Qi({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(l=Zo(e,t,l.children,l.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ko,l):(n=Go(e,t,l.children,n),t.memoizedState=null,n))}function Xo(e,t,n,r){var l=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&l)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Qi(t,l,0,null),n=Hi(n,l,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Go(e,t,n,r){var l=e.child;return e=l.sibling,n=Wi(l,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Zo(e,t,n,r,l){var a=t.mode,o=e.child;e=o.sibling;var u={mode:"hidden",children:n};return 0===(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=u,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Wi(o,u),null!==e?r=Wi(e,r):(r=Hi(r,a,l,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function eu(e,t,n,r,l,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l,o.lastEffect=a)}function tu(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(Io(e,t,r.children,n),0!==(2&(r=Ma.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(il(Ma,r),0===(2&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;null!==n;)null!==(e=n.alternate)&&null===Ia(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),eu(t,!1,l,n,a,t.lastEffect);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Ia(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}eu(t,!0,n,null,a,t.lastEffect);break;case"together":eu(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Uu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Wi(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wi(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ru(e,t){if(!Ua)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return hl(t.type)&&ml(),null;case 3:return za(),ul(fl),ul(cl),Qa(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ra(t);var a=Ta(Na.current);if(n=t.type,null!==e&&null!=t.stateNode)Qo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ta(Ca.current),Wa(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Yr]=t,r[Xr]=u,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Pr(Sr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,u),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Pr("invalid",r);break;case"textarea":ie(r,u),Pr("invalid",r)}for(var s in _e(n,u),e=null,u)u.hasOwnProperty(s)&&(a=u[s],"children"===s?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):i.hasOwnProperty(s)&&null!=a&&"onScroll"===s&&Pr("scroll",r));switch(n){case"input":X(r),re(r,u,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Yr]=t,e[Xr]=r,Ho(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),a=r;break;case"iframe":case"object":case"embed":Pr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Sr.length;a++)Pr(Sr[a],e);a=r;break;case"source":Pr("error",e),a=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),a=r;break;case"details":Pr("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Pr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=l({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ie(e,r),a=ue(e,r),Pr("invalid",e);break;default:a=r}_e(n,a);var c=a;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?Ee(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===u?"string"===typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"===typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Pr("scroll",e):null!=f&&w(e,u,f,s))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?oe(e,!!r.multiple,u,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Fr)}Vr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)qo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Ta(Na.current),Ta(Ca.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return ul(Ma),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ma.current)?0===Iu&&(Iu=3):(0!==Iu&&3!==Iu||(Iu=4),null===Lu||0===(134217727&Uu)&&0===(134217727&Au)||mi(Lu,Ou))),(r||n)&&(t.flags|=4),null);case 4:return za(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 17:return hl(t.type)&&ml(),null;case 19:if(ul(Ma),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(s=r.rendering))if(u)ru(r,!1);else{if(0!==Iu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Ia(e))){for(t.flags|=64,ru(r,!1),null!==(u=s.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(s=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return il(Ma,1&Ma.current|2),t.child}e=e.sibling}null!==r.tail&&Vl()>Wu&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Ia(s))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ru(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ua)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vl()-r.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vl(),n.sibling=null,t=Ma.current,il(Ma,u?1&t|2:1&t),n):null;case 23:case 24:return wi(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function au(e){switch(e.tag){case 1:hl(e.type)&&ml();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(za(),ul(fl),ul(cl),Qa(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return ul(Ma),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ul(Ma),null;case 4:return za(),null;case 10:return ea(e),null;case 23:case 24:return wi(),null;default:return null}}function ou(e,t){try{var n="",r=t;do{n+=Q(r),r=r.return}while(r);var l=n}catch(a){l="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:l}}function uu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ta(Ca.current);var o,u=null;switch(n){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in _e(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(i.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(i.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),u||s===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===I?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var iu="function"===typeof WeakMap?WeakMap:Map;function su(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Ku=r),uu(0,t)},n}function cu(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var l=t.value;n.payload=function(){return uu(0,t),r(l)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Yu?Yu=new Set([this]):Yu.add(this),uu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fu="function"===typeof WeakSet?WeakSet:Set;function du(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fi(e,n)}else t.current=null}function pu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Kl(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function hu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var l=e;r=l.next,0!==(4&(l=l.tag))&&0!==(1&l)&&(Mi(n,e),Ri(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Kl(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function mu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var l=n.memoizedProps.style;l=void 0!==l&&null!==l&&l.hasOwnProperty("display")?l.display:null,r.style.display=ke("display",l)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vu(e,t){if(kl&&"function"===typeof kl.onCommitFiberUnmount)try{kl.onCommitFiberUnmount(wl,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,l=r.destroy;if(r=r.tag,void 0!==l)if(0!==(4&r))Mi(t,n);else{r=t;try{l()}catch(a){Fi(r,a)}}n=n.next}while(n!==e)}break;case 1:if(du(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Fi(t,a)}break;case 5:du(t);break;case 4:Eu(e,t)}}function yu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gu(e){return 5===e.tag||3===e.tag||4===e.tag}function bu(e){e:{for(var t=e.return;null!==t;){if(gu(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?wu(e,n,t):ku(e,n,t)}function wu(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}function Eu(e,t){for(var n,r,l=t,a=!1;;){if(!a){a=l.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===l.tag||6===l.tag){e:for(var u=e,i=l,s=i;;)if(vu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=n,i=l.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):n.removeChild(l.stateNode)}else if(4===l.tag){if(null!==l.child){n=l.stateNode.containerInfo,r=!0,l.child.return=l,l=l.child;continue}}else if(vu(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)return;4===(l=l.return).tag&&(a=!1)}l.sibling.return=l.return,l=l.sibling}}function Su(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var l=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,l),t=xe(e,r),l=0;l<a.length;l+=2){var u=a[l],i=a[l+1];"style"===u?Ee(n,i):"dangerouslySetInnerHTML"===u?ye(n,i):"children"===u?ge(n,i):w(n,u,i,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Bu=Vl(),mu(t.child,!0)),void _u(t);case 19:return void _u(t);case 17:return;case 23:case 24:return void mu(t,null!==t.memoizedState)}throw Error(o(163))}function _u(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fu),t.forEach((function(t){var r=Ai.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function xu(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Cu=Math.ceil,Pu=k.ReactCurrentDispatcher,Nu=k.ReactCurrentOwner,Tu=0,Lu=null,zu=null,Ou=0,Ru=0,Mu=ol(0),Iu=0,Du=null,Fu=0,Uu=0,Au=0,Vu=0,ju=null,Bu=0,Wu=1/0;function $u(){Wu=Vl()+500}var Hu,Qu=null,qu=!1,Ku=null,Yu=null,Xu=!1,Gu=null,Zu=90,Ju=[],ei=[],ti=null,ni=0,ri=null,li=-1,ai=0,oi=0,ui=null,ii=!1;function si(){return 0!==(48&Tu)?Vl():-1!==li?li:li=Vl()}function ci(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===jl()?1:2;if(0===ai&&(ai=Fu),0!==ql.transition){0!==oi&&(oi=null!==ju?ju.pendingLanes:0),e=ai;var t=4186112&~oi;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=jl(),0!==(4&Tu)&&98===e?e=Vt(12,ai):e=Vt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ai),e}function fi(e,t,n){if(50<ni)throw ni=0,ri=null,Error(o(185));if(null===(e=di(e,t)))return null;Wt(e,t,n),e===Lu&&(Au|=t,4===Iu&&mi(e,Ou));var r=jl();1===t?0!==(8&Tu)&&0===(48&Tu)?vi(e):(pi(e,n),0===Tu&&($u(),Hl())):(0===(4&Tu)||98!==r&&99!==r||(null===ti?ti=new Set([e]):ti.add(e)),pi(e,n)),ju=e}function di(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pi(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var i=31-$t(u),s=1<<i,c=a[i];if(-1===c){if(0===(s&r)||0!==(s&l)){c=t,Ft(s);var f=Dt;a[i]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);u&=~s}if(r=Ut(e,e===Lu?Ou:0),t=Dt,0===r)null!==n&&(n!==Ml&&_l(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ml&&_l(n)}15===t?(n=vi.bind(null,e),null===Dl?(Dl=[n],Fl=Sl(Tl,Ql)):Dl.push(n),n=Ml):14===t?n=$l(99,vi.bind(null,e)):n=$l(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),hi.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hi(e){if(li=-1,oi=ai=0,0!==(48&Tu))throw Error(o(327));var t=e.callbackNode;if(Oi()&&e.callbackNode!==t)return null;var n=Ut(e,e===Lu?Ou:0);if(0===n)return null;var r=n,l=Tu;Tu|=16;var a=Si();for(Lu===e&&Ou===r||($u(),ki(e,r));;)try{Ci();break}catch(i){Ei(e,i)}if(Jl(),Pu.current=a,Tu=l,null!==zu?r=0:(Lu=null,Ou=0,r=Iu),0!==(Fu&Au))ki(e,0);else if(0!==r){if(2===r&&(Tu|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(n=At(e))&&(r=_i(e,n))),1===r)throw t=Du,ki(e,0),mi(e,n),pi(e,Vl()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:Ti(e);break;case 3:if(mi(e,n),(62914560&n)===n&&10<(r=Bu+500-Vl())){if(0!==Ut(e,0))break;if(((l=e.suspendedLanes)&n)!==n){si(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Br(Ti.bind(null,e),r);break}Ti(e);break;case 4:if(mi(e,n),(4186112&n)===n)break;for(r=e.eventTimes,l=-1;0<n;){var u=31-$t(n);a=1<<u,(u=r[u])>l&&(l=u),n&=~a}if(n=l,10<(n=(120>(n=Vl()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cu(n/1960))-n)){e.timeoutHandle=Br(Ti.bind(null,e),n);break}Ti(e);break;case 5:Ti(e);break;default:throw Error(o(329))}}return pi(e,Vl()),e.callbackNode===t?hi.bind(null,e):null}function mi(e,t){for(t&=~Vu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function vi(e){if(0!==(48&Tu))throw Error(o(327));if(Oi(),e===Lu&&0!==(e.expiredLanes&Ou)){var t=Ou,n=_i(e,t);0!==(Fu&Au)&&(n=_i(e,t=Ut(e,t)))}else n=_i(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(Tu|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(t=At(e))&&(n=_i(e,t))),1===n)throw n=Du,ki(e,0),mi(e,t),pi(e,Vl()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ti(e),pi(e,Vl()),null}function yi(e,t){var n=Tu;Tu|=1;try{return e(t)}finally{0===(Tu=n)&&($u(),Hl())}}function gi(e,t){var n=Tu;Tu&=-2,Tu|=8;try{return e(t)}finally{0===(Tu=n)&&($u(),Hl())}}function bi(e,t){il(Mu,Ru),Ru|=t,Fu|=t}function wi(){Ru=Mu.current,ul(Mu)}function ki(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==zu)for(n=zu.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ml();break;case 3:za(),ul(fl),ul(cl),Qa();break;case 5:Ra(r);break;case 4:za();break;case 13:case 19:ul(Ma);break;case 10:ea(r);break;case 23:case 24:wi()}n=n.return}Lu=e,zu=Wi(e.current,null),Ou=Ru=Fu=t,Iu=0,Du=null,Vu=Au=Uu=0}function Ei(e,t){for(;;){var n=zu;try{if(Jl(),qa.current=To,Ja){for(var r=Xa.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}Ja=!1}if(Ya=0,Za=Ga=Xa=null,eo=!1,Nu.current=null,null===n||null===n.return){Iu=1,Du=t,zu=null;break}e:{var a=e,o=n.return,u=n,i=t;if(t=Ou,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==i&&"object"===typeof i&&"function"===typeof i.then){var s=i;if(0===(2&u.mode)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!==(1&Ma.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(s),d.updateQueue=y}else v.add(s);if(0===(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var g=ua(-1,1);g.tag=2,ia(u,g)}u.lanes|=1;break e}i=void 0,u=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new iu,i=new Set,b.set(s,i)):void 0===(i=b.get(s))&&(i=new Set,b.set(s,i)),!i.has(u)){i.add(u);var w=Ui.bind(null,a,s,u);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);i=Error((q(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Iu&&(Iu=2),i=ou(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,t&=-t,d.lanes|=t,sa(d,su(0,a,t));break e;case 1:a=i;var k=d.type,E=d.stateNode;if(0===(64&d.flags)&&("function"===typeof k.getDerivedStateFromError||null!==E&&"function"===typeof E.componentDidCatch&&(null===Yu||!Yu.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,sa(d,cu(d,a,t));break e}}d=d.return}while(null!==d)}Ni(n)}catch(S){t=S,zu===n&&null!==n&&(zu=n=n.return);continue}break}}function Si(){var e=Pu.current;return Pu.current=To,null===e?To:e}function _i(e,t){var n=Tu;Tu|=16;var r=Si();for(Lu===e&&Ou===t||ki(e,t);;)try{xi();break}catch(l){Ei(e,l)}if(Jl(),Tu=n,Pu.current=r,null!==zu)throw Error(o(261));return Lu=null,Ou=0,Iu}function xi(){for(;null!==zu;)Pi(zu)}function Ci(){for(;null!==zu&&!xl();)Pi(zu)}function Pi(e){var t=Hu(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?Ni(e):zu=t,Nu.current=null}function Ni(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=lu(n,t,Ru)))return void(zu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ru)||0===(4&n.mode)){for(var r=0,l=n.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=au(t)))return n.flags&=2047,void(zu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(zu=t);zu=t=e}while(null!==t);0===Iu&&(Iu=5)}function Ti(e){var t=jl();return Wl(99,Li.bind(null,e,t)),null}function Li(e,t){do{Oi()}while(null!==Gu);if(0!==(48&Tu))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,l=r,a=e.pendingLanes&~l;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=l,e.mutableReadLanes&=l,e.entangledLanes&=l,l=e.entanglements;for(var u=e.eventTimes,i=e.expirationTimes;0<a;){var s=31-$t(a),c=1<<s;l[s]=0,u[s]=-1,i[s]=-1,a&=~c}if(null!==ti&&0===(24&r)&&ti.has(e)&&ti.delete(e),e===Lu&&(zu=Lu=null,Ou=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(l=Tu,Tu|=32,Nu.current=null,Ur=Yt,hr(u=pr())){if("selectionStart"in u)i={start:u.selectionStart,end:u.selectionEnd};else e:if(i=(i=u.ownerDocument)&&i.defaultView||window,(c=i.getSelection&&i.getSelection())&&0!==c.rangeCount){i=c.anchorNode,a=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{i.nodeType,s.nodeType}catch(C){i=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=u,y=null;t:for(;;){for(var g;v!==i||0!==a&&3!==v.nodeType||(d=f+a),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===u)break t;if(y===i&&++h===a&&(d=f),y===s&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}i=-1===d||-1===p?null:{start:d,end:p}}else i=null;i=i||{start:0,end:0}}else i=null;Ar={focusedElem:u,selectionRange:i},Yt=!1,ui=null,ii=!1,Qu=r;do{try{zi()}catch(C){if(null===Qu)throw Error(o(330));Fi(Qu,C),Qu=Qu.nextEffect}}while(null!==Qu);ui=null,Qu=r;do{try{for(u=e;null!==Qu;){var b=Qu.flags;if(16&b&&ge(Qu.stateNode,""),128&b){var w=Qu.alternate;if(null!==w){var k=w.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(1038&b){case 2:bu(Qu),Qu.flags&=-3;break;case 6:bu(Qu),Qu.flags&=-3,Su(Qu.alternate,Qu);break;case 1024:Qu.flags&=-1025;break;case 1028:Qu.flags&=-1025,Su(Qu.alternate,Qu);break;case 4:Su(Qu.alternate,Qu);break;case 8:Eu(u,i=Qu);var E=i.alternate;yu(i),null!==E&&yu(E)}Qu=Qu.nextEffect}}catch(C){if(null===Qu)throw Error(o(330));Fi(Qu,C),Qu=Qu.nextEffect}}while(null!==Qu);if(k=Ar,w=pr(),b=k.focusedElem,u=k.selectionRange,w!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==u&&hr(b)&&(w=u.start,void 0===(k=u.end)&&(k=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(k,b.value.length)):(k=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),i=b.textContent.length,E=Math.min(u.start,i),u=void 0===u.end?E:Math.min(u.end,i),!k.extend&&E>u&&(i=u,u=E,E=i),i=fr(b,E),a=fr(b,u),i&&a&&(1!==k.rangeCount||k.anchorNode!==i.node||k.anchorOffset!==i.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((w=w.createRange()).setStart(i.node,i.offset),k.removeAllRanges(),E>u?(k.addRange(w),k.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(k=w[b]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Yt=!!Ur,Ar=Ur=null,e.current=n,Qu=r;do{try{for(b=e;null!==Qu;){var S=Qu.flags;if(36&S&&hu(b,Qu.alternate,Qu),128&S){w=void 0;var _=Qu.ref;if(null!==_){var x=Qu.stateNode;switch(Qu.tag){case 5:w=x;break;default:w=x}"function"===typeof _?_(w):_.current=w}}Qu=Qu.nextEffect}}catch(C){if(null===Qu)throw Error(o(330));Fi(Qu,C),Qu=Qu.nextEffect}}while(null!==Qu);Qu=null,Il(),Tu=l}else e.current=n;if(Xu)Xu=!1,Gu=e,Zu=t;else for(Qu=r;null!==Qu;)t=Qu.nextEffect,Qu.nextEffect=null,8&Qu.flags&&((S=Qu).sibling=null,S.stateNode=null),Qu=t;if(0===(r=e.pendingLanes)&&(Yu=null),1===r?e===ri?ni++:(ni=0,ri=e):ni=0,n=n.stateNode,kl&&"function"===typeof kl.onCommitFiberRoot)try{kl.onCommitFiberRoot(wl,n,void 0,64===(64&n.current.flags))}catch(C){}if(pi(e,Vl()),qu)throw qu=!1,e=Ku,Ku=null,e;return 0!==(8&Tu)||Hl(),null}function zi(){for(;null!==Qu;){var e=Qu.alternate;ii||null===ui||(0!==(8&Qu.flags)?et(Qu,ui)&&(ii=!0):13===Qu.tag&&xu(e,Qu)&&et(Qu,ui)&&(ii=!0));var t=Qu.flags;0!==(256&t)&&pu(e,Qu),0===(512&t)||Xu||(Xu=!0,$l(97,(function(){return Oi(),null}))),Qu=Qu.nextEffect}}function Oi(){if(90!==Zu){var e=97<Zu?97:Zu;return Zu=90,Wl(e,Ii)}return!1}function Ri(e,t){Ju.push(t,e),Xu||(Xu=!0,$l(97,(function(){return Oi(),null})))}function Mi(e,t){ei.push(t,e),Xu||(Xu=!0,$l(97,(function(){return Oi(),null})))}function Ii(){if(null===Gu)return!1;var e=Gu;if(Gu=null,0!==(48&Tu))throw Error(o(331));var t=Tu;Tu|=32;var n=ei;ei=[];for(var r=0;r<n.length;r+=2){var l=n[r],a=n[r+1],u=l.destroy;if(l.destroy=void 0,"function"===typeof u)try{u()}catch(s){if(null===a)throw Error(o(330));Fi(a,s)}}for(n=Ju,Ju=[],r=0;r<n.length;r+=2){l=n[r],a=n[r+1];try{var i=l.create;l.destroy=i()}catch(s){if(null===a)throw Error(o(330));Fi(a,s)}}for(i=e.current.firstEffect;null!==i;)e=i.nextEffect,i.nextEffect=null,8&i.flags&&(i.sibling=null,i.stateNode=null),i=e;return Tu=t,Hl(),!0}function Di(e,t,n){ia(e,t=su(0,t=ou(n,t),1)),t=si(),null!==(e=di(e,1))&&(Wt(e,1,t),pi(e,t))}function Fi(e,t){if(3===e.tag)Di(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Di(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Yu||!Yu.has(r))){var l=cu(n,e=ou(t,e),1);if(ia(n,l),l=si(),null!==(n=di(n,1)))Wt(n,1,l),pi(n,l);else if("function"===typeof r.componentDidCatch&&(null===Yu||!Yu.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Ui(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=si(),e.pingedLanes|=e.suspendedLanes&n,Lu===e&&(Ou&n)===n&&(4===Iu||3===Iu&&(62914560&Ou)===Ou&&500>Vl()-Bu?ki(e,0):Vu|=n),pi(e,t)}function Ai(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===jl()?1:2:(0===ai&&(ai=Fu),0===(t=jt(62914560&~ai))&&(t=4194304))),n=si(),null!==(e=di(e,t))&&(Wt(e,t,n),pi(e,n))}function Vi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(e,t,n,r){return new Vi(e,t,n,r)}function Bi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wi(e,t){var n=e.alternate;return null===n?((n=ji(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $i(e,t,n,r,l,a){var u=2;if(r=e,"function"===typeof e)Bi(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case _:return Hi(n.children,l,a,t);case D:u=8,l|=16;break;case x:u=8,l|=1;break;case C:return(e=ji(12,n,t,8|l)).elementType=C,e.type=C,e.lanes=a,e;case L:return(e=ji(13,n,t,l)).type=L,e.elementType=L,e.lanes=a,e;case z:return(e=ji(19,n,t,l)).elementType=z,e.lanes=a,e;case F:return Qi(n,l,a,t);case U:return(e=ji(24,n,t,l)).elementType=U,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:u=10;break e;case N:u=9;break e;case T:u=11;break e;case O:u=14;break e;case R:u=16,r=null;break e;case M:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=ji(u,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function Hi(e,t,n,r){return(e=ji(7,e,r,t)).lanes=n,e}function Qi(e,t,n,r){return(e=ji(23,e,r,t)).elementType=F,e.lanes=n,e}function qi(e,t,n){return(e=ji(6,e,null,t)).lanes=n,e}function Ki(e,t,n){return(t=ji(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yi(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Xi(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Gi(e,t,n,r){var l=t.current,a=si(),u=ci(l);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break t;case 1:if(hl(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break t}}i=i.return}while(null!==i);throw Error(o(171))}if(1===n.tag){var s=n.type;if(hl(s)){n=yl(n,s,i);break e}}n=i}else n=sl;return null===t.context?t.context=n:t.pendingContext=n,(t=ua(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ia(l,t),fi(l,u,a),u}function Zi(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ji(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function es(e,t){Ji(e,t),(e=e.alternate)&&Ji(e,t)}function ts(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yi(e,t,null!=n&&!0===n.hydrate),t=ji(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,aa(t),e[Gr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var l=(t=r[e])._getVersion;l=l(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l)}this._internalRoot=n}function ns(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rs(e,t,n,r,l){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof l){var u=l;l=function(){var e=Zi(o);u.call(e)}}Gi(t,o,e,l)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ts(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof l){var i=l;l=function(){var e=Zi(o);i.call(e)}}gi((function(){Gi(t,o,e,l)}))}return Zi(o)}function ls(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ns(t))throw Error(o(200));return Xi(e,t,null,n)}Hu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fl.current)Mo=!0;else{if(0===(n&r)){switch(Mo=!1,t.tag){case 3:$o(t),$a();break;case 5:Oa(t);break;case 1:hl(t.type)&&gl(t);break;case 4:La(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var l=t.type._context;il(Yl,l._currentValue),l._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Yo(e,t,n):(il(Ma,1&Ma.current),null!==(t=nu(e,t,n))?t.sibling:null);il(Ma,1&Ma.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return tu(e,t,n);t.flags|=64}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),il(Ma,Ma.current),r)break;return null;case 23:case 24:return t.lanes=0,Ao(e,t,n)}return nu(e,t,n)}Mo=0!==(16384&e.flags)}else Mo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=pl(t,cl.current),na(t,n),l=ro(null,t,r,e,l,n),t.flags|=1,"object"===typeof l&&null!==l&&"function"===typeof l.render&&void 0===l.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hl(r)){var a=!0;gl(t)}else a=!1;t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,aa(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&pa(t,r,u,e),l.updater=ha,t.stateNode=l,l._reactInternals=t,ga(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Io(null,t,l,n),t=t.child;return t;case 16:l=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=(a=l._init)(l._payload),t.type=l,a=t.tag=function(e){if("function"===typeof e)return Bi(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===O)return 14}return 2}(l),e=Kl(l,e),a){case 0:t=jo(null,t,l,e,n);break e;case 1:t=Bo(null,t,l,e,n);break e;case 11:t=Do(null,t,l,e,n);break e;case 14:t=Fo(null,t,l,Kl(l.type,e),r,n);break e}throw Error(o(306,l,""))}return t;case 0:return r=t.type,l=t.pendingProps,jo(e,t,r,l=t.elementType===r?l:Kl(r,l),n);case 1:return r=t.type,l=t.pendingProps,Bo(e,t,r,l=t.elementType===r?l:Kl(r,l),n);case 3:if($o(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,l=null!==(l=t.memoizedState)?l.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===l)$a(),t=nu(e,t,n);else{if((a=(l=t.stateNode).hydrate)&&(Fa=Hr(t.stateNode.containerInfo.firstChild),Da=t,a=Ua=!0),a){if(null!=(e=l.mutableSourceEagerHydrationData))for(l=0;l<e.length;l+=2)(a=e[l])._workInProgressVersionPrimary=e[l+1],Ha.push(a);for(n=_a(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),$a();t=t.child}return t;case 5:return Oa(t),null===e&&ja(t),r=t.type,l=t.pendingProps,a=null!==e?e.memoizedProps:null,u=l.children,jr(r,l)?u=null:null!==a&&jr(r,a)&&(t.flags|=16),Vo(e,t),Io(e,t,u,n),t.child;case 6:return null===e&&ja(t),null;case 13:return Yo(e,t,n);case 4:return La(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,Do(e,t,r,l=t.elementType===r?l:Kl(r,l),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,l=t.pendingProps,u=t.memoizedProps,a=l.value;var i=t.type._context;if(il(Yl,i._currentValue),i._currentValue=a,null!==u)if(i=u.value,0===(a=ur(i,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(i,a):1073741823))){if(u.children===l.children&&!fl.current){t=nu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){u=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===i.tag&&((c=ua(-1,n&-n)).tag=2,ia(i,c)),i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),ta(i.return,n),s.lanes|=n;break}c=c.next}}else u=10===i.tag&&i.type===t.type?null:i.child;if(null!==u)u.return=i;else for(u=i;null!==u;){if(u===t){u=null;break}if(null!==(i=u.sibling)){i.return=u.return,u=i;break}u=u.return}i=u}Io(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(l=ra(l,a.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return a=Kl(l=t.type,t.pendingProps),Fo(e,t,l,a=Kl(l.type,a),r,n);case 15:return Uo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Kl(r,l),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hl(r)?(e=!0,gl(t)):e=!1,na(t,n),va(t,r,l),ga(t,r,l,n),Wo(null,t,r,!0,e,n);case 19:return tu(e,t,n);case 23:case 24:return Ao(e,t,n)}throw Error(o(156,t.tag))},ts.prototype.render=function(e){Gi(e,this._internalRoot,null,null)},ts.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Gi(null,e,null,(function(){t[Gr]=null}))},tt=function(e){13===e.tag&&(fi(e,4,si()),es(e,4))},nt=function(e){13===e.tag&&(fi(e,67108864,si()),es(e,67108864))},rt=function(e){if(13===e.tag){var t=si(),n=ci(e);fi(e,n,t),es(e,n)}},lt=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=nl(r);if(!l)throw Error(o(90));G(r),ne(r,l)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Re=yi,Me=function(e,t,n,r,l){var a=Tu;Tu|=4;try{return Wl(98,e.bind(null,t,n,r,l))}finally{0===(Tu=a)&&($u(),Hl())}},Ie=function(){0===(49&Tu)&&(function(){if(null!==ti){var e=ti;ti=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pi(e,Vl())}))}Hl()}(),Oi())},De=function(e,t){var n=Tu;Tu|=2;try{return e(t)}finally{0===(Tu=n)&&($u(),Hl())}};var as={Events:[el,tl,nl,ze,Oe,Oi,{current:!1}]},os={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},us={bundleType:os.bundleType,version:os.version,rendererPackageName:os.rendererPackageName,rendererConfig:os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:os.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!is.isDisabled&&is.supportsFiber)try{wl=is.inject(us),kl=is}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=as,t.createPortal=ls,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Tu;if(0!==(48&n))return e(t);Tu|=1;try{if(e)return Wl(99,e.bind(null,t))}finally{Tu=n,Hl()}},t.hydrate=function(e,t,n){if(!ns(t))throw Error(o(200));return rs(null,e,t,!0,n)},t.render=function(e,t,n){if(!ns(t))throw Error(o(200));return rs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ns(e))throw Error(o(40));return!!e._reactRootContainer&&(gi((function(){rs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Gr]=null}))})),!0)},t.unstable_batchedUpdates=yi,t.unstable_createPortal=function(e,t){return ls(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ns(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return rs(e,t,n,!1,r)},t.version="17.0.2"},73935:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(64448)},75251:function(e,t,n){"use strict";n(96086);var r=n(67294),l=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;l=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!i.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:l,type:e,key:s,ref:c,props:a,_owner:o.current}}t.jsx=s,t.jsxs=s},72408:function(e,t,n){"use strict";var r=n(96086),l=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,u=60110,i=60112;t.Suspense=60113;var s=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;l=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),i=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},k=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,a={},o=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&!E.hasOwnProperty(r)&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return{$$typeof:l,type:e,key:o,ref:u,props:a,_owner:w.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===l}var x=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,r,o){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var i=!1;if(null===e)i=!0;else switch(u){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case a:i=!0}}if(i)return o=o(i=e),e=""===r?"."+C(i,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),P(o,t,n,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+C(u=e[s],s);i+=P(u,t,n,c,o)}else if("function"===typeof(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(u=e.next()).done;)i+=P(u=u.value,t,n,c=r+C(u,s++),o);else if("object"===u)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function N(e,t,n){if(null==e)return e;var r=[],l=0;return P(e,r,"","",(function(e){return t.call(n,e,l++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function z(){var e=L.current;if(null===e)throw Error(p(321));return e}var O={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var a=r({},e.props),o=e.key,u=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,i=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];a.children=s}return{$$typeof:l,type:e.type,key:o,ref:u,props:a,_owner:i}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="17.0.2"},67294:function(e,t,n){"use strict";e.exports=n(72408)},85893:function(e,t,n){"use strict";e.exports=n(75251)},60053:function(e,t){"use strict";var n,r,l,a;if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,i=u.now();t.unstable_now=function(){return u.now()-i}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(n){throw setTimeout(f,0),n}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},l=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+g;try{v(!0,e)?k.postMessage(null):(m=!1,v=null)}catch(n){throw k.postMessage(null),n}}else m=!1},n=function(e){v=e,m||(m=!0,k.postMessage(null))},r=function(e,n){y=d((function(){e(t.unstable_now())}),n)},l=function(){p(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,l=e[r];if(!(void 0!==l&&0<x(l,t)))break e;e[r]=t,e[n]=l,n=r}}function S(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,l=e.length;r<l;){var a=2*(r+1)-1,o=e[a],u=a+1,i=e[u];if(void 0!==o&&0>x(o,n))void 0!==i&&0>x(i,o)?(e[r]=i,e[u]=n,r=u):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==i&&0>x(i,n)))break e;e[r]=i,e[u]=n,r=u}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],P=[],N=1,T=null,L=3,z=!1,O=!1,R=!1;function M(e){for(var t=S(P);null!==t;){if(null===t.callback)_(P);else{if(!(t.startTime<=e))break;_(P),t.sortIndex=t.expirationTime,E(C,t)}t=S(P)}}function I(e){if(R=!1,M(e),!O)if(null!==S(C))O=!0,n(D);else{var t=S(P);null!==t&&r(I,t.startTime-e)}}function D(e,n){O=!1,R&&(R=!1,l()),z=!0;var a=L;try{for(M(n),T=S(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"===typeof o){T.callback=null,L=T.priorityLevel;var u=o(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?T.callback=u:T===S(C)&&_(C),M(n)}else _(C);T=S(C)}if(null!==T)var i=!0;else{var s=S(P);null!==s&&r(I,s.startTime-n),i=!1}return i}finally{T=null,L=a,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||z||(O=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,a,o){var u=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?u+o:u:o=u,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:N++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>u?(e.sortIndex=o,E(P,e),null===S(C)&&e===S(P)&&(R?l():R=!0,r(I,o-u))):(e.sortIndex=i,E(C,e),O||z||(O=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},63840:function(e,t,n){"use strict";e.exports=n(60053)}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/framework-a62d654bd9699da79f2a.js b/out/_next/static/chunks/framework-a62d654bd9699da79f2a.js
new file mode 100644
index 0000000..ff8389e
--- /dev/null
+++ b/out/_next/static/chunks/framework-a62d654bd9699da79f2a.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{92703:function(e,t,n){"use strict";var r=n(50414);function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,a,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:l};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64448:function(e,t,n){"use strict";var r=n(67294),l=n(96086),a=n(63840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var u=new Set,i={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,l,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var l=g.hasOwnProperty(t)?g[t]:null;(null!==l?0===l.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,l,r)&&(n=null),r||null===l?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,_=60107,x=60108,C=60114,P=60109,N=60110,T=60112,L=60113,z=60120,O=60115,R=60116,M=60121,I=60128,D=60129,F=60130,U=60131;if("function"===typeof Symbol&&Symbol.for){var A=Symbol.for;E=A("react.element"),S=A("react.portal"),_=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),P=A("react.provider"),N=A("react.context"),T=A("react.forward_ref"),L=A("react.suspense"),z=A("react.suspense_list"),O=A("react.memo"),R=A("react.lazy"),M=A("react.block"),A("react.scope"),I=A("react.opaque.id"),D=A("react.debug_trace_mode"),F=A("react.offscreen"),U=A("react.legacy_hidden")}var V,j="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}function W(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var $=!1;function H(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(i){var r=i}Reflect.construct(e,[],t)}else{try{t.call()}catch(i){r=i}e.call(t.prototype)}else{try{throw Error()}catch(i){r=i}e()}}catch(i){if(i&&r&&"string"===typeof i.stack){for(var l=i.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,u=a.length-1;1<=o&&0<=u&&l[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return q(e.type);case M:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?le(e,t.type,n):t.hasOwnProperty("defaultValue")&&le(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function le(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=l({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,l=0;l<e.length;l++){if(e[l].value===n)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return l({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function se(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ge=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=ke(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Ne=null,Te=null;function Le(e){if(e=el(e)){if("function"!==typeof Pe)throw Error(o(280));var t=e.stateNode;t&&(t=nl(t),Pe(e.stateNode,e.type,t))}}function ze(e){Ne?Te?Te.push(e):Te=[e]:Ne=e}function Oe(){if(Ne){var e=Ne,t=Te;if(Te=Ne=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function Re(e,t){return e(t)}function Me(e,t,n,r,l){return e(t,n,r,l)}function Ie(){}var De=Re,Fe=!1,Ue=!1;function Ae(){null===Ne&&null===Te||(Ie(),Oe())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=nl(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var je=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){je=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ve){je=!1}function We(e,t,n,r,l,a,o,u,i){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var $e=!1,He=null,Qe=!1,qe=null,Ke={onError:function(e){$e=!0,He=e}};function Ye(e,t,n,r,l,a,o,u,i){$e=!1,He=null,We.apply(Ke,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(Xe(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){n=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return Ze(l),e;if(a===r)return Ze(l),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=l,r=a;else{for(var u=!1,i=l.child;i;){if(i===n){u=!0,n=l,r=a;break}if(i===r){u=!0,r=l,n=a;break}i=i.sibling}if(!u){for(i=a.child;i;){if(i===n){u=!0,n=a,r=l;break}if(i===r){u=!0,r=a,n=l;break}i=i.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,lt,at=!1,ot=[],ut=null,it=null,st=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,l){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:l,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e=ht(t,n,r,l,a),null!==t&&(null!==(t=el(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l),e)}function gt(e){var t=Jr(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void lt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=el(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=el(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==ut&&yt(ut)&&(ut=null),null!==it&&yt(it)&&(it=null),null!==st&&yt(st)&&(st=null),ct.forEach(bt),ft.forEach(bt)}function kt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,wt)))}function Et(e){function t(t){return kt(t,e)}if(0<ot.length){kt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&kt(ut,e),null!==it&&kt(it,e),null!==st&&kt(st,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},xt={},Ct={};function Pt(e){if(xt[e])return xt[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return xt[e]=n[t];return e}f&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Nt=Pt("animationend"),Tt=Pt("animationiteration"),Lt=Pt("animationstart"),zt=Pt("transitionend"),Ot=new Map,Rt=new Map,Mt=["abort","abort",Nt,"animationEnd",Tt,"animationIteration",Lt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",zt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],l=e[n+1];l="on"+(l[0].toUpperCase()+l.slice(1)),Rt.set(r,t),Ot.set(r,l),s(l,[r])}}(0,a.unstable_now)();var Dt=8;function Ft(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ut(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,l=0,a=e.expiredLanes,o=e.suspendedLanes,u=e.pingedLanes;if(0!==a)r=a,l=Dt=15;else if(0!==(a=134217727&n)){var i=a&~o;0!==i?(r=Ft(i),l=Dt):0!==(u&=a)&&(r=Ft(u),l=Dt)}else 0!==(a=n&~o)?(r=Ft(a),l=Dt):0!==u&&(r=Ft(u),l=Dt);if(0===r)return 0;if(r=n&((0>(r=31-$t(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(Ft(t),l<=Dt)return t;Dt=l}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)l=1<<(n=31-$t(t)),r|=e[n],t&=~l;return r}function At(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Vt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?Vt(10,t):e;case 10:return 0===(e=jt(192&~t))?Vt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&(0===(e=jt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function jt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-$t(t)]=n}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Qt|0)|0},Ht=Math.log,Qt=Math.LN2;var qt=a.unstable_UserBlockingPriority,Kt=a.unstable_runWithPriority,Yt=!0;function Xt(e,t,n,r){Fe||Ie();var l=Zt,a=Fe;Fe=!0;try{Me(l,e,t,n,r)}finally{(Fe=a)||Ae()}}function Gt(e,t,n,r){Kt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var l;if(Yt)if((l=0===(4&t))&&0<ot.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var a=Jt(e,t,n,r);if(null===a)l&&mt(e,r);else{if(l){if(-1<pt.indexOf(e))return e=ht(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,l){switch(t){case"focusin":return ut=vt(ut,e,t,n,r,l),!0;case"dragenter":return it=vt(it,e,t,n,r,l),!0;case"mouseover":return st=vt(st,e,t,n,r,l),!0;case"pointerover":var a=l.pointerId;return ct.set(a,vt(ct.get(a)||null,e,t,n,r,l)),!0;case"gotpointercapture":return a=l.pointerId,ft.set(a,vt(ft.get(a)||null,e,t,n,r,l)),!0}return!1}(a,e,t,n,r))return;mt(e,r)}Or(e,t,r,null,n)}}}function Jt(e,t,n,r){var l=Ce(r);if(null!==(l=Jr(l))){var a=Xe(l);if(null===a)l=null;else{var o=a.tag;if(13===o){if(null!==(l=Ge(a)))return l;l=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;l=null}else a!==l&&(l=null)}}return Or(e,t,r,l,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,l="value"in en?en.value:en.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===l[a-t];t++);return nn=l.slice(e,1<t?1-t:void 0)}function ln(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function un(e){function t(t,n,r,l,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?an:on,this.isPropagationStopped=on,this}return l(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),hn=l({},dn,{view:0,detail:0}),mn=un(hn),vn=l({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(sn=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=sn=0,fn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=un(vn),yn=un(l({},vn,{dataTransfer:0})),bn=un(l({},hn,{relatedTarget:0})),wn=un(l({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=un(l({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=un(l({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Pn(){return Cn}var Nn=un(l({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ln(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?ln(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ln(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=un(l({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=un(l({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),zn=un(l({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=un(l({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=[9,13,27,32],Mn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Dn=f&&"TextEvent"in window&&!In,Fn=f&&(!Mn||In&&8<In&&11>=In),Un=String.fromCharCode(32),An=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){ze(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,qn=null;function Kn(e){Cr(e,0)}function Yn(e){if(G(tl(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(f){var Zn;if(f){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Gn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Qn&&(Qn.detachEvent("onpropertychange",nr),qn=Qn=null)}function nr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];if(Hn(t,qn,e,Ce(e)),e=Kn,Fe)e(t);else{Fe=!0;try{Re(e,t)}finally{Fe=!1,Ae()}}}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function ar(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ir=Object.prototype.hasOwnProperty;function sr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ir.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Z(r)||("selectionStart"in(r=vr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=Mr(gr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Mt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<kr.length;Er++)Rt.set(kr[Er],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,l,a,u,i,s){if(Ye.apply(this,arguments),$e){if(!$e)throw Error(o(198));var c=He;$e=!1,He=null,Qe||(Qe=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Cr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],i=u.instance,s=u.currentTarget;if(u=u.listener,i!==a&&l.isPropagationStopped())break e;xr(l,u,s),a=i}else for(o=0;o<r.length;o++){if(i=(u=r[o]).instance,s=u.currentTarget,u=u.listener,i!==a&&l.isPropagationStopped())break e;xr(l,u,s),a=i}}}if(Qe)throw e=qe,Qe=!1,qe=null,e}function Pr(e,t){var n=rl(t),r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}var Nr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Nr]||(e[Nr]=!0,u.forEach((function(t){_r.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&_r.has(e)){if("scroll"!==e)return;l|=2,a=r}var o=rl(a),u=e+"__"+(t?"capture":"bubble");o.has(u)||(t&&(l|=4),zr(a,e,l,t),o.add(u))}function zr(e,t,n,r){var l=Rt.get(t);switch(void 0===l?2:l){case 0:l=Xt;break;case 1:l=Gt;break;default:l=Zt}n=l.bind(null,t,n,e),l=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Or(e,t,n,r,l){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var u=r.stateNode.containerInfo;if(u===l||8===u.nodeType&&u.parentNode===l)break;if(4===o)for(o=r.return;null!==o;){var i=o.tag;if((3===i||4===i)&&((i=o.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;o=o.return}for(;null!==u;){if(null===(o=Jr(u)))return;if(5===(i=o.tag)||6===i){r=a=o;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e(t,n);Ue=!0;try{De(e,t,n)}finally{Ue=!1,Ae()}}((function(){var r=a,l=Ce(n),o=[];e:{var u=Ot.get(e);if(void 0!==u){var i=pn,s=e;switch(e){case"keypress":if(0===ln(n))break e;case"keydown":case"keyup":i=Nn;break;case"focusin":s="focus",i=bn;break;case"focusout":s="blur",i=bn;break;case"beforeblur":case"afterblur":i=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=Ln;break;case Nt:case Tt:case Lt:i=wn;break;case zt:i=zn;break;case"scroll":i=mn;break;case"wheel":i=On;break;case"copy":case"cut":case"paste":i=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=Tn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==u?u+"Capture":null:u;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ve(h,d))&&c.push(Rr(h,m,p)))),f)break;h=h.return}0<c.length&&(u=new i(u,s,null,n,l),o.push({event:u,listeners:c}))}}if(0===(7&t)){if(i="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(s=n.relatedTarget||n.fromElement)||!Jr(s)&&!s[Gr])&&(i||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,i?(i=r,null!==(s=(s=n.relatedTarget||n.toElement)?Jr(s):null)&&(s!==(f=Xe(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=gn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==i?u:tl(i),p=null==s?u:tl(s),(u=new c(m,h+"leave",i,n,l)).target=f,u.relatedTarget=p,m=null,Jr(l)===r&&((c=new c(d,h+"enter",s,n,l)).target=p,c.relatedTarget=f,m=c),f=m,i&&s)e:{for(d=s,h=0,p=c=i;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==i&&Dr(o,u,i,c,!1),null!==s&&null!==f&&Dr(o,f,s,c,!0)}if("select"===(i=(u=r?tl(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===i&&"file"===u.type)var v=Xn;else if($n(u))if(Gn)v=or;else{v=lr;var g=rr}else(i=u.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(v=ar);switch(v&&(v=v(e,r))?Hn(o,v,n,l):(g&&g(e,u,r),"focusout"===e&&(g=u._wrapperState)&&g.controlled&&"number"===u.type&&le(u,"number",u.value)),g=r?tl(r):window,e){case"focusin":($n(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,l);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,l)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=rn()):(tn="value"in(en=l)?en.value:en.textContent,Bn=!0)),0<(g=Mr(r,b)).length&&(b=new En(b,e,null,n,l),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=jn(n))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(An=!0,Un);case"textInput":return(e=t.data)===Un&&An?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Mn&&Vn(e,t)?(e=rn(),nn=tn=en=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(l=new En("onBeforeInput","beforeinput",null,n,l),o.push({event:l,listeners:r}),l.data=y))}Cr(o,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=Ve(e,n))&&r.unshift(Rr(e,a,l)),null!=(a=Ve(e,t))&&r.push(Rr(e,a,l))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,l){for(var a=t._reactName,o=[];null!==n&&n!==r;){var u=n,i=u.alternate,s=u.stateNode;if(null!==i&&i===r)break;5===u.tag&&null!==s&&(u=s,l?null!=(i=Ve(n,a))&&o.unshift(Rr(n,i,u)):l||null!=(i=Ve(n,a))&&o.push(Rr(n,i,u))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Fr(){}var Ur=null,Ar=null;function Vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function jr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Br="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function $r(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0;var Kr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+Kr,Xr="__reactProps$"+Kr,Gr="__reactContainer$"+Kr,Zr="__reactEvents$"+Kr;function Jr(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Qr(e);null!==e;){if(n=e[Yr])return n;e=Qr(e)}return t}n=(e=n).parentNode}return null}function el(e){return!(e=e[Yr]||e[Gr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function tl(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function nl(e){return e[Xr]||null}function rl(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var ll=[],al=-1;function ol(e){return{current:e}}function ul(e){0>al||(e.current=ll[al],ll[al]=null,al--)}function il(e,t){al++,ll[al]=e.current,e.current=t}var sl={},cl=ol(sl),fl=ol(!1),dl=sl;function pl(e,t){var n=e.type.contextTypes;if(!n)return sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hl(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ml(){ul(fl),ul(cl)}function vl(e,t,n){if(cl.current!==sl)throw Error(o(168));il(cl,t),il(fl,n)}function gl(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return l({},n,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sl,dl=cl.current,il(cl,e),il(fl,fl.current),!0}function bl(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=gl(e,t,dl),r.__reactInternalMemoizedMergedChildContext=e,ul(fl),ul(cl),il(cl,e)):ul(fl),il(fl,n)}var wl=null,kl=null,El=a.unstable_runWithPriority,Sl=a.unstable_scheduleCallback,_l=a.unstable_cancelCallback,xl=a.unstable_shouldYield,Cl=a.unstable_requestPaint,Pl=a.unstable_now,Nl=a.unstable_getCurrentPriorityLevel,Tl=a.unstable_ImmediatePriority,Ll=a.unstable_UserBlockingPriority,zl=a.unstable_NormalPriority,Ol=a.unstable_LowPriority,Rl=a.unstable_IdlePriority,Ml={},Il=void 0!==Cl?Cl:function(){},Dl=null,Fl=null,Ul=!1,Al=Pl(),Vl=1e4>Al?Pl:function(){return Pl()-Al};function jl(){switch(Nl()){case Tl:return 99;case Ll:return 98;case zl:return 97;case Ol:return 96;case Rl:return 95;default:throw Error(o(332))}}function Bl(e){switch(e){case 99:return Tl;case 98:return Ll;case 97:return zl;case 96:return Ol;case 95:return Rl;default:throw Error(o(332))}}function Wl(e,t){return e=Bl(e),El(e,t)}function $l(e,t,n){return e=Bl(e),Sl(e,t,n)}function Hl(){if(null!==Fl){var e=Fl;Fl=null,_l(e)}Ql()}function Ql(){if(!Ul&&null!==Dl){Ul=!0;var e=0;try{var t=Dl;Wl(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Dl=null}catch(n){throw null!==Dl&&(Dl=Dl.slice(e+1)),Sl(Tl,Hl),n}finally{Ul=!1}}}var ql=k.ReactCurrentBatchConfig;function Kl(e,t){if(e&&e.defaultProps){for(var n in t=l({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yl=ol(null),Xl=null,Gl=null,Zl=null;function Jl(){Zl=Gl=Xl=null}function ea(e){var t=Yl.current;ul(Yl),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function na(e,t){Xl=e,Zl=Gl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Mo=!0),e.firstContext=null)}function ra(e,t){if(Zl!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Zl=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Gl){if(null===Xl)throw Error(o(308));Gl=t,Xl.dependencies={lanes:0,firstContext:t,responders:null}}else Gl=Gl.next=t;return e._currentValue}var la=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ua(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ia(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function sa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?l=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;return n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var a=e.updateQueue;la=!1;var o=a.firstBaseUpdate,u=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var s=i,c=s.next;s.next=null,null===u?o=c:u.next=c,u=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==o){for(d=a.baseState,u=0,f=c=s=null;;){i=o.lane;var p=o.eventTime;if((r&i)===i){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(i=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,i);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(i="function"===typeof(h=m.payload)?h.call(p,d,i):h)||void 0===i)break e;d=l({},d,i);break e;case 2:la=!0}}null!==o.callback&&(e.flags|=32,null===(i=a.effects)?a.effects=[o]:i.push(o))}else p={eventTime:p,lane:i,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,u|=i;if(null===(o=o.next)){if(null===(i=a.shared.pending))break;o=i.next,i.next=null,a.lastBaseUpdate=i,a.shared.pending=null}}null===f&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=f,Uu|=u,e.lanes=u,e.memoizedState=d}}function fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(null!==l){if(r.callback=null,r=n,"function"!==typeof l)throw Error(o(191,l));l.call(r)}}}var da=(new r.Component).refs;function pa(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:l({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ha={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=si(),l=ci(e),a=ua(r,l);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),ia(e,a),fi(e,l,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=si(),l=ci(e),a=ua(r,l);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),ia(e,a),fi(e,l,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=si(),r=ci(e),l=ua(n,r);l.tag=2,void 0!==t&&null!==t&&(l.callback=t),ia(e,l),fi(e,r,n)}};function ma(e,t,n,r,l,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(l,a))}function va(e,t,n){var r=!1,l=sl,a=t.contextType;return"object"===typeof a&&null!==a?a=ra(a):(l=hl(t)?dl:cl.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?pl(e,l):sl),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function ga(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ya(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=da,aa(e);var a=t.contextType;"object"===typeof a&&null!==a?l.context=ra(a):(a=hl(t)?dl:cl.current,l.context=pl(e,a)),ca(e,n,l,r),l.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(pa(e,t,a,n),l.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof l.getSnapshotBeforeUpdate||"function"!==typeof l.UNSAFE_componentWillMount&&"function"!==typeof l.componentWillMount||(t=l.state,"function"===typeof l.componentWillMount&&l.componentWillMount(),"function"===typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&ha.enqueueReplaceState(l,l.state,null),ca(e,n,l,r),l.state=e.memoizedState),"function"===typeof l.componentDidMount&&(e.flags|=4)}var ba=Array.isArray;function wa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var l=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===l?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[l]:t[l]=e})._stringRef=l,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function ka(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ea(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=Wi(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function i(e,t,n,r){return null===t||6!==t.tag?((t=qi(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=l(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=$i(n.type,n.key,n.props,null,e.mode,r)).ref=wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ki(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Hi(n,e.mode,r,a)).return=e,t):((t=l(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=qi(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case E:return(n=$i(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case S:return(t=Ki(t,e.mode,n)).return=e,t}if(ba(t)||B(t))return(t=Hi(t,e.mode,n,null)).return=e,t;ka(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==l?null:i(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===l?n.type===_?f(e,t,n.props.children,r,l):s(e,t,n,r):null;case S:return n.key===l?c(e,t,n,r):null}if(ba(n)||B(n))return null!==l?null:f(e,t,n,r,null);ka(e,n)}return null}function h(e,t,n,r,l){if("string"===typeof r||"number"===typeof r)return i(t,e=e.get(n)||null,""+r,l);if("object"===typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===_?f(t,e,r.props.children,l,r.key):s(t,e,r,l);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l)}if(ba(r)||B(r))return f(t,e=e.get(n)||null,r,l,null);ka(t,r)}return null}function m(l,o,u,i){for(var s=null,c=null,f=o,m=o=0,v=null;null!==f&&m<u.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(l,f,u[m],i);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(l,f),o=a(g,o,m),null===c?s=g:c.sibling=g,c=g,f=v}if(m===u.length)return n(l,f),s;if(null===f){for(;m<u.length;m++)null!==(f=d(l,u[m],i))&&(o=a(f,o,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(l,f);m<u.length;m++)null!==(v=h(f,l,m,u[m],i))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(l,e)})),s}function v(l,u,i,s){var c=B(i);if("function"!==typeof c)throw Error(o(150));if(null==(i=c.call(i)))throw Error(o(151));for(var f=c=null,m=u,v=u=0,g=null,y=i.next();null!==m&&!y.done;v++,y=i.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(l,m,y.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(l,m),u=a(b,u,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(l,m),c;if(null===m){for(;!y.done;v++,y=i.next())null!==(y=d(l,y.value,s))&&(u=a(y,u,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(l,m);!y.done;v++,y=i.next())null!==(y=h(m,l,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),u=a(y,u,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(l,e)})),c}return function(e,r,a,i){var s="object"===typeof a&&null!==a&&a.type===_&&null===a.key;s&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case E:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(a.type===_){n(e,s.sibling),(r=l(s,a.props.children)).return=e,e=r;break e}break;default:if(s.elementType===a.type){n(e,s.sibling),(r=l(s,a.props)).ref=wa(e,s,a),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}a.type===_?((r=Hi(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=$i(a.type,a.key,a.props,null,e.mode,i)).ref=wa(e,r,a),i.return=e,e=i)}return u(e);case S:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ki(a,e.mode,i)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=l(r,a)).return=e,e=r):(n(e,r),(r=qi(a,e.mode,i)).return=e,e=r),u(e);if(ba(a))return m(e,r,a,i);if(B(a))return v(e,r,a,i);if(c&&ka(e,a),"undefined"===typeof a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var Sa=Ea(!0),_a=Ea(!1),xa={},Ca=ol(xa),Pa=ol(xa),Na=ol(xa);function Ta(e){if(e===xa)throw Error(o(174));return e}function La(e,t){switch(il(Na,t),il(Pa,e),il(Ca,xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ul(Ca),il(Ca,t)}function za(){ul(Ca),ul(Pa),ul(Na)}function Oa(e){Ta(Na.current);var t=Ta(Ca.current),n=he(t,e.type);t!==n&&(il(Pa,e),il(Ca,n))}function Ra(e){Pa.current===e&&(ul(Ca),ul(Pa))}var Ma=ol(0);function Ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=null,Fa=null,Ua=!1;function Aa(e,t){var n=ji(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Va(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ja(e){if(Ua){var t=Fa;if(t){var n=t;if(!Va(e,t)){if(!(t=Hr(n.nextSibling))||!Va(e,t))return e.flags=-1025&e.flags|2,Ua=!1,void(Da=e);Aa(Da,n)}Da=e,Fa=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,Da=e}}function Ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function Wa(e){if(e!==Da)return!1;if(!Ua)return Ba(e),Ua=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!jr(t,e.memoizedProps))for(t=Fa;t;)Aa(e,t),t=Hr(t.nextSibling);if(Ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fa=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fa=null}}else Fa=Da?Hr(e.stateNode.nextSibling):null;return!0}function $a(){Fa=Da=null,Ua=!1}var Ha=[];function Qa(){for(var e=0;e<Ha.length;e++)Ha[e]._workInProgressVersionPrimary=null;Ha.length=0}var qa=k.ReactCurrentDispatcher,Ka=k.ReactCurrentBatchConfig,Ya=0,Xa=null,Ga=null,Za=null,Ja=!1,eo=!1;function to(){throw Error(o(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,l,a){if(Ya=a,Xa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qa.current=null===e||null===e.memoizedState?Lo:zo,e=n(r,l),eo){a=0;do{if(eo=!1,!(25>a))throw Error(o(301));a+=1,Za=Ga=null,t.updateQueue=null,qa.current=Oo,e=n(r,l)}while(eo)}if(qa.current=To,t=null!==Ga&&null!==Ga.next,Ya=0,Za=Ga=Xa=null,Ja=!1,t)throw Error(o(300));return e}function lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Za?Xa.memoizedState=Za=e:Za=Za.next=e,Za}function ao(){if(null===Ga){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Ga.next;var t=null===Za?Xa.memoizedState:Za.next;if(null!==t)Za=t,Ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ga=e).memoizedState,baseState:Ga.baseState,baseQueue:Ga.baseQueue,queue:Ga.queue,next:null},null===Za?Xa.memoizedState=Za=e:Za=Za.next=e}return Za}function oo(e,t){return"function"===typeof t?t(e):t}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ga,l=r.baseQueue,a=n.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,n.pending=null}if(null!==l){l=l.next,r=r.baseState;var i=u=a=null,s=l;do{var c=s.lane;if((Ya&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,a=r):i=i.next=f,Xa.lanes|=c,Uu|=c}s=s.next}while(null!==s&&s!==l);null===i?a=r:i.next=u,ur(r,t.memoizedState)||(Mo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=i,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function io(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var u=l=l.next;do{a=e(a,u.action),u=u.next}while(u!==l);ur(a,t.memoizedState)||(Mo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function so(e,t,n){var r=t._getVersion;r=r(t._source);var l=t._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(Ya&e)===e)&&(t._workInProgressVersionPrimary=r,Ha.push(t))),e)return n(t._source);throw Ha.push(t),Error(o(350))}function co(e,t,n,r){var l=Lu;if(null===l)throw Error(o(349));var a=t._getVersion,u=a(t._source),i=qa.current,s=i.useState((function(){return so(l,t,n)})),c=s[1],f=s[0];s=Za;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Xa;return e.memoizedState={refs:p,source:t,subscribe:r},i.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!ur(u,e)){e=n(t._source),ur(f,e)||(c(e),e=ci(v),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var r=l.entanglements,o=e;0<o;){var i=31-$t(o),s=1<<i;r[i]|=e,o&=~s}}}),[n,t,r]),i.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ci(v);l.mutableReadLanes|=r&l.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=No.bind(null,Xa,e),s.queue=e,s.baseQueue=null,f=so(l,t,n),s.memoizedState=s.baseState=f),f}function fo(e,t,n){return co(ao(),e,t,n)}function po(e){var t=lo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=No.bind(null,Xa,e),[t.memoizedState,e]}function ho(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xa.updateQueue)?(t={lastEffect:null},Xa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function mo(e){return e={current:e},lo().memoizedState=e}function vo(){return ao().memoizedState}function go(e,t,n,r){var l=lo();Xa.flags|=e,l.memoizedState=ho(1|t,n,void 0,void 0===r?null:r)}function yo(e,t,n,r){var l=ao();r=void 0===r?null:r;var a=void 0;if(null!==Ga){var o=Ga.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void ho(t,n,a,r)}Xa.flags|=e,l.memoizedState=ho(1|t,n,a,r)}function bo(e,t){return go(516,4,e,t)}function wo(e,t){return yo(516,4,e,t)}function ko(e,t){return yo(4,2,e,t)}function Eo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function So(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,yo(4,2,Eo.bind(null,t,e),n)}function _o(){}function xo(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Po(e,t){var n=jl();Wl(98>n?98:n,(function(){e(!0)})),Wl(97<n?97:n,(function(){var n=Ka.transition;Ka.transition=1;try{e(!1),t()}finally{Ka.transition=n}}))}function No(e,t,n){var r=si(),l=ci(e),a={lane:l,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Xa||null!==o&&o===Xa)eo=Ja=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var u=t.lastRenderedState,i=o(u,n);if(a.eagerReducer=o,a.eagerState=i,ur(i,u))return}catch(s){}fi(e,l,r)}}var To={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},Lo={readContext:ra,useCallback:function(e,t){return lo().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,go(4,2,Eo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=lo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=No.bind(null,Xa,e),[r.memoizedState,e]},useRef:mo,useState:po,useDebugValue:_o,useDeferredValue:function(e){var t=po(e),n=t[0],r=t[1];return bo((function(){var t=Ka.transition;Ka.transition=1;try{r(e)}finally{Ka.transition=t}}),[e]),n},useTransition:function(){var e=po(!1),t=e[0];return mo(e=Po.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=lo();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(Ua){var e=!1,t=function(e){return{$$typeof:I,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(o(355))})),n=po(t)[1];return 0===(2&Xa.mode)&&(Xa.flags|=516,ho(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return po(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},zo={readContext:ra,useCallback:xo,useContext:ra,useEffect:wo,useImperativeHandle:So,useLayoutEffect:ko,useMemo:Co,useReducer:uo,useRef:vo,useState:function(){return uo(oo)},useDebugValue:_o,useDeferredValue:function(e){var t=uo(oo),n=t[0],r=t[1];return wo((function(){var t=Ka.transition;Ka.transition=1;try{r(e)}finally{Ka.transition=t}}),[e]),n},useTransition:function(){var e=uo(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return uo(oo)[0]},unstable_isNewReconciler:!1},Oo={readContext:ra,useCallback:xo,useContext:ra,useEffect:wo,useImperativeHandle:So,useLayoutEffect:ko,useMemo:Co,useReducer:io,useRef:vo,useState:function(){return io(oo)},useDebugValue:_o,useDeferredValue:function(e){var t=io(oo),n=t[0],r=t[1];return wo((function(){var t=Ka.transition;Ka.transition=1;try{r(e)}finally{Ka.transition=t}}),[e]),n},useTransition:function(){var e=io(oo)[0];return[vo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return io(oo)[0]},unstable_isNewReconciler:!1},Ro=k.ReactCurrentOwner,Mo=!1;function Io(e,t,n,r){t.child=null===e?_a(t,null,n,r):Sa(t,e.child,n,r)}function Do(e,t,n,r,l){n=n.render;var a=t.ref;return na(t,l),r=ro(e,t,n,r,a,l),null===e||Mo?(t.flags|=1,Io(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~l,nu(e,t,l))}function Fo(e,t,n,r,l,a){if(null===e){var o=n.type;return"function"!==typeof o||Bi(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$i(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Uo(e,t,o,r,l,a))}return o=e.child,0===(l&a)&&(l=o.memoizedProps,(n=null!==(n=n.compare)?n:sr)(l,r)&&e.ref===t.ref)?nu(e,t,a):(t.flags|=1,(e=Wi(o,r)).ref=t.ref,e.return=t,t.child=e)}function Uo(e,t,n,r,l,a){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(Mo=!1,0===(a&l))return t.lanes=e.lanes,nu(e,t,a);0!==(16384&e.flags)&&(Mo=!0)}return jo(e,t,n,r,a)}function Ao(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},bi(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bi(t,e),null;t.memoizedState={baseLanes:0},bi(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bi(t,r);return Io(e,t,l,n),t.child}function Vo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function jo(e,t,n,r,l){var a=hl(n)?dl:cl.current;return a=pl(t,a),na(t,l),n=ro(e,t,n,r,a,l),null===e||Mo?(t.flags|=1,Io(e,t,n,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~l,nu(e,t,l))}function Bo(e,t,n,r,l){if(hl(n)){var a=!0;yl(t)}else a=!1;if(na(t,l),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ya(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,u=t.memoizedProps;o.props=u;var i=o.context,s=n.contextType;"object"===typeof s&&null!==s?s=ra(s):s=pl(t,s=hl(n)?dl:cl.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==r||i!==s)&&ga(t,o,r,s),la=!1;var d=t.memoizedState;o.state=d,ca(t,r,o,l),i=t.memoizedState,u!==r||d!==i||fl.current||la?("function"===typeof c&&(pa(t,n,c,r),i=t.memoizedState),(u=la||ma(t,n,u,r,d,i,s))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=i),o.props=r,o.state=i,o.context=s,r=u):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oa(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:Kl(t.type,u),o.props=s,f=t.pendingProps,d=o.context,"object"===typeof(i=n.contextType)&&null!==i?i=ra(i):i=pl(t,i=hl(n)?dl:cl.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==f||d!==i)&&ga(t,o,r,i),la=!1,d=t.memoizedState,o.state=d,ca(t,r,o,l);var h=t.memoizedState;u!==f||d!==h||fl.current||la?("function"===typeof p&&(pa(t,n,p,r),h=t.memoizedState),(s=la||ma(t,n,s,r,d,h,i))?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,i),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,i)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=i,r=s):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,l)}function Wo(e,t,n,r,l,a){Vo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return l&&bl(t,n,!1),nu(e,t,a);r=t.stateNode,Ro.current=t;var u=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,u,a)):Io(e,t,u,a),t.memoizedState=r.state,l&&bl(t,n,!0),t.child}function $o(e){var t=e.stateNode;t.pendingContext?vl(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vl(0,t.context,!1),La(e,t.containerInfo)}var Ho,Qo,qo,Ko={dehydrated:null,retryLane:0};function Yo(e,t,n){var r,l=t.pendingProps,a=Ma.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),il(Ma,1&a),null===e?(void 0!==l.fallback&&ja(t),e=l.children,a=l.fallback,o?(e=Xo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,e):"number"===typeof l.unstable_expectedLoadTime?(e=Xo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,t.lanes=33554432,e):((n=Qi({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(l=Zo(e,t,l.children,l.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ko,l):(n=Go(e,t,l.children,n),t.memoizedState=null,n))}function Xo(e,t,n,r){var l=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&l)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Qi(t,l,0,null),n=Hi(n,l,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Go(e,t,n,r){var l=e.child;return e=l.sibling,n=Wi(l,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Zo(e,t,n,r,l){var a=t.mode,o=e.child;e=o.sibling;var u={mode:"hidden",children:n};return 0===(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=u,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Wi(o,u),null!==e?r=Wi(e,r):(r=Hi(r,a,l,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function eu(e,t,n,r,l,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l,o.lastEffect=a)}function tu(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(Io(e,t,r.children,n),0!==(2&(r=Ma.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(il(Ma,r),0===(2&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;null!==n;)null!==(e=n.alternate)&&null===Ia(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),eu(t,!1,l,n,a,t.lastEffect);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Ia(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}eu(t,!0,n,null,a,t.lastEffect);break;case"together":eu(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Uu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Wi(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wi(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ru(e,t){if(!Ua)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return hl(t.type)&&ml(),null;case 3:return za(),ul(fl),ul(cl),Qa(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ra(t);var a=Ta(Na.current);if(n=t.type,null!==e&&null!=t.stateNode)Qo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ta(Ca.current),Wa(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Yr]=t,r[Xr]=u,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Pr(Sr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,u),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Pr("invalid",r);break;case"textarea":ie(r,u),Pr("invalid",r)}for(var s in _e(n,u),e=null,u)u.hasOwnProperty(s)&&(a=u[s],"children"===s?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):i.hasOwnProperty(s)&&null!=a&&"onScroll"===s&&Pr("scroll",r));switch(n){case"input":X(r),re(r,u,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Yr]=t,e[Xr]=r,Ho(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),a=r;break;case"iframe":case"object":case"embed":Pr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Sr.length;a++)Pr(Sr[a],e);a=r;break;case"source":Pr("error",e),a=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),a=r;break;case"details":Pr("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Pr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=l({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ie(e,r),a=ue(e,r),Pr("invalid",e);break;default:a=r}_e(n,a);var c=a;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?Ee(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===u?"string"===typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"===typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Pr("scroll",e):null!=f&&w(e,u,f,s))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?oe(e,!!r.multiple,u,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Fr)}Vr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)qo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Ta(Na.current),Ta(Ca.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return ul(Ma),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ma.current)?0===Iu&&(Iu=3):(0!==Iu&&3!==Iu||(Iu=4),null===Lu||0===(134217727&Uu)&&0===(134217727&Au)||mi(Lu,Ou))),(r||n)&&(t.flags|=4),null);case 4:return za(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 17:return hl(t.type)&&ml(),null;case 19:if(ul(Ma),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(s=r.rendering))if(u)ru(r,!1);else{if(0!==Iu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Ia(e))){for(t.flags|=64,ru(r,!1),null!==(u=s.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(s=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return il(Ma,1&Ma.current|2),t.child}e=e.sibling}null!==r.tail&&Vl()>Wu&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Ia(s))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ru(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ua)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vl()-r.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vl(),n.sibling=null,t=Ma.current,il(Ma,u?1&t|2:1&t),n):null;case 23:case 24:return wi(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function au(e){switch(e.tag){case 1:hl(e.type)&&ml();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(za(),ul(fl),ul(cl),Qa(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return ul(Ma),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ul(Ma),null;case 4:return za(),null;case 10:return ea(e),null;case 23:case 24:return wi(),null;default:return null}}function ou(e,t){try{var n="",r=t;do{n+=Q(r),r=r.return}while(r);var l=n}catch(a){l="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:l}}function uu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ta(Ca.current);var o,u=null;switch(n){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in _e(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(i.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(i.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),u||s===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===I?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var iu="function"===typeof WeakMap?WeakMap:Map;function su(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Ku=r),uu(0,t)},n}function cu(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var l=t.value;n.payload=function(){return uu(0,t),r(l)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Yu?Yu=new Set([this]):Yu.add(this),uu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fu="function"===typeof WeakSet?WeakSet:Set;function du(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fi(e,n)}else t.current=null}function pu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Kl(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function hu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var l=e;r=l.next,0!==(4&(l=l.tag))&&0!==(1&l)&&(Mi(n,e),Ri(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Kl(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function mu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var l=n.memoizedProps.style;l=void 0!==l&&null!==l&&l.hasOwnProperty("display")?l.display:null,r.style.display=ke("display",l)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vu(e,t){if(kl&&"function"===typeof kl.onCommitFiberUnmount)try{kl.onCommitFiberUnmount(wl,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,l=r.destroy;if(r=r.tag,void 0!==l)if(0!==(4&r))Mi(t,n);else{r=t;try{l()}catch(a){Fi(r,a)}}n=n.next}while(n!==e)}break;case 1:if(du(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Fi(t,a)}break;case 5:du(t);break;case 4:Eu(e,t)}}function gu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function yu(e){return 5===e.tag||3===e.tag||4===e.tag}function bu(e){e:{for(var t=e.return;null!==t;){if(yu(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||yu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?wu(e,n,t):ku(e,n,t)}function wu(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}function Eu(e,t){for(var n,r,l=t,a=!1;;){if(!a){a=l.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===l.tag||6===l.tag){e:for(var u=e,i=l,s=i;;)if(vu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=n,i=l.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):n.removeChild(l.stateNode)}else if(4===l.tag){if(null!==l.child){n=l.stateNode.containerInfo,r=!0,l.child.return=l,l=l.child;continue}}else if(vu(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)return;4===(l=l.return).tag&&(a=!1)}l.sibling.return=l.return,l=l.sibling}}function Su(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var l=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,l),t=xe(e,r),l=0;l<a.length;l+=2){var u=a[l],i=a[l+1];"style"===u?Ee(n,i):"dangerouslySetInnerHTML"===u?ge(n,i):"children"===u?ye(n,i):w(n,u,i,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Bu=Vl(),mu(t.child,!0)),void _u(t);case 19:return void _u(t);case 17:return;case 23:case 24:return void mu(t,null!==t.memoizedState)}throw Error(o(163))}function _u(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fu),t.forEach((function(t){var r=Ai.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function xu(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Cu=Math.ceil,Pu=k.ReactCurrentDispatcher,Nu=k.ReactCurrentOwner,Tu=0,Lu=null,zu=null,Ou=0,Ru=0,Mu=ol(0),Iu=0,Du=null,Fu=0,Uu=0,Au=0,Vu=0,ju=null,Bu=0,Wu=1/0;function $u(){Wu=Vl()+500}var Hu,Qu=null,qu=!1,Ku=null,Yu=null,Xu=!1,Gu=null,Zu=90,Ju=[],ei=[],ti=null,ni=0,ri=null,li=-1,ai=0,oi=0,ui=null,ii=!1;function si(){return 0!==(48&Tu)?Vl():-1!==li?li:li=Vl()}function ci(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===jl()?1:2;if(0===ai&&(ai=Fu),0!==ql.transition){0!==oi&&(oi=null!==ju?ju.pendingLanes:0),e=ai;var t=4186112&~oi;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=jl(),0!==(4&Tu)&&98===e?e=Vt(12,ai):e=Vt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ai),e}function fi(e,t,n){if(50<ni)throw ni=0,ri=null,Error(o(185));if(null===(e=di(e,t)))return null;Wt(e,t,n),e===Lu&&(Au|=t,4===Iu&&mi(e,Ou));var r=jl();1===t?0!==(8&Tu)&&0===(48&Tu)?vi(e):(pi(e,n),0===Tu&&($u(),Hl())):(0===(4&Tu)||98!==r&&99!==r||(null===ti?ti=new Set([e]):ti.add(e)),pi(e,n)),ju=e}function di(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pi(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var i=31-$t(u),s=1<<i,c=a[i];if(-1===c){if(0===(s&r)||0!==(s&l)){c=t,Ft(s);var f=Dt;a[i]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);u&=~s}if(r=Ut(e,e===Lu?Ou:0),t=Dt,0===r)null!==n&&(n!==Ml&&_l(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ml&&_l(n)}15===t?(n=vi.bind(null,e),null===Dl?(Dl=[n],Fl=Sl(Tl,Ql)):Dl.push(n),n=Ml):14===t?n=$l(99,vi.bind(null,e)):n=$l(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),hi.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hi(e){if(li=-1,oi=ai=0,0!==(48&Tu))throw Error(o(327));var t=e.callbackNode;if(Oi()&&e.callbackNode!==t)return null;var n=Ut(e,e===Lu?Ou:0);if(0===n)return null;var r=n,l=Tu;Tu|=16;var a=Si();for(Lu===e&&Ou===r||($u(),ki(e,r));;)try{Ci();break}catch(i){Ei(e,i)}if(Jl(),Pu.current=a,Tu=l,null!==zu?r=0:(Lu=null,Ou=0,r=Iu),0!==(Fu&Au))ki(e,0);else if(0!==r){if(2===r&&(Tu|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(n=At(e))&&(r=_i(e,n))),1===r)throw t=Du,ki(e,0),mi(e,n),pi(e,Vl()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:Ti(e);break;case 3:if(mi(e,n),(62914560&n)===n&&10<(r=Bu+500-Vl())){if(0!==Ut(e,0))break;if(((l=e.suspendedLanes)&n)!==n){si(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Br(Ti.bind(null,e),r);break}Ti(e);break;case 4:if(mi(e,n),(4186112&n)===n)break;for(r=e.eventTimes,l=-1;0<n;){var u=31-$t(n);a=1<<u,(u=r[u])>l&&(l=u),n&=~a}if(n=l,10<(n=(120>(n=Vl()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cu(n/1960))-n)){e.timeoutHandle=Br(Ti.bind(null,e),n);break}Ti(e);break;case 5:Ti(e);break;default:throw Error(o(329))}}return pi(e,Vl()),e.callbackNode===t?hi.bind(null,e):null}function mi(e,t){for(t&=~Vu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function vi(e){if(0!==(48&Tu))throw Error(o(327));if(Oi(),e===Lu&&0!==(e.expiredLanes&Ou)){var t=Ou,n=_i(e,t);0!==(Fu&Au)&&(n=_i(e,t=Ut(e,t)))}else n=_i(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(Tu|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(t=At(e))&&(n=_i(e,t))),1===n)throw n=Du,ki(e,0),mi(e,t),pi(e,Vl()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ti(e),pi(e,Vl()),null}function gi(e,t){var n=Tu;Tu|=1;try{return e(t)}finally{0===(Tu=n)&&($u(),Hl())}}function yi(e,t){var n=Tu;Tu&=-2,Tu|=8;try{return e(t)}finally{0===(Tu=n)&&($u(),Hl())}}function bi(e,t){il(Mu,Ru),Ru|=t,Fu|=t}function wi(){Ru=Mu.current,ul(Mu)}function ki(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==zu)for(n=zu.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ml();break;case 3:za(),ul(fl),ul(cl),Qa();break;case 5:Ra(r);break;case 4:za();break;case 13:case 19:ul(Ma);break;case 10:ea(r);break;case 23:case 24:wi()}n=n.return}Lu=e,zu=Wi(e.current,null),Ou=Ru=Fu=t,Iu=0,Du=null,Vu=Au=Uu=0}function Ei(e,t){for(;;){var n=zu;try{if(Jl(),qa.current=To,Ja){for(var r=Xa.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}Ja=!1}if(Ya=0,Za=Ga=Xa=null,eo=!1,Nu.current=null,null===n||null===n.return){Iu=1,Du=t,zu=null;break}e:{var a=e,o=n.return,u=n,i=t;if(t=Ou,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==i&&"object"===typeof i&&"function"===typeof i.then){var s=i;if(0===(2&u.mode)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!==(1&Ma.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(s),d.updateQueue=g}else v.add(s);if(0===(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var y=ua(-1,1);y.tag=2,ia(u,y)}u.lanes|=1;break e}i=void 0,u=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new iu,i=new Set,b.set(s,i)):void 0===(i=b.get(s))&&(i=new Set,b.set(s,i)),!i.has(u)){i.add(u);var w=Ui.bind(null,a,s,u);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);i=Error((q(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Iu&&(Iu=2),i=ou(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,t&=-t,d.lanes|=t,sa(d,su(0,a,t));break e;case 1:a=i;var k=d.type,E=d.stateNode;if(0===(64&d.flags)&&("function"===typeof k.getDerivedStateFromError||null!==E&&"function"===typeof E.componentDidCatch&&(null===Yu||!Yu.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,sa(d,cu(d,a,t));break e}}d=d.return}while(null!==d)}Ni(n)}catch(S){t=S,zu===n&&null!==n&&(zu=n=n.return);continue}break}}function Si(){var e=Pu.current;return Pu.current=To,null===e?To:e}function _i(e,t){var n=Tu;Tu|=16;var r=Si();for(Lu===e&&Ou===t||ki(e,t);;)try{xi();break}catch(l){Ei(e,l)}if(Jl(),Tu=n,Pu.current=r,null!==zu)throw Error(o(261));return Lu=null,Ou=0,Iu}function xi(){for(;null!==zu;)Pi(zu)}function Ci(){for(;null!==zu&&!xl();)Pi(zu)}function Pi(e){var t=Hu(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?Ni(e):zu=t,Nu.current=null}function Ni(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=lu(n,t,Ru)))return void(zu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ru)||0===(4&n.mode)){for(var r=0,l=n.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=au(t)))return n.flags&=2047,void(zu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(zu=t);zu=t=e}while(null!==t);0===Iu&&(Iu=5)}function Ti(e){var t=jl();return Wl(99,Li.bind(null,e,t)),null}function Li(e,t){do{Oi()}while(null!==Gu);if(0!==(48&Tu))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,l=r,a=e.pendingLanes&~l;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=l,e.mutableReadLanes&=l,e.entangledLanes&=l,l=e.entanglements;for(var u=e.eventTimes,i=e.expirationTimes;0<a;){var s=31-$t(a),c=1<<s;l[s]=0,u[s]=-1,i[s]=-1,a&=~c}if(null!==ti&&0===(24&r)&&ti.has(e)&&ti.delete(e),e===Lu&&(zu=Lu=null,Ou=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(l=Tu,Tu|=32,Nu.current=null,Ur=Yt,hr(u=pr())){if("selectionStart"in u)i={start:u.selectionStart,end:u.selectionEnd};else e:if(i=(i=u.ownerDocument)&&i.defaultView||window,(c=i.getSelection&&i.getSelection())&&0!==c.rangeCount){i=c.anchorNode,a=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{i.nodeType,s.nodeType}catch(C){i=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=u,g=null;t:for(;;){for(var y;v!==i||0!==a&&3!==v.nodeType||(d=f+a),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===u)break t;if(g===i&&++h===a&&(d=f),g===s&&++m===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}i=-1===d||-1===p?null:{start:d,end:p}}else i=null;i=i||{start:0,end:0}}else i=null;Ar={focusedElem:u,selectionRange:i},Yt=!1,ui=null,ii=!1,Qu=r;do{try{zi()}catch(C){if(null===Qu)throw Error(o(330));Fi(Qu,C),Qu=Qu.nextEffect}}while(null!==Qu);ui=null,Qu=r;do{try{for(u=e;null!==Qu;){var b=Qu.flags;if(16&b&&ye(Qu.stateNode,""),128&b){var w=Qu.alternate;if(null!==w){var k=w.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(1038&b){case 2:bu(Qu),Qu.flags&=-3;break;case 6:bu(Qu),Qu.flags&=-3,Su(Qu.alternate,Qu);break;case 1024:Qu.flags&=-1025;break;case 1028:Qu.flags&=-1025,Su(Qu.alternate,Qu);break;case 4:Su(Qu.alternate,Qu);break;case 8:Eu(u,i=Qu);var E=i.alternate;gu(i),null!==E&&gu(E)}Qu=Qu.nextEffect}}catch(C){if(null===Qu)throw Error(o(330));Fi(Qu,C),Qu=Qu.nextEffect}}while(null!==Qu);if(k=Ar,w=pr(),b=k.focusedElem,u=k.selectionRange,w!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==u&&hr(b)&&(w=u.start,void 0===(k=u.end)&&(k=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(k,b.value.length)):(k=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),i=b.textContent.length,E=Math.min(u.start,i),u=void 0===u.end?E:Math.min(u.end,i),!k.extend&&E>u&&(i=u,u=E,E=i),i=fr(b,E),a=fr(b,u),i&&a&&(1!==k.rangeCount||k.anchorNode!==i.node||k.anchorOffset!==i.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((w=w.createRange()).setStart(i.node,i.offset),k.removeAllRanges(),E>u?(k.addRange(w),k.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(k=w[b]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Yt=!!Ur,Ar=Ur=null,e.current=n,Qu=r;do{try{for(b=e;null!==Qu;){var S=Qu.flags;if(36&S&&hu(b,Qu.alternate,Qu),128&S){w=void 0;var _=Qu.ref;if(null!==_){var x=Qu.stateNode;switch(Qu.tag){case 5:w=x;break;default:w=x}"function"===typeof _?_(w):_.current=w}}Qu=Qu.nextEffect}}catch(C){if(null===Qu)throw Error(o(330));Fi(Qu,C),Qu=Qu.nextEffect}}while(null!==Qu);Qu=null,Il(),Tu=l}else e.current=n;if(Xu)Xu=!1,Gu=e,Zu=t;else for(Qu=r;null!==Qu;)t=Qu.nextEffect,Qu.nextEffect=null,8&Qu.flags&&((S=Qu).sibling=null,S.stateNode=null),Qu=t;if(0===(r=e.pendingLanes)&&(Yu=null),1===r?e===ri?ni++:(ni=0,ri=e):ni=0,n=n.stateNode,kl&&"function"===typeof kl.onCommitFiberRoot)try{kl.onCommitFiberRoot(wl,n,void 0,64===(64&n.current.flags))}catch(C){}if(pi(e,Vl()),qu)throw qu=!1,e=Ku,Ku=null,e;return 0!==(8&Tu)||Hl(),null}function zi(){for(;null!==Qu;){var e=Qu.alternate;ii||null===ui||(0!==(8&Qu.flags)?et(Qu,ui)&&(ii=!0):13===Qu.tag&&xu(e,Qu)&&et(Qu,ui)&&(ii=!0));var t=Qu.flags;0!==(256&t)&&pu(e,Qu),0===(512&t)||Xu||(Xu=!0,$l(97,(function(){return Oi(),null}))),Qu=Qu.nextEffect}}function Oi(){if(90!==Zu){var e=97<Zu?97:Zu;return Zu=90,Wl(e,Ii)}return!1}function Ri(e,t){Ju.push(t,e),Xu||(Xu=!0,$l(97,(function(){return Oi(),null})))}function Mi(e,t){ei.push(t,e),Xu||(Xu=!0,$l(97,(function(){return Oi(),null})))}function Ii(){if(null===Gu)return!1;var e=Gu;if(Gu=null,0!==(48&Tu))throw Error(o(331));var t=Tu;Tu|=32;var n=ei;ei=[];for(var r=0;r<n.length;r+=2){var l=n[r],a=n[r+1],u=l.destroy;if(l.destroy=void 0,"function"===typeof u)try{u()}catch(s){if(null===a)throw Error(o(330));Fi(a,s)}}for(n=Ju,Ju=[],r=0;r<n.length;r+=2){l=n[r],a=n[r+1];try{var i=l.create;l.destroy=i()}catch(s){if(null===a)throw Error(o(330));Fi(a,s)}}for(i=e.current.firstEffect;null!==i;)e=i.nextEffect,i.nextEffect=null,8&i.flags&&(i.sibling=null,i.stateNode=null),i=e;return Tu=t,Hl(),!0}function Di(e,t,n){ia(e,t=su(0,t=ou(n,t),1)),t=si(),null!==(e=di(e,1))&&(Wt(e,1,t),pi(e,t))}function Fi(e,t){if(3===e.tag)Di(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Di(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Yu||!Yu.has(r))){var l=cu(n,e=ou(t,e),1);if(ia(n,l),l=si(),null!==(n=di(n,1)))Wt(n,1,l),pi(n,l);else if("function"===typeof r.componentDidCatch&&(null===Yu||!Yu.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Ui(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=si(),e.pingedLanes|=e.suspendedLanes&n,Lu===e&&(Ou&n)===n&&(4===Iu||3===Iu&&(62914560&Ou)===Ou&&500>Vl()-Bu?ki(e,0):Vu|=n),pi(e,t)}function Ai(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===jl()?1:2:(0===ai&&(ai=Fu),0===(t=jt(62914560&~ai))&&(t=4194304))),n=si(),null!==(e=di(e,t))&&(Wt(e,t,n),pi(e,n))}function Vi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(e,t,n,r){return new Vi(e,t,n,r)}function Bi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wi(e,t){var n=e.alternate;return null===n?((n=ji(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $i(e,t,n,r,l,a){var u=2;if(r=e,"function"===typeof e)Bi(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case _:return Hi(n.children,l,a,t);case D:u=8,l|=16;break;case x:u=8,l|=1;break;case C:return(e=ji(12,n,t,8|l)).elementType=C,e.type=C,e.lanes=a,e;case L:return(e=ji(13,n,t,l)).type=L,e.elementType=L,e.lanes=a,e;case z:return(e=ji(19,n,t,l)).elementType=z,e.lanes=a,e;case F:return Qi(n,l,a,t);case U:return(e=ji(24,n,t,l)).elementType=U,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:u=10;break e;case N:u=9;break e;case T:u=11;break e;case O:u=14;break e;case R:u=16,r=null;break e;case M:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=ji(u,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function Hi(e,t,n,r){return(e=ji(7,e,r,t)).lanes=n,e}function Qi(e,t,n,r){return(e=ji(23,e,r,t)).elementType=F,e.lanes=n,e}function qi(e,t,n){return(e=ji(6,e,null,t)).lanes=n,e}function Ki(e,t,n){return(t=ji(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yi(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Xi(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Gi(e,t,n,r){var l=t.current,a=si(),u=ci(l);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break t;case 1:if(hl(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break t}}i=i.return}while(null!==i);throw Error(o(171))}if(1===n.tag){var s=n.type;if(hl(s)){n=gl(n,s,i);break e}}n=i}else n=sl;return null===t.context?t.context=n:t.pendingContext=n,(t=ua(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ia(l,t),fi(l,u,a),u}function Zi(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ji(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function es(e,t){Ji(e,t),(e=e.alternate)&&Ji(e,t)}function ts(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yi(e,t,null!=n&&!0===n.hydrate),t=ji(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,aa(t),e[Gr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var l=(t=r[e])._getVersion;l=l(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l)}this._internalRoot=n}function ns(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rs(e,t,n,r,l){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof l){var u=l;l=function(){var e=Zi(o);u.call(e)}}Gi(t,o,e,l)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ts(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof l){var i=l;l=function(){var e=Zi(o);i.call(e)}}yi((function(){Gi(t,o,e,l)}))}return Zi(o)}function ls(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ns(t))throw Error(o(200));return Xi(e,t,null,n)}Hu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fl.current)Mo=!0;else{if(0===(n&r)){switch(Mo=!1,t.tag){case 3:$o(t),$a();break;case 5:Oa(t);break;case 1:hl(t.type)&&yl(t);break;case 4:La(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var l=t.type._context;il(Yl,l._currentValue),l._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Yo(e,t,n):(il(Ma,1&Ma.current),null!==(t=nu(e,t,n))?t.sibling:null);il(Ma,1&Ma.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return tu(e,t,n);t.flags|=64}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),il(Ma,Ma.current),r)break;return null;case 23:case 24:return t.lanes=0,Ao(e,t,n)}return nu(e,t,n)}Mo=0!==(16384&e.flags)}else Mo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=pl(t,cl.current),na(t,n),l=ro(null,t,r,e,l,n),t.flags|=1,"object"===typeof l&&null!==l&&"function"===typeof l.render&&void 0===l.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hl(r)){var a=!0;yl(t)}else a=!1;t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,aa(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&pa(t,r,u,e),l.updater=ha,t.stateNode=l,l._reactInternals=t,ya(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Io(null,t,l,n),t=t.child;return t;case 16:l=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=(a=l._init)(l._payload),t.type=l,a=t.tag=function(e){if("function"===typeof e)return Bi(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===O)return 14}return 2}(l),e=Kl(l,e),a){case 0:t=jo(null,t,l,e,n);break e;case 1:t=Bo(null,t,l,e,n);break e;case 11:t=Do(null,t,l,e,n);break e;case 14:t=Fo(null,t,l,Kl(l.type,e),r,n);break e}throw Error(o(306,l,""))}return t;case 0:return r=t.type,l=t.pendingProps,jo(e,t,r,l=t.elementType===r?l:Kl(r,l),n);case 1:return r=t.type,l=t.pendingProps,Bo(e,t,r,l=t.elementType===r?l:Kl(r,l),n);case 3:if($o(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,l=null!==(l=t.memoizedState)?l.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===l)$a(),t=nu(e,t,n);else{if((a=(l=t.stateNode).hydrate)&&(Fa=Hr(t.stateNode.containerInfo.firstChild),Da=t,a=Ua=!0),a){if(null!=(e=l.mutableSourceEagerHydrationData))for(l=0;l<e.length;l+=2)(a=e[l])._workInProgressVersionPrimary=e[l+1],Ha.push(a);for(n=_a(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),$a();t=t.child}return t;case 5:return Oa(t),null===e&&ja(t),r=t.type,l=t.pendingProps,a=null!==e?e.memoizedProps:null,u=l.children,jr(r,l)?u=null:null!==a&&jr(r,a)&&(t.flags|=16),Vo(e,t),Io(e,t,u,n),t.child;case 6:return null===e&&ja(t),null;case 13:return Yo(e,t,n);case 4:return La(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,Do(e,t,r,l=t.elementType===r?l:Kl(r,l),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,l=t.pendingProps,u=t.memoizedProps,a=l.value;var i=t.type._context;if(il(Yl,i._currentValue),i._currentValue=a,null!==u)if(i=u.value,0===(a=ur(i,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(i,a):1073741823))){if(u.children===l.children&&!fl.current){t=nu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){u=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===i.tag&&((c=ua(-1,n&-n)).tag=2,ia(i,c)),i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),ta(i.return,n),s.lanes|=n;break}c=c.next}}else u=10===i.tag&&i.type===t.type?null:i.child;if(null!==u)u.return=i;else for(u=i;null!==u;){if(u===t){u=null;break}if(null!==(i=u.sibling)){i.return=u.return,u=i;break}u=u.return}i=u}Io(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(l=ra(l,a.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return a=Kl(l=t.type,t.pendingProps),Fo(e,t,l,a=Kl(l.type,a),r,n);case 15:return Uo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Kl(r,l),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hl(r)?(e=!0,yl(t)):e=!1,na(t,n),va(t,r,l),ya(t,r,l,n),Wo(null,t,r,!0,e,n);case 19:return tu(e,t,n);case 23:case 24:return Ao(e,t,n)}throw Error(o(156,t.tag))},ts.prototype.render=function(e){Gi(e,this._internalRoot,null,null)},ts.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Gi(null,e,null,(function(){t[Gr]=null}))},tt=function(e){13===e.tag&&(fi(e,4,si()),es(e,4))},nt=function(e){13===e.tag&&(fi(e,67108864,si()),es(e,67108864))},rt=function(e){if(13===e.tag){var t=si(),n=ci(e);fi(e,n,t),es(e,n)}},lt=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=nl(r);if(!l)throw Error(o(90));G(r),ne(r,l)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Re=gi,Me=function(e,t,n,r,l){var a=Tu;Tu|=4;try{return Wl(98,e.bind(null,t,n,r,l))}finally{0===(Tu=a)&&($u(),Hl())}},Ie=function(){0===(49&Tu)&&(function(){if(null!==ti){var e=ti;ti=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pi(e,Vl())}))}Hl()}(),Oi())},De=function(e,t){var n=Tu;Tu|=2;try{return e(t)}finally{0===(Tu=n)&&($u(),Hl())}};var as={Events:[el,tl,nl,ze,Oe,Oi,{current:!1}]},os={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},us={bundleType:os.bundleType,version:os.version,rendererPackageName:os.rendererPackageName,rendererConfig:os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:os.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!is.isDisabled&&is.supportsFiber)try{wl=is.inject(us),kl=is}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=as,t.createPortal=ls,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Tu;if(0!==(48&n))return e(t);Tu|=1;try{if(e)return Wl(99,e.bind(null,t))}finally{Tu=n,Hl()}},t.hydrate=function(e,t,n){if(!ns(t))throw Error(o(200));return rs(null,e,t,!0,n)},t.render=function(e,t,n){if(!ns(t))throw Error(o(200));return rs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ns(e))throw Error(o(40));return!!e._reactRootContainer&&(yi((function(){rs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Gr]=null}))})),!0)},t.unstable_batchedUpdates=gi,t.unstable_createPortal=function(e,t){return ls(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ns(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return rs(e,t,n,!1,r)},t.version="17.0.2"},73935:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(64448)},75251:function(e,t,n){"use strict";n(96086);var r=n(67294),l=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;l=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!i.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:l,type:e,key:s,ref:c,props:a,_owner:o.current}}t.jsx=s,t.jsxs=s},72408:function(e,t,n){"use strict";var r=n(96086),l=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,u=60110,i=60112;t.Suspense=60113;var s=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;l=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),i=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},k=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,a={},o=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&!E.hasOwnProperty(r)&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return{$$typeof:l,type:e,key:o,ref:u,props:a,_owner:w.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===l}var x=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,r,o){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var i=!1;if(null===e)i=!0;else switch(u){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case a:i=!0}}if(i)return o=o(i=e),e=""===r?"."+C(i,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),P(o,t,n,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+C(u=e[s],s);i+=P(u,t,n,c,o)}else if("function"===typeof(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(u=e.next()).done;)i+=P(u=u.value,t,n,c=r+C(u,s++),o);else if("object"===u)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function N(e,t,n){if(null==e)return e;var r=[],l=0;return P(e,r,"","",(function(e){return t.call(n,e,l++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function z(){var e=L.current;if(null===e)throw Error(p(321));return e}var O={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var a=r({},e.props),o=e.key,u=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,i=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];a.children=s}return{$$typeof:l,type:e.type,key:o,ref:u,props:a,_owner:i}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="17.0.2"},67294:function(e,t,n){"use strict";e.exports=n(72408)},85893:function(e,t,n){"use strict";e.exports=n(75251)},60053:function(e,t){"use strict";var n,r,l,a;if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,i=u.now();t.unstable_now=function(){return u.now()-i}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(n){throw setTimeout(f,0),n}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},l=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?k.postMessage(null):(m=!1,v=null)}catch(n){throw k.postMessage(null),n}}else m=!1},n=function(e){v=e,m||(m=!0,k.postMessage(null))},r=function(e,n){g=d((function(){e(t.unstable_now())}),n)},l=function(){p(g),g=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,l=e[r];if(!(void 0!==l&&0<x(l,t)))break e;e[r]=t,e[n]=l,n=r}}function S(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,l=e.length;r<l;){var a=2*(r+1)-1,o=e[a],u=a+1,i=e[u];if(void 0!==o&&0>x(o,n))void 0!==i&&0>x(i,o)?(e[r]=i,e[u]=n,r=u):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==i&&0>x(i,n)))break e;e[r]=i,e[u]=n,r=u}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],P=[],N=1,T=null,L=3,z=!1,O=!1,R=!1;function M(e){for(var t=S(P);null!==t;){if(null===t.callback)_(P);else{if(!(t.startTime<=e))break;_(P),t.sortIndex=t.expirationTime,E(C,t)}t=S(P)}}function I(e){if(R=!1,M(e),!O)if(null!==S(C))O=!0,n(D);else{var t=S(P);null!==t&&r(I,t.startTime-e)}}function D(e,n){O=!1,R&&(R=!1,l()),z=!0;var a=L;try{for(M(n),T=S(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"===typeof o){T.callback=null,L=T.priorityLevel;var u=o(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?T.callback=u:T===S(C)&&_(C),M(n)}else _(C);T=S(C)}if(null!==T)var i=!0;else{var s=S(P);null!==s&&r(I,s.startTime-n),i=!1}return i}finally{T=null,L=a,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||z||(O=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,a,o){var u=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?u+o:u:o=u,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:N++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>u?(e.sortIndex=o,E(P,e),null===S(C)&&e===S(P)&&(R?l():R=!0,r(I,o-u))):(e.sortIndex=i,E(C,e),O||z||(O=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},63840:function(e,t,n){"use strict";e.exports=n(60053)}}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/main-80dde85f3cea1551bba1.js b/out/_next/static/chunks/main-80dde85f3cea1551bba1.js
new file mode 100644
index 0000000..9517806
--- /dev/null
+++ b/out/_next/static/chunks/main-80dde85f3cea1551bba1.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{60400:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))})},96792:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=null;return{mountedInstances:new Set,updateHead:function(t){var r=e=Promise.resolve().then((function(){if(r===e){e=null;var o={};t.forEach((function(e){"link"===e.type&&e.props["data-optimized-fonts"]&&!document.querySelector('style[data-href="'.concat(e.props["data-href"],'"]'))&&(e.props.href=e.props["data-href"],e.props["data-href"]=void 0);var t=o[e.type]||[];t.push(e),o[e.type]=t}));var a=o.title?o.title[0]:null,i="";if(a){var u=a.props.children;i="string"===typeof u?u:Array.isArray(u)?u.join(""):""}i!==document.title&&(document.title=i),["meta","base","link","style","script"].forEach((function(e){!function(e,t){var r=document.getElementsByTagName("head")[0],o=r.querySelector("meta[name=next-head-count]");0;for(var a=Number(o.content),i=[],u=0,c=o.previousElementSibling;u<a;u++,c=c.previousElementSibling)c.tagName.toLowerCase()===e&&i.push(c);var s=t.map(n).filter((function(e){for(var t=0,r=i.length;t<r;t++){if(i[t].isEqualNode(e))return i.splice(t,1),!1}return!0}));i.forEach((function(e){return e.parentNode.removeChild(e)})),s.forEach((function(e){return r.insertBefore(e,o)})),o.content=(a-i.length+s.length).toString()}(e,o[e]||[])}))}}))}}},t.DOMAttributeNames=void 0;var r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function n(e){var t=e.type,n=e.props,o=document.createElement(t);for(var a in n)if(n.hasOwnProperty(a)&&"children"!==a&&"dangerouslySetInnerHTML"!==a&&void 0!==n[a]){var i=r[a]||a.toLowerCase();"script"!==t||"async"!==i&&"defer"!==i&&"noModule"!==i?o.setAttribute(i,n[a]):o[i]=!!n[a]}var u=n.children,c=n.dangerouslySetInnerHTML;return c?o.innerHTML=c.__html||"":u&&(o.textContent="string"===typeof u?u:Array.isArray(u)?u.join(""):""),o}t.DOMAttributeNames=r},20310:function(e,t,r){"use strict";var n=r(809),o=r(2553),a=r(62012),i=r(9807),u=r(27690),c=r(99828),s=r(53848);function l(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 r,n=c(e);if(t){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.initNext=function(){return ue.apply(this,arguments)},t.render=se,t.renderError=le,t.emitter=t.version=t.router=void 0,r(60400);var f=M(r(67294)),p=M(r(73935)),d=r(80699),h=M(r(21436)),v=r(3751),m=r(21063),y=r(26234),g=r(39824),b=r(62594),_=r(99664),x=r(86579),w=M(r(96792)),P=M(r(47145)),S=M(r(59934)),E=r(48475),O=r(34651);function k(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,o)}function C(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){k(a,n,o,i,u,"next",e)}function u(e){k(a,n,o,i,u,"throw",e)}i(void 0)}))}}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e){return e&&e.__esModule?e:{default:e}}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){R(e,t,r[t])}))}return e}var j=JSON.parse(document.getElementById("__NEXT_DATA__").textContent);window.__NEXT_DATA__=j;t.version="11.1.4";var A=function(e){return[].slice.call(e)},T=j.props,I=j.err,N=j.page,D=j.query,F=j.buildId,H=j.assetPrefix,U=j.runtimeConfig,q=j.dynamicIds,B=j.isFallback,W=j.locale,G=j.locales,z=j.domainLocales,V=j.isPreview,X=j.defaultLocale,$=H||"";r.p="".concat($,"/_next/"),b.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:U||{}});var Q=_.getURL();(m.hasBasePath(Q)&&(Q=m.delBasePath(Q)),j.scriptLoader)&&(0,r(37926).initScriptLoader)(j.scriptLoader);var K=new P.default(F,$),Y=function(e){var t=s(e,2),r=t[0],n=t[1];return K.routeLoader.onEntrypoint(r,n)};window.__NEXT_P&&window.__NEXT_P.map((function(e){return setTimeout((function(){return Y(e)}),0)})),window.__NEXT_P=[],window.__NEXT_P.push=Y;var J,Z,ee,te,re=w.default(),ne=document.getElementById("__next");t.router=Z,re.getIsSsr=function(){return Z.isSsr};var oe,ae=function(e){i(r,e);var t=l(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"componentDidCatch",value:function(e,t){this.props.fn(e,t)}},{key:"componentDidMount",value:function(){this.scrollToHash(),Z.isSsr&&"/404"!==N&&"/_error"!==N&&(B||j.nextExport&&(y.isDynamicRoute(Z.pathname)||location.search)||T&&T.__N_SSG&&location.search)&&Z.replace(Z.pathname+"?"+String(g.assign(g.urlQueryToSearchParams(Z.query),new URLSearchParams(location.search))),Q,{_h:1,shallow:!B})}},{key:"componentDidUpdate",value:function(){this.scrollToHash()}},{key:"scrollToHash",value:function(){var e=location.hash;if(e=e&&e.substring(1)){var t=document.getElementById(e);t&&setTimeout((function(){return t.scrollIntoView()}),0)}}},{key:"render",value:function(){return this.props.children}}]),r}(f.default.Component),ie=h.default();function ue(){return(ue=C(n.mark((function e(){var r,o,a,i,u,c,s=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.length>0&&void 0!==s[0]?s[0]:{},r=I,e.prev=3,e.next=6,K.routeLoader.whenEntrypoint("/_app");case 6:if(!("error"in(o=e.sent))){e.next=9;break}throw o.error;case 9:a=o.component,i=o.exports,ee=a,i&&i.reportWebVitals&&(te=function(e){var t,r=e.id,n=e.name,o=e.startTime,a=e.value,u=e.duration,c=e.entryType,s=e.entries,l="".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12);s&&s.length&&(t=s[0].startTime),i.reportWebVitals({id:r||l,name:n,startTime:o||t,value:null==a?u:a,label:"mark"===c||"measure"===c?"custom":"web-vital"})}),e.next=16;break;case 16:return e.next=18,K.routeLoader.whenEntrypoint(N);case 18:e.t0=e.sent;case 19:if(!("error"in(u=e.t0))){e.next=22;break}throw u.error;case 22:oe=u.component,e.next=27;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(3),r=e.t1;case 32:if(!window.__NEXT_PRELOADREADY){e.next=36;break}return e.next=36,window.__NEXT_PRELOADREADY(q);case 36:return t.router=Z=O.createRouter(N,D,Q,{initialProps:T,pageLoader:K,App:ee,Component:oe,wrapApp:ye,err:r,isFallback:Boolean(B),subscription:function(e,t,r){return se(Object.assign({},e,{App:t,scroll:r}))},locale:W,locales:G,defaultLocale:X,domainLocales:z,isPreview:V}),se(c={App:ee,initial:!0,Component:oe,props:T,err:r}),e.abrupt("return",ie);case 43:return e.abrupt("return",{emitter:ie,renderCtx:c});case 44:case"end":return e.stop()}}),e,null,[[3,29]])})))).apply(this,arguments)}function ce(){return(ce=C(n.mark((function e(t){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,le(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,ge(t);case 7:e.next=16;break;case 9:if(e.prev=9,e.t0=e.catch(4),!e.t0.cancelled){e.next=13;break}throw e.t0;case 13:return e.next=16,le(L({},t,{err:e.t0}));case 16:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function se(e){return ce.apply(this,arguments)}function le(e){var t=e.App,n=e.err;return console.error(n),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),K.loadPage("/_error").then((function(e){var t=e.page,n=e.styleSheets;return(null===me||void 0===me?void 0:me.Component)===t?Promise.resolve().then((function(){return function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(3359))})).then((function(e){return{ErrorComponent:e.default,styleSheets:[]}})):{ErrorComponent:t,styleSheets:n}})).then((function(r){var o=r.ErrorComponent,a=r.styleSheets,i=ye(t),u={Component:o,AppTree:i,router:Z,ctx:{err:n,pathname:N,query:D,asPath:Q,AppTree:i}};return Promise.resolve(e.props?e.props:_.loadGetInitialProps(t,u)).then((function(t){return ge(L({},e,{err:n,Component:o,styleSheets:a,props:t}))}))}))}t.emitter=ie;var fe=!0;function pe(){_.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),te&&performance.getEntriesByName("Next.js-hydration").forEach(te),he())}function de(){if(_.ST){performance.mark("afterRender");var e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),te&&(performance.getEntriesByName("Next.js-render").forEach(te),performance.getEntriesByName("Next.js-route-change-to-render").forEach(te)),he(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function he(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function ve(e){var t=e.children;return f.default.createElement(ae,{fn:function(e){return le({App:ee,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},f.default.createElement(v.RouterContext.Provider,{value:O.makePublicRouterInstance(Z)},f.default.createElement(d.HeadManagerContext.Provider,{value:re},t)))}var me,ye=function(e){return function(t){var r=L({},t,{Component:oe,err:I,router:Z});return f.default.createElement(ve,null,f.default.createElement(e,Object.assign({},r)))}};function ge(e){var t=e.App,r=e.Component,n=e.props,o=e.err,a="initial"in e?void 0:e.styleSheets;r=r||me.Component;var i=L({},n=n||me.props,{Component:r,err:o,router:Z});me=i;var u,c=!1,s=new Promise((function(e,t){J&&J(),u=function(){J=null,e()},J=function(){c=!0,J=null;var e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));function l(){u()}!function(){if(!a)return!1;var e=A(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((function(e){return e.getAttribute("data-n-href")}))),r=document.querySelector("noscript[data-n-css]"),n=null===r||void 0===r?void 0:r.getAttribute("data-n-css");a.forEach((function(e){var r=e.href,o=e.text;if(!t.has(r)){var a=document.createElement("style");a.setAttribute("data-n-href",r),a.setAttribute("media","x"),n&&a.setAttribute("nonce",n),document.head.appendChild(a),a.appendChild(document.createTextNode(o))}}))}();var d=f.default.createElement(f.default.Fragment,null,f.default.createElement(_e,{callback:function(){if(a&&!c){for(var t=new Set(a.map((function(e){return e.href}))),r=A(document.querySelectorAll("style[data-n-href]")),n=r.map((function(e){return e.getAttribute("data-n-href")})),o=0;o<n.length;++o)t.has(n[o])?r[o].removeAttribute("media"):r[o].setAttribute("media","x");var i=document.querySelector("noscript[data-n-css]");i&&a.forEach((function(e){var t=e.href,r=document.querySelector('style[data-n-href="'.concat(t,'"]'));r&&(i.parentNode.insertBefore(r,i.nextSibling),i=r)})),A(document.querySelectorAll("link[data-n-p]")).forEach((function(e){e.parentNode.removeChild(e)})),getComputedStyle(document.body,"height")}e.scroll&&window.scrollTo(e.scroll.x,e.scroll.y)}}),f.default.createElement(ve,null,f.default.createElement(t,Object.assign({},i)),f.default.createElement(x.Portal,{type:"next-route-announcer"},f.default.createElement(E.RouteAnnouncer,null))));return function(e,t){_.ST&&performance.mark("beforeRender");var r=t(fe?pe:de);fe?(p.default.hydrate(r,e),fe=!1):p.default.render(r,e)}(ne,(function(e){return f.default.createElement(be,{callbacks:[e,l]},d)})),s}function be(e){var t=e.callbacks,r=e.children;return f.default.useLayoutEffect((function(){return t.forEach((function(e){return e()}))}),[t]),f.default.useEffect((function(){S.default(te)}),[]),r}function _e(e){var t=e.callback;return f.default.useLayoutEffect((function(){return t()}),[t]),null}},20457:function(e,t,r){"use strict";var n=r(20310);window.next={version:n.version,get router(){return n.router},emitter:n.emitter,render:n.render,renderError:n.renderError},n.initNext().catch(console.error)},15965:function(e,t){"use strict";function r(e){return e.endsWith("/")&&"/"!==e?e.slice(0,-1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.removePathTrailingSlash=r,t.normalizePathTrailingSlash=void 0;var n=r;t.normalizePathTrailingSlash=n},47145:function(e,t,r){"use strict";var n=r(2553),o=r(62012);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(21063),u=(a=r(87055))&&a.__esModule?a:{default:a},c=r(26234),s=r(57658),l=r(15965),f=r(31392);var p=function(){function e(t,r){n(this,e),this.routeLoader=f.createRouteLoader(r),this.buildId=t,this.assetPrefix=r,this.promisedSsgManifest=new Promise((function(e){window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=function(){e(window.__SSG_MANIFEST)}}))}return o(e,[{key:"getPageList",value:function(){return f.getClientBuildManifest().then((function(e){return e.sortedPages}))}},{key:"getDataHref",value:function(e,t,r,n){var o=this,a=s.parseRelativeUrl(e),f=a.pathname,p=a.query,d=a.search,h=s.parseRelativeUrl(t).pathname,v=function(e){if("/"!==e[0])throw new Error('Route name should start with a "/", got "'.concat(e,'"'));return"/"===e?e:e.replace(/\/$/,"")}(f),m=function(e){var t=u.default(l.removePathTrailingSlash(i.addLocale(e,n)),".json");return i.addBasePath("/_next/data/".concat(o.buildId).concat(t).concat(r?"":d))},y=c.isDynamicRoute(v),g=y?i.interpolateAs(f,h,p).result:"";return y?g&&m(g):m(v)}},{key:"_isSsg",value:function(e){return this.promisedSsgManifest.then((function(t){return t.has(e)}))}},{key:"loadPage",value:function(e){return this.routeLoader.loadRoute(e).then((function(e){if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map((function(e){return{href:e.href,text:e.content}}))};throw e.error}))}},{key:"prefetch",value:function(e){return this.routeLoader.prefetch(e)}}]),e}();t.default=p},59934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=r(38745),a=(location.href,!1);function i(e){n&&n(e)}t.default=function(e){n=e,a||(a=!0,o.getCLS(i),o.getFID(i),o.getFCP(i),o.getLCP(i),o.getTTFB(i))}},86579:function(e,t,r){"use strict";var n=r(53848);Object.defineProperty(t,"__esModule",{value:!0}),t.Portal=void 0;var o,a=(o=r(67294))&&o.__esModule?o:{default:o},i=r(73935);t.Portal=function(e){var t=e.children,r=e.type,o=a.default.useRef(null),u=a.default.useState(),c=n(u,2)[1];return a.default.useEffect((function(){return o.current=document.createElement(r),document.body.appendChild(o.current),c({}),function(){o.current&&document.body.removeChild(o.current)}}),[r]),o.current?i.createPortal(t,o.current):null}},73447:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestIdleCallback=t.cancelIdleCallback=void 0;var r="undefined"!==typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};t.requestIdleCallback=r;var n="undefined"!==typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=n},48475:function(e,t,r){"use strict";var n=r(53848);Object.defineProperty(t,"__esModule",{value:!0}),t.RouteAnnouncer=u,t.default=void 0;var o,a=(o=r(67294))&&o.__esModule?o:{default:o},i=r(34651);function u(){var e=i.useRouter().asPath,t=a.default.useState(""),r=n(t,2),o=r[0],u=r[1],c=a.default.useRef(!1);return a.default.useEffect((function(){if(c.current){var t,r=document.querySelector("h1");r&&(t=r.innerText||r.textContent),t||(t=document.title?document.title:e),u(t)}else c.current=!0}),[e]),a.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},o)}var c=u;t.default=c},31392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=c,t.isAssetError=function(e){return e&&u in e},t.getClientBuildManifest=l,t.createRouteLoader=function(e){var t=new Map,r=new Map,n=new Map,u=new Map;function l(e){var t=r.get(e);return t||(document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(r.set(e,t=function(e,t){return new Promise((function(r,n){(t=document.createElement("script")).onload=r,t.onerror=function(){return n(c(new Error("Failed to load script: ".concat(e))))},t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)}))}(e)),t))}function p(e){var t=n.get(e);return t||(n.set(e,t=fetch(e).then((function(t){if(!t.ok)throw new Error("Failed to load stylesheet: ".concat(e));return t.text().then((function(t){return{href:e,content:t}}))})).catch((function(e){throw c(e)}))),t)}return{whenEntrypoint:function(e){return a(e,t)},onEntrypoint:function(e,r){Promise.resolve(r).then((function(e){return e()})).then((function(e){return{component:e&&e.default||e,exports:e}}),(function(e){return{error:e}})).then((function(r){var n=t.get(e);t.set(e,r),n&&"resolve"in n&&n.resolve(r)}))},loadRoute:function(r,n){var o=this;return a(r,u,(function(){return s(f(e,r).then((function(e){var n=e.scripts,o=e.css;return Promise.all([t.has(r)?[]:Promise.all(n.map(l)),Promise.all(o.map(p))])})).then((function(e){return o.whenEntrypoint(r).then((function(t){return{entrypoint:t,styles:e[1]}}))})),3800,c(new Error("Route did not complete loading: ".concat(r)))).then((function(e){var t=e.entrypoint,r=e.styles,n=Object.assign({styles:r},t);return"error"in t?t:n})).catch((function(e){if(n)throw e;return{error:e}}))}))},prefetch:function(t){var r,n=this;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():f(e,t).then((function(e){return Promise.all(i?e.scripts.map((function(e){return t=e,r="script",new Promise((function(e,o){if(document.querySelector('link[rel="prefetch"][href^="'.concat(t,'"]')))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=o,n.href=t,document.head.appendChild(n)}));var t,r,n})):[])})).then((function(){o.requestIdleCallback((function(){return n.loadRoute(t,!0).catch((function(){}))}))})).catch((function(){}))}}};(n=r(87055))&&n.__esModule;var n,o=r(73447);function a(e,t,r){var n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);var a=new Promise((function(e){n=e}));return t.set(e,o={resolve:n,future:a}),r?r().then((function(e){return n(e),e})):a}var i=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}();var u=Symbol("ASSET_LOAD_ERROR");function c(e){return Object.defineProperty(e,u,{})}function s(e,t,r){return new Promise((function(n,a){var i=!1;e.then((function(e){i=!0,n(e)})).catch(a),o.requestIdleCallback((function(){return setTimeout((function(){i||a(r)}),t)}))}))}function l(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):s(new Promise((function(e){var t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=function(){e(self.__BUILD_MANIFEST),t&&t()}})),3800,c(new Error("Failed to load client build manifest")))}function f(e,t){return l().then((function(r){if(!(t in r))throw c(new Error("Failed to lookup route: ".concat(t)));var n=r[t].map((function(t){return e+"/_next/"+encodeURI(t)}));return{scripts:n.filter((function(e){return e.endsWith(".js")})),css:n.filter((function(e){return e.endsWith(".css")}))}}))}},34651:function(e,t,r){"use strict";var n=r(41280);function o(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return s.default}}),t.useRouter=function(){return i.default.useContext(c.RouterContext)},t.createRouter=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f.router=n(u.default,t),f.readyCallbacks.forEach((function(e){return e()})),f.readyCallbacks=[],f.router},t.makePublicRouterInstance=function(e){var t,r=e,n={},a=o(p);try{for(a.s();!(t=a.n()).done;){var i=t.value;"object"!==typeof r[i]?n[i]=r[i]:n[i]=Object.assign(Array.isArray(r[i])?[]:{},r[i])}}catch(c){a.e(c)}finally{a.f()}return n.events=u.default.events,d.forEach((function(e){n[e]=function(){return r[e].apply(r,arguments)}})),n},t.default=void 0;var i=l(r(67294)),u=l(r(21063)),c=r(3751),s=l(r(47413));function l(e){return e&&e.__esModule?e:{default:e}}var f={router:null,readyCallbacks:[],ready:function(e){if(this.router)return e();this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!f.router){throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n')}return f.router}Object.defineProperty(f,"events",{get:function(){return u.default.events}}),p.forEach((function(e){Object.defineProperty(f,e,{get:function(){return h()[e]}})})),d.forEach((function(e){f[e]=function(){var t=h();return t[e].apply(t,arguments)}})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((function(e){f.ready((function(){u.default.events.on(e,(function(){var t="on".concat(e.charAt(0).toUpperCase()).concat(e.substring(1)),r=f;if(r[t])try{r[t].apply(r,arguments)}catch(n){console.error("Error when running the Router event: ".concat(t)),console.error("".concat(n.message,"\n").concat(n.stack))}}))}))}));var v=f;t.default=v},37926:function(e,t,r){"use strict";var n=r(53848);Object.defineProperty(t,"__esModule",{value:!0}),t.initScriptLoader=function(e){e.forEach(v)},t.default=void 0;var o=r(67294),a=r(80699),i=r(96792),u=r(73447);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=new Map,p=new Set,d=["onLoad","dangerouslySetInnerHTML","children","onError","strategy"],h=function(e){var t=e.src,r=e.id,o=e.onLoad,a=void 0===o?function(){}:o,u=e.dangerouslySetInnerHTML,c=e.children,s=void 0===c?"":c,l=e.strategy,h=void 0===l?"afterInteractive":l,v=e.onError,m=r||t;if(!m||!p.has(m)){if(f.has(t))return p.add(m),void f.get(t).then(a,v);var y=document.createElement("script"),g=new Promise((function(e,t){y.addEventListener("load",(function(t){e(),a&&a.call(this,t)})),y.addEventListener("error",(function(e){t(e)}))})).catch((function(e){v&&v(e)}));t&&f.set(t,g),p.add(m),u?y.innerHTML=u.__html||"":s?y.textContent="string"===typeof s?s:Array.isArray(s)?s.join(""):"":t&&(y.src=t);for(var b=0,_=Object.entries(e);b<_.length;b++){var x=n(_[b],2),w=x[0],P=x[1];if(void 0!==P&&!d.includes(w)){var S=i.DOMAttributeNames[w]||w.toLowerCase();y.setAttribute(S,P)}}y.setAttribute("data-nscript",h),document.body.appendChild(y)}};function v(e){var t=e.strategy,r=void 0===t?"afterInteractive":t;"afterInteractive"===r?h(e):"lazyOnload"===r&&window.addEventListener("load",(function(){u.requestIdleCallback((function(){return h(e)}))}))}var m=function(e){var t=e.src,r=void 0===t?"":t,n=e.onLoad,i=void 0===n?function(){}:n,c=(e.dangerouslySetInnerHTML,e.strategy),f=void 0===c?"afterInteractive":c,d=e.onError,v=l(e,["src","onLoad","dangerouslySetInnerHTML","strategy","onError"]),m=o.useContext(a.HeadManagerContext),y=m.updateScripts,g=m.scripts,b=m.getIsSsr;return o.useEffect((function(){"afterInteractive"===f?h(e):"lazyOnload"===f&&function(e){"complete"===document.readyState?u.requestIdleCallback((function(){return h(e)})):window.addEventListener("load",(function(){u.requestIdleCallback((function(){return h(e)}))}))}(e)}),[e,f]),"beforeInteractive"===f&&(y?(g.beforeInteractive=(g.beforeInteractive||[]).concat([s({src:r,onLoad:i,onError:d},v)]),y(g)):b&&b()?p.add(v.id||r):b&&!b()&&h(e)),null};t.default=m},47413:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return o.default.createElement(e,Object.assign({router:a.useRouter()},t))}t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,!1;return t};var n,o=(n=r(67294))&&n.__esModule?n:{default:n},a=r(34651)},3359:function(e,t,r){"use strict";var n=r(2553),o=r(62012),a=r(9807),i=r(27690),u=r(99828);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 r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=f(r(67294)),l=f(r(70639));function f(e){return e&&e.__esModule?e:{default:e}}var p={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){var t=e.res,r=e.err;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}var h=function(e){a(r,e);var t=c(r);function r(){return n(this,r),t.apply(this,arguments)}return o(r,[{key:"render",value:function(){var e=this.props.statusCode,t=this.props.title||p[e]||"An unexpected error has occurred";return s.default.createElement("div",{style:v.error},s.default.createElement(l.default,null,s.default.createElement("title",null,e?"".concat(e,": ").concat(t):"Application error: a client-side exception has occurred")),s.default.createElement("div",null,s.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body { margin: 0 }"}}),e?s.default.createElement("h1",{style:v.h1},e):null,s.default.createElement("div",{style:v.desc},s.default.createElement("h2",{style:v.h2},this.props.title||e?t:s.default.createElement(s.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}]),r}(s.default.Component);h.displayName="ErrorPage",h.getInitialProps=d,h.origGetInitialProps=d,t.default=h;var v={error:{color:"#000",background:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",borderRight:"1px solid rgba(0, 0, 0,.3)",margin:0,marginRight:"20px",padding:"10px 23px 10px 0",fontSize:"24px",fontWeight:500,verticalAlign:"top"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"inherit",margin:0,padding:0}}},96046:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var o=((n=r(67294))&&n.__esModule?n:{default:n}).default.createContext({});t.AmpStateContext=o},43237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=i,t.useAmp=function(){return i(o.default.useContext(a.AmpStateContext))};var n,o=(n=r(67294))&&n.__esModule?n:{default:n},a=r(96046);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=void 0!==t&&t,n=e.hybrid,o=void 0!==n&&n,a=e.hasQuery,i=void 0!==a&&a;return r||o&&i}},80699:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;var o=((n=r(67294))&&n.__esModule?n:{default:n}).default.createContext({});t.HeadManagerContext=o},70639:function(e,t,r){"use strict";var n=r(61682);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=f,t.default=void 0;var a,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(67294)),u=(a=r(94766))&&a.__esModule?a:{default:a},c=r(96046),s=r(80699),l=r(43237);function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===i.default.Fragment?e.concat(i.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 d=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce((function(e,t){var r=i.default.Children.toArray(t.props.children);return e.concat(r)}),[]).reduce(p,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,r=new Set,n={};return function(o){var a=!0,i=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){i=!0;var u=o.key.slice(o.key.indexOf("$")+1);e.has(u)?a=!1:e.add(u)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(var c=0,s=d.length;c<s;c++){var l=d[c];if(o.props.hasOwnProperty(l))if("charSet"===l)r.has(l)?a=!1:r.add(l);else{var f=o.props[l],p=n[l]||new Set;"name"===l&&i||!p.has(f)?(p.add(f),n[l]=p):a=!1}}}return a}}()).reverse().map((function(e,r){var a=e.key||r;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 u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.props||{});return u["data-href"]=u.href,u.href=void 0,u["data-optimized-fonts"]=!0,i.default.cloneElement(e,u)}return i.default.cloneElement(e,{key:a})}))}var v=function(e){var t=e.children,r=i.useContext(c.AmpStateContext),n=i.useContext(s.HeadManagerContext);return i.default.createElement(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:l.isInAmpMode(r)},t)};t.default=v},88820:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){var r,n=e.split("/");return(t||[]).some((function(t){return n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)})),{pathname:e,detectedLocale:r}}},21436:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=Object.create(null);return{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];(e[t]||[]).slice().map((function(e){e.apply(void 0,n)}))}}}},3751:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;var o=((n=r(67294))&&n.__esModule?n:{default:n}).default.createContext(null);t.RouterContext=o},21063:function(e,t,r){"use strict";var n=r(809),o=r(38561),a=r(2553),i=r(62012),u=r(53848);Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,r,n){return!1},t.addLocale=x,t.delLocale=w,t.hasBasePath=S,t.addBasePath=E,t.delBasePath=O,t.isLocalURL=k,t.interpolateAs=C,t.resolveHref=M,t.default=void 0;var c=r(15965),s=r(31392),l=r(74522),f=(r(88820),b(r(21436))),p=r(99664),d=r(26234),h=r(57658),v=r(39824),m=b(r(72431)),y=r(73990),g=r(66979);function b(e){return e&&e.__esModule?e:{default:e}}function _(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function x(e,t,r){return e}function w(e,t){return e}function P(e){var t=e.indexOf("?"),r=e.indexOf("#");return(t>-1||r>-1)&&(e=e.substring(0,t>-1?t:r)),e}function S(e){return""===(e=P(e))||e.startsWith("/")}function E(e){return function(e,t){return t&&e.startsWith("/")?"/"===e?c.normalizePathTrailingSlash(t):"".concat(t).concat("/"===P(e)?e.substring(1):e):e}(e,"")}function O(e){return(e=e.slice("".length)).startsWith("/")||(e="/".concat(e)),e}function k(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{var t=p.getLocationOrigin(),r=new URL(e,t);return r.origin===t&&S(r.pathname)}catch(n){return!1}}function C(e,t,r){var n="",o=g.getRouteRegex(e),a=o.groups,i=(t!==e?y.getRouteMatcher(o)(t):"")||r;n=e;var u=Object.keys(a);return u.every((function(e){var t=i[e]||"",r=a[e],o=r.repeat,u=r.optional,c="[".concat(o?"...":"").concat(e,"]");return u&&(c="".concat(t?"":"/","[").concat(c,"]")),o&&!Array.isArray(t)&&(t=[t]),(u||e in i)&&(n=n.replace(c,o?t.map((function(e){return encodeURIComponent(e)})).join("/"):encodeURIComponent(t))||"/")}))||(n=""),{params:u,result:n}}function R(e,t){var r={};return Object.keys(e).forEach((function(n){t.includes(n)||(r[n]=e[n])})),r}function M(e,t,r){var n,o="string"===typeof t?t:p.formatWithValidation(t),a=o.match(/^[a-zA-Z]{1,}:\/\//),i=a?o.substr(a[0].length):o;if((i.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href passed to next/router: ".concat(o,", repeated forward-slashes (//) or backslashes \\ are not valid in the href"));var u=p.normalizeRepeatedSlashes(i);o=(a?a[0]:"")+u}if(!k(o))return r?[o]:o;try{n=new URL(o.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(b){n=new URL("/","http://n")}try{var s=new URL(o,n);s.pathname=c.normalizePathTrailingSlash(s.pathname);var l="";if(d.isDynamicRoute(s.pathname)&&s.searchParams&&r){var f=v.searchParamsToUrlQuery(s.searchParams),h=C(s.pathname,s.pathname,f),m=h.result,y=h.params;m&&(l=p.formatWithValidation({pathname:m,hash:s.hash,query:R(f,y)}))}var g=s.origin===n.origin?s.href.slice(s.origin.length):s.href;return r?[g,l||g]:g}catch(b){return r?[o]:o}}function L(e){var t=p.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function j(e,t,r){var n=M(e,t,!0),o=u(n,2),a=o[0],i=o[1],c=p.getLocationOrigin(),s=a.startsWith(c),l=i&&i.startsWith(c);a=L(a),i=i?L(i):i;var f=s?a:E(a),d=r?L(M(e,r)):i||a;return{url:f,as:l?d:E(d)}}function A(e,t){var r=c.removePathTrailingSlash(l.denormalizePagePath(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some((function(t){if(d.isDynamicRoute(t)&&g.getRouteRegex(t).re.test(r))return e=t,!0})),c.removePathTrailingSlash(e))}var T=Symbol("SSG_DATA_NOT_FOUND");function I(e,t){return fetch(e,{credentials:"same-origin"}).then((function(r){if(!r.ok){if(t>1&&r.status>=500)return I(e,t-1);if(404===r.status)return r.json().then((function(e){if(e.notFound)return{notFound:T};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return r.json()}))}function N(e,t){return I(e,t?3:1).catch((function(e){throw t||s.markAssetError(e),e}))}var D=function(){function e(t,r,n,o){var i=this,u=o.initialProps,s=o.pageLoader,l=o.App,f=o.wrapApp,v=o.Component,m=o.err,y=o.subscription,g=o.isFallback,b=o.locale,_=(o.locales,o.defaultLocale,o.domainLocales,o.isPreview);a(this,e),this.sdc={},this.sdr={},this._idx=0,this.onPopState=function(e){var t=e.state;if(t){if(t.__N){var r=t.url,n=t.as,o=t.options,a=t.idx;i._idx=a;var u=h.parseRelativeUrl(r).pathname;i.isSsr&&n===i.asPath&&u===i.pathname||i._bps&&!i._bps(t)||i.change("replaceState",r,n,Object.assign({},o,{shallow:o.shallow&&i._shallow,locale:o.locale||i.defaultLocale}),undefined)}}else{var c=i.pathname,s=i.query;i.changeState("replaceState",p.formatWithValidation({pathname:E(c),query:s}),p.getURL())}},this.route=c.removePathTrailingSlash(t),this.components={},"/_error"!==t&&(this.components[this.route]={Component:v,initial:!0,props:u,err:m,__N_SSG:u&&u.__N_SSG,__N_SSP:u&&u.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]},this.events=e.events,this.pageLoader=s,this.pathname=t,this.query=r;var x=d.isDynamicRoute(t)&&self.__NEXT_DATA__.autoExport;if(this.asPath=x?t:n,this.basePath="",this.sub=y,this.clc=null,this._wrapApp=f,this.isSsr=!0,this.isFallback=g,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.isPreview=!!_,this.isLocaleDomain=!1,"//"!==n.substr(0,2)){var w={locale:b};w._shouldResolveHref=n!==t,this.changeState("replaceState",p.formatWithValidation({pathname:E(t),query:r}),p.getURL(),w)}window.addEventListener("popstate",this.onPopState)}return i(e,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=j(this,e,t);return e=n.url,t=n.as,this.change("pushState",e,t,r)}},{key:"replace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=j(this,e,t);return e=n.url,t=n.as,this.change("replaceState",e,t,r)}},{key:"change",value:function(){var t=o(n.mark((function t(r,o,a,i,u){var l,f,v,m,b,_,P,M,L,I,N,D,F,H,U,q,B,W,G,z,V,X,$,Q,K,Y,J,Z,ee,te,re,ne,oe,ae,ie,ue,ce,se;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k(o)){t.next=3;break}return window.location.href=o,t.abrupt("return",!1);case 3:l=o===a||i._h||i._shouldResolveHref,i._h&&(this.isReady=!0),f=this.locale,t.next=18;break;case 18:if(i._h||(this.isSsr=!1),p.ST&&performance.mark("routeChange"),m=i.shallow,b={shallow:void 0!==m&&m},this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,b),a=E(x(S(a)?O(a):a,i.locale,this.defaultLocale)),_=w(S(a)?O(a):a,this.locale),this._inFlightRoute=a,P=f!==this.locale,i._h||!this.onlyAHashChange(_)||P){t.next=35;break}return this.asPath=_,e.events.emit("hashChangeStart",a,b),this.changeState(r,o,a,i),this.scrollToHash(_),this.notify(this.components[this.route],null),e.events.emit("hashChangeComplete",a,b),t.abrupt("return",!0);case 35:return M=h.parseRelativeUrl(o),L=M.pathname,I=M.query,t.prev=37,t.next=40,this.pageLoader.getPageList();case 40:return N=t.sent,t.next=43,s.getClientBuildManifest();case 43:D=t.sent,D.__rewrites,t.next=51;break;case 47:return t.prev=47,t.t0=t.catch(37),window.location.href=a,t.abrupt("return",!1);case 51:if(this.urlIsNew(_)||P||(r="replaceState"),F=a,L=L?c.removePathTrailingSlash(O(L)):L,l&&"/_error"!==L&&(i._shouldResolveHref=!0,M.pathname=A(L,N),M.pathname!==L&&(L=M.pathname,M.pathname=E(L),o=p.formatWithValidation(M))),H=c.removePathTrailingSlash(L),k(a)){t.next=61;break}t.next=59;break;case 59:return window.location.href=a,t.abrupt("return",!1);case 61:if(F=w(O(F),this.locale),!d.isDynamicRoute(H)){t.next=77;break}if(U=h.parseRelativeUrl(F),q=U.pathname,B=g.getRouteRegex(H),W=y.getRouteMatcher(B)(q),z=(G=H===q)?C(H,q,I):{},W&&(!G||z.result)){t.next=76;break}if(!((V=Object.keys(B.groups).filter((function(e){return!I[e]}))).length>0)){t.next=74;break}throw new Error((G?"The provided `href` (".concat(o,") value is missing query values (").concat(V.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(q,") is incompatible with the `href` value (").concat(H,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(G?"href-interpolation-failed":"incompatible-href-as"));case 74:t.next=77;break;case 76:G?a=p.formatWithValidation(Object.assign({},U,{pathname:z.result,query:R(I,z.params)})):Object.assign(I,W);case 77:return e.events.emit("routeChangeStart",a,b),t.prev=78,t.next=81,this.getRouteInfo(H,L,I,a,F,b);case 81:if($=t.sent,K=(Q=$).error,Y=Q.props,J=Q.__N_SSG,Z=Q.__N_SSP,!J&&!Z||!Y){t.next=107;break}if(!Y.pageProps||!Y.pageProps.__N_REDIRECT){t.next=93;break}if(!(ee=Y.pageProps.__N_REDIRECT).startsWith("/")){t.next=91;break}return(te=h.parseRelativeUrl(ee)).pathname=A(te.pathname,N),re=j(this,ee,ee),ne=re.url,oe=re.as,t.abrupt("return",this.change(r,ne,oe,i));case 91:return window.location.href=ee,t.abrupt("return",new Promise((function(){})));case 93:if(this.isPreview=!!Y.__N_PREVIEW,Y.notFound!==T){t.next=107;break}return t.prev=95,t.next=98,this.fetchComponent("/404");case 98:ae="/404",t.next=104;break;case 101:t.prev=101,t.t1=t.catch(95),ae="/_error";case 104:return t.next=106,this.getRouteInfo(ae,ae,I,a,F,{shallow:!1});case 106:$=t.sent;case 107:return e.events.emit("beforeHistoryChange",a,b),this.changeState(r,o,a,i),i._h&&"/_error"===L&&500===(null===(v=self.__NEXT_DATA__.props)||void 0===v||null===(X=v.pageProps)||void 0===X?void 0:X.statusCode)&&(null===Y||void 0===Y?void 0:Y.pageProps)&&(Y.pageProps.statusCode=500),ie=i.shallow&&this.route===H,ce=null!==(ue=i.scroll)&&void 0!==ue?ue:!ie,se=ce?{x:0,y:0}:null,t.next=116,this.set(H,L,I,_,$,null!==u&&void 0!==u?u:se).catch((function(e){if(!e.cancelled)throw e;K=K||e}));case 116:if(!K){t.next=119;break}throw e.events.emit("routeChangeError",K,_,b),K;case 119:return e.events.emit("routeChangeComplete",a,b),t.abrupt("return",!0);case 124:if(t.prev=124,t.t2=t.catch(78),!t.t2.cancelled){t.next=128;break}return t.abrupt("return",!1);case 128:throw t.t2;case 129:case"end":return t.stop()}}),t,this,[[37,47],[78,124],[95,101]])})));return function(e,r,n,o,a){return t.apply(this,arguments)}}()},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&p.getURL()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,idx:this._idx="pushState"!==e?this._idx:this._idx+1},"",r))}},{key:"handleRouteInfoError",value:function(){var t=o(n.mark((function t(r,o,a,i,u,c){var l,f,p,d;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.cancelled){t.next=2;break}throw r;case 2:if(!s.isAssetError(r)&&!c){t.next=6;break}throw e.events.emit("routeChangeError",r,i,u),window.location.href=i,_();case 6:if(t.prev=6,"undefined"!==typeof l&&"undefined"!==typeof f){t.next=13;break}return t.next=10,this.fetchComponent("/_error");case 10:p=t.sent,l=p.page,f=p.styleSheets;case 13:if((d={props:undefined,Component:l,styleSheets:f,err:r,error:r}).props){t.next=25;break}return t.prev=15,t.next=18,this.getInitialProps(l,{err:r,pathname:o,query:a});case 18:d.props=t.sent,t.next=25;break;case 21:t.prev=21,t.t0=t.catch(15),console.error("Error in error page `getInitialProps`: ",t.t0),d.props={};case 25:return t.abrupt("return",d);case 28:return t.prev=28,t.t1=t.catch(6),t.abrupt("return",this.handleRouteInfoError(t.t1,o,a,i,u,!0));case 31:case"end":return t.stop()}}),t,this,[[6,28],[15,21]])})));return function(e,r,n,o,a,i){return t.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var e=o(n.mark((function e(t,r,o,a,i,u){var c,s,l,f,d,h,v,m,y=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c=this.components[t],!u.shallow||!c||this.route!==t){e.next=4;break}return e.abrupt("return",c);case 4:if(!(s=c&&"initial"in c?void 0:c)){e.next=9;break}e.t0=s,e.next=12;break;case 9:return e.next=11,this.fetchComponent(t).then((function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}}));case 11:e.t0=e.sent;case 12:l=e.t0,f=l.Component,d=l.__N_SSG,h=l.__N_SSP,e.next=18;break;case 18:return(d||h)&&(v=this.pageLoader.getDataHref(p.formatWithValidation({pathname:r,query:o}),i,d,this.locale)),e.next=21,this._getData((function(){return d?y._getStaticData(v):h?y._getServerData(v):y.getInitialProps(f,{pathname:r,query:o,asPath:a,locale:y.locale,locales:y.locales,defaultLocale:y.defaultLocale})}));case 21:return m=e.sent,l.props=m,this.components[t]=l,e.abrupt("return",l);case 27:return e.prev=27,e.t1=e.catch(0),e.abrupt("return",this.handleRouteInfoError(e.t1,r,o,a,u));case 30:case"end":return e.stop()}}),e,this,[[0,27]])})));return function(t,r,n,o,a,i){return e.apply(this,arguments)}}()},{key:"set",value:function(e,t,r,n,o,a){return this.isFallback=!1,this.route=e,this.pathname=t,this.query=r,this.asPath=n,this.notify(o,a)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=this.asPath.split("#"),r=u(t,2),n=r[0],o=r[1],a=e.split("#"),i=u(a,2),c=i[0],s=i[1];return!(!s||n!==c||o!==s)||n===c&&o!==s}},{key:"scrollToHash",value:function(e){var t=e.split("#"),r=u(t,2)[1];if(""!==r&&"top"!==r){var n=document.getElementById(r);if(n)n.scrollIntoView();else{var o=document.getElementsByName(r)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(){var e=o(n.mark((function e(t){var r,o,a,i,u,s,l,f,d,v,y=this,g=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=g.length>1&&void 0!==g[1]?g[1]:t,o=g.length>2&&void 0!==g[2]?g[2]:{},a=h.parseRelativeUrl(t),i=a.pathname,e.next=7,this.pageLoader.getPageList();case 7:u=e.sent,s=r,e.next=19;break;case 12:f=e.sent,l=f.__rewrites,d=m.default(E(x(r,this.locale)),u,l,a.query,(function(e){return A(e,u)}),this.locales),s=w(O(d.asPath),this.locale),d.matchedPage&&d.resolvedHref&&(i=d.resolvedHref,a.pathname=i,t=p.formatWithValidation(a)),e.next=21;break;case 19:a.pathname=A(a.pathname,u),a.pathname!==i&&(i=a.pathname,a.pathname=i,t=p.formatWithValidation(a));case 21:v=c.removePathTrailingSlash(i),e.next=24;break;case 24:return e.next=26,Promise.all([this.pageLoader._isSsg(v).then((function(e){return!!e&&y._getStaticData(y.pageLoader.getDataHref(t,s,!0,"undefined"!==typeof o.locale?o.locale:y.locale))})),this.pageLoader[o.priority?"loadPage":"prefetch"](v)]);case 26:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchComponent",value:function(){var e=o(n.mark((function e(t){var r,o,a,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,o=this.clc=function(){r=!0},e.next=4,this.pageLoader.loadPage(t);case 4:if(a=e.sent,!r){e.next=9;break}throw(i=new Error('Abort fetching component for route: "'.concat(t,'"'))).cancelled=!0,i;case 9:return o===this.clc&&(this.clc=null),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then((function(e){if(n===t.clc&&(t.clc=null),r){var o=new Error("Loading initial props cancelled");throw o.cancelled=!0,o}return e}))}},{key:"_getStaticData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return!this.isPreview&&this.sdc[r]?Promise.resolve(this.sdc[r]):N(e,this.isSsr).then((function(e){return t.sdc[r]=e,e}))}},{key:"_getServerData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return this.sdr[r]?this.sdr[r]:this.sdr[r]=N(e,this.isSsr).then((function(e){return delete t.sdr[r],e})).catch((function(e){throw delete t.sdr[r],e}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,p.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"abortComponentLoad",value:function(t,r){this.clc&&(e.events.emit("routeChangeError",_(),t,r),this.clc(),this.clc=null)}},{key:"notify",value:function(e,t){return this.sub(e,this.components["/_app"].Component,t)}}]),e}();D.events=f.default(),t.default=D},82065:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e){var t=e.auth,r=e.hostname,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",c=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(s+=":"+e.port));c&&"object"===typeof c&&(c=String(n.urlQueryToSearchParams(c)));var l=e.search||c&&"?".concat(c)||"";a&&":"!==a.substr(-1)&&(a+=":");e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s="");u&&"#"!==u[0]&&(u="#"+u);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(a).concat(s).concat(i).concat(l).concat(u)};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(39824));var o=/https?|ftp|gopher|file/},87055:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},26234:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},57658:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){var r=new URL(n.getLocationOrigin()),a=t?new URL(t,r):r,i=new URL(e,a),u=i.pathname,c=i.searchParams,s=i.search,l=i.hash,f=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:u,query:o.searchParamsToUrlQuery(c),search:s,hash:l,href:f.slice(r.origin.length)}};var n=r(99664),o=r(39824)},39824:function(e,t,r){"use strict";var n=r(53848);function o(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){var t={};return e.forEach((function(e,r){"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),a=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(a,o(e))})):t.set(a,o(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach((function(t){Array.from(t.keys()).forEach((function(t){return e.delete(t)})),t.forEach((function(t,r){return e.append(r,t)}))})),e}},73990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteMatcher=function(e){var t=e.re,r=e.groups;return function(e){var o=t.exec(e);if(!o)return!1;var a=function(e){try{return decodeURIComponent(e)}catch(t){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach((function(e){var t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map((function(e){return a(e)})):t.repeat?[a(n)]:a(n))})),i}};var n=r(99664)},66979:function(e,t){"use strict";function r(e){var t=(e.replace(/\/$/,"")||"/").slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map((function(e){if(e.startsWith("[")&&e.endsWith("]")){var t=function(e){var t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));var r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}(e.slice(1,-1)),o=t.key,a=t.optional,i=t.repeat;return r[o]={pos:n++,repeat:i,optional:a},i?a?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return"/".concat(e.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&"))})).join(""),groups:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.getParametrizedRoute=r,t.getRouteRegex=function(e){var t=r(e);if("routeKeys"in t)return{re:new RegExp("^".concat(t.parameterizedRoute,"(?:/)?$")),groups:t.groups,routeKeys:t.routeKeys,namedRegex:"^".concat(t.namedParameterizedRoute,"(?:/)?$")};return{re:new RegExp("^".concat(t.parameterizedRoute,"(?:/)?$")),groups:t.groups}}},62594:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0;t.default=function(){return r}},94766:function(e,t,r){"use strict";var n=r(83115),o=r(2553),a=r(62012),i=(r(50450),r(9807)),u=r(27690),c=r(99828);function s(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 r,n=c(e);if(t){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(67294),f=function(e){i(r,e);var t=s(r);function r(e){var a;return o(this,r),(a=t.call(this,e)).emitChange=function(){a._hasHeadManager&&a.props.headManager.updateHead(a.props.reduceComponentsToState(n(a.props.headManager.mountedInstances),a.props))},a._hasHeadManager=a.props.headManager&&a.props.headManager.mountedInstances,a}return a(r,[{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}}]),r}(l.Component);t.default=f},99664:function(e,t,r){"use strict";var n=r(809),o=r(2553),a=r(9807),i=r(27690),u=r(99828),c=r(44022),s=r(38561);function l(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 r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){var t,r=!1;return function(){return r||(r=!0,t=e.apply(void 0,arguments)),t}},t.getLocationOrigin=d,t.getURL=function(){var e=window.location.href,t=d();return e.substring(t.length)},t.getDisplayName=h,t.isResSent=v,t.normalizeRepeatedSlashes=function(e){var t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?".concat(t.slice(1).join("?")):"")},t.loadGetInitialProps=m,t.formatWithValidation=function(e){0;return f.formatUrl(e)},t.ST=t.SP=t.HtmlContext=t.urlObjectKeys=void 0;var f=r(82065),p=r(67294);function d(){var e=window.location,t=e.protocol,r=e.hostname,n=e.port;return"".concat(t,"//").concat(r).concat(n?":"+n:"")}function h(e){return"string"===typeof e?e:e.displayName||e.name||"Unknown"}function v(e){return e.finished||e.headersSent}function m(e,t){return y.apply(this,arguments)}function y(){return(y=s(n.mark((function e(t,r){var o,a,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=4;break;case 4:if(o=r.res||r.ctx&&r.ctx.res,t.getInitialProps){e.next=12;break}if(!r.ctx||!r.Component){e.next=11;break}return e.next=9,m(r.Component,r.ctx);case 9:return e.t0=e.sent,e.abrupt("return",{pageProps:e.t0});case 11:return e.abrupt("return",{});case 12:return e.next=14,t.getInitialProps(r);case 14:if(a=e.sent,!o||!v(o)){e.next=17;break}return e.abrupt("return",a);case 17:if(a){e.next=20;break}throw i='"'.concat(h(t),'.getInitialProps()" should resolve to an object. But found "').concat(a,'" instead.'),new Error(i);case 20:return e.abrupt("return",a);case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];var g="undefined"!==typeof performance;t.SP=g;var b=g&&"function"===typeof performance.mark&&"function"===typeof performance.measure;t.ST=b;var _=function(e){a(r,e);var t=l(r);function r(){return o(this,r),t.apply(this,arguments)}return r}(c(Error));t.DecodeError=_;var x=p.createContext(null);t.HtmlContext=x},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},38745:function(e){e.exports=function(){var e={770:function(e,t){!function(e){"use strict";var t,r,n,o,a=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},i=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var r=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return r.observe({type:e,buffered:!0}),r}}catch(e){}},u=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},c=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},s=function(e,t,r){var n;return function(o){t.value>=0&&(o||r)&&(t.delta=t.value-(n||0),(t.delta||void 0===n)&&(n=t.value,e(t)))}},l=-1,f=function(){return"hidden"===document.visibilityState?0:1/0},p=function(){u((function(e){var t=e.timeStamp;l=t}),!0)},d=function(){return l<0&&(l=f(),p(),c((function(){setTimeout((function(){l=f(),p()}),0)}))),{get firstHiddenTime(){return l}}},h=function(e,t){var r,n=d(),o=a("FCP"),u=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<n.firstHiddenTime&&(o.value=e.startTime,o.entries.push(e),r(!0)))},l=performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],f=l?null:i("paint",u);(l||f)&&(r=s(e,o,t),l&&u(l),c((function(n){o=a("FCP"),r=s(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-n.timeStamp,r(!0)}))}))})))},v=!1,m=-1,y={passive:!0,capture:!0},g=new Date,b=function(e,o){t||(t=o,r=e,n=new Date,w(removeEventListener),_())},_=function(){if(r>=0&&r<n-g){var e={entryType:"first-input",name:t.type,target:t.target,cancelable:t.cancelable,startTime:t.timeStamp,processingStart:t.timeStamp+r};o.forEach((function(t){t(e)})),o=[]}},x=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){b(e,t),o()},n=function(){o()},o=function(){removeEventListener("pointerup",r,y),removeEventListener("pointercancel",n,y)};addEventListener("pointerup",r,y),addEventListener("pointercancel",n,y)}(t,e):b(t,e)}},w=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,x,y)}))},P=new Set;e.getCLS=function(e,t){v||(h((function(e){m=e.value})),v=!0);var r,n=function(t){m>-1&&e(t)},o=a("CLS",0),l=0,f=[],p=function(e){if(!e.hadRecentInput){var t=f[0],n=f[f.length-1];l&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(l+=e.value,f.push(e)):(l=e.value,f=[e]),l>o.value&&(o.value=l,o.entries=f,r())}},d=i("layout-shift",p);d&&(r=s(n,o,t),u((function(){d.takeRecords().map(p),r(!0)})),c((function(){l=0,m=-1,o=a("CLS",0),r=s(n,o,t)})))},e.getFCP=h,e.getFID=function(e,n){var l,f=d(),p=a("FID"),h=function(e){e.startTime<f.firstHiddenTime&&(p.value=e.processingStart-e.startTime,p.entries.push(e),l(!0))},v=i("first-input",h);l=s(e,p,n),v&&u((function(){v.takeRecords().map(h),v.disconnect()}),!0),v&&c((function(){var i;p=a("FID"),l=s(e,p,n),o=[],r=-1,t=null,w(addEventListener),i=h,o.push(i),_()}))},e.getLCP=function(e,t){var r,n=d(),o=a("LCP"),l=function(e){var t=e.startTime;t<n.firstHiddenTime&&(o.value=t,o.entries.push(e)),r()},f=i("largest-contentful-paint",l);if(f){r=s(e,o,t);var p=function(){P.has(o.id)||(f.takeRecords().map(l),f.disconnect(),P.add(o.id),r(!0))};["keydown","click"].forEach((function(e){addEventListener(e,p,{once:!0,capture:!0})})),u(p,!0),c((function(n){o=a("LCP"),r=s(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-n.timeStamp,P.add(o.id),r(!0)}))}))}))}},e.getTTFB=function(e){var t,r=a("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var r in e)"navigationStart"!==r&&"toJSON"!==r&&(t[r]=Math.max(e[r]-e.navigationStart,0));return t}();if(r.value=r.delta=t.responseStart,r.value<0)return;r.entries=[t],e(r)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)},Object.defineProperty(e,"__esModule",{value:!0})}(t)}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}},a=!0;try{e[n].call(o.exports,o,o.exports,r),a=!1}finally{a&&delete t[n]}return o.exports}return r.ab="//",r(770)}()},74522:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=r,t.denormalizePagePath=function(e){(e=r(e)).startsWith("/index/")?e=e.slice(6):"/index"===e&&(e="/");return e}},54360:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.default=e.exports,e.exports.__esModule=!0},96648:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},38164:function(e,t,r){var n=r(54360);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.default=e.exports,e.exports.__esModule=!0},50450:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},38561:function(e){function t(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=e.apply(r,n);function u(e){t(i,o,a,u,c,"next",e)}function c(e){t(i,o,a,u,c,"throw",e)}u(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},2553:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},41280:function(e,t,r){var n=r(21914),o=r(78898);function a(t,r,i){return o()?(e.exports=a=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=a=function(e,t,r){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return r&&n(a,r.prototype),a},e.exports.default=e.exports,e.exports.__esModule=!0),a.apply(null,arguments)}e.exports=a,e.exports.default=e.exports,e.exports.__esModule=!0},62012:function(e){function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e},e.exports.default=e.exports,e.exports.__esModule=!0},61682:function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0},99828:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},9807:function(e,t,r){var n=r(21914);e.exports=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&&n(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},1467:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.default=e.exports,e.exports.__esModule=!0},78898:function(e){e.exports=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}},e.exports.default=e.exports,e.exports.__esModule=!0},27381:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},56325:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},81531:function(e){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},95725: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.")},e.exports.default=e.exports,e.exports.__esModule=!0},27690:function(e,t,r){var n=r(87917).default,o=r(50450);e.exports=function(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.default=e.exports,e.exports.__esModule=!0},21914:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(r,n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},53848:function(e,t,r){var n=r(96648),o=r(56325),a=r(73585),i=r(81531);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.default=e.exports,e.exports.__esModule=!0},83115:function(e,t,r){var n=r(38164),o=r(27381),a=r(73585),i=r(95725);e.exports=function(e){return n(e)||o(e)||a(e)||i()},e.exports.default=e.exports,e.exports.__esModule=!0},87917:function(e){function t(r){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},73585:function(e,t,r){var n=r(54360);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},44022:function(e,t,r){var n=r(99828),o=r(21914),a=r(1467),i=r(41280);function u(t){var r="function"===typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!a(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return i(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.default=e.exports,e.exports.__esModule=!0,u(t)}e.exports=u,e.exports.default=e.exports,e.exports.__esModule=!0},809:function(e,t,r){e.exports=r(35666)},35666:function(e){var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(L){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new C(n||[]);return a._invoke=function(e,t,r){var n=f;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw a;return M()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=E(i,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?h:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={};function m(){}function y(){}function g(){}var b={};c(b,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(R([])));x&&x!==r&&n.call(x,a)&&(b=x);var w=g.prototype=m.prototype=Object.create(b);function P(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,i,u){var c=l(e[o],e,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function R(e){if(e){var r=e[a];if(r)return r.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:M}}function M(){return{value:t,done:!0}}return y.prototype=g,c(w,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},P(S.prototype),c(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=R,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},72431:function(){}},function(e){e.O(0,[774],(function(){return t=20457,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/main-965b0767a8d0eaf0c110.js b/out/_next/static/chunks/main-965b0767a8d0eaf0c110.js
deleted file mode 100644
index 9dbee41..0000000
--- a/out/_next/static/chunks/main-965b0767a8d0eaf0c110.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{67228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.default=e.exports,e.exports.__esModule=!0},22858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},23646:function(e,t,r){var n=r(67228);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.default=e.exports,e.exports.__esModule=!0},81506:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},48926:function(e){function t(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=e.apply(r,n);function u(e){t(i,o,a,u,c,"next",e)}function c(e){t(i,o,a,u,c,"throw",e)}u(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},34575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},69100:function(e,t,r){var n=r(99489),o=r(57067);function a(t,r,i){return o()?(e.exports=a=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=a=function(e,t,r){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return r&&n(a,r.prototype),a},e.exports.default=e.exports,e.exports.__esModule=!0),a.apply(null,arguments)}e.exports=a,e.exports.default=e.exports,e.exports.__esModule=!0},93913:function(e){function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e},e.exports.default=e.exports,e.exports.__esModule=!0},59713:function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0},29754:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},2205:function(e,t,r){var n=r(99489);e.exports=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&&n(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},70430:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.default=e.exports,e.exports.__esModule=!0},57067:function(e){e.exports=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}},e.exports.default=e.exports,e.exports.__esModule=!0},46860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},13884:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},80521:function(e){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},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.")},e.exports.default=e.exports,e.exports.__esModule=!0},78585:function(e,t,r){var n=r(50008).default,o=r(81506);e.exports=function(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.default=e.exports,e.exports.__esModule=!0},99489:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(r,n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},63038:function(e,t,r){var n=r(22858),o=r(13884),a=r(60379),i=r(80521);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.default=e.exports,e.exports.__esModule=!0},319:function(e,t,r){var n=r(23646),o=r(46860),a=r(60379),i=r(98206);e.exports=function(e){return n(e)||o(e)||a(e)||i()},e.exports.default=e.exports,e.exports.__esModule=!0},50008:function(e){function t(r){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},60379:function(e,t,r){var n=r(67228);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},65957:function(e,t,r){var n=r(29754),o=r(99489),a=r(70430),i=r(69100);function u(t){var r="function"===typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!a(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return i(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.default=e.exports,e.exports.__esModule=!0,u(t)}e.exports=u,e.exports.default=e.exports,e.exports.__esModule=!0},87757:function(e,t,r){e.exports=r(35666)},60400:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))})},96792:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=null;return{mountedInstances:new Set,updateHead:function(t){var r=e=Promise.resolve().then((function(){if(r===e){e=null;var o={};t.forEach((function(e){"link"===e.type&&e.props["data-optimized-fonts"]&&!document.querySelector('style[data-href="'.concat(e.props["data-href"],'"]'))&&(e.props.href=e.props["data-href"],e.props["data-href"]=void 0);var t=o[e.type]||[];t.push(e),o[e.type]=t}));var a=o.title?o.title[0]:null,i="";if(a){var u=a.props.children;i="string"===typeof u?u:Array.isArray(u)?u.join(""):""}i!==document.title&&(document.title=i),["meta","base","link","style","script"].forEach((function(e){!function(e,t){var r=document.getElementsByTagName("head")[0],o=r.querySelector("meta[name=next-head-count]");0;for(var a=Number(o.content),i=[],u=0,c=o.previousElementSibling;u<a;u++,c=c.previousElementSibling)c.tagName.toLowerCase()===e&&i.push(c);var s=t.map(n).filter((function(e){for(var t=0,r=i.length;t<r;t++){if(i[t].isEqualNode(e))return i.splice(t,1),!1}return!0}));i.forEach((function(e){return e.parentNode.removeChild(e)})),s.forEach((function(e){return r.insertBefore(e,o)})),o.content=(a-i.length+s.length).toString()}(e,o[e]||[])}))}}))}}},t.DOMAttributeNames=void 0;var r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function n(e){var t=e.type,n=e.props,o=document.createElement(t);for(var a in n)if(n.hasOwnProperty(a)&&"children"!==a&&"dangerouslySetInnerHTML"!==a&&void 0!==n[a]){var i=r[a]||a.toLowerCase();"script"!==t||"async"!==i&&"defer"!==i&&"noModule"!==i?o.setAttribute(i,n[a]):o[i]=!!n[a]}var u=n.children,c=n.dangerouslySetInnerHTML;return c?o.innerHTML=c.__html||"":u&&(o.textContent="string"===typeof u?u:Array.isArray(u)?u.join(""):""),o}t.DOMAttributeNames=r},20310:function(e,t,r){"use strict";var n=r(87757),o=r(34575),a=r(93913),i=r(2205),u=r(78585),c=r(29754),s=r(63038);function l(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 r,n=c(e);if(t){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.initNext=function(){return ue.apply(this,arguments)},t.render=se,t.renderError=le,t.emitter=t.version=t.router=void 0,r(60400);var f=M(r(67294)),p=M(r(73935)),d=r(80699),h=M(r(21436)),v=r(3751),m=r(21063),y=r(26234),g=r(39824),b=r(62594),_=r(99664),x=r(86579),w=M(r(96792)),P=M(r(47145)),S=M(r(59934)),E=r(48475),O=r(34651);function k(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,o)}function C(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){k(a,n,o,i,u,"next",e)}function u(e){k(a,n,o,i,u,"throw",e)}i(void 0)}))}}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e){return e&&e.__esModule?e:{default:e}}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){R(e,t,r[t])}))}return e}var j=JSON.parse(document.getElementById("__NEXT_DATA__").textContent);window.__NEXT_DATA__=j;t.version="11.1.2";var A=function(e){return[].slice.call(e)},T=j.props,I=j.err,N=j.page,D=j.query,F=j.buildId,H=j.assetPrefix,U=j.runtimeConfig,q=j.dynamicIds,B=j.isFallback,W=j.locale,G=j.locales,z=j.domainLocales,V=j.isPreview,X=j.defaultLocale,$=H||"";r.p="".concat($,"/_next/"),b.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:U||{}});var Q=_.getURL();(m.hasBasePath(Q)&&(Q=m.delBasePath(Q)),j.scriptLoader)&&(0,r(37926).initScriptLoader)(j.scriptLoader);var K=new P.default(F,$),Y=function(e){var t=s(e,2),r=t[0],n=t[1];return K.routeLoader.onEntrypoint(r,n)};window.__NEXT_P&&window.__NEXT_P.map((function(e){return setTimeout((function(){return Y(e)}),0)})),window.__NEXT_P=[],window.__NEXT_P.push=Y;var J,Z,ee,te,re=w.default(),ne=document.getElementById("__next");t.router=Z,re.getIsSsr=function(){return Z.isSsr};var oe,ae=function(e){i(r,e);var t=l(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"componentDidCatch",value:function(e,t){this.props.fn(e,t)}},{key:"componentDidMount",value:function(){this.scrollToHash(),Z.isSsr&&"/404"!==N&&"/_error"!==N&&(B||j.nextExport&&(y.isDynamicRoute(Z.pathname)||location.search)||T&&T.__N_SSG&&location.search)&&Z.replace(Z.pathname+"?"+String(g.assign(g.urlQueryToSearchParams(Z.query),new URLSearchParams(location.search))),Q,{_h:1,shallow:!B})}},{key:"componentDidUpdate",value:function(){this.scrollToHash()}},{key:"scrollToHash",value:function(){var e=location.hash;if(e=e&&e.substring(1)){var t=document.getElementById(e);t&&setTimeout((function(){return t.scrollIntoView()}),0)}}},{key:"render",value:function(){return this.props.children}}]),r}(f.default.Component),ie=h.default();function ue(){return(ue=C(n.mark((function e(){var r,o,a,i,u,c,s=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.length>0&&void 0!==s[0]?s[0]:{},r=I,e.prev=3,e.next=6,K.routeLoader.whenEntrypoint("/_app");case 6:if(!("error"in(o=e.sent))){e.next=9;break}throw o.error;case 9:a=o.component,i=o.exports,ee=a,i&&i.reportWebVitals&&(te=function(e){var t,r=e.id,n=e.name,o=e.startTime,a=e.value,u=e.duration,c=e.entryType,s=e.entries,l="".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12);s&&s.length&&(t=s[0].startTime),i.reportWebVitals({id:r||l,name:n,startTime:o||t,value:null==a?u:a,label:"mark"===c||"measure"===c?"custom":"web-vital"})}),e.next=16;break;case 16:return e.next=18,K.routeLoader.whenEntrypoint(N);case 18:e.t0=e.sent;case 19:if(!("error"in(u=e.t0))){e.next=22;break}throw u.error;case 22:oe=u.component,e.next=27;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(3),r=e.t1;case 32:if(!window.__NEXT_PRELOADREADY){e.next=36;break}return e.next=36,window.__NEXT_PRELOADREADY(q);case 36:return t.router=Z=O.createRouter(N,D,Q,{initialProps:T,pageLoader:K,App:ee,Component:oe,wrapApp:ye,err:r,isFallback:Boolean(B),subscription:function(e,t,r){return se(Object.assign({},e,{App:t,scroll:r}))},locale:W,locales:G,defaultLocale:X,domainLocales:z,isPreview:V}),se(c={App:ee,initial:!0,Component:oe,props:T,err:r}),e.abrupt("return",ie);case 43:return e.abrupt("return",{emitter:ie,renderCtx:c});case 44:case"end":return e.stop()}}),e,null,[[3,29]])})))).apply(this,arguments)}function ce(){return(ce=C(n.mark((function e(t){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,le(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,ge(t);case 7:e.next=16;break;case 9:if(e.prev=9,e.t0=e.catch(4),!e.t0.cancelled){e.next=13;break}throw e.t0;case 13:return e.next=16,le(L({},t,{err:e.t0}));case 16:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function se(e){return ce.apply(this,arguments)}function le(e){var t=e.App,n=e.err;return console.error(n),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),K.loadPage("/_error").then((function(e){var t=e.page,n=e.styleSheets;return(null===me||void 0===me?void 0:me.Component)===t?Promise.resolve().then((function(){return function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(3359))})).then((function(e){return{ErrorComponent:e.default,styleSheets:[]}})):{ErrorComponent:t,styleSheets:n}})).then((function(r){var o=r.ErrorComponent,a=r.styleSheets,i=ye(t),u={Component:o,AppTree:i,router:Z,ctx:{err:n,pathname:N,query:D,asPath:Q,AppTree:i}};return Promise.resolve(e.props?e.props:_.loadGetInitialProps(t,u)).then((function(t){return ge(L({},e,{err:n,Component:o,styleSheets:a,props:t}))}))}))}t.emitter=ie;var fe=!0;function pe(){_.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),te&&performance.getEntriesByName("Next.js-hydration").forEach(te),he())}function de(){if(_.ST){performance.mark("afterRender");var e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),te&&(performance.getEntriesByName("Next.js-render").forEach(te),performance.getEntriesByName("Next.js-route-change-to-render").forEach(te)),he(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function he(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function ve(e){var t=e.children;return f.default.createElement(ae,{fn:function(e){return le({App:ee,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},f.default.createElement(v.RouterContext.Provider,{value:O.makePublicRouterInstance(Z)},f.default.createElement(d.HeadManagerContext.Provider,{value:re},t)))}var me,ye=function(e){return function(t){var r=L({},t,{Component:oe,err:I,router:Z});return f.default.createElement(ve,null,f.default.createElement(e,Object.assign({},r)))}};function ge(e){var t=e.App,r=e.Component,n=e.props,o=e.err,a="initial"in e?void 0:e.styleSheets;r=r||me.Component;var i=L({},n=n||me.props,{Component:r,err:o,router:Z});me=i;var u,c=!1,s=new Promise((function(e,t){J&&J(),u=function(){J=null,e()},J=function(){c=!0,J=null;var e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));function l(){u()}!function(){if(!a)return!1;var e=A(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((function(e){return e.getAttribute("data-n-href")}))),r=document.querySelector("noscript[data-n-css]"),n=null===r||void 0===r?void 0:r.getAttribute("data-n-css");a.forEach((function(e){var r=e.href,o=e.text;if(!t.has(r)){var a=document.createElement("style");a.setAttribute("data-n-href",r),a.setAttribute("media","x"),n&&a.setAttribute("nonce",n),document.head.appendChild(a),a.appendChild(document.createTextNode(o))}}))}();var d=f.default.createElement(f.default.Fragment,null,f.default.createElement(_e,{callback:function(){if(a&&!c){for(var t=new Set(a.map((function(e){return e.href}))),r=A(document.querySelectorAll("style[data-n-href]")),n=r.map((function(e){return e.getAttribute("data-n-href")})),o=0;o<n.length;++o)t.has(n[o])?r[o].removeAttribute("media"):r[o].setAttribute("media","x");var i=document.querySelector("noscript[data-n-css]");i&&a.forEach((function(e){var t=e.href,r=document.querySelector('style[data-n-href="'.concat(t,'"]'));r&&(i.parentNode.insertBefore(r,i.nextSibling),i=r)})),A(document.querySelectorAll("link[data-n-p]")).forEach((function(e){e.parentNode.removeChild(e)})),getComputedStyle(document.body,"height")}e.scroll&&window.scrollTo(e.scroll.x,e.scroll.y)}}),f.default.createElement(ve,null,f.default.createElement(t,Object.assign({},i)),f.default.createElement(x.Portal,{type:"next-route-announcer"},f.default.createElement(E.RouteAnnouncer,null))));return function(e,t){_.ST&&performance.mark("beforeRender");var r=t(fe?pe:de);fe?(p.default.hydrate(r,e),fe=!1):p.default.render(r,e)}(ne,(function(e){return f.default.createElement(be,{callbacks:[e,l]},d)})),s}function be(e){var t=e.callbacks,r=e.children;return f.default.useLayoutEffect((function(){return t.forEach((function(e){return e()}))}),[t]),f.default.useEffect((function(){S.default(te)}),[]),r}function _e(e){var t=e.callback;return f.default.useLayoutEffect((function(){return t()}),[t]),null}},20457:function(e,t,r){"use strict";var n=r(20310);window.next={version:n.version,get router(){return n.router},emitter:n.emitter,render:n.render,renderError:n.renderError},n.initNext().catch(console.error)},15965:function(e,t){"use strict";function r(e){return e.endsWith("/")&&"/"!==e?e.slice(0,-1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.removePathTrailingSlash=r,t.normalizePathTrailingSlash=void 0;var n=r;t.normalizePathTrailingSlash=n},47145:function(e,t,r){"use strict";var n=r(34575),o=r(93913);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(21063),u=(a=r(87055))&&a.__esModule?a:{default:a},c=r(26234),s=r(57658),l=r(15965),f=r(31392);var p=function(){function e(t,r){n(this,e),this.routeLoader=f.createRouteLoader(r),this.buildId=t,this.assetPrefix=r,this.promisedSsgManifest=new Promise((function(e){window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=function(){e(window.__SSG_MANIFEST)}}))}return o(e,[{key:"getPageList",value:function(){return f.getClientBuildManifest().then((function(e){return e.sortedPages}))}},{key:"getDataHref",value:function(e,t,r,n){var o=this,a=s.parseRelativeUrl(e),f=a.pathname,p=a.query,d=a.search,h=s.parseRelativeUrl(t).pathname,v=function(e){if("/"!==e[0])throw new Error('Route name should start with a "/", got "'.concat(e,'"'));return"/"===e?e:e.replace(/\/$/,"")}(f),m=function(e){var t=u.default(l.removePathTrailingSlash(i.addLocale(e,n)),".json");return i.addBasePath("/_next/data/".concat(o.buildId).concat(t).concat(r?"":d))},y=c.isDynamicRoute(v),g=y?i.interpolateAs(f,h,p).result:"";return y?g&&m(g):m(v)}},{key:"_isSsg",value:function(e){return this.promisedSsgManifest.then((function(t){return t.has(e)}))}},{key:"loadPage",value:function(e){return this.routeLoader.loadRoute(e).then((function(e){if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map((function(e){return{href:e.href,text:e.content}}))};throw e.error}))}},{key:"prefetch",value:function(e){return this.routeLoader.prefetch(e)}}]),e}();t.default=p},59934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=r(38745),a=(location.href,!1);function i(e){n&&n(e)}t.default=function(e){n=e,a||(a=!0,o.getCLS(i),o.getFID(i),o.getFCP(i),o.getLCP(i),o.getTTFB(i))}},86579:function(e,t,r){"use strict";var n=r(63038);Object.defineProperty(t,"__esModule",{value:!0}),t.Portal=void 0;var o,a=(o=r(67294))&&o.__esModule?o:{default:o},i=r(73935);t.Portal=function(e){var t=e.children,r=e.type,o=a.default.useRef(null),u=a.default.useState(),c=n(u,2)[1];return a.default.useEffect((function(){return o.current=document.createElement(r),document.body.appendChild(o.current),c({}),function(){o.current&&document.body.removeChild(o.current)}}),[r]),o.current?i.createPortal(t,o.current):null}},73447:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestIdleCallback=t.cancelIdleCallback=void 0;var r="undefined"!==typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};t.requestIdleCallback=r;var n="undefined"!==typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=n},48475:function(e,t,r){"use strict";var n=r(63038);Object.defineProperty(t,"__esModule",{value:!0}),t.RouteAnnouncer=u,t.default=void 0;var o,a=(o=r(67294))&&o.__esModule?o:{default:o},i=r(34651);function u(){var e=i.useRouter().asPath,t=a.default.useState(""),r=n(t,2),o=r[0],u=r[1],c=a.default.useRef(!1);return a.default.useEffect((function(){if(c.current){var t,r=document.querySelector("h1");r&&(t=r.innerText||r.textContent),t||(t=document.title?document.title:e),u(t)}else c.current=!0}),[e]),a.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},o)}var c=u;t.default=c},31392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=c,t.isAssetError=function(e){return e&&u in e},t.getClientBuildManifest=l,t.createRouteLoader=function(e){var t=new Map,r=new Map,n=new Map,u=new Map;function l(e){var t=r.get(e);return t||(document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(r.set(e,t=function(e,t){return new Promise((function(r,n){(t=document.createElement("script")).onload=r,t.onerror=function(){return n(c(new Error("Failed to load script: ".concat(e))))},t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)}))}(e)),t))}function p(e){var t=n.get(e);return t||(n.set(e,t=fetch(e).then((function(t){if(!t.ok)throw new Error("Failed to load stylesheet: ".concat(e));return t.text().then((function(t){return{href:e,content:t}}))})).catch((function(e){throw c(e)}))),t)}return{whenEntrypoint:function(e){return a(e,t)},onEntrypoint:function(e,r){Promise.resolve(r).then((function(e){return e()})).then((function(e){return{component:e&&e.default||e,exports:e}}),(function(e){return{error:e}})).then((function(r){var n=t.get(e);t.set(e,r),n&&"resolve"in n&&n.resolve(r)}))},loadRoute:function(r,n){var o=this;return a(r,u,(function(){return s(f(e,r).then((function(e){var n=e.scripts,o=e.css;return Promise.all([t.has(r)?[]:Promise.all(n.map(l)),Promise.all(o.map(p))])})).then((function(e){return o.whenEntrypoint(r).then((function(t){return{entrypoint:t,styles:e[1]}}))})),3800,c(new Error("Route did not complete loading: ".concat(r)))).then((function(e){var t=e.entrypoint,r=e.styles,n=Object.assign({styles:r},t);return"error"in t?t:n})).catch((function(e){if(n)throw e;return{error:e}}))}))},prefetch:function(t){var r,n=this;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():f(e,t).then((function(e){return Promise.all(i?e.scripts.map((function(e){return t=e,r="script",new Promise((function(e,o){if(document.querySelector('link[rel="prefetch"][href^="'.concat(t,'"]')))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=o,n.href=t,document.head.appendChild(n)}));var t,r,n})):[])})).then((function(){o.requestIdleCallback((function(){return n.loadRoute(t,!0).catch((function(){}))}))})).catch((function(){}))}}};(n=r(87055))&&n.__esModule;var n,o=r(73447);function a(e,t,r){var n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);var a=new Promise((function(e){n=e}));return t.set(e,o={resolve:n,future:a}),r?r().then((function(e){return n(e),e})):a}var i=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}();var u=Symbol("ASSET_LOAD_ERROR");function c(e){return Object.defineProperty(e,u,{})}function s(e,t,r){return new Promise((function(n,a){var i=!1;e.then((function(e){i=!0,n(e)})).catch(a),o.requestIdleCallback((function(){return setTimeout((function(){i||a(r)}),t)}))}))}function l(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):s(new Promise((function(e){var t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=function(){e(self.__BUILD_MANIFEST),t&&t()}})),3800,c(new Error("Failed to load client build manifest")))}function f(e,t){return l().then((function(r){if(!(t in r))throw c(new Error("Failed to lookup route: ".concat(t)));var n=r[t].map((function(t){return e+"/_next/"+encodeURI(t)}));return{scripts:n.filter((function(e){return e.endsWith(".js")})),css:n.filter((function(e){return e.endsWith(".css")}))}}))}},34651:function(e,t,r){"use strict";var n=r(69100);function o(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return s.default}}),t.useRouter=function(){return i.default.useContext(c.RouterContext)},t.createRouter=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f.router=n(u.default,t),f.readyCallbacks.forEach((function(e){return e()})),f.readyCallbacks=[],f.router},t.makePublicRouterInstance=function(e){var t,r=e,n={},a=o(p);try{for(a.s();!(t=a.n()).done;){var i=t.value;"object"!==typeof r[i]?n[i]=r[i]:n[i]=Object.assign(Array.isArray(r[i])?[]:{},r[i])}}catch(c){a.e(c)}finally{a.f()}return n.events=u.default.events,d.forEach((function(e){n[e]=function(){return r[e].apply(r,arguments)}})),n},t.default=void 0;var i=l(r(67294)),u=l(r(21063)),c=r(3751),s=l(r(47413));function l(e){return e&&e.__esModule?e:{default:e}}var f={router:null,readyCallbacks:[],ready:function(e){if(this.router)return e();this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!f.router){throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n')}return f.router}Object.defineProperty(f,"events",{get:function(){return u.default.events}}),p.forEach((function(e){Object.defineProperty(f,e,{get:function(){return h()[e]}})})),d.forEach((function(e){f[e]=function(){var t=h();return t[e].apply(t,arguments)}})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((function(e){f.ready((function(){u.default.events.on(e,(function(){var t="on".concat(e.charAt(0).toUpperCase()).concat(e.substring(1)),r=f;if(r[t])try{r[t].apply(r,arguments)}catch(n){console.error("Error when running the Router event: ".concat(t)),console.error("".concat(n.message,"\n").concat(n.stack))}}))}))}));var v=f;t.default=v},37926:function(e,t,r){"use strict";var n=r(63038);Object.defineProperty(t,"__esModule",{value:!0}),t.initScriptLoader=function(e){e.forEach(v)},t.default=void 0;var o=r(67294),a=r(80699),i=r(96792),u=r(73447);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=new Map,p=new Set,d=["onLoad","dangerouslySetInnerHTML","children","onError","strategy"],h=function(e){var t=e.src,r=e.id,o=e.onLoad,a=void 0===o?function(){}:o,u=e.dangerouslySetInnerHTML,c=e.children,s=void 0===c?"":c,l=e.strategy,h=void 0===l?"afterInteractive":l,v=e.onError,m=r||t;if(!m||!p.has(m)){if(f.has(t))return p.add(m),void f.get(t).then(a,v);var y=document.createElement("script"),g=new Promise((function(e,t){y.addEventListener("load",(function(t){e(),a&&a.call(this,t)})),y.addEventListener("error",(function(e){t(e)}))})).catch((function(e){v&&v(e)}));t&&f.set(t,g),p.add(m),u?y.innerHTML=u.__html||"":s?y.textContent="string"===typeof s?s:Array.isArray(s)?s.join(""):"":t&&(y.src=t);for(var b=0,_=Object.entries(e);b<_.length;b++){var x=n(_[b],2),w=x[0],P=x[1];if(void 0!==P&&!d.includes(w)){var S=i.DOMAttributeNames[w]||w.toLowerCase();y.setAttribute(S,P)}}y.setAttribute("data-nscript",h),document.body.appendChild(y)}};function v(e){var t=e.strategy,r=void 0===t?"afterInteractive":t;"afterInteractive"===r?h(e):"lazyOnload"===r&&window.addEventListener("load",(function(){u.requestIdleCallback((function(){return h(e)}))}))}var m=function(e){var t=e.src,r=void 0===t?"":t,n=e.onLoad,i=void 0===n?function(){}:n,c=(e.dangerouslySetInnerHTML,e.strategy),f=void 0===c?"afterInteractive":c,d=e.onError,v=l(e,["src","onLoad","dangerouslySetInnerHTML","strategy","onError"]),m=o.useContext(a.HeadManagerContext),y=m.updateScripts,g=m.scripts,b=m.getIsSsr;return o.useEffect((function(){"afterInteractive"===f?h(e):"lazyOnload"===f&&function(e){"complete"===document.readyState?u.requestIdleCallback((function(){return h(e)})):window.addEventListener("load",(function(){u.requestIdleCallback((function(){return h(e)}))}))}(e)}),[e,f]),"beforeInteractive"===f&&(y?(g.beforeInteractive=(g.beforeInteractive||[]).concat([s({src:r,onLoad:i,onError:d},v)]),y(g)):b&&b()?p.add(v.id||r):b&&!b()&&h(e)),null};t.default=m},47413:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return o.default.createElement(e,Object.assign({router:a.useRouter()},t))}t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,!1;return t};var n,o=(n=r(67294))&&n.__esModule?n:{default:n},a=r(34651)},3359:function(e,t,r){"use strict";var n=r(34575),o=r(93913),a=r(2205),i=r(78585),u=r(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=f(r(67294)),l=f(r(70639));function f(e){return e&&e.__esModule?e:{default:e}}var p={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){var t=e.res,r=e.err;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}var h=function(e){a(r,e);var t=c(r);function r(){return n(this,r),t.apply(this,arguments)}return o(r,[{key:"render",value:function(){var e=this.props.statusCode,t=this.props.title||p[e]||"An unexpected error has occurred";return s.default.createElement("div",{style:v.error},s.default.createElement(l.default,null,s.default.createElement("title",null,e?"".concat(e,": ").concat(t):"Application error: a client-side exception has occurred")),s.default.createElement("div",null,s.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body { margin: 0 }"}}),e?s.default.createElement("h1",{style:v.h1},e):null,s.default.createElement("div",{style:v.desc},s.default.createElement("h2",{style:v.h2},this.props.title||e?t:s.default.createElement(s.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}]),r}(s.default.Component);h.displayName="ErrorPage",h.getInitialProps=d,h.origGetInitialProps=d,t.default=h;var v={error:{color:"#000",background:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",borderRight:"1px solid rgba(0, 0, 0,.3)",margin:0,marginRight:"20px",padding:"10px 23px 10px 0",fontSize:"24px",fontWeight:500,verticalAlign:"top"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"inherit",margin:0,padding:0}}},96046:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var o=((n=r(67294))&&n.__esModule?n:{default:n}).default.createContext({});t.AmpStateContext=o},43237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=i,t.useAmp=function(){return i(o.default.useContext(a.AmpStateContext))};var n,o=(n=r(67294))&&n.__esModule?n:{default:n},a=r(96046);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=void 0!==t&&t,n=e.hybrid,o=void 0!==n&&n,a=e.hasQuery,i=void 0!==a&&a;return r||o&&i}},80699:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;var o=((n=r(67294))&&n.__esModule?n:{default:n}).default.createContext({});t.HeadManagerContext=o},70639:function(e,t,r){"use strict";var n=r(59713);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=f,t.default=void 0;var a,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(67294)),u=(a=r(94766))&&a.__esModule?a:{default:a},c=r(96046),s=r(80699),l=r(43237);function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===i.default.Fragment?e.concat(i.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 d=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce((function(e,t){var r=i.default.Children.toArray(t.props.children);return e.concat(r)}),[]).reduce(p,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,r=new Set,n={};return function(o){var a=!0,i=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){i=!0;var u=o.key.slice(o.key.indexOf("$")+1);e.has(u)?a=!1:e.add(u)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(var c=0,s=d.length;c<s;c++){var l=d[c];if(o.props.hasOwnProperty(l))if("charSet"===l)r.has(l)?a=!1:r.add(l);else{var f=o.props[l],p=n[l]||new Set;"name"===l&&i||!p.has(f)?(p.add(f),n[l]=p):a=!1}}}return a}}()).reverse().map((function(e,r){var a=e.key||r;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 u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.props||{});return u["data-href"]=u.href,u.href=void 0,u["data-optimized-fonts"]=!0,i.default.cloneElement(e,u)}return i.default.cloneElement(e,{key:a})}))}var v=function(e){var t=e.children,r=i.useContext(c.AmpStateContext),n=i.useContext(s.HeadManagerContext);return i.default.createElement(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:l.isInAmpMode(r)},t)};t.default=v},88820:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){var r,n=e.split("/");return(t||[]).some((function(t){return n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)})),{pathname:e,detectedLocale:r}}},21436:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=Object.create(null);return{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];(e[t]||[]).slice().map((function(e){e.apply(void 0,n)}))}}}},3751:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;var o=((n=r(67294))&&n.__esModule?n:{default:n}).default.createContext(null);t.RouterContext=o},21063:function(e,t,r){"use strict";var n=r(87757),o=r(48926),a=r(34575),i=r(93913),u=r(63038);Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,r,n){return!1},t.addLocale=x,t.delLocale=w,t.hasBasePath=S,t.addBasePath=E,t.delBasePath=O,t.isLocalURL=k,t.interpolateAs=C,t.resolveHref=M,t.default=void 0;var c=r(15965),s=r(31392),l=r(74522),f=(r(88820),b(r(21436))),p=r(99664),d=r(26234),h=r(57658),v=r(39824),m=b(r(72431)),y=r(73990),g=r(66979);function b(e){return e&&e.__esModule?e:{default:e}}function _(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function x(e,t,r){return e}function w(e,t){return e}function P(e){var t=e.indexOf("?"),r=e.indexOf("#");return(t>-1||r>-1)&&(e=e.substring(0,t>-1?t:r)),e}function S(e){return""===(e=P(e))||e.startsWith("/")}function E(e){return function(e,t){return t&&e.startsWith("/")?"/"===e?c.normalizePathTrailingSlash(t):"".concat(t).concat("/"===P(e)?e.substring(1):e):e}(e,"")}function O(e){return(e=e.slice("".length)).startsWith("/")||(e="/".concat(e)),e}function k(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{var t=p.getLocationOrigin(),r=new URL(e,t);return r.origin===t&&S(r.pathname)}catch(n){return!1}}function C(e,t,r){var n="",o=g.getRouteRegex(e),a=o.groups,i=(t!==e?y.getRouteMatcher(o)(t):"")||r;n=e;var u=Object.keys(a);return u.every((function(e){var t=i[e]||"",r=a[e],o=r.repeat,u=r.optional,c="[".concat(o?"...":"").concat(e,"]");return u&&(c="".concat(t?"":"/","[").concat(c,"]")),o&&!Array.isArray(t)&&(t=[t]),(u||e in i)&&(n=n.replace(c,o?t.map((function(e){return encodeURIComponent(e)})).join("/"):encodeURIComponent(t))||"/")}))||(n=""),{params:u,result:n}}function R(e,t){var r={};return Object.keys(e).forEach((function(n){t.includes(n)||(r[n]=e[n])})),r}function M(e,t,r){var n,o="string"===typeof t?t:p.formatWithValidation(t),a=o.match(/^[a-zA-Z]{1,}:\/\//),i=a?o.substr(a[0].length):o;if((i.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href passed to next/router: ".concat(o,", repeated forward-slashes (//) or backslashes \\ are not valid in the href"));var u=p.normalizeRepeatedSlashes(i);o=(a?a[0]:"")+u}if(!k(o))return r?[o]:o;try{n=new URL(o.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(b){n=new URL("/","http://n")}try{var s=new URL(o,n);s.pathname=c.normalizePathTrailingSlash(s.pathname);var l="";if(d.isDynamicRoute(s.pathname)&&s.searchParams&&r){var f=v.searchParamsToUrlQuery(s.searchParams),h=C(s.pathname,s.pathname,f),m=h.result,y=h.params;m&&(l=p.formatWithValidation({pathname:m,hash:s.hash,query:R(f,y)}))}var g=s.origin===n.origin?s.href.slice(s.origin.length):s.href;return r?[g,l||g]:g}catch(b){return r?[o]:o}}function L(e){var t=p.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function j(e,t,r){var n=M(e,t,!0),o=u(n,2),a=o[0],i=o[1],c=p.getLocationOrigin(),s=a.startsWith(c),l=i&&i.startsWith(c);a=L(a),i=i?L(i):i;var f=s?a:E(a),d=r?L(M(e,r)):i||a;return{url:f,as:l?d:E(d)}}function A(e,t){var r=c.removePathTrailingSlash(l.denormalizePagePath(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some((function(t){if(d.isDynamicRoute(t)&&g.getRouteRegex(t).re.test(r))return e=t,!0})),c.removePathTrailingSlash(e))}var T=Symbol("SSG_DATA_NOT_FOUND");function I(e,t){return fetch(e,{credentials:"same-origin"}).then((function(r){if(!r.ok){if(t>1&&r.status>=500)return I(e,t-1);if(404===r.status)return r.json().then((function(e){if(e.notFound)return{notFound:T};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return r.json()}))}function N(e,t){return I(e,t?3:1).catch((function(e){throw t||s.markAssetError(e),e}))}var D=function(){function e(t,r,n,o){var i=this,u=o.initialProps,s=o.pageLoader,l=o.App,f=o.wrapApp,v=o.Component,m=o.err,y=o.subscription,g=o.isFallback,b=o.locale,_=(o.locales,o.defaultLocale,o.domainLocales,o.isPreview);a(this,e),this.sdc={},this.sdr={},this._idx=0,this.onPopState=function(e){var t=e.state;if(t){if(t.__N){var r=t.url,n=t.as,o=t.options,a=t.idx;i._idx=a;var u=h.parseRelativeUrl(r).pathname;i.isSsr&&n===i.asPath&&u===i.pathname||i._bps&&!i._bps(t)||i.change("replaceState",r,n,Object.assign({},o,{shallow:o.shallow&&i._shallow,locale:o.locale||i.defaultLocale}),undefined)}}else{var c=i.pathname,s=i.query;i.changeState("replaceState",p.formatWithValidation({pathname:E(c),query:s}),p.getURL())}},this.route=c.removePathTrailingSlash(t),this.components={},"/_error"!==t&&(this.components[this.route]={Component:v,initial:!0,props:u,err:m,__N_SSG:u&&u.__N_SSG,__N_SSP:u&&u.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]},this.events=e.events,this.pageLoader=s,this.pathname=t,this.query=r;var x=d.isDynamicRoute(t)&&self.__NEXT_DATA__.autoExport;if(this.asPath=x?t:n,this.basePath="",this.sub=y,this.clc=null,this._wrapApp=f,this.isSsr=!0,this.isFallback=g,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.isPreview=!!_,this.isLocaleDomain=!1,"//"!==n.substr(0,2)){var w={locale:b};w._shouldResolveHref=n!==t,this.changeState("replaceState",p.formatWithValidation({pathname:E(t),query:r}),p.getURL(),w)}window.addEventListener("popstate",this.onPopState)}return i(e,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=j(this,e,t);return e=n.url,t=n.as,this.change("pushState",e,t,r)}},{key:"replace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=j(this,e,t);return e=n.url,t=n.as,this.change("replaceState",e,t,r)}},{key:"change",value:function(){var t=o(n.mark((function t(r,o,a,i,u){var l,f,v,m,b,_,P,M,L,I,N,D,F,H,U,q,B,W,G,z,V,X,$,Q,K,Y,J,Z,ee,te,re,ne,oe,ae,ie,ue,ce,se;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k(o)){t.next=3;break}return window.location.href=o,t.abrupt("return",!1);case 3:l=o===a||i._h||i._shouldResolveHref,i._h&&(this.isReady=!0),f=this.locale,t.next=18;break;case 18:if(i._h||(this.isSsr=!1),p.ST&&performance.mark("routeChange"),m=i.shallow,b={shallow:void 0!==m&&m},this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,b),a=E(x(S(a)?O(a):a,i.locale,this.defaultLocale)),_=w(S(a)?O(a):a,this.locale),this._inFlightRoute=a,P=f!==this.locale,i._h||!this.onlyAHashChange(_)||P){t.next=35;break}return this.asPath=_,e.events.emit("hashChangeStart",a,b),this.changeState(r,o,a,i),this.scrollToHash(_),this.notify(this.components[this.route],null),e.events.emit("hashChangeComplete",a,b),t.abrupt("return",!0);case 35:return M=h.parseRelativeUrl(o),L=M.pathname,I=M.query,t.prev=37,t.next=40,this.pageLoader.getPageList();case 40:return N=t.sent,t.next=43,s.getClientBuildManifest();case 43:D=t.sent,D.__rewrites,t.next=51;break;case 47:return t.prev=47,t.t0=t.catch(37),window.location.href=a,t.abrupt("return",!1);case 51:if(this.urlIsNew(_)||P||(r="replaceState"),F=a,L=L?c.removePathTrailingSlash(O(L)):L,l&&"/_error"!==L&&(i._shouldResolveHref=!0,M.pathname=A(L,N),M.pathname!==L&&(L=M.pathname,M.pathname=E(L),o=p.formatWithValidation(M))),H=c.removePathTrailingSlash(L),k(a)){t.next=61;break}t.next=59;break;case 59:return window.location.href=a,t.abrupt("return",!1);case 61:if(F=w(O(F),this.locale),!d.isDynamicRoute(H)){t.next=77;break}if(U=h.parseRelativeUrl(F),q=U.pathname,B=g.getRouteRegex(H),W=y.getRouteMatcher(B)(q),z=(G=H===q)?C(H,q,I):{},W&&(!G||z.result)){t.next=76;break}if(!((V=Object.keys(B.groups).filter((function(e){return!I[e]}))).length>0)){t.next=74;break}throw new Error((G?"The provided `href` (".concat(o,") value is missing query values (").concat(V.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(q,") is incompatible with the `href` value (").concat(H,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(G?"href-interpolation-failed":"incompatible-href-as"));case 74:t.next=77;break;case 76:G?a=p.formatWithValidation(Object.assign({},U,{pathname:z.result,query:R(I,z.params)})):Object.assign(I,W);case 77:return e.events.emit("routeChangeStart",a,b),t.prev=78,t.next=81,this.getRouteInfo(H,L,I,a,F,b);case 81:if($=t.sent,K=(Q=$).error,Y=Q.props,J=Q.__N_SSG,Z=Q.__N_SSP,!J&&!Z||!Y){t.next=107;break}if(!Y.pageProps||!Y.pageProps.__N_REDIRECT){t.next=93;break}if(!(ee=Y.pageProps.__N_REDIRECT).startsWith("/")){t.next=91;break}return(te=h.parseRelativeUrl(ee)).pathname=A(te.pathname,N),re=j(this,ee,ee),ne=re.url,oe=re.as,t.abrupt("return",this.change(r,ne,oe,i));case 91:return window.location.href=ee,t.abrupt("return",new Promise((function(){})));case 93:if(this.isPreview=!!Y.__N_PREVIEW,Y.notFound!==T){t.next=107;break}return t.prev=95,t.next=98,this.fetchComponent("/404");case 98:ae="/404",t.next=104;break;case 101:t.prev=101,t.t1=t.catch(95),ae="/_error";case 104:return t.next=106,this.getRouteInfo(ae,ae,I,a,F,{shallow:!1});case 106:$=t.sent;case 107:return e.events.emit("beforeHistoryChange",a,b),this.changeState(r,o,a,i),i._h&&"/_error"===L&&500===(null===(v=self.__NEXT_DATA__.props)||void 0===v||null===(X=v.pageProps)||void 0===X?void 0:X.statusCode)&&(null===Y||void 0===Y?void 0:Y.pageProps)&&(Y.pageProps.statusCode=500),ie=i.shallow&&this.route===H,ce=null!==(ue=i.scroll)&&void 0!==ue?ue:!ie,se=ce?{x:0,y:0}:null,t.next=116,this.set(H,L,I,_,$,null!==u&&void 0!==u?u:se).catch((function(e){if(!e.cancelled)throw e;K=K||e}));case 116:if(!K){t.next=119;break}throw e.events.emit("routeChangeError",K,_,b),K;case 119:return e.events.emit("routeChangeComplete",a,b),t.abrupt("return",!0);case 124:if(t.prev=124,t.t2=t.catch(78),!t.t2.cancelled){t.next=128;break}return t.abrupt("return",!1);case 128:throw t.t2;case 129:case"end":return t.stop()}}),t,this,[[37,47],[78,124],[95,101]])})));return function(e,r,n,o,a){return t.apply(this,arguments)}}()},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&p.getURL()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,idx:this._idx="pushState"!==e?this._idx:this._idx+1},"",r))}},{key:"handleRouteInfoError",value:function(){var t=o(n.mark((function t(r,o,a,i,u,c){var l,f,p,d;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.cancelled){t.next=2;break}throw r;case 2:if(!s.isAssetError(r)&&!c){t.next=6;break}throw e.events.emit("routeChangeError",r,i,u),window.location.href=i,_();case 6:if(t.prev=6,"undefined"!==typeof l&&"undefined"!==typeof f){t.next=13;break}return t.next=10,this.fetchComponent("/_error");case 10:p=t.sent,l=p.page,f=p.styleSheets;case 13:if((d={props:undefined,Component:l,styleSheets:f,err:r,error:r}).props){t.next=25;break}return t.prev=15,t.next=18,this.getInitialProps(l,{err:r,pathname:o,query:a});case 18:d.props=t.sent,t.next=25;break;case 21:t.prev=21,t.t0=t.catch(15),console.error("Error in error page `getInitialProps`: ",t.t0),d.props={};case 25:return t.abrupt("return",d);case 28:return t.prev=28,t.t1=t.catch(6),t.abrupt("return",this.handleRouteInfoError(t.t1,o,a,i,u,!0));case 31:case"end":return t.stop()}}),t,this,[[6,28],[15,21]])})));return function(e,r,n,o,a,i){return t.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var e=o(n.mark((function e(t,r,o,a,i,u){var c,s,l,f,d,h,v,m,y=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c=this.components[t],!u.shallow||!c||this.route!==t){e.next=4;break}return e.abrupt("return",c);case 4:if(!(s=c&&"initial"in c?void 0:c)){e.next=9;break}e.t0=s,e.next=12;break;case 9:return e.next=11,this.fetchComponent(t).then((function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}}));case 11:e.t0=e.sent;case 12:l=e.t0,f=l.Component,d=l.__N_SSG,h=l.__N_SSP,e.next=18;break;case 18:return(d||h)&&(v=this.pageLoader.getDataHref(p.formatWithValidation({pathname:r,query:o}),i,d,this.locale)),e.next=21,this._getData((function(){return d?y._getStaticData(v):h?y._getServerData(v):y.getInitialProps(f,{pathname:r,query:o,asPath:a,locale:y.locale,locales:y.locales,defaultLocale:y.defaultLocale})}));case 21:return m=e.sent,l.props=m,this.components[t]=l,e.abrupt("return",l);case 27:return e.prev=27,e.t1=e.catch(0),e.abrupt("return",this.handleRouteInfoError(e.t1,r,o,a,u));case 30:case"end":return e.stop()}}),e,this,[[0,27]])})));return function(t,r,n,o,a,i){return e.apply(this,arguments)}}()},{key:"set",value:function(e,t,r,n,o,a){return this.isFallback=!1,this.route=e,this.pathname=t,this.query=r,this.asPath=n,this.notify(o,a)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=this.asPath.split("#"),r=u(t,2),n=r[0],o=r[1],a=e.split("#"),i=u(a,2),c=i[0],s=i[1];return!(!s||n!==c||o!==s)||n===c&&o!==s}},{key:"scrollToHash",value:function(e){var t=e.split("#"),r=u(t,2)[1];if(""!==r&&"top"!==r){var n=document.getElementById(r);if(n)n.scrollIntoView();else{var o=document.getElementsByName(r)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(){var e=o(n.mark((function e(t){var r,o,a,i,u,s,l,f,d,v,y=this,g=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=g.length>1&&void 0!==g[1]?g[1]:t,o=g.length>2&&void 0!==g[2]?g[2]:{},a=h.parseRelativeUrl(t),i=a.pathname,e.next=7,this.pageLoader.getPageList();case 7:u=e.sent,s=r,e.next=19;break;case 12:f=e.sent,l=f.__rewrites,d=m.default(E(x(r,this.locale)),u,l,a.query,(function(e){return A(e,u)}),this.locales),s=w(O(d.asPath),this.locale),d.matchedPage&&d.resolvedHref&&(i=d.resolvedHref,a.pathname=i,t=p.formatWithValidation(a)),e.next=21;break;case 19:a.pathname=A(a.pathname,u),a.pathname!==i&&(i=a.pathname,a.pathname=i,t=p.formatWithValidation(a));case 21:v=c.removePathTrailingSlash(i),e.next=24;break;case 24:return e.next=26,Promise.all([this.pageLoader._isSsg(v).then((function(e){return!!e&&y._getStaticData(y.pageLoader.getDataHref(t,s,!0,"undefined"!==typeof o.locale?o.locale:y.locale))})),this.pageLoader[o.priority?"loadPage":"prefetch"](v)]);case 26:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchComponent",value:function(){var e=o(n.mark((function e(t){var r,o,a,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,o=this.clc=function(){r=!0},e.next=4,this.pageLoader.loadPage(t);case 4:if(a=e.sent,!r){e.next=9;break}throw(i=new Error('Abort fetching component for route: "'.concat(t,'"'))).cancelled=!0,i;case 9:return o===this.clc&&(this.clc=null),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then((function(e){if(n===t.clc&&(t.clc=null),r){var o=new Error("Loading initial props cancelled");throw o.cancelled=!0,o}return e}))}},{key:"_getStaticData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return!this.isPreview&&this.sdc[r]?Promise.resolve(this.sdc[r]):N(e,this.isSsr).then((function(e){return t.sdc[r]=e,e}))}},{key:"_getServerData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return this.sdr[r]?this.sdr[r]:this.sdr[r]=N(e,this.isSsr).then((function(e){return delete t.sdr[r],e})).catch((function(e){throw delete t.sdr[r],e}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,p.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"abortComponentLoad",value:function(t,r){this.clc&&(e.events.emit("routeChangeError",_(),t,r),this.clc(),this.clc=null)}},{key:"notify",value:function(e,t){return this.sub(e,this.components["/_app"].Component,t)}}]),e}();D.events=f.default(),t.default=D},82065:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e){var t=e.auth,r=e.hostname,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",c=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(s+=":"+e.port));c&&"object"===typeof c&&(c=String(n.urlQueryToSearchParams(c)));var l=e.search||c&&"?".concat(c)||"";a&&":"!==a.substr(-1)&&(a+=":");e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s="");u&&"#"!==u[0]&&(u="#"+u);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(a).concat(s).concat(i).concat(l).concat(u)};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(39824));var o=/https?|ftp|gopher|file/},87055:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},26234:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},57658:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){var r=new URL(n.getLocationOrigin()),a=t?new URL(t,r):r,i=new URL(e,a),u=i.pathname,c=i.searchParams,s=i.search,l=i.hash,f=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:u,query:o.searchParamsToUrlQuery(c),search:s,hash:l,href:f.slice(r.origin.length)}};var n=r(99664),o=r(39824)},39824:function(e,t,r){"use strict";var n=r(63038);function o(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){var t={};return e.forEach((function(e,r){"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),a=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(a,o(e))})):t.set(a,o(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach((function(t){Array.from(t.keys()).forEach((function(t){return e.delete(t)})),t.forEach((function(t,r){return e.append(r,t)}))})),e}},73990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteMatcher=function(e){var t=e.re,r=e.groups;return function(e){var o=t.exec(e);if(!o)return!1;var a=function(e){try{return decodeURIComponent(e)}catch(t){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach((function(e){var t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map((function(e){return a(e)})):t.repeat?[a(n)]:a(n))})),i}};var n=r(99664)},66979:function(e,t){"use strict";function r(e){var t=(e.replace(/\/$/,"")||"/").slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map((function(e){if(e.startsWith("[")&&e.endsWith("]")){var t=function(e){var t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));var r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}(e.slice(1,-1)),o=t.key,a=t.optional,i=t.repeat;return r[o]={pos:n++,repeat:i,optional:a},i?a?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return"/".concat(e.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&"))})).join(""),groups:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.getParametrizedRoute=r,t.getRouteRegex=function(e){var t=r(e);if("routeKeys"in t)return{re:new RegExp("^".concat(t.parameterizedRoute,"(?:/)?$")),groups:t.groups,routeKeys:t.routeKeys,namedRegex:"^".concat(t.namedParameterizedRoute,"(?:/)?$")};return{re:new RegExp("^".concat(t.parameterizedRoute,"(?:/)?$")),groups:t.groups}}},62594:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0;t.default=function(){return r}},94766:function(e,t,r){"use strict";var n=r(319),o=r(34575),a=r(93913),i=(r(81506),r(2205)),u=r(78585),c=r(29754);function s(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 r,n=c(e);if(t){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(67294),f=function(e){i(r,e);var t=s(r);function r(e){var a;return o(this,r),(a=t.call(this,e)).emitChange=function(){a._hasHeadManager&&a.props.headManager.updateHead(a.props.reduceComponentsToState(n(a.props.headManager.mountedInstances),a.props))},a._hasHeadManager=a.props.headManager&&a.props.headManager.mountedInstances,a}return a(r,[{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}}]),r}(l.Component);t.default=f},99664:function(e,t,r){"use strict";var n=r(87757),o=r(34575),a=r(2205),i=r(78585),u=r(29754),c=r(65957),s=r(48926);function l(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 r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){var t,r=!1;return function(){return r||(r=!0,t=e.apply(void 0,arguments)),t}},t.getLocationOrigin=d,t.getURL=function(){var e=window.location.href,t=d();return e.substring(t.length)},t.getDisplayName=h,t.isResSent=v,t.normalizeRepeatedSlashes=function(e){var t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?".concat(t.slice(1).join("?")):"")},t.loadGetInitialProps=m,t.formatWithValidation=function(e){0;return f.formatUrl(e)},t.ST=t.SP=t.HtmlContext=t.urlObjectKeys=void 0;var f=r(82065),p=r(67294);function d(){var e=window.location,t=e.protocol,r=e.hostname,n=e.port;return"".concat(t,"//").concat(r).concat(n?":"+n:"")}function h(e){return"string"===typeof e?e:e.displayName||e.name||"Unknown"}function v(e){return e.finished||e.headersSent}function m(e,t){return y.apply(this,arguments)}function y(){return(y=s(n.mark((function e(t,r){var o,a,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=4;break;case 4:if(o=r.res||r.ctx&&r.ctx.res,t.getInitialProps){e.next=12;break}if(!r.ctx||!r.Component){e.next=11;break}return e.next=9,m(r.Component,r.ctx);case 9:return e.t0=e.sent,e.abrupt("return",{pageProps:e.t0});case 11:return e.abrupt("return",{});case 12:return e.next=14,t.getInitialProps(r);case 14:if(a=e.sent,!o||!v(o)){e.next=17;break}return e.abrupt("return",a);case 17:if(a){e.next=20;break}throw i='"'.concat(h(t),'.getInitialProps()" should resolve to an object. But found "').concat(a,'" instead.'),new Error(i);case 20:return e.abrupt("return",a);case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];var g="undefined"!==typeof performance;t.SP=g;var b=g&&"function"===typeof performance.mark&&"function"===typeof performance.measure;t.ST=b;var _=function(e){a(r,e);var t=l(r);function r(){return o(this,r),t.apply(this,arguments)}return r}(c(Error));t.DecodeError=_;var x=p.createContext(null);t.HtmlContext=x},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},38745:function(e){e.exports=function(){var e={770:function(e,t){!function(e){"use strict";var t,r,n,o,a=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},i=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var r=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return r.observe({type:e,buffered:!0}),r}}catch(e){}},u=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},c=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},s=function(e,t,r){var n;return function(o){t.value>=0&&(o||r)&&(t.delta=t.value-(n||0),(t.delta||void 0===n)&&(n=t.value,e(t)))}},l=-1,f=function(){return"hidden"===document.visibilityState?0:1/0},p=function(){u((function(e){var t=e.timeStamp;l=t}),!0)},d=function(){return l<0&&(l=f(),p(),c((function(){setTimeout((function(){l=f(),p()}),0)}))),{get firstHiddenTime(){return l}}},h=function(e,t){var r,n=d(),o=a("FCP"),u=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<n.firstHiddenTime&&(o.value=e.startTime,o.entries.push(e),r(!0)))},l=performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],f=l?null:i("paint",u);(l||f)&&(r=s(e,o,t),l&&u(l),c((function(n){o=a("FCP"),r=s(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-n.timeStamp,r(!0)}))}))})))},v=!1,m=-1,y={passive:!0,capture:!0},g=new Date,b=function(e,o){t||(t=o,r=e,n=new Date,w(removeEventListener),_())},_=function(){if(r>=0&&r<n-g){var e={entryType:"first-input",name:t.type,target:t.target,cancelable:t.cancelable,startTime:t.timeStamp,processingStart:t.timeStamp+r};o.forEach((function(t){t(e)})),o=[]}},x=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){b(e,t),o()},n=function(){o()},o=function(){removeEventListener("pointerup",r,y),removeEventListener("pointercancel",n,y)};addEventListener("pointerup",r,y),addEventListener("pointercancel",n,y)}(t,e):b(t,e)}},w=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,x,y)}))},P=new Set;e.getCLS=function(e,t){v||(h((function(e){m=e.value})),v=!0);var r,n=function(t){m>-1&&e(t)},o=a("CLS",0),l=0,f=[],p=function(e){if(!e.hadRecentInput){var t=f[0],n=f[f.length-1];l&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(l+=e.value,f.push(e)):(l=e.value,f=[e]),l>o.value&&(o.value=l,o.entries=f,r())}},d=i("layout-shift",p);d&&(r=s(n,o,t),u((function(){d.takeRecords().map(p),r(!0)})),c((function(){l=0,m=-1,o=a("CLS",0),r=s(n,o,t)})))},e.getFCP=h,e.getFID=function(e,n){var l,f=d(),p=a("FID"),h=function(e){e.startTime<f.firstHiddenTime&&(p.value=e.processingStart-e.startTime,p.entries.push(e),l(!0))},v=i("first-input",h);l=s(e,p,n),v&&u((function(){v.takeRecords().map(h),v.disconnect()}),!0),v&&c((function(){var i;p=a("FID"),l=s(e,p,n),o=[],r=-1,t=null,w(addEventListener),i=h,o.push(i),_()}))},e.getLCP=function(e,t){var r,n=d(),o=a("LCP"),l=function(e){var t=e.startTime;t<n.firstHiddenTime&&(o.value=t,o.entries.push(e)),r()},f=i("largest-contentful-paint",l);if(f){r=s(e,o,t);var p=function(){P.has(o.id)||(f.takeRecords().map(l),f.disconnect(),P.add(o.id),r(!0))};["keydown","click"].forEach((function(e){addEventListener(e,p,{once:!0,capture:!0})})),u(p,!0),c((function(n){o=a("LCP"),r=s(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-n.timeStamp,P.add(o.id),r(!0)}))}))}))}},e.getTTFB=function(e){var t,r=a("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var r in e)"navigationStart"!==r&&"toJSON"!==r&&(t[r]=Math.max(e[r]-e.navigationStart,0));return t}();if(r.value=r.delta=t.responseStart,r.value<0)return;r.entries=[t],e(r)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)},Object.defineProperty(e,"__esModule",{value:!0})}(t)}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}},a=!0;try{e[n].call(o.exports,o,o.exports,r),a=!1}finally{a&&delete t[n]}return o.exports}return r.ab="//",r(770)}()},74522:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=r,t.denormalizePagePath=function(e){(e=r(e)).startsWith("/index/")?e=e.slice(6):"/index"===e&&(e="/");return e}},35666:function(e){var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(L){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new C(n||[]);return a._invoke=function(e,t,r){var n=f;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw a;return M()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=E(i,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?h:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={};function m(){}function y(){}function g(){}var b={};b[a]=function(){return this};var _=Object.getPrototypeOf,x=_&&_(_(R([])));x&&x!==r&&n.call(x,a)&&(b=x);var w=g.prototype=m.prototype=Object.create(b);function P(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,i,u){var c=l(e[o],e,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function R(e){if(e){var r=e[a];if(r)return r.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:M}}function M(){return{value:t,done:!0}}return y.prototype=w.constructor=g,g.constructor=y,y.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},P(S.prototype),S.prototype[i]=function(){return this},e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(w),c(w,u,"Generator"),w[a]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=R,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(r){Function("r","regeneratorRuntime = r")(t)}},72431:function(){}},function(e){e.O(0,[774],(function(){return t=20457,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js b/out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js
new file mode 100644
index 0000000..7b79210
--- /dev/null
+++ b/out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{20949:function(e,r,t){"use strict";t.d(r,{SG:function(){return y},If:function(){return v}});var n=t(85393),a=t(44592),o=t(67294);var i="chakra-ui-light",l="chakra-ui-dark",s={classList:{add:a.ZT,remove:a.ZT}};function c(e,r){var t=function(e){return a.jU?e.body:s}(r);t.classList.add(e?l:i),t.classList.remove(e?i:l)}var u="(prefers-color-scheme: dark)";function d(e){var r;return(null!=(r=function(e){var r=null==window.matchMedia?void 0:window.matchMedia(e);if(r)return!!r.media===r.matches}(u))?r:"dark"===e)?"dark":"light"}var f=function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")||document.documentElement.dataset.theme},b=function(e){a.jU&&(document.documentElement.style.setProperty("--chakra-ui-color-mode",e),document.documentElement.setAttribute("data-theme",e))},p=function(){return"undefined"!==typeof Storage},g="chakra-ui-color-mode",h={get:function(e){if(!p())return e;try{var r=localStorage.getItem(g);return null!=r?r:e}catch(t){return a.Ts&&console.log(t),e}},set:function(e){if(p())try{localStorage.setItem(g,e)}catch(r){a.Ts&&console.log(r)}},type:"localStorage"},m=o.createContext({});a.Ts&&(m.displayName="ColorModeContext");var v=function(){var e=o.useContext(m);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function y(e){var r=e.value,t=e.children,i=e.options,l=i.useSystemColorMode,s=i.initialColorMode,p=e.colorModeManager,g=void 0===p?h:p,v="dark"===s?"dark":"light",y=o.useState("cookie"===g.type?g.get(v):v),x=y[0],w=y[1],k=(0,n.O)().document;o.useEffect((function(){if(a.jU&&"localStorage"===g.type){var e=d(v);if(l)return w(e);var r=f(),t=g.get();return w(r?r:t||("system"===s?e:v))}}),[g,l,v,s]),o.useEffect((function(){var e="dark"===x;c(e,k),b(e?"dark":"light")}),[x,k]);var S=o.useCallback((function(e,r){if(void 0===r&&(r=!1),r){if(g.get()&&!l)return}else g.set(e);w(e)}),[g,l]),E=o.useCallback((function(){S("light"===x?"dark":"light")}),[x,S]);o.useEffect((function(){var e,r=l||"system"===s;return r&&(e=function(e){if(!("matchMedia"in window))return a.ZT;var r=window.matchMedia(u),t=function(){e(r.matches?"dark":"light",!0)};return r.addEventListener("change",t),function(){r.removeEventListener("change",t)}}(S)),function(){e&&r&&e()}}),[S,l,s]);var C=o.useMemo((function(){return{colorMode:null!=r?r:x,toggleColorMode:r?a.ZT:E,setColorMode:r?a.ZT:S}}),[x,S,E,r]);return o.createElement(m.Provider,{value:C},t)}a.Ts&&(y.displayName="ColorModeProvider");a.Ts;a.Ts},97375:function(e,r,t){"use strict";t.d(r,{vc:function(){return p},kt:function(){return l},pY:function(){return s},Tx:function(){return c},Di:function(){return u},qY:function(){return m},Ck:function(){return y},s9:function(){return w},Gp:function(){return S},NW:function(){return C},Me:function(){return g},ZS:function(){return h},II:function(){return A},qq:function(){return B},O3:function(){return _},PO:function(){return R},bx:function(){return T},zq:function(){return E},rf:function(){return v}});var n=t(67294),a=t(78698),o=(t(20640),t(44592)),i=t(70580);function l(e){void 0===e&&(e=!1);var r=(0,n.useState)(e),t=r[0],a=r[1];return[t,{on:(0,n.useCallback)((function(){a(!0)}),[]),off:(0,n.useCallback)((function(){a(!1)}),[]),toggle:(0,n.useCallback)((function(){a((function(e){return!e}))}),[])}]}function s(e,r){var t=void 0!==e;return[t,t&&"undefined"!==typeof e?e:r]}function c(e){var r=e.value,t=e.defaultValue,i=e.onChange,l=e.shouldUpdate,s=void 0===l?function(e,r){return e!==r}:l,c=(0,a.u)(i),u=(0,a.u)(s),d=n.useState(t),f=d[0],b=d[1],p=void 0!==r,g=p?r:f,h=n.useCallback((function(e){var r=(0,o.Pu)(e,g);u(g,r)&&(p||b(r),c(r))}),[p,c,g,u]);return[g,h]}function u(e,r){var t=n.useState(null),o=t[0],l=t[1],s=n.useRef();return(0,a.a)((function(){if(e.current){var t=e.current;return n(),r&&(window.addEventListener("resize",n),window.addEventListener("scroll",n)),function(){r&&(window.removeEventListener("resize",n),window.removeEventListener("scroll",n)),s.current&&cancelAnimationFrame(s.current)}}function n(){s.current=requestAnimationFrame((function(){var e=(0,i.iz)(t);l(e)}))}}),[r]),o}function d(){return(d=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var f={current:1},b=n.createContext(f),p=n.memo((function(e){var r=e.children;return n.createElement(b.Provider,{value:{current:1}},r)}));function g(e,r){var t=n.useContext(b),a=n.useState(t.current),o=a[0],i=a[1];return n.useEffect((function(){i(function(e){return e.current++}(t))}),[t]),n.useMemo((function(){return e||[r,o].filter(Boolean).join("-")}),[e,r,o])}function h(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];var o=g(e);return n.useMemo((function(){return t.map((function(e){return e+"-"+o}))}),[o,t])}function m(e){void 0===e&&(e={});var r=e,t=r.onClose,i=r.onOpen,l=r.isOpen,c=r.id,u=(0,a.u)(i),f=(0,a.u)(t),b=n.useState(e.defaultIsOpen||!1),p=b[0],h=b[1],m=s(l,p),v=m[0],y=m[1],x=g(c,"disclosure"),w=n.useCallback((function(){v||h(!1),null==f||f()}),[v,f]),k=n.useCallback((function(){v||h(!0),null==u||u()}),[v,u]),S=n.useCallback((function(){(y?w:k)()}),[y,k,w]);return{isOpen:!!y,onOpen:k,onClose:w,onToggle:S,isControlled:v,getButtonProps:function(e){return void 0===e&&(e={}),d({},e,{"aria-expanded":"true","aria-controls":x,onClick:(0,o.v0)(e.onClick,S)})},getDisclosureProps:function(e){return void 0===e&&(e={}),d({},e,{hidden:!y,id:x})}}}var v=function(e,r){var t=n.useRef(!1);return n.useEffect((function(){if(t.current)return e();t.current=!0}),r),t.current};function y(e,r){var t=r.shouldFocus,n=r.visible,a=r.focusRef,i=t&&!n;v((function(){if(i&&!function(e){var r=e.current;if(!r)return!1;var t=(0,o.vY)(r);return!!t&&!(0,o.r3)(r,t)&&!!(0,o.Wq)(t)}(e)){var r=(null==a?void 0:a.current)||e.current;r&&(0,o.T_)(r,{nextTick:!0})}}),[i,e,a])}function x(e,r,t,n){return(0,a.b)((0,o.f7)(r),(0,o.JN)(t,"pointerdown"===r),e,n)}function w(e){var r=e.ref,t=e.elements,n=e.enabled,a=(0,o.Ao)("Safari");x((function(){return(0,o.lZ)(r.current)}),"pointerdown",(function(e){if(a&&n){var i=e.target,l=(null!=t?t:[r]).some((function(e){var r=(0,o.Ik)(e)?e.current:e;return(0,o.r3)(r,i)}));!(0,o.H9)(i)&&l&&(e.preventDefault(),(0,o.T_)(i))}}))}var k={preventScroll:!0,shouldFocus:!1};function S(e,r){void 0===r&&(r=k);var t=r,i=t.focusRef,l=t.preventScroll,s=t.shouldFocus,c=t.visible,u=(0,o.Ik)(e)?e.current:e,d=s&&c,f=(0,n.useCallback)((function(){if(u&&d&&!(0,o.r3)(u,document.activeElement))if(null!=i&&i.current)(0,o.T_)(i.current,{preventScroll:l,nextTick:!0});else{var e=(0,o.t5)(u);e.length>0&&(0,o.T_)(e[0],{preventScroll:l,nextTick:!0})}}),[d,l,u,i]);v((function(){f()}),[f]),(0,a.b)("transitionend",f,u)}function E(e,r){return void 0===r&&(r=[]),n.useEffect((function(){return function(){return e()}}),r)}function C(){var e=n.useRef(!1),r=n.useState(0),t=r[0],a=r[1];return E((function(){e.current=!0})),n.useCallback((function(){e.current||a(t+1)}),[t])}function A(e){var r=n.useRef(null);return r.current=e,r}function F(e,r){if(null!=e)if("function"!==typeof e)try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}else e(r)}function B(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n.useMemo((function(){return r.every((function(e){return null==e}))?null:function(e){r.forEach((function(r){r&&F(r,e)}))}}),r)}function _(e){var r=e.ref,t=e.handler,i=e.enabled,l=void 0===i||i,s=(0,a.u)(t),c=(0,n.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,n.useEffect)((function(){if(l){var e=function(e){D(e,r)&&(c.isPointerDown=!0)},n=function(e){c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&t&&D(e,r)&&(c.isPointerDown=!1,s(e))},a=function(e){c.ignoreEmulatedMouseEvents=!0,t&&c.isPointerDown&&D(e,r)&&(c.isPointerDown=!1,s(e))},i=(0,o.lZ)(r.current);return i.addEventListener("mousedown",e,!0),i.addEventListener("mouseup",n,!0),i.addEventListener("touchstart",e,!0),i.addEventListener("touchend",a,!0),function(){i.removeEventListener("mousedown",e,!0),i.removeEventListener("mouseup",n,!0),i.removeEventListener("touchstart",e,!0),i.removeEventListener("touchend",a,!0)}}}),[t,r,s,c,l])}function D(e,r){var t,n=e.target;if(e.button>0)return!1;if(n&&!(0,o.lZ)(n).body.contains(n))return!1;return!(null!=(t=r.current)&&t.contains(n))}function R(e,r){var t=r.onPan,a=r.onPanStart,i=r.onPanEnd,l=r.onPanSessionStart,s=r.onPanSessionEnd,c=r.threshold,u=Boolean(t||a||i||l||s),d=(0,n.useRef)(null),f={onSessionStart:l,onSessionEnd:s,onStart:a,onMove:t,onEnd:function(e,r){d.current=null,null==i||i(e,r)}};(0,n.useEffect)((function(){var e;null==(e=d.current)||e.updateHandlers(f)})),x((function(){return e.current}),"pointerdown",u?function(e){d.current=new o.Hc(e,f,c)}:o.ZT),E((function(){var e;null==(e=d.current)||e.end(),d.current=null}))}function T(e){void 0===e&&(e={});var r=e,t=r.timeout,a=void 0===t?300:t,o=r.preventDefault,i=void 0===o?function(){return!0}:o,l=n.useState([]),s=l[0],c=l[1],u=n.useRef(),d=function(){u.current&&(clearTimeout(u.current),u.current=null)};return n.useEffect((function(){return d}),[]),function(e){return function(r){if("Backspace"===r.key){var t=[].concat(s);return t.pop(),void c(t)}if(function(e){var r=e.key;return 1===r.length||r.length>1&&/[^a-zA-Z0-9]/.test(r)}(r)){var n=s.concat(r.key);i(r)&&(r.preventDefault(),r.stopPropagation()),c(n),e(n.join("")),d(),u.current=setTimeout((function(){c([]),u.current=null}),a)}}}}},78698:function(e,r,t){"use strict";t.d(r,{a:function(){return o},b:function(){return l},c:function(){return s},u:function(){return i}});var n=t(44592),a=t(67294),o=n.jU?a.useLayoutEffect:a.useEffect;function i(e,r){void 0===r&&(r=[]);var t=a.useRef(e);return o((function(){t.current=e})),a.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current.apply(t,r)}),r)}function l(e,r,t,o){var l=i(r);return a.useEffect((function(){var r,a=null!=(r=(0,n.Pu)(t))?r:document;return a.addEventListener(e,l,o),function(){a.removeEventListener(e,l,o)}}),[e,t,o,l]),function(){var r;(null!=(r=(0,n.Pu)(t))?r:document).removeEventListener(e,l,o)}}function s(e){var r=e.isOpen,t=e.ref,o=(0,a.useState)(r),i=o[0],s=o[1],c=(0,a.useState)(!1),u=c[0],d=c[1];return(0,a.useEffect)((function(){u||(s(r),d(!0))}),[r,u,i]),l("animationend",(function(){s(r)}),(function(){return t.current})),{present:!(!r&&(!i&&u)),onComplete:function(){var e,r=new((0,n.kR)(t.current).CustomEvent)("animationend",{bubbles:!0});null==(e=t.current)||e.dispatchEvent(r)}}}},46871:function(e,r,t){"use strict";t.d(r,{h_:function(){return k},hE:function(){return f}});var n=t(44592),a=t(52829),o=t(67294),i=t(97375),l=t(78698),s=t(73935),c=(0,a.kr)({strict:!1,name:"PortalManagerContext"}),u=c[0],d=c[1];function f(e){var r=e.children,t=e.zIndex;return o.createElement(u,{value:{zIndex:t}},r)}function b(){return(b=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}n.Ts&&(f.displayName="PortalManager");var p=["containerRef"],g=(0,a.kr)({strict:!1,name:"PortalContext"}),h=g[0],m=g[1],v="chakra-portal",y=function(e){return o.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children)},x=function(e){var r=e.appendToParentPortal,t=e.children,n=o.useRef(null),a=o.useRef(null),c=(0,i.NW)(),u=m(),f=d();(0,l.a)((function(){if(n.current){var e=n.current.ownerDocument,t=r&&null!=u?u:e.body;if(t){a.current=e.createElement("div"),a.current.className=v,t.appendChild(a.current),c();var o=a.current;return function(){t.contains(o)&&t.removeChild(o)}}}}),[]);var b=null!=f&&f.zIndex?o.createElement(y,{zIndex:null==f?void 0:f.zIndex},t):t;return a.current?(0,s.createPortal)(o.createElement(h,{value:a.current},b),a.current):o.createElement("span",{ref:n})},w=function(e){var r=e.children,t=e.containerRef,a=e.appendToParentPortal,c=t.current,u=null!=c?c:n.jU?document.body:void 0,d=o.useMemo((function(){var e=null==c?void 0:c.ownerDocument.createElement("div");return e&&(e.className=v),e}),[c]),f=(0,i.NW)();return(0,l.a)((function(){f()}),[]),(0,l.a)((function(){if(d&&u)return u.appendChild(d),function(){u.removeChild(d)}}),[d,u]),u&&d?(0,s.createPortal)(o.createElement(h,{value:a?d:null},r),d):null};function k(e){var r=e.containerRef,t=function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,p);return r?o.createElement(w,b({containerRef:r},t)):o.createElement(x,t)}k.defaultProps={appendToParentPortal:!0},k.className=v,k.selector=".chakra-portal",n.Ts&&(k.displayName="Portal")},85393:function(e,r,t){"use strict";t.d(r,{u:function(){return d},O:function(){return u}});var n=t(44592),a=t(67294),o={body:{classList:{add:function(){},remove:function(){}}},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}}},i=function(){},l={window:{document:o,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:i,removeEventListener:i,getComputedStyle:function(){return{getPropertyValue:function(){return""}}},matchMedia:function(){return{matches:!1,addListener:i,removeListener:i}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:function(){return 0},clearTimeout:i,setInterval:function(){return 0},clearInterval:i},document:o},s=n.jU?{window:window,document:document}:l,c=(0,a.createContext)(s);function u(){return(0,a.useContext)(c)}function d(e){var r=e.children,t=e.environment,n=(0,a.useState)(null),o=n[0],i=n[1],l=(0,a.useMemo)((function(){var e,r=null==o?void 0:o.ownerDocument,n=null==o?void 0:o.ownerDocument.defaultView;return null!=(e=null!=t?t:r?{document:r,window:n}:void 0)?e:s}),[o,t]),u=!o&&!t;return a.createElement(c.Provider,{value:l},r,u&&a.createElement("span",{ref:function(e){e&&i(e)}}))}n.Ts&&(c.displayName="EnvironmentContext"),n.Ts&&(d.displayName="EnvironmentProvider")},52829:function(e,r,t){"use strict";t.d(r,{kr:function(){return s},WR:function(){return c},lq:function(){return l}});t(38554),t(9839);function n(e){return"function"===typeof e}!function(e){var r=new WeakMap}((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n<a.length&&e;n+=1)e=e[a[n]];return void 0===e?t:e}));"undefined"===typeof window||!window.document||window.document.createElement;["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 a(e){var r;return function(){if(e){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];r=e.apply(this,n),e=null}return r}}a((function(e){return function(){e.condition,e.message}})),a((function(e){return function(){e.condition,e.message}}));Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;Object.freeze(["base","sm","md","lg","xl","2xl"]);var o=t(67294);function i(e,r){if(null!=e)if(n(e))e(r);else try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}}function l(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){r.forEach((function(r){return i(r,e)}))}}function s(e){void 0===e&&(e={});var r=e,t=r.strict,n=void 0===t||t,a=r.errorMessage,i=void 0===a?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":a,l=r.name,s=o.createContext(void 0);return s.displayName=l,[s.Provider,function e(){var r=o.useContext(s);if(!r&&n){var t=new Error(i);throw t.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(t,e),t}return r},s]}function c(e){return o.Children.toArray(e).filter((function(e){return o.isValidElement(e)}))}},94244:function(e,r,t){"use strict";t.d(r,{iv:function(){return Ee},ZR:function(){return xe},oE:function(){return me},cC:function(){return ve},c0:function(){return He},fr:function(){return l}});var n=t(44592),a=t(38554),o=t.n(a);function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var l=function(e,r){return function(t){var a=String(r),o=e?e+"."+a:a;return(0,n.Kn)(t.__cssMap)&&o in t.__cssMap?t.__cssMap[o].varRef:r}};function s(e){var r=e.scale,t=e.transform,n=e.compose;return function(e,a){var o,i=l(r,e)(a),s=null!=(o=null==t?void 0:t(i,a))?o:i;return n&&(s=n(s,a)),s}}function c(e,r){return function(t){var n={property:t,scale:e};return n.transform=s({scale:e,transform:r}),n}}var u,d,f=function(e){var r=e.rtl,t=e.ltr;return function(e){return"rtl"===e.direction?r:t}};var b=["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 p={"--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(" ")},g={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 h={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m="& > :not(style) ~ :not(style)",v=((u={})[m]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},u),y=((d={})[m]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},d);function x(e,r){return(x=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function w(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&x(e,r)}function k(){k=function(e,r){return new t(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function t(e,n,a){var o=new RegExp(e,n);return r.set(o,a||r.get(e)),x(o,t.prototype)}function n(e,t){var n=r.get(t);return Object.keys(n).reduce((function(r,t){return r[t]=e[n[t]],r}),Object.create(null))}return w(t,RegExp),t.prototype.exec=function(r){var t=e.exec.call(this,r);return t&&(t.groups=n(t,this)),t},t.prototype[Symbol.replace]=function(t,a){if("string"===typeof a){var o=r.get(this);return e[Symbol.replace].call(this,t,a.replace(/\$<([^>]+)>/g,(function(e,r){return"$"+o[r]})))}if("function"===typeof a){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!==typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)}))}return e[Symbol.replace].call(this,t,a)},k.apply(this,arguments)}var S={"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"},E=new Set(Object.values(S)),C=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),A=function(e){return e.trim()};var F=function(e){return(0,n.HD)(e)&&e.includes("(")&&e.includes(")")},B=function(e){return function(r){return e+"("+r+")"}},_={filter:function(e){return"auto"!==e?e:p},backdropFilter:function(e){return"auto"!==e?e:g},ring:function(e){return 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(", ")}}(_.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(b).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(b).join(" "):e},px:function(e){return null==e?e:function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e).unitless||(0,n.hj)(e)?e+"px":e},fraction:function(e){return!(0,n.hj)(e)||e>1?e:100*e+"%"},float:function(e,r){return"rtl"===r.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,n.FS)(e)||null==e)return e;var r=(0,n.HD)(e)&&!e.endsWith("deg");return(0,n.hj)(e)||r?e+"deg":e},gradient:function(e,r){return function(e,r){var t,n;if(null==e||C.has(e))return e;var a=null!=(t=null==(n=k(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?t:{},o=a.type,i=a.values;if(!o||!i)return e;var l=o.includes("-gradient")?o:o+"-gradient",s=i.split(",").map(A).filter(Boolean),c=s[0],u=s.slice(1);if(0===(null==u?void 0:u.length))return e;var d=c in S?S[c]:c;return u.unshift(d),l+"("+u.map((function(e){if(E.has(e))return e;var t=e.indexOf(" "),n=-1!==t?[e.substr(0,t),e.substr(t+1)]:[e],a=n[0],o=n[1],i=F(o)?o:o&&o.split(" "),l="colors."+a,s=l in r.__cssMap?r.__cssMap[l].varRef:a;return i?[s].concat(Array.isArray(i)?i:[i]).join(" "):s})).join(", ")+")"}(e,null!=r?r:{})},blur:B("blur"),opacity:B("opacity"),brightness:B("brightness"),contrast:B("contrast"),dropShadow:B("drop-shadow"),grayscale:B("grayscale"),hueRotate:B("hue-rotate"),invert:B("invert"),saturate:B("saturate"),sepia:B("sepia"),bgImage:function(e){return null==e||F(e)||C.has(e)?e:"url("+e+")"},outline:function(e){var r="0"===String(e)||"none"===String(e);return null!==e&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var r,t=null!=(r=h[e])?r:{},n=t.space,a=t.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},D={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),radii:c("radii",_.px),space:c("space",_.px),spaceT:c("space",_.px),degreeT:function(e){return{property:e,transform:_.degree}},prop:function(e,r,t){return i({property:e,scale:r},r&&{transform:s({scale:r,transform:t})})},propT:function(e,r){return{property:e,transform:r}},sizes:c("sizes",_.px),sizesT:c("sizes",_.fraction),shadows:c("shadows"),logical:function(e){var r=e.property,t=e.scale,n=e.transform;return{scale:t,property:f(r),transform:t?s({scale:t,compose:n}):n}},blur:c("blur",_.blur)},R={background:D.colors("background"),backgroundColor:D.colors("backgroundColor"),backgroundImage:D.propT("backgroundImage",_.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:D.prop("backgroundSize"),bgPosition:D.prop("backgroundPosition"),bg:D.colors("background"),bgColor:D.colors("backgroundColor"),bgPos:D.prop("backgroundPosition"),bgRepeat:D.prop("backgroundRepeat"),bgAttachment:D.prop("backgroundAttachment"),bgGradient:D.propT("backgroundImage",_.gradient),bgClip:{transform:_.bgClip}};Object.assign(R,{bgImage:R.backgroundImage,bgImg:R.backgroundImage});var T={border:D.borders("border"),borderWidth:D.borderWidths("borderWidth"),borderStyle:D.borderStyles("borderStyle"),borderColor:D.colors("borderColor"),borderRadius:D.radii("borderRadius"),borderTop:D.borders("borderTop"),borderBlockStart:D.borders("borderBlockStart"),borderTopLeftRadius:D.radii("borderTopLeftRadius"),borderStartStartRadius:D.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:D.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:D.radii("borderTopRightRadius"),borderStartEndRadius:D.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:D.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:D.borders("borderRight"),borderInlineEnd:D.borders("borderInlineEnd"),borderBottom:D.borders("borderBottom"),borderBlockEnd:D.borders("borderBlockEnd"),borderBottomLeftRadius:D.radii("borderBottomLeftRadius"),borderBottomRightRadius:D.radii("borderBottomRightRadius"),borderLeft:D.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:D.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:D.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:D.borders(["borderLeft","borderRight"]),borderInline:D.borders("borderInline"),borderY:D.borders(["borderTop","borderBottom"]),borderBlock:D.borders("borderBlock"),borderTopWidth:D.borderWidths("borderTopWidth"),borderBlockStartWidth:D.borderWidths("borderBlockStartWidth"),borderTopColor:D.colors("borderTopColor"),borderBlockStartColor:D.colors("borderBlockStartColor"),borderTopStyle:D.borderStyles("borderTopStyle"),borderBlockStartStyle:D.borderStyles("borderBlockStartStyle"),borderBottomWidth:D.borderWidths("borderBottomWidth"),borderBlockEndWidth:D.borderWidths("borderBlockEndWidth"),borderBottomColor:D.colors("borderBottomColor"),borderBlockEndColor:D.colors("borderBlockEndColor"),borderBottomStyle:D.borderStyles("borderBottomStyle"),borderBlockEndStyle:D.borderStyles("borderBlockEndStyle"),borderLeftWidth:D.borderWidths("borderLeftWidth"),borderInlineStartWidth:D.borderWidths("borderInlineStartWidth"),borderLeftColor:D.colors("borderLeftColor"),borderInlineStartColor:D.colors("borderInlineStartColor"),borderLeftStyle:D.borderStyles("borderLeftStyle"),borderInlineStartStyle:D.borderStyles("borderInlineStartStyle"),borderRightWidth:D.borderWidths("borderRightWidth"),borderInlineEndWidth:D.borderWidths("borderInlineEndWidth"),borderRightColor:D.colors("borderRightColor"),borderInlineEndColor:D.colors("borderInlineEndColor"),borderRightStyle:D.borderStyles("borderRightStyle"),borderInlineEndStyle:D.borderStyles("borderInlineEndStyle"),borderTopRadius:D.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:D.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:D.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:D.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(T,{rounded:T.borderRadius,roundedTop:T.borderTopRadius,roundedTopLeft:T.borderTopLeftRadius,roundedTopRight:T.borderTopRightRadius,roundedTopStart:T.borderStartStartRadius,roundedTopEnd:T.borderStartEndRadius,roundedBottom:T.borderBottomRadius,roundedBottomLeft:T.borderBottomLeftRadius,roundedBottomRight:T.borderBottomRightRadius,roundedBottomStart:T.borderEndStartRadius,roundedBottomEnd:T.borderEndEndRadius,roundedLeft:T.borderLeftRadius,roundedRight:T.borderRightRadius,roundedStart:T.borderInlineStartRadius,roundedEnd:T.borderInlineEndRadius,borderStart:T.borderInlineStart,borderEnd:T.borderInlineEnd,borderTopStartRadius:T.borderStartStartRadius,borderTopEndRadius:T.borderStartEndRadius,borderBottomStartRadius:T.borderEndStartRadius,borderBottomEndRadius:T.borderEndEndRadius,borderStartRadius:T.borderInlineStartRadius,borderEndRadius:T.borderInlineEndRadius,borderStartWidth:T.borderInlineStartWidth,borderEndWidth:T.borderInlineEndWidth,borderStartColor:T.borderInlineStartColor,borderEndColor:T.borderInlineEndColor,borderStartStyle:T.borderInlineStartStyle,borderEndStyle:T.borderInlineEndStyle});var z={color:D.colors("color"),textColor:D.colors("color"),fill:D.colors("fill"),stroke:D.colors("stroke")},P={boxShadow:D.shadows("boxShadow"),mixBlendMode:!0,blendMode:D.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:D.prop("backgroundBlendMode"),opacity:!0};Object.assign(P,{shadow:P.boxShadow});var M={filter:{transform:_.filter},blur:D.blur("--chakra-blur"),brightness:D.propT("--chakra-brightness",_.brightness),contrast:D.propT("--chakra-contrast",_.contrast),hueRotate:D.degreeT("--chakra-hue-rotate"),invert:D.propT("--chakra-invert",_.invert),saturate:D.propT("--chakra-saturate",_.saturate),dropShadow:D.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:D.blur("--chakra-backdrop-blur"),backdropBrightness:D.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:D.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:D.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:D.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:D.propT("--chakra-backdrop-saturate",_.saturate)},j={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},experimental_spaceX:{static:v,transform:s({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:y,transform:s({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:D.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:D.space("gap"),rowGap:D.space("rowGap"),columnGap:D.space("columnGap")};Object.assign(j,{flexDir:j.flexDirection});var O={gridGap:D.space("gridGap"),gridColumnGap:D.space("gridColumnGap"),gridRowGap:D.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},I={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:D.colors("outlineColor")},W={width:D.sizesT("width"),inlineSize:D.sizesT("inlineSize"),height:D.sizes("height"),blockSize:D.sizes("blockSize"),boxSize:D.sizes(["width","height"]),minWidth:D.sizes("minWidth"),minInlineSize:D.sizes("minInlineSize"),minHeight:D.sizes("minHeight"),minBlockSize:D.sizes("minBlockSize"),maxWidth:D.sizes("maxWidth"),maxInlineSize:D.sizes("maxInlineSize"),maxHeight:D.sizes("maxHeight"),maxBlockSize:D.sizes("maxBlockSize"),d:D.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:D.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(W,{w:W.width,h:W.height,minW:W.minWidth,maxW:W.maxWidth,minH:W.minHeight,maxH:W.maxHeight,overscroll:W.overscrollBehavior,overscrollX:W.overscrollBehaviorX,overscrollY:W.overscrollBehaviorY});var N={listStyleType:!0,listStylePosition:!0,listStylePos:D.prop("listStylePosition"),listStyleImage:!0,listStyleImg:D.prop("listStyleImage")},L={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"},$=function(e,r,t){var a={},o=(0,n.Wf)(e,r,{});for(var i in o){i in t&&null!=t[i]||(a[i]=o[i])}return a},q={srOnly:{transform:function(e){return!0===e?L:"focusable"===e?H:{}}},layerStyle:{processResult:!0,transform:function(e,r,t){return $(r,"layerStyles."+e,t)}},textStyle:{processResult:!0,transform:function(e,r,t){return $(r,"textStyles."+e,t)}},apply:{processResult:!0,transform:function(e,r,t){return $(r,e,t)}}},Z={position:!0,pos:D.prop("position"),zIndex:D.prop("zIndex","zIndices"),inset:D.spaceT("inset"),insetX:D.spaceT(["left","right"]),insetInline:D.spaceT("insetInline"),insetY:D.spaceT(["top","bottom"]),insetBlock:D.spaceT("insetBlock"),top:D.spaceT("top"),insetBlockStart:D.spaceT("insetBlockStart"),bottom:D.spaceT("bottom"),insetBlockEnd:D.spaceT("insetBlockEnd"),left:D.spaceT("left"),insetInlineStart:D.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:D.spaceT("right"),insetInlineEnd:D.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var U={ring:{transform:_.ring},ringColor:D.colors("--chakra-ring-color"),ringOffset:D.prop("--chakra-ring-offset-width"),ringOffsetColor:D.colors("--chakra-ring-offset-color"),ringInset:D.prop("--chakra-ring-inset")},V={margin:D.spaceT("margin"),marginTop:D.spaceT("marginTop"),marginBlockStart:D.spaceT("marginBlockStart"),marginRight:D.spaceT("marginRight"),marginInlineEnd:D.spaceT("marginInlineEnd"),marginBottom:D.spaceT("marginBottom"),marginBlockEnd:D.spaceT("marginBlockEnd"),marginLeft:D.spaceT("marginLeft"),marginInlineStart:D.spaceT("marginInlineStart"),marginX:D.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:D.spaceT("marginInline"),marginY:D.spaceT(["marginTop","marginBottom"]),marginBlock:D.spaceT("marginBlock"),padding:D.space("padding"),paddingTop:D.space("paddingTop"),paddingBlockStart:D.space("paddingBlockStart"),paddingRight:D.space("paddingRight"),paddingBottom:D.space("paddingBottom"),paddingBlockEnd:D.space("paddingBlockEnd"),paddingLeft:D.space("paddingLeft"),paddingInlineStart:D.space("paddingInlineStart"),paddingInlineEnd:D.space("paddingInlineEnd"),paddingX:D.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:D.space("paddingInline"),paddingY:D.space(["paddingTop","paddingBottom"]),paddingBlock:D.space("paddingBlock")};Object.assign(V,{m:V.margin,mt:V.marginTop,mr:V.marginRight,me:V.marginInlineEnd,marginEnd:V.marginInlineEnd,mb:V.marginBottom,ml:V.marginLeft,ms:V.marginInlineStart,marginStart:V.marginInlineStart,mx:V.marginX,my:V.marginY,p:V.padding,pt:V.paddingTop,py:V.paddingY,px:V.paddingX,pb:V.paddingBottom,pl:V.paddingLeft,ps:V.paddingInlineStart,paddingStart:V.paddingInlineStart,pr:V.paddingRight,pe:V.paddingInlineEnd,paddingEnd:V.paddingInlineEnd});var Y={textDecorationColor:D.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:D.shadows("textShadow")},X={clipPath:!0,transform:D.propT("transform",_.transform),transformOrigin:!0,translateX:D.spaceT("--chakra-translate-x"),translateY:D.spaceT("--chakra-translate-y"),skewX:D.degreeT("--chakra-skew-x"),skewY:D.degreeT("--chakra-skew-y"),scaleX:D.prop("--chakra-scale-x"),scaleY:D.prop("--chakra-scale-y"),scale:D.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:D.degreeT("--chakra-rotate")},G={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:D.prop("transitionDuration","transition.duration"),transitionProperty:D.prop("transitionProperty","transition.property"),transitionTimingFunction:D.prop("transitionTimingFunction","transition.easing")},K={fontFamily:D.prop("fontFamily","fonts"),fontSize:D.prop("fontSize","fontSizes",_.px),fontWeight:D.prop("fontWeight","fontWeights"),lineHeight:D.prop("lineHeight","lineHeights"),letterSpacing:D.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"}}}},J={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:D.spaceT("scrollMargin"),scrollMarginTop:D.spaceT("scrollMarginTop"),scrollMarginBottom:D.spaceT("scrollMarginBottom"),scrollMarginLeft:D.spaceT("scrollMarginLeft"),scrollMarginRight:D.spaceT("scrollMarginRight"),scrollMarginX:D.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:D.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:D.spaceT("scrollPadding"),scrollPaddingTop:D.spaceT("scrollPaddingTop"),scrollPaddingBottom:D.spaceT("scrollPaddingBottom"),scrollPaddingLeft:D.spaceT("scrollPaddingLeft"),scrollPaddingRight:D.spaceT("scrollPaddingRight"),scrollPaddingX:D.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:D.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Q(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function ee(e,r){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"===typeof e)return Q(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Q(e,r):void 0}}(e))||r&&e&&"number"===typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 re=function(e,r){return e+":hover "+r+", "+e+"[data-hover] "+r},te=function(e,r){return e+":focus "+r+", "+e+"[data-focus] "+r},ne=function(e,r){return e+":focus-visible "+r},ae=function(e,r){return e+":focus-within "+r},oe=function(e,r){return e+":active "+r+", "+e+"[data-active] "+r},ie=function(e,r){return e+":disabled "+r+", "+e+"[data-disabled] "+r},le=function(e,r){return e+":invalid "+r+", "+e+"[data-invalid] "+r},se=function(e,r){return e+":checked "+r+", "+e+"[data-checked] "+r},ce=function(e,r){return e+":placeholder-shown "+r},ue=function(e){return fe((function(r){return e(r,"&")}),"[role=group]","[data-group]",".group")},de=function(e){return fe((function(r){return e(r,"~ &")}),"[data-peer]",".peer")},fe=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.map(e).join(", ")},be={_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:ue(re),_peerHover:de(re),_groupFocus:ue(te),_peerFocus:de(te),_groupFocusVisible:ue(ne),_peerFocusVisible:de(ne),_groupActive:ue(oe),_peerActive:de(oe),_groupDisabled:ue(ie),_peerDisabled:de(ie),_groupInvalid:ue(le),_peerInvalid:de(le),_groupChecked:ue(se),_peerChecked:de(se),_groupFocusWithin:ue(ae),_peerFocusWithin:de(ae),_peerPlaceholderShown:de(ce),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},pe=(0,n.Yd)(be),ge=o()({},R,T,z,j,W,M,U,I,O,q,Z,P,V,J,K,Y,X,N,G),he=Object.assign({},V,W,j,O,Z),me=(0,n.Yd)(he),ve=[].concat((0,n.Yd)(ge),pe),ye=i({},ge,be),xe=function(e){return e in ye},we=function(e,r){return e.startsWith("--")&&(0,n.HD)(r)&&!(0,n.FS)(r)},ke=function(e,r){var t,n;if(null==r)return r;var a=function(r){var t,n;return null==(t=e.__cssMap)||null==(n=t[r])?void 0:n.varRef},o=function(e){var r;return null!=(r=a(e))?r:e},i=r.split(",").map((function(e){return e.trim()})),l=i[0],s=i[1];return r=null!=(t=null!=(n=a(l))?n:o(s))?t:o(r)};function Se(e){var r=e.configs,t=void 0===r?{}:r,a=e.pseudos,i=void 0===a?{}:a,l=e.theme;return function e(r,a){void 0===a&&(a=!1);var s=(0,n.Pu)(r,l),c=function(e){return function(r){if(!r.__breakpoints)return e;var t=r.__breakpoints,a=t.isResponsive,o=t.toArrayValue,i=t.media,l={};for(var s in e){var c=(0,n.Pu)(e[s],r);if(null!=c)if(c=(0,n.Kn)(c)&&a(c)?o(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?(l[f]=l[f]||{},null!=c[d]&&(l[f][s]=c[d])):l[s]=c[d]}else l[s]=c}return l}}(s)(l),u={};for(var d in c){var f,b,p,g,h,m=c[d],v=(0,n.Pu)(m,l);d in i&&(d=i[d]),we(d,v)&&(v=ke(l,v));var y=t[d];if(!0===y&&(y={property:d}),(0,n.Kn)(v)){var x;u[d]=null!=(x=u[d])?x:{},u[d]=o()({},u[d],e(v,!0))}else{var w=null!=(f=null==(b=y)||null==b.transform?void 0:b.transform(v,l,s))?f:v;w=null!=(p=y)&&p.processResult?e(w,!0):w;var k=(0,n.Pu)(null==(g=y)?void 0:g.property,l);if(!a&&null!=(h=y)&&h.static){var S=(0,n.Pu)(y.static,l);u=o()({},u,S)}if(k&&Array.isArray(k))for(var E,C=ee(k);!(E=C()).done;){u[E.value]=w}else k?"&"===k&&(0,n.Kn)(w)?u=o()({},u,w):u[k]=w:(0,n.Kn)(w)?u=o()({},u,w):u[d]=w}}return u}}var Ee=function(e){return function(r){return Se({theme:r,pseudos:be,configs:ge})(e)}};function Ce(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var Ae=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.map(Ce).join(" "+e+" ").replace(/calc/g,"")},Fe=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ae.apply(void 0,["+"].concat(r))+")"},Be=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ae.apply(void 0,["-"].concat(r))+")"},_e=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ae.apply(void 0,["*"].concat(r))+")"},De=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ae.apply(void 0,["/"].concat(r))+")"},Re=function(e){var r=Ce(e);return null==r||Number.isNaN(parseFloat(r))?_e(r,-1):String(r).startsWith("-")?String(r).slice(1):"-"+r},Te=Object.assign((function(e){return{add:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Te(Fe.apply(void 0,[e].concat(t)))},subtract:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Te(Be.apply(void 0,[e].concat(t)))},multiply:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Te(_e.apply(void 0,[e].concat(t)))},divide:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Te(De.apply(void 0,[e].concat(t)))},negate:function(){return Te(Re(e))},toString:function(){return e.toString()}}}),{add:Fe,subtract:Be,multiply:_e,divide:De,negate:Re});function ze(e){var r=function(e,r){return void 0===r&&(r="-"),e.replace(/\s+/g,r)}(e.toString());return r.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?r.replace(".","\\."):e}function Pe(e,r){return"var("+ze(e)+(r?", "+r:"")+")"}function Me(e,r){return void 0===r&&(r=""),"--"+function(e,r){return void 0===r&&(r=""),[r,ze(e)].filter(Boolean).join("-")}(e,r)}function je(e,r){return function(e,r,t){var n=Me(e,t);return{variable:n,reference:Pe(n,r)}}(String(e).replace(/\./g,"-"),void 0,r)}function Oe(e,r){for(var t={},a={},i=function(){var i=s[l],c=i[0],u=i[1],d=u.isSemantic,f=u.value,b=je(c,null==r?void 0:r.cssVarPrefix),p=b.variable,g=b.reference;if(!d){if(c.startsWith("space")){var h=c.split("."),m=h[0]+".-"+h.slice(1).join("."),v=Te.negate(f),y=Te.negate(g);a[m]={value:v,var:p,varRef:y}}return t[p]=f,a[c]={value:f,var:p,varRef:g},"continue"}var x=(0,n.Kn)(f)?f:{default:f};t=o()(t,Object.entries(x).reduce((function(t,n){var a,o,i=n[0],l=function(t){var n=[String(c).split(".")[0],t].join(".");return e[n]?je(n,null==r?void 0:r.cssVarPrefix).reference:t}(n[1]);return"default"===i?(t[p]=l,t):(t[null!=(a=null==be?void 0:be[i])?a:i]=((o={})[p]=l,o),t)}),{})),a[c]={value:g,var:p,varRef:g}},l=0,s=Object.entries(e);l<s.length;l++)i();return{cssVars:t,cssMap:a}}var Ie=["__cssMap","__cssVars","__breakpoints"],We=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function Ne(e){var r=We;return(0,n.ei)(e,r)}function Le(e){return e.__cssMap,e.__cssVars,e.__breakpoints,function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,Ie)}function He(e){var r,t=Le(e),a=Oe(function(e){var r,t,a=e.tokens,o=e.semanticTokens,i=Object.entries(null!=(r=(0,n.xH)(a))?r:{}).map((function(e){return[e[0],{isSemantic:!1,value:e[1]}]})),l=Object.entries(null!=(t=(0,n.xH)(o,1))?t:{}).map((function(e){return[e[0],{isSemantic:!0,value:e[1]}]}));return(0,n.sq)([].concat(i,l))}({tokens:Ne(t),semanticTokens:function(e){return e.semanticTokens}(t)}),{cssVarPrefix:null==(r=t.config)?void 0:r.cssVarPrefix}),o=a.cssMap,l=a.cssVars;return Object.assign(t,{__cssVars:i({},{"--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"},l),__cssMap:o,__breakpoints:(0,n.yn)(t.breakpoints)}),t}},105:function(e,r,t){"use strict";t.d(r,{ZL:function(){return P},Fo:function(){return T},f6:function(){return B},m$:function(){return $},Gp:function(){return q},Lr:function(){return M},jC:function(){return V},mq:function(){return U},yK:function(){return z},Fg:function(){return D}});var n=t(20949),a=t(94244),o=t(70917),i=t(31421),l=t(44592),s=t(38554),c=t.n(s),u=t(67294),d=t(69590),f=t.n(d),b=t(52829),p=t(87462),g=t(67866),h=/^((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|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,g.Z)((function(e){return h.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),v=t(70444),y=t(94199),x=m,w=function(e){return"theme"!==e},k=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?x:w},S=function(e,r,t){var n;if(r){var a=r.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(r){return e.__emotion_forwardProp(r)&&a(r)}:a}return"function"!==typeof n&&t&&(n=e.__emotion_forwardProp),n},E=function(){return null},C=function e(r,t){var n,a,o=r.__emotion_real===r,l=o&&r.__emotion_base||r;void 0!==t&&(n=t.label,a=t.target);var s=S(r,t,o),c=s||k(l),d=!c("as");return function(){var f=arguments,b=o&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==n&&b.push("label:"+n+";"),null==f[0]||void 0===f[0].raw)b.push.apply(b,f);else{0,b.push(f[0][0]);for(var g=f.length,h=1;h<g;h++)b.push(f[h],f[0][h])}var m=(0,i.w)((function(e,r,t){var n=d&&e.as||l,o="",f=[],p=e;if(null==e.theme){for(var g in p={},e)p[g]=e[g];p.theme=(0,u.useContext)(i.T)}"string"===typeof e.className?o=(0,v.f)(r.registered,f,e.className):null!=e.className&&(o=e.className+" ");var h=(0,y.O)(b.concat(f),r.registered,p);(0,v.M)(r,h,"string"===typeof n);o+=r.key+"-"+h.name,void 0!==a&&(o+=" "+a);var m=d&&void 0===s?k(n):c,x={};for(var w in e)d&&"as"===w||m(w)&&(x[w]=e[w]);x.className=o,x.ref=t;var S=(0,u.createElement)(n,x),C=(0,u.createElement)(E,null);return(0,u.createElement)(u.Fragment,null,C,S)}));return m.displayName=void 0!==n?n:"Styled("+("string"===typeof l?l:l.displayName||l.name||"Component")+")",m.defaultProps=r.defaultProps,m.__emotion_real=m,m.__emotion_base=l,m.__emotion_styles=b,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(r,n){return e(r,(0,p.Z)({},t,n,{shouldForwardProp:S(m,n,!0)})).apply(void 0,b)},m}}.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){C[e]=C(e)}));var A=C;function F(){return(F=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var B=function(e){var r=e.cssVarsRoot,t=e.theme,n=e.children,o=u.useMemo((function(){return(0,a.c0)(t)}),[t]);return u.createElement(i.a,{theme:o},u.createElement(_,{root:r}),n)},_=function(e){var r=e.root,t=void 0===r?":host, :root":r;return u.createElement(o.xB,{styles:function(e){var r;return(r={})[t]=e.__cssVars,r}})};function D(){var e=u.useContext(i.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var R=(0,b.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),T=R[0],z=R[1],P=function(){var e=(0,n.If)().colorMode;return u.createElement(o.xB,{styles:function(r){var t=(0,l.Wf)(r,"styles.global"),n=(0,l.Pu)(t,{theme:r,colorMode:e});if(n){var o=(0,a.iv)(n)(r);return o}}})};function M(e){return(0,l.CE)(e,["styleConfig","size","variant","colorScheme"])}function j(){return F({},(0,n.If)(),{theme:D()})}function O(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}var I=new Set([].concat(a.cC,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),W=new Set(["htmlWidth","htmlHeight","htmlSize"]),N=function(e){return W.has(e)||!I.has(e)},L=["theme","css","__css","sx"],H=["baseStyle"];var $=function(e,r){var t=null!=r?r:{},n=t.baseStyle,o=O(t,H);o.shouldForwardProp||(o.shouldForwardProp=N);var i=function(e){var r=e.baseStyle;return function(e){e.theme;var t=e.css,n=e.__css,o=e.sx,i=O(e,L),s=(0,l.lw)(i,(function(e,r){return(0,a.ZR)(r)})),c=(0,l.Pu)(r,e),u=Object.assign({},n,c,(0,l.YU)(s),o),d=(0,a.iv)(u)(e.theme);return t?[d,t]:d}}({baseStyle:n});return A(e,o)(i)};function q(e){return u.forwardRef(e)}["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"].forEach((function(e){$[e]=$(e)}));var Z=["styleConfig"];function U(e,r,t){var n;void 0===r&&(r={}),void 0===t&&(t={});var a=r,o=a.styleConfig,i=O(a,Z),s=j(),d=s.theme,b=s.colorMode,p=(0,l.Wf)(d,"components."+e),g=o||p,h=c()({theme:d,colorMode:b},null!=(n=null==g?void 0:g.defaultProps)?n:{},(0,l.YU)((0,l.CE)(i,["children"]))),m=(0,u.useRef)({});if(g){var v,y,x,w,k,S,E=(0,l.Pu)(null!=(v=g.baseStyle)?v:{},h),C=(0,l.Pu)(null!=(y=null==(x=g.variants)?void 0:x[h.variant])?y:{},h),A=(0,l.Pu)(null!=(w=null==(k=g.sizes)?void 0:k[h.size])?w:{},h),F=c()({},E,A,C);null!=(S=t)&&S.isMultiPart&&g.parts&&g.parts.forEach((function(e){var r;F[e]=null!=(r=F[e])?r:{}})),f()(m.current,F)||(m.current=F)}return m.current}function V(e,r){return U(e,r,{isMultiPart:!0})}},44592:function(e,r,t){"use strict";t.d(r,{Hc:function(){return ze},Ts:function(){return m},jX:function(){return o},yn:function(){return P},Qm:function(){return H},PP:function(){return ie},v0:function(){return oe},HU:function(){return we},r3:function(){return Z},cx:function(){return $},PB:function(){return L},Ao:function(){return Ne},VI:function(){return he},YU:function(){return C},xH:function(){return ge},T_:function(){return be},sq:function(){return F},vY:function(){return q},t5:function(){return re},K1:function(){return B},LP:function(){return l},lZ:function(){return I},kR:function(){return O},f7:function(){return Re},wN:function(){return V},H9:function(){return G},kJ:function(){return c},jU:function(){return N},FS:function(){return h},Qr:function(){return b},mf:function(){return u},Re:function(){return j},kA:function(){return y},Ft:function(){return p},hj:function(){return s},Kn:function(){return f},Ik:function(){return v},n_:function(){return Y},HD:function(){return g},Wq:function(){return Q},o8:function(){return d},XQ:function(){return We},Wf:function(){return S},ZT:function(){return se},uh:function(){return U},lw:function(){return E},Yd:function(){return A},CE:function(){return x},WS:function(){return ye},ei:function(){return w},zG:function(){return ue},px:function(){return _},cl:function(){return i},WP:function(){return xe},Pu:function(){return ae},Vl:function(){return k},Rg:function(){return ve},ZK:function(){return ce},JN:function(){return Be}});t(38554);var n=t(9839);function a(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}function o(e,r){return[].concat(e,[r])}function i(e,r){return e.filter((function(e){return e!==r}))}function l(e,r,t,n){if(null==r)return n;if(!n)return e.find((function(e){return t(e).toLowerCase().startsWith(r.toLowerCase())}));var a,o=e.filter((function(e){return t(e).toLowerCase().startsWith(r.toLowerCase())}));return o.length>0?o.includes(n)?((a=o.indexOf(n)+1)===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a]):n}function s(e){return"number"===typeof e}function c(e){return Array.isArray(e)}function u(e){return"function"===typeof e}function d(e){return"undefined"===typeof e||void 0===e}function f(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!c(e)}function b(e){return f(e)&&0===Object.keys(e).length}function p(e){return null==e}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function h(e){return/^var\(--.+\)$/.test(e)}var m=!1;function v(e){return"current"in e}function y(e){return e&&f(e)&&f(e.target)}function x(e,r){var t={};return Object.keys(e).forEach((function(n){r.includes(n)||(t[n]=e[n])})),t}function w(e,r){var t={};return r.forEach((function(r){r in e&&(t[r]=e[r])})),t}function k(e,r){var t={},n={};return Object.keys(e).forEach((function(a){r.includes(a)?t[a]=e[a]:n[a]=e[a]})),[t,n]}var S=function(e){var r=new WeakMap;return function(t,n,a,o){if("undefined"===typeof t)return e(t,n,a);r.has(t)||r.set(t,new Map);var i=r.get(t);if(i.has(n))return i.get(n);var l=e(t,n,a,o);return i.set(n,l),l}}((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n<a.length&&e;n+=1)e=e[a[n]];return void 0===e?t:e}));function E(e,r){var t={};return Object.keys(e).forEach((function(n){var a=e[n];r(a,n,e)&&(t[n]=a)})),t}var C=function(e){return E(e,(function(e){return null!==e&&void 0!==e}))},A=function(e){return Object.keys(e)},F=function(e){return e.reduce((function(e,r){var t=r[0],n=r[1];return e[t]=n,e}),{})},B=function(e,r,t){var n,a;return null!=(n=null==(a=e.__cssMap[r+"."+t])?void 0:a.varRef)?n:t};function _(e){return null==e?e:function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e).unitless||s(e)?e+"px":e}var D=function(e,r){return parseInt(e[1],10)>parseInt(r[1],10)?1:-1},R=function(e){return F(Object.entries(e).sort(D))};function T(e){var r=R(e);return Object.assign(Object.values(r),r)}function z(e,r){var t=[];return e&&t.push("@media screen and (min-width: "+_(e)+")"),t.length>0&&r&&t.push("and"),r&&t.push("@media screen and (max-width: "+_(r)+")"),t.join(" ")}function P(e){var r;if(!e)return null;e.base=null!=(r=e.base)?r:"0px";var t=T(e),n=Object.entries(e).sort(D).map((function(e,r,t){var n,a=e[0],o=e[1],i=(null!=(n=t[r+1])?n:[])[1];return{breakpoint:a,minW:o,maxW:i=parseFloat(i)>0?function(e){var r;if(!e)return e;var t=(e=null!=(r=_(e))?r:e).endsWith("px")?-1:-.0635;return s(e)?""+(e+t):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+t)}))}(i):void 0,maxWQuery:z(null,i),minWQuery:z(o),minMaxQuery:z(o,i)}})),o=function(e){var r=Object.keys(R(e));return new Set(r)}(e),i=Array.from(o.values());return{keys:o,normalized:t,isResponsive:function(e){var r=Object.keys(e);return r.length>0&&r.every((function(e){return o.has(e)}))},asObject:R(e),asArray:T(e),details:n,media:[null].concat(t.map((function(e){return z(e)})).slice(1)),toArrayValue:function(e){if(!f(e))throw new Error("toArrayValue: value must be an object");for(var r=i.map((function(r){var t;return null!=(t=e[r])?t:null}));null===a(r);)r.pop();return r},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,r,t){var n=i[t];return null!=n&&null!=r&&(e[n]=r),e}),{})}}}function M(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function j(e){var r;return!!M(e)&&e instanceof(null!=(r=e.ownerDocument.defaultView)?r:window).HTMLElement}function O(e){var r,t;return M(e)&&null!=(r=null==(t=I(e))?void 0:t.defaultView)?r:window}function I(e){var r;return M(e)&&null!=(r=e.ownerDocument)?r:document}function W(e){var r;return null!=(r=e.view)?r:window}var N=!("undefined"===typeof window||!window.document||!window.document.createElement),L=function(e){return e?"":void 0},H=function(e){return!!e||void 0},$=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter(Boolean).join(" ")};function q(e){var r=I(e);return null==r?void 0:r.activeElement}function Z(e,r){return!!e&&(e===r||e.contains(r))}function U(e){var r=e.key,t=e.keyCode;return t>=37&&t<=40&&0!==r.indexOf("Arrow")?"Arrow"+r:r}function V(e){var r,t,n=q(null!=(r=e.target)?r:e.currentTarget);return null!=(t=e.relatedTarget)?t:n}function Y(e){return 0!==e.button}var X=function(e){return e.hasAttribute("tabindex")};function G(e){return(j(e)?I(e):document).activeElement===e}function K(e){return!(!e.parentElement||!K(e.parentElement))||e.hidden}function J(e){if(!j(e)||K(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var r=e.localName;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;var t={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return r in t?t[r]():!!function(e){var r=e.getAttribute("contenteditable");return"false"!==r&&null!=r}(e)||X(e)}function Q(e){return!!e&&(j(e)&&J(e)&&!function(e){return X(e)&&-1===e.tabIndex}(e))}var ee=["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 re(e){var r=Array.from(e.querySelectorAll(ee));return r.unshift(e),r.filter(J).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function te(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function ne(e,r){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"===typeof e)return te(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(e,r):void 0}}(e))||r&&e&&"number"===typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ae(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return u(e)?e.apply(void 0,t):e}function oe(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){r.some((function(r){return null==r||r(e),null==e?void 0:e.defaultPrevented}))}}function ie(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){r.forEach((function(r){null==r||r(e)}))}}function le(e){var r;return function(){if(e){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];r=e.apply(this,n),e=null}return r}}var se=function(){},ce=le((function(e){return function(){var r=e.condition,t=e.message;r&&m&&console.warn(t)}})),ue=(le((function(e){return function(){var r=e.condition,t=e.message;r&&m&&console.error(t)}})),function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){return r.reduce((function(e,r){return r(e)}),e)}}),de=function(e,r){return Math.abs(e-r)},fe=function(e){return"x"in e&&"y"in e};function be(e,r){void 0===r&&(r={});var t=r,n=t.isActive,a=void 0===n?G:n,o=t.nextTick,i=t.preventScroll,l=void 0===i||i,s=t.selectTextIfInput,c=void 0===s||s;if(!e||a(e))return-1;function u(){if(e){if(function(){if(null==pe){pe=!1;try{document.createElement("div").focus({get preventScroll(){return pe=!0,!0}})}catch(e){}}return pe}())e.focus({preventScroll:l});else if(e.focus(),l)!function(e){for(var r,t=ne(e);!(r=t()).done;){var n=r.value,a=n.element,o=n.scrollTop,i=n.scrollLeft;a.scrollTop=o,a.scrollLeft=i}}(function(e){var r,t=I(e),n=null!=(r=t.defaultView)?r:window,a=e.parentNode,o=[],i=t.scrollingElement||t.documentElement;for(;a instanceof n.HTMLElement&&a!==i;)(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth)&&o.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),a=a.parentNode;i instanceof n.HTMLElement&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft});return o}(e));(function(e){return j(e)&&"input"===e.tagName.toLowerCase()&&"select"in e})(e)&&c&&e.select()}else ce({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}return o?requestAnimationFrame(u):(u(),-1)}var pe=null;function ge(e,r){return void 0===r&&(r=1/0),(f(e)||Array.isArray(e))&&r?Object.entries(e).reduce((function(e,t){var n=t[0],a=t[1];return f(a)||c(a)?Object.entries(ge(a,r-1)).forEach((function(r){var t=r[0],a=r[1];e[n+"."+t]=a})):e[n]=a,e}),{}):e}function he(e){var r=e.hasBeenSelected,t=e.isLazy,n=e.isSelected,a=e.lazyBehavior;return!t||(!!n||!("keepMounted"!==(void 0===a?"unmount":a)||!r))}Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;function me(e){var r=parseFloat(e);return function(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)}(r)?0:r}function ve(e,r,t){return 100*(e-r)/(t-r)}function ye(e,r,t){return(t-r)*e+r}function xe(e,r,t){return function(e,r){var t=me(e),n=Math.pow(10,null!=r?r:10);return t=Math.round(t*n)/n,r?t.toFixed(r):t.toString()}(Math.round((e-r)/t)*t+r,function(e){if(!Number.isFinite(e))return 0;for(var r=1,t=0;Math.round(e*r)/r!==e;)r*=10,t+=1;return t}(t))}function we(e,r,t){return null==e?e:(ce({condition:t<r,message:"clamp: max cannot be less than min"}),Math.min(Math.max(e,r),t))}function ke(){return(ke=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function Se(e){return!!e.touches}var Ee={pageX:0,pageY:0};function Ce(e,r){void 0===r&&(r="page");var t=e.touches[0]||e.changedTouches[0]||Ee;return{x:t[r+"X"],y:t[r+"Y"]}}function Ae(e,r){return void 0===r&&(r="page"),{x:e[r+"X"],y:e[r+"Y"]}}function Fe(e,r){return void 0===r&&(r="page"),{point:Se(e)?Ce(e,r):Ae(e,r)}}var Be=function(e,r){void 0===r&&(r=!1);var t,n=function(r){return e(r,Fe(r))};return r?(t=n,function(e){var r=e instanceof W(e).MouseEvent;(!r||r&&0===e.button)&&t(e)}):n},_e={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},De={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Re(e){return N&&null===window.onpointerdown?e:N&&null===window.ontouchstart?De[e]:N&&null===window.onmousedown?_e[e]:e}function Te(e,r,t,n){return function(e,r,t,n){return e.addEventListener(r,t,n),function(){e.removeEventListener(r,t,n)}}(e,Re(r),Be(t,"pointerdown"===r),n)}var ze=function(){function e(e,r,t){var a=this;if(this.history=[],this.startEvent=null,this.lastEvent=null,this.lastEventInfo=null,this.handlers={},this.removeListeners=se,this.threshold=3,this.win=void 0,this.updatePoint=function(){if(a.lastEvent&&a.lastEventInfo){var e=Oe(a.lastEventInfo,a.history),r=null!==a.startEvent,t=function(e,r){if(s(e)&&s(r))return de(e,r);if(fe(e)&&fe(r)){var t=de(e.x,r.x),n=de(e.y,r.y);return Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}return 0}(e.offset,{x:0,y:0})>=a.threshold;if(r||t){var o=(0,n.$B)().timestamp;a.history.push(ke({},e.point,{timestamp:o}));var i=a.handlers,l=i.onStart,c=i.onMove;r||(null==l||l(a.lastEvent,e),a.startEvent=a.lastEvent),null==c||c(a.lastEvent,e)}}},this.onPointerMove=function(e,r){a.lastEvent=e,a.lastEventInfo=r,function(e){var r=W(e);return"undefined"!==typeof r.PointerEvent&&e instanceof r.PointerEvent?!("mouse"!==e.pointerType):e instanceof r.MouseEvent}(e)&&0===e.buttons?a.onPointerUp(e,r):n.ZP.update(a.updatePoint,!0)},this.onPointerUp=function(e,r){var t=Oe(r,a.history),n=a.handlers,o=n.onEnd,i=n.onSessionEnd;null==i||i(e,t),a.end(),o&&a.startEvent&&(null==o||o(e,t))},this.win=W(e),!(Se(o=e)&&o.touches.length>1)){var o;this.handlers=r,t&&(this.threshold=t),e.stopPropagation(),e.preventDefault();var i=Fe(e),l=(0,n.$B)().timestamp;this.history=[ke({},i.point,{timestamp:l})];var c=r.onSessionStart;null==c||c(e,Oe(i,this.history)),this.removeListeners=ue(Te(this.win,"pointermove",this.onPointerMove),Te(this.win,"pointerup",this.onPointerUp),Te(this.win,"pointercancel",this.onPointerUp))}}var r=e.prototype;return r.updateHandlers=function(e){this.handlers=e},r.end=function(){var e;null==(e=this.removeListeners)||e.call(this),n.qY.update(this.updatePoint)},e}();function Pe(e,r){return{x:e.x-r.x,y:e.y-r.y}}function Me(e){return e[0]}function je(e){return e[e.length-1]}function Oe(e,r){return{point:e.point,delta:Pe(e.point,je(r)),offset:Pe(e.point,Me(r)),velocity:Ie(r,.1)}}function Ie(e,r){if(e.length<2)return{x:0,y:0};for(var t=e.length-1,n=null,a=function(e){return e[e.length-1]}(e);t>=0&&(n=e[t],!(a.timestamp-n.timestamp>1e3*r));)t--;if(!n)return{x:0,y:0};var o=(a.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}Object.freeze(["base","sm","md","lg","xl","2xl"]);function We(e,r){return c(e)?e.map((function(e){return null===e?null:r(e)})):f(e)?A(e).reduce((function(t,n){return t[n]=r(e[n]),t}),{}):null!=e?r(e):null}function Ne(e){return!!N&&function(e){var r=e.userAgent,t=e.vendor,n=/(android)/i.test(r);switch(!0){case/CriOS/.test(r):return"Chrome for iOS";case/Edg\//.test(r):return"Edge";case n&&/Silk\//.test(r):return"Silk";case/Chrome/.test(r)&&/Google Inc/.test(t):return"Chrome";case/Firefox\/\d+\.\d+$/.test(r):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(r):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(r):return"Safari";case/AppleWebKit/.test(r):return"WebKit";default:return null}}(window.navigator)===e}},51859:function(e,r,t){"use strict";t.d(r,{Z:function(){return ae}});var n=t(11526),a=Math.abs,o=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function s(e,r,t){return e.replace(r,t)}function c(e,r){return e.indexOf(r)}function u(e,r){return 0|e.charCodeAt(r)}function d(e,r,t){return e.slice(r,t)}function f(e){return e.length}function b(e){return e.length}function p(e,r){return r.push(e),e}var g=1,h=1,m=0,v=0,y=0,x="";function w(e,r,t,n,a,o,i){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:g,column:h,length:i,return:""}}function k(e,r){return i(w("",null,null,"",null,null,0),e,{length:-e.length},r)}function S(){return y=v>0?u(x,--v):0,h--,10===y&&(h=1,g--),y}function E(){return y=v<m?u(x,v++):0,h++,10===y&&(h=1,g++),y}function C(){return u(x,v)}function A(){return v}function F(e,r){return d(x,e,r)}function B(e){switch(e){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 _(e){return g=h=1,m=f(x=e),v=0,[]}function D(e){return x="",e}function R(e){return l(F(v-1,P(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(y=C())&&y<33;)E();return B(e)>2||B(y)>3?"":" "}function z(e,r){for(;--r&&E()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return F(e,A()+(r<6&&32==C()&&32==E()))}function P(e){for(;E();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&P(y);break;case 40:41===e&&P(e);break;case 92:E()}return v}function M(e,r){for(;E()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+F(r,v-1)+"*"+o(47===e?e:E())}function j(e){for(;!B(C());)E();return F(e,v)}var O="-ms-",I="-moz-",W="-webkit-",N="comm",L="rule",H="decl",$="@keyframes";function q(e,r){for(var t="",n=b(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Z(e,r,t,n){switch(e.type){case"@import":case H:return e.return=e.return||e.value;case N:return"";case $:return e.return=e.value+"{"+q(e.children,n)+"}";case L:e.value=e.props.join(",")}return f(t=q(e.children,n))?e.return=e.value+"{"+t+"}":""}function U(e,r){switch(function(e,r){return(((r<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3)}(e,r)){case 5103:return W+"print-"+e+e;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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+I+e+O+e+e;case 6828:case 4268:return W+e+O+e+e;case 6165:return W+e+O+"flex-"+e+e;case 5187:return W+e+s(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return W+e+O+"flex-item-"+s(e,/flex-|-self/,"")+e;case 4675:return W+e+O+"flex-line-pack"+s(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+O+s(e,"shrink","negative")+e;case 5292:return W+e+O+s(e,"basis","preferred-size")+e;case 6060:return W+"box-"+s(e,"-grow","")+W+e+O+s(e,"grow","positive")+e;case 4554:return W+s(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return s(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,W+"$1$2")+e;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(f(e)-1-r>6)switch(u(e,r+1)){case 109:if(45!==u(e,r+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+I+(108==u(e,r+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?U(s(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==u(e,r+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return s(e,":",":"+W)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===u(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(u(e,r+11)){case 114:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+O+e+e}return e}function V(e){return D(Y("",null,null,null,[""],e=_(e),0,[0],e))}function Y(e,r,t,n,a,i,l,u,d){for(var b=0,g=0,h=l,m=0,v=0,y=0,x=1,w=1,k=1,F=0,B="",_=a,D=i,P=n,O=B;w;)switch(y=F,F=E()){case 40:if(108!=y&&58==O.charCodeAt(h-1)){-1!=c(O+=s(R(F),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:O+=R(F);break;case 9:case 10:case 13:case 32:O+=T(y);break;case 92:O+=z(A()-1,7);continue;case 47:switch(C()){case 42:case 47:p(G(M(E(),A()),r,t),d);break;default:O+="/"}break;case 123*x:u[b++]=f(O)*k;case 125*x:case 59:case 0:switch(F){case 0:case 125:w=0;case 59+g:v>0&&f(O)-h&&p(v>32?K(O+";",n,t,h-1):K(s(O," ","")+";",n,t,h-2),d);break;case 59:O+=";";default:if(p(P=X(O,r,t,b,g,a,u,B,_=[],D=[],h),i),123===F)if(0===g)Y(O,r,P,P,_,i,h,u,D);else switch(m){case 100:case 109:case 115:Y(e,P,P,n&&p(X(e,P,P,0,0,a,u,B,a,_=[],h),D),a,D,h,u,n?_:D);break;default:Y(O,P,P,P,[""],D,0,u,D)}}b=g=v=0,x=k=1,B=O="",h=l;break;case 58:h=1+f(O),v=y;default:if(x<1)if(123==F)--x;else if(125==F&&0==x++&&125==S())continue;switch(O+=o(F),F*x){case 38:k=g>0?1:(O+="\f",-1);break;case 44:u[b++]=(f(O)-1)*k,k=1;break;case 64:45===C()&&(O+=R(E())),m=C(),g=h=f(B=O+=j(A())),F++;break;case 45:45===y&&2==f(O)&&(x=0)}}return i}function X(e,r,t,n,o,i,c,u,f,p,g){for(var h=o-1,m=0===o?i:[""],v=b(m),y=0,x=0,k=0;y<n;++y)for(var S=0,E=d(e,h+1,h=a(x=c[y])),C=e;S<v;++S)(C=l(x>0?m[S]+" "+E:s(E,/&\f/g,m[S])))&&(f[k++]=C);return w(e,r,t,0===o?L:u,f,p,g)}function G(e,r,t){return w(e,r,t,N,o(y),d(e,2,-2),0)}function K(e,r,t,n){return w(e,r,t,H,d(e,0,n),d(e,n+1,-1),n)}var J=function(e,r,t){for(var n=0,a=0;n=a,a=C(),38===n&&12===a&&(r[t]=1),!B(a);)E();return F(e,v)},Q=function(e,r){return D(function(e,r){var t=-1,n=44;do{switch(B(n)){case 0:38===n&&12===C()&&(r[t]=1),e[t]+=J(v-1,r,t);break;case 2:e[t]+=R(n);break;case 4:if(44===n){e[++t]=58===C()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=o(n)}}while(n=E());return e}(_(e),r))},ee=new WeakMap,re=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||ee.get(t))&&!n){ee.set(e,!0);for(var a=[],o=Q(r,a),i=t.props,l=0,s=0;l<o.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=a[l]?o[l].replace(/&\f/g,i[c]):i[c]+" "+o[l]}}},te=function(e){if("decl"===e.type){var r=e.value;108===r.charCodeAt(0)&&98===r.charCodeAt(2)&&(e.return="",e.value="")}},ne=[function(e,r,t,n){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=U(e.value,e.length);break;case $:return q([k(e,{value:s(e.value,"@","@"+W)})],n);case L:if(e.length)return function(e,r){return e.map(r).join("")}(e.props,(function(r){switch(function(e,r){return(e=r.exec(e))?e[0]:e}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return q([k(e,{props:[s(r,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return q([k(e,{props:[s(r,/:(plac\w+)/,":-webkit-input-$1")]}),k(e,{props:[s(r,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[s(r,/:(plac\w+)/,O+"input-$1")]})],n)}return""}))}}],ae=function(e){var r=e.key;if("css"===r){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||ne;var o,i,l={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var r=e.getAttribute("data-emotion").split(" "),t=1;t<r.length;t++)l[r[t]]=!0;s.push(e)}));var c,u,d=[Z,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var r=b(e);return function(t,n,a,o){for(var i="",l=0;l<r;l++)i+=e[l](t,n,a,o)||"";return i}}([re,te].concat(a,d));i=function(e,r,t,n){c=t,q(V(e?e+"{"+r.styles+"}":r.styles),f),n&&(p.inserted[r.name]=!0)};var p={key:r,sheet:new n.m({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return p.sheet.hydrate(s),p}},67866:function(e,r){"use strict";r.Z=function(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}},31421:function(e,r,t){"use strict";t.d(r,{T:function(){return c},a:function(){return d},w:function(){return s}});var n=t(67294),a=t(51859),o=t(87462),i=function(e){var r=new WeakMap;return function(t){if(r.has(t))return r.get(t);var n=e(t);return r.set(t,n),n}},l=(t(94199),(0,n.createContext)("undefined"!==typeof HTMLElement?(0,a.Z)({key:"css"}):null));l.Provider;var s=function(e){return(0,n.forwardRef)((function(r,t){var a=(0,n.useContext)(l);return e(r,a,t)}))},c=(0,n.createContext)({});var u=i((function(e){return i((function(r){return function(e,r){return"function"===typeof r?r(e):(0,o.Z)({},e,r)}(e,r)}))})),d=function(e){var r=(0,n.useContext)(c);return e.theme!==r&&(r=u(r)(e.theme)),(0,n.createElement)(c.Provider,{value:r},e.children)}},70917:function(e,r,t){"use strict";t.d(r,{xB:function(){return s},F4:function(){return u}});var n=t(67294),a=(t(51859),t(31421)),o=(t(8679),t(70444)),i=t(94199),l=t(11526),s=(0,a.w)((function(e,r){var t=e.styles,s=(0,i.O)([t],void 0,(0,n.useContext)(a.T)),c=(0,n.useRef)();return(0,n.useLayoutEffect)((function(){var e=r.key+"-global",t=new l.m({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),n=!1,a=document.querySelector('style[data-emotion="'+e+" "+s.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==a&&(n=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),c.current=[t,n],function(){t.flush()}}),[r]),(0,n.useLayoutEffect)((function(){var e=c.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==s.next&&(0,o.M)(r,s.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}r.insert("",s,t,!1)}}),[r,s.name]),null}));function c(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,i.O)(r)}var u=function(){var e=c.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},94199:function(e,r,t){"use strict";t.d(r,{O:function(){return g}});var n=function(e){for(var r,t=0,n=0,a=e.length;a>=4;++n,a-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(a){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},a={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},o=t(67866),i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,r){switch(e){case"animation":case"animationName":if("string"===typeof r)return r.replace(l,(function(e,r,t){return b={name:r,styles:t,next:b},r}))}return 1===a[e]||s(e)||"number"!==typeof r||0===r?r:r+"px"};function f(e,r,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 b={name:t.name,styles:t.styles,next:b},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)b={name:n.name,styles:n.styles,next:b},n=n.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=f(e,r,t[a])+";";else for(var o in t){var i=t[o];if("object"!==typeof i)null!=r&&void 0!==r[i]?n+=o+"{"+r[i]+"}":c(i)&&(n+=u(o)+":"+d(o,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=r&&void 0!==r[i[0]]){var l=f(e,r,i);switch(o){case"animation":case"animationName":n+=u(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}else for(var s=0;s<i.length;s++)c(i[s])&&(n+=u(o)+":"+d(o,i[s])+";")}return n}(e,r,t);case"function":if(void 0!==e){var a=b,o=t(e);return b=a,f(e,r,o)}break;case"string":}if(null==r)return t;var i=r[t];return void 0!==i?i:t}var b,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var g=function(e,r,t){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,o="";b=void 0;var i=e[0];null==i||void 0===i.raw?(a=!1,o+=f(t,r,i)):o+=i[0];for(var l=1;l<e.length;l++)o+=f(t,r,e[l]),a&&(o+=i[l]);p.lastIndex=0;for(var s,c="";null!==(s=p.exec(o));)c+="-"+s[1];return{name:n(o)+c,styles:o,next:b}}},11526:function(e,r,t){"use strict";t.d(r,{m:function(){return n}});var n=function(){function e(e){var r=this;this._insertTag=function(e){var t;t=0===r.tags.length?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(e,t),r.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(e){e.forEach(this._insertTag)},r.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),void 0!==e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var t=function(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}(r);try{t.insertRule(e,t.cssRules.length)}catch(n){0}}else r.appendChild(document.createTextNode(e));this.ctr++},r.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},70444:function(e,r,t){"use strict";t.d(r,{f:function(){return n},M:function(){return a}});function n(e,r,t){var n="";return t.split(" ").forEach((function(t){void 0!==e[t]?r.push(e[t]+";"):n+=t+" "})),n}var a=function(e,r,t){var n=e.key+"-"+r.name;if(!1===t&&void 0===e.registered[n]&&(e.registered[n]=r.styles),void 0===e.inserted[r.name]){var a=r;do{e.insert(r===a?"."+n:"",a,e.sheet,!0);a=a.next}while(void 0!==a)}}},20640:function(e,r,t){"use strict";var n=t(11742),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,r){var t,o,i,l,s,c,u=!1;r||(r={}),t=r.debug||!1;try{if(i=n(),l=document.createRange(),s=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(n){if(n.stopPropagation(),r.format)if(n.preventDefault(),"undefined"===typeof n.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=a[r.format]||a.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(r.format,e);r.onCopy&&(n.preventDefault(),r.onCopy(n.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){t&&console.error("unable to copy using execCommand: ",d),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",e),r.onCopy&&r.onCopy(window.clipboardData),u=!0}catch(d){t&&console.error("unable to copy using clipboardData: ",d),t&&console.error("falling back to prompt"),o=function(e){var r=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,r)}("message"in r?r.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}},70580:function(e,r,t){"use strict";t.d(r,{iz:function(){return c}});var n="Invariant failed";var a=function(e){var r=e.top,t=e.right,n=e.bottom,a=e.left;return{top:r,right:t,bottom:n,left:a,width:t-a,height:n-r,x:a,y:r,center:{x:(t+a)/2,y:(n+r)/2}}},o=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},i={top:0,right:0,bottom:0,left:0},l=function(e){var r,t,n=e.borderBox,l=e.margin,s=void 0===l?i:l,c=e.border,u=void 0===c?i:c,d=e.padding,f=void 0===d?i:d,b=a((t=s,{top:(r=n).top-t.top,left:r.left-t.left,bottom:r.bottom+t.bottom,right:r.right+t.right})),p=a(o(n,u)),g=a(o(p,f));return{marginBox:b,borderBox:a(n),paddingBox:p,contentBox:g,margin:s,border:u,padding:f}},s=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(r);return isNaN(t)&&function(e,r){if(!e)throw new Error(n)}(!1),t},c=function(e){return function(e,r){var t={top:s(r.marginTop),right:s(r.marginRight),bottom:s(r.marginBottom),left:s(r.marginLeft)},n={top:s(r.paddingTop),right:s(r.paddingRight),bottom:s(r.paddingBottom),left:s(r.paddingLeft)},a={top:s(r.borderTopWidth),right:s(r.borderRightWidth),bottom:s(r.borderBottomWidth),left:s(r.borderLeftWidth)};return l({borderBox:e,margin:t,padding:n,border:a})}(e.getBoundingClientRect(),window.getComputedStyle(e))}},9839:function(e,r,t){"use strict";t.d(r,{qY:function(){return b},ZP:function(){return y},iW:function(){return p},$B:function(){return v}});var n=1/60*1e3,a="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(a())}),n)};var i=!0,l=!1,s=!1,c={delta:0,timestamp:0},u=["read","update","preRender","render","postRender"],d=u.reduce((function(e,r){return e[r]=function(e){var r=[],t=[],n=0,a=!1,o=new WeakSet,i={schedule:function(e,i,l){void 0===i&&(i=!1),void 0===l&&(l=!1);var s=l&&a,c=s?r:t;return i&&o.add(e),-1===c.indexOf(e)&&(c.push(e),s&&a&&(n=r.length)),e},cancel:function(e){var r=t.indexOf(e);-1!==r&&t.splice(r,1),o.delete(e)},process:function(l){var s;if(a=!0,r=(s=[t,r])[0],(t=s[1]).length=0,n=r.length)for(var c=0;c<n;c++){var u=r[c];u(l),o.has(u)&&(i.schedule(u),e())}a=!1}};return i}((function(){return l=!0})),e}),{}),f=u.reduce((function(e,r){var t=d[r];return e[r]=function(e,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),l||m(),t.schedule(e,r,n)},e}),{}),b=u.reduce((function(e,r){return e[r]=d[r].cancel,e}),{}),p=u.reduce((function(e,r){return e[r]=function(){return d[r].process(c)},e}),{}),g=function(e){return d[e].process(c)},h=function(e){l=!1,c.delta=i?n:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,s=!0,u.forEach(g),s=!1,l&&(i=!1,o(h))},m=function(){l=!0,i=!0,s||o(h)},v=function(){return c},y=f},8679:function(e,r,t){"use strict";var n=t(59864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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},l={};function s(e){return n.isMemo(e)?i:l[e.$$typeof]||a}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(r,t,n){if("string"!==typeof t){if(p){var a=b(t);a&&a!==p&&e(r,a,n)}var i=u(t);d&&(i=i.concat(d(t)));for(var l=s(r),g=s(t),h=0;h<i.length;++h){var m=i[h];if(!o[m]&&(!n||!n[m])&&(!g||!g[m])&&(!l||!l[m])){var v=f(t,m);try{c(r,m,v)}catch(y){}}}}return r}},38554:function(e,r,t){e=t.nmd(e);var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Function]",l="[object Object]",s=/^\[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[o]=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[l]=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,b=d||f||Function("return this")(),p=r&&!r.nodeType&&r,g=p&&e&&!e.nodeType&&e,h=g&&g.exports===p,m=h&&d.process,v=function(){try{var e=g&&g.require&&g.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(r){}}(),y=v&&v.isTypedArray;function x(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var w,k,S=Array.prototype,E=Function.prototype,C=Object.prototype,A=b["__core-js_shared__"],F=E.toString,B=C.hasOwnProperty,_=function(){var e=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),D=C.toString,R=F.call(Object),T=RegExp("^"+F.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=h?b.Buffer:void 0,P=b.Symbol,M=b.Uint8Array,j=z?z.allocUnsafe:void 0,O=(w=Object.getPrototypeOf,k=Object,function(e){return w(k(e))}),I=Object.create,W=C.propertyIsEnumerable,N=S.splice,L=P?P.toStringTag:void 0,H=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(r){}}(),$=z?z.isBuffer:void 0,q=Math.max,Z=Date.now,U=be(b,"Map"),V=be(Object,"create"),Y=function(){function e(){}return function(r){if(!Ce(r))return{};if(I)return I(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}();function X(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function G(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function K(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function J(e){var r=this.__data__=new G(e);this.size=r.size}function Q(e,r){var t=xe(e),n=!t&&ye(e),a=!t&&!n&&ke(e),o=!t&&!n&&!a&&Fe(e),i=t||n||a||o,l=i?function(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}(e.length,String):[],s=l.length;for(var c in e)!r&&!B.call(e,c)||i&&("length"==c||a&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||pe(c,s))||l.push(c);return l}function ee(e,r,t){(void 0!==t&&!ve(e[r],t)||void 0===t&&!(r in e))&&ne(e,r,t)}function re(e,r,t){var n=e[r];B.call(e,r)&&ve(n,t)&&(void 0!==t||r in e)||ne(e,r,t)}function te(e,r){for(var t=e.length;t--;)if(ve(e[t][0],r))return t;return-1}function ne(e,r,t){"__proto__"==r&&H?H(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}X.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},X.prototype.delete=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r},X.prototype.get=function(e){var r=this.__data__;if(V){var t=r[e];return t===n?void 0:t}return B.call(r,e)?r[e]:void 0},X.prototype.has=function(e){var r=this.__data__;return V?void 0!==r[e]:B.call(r,e)},X.prototype.set=function(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=V&&void 0===r?n:r,this},G.prototype.clear=function(){this.__data__=[],this.size=0},G.prototype.delete=function(e){var r=this.__data__,t=te(r,e);return!(t<0)&&(t==r.length-1?r.pop():N.call(r,t,1),--this.size,!0)},G.prototype.get=function(e){var r=this.__data__,t=te(r,e);return t<0?void 0:r[t][1]},G.prototype.has=function(e){return te(this.__data__,e)>-1},G.prototype.set=function(e,r){var t=this.__data__,n=te(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(U||G),string:new X}},K.prototype.delete=function(e){var r=fe(this,e).delete(e);return this.size-=r?1:0,r},K.prototype.get=function(e){return fe(this,e).get(e)},K.prototype.has=function(e){return fe(this,e).has(e)},K.prototype.set=function(e,r){var t=fe(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this},J.prototype.clear=function(){this.__data__=new G,this.size=0},J.prototype.delete=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,r){var t=this.__data__;if(t instanceof G){var n=t.__data__;if(!U||n.length<199)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new K(n)}return t.set(e,r),this.size=t.size,this};var ae,oe=function(e,r,t){for(var n=-1,a=Object(e),o=t(e),i=o.length;i--;){var l=o[ae?i:++n];if(!1===r(a[l],l,a))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":L&&L in Object(e)?function(e){var r=B.call(e,L),t=e[L];try{e[L]=void 0;var n=!0}catch(o){}var a=D.call(e);n&&(r?e[L]=t:delete e[L]);return a}(e):function(e){return D.call(e)}(e)}function le(e){return Ae(e)&&ie(e)==o}function se(e){return!(!Ce(e)||function(e){return!!_&&_ in e}(e))&&(Se(e)?T:s).test(function(e){if(null!=e){try{return F.call(e)}catch(r){}try{return e+""}catch(r){}}return""}(e))}function ce(e){if(!Ce(e))return function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}(e);var r=ge(e),t=[];for(var n in e)("constructor"!=n||!r&&B.call(e,n))&&t.push(n);return t}function ue(e,r,t,n,a){e!==r&&oe(r,(function(o,i){if(a||(a=new J),Ce(o))!function(e,r,t,n,a,o,i){var s=he(e,t),c=he(r,t),u=i.get(c);if(u)return void ee(e,t,u);var d=o?o(s,c,t+"",e,r,i):void 0,f=void 0===d;if(f){var b=xe(c),p=!b&&ke(c),g=!b&&!p&&Fe(c);d=c,b||p||g?xe(s)?d=s:Ae(h=s)&&we(h)?d=function(e,r){var t=-1,n=e.length;r||(r=Array(n));for(;++t<n;)r[t]=e[t];return r}(s):p?(f=!1,d=function(e,r){if(r)return e.slice();var t=e.length,n=j?j(t):new e.constructor(t);return e.copy(n),n}(c,!0)):g?(f=!1,d=function(e,r){var t=r?function(e){var r=new e.constructor(e.byteLength);return new M(r).set(new M(e)),r}(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}(c,!0)):d=[]:function(e){if(!Ae(e)||ie(e)!=l)return!1;var r=O(e);if(null===r)return!0;var t=B.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&F.call(t)==R}(c)||ye(c)?(d=s,ye(s)?d=function(e){return function(e,r,t,n){var a=!t;t||(t={});var o=-1,i=r.length;for(;++o<i;){var l=r[o],s=n?n(t[l],e[l],l,t,e):void 0;void 0===s&&(s=e[l]),a?ne(t,l,s):re(t,l,s)}return t}(e,Be(e))}(s):Ce(s)&&!Se(s)||(d=function(e){return"function"!=typeof e.constructor||ge(e)?{}:Y(O(e))}(c))):f=!1}var h;f&&(i.set(c,d),a(d,c,n,o,i),i.delete(c));ee(e,t,d)}(e,r,i,t,ue,n,a);else{var s=n?n(he(e,i),o,i+"",e,r,a):void 0;void 0===s&&(s=o),ee(e,i,s)}}),Be)}function de(e,r){return me(function(e,r,t){return r=q(void 0===r?e.length-1:r,0),function(){for(var n=arguments,a=-1,o=q(n.length-r,0),i=Array(o);++a<o;)i[a]=n[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=n[a];return l[r]=t(i),x(e,this,l)}}(e,r,Re),e+"")}function fe(e,r){var t=e.__data__;return function(e){var r=typeof e;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e}(r)?t["string"==typeof r?"string":"hash"]:t.map}function be(e,r){var t=function(e,r){return null==e?void 0:e[r]}(e,r);return se(t)?t:void 0}function pe(e,r){var t=typeof e;return!!(r=null==r?a:r)&&("number"==t||"symbol"!=t&&c.test(e))&&e>-1&&e%1==0&&e<r}function ge(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||C)}function he(e,r){if(("constructor"!==r||"function"!==typeof e[r])&&"__proto__"!=r)return e[r]}var me=function(e){var r=0,t=0;return function(){var n=Z(),a=16-(n-t);if(t=n,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(H?function(e,r){return H(e,"toString",{configurable:!0,enumerable:!1,value:(t=r,function(){return t}),writable:!0});var t}:Re);function ve(e,r){return e===r||e!==e&&r!==r}var ye=le(function(){return arguments}())?le:function(e){return Ae(e)&&B.call(e,"callee")&&!W.call(e,"callee")},xe=Array.isArray;function we(e){return null!=e&&Ee(e.length)&&!Se(e)}var ke=$||function(){return!1};function Se(e){if(!Ce(e))return!1;var r=ie(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ce(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function Ae(e){return null!=e&&"object"==typeof e}var Fe=y?function(e){return function(r){return e(r)}}(y):function(e){return Ae(e)&&Ee(e.length)&&!!u[ie(e)]};function Be(e){return we(e)?Q(e,!0):ce(e)}var _e,De=(_e=function(e,r,t,n){ue(e,r,t,n)},de((function(e,r){var t=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=_e.length>3&&"function"==typeof a?(n--,a):void 0,o&&function(e,r,t){if(!Ce(t))return!1;var n=typeof r;return!!("number"==n?we(t)&&pe(r,t.length):"string"==n&&r in t)&&ve(t[r],e)}(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++t<n;){var i=r[t];i&&_e(e,i,t,a)}return e})));function Re(e){return e}e.exports=De},67690:function(e,r,t){"use strict";t.d(r,{n:function(){return n}});var n={1337:{base0:"#171F24",base1:"#1C1C1C",base2:"#121212",base3:"#3D3D3D",base4:"#4b474c",base5:"#515151",base6:"#6D6D6D",base7:"#777778",base8:"#f4f4f4",bg:"#191919","bg-alt":"#252526",blue:"#8CDAFF","dark-blue":"#6699CC",fg:"#d4d4d4","fg-alt":"#AEAFAD",green:"#468800",grey:"#777778","light-green":"#B5CEA8","light-yellow":"#FBE3BF",magenta:"#C586C0",orange:"#FC9354",red:"#FF5E5E",teal:"#35CDAF",white:"#FFFFFF",yellow:"#E9FDAC"},Iosevkem:{base0:"#1b1d1e",base1:"#202020",base2:"#303030",base3:"#303030",base4:"#505050",base5:"#505050",base6:"#808080",base7:"#808080",base8:"#DFDFDF",bg:"#1b1d1e","bg-alt":"#262829",blue:"#6c9ef8",cyan:"#00aa80","dark-blue":"#6688aa","dark-cyan":"#5699AF",fg:"#dddddd","fg-alt":"#5B6268",green:"#60aa00",grey:"#505050",magenta:"#b77fdb",orange:"#da8548",red:"#d02b61",teal:"#4db5bd",violet:"#a9a1e1",yellow:"#d08928"},"acario-dark":{base0:"#0F1019",base1:"#121212",base2:"#1E1E33",base3:"#464A56",base4:"#585C6C",base5:"#767676",base6:"#959EA5",base7:"#B2B2B2",base8:"#D0D0D0",bg:"#0D0E16","bg-alt":"#040408","bg-blue":"#0C213E",blue:"#3679D8",cyan:"#36D8BD","dark-blue":"#0C213E",fg:"#CEDBE5","fg-alt":"#E5F4FF",green:"#79D836",grey:"#767676",magenta:"#8041D8",orange:"#D85F00",red:"#D83441",teal:"#2D9574",violet:"#AB11D8",yellow:"#D8B941"},"ayu-mirage":{bg:"#1f2430","bg-alt":"#171b24",base0:"#3d434d",base1:"#707a8c",base2:"#2f3b54",base3:"#f5f7fd",base4:"#f5f7fd",base5:"#1c1e23",base6:"#484f5b",base7:"#14171f",base8:"#11131a",fg:"#cbccc6","fg-alt":"#707a8c",grey:"#171b24",red:"#f28779",orange:"#ffa759",green:"#bae67e",teal:"#95e6cb",yellow:"#ffd580",blue:"#73d0ff","dark-blue":"#5ca6cc",magenta:"#d4bfff",violet:"#dccbff",cyan:"#5ccfe6"},"ayu-light":{"common-accent":"#ff9940","common-bg":"#fafafa","common-fg":"#575f66","common-ui":"#ba9199","syntax-comment":"#abb0b6","syntax-constant":"#a37acc","syntax-entity":"#399ee6","syntax-error":"#f51818","syntax-func":"#f2ae49","syntax-keyword":"#fa8d3e","syntax-markup":"#f07171","syntax-operator":"#ed9366","syntax-regexp":"#4cbf99","syntax-special":"#e6ba7e","syntax-string":"#86b300","syntax-tag":"#55b4d4",test:"#2ea8e6","ui-gutter-active":"#ba9199","ui-gutter-normal":"#d9c2c6","ui-line":"#e8e8e8","ui-panel-border":"#fcfcfc","ui-panel-shadow":"#fbfbfb","ui-selection-bg":"#bce1f3","ui-selection-border":"#f0f8fd","ui-selection-inactive":"#f0f8fd"},badger:{bg:"#171717","bg-alt":"#2f2f2f",base0:"#1D1D1D",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#433F4f",base5:"#635770",base6:"#656868",base7:"#9ca0a4",base8:"#DFDFDF",fg:"#F6F3E8","fg-alt":"#FBF9F3",grey:"#433F4f",red:"#E2434C",orange:"#EA9847",green:"#86B187",teal:"#65A399",yellow:"#E0D063",blue:"#8AC6F2","dark-blue":"#2257A0",magenta:"#E18Cbb",violet:"#BF93C3"},"challenger-deep":{base0:"#100E23",base1:"#292F37",base2:"#3D4551",base3:"#4C4B68",base4:"#565575",base5:"#858FA5",base6:"#9BA7BF",base7:"#B0BED8",base8:"#BAC9E4",bg:"#1E1C31","bg-alt":"#12111E",blue:"#91DDFF",cyan:"#AAFFE4","dark-blue":"#65B2FF","dark-cyan":"#62D196",fg:"#CBE3E7","fg-alt":"#B2B2B2",green:"#95FFA4",grey:"#565575",magenta:"#C991E1",orange:"#FFB378",red:"#FF8080",teal:"#63F2F1",violet:"#906CFF",yellow:"#FFE9AA"},"city-lights":{bg:"#1D252C","bg-alt":"#181E24",base0:"#10151C",base1:"#171D22",base2:"#20282F",base3:"#28323B",base4:"#384551",base5:"#56697A",base6:"#688094",base7:"#7FA0B7",base8:"#9CAABB","fg-alt":"#728CA0",fg:"#A0B3C5",grey:"#41505E",red:"#D95468",orange:"#D98E48",green:"#8BD49C",teal:"#33CED8",yellow:"#EBBF83",blue:"#5EC4FF","bright-blue":"#539AFC","dark-blue":"#718CA1"},"dark+":{bg:"#1e1e1e","bg-alt":"#252526",base0:"#171F24",base1:"#1C1C1C",base2:"#121212",base3:"#313131",base4:"#4b474c",base5:"#37474F",base6:"#237AD3",base7:"#777778",base8:"#f4f4f4",fg:"#d4d4d4","fg-alt":"#AEAFAD",grey:"#777778",red:"#D16969",orange:"#DB8E73",green:"#579C4C","light-green":"#B5CEA8",teal:"#35CDAF",yellow:"#D7BA7D","light-yellow":"#D9DAA2",blue:"#339CDB","dark-blue":"#124F7B",magenta:"#C586C0",violet:"#BB80B3","dark-violet":"#68217A",cyan:"#85DDFF","dark-cyan":"#207FA1"},dracula:{base0:"#1E2029",base1:"#282a36",base2:"#373844",base3:"#44475a",base4:"#565761",base5:"#6272a4",base6:"#b6b6b2",base7:"#ccccc7",base8:"#f8f8f2",bg:"#282a36","bg-alt":"#1E2029",blue:"#61bfff",cyan:"#8be9fd","dark-blue":"#0189cc","dark-cyan":"#8be9fd",fg:"#f8f8f2","fg-alt":"#e2e2dc",green:"#50fa7b",grey:"#565761",magenta:"#ff79c6",orange:"#ffb86c",red:"#ff5555",teal:"#0189cc",violet:"#bd93f9",yellow:"#f1fa8c"},ephemeral:{base0:"#181e26",base1:"#1e262d",base2:"#242d39",base3:"#2a3542",base4:"#323f4e",base5:"#364455",base6:"#505d6f",base7:"#77818f",base8:"#ebedef",bg:"#323f4e","bg-alt":"#28323e",blue:"#92b6f4",cyan:"#79e6f3","dark-blue":"#9f92f4","dark-violet":"#985EFF",fg:"#f8f8f2","fg-alt":"#fdfdfd",green:"#53e2ae",grey:"#3d4c5f",magenta:"#BD99FF",orange:"#f2a272",red:"#f48fb1",teal:"#a1efd3",violet:"#8897f4",yellow:"#f1fa8c"},"fairy-floss":{base0:"#464258",base1:"#514C66",base2:"#6A6483",base3:"#9673D3",base4:"#A0A0C0",base5:"#B8A2CE",base6:"#726C8A",base7:"#5B576C",base8:"#716799",bg:"#5a5475","bg-alt":"#343145",blue:"#55b3cc",cyan:"#96CBFE","dark-blue":"#167be2","dark-cyan":"#204052",fg:"#F8F8F0","fg-alt":"#B5B2Bd",green:"#C2FFDF",grey:"#656565",magenta:"#FFB8D1",orange:"#E6C000",red:"#CC6666",teal:"#8295D6",violet:"#C5A3FF",yellow:"#FFEA00"},flatwhite:{bg:"#f7f3ee","bg-alt":"#f1ece4",base0:"#f1ece4",base1:"#e4ddd2",base2:"#dcd3c6",base3:"#b9a992",base4:"#93836c",base5:"#605a52",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",fg:"#605a52","fg-alt":"#93836c",grey:"#b9a992",red:"#955f5f",orange:"#957f5f",green:"#81895d",teal:"#5f8c7d",yellow:"#957f5f",blue:"#7382a0","dark-blue":"#7382a0",magenta:"#9c739c",violet:"#9c739c",cyan:"#5f8c7d","dark-cyan":"#5f8c7d"},"gruvbox-light":{base0:"#f0f0f0",base1:"#ebdbb2",base2:"#d5c4a1",base3:"#bdae93",base4:"#a89984",base5:"#504945",base6:"#3c3836",base7:"#282828",base8:"#1d2021",bg:"#fbf1c7","bg-alt":"#f2e5bc",blue:"#076678",cyan:"#427b58","dark-blue":"#2b3c44","dark-cyan":"#36473a",fg:"#282828","fg-alt":"#1c1c1c",green:"#79740e",grey:"#928374",magenta:"#b16286",orange:"#af3a03",red:"#9d0006",teal:"#4db5bd",violet:"#8f3f71",yellow:"#b57614"},gruvbox:{base0:"#0d1011",base1:"#1d2021",base2:"#282828",base3:"#3c3836",base4:"#665c54",base5:"#7c6f64",base6:"#928374",base7:"#d5c4a1",base8:"#fbf1c7",bg:"#282828","bg-alt":"#1d2021","bg-alt2":"#504945",blue:"#83a598","dark-green":"#98971a","dark-yellow":"#d79921",fg:"#ebdbb2","fg-alt":"#d5c4a1",green:"#b8bb26",grey:"#928374",magenta:"#cc241d",orange:"#fe8019",red:"#fb4934",teal:"#8ec07c",violet:"#d3869b",yellow:"#fabd2f"},henna:{base0:"#10151a",base1:"#181A1F",base2:"#1B1F23",base3:"#262D35",base4:"#282C34",base5:"#2c313a",base6:"#3B4048",base7:"#495162",base8:"#606F73",bg:"#21272e","bg-alt":"#1B1F23",blue:"#56b5c2",cyan:"#56b6c2","dark-blue":"#2257A0","dark-cyan":"#2e4a54",fg:"#f8f8f0","fg-alt":"#6B717D",green:"#53df83",grey:"#737c8c",magenta:"#FFB8D1",orange:"#e74c3c",red:"#e74c3c",teal:"#1abc9c",violet:"#C5A3FF",yellow:"#ECBE7B"},"homage-black":{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#000000","bg-alt":"#000000",blue:"#0170bf",cyan:"#46D9FF","dark-blue":"#003c64","dark-cyan":"#5699AF",fg:"#bbc2cf","fg-alt":"#5B6268",green:"#98be65",grey:"#5B6268",magenta:"#c678dd",orange:"#b4916d",red:"#ff6c6b",teal:"#4db5bd",violet:"#a9a1e1",yellow:"#ECBE7B"},"homage-white":{base0:"#f0f0f0",base1:"#e7e7e7",base2:"#dfdfdf",base3:"#c6c7c7",base4:"#9ca0a4",base5:"#383a42",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",bg:"#fafafa","bg-alt":"#f0f0f0",blue:"#014980",cyan:"#0184bc","dark-blue":"#030f64",fg:"#383a42","fg-alt":"#c6c7c7",green:"#556b2f",grey:"#383a42",magenta:"#a626a4",orange:"#8a3b3c",red:"#e45649",teal:"#4db5bd",violet:"#b751b6",yellow:"#986801","yellow-alt":"#fafadd"},horizon:{base0:"#16161c",base1:"#1a1c23",base2:"#1d1f27",base3:"#232530",base4:"#6a6a6a",base5:"#f9cec3",base6:"#f9cbbe",base7:"#fadad1",base8:"#fdf0ed",bg:"#232530","bg-alt":"#1c1e26",blue:"#21bfc2",cyan:"#59e3e3","dark-blue":"#25b2bc","dark-cyan":"#27d797",fg:"#c7c9cb","fg-alt":"#fdf0ed",green:"#09f7a0",grey:"#6a6a6a",magenta:"#6c6f93",orange:"#f09383",red:"#e95678",teal:"#87ceeb",violet:"#b877db",yellow:"#fab795"},"ir-black":{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#000000","bg-alt":"#121212",blue:"#96CBFE","dark-blue":"#2257A0",fg:"#f6f3e8","fg-alt":"#5B6268",green:"#A8FF60","green-alt":"#99CC99",grey:"#3f444a",magenta:"#FF73FD",orange:"#E9C062","orange-alt":"#FFD2A7",red:"#ff6c60",teal:"#00A0A0",white:"#ffffff",yellow:"#FFFFB6"},laserwave:{base0:"#222228",base1:"#24262D",base2:"#282b33",base3:"#3E3549",base4:"#4E415C",base5:"#544863",base6:"#ED60BA",base7:"#91889B",base8:"#ECEFF4",bg:"#27212E","bg-alt":"#1B1720",blue:"#40B4C4",cyan:"#B4DCE7","dark-blue":"#336A79","dark-cyan":"#6D7E8A",fg:"#FFFFFF","fg-alt":"#EEEEEE",green:"#74DFC4",grey:"#4E415C",magenta:"#EB64B9",orange:"#FFB85B",red:"#964C7B",teal:"#4D8079",violet:"#B381C5",yellow:"#FFE261"},manegarm:{"-bg":"#1c1408","-bg-alt":"#181107",base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#95836f",base6:"#73797e",base7:"#9ca0a4",base8:"#dfdfdf",bg:"#1c1408","bg-alt":"#181107",blue:"#0075c4","dark-blue":"#0060a1",fg:"#5b8512","fg-alt":"#4f7410",green:"#7cb518",grey:"#707a6a",magenta:"#d72638",orange:"#ff7000",red:"#ff4e00",teal:"#dbc077",violet:"#76597b",yellow:"#ffbf00"},material:{base0:"#171F24",base1:"#1C262B",base2:"#222D32",base3:"#171F24",base4:"#314048",base5:"#37474F",base6:"#556369",base7:"#737E84",base8:"#9BA3A7",bg:"#263238","bg-alt":"#1C262B",blue:"#82aaff",cyan:"#89DDFF","dark-blue":"#7986E7","dark-cyan":"#80cbc4",fg:"#EEFFFF","fg-alt":"#BFC7D5",green:"#c3e88d",grey:"#37474F",magenta:"#c792ea",orange:"#f78c6c",red:"#ff5370",teal:"#44b9b1",violet:"#bb80b3",yellow:"#ffcb6b"},miramare:{base0:"#0d1011",base1:"#1d2021",base2:"#282828",base3:"#3c3836",base4:"#5b5b5b",base5:"#7c6f64",base6:"#928374",base7:"#d5c4a1",base8:"#fbf1c7",bg:"#2a2426","bg-alt":"#242021","bg-alt2":"#504945",blue:"#89beba","dark-blue":"#458588","dark-green":"#678f67",fg:"#e6d6ac","fg-alt":"#d8caac",green:"#87af87",grey:"#5b5b5b",magenta:"#e68183",orange:"#e39b7b",red:"#e68183",teal:"#87af87",violet:"#d3a0bc",yellow:"#d9bb80"},molokai:{base0:"#131313",base1:"#161821",base2:"#2e313d",base3:"#3a3d4b",base4:"#535763",base5:"#595d68",base6:"#696d77",base7:"#888d94",base8:"#afb5b9",bg:"#282a3a","bg-alt":"#1E1F2B",blue:"#9cd1bb",cyan:"#9cd1bb","dark-blue":"#9cd1bb","dark-cyan":"#9cd1bb",fg:"#eaf2f1","fg-alt":"#c6c6c6",green:"#bad761",grey:"#535763",magenta:"#9cd1bb",orange:"#ff95be",red:"#ff657a",teal:"#9cd1bb",violet:"#c39ac9",yellow:"#ffd76d"},"monokai-classic":{base0:"#19181A",base1:"#1B1B1B",base2:"#212122",base3:"#2B2B2B",base4:"#383539",base5:"#4C4A4D",base6:"#727072",base7:"#c1c0c0",base8:"#FCFCFA",bg:"#2D2A2E","bg-alt":"#221F22",blue:"#78DCE8",cyan:"#78DCE8","dark-blue":"#81A2BE","dark-cyan":"#81A2BE",fg:"#FCFCFA","fg-alt":"#939293",green:"#A9DC76",grey:"#727072",magenta:"#FF6188",orange:"#FC9867",red:"#CC6666",teal:"#A9DC76",violet:"#AB9DF2",yellow:"#FFD866"},"monokai-pro":{base0:"#131313",base1:"#191515",base2:"#332c2c",base3:"#403838",base4:"#5b5353",base5:"#615959",base6:"#72696a",base7:"#948a8b",base8:"#bfb3b5",bg:"#2c2525","bg-alt":"#201C1C",blue:"#85dacc",cyan:"#85dacc","dark-blue":"#85dacc","dark-cyan":"#85dacc",fg:"#fff1f3","fg-alt":"#c6c6c6",green:"#adda78",grey:"#5b5353",magenta:"#85dacc",orange:"#f38d70",red:"#fd6883",teal:"#85dacc",violet:"#a8a9eb",yellow:"#f9cc6c"},"monokai-machine":{base0:"#161a2a",base1:"#191a2a",base2:"#1e2030",base3:"#222436",base4:"#2f334d",base5:"#444a73",base6:"#828bb8",base7:"#a9b8e8",base8:"#b4c2f0",bg:"#212337","bg-alt":"#191a2a","dark-red":"#ff5370","dark-teal":"#4fd6be",fg:"#c8d3f5","fg-alt":"#b4c2f0",green:"#c3e88d",grey:"#444a73",indigo:"#7a88cf","light-red":"#ff98a4","light-teal":"#7af8ca",orange:"#ff995e",red:"#ff757f",region:"#383e5c",teal:"#77e0c6",yellow:"#ffc777"},"monokai-octagon":{base0:"#131313",base1:"#191919",base2:"#2c2c2d",base3:"#363537",base4:"#525053",base5:"#585659",base6:"#69676c",base7:"#8b888f",base8:"#b6b2bc",bg:"#222222","bg-alt":"#191919",blue:"#5ad4e6",cyan:"#5ad4e6","dark-blue":"#5ad4e6","dark-cyan":"#5ad4e6",fg:"#f7f1ff","fg-alt":"#c6c6c6",green:"#7bd88f",grey:"#525053",magenta:"#5ad4e6",orange:"#fd9353",red:"#fc618d",teal:"#5ad4e6",violet:"#948ae3",yellow:"#fce566"},"monokai-ristretto":{base0:"#161a2a",base1:"#191a2a",base2:"#1e2030",base3:"#222436",base4:"#2f334d",base5:"#444a73",base6:"#828bb8",base7:"#a9b8e8",base8:"#b4c2f0",bg:"#212337","bg-alt":"#191a2a","dark-red":"#ff5370","dark-teal":"#4fd6be",fg:"#c8d3f5","fg-alt":"#b4c2f0",green:"#c3e88d",grey:"#444a73",indigo:"#7a88cf","light-red":"#ff98a4","light-teal":"#7af8ca",orange:"#ff995e",red:"#ff757f",region:"#383e5c",teal:"#77e0c6",yellow:"#ffc777"},"monokai-spectrum":{base0:"#F0F4FC",base1:"#E3EAF5",base2:"#D8DEE9",base3:"#C2D0E7",base4:"#B8C5DB",base5:"#AEBACF",base6:"#A1ACC0",base7:"#60728C",base8:"#485163",bg:"#E5E9F0","bg-alt":"#D8DEE9",blue:"#3B6EA8",cyan:"#398EAC","dark-blue":"#5272AF","dark-cyan":"#2C7088",fg:"#3B4252","fg-alt":"#2E3440",green:"#4F894C",grey:"#B8C5DB",magenta:"#97365B",orange:"#AC4426",red:"#99324B",teal:"#29838D",violet:"#842879",yellow:"#9A7500"},moonlight:{base0:"#191C25",base1:"#242832",base2:"#2C333F",base3:"#373E4C",base4:"#434C5E",base5:"#4C566A",base6:"#9099AB",base7:"#D8DEE9",base8:"#F0F4FC",bg:"#2E3440","bg-alt":"#272C36",blue:"#81A1C1",cyan:"#88C0D0","dark-blue":"#5E81AC","dark-cyan":"#507681",fg:"#ECEFF4","fg-alt":"#E5E9F0",green:"#A3BE8C",grey:"#434C5E",magenta:"#B48EAD",orange:"#D08770",red:"#BF616A",teal:"#8FBCBB",violet:"#5D80AE",yellow:"#EBCB8B"},"nord-light":{base0:"#0d0f11",base1:"#1e272c",base2:"#212122",base3:"#2f3f48",base4:"#3c4c55",base5:"#556873",base6:"#6A7D89",base7:"#899BA6",base8:"#e6eef3",bg:"#3c4c55","bg-alt":"#44545d",blue:"#83AFE5",cyan:"#7FC1CA","dark-blue":"#759DCE","dark-cyan":"#659AA1",fg:"#c5d4dd","fg-alt":"#c5c8c6",green:"#A8CE93",grey:"#899BA6",magenta:"#D18EC2",orange:"#F2C38F",red:"#DF8C8C",teal:"#95BEBC",violet:"#9A93E1",yellow:"#DADA93"},nord:{base0:"#1B2B34",base1:"#343D46",base2:"#4F5B66",base3:"#65737E",base4:"#A7ADBA",base5:"#C0C5CE",base6:"#CDD3DE",base7:"#D8DEE9",base8:"#D8DEE9",bg:"#1B2B34","bg-alt":"#14232D",blue:"#6699CC",cyan:"#5FB3B3","dark-blue":"#6699CC","dark-cyan":"#5FB3B3",fg:"#D8DEE9","fg-alt":"#CDD3DE",green:"#99C794",grey:"#A7ADBA",magenta:"#E27E8D",orange:"#F99157",red:"#EC5f67",teal:"#5FB3B3",violet:"#C594C5",yellow:"#FAC863"},nova:{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#686b78",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#1c1d20","bg-alt":"#151619",blue:"#4fb3d8",cyan:"#4fb3d8","dark-blue":"#5689f0","dark-cyan":"#4fb3d8",fg:"#cbccd1","fg-alt":"#5B6268",green:"#78bd65",grey:"#3f444a",magenta:"#b978ab",orange:"#ee7b29",red:"#ea3d54",teal:"#78bd65",violet:"#b978ab",yellow:"#fedd38"},"oceanic-next":{base0:"#f0f0f0",base1:"#e7e7e7",base2:"#dfdfdf",base3:"#c6c7c7",base4:"#9ca0a4",base5:"#383a42",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",bg:"#fafafa","bg-alt":"#f0f0f0",blue:"#4078f2",cyan:"#0184bc","dark-blue":"#a0bcf8","dark-cyan":"#005478",fg:"#383a42","fg-alt":"#c6c7c7",green:"#50a14f",grey:"#9ca0a4",magenta:"#a626a4",orange:"#da8548",red:"#e45649",teal:"#4db5bd",violet:"#b751b6",yellow:"#986801"},"old-hope":{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#282c34","bg-alt":"#21242b",blue:"#51afef",cyan:"#46D9FF","dark-blue":"#2257A0","dark-cyan":"#5699AF",fg:"#bbc2cf","fg-alt":"#5B6268",green:"#98be65",grey:"#3f444a",magenta:"#c678dd",orange:"#da8548",red:"#ff6c6b",teal:"#4db5bd",violet:"#a9a1e1",yellow:"#ECBE7B"},one:{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#2F3237",base4:"#4f5b66",base5:"#65737E",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#2b303b","bg-alt":"#232830",blue:"#8FA1B3",cyan:"#46D9FF","dark-blue":"#2257A0","dark-cyan":"#5699AF",fg:"#c0c5ce","fg-alt":"#c0c5ce",green:"#A3BE8C",grey:"#4f5b66",magenta:"#c678dd",orange:"#D08770",red:"#BF616A",teal:"#4db5bd",violet:"#b48ead",yellow:"#ECBE7B"},"one-light":{base0:"#f0f0f0",base1:"#e7e7e7",base2:"#dfdfdf",base3:"#c6c7c7",base4:"#9ca0a4",base5:"#383a42",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",bg:"#fafafa","bg-alt":"#f0f0f0",blue:"#014980",cyan:"#0184bc","dark-blue":"#030f64",fg:"#383a42","fg-alt":"#c6c7c7",green:"#556b2f",grey:"#383a42",magenta:"#a626a4",orange:"#8a3b3c",red:"#e45649",teal:"#4db5bd",violet:"#b751b6",yellow:"#986801","yellow-alt":"#fafadd"},"one-vibrant":{base0:"#1c1f24",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"},"opera-light":{base0:"#fafafa",base1:"#f5f5f5",base2:"#eeeeee",base3:"#e0e0e0",base4:"#bdbdbd",base5:"#9e9e9e",base6:"#757575",base7:"#616161",base8:"#424242",bg:"#fafafa","bg-alt":"#eeeeee",blue:"#3b6ea8",cyan:"#398eac","dark-blue":"#5272AF","dark-cyan":"#2c7088",fg:"#2a2a2a","fg-alt":"#454545",green:"#4f894c",grey:"#bdbdbd",magenta:"#97365b",orange:"#ac4426",red:"#99324b",teal:"#29838d",violet:"#842879",yellow:"#9a7500"},opera:{base0:"#000000",base1:"#1e1e1e",base2:"#2e2e2e",base3:"#262626",base4:"#3f3f3f",base5:"#525252",base6:"#6b6b6b",base7:"#979797",base8:"#dfdfdf",bg:"#323334","bg-alt":"#222224",blue:"#80A0C2",cyan:"#86C0D1","dark-blue":"#5C748E","dark-cyan":"#507681",fg:"#eceff4","fg-alt":"#727269",green:"#A2BF8A",grey:"#3f3f3f",magenta:"#B58DAE",orange:"#D2876D",red:"#C16069",teal:"#8EBCBB",violet:"#5D80AE",yellow:"#ECCC87"},"outrun-electric":{base0:"#131033",base1:"#1f1147",base2:"#110d26",base3:"#3b4167",base4:"#2d2844",base5:"#BA45A3",base6:"#6A6EA3",base7:"#6564D1",base8:"#919ad9",bg:"#0c0a20","bg-alt":"#090819",blue:"#1ea8fc",cyan:"#42c6ff","dark-blue":"#3F88AD","dark-cyan":"#204052",fg:"#f2f3f7","fg-alt":"#7984D1",green:"#a7da1e",grey:"#546A90",magenta:"#ff2afc",orange:"#cf433e",red:"#e61f44",teal:"#A875FF",violet:"#df85ff",yellow:"#ffd400"},palenight:{base0:"#1c1f2b",base1:"#1e212e",base2:"#232635",base3:"#3C435E",base4:"#4E5579",base5:"#676E95",base6:"#697098",base7:"#717CB4",base8:"#A6Accd",bg:"#292D3E","bg-alt":"#242837",blue:"#82aaff",cyan:"#89DDFF","dark-blue":"#7986E7","dark-cyan":"#80cbc4",fg:"#EEFFFF","fg-alt":"#BFC7D5",green:"#c3e88d",grey:"#676E95",magenta:"#c792ea",orange:"#f78c6c",red:"#ff5370",teal:"#44b9b1",violet:"#bb80b3",yellow:"#ffcb6b"},peacock:{bg:"#2b2a27","bg-alt":"#1F1E1D",base0:"#2b2a27",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",fg:"#ede0ce","fg-alt":"#5B6268",grey:"#3f444a",white:"#f8f8f0",red:"#ff5d38",orange:"#cb4b16",green:"#98be65",teal:"#26a6a6",yellow:"#bcd42a",blue:"#51afef","dark-blue":"#2257A0",magenta:"#c678dd",violet:"#a9a1e1",cyan:"#46D9FF","dark-cyan":"#5699AF"},"plain-dark":{base0:"#838083",base1:"#0e0c0a",base2:"#bbbbbb",base3:"#444444",base4:"#202020",base5:"#545053",base6:"#050505",base7:"#ffdddd",base8:"#050505",bg:"#222222","bg-alt":"#434343",blue:"#d7d5d1",cyan:"#d7d5d1","dark-blue":"#d7d5d1","dark-cyan":"#d7d5d1",fg:"#d7d5d1","fg-alt":"#e7e5e3",green:"#d7d5d1",grey:"#d7d5d1",magenta:"#d7d5d1",orange:"#d7d5d1",red:"#d7d5d1",teal:"#d7d5d1",violet:"#d7d5d1",yellow:"#d7d5d1"},plain:{base0:"#969896",base1:"#f1f3f5",base2:"#444444",base3:"#cccccc",base4:"#e7e7e7",base5:"#c5c8c6",base6:"#fafafa",base7:"#dfdfdf",base8:"#fafafa",bg:"#ffffff","bg-alt":"#f3f3f3",blue:"#282a2e",cyan:"#282a2e","dark-blue":"#282a2e","dark-cyan":"#282a2e",fg:"#282a2e","fg-alt":"#48494d",green:"#282a2e",grey:"#282a2e",magenta:"#282a2e",orange:"#282a2e",red:"#282a2e",teal:"#282a2e",violet:"#282a2e",yellow:"#282a2e"},rouge:{base0:"#070A0E",base1:"#0E131D",base2:"#151D2B",base3:"#1F2A3F",base4:"#5D636E",base5:"#64727d",base6:"#B16E75",base7:"#E8E9EB",base8:"#F0F4FC",bg:"#172030","bg-alt":"#172030",blue:"#6e94b9","dark-blue":"#1E6378",fg:"#FAFFF6","fg-alt":"#A7ACB9",green:"#A3B09A",grey:"#64727d","light-red":"#DB6E8F",magenta:"#b18bb1",orange:"#eabe9a",red:"#c6797e",salmon:"#F9B5AC",teal:"#7ea9a9",violet:"#5D80AE",yellow:"#F7E3AF"},"shades-of-purple":{base0:"#161a2a",base1:"#191a2a",base2:"#1e2030",base3:"#222436",base4:"#a599e9",base5:"#444a73",base6:"#828bb8",base7:"#a9b8e8",base8:"#b4c2f0",bg:"#2d2b55","bg-alt":"#1e1e3f","dark-green":"#00ff00","dark-red":"#ff5370","dark-teal":"#37fea1",fg:"#e3e9fa","fg-alt":"#b4c2f0",green:"#3ad900",grey:"#444a73",indigo:"#7a88cf","light-green":"#a5ff90","light-red":"#ff98a4",orange:"#ff9d00",red:"#ff000d",region:"#b362ff",selection:"#b362ff"},snazzy:{base0:"#282a36",base1:"#34353e",base2:"#43454f",base3:"#78787e",base4:"#a5a5a9",base5:"#e2e4e5",base6:"#eff0eb",base7:"#f1f1f0",base8:"#ff5c57",bg:"#282a36","bg-alt":"#242631",blue:"#57c7ff",cyan:"#9aedfe","dark-blue":"#459fcc",fg:"#f9f9f9","fg-alt":"#d1d1d1",green:"#5af78e",grey:"#848688",magenta:"#ff6ac1",red:"#ff5c57",ui0:"#848688",ui1:"#606580",ui2:"#3a3d4d",ui3:"#1c1e27",yellow:"#f3f99d"},"solarized-dark-high-contrast":{base0:"#01323d",base1:"#03282F",base2:"#00212C",base3:"#13383C",base4:"#56697A",base5:"#62787f",base6:"#96A7A9",base7:"#788484",base8:"#626C6C",bg:"#002732","bg-alt":"#00212B",blue:"#3c98e0",cyan:"#3cafa5","dark-blue":"#3F88AD","dark-cyan":"#03373f",fg:"#8d9fa1","fg-alt":"#60767e",green:"#93a61a",grey:"#56697A",magenta:"#e2468f",orange:"#db5823",red:"#ec423a",teal:"#35a69c",violet:"#7a7ed2",yellow:"#c49619"},"solarized-dark":{base0:"#073642",base1:"#03282F",base2:"#00212C",base3:"#13383C",base4:"#56697A",base5:"#405A61",base6:"#96A7A9",base7:"#788484",base8:"#626C6C",bg:"#002b36","bg-alt":"#00212B",blue:"#268bd2",cyan:"#2aa198","dark-blue":"#3F88AD","dark-cyan":"#204052",fg:"#839496","fg-alt":"#657b83",green:"#859900",grey:"#56697A",magenta:"#d33682",orange:"#cb4b16",red:"#dc322f",teal:"#35a69c",violet:"#6c71c4",yellow:"#b58900"},"solarized-light":{"dark-cyan":"#204052",cyan:"#2aa198",violet:"#6c71c4",magenta:"#d33682","dark-blue":"#3F88AD",blue:"#268bd2",yellow:"#b58900",teal:"#35a69c",green:"#859900",orange:"#cb4b16",red:"#dc322f",grey:"#E1DBCD",base8:"#626C6C",base7:"#788484",base6:"#96A7A9",base5:"#D6D6D6",base4:"#E1DBCD",base3:"#F2E6CE",base2:"#FCF7E8",base1:"#FCF8ED",base0:"#FFFBF0","fg-alt":"#7B8787","bg-alt":"#EEE8D5",fg:"#556b72",bg:"#FDF6E3"},sourcerer:{base0:"#1d2127",base1:"#1d2127",base2:"#272727",base3:"#32353f",base4:"#494952",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#faf4c6",bg:"#171717","bg-alt":"#222222",blue:"#87AFD7",cyan:"#87ceeb","dark-blue":"#6688aa",fg:"#c2c2b0","fg-alt":"#5D656B",green:"#87875f","green-br":"#719611",grey:"#686858",magenta:"#8787AF",orange:"#ff9800",red:"#aa4450",teal:"#578F8F",violet:"#8181a6",yellow:"#cc8800"},spacegrey:{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#2F3237",base4:"#4f5b66",base5:"#65737E",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#2b303b","bg-alt":"#232830",blue:"#8FA1B3",cyan:"#46D9FF","dark-blue":"#2257A0","dark-cyan":"#5699AF",fg:"#c0c5ce","fg-alt":"#c0c5ce",green:"#A3BE8C",grey:"#4f5b66",magenta:"#c678dd",orange:"#D08770",red:"#BF616A",teal:"#4db5bd",violet:"#b48ead",yellow:"#ECBE7B"},"tomorrow-day":{base0:"#f2f2f2",base1:"#e4e4e4",base2:"#dedede",base3:"#d6d4d4",base4:"#C0bfbf",base5:"#a3a1a1",base6:"#8a8787",base7:"#696769",base8:"#000000",bg:"#ffffff","bg-alt":"#f2f2f2",blue:"#4271ae",cyan:"#8abeb7","dark-blue":"#315482","dark-cyan":"#b8d8d3",fg:"#4d4d4c","fg-alt":"#1e1e1e",green:"#718c00",grey:"#8e908c",magenta:"#c678dd",orange:"#f5871f",red:"#c82829",teal:"#3e999f",violet:"#8959a8",yellow:"#eab700"},"tomorrow-night":{base0:"#0d0d0d",base1:"#1b1b1b",base2:"#212122",base3:"#292b2b",base4:"#3f4040",base5:"#5c5e5e",base6:"#757878",base7:"#969896",base8:"#ffffff",bg:"#1d1f21","bg-alt":"#161719",blue:"#81a2be",cyan:"#8abeb7","dark-blue":"#41728e","dark-cyan":"#52726d",fg:"#c5c8c6","fg-alt":"#767876",green:"#b5bd68",grey:"#5a5b5a",magenta:"#c9b4cf",orange:"#de935f",red:"#cc6666",teal:"#81a2be",violet:"#b294bb",yellow:"#f0c674"},wilmersdorf:{bg:"#282b33","bg-alt":"#1f2024",base0:"#222228",base1:"#282b33",base2:"#34373e",base3:"#41454b",base4:"#515462",base5:"#888395",base6:"#929292",base7:"#727269",base8:"#eceff4","fg-alt":"#c9d9ff",fg:"#c6c6c6",grey:"#515462",red:"#e1c1ee",orange:"#a6c1e0",green:"#5b94ab",teal:"#7ebebd",yellow:"#cfcf9c"},xcode:{base0:"#0d0d0d",base1:"#1b1b1b",base2:"#212122",base3:"#292b2b",base4:"#3f4040",base5:"#5c5e5e",base6:"#757878",base7:"#969896",base8:"#ffffff",bg:"#292A30","bg-alt":"#252629",blue:"#5DD8FF",cyan:"#8abeb7","dark-cyan":"#52726d",fg:"#FFFFFF","fg-alt":"#999999",green:"#67B7A4",grey:"#6C7986","light-green":"#9EF1DD",magenta:"#D0A8FF",orange:"#FD8F3F",red:"#FC6A5D",teal:"#59B0CF",violet:"#A167E6",yellow:"#D0BF68"},zenburn:{"dark-cyan":"#5699AF",cyan:"#93E0E3",violet:"#a9a1e1",magenta:"#DC8CC3","dark-blue":"#2257A0",blue:"#8CD0D3",yellow:"#F0DFAF",teal:"#4db5bd",green:"#7F9F7F",orange:"#DFAF8F",red:"#CC9393",grey:"#494949","fg-alt":"#989890",fg:"#DCDCDC",base8:"#FFFFEF",base7:"#6F6F6F",base6:"#5F5F5F",base5:"#4F4F4F",base4:"#494949",base3:"#383838",base2:"#303030",base1:"#2B2B2B",base0:"#000000","bg-alt":"#383838",bg:"#3F3F3F"}}},93264:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return va}});var n=t(92809),a=(t(43146),t(70917)),o=t(67294),i=function(){return o.createElement(a.xB,{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 }\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 '})},l=t(46871),s=t(105),c=t(20949),u=t(85393),d=t(97375),f={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"};function b(){return(b=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var p=b({},f,{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"}}),g=t(38554),h=t.n(g);t(9839);function m(e){return Array.isArray(e)}function v(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!m(e)}!function(e){var r=new WeakMap}((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n<a.length&&e;n+=1)e=e[a[n]];return void 0===e?t:e}));var y=function(e){return e.reduce((function(e,r){var t=r[0],n=r[1];return e[t]=n,e}),{})};"undefined"===typeof window||!window.document||window.document.createElement;["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 x(e){var r;return function(){if(e){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];r=e.apply(this,n),e=null}return r}}x((function(e){return function(){e.condition,e.message}})),x((function(e){return function(){e.condition,e.message}}));Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;Object.freeze(["base","sm","md","lg","xl","2xl"]);function w(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var k=function(){function e(e){var r=this;this.map={},this.called=!1,this.assert=function(){if(r.called)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r.called=!0},this.parts=function(){r.assert();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var a=0,o=t;a<o.length;a++){var i=o[a];r.map[i]=r.toPart(i)}return r},this.extend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var a=0,o=t;a<o.length;a++){var i=o[a];i in r.map||(r.map[i]=r.toPart(i))}return r},this.toPart=function(e){var t="chakra-"+(["container","root"].includes(null!=e?e:"")?[r.name]:[r.name,e]).filter(Boolean).join("__");return{className:t,selector:"."+t,toString:function(){return e}}},this.__type={}}var r,t,n;return r=e,(t=[{key:"selectors",get:function(){return y(Object.entries(this.map).map((function(e){return[e[0],e[1].selector]})))}},{key:"classNames",get:function(){return y(Object.entries(this.map).map((function(e){return[e[0],e[1].className]})))}},{key:"keys",get:function(){return Object.keys(this.map)}}])&&w(r.prototype,t),n&&w(r,n),e}();function S(e){return new k(e)}function E(e){return v(e)&&e.reference?e.reference:String(e)}var C=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.map(E).join(" "+e+" ").replace(/calc/g,"")},A=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+C.apply(void 0,["+"].concat(r))+")"},F=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+C.apply(void 0,["-"].concat(r))+")"},B=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+C.apply(void 0,["*"].concat(r))+")"},_=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+C.apply(void 0,["/"].concat(r))+")"},D=function(e){var r=E(e);return null==r||Number.isNaN(parseFloat(r))?B(r,-1):String(r).startsWith("-")?String(r).slice(1):"-"+r},R=Object.assign((function(e){return{add:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return R(A.apply(void 0,[e].concat(t)))},subtract:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return R(F.apply(void 0,[e].concat(t)))},multiply:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return R(B.apply(void 0,[e].concat(t)))},divide:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return R(_.apply(void 0,[e].concat(t)))},negate:function(){return R(D(e))},toString:function(){return e.toString()}}}),{add:A,subtract:F,multiply:B,divide:_,negate:D});var T=S("accordion").parts("container","item","button","panel").extend("icon"),z=S("alert").parts("title","description","container").extend("icon"),P=S("avatar").parts("label","badge","container").extend("excessLabel","group"),M=S("breadcrumb").parts("link","item","container").extend("separator"),j=(S("button").parts(),S("checkbox").parts("control","icon","container").extend("label")),O=(S("progress").parts("track","filledTrack").extend("label"),S("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),I=S("editable").parts("preview","input"),W=S("form").parts("container","requiredIndicator","helperText"),N=S("formError").parts("text","icon"),L=S("input").parts("addon","field","element"),H=S("list").parts("container","item","icon"),$=S("menu").parts("button","list","item").extend("groupTitle","command","divider"),q=S("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Z=S("numberinput").parts("root","field","stepperGroup","stepper"),U=(S("pininput").parts("field"),S("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),V=S("progress").parts("label","filledTrack","track"),Y=S("radio").parts("container","control","label"),X=S("select").parts("field","icon"),G=S("slider").parts("container","track","thumb","filledTrack"),K=S("stat").parts("container","label","helpText","number","icon"),J=S("switch").parts("container","track","thumb"),Q=S("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),ee=S("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),re=S("tag").parts("container","label","closeButton");function te(e,r){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===r?e:Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*r),10)/100),Math.abs(e-r)<1e-6?1:e=360===r?(e<0?e%r+r:e%r)/parseFloat(String(r)):e%r/parseFloat(String(r))}function ne(e){return Math.min(1,Math.max(0,e))}function ae(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function oe(e){return e<=1?100*Number(e)+"%":e}function ie(e){return 1===e.length?"0"+e:String(e)}function le(e,r,t){e=te(e,255),r=te(r,255),t=te(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),o=0,i=0,l=(n+a)/2;if(n===a)i=0,o=0;else{var s=n-a;switch(i=l>.5?s/(2-n-a):s/(n+a),n){case e:o=(r-t)/s+(r<t?6:0);break;case r:o=(t-e)/s+2;break;case t:o=(e-r)/s+4}o/=6}return{h:o,s:i,l:l}}function se(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*t*(r-e):t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function ce(e,r,t){e=te(e,255),r=te(r,255),t=te(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),o=0,i=n,l=n-a,s=0===n?0:l/n;if(n===a)o=0;else{switch(n){case e:o=(r-t)/l+(r<t?6:0);break;case r:o=(t-e)/l+2;break;case t:o=(e-r)/l+4}o/=6}return{h:o,s:s,v:i}}function ue(e,r,t,n){var a=[ie(Math.round(e).toString(16)),ie(Math.round(r).toString(16)),ie(Math.round(t).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function de(e){return Math.round(255*parseFloat(e)).toString(16)}function fe(e){return be(e)/255}function be(e){return parseInt(e,16)}var pe={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ge(e){var r,t,n,a={r:0,g:0,b:0},o=1,i=null,l=null,s=null,c=!1,u=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var r=!1;if(pe[e])e=pe[e],r=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var t=ye.rgb.exec(e);if(t)return{r:t[1],g:t[2],b:t[3]};if(t=ye.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=ye.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=ye.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=ye.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=ye.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=ye.hex8.exec(e))return{r:be(t[1]),g:be(t[2]),b:be(t[3]),a:fe(t[4]),format:r?"name":"hex8"};if(t=ye.hex6.exec(e))return{r:be(t[1]),g:be(t[2]),b:be(t[3]),format:r?"name":"hex"};if(t=ye.hex4.exec(e))return{r:be(t[1]+t[1]),g:be(t[2]+t[2]),b:be(t[3]+t[3]),a:fe(t[4]+t[4]),format:r?"name":"hex8"};if(t=ye.hex3.exec(e))return{r:be(t[1]+t[1]),g:be(t[2]+t[2]),b:be(t[3]+t[3]),format:r?"name":"hex"};return!1}(e)),"object"===typeof e&&(xe(e.r)&&xe(e.g)&&xe(e.b)?(r=e.r,t=e.g,n=e.b,a={r:255*te(r,255),g:255*te(t,255),b:255*te(n,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):xe(e.h)&&xe(e.s)&&xe(e.v)?(i=oe(e.s),l=oe(e.v),a=function(e,r,t){e=6*te(e,360),r=te(r,100),t=te(t,100);var n=Math.floor(e),a=e-n,o=t*(1-r),i=t*(1-a*r),l=t*(1-(1-a)*r),s=n%6;return{r:255*[t,i,o,o,l,t][s],g:255*[l,t,t,i,o,o][s],b:255*[o,o,l,t,t,i][s]}}(e.h,i,l),c=!0,u="hsv"):xe(e.h)&&xe(e.s)&&xe(e.l)&&(i=oe(e.s),s=oe(e.l),a=function(e,r,t){var n,a,o;if(e=te(e,360),r=te(r,100),t=te(t,100),0===r)a=t,o=t,n=t;else{var i=t<.5?t*(1+r):t+r-t*r,l=2*t-i;n=se(l,i,e+1/3),a=se(l,i,e),o=se(l,i,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,i,s),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=ae(o),{ok:c,format:e.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:o}}var he="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",me="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",ve="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",ye={CSS_UNIT:new RegExp(he),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+ve),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 xe(e){return Boolean(ye.CSS_UNIT.exec(String(e)))}var we=function(){function e(r,t){var n;if(void 0===r&&(r=""),void 0===t&&(t={}),r instanceof e)return r;"number"===typeof r&&(r=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(r)),this.originalInput=r;var a=ge(r);this.originalInput=r,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=t.format)&&void 0!==n?n:a.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),r=e.r/255,t=e.g/255,n=e.b/255;return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ae(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=ce(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ce(this.r,this.g,this.b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return 1===this.a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=le(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=le(this.r,this.g,this.b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return 1===this.a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ue(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,r,t,n,a){var o=[ie(Math.round(e).toString(16)),ie(Math.round(r).toString(16)),ie(Math.round(t).toString(16)),ie(de(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),r=Math.round(this.g),t=Math.round(this.b);return 1===this.a?"rgb("+e+", "+r+", "+t+")":"rgba("+e+", "+r+", "+t+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*te(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*te(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+ue(this.r,this.g,this.b,!1),r=0,t=Object.entries(pe);r<t.length;r++){var n=t[r],a=n[0];if(e===n[1])return a}return!1},e.prototype.toString=function(e){var r=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var t=!1,n=this.a<1&&this.a>=0;return r||!n||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l+=r/100,t.l=ne(t.l),new e(t)},e.prototype.brighten=function(r){void 0===r&&(r=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),new e(t)},e.prototype.darken=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l-=r/100,t.l=ne(t.l),new e(t)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s-=r/100,t.s=ne(t.s),new e(t)},e.prototype.saturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s+=r/100,t.s=ne(t.s),new e(t)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(r){var t=this.toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,new e(t)},e.prototype.mix=function(r,t){void 0===t&&(t=50);var n=this.toRgb(),a=new e(r).toRgb(),o=t/100;return new e({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},e.prototype.analogous=function(r,t){void 0===r&&(r=6),void 0===t&&(t=30);var n=this.toHsl(),a=360/t,o=[this];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new e(r)},e.prototype.monochromatic=function(r){void 0===r&&(r=6);for(var t=this.toHsv(),n=t.h,a=t.s,o=t.v,i=[],l=1/r;r--;)i.push(new e({h:n,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var r=this.toHsl(),t=r.h;return[this,new e({h:(t+72)%360,s:r.s,l:r.l}),new e({h:(t+216)%360,s:r.s,l:r.l})]},e.prototype.onBackground=function(r){var t=this.toRgb(),n=new e(r).toRgb();return new e({r:n.r+(t.r-n.r)*t.a,g:n.g+(t.g-n.g)*t.a,b:n.b+(t.b-n.b)*t.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(r){for(var t=this.toHsl(),n=t.h,a=[this],o=360/r,i=1;i<r;i++)a.push(new e({h:(n+i*o)%360,s:t.s,l:t.l}));return a},e.prototype.equals=function(r){return this.toRgbString()===new e(r).toRgbString()},e}();function ke(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var r=e.count,t=[];for(e.count=void 0;r>t.length;)e.count=null,e.seed&&(e.seed+=1),t.push(ke(e));return e.count=r,t}var n=function(e,r){var t=Ee(function(e){var r=parseInt(e,10);if(!Number.isNaN(r)&&r<360&&r>0)return[r,r];if("string"===typeof e){var t=Ae.find((function(r){return r.name===e}));if(t){var n=Ce(t);if(n.hueRange)return n.hueRange}var a=new we(e);if(a.isValid){var o=a.toHsv().h;return[o,o]}}return[0,360]}(e),r);t<0&&(t=360+t);return t}(e.hue,e.seed),a=function(e,r){if("monochrome"===r.hue)return 0;if("random"===r.luminosity)return Ee([0,100],r.seed);var t=Se(e).saturationRange,n=t[0],a=t[1];switch(r.luminosity){case"bright":n=55;break;case"dark":n=a-10;break;case"light":a=55}return Ee([n,a],r.seed)}(n,e),o={h:n,s:a,v:function(e,r,t){var n=function(e,r){for(var t=Se(e).lowerBounds,n=0;n<t.length-1;n++){var a=t[n][0],o=t[n][1],i=t[n+1][0],l=t[n+1][1];if(r>=a&&r<=i){var s=(l-o)/(i-a);return s*r+(o-s*a)}}return 0}(e,r),a=100;switch(t.luminosity){case"dark":a=n+20;break;case"light":n=(a+n)/2;break;case"random":n=0,a=100}return Ee([n,a],t.seed)}(n,a,e)};return void 0!==e.alpha&&(o.a=e.alpha),new we(o)}function Se(e){e>=334&&e<=360&&(e-=360);for(var r=0,t=Ae;r<t.length;r++){var n=Ce(t[r]);if(n.hueRange&&e>=n.hueRange[0]&&e<=n.hueRange[1])return n}throw Error("Color not found")}function Ee(e,r){if(void 0===r)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var t=e[1]||1,n=e[0]||0,a=(r=(9301*r+49297)%233280)/233280;return Math.floor(n+a*(t-n))}function Ce(e){var r=e.lowerBounds[0][0],t=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],a=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[r,t],brightnessRange:[n,a]}}var Ae=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],Fe=t(44592),Be=function(e,r,t){var n=(0,Fe.Wf)(e,"colors."+r,r);return new we(n).isValid?n:t},_e=function(e){return function(r){var t=Be(r,e);return new we(t).isDark()?"dark":"light"}},De=function(e,r){return function(t){var n=Be(t,e);return new we(n).setAlpha(r).toRgbString()}};function Re(e,r){return void 0===e&&(e="1rem"),void 0===r&&(r="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+r+" 25%,\n transparent 25%,\n transparent 50%,\n "+r+" 50%,\n "+r+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:e+" "+e}}function Te(e){var r=ke().toHexString();return!e||(0,Fe.Qr)(e)?r:e.string&&e.colors?function(e,r){var t=0;if(0===e.length)return r[0];for(var n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;return t=(t%r.length+r.length)%r.length,r[t]}(e.string,e.colors):e.string&&!e.colors?function(e){var r=0;if(0===e.length)return r.toString();for(var t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;for(var n="#",a=0;a<3;a+=1){n+=("00"+(r>>8*a&255).toString(16)).substr(-2)}return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):r}function ze(e,r){return function(t){return"dark"===t.colorMode?r:e}}function Pe(e){var r=e.orientation,t=e.vertical,n=e.horizontal;return r?"vertical"===r?t:n:{}}function Me(){return(Me=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function je(e){return(0,Fe.Kn)(e)&&e.reference?e.reference:String(e)}var Oe=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.map(je).join(" "+e+" ").replace(/calc/g,"")},Ie=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Oe.apply(void 0,["+"].concat(r))+")"},We=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Oe.apply(void 0,["-"].concat(r))+")"},Ne=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Oe.apply(void 0,["*"].concat(r))+")"},Le=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Oe.apply(void 0,["/"].concat(r))+")"},He=function(e){var r=je(e);return null==r||Number.isNaN(parseFloat(r))?Ne(r,-1):String(r).startsWith("-")?String(r).slice(1):"-"+r},$e=Object.assign((function(e){return{add:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return $e(Ie.apply(void 0,[e].concat(t)))},subtract:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return $e(We.apply(void 0,[e].concat(t)))},multiply:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return $e(Ne.apply(void 0,[e].concat(t)))},divide:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return $e(Le.apply(void 0,[e].concat(t)))},negate:function(){return $e(He(e))},toString:function(){return e.toString()}}}),{add:Ie,subtract:We,multiply:Ne,divide:Le,negate:He});function qe(e){var r=function(e,r){return void 0===r&&(r="-"),e.replace(/\s+/g,r)}(e.toString());return r.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?r.replace(".","\\."):e}function Ze(e,r){return"var("+qe(e)+(r?", "+r:"")+")"}function Ue(e,r){return void 0===r&&(r=""),"--"+function(e,r){return void 0===r&&(r=""),[r,qe(e)].filter(Boolean).join("-")}(e,r)}function Ve(e,r){var t=Ue(e,null==r?void 0:r.prefix);return{variable:t,reference:Ze(t,Ye(null==r?void 0:r.fallback))}}function Ye(e){return"string"===typeof e?e:null==e?void 0:e.reference}var Xe={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"}},Ge={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"}},Ke={parts:T.keys,baseStyle:Ge};function Je(e){var r=e.theme,t=e.colorScheme;return ze(Be(r,t+".100",t),De(t+".200",.16)(r))(e)}var Qe={subtle:function(e){var r=e.colorScheme;return{container:{bg:Je(e)},icon:{color:ze(r+".500",r+".200")(e)}}},"left-accent":function(e){var r=e.colorScheme;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:ze(r+".500",r+".200")(e),bg:Je(e)},icon:{color:ze(r+".500",r+".200")(e)}}},"top-accent":function(e){var r=e.colorScheme;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:ze(r+".500",r+".200")(e),bg:Je(e)},icon:{color:ze(r+".500",r+".200")(e)}}},solid:function(e){var r=e.colorScheme;return{container:{bg:ze(r+".500",r+".200")(e),color:ze("white","gray.900")(e)}}}},er={parts:z.keys,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:Qe,defaultProps:{variant:"subtle",colorScheme:"blue"}},rr=function(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:ze("white","gray.800")(e)}},tr=function(e){return{bg:ze("gray.200","whiteAlpha.400")(e)}},nr=function(e){var r=e.name,t=e.theme,n=r?Te({string:r}):"gray.400",a=function(e){return function(r){return"dark"===_e(e)(r)}}(n)(t),o="white";return a||(o="gray.800"),{bg:n,color:o,borderColor:ze("white","gray.800")(e),verticalAlign:"top"}};function ar(e){var r=p[e];return{container:{width:e,height:e,fontSize:"calc("+(null!=r?r:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(null!=r?r:e)+" / 2.5)",lineHeight:"100%"!==e?null!=r?r:e:void 0}}}var or,ir,lr,sr={"2xs":ar("4"),xs:ar("6"),sm:ar("8"),md:ar("12"),lg:ar("16"),xl:ar("24"),"2xl":ar("32"),full:ar("100%")},cr={parts:P.keys,baseStyle:function(e){return{badge:rr(e),excessLabel:tr(e),container:nr(e)}},sizes:sr,defaultProps:{size:"md"}},ur={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(e){var r=e.colorScheme,t=e.theme;return{bg:ze(r+".500",De(r+".500",.6)(t))(e),color:ze("white","whiteAlpha.800")(e)}},subtle:function(e){var r=e.colorScheme,t=e.theme;return{bg:ze(r+".100",De(r+".200",.16)(t))(e),color:ze(r+".800",r+".200")(e)}},outline:function(e){var r=e.colorScheme,t=e.theme,n=De(r+".200",.8)(t),a=ze(Be(t,r+".500"),n)(e);return{color:a,boxShadow:"inset 0 0 0px 1px "+a}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},dr={link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},fr={parts:M.keys,baseStyle:dr},br=function(e){var r=e.colorScheme,t=e.theme;if("gray"===r)return{color:ze("inherit","whiteAlpha.900")(e),_hover:{bg:ze("gray.100","whiteAlpha.200")(e)},_active:{bg:ze("gray.200","whiteAlpha.300")(e)}};var n=De(r+".200",.12)(t),a=De(r+".200",.24)(t);return{color:ze(r+".600",r+".200")(e),bg:"transparent",_hover:{bg:ze(r+".50",n)(e)},_active:{bg:ze(r+".100",a)(e)}}},pr={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},gr={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:br,outline:function(e){var r=e.colorScheme,t=ze("gray.200","whiteAlpha.300")(e);return b({border:"1px solid",borderColor:"gray"===r?t:"currentColor"},br(e))},solid:function(e){var r,t=e.colorScheme;if("gray"===t){var n=ze("gray.100","whiteAlpha.200")(e);return{bg:n,_hover:{bg:ze("gray.200","whiteAlpha.300")(e),_disabled:{bg:n}},_active:{bg:ze("gray.300","whiteAlpha.400")(e)}}}var a=null!=(r=pr[t])?r:{},o=a.bg,i=void 0===o?t+".500":o,l=a.color,s=void 0===l?"white":l,c=a.hoverBg,u=void 0===c?t+".600":c,d=a.activeBg,f=void 0===d?t+".700":d,b=ze(i,t+".200")(e);return{bg:b,color:ze(s,"gray.800")(e),_hover:{bg:ze(u,t+".300")(e),_disabled:{bg:b}},_active:{bg:ze(f,t+".400")(e)}}},link:function(e){var r=e.colorScheme;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ze(r+".500",r+".200")(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ze(r+".700",r+".500")(e)}}},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"}},hr=function(e){var r=e.colorScheme;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ze(r+".500",r+".200")(e),borderColor:ze(r+".500",r+".200")(e),color:ze("white","gray.900")(e),_hover:{bg:ze(r+".600",r+".300")(e),borderColor:ze(r+".600",r+".300")(e)},_disabled:{borderColor:ze("gray.200","transparent")(e),bg:ze("gray.200","whiteAlpha.300")(e),color:ze("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ze(r+".500",r+".200")(e),borderColor:ze(r+".500",r+".200")(e),color:ze("white","gray.900")(e)},_disabled:{bg:ze("gray.100","whiteAlpha.100")(e),borderColor:ze("gray.100","transparent")(e)},_focus:{boxShadow:"outline"},_invalid:{borderColor:ze("red.500","red.300")(e)}}},mr={userSelect:"none",_disabled:{opacity:.4}},vr={transitionProperty:"transform",transitionDuration:"normal"},yr={parts:j.keys,baseStyle:function(e){return{icon:vr,control:hr(e),label:mr}},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"}},xr=Ve("close-button-size"),wr={baseStyle:function(e){var r=ze("blackAlpha.100","whiteAlpha.100")(e),t=ze("blackAlpha.200","whiteAlpha.200")(e);return{w:[xr.reference],h:[xr.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:r},_active:{bg:t},_focus:{boxShadow:"outline"}}},sizes:{lg:(or={},or[xr.variable]="40px",or.fontSize="16px",or),md:(ir={},ir[xr.variable]="32px",ir.fontSize="12px",ir),sm:(lr={},lr[xr.variable]="24px",lr.fontSize="10px",lr)},defaultProps:{size:"md"}},kr={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:ur.variants,defaultProps:ur.defaultProps},Sr={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},Er={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}};function Cr(e){return"full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}}}var Ar={bg:"blackAlpha.600",zIndex:"overlay"},Fr={display:"flex",zIndex:"modal",justifyContent:"center"},Br=function(e){return b({},e.isFullHeight&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:ze("white","gray.700")(e),color:"inherit",boxShadow:ze("lg","dark-lg")(e)})},_r={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},Dr={position:"absolute",top:2,insetEnd:3},Rr={px:6,py:2,flex:1,overflow:"auto"},Tr={px:6,py:4},zr={xs:Cr("xs"),sm:Cr("md"),md:Cr("lg"),lg:Cr("2xl"),xl:Cr("4xl"),full:Cr("full")},Pr={parts:O.keys,baseStyle:function(e){return{overlay:Ar,dialogContainer:Fr,dialog:Br(e),header:_r,closeButton:Dr,body:Rr,footer:Tr}},sizes:zr,defaultProps:{size:"xs"}},Mr={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}}},jr={parts:I.keys,baseStyle:Mr},Or=function(e){return{marginStart:1,color:ze("red.500","red.300")(e)}},Ir=function(e){return{mt:2,color:ze("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}},Wr={parts:W.keys,baseStyle:function(e){return{container:{width:"100%",position:"relative"},requiredIndicator:Or(e),helperText:Ir(e)}}},Nr=function(e){return{color:ze("red.500","red.300")(e),mt:2,fontSize:"sm",lineHeight:"normal"}},Lr=function(e){return{marginEnd:"0.5em",color:ze("red.500","red.300")(e)}},Hr={parts:N.keys,baseStyle:function(e){return{text:Nr(e),icon:Lr(e)}}},$r={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},qr={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"}},Zr={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"}},Ur={lg:{field:Zr.lg,addon:Zr.lg},md:{field:Zr.md,addon:Zr.md},sm:{field:Zr.sm,addon:Zr.sm},xs:{field:Zr.xs,addon:Zr.xs}};function Vr(e){var r=e.focusBorderColor,t=e.errorBorderColor;return{focusBorderColor:r||ze("blue.500","blue.300")(e),errorBorderColor:t||ze("red.500","red.300")(e)}}var Yr={outline:function(e){var r=e.theme,t=Vr(e),n=t.focusBorderColor,a=t.errorBorderColor;return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ze("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:Be(r,a),boxShadow:"0 0 0 1px "+Be(r,a)},_focus:{zIndex:1,borderColor:Be(r,n),boxShadow:"0 0 0 1px "+Be(r,n)}},addon:{border:"1px solid",borderColor:ze("inherit","whiteAlpha.50")(e),bg:ze("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var r=e.theme,t=Vr(e),n=t.focusBorderColor,a=t.errorBorderColor;return{field:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e),_hover:{bg:ze("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:Be(r,a)},_focus:{bg:"transparent",borderColor:Be(r,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e)}}},flushed:function(e){var r=e.theme,t=Vr(e),n=t.focusBorderColor,a=t.errorBorderColor;return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Be(r,a),boxShadow:"0px 1px 0px 0px "+Be(r,a)},_focus:{borderColor:Be(r,n),boxShadow:"0px 1px 0px 0px "+Be(r,n)}},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"}}},Xr={parts:L.keys,baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:Ur,variants:Yr,defaultProps:{size:"md",variant:"outline"}},Gr={baseStyle:function(e){return{bg:ze("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},Kr={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},Jr={container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}},Qr={parts:H.keys,baseStyle:Jr},et=function(e){return{bg:ze("#fff","gray.700")(e),boxShadow:ze("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}},rt=function(e){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:ze("gray.100","whiteAlpha.100")(e)},_active:{bg:ze("gray.200","whiteAlpha.200")(e)},_expanded:{bg:ze("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}},tt={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},nt={opacity:.6},at={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},ot={transitionProperty:"common",transitionDuration:"normal"},it={parts:$.keys,baseStyle:function(e){return{button:ot,list:et(e),item:rt(e),groupTitle:tt,command:nt,divider:at}}},lt={bg:"blackAlpha.600",zIndex:"modal"},st=function(e){return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e.isCentered?"center":"flex-start",overflow:"inside"===e.scrollBehavior?"hidden":"auto"}},ct=function(e){var r=e.scrollBehavior;return{borderRadius:"md",bg:ze("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,boxShadow:ze("lg","dark-lg")(e)}},ut={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},dt={position:"absolute",top:2,insetEnd:3},ft=function(e){return{px:6,py:2,flex:1,overflow:"inside"===e.scrollBehavior?"auto":void 0}},bt={px:6,py:4};function pt(e){return"full"===e?{dialog:{maxW:"100vw",minH:"100vh","@supports(min-height: -webkit-fill-available)":{minH:"-webkit-fill-available"},my:0}}:{dialog:{maxW:e}}}var gt,ht,mt,vt={xs:pt("xs"),sm:pt("sm"),md:pt("md"),lg:pt("lg"),xl:pt("xl"),"2xl":pt("2xl"),"3xl":pt("3xl"),"4xl":pt("4xl"),"5xl":pt("5xl"),"6xl":pt("6xl"),full:pt("full")},yt={parts:q.keys,baseStyle:function(e){return{overlay:lt,dialogContainer:st(e),dialog:ct(e),header:ut,closeButton:dt,body:ft(e),footer:bt}},sizes:vt,defaultProps:{size:"md"}},xt=Xr.variants,wt=Xr.defaultProps,kt=Ve("number-input-stepper-width"),St=Ve("number-input-input-padding"),Et=$e(kt).add("0.5rem").toString(),Ct=((gt={})[kt.variable]="24px",gt[St.variable]=Et,gt),At=null!=(ht=null==(mt=Xr.baseStyle)?void 0:mt.field)?ht:{},Ft={width:[kt.reference]},Bt=function(e){return{borderStart:"1px solid",borderStartColor:ze("inherit","whiteAlpha.300")(e),color:ze("inherit","whiteAlpha.800")(e),_active:{bg:ze("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}};function _t(e){var r,t,n=Xr.sizes[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},o=null!=(r=null==(t=n.field)?void 0:t.fontSize)?r:"md",i=Xe.fontSizes[o.toString()];return{field:b({},n.field,{paddingInlineEnd:St.reference,verticalAlign:"top"}),stepper:{fontSize:$e(i).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}}}var Dt,Rt={xs:_t("xs"),sm:_t("sm"),md:_t("md"),lg:_t("lg")},Tt={parts:Z.keys,baseStyle:function(e){return{root:Ct,field:At,stepperGroup:Ft,stepper:Bt(e)}},sizes:Rt,variants:xt,defaultProps:wt},zt={baseStyle:b({},Xr.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:function(e){var r;return null!=(r=Xr.variants.outline(e).field)?r:{}},flushed:function(e){var r;return null!=(r=Xr.variants.flushed(e).field)?r:{}},filled:function(e){var r;return null!=(r=Xr.variants.filled(e).field)?r:{}},unstyled:null!=(Dt=Xr.variants.unstyled.field)?Dt:{}},defaultProps:Xr.defaultProps},Pt=Ve("popper-bg"),Mt=Ve("popper-arrow-bg"),jt=Ve("popper-arrow-shadow-color"),Ot={zIndex:10},It=function(e){var r,t=ze("white","gray.700")(e),n=ze("gray.200","whiteAlpha.300")(e);return(r={})[Pt.variable]="colors."+t,r.bg=Pt.reference,r[Mt.variable]=Pt.reference,r[jt.variable]="colors."+n,r.width="xs",r.border="1px solid",r.borderColor="inherit",r.borderRadius="md",r.boxShadow="sm",r.zIndex="inherit",r._focus={outline:0,boxShadow:"outline"},r},Wt={px:3,py:2,borderBottomWidth:"1px"},Nt={px:3,py:2},Lt={px:3,py:2,borderTopWidth:"1px"},Ht={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},$t={parts:U.keys,baseStyle:function(e){return{popper:Ot,content:It(e),header:Wt,body:Nt,footer:Lt,arrow:{},closeButton:Ht}}};var qt={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Zt=function(e){return{bg:ze("gray.100","whiteAlpha.300")(e)}},Ut=function(e){return b({transitionProperty:"common",transitionDuration:"slow"},function(e){var r=e.colorScheme,t=e.theme,n=e.isIndeterminate,a=e.hasStripe,o=ze(Re(),Re("1rem","rgba(0,0,0,0.1)"))(e),i=ze(r+".500",r+".200")(e),l="linear-gradient(\n to right,\n transparent 0%,\n "+Be(t,i)+" 50%,\n transparent 100%\n )";return b({},!n&&a&&o,n?{bgImage:l}:{bgColor:i})}(e))},Vt={parts:V.keys,sizes:{xs:{track:{h:"0.25rem"}},sm:{track:{h:"0.5rem"}},md:{track:{h:"0.75rem"}},lg:{track:{h:"1rem"}}},baseStyle:function(e){return{label:qt,filledTrack:Ut(e),track:Zt(e)}},defaultProps:{size:"md",colorScheme:"blue"}},Yt=function(e){var r=yr.baseStyle(e).control,t=void 0===r?{}:r;return b({},t,{borderRadius:"full",_checked:b({},t._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})},Xt={parts:Y.keys,baseStyle:function(e){return{label:yr.baseStyle(e).label,control:Yt(e)}},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"}},Gt=function(e){return b({},Xr.baseStyle.field,{bg:ze("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:ze("white","gray.700")(e)}})},Kt={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Jt={paddingInlineEnd:"2rem"},Qt=h()({},Xr.sizes,{lg:{field:Jt},md:{field:Jt},sm:{field:Jt},xs:{field:Jt,icon:{insetEnd:"0.25rem"}}}),en={parts:X.keys,baseStyle:function(e){return{field:Gt(e),icon:Kt}},sizes:Qt,variants:Xr.variants,defaultProps:Xr.defaultProps},rn=function(e,r){return(0,a.F4)({from:{borderColor:e,background:e},to:{borderColor:r,background:r}})},tn={baseStyle:function(e){var r=ze("gray.100","gray.800")(e),t=ze("gray.400","gray.600")(e),n=e.startColor,a=void 0===n?r:n,o=e.endColor,i=void 0===o?t:o,l=e.speed,s=e.theme,c=Be(s,a),u=Be(s,i);return{opacity:.7,borderRadius:"2px",borderColor:c,background:u,animation:l+"s linear infinite alternate "+rn(c,u)}}},nn={baseStyle:function(e){return{borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:ze("white","gray.700")(e)}}}};var an,on,ln,sn,cn,un,dn,fn,bn,pn,gn,hn,mn,vn=function(e){return b({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},Pe({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},yn=function(e){return{overflow:"hidden",borderRadius:"sm",bg:ze("gray.200","whiteAlpha.200")(e),_disabled:{bg:ze("gray.300","whiteAlpha.300")(e)}}},xn=function(e){return b({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,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(e){return Pe({orientation:e.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)"}}})}(e))},wn=function(e){var r=e.colorScheme;return{width:"inherit",height:"inherit",bg:ze(r+".500",r+".200")(e)}},kn={lg:function(e){return{thumb:{w:"16px",h:"16px"},track:Pe({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:Pe({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:Pe({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},Sn={parts:G.keys,sizes:kn,baseStyle:function(e){return{container:vn(e),track:yn(e),thumb:xn(e),filledTrack:wn(e)}},defaultProps:{size:"md",colorScheme:"blue"}},En=Ve("spinner-size"),Cn={baseStyle:{width:[En.reference],height:[En.reference]},sizes:{xs:(an={},an[En.variable]="0.75rem",an),sm:(on={},on[En.variable]="1rem",on),md:(ln={},ln[En.variable]="1.5rem",ln),lg:(sn={},sn[En.variable]="2rem",sn),xl:(cn={},cn[En.variable]="3rem",cn)},defaultProps:{size:"md"}},An={container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},Fn={parts:K.keys,baseStyle:An,sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}},Bn=Ve("switch-track-width"),_n=Ve("switch-track-height"),Dn=Ve("switch-track-diff"),Rn=$e.subtract(Bn,_n),Tn=Ve("switch-thumb-x"),zn=function(e){var r=e.colorScheme;return{borderRadius:"full",p:"2px",width:[Bn.reference],height:[_n.reference],transitionProperty:"common",transitionDuration:"fast",bg:ze("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ze(r+".500",r+".200")(e)}}},Pn={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[_n.reference],height:[_n.reference],_checked:{transform:"translateX("+Tn.reference+")"}},Mn={sm:{container:(un={},un[Bn.variable]="1.375rem",un[_n.variable]="0.75rem",un)},md:{container:(dn={},dn[Bn.variable]="1.875rem",dn[_n.variable]="1rem",dn)},lg:{container:(fn={},fn[Bn.variable]="2.875rem",fn[_n.variable]="1.5rem",fn)}},jn={parts:J.keys,baseStyle:function(e){var r,t;return{container:(t={},t[Dn.variable]=Rn,t[Tn.variable]=Dn.reference,t._rtl=(r={},r[Tn.variable]=$e(Dn).negate().toString(),r),t),track:zn(e),thumb:Pn}},sizes:Mn,defaultProps:{size:"md",colorScheme:"blue"}},On={"&[data-is-numeric=true]":{textAlign:"end"}},In={simple:function(e){var r=e.colorScheme;return{th:b({color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),td:b({borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),caption:{color:ze("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:function(e){var r=e.colorScheme;return{th:b({color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),td:b({borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),caption:{color:ze("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ze(r+".100",r+".700")(e)},td:{background:ze(r+".100",r+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},Wn={parts:Q.keys,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:In,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"}},Nn=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},Ln=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}},Hn=function(e){var r=e.align,t=void 0===r?"start":r,n=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},$n={p:4},qn={line:function(e){var r,t,n=e.colorScheme,a=e.orientation,o="vertical"===a?"borderStart":"borderBottom",i="vertical"===a?"marginStart":"marginBottom";return{tablist:(r={},r[o]="2px solid",r.borderColor="inherit",r),tab:(t={},t[o]="2px solid",t.borderColor="transparent",t[i]="-2px",t._selected={color:ze(n+".600",n+".300")(e),borderColor:"currentColor"},t._active={bg:ze("gray.200","whiteAlpha.300")(e)},t._disabled={opacity:.4,cursor:"not-allowed"},t)}},enclosed:function(e){var r=e.colorScheme;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ze(r+".600",r+".300")(e),borderColor:"inherit",borderBottomColor:ze("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var r=e.colorScheme;return{tab:{border:"1px solid",borderColor:"inherit",bg:ze("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ze("#fff","gray.800")(e),color:ze(r+".600",r+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var r=e.colorScheme,t=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Be(t,r+".700"),bg:Be(t,r+".100")}}}},"solid-rounded":function(e){var r=e.colorScheme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ze("gray.600","inherit")(e),_selected:{color:ze("#fff","gray.800")(e),bg:ze(r+".600",r+".300")(e)}}}},unstyled:{}},Zn={parts:ee.keys,baseStyle:function(e){return{root:Nn(e),tab:Ln(e),tablist:Hn(e),tabpanel:$n}},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:qn,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Un={container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2,overflow:"visible"},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}}},Vn={subtle:function(e){return{container:ur.variants.subtle(e)}},solid:function(e){return{container:ur.variants.solid(e)}},outline:function(e){return{container:ur.variants.outline(e)}}},Yn={parts:re.keys,variants:Vn,baseStyle:Un,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"}},Xn=b({},Xr.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Gn={outline:function(e){var r;return null!=(r=Xr.variants.outline(e).field)?r:{}},flushed:function(e){var r;return null!=(r=Xr.variants.flushed(e).field)?r:{}},filled:function(e){var r;return null!=(r=Xr.variants.filled(e).field)?r:{}},unstyled:null!=(bn=Xr.variants.unstyled.field)?bn:{}},Kn={baseStyle:Xn,sizes:{xs:null!=(pn=Xr.sizes.xs.field)?pn:{},sm:null!=(gn=Xr.sizes.sm.field)?gn:{},md:null!=(hn=Xr.sizes.md.field)?hn:{},lg:null!=(mn=Xr.sizes.lg.field)?mn:{}},variants:Gn,defaultProps:{size:"md",variant:"outline"}},Jn=Ve("tooltip-bg"),Qn=Ve("popper-arrow-bg"),ea={baseStyle:function(e){var r,t=ze("gray.700","gray.300")(e);return(r={})[Jn.variable]="colors."+t,r.px="8px",r.py="2px",r.bg=[Jn.reference],r[Qn.variable]=[Jn.reference],r.color=ze("whiteAlpha.900","gray.900")(e),r.borderRadius="sm",r.fontWeight="medium",r.fontSize="sm",r.boxShadow="md",r.maxW="320px",r.zIndex="tooltip",r}},ra=Object.freeze({__proto__:null,Accordion:Ke,Alert:er,Avatar:cr,Badge:ur,Breadcrumb:fr,Button:gr,Checkbox:yr,CloseButton:wr,Code:kr,Container:Sr,Divider:Er,Drawer:Pr,Editable:jr,Form:Wr,FormError:Hr,FormLabel:$r,Heading:qr,Input:Xr,Kbd:Gr,Link:Kr,List:Qr,Menu:it,Modal:yt,NumberInput:Tt,PinInput:zt,Popover:$t,Progress:Vt,Radio:Xt,Select:en,Skeleton:tn,SkipLink:nn,Slider:Sn,Spinner:Cn,Stat:Fn,Switch:jn,Table:Wn,Tabs:Zn,Tag:Yn,Textarea:Kn,Tooltip:ea}),ta=b({breakpoints:function(e){return(0,Fe.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),Me({base:"0em"},e)}({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),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:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{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"}}},Xe,{sizes:p,shadows:{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"},space:f,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{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"}}}),na=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function aa(e){return!!(0,Fe.Kn)(e)&&na.every((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))}var oa=b({direction:"ltr"},ta,{components:ra,styles:{global:function(e){return{body:{fontFamily:"body",color:ze("gray.800","whiteAlpha.900")(e),bg:ze("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:ze("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:ze("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}}}},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}}),ia=function(e){var r=e.children,t=e.colorModeManager,n=e.portalZIndex,a=e.resetCSS,f=void 0===a||a,b=e.theme,p=void 0===b?{}:b,g=e.environment,h=e.cssVarsRoot,m=o.createElement(u.u,{environment:g},r);return o.createElement(d.vc,null,o.createElement(s.f6,{theme:p,cssVarsRoot:h},o.createElement(c.SG,{colorModeManager:t,options:p.config},f&&o.createElement(i,null),o.createElement(s.ZL,null),n?o.createElement(l.hE,{zIndex:n},m):m)))};function la(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=[].concat(r),a=r[r.length-1];return aa(a)&&n.length>1?n=n.slice(0,n.length-1):a=oa,Fe.zG.apply(void 0,n.map((function(e){return function(r){return(0,Fe.mf)(e)?e(r):sa(r,e)}})))(a)}function sa(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return h().apply(void 0,[{}].concat(r,[ca]))}function ca(e,r,t,n){if(((0,Fe.mf)(e)||(0,Fe.mf)(r))&&Object.prototype.hasOwnProperty.call(n,t))return function(){var t=(0,Fe.mf)(e)?e.apply(void 0,arguments):e,n=(0,Fe.mf)(r)?r.apply(void 0,arguments):r;return h()({},t,n,ca)}}function ua(e){var r=e.colorScheme,t=e.components;return function(e){var n=Object.keys(e.components||{});return Array.isArray(t)?n=t:(0,Fe.Kn)(t)&&(n=Object.keys(t)),sa(e,{components:(0,Fe.sq)(n.map((function(e){return[e,{defaultProps:{colorScheme:r}}]})))})}}ia.defaultProps={theme:oa};var da=t(52596),fa=t(29356),ba=t(67690),pa=t(85893);function ga(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function ha(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ga(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ga(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ma(e){var r=e.children,t=(0,o.useContext)(fa.N),n=t.highlightColor,a=t.emacsTheme,i=a[1],l=da.Z(i.base1,i.base2)(.2),s="purple.500"===n?"".concat(i.violet,"aa"):"pink.500"===n?"".concat(i.magenta,"aa"):"blue.500"===n?"".concat(i.blue,"aa"):"cyan.500"===n?"".concat(i.cyan,"aa"):"green.500"===n?"".concat(i.green,"aa"):"yellow.500"===n?"".concat(i.yellow,"aa"):"orange.500"===n?"".concat(i.orange,"aa"):"red.500"===n?"".concat(i.red,"aa"):void 0,c=la((0,o.useMemo)((function(){return{colors:{white:i.bg,black:i.fg,gray:{100:i.base1,200:l,300:i.base2,400:i.base3,500:i.base4,600:i.base5,700:i.base6,800:i.base7,900:i.base8},blue:{500:i.blue},teal:{500:i.blue},yellow:{500:i.yellow},orange:{500:i.orange},red:{500:i.red},green:{500:i.green},purple:{500:i.violet},pink:{500:i.magenta},cyan:{500:i.cyan},alt:{100:i["bg-alt"],900:i["fg-alt"]}},shadows:{outline:"0 0 0 3px "+s},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}},subtle:{color:"gray.800",_hover:{bg:"inherit",color:n},_active:{color:"inherit",bg:s}}}},Accordion:{baseStyle:{container:{marginTop:"10px",borderWidth:"0px",_last:{borderWidth:"0px"}},panel:{marginRight:"10px"}}},Slider:{baseStyle:function(e){return{thumb:{backgroundColor:n},filledTrack:{backgroundColor:"gray.400"},track:{backgroundColor:"gray.400",borderColor:"gray.400",borderWidth:"5px",borderRadius:"lg"}}}}}}}),[n,JSON.stringify(a)]),ua({colorScheme:n.split(".")[0]}));return(0,pa.jsx)(ia,{theme:c,children:r})}var va=function(e){var r=e.Component,t=e.pageProps,n=["one-vibrant",ba.n["one-vibrant"]],a=(0,o.useState)(!1),i=a[0],l=a[1],s=(0,o.useState)(n),c=s[0],u=s[1],d=(0,o.useState)("purple.500"),f=d[0],b=d[1];(0,o.useEffect)((function(){i&&localStorage.setItem("colorTheme",JSON.stringify(c))}),[c]),(0,o.useEffect)((function(){i&&localStorage.setItem("highlightColor",JSON.stringify(f))}),[f]),(0,o.useEffect)((function(){var e,r,t,a;u(null!==(e=JSON.parse(null!==(r=localStorage.getItem("colorTheme"))&&void 0!==r?r:JSON.stringify(n)))&&void 0!==e?e:n),b(null!==(t=JSON.parse(null!==(a=localStorage.getItem("highlightColor"))&&void 0!==a?a:JSON.stringify(f)))&&void 0!==t?t:f),l(!0)}),[]);var p={emacsTheme:c,setEmacsTheme:u,highlightColor:f,setHighlightColor:b};return(0,pa.jsx)(fa.N.Provider,{value:p,children:(0,pa.jsx)(ma,{children:(0,pa.jsx)(r,ha({},t))})})}},29356:function(e,r,t){"use strict";t.d(r,{N:function(){return o}});var n=t(67294),a=["vibrant",t(67690).n["one-vibrant"]],o=(0,n.createContext)({emacsTheme:a,setEmacsTheme:null,highlightColor:"purple",setHighlightColor:null})},94798:function(e,r,t){"use strict";function n(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function a(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function o(){}t.d(r,{ZP:function(){return w},B8:function(){return C}});var i=.7,l=1/i,s="\\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\\("+[s,s,s]+"\\)$"),b=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),p=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),g=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),h=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(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=d.exec(e))?(t=r[1].length,r=parseInt(r[1],16),6===t?k(r):3===t?new A(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===t?S(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===t?S(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=f.exec(e))?new A(r[1],r[2],r[3],1):(r=b.exec(e))?new A(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=p.exec(e))?S(r[1],r[2],r[3],r[4]):(r=g.exec(e))?S(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=h.exec(e))?D(r[1],r[2]/100,r[3]/100,1):(r=m.exec(e))?D(r[1],r[2]/100,r[3]/100,r[4]):v.hasOwnProperty(e)?k(v[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function k(e){return new A(e>>16&255,e>>8&255,255&e,1)}function S(e,r,t,n){return n<=0&&(e=r=t=NaN),new A(e,r,t,n)}function E(e){return e instanceof o||(e=w(e)),e?new A((e=e.rgb()).r,e.g,e.b,e.opacity):new A}function C(e,r,t,n){return 1===arguments.length?E(e):new A(e,r,t,null==n?1:n)}function A(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}function F(){return"#"+_(this.r)+_(this.g)+_(this.b)}function B(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function _(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function D(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new T(e,r,t,n)}function R(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=w(e)),!e)return new T;if(e instanceof T)return e;var r=(e=e.rgb()).r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),i=Math.max(r,t,n),l=NaN,s=i-a,c=(i+a)/2;return s?(l=r===i?(t-n)/s+6*(t<n):t===i?(n-r)/s+2:(r-t)/s+4,s/=c<.5?i+a:2-i-a,l*=60):s=c>0&&c<1?0:l,new T(l,s,c,e.opacity)}function T(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}function z(e,r,t){return 255*(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)}n(o,w,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return R(this).formatHsl()},formatRgb:x,toString:x}),n(A,C,a(o,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new A(this.r*e,this.g*e,this.b*e,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:F,formatHex:F,formatRgb:B,toString:B})),n(T,(function(e,r,t,n){return 1===arguments.length?R(e):new T(e,r,t,null==n?1:n)}),a(o,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new A(z(e>=240?e-240:e+120,a,n),z(e,a,n),z(e<120?e+240:e-120,a,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 e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},57631:function(e,r){"use strict";r.Z=function(e){return function(){return e}}},13311:function(e,r,t){"use strict";function n(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}t.d(r,{Z:function(){return n}})},20439:function(e,r,t){"use strict";t.d(r,{ZP:function(){return c}});var n=t(94798);function a(e,r,t,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*t+(1+3*e+3*o-3*i)*n+i*a)/6}var o=t(57631);function i(e,r){return function(t){return e+t*r}}function l(e){return 1===(e=+e)?s:function(r,t){return t-r?function(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}(r,t,e):(0,o.Z)(isNaN(r)?t:r)}}function s(e,r){var t=r-e;return t?i(e,t):(0,o.Z)(isNaN(e)?r:e)}var c=function e(r){var t=l(r);function a(e,r){var a=t((e=(0,n.B8)(e)).r,(r=(0,n.B8)(r)).r),o=t(e.g,r.g),i=t(e.b,r.b),l=s(e.opacity,r.opacity);return function(r){return e.r=a(r),e.g=o(r),e.b=i(r),e.opacity=l(r),e+""}}return a.gamma=e,a}(1);function u(e){return function(r){var t,a,o=r.length,i=new Array(o),l=new Array(o),s=new Array(o);for(t=0;t<o;++t)a=(0,n.B8)(r[t]),i[t]=a.r||0,l[t]=a.g||0,s[t]=a.b||0;return i=e(i),l=e(l),s=e(s),a.opacity=1,function(e){return a.r=i(e),a.g=l(e),a.b=s(e),a+""}}}u((function(e){var r=e.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),o=e[n],i=e[n+1],l=n>0?e[n-1]:2*o-i,s=n<r-1?e[n+2]:2*i-o;return a((t-n/r)*r,l,o,i,s)}})),u((function(e){var r=e.length;return function(t){var n=Math.floor(((t%=1)<0?++t:t)*r),o=e[(n+r-1)%r],i=e[n%r],l=e[(n+1)%r],s=e[(n+2)%r];return a((t-n/r)*r,o,i,l,s)}}))},25996:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=t(13311),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(a.source,"g");function i(e,r){var t,i,l,s=a.lastIndex=o.lastIndex=0,c=-1,u=[],d=[];for(e+="",r+="";(t=a.exec(e))&&(i=o.exec(r));)(l=i.index)>s&&(l=r.slice(s,l),u[c]?u[c]+=l:u[++c]=l),(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)})),s=o.lastIndex;return s<r.length&&(l=r.slice(s),u[c]?u[c]+=l:u[++c]=l),u.length<2?d[0]?function(e){return function(r){return e(r)+""}}(d[0].x):function(e){return function(){return e}}(r):(r=d.length,function(e){for(var t,n=0;n<r;++n)u[(t=d[n]).i]=t.x(e);return u.join("")})}},52596:function(e,r,t){"use strict";t.d(r,{Z:function(){return f}});var n=t(94798),a=t(20439);function o(e,r){var t,n=r?r.length:0,a=e?Math.min(n,e.length):0,o=new Array(a),i=new Array(n);for(t=0;t<a;++t)o[t]=f(e[t],r[t]);for(;t<n;++t)i[t]=r[t];return function(e){for(t=0;t<a;++t)i[t]=o[t](e);return i}}function i(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}var l=t(13311);function s(e,r){var t,n={},a={};for(t in null!==e&&"object"===typeof e||(e={}),null!==r&&"object"===typeof r||(r={}),r)t in e?n[t]=f(e[t],r[t]):a[t]=r[t];return function(e){for(t in n)a[t]=n[t](e);return a}}var c=t(25996),u=t(57631);function d(e,r){r||(r=[]);var t,n=e?Math.min(r.length,e.length):0,a=r.slice();return function(o){for(t=0;t<n;++t)a[t]=e[t]*(1-o)+r[t]*o;return a}}function f(e,r){var t,f,b=typeof r;return null==r||"boolean"===b?(0,u.Z)(r):("number"===b?l.Z:"string"===b?(t=(0,n.ZP)(r))?(r=t,a.ZP):c.Z:r instanceof n.ZP?a.ZP:r instanceof Date?i:(f=r,!ArrayBuffer.isView(f)||f instanceof DataView?Array.isArray(r)?o:"function"!==typeof r.valueOf&&"function"!==typeof r.toString||isNaN(r)?s:l.Z:d))(e,r)}},76363:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return t(93264)}])},43146:function(){},69590:function(e){var r="undefined"!==typeof Element,t="function"===typeof Map,n="function"===typeof Set,a="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var l,s,c,u;if(Array.isArray(e)){if((l=e.length)!=i.length)return!1;for(s=l;0!==s--;)if(!o(e[s],i[s]))return!1;return!0}if(t&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!i.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!o(s.value[1],i.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!i.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((l=e.length)!=i.length)return!1;for(s=l;0!==s--;)if(e[s]!==i[s])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(s=l;0!==s--;)if(!Object.prototype.hasOwnProperty.call(i,c[s]))return!1;if(r&&e instanceof Element)return!1;for(s=l;0!==s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!o(e[c[s]],i[c[s]]))return!1;return!0}return e!==e&&i!==i}e.exports=function(e,r){try{return o(e,r)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},69921:function(e,r){"use strict";var t="function"===typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,s=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,b=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,h=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(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case u:case d:case o:case l:case i:case b:return e;default:switch(e=e&&e.$$typeof){case c:case f:case h:case g:case s:return e;default:return r}}case a:return r}}}function k(e){return w(e)===d}r.AsyncMode=u,r.ConcurrentMode=d,r.ContextConsumer=c,r.ContextProvider=s,r.Element=n,r.ForwardRef=f,r.Fragment=o,r.Lazy=h,r.Memo=g,r.Portal=a,r.Profiler=l,r.StrictMode=i,r.Suspense=b,r.isAsyncMode=function(e){return k(e)||w(e)===u},r.isConcurrentMode=k,r.isContextConsumer=function(e){return w(e)===c},r.isContextProvider=function(e){return w(e)===s},r.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return w(e)===f},r.isFragment=function(e){return w(e)===o},r.isLazy=function(e){return w(e)===h},r.isMemo=function(e){return w(e)===g},r.isPortal=function(e){return w(e)===a},r.isProfiler=function(e){return w(e)===l},r.isStrictMode=function(e){return w(e)===i},r.isSuspense=function(e){return w(e)===b},r.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===l||e===i||e===b||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x||e.$$typeof===m)},r.typeOf=w},59864:function(e,r,t){"use strict";e.exports=t(69921)},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||t.forEach((function(r){e.addRange(r)})),r&&r.focus()}}},87462:function(e,r,t){"use strict";function n(){return(n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}t.d(r,{Z:function(){return n}})},92809:function(e,r,t){"use strict";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}t.d(r,{Z:function(){return n}})}},function(e){var r=function(r){return e(e.s=r)};e.O(0,[774,179],(function(){return r(76363),r(34651)}));var t=e.O();_N_E=t}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js b/out/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js
deleted file mode 100644
index 59d1094..0000000
--- a/out/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{24738:function(e,r,t){"use strict";t.d(r,{SG:function(){return x},If:function(){return v}});var n=t(73808),a=t(84461),o=t(80658),i=t(67294),s="chakra-ui-light",l="chakra-ui-dark",c={classList:{add:o.ZT,remove:o.ZT}};function u(e){var r=a.jU?document.body:c;r.classList.add(e?l:s),r.classList.remove(e?s:l)}var d="(prefers-color-scheme: dark)";function f(e){var r;return(null!=(r=function(e){var r=null==window.matchMedia?void 0:window.matchMedia(e);if(r)return!!r.media===r.matches}(d))?r:"dark"===e)?"dark":"light"}var b=()=>document.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),g=e=>{a.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",e)},p=()=>"undefined"!==typeof Storage,h="chakra-ui-color-mode",m={get(e){if(!p())return e;try{var r=localStorage.getItem(h);return null!=r?r:e}catch(t){return n.Ts&&console.log(t),e}},set(e){if(p())try{localStorage.setItem(h,e)}catch(r){n.Ts&&console.log(r)}},type:"localStorage"};var y=i.createContext({});n.Ts&&(y.displayName="ColorModeContext");var v=()=>{var e=i.useContext(y);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function x(e){var{value:r,children:t,options:{useSystemColorMode:n,initialColorMode:s},colorModeManager:l=m}=e,[c,p]=i.useState("cookie"===l.type?l.get(s):s);i.useEffect((()=>{if(a.jU&&"localStorage"===l.type){var e=n?f(s):b()||l.get();e&&p(e)}}),[l,n,s]),i.useEffect((()=>{var e="dark"===c;u(e),g(e?"dark":"light")}),[c]);var h=i.useCallback((e=>{l.set(e),p(e)}),[l]),v=i.useCallback((()=>{h("light"===c?"dark":"light")}),[c,h]);i.useEffect((()=>{var e;return n&&(e=function(e){if(!("matchMedia"in window))return o.ZT;var r=window.matchMedia(d),t=()=>{e(r.matches?"dark":"light")};return t(),r.addListener(t),()=>{r.removeListener(t)}}(h)),()=>{e&&n&&e()}}),[h,n]);var x=i.useMemo((()=>({colorMode:null!=r?r:c,toggleColorMode:r?o.ZT:v,setColorMode:r?o.ZT:h})),[c,h,v,r]);return i.createElement(y.Provider,{value:x},t)}n.Ts&&(x.displayName="ColorModeProvider");n.Ts;n.Ts},94577:function(e,r,t){"use strict";t.d(r,{vc:function(){return i},Me:function(){return s},ZS:function(){return l}});var n=t(67294),a={prefix:Math.round(1e10*Math.random()),current:0},o=n.createContext(a),i=n.memo((e=>{var{children:r}=e,t=n.useContext(o),i=t===a,s=n.useMemo((()=>({prefix:i?0:++t.prefix,current:0})),[i,t]);return n.createElement(o.Provider,{value:s},r)}));function s(e,r){var t=n.useContext(o);return n.useMemo((()=>e||[r,t.prefix,++t.current].filter(Boolean).join("-")),[e,r])}function l(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];var o=s(e);return n.useMemo((()=>t.map((e=>e+"-"+o))),[o,t])}},34288:function(e,r,t){"use strict";t.d(r,{L:function(){return s},h:function(){return l}});var n=t(73808),a=t(28500),o=t(67294),[i,s]=(0,a.k)({strict:!1,name:"PortalManagerContext"});function l(e){var{children:r,zIndex:t}=e;return o.createElement(i,{value:{zIndex:t}},r)}n.Ts&&(l.displayName="PortalManager")},28500:function(e,r,t){"use strict";t.d(r,{k:function(){return a}});var n=t(67294);function a(e){void 0===e&&(e={});var{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:a}=e,o=n.createContext(void 0);return o.displayName=a,[o.Provider,function e(){var a=n.useContext(o);if(!a&&r){var i=new Error(t);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,e),i}return a},o]}},13205:function(e,r,t){"use strict";t.d(r,{Oq:function(){return D},Cg:function(){return z},$_:function(){return R},cE:function(){return j},hX:function(){return O},GQ:function(){return T},eC:function(){return P},Mw:function(){return I},bK:function(){return M},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 a(e){var{scale:r,transform:t,compose:a}=e;return(e,o)=>{var i,s=((e,r)=>t=>{var a=String(r),o=e?e+"."+a:a;return(0,n.Kn)(t.__cssMap)&&o in t.__cssMap?t.__cssMap[o].varRef:r})(r,e)(o),l=null!=(i=null==t?void 0:t(s,o))?i:s;return a&&(l=a(l,o)),l}}function o(e,r){return t=>{var n={property:t,scale:e};return n.transform=a({scale:e,transform:r}),n}}var i=e=>{var{rtl:r,ltr:t}=e;return e=>"rtl"===e.direction?r: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))"}},b={[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 g(e,r){g=function(e,r){return new o(e,void 0,r)};var t=h(RegExp),n=RegExp.prototype,a=new WeakMap;function o(e,r,n){var o=t.call(this,e,r);return a.set(o,n||a.get(e)),o}function i(e,r){var t=a.get(r);return Object.keys(t).reduce((function(r,n){return r[n]=e[t[n]],r}),Object.create(null))}return p(o,t),o.prototype.exec=function(e){var r=n.exec.call(this,e);return r&&(r.groups=i(r,this)),r},o.prototype[Symbol.replace]=function(e,r){if("string"===typeof r){var t=a.get(this);return n[Symbol.replace].call(this,e,r.replace(/\$<([^>]+)>/g,(function(e,r){return"$"+t[r]})))}if("function"===typeof r){var o=this;return n[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==typeof e[e.length-1]&&e.push(i(e,o)),r.apply(this,e)}))}return n[Symbol.replace].call(this,e,r)},g.apply(this,arguments)}function p(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&v(e,r)}function h(e){var r="function"===typeof Map?new Map:void 0;return(h=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return m(e,arguments,x(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)})(e)}function m(e,r,t){return(m=y()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var a=new(Function.bind.apply(e,n));return t&&v(a,t.prototype),a}).apply(null,arguments)}function y(){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 v(e,r){return(v=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k={"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"},w=new Set(Object.values(k)),S=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),C=e=>e.trim();var F=e=>r=>e+"("+r+")",A={filter:e=>"auto"!==e?e:l,backdropFilter:e=>"auto"!==e?e:c,ring:e=>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(", ")}}(A.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s].join(" "):e,px(e){if(null==e)return e;var{unitless:r}=(e=>{var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}})(e);return r||(0,n.hj)(e)?e+"px":e},fraction:e=>!(0,n.hj)(e)||e>1?e:100*e+"%",float:(e,r)=>"rtl"===r.direction?{left:"right",right:"left"}[e]:e,degree(e){if((0,n.FS)(e)||null==e)return e;var r=(0,n.HD)(e)&&!e.endsWith("deg");return(0,n.hj)(e)||r?e+"deg":e},gradient:(e,r)=>function(e,r){var t,n;if(null==e||S.has(e))return e;var a=g(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:o,values:i}=null!=(t=null==(n=a.exec(e))?void 0:n.groups)?t:{};if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",[l,...c]=i.split(",").map(C).filter(Boolean);if(0===(null==c?void 0:c.length))return e;var u=l in k?k[l]:l;return c.unshift(u),s+"("+c.map((e=>{if(w.has(e))return e;var[t,n]=e.split(" "),a="colors."+t,o=a in r.__cssMap?r.__cssMap[a].varRef:t;return n?[o,n].join(" "):o})).join(", ")+")"}(e,null!=r?r:{}),blur:F("blur"),opacity:F("opacity"),brightness:F("brightness"),contrast:F("contrast"),dropShadow:F("drop-shadow"),grayscale:F("grayscale"),hueRotate:F("hue-rotate"),invert:F("invert"),saturate:F("saturate"),sepia:F("sepia"),bgImage:e=>null==e||E(e)||S.has(e)?e:"url("+e+")",outline(e){var r="0"===String(e)||"none"===String(e);return null!==e&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var r,{space:t,divide:n}=null!=(r=u[e])?r:{},a={flexDirection:e};return t&&(a[t]=1),n&&(a[n]=1),a}},E=e=>(0,n.HD)(e)&&e.includes("(")&&e.includes(")");function _(){return(_=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var B={borderWidths:o("borderWidths"),borderStyles:o("borderStyles"),colors:o("colors"),borders:o("borders"),radii:o("radii",A.px),space:o("space",A.px),spaceT:o("space",A.px),degreeT:e=>({property:e,transform:A.degree}),prop:(e,r,t)=>_({property:e,scale:r},r&&{transform:a({scale:r,transform:t})}),propT:(e,r)=>({property:e,transform:r}),sizes:o("sizes",A.px),sizesT:o("sizes",A.fraction),shadows:o("shadows"),logical:function(e){var{property:r,scale:t,transform:n}=e;return{scale:t,property:i(r),transform:t?a({scale:t,compose:n}):n}},blur:o("blur",A.blur)},D={background:B.colors("background"),backgroundColor:B.colors("backgroundColor"),backgroundImage:B.propT("backgroundImage",A.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:B.prop("backgroundSize"),bgPosition:B.prop("backgroundPosition"),bg:B.colors("background"),bgColor:B.colors("backgroundColor"),bgPos:B.prop("backgroundPosition"),bgRepeat:B.prop("backgroundRepeat"),bgAttachment:B.prop("backgroundAttachment"),bgGradient:B.propT("backgroundImage",A.gradient),bgClip:{transform:A.bgClip}};Object.assign(D,{bgImage:D.backgroundImage,bgImg:D.backgroundImage});var z={border:B.borders("border"),borderWidth:B.borderWidths("borderWidth"),borderStyle:B.borderStyles("borderStyle"),borderColor:B.colors("borderColor"),borderRadius:B.radii("borderRadius"),borderTop:B.borders("borderTop"),borderBlockStart:B.borders("borderBlockStart"),borderTopLeftRadius:B.radii("borderTopLeftRadius"),borderStartStartRadius:B.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:B.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:B.radii("borderTopRightRadius"),borderStartEndRadius:B.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:B.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:B.borders("borderRight"),borderInlineEnd:B.borders("borderInlineEnd"),borderBottom:B.borders("borderBottom"),borderBlockEnd:B.borders("borderBlockEnd"),borderBottomLeftRadius:B.radii("borderBottomLeftRadius"),borderBottomRightRadius:B.radii("borderBottomRightRadius"),borderLeft:B.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:B.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:B.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:B.borders(["borderLeft","borderRight"]),borderInline:B.borders("borderInline"),borderY:B.borders(["borderTop","borderBottom"]),borderBlock:B.borders("borderBlock"),borderTopWidth:B.borderWidths("borderTopWidth"),borderBlockStartWidth:B.borderWidths("borderBlockStartWidth"),borderTopColor:B.colors("borderTopColor"),borderBlockStartColor:B.colors("borderBlockStartColor"),borderTopStyle:B.borderStyles("borderTopStyle"),borderBlockStartStyle:B.borderStyles("borderBlockStartStyle"),borderBottomWidth:B.borderWidths("borderBottomWidth"),borderBlockEndWidth:B.borderWidths("borderBlockEndWidth"),borderBottomColor:B.colors("borderBottomColor"),borderBlockEndColor:B.colors("borderBlockEndColor"),borderBottomStyle:B.borderStyles("borderBottomStyle"),borderBlockEndStyle:B.borderStyles("borderBlockEndStyle"),borderLeftWidth:B.borderWidths("borderLeftWidth"),borderInlineStartWidth:B.borderWidths("borderInlineStartWidth"),borderLeftColor:B.colors("borderLeftColor"),borderInlineStartColor:B.colors("borderInlineStartColor"),borderLeftStyle:B.borderStyles("borderLeftStyle"),borderInlineStartStyle:B.borderStyles("borderInlineStartStyle"),borderRightWidth:B.borderWidths("borderRightWidth"),borderInlineEndWidth:B.borderWidths("borderInlineEndWidth"),borderRightColor:B.colors("borderRightColor"),borderInlineEndColor:B.colors("borderInlineEndColor"),borderRightStyle:B.borderStyles("borderRightStyle"),borderInlineEndStyle:B.borderStyles("borderInlineEndStyle"),borderTopRadius:B.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:B.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:B.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:B.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(z,{rounded:z.borderRadius,roundedTop:z.borderTopRadius,roundedTopLeft:z.borderTopLeftRadius,roundedTopRight:z.borderTopRightRadius,roundedTopStart:z.borderStartStartRadius,roundedTopEnd:z.borderStartEndRadius,roundedBottom:z.borderBottomRadius,roundedBottomLeft:z.borderBottomLeftRadius,roundedBottomRight:z.borderBottomRightRadius,roundedBottomStart:z.borderEndStartRadius,roundedBottomEnd:z.borderEndEndRadius,roundedLeft:z.borderLeftRadius,roundedRight:z.borderRightRadius,roundedStart:z.borderInlineStartRadius,roundedEnd:z.borderInlineEndRadius,borderStart:z.borderInlineStart,borderEnd:z.borderInlineEnd,borderTopStartRadius:z.borderStartStartRadius,borderTopEndRadius:z.borderStartEndRadius,borderBottomStartRadius:z.borderEndStartRadius,borderBottomEndRadius:z.borderEndEndRadius,borderStartRadius:z.borderInlineStartRadius,borderEndRadius:z.borderInlineEndRadius,borderStartWidth:z.borderInlineStartWidth,borderEndWidth:z.borderInlineEndWidth,borderStartColor:z.borderInlineStartColor,borderEndColor:z.borderInlineEndColor,borderStartStyle:z.borderInlineStartStyle,borderEndStyle:z.borderInlineEndStyle});var R={color:B.colors("color"),textColor:B.colors("color"),fill:B.colors("fill"),stroke:B.colors("stroke")},j={boxShadow:B.shadows("boxShadow"),mixBlendMode:!0,blendMode:B.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:B.prop("backgroundBlendMode"),opacity:!0};Object.assign(j,{shadow:j.boxShadow});var O={filter:{transform:A.filter},blur:B.blur("--chakra-blur"),brightness:B.propT("--chakra-brightness",A.brightness),contrast:B.propT("--chakra-contrast",A.contrast),hueRotate:B.degreeT("--chakra-hue-rotate"),invert:B.propT("--chakra-invert",A.invert),saturate:B.propT("--chakra-saturate",A.saturate),dropShadow:B.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:B.blur("--chakra-backdrop-blur"),backdropBrightness:B.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:B.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:B.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:B.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:B.propT("--chakra-backdrop-saturate",A.saturate)},T={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},experimental_spaceX:{static:f,transform:a({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:b,transform:a({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:B.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(T,{flexDir:T.flexDirection});var P={gridGap:B.space("gridGap"),gridColumnGap:B.space("gridColumnGap"),gridRowGap:B.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},I={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:B.colors("outlineColor")},M={width:B.sizesT("width"),inlineSize:B.sizesT("inlineSize"),height:B.sizes("height"),blockSize:B.sizes("blockSize"),boxSize:B.sizes(["width","height"]),minWidth:B.sizes("minWidth"),minInlineSize:B.sizes("minInlineSize"),minHeight:B.sizes("minHeight"),minBlockSize:B.sizes("minBlockSize"),maxWidth:B.sizes("maxWidth"),maxInlineSize:B.sizes("maxInlineSize"),maxHeight:B.sizes("maxHeight"),maxBlockSize:B.sizes("maxBlockSize"),d:B.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:B.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(M,{w:M.width,h:M.height,minW:M.minWidth,maxW:M.maxWidth,minH:M.minHeight,maxH:M.maxHeight,overscroll:M.overscrollBehavior,overscrollX:M.overscrollBehaviorX,overscrollY:M.overscrollBehaviorY});var W={listStyleType:!0,listStylePosition:!0,listStylePos:B.prop("listStylePosition"),listStyleImage:!0,listStyleImg:B.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=(e,r,t)=>{var n={},a=(0,J.Wf)(e,r,{});for(var o in a){o in t&&null!=t[o]||(n[o]=a[o])}return n},$={srOnly:{transform:e=>!0===e?N:"focusable"===e?H:{}},layerStyle:{processResult:!0,transform:(e,r,t)=>L(r,"layerStyles."+e,t)},textStyle:{processResult:!0,transform:(e,r,t)=>L(r,"textStyles."+e,t)},apply:{processResult:!0,transform:(e,r,t)=>L(r,e,t)}},Z={position:!0,pos:B.prop("position"),zIndex:B.prop("zIndex","zIndices"),inset:B.spaceT(["top","right","bottom","left"]),insetX:B.spaceT(["left","right"]),insetInline:B.spaceT("insetInline"),insetY:B.spaceT(["top","bottom"]),insetBlock:B.spaceT("insetBlock"),top:B.spaceT("top"),insetBlockStart:B.spaceT("insetBlockStart"),bottom:B.spaceT("bottom"),insetBlockEnd:B.spaceT("insetBlockEnd"),left:B.spaceT("left"),insetInlineStart:B.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:B.spaceT("right"),insetInlineEnd:B.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var V={ring:{transform:A.ring},ringColor:B.colors("--chakra-ring-color"),ringOffset:B.prop("--chakra-ring-offset-width"),ringOffsetColor:B.colors("--chakra-ring-offset-color"),ringInset:B.prop("--chakra-ring-inset")},q={margin:B.spaceT("margin"),marginTop:B.spaceT("marginTop"),marginBlockStart:B.spaceT("marginBlockStart"),marginRight:B.spaceT("marginRight"),marginInlineEnd:B.spaceT("marginInlineEnd"),marginBottom:B.spaceT("marginBottom"),marginBlockEnd:B.spaceT("marginBlockEnd"),marginLeft:B.spaceT("marginLeft"),marginInlineStart:B.spaceT("marginInlineStart"),marginX:B.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:B.spaceT("marginInline"),marginY:B.spaceT(["marginTop","marginBottom"]),marginBlock:B.spaceT("marginBlock"),padding:B.space("padding"),paddingTop:B.space("paddingTop"),paddingBlockStart:B.space("paddingBlockStart"),paddingRight:B.space("paddingRight"),paddingBottom:B.space("paddingBottom"),paddingBlockEnd:B.space("paddingBlockEnd"),paddingLeft:B.space("paddingLeft"),paddingInlineStart:B.space("paddingInlineStart"),paddingInlineEnd:B.space("paddingInlineEnd"),paddingX:B.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:B.space("paddingInline"),paddingY:B.space(["paddingTop","paddingBottom"]),paddingBlock:B.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:B.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:B.shadows("textShadow")},Y={clipPath:!0,transform:B.propT("transform",A.transform),transformOrigin:!0,translateX:B.spaceT("--chakra-translate-x"),translateY:B.spaceT("--chakra-translate-y"),skewX:B.degreeT("--chakra-skew-x"),skewY:B.degreeT("--chakra-skew-y"),scaleX:B.prop("--chakra-scale-x"),scaleY:B.prop("--chakra-scale-y"),scale:B.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:B.degreeT("--chakra-rotate")},X={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:B.prop("transitionDuration","transition.duration"),transitionProperty:B.prop("transitionProperty","transition.property"),transitionTimingFunction:B.prop("transitionTimingFunction","transition.easing")},U={fontFamily:B.prop("fontFamily","fonts"),fontSize:B.prop("fontSize","fontSizes",A.px),fontWeight:B.prop("fontWeight","fontWeights"),lineHeight:B.prop("lineHeight","lineHeights"),letterSpacing:B.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(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}}},55608:function(e,r,t){"use strict";t.d(r,{c0:function(){return F}});var n=t(73808);function a(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var o=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.map(a).join(" "+e+" ").replace(/calc/g,"")},i=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+o("+",...r)+")"},s=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+o("-",...r)+")"},l=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+o("*",...r)+")"},c=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+o("/",...r)+")"},u=e=>{var r=a(e);return null==r||Number.isNaN(parseFloat(r))?l(r,-1):String(r).startsWith("-")?String(r).slice(1):"-"+r},d=Object.assign((e=>({add:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return d(i(e,...t))},subtract:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return d(s(e,...t))},multiply:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return d(l(e,...t))},divide:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return d(c(e,...t))},negate:()=>d(u(e)),toString:()=>e.toString()})),{add:i,subtract:s,multiply:l,divide:c,negate:u}),f=t(88456);function b(e){var r=function(e,r){return void 0===r&&(r="-"),e.replace(/\s+/g,r)}(e.toString());return r.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?r.replace(".","\\."):e}function g(e,r){return"var("+b(e)+(r?", "+r:"")+")"}function p(e,r){return void 0===r&&(r=""),"--"+function(e,r){return void 0===r&&(r=""),[r,b(e)].filter(Boolean).join("-")}(e,r)}function h(e,r,t){var n=p(e,t);return{variable:n,reference:g(n,r)}}function m(){return(m=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function y(e,r){var t={cssMap:{},cssVars:{}};return function(e,r){(function e(t,a){return void 0===a&&(a=[]),(0,n.kJ)(t)?t.map(((r,t)=>e(r,[...a,String(t)]))):(0,n.Kn)(t)?Object.fromEntries(Object.entries(t).map((r=>{var[t,n]=r;return[t,e(n,[...a,t])]}))):r(t,a)})(e)}(e,((e,n)=>{var a,[o]=n,i=null!=(a=v[o])?a:v.defaultHandler,{cssVars:s,cssMap:l}=i(n,e,r);Object.assign(t.cssVars,s),Object.assign(t.cssMap,l)})),t}var v={space:(e,r,t)=>{var n=v.defaultHandler(e,r,t),[a,...o]=e,i=a+".-"+o.join("."),s=e.join("-"),{variable:l,reference:c}=h(s,void 0,t.cssVarPrefix),u=d.negate(r),f=d.negate(c);return{cssVars:n.cssVars,cssMap:m({},n.cssMap,{[i]:{value:""+u,var:""+l,varRef:f}})}},defaultHandler:(e,r,t)=>{var n=e.join("."),a=e.join("-"),{variable:o,reference:i}=h(a,void 0,t.cssVarPrefix);return{cssVars:{[o]:r},cssMap:{[n]:{value:r,var:o,varRef:i}}}}},x=t(4651);var k=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function w(e){var r=k;return(0,x.ei)(e,r)}function S(e){return function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,["__cssMap","__cssVars","__breakpoints"])}function C(){return(C=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function F(e){var r,t=S(e),n=w(t),a=null==(r=t.config)?void 0:r.cssVarPrefix,{cssMap:o,cssVars:i}=y(n,{cssVarPrefix:a});return Object.assign(t,{__cssVars:C({},{"--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:o,__breakpoints:(0,f.y)(t.breakpoints)}),t}},33565:function(e,r,t){"use strict";t.d(r,{i:function(){return f}});var n=t(73808),a=t(80658),o=t(38554),i=t.n(o),s=t(28680),l=t(25503),c=(e,r)=>e.startsWith("--")&&(0,n.HD)(r)&&!(0,n.FS)(r),u=(e,r)=>{var t,n;if(null==r)return r;var a=r=>{var t,n;return null==(t=e.__cssMap)||null==(n=t[r])?void 0:n.varRef},o=e=>{var r;return null!=(r=a(e))?r:e},i=r.split(",").map((e=>e.trim())),[s,l]=i;return r=null!=(t=null!=(n=a(s))?n:o(l))?t:o(r)};function d(e){var{configs:r={},pseudos:t={},theme:o}=e;return function e(s,l){void 0===l&&(l=!1);var d=(0,a.Pu)(s,o),f=(e=>r=>{if(!r.__breakpoints)return e;var{isResponsive:t,toArrayValue:o,media:i}=r.__breakpoints,s={};for(var l in e){var c=(0,a.Pu)(e[l],r);if(null!=c)if(c=(0,n.Kn)(c)&&t(c)?o(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)(o),b={};for(var g in f){var p,h,m,y,v,x=f[g],k=(0,a.Pu)(x,o);g in t&&(g=t[g]),c(g,k)&&(k=u(o,k));var w=r[g];if(!0===w&&(w={property:g}),(0,n.Kn)(k)){var S;b[g]=null!=(S=b[g])?S:{},b[g]=i()({},b[g],e(k,!0))}else{var C=null!=(p=null==(h=w)||null==h.transform?void 0:h.transform(k,o,d))?p:k;C=null!=(m=w)&&m.processResult?e(C,!0):C;var F=(0,a.Pu)(null==(y=w)?void 0:y.property,o);if(!l&&null!=(v=w)&&v.static){var A=(0,a.Pu)(w.static,o);b=i()({},b,A)}if(F&&Array.isArray(F))for(var E of F)b[E]=C;else F?"&"===F&&(0,n.Kn)(C)?b=i()({},b,C):b[F]=C:(0,n.Kn)(C)?b=i()({},b,C):b[g]=C}}return b}}var f=e=>r=>d({theme:r,pseudos:s.v,configs:l.Ul})(e)},9421:function(e,r,t){"use strict";t.d(r,{css: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),a=t(41664);t.o(a,"isStyleProp")&&t.d(r,{isStyleProp:function(){return a.isStyleProp}}),t.o(a,"layoutPropNames")&&t.d(r,{layoutPropNames:function(){return a.layoutPropNames}}),t.o(a,"propNames")&&t.d(r,{propNames:function(){return a.propNames}}),t.o(a,"toCSSVar")&&t.d(r,{toCSSVar:function(){return a.toCSSVar}}),t.o(a,"useTheme")&&t.d(r,{useTheme:function(){return a.useTheme}});var o=t(87759);t.o(o,"isStyleProp")&&t.d(r,{isStyleProp:function(){return o.isStyleProp}}),t.o(o,"layoutPropNames")&&t.d(r,{layoutPropNames:function(){return o.layoutPropNames}}),t.o(o,"propNames")&&t.d(r,{propNames:function(){return o.propNames}}),t.o(o,"toCSSVar")&&t.d(r,{toCSSVar:function(){return o.toCSSVar}}),t.o(o,"useTheme")&&t.d(r,{useTheme:function(){return o.useTheme}});var i=t(25503),s=t(55608)},28680:function(e,r,t){"use strict";t.d(r,{v:function(){return d},_:function(){return f}});var n=t(4651),a=e=>e+":focus &, "+e+"[data-focus] &",o=e=>e+":active &, "+e+"[data-active] &",i=e=>e+":disabled &, "+e+"[data-disabled] &",s=e=>e+":invalid &, "+e+"[data-invalid] &",l=e=>e+":checked &, "+e+"[data-checked] &",c=e=>u(e,"[role=group]","[data-group]",".group"),u=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.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((e=>e+":hover &, "+e+"[data-hover] &")),_groupFocus:c(a),_groupActive:c(o),_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(e,r,t){"use strict";t.d(r,{Ul:function(){return c},oE:function(){return d},cC:function(){return f},ZR:function(){return g}});var n=t(38554),a=t.n(n),o=t(4651),i=t(13205),s=t(28680);function l(){return(l=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var c=a()({},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,o.Yd)(u),f=[...(0,o.Yd)(c),...s._],b=l({},c,s.v),g=e=>e in b},41664:function(){},87759:function(){},29676:function(e,r,t){"use strict";t.d(r,{f6:function(){return d},Fg:function(){return f},Fo:function(){return b},yK:function(){return g},ZL:function(){return p}});var n=t(24738),a=t(9421),o=t(4651),i=t(80658),s=t(28500),l=t(30495),c=t(70917),u=t(67294),d=e=>{var{cssVarsRoot:r=":host, :root",theme:t,children:n}=e,o=u.useMemo((()=>(0,a.toCSSVar)(t)),[t]);return u.createElement(l.a,{theme:o},u.createElement(c.Global,{styles:e=>({[r]:e.__cssVars})}),n)};function f(){var e=u.useContext(l.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var[b,g]=(0,s.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),p=()=>{var{colorMode:e}=(0,n.If)();return u.createElement(c.Global,{styles:r=>{var t=(0,o.Wf)(r,"styles.global"),n=(0,i.Pu)(t,{theme:r,colorMode:e});if(n)return(0,a.css)(n)(r)}})}},63108:function(e,r,t){"use strict";function n(e,r){return t=>"dark"===t.colorMode?r:e}function a(e){var{orientation:r,vertical:t,horizontal:n}=e;return r?"vertical"===r?t:n:{}}t.d(r,{xJ:function(){return n},fL:function(){return a}})},83035:function(e,r,t){"use strict";t.d(r,{Z:function(){return Dr}});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"}}},a=t(17621),o=t.n(a),i=t(4651),s=t(73808),l=(e,r,t)=>{var n=(0,i.Wf)(e,"colors."+r,r);return o()(n).isValid()?n:t},c=e=>r=>{var t=l(r,e);return o()(t).isDark()?"dark":"light"},u=(e,r)=>t=>{var n=l(t,e);return o()(n).setAlpha(r).toRgbString()};function d(e,r){return void 0===e&&(e="1rem"),void 0===r&&(r="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+r+" 25%,\n transparent 25%,\n transparent 50%,\n "+r+" 50%,\n "+r+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:e+" "+e}}function f(e){var r=o().random().toHexString();return!e||(0,s.Qr)(e)?r:e.string&&e.colors?function(e,r){var t=0;if(0===e.length)return r[0];for(var n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;return t=(t%r.length+r.length)%r.length,r[t]}(e.string,e.colors):e.string&&!e.colors?function(e){var r=0;if(0===e.length)return r.toString();for(var t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;for(var n="#",a=0;a<3;a+=1){n+=("00"+(r>>8*a&255).toString(16)).substr(-2)}return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):r}var b=t(63108);function g(e){var{theme:r,colorScheme:t}=e,n=l(r,t+".100",t),a=u(t+".200",.16)(r);return(0,b.xJ)(n,a)(e)}var p={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(e){var{colorScheme:r}=e;return{container:{bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},"left-accent":function(e){var{colorScheme:r}=e;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:(0,b.xJ)(r+".500",r+".200")(e),bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},"top-accent":function(e){var{colorScheme:r}=e;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:(0,b.xJ)(r+".500",r+".200")(e),bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},solid:function(e){var{colorScheme:r}=e;return{container:{bg:(0,b.xJ)(r+".500",r+".200")(e),color:(0,b.xJ)("white","gray.900")(e)}}}},defaultProps:{variant:"subtle",colorScheme:"blue"}},h=t(54681);function m(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:(0,b.xJ)("white","gray.800")(e)}}function y(e){return{bg:(0,b.xJ)("gray.200","whiteAlpha.400")(e)}}function v(e){var{name:r,theme:t}=e,n=r?f({string:r}):"gray.400",a=(e=>r=>"dark"===c(e)(r))(n)(t),o="white";return a||(o="gray.800"),{bg:n,color:o,borderColor:(0,b.xJ)("white","gray.800")(e),verticalAlign:"top"}}function x(e){var r=h.Z[e];return{container:{width:e,height:e,fontSize:"calc("+(null!=r?r:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(null!=r?r:e)+" / 2.5)",lineHeight:"100%"!==e?null!=r?r:e:void 0}}}var k={parts:["container","excessLabel","badge","label"],baseStyle:e=>({badge:m(e),excessLabel:y(e),container:v(e)}),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 w={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".500",.6)(t);return{bg:(0,b.xJ)(r+".500",n)(e),color:(0,b.xJ)("white","whiteAlpha.800")(e)}},subtle:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".200",.16)(t);return{bg:(0,b.xJ)(r+".100",n)(e),color:(0,b.xJ)(r+".800",r+".200")(e)}},outline:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".200",.8)(t),a=l(t,r+".500"),o=(0,b.xJ)(a,n)(e);return{color:o,boxShadow:"inset 0 0 0px 1px "+o}}},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 C(){return(C=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function F(e){var{colorScheme:r,theme:t}=e;if("gray"===r)return{color:(0,b.xJ)("inherit","whiteAlpha.900")(e),_hover:{bg:(0,b.xJ)("gray.100","whiteAlpha.200")(e)},_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.300")(e)}};var n=u(r+".200",.12)(t),a=u(r+".200",.24)(t);return{color:(0,b.xJ)(r+".600",r+".200")(e),bg:"transparent",_hover:{bg:(0,b.xJ)(r+".50",n)(e)},_active:{bg:(0,b.xJ)(r+".100",a)(e)}}}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:F,outline:function(e){var{colorScheme:r}=e,t=(0,b.xJ)("gray.200","whiteAlpha.300")(e);return C({border:"1px solid",borderColor:"gray"===r?t:"currentColor"},F(e))},solid:function(e){var{colorScheme:r}=e;if("gray"===r){var t=(0,b.xJ)("gray.100","whiteAlpha.200")(e);return{bg:t,_hover:{bg:(0,b.xJ)("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:(0,b.xJ)("gray.300","whiteAlpha.400")(e)}}}var{bg:n=r+".500",color:a="white",hoverBg:o=r+".600",activeBg:i=r+".700"}=A[r]||{},s=(0,b.xJ)(n,r+".200")(e);return{bg:s,color:(0,b.xJ)(a,"gray.800")(e),_hover:{bg:(0,b.xJ)(o,r+".300")(e),_disabled:{bg:s}},_active:{bg:(0,b.xJ)(i,r+".400")(e)}}},link:function(e){var{colorScheme:r}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:(0,b.xJ)(r+".500",r+".200")(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:(0,b.xJ)(r+".700",r+".500")(e)}}},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 _(e){var{colorScheme:r}=e;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:(0,b.xJ)(r+".500",r+".200")(e),borderColor:(0,b.xJ)(r+".500",r+".200")(e),color:(0,b.xJ)("white","gray.900")(e),_hover:{bg:(0,b.xJ)(r+".600",r+".300")(e),borderColor:(0,b.xJ)(r+".600",r+".300")(e)},_disabled:{borderColor:(0,b.xJ)("gray.200","transparent")(e),bg:(0,b.xJ)("gray.200","whiteAlpha.300")(e),color:(0,b.xJ)("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:(0,b.xJ)(r+".500",r+".200")(e),borderColor:(0,b.xJ)(r+".500",r+".200")(e),color:(0,b.xJ)("white","gray.900")(e)},_disabled:{bg:(0,b.xJ)("gray.100","whiteAlpha.100")(e),borderColor:(0,b.xJ)("gray.100","transparent")(e)},_focus:{boxShadow:"outline"},_invalid:{borderColor:(0,b.xJ)("red.500","red.300")(e)}}}var B={userSelect:"none",_disabled:{opacity:.4}},D={transitionProperty:"transform",transitionDuration:"normal"},z={parts:["container","control","label","icon"],baseStyle:e=>({icon:D,control:_(e),label:B}),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 R={baseStyle:function(e){return{borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:(0,b.xJ)("blackAlpha.100","whiteAlpha.100")(e)},_active:{bg:(0,b.xJ)("blackAlpha.200","whiteAlpha.200")(e)},_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:j,defaultProps:O}=w,T={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:j,defaultProps:O},P={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},I={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},M={bg:"blackAlpha.600",zIndex:"modal"};function W(e){var{isCentered:r,scrollBehavior:t}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:"inside"===t?"hidden":"auto"}}function J(e){var{scrollBehavior:r}=e;return{borderRadius:"md",bg:(0,b.xJ)("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,boxShadow:(0,b.xJ)("lg","dark-lg")(e)}}var N={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},H={position:"absolute",top:2,insetEnd:3};function L(e){var{scrollBehavior:r}=e;return{px:6,py:2,flex:1,overflow:"inside"===r?"auto":void 0}}var $={px:6,py:4};function Z(e){return"full"===e?{dialog:{maxW:"100vw",minH:"100vh"}}:{dialog:{maxW:e}}}var V={parts:["overlay","dialogContainer","dialog","header","closeButton","body","footer"],baseStyle:e=>({overlay:M,dialogContainer:W(e),dialog:J(e),header:N,closeButton:H,body:L(e),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(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function G(e){return"full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}}}var Y={bg:"blackAlpha.600",zIndex:"overlay"},X={display:"flex",zIndex:"modal",justifyContent:"center"};function U(e){var{isFullHeight:r}=e;return q({},r&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:(0,b.xJ)("white","gray.700")(e),color:"inherit",boxShadow:(0,b.xJ)("lg","dark-lg")(e)})}var K={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},Q={position:"absolute",top:2,insetEnd:3},ee={px:6,py:2,flex:1,overflow:"auto"},re={px:6,py:4},te={parts:V.parts,baseStyle:e=>({overlay:Y,dialogContainer:X,dialog:U(e),header:K,closeButton:Q,body:ee,footer:re}),sizes:{xs:G("xs"),sm:G("md"),md:G("lg"),lg:G("2xl"),xl:G("4xl"),full:G("full")},defaultProps:{size:"xs"}},ne={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 ae(e){return{marginStart:1,color:(0,b.xJ)("red.500","red.300")(e)}}function oe(e){return{mt:2,color:(0,b.xJ)("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}}var ie={parts:["requiredIndicator","helperText"],baseStyle:e=>({requiredIndicator:ae(e),helperText:oe(e)})},se={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},le={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"}},ce={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 ue(e){var{focusBorderColor:r,errorBorderColor:t}=e;return{focusBorderColor:r||(0,b.xJ)("blue.500","blue.300")(e),errorBorderColor:t||(0,b.xJ)("red.500","red.300")(e)}}var de={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:ce.lg,addon:ce.lg},md:{field:ce.md,addon:ce.md},sm:{field:ce.sm,addon:ce.sm},xs:{field:ce.xs,addon:ce.xs}},variants:{outline:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,b.xJ)("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(r,n),boxShadow:"0 0 0 1px "+l(r,n)},_focus:{zIndex:1,borderColor:l(r,t),boxShadow:"0 0 0 1px "+l(r,t)}},addon:{border:"1px solid",borderColor:(0,b.xJ)("inherit","whiteAlpha.50")(e),bg:(0,b.xJ)("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,b.xJ)("gray.100","whiteAlpha.50")(e),_hover:{bg:(0,b.xJ)("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(r,n)},_focus:{bg:"transparent",borderColor:l(r,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,b.xJ)("gray.100","whiteAlpha.50")(e)}}},flushed:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:l(r,n),boxShadow:"0px 1px 0px 0px "+l(r,n)},_focus:{borderColor:l(r,t),boxShadow:"0px 1px 0px 0px "+l(r,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 fe={baseStyle:function(e){return{bg:(0,b.xJ)("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},be={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},ge={parts:["container","item","icon"],baseStyle:{container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}}};function pe(e){return{bg:(0,b.xJ)("#fff","gray.700")(e),boxShadow:(0,b.xJ)("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}}function he(e){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:(0,b.xJ)("gray.100","whiteAlpha.100")(e)},_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.200")(e)},_expanded:{bg:(0,b.xJ)("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}var me,ye={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},ve={opacity:.6},xe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},ke={transitionProperty:"common",transitionDuration:"normal"},we={parts:["item","command","list","button","groupTitle","divider"],baseStyle:e=>({button:ke,list:pe(e),item:he(e),groupTitle:ye,command:ve,divider:xe})},Se=t(35268);function Ce(){return(Ce=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var{variants:Fe,defaultProps:Ae}=de,Ee={"--number-input-stepper-width":"24px","--number-input-field-padding":"calc(var(--number-input-stepper-width) + 0.5rem)"},_e=null==(me=de.baseStyle)?void 0:me.field,Be={width:"var(--number-input-stepper-width)"};function De(e){return{borderStart:"1px solid",borderStartColor:(0,b.xJ)("inherit","whiteAlpha.300")(e),color:(0,b.xJ)("inherit","whiteAlpha.800")(e),_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}function ze(e){var r=de.sizes[e],t={lg:"md",md:"md",sm:"sm",xs:"sm"},n=Se.Z.fontSizes[r.field.fontSize];return{field:Ce({},r.field,{paddingInlineEnd:"var(--number-input-field-padding)",verticalAlign:"top"}),stepper:{fontSize:"calc("+n+" * 0.75)",_first:{borderTopEndRadius:t[e]},_last:{borderBottomEndRadius:t[e],mt:"-1px",borderTopWidth:1}}}}var Re={parts:["root","field","stepper","stepperGroup"],baseStyle:e=>({root:Ee,field:_e,stepperGroup:Be,stepper:De(e)}),sizes:{xs:ze("xs"),sm:ze("sm"),md:ze("md"),lg:ze("lg")},variants:Fe,defaultProps:Ae};function je(){return(je=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var Oe={baseStyle:je({},de.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:e=>de.variants.outline(e).field,flushed:e=>de.variants.flushed(e).field,filled:e=>de.variants.filled(e).field,unstyled:de.variants.unstyled.field},defaultProps:de.defaultProps},Te={zIndex:10};function Pe(e){return{"--popover-bg":"colors."+(0,b.xJ)("white","gray.700")(e),bg:"var(--popover-bg)","--popper-arrow-bg":"var(--popover-bg)","--popper-arrow-shadow-color":"colors."+(0,b.xJ)("gray.200","whiteAlpha.300")(e),width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}}var Ie={px:3,py:2,borderBottomWidth:"1px"},Me={px:3,py:2},We={px:3,py:2,borderTopWidth:"1px"},Je={parts:["popper","content","header","body","footer","arrow"],baseStyle:e=>({popper:Te,content:Pe(e),header:Ie,body:Me,footer:We,arrow:{}})};function Ne(){return(Ne=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var He={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"};function Le(e){return{bg:(0,b.xJ)("gray.100","whiteAlpha.300")(e)}}function $e(e){return Ne({transitionProperty:"common",transitionDuration:"slow"},function(e){var{colorScheme:r,theme:t,isIndeterminate:n,hasStripe:a}=e,o=(0,b.xJ)(d(),d("1rem","rgba(0,0,0,0.1)"))(e),i=(0,b.xJ)(r+".500",r+".200")(e),s="linear-gradient(\n to right,\n transparent 0%,\n "+l(t,i)+" 50%,\n transparent 100%\n )";return Ne({},!n&&a&&o,n?{bgImage:s}:{bgColor:i})}(e))}var Ze={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:e=>({label:He,filledTrack:$e(e),track:Le(e)}),defaultProps:{size:"md",colorScheme:"blue"}};function Ve(){return(Ve=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function qe(e){var{control:r}=z.baseStyle(e);return Ve({},r,{borderRadius:"full",_checked:Ve({},r._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})}var Ge={parts:["container","control","label"],baseStyle:e=>({label:z.baseStyle(e).label,control:qe(e)}),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"}},Ye=t(38554);function Xe(){return(Xe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function Ue(e){return Xe({},de.baseStyle.field,{appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:(0,b.xJ)("white","gray.700")(e)}})}var Ke={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Qe={parts:["field","icon"],baseStyle:e=>({field:Ue(e),icon:Ke}),sizes:t.n(Ye)()({},de.sizes,{xs:{icon:{insetEnd:"0.25rem"}}}),variants:de.variants,defaultProps:de.defaultProps},er=t(70917),rr=(e,r)=>(0,er.keyframes)({from:{borderColor:e,background:e},to:{borderColor:r,background:r}}),tr={baseStyle:e=>{var r=(0,b.xJ)("gray.100","gray.800")(e),t=(0,b.xJ)("gray.400","gray.600")(e),{startColor:n=r,endColor:a=t,speed:o,theme:i}=e,s=l(i,n),c=l(i,a);return{opacity:.7,borderRadius:"2px",borderColor:s,background:c,animation:o+"s linear infinite alternate "+rr(s,c)}}},nr={baseStyle:e=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:(0,b.xJ)("white","gray.700")(e)}})};function ar(){return(ar=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var or=e=>{var{orientation:r}=e;return ar({_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},(0,b.fL)({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}}))};function ir(e){return{borderRadius:"sm",bg:(0,b.xJ)("gray.200","whiteAlpha.200")(e),_disabled:{bg:(0,b.xJ)("gray.300","whiteAlpha.300")(e)}}}function sr(e){return ar({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(e){return(0,b.fL)({orientation:e.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)"}}})}(e))}function lr(e){var{colorScheme:r}=e;return{bg:(0,b.xJ)(r+".500",r+".200")(e)}}var cr={parts:["container","thumb","track","filledTrack"],sizes:{lg:function(e){return{thumb:{w:"16px",h:"16px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},baseStyle:e=>({container:or(e),track:ir(e),thumb:sr(e),filledTrack:lr(e)}),defaultProps:{size:"md",colorScheme:"blue"}},ur={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"}},dr={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 fr(e){var{colorScheme:r}=e;return{borderRadius:"full",p:"2px",width:"var(--slider-track-width)",height:"var(--slider-track-height)",transitionProperty:"common",transitionDuration:"fast",bg:(0,b.xJ)("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:(0,b.xJ)(r+".500",r+".200")(e)}}}var br={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))"}},gr={parts:["container","track","thumb"],baseStyle:e=>({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:fr(e),thumb:br}),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 pr(){return(pr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var hr={"&[data-is-numeric=true]":{textAlign:"end"}},mr={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:e=>{var{colorScheme:r}=e;return{th:pr({color:(0,b.xJ)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),td:pr({borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),caption:{color:(0,b.xJ)("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:e=>{var{colorScheme:r}=e;return{th:pr({color:(0,b.xJ)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),td:pr({borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),caption:{color:(0,b.xJ)("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},td:{background:(0,b.xJ)(r+".100",r+".700")(e)}}}},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 yr(e){var{orientation:r}=e;return{display:"vertical"===r?"flex":"block"}}function vr(e){var{isFitted:r}=e;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function xr(e){var{align:r="start",orientation:t}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:"vertical"===t?"column":"row"}}var kr={p:4};var wr={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:e=>({root:yr(e),tab:vr(e),tablist:xr(e),tabpanel:kr}),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(e){var{colorScheme:r,orientation:t}=e,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,b.xJ)(r+".600",r+".300")(e),borderColor:"currentColor"},_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(e){var{colorScheme:r}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"inherit",borderBottomColor:(0,b.xJ)("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var{colorScheme:r}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:(0,b.xJ)("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:(0,b.xJ)("#fff","gray.800")(e),color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var{colorScheme:r,theme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:l(t,r+".700"),bg:l(t,r+".100")}}}},"solid-rounded":function(e){var{colorScheme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:(0,b.xJ)("gray.600","inherit")(e),_selected:{color:(0,b.xJ)("#fff","gray.800")(e),bg:(0,b.xJ)(r+".600",r+".300")(e)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Sr={parts:["container","label","closeButton"],variants:{subtle:e=>({container:w.variants.subtle(e)}),solid:e=>({container:w.variants.solid(e)}),outline:e=>({container:w.variants.outline(e)})},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 Cr(){return(Cr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var Fr=Cr({},de.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Ar={outline:e=>de.variants.outline(e).field,flushed:e=>de.variants.flushed(e).field,filled:e=>de.variants.filled(e).field,unstyled:de.variants.unstyled.field},Er={xs:de.sizes.xs.field,sm:de.sizes.sm.field,md:de.sizes.md.field,lg:de.sizes.lg.field};function _r(e){return{color:(0,b.xJ)("red.500","red.300")(e),mt:2,fontSize:"sm"}}function Br(e){return{marginEnd:"0.5em",color:(0,b.xJ)("red.500","red.300")(e)}}var Dr={Accordion:n,Alert:p,Avatar:k,Badge:w,Breadcrumb:S,Button:E,Checkbox:z,CloseButton:R,Code:T,Container:P,Divider:I,Drawer:te,Editable:ne,Form:ie,FormLabel:se,Heading:le,Input:de,Kbd:fe,Link:be,List:ge,Menu:we,Modal:V,NumberInput:Re,PinInput:Oe,Popover:Je,Progress:Ze,Radio:Ge,Select:Qe,Skeleton:tr,SkipLink:nr,Slider:cr,Spinner:ur,Stat:dr,Switch:gr,Table:mr,Tabs:wr,Tag:Sr,Textarea:{baseStyle:Fr,sizes:Er,variants:Ar,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:function(e){return{"--tooltip-bg":"colors."+(0,b.xJ)("gray.700","gray.300")(e),px:"8px",py:"2px",bg:"var(--tooltip-bg)","--popper-arrow-bg":"var(--tooltip-bg)",color:(0,b.xJ)("whiteAlpha.900","gray.900")(e),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}}},FormError:{parts:["text","icon"],baseStyle:e=>({text:_r(e),icon:Br(e)})}}},42009:function(e,r,t){"use strict";t.d(r,{Z:function(){return p}});var n={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},a=t(80658);function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var i,s=(i={sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},(0,a.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),o({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),b={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 g(){return(g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var p=g({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:b})},54681:function(e,r,t){"use strict";function n(){return(n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var a=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"}});r.Z=a},54514:function(e,r,t){"use strict";t.d(r,{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(e,r){"use strict";r.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(e,r,t){"use strict";var n=t(83035),a=t(42009),o=t(41926),i=t(93025);function s(){return(s=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}t.o(i,"useTheme")&&t.d(r,{useTheme:function(){return i.useTheme}});var l=s({direction:"ltr"},a.Z,{components:n.Z,styles:o.Z,config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}});r.Z=l},41926:function(e,r,t){"use strict";var n=t(63108),a={global:e=>({body:{fontFamily:"body",color:(0,n.xJ)("gray.800","whiteAlpha.900")(e),bg:(0,n.xJ)("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:(0,n.xJ)("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:(0,n.xJ)("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}})};r.Z=a},93025:function(){},27277:function(e,r,t){"use strict";function n(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}function a(e,r){return[...e,r]}function o(e,r){return e.filter((e=>e!==r))}function i(e,r,t,n){if(null==r)return n;if(!n)return e.find((e=>t(e).toLowerCase().startsWith(r.toLowerCase())));var a,o=e.filter((e=>t(e).toLowerCase().startsWith(r.toLowerCase())));return o.length>0?o.includes(n)?((a=o.indexOf(n)+1)===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a]):n}t.d(r,{s:function(){return n},jX:function(){return a},cl:function(){return o},LP:function(){return i}})},73808:function(e,r,t){"use strict";function n(e){return"number"===typeof e}function a(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)}function o(e){return Array.isArray(e)}function i(e){return"function"===typeof e}function s(e){return"undefined"===typeof e||void 0===e}function l(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!o(e)}function c(e){return l(e)&&0===Object.keys(e).length}function u(e){return"[object String]"===Object.prototype.toString.call(e)}function d(e){return/^var\(--.+\)$/.test(e)}t.d(r,{hj:function(){return n},iy:function(){return a},kJ:function(){return o},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 b},Ik:function(){return g}});var f=!1,b=!1;function g(e){return"current"in e}},88456:function(e,r,t){"use strict";t.d(r,{px:function(){return i},y:function(){return d}});var n=t(27277),a=t(73808),o=t(4651);function i(e){if(null==e)return e;var{unitless:r}=function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e);return r||(0,a.hj)(e)?e+"px":e}var s=(e,r)=>parseInt(e[1],10)>parseInt(r[1],10)?1:-1,l=e=>(0,o.sq)(Object.entries(e).sort(s));function c(e){var r=l(e);return Object.assign(Object.values(r),r)}function u(e,r){var t=[];return e&&t.push("@media screen and (min-width: "+i(e)+")"),t.length>0&&r&&t.push("and"),r&&t.push("@media screen and (max-width: "+i(r)+")"),t.join(" ")}function d(e){var r;if(!e)return null;e.base=null!=(r=e.base)?r:"0px";var t=c(e),o=Object.entries(e).sort(s).map(((e,r,t)=>{var n,[o,s]=e,[,l]=null!=(n=t[r+1])?n:[];return{breakpoint:o,minW:s,maxW:l=parseFloat(l)>0?function(e){var r;if(!e)return e;var t=(e=null!=(r=i(e))?r:e).endsWith("px")?-1:-.0635;return(0,a.hj)(e)?""+(e+t):e.replace(/([0-9]+\.?[0-9]*)/,(e=>""+(parseFloat(e)+t)))}(l):void 0,maxWQuery:u(null,l),minWQuery:u(s),minMaxQuery:u(s,l)}})),d=function(e){var r=Object.keys(l(e));return new Set(r)}(e),f=Array.from(d.values());return{keys:d,normalized:t,isResponsive(e){var r=Object.keys(e);return r.length>0&&r.every((e=>d.has(e)))},asObject:l(e),asArray:c(e),details:o,media:[null,...t.map((e=>u(e))).slice(1)],toArrayValue(e){if(!(0,a.Kn)(e))throw new Error("toArrayValue: value must be an object");for(var r=f.map((r=>{var t;return null!=(t=e[r])?t:null}));null===(0,n.s)(r);)r.pop();return r},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,r,t)=>{var n=f[t];return null!=n&&null!=r&&(e[n]=r),e}),{})}}}},84461:function(e,r,t){"use strict";function n(e){var r;return e instanceof Element&&null!=(r=e.ownerDocument)?r:document}t.d(r,{lZ:function(){return n},jU:function(){return a},PB:function(){return o},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 b}});var a=!("undefined"===typeof window||!window.document||!window.document.createElement),o=e=>e?"":void 0,i=e=>!!e||void 0,s=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter(Boolean).join(" ")};function l(e){var r=n(e);return null==r?void 0:r.activeElement}function c(e,r){return!!e&&(e===r||e.contains(r))}function u(e,r,t,n){return e.addEventListener(r,t,n),()=>{e.removeEventListener(r,t,n)}}function d(e){var{key:r,keyCode:t}=e;return t>=37&&t<=40&&0!==r.indexOf("Arrow")?"Arrow"+r:r}function f(e){var r,t,n,a=l(null!=(r=e.target)?r:e.currentTarget),o=e.nativeEvent.explicitOriginalTarget;return null!=(t=null!=(n=e.relatedTarget)?n:o)?t:a}function b(e){return 0!==e.button}},80658:function(e,r,t){"use strict";t.d(r,{Pu:function(){return a},v0:function(){return o},ZT:function(){return s},ZK:function(){return l},A4:function(){return c},zG:function(){return u},TE:function(){return b}});var n=t(73808);function a(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];return(0,n.mf)(e)?e(...t):e}function o(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){r.some((r=>(null==r||r(e),null==e?void 0:e.defaultPrevented)))}}function i(e){var r;return function(){if(e){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];r=e.apply(this,n),e=null}return r}}var s=()=>{},l=i((e=>()=>{var{condition:r,message:t}=e;r&&n.Ts&&console.warn(t)})),c=(i((e=>()=>{var{condition:r,message:t}=e;r&&n.Ts&&console.error(t)})),n.Ys?e=>e():"function"===typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)}),u=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return e=>r.reduce(((e,r)=>r(e)),e)},d=(e,r)=>Math.abs(e-r),f=e=>"x"in e&&"y"in e;function b(e,r){if((0,n.hj)(e)&&(0,n.hj)(r))return d(e,r);if(f(e)&&f(r)){var t=d(e.x,r.x),a=d(e.y,r.y);return Math.sqrt(t**2+a**2)}return 0}},4651:function(e,r,t){"use strict";t.d(r,{CE:function(){return n},ei:function(){return a},Vl:function(){return o},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(e,r){var t={};return Object.keys(e).forEach((n=>{r.includes(n)||(t[n]=e[n])})),t}function a(e,r){var t={};return r.forEach((r=>{r in e&&(t[r]=e[r])})),t}function o(e,r){var t={},n={};return Object.keys(e).forEach((a=>{r.includes(a)?t[a]=e[a]:n[a]=e[a]})),[t,n]}var i=(e=>{var r=new WeakMap;return(t,n,a,o)=>{if("undefined"===typeof t)return e(t,n,a);r.has(t)||r.set(t,new Map);var i=r.get(t);if(i.has(n))return i.get(n);var s=e(t,n,a,o);return i.set(n,s),s}})((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n<a.length&&e;n+=1)e=e[a[n]];return void 0===e?t:e}));function s(e,r){var t={};return Object.keys(e).forEach((n=>{var a=e[n];r(a,n,e)&&(t[n]=a)})),t}var l=e=>s(e,(e=>null!==e&&void 0!==e)),c=e=>Object.keys(e),u=e=>e.reduce(((e,r)=>{var[t,n]=r;return e[t]=n,e}),{}),d=(e,r,t)=>{var n,a;return null!=(n=null==(a=e.__cssMap[r+"."+t])?void 0:a.varRef)?n:t}},17861:function(e,r,t){"use strict";t.d(r,{Z:function(){return re}});var n=t(11526),a=Math.abs,o=String.fromCharCode;function i(e){return e.trim()}function s(e,r,t){return e.replace(r,t)}function l(e,r){return e.indexOf(r)}function c(e,r){return 0|e.charCodeAt(r)}function u(e,r,t){return e.slice(r,t)}function d(e){return e.length}function f(e){return e.length}function b(e,r){return r.push(e),e}var g=1,p=1,h=0,m=0,y=0,v="";function x(e,r,t,n,a,o,i){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:g,column:p,length:i,return:""}}function k(e,r,t){return x(e,r.root,r.parent,t,r.props,r.children,0)}function w(){return y=m>0?c(v,--m):0,p--,10===y&&(p=1,g--),y}function S(){return y=m<h?c(v,m++):0,p++,10===y&&(p=1,g++),y}function C(){return c(v,m)}function F(){return m}function A(e,r){return u(v,e,r)}function E(e){switch(e){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 _(e){return g=p=1,h=d(v=e),m=0,[]}function B(e){return v="",e}function D(e){return i(A(m-1,j(91===e?e+2:40===e?e+1:e)))}function z(e){for(;(y=C())&&y<33;)S();return E(e)>2||E(y)>3?"":" "}function R(e,r){for(;--r&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return A(e,F()+(r<6&&32==C()&&32==S()))}function j(e){for(;S();)switch(y){case e:return m;case 34:case 39:return j(34===e||39===e?e:y);case 40:41===e&&j(e);break;case 92:S()}return m}function O(e,r){for(;S()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+A(r,m-1)+"*"+o(47===e?e:S())}function T(e){for(;!E(C());)S();return A(e,m)}var P="-ms-",I="-moz-",M="-webkit-",W="comm",J="rule",N="decl";function H(e,r){for(var t="",n=f(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function L(e,r,t,n){switch(e.type){case"@import":case N:return e.return=e.return||e.value;case W:return"";case J:e.value=e.props.join(",")}return d(t=H(e.children,n))?e.return=e.value+"{"+t+"}":""}function $(e,r){switch(function(e,r){return(((r<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3)}(e,r)){case 5103:return M+"print-"+e+e;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 M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+I+e+P+e+e;case 6828:case 4268:return M+e+P+e+e;case 6165:return M+e+P+"flex-"+e+e;case 5187:return M+e+s(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return M+e+P+"flex-item-"+s(e,/flex-|-self/,"")+e;case 4675:return M+e+P+"flex-line-pack"+s(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+P+s(e,"shrink","negative")+e;case 5292:return M+e+P+s(e,"basis","preferred-size")+e;case 6060:return M+"box-"+s(e,"-grow","")+M+e+P+s(e,"grow","positive")+e;case 4554:return M+s(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return s(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,M+"$1$2")+e;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(e)-1-r>6)switch(c(e,r+1)){case 109:if(45!==c(e,r+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+I+(108==c(e,r+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?$(s(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==c(e,r+1))break;case 6444:switch(c(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return s(e,":",":"+M)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(45===c(e,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(c(e,r+11)){case 114:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+P+e+e}return e}function Z(e){return B(V("",null,null,null,[""],e=_(e),0,[0],e))}function V(e,r,t,n,a,i,l,c,u){for(var f=0,g=0,p=l,h=0,m=0,y=0,v=1,x=1,k=1,A=0,E="",_=a,B=i,j=n,P=E;x;)switch(y=A,A=S()){case 34:case 39:case 91:case 40:P+=D(A);break;case 9:case 10:case 13:case 32:P+=z(y);break;case 92:P+=R(F()-1,7);continue;case 47:switch(C()){case 42:case 47:b(G(O(S(),F()),r,t),u);break;default:P+="/"}break;case 123*v:c[f++]=d(P)*k;case 125*v:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+g:m>0&&d(P)-p&&b(m>32?Y(P+";",n,t,p-1):Y(s(P," ","")+";",n,t,p-2),u);break;case 59:P+=";";default:if(b(j=q(P,r,t,f,g,a,c,E,_=[],B=[],p),i),123===A)if(0===g)V(P,r,j,j,_,i,p,c,B);else switch(h){case 100:case 109:case 115:V(e,j,j,n&&b(q(e,j,j,0,0,a,c,E,a,_=[],p),B),a,B,p,c,n?_:B);break;default:V(P,j,j,j,[""],B,p,c,B)}}f=g=m=0,v=k=1,E=P="",p=l;break;case 58:p=1+d(P),m=y;default:if(v<1)if(123==A)--v;else if(125==A&&0==v++&&125==w())continue;switch(P+=o(A),A*v){case 38:k=g>0?1:(P+="\f",-1);break;case 44:c[f++]=(d(P)-1)*k,k=1;break;case 64:45===C()&&(P+=D(S())),h=C(),g=d(E=P+=T(F())),A++;break;case 45:45===y&&2==d(P)&&(v=0)}}return i}function q(e,r,t,n,o,l,c,d,b,g,p){for(var h=o-1,m=0===o?l:[""],y=f(m),v=0,k=0,w=0;v<n;++v)for(var S=0,C=u(e,h+1,h=a(k=c[v])),F=e;S<y;++S)(F=i(k>0?m[S]+" "+C:s(C,/&\f/g,m[S])))&&(b[w++]=F);return x(e,r,t,0===o?J:d,b,g,p)}function G(e,r,t){return x(e,r,t,W,o(y),u(e,2,-2),0)}function Y(e,r,t,n){return x(e,r,t,N,u(e,0,n),u(e,n+1,-1),n)}var X=function(e,r){return B(function(e,r){var t=-1,n=44;do{switch(E(n)){case 0:38===n&&12===C()&&(r[t]=1),e[t]+=T(m-1);break;case 2:e[t]+=D(n);break;case 4:if(44===n){e[++t]=58===C()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=o(n)}}while(n=S());return e}(_(e),r))},U=new WeakMap,K=function(e){if("rule"===e.type&&e.parent&&e.length){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||U.get(t))&&!n){U.set(e,!0);for(var a=[],o=X(r,a),i=t.props,s=0,l=0;s<o.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[c]):i[c]+" "+o[s]}}},Q=function(e){if("decl"===e.type){var r=e.value;108===r.charCodeAt(0)&&98===r.charCodeAt(2)&&(e.return="",e.value="")}},ee=[function(e,r,t,n){if(!e.return)switch(e.type){case N:e.return=$(e.value,e.length);break;case"@keyframes":return H([k(s(e.value,"@","@"+M),e,"")],n);case J:if(e.length)return function(e,r){return e.map(r).join("")}(e.props,(function(r){switch(function(e,r){return(e=r.exec(e))?e[0]:e}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([k(s(r,/:(read-\w+)/,":-moz-$1"),e,"")],n);case"::placeholder":return H([k(s(r,/:(plac\w+)/,":-webkit-input-$1"),e,""),k(s(r,/:(plac\w+)/,":-moz-$1"),e,""),k(s(r,/:(plac\w+)/,P+"input-$1"),e,"")],n)}return""}))}}],re=function(e){var r=e.key;if("css"===r){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||ee;var o,i,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var r=e.getAttribute("data-emotion").split(" "),t=1;t<r.length;t++)s[r[t]]=!0;l.push(e)}));var c,u,d=[L,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],b=function(e){var r=f(e);return function(t,n,a,o){for(var i="",s=0;s<r;s++)i+=e[s](t,n,a,o)||"";return i}}([K,Q].concat(a,d));i=function(e,r,t,n){c=t,H(Z(e?e+"{"+r.styles+"}":r.styles),b),n&&(g.inserted[r.name]=!0)};var g={key:r,sheet:new n.m({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(l),g}},67866:function(e,r){"use strict";r.Z=function(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}},30495:function(e,r,t){"use strict";t.d(r,{C:function(){return g},E:function(){return S},T:function(){return h},a:function(){return v},b:function(){return x},c:function(){return w},h:function(){return f},u:function(){return m},w:function(){return p}});var n=t(67294),a=t(17861),o=t(87462),i=function(e){var r=new WeakMap;return function(t){if(r.has(t))return r.get(t);var n=e(t);return r.set(t,n),n}},s=t(8679),l=t.n(s),c=function(e,r){return l()(e,r)},u=t(70444),d=t(94199),f=Object.prototype.hasOwnProperty,b=(0,n.createContext)("undefined"!==typeof HTMLElement?(0,a.Z)({key:"css"}):null),g=b.Provider,p=function(e){return(0,n.forwardRef)((function(r,t){var a=(0,n.useContext)(b);return e(r,a,t)}))},h=(0,n.createContext)({}),m=function(){return(0,n.useContext)(h)},y=i((function(e){return i((function(r){return function(e,r){return"function"===typeof r?r(e):(0,o.Z)({},e,r)}(e,r)}))})),v=function(e){var r=(0,n.useContext)(h);return e.theme!==r&&(r=y(r)(e.theme)),(0,n.createElement)(h.Provider,{value:r},e.children)};function x(e){var r=e.displayName||e.name||"Component",t=function(r,t){var a=(0,n.useContext)(h);return(0,n.createElement)(e,(0,o.Z)({theme:a,ref:t},r))},a=(0,n.forwardRef)(t);return a.displayName="WithTheme("+r+")",c(a,e)}var k="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",w=function(e,r){var t={};for(var n in r)f.call(r,n)&&(t[n]=r[n]);return t[k]=e,t},S=p((function(e,r,t){var a=e.css;"string"===typeof a&&void 0!==r.registered[a]&&(a=r.registered[a]);var o=e[k],i=[a],s="";"string"===typeof e.className?s=(0,u.f)(r.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=(0,d.O)(i,void 0,"function"===typeof a||Array.isArray(a)?(0,n.useContext)(h):void 0);(0,u.M)(r,l,"string"===typeof o);s+=r.key+"-"+l.name;var c={};for(var b in e)f.call(e,b)&&"css"!==b&&b!==k&&(c[b]=e[b]);return c.ref=t,c.className=s,(0,n.createElement)(o,c)}))},70917:function(e,r,t){"use strict";t.r(r),t.d(r,{CacheProvider:function(){return a.C},ThemeContext:function(){return a.T},ThemeProvider:function(){return a.a},useTheme:function(){return a.u},withEmotionCache:function(){return a.w},withTheme:function(){return a.b},ClassNames:function(){return g},Global:function(){return c},createElement:function(){return l},css:function(){return u},jsx:function(){return l},keyframes:function(){return d}});var n=t(67294),a=(t(17861),t(30495)),o=(t(8679),t(70444)),i=t(94199),s=t(11526),l=function(e,r){var t=arguments;if(null==r||!a.h.call(r,"css"))return n.createElement.apply(void 0,t);var o=t.length,i=new Array(o);i[0]=a.E,i[1]=(0,a.c)(e,r);for(var s=2;s<o;s++)i[s]=t[s];return n.createElement.apply(null,i)},c=(0,a.w)((function(e,r){var t=e.styles,l=(0,i.O)([t],void 0,"function"===typeof t||Array.isArray(t)?(0,n.useContext)(a.T):void 0),c=(0,n.useRef)();return(0,n.useLayoutEffect)((function(){var e=r.key+"-global",t=new s.m({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),n=!1,a=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==a&&(n=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),c.current=[t,n],function(){t.flush()}}),[r]),(0,n.useLayoutEffect)((function(){var e=c.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.M)(r,l.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}r.insert("",l,t,!1)}}),[r,l.name]),null}));function u(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,i.O)(r)}var d=function(){var e=u.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},f=function e(r){for(var t=r.length,n=0,a="";n<t;n++){var o=r[n];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function b(e,r,t){var n=[],a=(0,o.f)(e,n,t);return n.length<2?t:a+r(n)}var g=(0,a.w)((function(e,r){var t=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=(0,i.O)(t,r.registered);return(0,o.M)(r,a,!1),r.key+"-"+a.name},s={css:t,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return b(r.registered,t,f(n))},theme:(0,n.useContext)(a.T)},l=e.children(s);return!0,l}))},94199:function(e,r,t){"use strict";t.d(r,{O:function(){return p}});var n=function(e){for(var r,t=0,n=0,a=e.length;a>=4;++n,a-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(a){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},a={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},o=t(67866),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.Z)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,r){switch(e){case"animation":case"animationName":if("string"===typeof r)return r.replace(s,(function(e,r,t){return b={name:r,styles:t,next:b},r}))}return 1===a[e]||l(e)||"number"!==typeof r||0===r?r:r+"px"};function f(e,r,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 b={name:t.name,styles:t.styles,next:b},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)b={name:n.name,styles:n.styles,next:b},n=n.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=f(e,r,t[a])+";";else for(var o in t){var i=t[o];if("object"!==typeof i)null!=r&&void 0!==r[i]?n+=o+"{"+r[i]+"}":c(i)&&(n+=u(o)+":"+d(o,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=r&&void 0!==r[i[0]]){var s=f(e,r,i);switch(o){case"animation":case"animationName":n+=u(o)+":"+s+";";break;default:n+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)c(i[l])&&(n+=u(o)+":"+d(o,i[l])+";")}return n}(e,r,t);case"function":if(void 0!==e){var a=b,o=t(e);return b=a,f(e,r,o)}break;case"string":}if(null==r)return t;var i=r[t];return void 0!==i?i:t}var b,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var p=function(e,r,t){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,o="";b=void 0;var i=e[0];null==i||void 0===i.raw?(a=!1,o+=f(t,r,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=f(t,r,e[s]),a&&(o+=i[s]);g.lastIndex=0;for(var l,c="";null!==(l=g.exec(o));)c+="-"+l[1];return{name:n(o)+c,styles:o,next:b}}},11526:function(e,r,t){"use strict";t.d(r,{m:function(){return n}});var n=function(){function e(e){var r=this;this._insertTag=function(e){var t;t=0===r.tags.length?r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(e,t),r.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var r=e.prototype;return r.hydrate=function(e){e.forEach(this._insertTag)},r.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),void 0!==e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var t=function(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}(r);try{t.insertRule(e,t.cssRules.length)}catch(n){0}}else r.appendChild(document.createTextNode(e));this.ctr++},r.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},70444:function(e,r,t){"use strict";t.d(r,{f:function(){return n},M:function(){return a}});function n(e,r,t){var n="";return t.split(" ").forEach((function(t){void 0!==e[t]?r.push(e[t]+";"):n+=t+" "})),n}var a=function(e,r,t){var n=e.key+"-"+r.name;if(!1===t&&void 0===e.registered[n]&&(e.registered[n]=r.styles),void 0===e.inserted[r.name]){var a=r;do{e.insert(r===a?"."+n:"",a,e.sheet,!0);a=a.next}while(void 0!==a)}}},8679:function(e,r,t){"use strict";var n=t(21296),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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(e){return n.isMemo(e)?i:s[e.$$typeof]||a}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,b=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(r,t,n){if("string"!==typeof t){if(g){var a=b(t);a&&a!==g&&e(r,a,n)}var i=u(t);d&&(i=i.concat(d(t)));for(var s=l(r),p=l(t),h=0;h<i.length;++h){var m=i[h];if(!o[m]&&(!n||!n[m])&&(!p||!p[m])&&(!s||!s[m])){var y=f(t,m);try{c(r,m,y)}catch(v){}}}}return r}},96103:function(e,r){"use strict";var t="function"===typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,o=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,b=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case u:case d:case o:case s:case i:case b:return e;default:switch(e=e&&e.$$typeof){case c:case f:case h:case p:case l:return e;default:return r}}case a:return r}}}function w(e){return k(e)===d}r.AsyncMode=u,r.ConcurrentMode=d,r.ContextConsumer=c,r.ContextProvider=l,r.Element=n,r.ForwardRef=f,r.Fragment=o,r.Lazy=h,r.Memo=p,r.Portal=a,r.Profiler=s,r.StrictMode=i,r.Suspense=b,r.isAsyncMode=function(e){return w(e)||k(e)===u},r.isConcurrentMode=w,r.isContextConsumer=function(e){return k(e)===c},r.isContextProvider=function(e){return k(e)===l},r.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return k(e)===f},r.isFragment=function(e){return k(e)===o},r.isLazy=function(e){return k(e)===h},r.isMemo=function(e){return k(e)===p},r.isPortal=function(e){return k(e)===a},r.isProfiler=function(e){return k(e)===s},r.isStrictMode=function(e){return k(e)===i},r.isSuspense=function(e){return k(e)===b},r.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===i||e===b||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===x||e.$$typeof===m)},r.typeOf=k},21296:function(e,r,t){"use strict";e.exports=t(96103)},38554:function(e,r,t){e=t.nmd(e);var n="__lodash_hash_undefined__",a=9007199254740991,o="[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[o]=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,b=d||f||Function("return this")(),g=r&&!r.nodeType&&r,p=g&&e&&!e.nodeType&&e,h=p&&p.exports===g,m=h&&d.process,y=function(){try{var e=p&&p.require&&p.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(r){}}(),v=y&&y.isTypedArray;function x(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var k,w,S=Array.prototype,C=Function.prototype,F=Object.prototype,A=b["__core-js_shared__"],E=C.toString,_=F.hasOwnProperty,B=function(){var e=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),D=F.toString,z=E.call(Object),R=RegExp("^"+E.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=h?b.Buffer:void 0,O=b.Symbol,T=b.Uint8Array,P=j?j.allocUnsafe:void 0,I=(k=Object.getPrototypeOf,w=Object,function(e){return k(w(e))}),M=Object.create,W=F.propertyIsEnumerable,J=S.splice,N=O?O.toStringTag:void 0,H=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(r){}}(),L=j?j.isBuffer:void 0,$=Math.max,Z=Date.now,V=be(b,"Map"),q=be(Object,"create"),G=function(){function e(){}return function(r){if(!Fe(r))return{};if(M)return M(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}();function Y(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function X(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function U(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function K(e){var r=this.__data__=new X(e);this.size=r.size}function Q(e,r){var t=xe(e),n=!t&&ve(e),a=!t&&!n&&we(e),o=!t&&!n&&!a&&Ee(e),i=t||n||a||o,s=i?function(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}(e.length,String):[],l=s.length;for(var c in e)!r&&!_.call(e,c)||i&&("length"==c||a&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ge(c,l))||s.push(c);return s}function ee(e,r,t){(void 0!==t&&!ye(e[r],t)||void 0===t&&!(r in e))&&ne(e,r,t)}function re(e,r,t){var n=e[r];_.call(e,r)&&ye(n,t)&&(void 0!==t||r in e)||ne(e,r,t)}function te(e,r){for(var t=e.length;t--;)if(ye(e[t][0],r))return t;return-1}function ne(e,r,t){"__proto__"==r&&H?H(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}Y.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},Y.prototype.delete=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r},Y.prototype.get=function(e){var r=this.__data__;if(q){var t=r[e];return t===n?void 0:t}return _.call(r,e)?r[e]:void 0},Y.prototype.has=function(e){var r=this.__data__;return q?void 0!==r[e]:_.call(r,e)},Y.prototype.set=function(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=q&&void 0===r?n:r,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(e){var r=this.__data__,t=te(r,e);return!(t<0)&&(t==r.length-1?r.pop():J.call(r,t,1),--this.size,!0)},X.prototype.get=function(e){var r=this.__data__,t=te(r,e);return t<0?void 0:r[t][1]},X.prototype.has=function(e){return te(this.__data__,e)>-1},X.prototype.set=function(e,r){var t=this.__data__,n=te(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this},U.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(V||X),string:new Y}},U.prototype.delete=function(e){var r=fe(this,e).delete(e);return this.size-=r?1:0,r},U.prototype.get=function(e){return fe(this,e).get(e)},U.prototype.has=function(e){return fe(this,e).has(e)},U.prototype.set=function(e,r){var t=fe(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,r){var t=this.__data__;if(t instanceof X){var n=t.__data__;if(!V||n.length<199)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new U(n)}return t.set(e,r),this.size=t.size,this};var ae,oe=function(e,r,t){for(var n=-1,a=Object(e),o=t(e),i=o.length;i--;){var s=o[ae?i:++n];if(!1===r(a[s],s,a))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?function(e){var r=_.call(e,N),t=e[N];try{e[N]=void 0;var n=!0}catch(o){}var a=D.call(e);n&&(r?e[N]=t:delete e[N]);return a}(e):function(e){return D.call(e)}(e)}function se(e){return Ae(e)&&ie(e)==o}function le(e){return!(!Fe(e)||function(e){return!!B&&B in e}(e))&&(Se(e)?R:l).test(function(e){if(null!=e){try{return E.call(e)}catch(r){}try{return e+""}catch(r){}}return""}(e))}function ce(e){if(!Fe(e))return function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}(e);var r=pe(e),t=[];for(var n in e)("constructor"!=n||!r&&_.call(e,n))&&t.push(n);return t}function ue(e,r,t,n,a){e!==r&&oe(r,(function(o,i){if(a||(a=new K),Fe(o))!function(e,r,t,n,a,o,i){var l=he(e,t),c=he(r,t),u=i.get(c);if(u)return void ee(e,t,u);var d=o?o(l,c,t+"",e,r,i):void 0,f=void 0===d;if(f){var b=xe(c),g=!b&&we(c),p=!b&&!g&&Ee(c);d=c,b||g||p?xe(l)?d=l:Ae(h=l)&&ke(h)?d=function(e,r){var t=-1,n=e.length;r||(r=Array(n));for(;++t<n;)r[t]=e[t];return r}(l):g?(f=!1,d=function(e,r){if(r)return e.slice();var t=e.length,n=P?P(t):new e.constructor(t);return e.copy(n),n}(c,!0)):p?(f=!1,d=function(e,r){var t=r?function(e){var r=new e.constructor(e.byteLength);return new T(r).set(new T(e)),r}(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}(c,!0)):d=[]:function(e){if(!Ae(e)||ie(e)!=s)return!1;var r=I(e);if(null===r)return!0;var t=_.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&E.call(t)==z}(c)||ve(c)?(d=l,ve(l)?d=function(e){return function(e,r,t,n){var a=!t;t||(t={});var o=-1,i=r.length;for(;++o<i;){var s=r[o],l=n?n(t[s],e[s],s,t,e):void 0;void 0===l&&(l=e[s]),a?ne(t,s,l):re(t,s,l)}return t}(e,_e(e))}(l):Fe(l)&&!Se(l)||(d=function(e){return"function"!=typeof e.constructor||pe(e)?{}:G(I(e))}(c))):f=!1}var h;f&&(i.set(c,d),a(d,c,n,o,i),i.delete(c));ee(e,t,d)}(e,r,i,t,ue,n,a);else{var l=n?n(he(e,i),o,i+"",e,r,a):void 0;void 0===l&&(l=o),ee(e,i,l)}}),_e)}function de(e,r){return me(function(e,r,t){return r=$(void 0===r?e.length-1:r,0),function(){for(var n=arguments,a=-1,o=$(n.length-r,0),i=Array(o);++a<o;)i[a]=n[r+a];a=-1;for(var s=Array(r+1);++a<r;)s[a]=n[a];return s[r]=t(i),x(e,this,s)}}(e,r,ze),e+"")}function fe(e,r){var t=e.__data__;return function(e){var r=typeof e;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e}(r)?t["string"==typeof r?"string":"hash"]:t.map}function be(e,r){var t=function(e,r){return null==e?void 0:e[r]}(e,r);return le(t)?t:void 0}function ge(e,r){var t=typeof e;return!!(r=null==r?a:r)&&("number"==t||"symbol"!=t&&c.test(e))&&e>-1&&e%1==0&&e<r}function pe(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||F)}function he(e,r){if(("constructor"!==r||"function"!==typeof e[r])&&"__proto__"!=r)return e[r]}var me=function(e){var r=0,t=0;return function(){var n=Z(),a=16-(n-t);if(t=n,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(H?function(e,r){return H(e,"toString",{configurable:!0,enumerable:!1,value:(t=r,function(){return t}),writable:!0});var t}:ze);function ye(e,r){return e===r||e!==e&&r!==r}var ve=se(function(){return arguments}())?se:function(e){return Ae(e)&&_.call(e,"callee")&&!W.call(e,"callee")},xe=Array.isArray;function ke(e){return null!=e&&Ce(e.length)&&!Se(e)}var we=L||function(){return!1};function Se(e){if(!Fe(e))return!1;var r=ie(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Fe(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function Ae(e){return null!=e&&"object"==typeof e}var Ee=v?function(e){return function(r){return e(r)}}(v):function(e){return Ae(e)&&Ce(e.length)&&!!u[ie(e)]};function _e(e){return ke(e)?Q(e,!0):ce(e)}var Be,De=(Be=function(e,r,t,n){ue(e,r,t,n)},de((function(e,r){var t=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=Be.length>3&&"function"==typeof a?(n--,a):void 0,o&&function(e,r,t){if(!Fe(t))return!1;var n=typeof r;return!!("number"==n?ke(t)&&ge(r,t.length):"string"==n&&r in t)&&ye(t[r],e)}(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++t<n;){var i=r[t];i&&Be(e,i,t,a)}return e})));function ze(e){return e}e.exports=De},67690:function(e,r,t){"use strict";t.d(r,{n:function(){return n}});var n={1337:{base0:"#171F24",base1:"#1C1C1C",base2:"#121212",base3:"#3D3D3D",base4:"#4b474c",base5:"#515151",base6:"#6D6D6D",base7:"#777778",base8:"#f4f4f4",bg:"#191919","bg-alt":"#252526",blue:"#8CDAFF","dark-blue":"#6699CC",fg:"#d4d4d4","fg-alt":"#AEAFAD",green:"#468800",grey:"#777778","light-green":"#B5CEA8","light-yellow":"#FBE3BF",magenta:"#C586C0",orange:"#FC9354",red:"#FF5E5E",teal:"#35CDAF",white:"#FFFFFF",yellow:"#E9FDAC"},Iosevkem:{base0:"#1b1d1e",base1:"#202020",base2:"#303030",base3:"#303030",base4:"#505050",base5:"#505050",base6:"#808080",base7:"#808080",base8:"#DFDFDF",bg:"#1b1d1e","bg-alt":"#262829",blue:"#6c9ef8",cyan:"#00aa80","dark-blue":"#6688aa","dark-cyan":"#5699AF",fg:"#dddddd","fg-alt":"#5B6268",green:"#60aa00",grey:"#505050",magenta:"#b77fdb",orange:"#da8548",red:"#d02b61",teal:"#4db5bd",violet:"#a9a1e1",yellow:"#d08928"},"acario-dark":{base0:"#0F1019",base1:"#121212",base2:"#1E1E33",base3:"#464A56",base4:"#585C6C",base5:"#767676",base6:"#959EA5",base7:"#B2B2B2",base8:"#D0D0D0",bg:"#0D0E16","bg-alt":"#040408","bg-blue":"#0C213E",blue:"#3679D8",cyan:"#36D8BD","dark-blue":"#0C213E",fg:"#CEDBE5","fg-alt":"#E5F4FF",green:"#79D836",grey:"#767676",magenta:"#8041D8",orange:"#D85F00",red:"#D83441",teal:"#2D9574",violet:"#AB11D8",yellow:"#D8B941"},"ayu-mirage":{bg:"#1f2430","bg-alt":"#171b24",base0:"#3d434d",base1:"#707a8c",base2:"#2f3b54",base3:"#f5f7fd",base4:"#f5f7fd",base5:"#1c1e23",base6:"#484f5b",base7:"#14171f",base8:"#11131a",fg:"#cbccc6","fg-alt":"#707a8c",grey:"#171b24",red:"#f28779",orange:"#ffa759",green:"#bae67e",teal:"#95e6cb",yellow:"#ffd580",blue:"#73d0ff","dark-blue":"#5ca6cc",magenta:"#d4bfff",violet:"#dccbff",cyan:"#5ccfe6"},"ayu-light":{"common-accent":"#ff9940","common-bg":"#fafafa","common-fg":"#575f66","common-ui":"#ba9199","syntax-comment":"#abb0b6","syntax-constant":"#a37acc","syntax-entity":"#399ee6","syntax-error":"#f51818","syntax-func":"#f2ae49","syntax-keyword":"#fa8d3e","syntax-markup":"#f07171","syntax-operator":"#ed9366","syntax-regexp":"#4cbf99","syntax-special":"#e6ba7e","syntax-string":"#86b300","syntax-tag":"#55b4d4",test:"#2ea8e6","ui-gutter-active":"#ba9199","ui-gutter-normal":"#d9c2c6","ui-line":"#e8e8e8","ui-panel-border":"#fcfcfc","ui-panel-shadow":"#fbfbfb","ui-selection-bg":"#bce1f3","ui-selection-border":"#f0f8fd","ui-selection-inactive":"#f0f8fd"},badger:{bg:"#171717","bg-alt":"#2f2f2f",base0:"#1D1D1D",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#433F4f",base5:"#635770",base6:"#656868",base7:"#9ca0a4",base8:"#DFDFDF",fg:"#F6F3E8","fg-alt":"#FBF9F3",grey:"#433F4f",red:"#E2434C",orange:"#EA9847",green:"#86B187",teal:"#65A399",yellow:"#E0D063",blue:"#8AC6F2","dark-blue":"#2257A0",magenta:"#E18Cbb",violet:"#BF93C3"},"challenger-deep":{base0:"#100E23",base1:"#292F37",base2:"#3D4551",base3:"#4C4B68",base4:"#565575",base5:"#858FA5",base6:"#9BA7BF",base7:"#B0BED8",base8:"#BAC9E4",bg:"#1E1C31","bg-alt":"#12111E",blue:"#91DDFF",cyan:"#AAFFE4","dark-blue":"#65B2FF","dark-cyan":"#62D196",fg:"#CBE3E7","fg-alt":"#B2B2B2",green:"#95FFA4",grey:"#565575",magenta:"#C991E1",orange:"#FFB378",red:"#FF8080",teal:"#63F2F1",violet:"#906CFF",yellow:"#FFE9AA"},"city-lights":{bg:"#1D252C","bg-alt":"#181E24",base0:"#10151C",base1:"#171D22",base2:"#20282F",base3:"#28323B",base4:"#384551",base5:"#56697A",base6:"#688094",base7:"#7FA0B7",base8:"#9CAABB","fg-alt":"#728CA0",fg:"#A0B3C5",grey:"#41505E",red:"#D95468",orange:"#D98E48",green:"#8BD49C",teal:"#33CED8",yellow:"#EBBF83",blue:"#5EC4FF","bright-blue":"#539AFC","dark-blue":"#718CA1"},"dark+":{bg:"#1e1e1e","bg-alt":"#252526",base0:"#171F24",base1:"#1C1C1C",base2:"#121212",base3:"#313131",base4:"#4b474c",base5:"#37474F",base6:"#237AD3",base7:"#777778",base8:"#f4f4f4",fg:"#d4d4d4","fg-alt":"#AEAFAD",grey:"#777778",red:"#D16969",orange:"#DB8E73",green:"#579C4C","light-green":"#B5CEA8",teal:"#35CDAF",yellow:"#D7BA7D","light-yellow":"#D9DAA2",blue:"#339CDB","dark-blue":"#124F7B",magenta:"#C586C0",violet:"#BB80B3","dark-violet":"#68217A",cyan:"#85DDFF","dark-cyan":"#207FA1"},dracula:{base0:"#1E2029",base1:"#282a36",base2:"#373844",base3:"#44475a",base4:"#565761",base5:"#6272a4",base6:"#b6b6b2",base7:"#ccccc7",base8:"#f8f8f2",bg:"#282a36","bg-alt":"#1E2029",blue:"#61bfff",cyan:"#8be9fd","dark-blue":"#0189cc","dark-cyan":"#8be9fd",fg:"#f8f8f2","fg-alt":"#e2e2dc",green:"#50fa7b",grey:"#565761",magenta:"#ff79c6",orange:"#ffb86c",red:"#ff5555",teal:"#0189cc",violet:"#bd93f9",yellow:"#f1fa8c"},ephemeral:{base0:"#181e26",base1:"#1e262d",base2:"#242d39",base3:"#2a3542",base4:"#323f4e",base5:"#364455",base6:"#505d6f",base7:"#77818f",base8:"#ebedef",bg:"#323f4e","bg-alt":"#28323e",blue:"#92b6f4",cyan:"#79e6f3","dark-blue":"#9f92f4","dark-violet":"#985EFF",fg:"#f8f8f2","fg-alt":"#fdfdfd",green:"#53e2ae",grey:"#3d4c5f",magenta:"#BD99FF",orange:"#f2a272",red:"#f48fb1",teal:"#a1efd3",violet:"#8897f4",yellow:"#f1fa8c"},"fairy-floss":{base0:"#464258",base1:"#514C66",base2:"#6A6483",base3:"#9673D3",base4:"#A0A0C0",base5:"#B8A2CE",base6:"#726C8A",base7:"#5B576C",base8:"#716799",bg:"#5a5475","bg-alt":"#343145",blue:"#55b3cc",cyan:"#96CBFE","dark-blue":"#167be2","dark-cyan":"#204052",fg:"#F8F8F0","fg-alt":"#B5B2Bd",green:"#C2FFDF",grey:"#656565",magenta:"#FFB8D1",orange:"#E6C000",red:"#CC6666",teal:"#8295D6",violet:"#C5A3FF",yellow:"#FFEA00"},flatwhite:{bg:"#f7f3ee","bg-alt":"#f1ece4",base0:"#f1ece4",base1:"#e4ddd2",base2:"#dcd3c6",base3:"#b9a992",base4:"#93836c",base5:"#605a52",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",fg:"#605a52","fg-alt":"#93836c",grey:"#b9a992",red:"#955f5f",orange:"#957f5f",green:"#81895d",teal:"#5f8c7d",yellow:"#957f5f",blue:"#7382a0","dark-blue":"#7382a0",magenta:"#9c739c",violet:"#9c739c",cyan:"#5f8c7d","dark-cyan":"#5f8c7d"},"gruvbox-light":{base0:"#f0f0f0",base1:"#ebdbb2",base2:"#d5c4a1",base3:"#bdae93",base4:"#a89984",base5:"#504945",base6:"#3c3836",base7:"#282828",base8:"#1d2021",bg:"#fbf1c7","bg-alt":"#f2e5bc",blue:"#076678",cyan:"#427b58","dark-blue":"#2b3c44","dark-cyan":"#36473a",fg:"#282828","fg-alt":"#1c1c1c",green:"#79740e",grey:"#928374",magenta:"#b16286",orange:"#af3a03",red:"#9d0006",teal:"#4db5bd",violet:"#8f3f71",yellow:"#b57614"},gruvbox:{base0:"#0d1011",base1:"#1d2021",base2:"#282828",base3:"#3c3836",base4:"#665c54",base5:"#7c6f64",base6:"#928374",base7:"#d5c4a1",base8:"#fbf1c7",bg:"#282828","bg-alt":"#1d2021","bg-alt2":"#504945",blue:"#83a598","dark-green":"#98971a","dark-yellow":"#d79921",fg:"#ebdbb2","fg-alt":"#d5c4a1",green:"#b8bb26",grey:"#928374",magenta:"#cc241d",orange:"#fe8019",red:"#fb4934",teal:"#8ec07c",violet:"#d3869b",yellow:"#fabd2f"},henna:{base0:"#10151a",base1:"#181A1F",base2:"#1B1F23",base3:"#262D35",base4:"#282C34",base5:"#2c313a",base6:"#3B4048",base7:"#495162",base8:"#606F73",bg:"#21272e","bg-alt":"#1B1F23",blue:"#56b5c2",cyan:"#56b6c2","dark-blue":"#2257A0","dark-cyan":"#2e4a54",fg:"#f8f8f0","fg-alt":"#6B717D",green:"#53df83",grey:"#737c8c",magenta:"#FFB8D1",orange:"#e74c3c",red:"#e74c3c",teal:"#1abc9c",violet:"#C5A3FF",yellow:"#ECBE7B"},"homage-black":{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#000000","bg-alt":"#000000",blue:"#0170bf",cyan:"#46D9FF","dark-blue":"#003c64","dark-cyan":"#5699AF",fg:"#bbc2cf","fg-alt":"#5B6268",green:"#98be65",grey:"#5B6268",magenta:"#c678dd",orange:"#b4916d",red:"#ff6c6b",teal:"#4db5bd",violet:"#a9a1e1",yellow:"#ECBE7B"},"homage-white":{base0:"#f0f0f0",base1:"#e7e7e7",base2:"#dfdfdf",base3:"#c6c7c7",base4:"#9ca0a4",base5:"#383a42",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",bg:"#fafafa","bg-alt":"#f0f0f0",blue:"#014980",cyan:"#0184bc","dark-blue":"#030f64",fg:"#383a42","fg-alt":"#c6c7c7",green:"#556b2f",grey:"#383a42",magenta:"#a626a4",orange:"#8a3b3c",red:"#e45649",teal:"#4db5bd",violet:"#b751b6",yellow:"#986801","yellow-alt":"#fafadd"},horizon:{base0:"#16161c",base1:"#1a1c23",base2:"#1d1f27",base3:"#232530",base4:"#6a6a6a",base5:"#f9cec3",base6:"#f9cbbe",base7:"#fadad1",base8:"#fdf0ed",bg:"#232530","bg-alt":"#1c1e26",blue:"#21bfc2",cyan:"#59e3e3","dark-blue":"#25b2bc","dark-cyan":"#27d797",fg:"#c7c9cb","fg-alt":"#fdf0ed",green:"#09f7a0",grey:"#6a6a6a",magenta:"#6c6f93",orange:"#f09383",red:"#e95678",teal:"#87ceeb",violet:"#b877db",yellow:"#fab795"},"ir-black":{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#000000","bg-alt":"#121212",blue:"#96CBFE","dark-blue":"#2257A0",fg:"#f6f3e8","fg-alt":"#5B6268",green:"#A8FF60","green-alt":"#99CC99",grey:"#3f444a",magenta:"#FF73FD",orange:"#E9C062","orange-alt":"#FFD2A7",red:"#ff6c60",teal:"#00A0A0",white:"#ffffff",yellow:"#FFFFB6"},laserwave:{base0:"#222228",base1:"#24262D",base2:"#282b33",base3:"#3E3549",base4:"#4E415C",base5:"#544863",base6:"#ED60BA",base7:"#91889B",base8:"#ECEFF4",bg:"#27212E","bg-alt":"#1B1720",blue:"#40B4C4",cyan:"#B4DCE7","dark-blue":"#336A79","dark-cyan":"#6D7E8A",fg:"#FFFFFF","fg-alt":"#EEEEEE",green:"#74DFC4",grey:"#4E415C",magenta:"#EB64B9",orange:"#FFB85B",red:"#964C7B",teal:"#4D8079",violet:"#B381C5",yellow:"#FFE261"},manegarm:{"-bg":"#1c1408","-bg-alt":"#181107",base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#95836f",base6:"#73797e",base7:"#9ca0a4",base8:"#dfdfdf",bg:"#1c1408","bg-alt":"#181107",blue:"#0075c4","dark-blue":"#0060a1",fg:"#5b8512","fg-alt":"#4f7410",green:"#7cb518",grey:"#707a6a",magenta:"#d72638",orange:"#ff7000",red:"#ff4e00",teal:"#dbc077",violet:"#76597b",yellow:"#ffbf00"},material:{base0:"#171F24",base1:"#1C262B",base2:"#222D32",base3:"#171F24",base4:"#314048",base5:"#37474F",base6:"#556369",base7:"#737E84",base8:"#9BA3A7",bg:"#263238","bg-alt":"#1C262B",blue:"#82aaff",cyan:"#89DDFF","dark-blue":"#7986E7","dark-cyan":"#80cbc4",fg:"#EEFFFF","fg-alt":"#BFC7D5",green:"#c3e88d",grey:"#37474F",magenta:"#c792ea",orange:"#f78c6c",red:"#ff5370",teal:"#44b9b1",violet:"#bb80b3",yellow:"#ffcb6b"},miramare:{base0:"#0d1011",base1:"#1d2021",base2:"#282828",base3:"#3c3836",base4:"#5b5b5b",base5:"#7c6f64",base6:"#928374",base7:"#d5c4a1",base8:"#fbf1c7",bg:"#2a2426","bg-alt":"#242021","bg-alt2":"#504945",blue:"#89beba","dark-blue":"#458588","dark-green":"#678f67",fg:"#e6d6ac","fg-alt":"#d8caac",green:"#87af87",grey:"#5b5b5b",magenta:"#e68183",orange:"#e39b7b",red:"#e68183",teal:"#87af87",violet:"#d3a0bc",yellow:"#d9bb80"},molokai:{base0:"#131313",base1:"#161821",base2:"#2e313d",base3:"#3a3d4b",base4:"#535763",base5:"#595d68",base6:"#696d77",base7:"#888d94",base8:"#afb5b9",bg:"#282a3a","bg-alt":"#1E1F2B",blue:"#9cd1bb",cyan:"#9cd1bb","dark-blue":"#9cd1bb","dark-cyan":"#9cd1bb",fg:"#eaf2f1","fg-alt":"#c6c6c6",green:"#bad761",grey:"#535763",magenta:"#9cd1bb",orange:"#ff95be",red:"#ff657a",teal:"#9cd1bb",violet:"#c39ac9",yellow:"#ffd76d"},"monokai-classic":{base0:"#19181A",base1:"#1B1B1B",base2:"#212122",base3:"#2B2B2B",base4:"#383539",base5:"#4C4A4D",base6:"#727072",base7:"#c1c0c0",base8:"#FCFCFA",bg:"#2D2A2E","bg-alt":"#221F22",blue:"#78DCE8",cyan:"#78DCE8","dark-blue":"#81A2BE","dark-cyan":"#81A2BE",fg:"#FCFCFA","fg-alt":"#939293",green:"#A9DC76",grey:"#727072",magenta:"#FF6188",orange:"#FC9867",red:"#CC6666",teal:"#A9DC76",violet:"#AB9DF2",yellow:"#FFD866"},"monokai-pro":{base0:"#131313",base1:"#191515",base2:"#332c2c",base3:"#403838",base4:"#5b5353",base5:"#615959",base6:"#72696a",base7:"#948a8b",base8:"#bfb3b5",bg:"#2c2525","bg-alt":"#201C1C",blue:"#85dacc",cyan:"#85dacc","dark-blue":"#85dacc","dark-cyan":"#85dacc",fg:"#fff1f3","fg-alt":"#c6c6c6",green:"#adda78",grey:"#5b5353",magenta:"#85dacc",orange:"#f38d70",red:"#fd6883",teal:"#85dacc",violet:"#a8a9eb",yellow:"#f9cc6c"},"monokai-machine":{base0:"#161a2a",base1:"#191a2a",base2:"#1e2030",base3:"#222436",base4:"#2f334d",base5:"#444a73",base6:"#828bb8",base7:"#a9b8e8",base8:"#b4c2f0",bg:"#212337","bg-alt":"#191a2a","dark-red":"#ff5370","dark-teal":"#4fd6be",fg:"#c8d3f5","fg-alt":"#b4c2f0",green:"#c3e88d",grey:"#444a73",indigo:"#7a88cf","light-red":"#ff98a4","light-teal":"#7af8ca",orange:"#ff995e",red:"#ff757f",region:"#383e5c",teal:"#77e0c6",yellow:"#ffc777"},"monokai-octagon":{base0:"#131313",base1:"#191919",base2:"#2c2c2d",base3:"#363537",base4:"#525053",base5:"#585659",base6:"#69676c",base7:"#8b888f",base8:"#b6b2bc",bg:"#222222","bg-alt":"#191919",blue:"#5ad4e6",cyan:"#5ad4e6","dark-blue":"#5ad4e6","dark-cyan":"#5ad4e6",fg:"#f7f1ff","fg-alt":"#c6c6c6",green:"#7bd88f",grey:"#525053",magenta:"#5ad4e6",orange:"#fd9353",red:"#fc618d",teal:"#5ad4e6",violet:"#948ae3",yellow:"#fce566"},"monokai-ristretto":{base0:"#161a2a",base1:"#191a2a",base2:"#1e2030",base3:"#222436",base4:"#2f334d",base5:"#444a73",base6:"#828bb8",base7:"#a9b8e8",base8:"#b4c2f0",bg:"#212337","bg-alt":"#191a2a","dark-red":"#ff5370","dark-teal":"#4fd6be",fg:"#c8d3f5","fg-alt":"#b4c2f0",green:"#c3e88d",grey:"#444a73",indigo:"#7a88cf","light-red":"#ff98a4","light-teal":"#7af8ca",orange:"#ff995e",red:"#ff757f",region:"#383e5c",teal:"#77e0c6",yellow:"#ffc777"},"monokai-spectrum":{base0:"#F0F4FC",base1:"#E3EAF5",base2:"#D8DEE9",base3:"#C2D0E7",base4:"#B8C5DB",base5:"#AEBACF",base6:"#A1ACC0",base7:"#60728C",base8:"#485163",bg:"#E5E9F0","bg-alt":"#D8DEE9",blue:"#3B6EA8",cyan:"#398EAC","dark-blue":"#5272AF","dark-cyan":"#2C7088",fg:"#3B4252","fg-alt":"#2E3440",green:"#4F894C",grey:"#B8C5DB",magenta:"#97365B",orange:"#AC4426",red:"#99324B",teal:"#29838D",violet:"#842879",yellow:"#9A7500"},moonlight:{base0:"#191C25",base1:"#242832",base2:"#2C333F",base3:"#373E4C",base4:"#434C5E",base5:"#4C566A",base6:"#9099AB",base7:"#D8DEE9",base8:"#F0F4FC",bg:"#2E3440","bg-alt":"#272C36",blue:"#81A1C1",cyan:"#88C0D0","dark-blue":"#5E81AC","dark-cyan":"#507681",fg:"#ECEFF4","fg-alt":"#E5E9F0",green:"#A3BE8C",grey:"#434C5E",magenta:"#B48EAD",orange:"#D08770",red:"#BF616A",teal:"#8FBCBB",violet:"#5D80AE",yellow:"#EBCB8B"},"nord-light":{base0:"#0d0f11",base1:"#1e272c",base2:"#212122",base3:"#2f3f48",base4:"#3c4c55",base5:"#556873",base6:"#6A7D89",base7:"#899BA6",base8:"#e6eef3",bg:"#3c4c55","bg-alt":"#44545d",blue:"#83AFE5",cyan:"#7FC1CA","dark-blue":"#759DCE","dark-cyan":"#659AA1",fg:"#c5d4dd","fg-alt":"#c5c8c6",green:"#A8CE93",grey:"#899BA6",magenta:"#D18EC2",orange:"#F2C38F",red:"#DF8C8C",teal:"#95BEBC",violet:"#9A93E1",yellow:"#DADA93"},nord:{base0:"#1B2B34",base1:"#343D46",base2:"#4F5B66",base3:"#65737E",base4:"#A7ADBA",base5:"#C0C5CE",base6:"#CDD3DE",base7:"#D8DEE9",base8:"#D8DEE9",bg:"#1B2B34","bg-alt":"#14232D",blue:"#6699CC",cyan:"#5FB3B3","dark-blue":"#6699CC","dark-cyan":"#5FB3B3",fg:"#D8DEE9","fg-alt":"#CDD3DE",green:"#99C794",grey:"#A7ADBA",magenta:"#E27E8D",orange:"#F99157",red:"#EC5f67",teal:"#5FB3B3",violet:"#C594C5",yellow:"#FAC863"},nova:{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#686b78",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#1c1d20","bg-alt":"#151619",blue:"#4fb3d8",cyan:"#4fb3d8","dark-blue":"#5689f0","dark-cyan":"#4fb3d8",fg:"#cbccd1","fg-alt":"#5B6268",green:"#78bd65",grey:"#3f444a",magenta:"#b978ab",orange:"#ee7b29",red:"#ea3d54",teal:"#78bd65",violet:"#b978ab",yellow:"#fedd38"},"oceanic-next":{base0:"#f0f0f0",base1:"#e7e7e7",base2:"#dfdfdf",base3:"#c6c7c7",base4:"#9ca0a4",base5:"#383a42",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",bg:"#fafafa","bg-alt":"#f0f0f0",blue:"#4078f2",cyan:"#0184bc","dark-blue":"#a0bcf8","dark-cyan":"#005478",fg:"#383a42","fg-alt":"#c6c7c7",green:"#50a14f",grey:"#9ca0a4",magenta:"#a626a4",orange:"#da8548",red:"#e45649",teal:"#4db5bd",violet:"#b751b6",yellow:"#986801"},"old-hope":{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#282c34","bg-alt":"#21242b",blue:"#51afef",cyan:"#46D9FF","dark-blue":"#2257A0","dark-cyan":"#5699AF",fg:"#bbc2cf","fg-alt":"#5B6268",green:"#98be65",grey:"#3f444a",magenta:"#c678dd",orange:"#da8548",red:"#ff6c6b",teal:"#4db5bd",violet:"#a9a1e1",yellow:"#ECBE7B"},one:{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#2F3237",base4:"#4f5b66",base5:"#65737E",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#2b303b","bg-alt":"#232830",blue:"#8FA1B3",cyan:"#46D9FF","dark-blue":"#2257A0","dark-cyan":"#5699AF",fg:"#c0c5ce","fg-alt":"#c0c5ce",green:"#A3BE8C",grey:"#4f5b66",magenta:"#c678dd",orange:"#D08770",red:"#BF616A",teal:"#4db5bd",violet:"#b48ead",yellow:"#ECBE7B"},"one-light":{base0:"#f0f0f0",base1:"#e7e7e7",base2:"#dfdfdf",base3:"#c6c7c7",base4:"#9ca0a4",base5:"#383a42",base6:"#202328",base7:"#1c1f24",base8:"#1b2229",bg:"#fafafa","bg-alt":"#f0f0f0",blue:"#014980",cyan:"#0184bc","dark-blue":"#030f64",fg:"#383a42","fg-alt":"#c6c7c7",green:"#556b2f",grey:"#383a42",magenta:"#a626a4",orange:"#8a3b3c",red:"#e45649",teal:"#4db5bd",violet:"#b751b6",yellow:"#986801","yellow-alt":"#fafadd"},"one-vibrant":{base0:"#1c1f24",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"},"opera-light":{base0:"#fafafa",base1:"#f5f5f5",base2:"#eeeeee",base3:"#e0e0e0",base4:"#bdbdbd",base5:"#9e9e9e",base6:"#757575",base7:"#616161",base8:"#424242",bg:"#fafafa","bg-alt":"#eeeeee",blue:"#3b6ea8",cyan:"#398eac","dark-blue":"#5272AF","dark-cyan":"#2c7088",fg:"#2a2a2a","fg-alt":"#454545",green:"#4f894c",grey:"#bdbdbd",magenta:"#97365b",orange:"#ac4426",red:"#99324b",teal:"#29838d",violet:"#842879",yellow:"#9a7500"},opera:{base0:"#000000",base1:"#1e1e1e",base2:"#2e2e2e",base3:"#262626",base4:"#3f3f3f",base5:"#525252",base6:"#6b6b6b",base7:"#979797",base8:"#dfdfdf",bg:"#323334","bg-alt":"#222224",blue:"#80A0C2",cyan:"#86C0D1","dark-blue":"#5C748E","dark-cyan":"#507681",fg:"#eceff4","fg-alt":"#727269",green:"#A2BF8A",grey:"#3f3f3f",magenta:"#B58DAE",orange:"#D2876D",red:"#C16069",teal:"#8EBCBB",violet:"#5D80AE",yellow:"#ECCC87"},"outrun-electric":{base0:"#131033",base1:"#1f1147",base2:"#110d26",base3:"#3b4167",base4:"#2d2844",base5:"#BA45A3",base6:"#6A6EA3",base7:"#6564D1",base8:"#919ad9",bg:"#0c0a20","bg-alt":"#090819",blue:"#1ea8fc",cyan:"#42c6ff","dark-blue":"#3F88AD","dark-cyan":"#204052",fg:"#f2f3f7","fg-alt":"#7984D1",green:"#a7da1e",grey:"#546A90",magenta:"#ff2afc",orange:"#cf433e",red:"#e61f44",teal:"#A875FF",violet:"#df85ff",yellow:"#ffd400"},palenight:{base0:"#1c1f2b",base1:"#1e212e",base2:"#232635",base3:"#3C435E",base4:"#4E5579",base5:"#676E95",base6:"#697098",base7:"#717CB4",base8:"#A6Accd",bg:"#292D3E","bg-alt":"#242837",blue:"#82aaff",cyan:"#89DDFF","dark-blue":"#7986E7","dark-cyan":"#80cbc4",fg:"#EEFFFF","fg-alt":"#BFC7D5",green:"#c3e88d",grey:"#676E95",magenta:"#c792ea",orange:"#f78c6c",red:"#ff5370",teal:"#44b9b1",violet:"#bb80b3",yellow:"#ffcb6b"},peacock:{bg:"#2b2a27","bg-alt":"#1F1E1D",base0:"#2b2a27",base1:"#1c1f24",base2:"#202328",base3:"#23272e",base4:"#3f444a",base5:"#5B6268",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",fg:"#ede0ce","fg-alt":"#5B6268",grey:"#3f444a",white:"#f8f8f0",red:"#ff5d38",orange:"#cb4b16",green:"#98be65",teal:"#26a6a6",yellow:"#bcd42a",blue:"#51afef","dark-blue":"#2257A0",magenta:"#c678dd",violet:"#a9a1e1",cyan:"#46D9FF","dark-cyan":"#5699AF"},"plain-dark":{base0:"#838083",base1:"#0e0c0a",base2:"#bbbbbb",base3:"#444444",base4:"#202020",base5:"#545053",base6:"#050505",base7:"#ffdddd",base8:"#050505",bg:"#222222","bg-alt":"#434343",blue:"#d7d5d1",cyan:"#d7d5d1","dark-blue":"#d7d5d1","dark-cyan":"#d7d5d1",fg:"#d7d5d1","fg-alt":"#e7e5e3",green:"#d7d5d1",grey:"#d7d5d1",magenta:"#d7d5d1",orange:"#d7d5d1",red:"#d7d5d1",teal:"#d7d5d1",violet:"#d7d5d1",yellow:"#d7d5d1"},plain:{base0:"#969896",base1:"#f1f3f5",base2:"#444444",base3:"#cccccc",base4:"#e7e7e7",base5:"#c5c8c6",base6:"#fafafa",base7:"#dfdfdf",base8:"#fafafa",bg:"#ffffff","bg-alt":"#f3f3f3",blue:"#282a2e",cyan:"#282a2e","dark-blue":"#282a2e","dark-cyan":"#282a2e",fg:"#282a2e","fg-alt":"#48494d",green:"#282a2e",grey:"#282a2e",magenta:"#282a2e",orange:"#282a2e",red:"#282a2e",teal:"#282a2e",violet:"#282a2e",yellow:"#282a2e"},rouge:{base0:"#070A0E",base1:"#0E131D",base2:"#151D2B",base3:"#1F2A3F",base4:"#5D636E",base5:"#64727d",base6:"#B16E75",base7:"#E8E9EB",base8:"#F0F4FC",bg:"#172030","bg-alt":"#172030",blue:"#6e94b9","dark-blue":"#1E6378",fg:"#FAFFF6","fg-alt":"#A7ACB9",green:"#A3B09A",grey:"#64727d","light-red":"#DB6E8F",magenta:"#b18bb1",orange:"#eabe9a",red:"#c6797e",salmon:"#F9B5AC",teal:"#7ea9a9",violet:"#5D80AE",yellow:"#F7E3AF"},"shades-of-purple":{base0:"#161a2a",base1:"#191a2a",base2:"#1e2030",base3:"#222436",base4:"#a599e9",base5:"#444a73",base6:"#828bb8",base7:"#a9b8e8",base8:"#b4c2f0",bg:"#2d2b55","bg-alt":"#1e1e3f","dark-green":"#00ff00","dark-red":"#ff5370","dark-teal":"#37fea1",fg:"#e3e9fa","fg-alt":"#b4c2f0",green:"#3ad900",grey:"#444a73",indigo:"#7a88cf","light-green":"#a5ff90","light-red":"#ff98a4",orange:"#ff9d00",red:"#ff000d",region:"#b362ff",selection:"#b362ff"},snazzy:{base0:"#282a36",base1:"#34353e",base2:"#43454f",base3:"#78787e",base4:"#a5a5a9",base5:"#e2e4e5",base6:"#eff0eb",base7:"#f1f1f0",base8:"#ff5c57",bg:"#282a36","bg-alt":"#242631",blue:"#57c7ff",cyan:"#9aedfe","dark-blue":"#459fcc",fg:"#f9f9f9","fg-alt":"#d1d1d1",green:"#5af78e",grey:"#848688",magenta:"#ff6ac1",red:"#ff5c57",ui0:"#848688",ui1:"#606580",ui2:"#3a3d4d",ui3:"#1c1e27",yellow:"#f3f99d"},"solarized-dark-high-contrast":{base0:"#01323d",base1:"#03282F",base2:"#00212C",base3:"#13383C",base4:"#56697A",base5:"#62787f",base6:"#96A7A9",base7:"#788484",base8:"#626C6C",bg:"#002732","bg-alt":"#00212B",blue:"#3c98e0",cyan:"#3cafa5","dark-blue":"#3F88AD","dark-cyan":"#03373f",fg:"#8d9fa1","fg-alt":"#60767e",green:"#93a61a",grey:"#56697A",magenta:"#e2468f",orange:"#db5823",red:"#ec423a",teal:"#35a69c",violet:"#7a7ed2",yellow:"#c49619"},"solarized-dark":{base0:"#073642",base1:"#03282F",base2:"#00212C",base3:"#13383C",base4:"#56697A",base5:"#405A61",base6:"#96A7A9",base7:"#788484",base8:"#626C6C",bg:"#002b36","bg-alt":"#00212B",blue:"#268bd2",cyan:"#2aa198","dark-blue":"#3F88AD","dark-cyan":"#204052",fg:"#839496","fg-alt":"#657b83",green:"#859900",grey:"#56697A",magenta:"#d33682",orange:"#cb4b16",red:"#dc322f",teal:"#35a69c",violet:"#6c71c4",yellow:"#b58900"},"solarized-light":{"dark-cyan":"#204052",cyan:"#2aa198",violet:"#6c71c4",magenta:"#d33682","dark-blue":"#3F88AD",blue:"#268bd2",yellow:"#b58900",teal:"#35a69c",green:"#859900",orange:"#cb4b16",red:"#dc322f",grey:"#E1DBCD",base8:"#626C6C",base7:"#788484",base6:"#96A7A9",base5:"#D6D6D6",base4:"#E1DBCD",base3:"#F2E6CE",base2:"#FCF7E8",base1:"#FCF8ED",base0:"#FFFBF0","fg-alt":"#7B8787","bg-alt":"#EEE8D5",fg:"#556b72",bg:"#FDF6E3"},sourcerer:{base0:"#1d2127",base1:"#1d2127",base2:"#272727",base3:"#32353f",base4:"#494952",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#faf4c6",bg:"#171717","bg-alt":"#222222",blue:"#87AFD7",cyan:"#87ceeb","dark-blue":"#6688aa",fg:"#c2c2b0","fg-alt":"#5D656B",green:"#87875f","green-br":"#719611",grey:"#686858",magenta:"#8787AF",orange:"#ff9800",red:"#aa4450",teal:"#578F8F",violet:"#8181a6",yellow:"#cc8800"},spacegrey:{base0:"#1B2229",base1:"#1c1f24",base2:"#202328",base3:"#2F3237",base4:"#4f5b66",base5:"#65737E",base6:"#73797e",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#2b303b","bg-alt":"#232830",blue:"#8FA1B3",cyan:"#46D9FF","dark-blue":"#2257A0","dark-cyan":"#5699AF",fg:"#c0c5ce","fg-alt":"#c0c5ce",green:"#A3BE8C",grey:"#4f5b66",magenta:"#c678dd",orange:"#D08770",red:"#BF616A",teal:"#4db5bd",violet:"#b48ead",yellow:"#ECBE7B"},"tomorrow-day":{base0:"#f2f2f2",base1:"#e4e4e4",base2:"#dedede",base3:"#d6d4d4",base4:"#C0bfbf",base5:"#a3a1a1",base6:"#8a8787",base7:"#696769",base8:"#000000",bg:"#ffffff","bg-alt":"#f2f2f2",blue:"#4271ae",cyan:"#8abeb7","dark-blue":"#315482","dark-cyan":"#b8d8d3",fg:"#4d4d4c","fg-alt":"#1e1e1e",green:"#718c00",grey:"#8e908c",magenta:"#c678dd",orange:"#f5871f",red:"#c82829",teal:"#3e999f",violet:"#8959a8",yellow:"#eab700"},"tomorrow-night":{base0:"#0d0d0d",base1:"#1b1b1b",base2:"#212122",base3:"#292b2b",base4:"#3f4040",base5:"#5c5e5e",base6:"#757878",base7:"#969896",base8:"#ffffff",bg:"#1d1f21","bg-alt":"#161719",blue:"#81a2be",cyan:"#8abeb7","dark-blue":"#41728e","dark-cyan":"#52726d",fg:"#c5c8c6","fg-alt":"#767876",green:"#b5bd68",grey:"#5a5b5a",magenta:"#c9b4cf",orange:"#de935f",red:"#cc6666",teal:"#81a2be",violet:"#b294bb",yellow:"#f0c674"},wilmersdorf:{bg:"#282b33","bg-alt":"#1f2024",base0:"#222228",base1:"#282b33",base2:"#34373e",base3:"#41454b",base4:"#515462",base5:"#888395",base6:"#929292",base7:"#727269",base8:"#eceff4","fg-alt":"#c9d9ff",fg:"#c6c6c6",grey:"#515462",red:"#e1c1ee",orange:"#a6c1e0",green:"#5b94ab",teal:"#7ebebd",yellow:"#cfcf9c"},xcode:{base0:"#0d0d0d",base1:"#1b1b1b",base2:"#212122",base3:"#292b2b",base4:"#3f4040",base5:"#5c5e5e",base6:"#757878",base7:"#969896",base8:"#ffffff",bg:"#292A30","bg-alt":"#252629",blue:"#5DD8FF",cyan:"#8abeb7","dark-cyan":"#52726d",fg:"#FFFFFF","fg-alt":"#999999",green:"#67B7A4",grey:"#6C7986","light-green":"#9EF1DD",magenta:"#D0A8FF",orange:"#FD8F3F",red:"#FC6A5D",teal:"#59B0CF",violet:"#A167E6",yellow:"#D0BF68"},zenburn:{"dark-cyan":"#5699AF",cyan:"#93E0E3",violet:"#a9a1e1",magenta:"#DC8CC3","dark-blue":"#2257A0",blue:"#8CD0D3",yellow:"#F0DFAF",teal:"#4db5bd",green:"#7F9F7F",orange:"#DFAF8F",red:"#CC9393",grey:"#494949","fg-alt":"#989890",fg:"#DCDCDC",base8:"#FFFFEF",base7:"#6F6F6F",base6:"#5F5F5F",base5:"#4F4F4F",base4:"#494949",base3:"#383838",base2:"#303030",base1:"#2B2B2B",base0:"#000000","bg-alt":"#383838",bg:"#3F3F3F"}}},29200:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return T}});var n=t(4942),a=(t(43146),t(84806)),o=t(73808),i=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function s(e){return!!(0,o.Kn)(e)&&i.every((r=>Object.prototype.hasOwnProperty.call(e,r)))}var l=t(80658),c=t(38554),u=t.n(c);function d(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return u()({},...r,f)}function f(e,r,t,n){if(((0,o.mf)(e)||(0,o.mf)(r))&&Object.prototype.hasOwnProperty.call(n,t))return function(){var t=(0,o.mf)(e)?e(...arguments):e,n=(0,o.mf)(r)?r(...arguments):r;return u()({},t,n,f)}}var b=t(70917),g=t(67294),p=()=>g.createElement(b.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 '}),h=t(34288),m=t(29676),y=t(24738),v=t(84461),x={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},k=()=>{},w={window:{document:x,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:k,removeEventListener:k,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:k,removeListener:k}),requestAnimationFrame:e=>"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:()=>0,clearTimeout:k,setInterval:()=>0,clearInterval:k},document:x},S=v.jU?{window:window,document:document}:w,C=(0,g.createContext)(S);function F(e){var{children:r,environment:t}=e,[n,a]=(0,g.useState)(null),o=(0,g.useMemo)((()=>{var e,r=null==n?void 0:n.ownerDocument,a=null==n?void 0:n.ownerDocument.defaultView;return null!=(e=null!=t?t:r?{document:r,window:a}:void 0)?e:S}),[n,t]),i=!n&&!t;return g.createElement(C.Provider,{value:o},r,i&&g.createElement("span",{ref:e=>{e&&a(e)}}))}o.Ts&&(C.displayName="EnvironmentContext"),o.Ts&&(F.displayName="EnvironmentProvider");var A=t(94577),E=e=>{var{children:r,colorModeManager:t,portalZIndex:n,resetCSS:o=!0,theme:i=a.Z,environment:s,cssVarsRoot:l}=e,c=g.createElement(F,{environment:s},r);return g.createElement(A.vc,null,g.createElement(m.f6,{theme:i,cssVarsRoot:l},g.createElement(y.SG,{colorModeManager:t,options:i.config},o&&g.createElement(p,null),g.createElement(m.ZL,null),n?g.createElement(h.h,{zIndex:n},c):c)))},_=t(52596),B=t(29356),D=t(67690),z=t(85893);function R(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?R(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function O(e){var r=e.children,t=(0,g.useContext)(B.N),n=t.highlightColor,i=t.emacsTheme,c=i[1],u=_.Z(c.base1,c.base2)(.2),f="purple.500"===n?"".concat(c.violet,"aa"):"pink.500"===n?"".concat(c.magenta,"aa"):"blue.500"===n?"".concat(c.blue,"aa"):"cyan.500"===n?"".concat(c.cyan,"aa"):"green.500"===n?"".concat(c.green,"aa"):"yellow.500"===n?"".concat(c.yellow,"aa"):"orange.500"===n?"".concat(c.orange,"aa"):"red.500"===n?"".concat(c.red,"aa"):void 0,b=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=[...r],i=r[r.length-1];return s(i)&&n.length>1?n=n.slice(0,n.length-1):i=a.Z,(0,l.zG)(...n.map((e=>r=>(0,o.mf)(e)?e(r):d(r,e))))(i)}((0,g.useMemo)((function(){return{colors:{white:c.bg,black:c.fg,gray:{100:c.base1,200:u,300:c.base2,400:c.base3,500:c.base4,600:c.base5,700:c.base6,800:c.base7,900:c.base8},blue:{500:c.blue},teal:{500:c.blue},yellow:{500:c.yellow},orange:{500:c.orange},red:{500:c.red},green:{500:c.green},purple:{500:c.violet},pink:{500:c.magenta},cyan:{500:c.cyan},alt:{100:c["bg-alt"],900:c["fg-alt"]}},shadows:{outline:"0 0 0 3px "+f},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}},subtle:{color:"gray.800",_hover:{bg:"inherit",color:n},_active:{color:"inherit",bg:f}}}},Accordion:{baseStyle:{container:{marginTop:"10px",borderWidth:"0px",_last:{borderWidth:"0px"}},panel:{marginRight:"10px"}}},Slider:{baseStyle:function(e){return{thumb:{backgroundColor:n},filledTrack:{backgroundColor:"gray.400"},track:{backgroundColor:"gray.400",borderColor:"gray.400",borderWidth:"5px",borderRadius:"lg"}}}}}}}),[n,JSON.stringify(i)]),function(e){var{colorScheme:r,components:t}=e;return e=>{var n=Object.keys(e.components||{});return Array.isArray(t)?n=t:(0,o.Kn)(t)&&(n=Object.keys(t)),d(e,{components:Object.fromEntries(n.map((e=>[e,{defaultProps:{colorScheme:r}}])))})}}({colorScheme:n.split(".")[0]}));return(0,z.jsx)(E,{theme:b,children:r})}var T=function(e){var r=e.Component,t=e.pageProps,n=["one-vibrant",D.n["one-vibrant"]],a=(0,g.useState)(!1),o=a[0],i=a[1],s=(0,g.useState)(n),l=s[0],c=s[1],u=(0,g.useState)("purple.500"),d=u[0],f=u[1];(0,g.useEffect)((function(){o&&localStorage.setItem("colorTheme",JSON.stringify(l))}),[l]),(0,g.useEffect)((function(){o&&localStorage.setItem("highlightColor",JSON.stringify(d))}),[d]),(0,g.useEffect)((function(){var e,r,t,a;c(null!==(e=JSON.parse(null!==(r=localStorage.getItem("colorTheme"))&&void 0!==r?r:JSON.stringify(n)))&&void 0!==e?e:n),f(null!==(t=JSON.parse(null!==(a=localStorage.getItem("highlightColor"))&&void 0!==a?a:JSON.stringify(d)))&&void 0!==t?t:d),i(!0)}),[]);var b={emacsTheme:l,setEmacsTheme:c,highlightColor:d,setHighlightColor:f};return(0,z.jsx)(B.N.Provider,{value:b,children:(0,z.jsx)(O,{children:(0,z.jsx)(r,j({},t))})})}},29356:function(e,r,t){"use strict";t.d(r,{N:function(){return o}});var n=t(67294),a=["vibrant",t(67690).n["one-vibrant"]],o=(0,n.createContext)({emacsTheme:a,setEmacsTheme:null,highlightColor:"purple",setHighlightColor:null})},94798:function(e,r,t){"use strict";function n(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function a(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function o(){}t.d(r,{ZP:function(){return k},B8:function(){return F}});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]+"\\)$"),b=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),h=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),y={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 v(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function k(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=d.exec(e))?(t=r[1].length,r=parseInt(r[1],16),6===t?w(r):3===t?new A(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===t?S(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===t?S(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=f.exec(e))?new A(r[1],r[2],r[3],1):(r=b.exec(e))?new A(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=g.exec(e))?S(r[1],r[2],r[3],r[4]):(r=p.exec(e))?S(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=h.exec(e))?D(r[1],r[2]/100,r[3]/100,1):(r=m.exec(e))?D(r[1],r[2]/100,r[3]/100,r[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function w(e){return new A(e>>16&255,e>>8&255,255&e,1)}function S(e,r,t,n){return n<=0&&(e=r=t=NaN),new A(e,r,t,n)}function C(e){return e instanceof o||(e=k(e)),e?new A((e=e.rgb()).r,e.g,e.b,e.opacity):new A}function F(e,r,t,n){return 1===arguments.length?C(e):new A(e,r,t,null==n?1:n)}function A(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}function E(){return"#"+B(this.r)+B(this.g)+B(this.b)}function _(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function B(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function D(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new R(e,r,t,n)}function z(e){if(e instanceof R)return new R(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=k(e)),!e)return new R;if(e instanceof R)return e;var r=(e=e.rgb()).r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),i=Math.max(r,t,n),s=NaN,l=i-a,c=(i+a)/2;return l?(s=r===i?(t-n)/l+6*(t<n):t===i?(n-r)/l+2:(r-t)/l+4,l/=c<.5?i+a:2-i-a,s*=60):l=c>0&&c<1?0:s,new R(s,l,c,e.opacity)}function R(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}function j(e,r,t){return 255*(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)}n(o,k,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return z(this).formatHsl()},formatRgb:x,toString:x}),n(A,F,a(o,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new A(this.r*e,this.g*e,this.b*e,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:_,toString:_})),n(R,(function(e,r,t,n){return 1===arguments.length?z(e):new R(e,r,t,null==n?1:n)}),a(o,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new R(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new R(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new A(j(e>=240?e-240:e+120,a,n),j(e,a,n),j(e<120?e+240:e-120,a,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 e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},57631:function(e,r){"use strict";r.Z=function(e){return function(){return e}}},13311:function(e,r,t){"use strict";function n(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}t.d(r,{Z:function(){return n}})},20439:function(e,r,t){"use strict";t.d(r,{ZP:function(){return c}});var n=t(94798);function a(e,r,t,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*t+(1+3*e+3*o-3*i)*n+i*a)/6}var o=t(57631);function i(e,r){return function(t){return e+t*r}}function s(e){return 1===(e=+e)?l:function(r,t){return t-r?function(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}(r,t,e):(0,o.Z)(isNaN(r)?t:r)}}function l(e,r){var t=r-e;return t?i(e,t):(0,o.Z)(isNaN(e)?r:e)}var c=function e(r){var t=s(r);function a(e,r){var a=t((e=(0,n.B8)(e)).r,(r=(0,n.B8)(r)).r),o=t(e.g,r.g),i=t(e.b,r.b),s=l(e.opacity,r.opacity);return function(r){return e.r=a(r),e.g=o(r),e.b=i(r),e.opacity=s(r),e+""}}return a.gamma=e,a}(1);function u(e){return function(r){var t,a,o=r.length,i=new Array(o),s=new Array(o),l=new Array(o);for(t=0;t<o;++t)a=(0,n.B8)(r[t]),i[t]=a.r||0,s[t]=a.g||0,l[t]=a.b||0;return i=e(i),s=e(s),l=e(l),a.opacity=1,function(e){return a.r=i(e),a.g=s(e),a.b=l(e),a+""}}}u((function(e){var r=e.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),o=e[n],i=e[n+1],s=n>0?e[n-1]:2*o-i,l=n<r-1?e[n+2]:2*i-o;return a((t-n/r)*r,s,o,i,l)}})),u((function(e){var r=e.length;return function(t){var n=Math.floor(((t%=1)<0?++t:t)*r),o=e[(n+r-1)%r],i=e[n%r],s=e[(n+1)%r],l=e[(n+2)%r];return a((t-n/r)*r,o,i,s,l)}}))},25996:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=t(13311),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(a.source,"g");function i(e,r){var t,i,s,l=a.lastIndex=o.lastIndex=0,c=-1,u=[],d=[];for(e+="",r+="";(t=a.exec(e))&&(i=o.exec(r));)(s=i.index)>l&&(s=r.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=o.lastIndex;return l<r.length&&(s=r.slice(l),u[c]?u[c]+=s:u[++c]=s),u.length<2?d[0]?function(e){return function(r){return e(r)+""}}(d[0].x):function(e){return function(){return e}}(r):(r=d.length,function(e){for(var t,n=0;n<r;++n)u[(t=d[n]).i]=t.x(e);return u.join("")})}},52596:function(e,r,t){"use strict";t.d(r,{Z:function(){return f}});var n=t(94798),a=t(20439);function o(e,r){var t,n=r?r.length:0,a=e?Math.min(n,e.length):0,o=new Array(a),i=new Array(n);for(t=0;t<a;++t)o[t]=f(e[t],r[t]);for(;t<n;++t)i[t]=r[t];return function(e){for(t=0;t<a;++t)i[t]=o[t](e);return i}}function i(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}var s=t(13311);function l(e,r){var t,n={},a={};for(t in null!==e&&"object"===typeof e||(e={}),null!==r&&"object"===typeof r||(r={}),r)t in e?n[t]=f(e[t],r[t]):a[t]=r[t];return function(e){for(t in n)a[t]=n[t](e);return a}}var c=t(25996),u=t(57631);function d(e,r){r||(r=[]);var t,n=e?Math.min(r.length,e.length):0,a=r.slice();return function(o){for(t=0;t<n;++t)a[t]=e[t]*(1-o)+r[t]*o;return a}}function f(e,r){var t,f,b=typeof r;return null==r||"boolean"===b?(0,u.Z)(r):("number"===b?s.Z:"string"===b?(t=(0,n.ZP)(r))?(r=t,a.ZP):c.Z:r instanceof n.ZP?a.ZP:r instanceof Date?i:(f=r,!ArrayBuffer.isView(f)||f instanceof DataView?Array.isArray(r)?o:"function"!==typeof r.valueOf&&"function"!==typeof r.toString||isNaN(r)?l:s.Z:d))(e,r)}},76363:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return t(29200)}])},43146:function(){},17621:function(e,r,t){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,l=a.round,c=a.min,u=a.max,d=a.random;function f(e,r){if(r=r||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,r);var t=function(e){var r={r:0,g:0,b:0},t=1,n=null,s=null,l=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var r,t=!1;if(D[e])e=D[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(r=J.rgb.exec(e))return{r:r[1],g:r[2],b:r[3]};if(r=J.rgba.exec(e))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=J.hsl.exec(e))return{h:r[1],s:r[2],l:r[3]};if(r=J.hsla.exec(e))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=J.hsv.exec(e))return{h:r[1],s:r[2],v:r[3]};if(r=J.hsva.exec(e))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=J.hex8.exec(e))return{r:T(r[1]),g:T(r[2]),b:T(r[3]),a:W(r[4]),format:t?"name":"hex8"};if(r=J.hex6.exec(e))return{r:T(r[1]),g:T(r[2]),b:T(r[3]),format:t?"name":"hex"};if(r=J.hex4.exec(e))return{r:T(r[1]+""+r[1]),g:T(r[2]+""+r[2]),b:T(r[3]+""+r[3]),a:W(r[4]+""+r[4]),format:t?"name":"hex8"};if(r=J.hex3.exec(e))return{r:T(r[1]+""+r[1]),g:T(r[2]+""+r[2]),b:T(r[3]+""+r[3]),format:t?"name":"hex"};return!1}(e));"object"==typeof e&&(N(e.r)&&N(e.g)&&N(e.b)?(b=e.r,g=e.g,p=e.b,r={r:255*j(b,255),g:255*j(g,255),b:255*j(p,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):N(e.h)&&N(e.s)&&N(e.v)?(n=I(e.s),s=I(e.v),r=function(e,r,t){e=6*j(e,360),r=j(r,100),t=j(t,100);var n=a.floor(e),o=e-n,i=t*(1-r),s=t*(1-o*r),l=t*(1-(1-o)*r),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]}}(e.h,n,s),d=!0,f="hsv"):N(e.h)&&N(e.s)&&N(e.l)&&(n=I(e.s),l=I(e.l),r=function(e,r,t){var n,a,o;function i(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(r-e)*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}if(e=j(e,360),r=j(r,100),t=j(t,100),0===r)n=a=o=t;else{var s=t<.5?t*(1+r):t+r-t*r,l=2*t-s;n=i(l,s,e+1/3),a=i(l,s,e),o=i(l,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(t=e.a));var b,g,p;return t=R(t),{ok:d,format:e.format||f,r:c(255,u(r.r,0)),g:c(255,u(r.g,0)),b:c(255,u(r.b,0)),a:t}}(e);this._originalInput=e,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=r.format||t.format,this._gradientType=r.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 b(e,r,t){e=j(e,255),r=j(r,255),t=j(t,255);var n,a,o=u(e,r,t),i=c(e,r,t),s=(o+i)/2;if(o==i)n=a=0;else{var l=o-i;switch(a=s>.5?l/(2-o-i):l/(o+i),o){case e:n=(r-t)/l+(r<t?6:0);break;case r:n=(t-e)/l+2;break;case t:n=(e-r)/l+4}n/=6}return{h:n,s:a,l:s}}function g(e,r,t){e=j(e,255),r=j(r,255),t=j(t,255);var n,a,o=u(e,r,t),i=c(e,r,t),s=o,l=o-i;if(a=0===o?0:l/o,o==i)n=0;else{switch(o){case e:n=(r-t)/l+(r<t?6:0);break;case r:n=(t-e)/l+2;break;case t:n=(e-r)/l+4}n/=6}return{h:n,s:a,v:s}}function p(e,r,t,n){var a=[P(l(e).toString(16)),P(l(r).toString(16)),P(l(t).toString(16))];return n&&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[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function h(e,r,t,n){return[P(M(n)),P(l(e).toString(16)),P(l(r).toString(16)),P(l(t).toString(16))].join("")}function m(e,r){r=0===r?0:r||10;var t=f(e).toHsl();return t.s-=r/100,t.s=O(t.s),f(t)}function y(e,r){r=0===r?0:r||10;var t=f(e).toHsl();return t.s+=r/100,t.s=O(t.s),f(t)}function v(e){return f(e).desaturate(100)}function x(e,r){r=0===r?0:r||10;var t=f(e).toHsl();return t.l+=r/100,t.l=O(t.l),f(t)}function k(e,r){r=0===r?0:r||10;var t=f(e).toRgb();return t.r=u(0,c(255,t.r-l(-r/100*255))),t.g=u(0,c(255,t.g-l(-r/100*255))),t.b=u(0,c(255,t.b-l(-r/100*255))),f(t)}function w(e,r){r=0===r?0:r||10;var t=f(e).toHsl();return t.l-=r/100,t.l=O(t.l),f(t)}function S(e,r){var t=f(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,f(t)}function C(e){var r=f(e).toHsl();return r.h=(r.h+180)%360,f(r)}function F(e){var r=f(e).toHsl(),t=r.h;return[f(e),f({h:(t+120)%360,s:r.s,l:r.l}),f({h:(t+240)%360,s:r.s,l:r.l})]}function A(e){var r=f(e).toHsl(),t=r.h;return[f(e),f({h:(t+90)%360,s:r.s,l:r.l}),f({h:(t+180)%360,s:r.s,l:r.l}),f({h:(t+270)%360,s:r.s,l:r.l})]}function E(e){var r=f(e).toHsl(),t=r.h;return[f(e),f({h:(t+72)%360,s:r.s,l:r.l}),f({h:(t+216)%360,s:r.s,l:r.l})]}function _(e,r,t){r=r||6,t=t||30;var n=f(e).toHsl(),a=360/t,o=[f(e)];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(f(n));return o}function B(e,r){r=r||6;for(var t=f(e).toHsv(),n=t.h,a=t.s,o=t.v,i=[],s=1/r;r--;)i.push(f({h:n,s:a,v:o})),o=(o+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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return e=n.r/255,r=n.g/255,t=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=g(this._r,this._g,this._b),r=l(360*e.h),t=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=b(this._r,this._g,this._b),r=l(360*e.h),t=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,t,n,a){var o=[P(l(e).toString(16)),P(l(r).toString(16)),P(l(t).toString(16)),P(M(n))];if(a&&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[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},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*j(this._r,255))+"%",g:l(100*j(this._g,255))+"%",b:l(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*j(this._r,255))+"%, "+l(100*j(this._g,255))+"%, "+l(100*j(this._b,255))+"%)":"rgba("+l(100*j(this._r,255))+"%, "+l(100*j(this._g,255))+"%, "+l(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+h(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);t="#"+h(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1,n=this._a<1&&this._a>=0;return r||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));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(k,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(e,r){if("object"==typeof e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]="a"===n?e[n]:I(e[n]));e=t}return f(e,r)},f.equals=function(e,r){return!(!e||!r)&&f(e).toRgbString()==f(r).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,r,t){t=0===t?0:t||50;var n=f(e).toRgb(),a=f(r).toRgb(),o=t/100;return f({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},f.readability=function(e,r){var t=f(e),n=f(r);return(a.max(t.getLuminance(),n.getLuminance())+.05)/(a.min(t.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,r,t){var n,a,o=f.readability(e,r);switch(a=!1,(n=function(e){var r,t;r=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),"AA"!==r&&"AAA"!==r&&(r="AA");"small"!==t&&"large"!==t&&(t="small");return{level:r,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},f.mostReadable=function(e,r,t){var n,a,o,i,s=null,l=0;a=(t=t||{}).includeFallbackColors,o=t.level,i=t.size;for(var c=0;c<r.length;c++)(n=f.readability(e,r[c]))>l&&(l=n,s=f(r[c]));return f.isReadable(e,s,{level:o,size:i})||!a?s:(t.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],t))};var D=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"},z=f.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(D);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=c(r,u(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),a.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function O(e){return c(1,u(0,e))}function T(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function M(e){return a.round(255*parseFloat(e)).toString(16)}function W(e){return T(e)/255}var J=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",r="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+r),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(e){return!!J.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(r,t,r,e))||(e.exports=n)}(Math)},4942:function(e,r,t){"use strict";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}t.d(r,{Z:function(){return n}})},87462:function(e,r,t){"use strict";function n(){return(n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}t.d(r,{Z:function(){return n}})}},function(e){var r=function(r){return e(e.s=r)};e.O(0,[774,179],(function(){return r(76363),r(34651)}));var t=e.O();_N_E=t}]); \ No newline at end of file
diff --git a/out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js b/out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js
deleted file mode 100644
index c57f348..0000000
--- a/out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{20624:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return Cr},GraphPage:function(){return yr},default:function(){return mr},getThemeColor:function(){return kr},hexToRGBA:function(){return Sr},normalizeLinkEnds:function(){return wr}});var r=t(15861),i=t(42982),o=t(4942),l=t(70885),s=t(87757),c=t.n(s),a=t(40980),u=t(74860),d=t(95869),h=t(48017),g=t(94096),f=t(96699),p=t(48420),x=t(57775),j=t(54309),b=t(52596),v=t(9008),m=t(67294),y=t(32802),C=t.n(y),O=t(47516),w=t(63750),k=t(22003),S=t(31122),N=t(7520),P=t(36194),D=[],I={};for(var z in P.oY)for(var L in P.oY[z]){var E=z+L;"LinearNone"===E&&(E="Linear"),D.push(E),I[E]=P.oY[z][L]}var Z=I,T={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},R={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],dirsBlocklist:[],dirsAllowlist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},B={method:"degree"},F={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:3,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:10,labelLength:40,labelWordWrap:25,labelLineSpace:1,labelDynamicDegree:8,labelDynamicStrength:.5,highlight:!0,highlightNodeSize:1.1,highlightLinkSize:.7,highlightFade:.8,highlightAnim:!0,animationSpeed:360,algorithmOptions:D,algorithmName:"CircularOut",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:"black",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.2},H={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},W={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},A={neighbors:1},M=["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"],V=t(11252),X=t(336),_=t(85675),U=t(72026),q=t(64115),G=t(49364),J=t(94030),Q=t(85305),K=t(46617),$=t(50862),Y=t(68928),ee=t(55830),ne=t(2827);function te(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function re(e,n){te("open",{id:e.id},n)}var ie=t(77787),oe=t(45987),le=t(80658),se=t(38554),ce=t.n(se),ae=t(84461),ue=t(73808),de=t(53869),he=t(39629);function ge(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 fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var pe={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var xe=function(e,n){return fe(fe({},e),{},{delay:(0,ue.hj)(n)?n:null===n||void 0===n?void 0:n.enter})},je=function(e,n){return fe(fe({},e),{},{delay:(0,ue.hj)(n)?n:null===n||void 0===n?void 0:n.exit})},be=t(85893),ve=["in","unmountOnExit","animateOpacity","startingSize","endingSize","dimension","style","className","transition","transitionEnd"];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 ye(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,o.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 Ce=function(e){return null!=e&&parseInt(e.toString(),10)>0},Oe={exit:{size:{duration:.2,ease:pe.ease},opacity:{duration:.3,ease:pe.ease}},enter:{size:{duration:.3,ease:pe.ease},opacity:{duration:.4,ease:pe.ease}}},we={exit:function(e){var n,t,r=e.animateOpacity,i=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return ye(ye({},r&&{opacity:Ce(i)?1:0}),{},(t={overflow:"hidden"},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:je(Oe.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,i=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return ye(ye({},r&&{opacity:1}),{},(t={},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:xe(Oe.enter,c)),t))}},ke=m.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,i=e.animateOpacity,o=void 0===i||i,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,u=void 0===a?"auto":a,d=e.dimension,h=void 0===d?"height":d,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,oe.Z)(e,ve),b=m.useState(!1),v=(0,l.Z)(b,2),y=v[0],C=v[1];m.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,le.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var O=parseFloat(c.toString())>0,w={startingSize:c,endingSize:u,animateOpacity:o,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:ce()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:O?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,be.jsx)(de.M,{initial:!1,custom:w,children:k&&(0,be.jsx)(he.E.div,ye(ye({ref:n},j),{},{className:(0,ae.cx)("chakra-collapse",f),style:ye({overflow:"hidden",display:"block"},g),custom:w,variants:we,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));function Se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Se(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}ue.Ts&&(ke.displayName="Collapse");var Pe=function(e){var n=e.setTagColors,t=e.setFilter,r=e.filter,l=e.tagColors,s=e.target,c=r.tagsBlacklist,a=r.tagsWhitelist,d=c.indexOf(s)>-1,f=a.indexOf(s)>-1,p=(0,u.q)();return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.sN,{icon:(0,be.jsx)(h.xu,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:p.onToggle,children:(0,be.jsx)(q.x,{children:"Change color"})}),(0,be.jsx)(ke,{in:p.isOpen,children:(0,be.jsxs)(g.k,{ml:2,mt:2,flexWrap:"wrap",children:[(0,be.jsx)(h.xu,{children:(0,be.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n((function(e){return Object.fromEntries(Object.keys(e).filter((function(e){return e!==s})).map((function(n){return[n,e[n]]})))}))},bgColor:"",m:1,borderRadius:"sm",borderColor:"gray.600",borderWidth:1,height:3,width:3})},"empty"),M.map((function(e){return(0,be.jsx)(h.xu,{children:(0,be.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n(Ne(Ne({},l),{},(0,o.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!f&&(0,be.jsx)(V.sN,{onClick:function(){t(d?function(e){return Ne(Ne({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return Ne(Ne({},e),{},{tagsBlacklist:[].concat((0,i.Z)(e.tagsBlacklist),[s])})})},icon:d?(0,be.jsx)(Q.V,{}):(0,be.jsx)(ie.t,{}),children:d?"Remove from blocklist":"Add to blocklist"}),!d&&(0,be.jsx)(V.sN,{onClick:function(){t(f?function(e){return Ne(Ne({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return Ne(Ne({},e),{},{tagsWhitelist:[].concat((0,i.Z)(e.tagsWhitelist),[s])})})},icon:f?(0,be.jsx)(Q.V,{}):(0,be.jsx)(ee.O,{}),children:f?"Remove from allowlist":"Add to allowlist"})]})},De=function(e){e.background;var n,t,r=e.target,i=(e.nodeType,e.coordinates),o=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,a=e.setPreviewNode,d=e.setTagColors,h=e.tagColors,g=e.setFilter,f=e.filter,p=(0,u.q)(),x=p.isOpen,j=p.onOpen,b=p.onClose;(0,m.useRef)();return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,be.jsx)(V.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:i.left,top:i.top,right:i.right,bottom:i.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,be.jsxs)(be.Fragment,{children:[r&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(X.X,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,be.jsx)(V.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.sN,{onClick:function(){return o(r,"add")},icon:(0,be.jsx)(J.I,{}),children:"Expand local graph at node"}),(0,be.jsx)(V.sN,{onClick:function(){return o(r,"replace")},icon:(0,be.jsx)(O.DvO,{}),children:"Open local graph for this node"}),(0,be.jsx)(V.sN,{onClick:function(){return o(r,"remove")},icon:(0,be.jsx)(Q.V,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,be.jsx)(V.sN,{icon:(0,be.jsx)($.d,{}),onClick:function(){return function(e,n){te("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,be.jsx)(V.sN,{icon:(0,be.jsx)(K.d,{}),onClick:function(){return re(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,be.jsx)(V.sN,{icon:(0,be.jsx)(Y.h,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,be.jsx)(V.sN,{icon:(0,be.jsx)(O.DvO,{}),onClick:function(){return o(r,"replace")},children:"Open local graph"}),(0,be.jsx)(V.sN,{icon:(0,be.jsx)(ee.O,{}),onClick:function(){a(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,be.jsx)(V.sN,{closeOnSelect:!1,icon:(0,be.jsx)(ne.p,{color:"red.500"}),color:"red.500",onClick:j,children:"Permanently delete note"})]}):(0,be.jsx)(Pe,{target:r,tagColors:h,filter:f,setTagColors:d,setFilter:g})})}),"string"!==typeof r&&(0,be.jsxs)(_.u_,{isCentered:!0,isOpen:x,onClose:b,children:[(0,be.jsx)(_.ZA,{}),(0,be.jsxs)(_.hz,{zIndex:"popover",children:[(0,be.jsx)(_.xB,{children:"Delete node?"}),(0,be.jsx)(_.ol,{}),(0,be.jsx)(_.fe,{children:(0,be.jsxs)(U.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,be.jsx)(q.x,{children:"This will permanently delete your note:"}),(0,be.jsx)(q.x,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,be.jsx)(q.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,be.jsx)(q.x,{children:"Are you sure you want to do continue?"})]})}),(0,be.jsxs)(_.mz,{children:[(0,be.jsx)(G.z,{mr:3,onClick:function(){console.log("closing"),b(),l()},children:"Cancel"}),(0,be.jsx)(G.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&te("delete",{id:e.id,file:e.file},n)}(r,c),b(),l()},children:"Delete node"})]})]})]})]})},Ie=t(67101),ze=t(5434),Le=t(35255),Ee=t(56884),Ze=t(51649),Te=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),i=e.canRedo,o=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,u=e.setCollapse;return(0,be.jsxs)(g.k,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,be.jsx)(g.k,{children:(0,be.jsxs)(Ie.h,{isAttached:!0,children:[(0,be.jsx)(f.u,{label:"Go backward",children:(0,be.jsx)(p.h,{_focus:{},variant:"subtle",icon:(0,be.jsx)(Le.w,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return o()}})}),(0,be.jsx)(f.u,{label:"Go forward",children:(0,be.jsx)(p.h,{_focus:{},variant:"subtle",icon:(0,be.jsx)(Ee.X,{}),"aria-label":"Next node",disabled:!i,onClick:function(){return l()}})})]})}),(0,be.jsxs)(g.k,{children:[(0,be.jsx)(f.u,{label:"Justify content",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:[(0,be.jsx)(O.v9V,{},"justify"),(0,be.jsx)(O.YSr,{},"left"),(0,be.jsx)(O.RXA,{},"right"),(0,be.jsx)(O.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,be.jsx)(f.u,{label:"Toggle outline view",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:s?(0,be.jsx)(Ze.XQM,{}):(0,be.jsx)(Ze.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,be.jsx)(f.u,{label:"Toggle headers",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,be.jsx)(ze.omV,{}):(0,be.jsx)(ze.egf,{}),onClick:function(){return u((function(e){return!e}))}})})]})]})},Re=t(35528);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 Fe(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,o.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 He=function(e){var n,t,r,o=e.filter,l=e.setFilter,s=e.tagColors,c=(e.setTagColors,e.openContextMenu),a=e.previewNode;return null!==a&&void 0!==a&&a.tags&&null!==(null===a||void 0===a||null===(n=a.tags)||void 0===n?void 0:n[0])?(0,be.jsx)(g.k,{mb:2,flexWrap:"wrap",children:null===a||void 0===a||null===(t=a.tags)||void 0===t||null===(r=t.map)||void 0===r?void 0:r.call(t,(function(e){var n,t,r,a=null!==(n=o.tagsBlacklist)&&void 0!==n?n:[],u=null!==(t=o.tagsWhitelist)&&void 0!==t?t:[],d=a.includes(e),h=u.includes(e);return(0,be.jsxs)(Re.Vp,{tabIndex:0,mr:2,mt:2,onContextMenu:function(n){n.preventDefault(),c(e,n)},cursor:"pointer",onClick:function(){l(d?function(n){return Fe(Fe({},n),{},{tagsBlacklist:n.tagsBlacklist.filter((function(n){return n!==e})),tagsWhitelist:[].concat((0,i.Z)(n.tagsWhitelist),[e])})}:h?function(n){return Fe(Fe({},n),{},{tagsWhitelist:n.tagsWhitelist.filter((function(n){return n!==e}))})}:function(n){return Fe(Fe({},n),{},{tagsBlacklist:[].concat((0,i.Z)(n.tagsBlacklist),[e])})})},size:"sm",variant:"outline",colorScheme:(null===(r=s[e])||void 0===r?void 0:r.replaceAll(/(.*?)\..*/g,"$1"))||void 0,children:[(0,be.jsx)(Re.Sn,{children:e}),d?(0,be.jsx)(Re.bq,{as:ie.t}):h?(0,be.jsx)(Re.bq,{as:ee.O}):null]},e)}))}):null},We=t(18835),Ae=t.n(We),Me=t(13816),Ve=t.n(Me),Xe=t(42728),_e=t.n(Xe),Ue=t(77890),qe=t.n(Ue),Ge=t(94986),Je=t.n(Ge),Qe=t(88541),Ke=t.n(Qe),$e=t(71167),Ye=t.n($e),en=(t(85062),t(27431)),nn=t.n(en),tn=t(12861),rn=t.n(tn),on=t(10043),ln=t.n(on),sn=t(80816),cn=t(93545),an=t.n(cn),un=t(15941),dn=t.n(un),hn=t(67597),gn=t.n(hn),fn=t(44549),pn=t.n(fn),xn=t(78818),jn=t.n(xn),bn=t(49444),vn=t(45170),mn=t(67273),yn=t(29356),Cn={".headingFlex":{flexDirection:"row-reverse",justifyContent:"flex-end"},".outlineHeadingButton":{display:"none"},h1:{color:"black",lineHeight:"1.2",fontSize:"16",fontWeight:"bold",paddingTop:2},h2:{fontSize:"14",color:"black",fontWeight:"bold",fontStyle:"bold italic",paddingTop:2},h3:{fontSize:"13",color:"black",paddingTop:2},h4:{fontSize:"12",fontStyle:"italic",color:"black",paddingTop:2},".sectionContent":{paddingTop:2}},On={".headingFlex":{flexDirection:"row",justifyContent:"flex-start"},".viewerHeadingButton":{display:"none"},".sectionContent":{mt:3,paddingLeft:4,ml:"11px",borderLeftWidth:"1px",borderLeftColor:"gray.500"},".preHeadingContent":{},"h1,h2,h3,h4,h5,h6,h7,h8":{pl:1,lineHeight:"1.25",color:"black",fontSize:15,fontWeight:700},".sec":{pt:1},".wrapClass > div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},wn={".katex":{overflowX:"scroll"},ol:{paddingLeft:4,py:1},"li::marker":{fontSize:12,fontWeight:"bold"},li:{pt:1},ul:{paddingLeft:"5"},p:{fontSize:"14",fontWeight:"500 !important",pb:2},div:{hyphens:"auto !important"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".TODO":{color:"red.500"},".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"},".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":{color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"white",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:{borderRadius:"3px",backgroundColor:"white",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",backgroundColor:"white"},"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"}},kn=t(86658),Sn=["style"];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 Pn(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,o.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 Dn=function(e){var n=e.noUnderline,t=e.id,r=e.setSidebarHighlightedNode,i=e.setPreviewNode,o=e.nodeById,l=e.openContextMenu,s=e.href,c=e.children,u=e.isWiki,d=(0,m.useContext)(yn.N).highlightColor,h=kr(d,(0,a.useTheme)()),g=(s.replaceAll(/(.*?)\:?.*/g,"$1"),s.replaceAll(/.*?\:(.*)/g,"$1")),f=null!==t&&void 0!==t?t:g,p=u?"[[".concat(c,"]]"):c;return(0,be.jsx)(q.x,{as:"a",onMouseEnter:function(){return r(o[f])},onMouseLeave:function(){return r({})},tabIndex:0,display:"inline",overflow:"hidden",fontWeight:500,color:d,textDecoration:n?void 0:"underline",onContextMenu:function(e){e.preventDefault(),l(o[g],e)},onClick:function(){return i(o[g])},_hover:{textDecoration:"none",cursor:"pointer",bgColor:h+"22"},_focus:{outlineColor:d},children:p})},In=function(e){var n=e.href,t=e.children,r=(0,m.useContext)(yn.N).highlightColor;return(0,be.jsxs)(bn.r,{color:r,isExternal:!0,href:n,children:[t,(0,be.jsx)(Y.h,{mx:"1px",pb:"2px"})]})},zn=function(e){var n,t=e.href,r=e.children,i=e.nodeById,o=e.setSidebarHighlightedNode,l=e.previewNode,s=e.setPreviewNode,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,d=e.noUnderline,g=e.linksByNodeId,f=e.isWiki,p=e.macros,x=e.attachDir,j=(0,m.useState)(null),b=j[0],v=j[1],y=(0,m.useState)(!1),C=y[0],O=y[1],w=t.replaceAll(/(.*?)\:.*/g,"$1"),k=u?On:Cn;console.log(l);if((0,m.useEffect)((function(){w.replaceAll(/(http)?.*/g,"$1")||b||C&&fetch("http://localhost:35901/file/".concat(L)).then((function(e){return e.text()})).then((function(e){"error"===e||v(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."}))}),[C,b]),!w)return(0,be.jsx)(q.x,{color:"gray.700",children:r});if(w.replaceAll(/(http)?.*/g,"$1"))return(0,be.jsx)(In,{href:t,children:r});var S,N,P,D,I=t.replaceAll(/.*?\:(.*)/g,"$1"),z=function(e,n){if("id"===e)return n;if(e.includes("cite")){var t,r=null!==(t=c[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""}(w,I),L=encodeURIComponent(encodeURIComponent(null===(n=i[z])||void 0===n?void 0:n.file));return z?(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)(vn.J2,{gutter:12,trigger:"hover",placement:"top-start",children:[(0,be.jsx)(vn.xo,{children:(0,be.jsx)(h.xu,{display:"inline",onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},children:(0,be.jsx)(Dn,{id:z,setSidebarHighlightedNode:o,setPreviewNode:s,nodeById:i,href:t,children:r,nodeByCite:c,openContextMenu:a,noUnderline:d,isWiki:f},null!==(S=null===(N=i[z])||void 0===N?void 0:N.title)&&void 0!==S?S:z)})}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(vn.yk,{transform:"scale(1)",boxShadow:"xl",position:"relative",zIndex:"tooltip",onMouseEnter:function(){var e;o(null!==(e=i[z])&&void 0!==e?e:{})},onMouseLeave:function(){o({})},children:[(0,be.jsx)(vn.QH,{}),(0,be.jsx)(vn.b,{pb:5,fontSize:"xs",position:"relative",zIndex:"tooltip",transform:"scale(1)",width:"100%",children:(0,be.jsx)(kn.$B,{autoHeight:!0,autoHeightMax:300,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,Sn);return(0,be.jsx)(h.xu,Pn({style:Pn(Pn({},n),{},{borderRadius:0})},t))},children:(0,be.jsx)(h.xu,{w:"100%",color:"black",px:3,sx:Pn(Pn({},wn),k),children:(0,be.jsx)(Xn,{previewText:b,nodeById:i,setSidebarHighlightedNode:o,setPreviewNode:s,nodeByCite:c,openContextMenu:a,outline:u,linksByNodeId:g,macros:p,attachDir:x,previewNode:i[z],collapse:!1})})})})]},null!==(P=null===(D=i[z])||void 0===D?void 0:D.title)&&void 0!==P?P:z)})]})}):(0,be.jsx)(q.x,{as:"span",display:"inline",className:t,color:"base.700",cursor:"not-allowed",children:r})},Ln=t(25675),En=t(62520),Zn=t.n(En),Tn=t(53850),Rn=function(e){var n=e.src,t=e.file,r=(0,m.useState)(null);r[0],r[1];if(n.replaceAll(/(http)?.*/g,"$1"))return console.log(n.replaceAll(/(http)?.*/g,"$1")),(0,be.jsx)(Ln.default,{layout:"responsive",loader:function(e){var n=e.src;return e.width,e.quality,"".concat(n)},src:n,alt:"",width:"auto",height:"auto"});var i=n.replaceAll(/file:/g,""),o=Zn().dirname(t),l=Zn().isAbsolute(i)||"~"===i.slice(0,1)?i:Zn().join(o,i),s=encodeURIComponent(encodeURIComponent(l));return(0,be.jsx)(Tn.W,{my:4,position:"relative",children:(0,be.jsx)("img",{alt:"Wow, an image.",src:"http://localhost:35901/img/".concat(s)})})},Bn=t(14578),Fn=t(6780),Hn=t(6569),Wn=(0,m.createContext)({outline:!1,collapse:!0}),An=function(e){var n=e.children,t=e.className,r=(0,m.useState)(!0),i=r[0],o=r[1],l=(0,m.useContext)(Wn).collapse;if((0,m.useEffect)((function(){o(!l)}),[l]),"h0Wrapper headingWrapper"===t)return(0,be.jsxs)(h.xu,{className:"preHeadingContent",children:[" ",n]});var s=n;return(0,be.jsxs)(h.xu,{className:"sec",children:[(0,be.jsx)(h.xu,{display:"block",children:(0,be.jsxs)(g.k,{className:"headingFlex",alignItems:"baseline",children:[i&&s.length>0?(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(p.h,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,be.jsx)(Fn.g,{}),onClick:function(){return o(!i)},height:2,width:2}),(0,be.jsx)(p.h,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,be.jsx)(Bn.zOz,{}),onClick:function(){return o(!i)},height:2,width:2})]}):(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(p.h,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,be.jsx)(Hn.v,{}),onClick:function(){return o(!i)}}),(0,be.jsx)(p.h,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,be.jsx)(Bn.O6Y,{}),onClick:function(){return o(!i)}})]}),s[0]]})}),i&&(0,be.jsx)(h.xu,{className:"sectionContent",children:s.slice(1)})]})};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 Vn(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,o.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 Xn=function(e){var n,t,r=e.nodeById,i=e.setSidebarHighlightedNode,l=e.setPreviewNode,s=e.previewText,c=e.nodeByCite,a=e.previewNode,u=e.openContextMenu,d=e.outline,h=e.collapse,g=e.linksByNodeId,f=e.macros,p=e.attachDir;if(!a||!g)return null;var x=Ae()().use(Ve()).use(Je()).use(Ke(),{idDir:p||void 0}).use(qe()).use(_e(),{useSections:!0}),j=(null===(n=g[null===a||void 0===a?void 0:a.id])||void 0===n?void 0:n.reduce((function(e,n){var t=wr(n).filter((function(e){return e!==a.id})).join("");return Vn(Vn({},e),{},(0,o.Z)({},t,r[t]))}),{}))||{},b=Object.entries(j),v=Ae()().use(rn()).use(dn(),["yaml"]).use(gn()).use(sn.Z,{permaLinks:Object.keys(j),pageResolver:function(e){var n,t=b.find((function(n){var t;return(null===n||void 0===n||null===(t=n[1])||void 0===t?void 0:t.title)===e}));return[null!==(n=null===t||void 0===t?void 0:t[0])&&void 0!==n?n:""]},hrefTemplate:function(e){return console.log(e),"id:".concat(e)}}).use(pn()).use(an()).use(ln()).use(jn()),y=".md"===(null===a||void 0===a||null===(t=a.file)||void 0===t?void 0:t.slice(-3)),C=y?v:x;console.log(f);var O=(0,m.useMemo)((function(){return C.use(Ye(),{trust:function(e){return["\\htmlId","\\href"].includes(e.command)},macros:Vn({"\\eqref":"\\href{###1}{(\\text{#1})}","\\ref":"\\href{###1}{\\text{#1}}","\\label":"\\htmlId{#1}{}"},f)}).use(nn(),{createElement:m.createElement,components:{a:function(e){var n=e.children,t=e.href;return(0,be.jsx)(zn,{nodeByCite:c,setSidebarHighlightedNode:i,href:"".concat(t),nodeById:r,linksByNodeId:g,setPreviewNode:l,openContextMenu:u,outline:d,previewNode:a,isWiki:y,macros:f,attachDir:p,children:n})},img:function(e){var n=e.src;return(0,be.jsx)(Rn,{src:n,file:null===a||void 0===a?void 0:a.file})},section:function(e){var n=e.children,t=e.className;return(0,be.jsx)(An,{outline:d,collapse:h,className:t,children:n})},p:function(e){var n=e.children;return(0,be.jsx)("p",{lang:"en",children:n})}}})}),[null===a||void 0===a?void 0:a.id]),w=(0,m.useMemo)((function(){return O.processSync(s).result}),[s]);return(0,be.jsx)(Wn.Provider,{value:{collapse:h,outline:d},children:w})};var _n=function(e){var n=e.openContextMenu,t=e.setSidebarHighlightedNode,r=e.nodeById,i=e.nodeByCite,o=e.previewNode,l=e.setPreviewNode,s=e.outline,c=e.collapse,a=e.linksByNodeId,u=e.macros,d=e.attachDir,h=(0,m.useState)(""),g=h[0],f=h[1],p=encodeURIComponent(encodeURIComponent(o.file));return(0,m.useEffect)((function(){fetch("http://localhost:35901/file/".concat(p)).then((function(e){return e.text()})).then((function(e){if(""===e)return"(empty node)";"error"!==e&&(console.log(e),f(e))})).catch((function(e){return f("(could not find node)"),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."}))}),[o.id]),(0,be.jsx)(be.Fragment,{children:g&&o&&(0,be.jsx)(Xn,{nodeById:r,previewNode:o,setPreviewNode:l,previewText:g,nodeByCite:i,setSidebarHighlightedNode:t,openContextMenu:n,outline:s,collapse:c,linksByNodeId:a,attachDir:d,macros:u||{}})})},Un=function(e){var n,t=e.previewNode,r=e.setPreviewNode,i=e.setSidebarHighlightedNode,o=e.nodeById,s=e.linksByNodeId,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,d=e.macros,g=e.attachDir,f=(null!==(n=s[null===t||void 0===t?void 0:t.id])&&void 0!==n?n:[]).filter((function(e){var n=wr(e),r=(0,l.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,be.jsxs)(h.xu,{className:"backlinks",borderRadius:"sm",mt:6,p:4,bg:"white",mb:10,children:[(0,be.jsx)("p",{style:{fontSize:16,fontWeight:600},children:"Linked references (".concat(f.length,")")}),(0,be.jsx)(U.gC,{py:2,spacing:3,alignItems:"start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(null===t||void 0===t?void 0:t.id)&&f.map((function(e){var n,l,f;n=null===(l=o[e])||void 0===l?void 0:l.title;return(0,be.jsx)(h.xu,{overflow:"hidden",py:1,borderRadius:"sm",width:"100%",children:(0,be.jsx)(zn,{linksByNodeId:s,nodeByCite:c,setSidebarHighlightedNode:i,href:"id:".concat(e),nodeById:o,previewNode:t,setPreviewNode:r,openContextMenu:a,outline:u,noUnderline:!0,attachDir:g,macros:d,children:null===(f=o[e])||void 0===f?void 0:f.title})},e)}))})]})};function qn(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?qn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Jn=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,a=e.openContextMenu,u=e.outline,d=e.collapse,f=e.macros,p=e.attachDir,x=u?On:Cn;return(0,be.jsx)(h.xu,{pr:8,pt:2,height:"100%",className:"org",sx:Gn(Gn(Gn({},wn),x),{},{textAlign:t[r]}),children:(null===i||void 0===i?void 0:i.id)&&(0,be.jsxs)(g.k,{className:"wrapClass",height:"100%",flexDirection:"column",justifyContent:"space-between",children:[(0,be.jsx)(_n,{setPreviewNode:n,previewNode:i,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,collapse:d,nodeById:o,linksByNodeId:c,macros:f,attachDir:p}),(0,be.jsx)(Un,{setPreviewNode:n,previewNode:i,nodeById:o,linksByNodeId:c,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,attachDir:p,macros:f||{}})]})})},Qn=function(e){var n=e.previewNode;return(0,be.jsx)(g.k,{maxW:"90%",children:(0,be.jsx)(X.X,{lineHeight:1.2,size:"md",fontWeight:600,pt:4,children:null===n||void 0===n?void 0:n.title})})},Kn=t(29119);function $n(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 Yn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$n(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$n(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function et(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=nt(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)?Yn(Yn({},n),o):l;s!==o&&i.update(s);var c=(0,m.useState)(s),a=c[0],u=c[1];(0,m.useEffect)((function(){a!==s&&u(s)}),[e]);var d=function(e){e instanceof Function?u((function(n){var t=e(n);return i.update(t),t})):(u(e),i.update(e))};return[a,d]}function nt(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 tt=["style"];function rt(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 it(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ot=function(e){var n=e.isOpen,t=e.onOpen,r=e.onClose,i=e.previewNode,o=e.setPreviewNode,s=e.nodeById,c=e.linksByNodeId,a=e.nodeByCite,u=e.setSidebarHighlightedNode,d=e.canUndo,f=e.canRedo,x=e.resetPreviewNode,j=e.previousPreviewNode,b=e.nextPreviewNode,v=e.openContextMenu,y=(e.scope,e.setScope,e.windowWidth),C=e.filter,w=e.setFilter,k=e.tagColors,S=e.setTagColors,N=e.macros,P=e.attachDir,D=((0,m.useContext)(yn.N).highlightColor,(0,m.useState)()),I=D[0],z=D[1],L=et("sidebarWidth",400),E=(0,l.Z)(L,2),Z=E[0],T=E[1];(0,m.useEffect)((function(){null!==i&&void 0!==i&&i.id?(t(),z(i)):r()}),[null===i||void 0===i?void 0:i.id]);var R=et("justification",1),B=(0,l.Z)(R,2),F=B[0],H=B[1],W=et("outline",!1),A=(0,l.Z)(W,2),M=A[0],V=A[1],X=(0,m.useState)("sans serif"),_=(X[0],X[1]),q=(0,m.useState)(0),G=(q[0],q[1]),J=(0,m.useState)(!1),Q=J[0],K=J[1];return(0,be.jsx)(ke,{animateOpacity:!1,dimension:"width",in:n,unmountOnExit:!0,startingSize:0,style:{height:"100vh"},children:(0,be.jsx)(Kn.e,{size:{height:"100vh",width:Z},onResizeStop:function(e,n,t,r){T((function(e){return e+r.width}))},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},minWidth:"220px",maxWidth:y-200,children:(0,be.jsxs)(g.k,{flexDir:"column",h:"100vh",pl:2,color:"black",bg:"alt.100",width:"100%",children:[(0,be.jsxs)(g.k,{pl:2,alignItems:"center",color:"black",width:"100%",children:[(0,be.jsx)(g.k,{pt:1,flexShrink:0,children:(0,be.jsx)(Te,{setJustification:H,setIndent:G,setFont:_,justification:F,setPreviewNode:o,canUndo:d,canRedo:f,resetPreviewNode:x,previousPreviewNode:j,nextPreviewNode:b,outline:M,setOutline:V,collapse:Q,setCollapse:K})}),(0,be.jsx)(g.k,{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",onContextMenu:function(e){e.preventDefault(),v(i,e)}}),(0,be.jsx)(g.k,{flexDir:"row",ml:"auto",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(O.T41,{}),"aria-label":"Options",variant:"subtle",onClick:function(e){v(i,e,{left:void 0,top:12,right:20-y,bottom:void 0})}})})]}),(0,be.jsx)(kn.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,tt);return(0,be.jsx)(h.xu,it({style:it(it({},n),{},{borderRadius:0})},t))},children:I&&(0,be.jsxs)(U.gC,{flexGrow:1,alignItems:"left",bg:"alt.100",paddingLeft:4,children:[(0,be.jsx)(Qn,{previewNode:I}),(0,be.jsx)(He,{filter:C,setFilter:w,tagColors:k,setTagColors:S,openContextMenu:v,previewNode:i}),(0,be.jsx)(Jn,{setPreviewNode:o,previewNode:i,nodeById:s,nodeByCite:a,setSidebarHighlightedNode:u,justification:F,justificationList:["justify","start","end","center"],linksByNodeId:c,openContextMenu:v,outline:M,setOutline:V,collapse:Q,macros:N,attachDir:P})]})})]})})})},lt=t(93924),st=t(83986),ct=t(48931),at=t(56769),ut=t(88134),dt=t(47647);function ht(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 gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ht(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ht(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ft=function(e){var n,t=e.filter,r=e.listName,i=e.labelFilter,l=e.displayName,s=e.setFilter,c=e.options,a=void 0===c?[]:c,u=(0,m.useContext)(yn.N).highlightColor,d=(null===a||void 0===a?void 0:a.map((function(e){return{value:e,label:i?e.replace(i,""):e}})))||[],h=(0,m.useState)((null===(n=t[r])||void 0===n?void 0:n.map((function(e){return{value:e,label:i?null===e||void 0===e?void 0:e.replace(i,""):e}})))||[]),g=h[0],f=h[1];return(0,be.jsx)(dt.CUIAutoComplete,{labelStyleProps:{fontWeight:300,fontSize:14},items:d,label:"Add tag to ".concat(l),placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:g,onSelectedItemsChange:function(e){e.selectedItems&&(f(e.selectedItems),s(gt(gt({},t),{},(0,o.Z)({},r,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{mt:2,height:8,focusBorderColor:u,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{justifyContent:"flex-start",fontSize:10,borderColor:u,borderWidth:1,borderRadius:"md",color:u,bg:"",height:4,mb:2},hideToggleButton:!0,itemRenderer:function(e){return e.label}})};function pt(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 xt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jt=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,l=e.tags.map((function(e){return{value:e,label:e}})),s=(0,m.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],a=s[1];return(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(dt.CUIAutoComplete,{items:l,labelStyleProps:{fontWeight:300,fontSize:14},label:"Add tag to color",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(a(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:{height:8,focusBorderColor:i,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,be.jsx)(h.xu,{width:"100%",children:(0,be.jsx)(q.x,{children:e})}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",children:(0,be.jsx)(h.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,be.jsx)(mn.h,{children:(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,be.jsx)(V.sN,{onClick:function(){return r(xt(xt({},t),{},(0,o.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})})]}),(0,be.jsx)(p.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,be.jsx)(ne.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"]})))),a(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},bt=t(24682),vt=t(24189),mt=function(e){var n=e.infoText;return(0,be.jsx)(h.xu,{paddingLeft:"1",children:(0,be.jsx)(f.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,be.jsx)(vt.h,{})})})},yt=["min","max","step","value"],Ct=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,a=(0,oe.Z)(e,yt),u=a.onChange,d=a.label,g=a.infoText,p=(0,m.useContext)(yn.N).highlightColor;return(0,be.jsxs)(h.xu,{pt:1,pb:2,children:[(0,be.jsxs)(h.xu,{display:"flex",alignItems:"flex-end",mb:2,children:[(0,be.jsx)(q.x,{children:d}),g&&(0,be.jsx)(mt,{infoText:g})]}),(0,be.jsxs)(bt.iR,{value:c,onChange:u,min:t,max:i,step:l,children:[(0,be.jsx)(bt.Uj,{children:(0,be.jsx)(bt.Ms,{})}),(0,be.jsx)(f.u,{bg:p,label:c.toFixed(1),children:(0,be.jsx)(bt.gs,{bg:"white"})})]})]},d)},Ot=(0,m.createContext)({subDirs:["dailies",".attach"],attachDir:".attach",roamDir:"~/org",dailyDir:"dailies"});function wt(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 kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var St=function(e){var n=e.filter,t=e.setFilter,r=e.local,i=e.setLocal,o=e.tagColors,l=e.setTagColors,s=e.highlightColor,c=e.colorList,a=e.tags,u=(0,m.useContext)(Ot),d=u.roamDir,f=u.subDirs;return(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Link children to"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,be.jsx)(q.x,{children:"File"});case"heading":return(0,be.jsx)(q.x,{children:"Heading"});default:return(0,be.jsx)(q.x,{children:"Nothing"})}}()}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:""})}))},children:"Nothing"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})})]})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Orphans"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Dailies"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Org-noter pages"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{noter:!e.noter})}))},isChecked:n.noter})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Citations without note files"}),(0,be.jsx)(ut.r,{onChange:function(){t(kt(kt({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Non-existent nodes"}),(0,be.jsx)(ut.r,{onChange:function(){l(kt(kt({},o),{},{bad:"white"})),t(kt(kt({},n),{},{bad:!n.bad}))},isChecked:n.bad})]}),(0,be.jsx)(Ct,{label:"Number of neighbors in local graph",value:r.neighbors,onChange:function(e){return i(kt(kt({},r),{},{neighbors:e}))},min:1,max:5,step:1})]}),(0,be.jsxs)(at.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Directory filters",(0,be.jsx)(at.XE,{})]}),(0,be.jsxs)(at.Hk,{pr:0,mr:0,children:[(0,be.jsx)(ft,{filter:n,setFilter:t,options:f,displayName:"directory blocklist",listName:"dirsBlocklist",labelFilter:d}),(0,be.jsx)(ft,{filter:n,setFilter:t,options:f,displayName:"directory allowlist",listName:"dirsAllowlist",labelFilter:d})]})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Tag filters",(0,be.jsx)(at.XE,{})]}),(0,be.jsxs)(at.Hk,{pr:0,mr:0,children:[(0,be.jsx)(ft,{filter:n,setFilter:t,options:a,displayName:"tag blocklist",listName:"tagsBlacklist"}),(0,be.jsx)(ft,{filter:n,setFilter:t,options:a,displayName:"tag allowlist",listName:"tagsWhitelist"})]})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Tag colors",(0,be.jsx)(at.XE,{})]}),(0,be.jsx)(at.Hk,{pr:0,mr:0,children:(0,be.jsx)(jt,{tags:a,colorList:c,tagColors:o,setTagColors:l,highlightColor:s})})]})]})]})},Nt=t(15267),Pt=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,be.jsxs)(h.xu,{paddingTop:2,children:[(0,be.jsxs)(h.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,be.jsxs)(h.xu,{display:"flex",alignItems:"center",children:[(0,be.jsx)(q.x,{children:r}),i&&(0,be.jsx)(mt,{infoText:i})]}),(0,be.jsx)(ut.r,{isChecked:!!n,onChange:t})]}),(0,be.jsx)(Nt.U,{in:!!n,animateOpacity:!0,children:(0,be.jsx)(h.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]},r)};function Dt(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 It(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Dt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var zt=function(e){var n=e.physics,t=e.setPhysics,r=(0,m.useCallback)((function(e,n,r){t((function(t){return It(It({},t),{},(0,o.Z)({},n,e/r))}))}),[]);return(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(Pt,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(It(It({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Also in local"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return It(It({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,be.jsx)(Ct,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,be.jsx)(Ct,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,be.jsx)(Ct,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,be.jsx)(Ct,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}})]}),(0,be.jsx)(h.xu,{children:(0,be.jsx)(at.UQ,{paddingLeft:3,allowToggle:!0,children:(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(q.x,{children:"Advanced"}),(0,be.jsx)(at.XE,{marginRight:2})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,be.jsx)(Pt,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(It(It({},n),{},{collision:!n.collision}))},children:(0,be.jsx)(Ct,{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,be.jsx)(Ct,{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,be.jsx)(Ct,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}}),(0,be.jsx)(Pt,{label:"Center nodes",value:n.centering,onChange:function(){return t(It(It({},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,be.jsx)(Ct,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})};function Lt(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 Et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Lt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Zt=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,i=e.setMouse;return(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Preview node"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.preview?r.preview[0].toUpperCase()+r.preview.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:"double"}))},children:"Double Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsxs)(g.k,{children:[(0,be.jsx)(q.x,{children:"Expand Node"}),(0,be.jsx)(mt,{infoText:"View only the node and its direct neighbors"})]}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"double"}))},children:"Double Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Open in Emacs"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"double"}))},children:"Double Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Follow Emacs by..."}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsxs)(g.k,{children:[(0,be.jsx)(q.x,{children:"Local graph"}),(0,be.jsx)(mt,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:"add"===n.localSame?"Add":"Replace"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,be.jsx)(Ct,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(Et(Et({},n),{},{zoomSpeed:e}))}}),(0,be.jsx)(Ct,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(Et(Et({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})},Tt=t(46049);function Rt(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 Bt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ft=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsx)(h.xu,{children:(0,be.jsx)(Pt,{label:"Highlight",onChange:function(){return t((function(e){return Bt(Bt({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,be.jsxs)(U.gC,{spacing:1,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,be.jsx)(Ct,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightLinkSize:e})}))}}),(0,be.jsx)(Ct,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightNodeSize:e})}))}}),(0,be.jsx)(Ct,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightFade:e})}))}}),(0,be.jsxs)(Pt,{label:"Highlight Animation",onChange:function(){t((function(e){return Bt(Bt({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,be.jsx)(Ct,{label:"Animation speed",onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,be.jsx)(Tt.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return Bt(Bt({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,be.jsx)("option",{value:e,children:e},e)}))})]})]})})})})},Ht=t(67546),Wt=t(93441);function At(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 Mt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?At(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):At(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Vt=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visValue,l=e.setVisuals,s=e.noEmpty,c=(0,m.useCallback)((function(e){return l((function(n){return Mt(Mt({},n),{},(0,o.Z)({},r,e))}))}),[]);return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:n}),(0,be.jsxs)(vn.J2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(vn.xo,{children:(0,be.jsx)(G.z,{colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{bgColor:i,borderRadius:"sm",height:6,width:6})})}),(0,be.jsx)(mn.h,{children:(0,be.jsx)(vn.yk,{zIndex:"tooltip",maxW:36,position:"relative",children:(0,be.jsxs)(g.k,{flexWrap:"wrap",bgColor:"gray.200",children:[!s&&(0,be.jsx)(h.xu,{onClick:function(){return c("")},justifyContent:"space-between",alignItems:"center",display:"flex",m:1,children:(0,be.jsx)(h.xu,{height:6,width:6,borderColor:"gray.600",borderRadius:"xl",borderWidth:1})}),t.map((function(e){return(0,be.jsx)(h.xu,{m:1,onClick:function(){return c(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"xl",height:6,width:6})},e)}))]})})})]})]})};function Xt(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 _t(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ut=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,o=e.setHighlightColor;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Nodes"}),(0,be.jsx)(f.u,{label:"Shuffle node colors",children:(0,be.jsx)(p.h,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,be.jsx)(Ht.n,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(_t(_t({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,l.Z)(e,1)[0]-(0,l.Z)(n,1)[0]})).map((function(e){var n=(0,l.Z)(e,2);n[0];return n[1]}))}))}})}),(0,be.jsx)(f.u,{label:"Cycle node colors",children:(0,be.jsx)(p.h,{"aria-label":"Shift node colors",icon:(0,be.jsx)(Wt.L,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(_t(_t({},n),{},{nodeColorScheme:[].concat((0,i.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,be.jsx)(V.j2,{width:20,as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,be.jsx)(V.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(_t(_t({},n),{},{nodeColorScheme:e}))},children:M.map((function(e){return(0,be.jsx)(V.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,be.jsx)(h.xu,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Links"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{children:n.linkColorScheme?(0,be.jsx)(h.xu,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(_t(_t({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),M.map((function(e){return(0,be.jsx)(V.sN,{onClick:function(){return t(_t(_t({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Accent"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:M.map((function(e){return(0,be.jsx)(V.sN,{onClick:function(){return o(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,be.jsx)(Vt,{colorList:M,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,be.jsx)(Vt,{colorList:M,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,be.jsx)(Vt,{colorList:M,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,be.jsx)(Vt,{colorList:M,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function qt(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 Gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Jt=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(Ct,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Gt(Gt({},n),{},{nodeRel:e}))}}),(0,be.jsx)(Ct,{label:"Node degree size multiplier",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Gt(Gt({},n),{},{nodeSizeLinks:e}))}}),(0,be.jsx)(Ct,{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 Gt(Gt({},n),{},{nodeZoomSize:e})}))}}),r&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(Ct,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Gt(Gt({},n),{},{nodeOpacity:e}))}}),(0,be.jsx)(Ct,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Gt(Gt({},n),{},{nodeResolution:e}))}})]}),(0,be.jsx)(Ct,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Gt(Gt({},n),{},{linkWidth:e}))}}),r&&(0,be.jsx)(Ct,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Gt(Gt({},n),{},{linkOpacity:e}))}}),(0,be.jsxs)(Pt,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Gt(Gt({},n),{},{arrows:!n.arrows}))},children:[(0,be.jsx)(Ct,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Gt(Gt({},n),{},{arrowsLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Gt(Gt({},n),{},{arrowsPos:e}))}}),(0,be.jsx)(Vt,{colorList:M,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,be.jsxs)(Pt,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Gt(Gt({},n),{},{particles:!n.particles}))},children:[(0,be.jsx)(Ct,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Gt(Gt({},n),{},{particlesNumber:e}))}}),(0,be.jsx)(Ct,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Gt(Gt({},n),{},{particlesWidth:e}))}})]})]})})};function Qt(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 Kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Qt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $t=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Show labels"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:0}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:1}))},children:"On Highlight"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:2}))},children:"Always"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,be.jsxs)(Nt.U,{in:n.labels>1,animateOpacity:!0,children:[(0,be.jsx)(h.xu,{paddingTop:2,children:(0,be.jsx)(Ct,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(Kt(Kt({},n),{},{labelScale:e/2}))}})}),(0,be.jsxs)(h.xu,{paddingTop:2,children:[(0,be.jsx)(Ct,{label:"Label dynamicity",infoText:"By default, labels of nodes with more links will appear earlier than those with fewer. This slider changes the strength of this effect, put it at zero to disable it.",value:n.labelDynamicStrength,min:0,max:1,step:.05,onChange:function(e){return t((function(n){return Kt(Kt({},n),{},{labelDynamicStrength:e})}))}}),(0,be.jsx)(Nt.U,{in:n.labelDynamicStrength>0,children:(0,be.jsx)(Ct,{label:"Dynamic zoom degree cap",infoText:"The maximum number of links that is considered for the 'dynamic zoom effect'. Past this number all number of links are treated the same.",value:n.labelDynamicDegree,min:1,max:15,step:1,onChange:function(e){return t((function(n){return Kt(Kt({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,be.jsx)(Vt,{colorList:M,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(Vt,{colorList:M,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,be.jsx)(Nt.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,be.jsx)(h.xu,{paddingTop:2,children:(0,be.jsx)(Ct,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Kt(Kt({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,be.jsx)(Ct,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Kt(Kt({},n),{},{labelFontSize:e}))}}),(0,be.jsx)(Ct,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Kt(Kt({},n),{},{labelLength:e}))}}),(0,be.jsx)(Ct,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Kt(Kt({},n),{},{labelWordWrap:e}))}}),(0,be.jsx)(Ct,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Kt(Kt({},n),{},{labelLineSpace:e}))}})]})},Yt=t(67690),er=function(){var e=(0,m.useContext)(yn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,be.jsx)(q.x,{children:"Theme"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,be.jsx)(V.j2,{as:G.z,size:"sm",colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:n[0]}),(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{height:6,width:6})}),Object.keys(Yt.n).map((function(e,n){return(0,be.jsxs)(V.sN,{onClick:function(){return t([e,Yt.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,be.jsx)(q.x,{children:e}),(0,be.jsx)(g.k,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(Yt.n[e]).map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};function nr(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 tr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nr(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var rr=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(Pt,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(tr(tr({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,be.jsx)(Ct,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(tr(tr({},n),{},{citeDashLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(tr(tr({},n),{},{citeGapLength:5*e}))}})]}),(0,be.jsx)(Vt,{colorList:M,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,be.jsx)(Vt,{colorList:M,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,be.jsxs)(Pt,{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(tr(tr({},n),{},{refDashes:!n.refDashes}))},children:[(0,be.jsx)(Ct,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(tr(tr({},n),{},{refDashLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(tr(tr({},n),{},{refGapLength:5*e}))}})]}),(0,be.jsx)(Vt,{colorList:M,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})};function ir(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 or(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ir(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ir(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var lr=function(e){var n=e.coloring,t=e.setColoring;return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,be.jsx)(q.x,{children:"Graph coloring"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,size:"sm",colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:"degree"===n.method?"Links":"Communities"}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return or(or({},e),{},{method:"degree"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Number of links"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return or(or({},e),{},{method:"community"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Communities"})]})})]})]})},sr=function(e){var n=e.coloring,t=e.setColoring,r=e.visuals,i=e.setVisuals,o=e.highlightColor,l=e.setHighlightColor,s=e.threeDim,c=(0,m.useCallback)((function(e){return i(e)}),[]);return(0,be.jsxs)(U.gC,{justifyContent:"flex-start",align:"stretch",children:[(0,be.jsx)(er,{}),(0,be.jsx)(lr,{coloring:n,setColoring:t}),(0,be.jsxs)(at.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Colors"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Ut,{visuals:r,setVisualsCallback:c,highlightColor:o,setHighlightColor:l})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Nodes & Links"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Jt,{visuals:r,setVisuals:c,threeDim:s})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Labels"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)($t,{visuals:r,setVisuals:c})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Highlighting"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Ft,{visuals:r,setVisuals:c})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Citations"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(rr,{visuals:r,setVisuals:c})})]})]})]})},cr=["style"];function ar(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 ur(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ar(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ar(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var dr=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,i=e.setThreeDim,o=e.filter,s=e.setFilter,c=e.visuals,a=e.setVisuals,u=e.mouse,d=e.setMouse,g=e.behavior,x=e.setBehavior,j=e.tags,b=e.tagColors,v=e.setTagColors,y=e.coloring,C=e.setColoring,O=e.local,w=e.setLocal,k=et("showTweaks",!1),S=(0,l.Z)(k,2),N=S[0],P=S[1],D=(0,m.useContext)(yn.N),I=D.highlightColor,z=D.setHighlightColor;return N?(0,be.jsxs)(h.xu,{position:"absolute",bg:"alt.100",w:"xs",marginTop:2,marginLeft:2,borderRadius:"lg",paddingBottom:5,zIndex:10,boxShadow:"xl",maxH:"95vh",fontSize:"sm",children:[(0,be.jsxs)(h.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,be.jsx)(f.u,{label:"2D",children:(0,be.jsx)(G.z,{onClick:function(){return i(!r)},variant:"subtle",zIndex:"overlay",children:r?"3D":"2D"})}),(0,be.jsxs)(h.xu,{display:"flex",alignItems:"center",children:[(0,be.jsx)(f.u,{label:"Reset settings to defaults",children:(0,be.jsx)(p.h,{"aria-label":"Reset Defaults",icon:(0,be.jsx)(st.A,{}),onClick:function(){a(F),s(R),d(W),t(T),x(H),C(B),z("purple.500"),w(A)},variant:"subtle",size:"sm"})}),(0,be.jsx)(p.h,{size:"sm",icon:(0,be.jsx)(ct.T,{}),"aria-label":"Close Tweak Panel",variant:"subtle",onClick:function(){return P(!1)}})]})]}),(0,be.jsx)(kn.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,cr);return(0,be.jsx)(h.xu,ur(ur({},t),{},{style:ur(ur({},n),{},{borderRadius:10}),bg:I}))},children:(0,be.jsxs)(at.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Filter"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(St,{filter:o,setFilter:s,tagColors:b,setTagColors:v,highlightColor:I,colorList:M,tags:j,local:O,setLocal:w})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{display:"flex",justifyContent:"space-between",children:(0,be.jsxs)(h.xu,{display:"flex",children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Physics"})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(zt,{physics:n,setPhysics:t})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Visual"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(sr,{visuals:c,setVisuals:a,highlightColor:I,setHighlightColor:z,threeDim:r,coloring:y,setColoring:C})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Behavior"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Zt,{behavior:g,setBehavior:x,mouse:u,setMouse:d})})]})]})})]}):(0,be.jsx)(h.xu,{position:"absolute",zIndex:"overlay",marginTop:1,marginLeft:0,display:N?"none":"block",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Settings",icon:(0,be.jsx)(lt.e,{}),onClick:function(){return P(!0)}})})},hr=t(22663),gr=t.n(hr);function fr(e){var n,t,r,o,l=e.labelBackgroundColor,s=e.labelTextColor,c=e.node,a=e.ctx,u=e.globalScale,d=e.highlightedNodes,h=e.previouslyHighlightedNodes,g=e.visuals,f=e.opacity,p=e.nodeSize,x=e.filteredLinksByNodeId,j=(e.nodeRel,e.hoverNode),b=e.lastHoverNode;if(c&&g.labels){var v=null!==(n=null===j||void 0===j?void 0:j.id)&&void 0!==n?n:"",m=null!==(t=null===b||void 0===b?void 0:b.id)&&void 0!==t?t:"",y=null!==(r=x[c.id])&&void 0!==r?r:[],C=!(!d[c.id]&&!h[c.id]),O=Math.min(5*(u-g.labelScale)+2*Math.pow(Math.min(y.length,g.labelDynamicDegree),g.labelDynamicStrength),1);if(!(O<.01)||C){var w=null!==(o=c.title)&&void 0!==o?o:"",k=w.substring(0,g.labelLength),S=Math.cbrt(g.nodeRel*p(c)/Math.pow(u,g.nodeZoomSize)),N=g.labelFontSize/Math.cbrt(Math.pow(u,g.nodeZoomSize)),P=[1.1*a.measureText(k).width,N].map((function(e){return e+.5*N})),D=function(e,n,t,r,i){return i?Math.max(e,r):1*e*(-1*(n.highlightFade*r-1))}(O,g,0,f,C);if(g.labelBackgroundColor&&g.labelBackgroundOpacity){var I=Sr(l,D*g.labelBackgroundOpacity);a.fillStyle=I,a.fillRect.apply(a,[c.x-P[0]/2,c.y-P[1]/2+S].concat((0,i.Z)(P)))}a.textAlign="center",a.textBaseline="middle";var z=Sr(s,D);a.fillStyle=z,a.font="".concat(N,"px Sans-Serif");var L=gr()(k,{width:g.labelWordWrap}).split("\n"),E=w.length>g.labelLength?[].concat((0,i.Z)(L.slice(0,-1)),["".concat(L.slice(-1),"...")]):L,Z=[v,m].includes(c.id)?1+.3*f:1;E.forEach((function(e,n){a.fillText(e,c.x,c.y+Z*S*8+g.labelLineSpace*N*n)}))}}}function pr(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 xr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pr(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jr=t.e(907).then(t.bind(t,99907)),br=t.g.window?t(24878).f$:null,vr=t.g.window?t(24878).s6:null;function mr(){var e=(0,m.useState)(!1),n=e[0],t=e[1];return(0,m.useEffect)((function(){t(!0)}),[]),n?(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(v.default,{children:(0,be.jsx)("title",{children:"ORUI"})}),(0,be.jsx)(yr,{})]}):null}function yr(){var e=et("3d",!1),n=(0,l.Z)(e,2),t=n[0],r=n[1],s=et("tagCols",{}),c=(0,l.Z)(s,2),a=c[0],x=c[1],b=(0,m.useState)({nodeIds:[],excludedNodeIds:[]}),v=b[0],y=b[1],C=et("physics",T),S=(0,l.Z)(C,2),P=S[0],D=S[1],I=et("filter",R),z=(0,l.Z)(I,2),L=z[0],E=z[1],Z=et("visuals",F),M=(0,l.Z)(Z,2),V=M[0],X=M[1],_=(0,m.useState)(null),U=_[0],q=_[1],G=(0,m.useState)(null),J=G[0],Q=G[1],K=et("behavior",H),$=(0,l.Z)(K,2),Y=$[0],ee=$[1],ne=et("mouse",W),te=(0,l.Z)(ne,2),re=te[0],ie=te[1],oe=et("coloring",B),le=(0,l.Z)(oe,2),se=le[0],ce=le[1],ae=et("local",A),ue=(0,l.Z)(ae,2),de=ue[0],he=ue[1],ge=(0,N.Z)({}),fe=(0,l.Z)(ge,2),pe=fe[0],xe=fe[1],je=xe.set,ve=xe.reset,me=xe.undo,ye=xe.redo,Ce=xe.canUndo,Oe=xe.canRedo,we=(pe.past,pe.present),ke=(pe.future,(0,m.useState)(null)),Se=ke[0],Ne=ke[1],Pe=(0,u.q)(),Ie=Pe.isOpen,ze=Pe.onOpen,Le=Pe.onClose,Ee=(0,m.useRef)({}),Ze=(0,m.useRef)({}),Te=(0,m.useRef)({}),Re=(0,m.useRef)([]),Be=(0,m.useRef)(null),Fe=(0,m.useState)({}),He=Fe[0],We=Fe[1],Ae=(0,m.useRef)({}),Me=(0,m.useRef)({nodes:[],links:[]});(0,m.useEffect)((function(){U&&(Me.current=U)}),[U]);var Ve=(0,m.useContext)(yn.N).setEmacsTheme,Xe=(0,m.useRef)({nodeIds:[],excludedNodeIds:[]}),_e=(0,m.useRef)(H);_e.current=Y;var Ue=(0,m.useRef)(null);Xe.current=v;var qe=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=Be.current,s=Xe.current,c=_e.current,a=null!==(t=Ze.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,i.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&y({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,o,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if("add"!==c.localSame)return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);y((function(e){return xr(xr({},e),{},{nodeIds:[].concat((0,i.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50)}};(0,m.useEffect)((function(){Ue.current=new k.Z("ws://localhost:35903"),Ue.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),Ue.current.addEventListener("message",(function(e){var n=_e.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Ee.current;Re.current=null!==(n=e.tags)&&void 0!==n?n:[];var c=null!==(t=e.nodes)&&void 0!==t?t:[],a=null!==(r=e.links)&&void 0!==r?r:[],u=c.reduce((function(e,n){var t;return xr(xr({},e),{},(0,o.Z)({},n.file,[].concat((0,i.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,r;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(null===(r=n.title)||void 0===r?void 0:r.replace(/ *\[\d*\/\d*\] */g,"")))})).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"}})):[]}));Ee.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,i.Z)(a),(0,i.Z)(d),(0,i.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Ee.current[n]?Ee.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),xr(xr({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),xr(xr({},e),{},{type:"bad"}))}));Ee.current=xr(xr({},Ee.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Ze.current=p.reduce((function(e,n){var t,r,l;return xr(xr({},e),{},(l={},(0,o.Z)(l,n.source,[].concat((0,i.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,o.Z)(l,n.target,[].concat((0,i.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,i.Z)(c),f);Te.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?xr(xr({},e),{},(0,o.Z)({},i,n)):e}),{});var j={nodes:x,links:p},b=Me.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return Me.current=v,void q(v)}var m=[].concat((0,i.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=Ee.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[xr(xr({},e),t)]:[]}))),(0,i.Z)(Object.keys(Ee.current).filter((function(e){return!s[e]})).map((function(e){return Ee.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return xr(xr({},e),{},(0,o.Z)({},r,t))}),{}),C=p.map((function(e){var n=wr(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return xr(xr({},e),{},{source:m[y[r]],target:m[y[i]]})}));q({nodes:m,links:C})}(t.data);case"variables":return We(t.data),void console.log(t);case"theme":return Ve(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=Y.zoomSpeed,s=Y.zoomPadding;qe("local",t.data.id,r,s),Q(t.data.id);break;case"zoom":var c,a,u=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;qe("zoom",t.data.id,u,d),Q(t.data.id);break;case"follow":qe(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),Q(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,m.useEffect)((function(){var e=Be.current;!e||v.nodeIds.length>1||(v.nodeIds.length||!P.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[v.nodeIds]);var Ge=(0,j.iP)(),Je=(0,l.Z)(Ge,2),Qe=Je[0],Ke=Je[1],$e=(0,m.useRef)(),Ye=(0,m.useState)(null),en=Ye[0],nn=Ye[1],tn=(0,m.useState)({left:0,top:0,right:void 0,bottom:void 0}),rn=tn[0],on=tn[1],ln=(0,u.q)();(0,d.O)({ref:$e,handler:function(){ln.onClose()}});var sn=function(e,n,t){on(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),nn(e),ln.onOpen()},cn=function(e,n){"remove"!==n?"replace"!==n?v.nodeIds.includes(e.id)||y((function(n){return xr(xr({},n),{},{nodeIds:[].concat((0,i.Z)(n.nodeIds),[e.id])})})):y({nodeIds:[e.id],excludedNodeIds:[]}):y((function(n){return xr(xr({},n),{},{excludedNodeIds:[].concat((0,i.Z)(n.excludedNodeIds),[e.id])})}))},an=(0,m.useState)({type:"Graph",title:"Graph",icon:(0,be.jsx)(O.DvO,{})}),un=(an[0],an[1],et("mainWindowWidth",Qe)),dn=(0,l.Z)(un,2),hn=dn[0],gn=dn[1];return console.log(He),(0,be.jsx)(Ot.Provider,{value:xr({},He),children:(0,be.jsxs)(h.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,be.jsx)(dr,{physics:P,setPhysics:D,threeDim:t,setThreeDim:r,filter:L,setFilter:E,visuals:V,setVisuals:X,mouse:re,setMouse:ie,behavior:Y,setBehavior:ee,tagColors:a,setTagColors:x,coloring:se,setColoring:ce,local:de,setLocal:he,tags:Re.current}),(0,be.jsx)(h.xu,{position:"absolute",children:U&&(0,be.jsx)(Cr,{nodeById:Ee.current,linksByNodeId:Ze.current,webSocket:Ue.current,variables:He,physics:P,graphData:U,threeDim:t,emacsNodeId:J,filter:L,visuals:V,behavior:Y,mouse:re,scope:v,setScope:y,tagColors:a,setPreviewNode:je,sidebarHighlightedNode:Se,windowWidth:Qe,windowHeight:Ke,openContextMenu:sn,contextMenu:ln,handleLocal:cn,mainWindowWidth:hn,setMainWindowWidth:gn,setContextMenuTarget:nn,graphRef:Be,clusterRef:Ae,coloring:se,local:de})}),(0,be.jsx)(h.xu,{position:"relative",zIndex:4,width:"100%",children:(0,be.jsx)(g.k,{className:"headerBar",h:10,flexDir:"column",children:(0,be.jsx)(g.k,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,be.jsxs)(g.k,{height:"100%",flexDirection:"row",children:[v.nodeIds.length>0&&(0,be.jsx)(f.u,{label:"Return to main graph",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(O.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return y((function(e){return xr(xr({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,be.jsx)(f.u,{label:Ie?"Close sidebar":"Open sidebar",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(w.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ie?Le:ze})})]})})})}),(0,be.jsx)(h.xu,{position:"relative",zIndex:4,children:(0,be.jsx)(ot,{isOpen:Ie,onOpen:ze,onClose:Le,previewNode:we,setPreviewNode:je,canUndo:Ce,canRedo:Oe,previousPreviewNode:me,nextPreviewNode:ye,resetPreviewNode:ve,setSidebarHighlightedNode:Ne,openContextMenu:sn,scope:v,setScope:y,windowWidth:Qe,tagColors:a,setTagColors:x,filter:L,setFilter:E,macros:He.katexMacros,attachDir:He.attachDir||"",nodeById:Ee.current,linksByNodeId:Ze.current,nodeByCite:Te.current})}),ln.isOpen&&(0,be.jsx)("div",{ref:$e,children:(0,be.jsx)(De,{scope:v,target:en,background:!1,coordinates:rn,handleLocal:cn,menuClose:ln.onClose.bind(ln),webSocket:Ue.current,setPreviewNode:je,setFilter:E,filter:L,setTagColors:x,tagColors:a})})]})})}var Cr=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,u=e.threeDim,d=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,p=e.nodeById,j=e.visuals,v=e.behavior,y=e.mouse,O=e.scope,w=e.local,k=(e.setScope,e.webSocket),N=e.tagColors,P=e.setPreviewNode,D=e.sidebarHighlightedNode,I=e.windowWidth,z=e.windowHeight,L=(e.setContextMenuTarget,e.openContextMenu),E=e.contextMenu,T=e.handleLocal,R=e.variables,B=e.clusterRef,F=e.coloring,H=R.dailyDir,W=(R.roamDir,(0,m.useState)(null)),A=W[0],V=W[1],X=(0,a.useTheme)(),_=(0,m.useContext)(yn.N).emacsTheme,U=function(e,n,t){switch(e){case y.preview:P(n);break;case y.local:T(n,v.localSame);break;case y.follow:re(n,k);break;case y.context:L(n,t)}},q=(0,m.useRef)(null);(0,m.useEffect)((function(){f&&V(p[f])}),[f]);var G=(0,m.useRef)({}),J=(0,m.useRef)({}),Q=(0,m.useMemo)((function(){var e;J.current={};var n=null===s||void 0===s||null===(e=s.nodes)||void 0===e?void 0:e.filter((function(e){var n,t,r,i,l=e;return g.dirsBlocklist.length&&g.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||g.dirsAllowlist.length>0&&!g.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==g&&void 0!==g&&g.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||g.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(J.current=xr(xr({},J.current),{},(0,o.Z)({},l.id,l)),!1):!g.noter||null===(i=l.properties)||void 0===i||!i.NOTER_PAGE||(J.current=xr(xr({},J.current),{},(0,o.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=d[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!J.current[e.source]&&!J.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})),r=s.links.filter((function(e){var n=wr(e),r=(0,l.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var s=e;return g.parent?"heading"===g.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));G.current=r.reduce((function(e,n){var t,r,s,c=n,a=wr(c),u=(0,l.Z)(a,2),d=u[0],h=u[1];return xr(xr({},e),{},(s={},(0,o.Z)(s,d,[].concat((0,i.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[c])),(0,o.Z)(s,h,[].concat((0,i.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=wr(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===F.method){var a=C()().nodes(t).edges(c);B.current=a()}return{nodes:n,links:r}}),[g,s,F.method]),K=(0,m.useState)({nodes:[],links:[]}),$=K[0],Y=K[1];(0,m.useEffect)((function(){if(O.nodeIds.length){var e=O.nodeIds.length>1?$.nodes.filter((function(e){return!O.excludedNodeIds.includes(e.id)})):[],n=e.map((function(e){return e.id})),t=function(e,n,t){var r=[e[0]],i=[],o=[e[0]];return Array.from({length:t},(function(){r.forEach((function(e){var t;(null!==(t=G.current[e])&&void 0!==t?t:[]).forEach((function(e){var t=wr(e),r=(0,l.Z)(t,2),s=r[0],c=r[1];n.some((function(e){return[s,c].includes(e)}))||(o.includes(s)?o.includes(c)||i.push(c):i.push(s))}))})),r=i,i.forEach((function(e){return e&&o.push(e)})),i=[]})),o}(O.nodeIds,O.excludedNodeIds,w.neighbors),r=Q.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=G.current[r.id])&&void 0!==i?i:[]).some((function(e){var n=wr(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return O.nodeIds.includes(r)||O.nodeIds.includes(i)})):t.includes(r.id)})).map((function(e){return xr(xr({},e),{},{x:0,y:0,vy:0,vx:0})})),o=[].concat((0,i.Z)(e),(0,i.Z)(r)),s=o.map((function(e){return e.id})),c=(O.nodeIds.length>1?$.links:[]).filter((function(e){O.excludedNodeIds.some((function(n){return wr(e).includes(n)}))})),a=Q.links.filter((function(e){var t=wr(e),r=(0,l.Z)(t,2),i=r[0],o=r[1];return!(c.length&&n.includes(o)&&n.includes(i))&&(s.includes(i)&&s.includes(o))})).map((function(e){var n=wr(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,i.Z)(c),(0,i.Z)(a));Y({nodes:o,links:u})}}),[w.neighbors,g,JSON.stringify(O),JSON.stringify(s),Q.links,Q.nodes]),(0,m.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,jr;case 3:i=e.sent,!t.gravityOn||O.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),u&&r.d3Force("z",null)):(r.d3Force("x",i.forceX().strength(t.gravity)),r.d3Force("y",i.forceY().strength(t.gravity)),u&&r.d3Force("z",i.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",i.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?i.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,u,O]),(0,m.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,O.nodeIds.length]);var ee=(0,m.useRef)(0),ne=(0,m.useState)(1),te=ne[0],ie=ne[1],oe=(0,x._7)((function(e){return ie(e)}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),le=(0,l.Z)(oe,2),se=le[0],ce=le[1],ae=(0,x._7)((function(e){return ie(Math.min(te,-1*(e-1)))}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),ue=(0,l.Z)(ae,2),de=ue[0],he=ue[1],ge=(0,m.useMemo)((function(){var e;if(!q.current)return{};var n=G.current[q.current.id];return n?Object.fromEntries([null===(e=q.current)||void 0===e?void 0:e.id].concat((0,i.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(q.current),JSON.stringify(G.current)]);(0,m.useEffect)((function(){null!==D&&void 0!==D&&D.id?V(D):V(null)}),[D]);var fe=(0,m.useRef)(null);(0,m.useEffect)((function(){if(q.current=A,A&&(fe.current=A),!j.highlightAnim)return ie(A?1:0);A?se():(ce(),te>.5?de():ie(0))}),[A]);var pe=(0,m.useMemo)((function(){return Object.fromEntries(M.map((function(e){var n=kr(e,X),t=M.map((function(e){return[e,b.Z(n,kr(e,X))]}));return[e,Object.fromEntries(t)]})))}),[_]),xe=(0,m.useMemo)((function(){var e,n,t,r=null!==(e=G.current[null===(n=fe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=fe.current)||void 0===t?void 0:t.id].concat((0,i.Z)(r.flatMap((function(e){return wr(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(A),fe.current,G.current]),je=function(e){var n,t,r,i,o,l=null!==(n=null===(t=G.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===F.method?j.nodeColorScheme[(r=l,i=0,o=j.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]:j.nodeColorScheme[l&&B.current[e]%j.nodeColorScheme.length]},ve=function(e,n){return G.current[e].length>G.current[n].length?je(e):je(n)},me=(0,m.useMemo)((function(){return kr(j.labelTextColor,X)}),[j.labelTextColor,_]),ye=(0,m.useMemo)((function(){return kr(j.labelBackgroundColor,X)}),[j.labelBackgroundColor,_]),Ce=function(e){var n,t=null!==(n=G.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*(ge[e.id]||xe[e.id]?1+te*(j.highlightNodeSize-1):1)},Oe=(0,m.useState)(!1),we=Oe[0],ke=Oe[1],Se=(0,m.useRef)(1),Ne={graphData:O.nodeIds.length?$:Q,width:I,height:z,backgroundColor:kr(j.backgroundColor,X),warmupTicks:1===O.nodeIds.length?100:O.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return Se.current=n},nodeColor:function(e){return function(e,n){var t,r,i=ge[e.id]||xe[e.id];if(j.emacsNodeColor&&e.id===f)return kr(j.emacsNodeColor,n);if(N&&null!==e&&void 0!==e&&e.tags.some((function(e){return N[e]}))){var o=N[null===e||void 0===e?void 0:e.tags.filter((function(e){return N[e]}))[0]];return i?pe[o][o](j.highlightFade*te):pe[o][j.backgroundColor](j.highlightFade*te)}return j.citeNodeColor&&null!==e&&void 0!==e&&null!==(t=e.properties)&&void 0!==t&&t.ROAM_REFS&&null!==e&&void 0!==e&&null!==(r=e.properties)&&void 0!==r&&r.FILELESS?i?kr(j.citeNodeColor,n):pe[j.citeNodeColor][j.backgroundColor](j.highlightFade*te):j.refNodeColor&&e.properties.ROAM_REFS?i?kr(j.refNodeColor,n):pe[j.refNodeColor][j.backgroundColor](j.highlightFade*te):i?j.nodeHighlight?pe[je(e.id)][j.nodeHighlight](te):kr(je(e.id),n):pe[je(e.id)][j.backgroundColor](j.highlightFade*te)}(e,X)},nodeRelSize:j.nodeRel,nodeVal:function(e){return Ce(e)/Math.pow(Se.current,j.nodeZoomSize)},nodeCanvasObject:function(e,n,t){fr(xr({nodeRel:j.nodeRel,filteredLinksByNodeId:G.current,lastHoverNode:fe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:ge,previouslyHighlightedNodes:xe,visuals:j,opacity:te,nodeSize:Ce,labelTextColor:me,labelBackgroundColor:ye,hoverNode:A}))},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 kr(j.arrowsColor,X)}: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=Or(e,q.current),o=Or(e,fe.current),l=i||o,s=e;return j.refLinkColor&&"ref"===s.type?l&&(j.refLinkHighlightColor||j.linkHighlight)?pe[j.refLinkColor][j.refLinkHighlightColor||j.linkHighlight](te):pe[j.refLinkColor][j.backgroundColor](j.highlightFade*te):j.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(j.citeLinkHighlightColor||j.linkHighlight)?pe[j.citeLinkColor][j.citeLinkHighlightColor||j.linkHighlight](te):pe[j.citeLinkColor][j.backgroundColor](j.highlightFade*te):function(e,n,t,r){if(!j.linkHighlight&&!j.linkColorScheme&&!t)return kr(ve(e,n),r);if(!t&&!j.linkColorScheme){var i=ve(e,n);return pe[i][j.backgroundColor](j.highlightFade*te)}return t?j.linkHighlight||j.linkColorScheme?j.linkHighlight?j.linkColorScheme?pe[j.linkColorScheme][j.linkHighlight](te):pe[ve(e,n)][j.linkHighlight](te):kr(j.linkColorScheme,r):kr(ve(e,n),r):pe[j.linkColorScheme][j.backgroundColor](j.highlightFade*te)}(t,r,l,X)},linkWidth:function(e){if(1===j.highlightLinkSize)return j.linkWidth;var n=Or(e,q.current),t=Or(e,fe.current);return n||t?j.linkWidth*(1+te*(j.highlightLinkSize-1)):j.linkWidth},linkDirectionalParticleWidth:j.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ee.current<200;if(ee.current=n.timeStamp,r)return U("double",t,n);var i=ee.current;return setTimeout((function(){if(ee.current===i)return U("click",t,n)}),200)},onNodeHover:function(e){j.highlight&&(we||(A||(he(),ie(0)),V(e)))},onNodeRightClick:function(e,n){U("right",e,n)},onNodeDrag:function(e){V(e),ke(!0)},onNodeDragEnd:function(){V(null),ke(!1)}};return(0,be.jsx)(h.xu,{overflow:"hidden",onClick:E.onClose,children:u?(0,be.jsx)(vr,xr(xr({ref:n},Ne),{},{nodeThreeObjectExtend:!0,nodeOpacity:j.nodeOpacity,nodeResolution:j.nodeResolution,linkOpacity:j.linkOpacity,nodeThreeObject:function(e){if(j.labels&&(!(j.labels<3)||ge[e.id])){var n=new S.Z(e.title.substring(0,40));return n.color=kr(j.labelTextColor,X),n.backgroundColor=kr(j.labelBackgroundColor,X),n.padding=2,n.textHeight=8,n}}})):(0,be.jsx)(br,xr(xr({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 Or(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 wr(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function kr(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function Sr(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(20624)}])}},function(e){e.O(0,[774,737,876,228,866,13,874,573,446,911,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-9ebad2ac6fcc0c57103b.js b/out/_next/static/chunks/pages/index-9ebad2ac6fcc0c57103b.js
new file mode 100644
index 0000000..3573dbe
--- /dev/null
+++ b/out/_next/static/chunks/pages/index-9ebad2ac6fcc0c57103b.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{20624:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return Xt},GraphPage:function(){return Gt},default:function(){return qt},getThemeColor:function(){return Kt},hexToRGBA:function(){return Yt},normalizeLinkEnds:function(){return Qt}});var r=t(30266),o=t(83789),i=t(92809),l=t(80318),s=t(809),c=t.n(s),a=t(97375),u=t(68527),d=t(47398),h=t(68921),g=t(105),f=t(27549),p=t(74376),x=t(52596),j=t(9008),b=t(67294),v=t(32802),m=t.n(v),y=t(47516),C=t(63750),O=t(22003),w=t(31122),k=t(7520),S=t(36194),N=[],I={};for(var P in S.oY)for(var D in S.oY[P]){var B=P+D;"LinearNone"===B&&(B="Linear"),N.push(B),I[B]=S.oY[P][D]}var L=I,T={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},z={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],dirsBlocklist:[],dirsAllowlist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},F={method:"degree"},E={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:3,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:10,labelLength:40,labelWordWrap:25,labelLineSpace:1,labelDynamicDegree:8,labelDynamicStrength:.5,highlight:!0,highlightNodeSize:1.1,highlightLinkSize:.7,highlightFade:.8,highlightAnim:!0,animationSpeed:360,algorithmOptions:N,algorithmName:"CircularOut",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:"black",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.2},R={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},Z={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},H={neighbors:1},W=["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"],A=t(57324),M=t(90232),V=t(52072);function _(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function U(e,n){_("open",{id:e.id},n)}var q=t(10219),G=t(44592),X=t(38554),J=t.n(X),Q=t(53869),K=t(99860);function Y(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){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var ne=function(e,n){return $($({},e),{},{delay:(0,G.hj)(n)?n:null===n||void 0===n?void 0:n.enter})},te=function(e,n){return $($({},e),{},{delay:(0,G.hj)(n)?n:null===n||void 0===n?void 0:n.exit})},re=t(85893),oe=["in","unmountOnExit","animateOpacity","startingSize","endingSize","dimension","style","className","transition","transitionEnd"];function ie(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?ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var se=function(e){return null!=e&&parseInt(e.toString(),10)>0},ce={exit:{size:{duration:.2,ease:ee.ease},opacity:{duration:.3,ease:ee.ease}},enter:{size:{duration:.3,ease:ee.ease},opacity:{duration:.4,ease:ee.ease}}},ae={exit:function(e){var n,t,r=e.animateOpacity,o=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:se(o)?1:0}),{},(t={overflow:"hidden"},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:te(ce.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,o=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:1}),{},(t={},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:ne(ce.enter,c)),t))}},ue=b.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,u=void 0===a?"auto":a,d=e.dimension,h=void 0===d?"height":d,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,q.Z)(e,oe),v=b.useState(!1),m=(0,l.Z)(v,2),y=m[0],C=m[1];b.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,G.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var O=parseFloat(c.toString())>0,w={startingSize:c,endingSize:u,animateOpacity:i,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:J()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:O?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,re.jsx)(Q.M,{initial:!1,custom:w,children:k&&(0,re.jsx)(K.E.div,le(le({ref:n},j),{},{className:(0,G.cx)("chakra-collapse",f),style:le({overflow:"hidden",display:"block"},g),custom:w,variants:ae,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));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,i.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}G.Ts&&(ue.displayName="Collapse");var ge=function(e){var n=e.setTagColors,t=e.setFilter,r=e.filter,l=e.tagColors,s=e.target,c=r.tagsBlacklist,d=r.tagsWhitelist,h=c.indexOf(s)>-1,g=d.indexOf(s)>-1,f=(0,a.qY)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{icon:(0,re.jsx)(u.Box,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:f.onToggle,children:(0,re.jsx)(u.Text,{children:"Change color"})}),(0,re.jsx)(ue,{in:f.isOpen,children:(0,re.jsxs)(u.Flex,{ml:2,mt:2,flexWrap:"wrap",children:[(0,re.jsx)(u.Box,{children:(0,re.jsx)(u.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n((function(e){return Object.fromEntries(Object.keys(e).filter((function(e){return e!==s})).map((function(n){return[n,e[n]]})))}))},bgColor:"",m:1,borderRadius:"sm",borderColor:"gray.600",borderWidth:1,height:3,width:3})},"empty"),W.map((function(e){return(0,re.jsx)(u.Box,{children:(0,re.jsx)(u.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n(he(he({},l),{},(0,i.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!g&&(0,re.jsx)(A.sN,{onClick:function(){t(h?function(e){return he(he({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsBlacklist:[].concat((0,o.Z)(e.tagsBlacklist),[s])})})},icon:h?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewOffIcon,{}),children:h?"Remove from blocklist":"Add to blocklist"}),!h&&(0,re.jsx)(A.sN,{onClick:function(){t(g?function(e){return he(he({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsWhitelist:[].concat((0,o.Z)(e.tagsWhitelist),[s])})})},icon:g?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewIcon,{}),children:g?"Remove from allowlist":"Add to allowlist"})]})},fe=function(e){e.background;var n,t,r=e.target,o=(e.nodeType,e.coordinates),i=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,d=e.setPreviewNode,g=e.setTagColors,f=e.tagColors,p=e.setFilter,x=e.filter,j=(0,a.qY)(),v=j.isOpen,m=j.onOpen,C=j.onClose;(0,b.useRef)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,re.jsx)(A.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:o.left,top:o.top,right:o.right,bottom:o.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,re.jsxs)(re.Fragment,{children:[r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(u.Heading,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,re.jsx)(A.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{onClick:function(){return i(r,"add")},icon:(0,re.jsx)(V.PlusSquareIcon,{}),children:"Expand local graph at node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"replace")},icon:(0,re.jsx)(y.DvO,{}),children:"Open local graph for this node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"remove")},icon:(0,re.jsx)(V.MinusIcon,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.AddIcon,{}),onClick:function(){return function(e,n){_("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.EditIcon,{}),onClick:function(){return U(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ExternalLinkIcon,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(y.DvO,{}),onClick:function(){return i(r,"replace")},children:"Open local graph"}),(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ViewIcon,{}),onClick:function(){d(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(A.sN,{closeOnSelect:!1,icon:(0,re.jsx)(V.DeleteIcon,{color:"red.500"}),color:"red.500",onClick:m,children:"Permanently delete note"})]}):(0,re.jsx)(ge,{target:r,tagColors:f,filter:x,setTagColors:g,setFilter:p})})}),"string"!==typeof r&&(0,re.jsxs)(M.u_,{isCentered:!0,isOpen:v,onClose:C,children:[(0,re.jsx)(M.ZA,{}),(0,re.jsxs)(M.hz,{zIndex:"popover",children:[(0,re.jsx)(M.xB,{children:"Delete node?"}),(0,re.jsx)(M.ol,{}),(0,re.jsx)(M.fe,{children:(0,re.jsxs)(u.VStack,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,re.jsx)(u.Text,{children:"This will permanently delete your note:"}),(0,re.jsx)(u.Text,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(u.Text,{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,re.jsx)(u.Text,{children:"Are you sure you want to do continue?"})]})}),(0,re.jsxs)(M.mz,{children:[(0,re.jsx)(h.Button,{mr:3,onClick:function(){console.log("closing"),C(),l()},children:"Cancel"}),(0,re.jsx)(h.Button,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&_("delete",{id:e.id,file:e.file},n)}(r,c),C(),l()},children:"Delete node"})]})]})]})]})},pe=t(5434),xe=t(51649),je=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),o=e.canRedo,i=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,g=e.setCollapse;return(0,re.jsxs)(u.Flex,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,re.jsx)(u.Flex,{children:(0,re.jsxs)(h.ButtonGroup,{isAttached:!0,children:[(0,re.jsx)(d.u,{label:"Go backward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronLeftIcon,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return i()}})}),(0,re.jsx)(d.u,{label:"Go forward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronRightIcon,{}),"aria-label":"Next node",disabled:!o,onClick:function(){return l()}})})]})}),(0,re.jsxs)(u.Flex,{children:[(0,re.jsx)(d.u,{label:"Justify content",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:[(0,re.jsx)(y.v9V,{},"justify"),(0,re.jsx)(y.YSr,{},"left"),(0,re.jsx)(y.RXA,{},"right"),(0,re.jsx)(y.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,re.jsx)(d.u,{label:"Toggle outline view",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:s?(0,re.jsx)(xe.XQM,{}):(0,re.jsx)(xe.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,re.jsx)(d.u,{label:"Toggle headers",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,re.jsx)(pe.omV,{}):(0,re.jsx)(pe.egf,{}),onClick:function(){return g((function(e){return!e}))}})})]})]})},be=t(96356);function ve(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 me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ve(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ye=function(e){var n,t,r,i=e.filter,l=e.setFilter,s=e.tagColors,c=(e.setTagColors,e.openContextMenu),a=e.previewNode;return null!==a&&void 0!==a&&a.tags&&null!==(null===a||void 0===a||null===(n=a.tags)||void 0===n?void 0:n[0])?(0,re.jsx)(u.Flex,{mb:2,flexWrap:"wrap",children:null===a||void 0===a||null===(t=a.tags)||void 0===t||null===(r=t.map)||void 0===r?void 0:r.call(t,(function(e){var n,t,r,a=null!==(n=i.tagsBlacklist)&&void 0!==n?n:[],u=null!==(t=i.tagsWhitelist)&&void 0!==t?t:[],d=a.includes(e),h=u.includes(e);return(0,re.jsxs)(be.Tag,{tabIndex:0,mr:2,mt:2,onContextMenu:function(n){n.preventDefault(),c(e,n)},cursor:"pointer",onClick:function(){l(d?function(n){return me(me({},n),{},{tagsBlacklist:n.tagsBlacklist.filter((function(n){return n!==e})),tagsWhitelist:[].concat((0,o.Z)(n.tagsWhitelist),[e])})}:h?function(n){return me(me({},n),{},{tagsWhitelist:n.tagsWhitelist.filter((function(n){return n!==e}))})}:function(n){return me(me({},n),{},{tagsBlacklist:[].concat((0,o.Z)(n.tagsBlacklist),[e])})})},size:"sm",variant:"outline",colorScheme:(null===(r=s[e])||void 0===r?void 0:r.replaceAll(/(.*?)\..*/g,"$1"))||void 0,children:[(0,re.jsx)(be.TagLabel,{children:e}),d?(0,re.jsx)(be.TagRightIcon,{as:V.ViewOffIcon}):h?(0,re.jsx)(be.TagRightIcon,{as:V.ViewIcon}):null]},e)}))}):null},Ce=t(18835),Oe=t.n(Ce),we=t(13816),ke=t.n(we),Se=t(42728),Ne=t.n(Se),Ie=t(77890),Pe=t.n(Ie),De=t(94986),Be=t.n(De),Le=t(88541),Te=t.n(Le),ze=t(71167),Fe=t.n(ze),Ee=(t(85062),t(27431)),Re=t.n(Ee),Ze=t(12861),He=t.n(Ze),We=t(10043),Ae=t.n(We),Me=t(80816),Ve=t(93545),_e=t.n(Ve),Ue=t(15941),qe=t.n(Ue),Ge=t(67597),Xe=t.n(Ge),Je=t(44549),Qe=t.n(Je),Ke=t(78818),Ye=t.n(Ke),$e=t(32095),en=t(46871),nn=t(29356),tn={".headingFlex":{flexDirection:"row-reverse",justifyContent:"flex-end"},".outlineHeadingButton":{display:"none"},h1:{color:"black",lineHeight:"1.2",fontSize:"16",fontWeight:"bold",paddingTop:2},h2:{fontSize:"14",color:"black",fontWeight:"bold",fontStyle:"bold italic",paddingTop:2},h3:{fontSize:"13",color:"black",paddingTop:2},h4:{fontSize:"12",fontStyle:"italic",color:"black",paddingTop:2},".sectionContent":{paddingTop:2}},rn={".headingFlex":{flexDirection:"row",justifyContent:"flex-start"},".viewerHeadingButton":{display:"none"},".sectionContent":{mt:3,paddingLeft:4,ml:"11px",borderLeftWidth:"1px",borderLeftColor:"gray.500"},".preHeadingContent":{},"h1,h2,h3,h4,h5,h6,h7,h8":{pl:1,lineHeight:"1.25",color:"black",fontSize:15,fontWeight:700},".sec":{pt:1},".wrapClass > div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},on={".katex":{overflowX:"scroll"},ol:{paddingLeft:4,py:1},"li::marker":{fontSize:12,fontWeight:"bold"},li:{pt:1},ul:{paddingLeft:"5"},p:{fontSize:"14",fontWeight:"500 !important",pb:2},div:{hyphens:"auto !important"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".TODO":{color:"red.500"},".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"},".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":{color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"white",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:{borderRadius:"3px",backgroundColor:"white",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",backgroundColor:"white"},"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"}},ln=t(86658),sn=["style"];function cn(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 an(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var un=function(e){var n=e.noUnderline,t=e.id,r=e.setSidebarHighlightedNode,o=e.setPreviewNode,i=e.nodeById,l=e.openContextMenu,s=e.href,c=e.children,a=e.isWiki,d=(0,b.useContext)(nn.N).highlightColor,h=Kt(d,(0,g.Fg)()),f=(s.replaceAll(/(.*?)\:?.*/g,"$1"),s.replaceAll(/.*?\:(.*)/g,"$1")),p=null!==t&&void 0!==t?t:f,x=a?"[[".concat(c,"]]"):c;return(0,re.jsx)(u.Text,{as:"a",onMouseEnter:function(){return r(i[p])},onMouseLeave:function(){return r({})},tabIndex:0,display:"inline",overflow:"hidden",fontWeight:500,color:d,textDecoration:n?void 0:"underline",onContextMenu:function(e){e.preventDefault(),l(i[f],e)},onClick:function(){return o(i[f])},_hover:{textDecoration:"none",cursor:"pointer",bgColor:h+"22"},_focus:{outlineColor:d},children:x})},dn=function(e){var n=e.href,t=e.children,r=(0,b.useContext)(nn.N).highlightColor;return(0,re.jsxs)(u.Link,{color:r,isExternal:!0,href:n,children:[t,(0,re.jsx)(V.ExternalLinkIcon,{mx:"1px",pb:"2px"})]})},hn=function(e){var n,t=e.href,r=e.children,o=e.nodeById,i=e.setSidebarHighlightedNode,l=e.previewNode,s=e.setPreviewNode,c=e.nodeByCite,a=e.openContextMenu,d=e.outline,h=e.noUnderline,g=e.linksByNodeId,f=e.isWiki,p=e.macros,x=e.attachDir,j=(0,b.useState)(null),v=j[0],m=j[1],y=(0,b.useState)(!1),C=y[0],O=y[1],w=t.replaceAll(/(.*?)\:.*/g,"$1"),k=d?rn:tn;console.log(l);if((0,b.useEffect)((function(){w.replaceAll(/(http)?.*/g,"$1")||v||C&&fetch("http://localhost:35901/node/".concat(B)).then((function(e){return e.text()})).then((function(e){"error"===e||m(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."}))}),[C,v]),!w)return(0,re.jsx)(u.Text,{color:"gray.700",children:r});if(w.replaceAll(/(http)?.*/g,"$1"))return(0,re.jsx)(dn,{href:t,children:r});var S,N,I,P,D=t.replaceAll(/.*?\:(.*)/g,"$1"),B=function(e,n){if("id"===e)return n;if(e.includes("cite")){var t,r=null!==(t=c[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""}(w,D);encodeURIComponent(encodeURIComponent(null===(n=o[B])||void 0===n?void 0:n.file));return B?(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)($e.J2,{gutter:12,trigger:"hover",placement:"top-start",children:[(0,re.jsx)($e.xo,{children:(0,re.jsx)(u.Box,{display:"inline",onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},children:(0,re.jsx)(un,{id:B,setSidebarHighlightedNode:i,setPreviewNode:s,nodeById:o,href:t,children:r,nodeByCite:c,openContextMenu:a,noUnderline:h,isWiki:f},null!==(S=null===(N=o[B])||void 0===N?void 0:N.title)&&void 0!==S?S:B)})}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)($e.yk,{transform:"scale(1)",boxShadow:"xl",position:"relative",zIndex:"tooltip",onMouseEnter:function(){var e;i(null!==(e=o[B])&&void 0!==e?e:{})},onMouseLeave:function(){i({})},children:[(0,re.jsx)($e.QH,{}),(0,re.jsx)($e.b,{pb:5,fontSize:"xs",position:"relative",zIndex:"tooltip",transform:"scale(1)",width:"100%",children:(0,re.jsx)(ln.$B,{autoHeight:!0,autoHeightMax:300,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,sn);return(0,re.jsx)(u.Box,an({style:an(an({},n),{},{borderRadius:0})},t))},children:(0,re.jsx)(u.Box,{w:"100%",color:"black",px:3,sx:an(an({},on),k),children:(0,re.jsx)(Cn,{previewText:v,nodeById:o,setSidebarHighlightedNode:i,setPreviewNode:s,nodeByCite:c,openContextMenu:a,outline:d,linksByNodeId:g,macros:p,attachDir:x,previewNode:o[B],collapse:!1})})})})]},null!==(I=null===(P=o[B])||void 0===P?void 0:P.title)&&void 0!==I?I:B)})]})}):(0,re.jsx)(u.Text,{as:"span",display:"inline",className:t,color:"base.700",cursor:"not-allowed",children:r})},gn=t(25675),fn=t(62520),pn=t.n(fn),xn=function(e){var n=e.src,t=e.file,r=(0,b.useState)(null);r[0],r[1];if(n.replaceAll(/(http)?.*/g,"$1"))return console.log(n.replaceAll(/(http)?.*/g,"$1")),(0,re.jsx)(gn.default,{layout:"responsive",loader:function(e){var n=e.src;return e.width,e.quality,"".concat(n)},src:n,alt:"",width:"auto",height:"auto"});var o=n.replaceAll(/file:/g,""),i=pn().dirname(t),l=pn().isAbsolute(o)||"~"===o.slice(0,1)?o:pn().join(i,o),s=encodeURIComponent(encodeURIComponent(l));return(0,re.jsx)(u.Container,{my:4,position:"relative",children:(0,re.jsx)("img",{alt:"Wow, an image.",src:"http://localhost:35901/img/".concat(s)})})},jn=t(14578),bn=(0,b.createContext)({outline:!1,collapse:!0}),vn=function(e){var n=e.children,t=e.className,r=(0,b.useState)(!0),o=r[0],i=r[1],l=(0,b.useContext)(bn).collapse;if((0,b.useEffect)((function(){i(!l)}),[l]),"h0Wrapper headingWrapper"===t)return(0,re.jsxs)(u.Box,{className:"preHeadingContent",children:[" ",n]});var s=n;return(0,re.jsxs)(u.Box,{className:"sec",children:[(0,re.jsx)(u.Box,{display:"block",children:(0,re.jsxs)(u.Flex,{className:"headingFlex",alignItems:"baseline",children:[o&&s.length>0?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronUpIcon,{}),onClick:function(){return i(!o)},height:2,width:2}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(jn.zOz,{}),onClick:function(){return i(!o)},height:2,width:2})]}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronDownIcon,{}),onClick:function(){return i(!o)}}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(jn.O6Y,{}),onClick:function(){return i(!o)}})]}),s[0]]})}),o&&(0,re.jsx)(u.Box,{className:"sectionContent",children:s.slice(1)})]})};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 yn(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,i.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 Cn=function(e){var n,t,r=e.nodeById,o=e.setSidebarHighlightedNode,l=e.setPreviewNode,s=e.previewText,c=e.nodeByCite,a=e.previewNode,d=e.openContextMenu,h=e.outline,g=e.collapse,f=e.linksByNodeId,p=e.macros,x=e.attachDir;if(!a||!f)return null;var j=Oe()().use(ke()).use(Be()).use(Te(),{idDir:x||void 0}).use(Pe()).use(Ne(),{useSections:!0}),v=(null===(n=f[null===a||void 0===a?void 0:a.id])||void 0===n?void 0:n.reduce((function(e,n){var t=Qt(n).filter((function(e){return e!==a.id})).join("");return yn(yn({},e),{},(0,i.Z)({},t,r[t]))}),{}))||{},m=Object.entries(v),y=Oe()().use(He()).use(qe(),["yaml"]).use(Xe()).use(Me.Z,{permaLinks:Object.keys(v),pageResolver:function(e){var n,t=m.find((function(n){var t;return(null===n||void 0===n||null===(t=n[1])||void 0===t?void 0:t.title)===e}));return[null!==(n=null===t||void 0===t?void 0:t[0])&&void 0!==n?n:""]},hrefTemplate:function(e){return"id:".concat(e)}}).use(Qe()).use(_e()).use(Ae()).use(Ye()),C=".md"===(null===a||void 0===a||null===(t=a.file)||void 0===t?void 0:t.slice(-3)),O=C?y:j;console.log(p);var w=(0,b.useMemo)((function(){return O.use(Fe(),{trust:function(e){return["\\htmlId","\\href"].includes(e.command)},macros:yn({"\\eqref":"\\href{###1}{(\\text{#1})}","\\ref":"\\href{###1}{\\text{#1}}","\\label":"\\htmlId{#1}{}"},p)}).use(Re(),{createElement:b.createElement,components:{a:function(e){var n=e.children,t=e.href;return(0,re.jsx)(hn,{nodeByCite:c,setSidebarHighlightedNode:o,href:"".concat(t),nodeById:r,linksByNodeId:f,setPreviewNode:l,openContextMenu:d,outline:h,previewNode:a,isWiki:C,macros:p,attachDir:x,children:n})},img:function(e){var n=e.src;return(0,re.jsx)(xn,{src:n,file:null===a||void 0===a?void 0:a.file})},section:function(e){var n=e.children,t=e.className;return console.log(t),console.log(a.level),t&&t.slice(-1)==="".concat(a.level)?(0,re.jsx)(u.Box,{children:n.slice(1)}):(0,re.jsx)(vn,{outline:h,collapse:g,className:t,children:n})},p:function(e){var n=e.children;return(0,re.jsx)("p",{lang:"en",children:n})}}})}),[null===a||void 0===a?void 0:a.id]),k=(0,b.useMemo)((function(){return w.processSync(s).result}),[s]);return(0,re.jsx)(bn.Provider,{value:{collapse:g,outline:h},children:k})},On=function(e){var n=e.openContextMenu,t=e.setSidebarHighlightedNode,r=e.nodeById,o=e.nodeByCite,i=e.previewNode,l=e.setPreviewNode,s=e.outline,c=e.collapse,a=e.linksByNodeId,u=e.macros,d=e.attachDir,h=(0,b.useState)(""),g=h[0],f=h[1],p=encodeURIComponent(encodeURIComponent(i.id));return(0,b.useEffect)((function(){fetch("http://localhost:35901/node/".concat(p)).then((function(e){return e.text()})).then((function(e){if(""===e)return"(empty node)";"error"!==e&&(console.log(e),f(e))})).catch((function(e){return f("(could not find node)"),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,re.jsx)(re.Fragment,{children:g&&i&&(0,re.jsx)(Cn,{nodeById:r,previewNode:i,setPreviewNode:l,previewText:g,nodeByCite:o,setSidebarHighlightedNode:t,openContextMenu:n,outline:s,collapse:c,linksByNodeId:a,attachDir:d,macros:u||{}})})},wn=function(e){var n,t=e.previewNode,r=e.setPreviewNode,o=e.setSidebarHighlightedNode,i=e.nodeById,s=e.linksByNodeId,c=e.nodeByCite,a=e.openContextMenu,d=e.outline,h=e.macros,g=e.attachDir,f=(null!==(n=s[null===t||void 0===t?void 0:t.id])&&void 0!==n?n:[]).filter((function(e){var n=Qt(e),r=(0,l.Z)(n,2),o=r[0];r[1];return o!==(null===t||void 0===t?void 0:t.id)})).map((function(e){return e.source}));return(0,re.jsxs)(u.Box,{className:"backlinks",borderRadius:"sm",mt:6,p:4,bg:"white",mb:10,children:[(0,re.jsx)("p",{style:{fontSize:16,fontWeight:600},children:"Linked references (".concat(f.length,")")}),(0,re.jsx)(u.VStack,{py:2,spacing:3,alignItems:"start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(null===t||void 0===t?void 0:t.id)&&f.map((function(e){var n,l,f;n=null===(l=i[e])||void 0===l?void 0:l.title;return(0,re.jsx)(u.Box,{overflow:"hidden",py:1,borderRadius:"sm",width:"100%",children:(0,re.jsx)(hn,{linksByNodeId:s,nodeByCite:c,setSidebarHighlightedNode:o,href:"id:".concat(e),nodeById:i,previewNode:t,setPreviewNode:r,openContextMenu:a,outline:d,noUnderline:!0,attachDir:g,macros:h,children:null===(f=i[e])||void 0===f?void 0:f.title})},e)}))})]})};function kn(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?kn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Nn=function(e){var n=e.setPreviewNode,t=e.justificationList,r=e.justification,o=e.previewNode,i=e.nodeById,l=e.nodeByCite,s=e.setSidebarHighlightedNode,c=e.linksByNodeId,a=e.openContextMenu,d=e.outline,h=e.collapse,g=e.macros,f=e.attachDir,p=d?rn:tn;return(0,re.jsx)(u.Box,{pr:8,pt:2,height:"100%",className:"org",sx:Sn(Sn(Sn({},on),p),{},{textAlign:t[r]}),children:(null===o||void 0===o?void 0:o.id)&&(0,re.jsxs)(u.Flex,{className:"wrapClass",height:"100%",flexDirection:"column",justifyContent:"space-between",children:[(0,re.jsx)(On,{setPreviewNode:n,previewNode:o,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:d,collapse:h,nodeById:i,linksByNodeId:c,macros:g,attachDir:f}),(0,re.jsx)(wn,{setPreviewNode:n,previewNode:o,nodeById:i,linksByNodeId:c,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:d,attachDir:f,macros:g||{}})]})})},In=function(e){var n=e.previewNode;return(0,re.jsx)(u.Flex,{maxW:"90%",children:(0,re.jsx)(u.Heading,{lineHeight:1.2,size:"md",fontWeight:600,pt:4,children:null===n||void 0===n?void 0:n.title})})},Pn=t(29119);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 Bn(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,i.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}function Ln(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Tn(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),i=o.get(),l=void 0!==i?i:n,s=null!=i&&"object"===typeof i&&!1===Array.isArray(i)?Bn(Bn({},n),i):l;s!==i&&o.update(s);var c=(0,b.useState)(s),a=c[0],u=c[1];(0,b.useEffect)((function(){a!==s&&u(s)}),[e]);var d=function(e){e instanceof Function?u((function(n){var t=e(n);return o.update(t),t})):(u(e),o.update(e))};return[a,d]}function Tn(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 zn=["style"];function Fn(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 En(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Rn=function(e){var n=e.isOpen,t=e.onOpen,r=e.onClose,o=e.previewNode,i=e.setPreviewNode,s=e.nodeById,c=e.linksByNodeId,a=e.nodeByCite,d=e.setSidebarHighlightedNode,g=e.canUndo,f=e.canRedo,p=e.resetPreviewNode,x=e.previousPreviewNode,j=e.nextPreviewNode,v=e.openContextMenu,m=(e.scope,e.setScope,e.windowWidth),C=e.filter,O=e.setFilter,w=e.tagColors,k=e.setTagColors,S=e.macros,N=e.attachDir,I=((0,b.useContext)(nn.N).highlightColor,(0,b.useState)()),P=I[0],D=I[1],B=Ln("sidebarWidth",400),L=(0,l.Z)(B,2),T=L[0],z=L[1];(0,b.useEffect)((function(){null!==o&&void 0!==o&&o.id?(t(),D(o)):r()}),[null===o||void 0===o?void 0:o.id]);var F=Ln("justification",1),E=(0,l.Z)(F,2),R=E[0],Z=E[1],H=Ln("outline",!1),W=(0,l.Z)(H,2),A=W[0],M=W[1],V=(0,b.useState)("sans serif"),_=(V[0],V[1]),U=(0,b.useState)(0),G=(U[0],U[1]),X=(0,b.useState)(!1),J=X[0],Q=X[1];return(0,re.jsx)(ue,{animateOpacity:!1,dimension:"width",in:n,unmountOnExit:!0,startingSize:0,style:{height:"100vh"},children:(0,re.jsx)(Pn.e,{size:{height:"100vh",width:T},onResizeStop:function(e,n,t,r){z((function(e){return e+r.width}))},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},minWidth:"220px",maxWidth:m-200,children:(0,re.jsxs)(u.Flex,{flexDir:"column",h:"100vh",pl:2,color:"black",bg:"alt.100",width:"100%",children:[(0,re.jsxs)(u.Flex,{pl:2,alignItems:"center",color:"black",width:"100%",children:[(0,re.jsx)(u.Flex,{pt:1,flexShrink:0,children:(0,re.jsx)(je,{setJustification:Z,setIndent:G,setFont:_,justification:R,setPreviewNode:i,canUndo:g,canRedo:f,resetPreviewNode:p,previousPreviewNode:x,nextPreviewNode:j,outline:A,setOutline:M,collapse:J,setCollapse:Q})}),(0,re.jsx)(u.Flex,{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",onContextMenu:function(e){e.preventDefault(),v(o,e)}}),(0,re.jsx)(u.Flex,{flexDir:"row",ml:"auto",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.T41,{}),"aria-label":"Options",variant:"subtle",onClick:function(e){v(o,e,{left:void 0,top:12,right:20-m,bottom:void 0})}})})]}),(0,re.jsx)(ln.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,zn);return(0,re.jsx)(u.Box,En({style:En(En({},n),{},{borderRadius:0})},t))},children:P&&(0,re.jsxs)(u.VStack,{flexGrow:1,alignItems:"left",bg:"alt.100",paddingLeft:4,children:[(0,re.jsx)(In,{previewNode:P}),(0,re.jsx)(ye,{filter:C,setFilter:O,tagColors:w,setTagColors:k,openContextMenu:v,previewNode:o}),(0,re.jsx)(Nn,{setPreviewNode:i,previewNode:o,nodeById:s,nodeByCite:a,setSidebarHighlightedNode:d,justification:R,justificationList:["justify","start","end","center"],linksByNodeId:c,openContextMenu:v,outline:A,setOutline:M,collapse:J,macros:S,attachDir:N})]})})]})})})},Zn=t(94090),Hn=t(88696),Wn=t(47647);function An(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 Mn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?An(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):An(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Vn=function(e){var n,t=e.filter,r=e.listName,o=e.labelFilter,l=e.displayName,s=e.setFilter,c=e.options,a=void 0===c?[]:c,u=(0,b.useContext)(nn.N).highlightColor,d=(null===a||void 0===a?void 0:a.map((function(e){return{value:e,label:o?e.replace(o,""):e}})))||[],h=(0,b.useState)((null===(n=t[r])||void 0===n?void 0:n.map((function(e){return{value:e,label:o?null===e||void 0===e?void 0:e.replace(o,""):e}})))||[]),g=h[0],f=h[1];return(0,re.jsx)(Wn.CUIAutoComplete,{labelStyleProps:{fontWeight:300,fontSize:14},items:d,label:"Add tag to ".concat(l),placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:g,onSelectedItemsChange:function(e){e.selectedItems&&(f(e.selectedItems),s(Mn(Mn({},t),{},(0,i.Z)({},r,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{mt:2,height:8,focusBorderColor:u,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{justifyContent:"flex-start",fontSize:10,borderColor:u,borderWidth:1,borderRadius:"md",color:u,bg:"",height:4,mb:2},hideToggleButton:!0,itemRenderer:function(e){return e.label}})};function _n(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 Un(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_n(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_n(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var qn=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,o=e.highlightColor,l=e.tags.map((function(e){return{value:e,label:e}})),s=(0,b.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],a=s[1];return(0,re.jsxs)(u.Box,{children:[(0,re.jsx)(Wn.CUIAutoComplete,{items:l,labelStyleProps:{fontWeight:300,fontSize:14},label:"Add tag to color",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(a(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:{height:8,focusBorderColor:o,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{display:"none",rounded:"full",bg:o,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,re.jsx)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,re.jsx)(u.Box,{width:"100%",children:(0,re.jsx)(u.Text,{children:e})}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",children:(0,re.jsx)(u.Box,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,re.jsx)(en.h_,{children:(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,re.jsx)(A.sN,{onClick:function(){return r(Un(Un({},t),{},(0,i.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Box,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})})]}),(0,re.jsx)(h.IconButton,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,re.jsx)(V.DeleteIcon,{}),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"]})))),a(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},Gn=t(80918),Xn=function(e){var n=e.infoText;return(0,re.jsx)(u.Box,{paddingLeft:"1",children:(0,re.jsx)(d.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,re.jsx)(V.InfoOutlineIcon,{})})})},Jn=["min","max","step","value"],Qn=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,o=void 0===r?10:r,i=e.step,l=void 0===i?.1:i,s=e.value,c=void 0===s?1:s,a=(0,q.Z)(e,Jn),h=a.onChange,g=a.label,f=a.infoText,p=(0,b.useContext)(nn.N).highlightColor;return(0,re.jsxs)(u.Box,{pt:1,pb:2,children:[(0,re.jsxs)(u.Box,{display:"flex",alignItems:"flex-end",mb:2,children:[(0,re.jsx)(u.Text,{children:g}),f&&(0,re.jsx)(Xn,{infoText:f})]}),(0,re.jsxs)(Gn.iR,{value:c,onChange:h,min:t,max:o,step:l,children:[(0,re.jsx)(Gn.Uj,{children:(0,re.jsx)(Gn.Ms,{})}),(0,re.jsx)(d.u,{bg:p,label:c.toFixed(1),children:(0,re.jsx)(Gn.gs,{bg:"white"})})]})]},g)},Kn=(0,b.createContext)({subDirs:["dailies",".attach"],attachDir:".attach",roamDir:"~/org",dailyDir:"dailies"});function Yn(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 $n(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Yn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Yn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var et=function(e){var n=e.filter,t=e.setFilter,r=e.local,o=e.setLocal,i=e.tagColors,l=e.setTagColors,s=e.highlightColor,c=e.colorList,a=e.tags,d=(0,b.useContext)(Kn),g=d.roamDir,f=d.subDirs;return(0,re.jsxs)(u.Box,{children:[(0,re.jsxs)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Link children to"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,re.jsx)(u.Text,{children:"File"});case"heading":return(0,re.jsx)(u.Text,{children:"Heading"});default:return(0,re.jsx)(u.Text,{children:"Nothing"})}}()}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return $n($n({},e),{},{parent:""})}))},children:"Nothing"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return $n($n({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return $n($n({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})})]})]}),(0,re.jsxs)(u.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Orphans"}),(0,re.jsx)(Hn.r,{onChange:function(){t((function(e){return $n($n({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,re.jsxs)(u.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Dailies"}),(0,re.jsx)(Hn.r,{onChange:function(){t((function(e){return $n($n({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,re.jsxs)(u.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Org-noter pages"}),(0,re.jsx)(Hn.r,{onChange:function(){t((function(e){return $n($n({},e),{},{noter:!e.noter})}))},isChecked:n.noter})]}),(0,re.jsxs)(u.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Citations without note files"}),(0,re.jsx)(Hn.r,{onChange:function(){t($n($n({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,re.jsxs)(u.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Non-existent nodes"}),(0,re.jsx)(Hn.r,{onChange:function(){l($n($n({},i),{},{bad:"white"})),t($n($n({},n),{},{bad:!n.bad}))},isChecked:n.bad})]}),(0,re.jsx)(Qn,{label:"Number of neighbors in local graph",value:r.neighbors,onChange:function(e){return o($n($n({},r),{},{neighbors:e}))},min:1,max:5,step:1})]}),(0,re.jsxs)(Zn.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsxs)(Zn.KF,{children:["Directory filters",(0,re.jsx)(Zn.XE,{})]}),(0,re.jsxs)(Zn.Hk,{pr:0,mr:0,children:[(0,re.jsx)(Vn,{filter:n,setFilter:t,options:f,displayName:"directory blocklist",listName:"dirsBlocklist",labelFilter:g}),(0,re.jsx)(Vn,{filter:n,setFilter:t,options:f,displayName:"directory allowlist",listName:"dirsAllowlist",labelFilter:g})]})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsxs)(Zn.KF,{children:["Tag filters",(0,re.jsx)(Zn.XE,{})]}),(0,re.jsxs)(Zn.Hk,{pr:0,mr:0,children:[(0,re.jsx)(Vn,{filter:n,setFilter:t,options:a,displayName:"tag blocklist",listName:"tagsBlacklist"}),(0,re.jsx)(Vn,{filter:n,setFilter:t,options:a,displayName:"tag allowlist",listName:"tagsWhitelist"})]})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsxs)(Zn.KF,{children:["Tag colors",(0,re.jsx)(Zn.XE,{})]}),(0,re.jsx)(Zn.Hk,{pr:0,mr:0,children:(0,re.jsx)(qn,{tags:a,colorList:c,tagColors:i,setTagColors:l,highlightColor:s})})]})]})]})},nt=t(37496),tt=function(e){var n=e.value,t=e.onChange,r=e.label,o=e.infoText,i=e.children;return(0,re.jsxs)(u.Box,{paddingTop:2,children:[(0,re.jsxs)(u.Box,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,re.jsxs)(u.Box,{display:"flex",alignItems:"center",children:[(0,re.jsx)(u.Text,{children:r}),o&&(0,re.jsx)(Xn,{infoText:o})]}),(0,re.jsx)(Hn.r,{isChecked:!!n,onChange:t})]}),(0,re.jsx)(nt.UO,{in:!!n,animateOpacity:!0,children:(0,re.jsx)(u.Box,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:i})})]},r)};function rt(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 ot(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var it=function(e){var n=e.physics,t=e.setPhysics,r=(0,b.useCallback)((function(e,n,r){t((function(t){return ot(ot({},t),{},(0,i.Z)({},n,e/r))}))}),[]);return(0,re.jsxs)(u.Box,{children:[(0,re.jsxs)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(tt,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(ot(ot({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,re.jsxs)(u.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Also in local"}),(0,re.jsx)(Hn.r,{onChange:function(){t((function(e){return ot(ot({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,re.jsx)(Qn,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,re.jsx)(Qn,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,re.jsx)(Qn,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,re.jsx)(Qn,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}})]}),(0,re.jsx)(u.Box,{children:(0,re.jsx)(Zn.UQ,{paddingLeft:3,allowToggle:!0,children:(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsxs)(Zn.KF,{children:[(0,re.jsx)(u.Text,{children:"Advanced"}),(0,re.jsx)(Zn.XE,{marginRight:2})]}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsxs)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,re.jsx)(tt,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(ot(ot({},n),{},{collision:!n.collision}))},children:(0,re.jsx)(Qn,{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,re.jsx)(Qn,{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,re.jsx)(Qn,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}}),(0,re.jsx)(tt,{label:"Center nodes",value:n.centering,onChange:function(){return t(ot(ot({},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,re.jsx)(Qn,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})};function lt(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 st(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?lt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ct=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,o=e.setMouse;return(0,re.jsxs)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Preview node"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(u.Text,{children:r.preview?r.preview[0].toUpperCase()+r.preview.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{preview:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{preview:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{preview:"double"}))},children:"Double Click"})]})]})]})]}),(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(u.Flex,{children:[(0,re.jsx)(u.Text,{children:"Expand Node"}),(0,re.jsx)(Xn,{infoText:"View only the node and its direct neighbors"})]}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(u.Text,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{local:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{local:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{local:"double"}))},children:"Double Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Open in Emacs"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(u.Text,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{follow:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{follow:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{follow:"double"}))},children:"Double Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(st(st({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Follow Emacs by..."}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(u.Text,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(st(st({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,re.jsx)(A.sN,{onClick:function(){return t(st(st({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,re.jsx)(A.sN,{onClick:function(){return t(st(st({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(u.Flex,{children:[(0,re.jsx)(u.Text,{children:"Local graph"}),(0,re.jsx)(Xn,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(u.Text,{children:"add"===n.localSame?"Add":"Replace"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(st(st({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,re.jsx)(A.sN,{onClick:function(){return t(st(st({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,re.jsx)(Qn,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(st(st({},n),{},{zoomSpeed:e}))}}),(0,re.jsx)(Qn,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(st(st({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})},at=t(11391);function ut(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 dt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ut(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ut(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ht=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsx)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsx)(u.Box,{children:(0,re.jsx)(tt,{label:"Highlight",onChange:function(){return t((function(e){return dt(dt({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,re.jsxs)(u.VStack,{spacing:1,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,re.jsx)(Qn,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return dt(dt({},n),{},{highlightLinkSize:e})}))}}),(0,re.jsx)(Qn,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return dt(dt({},n),{},{highlightNodeSize:e})}))}}),(0,re.jsx)(Qn,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return dt(dt({},n),{},{highlightFade:e})}))}}),(0,re.jsxs)(tt,{label:"Highlight Animation",onChange:function(){t((function(e){return dt(dt({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,re.jsx)(Qn,{label:"Animation speed",onChange:function(e){return t((function(n){return dt(dt({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,re.jsx)(at.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return dt(dt({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,re.jsx)("option",{value:e,children:e},e)}))})]})]})})})})};function gt(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 ft(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?gt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var pt=function(e){var n=e.label,t=e.colorList,r=e.value,o=e.visValue,l=e.setVisuals,s=e.noEmpty,c=(0,b.useCallback)((function(e){return l((function(n){return ft(ft({},n),{},(0,i.Z)({},r,e))}))}),[]);return(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:n}),(0,re.jsxs)($e.J2,{isLazy:!0,placement:"right",children:[(0,re.jsx)($e.xo,{children:(0,re.jsx)(h.Button,{colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(u.Box,{bgColor:o,borderRadius:"sm",height:6,width:6})})}),(0,re.jsx)(en.h_,{children:(0,re.jsx)($e.yk,{zIndex:"tooltip",maxW:36,position:"relative",children:(0,re.jsxs)(u.Flex,{flexWrap:"wrap",bgColor:"gray.200",children:[!s&&(0,re.jsx)(u.Box,{onClick:function(){return c("")},justifyContent:"space-between",alignItems:"center",display:"flex",m:1,children:(0,re.jsx)(u.Box,{height:6,width:6,borderColor:"gray.600",borderRadius:"xl",borderWidth:1})}),t.map((function(e){return(0,re.jsx)(u.Box,{m:1,onClick:function(){return c(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Box,{bgColor:e,borderRadius:"xl",height:6,width:6})},e)}))]})})})]})]})};function xt(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 jt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?xt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var bt=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,i=e.setHighlightColor;return(0,re.jsx)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(u.Box,{children:[(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Nodes"}),(0,re.jsx)(d.u,{label:"Shuffle node colors",children:(0,re.jsx)(h.IconButton,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,re.jsx)(V.RepeatIcon,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(jt(jt({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,l.Z)(e,1)[0]-(0,l.Z)(n,1)[0]})).map((function(e){var n=(0,l.Z)(e,2);n[0];return n[1]}))}))}})}),(0,re.jsx)(d.u,{label:"Cycle node colors",children:(0,re.jsx)(h.IconButton,{"aria-label":"Shift node colors",icon:(0,re.jsx)(V.ArrowRightIcon,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(jt(jt({},n),{},{nodeColorScheme:[].concat((0,o.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,re.jsx)(A.j2,{width:20,as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(u.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(u.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,re.jsx)(A.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(jt(jt({},n),{},{nodeColorScheme:e}))},children:W.map((function(e){return(0,re.jsx)(A.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,re.jsx)(u.Box,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Links"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(u.Box,{children:n.linkColorScheme?(0,re.jsx)(u.Box,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,re.jsx)(u.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(u.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(jt(jt({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(u.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),W.map((function(e){return(0,re.jsx)(A.sN,{onClick:function(){return t(jt(jt({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Accent"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(u.Box,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:W.map((function(e){return(0,re.jsx)(A.sN,{onClick:function(){return i(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,re.jsx)(pt,{colorList:W,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,re.jsx)(pt,{colorList:W,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,re.jsx)(pt,{colorList:W,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,re.jsx)(pt,{colorList:W,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function vt(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 mt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?vt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var yt=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,re.jsx)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(u.Box,{children:[(0,re.jsx)(Qn,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(mt(mt({},n),{},{nodeRel:e}))}}),(0,re.jsx)(Qn,{label:"Node degree size multiplier",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(mt(mt({},n),{},{nodeSizeLinks:e}))}}),(0,re.jsx)(Qn,{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 mt(mt({},n),{},{nodeZoomSize:e})}))}}),r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Qn,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(mt(mt({},n),{},{nodeOpacity:e}))}}),(0,re.jsx)(Qn,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(mt(mt({},n),{},{nodeResolution:e}))}})]}),(0,re.jsx)(Qn,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(mt(mt({},n),{},{linkWidth:e}))}}),r&&(0,re.jsx)(Qn,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(mt(mt({},n),{},{linkOpacity:e}))}}),(0,re.jsxs)(tt,{label:"Link arrows",value:n.arrows,onChange:function(){return t(mt(mt({},n),{},{arrows:!n.arrows}))},children:[(0,re.jsx)(Qn,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(mt(mt({},n),{},{arrowsLength:10*e}))}}),(0,re.jsx)(Qn,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(mt(mt({},n),{},{arrowsPos:e}))}}),(0,re.jsx)(pt,{colorList:W,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,re.jsxs)(tt,{label:"Directional Particles",value:n.particles,onChange:function(){return t(mt(mt({},n),{},{particles:!n.particles}))},children:[(0,re.jsx)(Qn,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(mt(mt({},n),{},{particlesNumber:e}))}}),(0,re.jsx)(Qn,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(mt(mt({},n),{},{particlesWidth:e}))}})]})]})})};function Ct(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 Ot(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ct(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ct(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var wt=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsxs)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.400"}),align:"stretch",color:"gray.800",children:[(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(u.Text,{children:"Show labels"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(Ot(Ot({},n),{},{labels:0}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return t(Ot(Ot({},n),{},{labels:1}))},children:"On Highlight"}),(0,re.jsx)(A.sN,{onClick:function(){return t(Ot(Ot({},n),{},{labels:2}))},children:"Always"}),(0,re.jsx)(A.sN,{onClick:function(){return t(Ot(Ot({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,re.jsxs)(nt.UO,{in:n.labels>1,animateOpacity:!0,children:[(0,re.jsx)(u.Box,{paddingTop:2,children:(0,re.jsx)(Qn,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(Ot(Ot({},n),{},{labelScale:e/2}))}})}),(0,re.jsxs)(u.Box,{paddingTop:2,children:[(0,re.jsx)(Qn,{label:"Label dynamicity",infoText:"By default, labels of nodes with more links will appear earlier than those with fewer. This slider changes the strength of this effect, put it at zero to disable it.",value:n.labelDynamicStrength,min:0,max:1,step:.05,onChange:function(e){return t((function(n){return Ot(Ot({},n),{},{labelDynamicStrength:e})}))}}),(0,re.jsx)(nt.UO,{in:n.labelDynamicStrength>0,children:(0,re.jsx)(Qn,{label:"Dynamic zoom degree cap",infoText:"The maximum number of links that is considered for the 'dynamic zoom effect'. Past this number all number of links are treated the same.",value:n.labelDynamicDegree,min:1,max:15,step:1,onChange:function(e){return t((function(n){return Ot(Ot({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,re.jsx)(pt,{colorList:W,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,re.jsxs)(u.Box,{children:[(0,re.jsx)(pt,{colorList:W,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,re.jsx)(nt.UO,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,re.jsx)(u.Box,{paddingTop:2,children:(0,re.jsx)(Qn,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Ot(Ot({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,re.jsx)(Qn,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Ot(Ot({},n),{},{labelFontSize:e}))}}),(0,re.jsx)(Qn,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Ot(Ot({},n),{},{labelLength:e}))}}),(0,re.jsx)(Qn,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Ot(Ot({},n),{},{labelWordWrap:e}))}}),(0,re.jsx)(Qn,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Ot(Ot({},n),{},{labelLineSpace:e}))}})]})},kt=t(67690),St=function(){var e=(0,b.useContext)(nn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(u.Text,{children:"Theme"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n[0]}),(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Box,{height:6,width:6})}),Object.keys(kt.n).map((function(e,n){return(0,re.jsxs)(A.sN,{onClick:function(){return t([e,kt.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,re.jsx)(u.Text,{children:e}),(0,re.jsx)(u.Flex,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(kt.n[e]).map((function(e){return(0,re.jsx)(u.Box,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};function Nt(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 It(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Nt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Nt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pt=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsx)(u.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(u.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(u.Box,{children:[(0,re.jsxs)(tt,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(It(It({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,re.jsx)(Qn,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(It(It({},n),{},{citeDashLength:10*e}))}}),(0,re.jsx)(Qn,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(It(It({},n),{},{citeGapLength:5*e}))}})]}),(0,re.jsx)(pt,{colorList:W,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,re.jsx)(pt,{colorList:W,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,re.jsx)(pt,{colorList:W,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,re.jsxs)(tt,{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(It(It({},n),{},{refDashes:!n.refDashes}))},children:[(0,re.jsx)(Qn,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(It(It({},n),{},{refDashLength:10*e}))}}),(0,re.jsx)(Qn,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(It(It({},n),{},{refGapLength:5*e}))}})]}),(0,re.jsx)(pt,{colorList:W,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,re.jsx)(pt,{colorList:W,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,re.jsx)(pt,{colorList:W,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})};function Dt(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 Bt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Dt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Lt=function(e){var n=e.coloring,t=e.setColoring;return(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(u.Text,{children:"Graph coloring"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:"degree"===n.method?"Links":"Communities"}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return Bt(Bt({},e),{},{method:"degree"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Number of links"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return Bt(Bt({},e),{},{method:"community"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Communities"})]})})]})]})},Tt=function(e){var n=e.coloring,t=e.setColoring,r=e.visuals,o=e.setVisuals,i=e.highlightColor,l=e.setHighlightColor,s=e.threeDim,c=(0,b.useCallback)((function(e){return o(e)}),[]);return(0,re.jsxs)(u.VStack,{justifyContent:"flex-start",align:"stretch",children:[(0,re.jsx)(St,{}),(0,re.jsx)(Lt,{coloring:n,setColoring:t}),(0,re.jsxs)(Zn.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsx)(Zn.KF,{children:(0,re.jsxs)(u.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(u.Text,{children:"Colors"}),(0,re.jsx)(Zn.XE,{marginRight:2})]})}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(bt,{visuals:r,setVisualsCallback:c,highlightColor:i,setHighlightColor:l})})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsx)(Zn.KF,{children:(0,re.jsxs)(u.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(u.Text,{children:"Nodes & Links"}),(0,re.jsx)(Zn.XE,{marginRight:2})]})}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(yt,{visuals:r,setVisuals:c,threeDim:s})})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsx)(Zn.KF,{children:(0,re.jsxs)(u.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(u.Text,{children:"Labels"}),(0,re.jsx)(Zn.XE,{marginRight:2})]})}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(wt,{visuals:r,setVisuals:c})})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsx)(Zn.KF,{children:(0,re.jsxs)(u.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(u.Text,{children:"Highlighting"}),(0,re.jsx)(Zn.XE,{marginRight:2})]})}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(ht,{visuals:r,setVisuals:c})})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsx)(Zn.KF,{children:(0,re.jsxs)(u.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(u.Text,{children:"Citations"}),(0,re.jsx)(Zn.XE,{marginRight:2})]})}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(Pt,{visuals:r,setVisuals:c})})]})]})]})},zt=["style"];function Ft(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 Et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ft(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ft(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Rt=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,o=e.setThreeDim,i=e.filter,s=e.setFilter,c=e.visuals,a=e.setVisuals,g=e.mouse,f=e.setMouse,p=e.behavior,x=e.setBehavior,j=e.tags,v=e.tagColors,m=e.setTagColors,y=e.coloring,C=e.setColoring,O=e.local,w=e.setLocal,k=Ln("showTweaks",!1),S=(0,l.Z)(k,2),N=S[0],I=S[1],P=(0,b.useContext)(nn.N),D=P.highlightColor,B=P.setHighlightColor;return N?(0,re.jsxs)(u.Box,{position:"absolute",bg:"alt.100",w:"xs",marginTop:2,marginLeft:2,borderRadius:"lg",paddingBottom:5,zIndex:10,boxShadow:"xl",maxH:"95vh",fontSize:"sm",children:[(0,re.jsxs)(u.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,re.jsx)(d.u,{label:"2D",children:(0,re.jsx)(h.Button,{onClick:function(){return o(!r)},variant:"subtle",zIndex:"overlay",children:r?"3D":"2D"})}),(0,re.jsxs)(u.Box,{display:"flex",alignItems:"center",children:[(0,re.jsx)(d.u,{label:"Reset settings to defaults",children:(0,re.jsx)(h.IconButton,{"aria-label":"Reset Defaults",icon:(0,re.jsx)(V.RepeatClockIcon,{}),onClick:function(){a(E),s(z),f(Z),t(T),x(R),C(F),B("purple.500"),w(H)},variant:"subtle",size:"sm"})}),(0,re.jsx)(h.IconButton,{size:"sm",icon:(0,re.jsx)(V.CloseIcon,{}),"aria-label":"Close Tweak Panel",variant:"subtle",onClick:function(){return I(!1)}})]})]}),(0,re.jsx)(ln.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,zt);return(0,re.jsx)(u.Box,Et(Et({},t),{},{style:Et(Et({},n),{},{borderRadius:10}),bg:D}))},children:(0,re.jsxs)(Zn.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsxs)(Zn.KF,{children:[(0,re.jsx)(Zn.XE,{marginRight:2}),(0,re.jsx)(u.Heading,{size:"sm",children:"Filter"})]}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(et,{filter:i,setFilter:s,tagColors:v,setTagColors:m,highlightColor:D,colorList:W,tags:j,local:O,setLocal:w})})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsx)(Zn.KF,{display:"flex",justifyContent:"space-between",children:(0,re.jsxs)(u.Box,{display:"flex",children:[(0,re.jsx)(Zn.XE,{marginRight:2}),(0,re.jsx)(u.Heading,{size:"sm",children:"Physics"})]})}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(it,{physics:n,setPhysics:t})})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsxs)(Zn.KF,{children:[(0,re.jsx)(Zn.XE,{marginRight:2}),(0,re.jsx)(u.Heading,{size:"sm",children:"Visual"})]}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(Tt,{visuals:c,setVisuals:a,highlightColor:D,setHighlightColor:B,threeDim:r,coloring:y,setColoring:C})})]}),(0,re.jsxs)(Zn.Qd,{children:[(0,re.jsxs)(Zn.KF,{children:[(0,re.jsx)(Zn.XE,{marginRight:2}),(0,re.jsx)(u.Heading,{size:"sm",children:"Behavior"})]}),(0,re.jsx)(Zn.Hk,{children:(0,re.jsx)(ct,{behavior:p,setBehavior:x,mouse:g,setMouse:f})})]})]})})]}):(0,re.jsx)(u.Box,{position:"absolute",zIndex:"overlay",marginTop:1,marginLeft:0,display:N?"none":"block",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Settings",icon:(0,re.jsx)(V.SettingsIcon,{}),onClick:function(){return I(!0)}})})},Zt=t(22663),Ht=t.n(Zt);function Wt(e){var n,t,r,i,l=e.labelBackgroundColor,s=e.labelTextColor,c=e.node,a=e.ctx,u=e.globalScale,d=e.highlightedNodes,h=e.previouslyHighlightedNodes,g=e.visuals,f=e.opacity,p=e.nodeSize,x=e.filteredLinksByNodeId,j=(e.nodeRel,e.hoverNode),b=e.lastHoverNode;if(c&&g.labels){var v=null!==(n=null===j||void 0===j?void 0:j.id)&&void 0!==n?n:"",m=null!==(t=null===b||void 0===b?void 0:b.id)&&void 0!==t?t:"",y=null!==(r=x[c.id])&&void 0!==r?r:[],C=!(!d[c.id]&&!h[c.id]),O=Math.min(5*(u-g.labelScale)+2*Math.pow(Math.min(y.length,g.labelDynamicDegree),g.labelDynamicStrength),1);if(!(O<.01)||C){var w=null!==(i=c.title)&&void 0!==i?i:"",k=w.substring(0,g.labelLength),S=Math.cbrt(g.nodeRel*p(c)/Math.pow(u,g.nodeZoomSize)),N=g.labelFontSize/Math.cbrt(Math.pow(u,g.nodeZoomSize)),I=[1.1*a.measureText(k).width,N].map((function(e){return e+.5*N})),P=function(e,n,t,r,o){return o?Math.max(e,r):1*e*(-1*(n.highlightFade*r-1))}(O,g,0,f,C);if(g.labelBackgroundColor&&g.labelBackgroundOpacity){var D=Yt(l,P*g.labelBackgroundOpacity);a.fillStyle=D,a.fillRect.apply(a,[c.x-I[0]/2,c.y-I[1]/2+S].concat((0,o.Z)(I)))}a.textAlign="center",a.textBaseline="middle";var B=Yt(s,P);a.fillStyle=B,a.font="".concat(N,"px Sans-Serif");var L=Ht()(k,{width:g.labelWordWrap}).split("\n"),T=w.length>g.labelLength?[].concat((0,o.Z)(L.slice(0,-1)),["".concat(L.slice(-1),"...")]):L,z=[v,m].includes(c.id)?1+.3*f:1;T.forEach((function(e,n){a.fillText(e,c.x,c.y+z*S*8+g.labelLineSpace*N*n)}))}}}function At(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 Mt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?At(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):At(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Vt=t.e(907).then(t.bind(t,99907)),_t=t.g.window?t(24878).f$:null,Ut=t.g.window?t(24878).s6:null;function qt(){var e=(0,b.useState)(!1),n=e[0],t=e[1];return(0,b.useEffect)((function(){t(!0)}),[]),n?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(j.default,{children:(0,re.jsx)("title",{children:"ORUI"})}),(0,re.jsx)(Gt,{})]}):null}function Gt(){var e=Ln("3d",!1),n=(0,l.Z)(e,2),t=n[0],r=n[1],s=Ln("tagCols",{}),c=(0,l.Z)(s,2),g=c[0],f=c[1],x=(0,b.useState)({nodeIds:[],excludedNodeIds:[]}),j=x[0],v=x[1],m=Ln("physics",T),w=(0,l.Z)(m,2),S=w[0],N=w[1],I=Ln("filter",z),P=(0,l.Z)(I,2),D=P[0],B=P[1],L=Ln("visuals",E),W=(0,l.Z)(L,2),A=W[0],M=W[1],V=(0,b.useState)(null),_=V[0],U=V[1],q=(0,b.useState)(null),G=q[0],X=q[1],J=Ln("behavior",R),Q=(0,l.Z)(J,2),K=Q[0],Y=Q[1],$=Ln("mouse",Z),ee=(0,l.Z)($,2),ne=ee[0],te=ee[1],oe=Ln("coloring",F),ie=(0,l.Z)(oe,2),le=ie[0],se=ie[1],ce=Ln("local",H),ae=(0,l.Z)(ce,2),ue=ae[0],de=ae[1],he=(0,k.Z)({}),ge=(0,l.Z)(he,2),pe=ge[0],xe=ge[1],je=xe.set,be=xe.reset,ve=xe.undo,me=xe.redo,ye=xe.canUndo,Ce=xe.canRedo,Oe=(pe.past,pe.present),we=(pe.future,(0,b.useState)(null)),ke=we[0],Se=we[1],Ne=(0,a.qY)(),Ie=Ne.isOpen,Pe=Ne.onOpen,De=Ne.onClose,Be=(0,b.useRef)({}),Le=(0,b.useRef)({}),Te=(0,b.useRef)({}),ze=(0,b.useRef)([]),Fe=(0,b.useRef)(null),Ee=(0,b.useState)({}),Re=Ee[0],Ze=Ee[1],He=(0,b.useRef)({}),We=(0,b.useRef)({nodes:[],links:[]});(0,b.useEffect)((function(){_&&(We.current=_)}),[_]);var Ae=(0,b.useContext)(nn.N).setEmacsTheme,Me=(0,b.useRef)({nodeIds:[],excludedNodeIds:[]}),Ve=(0,b.useRef)(R);Ve.current=K;var _e=(0,b.useRef)(null);Me.current=j;var Ue=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 l=Fe.current,s=Me.current,c=Ve.current,a=null!==(t=Le.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,o.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&v({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,i,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return v((function(e){return Mt(Mt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if("add"!==c.localSame)return v((function(e){return Mt(Mt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return v((function(e){return Mt(Mt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);v((function(e){return Mt(Mt({},e),{},{nodeIds:[].concat((0,o.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50)}};(0,b.useEffect)((function(){_e.current=new O.Z("ws://localhost:35903"),_e.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),_e.current.addEventListener("message",(function(e){var n=Ve.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Be.current;ze.current=null!==(n=e.tags)&&void 0!==n?n:[];var c=null!==(t=e.nodes)&&void 0!==t?t:[],a=null!==(r=e.links)&&void 0!==r?r:[],u=c.reduce((function(e,n){var t;return Mt(Mt({},e),{},(0,i.Z)({},n.file,[].concat((0,o.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})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){var n=t.filter((function(n){var t,r;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(null===(r=n.title)||void 0===r?void 0:r.replace(/ *\[\d*\/\d*\] */g,"")))})).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})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Be.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,o.Z)(a),(0,o.Z)(d),(0,o.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Be.current[n]?Be.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Mt(Mt({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Mt(Mt({},e),{},{type:"bad"}))}));Be.current=Mt(Mt({},Be.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Le.current=p.reduce((function(e,n){var t,r,l;return Mt(Mt({},e),{},(l={},(0,i.Z)(l,n.source,[].concat((0,o.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,i.Z)(l,n.target,[].concat((0,o.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,o.Z)(c),f);Te.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 o=r.replaceAll(/cite:(.*)/g,"$1");return o?Mt(Mt({},e),{},(0,i.Z)({},o,n)):e}),{});var j={nodes:x,links:p},b=We.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return We.current=v,void U(v)}var m=[].concat((0,o.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=Be.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Mt(Mt({},e),t)]:[]}))),(0,o.Z)(Object.keys(Be.current).filter((function(e){return!s[e]})).map((function(e){return Be.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Mt(Mt({},e),{},(0,i.Z)({},r,t))}),{}),C=p.map((function(e){var n=Qt(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return Mt(Mt({},e),{},{source:m[y[r]],target:m[y[o]]})}));U({nodes:m,links:C})}(t.data);case"variables":return Ze(t.data),void console.log(t);case"theme":return Ae(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=K.zoomSpeed,s=K.zoomPadding;Ue("local",t.data.id,r,s),X(t.data.id);break;case"zoom":var c,a,u=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;Ue("zoom",t.data.id,u,d),X(t.data.id);break;case"follow":Ue(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),X(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,b.useEffect)((function(){var e=Fe.current;!e||j.nodeIds.length>1||(j.nodeIds.length||!S.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[j.nodeIds]);var qe=(0,p.iP)(),Ge=(0,l.Z)(qe,2),Xe=Ge[0],Je=Ge[1],Qe=(0,b.useRef)(),Ke=(0,b.useState)(null),Ye=Ke[0],$e=Ke[1],en=(0,b.useState)({left:0,top:0,right:void 0,bottom:void 0}),tn=en[0],rn=en[1],on=(0,a.qY)();(0,a.O3)({ref:Qe,handler:function(){on.onClose()}});var ln=function(e,n,t){rn(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),$e(e),on.onOpen()},sn=function(e,n){"remove"!==n?"replace"!==n?j.nodeIds.includes(e.id)||v((function(n){return Mt(Mt({},n),{},{nodeIds:[].concat((0,o.Z)(n.nodeIds),[e.id])})})):v({nodeIds:[e.id],excludedNodeIds:[]}):v((function(n){return Mt(Mt({},n),{},{excludedNodeIds:[].concat((0,o.Z)(n.excludedNodeIds),[e.id])})}))},cn=(0,b.useState)({type:"Graph",title:"Graph",icon:(0,re.jsx)(y.DvO,{})}),an=(cn[0],cn[1],Ln("mainWindowWidth",Xe)),un=(0,l.Z)(an,2),dn=un[0],hn=un[1];return console.log(Re),(0,re.jsx)(Kn.Provider,{value:Mt({},Re),children:(0,re.jsxs)(u.Box,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,re.jsx)(Rt,{physics:S,setPhysics:N,threeDim:t,setThreeDim:r,filter:D,setFilter:B,visuals:A,setVisuals:M,mouse:ne,setMouse:te,behavior:K,setBehavior:Y,tagColors:g,setTagColors:f,coloring:le,setColoring:se,local:ue,setLocal:de,tags:ze.current}),(0,re.jsx)(u.Box,{position:"absolute",children:_&&(0,re.jsx)(Xt,{nodeById:Be.current,linksByNodeId:Le.current,webSocket:_e.current,variables:Re,physics:S,graphData:_,threeDim:t,emacsNodeId:G,filter:D,visuals:A,behavior:K,mouse:ne,scope:j,setScope:v,tagColors:g,setPreviewNode:je,sidebarHighlightedNode:ke,windowWidth:Xe,windowHeight:Je,openContextMenu:ln,contextMenu:on,handleLocal:sn,mainWindowWidth:dn,setMainWindowWidth:hn,setContextMenuTarget:$e,graphRef:Fe,clusterRef:He,coloring:le,local:ue})}),(0,re.jsx)(u.Box,{position:"relative",zIndex:4,width:"100%",children:(0,re.jsx)(u.Flex,{className:"headerBar",h:10,flexDir:"column",children:(0,re.jsx)(u.Flex,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,re.jsxs)(u.Flex,{height:"100%",flexDirection:"row",children:[j.nodeIds.length>0&&(0,re.jsx)(d.u,{label:"Return to main graph",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return v((function(e){return Mt(Mt({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,re.jsx)(d.u,{label:Ie?"Close sidebar":"Open sidebar",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(C.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ie?De:Pe})})]})})})}),(0,re.jsx)(u.Box,{position:"relative",zIndex:4,children:(0,re.jsx)(Rn,{isOpen:Ie,onOpen:Pe,onClose:De,previewNode:Oe,setPreviewNode:je,canUndo:ye,canRedo:Ce,previousPreviewNode:ve,nextPreviewNode:me,resetPreviewNode:be,setSidebarHighlightedNode:Se,openContextMenu:ln,scope:j,setScope:v,windowWidth:Xe,tagColors:g,setTagColors:f,filter:D,setFilter:B,macros:Re.katexMacros,attachDir:Re.attachDir||"",nodeById:Be.current,linksByNodeId:Le.current,nodeByCite:Te.current})}),on.isOpen&&(0,re.jsx)("div",{ref:Qe,children:(0,re.jsx)(fe,{scope:j,target:Ye,background:!1,coordinates:tn,handleLocal:sn,menuClose:on.onClose.bind(on),webSocket:_e.current,setPreviewNode:je,setFilter:B,filter:D,setTagColors:f,tagColors:g})})]})})}var Xt=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,a=e.threeDim,d=e.linksByNodeId,h=e.filter,p=e.emacsNodeId,j=e.nodeById,v=e.visuals,y=e.behavior,C=e.mouse,O=e.scope,k=e.local,S=(e.setScope,e.webSocket),N=e.tagColors,I=e.setPreviewNode,P=e.sidebarHighlightedNode,D=e.windowWidth,B=e.windowHeight,T=(e.setContextMenuTarget,e.openContextMenu),z=e.contextMenu,F=e.handleLocal,E=e.variables,R=e.clusterRef,Z=e.coloring,H=E.dailyDir,A=(E.roamDir,(0,b.useState)(null)),M=A[0],V=A[1],_=(0,g.Fg)(),q=(0,b.useContext)(nn.N).emacsTheme,G=function(e,n,t){switch(e){case C.preview:I(n);break;case C.local:F(n,y.localSame);break;case C.follow:U(n,S);break;case C.context:T(n,t)}},X=(0,b.useRef)(null);(0,b.useEffect)((function(){p&&V(j[p])}),[p]);var J=(0,b.useRef)({}),Q=(0,b.useRef)({}),K=(0,b.useMemo)((function(){var e;Q.current={};var n=null===s||void 0===s||null===(e=s.nodes)||void 0===e?void 0:e.filter((function(e){var n,t,r,o,l=e;return h.dirsBlocklist.length&&h.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.dirsAllowlist.length>0&&!h.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.tagsBlacklist.length&&h.tagsBlacklist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||h.tagsWhitelist.length>0&&!h.tagsWhitelist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||h.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==h&&void 0!==h&&h.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||h.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(Q.current=Mt(Mt({},Q.current),{},(0,i.Z)({},l.id,l)),!1):!h.noter||null===(o=l.properties)||void 0===o||!o.NOTER_PAGE||(Q.current=Mt(Mt({},Q.current),{},(0,i.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=d[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!h.orphans||(h.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})),r=s.links.filter((function(e){var n=Qt(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];if(!t.includes(o)||!t.includes(i))return!1;var s=e;return h.parent?"heading"===h.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));J.current=r.reduce((function(e,n){var t,r,s,c=n,a=Qt(c),u=(0,l.Z)(a,2),d=u[0],h=u[1];return Mt(Mt({},e),{},(s={},(0,i.Z)(s,d,[].concat((0,o.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[c])),(0,i.Z)(s,h,[].concat((0,o.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=Qt(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===Z.method){var a=m()().nodes(t).edges(c);R.current=a()}return{nodes:n,links:r}}),[h,s,Z.method]),Y=(0,b.useState)({nodes:[],links:[]}),$=Y[0],ee=Y[1];(0,b.useEffect)((function(){if(O.nodeIds.length){var e=O.nodeIds.length>1?$.nodes.filter((function(e){return!O.excludedNodeIds.includes(e.id)})):[],n=e.map((function(e){return e.id})),t=function(e,n,t){var r=[e[0]],o=[],i=[e[0]];return Array.from({length:t},(function(){r.forEach((function(e){var t;(null!==(t=J.current[e])&&void 0!==t?t:[]).forEach((function(e){var t=Qt(e),r=(0,l.Z)(t,2),s=r[0],c=r[1];n.some((function(e){return[s,c].includes(e)}))||(i.includes(s)?i.includes(c)||o.push(c):o.push(s))}))})),r=o,o.forEach((function(e){return e&&i.push(e)})),o=[]})),i}(O.nodeIds,O.excludedNodeIds,k.neighbors),r=K.nodes.filter((function(r){var o;return e.length?!n.includes(r.id)&&(null!==(o=J.current[r.id])&&void 0!==o?o:[]).some((function(e){var n=Qt(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return O.nodeIds.includes(r)||O.nodeIds.includes(o)})):t.includes(r.id)})).map((function(e){return Mt(Mt({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,o.Z)(e),(0,o.Z)(r)),s=i.map((function(e){return e.id})),c=(O.nodeIds.length>1?$.links:[]).filter((function(e){O.excludedNodeIds.some((function(n){return Qt(e).includes(n)}))})),a=K.links.filter((function(e){var t=Qt(e),r=(0,l.Z)(t,2),o=r[0],i=r[1];return!(c.length&&n.includes(i)&&n.includes(o))&&(s.includes(o)&&s.includes(i))})).map((function(e){var n=Qt(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,o.Z)(c),(0,o.Z)(a));ee({nodes:i,links:u})}}),[k.neighbors,h,JSON.stringify(O),JSON.stringify(s),K.links,K.nodes]),(0,b.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Vt;case 3:o=e.sent,!t.gravityOn||O.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),a&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),a&&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,a,O]),(0,b.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,O.nodeIds.length]);var ne=(0,b.useRef)(0),te=(0,b.useState)(1),oe=te[0],ie=te[1],le=(0,f._7)((function(e){return ie(e)}),{duration:v.animationSpeed,algorithm:L[v.algorithmName]}),se=(0,l.Z)(le,2),ce=se[0],ae=se[1],ue=(0,f._7)((function(e){return ie(Math.min(oe,-1*(e-1)))}),{duration:v.animationSpeed,algorithm:L[v.algorithmName]}),de=(0,l.Z)(ue,2),he=de[0],ge=de[1],fe=(0,b.useMemo)((function(){var e;if(!X.current)return{};var n=J.current[X.current.id];return n?Object.fromEntries([null===(e=X.current)||void 0===e?void 0:e.id].concat((0,o.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(X.current),JSON.stringify(J.current)]);(0,b.useEffect)((function(){null!==P&&void 0!==P&&P.id?V(P):V(null)}),[P]);var pe=(0,b.useRef)(null);(0,b.useEffect)((function(){if(X.current=M,M&&(pe.current=M),!v.highlightAnim)return ie(M?1:0);M?ce():(ae(),oe>.5?he():ie(0))}),[M]);var xe=(0,b.useMemo)((function(){return Object.fromEntries(W.map((function(e){var n=Kt(e,_),t=W.map((function(e){return[e,x.Z(n,Kt(e,_))]}));return[e,Object.fromEntries(t)]})))}),[q]),je=(0,b.useMemo)((function(){var e,n,t,r=null!==(e=J.current[null===(n=pe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=pe.current)||void 0===t?void 0:t.id].concat((0,o.Z)(r.flatMap((function(e){return Qt(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(M),pe.current,J.current]),be=function(e){var n,t,r,o,i,l=null!==(n=null===(t=J.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===Z.method?v.nodeColorScheme[(r=l,o=0,i=v.nodeColorScheme.length-1,Math.min(Math.max(r,o),i))]:v.nodeColorScheme[l&&R.current[e]%v.nodeColorScheme.length]},ve=function(e,n){return J.current[e].length>J.current[n].length?be(e):be(n)},me=(0,b.useMemo)((function(){return Kt(v.labelTextColor,_)}),[v.labelTextColor,q]),ye=(0,b.useMemo)((function(){return Kt(v.labelBackgroundColor,_)}),[v.labelBackgroundColor,q]),Ce=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,o=3+t.length*v.nodeSizeLinks-(h.parent?0:r);return 1===v.highlightNodeSize?o:o*(fe[e.id]||je[e.id]?1+oe*(v.highlightNodeSize-1):1)},Oe=(0,b.useState)(!1),we=Oe[0],ke=Oe[1],Se=(0,b.useRef)(1),Ne={graphData:O.nodeIds.length?$:K,width:D,height:B,backgroundColor:Kt(v.backgroundColor,_),warmupTicks:1===O.nodeIds.length?100:O.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return Se.current=n},nodeColor:function(e){return function(e,n){var t,r,o=fe[e.id]||je[e.id];if(v.emacsNodeColor&&e.id===p)return Kt(v.emacsNodeColor,n);if(N&&null!==e&&void 0!==e&&e.tags.some((function(e){return N[e]}))){var i=N[null===e||void 0===e?void 0:e.tags.filter((function(e){return N[e]}))[0]];return o?xe[i][i](v.highlightFade*oe):xe[i][v.backgroundColor](v.highlightFade*oe)}return v.citeNodeColor&&null!==e&&void 0!==e&&null!==(t=e.properties)&&void 0!==t&&t.ROAM_REFS&&null!==e&&void 0!==e&&null!==(r=e.properties)&&void 0!==r&&r.FILELESS?o?Kt(v.citeNodeColor,n):xe[v.citeNodeColor][v.backgroundColor](v.highlightFade*oe):v.refNodeColor&&e.properties.ROAM_REFS?o?Kt(v.refNodeColor,n):xe[v.refNodeColor][v.backgroundColor](v.highlightFade*oe):o?v.nodeHighlight?xe[be(e.id)][v.nodeHighlight](oe):Kt(be(e.id),n):xe[be(e.id)][v.backgroundColor](v.highlightFade*oe)}(e,_)},nodeRelSize:v.nodeRel,nodeVal:function(e){return Ce(e)/Math.pow(Se.current,v.nodeZoomSize)},nodeCanvasObject:function(e,n,t){Wt(Mt({nodeRel:v.nodeRel,filteredLinksByNodeId:J.current,lastHoverNode:pe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:fe,previouslyHighlightedNodes:je,visuals:v,opacity:oe,nodeSize:Ce,labelTextColor:me,labelBackgroundColor:ye,hoverNode:M}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:v.particles?v.particlesNumber:void 0,linkDirectionalArrowLength:v.arrows?v.arrowsLength:void 0,linkDirectionalArrowRelPos:v.arrowsPos,linkDirectionalArrowColor:v.arrowsColor?function(){return Kt(v.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,o=Jt(e,X.current),i=Jt(e,pe.current),l=o||i,s=e;return v.refLinkColor&&"ref"===s.type?l&&(v.refLinkHighlightColor||v.linkHighlight)?xe[v.refLinkColor][v.refLinkHighlightColor||v.linkHighlight](oe):xe[v.refLinkColor][v.backgroundColor](v.highlightFade*oe):v.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(v.citeLinkHighlightColor||v.linkHighlight)?xe[v.citeLinkColor][v.citeLinkHighlightColor||v.linkHighlight](oe):xe[v.citeLinkColor][v.backgroundColor](v.highlightFade*oe):function(e,n,t,r){if(!v.linkHighlight&&!v.linkColorScheme&&!t)return Kt(ve(e,n),r);if(!t&&!v.linkColorScheme){var o=ve(e,n);return xe[o][v.backgroundColor](v.highlightFade*oe)}return t?v.linkHighlight||v.linkColorScheme?v.linkHighlight?v.linkColorScheme?xe[v.linkColorScheme][v.linkHighlight](oe):xe[ve(e,n)][v.linkHighlight](oe):Kt(v.linkColorScheme,r):Kt(ve(e,n),r):xe[v.linkColorScheme][v.backgroundColor](v.highlightFade*oe)}(t,r,l,_)},linkWidth:function(e){if(1===v.highlightLinkSize)return v.linkWidth;var n=Jt(e,X.current),t=Jt(e,pe.current);return n||t?v.linkWidth*(1+oe*(v.highlightLinkSize-1)):v.linkWidth},linkDirectionalParticleWidth:v.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ne.current<200;if(ne.current=n.timeStamp,r)return G("double",t,n);var o=ne.current;return setTimeout((function(){if(ne.current===o)return G("click",t,n)}),200)},onNodeHover:function(e){v.highlight&&(we||(M||(ge(),ie(0)),V(e)))},onNodeRightClick:function(e,n){G("right",e,n)},onNodeDrag:function(e){V(e),ke(!0)},onNodeDragEnd:function(){V(null),ke(!1)}};return(0,re.jsx)(u.Box,{overflow:"hidden",onClick:z.onClose,children:a?(0,re.jsx)(Ut,Mt(Mt({ref:n},Ne),{},{nodeThreeObjectExtend:!0,nodeOpacity:v.nodeOpacity,nodeResolution:v.nodeResolution,linkOpacity:v.linkOpacity,nodeThreeObject:function(e){if(v.labels&&(!(v.labels<3)||fe[e.id])){var n=new w.Z(e.title.substring(0,40));return n.color=Kt(v.labelTextColor,_),n.backgroundColor=Kt(v.labelBackgroundColor,_),n.padding=2,n.textHeight=8,n}}})):(0,re.jsx)(_t,Mt(Mt({ref:n},Ne),{},{linkLineDash:function(e){var n,t=e;return v.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[v.citeDashLength,v.citeGapLength]:v.refDashes&&"ref"==t.type?[v.refDashLength,v.refGapLength]:null}}))})};function Jt(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 Qt(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function Kt(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function Yt(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(20624)}])}},function(e){e.O(0,[774,737,876,228,866,13,874,573,446,879,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-96298ddac7773fa5ecad.js b/out/_next/static/chunks/webpack-97b7769aa68ab46953a1.js
index a4a55a8..3fcc2be 100644
--- a/out/_next/static/chunks/webpack-96298ddac7773fa5ecad.js
+++ b/out/_next/static/chunks/webpack-97b7769aa68ab46953a1.js
@@ -1 +1 @@
-!function(){"use strict";var e={},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,loaded:!1,exports:{}},u=!0;try{e[r].call(i.exports,i,i.exports,t),u=!1}finally{u&&delete n[r]}return i.loaded=!0,i.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,i){if(!r){var u=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||u>=i)&&Object.keys(t.O).every((function(e){return t.O[e](r[c])}))?r.splice(c--,1):(a=!1,i<u&&(u=i));if(a){e.splice(l--,1);var f=o();void 0!==f&&(n=f)}}return n}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))},t.u=function(e){return"static/chunks/"+e+".06370254df2573a8d372.js"},t.miniCssF=function(e){return"static/css/"+{888:"a37ded5ec4cf14937ec5",911:"9aeb688eb5e47ce218d8"}[e]+".css"},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={},n="_N_E:";t.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")==n+i){a=s;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",n+i),a.src=r),e[r]=[o];var d=function(n,t){a.onerror=a.onload=null,clearTimeout(b);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(t)})),n)return n(t)},b=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)}}}(),t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},t.p="/_next/",function(){var e={272:0};t.f.j=function(n,r){var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else if(272!=n){var i=new Promise((function(t,r){o=e[n]=[t,r]}));r.push(o[2]=i);var u=t.p+t.u(n),a=new Error;t.l(u,(function(r){if(t.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+n+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,o[1](a)}}),"chunk-"+n,n)}else e[n]=0},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,i,u=r[0],a=r[1],c=r[2],f=0;if(u.some((function(n){return 0!==e[n]}))){for(o in a)t.o(a,o)&&(t.m[o]=a[o]);if(c)var l=c(t)}for(n&&n(r);f<u.length;f++)i=u[f],t.o(e,i)&&e[i]&&e[i][0](),e[u[f]]=0;return t.O(l)},r=self.webpackChunk_N_E=self.webpackChunk_N_E||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}()}(); \ No newline at end of file
+!function(){"use strict";var e={},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,loaded:!1,exports:{}},u=!0;try{e[r].call(i.exports,i,i.exports,t),u=!1}finally{u&&delete n[r]}return i.loaded=!0,i.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,i){if(!r){var u=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||u>=i)&&Object.keys(t.O).every((function(e){return t.O[e](r[c])}))?r.splice(c--,1):(a=!1,i<u&&(u=i));if(a){e.splice(l--,1);var f=o();void 0!==f&&(n=f)}}return n}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))},t.u=function(e){return"static/chunks/"+e+".06370254df2573a8d372.js"},t.miniCssF=function(e){return"static/css/"+{879:"bdf775d76e641698f02f",888:"a37ded5ec4cf14937ec5"}[e]+".css"},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={},n="_N_E:";t.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")==n+i){a=s;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",n+i),a.src=r),e[r]=[o];var d=function(n,t){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(t)})),n)return n(t)},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)}}}(),t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},t.p="/_next/",function(){var e={272:0};t.f.j=function(n,r){var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else if(272!=n){var i=new Promise((function(t,r){o=e[n]=[t,r]}));r.push(o[2]=i);var u=t.p+t.u(n),a=new Error;t.l(u,(function(r){if(t.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+n+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,o[1](a)}}),"chunk-"+n,n)}else e[n]=0},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,i,u=r[0],a=r[1],c=r[2],f=0;if(u.some((function(n){return 0!==e[n]}))){for(o in a)t.o(a,o)&&(t.m[o]=a[o]);if(c)var l=c(t)}for(n&&n(r);f<u.length;f++)i=u[f],t.o(e,i)&&e[i]&&e[i][0](),e[u[f]]=0;return t.O(l)},r=self.webpackChunk_N_E=self.webpackChunk_N_E||[];r.forEach(n.bind(null,0)),r.push=n.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
deleted file mode 100644
index 57b2af7..0000000
--- a/out/_next/static/css/9aeb688eb5e47ce218d8.css
+++ /dev/null
@@ -1 +0,0 @@
-@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/css/bdf775d76e641698f02f.css b/out/_next/static/css/bdf775d76e641698f02f.css
new file mode 100644
index 0000000..84adc0f
--- /dev/null
+++ b/out/_next/static/css/bdf775d76e641698f02f.css
@@ -0,0 +1 @@
+@font-face{font-family:KaTeX_AMS;src:url(/_next/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca528cf9117470a.woff2) format("woff2"),url(/_next/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41eea8d05af757.woff) format("woff"),url(/_next/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9afe7a7c3e32fa.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(/_next/static/media/KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a5a43382bb0e4.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Bold.d757c535a2e5902f1325192d99e0c965.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Bold.7489a2fbfb9bfe70442031a27fb57a21.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(/_next/static/media/KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94a903d7973395.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Regular.db074fa22cf224af93d7b2122b1fab93.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Regular.7e873d3833eb108a0758be45cd29e907.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(/_next/static/media/KaTeX_Fraktur-Bold.931d67ea207ab37ee693ff155ff4d7a6.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Bold.354501bac435c3264834b80301089bad.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Bold.4c761b3711973ab04edf7ea6f1fbacdc.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(/_next/static/media/KaTeX_Fraktur-Regular.172d3529b26f8cedef6b5ddef7546e02.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Regular.6fdf0ac577be0ba82a4c9a89b8eef91b.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Regular.ed305b5434865e06ffde7da0d28101af.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-Bold.39890742bc957b368704509bb2f4163c.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Bold.0c3b8929d377c0e9b2f3a9c872e3337b.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Bold.8169508bf58f8bd92ad8a768ede68a18.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-BoldItalic.20f389c4120be058d80a3cd6a2f5a9b9.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-BoldItalic.428978dc7837d46de0916f266f5a43df.woff) format("woff"),url(/_next/static/media/KaTeX_Main-BoldItalic.828abcb200061cffbaae1f0498f821a8.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-Italic.fe2176f79edaa716e6212cca53949439.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Italic.fd947498bc16392e76c23adf58513fb3.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Italic.fa675e5e4bec9eb250b6a8cac09b189b.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-Regular.f650f111a3b890d116f1ba740b7e3de3.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Regular.4f35fbcc9ee8614c2bcc8c28314db234.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Regular.9eba1d77abcf2aa6e94e823d52be546b.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(/_next/static/media/KaTeX_Math-BoldItalic.dcbcbd93bac0470b462db6f9708a658c.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-BoldItalic.3f07ed67f06c720120cedd0bad5f60e2.woff) format("woff"),url(/_next/static/media/KaTeX_Math-BoldItalic.bf2d440b3a42ea78a998ccd32eb09d88.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(/_next/static/media/KaTeX_Math-Italic.6d3d25f4820d0da8f01fa3d2c7cbb8c2.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-Italic.96759856b4e70f3a83385d07e0d33b03.woff) format("woff"),url(/_next/static/media/KaTeX_Math-Italic.8a5f936332e8028c7278a3a25db00925.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:"KaTeX_SansSerif";src:url(/_next/static/media/KaTeX_SansSerif-Bold.95591a929f0d32aa282a90ba5acf81f0.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c388cf91b8ad51.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Bold.5b49f4993ae22d7975b413caed1a4c01.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:"KaTeX_SansSerif";src:url(/_next/static/media/KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637280a90a3434b.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8af9e11cc5a68.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Italic.b257a18c016f37ee45430f59757a0db9.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:"KaTeX_SansSerif";src:url(/_next/static/media/KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c029b09b917782.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Regular.02271ec5cb9f5b4588ac53d7efbe6de8.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Regular.2f7bc363fc5424ebda5903f74c404a99.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(/_next/static/media/KaTeX_Script-Regular.c81d1b2a4b75d3eded6059a210910a6b.woff2) format("woff2"),url(/_next/static/media/KaTeX_Script-Regular.073b3402d036714b43709614d1da717a.woff) format("woff"),url(/_next/static/media/KaTeX_Script-Regular.fc9ba5249878cd8f8d885c1f42b0f43d.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(/_next/static/media/KaTeX_Size1-Regular.6eec866c69313624be6061a5c86f0944.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size1-Regular.0108e89c9003e8c14ea3c4e99b09653e.woff) format("woff"),url(/_next/static/media/KaTeX_Size1-Regular.6de7d4b539221a49e9e241b734653ecf.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(/_next/static/media/KaTeX_Size2-Regular.2960900c4f271311eb36d175a209aa0a.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size2-Regular.3a99e70aee4076660d38b312c7cac2f9.woff) format("woff"),url(/_next/static/media/KaTeX_Size2-Regular.57f5c1837853986ea1dbadbb8f4f6074.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(/_next/static/media/KaTeX_Size3-Regular.e1951519f6f0596f735635e962d5b82c.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size3-Regular.7947224e8a9914fa332b16515176ce0d.woff) format("woff"),url(/_next/static/media/KaTeX_Size3-Regular.8d6b6822586eea3d3b2076d171808949.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(/_next/static/media/KaTeX_Size4-Regular.e418bf257af1052628d8c981d158674c.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size4-Regular.aeffd8025cba3647f1a6c07f222d985e.woff) format("woff"),url(/_next/static/media/KaTeX_Size4-Regular.4ad7c7e8bb8d10a34bb7c4bb567cef92.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(/_next/static/media/KaTeX_Typewriter-Regular.c295e7f71970f03c0549228b1c18120a.woff2) format("woff2"),url(/_next/static/media/KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7cf3364d4d4555.woff) format("woff"),url(/_next/static/media/KaTeX_Typewriter-Regular.c5c02d763c89380dcb4ed359e15d0897.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.24"}.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:-webkit-min-content;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:-webkit-inline-flex;display:inline-flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:baseline;align-items:baseline}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:-webkit-inline-flex;display:inline-flex;-webkit-flex-direction:row;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:-webkit-calc(50% + .3em);right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:-webkit-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
deleted file mode 100644
index 378b798..0000000
--- a/out/_next/static/media/KaTeX_AMS-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca528cf9117470a.woff2 b/out/_next/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca528cf9117470a.woff2
new file mode 100644
index 0000000..0acaaff
--- /dev/null
+++ b/out/_next/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca528cf9117470a.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf b/out/_next/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9afe7a7c3e32fa.ttf
index 31b8d8d..c6f9a5e 100644
--- a/out/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf
+++ b/out/_next/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9afe7a7c3e32fa.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff b/out/_next/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41eea8d05af757.woff
index 13000fc..b804d7b 100644
--- a/out/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff
+++ b/out/_next/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41eea8d05af757.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2 b/out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2
deleted file mode 100644
index 6e9d50d..0000000
--- a/out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf b/out/_next/static/media/KaTeX_Caligraphic-Bold.7489a2fbfb9bfe70442031a27fb57a21.ttf
index b3e756c..9ff4a5e 100644
--- a/out/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf
+++ b/out/_next/static/media/KaTeX_Caligraphic-Bold.7489a2fbfb9bfe70442031a27fb57a21.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a5a43382bb0e4.woff2 b/out/_next/static/media/KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a5a43382bb0e4.woff2
new file mode 100644
index 0000000..f390922
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a5a43382bb0e4.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff b/out/_next/static/media/KaTeX_Caligraphic-Bold.d757c535a2e5902f1325192d99e0c965.woff
index cf82f36..9759710 100644
--- a/out/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff
+++ b/out/_next/static/media/KaTeX_Caligraphic-Bold.d757c535a2e5902f1325192d99e0c965.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2 b/out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2
deleted file mode 100644
index 0bcce6f..0000000
--- a/out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf b/out/_next/static/media/KaTeX_Caligraphic-Regular.7e873d3833eb108a0758be45cd29e907.ttf
index a8cdd0e..f522294 100644
--- a/out/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf
+++ b/out/_next/static/media/KaTeX_Caligraphic-Regular.7e873d3833eb108a0758be45cd29e907.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94a903d7973395.woff2 b/out/_next/static/media/KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94a903d7973395.woff2
new file mode 100644
index 0000000..75344a1
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94a903d7973395.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff b/out/_next/static/media/KaTeX_Caligraphic-Regular.db074fa22cf224af93d7b2122b1fab93.woff
index 24f3b7b..9bdd534 100644
--- a/out/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff
+++ b/out/_next/static/media/KaTeX_Caligraphic-Regular.db074fa22cf224af93d7b2122b1fab93.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff b/out/_next/static/media/KaTeX_Fraktur-Bold.354501bac435c3264834b80301089bad.woff
index 56aeb69..e7730f6 100644
--- a/out/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff
+++ b/out/_next/static/media/KaTeX_Fraktur-Bold.354501bac435c3264834b80301089bad.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf b/out/_next/static/media/KaTeX_Fraktur-Bold.4c761b3711973ab04edf7ea6f1fbacdc.ttf
index 57cef5c..4e98259 100644
--- a/out/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf
+++ b/out/_next/static/media/KaTeX_Fraktur-Bold.4c761b3711973ab04edf7ea6f1fbacdc.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Bold.931d67ea207ab37ee693ff155ff4d7a6.woff2 b/out/_next/static/media/KaTeX_Fraktur-Bold.931d67ea207ab37ee693ff155ff4d7a6.woff2
new file mode 100644
index 0000000..395f28b
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Fraktur-Bold.931d67ea207ab37ee693ff155ff4d7a6.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2 b/out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2
deleted file mode 100644
index e4ad521..0000000
--- a/out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Regular.172d3529b26f8cedef6b5ddef7546e02.woff2 b/out/_next/static/media/KaTeX_Fraktur-Regular.172d3529b26f8cedef6b5ddef7546e02.woff2
new file mode 100644
index 0000000..735f694
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Fraktur-Regular.172d3529b26f8cedef6b5ddef7546e02.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff b/out/_next/static/media/KaTeX_Fraktur-Regular.6fdf0ac577be0ba82a4c9a89b8eef91b.woff
index 2e15d01..acab069 100644
--- a/out/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff
+++ b/out/_next/static/media/KaTeX_Fraktur-Regular.6fdf0ac577be0ba82a4c9a89b8eef91b.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2 b/out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2
deleted file mode 100644
index f481b14..0000000
--- a/out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf b/out/_next/static/media/KaTeX_Fraktur-Regular.ed305b5434865e06ffde7da0d28101af.ttf
index 1793994..b8461b2 100644
--- a/out/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf
+++ b/out/_next/static/media/KaTeX_Fraktur-Regular.ed305b5434865e06ffde7da0d28101af.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff b/out/_next/static/media/KaTeX_Main-Bold.0c3b8929d377c0e9b2f3a9c872e3337b.woff
index 495fc43..f38136a 100644
--- a/out/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff
+++ b/out/_next/static/media/KaTeX_Main-Bold.0c3b8929d377c0e9b2f3a9c872e3337b.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Bold.39890742bc957b368704509bb2f4163c.woff2 b/out/_next/static/media/KaTeX_Main-Bold.39890742bc957b368704509bb2f4163c.woff2
new file mode 100644
index 0000000..ab2ad21
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Main-Bold.39890742bc957b368704509bb2f4163c.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2 b/out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2
deleted file mode 100644
index cdb9ecc..0000000
--- a/out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf b/out/_next/static/media/KaTeX_Main-Bold.8169508bf58f8bd92ad8a768ede68a18.ttf
index e657894..4060e62 100644
--- a/out/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf
+++ b/out/_next/static/media/KaTeX_Main-Bold.8169508bf58f8bd92ad8a768ede68a18.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-BoldItalic.20f389c4120be058d80a3cd6a2f5a9b9.woff2 b/out/_next/static/media/KaTeX_Main-BoldItalic.20f389c4120be058d80a3cd6a2f5a9b9.woff2
new file mode 100644
index 0000000..5931794
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Main-BoldItalic.20f389c4120be058d80a3cd6a2f5a9b9.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff b/out/_next/static/media/KaTeX_Main-BoldItalic.428978dc7837d46de0916f266f5a43df.woff
index 121e242..67807b0 100644
--- a/out/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff
+++ b/out/_next/static/media/KaTeX_Main-BoldItalic.428978dc7837d46de0916f266f5a43df.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2 b/out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2
deleted file mode 100644
index 42171ec..0000000
--- a/out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf b/out/_next/static/media/KaTeX_Main-BoldItalic.828abcb200061cffbaae1f0498f821a8.ttf
index c11cde7..dc00797 100644
--- a/out/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf
+++ b/out/_next/static/media/KaTeX_Main-BoldItalic.828abcb200061cffbaae1f0498f821a8.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2 b/out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2
deleted file mode 100644
index e89824d..0000000
--- a/out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf b/out/_next/static/media/KaTeX_Main-Italic.fa675e5e4bec9eb250b6a8cac09b189b.ttf
index 2f270de..0e9b0f3 100644
--- a/out/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf
+++ b/out/_next/static/media/KaTeX_Main-Italic.fa675e5e4bec9eb250b6a8cac09b189b.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff b/out/_next/static/media/KaTeX_Main-Italic.fd947498bc16392e76c23adf58513fb3.woff
index c669377..6f43b59 100644
--- a/out/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff
+++ b/out/_next/static/media/KaTeX_Main-Italic.fd947498bc16392e76c23adf58513fb3.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Italic.fe2176f79edaa716e6212cca53949439.woff2 b/out/_next/static/media/KaTeX_Main-Italic.fe2176f79edaa716e6212cca53949439.woff2
new file mode 100644
index 0000000..b50920e
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Main-Italic.fe2176f79edaa716e6212cca53949439.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2 b/out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2
deleted file mode 100644
index 2aa480a..0000000
--- a/out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff b/out/_next/static/media/KaTeX_Main-Regular.4f35fbcc9ee8614c2bcc8c28314db234.woff
index 4c8de9e..21f5812 100644
--- a/out/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff
+++ b/out/_next/static/media/KaTeX_Main-Regular.4f35fbcc9ee8614c2bcc8c28314db234.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf b/out/_next/static/media/KaTeX_Main-Regular.9eba1d77abcf2aa6e94e823d52be546b.ttf
index 741db9c..dd45e1e 100644
--- a/out/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf
+++ b/out/_next/static/media/KaTeX_Main-Regular.9eba1d77abcf2aa6e94e823d52be546b.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Main-Regular.f650f111a3b890d116f1ba740b7e3de3.woff2 b/out/_next/static/media/KaTeX_Main-Regular.f650f111a3b890d116f1ba740b7e3de3.woff2
new file mode 100644
index 0000000..eb24a7b
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Main-Regular.f650f111a3b890d116f1ba740b7e3de3.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff b/out/_next/static/media/KaTeX_Math-BoldItalic.3f07ed67f06c720120cedd0bad5f60e2.woff
index 2c47198..0ae390d 100644
--- a/out/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff
+++ b/out/_next/static/media/KaTeX_Math-BoldItalic.3f07ed67f06c720120cedd0bad5f60e2.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2 b/out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2
deleted file mode 100644
index 82f609f..0000000
--- a/out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf b/out/_next/static/media/KaTeX_Math-BoldItalic.bf2d440b3a42ea78a998ccd32eb09d88.ttf
index c3a1c3e..728ce7a 100644
--- a/out/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf
+++ b/out/_next/static/media/KaTeX_Math-BoldItalic.bf2d440b3a42ea78a998ccd32eb09d88.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-BoldItalic.dcbcbd93bac0470b462db6f9708a658c.woff2 b/out/_next/static/media/KaTeX_Math-BoldItalic.dcbcbd93bac0470b462db6f9708a658c.woff2
new file mode 100644
index 0000000..2965702
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Math-BoldItalic.dcbcbd93bac0470b462db6f9708a658c.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-Italic.6d3d25f4820d0da8f01fa3d2c7cbb8c2.woff2 b/out/_next/static/media/KaTeX_Math-Italic.6d3d25f4820d0da8f01fa3d2c7cbb8c2.woff2
new file mode 100644
index 0000000..215c143
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Math-Italic.6d3d25f4820d0da8f01fa3d2c7cbb8c2.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf b/out/_next/static/media/KaTeX_Math-Italic.8a5f936332e8028c7278a3a25db00925.ttf
index b58dc88..70d559b 100644
--- a/out/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf
+++ b/out/_next/static/media/KaTeX_Math-Italic.8a5f936332e8028c7278a3a25db00925.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff b/out/_next/static/media/KaTeX_Math-Italic.96759856b4e70f3a83385d07e0d33b03.woff
index 3ee35dc..eb5159d 100644
--- a/out/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff
+++ b/out/_next/static/media/KaTeX_Math-Italic.96759856b4e70f3a83385d07e0d33b03.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2 b/out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2
deleted file mode 100644
index a2f3617..0000000
--- a/out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2 b/out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2
deleted file mode 100644
index c2b93c8..0000000
--- a/out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf b/out/_next/static/media/KaTeX_SansSerif-Bold.5b49f4993ae22d7975b413caed1a4c01.ttf
index 68d11ee..2f65a8a 100644
--- a/out/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf
+++ b/out/_next/static/media/KaTeX_SansSerif-Bold.5b49f4993ae22d7975b413caed1a4c01.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Bold.95591a929f0d32aa282a90ba5acf81f0.woff2 b/out/_next/static/media/KaTeX_SansSerif-Bold.95591a929f0d32aa282a90ba5acf81f0.woff2
new file mode 100644
index 0000000..cfaa3bd
--- /dev/null
+++ b/out/_next/static/media/KaTeX_SansSerif-Bold.95591a929f0d32aa282a90ba5acf81f0.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff b/out/_next/static/media/KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c388cf91b8ad51.woff
index cd6dbb1..8d47c02 100644
--- a/out/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff
+++ b/out/_next/static/media/KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c388cf91b8ad51.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2 b/out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2
deleted file mode 100644
index e890b37..0000000
--- a/out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637280a90a3434b.woff2 b/out/_next/static/media/KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637280a90a3434b.woff2
new file mode 100644
index 0000000..349c06d
--- /dev/null
+++ b/out/_next/static/media/KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637280a90a3434b.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff b/out/_next/static/media/KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8af9e11cc5a68.woff
index d022507..7e02df9 100644
--- a/out/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff
+++ b/out/_next/static/media/KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8af9e11cc5a68.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf b/out/_next/static/media/KaTeX_SansSerif-Italic.b257a18c016f37ee45430f59757a0db9.ttf
index 2ea5de4..d5850df 100644
--- a/out/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf
+++ b/out/_next/static/media/KaTeX_SansSerif-Italic.b257a18c016f37ee45430f59757a0db9.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff b/out/_next/static/media/KaTeX_SansSerif-Regular.02271ec5cb9f5b4588ac53d7efbe6de8.woff
index e43b4a2..31b8482 100644
--- a/out/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff
+++ b/out/_next/static/media/KaTeX_SansSerif-Regular.02271ec5cb9f5b4588ac53d7efbe6de8.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf b/out/_next/static/media/KaTeX_SansSerif-Regular.2f7bc363fc5424ebda5903f74c404a99.ttf
index c2066ca..537279f 100644
--- a/out/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf
+++ b/out/_next/static/media/KaTeX_SansSerif-Regular.2f7bc363fc5424ebda5903f74c404a99.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2 b/out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2
deleted file mode 100644
index 51037b4..0000000
--- a/out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c029b09b917782.woff2 b/out/_next/static/media/KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c029b09b917782.woff2
new file mode 100644
index 0000000..a90eea8
--- /dev/null
+++ b/out/_next/static/media/KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c029b09b917782.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff b/out/_next/static/media/KaTeX_Script-Regular.073b3402d036714b43709614d1da717a.woff
index 2f8b979..0e7da82 100644
--- a/out/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff
+++ b/out/_next/static/media/KaTeX_Script-Regular.073b3402d036714b43709614d1da717a.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Script-Regular.c81d1b2a4b75d3eded6059a210910a6b.woff2 b/out/_next/static/media/KaTeX_Script-Regular.c81d1b2a4b75d3eded6059a210910a6b.woff2
new file mode 100644
index 0000000..b3048fc
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Script-Regular.c81d1b2a4b75d3eded6059a210910a6b.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2 b/out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2
deleted file mode 100644
index e84ca23..0000000
--- a/out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf b/out/_next/static/media/KaTeX_Script-Regular.fc9ba5249878cd8f8d885c1f42b0f43d.ttf
index 1753e88..fd679bf 100644
--- a/out/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf
+++ b/out/_next/static/media/KaTeX_Script-Regular.fc9ba5249878cd8f8d885c1f42b0f43d.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff b/out/_next/static/media/KaTeX_Size1-Regular.0108e89c9003e8c14ea3c4e99b09653e.woff
index b0a7bb2..7f292d9 100644
--- a/out/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff
+++ b/out/_next/static/media/KaTeX_Size1-Regular.0108e89c9003e8c14ea3c4e99b09653e.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2 b/out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2
deleted file mode 100644
index f10ebd2..0000000
--- a/out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf b/out/_next/static/media/KaTeX_Size1-Regular.6de7d4b539221a49e9e241b734653ecf.ttf
index 31f438b..871fd7d 100644
--- a/out/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf
+++ b/out/_next/static/media/KaTeX_Size1-Regular.6de7d4b539221a49e9e241b734653ecf.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size1-Regular.6eec866c69313624be6061a5c86f0944.woff2 b/out/_next/static/media/KaTeX_Size1-Regular.6eec866c69313624be6061a5c86f0944.woff2
new file mode 100644
index 0000000..c5a8462
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Size1-Regular.6eec866c69313624be6061a5c86f0944.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2 b/out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2
deleted file mode 100644
index 4cddb8b..0000000
--- a/out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size2-Regular.2960900c4f271311eb36d175a209aa0a.woff2 b/out/_next/static/media/KaTeX_Size2-Regular.2960900c4f271311eb36d175a209aa0a.woff2
new file mode 100644
index 0000000..e1bccfe
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Size2-Regular.2960900c4f271311eb36d175a209aa0a.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff b/out/_next/static/media/KaTeX_Size2-Regular.3a99e70aee4076660d38b312c7cac2f9.woff
index 79ddf33..d241d9b 100644
--- a/out/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff
+++ b/out/_next/static/media/KaTeX_Size2-Regular.3a99e70aee4076660d38b312c7cac2f9.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf b/out/_next/static/media/KaTeX_Size2-Regular.57f5c1837853986ea1dbadbb8f4f6074.ttf
index 8a309fd..7a212ca 100644
--- a/out/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf
+++ b/out/_next/static/media/KaTeX_Size2-Regular.57f5c1837853986ea1dbadbb8f4f6074.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff b/out/_next/static/media/KaTeX_Size3-Regular.7947224e8a9914fa332b16515176ce0d.woff
index 1ecfff9..e6e9b65 100644
--- a/out/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff
+++ b/out/_next/static/media/KaTeX_Size3-Regular.7947224e8a9914fa332b16515176ce0d.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf b/out/_next/static/media/KaTeX_Size3-Regular.8d6b6822586eea3d3b2076d171808949.ttf
index 14fe2db..00bff34 100644
--- a/out/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf
+++ b/out/_next/static/media/KaTeX_Size3-Regular.8d6b6822586eea3d3b2076d171808949.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2 b/out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2
deleted file mode 100644
index e89276f..0000000
--- a/out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size3-Regular.e1951519f6f0596f735635e962d5b82c.woff2 b/out/_next/static/media/KaTeX_Size3-Regular.e1951519f6f0596f735635e962d5b82c.woff2
new file mode 100644
index 0000000..249a286
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Size3-Regular.e1951519f6f0596f735635e962d5b82c.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf b/out/_next/static/media/KaTeX_Size4-Regular.4ad7c7e8bb8d10a34bb7c4bb567cef92.ttf
index f88f27b..74f0892 100644
--- a/out/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf
+++ b/out/_next/static/media/KaTeX_Size4-Regular.4ad7c7e8bb8d10a34bb7c4bb567cef92.ttf
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2 b/out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2
deleted file mode 100644
index 93c7e82..0000000
--- a/out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff b/out/_next/static/media/KaTeX_Size4-Regular.aeffd8025cba3647f1a6c07f222d985e.woff
index d4223a3..e1ec545 100644
--- a/out/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff
+++ b/out/_next/static/media/KaTeX_Size4-Regular.aeffd8025cba3647f1a6c07f222d985e.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Size4-Regular.e418bf257af1052628d8c981d158674c.woff2 b/out/_next/static/media/KaTeX_Size4-Regular.e418bf257af1052628d8c981d158674c.woff2
new file mode 100644
index 0000000..680c130
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Size4-Regular.e418bf257af1052628d8c981d158674c.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2 b/out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2
deleted file mode 100644
index e2ca86a..0000000
--- a/out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2
+++ /dev/null
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff b/out/_next/static/media/KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7cf3364d4d4555.woff
index d786826..2432419 100644
--- a/out/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff
+++ b/out/_next/static/media/KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7cf3364d4d4555.woff
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Typewriter-Regular.c295e7f71970f03c0549228b1c18120a.woff2 b/out/_next/static/media/KaTeX_Typewriter-Regular.c295e7f71970f03c0549228b1c18120a.woff2
new file mode 100644
index 0000000..771f1af
--- /dev/null
+++ b/out/_next/static/media/KaTeX_Typewriter-Regular.c295e7f71970f03c0549228b1c18120a.woff2
Binary files differ
diff --git a/out/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf b/out/_next/static/media/KaTeX_Typewriter-Regular.c5c02d763c89380dcb4ed359e15d0897.ttf
index 15b7a74..c83252c 100644
--- a/out/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf
+++ b/out/_next/static/media/KaTeX_Typewriter-Regular.c5c02d763c89380dcb4ed359e15d0897.ttf
Binary files differ
diff --git a/out/index.html b/out/index.html
index a767d09..1b3cc8b 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/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.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-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-96298ddac7773fa5ecad.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-965b0767a8d0eaf0c110.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-b53d39280eb7028fd5fb.js" defer=""></script><script src="/_next/static/chunks/17007de1-7d8b9c17ee7cc8107af3.js" defer=""></script><script src="/_next/static/chunks/252f366e-54a484ebfe8fe95dfdbb.js" defer=""></script><script src="/_next/static/chunks/95b64a6e-860b8751a48619de0c76.js" defer=""></script><script src="/_next/static/chunks/0c428ae2-753f1ebbec24c403674c.js" defer=""></script><script src="/_next/static/chunks/1a48c3c1-648f6631a5e9a5f8e954.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/911-811443f68e27e1fd4f52.js" defer=""></script><script src="/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_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":"Pwq1CsSy3iH9VqD4549T8","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/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/bdf775d76e641698f02f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/bdf775d76e641698f02f.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-97b7769aa68ab46953a1.js" defer=""></script><script src="/_next/static/chunks/framework-a62d654bd9699da79f2a.js" defer=""></script><script src="/_next/static/chunks/main-80dde85f3cea1551bba1.js" defer=""></script><script src="/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-9c00dff9225b87a317ed.js" defer=""></script><script src="/_next/static/chunks/17007de1-7d8b9c17ee7cc8107af3.js" defer=""></script><script src="/_next/static/chunks/252f366e-54a484ebfe8fe95dfdbb.js" defer=""></script><script src="/_next/static/chunks/95b64a6e-860b8751a48619de0c76.js" defer=""></script><script src="/_next/static/chunks/0c428ae2-753f1ebbec24c403674c.js" defer=""></script><script src="/_next/static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js" defer=""></script><script src="/_next/static/chunks/b5f2ed29-b8c45246e6f61610d91f.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/879-09bfd8a9d59d1f41b6f4.js" defer=""></script><script src="/_next/static/chunks/pages/index-9ebad2ac6fcc0c57103b.js" defer=""></script><script src="/_next/static/8cne445bLE-kLSJ63BF1j/_buildManifest.js" defer=""></script><script src="/_next/static/8cne445bLE-kLSJ63BF1j/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 8u9pn4">: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 1jqlf9g">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;}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":"8cne445bLE-kLSJ63BF1j","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file