solace-agent-mesh 0.2.4__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of solace-agent-mesh might be problematic. Click here for more details.

Files changed (521) hide show
  1. solace_agent_mesh/__init__.py +5 -0
  2. solace_agent_mesh/agent/adk/adk_llm.txt +93 -0
  3. solace_agent_mesh/agent/adk/app_llm_agent.py +26 -0
  4. solace_agent_mesh/agent/adk/callbacks.py +1716 -0
  5. solace_agent_mesh/agent/adk/filesystem_artifact_service.py +381 -0
  6. solace_agent_mesh/agent/adk/invocation_monitor.py +295 -0
  7. solace_agent_mesh/agent/adk/models/lite_llm.py +872 -0
  8. solace_agent_mesh/agent/adk/models/models_llm.txt +94 -0
  9. solace_agent_mesh/agent/adk/runner.py +357 -0
  10. solace_agent_mesh/agent/adk/services.py +240 -0
  11. solace_agent_mesh/agent/adk/setup.py +751 -0
  12. solace_agent_mesh/agent/adk/stream_parser.py +214 -0
  13. solace_agent_mesh/agent/adk/tool_wrapper.py +139 -0
  14. solace_agent_mesh/agent/agent_llm.txt +41 -0
  15. solace_agent_mesh/agent/protocol/event_handlers.py +1444 -0
  16. solace_agent_mesh/agent/protocol/protocol_llm.txt +21 -0
  17. solace_agent_mesh/agent/sac/app.py +640 -0
  18. solace_agent_mesh/agent/sac/component.py +3496 -0
  19. solace_agent_mesh/agent/sac/patch_adk.py +111 -0
  20. solace_agent_mesh/agent/sac/sac_llm.txt +105 -0
  21. solace_agent_mesh/agent/sac/task_execution_context.py +185 -0
  22. solace_agent_mesh/agent/testing/__init__.py +3 -0
  23. solace_agent_mesh/agent/testing/debug_utils.py +135 -0
  24. solace_agent_mesh/agent/testing/testing_llm.txt +90 -0
  25. solace_agent_mesh/agent/tools/__init__.py +14 -0
  26. solace_agent_mesh/agent/tools/audio_tools.py +1622 -0
  27. solace_agent_mesh/agent/tools/builtin_artifact_tools.py +1954 -0
  28. solace_agent_mesh/agent/tools/builtin_data_analysis_tools.py +238 -0
  29. solace_agent_mesh/agent/tools/general_agent_tools.py +571 -0
  30. solace_agent_mesh/agent/tools/image_tools.py +1184 -0
  31. solace_agent_mesh/agent/tools/peer_agent_tool.py +290 -0
  32. solace_agent_mesh/agent/tools/registry.py +36 -0
  33. solace_agent_mesh/agent/tools/test_tools.py +135 -0
  34. solace_agent_mesh/agent/tools/tool_definition.py +45 -0
  35. solace_agent_mesh/agent/tools/tools_llm.txt +104 -0
  36. solace_agent_mesh/agent/tools/web_tools.py +381 -0
  37. solace_agent_mesh/agent/utils/artifact_helpers.py +927 -0
  38. solace_agent_mesh/agent/utils/config_parser.py +47 -0
  39. solace_agent_mesh/agent/utils/context_helpers.py +60 -0
  40. solace_agent_mesh/agent/utils/utils_llm.txt +153 -0
  41. solace_agent_mesh/assets/docs/404.html +16 -0
  42. solace_agent_mesh/assets/docs/assets/css/styles.906a1503.css +1 -0
  43. solace_agent_mesh/assets/docs/assets/images/Solace_AI_Framework_With_Broker-85f0a306a9bcdd20b390b7a949f6d862.png +0 -0
  44. solace_agent_mesh/assets/docs/assets/images/sac-flows-80d5b603c6aafd33e87945680ce0abf3.png +0 -0
  45. solace_agent_mesh/assets/docs/assets/images/sac_parts_of_a_component-cb3d0424b1d0c17734c5435cca6b4082.png +0 -0
  46. solace_agent_mesh/assets/docs/assets/js/04989206.674a8007.js +1 -0
  47. solace_agent_mesh/assets/docs/assets/js/0e682baa.79f0ab22.js +1 -0
  48. solace_agent_mesh/assets/docs/assets/js/1001.0182a8bd.js +1 -0
  49. solace_agent_mesh/assets/docs/assets/js/1023fc19.015679ca.js +1 -0
  50. solace_agent_mesh/assets/docs/assets/js/1039.0bd46aa1.js +1 -0
  51. solace_agent_mesh/assets/docs/assets/js/149.b797a808.js +1 -0
  52. solace_agent_mesh/assets/docs/assets/js/1523c6b4.91c7bc01.js +1 -0
  53. solace_agent_mesh/assets/docs/assets/js/165.6a39807d.js +2 -0
  54. solace_agent_mesh/assets/docs/assets/js/165.6a39807d.js.LICENSE.txt +9 -0
  55. solace_agent_mesh/assets/docs/assets/js/166ab619.7d97ccaf.js +1 -0
  56. solace_agent_mesh/assets/docs/assets/js/17896441.a5e82f9b.js +2 -0
  57. solace_agent_mesh/assets/docs/assets/js/17896441.a5e82f9b.js.LICENSE.txt +7 -0
  58. solace_agent_mesh/assets/docs/assets/js/1c6e87d2.a8c5ce5a.js +1 -0
  59. solace_agent_mesh/assets/docs/assets/js/2130.ab9fd314.js +1 -0
  60. solace_agent_mesh/assets/docs/assets/js/21ceee5f.614fa8dd.js +1 -0
  61. solace_agent_mesh/assets/docs/assets/js/2237.5e477fc6.js +1 -0
  62. solace_agent_mesh/assets/docs/assets/js/2334.622a6395.js +1 -0
  63. solace_agent_mesh/assets/docs/assets/js/2a9cab12.8909df92.js +1 -0
  64. solace_agent_mesh/assets/docs/assets/js/3219.adc1d663.js +1 -0
  65. solace_agent_mesh/assets/docs/assets/js/332e10b5.7a103f42.js +1 -0
  66. solace_agent_mesh/assets/docs/assets/js/3624.b524e433.js +1 -0
  67. solace_agent_mesh/assets/docs/assets/js/375.708d48db.js +1 -0
  68. solace_agent_mesh/assets/docs/assets/js/3834.b6cd790e.js +1 -0
  69. solace_agent_mesh/assets/docs/assets/js/3d406171.f722eaf5.js +1 -0
  70. solace_agent_mesh/assets/docs/assets/js/4250.95455b28.js +1 -0
  71. solace_agent_mesh/assets/docs/assets/js/42b3f8d8.36090198.js +1 -0
  72. solace_agent_mesh/assets/docs/assets/js/4356.d169ab5b.js +1 -0
  73. solace_agent_mesh/assets/docs/assets/js/442a8107.5ba94b65.js +1 -0
  74. solace_agent_mesh/assets/docs/assets/js/4458.518e66fa.js +1 -0
  75. solace_agent_mesh/assets/docs/assets/js/4488.c7cc3442.js +1 -0
  76. solace_agent_mesh/assets/docs/assets/js/4494.6ee23046.js +1 -0
  77. solace_agent_mesh/assets/docs/assets/js/4855.fc4444b6.js +1 -0
  78. solace_agent_mesh/assets/docs/assets/js/4866.22daefc0.js +1 -0
  79. solace_agent_mesh/assets/docs/assets/js/4950.ca4caeda.js +1 -0
  80. solace_agent_mesh/assets/docs/assets/js/4c2787c2.66ee00e9.js +1 -0
  81. solace_agent_mesh/assets/docs/assets/js/5388.7a136447.js +1 -0
  82. solace_agent_mesh/assets/docs/assets/js/55f47984.c484bf96.js +1 -0
  83. solace_agent_mesh/assets/docs/assets/js/5607.081356f8.js +1 -0
  84. solace_agent_mesh/assets/docs/assets/js/5864.b0d0e9de.js +1 -0
  85. solace_agent_mesh/assets/docs/assets/js/5b4258a4.bda20761.js +1 -0
  86. solace_agent_mesh/assets/docs/assets/js/5e95c892.558d5167.js +1 -0
  87. solace_agent_mesh/assets/docs/assets/js/6143.0a1464c9.js +1 -0
  88. solace_agent_mesh/assets/docs/assets/js/6395.e9c73649.js +1 -0
  89. solace_agent_mesh/assets/docs/assets/js/6796.51d2c9b7.js +1 -0
  90. solace_agent_mesh/assets/docs/assets/js/6976.379be23b.js +1 -0
  91. solace_agent_mesh/assets/docs/assets/js/6978.ee0b945c.js +1 -0
  92. solace_agent_mesh/assets/docs/assets/js/7040.cb436723.js +1 -0
  93. solace_agent_mesh/assets/docs/assets/js/7195.412f418a.js +1 -0
  94. solace_agent_mesh/assets/docs/assets/js/7280.3fb73bdb.js +1 -0
  95. solace_agent_mesh/assets/docs/assets/js/768e31b0.a12673db.js +1 -0
  96. solace_agent_mesh/assets/docs/assets/js/7845.e33e7c4c.js +1 -0
  97. solace_agent_mesh/assets/docs/assets/js/7900.69516146.js +1 -0
  98. solace_agent_mesh/assets/docs/assets/js/8356.8a379c04.js +1 -0
  99. solace_agent_mesh/assets/docs/assets/js/85387663.6bf41934.js +1 -0
  100. solace_agent_mesh/assets/docs/assets/js/8567.4732c6b7.js +1 -0
  101. solace_agent_mesh/assets/docs/assets/js/8573.cb04eda5.js +1 -0
  102. solace_agent_mesh/assets/docs/assets/js/8577.1d54e766.js +1 -0
  103. solace_agent_mesh/assets/docs/assets/js/8591.d7c16be6.js +2 -0
  104. solace_agent_mesh/assets/docs/assets/js/8591.d7c16be6.js.LICENSE.txt +61 -0
  105. solace_agent_mesh/assets/docs/assets/js/8709.7ecd4047.js +1 -0
  106. solace_agent_mesh/assets/docs/assets/js/8731.49e930c2.js +1 -0
  107. solace_agent_mesh/assets/docs/assets/js/8908.f9d1b506.js +1 -0
  108. solace_agent_mesh/assets/docs/assets/js/9157.b4093d07.js +1 -0
  109. solace_agent_mesh/assets/docs/assets/js/9278.a4fd875d.js +1 -0
  110. solace_agent_mesh/assets/docs/assets/js/945fb41e.74d728aa.js +1 -0
  111. solace_agent_mesh/assets/docs/assets/js/9616.b75c2f6d.js +1 -0
  112. solace_agent_mesh/assets/docs/assets/js/9793.c6d16376.js +1 -0
  113. solace_agent_mesh/assets/docs/assets/js/9eff14a2.1bf8f61c.js +1 -0
  114. solace_agent_mesh/assets/docs/assets/js/a3a92b25.26ca071f.js +1 -0
  115. solace_agent_mesh/assets/docs/assets/js/a7bd4aaa.2204d2f7.js +1 -0
  116. solace_agent_mesh/assets/docs/assets/js/a94703ab.0438dbc2.js +1 -0
  117. solace_agent_mesh/assets/docs/assets/js/aba21aa0.c42a534c.js +1 -0
  118. solace_agent_mesh/assets/docs/assets/js/aba87c2f.d3e2dcc3.js +1 -0
  119. solace_agent_mesh/assets/docs/assets/js/ae4415af.8e279b5d.js +1 -0
  120. solace_agent_mesh/assets/docs/assets/js/b7006a3a.40b10c9d.js +1 -0
  121. solace_agent_mesh/assets/docs/assets/js/bac0be12.f50d9bac.js +1 -0
  122. solace_agent_mesh/assets/docs/assets/js/bb2ef573.207e6990.js +1 -0
  123. solace_agent_mesh/assets/docs/assets/js/c2c06897.63b76e9e.js +1 -0
  124. solace_agent_mesh/assets/docs/assets/js/cc969b05.954186d4.js +1 -0
  125. solace_agent_mesh/assets/docs/assets/js/cd3d4052.ca6eed8c.js +1 -0
  126. solace_agent_mesh/assets/docs/assets/js/ced92a13.fb92e7ca.js +1 -0
  127. solace_agent_mesh/assets/docs/assets/js/cee5d587.f5b73ca1.js +1 -0
  128. solace_agent_mesh/assets/docs/assets/js/f284c35a.ecc3d195.js +1 -0
  129. solace_agent_mesh/assets/docs/assets/js/f897a61a.f8c53b0f.js +1 -0
  130. solace_agent_mesh/assets/docs/assets/js/fbfa3e75.aca209c9.js +1 -0
  131. solace_agent_mesh/assets/docs/assets/js/main.c6286d7c.js +2 -0
  132. solace_agent_mesh/assets/docs/assets/js/main.c6286d7c.js.LICENSE.txt +81 -0
  133. solace_agent_mesh/assets/docs/assets/js/runtime~main.d5133813.js +1 -0
  134. solace_agent_mesh/assets/docs/docs/documentation/concepts/agents/index.html +128 -0
  135. solace_agent_mesh/assets/docs/docs/documentation/concepts/architecture/index.html +91 -0
  136. solace_agent_mesh/assets/docs/docs/documentation/concepts/cli/index.html +201 -0
  137. solace_agent_mesh/assets/docs/docs/documentation/concepts/gateways/index.html +91 -0
  138. solace_agent_mesh/assets/docs/docs/documentation/concepts/orchestrator/index.html +55 -0
  139. solace_agent_mesh/assets/docs/docs/documentation/concepts/plugins/index.html +82 -0
  140. solace_agent_mesh/assets/docs/docs/documentation/deployment/debugging/index.html +77 -0
  141. solace_agent_mesh/assets/docs/docs/documentation/deployment/deploy/index.html +48 -0
  142. solace_agent_mesh/assets/docs/docs/documentation/deployment/observability/index.html +54 -0
  143. solace_agent_mesh/assets/docs/docs/documentation/enterprise/index.html +17 -0
  144. solace_agent_mesh/assets/docs/docs/documentation/getting-started/component-overview/index.html +45 -0
  145. solace_agent_mesh/assets/docs/docs/documentation/getting-started/installation/index.html +76 -0
  146. solace_agent_mesh/assets/docs/docs/documentation/getting-started/introduction/index.html +150 -0
  147. solace_agent_mesh/assets/docs/docs/documentation/getting-started/quick-start/index.html +54 -0
  148. solace_agent_mesh/assets/docs/docs/documentation/tutorials/bedrock-agents/index.html +267 -0
  149. solace_agent_mesh/assets/docs/docs/documentation/tutorials/custom-agent/index.html +136 -0
  150. solace_agent_mesh/assets/docs/docs/documentation/tutorials/event-mesh-gateway/index.html +116 -0
  151. solace_agent_mesh/assets/docs/docs/documentation/tutorials/mcp-integration/index.html +80 -0
  152. solace_agent_mesh/assets/docs/docs/documentation/tutorials/mongodb-integration/index.html +164 -0
  153. solace_agent_mesh/assets/docs/docs/documentation/tutorials/rest-gateway/index.html +57 -0
  154. solace_agent_mesh/assets/docs/docs/documentation/tutorials/slack-integration/index.html +72 -0
  155. solace_agent_mesh/assets/docs/docs/documentation/tutorials/sql-database/index.html +102 -0
  156. solace_agent_mesh/assets/docs/docs/documentation/user-guide/builtin-tools/artifact-management/index.html +99 -0
  157. solace_agent_mesh/assets/docs/docs/documentation/user-guide/builtin-tools/audio-tools/index.html +90 -0
  158. solace_agent_mesh/assets/docs/docs/documentation/user-guide/builtin-tools/data-analysis-tools/index.html +107 -0
  159. solace_agent_mesh/assets/docs/docs/documentation/user-guide/builtin-tools/embeds/index.html +152 -0
  160. solace_agent_mesh/assets/docs/docs/documentation/user-guide/builtin-tools/index.html +103 -0
  161. solace_agent_mesh/assets/docs/docs/documentation/user-guide/create-agents/index.html +170 -0
  162. solace_agent_mesh/assets/docs/docs/documentation/user-guide/create-gateways/index.html +200 -0
  163. solace_agent_mesh/assets/docs/docs/documentation/user-guide/creating-service-providers/index.html +54 -0
  164. solace_agent_mesh/assets/docs/docs/documentation/user-guide/solace-ai-connector/index.html +69 -0
  165. solace_agent_mesh/assets/docs/docs/documentation/user-guide/structure/index.html +59 -0
  166. solace_agent_mesh/assets/docs/img/Solace_AI_Framework_README.png +0 -0
  167. solace_agent_mesh/assets/docs/img/Solace_AI_Framework_With_Broker.png +0 -0
  168. solace_agent_mesh/assets/docs/img/logo.png +0 -0
  169. solace_agent_mesh/assets/docs/img/sac-flows.png +0 -0
  170. solace_agent_mesh/assets/docs/img/sac_parts_of_a_component.png +0 -0
  171. solace_agent_mesh/assets/docs/img/solace-logo.png +0 -0
  172. solace_agent_mesh/assets/docs/lunr-index-1754075282978.json +1 -0
  173. solace_agent_mesh/assets/docs/lunr-index.json +1 -0
  174. solace_agent_mesh/assets/docs/search-doc-1754075282978.json +1 -0
  175. solace_agent_mesh/assets/docs/search-doc.json +1 -0
  176. solace_agent_mesh/assets/docs/sitemap.xml +1 -0
  177. solace_agent_mesh/cli/__init__.py +1 -1
  178. solace_agent_mesh/cli/commands/add_cmd/__init__.py +15 -0
  179. solace_agent_mesh/cli/commands/add_cmd/add_cmd_llm.txt +250 -0
  180. solace_agent_mesh/cli/commands/add_cmd/agent_cmd.py +659 -0
  181. solace_agent_mesh/cli/commands/add_cmd/gateway_cmd.py +322 -0
  182. solace_agent_mesh/cli/commands/add_cmd/web_add_agent_step.py +93 -0
  183. solace_agent_mesh/cli/commands/add_cmd/web_add_gateway_step.py +118 -0
  184. solace_agent_mesh/cli/commands/docs_cmd.py +57 -0
  185. solace_agent_mesh/cli/commands/eval_cmd.py +64 -0
  186. solace_agent_mesh/cli/commands/init_cmd/__init__.py +404 -0
  187. solace_agent_mesh/cli/commands/init_cmd/broker_step.py +201 -0
  188. solace_agent_mesh/cli/commands/init_cmd/directory_step.py +28 -0
  189. solace_agent_mesh/cli/commands/init_cmd/env_step.py +205 -0
  190. solace_agent_mesh/cli/commands/init_cmd/init_cmd_llm.txt +365 -0
  191. solace_agent_mesh/cli/commands/init_cmd/orchestrator_step.py +407 -0
  192. solace_agent_mesh/cli/commands/init_cmd/project_files_step.py +38 -0
  193. solace_agent_mesh/cli/commands/init_cmd/web_init_step.py +110 -0
  194. solace_agent_mesh/cli/commands/init_cmd/webui_gateway_step.py +183 -0
  195. solace_agent_mesh/cli/commands/plugin_cmd/__init__.py +18 -0
  196. solace_agent_mesh/cli/commands/plugin_cmd/add_cmd.py +372 -0
  197. solace_agent_mesh/cli/commands/plugin_cmd/build_cmd.py +86 -0
  198. solace_agent_mesh/cli/commands/plugin_cmd/catalog_cmd.py +139 -0
  199. solace_agent_mesh/cli/commands/plugin_cmd/create_cmd.py +309 -0
  200. solace_agent_mesh/cli/commands/plugin_cmd/official_registry.py +175 -0
  201. solace_agent_mesh/cli/commands/plugin_cmd/plugin_cmd_llm.txt +305 -0
  202. solace_agent_mesh/cli/commands/run_cmd.py +158 -0
  203. solace_agent_mesh/cli/main.py +17 -294
  204. solace_agent_mesh/cli/utils.py +135 -204
  205. solace_agent_mesh/client/webui/frontend/static/assets/authCallback-DvlO62me.js +1 -0
  206. solace_agent_mesh/client/webui/frontend/static/assets/client-bp6u3qVZ.js +49 -0
  207. solace_agent_mesh/client/webui/frontend/static/assets/favicon-BLgzUch9.ico +0 -0
  208. solace_agent_mesh/client/webui/frontend/static/assets/main-D11Lmy9p.css +1 -0
  209. solace_agent_mesh/client/webui/frontend/static/assets/main-Gfk3BYn5.js +663 -0
  210. solace_agent_mesh/client/webui/frontend/static/auth-callback.html +14 -0
  211. solace_agent_mesh/client/webui/frontend/static/index.html +15 -0
  212. solace_agent_mesh/common/__init__.py +1 -0
  213. solace_agent_mesh/common/a2a_protocol.py +564 -0
  214. solace_agent_mesh/common/agent_registry.py +42 -0
  215. solace_agent_mesh/common/client/__init__.py +4 -0
  216. solace_agent_mesh/common/client/card_resolver.py +21 -0
  217. solace_agent_mesh/common/client/client.py +85 -0
  218. solace_agent_mesh/common/client/client_llm.txt +133 -0
  219. solace_agent_mesh/common/common_llm.txt +144 -0
  220. solace_agent_mesh/common/constants.py +1 -14
  221. solace_agent_mesh/common/middleware/__init__.py +12 -0
  222. solace_agent_mesh/common/middleware/config_resolver.py +130 -0
  223. solace_agent_mesh/common/middleware/middleware_llm.txt +174 -0
  224. solace_agent_mesh/common/middleware/registry.py +125 -0
  225. solace_agent_mesh/common/server/__init__.py +4 -0
  226. solace_agent_mesh/common/server/server.py +122 -0
  227. solace_agent_mesh/common/server/server_llm.txt +169 -0
  228. solace_agent_mesh/common/server/task_manager.py +291 -0
  229. solace_agent_mesh/common/server/utils.py +28 -0
  230. solace_agent_mesh/common/services/__init__.py +4 -0
  231. solace_agent_mesh/common/services/employee_service.py +162 -0
  232. solace_agent_mesh/common/services/identity_service.py +129 -0
  233. solace_agent_mesh/common/services/providers/__init__.py +4 -0
  234. solace_agent_mesh/common/services/providers/local_file_identity_service.py +148 -0
  235. solace_agent_mesh/common/services/providers/providers_llm.txt +113 -0
  236. solace_agent_mesh/common/services/services_llm.txt +132 -0
  237. solace_agent_mesh/common/types.py +411 -0
  238. solace_agent_mesh/common/utils/__init__.py +7 -0
  239. solace_agent_mesh/common/utils/asyncio_macos_fix.py +86 -0
  240. solace_agent_mesh/common/utils/embeds/__init__.py +33 -0
  241. solace_agent_mesh/common/utils/embeds/constants.py +55 -0
  242. solace_agent_mesh/common/utils/embeds/converter.py +452 -0
  243. solace_agent_mesh/common/utils/embeds/embeds_llm.txt +124 -0
  244. solace_agent_mesh/common/utils/embeds/evaluators.py +394 -0
  245. solace_agent_mesh/common/utils/embeds/modifiers.py +816 -0
  246. solace_agent_mesh/common/utils/embeds/resolver.py +865 -0
  247. solace_agent_mesh/common/utils/embeds/types.py +14 -0
  248. solace_agent_mesh/common/utils/in_memory_cache.py +108 -0
  249. solace_agent_mesh/common/utils/initializer.py +51 -0
  250. solace_agent_mesh/common/utils/log_formatters.py +44 -0
  251. solace_agent_mesh/common/utils/mime_helpers.py +106 -0
  252. solace_agent_mesh/common/utils/push_notification_auth.py +134 -0
  253. solace_agent_mesh/common/utils/utils_llm.txt +67 -0
  254. solace_agent_mesh/config_portal/backend/common.py +66 -24
  255. solace_agent_mesh/config_portal/backend/plugin_catalog/constants.py +24 -0
  256. solace_agent_mesh/config_portal/backend/plugin_catalog/models.py +49 -0
  257. solace_agent_mesh/config_portal/backend/plugin_catalog/registry_manager.py +164 -0
  258. solace_agent_mesh/config_portal/backend/plugin_catalog/scraper.py +521 -0
  259. solace_agent_mesh/config_portal/backend/plugin_catalog_server.py +217 -0
  260. solace_agent_mesh/config_portal/backend/server.py +551 -181
  261. solace_agent_mesh/config_portal/frontend/static/client/assets/_index-_7yox_eh.js +48 -0
  262. solace_agent_mesh/config_portal/frontend/static/client/assets/components-B7lKcHVY.js +140 -0
  263. solace_agent_mesh/config_portal/frontend/static/client/assets/{entry.client-DX1misIU.js → entry.client-CEumGClk.js} +3 -3
  264. solace_agent_mesh/config_portal/frontend/static/client/assets/index-DSo1AH_7.js +68 -0
  265. solace_agent_mesh/config_portal/frontend/static/client/assets/manifest-e5c3acfe.js +1 -0
  266. solace_agent_mesh/config_portal/frontend/static/client/assets/{root-BApq5dPK.js → root-C4XmHinv.js} +2 -2
  267. solace_agent_mesh/config_portal/frontend/static/client/assets/root-DxRwaWiE.css +1 -0
  268. solace_agent_mesh/config_portal/frontend/static/client/index.html +3 -3
  269. solace_agent_mesh/core_a2a/__init__.py +1 -0
  270. solace_agent_mesh/core_a2a/core_a2a_llm.txt +88 -0
  271. solace_agent_mesh/core_a2a/service.py +331 -0
  272. solace_agent_mesh/evaluation/config_loader.py +657 -0
  273. solace_agent_mesh/evaluation/evaluator.py +667 -0
  274. solace_agent_mesh/evaluation/message_organizer.py +568 -0
  275. solace_agent_mesh/evaluation/report/benchmark_info.html +35 -0
  276. solace_agent_mesh/evaluation/report/chart_section.html +141 -0
  277. solace_agent_mesh/evaluation/report/detailed_breakdown.html +28 -0
  278. solace_agent_mesh/evaluation/report/modal.html +59 -0
  279. solace_agent_mesh/evaluation/report/modal_chart_functions.js +411 -0
  280. solace_agent_mesh/evaluation/report/modal_script.js +296 -0
  281. solace_agent_mesh/evaluation/report/modal_styles.css +340 -0
  282. solace_agent_mesh/evaluation/report/performance_metrics_styles.css +93 -0
  283. solace_agent_mesh/evaluation/report/templates/footer.html +2 -0
  284. solace_agent_mesh/evaluation/report/templates/header.html +340 -0
  285. solace_agent_mesh/evaluation/report_data_processor.py +972 -0
  286. solace_agent_mesh/evaluation/report_generator.py +613 -0
  287. solace_agent_mesh/evaluation/run.py +613 -0
  288. solace_agent_mesh/evaluation/subscriber.py +872 -0
  289. solace_agent_mesh/evaluation/summary_builder.py +775 -0
  290. solace_agent_mesh/evaluation/test_case_loader.py +714 -0
  291. solace_agent_mesh/gateway/base/__init__.py +1 -0
  292. solace_agent_mesh/gateway/base/app.py +266 -0
  293. solace_agent_mesh/gateway/base/base_llm.txt +119 -0
  294. solace_agent_mesh/gateway/base/component.py +1542 -0
  295. solace_agent_mesh/gateway/base/task_context.py +74 -0
  296. solace_agent_mesh/gateway/gateway_llm.txt +125 -0
  297. solace_agent_mesh/gateway/http_sse/app.py +190 -0
  298. solace_agent_mesh/gateway/http_sse/component.py +1602 -0
  299. solace_agent_mesh/gateway/http_sse/components/__init__.py +7 -0
  300. solace_agent_mesh/gateway/http_sse/components/components_llm.txt +65 -0
  301. solace_agent_mesh/gateway/http_sse/components/visualization_forwarder_component.py +108 -0
  302. solace_agent_mesh/gateway/http_sse/dependencies.py +316 -0
  303. solace_agent_mesh/gateway/http_sse/http_sse_llm.txt +63 -0
  304. solace_agent_mesh/gateway/http_sse/main.py +442 -0
  305. solace_agent_mesh/gateway/http_sse/routers/__init__.py +4 -0
  306. solace_agent_mesh/gateway/http_sse/routers/agents.py +41 -0
  307. solace_agent_mesh/gateway/http_sse/routers/artifacts.py +827 -0
  308. solace_agent_mesh/gateway/http_sse/routers/auth.py +212 -0
  309. solace_agent_mesh/gateway/http_sse/routers/config.py +55 -0
  310. solace_agent_mesh/gateway/http_sse/routers/people.py +69 -0
  311. solace_agent_mesh/gateway/http_sse/routers/routers_llm.txt +37 -0
  312. solace_agent_mesh/gateway/http_sse/routers/sessions.py +80 -0
  313. solace_agent_mesh/gateway/http_sse/routers/sse.py +138 -0
  314. solace_agent_mesh/gateway/http_sse/routers/tasks.py +294 -0
  315. solace_agent_mesh/gateway/http_sse/routers/users.py +59 -0
  316. solace_agent_mesh/gateway/http_sse/routers/visualization.py +1131 -0
  317. solace_agent_mesh/gateway/http_sse/services/__init__.py +4 -0
  318. solace_agent_mesh/gateway/http_sse/services/agent_service.py +69 -0
  319. solace_agent_mesh/gateway/http_sse/services/people_service.py +158 -0
  320. solace_agent_mesh/gateway/http_sse/services/services_llm.txt +179 -0
  321. solace_agent_mesh/gateway/http_sse/services/task_service.py +121 -0
  322. solace_agent_mesh/gateway/http_sse/session_manager.py +187 -0
  323. solace_agent_mesh/gateway/http_sse/sse_manager.py +328 -0
  324. solace_agent_mesh/llm.txt +228 -0
  325. solace_agent_mesh/llm_detail.txt +2835 -0
  326. solace_agent_mesh/templates/agent_template.yaml +53 -0
  327. solace_agent_mesh/templates/eval_backend_template.yaml +54 -0
  328. solace_agent_mesh/templates/gateway_app_template.py +73 -0
  329. solace_agent_mesh/templates/gateway_component_template.py +431 -0
  330. solace_agent_mesh/templates/gateway_config_template.yaml +43 -0
  331. solace_agent_mesh/templates/logging_config_template.ini +64 -0
  332. solace_agent_mesh/templates/main_orchestrator.yaml +55 -0
  333. solace_agent_mesh/templates/plugin_agent_config_template.yaml +122 -0
  334. solace_agent_mesh/templates/plugin_custom_config_template.yaml +27 -0
  335. solace_agent_mesh/templates/plugin_custom_template.py +10 -0
  336. solace_agent_mesh/templates/plugin_gateway_config_template.yaml +63 -0
  337. solace_agent_mesh/templates/plugin_pyproject_template.toml +33 -0
  338. solace_agent_mesh/templates/plugin_readme_template.md +34 -0
  339. solace_agent_mesh/templates/plugin_tools_template.py +224 -0
  340. solace_agent_mesh/templates/shared_config.yaml +66 -0
  341. solace_agent_mesh/templates/templates_llm.txt +147 -0
  342. solace_agent_mesh/templates/webui.yaml +53 -0
  343. solace_agent_mesh-1.0.2.dist-info/METADATA +432 -0
  344. solace_agent_mesh-1.0.2.dist-info/RECORD +361 -0
  345. solace_agent_mesh-1.0.2.dist-info/entry_points.txt +3 -0
  346. {solace_agent_mesh-0.2.4.dist-info → solace_agent_mesh-1.0.2.dist-info}/licenses/LICENSE +1 -1
  347. solace_agent_mesh/agents/base_agent_component.py +0 -256
  348. solace_agent_mesh/agents/global/actions/agent_state_change.py +0 -54
  349. solace_agent_mesh/agents/global/actions/clear_history.py +0 -32
  350. solace_agent_mesh/agents/global/actions/convert_file_to_markdown.py +0 -160
  351. solace_agent_mesh/agents/global/actions/create_file.py +0 -70
  352. solace_agent_mesh/agents/global/actions/error_action.py +0 -45
  353. solace_agent_mesh/agents/global/actions/plantuml_diagram.py +0 -163
  354. solace_agent_mesh/agents/global/actions/plotly_graph.py +0 -152
  355. solace_agent_mesh/agents/global/actions/retrieve_file.py +0 -51
  356. solace_agent_mesh/agents/global/global_agent_component.py +0 -38
  357. solace_agent_mesh/agents/image_processing/actions/create_image.py +0 -75
  358. solace_agent_mesh/agents/image_processing/actions/describe_image.py +0 -115
  359. solace_agent_mesh/agents/image_processing/image_processing_agent_component.py +0 -23
  360. solace_agent_mesh/agents/slack/__init__.py +0 -1
  361. solace_agent_mesh/agents/slack/actions/__init__.py +0 -1
  362. solace_agent_mesh/agents/slack/actions/post_message.py +0 -177
  363. solace_agent_mesh/agents/slack/slack_agent_component.py +0 -59
  364. solace_agent_mesh/agents/web_request/actions/do_image_search.py +0 -84
  365. solace_agent_mesh/agents/web_request/actions/do_news_search.py +0 -47
  366. solace_agent_mesh/agents/web_request/actions/do_suggestion_search.py +0 -34
  367. solace_agent_mesh/agents/web_request/actions/do_web_request.py +0 -135
  368. solace_agent_mesh/agents/web_request/actions/download_file.py +0 -69
  369. solace_agent_mesh/agents/web_request/web_request_agent_component.py +0 -33
  370. solace_agent_mesh/assets/web-visualizer/assets/index-D0qORgkg.css +0 -1
  371. solace_agent_mesh/assets/web-visualizer/assets/index-DnDr1pnu.js +0 -109
  372. solace_agent_mesh/assets/web-visualizer/index.html +0 -14
  373. solace_agent_mesh/assets/web-visualizer/vite.svg +0 -1
  374. solace_agent_mesh/cli/commands/add/__init__.py +0 -3
  375. solace_agent_mesh/cli/commands/add/add.py +0 -88
  376. solace_agent_mesh/cli/commands/add/agent.py +0 -110
  377. solace_agent_mesh/cli/commands/add/copy_from_plugin.py +0 -92
  378. solace_agent_mesh/cli/commands/add/gateway.py +0 -374
  379. solace_agent_mesh/cli/commands/build.py +0 -670
  380. solace_agent_mesh/cli/commands/chat/__init__.py +0 -3
  381. solace_agent_mesh/cli/commands/chat/chat.py +0 -361
  382. solace_agent_mesh/cli/commands/config.py +0 -29
  383. solace_agent_mesh/cli/commands/init/__init__.py +0 -3
  384. solace_agent_mesh/cli/commands/init/ai_provider_step.py +0 -93
  385. solace_agent_mesh/cli/commands/init/broker_step.py +0 -99
  386. solace_agent_mesh/cli/commands/init/builtin_agent_step.py +0 -83
  387. solace_agent_mesh/cli/commands/init/check_if_already_done.py +0 -13
  388. solace_agent_mesh/cli/commands/init/create_config_file_step.py +0 -65
  389. solace_agent_mesh/cli/commands/init/create_other_project_files_step.py +0 -147
  390. solace_agent_mesh/cli/commands/init/file_service_step.py +0 -73
  391. solace_agent_mesh/cli/commands/init/init.py +0 -92
  392. solace_agent_mesh/cli/commands/init/project_structure_step.py +0 -16
  393. solace_agent_mesh/cli/commands/init/web_init_step.py +0 -32
  394. solace_agent_mesh/cli/commands/plugin/__init__.py +0 -3
  395. solace_agent_mesh/cli/commands/plugin/add.py +0 -100
  396. solace_agent_mesh/cli/commands/plugin/build.py +0 -268
  397. solace_agent_mesh/cli/commands/plugin/create.py +0 -117
  398. solace_agent_mesh/cli/commands/plugin/plugin.py +0 -124
  399. solace_agent_mesh/cli/commands/plugin/remove.py +0 -73
  400. solace_agent_mesh/cli/commands/run.py +0 -68
  401. solace_agent_mesh/cli/commands/visualizer.py +0 -138
  402. solace_agent_mesh/cli/config.py +0 -85
  403. solace_agent_mesh/common/action.py +0 -91
  404. solace_agent_mesh/common/action_list.py +0 -37
  405. solace_agent_mesh/common/action_response.py +0 -340
  406. solace_agent_mesh/common/mysql_database.py +0 -40
  407. solace_agent_mesh/common/postgres_database.py +0 -85
  408. solace_agent_mesh/common/prompt_templates.py +0 -28
  409. solace_agent_mesh/common/stimulus_utils.py +0 -152
  410. solace_agent_mesh/common/time.py +0 -24
  411. solace_agent_mesh/common/utils.py +0 -712
  412. solace_agent_mesh/config_portal/frontend/static/client/assets/_index-a-zJ6rLx.js +0 -46
  413. solace_agent_mesh/config_portal/frontend/static/client/assets/components-ZIfdTbrV.js +0 -191
  414. solace_agent_mesh/config_portal/frontend/static/client/assets/index-BJHAE5s4.js +0 -17
  415. solace_agent_mesh/config_portal/frontend/static/client/assets/manifest-44c41103.js +0 -1
  416. solace_agent_mesh/config_portal/frontend/static/client/assets/root-DX4gQ516.css +0 -1
  417. solace_agent_mesh/configs/agent_global.yaml +0 -74
  418. solace_agent_mesh/configs/agent_image_processing.yaml +0 -82
  419. solace_agent_mesh/configs/agent_slack.yaml +0 -64
  420. solace_agent_mesh/configs/agent_web_request.yaml +0 -75
  421. solace_agent_mesh/configs/conversation_to_file.yaml +0 -56
  422. solace_agent_mesh/configs/error_catcher.yaml +0 -56
  423. solace_agent_mesh/configs/monitor.yaml +0 -0
  424. solace_agent_mesh/configs/monitor_stim_and_errors_to_slack.yaml +0 -109
  425. solace_agent_mesh/configs/monitor_user_feedback.yaml +0 -58
  426. solace_agent_mesh/configs/orchestrator.yaml +0 -241
  427. solace_agent_mesh/configs/service_embedding.yaml +0 -81
  428. solace_agent_mesh/configs/service_llm.yaml +0 -265
  429. solace_agent_mesh/configs/visualize_websocket.yaml +0 -55
  430. solace_agent_mesh/gateway/components/gateway_base.py +0 -47
  431. solace_agent_mesh/gateway/components/gateway_input.py +0 -278
  432. solace_agent_mesh/gateway/components/gateway_output.py +0 -298
  433. solace_agent_mesh/gateway/identity/bamboohr_identity.py +0 -18
  434. solace_agent_mesh/gateway/identity/identity_base.py +0 -10
  435. solace_agent_mesh/gateway/identity/identity_provider.py +0 -60
  436. solace_agent_mesh/gateway/identity/no_identity.py +0 -9
  437. solace_agent_mesh/gateway/identity/passthru_identity.py +0 -9
  438. solace_agent_mesh/monitors/base_monitor_component.py +0 -26
  439. solace_agent_mesh/monitors/feedback/user_feedback_monitor.py +0 -75
  440. solace_agent_mesh/monitors/stim_and_errors/stim_and_error_monitor.py +0 -560
  441. solace_agent_mesh/orchestrator/__init__.py +0 -0
  442. solace_agent_mesh/orchestrator/action_manager.py +0 -237
  443. solace_agent_mesh/orchestrator/components/__init__.py +0 -0
  444. solace_agent_mesh/orchestrator/components/orchestrator_action_manager_timeout_component.py +0 -58
  445. solace_agent_mesh/orchestrator/components/orchestrator_action_response_component.py +0 -179
  446. solace_agent_mesh/orchestrator/components/orchestrator_register_component.py +0 -107
  447. solace_agent_mesh/orchestrator/components/orchestrator_stimulus_processor_component.py +0 -527
  448. solace_agent_mesh/orchestrator/components/orchestrator_streaming_output_component.py +0 -260
  449. solace_agent_mesh/orchestrator/orchestrator_main.py +0 -172
  450. solace_agent_mesh/orchestrator/orchestrator_prompt.py +0 -539
  451. solace_agent_mesh/services/__init__.py +0 -0
  452. solace_agent_mesh/services/authorization/providers/base_authorization_provider.py +0 -56
  453. solace_agent_mesh/services/bamboo_hr_service/__init__.py +0 -3
  454. solace_agent_mesh/services/bamboo_hr_service/bamboo_hr.py +0 -182
  455. solace_agent_mesh/services/common/__init__.py +0 -4
  456. solace_agent_mesh/services/common/auto_expiry.py +0 -45
  457. solace_agent_mesh/services/common/singleton.py +0 -18
  458. solace_agent_mesh/services/file_service/__init__.py +0 -14
  459. solace_agent_mesh/services/file_service/file_manager/__init__.py +0 -0
  460. solace_agent_mesh/services/file_service/file_manager/bucket_file_manager.py +0 -149
  461. solace_agent_mesh/services/file_service/file_manager/file_manager_base.py +0 -162
  462. solace_agent_mesh/services/file_service/file_manager/memory_file_manager.py +0 -64
  463. solace_agent_mesh/services/file_service/file_manager/volume_file_manager.py +0 -106
  464. solace_agent_mesh/services/file_service/file_service.py +0 -437
  465. solace_agent_mesh/services/file_service/file_service_constants.py +0 -54
  466. solace_agent_mesh/services/file_service/file_transformations.py +0 -141
  467. solace_agent_mesh/services/file_service/file_utils.py +0 -324
  468. solace_agent_mesh/services/file_service/transformers/__init__.py +0 -5
  469. solace_agent_mesh/services/history_service/__init__.py +0 -3
  470. solace_agent_mesh/services/history_service/history_providers/__init__.py +0 -0
  471. solace_agent_mesh/services/history_service/history_providers/base_history_provider.py +0 -54
  472. solace_agent_mesh/services/history_service/history_providers/file_history_provider.py +0 -74
  473. solace_agent_mesh/services/history_service/history_providers/index.py +0 -40
  474. solace_agent_mesh/services/history_service/history_providers/memory_history_provider.py +0 -33
  475. solace_agent_mesh/services/history_service/history_providers/mongodb_history_provider.py +0 -66
  476. solace_agent_mesh/services/history_service/history_providers/redis_history_provider.py +0 -66
  477. solace_agent_mesh/services/history_service/history_providers/sql_history_provider.py +0 -93
  478. solace_agent_mesh/services/history_service/history_service.py +0 -413
  479. solace_agent_mesh/services/history_service/long_term_memory/__init__.py +0 -0
  480. solace_agent_mesh/services/history_service/long_term_memory/long_term_memory.py +0 -399
  481. solace_agent_mesh/services/llm_service/components/llm_request_component.py +0 -340
  482. solace_agent_mesh/services/llm_service/components/llm_service_component_base.py +0 -152
  483. solace_agent_mesh/services/middleware_service/__init__.py +0 -0
  484. solace_agent_mesh/services/middleware_service/middleware_service.py +0 -20
  485. solace_agent_mesh/templates/action.py +0 -38
  486. solace_agent_mesh/templates/agent.py +0 -29
  487. solace_agent_mesh/templates/agent.yaml +0 -70
  488. solace_agent_mesh/templates/gateway-config-template.yaml +0 -6
  489. solace_agent_mesh/templates/gateway-default-config.yaml +0 -28
  490. solace_agent_mesh/templates/gateway-flows.yaml +0 -78
  491. solace_agent_mesh/templates/gateway-header.yaml +0 -16
  492. solace_agent_mesh/templates/gateway_base.py +0 -15
  493. solace_agent_mesh/templates/gateway_input.py +0 -98
  494. solace_agent_mesh/templates/gateway_output.py +0 -71
  495. solace_agent_mesh/templates/plugin-gateway-default-config.yaml +0 -29
  496. solace_agent_mesh/templates/plugin-pyproject.toml +0 -30
  497. solace_agent_mesh/templates/rest-api-default-config.yaml +0 -31
  498. solace_agent_mesh/templates/rest-api-flows.yaml +0 -81
  499. solace_agent_mesh/templates/slack-default-config.yaml +0 -16
  500. solace_agent_mesh/templates/slack-flows.yaml +0 -81
  501. solace_agent_mesh/templates/solace-agent-mesh-default.yaml +0 -86
  502. solace_agent_mesh/templates/solace-agent-mesh-plugin-default.yaml +0 -8
  503. solace_agent_mesh/templates/web-default-config.yaml +0 -10
  504. solace_agent_mesh/templates/web-flows.yaml +0 -76
  505. solace_agent_mesh/tools/__init__.py +0 -0
  506. solace_agent_mesh/tools/components/__init__.py +0 -0
  507. solace_agent_mesh/tools/components/conversation_formatter.py +0 -111
  508. solace_agent_mesh/tools/components/file_resolver_component.py +0 -58
  509. solace_agent_mesh/tools/config/runtime_config.py +0 -26
  510. solace_agent_mesh-0.2.4.dist-info/METADATA +0 -176
  511. solace_agent_mesh-0.2.4.dist-info/RECORD +0 -193
  512. solace_agent_mesh-0.2.4.dist-info/entry_points.txt +0 -3
  513. /solace_agent_mesh/{agents → agent}/__init__.py +0 -0
  514. /solace_agent_mesh/{agents/global → agent/adk}/__init__.py +0 -0
  515. /solace_agent_mesh/{agents/global/actions → agent/protocol}/__init__.py +0 -0
  516. /solace_agent_mesh/{agents/image_processing → agent/sac}/__init__.py +0 -0
  517. /solace_agent_mesh/{agents/image_processing/actions → agent/utils}/__init__.py +0 -0
  518. /solace_agent_mesh/{agents/web_request → config_portal/backend/plugin_catalog}/__init__.py +0 -0
  519. /solace_agent_mesh/{agents/web_request/actions → evaluation}/__init__.py +0 -0
  520. /solace_agent_mesh/gateway/{components → http_sse}/__init__.py +0 -0
  521. {solace_agent_mesh-0.2.4.dist-info → solace_agent_mesh-1.0.2.dist-info}/WHEEL +0 -0
@@ -1,191 +0,0 @@
1
- var gp=Object.defineProperty;var wp=(l,i,o)=>i in l?gp(l,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[i]=o;var uo=(l,i,o)=>wp(l,typeof i!="symbol"?i+"":i,o);import{a as Sp,g as Ep,r as w,R as xp}from"./index-BJHAE5s4.js";function kp(l,i){for(var o=0;o<i.length;o++){const s=i[o];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in l)){const d=Object.getOwnPropertyDescriptor(s,c);d&&Object.defineProperty(l,c,d.get?d:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var du={exports:{}},wt={},hu={exports:{}},pu={};/**
2
- * @license React
3
- * scheduler.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ef;function Cp(){return Ef||(Ef=1,function(l){function i($,oe){var J=$.length;$.push(oe);e:for(;0<J;){var xe=J-1>>>1,we=$[xe];if(0<c(we,oe))$[xe]=oe,$[J]=we,J=xe;else break e}}function o($){return $.length===0?null:$[0]}function s($){if($.length===0)return null;var oe=$[0],J=$.pop();if(J!==oe){$[0]=J;e:for(var xe=0,we=$.length,ct=we>>>1;xe<ct;){var tt=2*(xe+1)-1,nt=$[tt],Qe=tt+1,ht=$[Qe];if(0>c(nt,J))Qe<we&&0>c(ht,nt)?($[xe]=ht,$[Qe]=J,xe=Qe):($[xe]=nt,$[tt]=J,xe=tt);else if(Qe<we&&0>c(ht,J))$[xe]=ht,$[Qe]=J,xe=Qe;else break e}}return oe}function c($,oe){var J=$.sortIndex-oe.sortIndex;return J!==0?J:$.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();l.unstable_now=function(){return h.now()-m}}var p=[],g=[],k=1,v=null,S=3,D=!1,L=!1,M=!1,z=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Q($){for(var oe=o(g);oe!==null;){if(oe.callback===null)s(g);else if(oe.startTime<=$)s(g),oe.sortIndex=oe.expirationTime,i(p,oe);else break;oe=o(g)}}function A($){if(M=!1,Q($),!L)if(o(p)!==null)L=!0,$e(q);else{var oe=o(g);oe!==null&&It(A,oe.startTime-$)}}function q($,oe){L=!1,M&&(M=!1,K(W),W=-1),D=!0;var J=S;try{for(Q(oe),v=o(p);v!==null&&(!(v.expirationTime>oe)||$&&!ge());){var xe=v.callback;if(typeof xe=="function"){v.callback=null,S=v.priorityLevel;var we=xe(v.expirationTime<=oe);oe=l.unstable_now(),typeof we=="function"?v.callback=we:v===o(p)&&s(p),Q(oe)}else s(p);v=o(p)}if(v!==null)var ct=!0;else{var tt=o(g);tt!==null&&It(A,tt.startTime-oe),ct=!1}return ct}finally{v=null,S=J,D=!1}}var Y=!1,P=null,W=-1,fe=5,se=-1;function ge(){return!(l.unstable_now()-se<fe)}function me(){if(P!==null){var $=l.unstable_now();se=$;var oe=!0;try{oe=P(!0,$)}finally{oe?Ne():(Y=!1,P=null)}}else Y=!1}var Ne;if(typeof U=="function")Ne=function(){U(me)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,je=Ue.port2;Ue.port1.onmessage=me,Ne=function(){je.postMessage(null)}}else Ne=function(){z(me,0)};function $e($){P=$,Y||(Y=!0,Ne())}function It($,oe){W=z(function(){$(l.unstable_now())},oe)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function($){$.callback=null},l.unstable_continueExecution=function(){L||D||(L=!0,$e(q))},l.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<$?Math.floor(1e3/$):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_getFirstCallbackNode=function(){return o(p)},l.unstable_next=function($){switch(S){case 1:case 2:case 3:var oe=3;break;default:oe=S}var J=S;S=oe;try{return $()}finally{S=J}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function($,oe){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var J=S;S=$;try{return oe()}finally{S=J}},l.unstable_scheduleCallback=function($,oe,J){var xe=l.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?xe+J:xe):J=xe,$){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=J+we,$={id:k++,callback:oe,priorityLevel:$,startTime:J,expirationTime:we,sortIndex:-1},J>xe?($.sortIndex=J,i(g,$),o(p)===null&&$===o(g)&&(M?(K(W),W=-1):M=!0,It(A,J-xe))):($.sortIndex=we,i(p,$),L||D||(L=!0,$e(q))),$},l.unstable_shouldYield=ge,l.unstable_wrapCallback=function($){var oe=S;return function(){var J=S;S=oe;try{return $.apply(this,arguments)}finally{S=J}}}}(pu)),pu}var xf;function Rp(){return xf||(xf=1,hu.exports=Cp()),hu.exports}/**
10
- * @license React
11
- * react-dom.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var kf;function Pp(){if(kf)return wt;kf=1;var l=Sp(),i=Rp();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."}var s=new Set,c={};function d(e,t){h(e,t),h(e+"Capture",t)}function h(e,t){for(c[e]=t,e=0;e<t.length;e++)s.add(t[e])}var m=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[: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]*$/,k={},v={};function S(e){return p.call(v,e)?!0:p.call(k,e)?!1:g.test(e)?v[e]=!0:(k[e]=!0,!1)}function D(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L(e,t,n,r){if(t===null||typeof t>"u"||D(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function M(e,t,n,r,a,u,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=f}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){z[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];z[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){z[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){z[e]=new M(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){z[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){z[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){z[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){z[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){z[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var K=/[\-:]([a-z])/g;function U(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(K,U);z[t]=new M(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(K,U);z[t]=new M(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(K,U);z[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){z[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),z.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){z[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function Q(e,t,n,r){var a=z.hasOwnProperty(t)?z[t]:null;(a!==null?a.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(L(t,n,a,r)&&(n=null),r||a===null?S(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,r=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var A=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,q=Symbol.for("react.element"),Y=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),ge=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),Ne=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),It=Symbol.for("react.offscreen"),$=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,xe;function we(e){if(xe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||""}return`
18
- `+xe+e}var ct=!1;function tt(e,t){if(!e||ct)return"";ct=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(N){var r=N}Reflect.construct(e,[],t)}else{try{t.call()}catch(N){r=N}e.call(t.prototype)}else{try{throw Error()}catch(N){r=N}e()}}catch(N){if(N&&r&&typeof N.stack=="string"){for(var a=N.stack.split(`
19
- `),u=r.stack.split(`
20
- `),f=a.length-1,y=u.length-1;1<=f&&0<=y&&a[f]!==u[y];)y--;for(;1<=f&&0<=y;f--,y--)if(a[f]!==u[y]){if(f!==1||y!==1)do if(f--,y--,0>y||a[f]!==u[y]){var x=`
21
- `+a[f].replace(" at new "," at ");return e.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",e.displayName)),x}while(1<=f&&0<=y);break}}}finally{ct=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?we(e):""}function nt(e){switch(e.tag){case 5:return we(e.type);case 16:return we("Lazy");case 13:return we("Suspense");case 19:return we("SuspenseList");case 0:case 2:case 15:return e=tt(e.type,!1),e;case 11:return e=tt(e.type.render,!1),e;case 1:return e=tt(e.type,!0),e;default:return""}}function Qe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case P:return"Fragment";case Y:return"Portal";case fe:return"Profiler";case W:return"StrictMode";case Ne:return"Suspense";case Ue:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ge:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case me:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case je:return t=e.displayName||null,t!==null?t:Qe(e.type)||"Memo";case $e:t=e._payload,e=e._init;try{return Qe(e(t))}catch{}}return null}function ht(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qe(t);case 8:return t===W?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gl(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Do(e){var t=Gl(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(f){r=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(f){r=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){e._valueTracker||(e._valueTracker=Do(e))}function Ze(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gl(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ut(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Er(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Et(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jt(e,t){t=t.checked,t!=null&&Q(e,"checked",t,!1)}function br(e,t){Jt(e,t);var n=Et(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xr(e,t.type,n):t.hasOwnProperty("defaultValue")&&xr(e,t.type,Et(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ql(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xr(e,t,n){(t!=="number"||Ut(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zn=Array.isArray;function kn(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Et(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function el(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bl(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(Zn(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Et(n)}}function Gt(e,t){var n=Et(t.value),r=Et(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Cn(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tl(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 qn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tl(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xt,Lt=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xt=xt||document.createElement("div"),xt.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},No=["Webkit","ms","Moz","O"];Object.keys(Zt).forEach(function(e){No.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]})});function At(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nl(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=At(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var ei=J({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 kr(e,t){if(t){if(ei[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function rl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cr=null;function Pn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rr=null,qt=null,bt=null;function ti(e){if(e=Rl(e)){if(typeof Rr!="function")throw Error(o(280));var t=e.stateNode;t&&(t=ki(t),Rr(e.stateNode,e.type,t))}}function ll(e){qt?bt?bt.push(e):bt=[e]:qt=e}function ni(){if(qt){var e=qt,t=bt;if(bt=qt=null,ti(e),t)for(e=0;e<t.length;e++)ti(t[e])}}function il(e,t){return e(t)}function bn(){}var _n=!1;function ri(e,t,n){if(_n)return e(t,n);_n=!0;try{return il(e,t,n)}finally{_n=!1,(qt!==null||bt!==null)&&(bn(),ni())}}function er(e,t){var n=e.stateNode;if(n===null)return null;var r=ki(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var E=!1;if(m)try{var R={};Object.defineProperty(R,"passive",{get:function(){E=!0}}),window.addEventListener("test",R,R),window.removeEventListener("test",R,R)}catch{E=!1}function O(e,t,n,r,a,u,f,y,x){var N=Array.prototype.slice.call(arguments,3);try{t.apply(n,N)}catch(I){this.onError(I)}}var F=!1,V=null,ie=!1,ce=null,ee={onError:function(e){F=!0,V=e}};function ne(e,t,n,r,a,u,f,y,x){F=!1,V=null,O.apply(ee,arguments)}function G(e,t,n,r,a,u,f,y,x){if(ne.apply(this,arguments),F){if(F){var N=V;F=!1,V=null}else throw Error(o(198));ie||(ie=!0,ce=N)}}function b(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function he(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ve(e){if(b(e)!==e)throw Error(o(188))}function Ye(e){var t=e.alternate;if(!t){if(t=b(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return ve(a),e;if(u===r)return ve(a),t;u=u.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=u;else{for(var f=!1,y=a.child;y;){if(y===n){f=!0,n=a,r=u;break}if(y===r){f=!0,r=a,n=u;break}y=y.sibling}if(!f){for(y=u.child;y;){if(y===n){f=!0,n=u,r=a;break}if(y===r){f=!0,r=u,n=a;break}y=y.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function Pe(e){return e=Ye(e),e!==null?Se(e):null}function Se(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Se(e);if(t!==null)return t;e=e.sibling}return null}var Oe=i.unstable_scheduleCallback,an=i.unstable_cancelCallback,tr=i.unstable_shouldYield,Ht=i.unstable_requestPaint,ke=i.unstable_now,ol=i.unstable_getCurrentPriorityLevel,un=i.unstable_ImmediatePriority,en=i.unstable_UserBlockingPriority,sn=i.unstable_NormalPriority,Pr=i.unstable_LowPriority,ye=i.unstable_IdlePriority,Te=null,rt=null;function nr(e){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Te,e,void 0,(e.current.flags&128)===128)}catch{}}var Ce=Math.clz32?Math.clz32:Oo,Ln=Math.log,li=Math.LN2;function Oo(e){return e>>>=0,e===0?32:31-(Ln(e)/li|0)|0}var ii=64,oi=4194304;function al(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ai(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var y=f&~a;y!==0?r=al(y):(u&=f,u!==0&&(r=al(u)))}else f=n&~a,f!==0?r=al(f):u!==0&&(r=al(u));if(r===0)return 0;if(t!==0&&t!==r&&(t&a)===0&&(a=r&-r,u=t&-t,a>=u||a===16&&(u&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ce(t),a=1<<n,r|=e[n],t&=~a;return r}function Id(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-Ce(u),y=1<<f,x=a[f];x===-1?((y&n)===0||(y&r)!==0)&&(a[f]=Id(y,t)):x<=t&&(e.expiredLanes|=y),u&=~y}}function Mo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zu(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function zo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ul(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ce(t),e[t]=n}function Ad(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Ce(n),u=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~u}}function Fo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var _e=0;function qu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var bu,jo,es,ts,ns,Io=!1,ui=[],Tn=null,Dn=null,Nn=null,sl=new Map,cl=new Map,On=[],Hd="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 rs(e,t){switch(e){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":sl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cl.delete(t.pointerId)}}function fl(e,t,n,r,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[a]},t!==null&&(t=Rl(t),t!==null&&jo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Bd(e,t,n,r,a){switch(t){case"focusin":return Tn=fl(Tn,e,t,n,r,a),!0;case"dragenter":return Dn=fl(Dn,e,t,n,r,a),!0;case"mouseover":return Nn=fl(Nn,e,t,n,r,a),!0;case"pointerover":var u=a.pointerId;return sl.set(u,fl(sl.get(u)||null,e,t,n,r,a)),!0;case"gotpointercapture":return u=a.pointerId,cl.set(u,fl(cl.get(u)||null,e,t,n,r,a)),!0}return!1}function ls(e){var t=rr(e.target);if(t!==null){var n=b(t);if(n!==null){if(t=n.tag,t===13){if(t=he(n),t!==null){e.blockedOn=t,ns(e.priority,function(){es(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ao(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cr=r,n.target.dispatchEvent(r),Cr=null}else return t=Rl(n),t!==null&&jo(t),e.blockedOn=n,!1;t.shift()}return!0}function is(e,t,n){si(e)&&n.delete(t)}function $d(){Io=!1,Tn!==null&&si(Tn)&&(Tn=null),Dn!==null&&si(Dn)&&(Dn=null),Nn!==null&&si(Nn)&&(Nn=null),sl.forEach(is),cl.forEach(is)}function dl(e,t){e.blockedOn===t&&(e.blockedOn=null,Io||(Io=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,$d)))}function hl(e){function t(a){return dl(a,e)}if(0<ui.length){dl(ui[0],e);for(var n=1;n<ui.length;n++){var r=ui[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tn!==null&&dl(Tn,e),Dn!==null&&dl(Dn,e),Nn!==null&&dl(Nn,e),sl.forEach(t),cl.forEach(t),n=0;n<On.length;n++)r=On[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<On.length&&(n=On[0],n.blockedOn===null);)ls(n),n.blockedOn===null&&On.shift()}var _r=A.ReactCurrentBatchConfig,ci=!0;function Vd(e,t,n,r){var a=_e,u=_r.transition;_r.transition=null;try{_e=1,Uo(e,t,n,r)}finally{_e=a,_r.transition=u}}function Wd(e,t,n,r){var a=_e,u=_r.transition;_r.transition=null;try{_e=4,Uo(e,t,n,r)}finally{_e=a,_r.transition=u}}function Uo(e,t,n,r){if(ci){var a=Ao(e,t,n,r);if(a===null)na(e,t,r,fi,n),rs(e,r);else if(Bd(a,e,t,n,r))r.stopPropagation();else if(rs(e,r),t&4&&-1<Hd.indexOf(e)){for(;a!==null;){var u=Rl(a);if(u!==null&&bu(u),u=Ao(e,t,n,r),u===null&&na(e,t,r,fi,n),u===a)break;a=u}a!==null&&r.stopPropagation()}else na(e,t,r,null,n)}}var fi=null;function Ao(e,t,n,r){if(fi=null,e=Pn(r),e=rr(e),e!==null)if(t=b(e),t===null)e=null;else if(n=t.tag,n===13){if(e=he(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fi=e,null}function os(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ol()){case un:return 1;case en:return 4;case sn:case Pr:return 16;case ye:return 536870912;default:return 16}default:return 16}}var Mn=null,Ho=null,di=null;function as(){if(di)return di;var e,t=Ho,n=t.length,r,a="value"in Mn?Mn.value:Mn.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var f=n-e;for(r=1;r<=f&&t[n-r]===a[u-r];r++);return di=a.slice(e,1<r?1-r:void 0)}function hi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pi(){return!0}function us(){return!1}function kt(e){function t(n,r,a,u,f){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pi:us,this.isPropagationStopped=us,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),t}var Lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bo=kt(Lr),pl=J({},Lr,{view:0,detail:0}),Kd=kt(pl),$o,Vo,ml,mi=J({},pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ko,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ml&&(ml&&e.type==="mousemove"?($o=e.screenX-ml.screenX,Vo=e.screenY-ml.screenY):Vo=$o=0,ml=e),$o)},movementY:function(e){return"movementY"in e?e.movementY:Vo}}),ss=kt(mi),Qd=J({},mi,{dataTransfer:0}),Yd=kt(Qd),Xd=J({},pl,{relatedTarget:0}),Wo=kt(Xd),Jd=J({},Lr,{animationName:0,elapsedTime:0,pseudoElement:0}),Gd=kt(Jd),Zd=J({},Lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qd=kt(Zd),bd=J({},Lr,{data:0}),cs=kt(bd),eh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},th={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"},nh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nh[e])?!!t[e]:!1}function Ko(){return rh}var lh=J({},pl,{key:function(e){if(e.key){var t=eh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?th[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ko,charCode:function(e){return e.type==="keypress"?hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ih=kt(lh),oh=J({},mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fs=kt(oh),ah=J({},pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ko}),uh=kt(ah),sh=J({},Lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ch=kt(sh),fh=J({},mi,{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}),dh=kt(fh),hh=[9,13,27,32],Qo=m&&"CompositionEvent"in window,vl=null;m&&"documentMode"in document&&(vl=document.documentMode);var ph=m&&"TextEvent"in window&&!vl,ds=m&&(!Qo||vl&&8<vl&&11>=vl),hs=" ",ps=!1;function ms(e,t){switch(e){case"keyup":return hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function mh(e,t){switch(e){case"compositionend":return vs(t);case"keypress":return t.which!==32?null:(ps=!0,hs);case"textInput":return e=t.data,e===hs&&ps?null:e;default:return null}}function vh(e,t){if(Tr)return e==="compositionend"||!Qo&&ms(e,t)?(e=as(),di=Ho=Mn=null,Tr=!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 ds&&t.locale!=="ko"?null:t.data;default:return null}}var yh={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 ys(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yh[e.type]:t==="textarea"}function gs(e,t,n,r){ll(r),t=Si(t,"onChange"),0<t.length&&(n=new Bo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yl=null,gl=null;function gh(e){js(e,0)}function vi(e){var t=zr(e);if(Ze(t))return e}function wh(e,t){if(e==="change")return t}var ws=!1;if(m){var Yo;if(m){var Xo="oninput"in document;if(!Xo){var Ss=document.createElement("div");Ss.setAttribute("oninput","return;"),Xo=typeof Ss.oninput=="function"}Yo=Xo}else Yo=!1;ws=Yo&&(!document.documentMode||9<document.documentMode)}function Es(){yl&&(yl.detachEvent("onpropertychange",xs),gl=yl=null)}function xs(e){if(e.propertyName==="value"&&vi(gl)){var t=[];gs(t,gl,e,Pn(e)),ri(gh,t)}}function Sh(e,t,n){e==="focusin"?(Es(),yl=t,gl=n,yl.attachEvent("onpropertychange",xs)):e==="focusout"&&Es()}function Eh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vi(gl)}function xh(e,t){if(e==="click")return vi(t)}function kh(e,t){if(e==="input"||e==="change")return vi(t)}function Ch(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:Ch;function wl(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++){var a=n[r];if(!p.call(t,a)||!Bt(e[a],t[a]))return!1}return!0}function ks(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cs(e,t){var n=ks(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ks(n)}}function Rs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ps(){for(var e=window,t=Ut();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ut(e.document)}return t}function Jo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Rh(e){var t=Ps(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rs(n.ownerDocument.documentElement,n)){if(r!==null&&Jo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,u=Math.min(r.start,a);r=r.end===void 0?u:Math.min(r.end,a),!e.extend&&u>r&&(a=r,r=u,u=a),a=Cs(n,u);var f=Cs(n,r);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ph=m&&"documentMode"in document&&11>=document.documentMode,Dr=null,Go=null,Sl=null,Zo=!1;function _s(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zo||Dr==null||Dr!==Ut(r)||(r=Dr,"selectionStart"in r&&Jo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sl&&wl(Sl,r)||(Sl=r,r=Si(Go,"onSelect"),0<r.length&&(t=new Bo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nr={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionend:yi("Transition","TransitionEnd")},qo={},Ls={};m&&(Ls=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function gi(e){if(qo[e])return qo[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ls)return qo[e]=t[n];return e}var Ts=gi("animationend"),Ds=gi("animationiteration"),Ns=gi("animationstart"),Os=gi("transitionend"),Ms=new Map,zs="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zn(e,t){Ms.set(e,t),d(t,[e])}for(var bo=0;bo<zs.length;bo++){var ea=zs[bo],_h=ea.toLowerCase(),Lh=ea[0].toUpperCase()+ea.slice(1);zn(_h,"on"+Lh)}zn(Ts,"onAnimationEnd"),zn(Ds,"onAnimationIteration"),zn(Ns,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn(Os,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var El="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Th=new Set("cancel close invalid load scroll toggle".split(" ").concat(El));function Fs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,G(r,t,void 0,e),e.currentTarget=null}function js(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var f=r.length-1;0<=f;f--){var y=r[f],x=y.instance,N=y.currentTarget;if(y=y.listener,x!==u&&a.isPropagationStopped())break e;Fs(a,y,N),u=x}else for(f=0;f<r.length;f++){if(y=r[f],x=y.instance,N=y.currentTarget,y=y.listener,x!==u&&a.isPropagationStopped())break e;Fs(a,y,N),u=x}}}if(ie)throw e=ce,ie=!1,ce=null,e}function Me(e,t){var n=t[ua];n===void 0&&(n=t[ua]=new Set);var r=e+"__bubble";n.has(r)||(Is(t,e,2,!1),n.add(r))}function ta(e,t,n){var r=0;t&&(r|=4),Is(n,e,r,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function xl(e){if(!e[wi]){e[wi]=!0,s.forEach(function(n){n!=="selectionchange"&&(Th.has(n)||ta(n,!1,e),ta(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,ta("selectionchange",!1,t))}}function Is(e,t,n,r){switch(os(t)){case 1:var a=Vd;break;case 4:a=Wd;break;default:a=Uo}n=a.bind(null,t,n,e),a=void 0,!E||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function na(e,t,n,r,a){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var f=r.tag;if(f===3||f===4){var y=r.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(f===4)for(f=r.return;f!==null;){var x=f.tag;if((x===3||x===4)&&(x=f.stateNode.containerInfo,x===a||x.nodeType===8&&x.parentNode===a))return;f=f.return}for(;y!==null;){if(f=rr(y),f===null)return;if(x=f.tag,x===5||x===6){r=u=f;continue e}y=y.parentNode}}r=r.return}ri(function(){var N=u,I=Pn(n),H=[];e:{var j=Ms.get(e);if(j!==void 0){var X=Bo,te=e;switch(e){case"keypress":if(hi(n)===0)break e;case"keydown":case"keyup":X=ih;break;case"focusin":te="focus",X=Wo;break;case"focusout":te="blur",X=Wo;break;case"beforeblur":case"afterblur":X=Wo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=ss;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Yd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=uh;break;case Ts:case Ds:case Ns:X=Gd;break;case Os:X=ch;break;case"scroll":X=Kd;break;case"wheel":X=dh;break;case"copy":case"cut":case"paste":X=qd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=fs}var re=(t&4)!==0,Ve=!re&&e==="scroll",_=re?j!==null?j+"Capture":null:j;re=[];for(var C=N,T;C!==null;){T=C;var B=T.stateNode;if(T.tag===5&&B!==null&&(T=B,_!==null&&(B=er(C,_),B!=null&&re.push(kl(C,B,T)))),Ve)break;C=C.return}0<re.length&&(j=new X(j,te,null,n,I),H.push({event:j,listeners:re}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",j&&n!==Cr&&(te=n.relatedTarget||n.fromElement)&&(rr(te)||te[cn]))break e;if((X||j)&&(j=I.window===I?I:(j=I.ownerDocument)?j.defaultView||j.parentWindow:window,X?(te=n.relatedTarget||n.toElement,X=N,te=te?rr(te):null,te!==null&&(Ve=b(te),te!==Ve||te.tag!==5&&te.tag!==6)&&(te=null)):(X=null,te=N),X!==te)){if(re=ss,B="onMouseLeave",_="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(re=fs,B="onPointerLeave",_="onPointerEnter",C="pointer"),Ve=X==null?j:zr(X),T=te==null?j:zr(te),j=new re(B,C+"leave",X,n,I),j.target=Ve,j.relatedTarget=T,B=null,rr(I)===N&&(re=new re(_,C+"enter",te,n,I),re.target=T,re.relatedTarget=Ve,B=re),Ve=B,X&&te)t:{for(re=X,_=te,C=0,T=re;T;T=Or(T))C++;for(T=0,B=_;B;B=Or(B))T++;for(;0<C-T;)re=Or(re),C--;for(;0<T-C;)_=Or(_),T--;for(;C--;){if(re===_||_!==null&&re===_.alternate)break t;re=Or(re),_=Or(_)}re=null}else re=null;X!==null&&Us(H,j,X,re,!1),te!==null&&Ve!==null&&Us(H,Ve,te,re,!0)}}e:{if(j=N?zr(N):window,X=j.nodeName&&j.nodeName.toLowerCase(),X==="select"||X==="input"&&j.type==="file")var le=wh;else if(ys(j))if(ws)le=kh;else{le=Eh;var ae=Sh}else(X=j.nodeName)&&X.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(le=xh);if(le&&(le=le(e,N))){gs(H,le,n,I);break e}ae&&ae(e,j,N),e==="focusout"&&(ae=j._wrapperState)&&ae.controlled&&j.type==="number"&&xr(j,"number",j.value)}switch(ae=N?zr(N):window,e){case"focusin":(ys(ae)||ae.contentEditable==="true")&&(Dr=ae,Go=N,Sl=null);break;case"focusout":Sl=Go=Dr=null;break;case"mousedown":Zo=!0;break;case"contextmenu":case"mouseup":case"dragend":Zo=!1,_s(H,n,I);break;case"selectionchange":if(Ph)break;case"keydown":case"keyup":_s(H,n,I)}var ue;if(Qo)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Tr?ms(e,n)&&(de="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(de="onCompositionStart");de&&(ds&&n.locale!=="ko"&&(Tr||de!=="onCompositionStart"?de==="onCompositionEnd"&&Tr&&(ue=as()):(Mn=I,Ho="value"in Mn?Mn.value:Mn.textContent,Tr=!0)),ae=Si(N,de),0<ae.length&&(de=new cs(de,e,null,n,I),H.push({event:de,listeners:ae}),ue?de.data=ue:(ue=vs(n),ue!==null&&(de.data=ue)))),(ue=ph?mh(e,n):vh(e,n))&&(N=Si(N,"onBeforeInput"),0<N.length&&(I=new cs("onBeforeInput","beforeinput",null,n,I),H.push({event:I,listeners:N}),I.data=ue))}js(H,t)})}function kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=er(e,n),u!=null&&r.unshift(kl(e,u,a)),u=er(e,t),u!=null&&r.push(kl(e,u,a))),e=e.return}return r}function Or(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Us(e,t,n,r,a){for(var u=t._reactName,f=[];n!==null&&n!==r;){var y=n,x=y.alternate,N=y.stateNode;if(x!==null&&x===r)break;y.tag===5&&N!==null&&(y=N,a?(x=er(n,u),x!=null&&f.unshift(kl(n,x,y))):a||(x=er(n,u),x!=null&&f.push(kl(n,x,y)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Dh=/\r\n?/g,Nh=/\u0000|\uFFFD/g;function As(e){return(typeof e=="string"?e:""+e).replace(Dh,`
22
- `).replace(Nh,"")}function Ei(e,t,n){if(t=As(t),As(e)!==t&&n)throw Error(o(425))}function xi(){}var ra=null,la=null;function ia(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var oa=typeof setTimeout=="function"?setTimeout:void 0,Oh=typeof clearTimeout=="function"?clearTimeout:void 0,Hs=typeof Promise=="function"?Promise:void 0,Mh=typeof queueMicrotask=="function"?queueMicrotask:typeof Hs<"u"?function(e){return Hs.resolve(null).then(e).catch(zh)}:oa;function zh(e){setTimeout(function(){throw e})}function aa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(r===0){e.removeChild(a),hl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=a}while(n);hl(t)}function Fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Bs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Mr=Math.random().toString(36).slice(2),tn="__reactFiber$"+Mr,Cl="__reactProps$"+Mr,cn="__reactContainer$"+Mr,ua="__reactEvents$"+Mr,Fh="__reactListeners$"+Mr,jh="__reactHandles$"+Mr;function rr(e){var t=e[tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[tn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bs(e);e!==null;){if(n=e[tn])return n;e=Bs(e)}return t}e=n,n=e.parentNode}return null}function Rl(e){return e=e[tn]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function ki(e){return e[Cl]||null}var sa=[],Fr=-1;function jn(e){return{current:e}}function ze(e){0>Fr||(e.current=sa[Fr],sa[Fr]=null,Fr--)}function De(e,t){Fr++,sa[Fr]=e.current,e.current=t}var In={},ot=jn(In),pt=jn(!1),lr=In;function jr(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function mt(e){return e=e.childContextTypes,e!=null}function Ci(){ze(pt),ze(ot)}function $s(e,t,n){if(ot.current!==In)throw Error(o(168));De(ot,t),De(pt,n)}function Vs(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(o(108,ht(e)||"Unknown",a));return J({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,lr=ot.current,De(ot,e),De(pt,pt.current),!0}function Ws(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Vs(e,t,lr),r.__reactInternalMemoizedMergedChildContext=e,ze(pt),ze(ot),De(ot,e)):ze(pt),De(pt,n)}var fn=null,Pi=!1,ca=!1;function Ks(e){fn===null?fn=[e]:fn.push(e)}function Ih(e){Pi=!0,Ks(e)}function Un(){if(!ca&&fn!==null){ca=!0;var e=0,t=_e;try{var n=fn;for(_e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fn=null,Pi=!1}catch(a){throw fn!==null&&(fn=fn.slice(e+1)),Oe(un,Un),a}finally{_e=t,ca=!1}}return null}var Ir=[],Ur=0,_i=null,Li=0,Tt=[],Dt=0,ir=null,dn=1,hn="";function or(e,t){Ir[Ur++]=Li,Ir[Ur++]=_i,_i=e,Li=t}function Qs(e,t,n){Tt[Dt++]=dn,Tt[Dt++]=hn,Tt[Dt++]=ir,ir=e;var r=dn;e=hn;var a=32-Ce(r)-1;r&=~(1<<a),n+=1;var u=32-Ce(t)+a;if(30<u){var f=a-a%5;u=(r&(1<<f)-1).toString(32),r>>=f,a-=f,dn=1<<32-Ce(t)+a|n<<a|r,hn=u+e}else dn=1<<u|n<<a|r,hn=e}function fa(e){e.return!==null&&(or(e,1),Qs(e,1,0))}function da(e){for(;e===_i;)_i=Ir[--Ur],Ir[Ur]=null,Li=Ir[--Ur],Ir[Ur]=null;for(;e===ir;)ir=Tt[--Dt],Tt[Dt]=null,hn=Tt[--Dt],Tt[Dt]=null,dn=Tt[--Dt],Tt[Dt]=null}var Ct=null,Rt=null,Ie=!1,$t=null;function Ys(e,t){var n=zt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Xs(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,Rt=Fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:dn,overflow:hn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,Rt=null,!0):!1;default:return!1}}function ha(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pa(e){if(Ie){var t=Rt;if(t){var n=t;if(!Xs(e,t)){if(ha(e))throw Error(o(418));t=Fn(n.nextSibling);var r=Ct;t&&Xs(e,t)?Ys(r,n):(e.flags=e.flags&-4097|2,Ie=!1,Ct=e)}}else{if(ha(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ie=!1,Ct=e}}}function Js(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function Ti(e){if(e!==Ct)return!1;if(!Ie)return Js(e),Ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ia(e.type,e.memoizedProps)),t&&(t=Rt)){if(ha(e))throw Gs(),Error(o(418));for(;t;)Ys(e,t),t=Fn(t.nextSibling)}if(Js(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rt=Fn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=Ct?Fn(e.stateNode.nextSibling):null;return!0}function Gs(){for(var e=Rt;e;)e=Fn(e.nextSibling)}function Ar(){Rt=Ct=null,Ie=!1}function ma(e){$t===null?$t=[e]:$t.push(e)}var Uh=A.ReactCurrentBatchConfig;function Pl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var y=a.refs;f===null?delete y[u]:y[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Di(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zs(e){var t=e._init;return t(e._payload)}function qs(e){function t(_,C){if(e){var T=_.deletions;T===null?(_.deletions=[C],_.flags|=16):T.push(C)}}function n(_,C){if(!e)return null;for(;C!==null;)t(_,C),C=C.sibling;return null}function r(_,C){for(_=new Map;C!==null;)C.key!==null?_.set(C.key,C):_.set(C.index,C),C=C.sibling;return _}function a(_,C){return _=Qn(_,C),_.index=0,_.sibling=null,_}function u(_,C,T){return _.index=T,e?(T=_.alternate,T!==null?(T=T.index,T<C?(_.flags|=2,C):T):(_.flags|=2,C)):(_.flags|=1048576,C)}function f(_){return e&&_.alternate===null&&(_.flags|=2),_}function y(_,C,T,B){return C===null||C.tag!==6?(C=ou(T,_.mode,B),C.return=_,C):(C=a(C,T),C.return=_,C)}function x(_,C,T,B){var le=T.type;return le===P?I(_,C,T.props.children,B,T.key):C!==null&&(C.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===$e&&Zs(le)===C.type)?(B=a(C,T.props),B.ref=Pl(_,C,T),B.return=_,B):(B=eo(T.type,T.key,T.props,null,_.mode,B),B.ref=Pl(_,C,T),B.return=_,B)}function N(_,C,T,B){return C===null||C.tag!==4||C.stateNode.containerInfo!==T.containerInfo||C.stateNode.implementation!==T.implementation?(C=au(T,_.mode,B),C.return=_,C):(C=a(C,T.children||[]),C.return=_,C)}function I(_,C,T,B,le){return C===null||C.tag!==7?(C=pr(T,_.mode,B,le),C.return=_,C):(C=a(C,T),C.return=_,C)}function H(_,C,T){if(typeof C=="string"&&C!==""||typeof C=="number")return C=ou(""+C,_.mode,T),C.return=_,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case q:return T=eo(C.type,C.key,C.props,null,_.mode,T),T.ref=Pl(_,null,C),T.return=_,T;case Y:return C=au(C,_.mode,T),C.return=_,C;case $e:var B=C._init;return H(_,B(C._payload),T)}if(Zn(C)||oe(C))return C=pr(C,_.mode,T,null),C.return=_,C;Di(_,C)}return null}function j(_,C,T,B){var le=C!==null?C.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return le!==null?null:y(_,C,""+T,B);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case q:return T.key===le?x(_,C,T,B):null;case Y:return T.key===le?N(_,C,T,B):null;case $e:return le=T._init,j(_,C,le(T._payload),B)}if(Zn(T)||oe(T))return le!==null?null:I(_,C,T,B,null);Di(_,T)}return null}function X(_,C,T,B,le){if(typeof B=="string"&&B!==""||typeof B=="number")return _=_.get(T)||null,y(C,_,""+B,le);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case q:return _=_.get(B.key===null?T:B.key)||null,x(C,_,B,le);case Y:return _=_.get(B.key===null?T:B.key)||null,N(C,_,B,le);case $e:var ae=B._init;return X(_,C,T,ae(B._payload),le)}if(Zn(B)||oe(B))return _=_.get(T)||null,I(C,_,B,le,null);Di(C,B)}return null}function te(_,C,T,B){for(var le=null,ae=null,ue=C,de=C=0,et=null;ue!==null&&de<T.length;de++){ue.index>de?(et=ue,ue=null):et=ue.sibling;var Re=j(_,ue,T[de],B);if(Re===null){ue===null&&(ue=et);break}e&&ue&&Re.alternate===null&&t(_,ue),C=u(Re,C,de),ae===null?le=Re:ae.sibling=Re,ae=Re,ue=et}if(de===T.length)return n(_,ue),Ie&&or(_,de),le;if(ue===null){for(;de<T.length;de++)ue=H(_,T[de],B),ue!==null&&(C=u(ue,C,de),ae===null?le=ue:ae.sibling=ue,ae=ue);return Ie&&or(_,de),le}for(ue=r(_,ue);de<T.length;de++)et=X(ue,_,de,T[de],B),et!==null&&(e&&et.alternate!==null&&ue.delete(et.key===null?de:et.key),C=u(et,C,de),ae===null?le=et:ae.sibling=et,ae=et);return e&&ue.forEach(function(Yn){return t(_,Yn)}),Ie&&or(_,de),le}function re(_,C,T,B){var le=oe(T);if(typeof le!="function")throw Error(o(150));if(T=le.call(T),T==null)throw Error(o(151));for(var ae=le=null,ue=C,de=C=0,et=null,Re=T.next();ue!==null&&!Re.done;de++,Re=T.next()){ue.index>de?(et=ue,ue=null):et=ue.sibling;var Yn=j(_,ue,Re.value,B);if(Yn===null){ue===null&&(ue=et);break}e&&ue&&Yn.alternate===null&&t(_,ue),C=u(Yn,C,de),ae===null?le=Yn:ae.sibling=Yn,ae=Yn,ue=et}if(Re.done)return n(_,ue),Ie&&or(_,de),le;if(ue===null){for(;!Re.done;de++,Re=T.next())Re=H(_,Re.value,B),Re!==null&&(C=u(Re,C,de),ae===null?le=Re:ae.sibling=Re,ae=Re);return Ie&&or(_,de),le}for(ue=r(_,ue);!Re.done;de++,Re=T.next())Re=X(ue,_,de,Re.value,B),Re!==null&&(e&&Re.alternate!==null&&ue.delete(Re.key===null?de:Re.key),C=u(Re,C,de),ae===null?le=Re:ae.sibling=Re,ae=Re);return e&&ue.forEach(function(yp){return t(_,yp)}),Ie&&or(_,de),le}function Ve(_,C,T,B){if(typeof T=="object"&&T!==null&&T.type===P&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case q:e:{for(var le=T.key,ae=C;ae!==null;){if(ae.key===le){if(le=T.type,le===P){if(ae.tag===7){n(_,ae.sibling),C=a(ae,T.props.children),C.return=_,_=C;break e}}else if(ae.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===$e&&Zs(le)===ae.type){n(_,ae.sibling),C=a(ae,T.props),C.ref=Pl(_,ae,T),C.return=_,_=C;break e}n(_,ae);break}else t(_,ae);ae=ae.sibling}T.type===P?(C=pr(T.props.children,_.mode,B,T.key),C.return=_,_=C):(B=eo(T.type,T.key,T.props,null,_.mode,B),B.ref=Pl(_,C,T),B.return=_,_=B)}return f(_);case Y:e:{for(ae=T.key;C!==null;){if(C.key===ae)if(C.tag===4&&C.stateNode.containerInfo===T.containerInfo&&C.stateNode.implementation===T.implementation){n(_,C.sibling),C=a(C,T.children||[]),C.return=_,_=C;break e}else{n(_,C);break}else t(_,C);C=C.sibling}C=au(T,_.mode,B),C.return=_,_=C}return f(_);case $e:return ae=T._init,Ve(_,C,ae(T._payload),B)}if(Zn(T))return te(_,C,T,B);if(oe(T))return re(_,C,T,B);Di(_,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,C!==null&&C.tag===6?(n(_,C.sibling),C=a(C,T),C.return=_,_=C):(n(_,C),C=ou(T,_.mode,B),C.return=_,_=C),f(_)):n(_,C)}return Ve}var Hr=qs(!0),bs=qs(!1),Ni=jn(null),Oi=null,Br=null,va=null;function ya(){va=Br=Oi=null}function ga(e){var t=Ni.current;ze(Ni),e._currentValue=t}function wa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $r(e,t){Oi=e,va=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(vt=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(va!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(Oi===null)throw Error(o(308));Br=e,Oi.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var ar=null;function Sa(e){ar===null?ar=[e]:ar.push(e)}function ec(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,Sa(t)):(n.next=a.next,a.next=n),t.interleaved=n,pn(e,r)}function pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var An=!1;function Ea(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tc(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ee&2)!==0){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,pn(e,n)}return a=r.interleaved,a===null?(t.next=t,Sa(r)):(t.next=a.next,a.next=t),r.interleaved=t,pn(e,n)}function Mi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fo(e,n)}}function nc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?a=u=t:u=u.next=t}else a=u=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zi(e,t,n,r){var a=e.updateQueue;An=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var x=y,N=x.next;x.next=null,f===null?u=N:f.next=N,f=x;var I=e.alternate;I!==null&&(I=I.updateQueue,y=I.lastBaseUpdate,y!==f&&(y===null?I.firstBaseUpdate=N:y.next=N,I.lastBaseUpdate=x))}if(u!==null){var H=a.baseState;f=0,I=N=x=null,y=u;do{var j=y.lane,X=y.eventTime;if((r&j)===j){I!==null&&(I=I.next={eventTime:X,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var te=e,re=y;switch(j=t,X=n,re.tag){case 1:if(te=re.payload,typeof te=="function"){H=te.call(X,H,j);break e}H=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=re.payload,j=typeof te=="function"?te.call(X,H,j):te,j==null)break e;H=J({},H,j);break e;case 2:An=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,j=a.effects,j===null?a.effects=[y]:j.push(y))}else X={eventTime:X,lane:j,tag:y.tag,payload:y.payload,callback:y.callback,next:null},I===null?(N=I=X,x=H):I=I.next=X,f|=j;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;j=y,y=j.next,j.next=null,a.lastBaseUpdate=j,a.shared.pending=null}}while(!0);if(I===null&&(x=H),a.baseState=x,a.firstBaseUpdate=N,a.lastBaseUpdate=I,t=a.shared.interleaved,t!==null){a=t;do f|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);cr|=f,e.lanes=f,e.memoizedState=H}}function rc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!="function")throw Error(o(191,a));a.call(r)}}}var _l={},nn=jn(_l),Ll=jn(_l),Tl=jn(_l);function ur(e){if(e===_l)throw Error(o(174));return e}function xa(e,t){switch(De(Tl,t),De(Ll,e),De(nn,_l),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qn(t,e)}ze(nn),De(nn,t)}function Vr(){ze(nn),ze(Ll),ze(Tl)}function lc(e){ur(Tl.current);var t=ur(nn.current),n=qn(t,e.type);t!==n&&(De(Ll,e),De(nn,n))}function ka(e){Ll.current===e&&(ze(nn),ze(Ll))}var Ae=jn(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ca=[];function Ra(){for(var e=0;e<Ca.length;e++)Ca[e]._workInProgressVersionPrimary=null;Ca.length=0}var ji=A.ReactCurrentDispatcher,Pa=A.ReactCurrentBatchConfig,sr=0,He=null,Xe=null,qe=null,Ii=!1,Dl=!1,Nl=0,Ah=0;function at(){throw Error(o(321))}function _a(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function La(e,t,n,r,a,u){if(sr=u,He=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ji.current=e===null||e.memoizedState===null?Vh:Wh,e=n(r,a),Dl){u=0;do{if(Dl=!1,Nl=0,25<=u)throw Error(o(301));u+=1,qe=Xe=null,t.updateQueue=null,ji.current=Kh,e=n(r,a)}while(Dl)}if(ji.current=Hi,t=Xe!==null&&Xe.next!==null,sr=0,qe=Xe=He=null,Ii=!1,t)throw Error(o(300));return e}function Ta(){var e=Nl!==0;return Nl=0,e}function rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?He.memoizedState=qe=e:qe=qe.next=e,qe}function Ot(){if(Xe===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=qe===null?He.memoizedState:qe.next;if(t!==null)qe=t,Xe=e;else{if(e===null)throw Error(o(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},qe===null?He.memoizedState=qe=e:qe=qe.next=e}return qe}function Ol(e,t){return typeof t=="function"?t(e):t}function Da(e){var t=Ot(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=Xe,a=r.baseQueue,u=n.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}r.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,r=r.baseState;var y=f=null,x=null,N=u;do{var I=N.lane;if((sr&I)===I)x!==null&&(x=x.next={lane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),r=N.hasEagerState?N.eagerState:e(r,N.action);else{var H={lane:I,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};x===null?(y=x=H,f=r):x=x.next=H,He.lanes|=I,cr|=I}N=N.next}while(N!==null&&N!==u);x===null?f=r:x.next=y,Bt(r,t.memoizedState)||(vt=!0),t.memoizedState=r,t.baseState=f,t.baseQueue=x,n.lastRenderedState=r}if(e=n.interleaved,e!==null){a=e;do u=a.lane,He.lanes|=u,cr|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Na(e){var t=Ot(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,u=t.memoizedState;if(a!==null){n.pending=null;var f=a=a.next;do u=e(u,f.action),f=f.next;while(f!==a);Bt(u,t.memoizedState)||(vt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function ic(){}function oc(e,t){var n=He,r=Ot(),a=t(),u=!Bt(r.memoizedState,a);if(u&&(r.memoizedState=a,vt=!0),r=r.queue,Oa(sc.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||qe!==null&&qe.memoizedState.tag&1){if(n.flags|=2048,Ml(9,uc.bind(null,n,r,a,t),void 0,null),be===null)throw Error(o(349));(sr&30)!==0||ac(n,t,a)}return a}function ac(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function uc(e,t,n,r){t.value=n,t.getSnapshot=r,cc(t)&&fc(e)}function sc(e,t,n){return n(function(){cc(t)&&fc(e)})}function cc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function fc(e){var t=pn(e,1);t!==null&&Qt(t,e,1,-1)}function dc(e){var t=rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ol,lastRenderedState:e},t.queue=e,e=e.dispatch=$h.bind(null,He,e),[t.memoizedState,e]}function Ml(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function hc(){return Ot().memoizedState}function Ui(e,t,n,r){var a=rn();He.flags|=e,a.memoizedState=Ml(1|t,n,void 0,r===void 0?null:r)}function Ai(e,t,n,r){var a=Ot();r=r===void 0?null:r;var u=void 0;if(Xe!==null){var f=Xe.memoizedState;if(u=f.destroy,r!==null&&_a(r,f.deps)){a.memoizedState=Ml(t,n,u,r);return}}He.flags|=e,a.memoizedState=Ml(1|t,n,u,r)}function pc(e,t){return Ui(8390656,8,e,t)}function Oa(e,t){return Ai(2048,8,e,t)}function mc(e,t){return Ai(4,2,e,t)}function vc(e,t){return Ai(4,4,e,t)}function yc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gc(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4,4,yc.bind(null,t,e),n)}function Ma(){}function wc(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_a(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sc(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_a(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ec(e,t,n){return(sr&21)===0?(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=n):(Bt(n,t)||(n=Zu(),He.lanes|=n,cr|=n,e.baseState=!0),t)}function Hh(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var r=Pa.transition;Pa.transition={};try{e(!1),t()}finally{_e=n,Pa.transition=r}}function xc(){return Ot().memoizedState}function Bh(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kc(e))Cc(t,n);else if(n=ec(e,t,n,r),n!==null){var a=dt();Qt(n,e,r,a),Rc(n,t,r)}}function $h(e,t,n){var r=Wn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kc(e))Cc(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,y=u(f,n);if(a.hasEagerState=!0,a.eagerState=y,Bt(y,f)){var x=t.interleaved;x===null?(a.next=a,Sa(t)):(a.next=x.next,x.next=a),t.interleaved=a;return}}catch{}finally{}n=ec(e,t,a,r),n!==null&&(a=dt(),Qt(n,e,r,a),Rc(n,t,r))}}function kc(e){var t=e.alternate;return e===He||t!==null&&t===He}function Cc(e,t){Dl=Ii=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rc(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fo(e,n)}}var Hi={readContext:Nt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},Vh={readContext:Nt,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:pc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4194308,4,yc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bh.bind(null,He,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:dc,useDebugValue:Ma,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=dc(!1),t=e[0];return e=Hh.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=He,a=rn();if(Ie){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),be===null)throw Error(o(349));(sr&30)!==0||ac(r,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,pc(sc.bind(null,r,u,e),[e]),r.flags|=2048,Ml(9,uc.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=rn(),t=be.identifierPrefix;if(Ie){var n=hn,r=dn;n=(r&~(1<<32-Ce(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ah++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Wh={readContext:Nt,useCallback:wc,useContext:Nt,useEffect:Oa,useImperativeHandle:gc,useInsertionEffect:mc,useLayoutEffect:vc,useMemo:Sc,useReducer:Da,useRef:hc,useState:function(){return Da(Ol)},useDebugValue:Ma,useDeferredValue:function(e){var t=Ot();return Ec(t,Xe.memoizedState,e)},useTransition:function(){var e=Da(Ol)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:ic,useSyncExternalStore:oc,useId:xc,unstable_isNewReconciler:!1},Kh={readContext:Nt,useCallback:wc,useContext:Nt,useEffect:Oa,useImperativeHandle:gc,useInsertionEffect:mc,useLayoutEffect:vc,useMemo:Sc,useReducer:Na,useRef:hc,useState:function(){return Na(Ol)},useDebugValue:Ma,useDeferredValue:function(e){var t=Ot();return Xe===null?t.memoizedState=e:Ec(t,Xe.memoizedState,e)},useTransition:function(){var e=Na(Ol)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:ic,useSyncExternalStore:oc,useId:xc,unstable_isNewReconciler:!1};function Vt(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function za(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bi={isMounted:function(e){return(e=e._reactInternals)?b(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dt(),a=Wn(e),u=mn(r,a);u.payload=t,n!=null&&(u.callback=n),t=Hn(e,u,a),t!==null&&(Qt(t,e,a,r),Mi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dt(),a=Wn(e),u=mn(r,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Hn(e,u,a),t!==null&&(Qt(t,e,a,r),Mi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dt(),r=Wn(e),a=mn(n,r);a.tag=2,t!=null&&(a.callback=t),t=Hn(e,a,r),t!==null&&(Qt(t,e,r,n),Mi(t,e,r))}};function Pc(e,t,n,r,a,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,f):t.prototype&&t.prototype.isPureReactComponent?!wl(n,r)||!wl(a,u):!0}function _c(e,t,n){var r=!1,a=In,u=t.contextType;return typeof u=="object"&&u!==null?u=Nt(u):(a=mt(t)?lr:ot.current,r=t.contextTypes,u=(r=r!=null)?jr(e,a):In),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function Lc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bi.enqueueReplaceState(t,t.state,null)}function Fa(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Ea(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=Nt(u):(u=mt(t)?lr:ot.current,a.context=jr(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(za(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Bi.enqueueReplaceState(a,a.state,null),zi(e,n,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Wr(e,t){try{var n="",r=t;do n+=nt(r),r=r.return;while(r);var a=n}catch(u){a=`
23
- Error generating stack: `+u.message+`
24
- `+u.stack}return{value:e,source:t,stack:a,digest:null}}function ja(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ia(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qh=typeof WeakMap=="function"?WeakMap:Map;function Tc(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xi||(Xi=!0,qa=r),Ia(e,t)},n}function Dc(e,t,n){n=mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){Ia(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ia(e,t),typeof r!="function"&&($n===null?$n=new Set([this]):$n.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function Nc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qh;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=op.bind(null,e,t,n),t.then(e,e))}function Oc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Mc(e,t,n,r,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mn(-1,1),t.tag=2,Hn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Yh=A.ReactCurrentOwner,vt=!1;function ft(e,t,n,r){t.child=e===null?bs(t,null,n,r):Hr(t,e.child,n,r)}function zc(e,t,n,r,a){n=n.render;var u=t.ref;return $r(t,a),r=La(e,t,n,r,u,a),n=Ta(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,vn(e,t,a)):(Ie&&n&&fa(t),t.flags|=1,ft(e,t,r,a),t.child)}function Fc(e,t,n,r,a){if(e===null){var u=n.type;return typeof u=="function"&&!iu(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,jc(e,t,u,r,a)):(e=eo(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&a)===0){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:wl,n(f,r)&&e.ref===t.ref)return vn(e,t,a)}return t.flags|=1,e=Qn(u,r),e.ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,a){if(e!==null){var u=e.memoizedProps;if(wl(u,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,vn(e,t,a)}return Ua(e,t,n,r,a)}function Ic(e,t,n){var r=t.pendingProps,a=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},De(Qr,Pt),Pt|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,De(Qr,Pt),Pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,De(Qr,Pt),Pt|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,De(Qr,Pt),Pt|=r;return ft(e,t,a,n),t.child}function Uc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ua(e,t,n,r,a){var u=mt(n)?lr:ot.current;return u=jr(t,u),$r(t,a),n=La(e,t,n,r,u,a),r=Ta(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,vn(e,t,a)):(Ie&&r&&fa(t),t.flags|=1,ft(e,t,n,a),t.child)}function Ac(e,t,n,r,a){if(mt(n)){var u=!0;Ri(t)}else u=!1;if($r(t,a),t.stateNode===null)Vi(e,t),_c(t,n,r),Fa(t,n,r,a),r=!0;else if(e===null){var f=t.stateNode,y=t.memoizedProps;f.props=y;var x=f.context,N=n.contextType;typeof N=="object"&&N!==null?N=Nt(N):(N=mt(n)?lr:ot.current,N=jr(t,N));var I=n.getDerivedStateFromProps,H=typeof I=="function"||typeof f.getSnapshotBeforeUpdate=="function";H||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==r||x!==N)&&Lc(t,f,r,N),An=!1;var j=t.memoizedState;f.state=j,zi(t,r,f,a),x=t.memoizedState,y!==r||j!==x||pt.current||An?(typeof I=="function"&&(za(t,n,I,r),x=t.memoizedState),(y=An||Pc(t,n,y,r,j,x,N))?(H||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=x),f.props=r,f.state=x,f.context=N,r=y):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{f=t.stateNode,tc(e,t),y=t.memoizedProps,N=t.type===t.elementType?y:Vt(t.type,y),f.props=N,H=t.pendingProps,j=f.context,x=n.contextType,typeof x=="object"&&x!==null?x=Nt(x):(x=mt(n)?lr:ot.current,x=jr(t,x));var X=n.getDerivedStateFromProps;(I=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==H||j!==x)&&Lc(t,f,r,x),An=!1,j=t.memoizedState,f.state=j,zi(t,r,f,a);var te=t.memoizedState;y!==H||j!==te||pt.current||An?(typeof X=="function"&&(za(t,n,X,r),te=t.memoizedState),(N=An||Pc(t,n,N,r,j,te,x)||!1)?(I||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(r,te,x),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(r,te,x)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=te),f.props=r,f.state=te,f.context=x,r=N):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),r=!1)}return Aa(e,t,n,r,u,a)}function Aa(e,t,n,r,a,u){Uc(e,t);var f=(t.flags&128)!==0;if(!r&&!f)return a&&Ws(t,n,!1),vn(e,t,u);r=t.stateNode,Yh.current=t;var y=f&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&f?(t.child=Hr(t,e.child,null,u),t.child=Hr(t,null,y,u)):ft(e,t,y,u),t.memoizedState=r.state,a&&Ws(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?$s(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$s(e,t.context,!1),xa(e,t.containerInfo)}function Bc(e,t,n,r,a){return Ar(),ma(a),t.flags|=256,ft(e,t,n,r),t.child}var Ha={dehydrated:null,treeContext:null,retryLane:0};function Ba(e){return{baseLanes:e,cachePool:null,transitions:null}}function $c(e,t,n){var r=t.pendingProps,a=Ae.current,u=!1,f=(t.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),De(Ae,a&1),e===null)return pa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(f=r.children,e=r.fallback,u?(r=t.mode,u=t.child,f={mode:"hidden",children:f},(r&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=f):u=to(f,r,0,null),e=pr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ba(n),t.memoizedState=Ha,e):$a(t,f));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return Xh(e,t,f,r,y,a,n);if(u){u=r.fallback,f=t.mode,a=e.child,y=a.sibling;var x={mode:"hidden",children:r.children};return(f&1)===0&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=x,t.deletions=null):(r=Qn(a,x),r.subtreeFlags=a.subtreeFlags&14680064),y!==null?u=Qn(y,u):(u=pr(u,f,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,f=e.child.memoizedState,f=f===null?Ba(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=Ha,r}return u=e.child,e=u.sibling,r=Qn(u,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function $a(e,t){return t=to({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $i(e,t,n,r){return r!==null&&ma(r),Hr(t,e.child,null,n),e=$a(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xh(e,t,n,r,a,u,f){if(n)return t.flags&256?(t.flags&=-257,r=ja(Error(o(422))),$i(e,t,f,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,a=t.mode,r=to({mode:"visible",children:r.children},a,0,null),u=pr(u,a,f,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,(t.mode&1)!==0&&Hr(t,e.child,null,f),t.child.memoizedState=Ba(f),t.memoizedState=Ha,u);if((t.mode&1)===0)return $i(e,t,f,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var y=r.dgst;return r=y,u=Error(o(419)),r=ja(u,r,void 0),$i(e,t,f,r)}if(y=(f&e.childLanes)!==0,vt||y){if(r=be,r!==null){switch(f&-f){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(r.suspendedLanes|f))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,pn(e,a),Qt(r,e,a,-1))}return lu(),r=ja(Error(o(421))),$i(e,t,f,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=ap.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Rt=Fn(a.nextSibling),Ct=t,Ie=!0,$t=null,e!==null&&(Tt[Dt++]=dn,Tt[Dt++]=hn,Tt[Dt++]=ir,dn=e.id,hn=e.overflow,ir=t),t=$a(t,r.children),t.flags|=4096,t)}function Vc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wa(e.return,t,n)}function Va(e,t,n,r,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=a)}function Wc(e,t,n){var r=t.pendingProps,a=r.revealOrder,u=r.tail;if(ft(e,t,r.children,n),r=Ae.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vc(e,n,t);else if(e.tag===19)Vc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(De(Ae,r),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Fi(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Va(t,!1,a,n,u);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Fi(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Va(t,!0,n,null,u);break;case"together":Va(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Qn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Jh(e,t,n){switch(t.tag){case 3:Hc(t),Ar();break;case 5:lc(t);break;case 1:mt(t.type)&&Ri(t);break;case 4:xa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;De(Ni,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(De(Ae,Ae.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?$c(e,t,n):(De(Ae,Ae.current&1),e=vn(e,t,n),e!==null?e.sibling:null);De(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Wc(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),De(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Ic(e,t,n)}return vn(e,t,n)}var Kc,Wa,Qc,Yc;Kc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(){},Qc=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ur(nn.current);var u=null;switch(n){case"input":a=Er(e,a),r=Er(e,r),u=[];break;case"select":a=J({},a,{value:void 0}),r=J({},r,{value:void 0}),u=[];break;case"textarea":a=el(e,a),r=el(e,r),u=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xi)}kr(n,r);var f;n=null;for(N in a)if(!r.hasOwnProperty(N)&&a.hasOwnProperty(N)&&a[N]!=null)if(N==="style"){var y=a[N];for(f in y)y.hasOwnProperty(f)&&(n||(n={}),n[f]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(c.hasOwnProperty(N)?u||(u=[]):(u=u||[]).push(N,null));for(N in r){var x=r[N];if(y=a!=null?a[N]:void 0,r.hasOwnProperty(N)&&x!==y&&(x!=null||y!=null))if(N==="style")if(y){for(f in y)!y.hasOwnProperty(f)||x&&x.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in x)x.hasOwnProperty(f)&&y[f]!==x[f]&&(n||(n={}),n[f]=x[f])}else n||(u||(u=[]),u.push(N,n)),n=x;else N==="dangerouslySetInnerHTML"?(x=x?x.__html:void 0,y=y?y.__html:void 0,x!=null&&y!==x&&(u=u||[]).push(N,x)):N==="children"?typeof x!="string"&&typeof x!="number"||(u=u||[]).push(N,""+x):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(c.hasOwnProperty(N)?(x!=null&&N==="onScroll"&&Me("scroll",e),u||y===x||(u=[])):(u=u||[]).push(N,x))}n&&(u=u||[]).push("style",n);var N=u;(t.updateQueue=N)&&(t.flags|=4)}},Yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function zl(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gh(e,t,n){var r=t.pendingProps;switch(da(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return mt(t.type)&&Ci(),ut(t),null;case 3:return r=t.stateNode,Vr(),ze(pt),ze(ot),Ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ti(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$t!==null&&(tu($t),$t=null))),Wa(e,t),ut(t),null;case 5:ka(t);var a=ur(Tl.current);if(n=t.type,e!==null&&t.stateNode!=null)Qc(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(o(166));return ut(t),null}if(e=ur(nn.current),Ti(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[tn]=t,r[Cl]=u,e=(t.mode&1)!==0,n){case"dialog":Me("cancel",r),Me("close",r);break;case"iframe":case"object":case"embed":Me("load",r);break;case"video":case"audio":for(a=0;a<El.length;a++)Me(El[a],r);break;case"source":Me("error",r);break;case"img":case"image":case"link":Me("error",r),Me("load",r);break;case"details":Me("toggle",r);break;case"input":Zl(r,u),Me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Me("invalid",r);break;case"textarea":bl(r,u),Me("invalid",r)}kr(n,u),a=null;for(var f in u)if(u.hasOwnProperty(f)){var y=u[f];f==="children"?typeof y=="string"?r.textContent!==y&&(u.suppressHydrationWarning!==!0&&Ei(r.textContent,y,e),a=["children",y]):typeof y=="number"&&r.textContent!==""+y&&(u.suppressHydrationWarning!==!0&&Ei(r.textContent,y,e),a=["children",""+y]):c.hasOwnProperty(f)&&y!=null&&f==="onScroll"&&Me("scroll",r)}switch(n){case"input":Sr(r),ql(r,u,!0);break;case"textarea":Sr(r),Cn(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=xi)}r=a,t.updateQueue=r,r!==null&&(t.flags|=4)}else{f=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tl(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=f.createElement(n,{is:r.is}):(e=f.createElement(n),n==="select"&&(f=e,r.multiple?f.multiple=!0:r.size&&(f.size=r.size))):e=f.createElementNS(e,n),e[tn]=t,e[Cl]=r,Kc(e,t,!1,!1),t.stateNode=e;e:{switch(f=rl(n,r),n){case"dialog":Me("cancel",e),Me("close",e),a=r;break;case"iframe":case"object":case"embed":Me("load",e),a=r;break;case"video":case"audio":for(a=0;a<El.length;a++)Me(El[a],e);a=r;break;case"source":Me("error",e),a=r;break;case"img":case"image":case"link":Me("error",e),Me("load",e),a=r;break;case"details":Me("toggle",e),a=r;break;case"input":Zl(e,r),a=Er(e,r),Me("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=J({},r,{value:void 0}),Me("invalid",e);break;case"textarea":bl(e,r),a=el(e,r),Me("invalid",e);break;default:a=r}kr(n,a),y=a;for(u in y)if(y.hasOwnProperty(u)){var x=y[u];u==="style"?nl(e,x):u==="dangerouslySetInnerHTML"?(x=x?x.__html:void 0,x!=null&&Lt(e,x)):u==="children"?typeof x=="string"?(n!=="textarea"||x!=="")&&Rn(e,x):typeof x=="number"&&Rn(e,""+x):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?x!=null&&u==="onScroll"&&Me("scroll",e):x!=null&&Q(e,u,x,f))}switch(n){case"input":Sr(e),ql(e,r,!1);break;case"textarea":Sr(e),Cn(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Et(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?kn(e,!!r.multiple,u,!1):r.defaultValue!=null&&kn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=xi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)Yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(n=ur(Tl.current),ur(nn.current),Ti(t)){if(r=t.stateNode,n=t.memoizedProps,r[tn]=t,(u=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:Ei(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ei(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tn]=t,t.stateNode=r}return ut(t),null;case 13:if(ze(Ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&Rt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Gs(),Ar(),t.flags|=98560,u=!1;else if(u=Ti(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[tn]=t}else Ar(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),u=!1}else $t!==null&&(tu($t),$t=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ae.current&1)!==0?Je===0&&(Je=3):lu())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return Vr(),Wa(e,t),e===null&&xl(t.stateNode.containerInfo),ut(t),null;case 10:return ga(t.type._context),ut(t),null;case 17:return mt(t.type)&&Ci(),ut(t),null;case 19:if(ze(Ae),u=t.memoizedState,u===null)return ut(t),null;if(r=(t.flags&128)!==0,f=u.rendering,f===null)if(r)zl(u,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Fi(e),f!==null){for(t.flags|=128,zl(u,!1),r=f.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,f=u.alternate,f===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return De(Ae,Ae.current&1|2),t.child}e=e.sibling}u.tail!==null&&ke()>Yr&&(t.flags|=128,r=!0,zl(u,!1),t.lanes=4194304)}else{if(!r)if(e=Fi(f),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Ie)return ut(t),null}else 2*ke()-u.renderingStartTime>Yr&&n!==1073741824&&(t.flags|=128,r=!0,zl(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=ke(),t.sibling=null,n=Ae.current,De(Ae,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Pt&1073741824)!==0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Zh(e,t){switch(da(t),t.tag){case 1:return mt(t.type)&&Ci(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),ze(pt),ze(ot),Ra(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ka(t),null;case 13:if(ze(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ze(Ae),null;case 4:return Vr(),null;case 10:return ga(t.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Wi=!1,st=!1,qh=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Kr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Be(e,t,r)}else n.current=null}function Ka(e,t,n){try{n()}catch(r){Be(e,t,r)}}var Xc=!1;function bh(e,t){if(ra=ci,e=Ps(),Jo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var f=0,y=-1,x=-1,N=0,I=0,H=e,j=null;t:for(;;){for(var X;H!==n||a!==0&&H.nodeType!==3||(y=f+a),H!==u||r!==0&&H.nodeType!==3||(x=f+r),H.nodeType===3&&(f+=H.nodeValue.length),(X=H.firstChild)!==null;)j=H,H=X;for(;;){if(H===e)break t;if(j===n&&++N===a&&(y=f),j===u&&++I===r&&(x=f),(X=H.nextSibling)!==null)break;H=j,j=H.parentNode}H=X}n=y===-1||x===-1?null:{start:y,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(la={focusedElem:e,selectionRange:n},ci=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var te=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var re=te.memoizedProps,Ve=te.memoizedState,_=t.stateNode,C=_.getSnapshotBeforeUpdate(t.elementType===t.type?re:Vt(t.type,re),Ve);_.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(B){Be(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return te=Xc,Xc=!1,te}function Fl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var u=a.destroy;a.destroy=void 0,u!==void 0&&Ka(t,n,u)}a=a.next}while(a!==r)}}function Ki(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Jc(e){var t=e.alternate;t!==null&&(e.alternate=null,Jc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tn],delete t[Cl],delete t[ua],delete t[Fh],delete t[jh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gc(e){return e.tag===5||e.tag===3||e.tag===4}function Zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ya(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xi));else if(r!==4&&(e=e.child,e!==null))for(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}function Xa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xa(e,t,n),e=e.sibling;e!==null;)Xa(e,t,n),e=e.sibling}var lt=null,Wt=!1;function Bn(e,t,n){for(n=n.child;n!==null;)qc(e,t,n),n=n.sibling}function qc(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Te,n)}catch{}switch(n.tag){case 5:st||Kr(n,t);case 6:var r=lt,a=Wt;lt=null,Bn(e,t,n),lt=r,Wt=a,lt!==null&&(Wt?(e=lt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lt.removeChild(n.stateNode));break;case 18:lt!==null&&(Wt?(e=lt,n=n.stateNode,e.nodeType===8?aa(e.parentNode,n):e.nodeType===1&&aa(e,n),hl(e)):aa(lt,n.stateNode));break;case 4:r=lt,a=Wt,lt=n.stateNode.containerInfo,Wt=!0,Bn(e,t,n),lt=r,Wt=a;break;case 0:case 11:case 14:case 15:if(!st&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var u=a,f=u.destroy;u=u.tag,f!==void 0&&((u&2)!==0||(u&4)!==0)&&Ka(n,t,f),a=a.next}while(a!==r)}Bn(e,t,n);break;case 1:if(!st&&(Kr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(y){Be(n,t,y)}Bn(e,t,n);break;case 21:Bn(e,t,n);break;case 22:n.mode&1?(st=(r=st)||n.memoizedState!==null,Bn(e,t,n),st=r):Bn(e,t,n);break;default:Bn(e,t,n)}}function bc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qh),t.forEach(function(r){var a=up.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r];try{var u=e,f=t,y=f;e:for(;y!==null;){switch(y.tag){case 5:lt=y.stateNode,Wt=!1;break e;case 3:lt=y.stateNode.containerInfo,Wt=!0;break e;case 4:lt=y.stateNode.containerInfo,Wt=!0;break e}y=y.return}if(lt===null)throw Error(o(160));qc(u,f,a),lt=null,Wt=!1;var x=a.alternate;x!==null&&(x.return=null),a.return=null}catch(N){Be(a,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ef(t,e),t=t.sibling}function ef(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Kt(t,e),ln(e),r&4){try{Fl(3,e,e.return),Ki(3,e)}catch(re){Be(e,e.return,re)}try{Fl(5,e,e.return)}catch(re){Be(e,e.return,re)}}break;case 1:Kt(t,e),ln(e),r&512&&n!==null&&Kr(n,n.return);break;case 5:if(Kt(t,e),ln(e),r&512&&n!==null&&Kr(n,n.return),e.flags&32){var a=e.stateNode;try{Rn(a,"")}catch(re){Be(e,e.return,re)}}if(r&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,y=e.type,x=e.updateQueue;if(e.updateQueue=null,x!==null)try{y==="input"&&u.type==="radio"&&u.name!=null&&Jt(a,u),rl(y,f);var N=rl(y,u);for(f=0;f<x.length;f+=2){var I=x[f],H=x[f+1];I==="style"?nl(a,H):I==="dangerouslySetInnerHTML"?Lt(a,H):I==="children"?Rn(a,H):Q(a,I,H,N)}switch(y){case"input":br(a,u);break;case"textarea":Gt(a,u);break;case"select":var j=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var X=u.value;X!=null?kn(a,!!u.multiple,X,!1):j!==!!u.multiple&&(u.defaultValue!=null?kn(a,!!u.multiple,u.defaultValue,!0):kn(a,!!u.multiple,u.multiple?[]:"",!1))}a[Cl]=u}catch(re){Be(e,e.return,re)}}break;case 6:if(Kt(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(o(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(re){Be(e,e.return,re)}}break;case 3:if(Kt(t,e),ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hl(t.containerInfo)}catch(re){Be(e,e.return,re)}break;case 4:Kt(t,e),ln(e);break;case 13:Kt(t,e),ln(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Za=ke())),r&4&&bc(e);break;case 22:if(I=n!==null&&n.memoizedState!==null,e.mode&1?(st=(N=st)||I,Kt(t,e),st=N):Kt(t,e),ln(e),r&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!I&&(e.mode&1)!==0)for(Z=e,I=e.child;I!==null;){for(H=Z=I;Z!==null;){switch(j=Z,X=j.child,j.tag){case 0:case 11:case 14:case 15:Fl(4,j,j.return);break;case 1:Kr(j,j.return);var te=j.stateNode;if(typeof te.componentWillUnmount=="function"){r=j,n=j.return;try{t=r,te.props=t.memoizedProps,te.state=t.memoizedState,te.componentWillUnmount()}catch(re){Be(r,n,re)}}break;case 5:Kr(j,j.return);break;case 22:if(j.memoizedState!==null){rf(H);continue}}X!==null?(X.return=j,Z=X):rf(H)}I=I.sibling}e:for(I=null,H=e;;){if(H.tag===5){if(I===null){I=H;try{a=H.stateNode,N?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(y=H.stateNode,x=H.memoizedProps.style,f=x!=null&&x.hasOwnProperty("display")?x.display:null,y.style.display=At("display",f))}catch(re){Be(e,e.return,re)}}}else if(H.tag===6){if(I===null)try{H.stateNode.nodeValue=N?"":H.memoizedProps}catch(re){Be(e,e.return,re)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===e)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===e)break e;for(;H.sibling===null;){if(H.return===null||H.return===e)break e;I===H&&(I=null),H=H.return}I===H&&(I=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:Kt(t,e),ln(e),r&4&&bc(e);break;case 21:break;default:Kt(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gc(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(Rn(a,""),r.flags&=-33);var u=Zc(e);Xa(e,u,a);break;case 3:case 4:var f=r.stateNode.containerInfo,y=Zc(e);Ya(e,y,f);break;default:throw Error(o(161))}}catch(x){Be(e,e.return,x)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ep(e,t,n){Z=e,tf(e)}function tf(e,t,n){for(var r=(e.mode&1)!==0;Z!==null;){var a=Z,u=a.child;if(a.tag===22&&r){var f=a.memoizedState!==null||Wi;if(!f){var y=a.alternate,x=y!==null&&y.memoizedState!==null||st;y=Wi;var N=st;if(Wi=f,(st=x)&&!N)for(Z=a;Z!==null;)f=Z,x=f.child,f.tag===22&&f.memoizedState!==null?lf(a):x!==null?(x.return=f,Z=x):lf(a);for(;u!==null;)Z=u,tf(u),u=u.sibling;Z=a,Wi=y,st=N}nf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,Z=u):nf(e)}}function nf(e){for(;Z!==null;){var t=Z;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:st||Ki(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!st)if(n===null)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Vt(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&rc(t,u,r);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rc(t,f,n)}break;case 5:var y=t.stateNode;if(n===null&&t.flags&4){n=y;var x=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":x.autoFocus&&n.focus();break;case"img":x.src&&(n.src=x.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var N=t.alternate;if(N!==null){var I=N.memoizedState;if(I!==null){var H=I.dehydrated;H!==null&&hl(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}st||t.flags&512&&Qa(t)}catch(j){Be(t,t.return,j)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function rf(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function lf(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ki(4,t)}catch(x){Be(t,n,x)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var a=t.return;try{r.componentDidMount()}catch(x){Be(t,a,x)}}var u=t.return;try{Qa(t)}catch(x){Be(t,u,x)}break;case 5:var f=t.return;try{Qa(t)}catch(x){Be(t,f,x)}}}catch(x){Be(t,t.return,x)}if(t===e){Z=null;break}var y=t.sibling;if(y!==null){y.return=t.return,Z=y;break}Z=t.return}}var tp=Math.ceil,Qi=A.ReactCurrentDispatcher,Ja=A.ReactCurrentOwner,Mt=A.ReactCurrentBatchConfig,Ee=0,be=null,We=null,it=0,Pt=0,Qr=jn(0),Je=0,jl=null,cr=0,Yi=0,Ga=0,Il=null,yt=null,Za=0,Yr=1/0,yn=null,Xi=!1,qa=null,$n=null,Ji=!1,Vn=null,Gi=0,Ul=0,ba=null,Zi=-1,qi=0;function dt(){return(Ee&6)!==0?ke():Zi!==-1?Zi:Zi=ke()}function Wn(e){return(e.mode&1)===0?1:(Ee&2)!==0&&it!==0?it&-it:Uh.transition!==null?(qi===0&&(qi=Zu()),qi):(e=_e,e!==0||(e=window.event,e=e===void 0?16:os(e.type)),e)}function Qt(e,t,n,r){if(50<Ul)throw Ul=0,ba=null,Error(o(185));ul(e,n,r),((Ee&2)===0||e!==be)&&(e===be&&((Ee&2)===0&&(Yi|=n),Je===4&&Kn(e,it)),gt(e,r),n===1&&Ee===0&&(t.mode&1)===0&&(Yr=ke()+500,Pi&&Un()))}function gt(e,t){var n=e.callbackNode;Ud(e,t);var r=ai(e,e===be?it:0);if(r===0)n!==null&&an(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&an(n),t===1)e.tag===0?Ih(af.bind(null,e)):Ks(af.bind(null,e)),Mh(function(){(Ee&6)===0&&Un()}),n=null;else{switch(qu(r)){case 1:n=un;break;case 4:n=en;break;case 16:n=sn;break;case 536870912:n=ye;break;default:n=sn}n=mf(n,of.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function of(e,t){if(Zi=-1,qi=0,(Ee&6)!==0)throw Error(o(327));var n=e.callbackNode;if(Xr()&&e.callbackNode!==n)return null;var r=ai(e,e===be?it:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=bi(e,r);else{t=r;var a=Ee;Ee|=2;var u=sf();(be!==e||it!==t)&&(yn=null,Yr=ke()+500,dr(e,t));do try{lp();break}catch(y){uf(e,y)}while(!0);ya(),Qi.current=u,Ee=a,We!==null?t=0:(be=null,it=0,t=Je)}if(t!==0){if(t===2&&(a=Mo(e),a!==0&&(r=a,t=eu(e,a))),t===1)throw n=jl,dr(e,0),Kn(e,r),gt(e,ke()),n;if(t===6)Kn(e,r);else{if(a=e.current.alternate,(r&30)===0&&!np(a)&&(t=bi(e,r),t===2&&(u=Mo(e),u!==0&&(r=u,t=eu(e,u))),t===1))throw n=jl,dr(e,0),Kn(e,r),gt(e,ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:hr(e,yt,yn);break;case 3:if(Kn(e,r),(r&130023424)===r&&(t=Za+500-ke(),10<t)){if(ai(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){dt(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=oa(hr.bind(null,e,yt,yn),t);break}hr(e,yt,yn);break;case 4:if(Kn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,a=-1;0<r;){var f=31-Ce(r);u=1<<f,f=t[f],f>a&&(a=f),r&=~u}if(r=a,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tp(r/1960))-r,10<r){e.timeoutHandle=oa(hr.bind(null,e,yt,yn),r);break}hr(e,yt,yn);break;case 5:hr(e,yt,yn);break;default:throw Error(o(329))}}}return gt(e,ke()),e.callbackNode===n?of.bind(null,e):null}function eu(e,t){var n=Il;return e.current.memoizedState.isDehydrated&&(dr(e,t).flags|=256),e=bi(e,t),e!==2&&(t=yt,yt=n,t!==null&&tu(t)),e}function tu(e){yt===null?yt=e:yt.push.apply(yt,e)}function np(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var a=n[r],u=a.getSnapshot;a=a.value;try{if(!Bt(u(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Kn(e,t){for(t&=~Ga,t&=~Yi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ce(t),r=1<<n;e[n]=-1,t&=~r}}function af(e){if((Ee&6)!==0)throw Error(o(327));Xr();var t=ai(e,0);if((t&1)===0)return gt(e,ke()),null;var n=bi(e,t);if(e.tag!==0&&n===2){var r=Mo(e);r!==0&&(t=r,n=eu(e,r))}if(n===1)throw n=jl,dr(e,0),Kn(e,t),gt(e,ke()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hr(e,yt,yn),gt(e,ke()),null}function nu(e,t){var n=Ee;Ee|=1;try{return e(t)}finally{Ee=n,Ee===0&&(Yr=ke()+500,Pi&&Un())}}function fr(e){Vn!==null&&Vn.tag===0&&(Ee&6)===0&&Xr();var t=Ee;Ee|=1;var n=Mt.transition,r=_e;try{if(Mt.transition=null,_e=1,e)return e()}finally{_e=r,Mt.transition=n,Ee=t,(Ee&6)===0&&Un()}}function ru(){Pt=Qr.current,ze(Qr)}function dr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Oh(n)),We!==null)for(n=We.return;n!==null;){var r=n;switch(da(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ci();break;case 3:Vr(),ze(pt),ze(ot),Ra();break;case 5:ka(r);break;case 4:Vr();break;case 13:ze(Ae);break;case 19:ze(Ae);break;case 10:ga(r.type._context);break;case 22:case 23:ru()}n=n.return}if(be=e,We=e=Qn(e.current,null),it=Pt=t,Je=0,jl=null,Ga=Yi=cr=0,yt=Il=null,ar!==null){for(t=0;t<ar.length;t++)if(n=ar[t],r=n.interleaved,r!==null){n.interleaved=null;var a=r.next,u=n.pending;if(u!==null){var f=u.next;u.next=a,r.next=f}n.pending=r}ar=null}return e}function uf(e,t){do{var n=We;try{if(ya(),ji.current=Hi,Ii){for(var r=He.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Ii=!1}if(sr=0,qe=Xe=He=null,Dl=!1,Nl=0,Ja.current=null,n===null||n.return===null){Je=1,jl=t,We=null;break}e:{var u=e,f=n.return,y=n,x=t;if(t=it,y.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){var N=x,I=y,H=I.tag;if((I.mode&1)===0&&(H===0||H===11||H===15)){var j=I.alternate;j?(I.updateQueue=j.updateQueue,I.memoizedState=j.memoizedState,I.lanes=j.lanes):(I.updateQueue=null,I.memoizedState=null)}var X=Oc(f);if(X!==null){X.flags&=-257,Mc(X,f,y,u,t),X.mode&1&&Nc(u,N,t),t=X,x=N;var te=t.updateQueue;if(te===null){var re=new Set;re.add(x),t.updateQueue=re}else te.add(x);break e}else{if((t&1)===0){Nc(u,N,t),lu();break e}x=Error(o(426))}}else if(Ie&&y.mode&1){var Ve=Oc(f);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),Mc(Ve,f,y,u,t),ma(Wr(x,y));break e}}u=x=Wr(x,y),Je!==4&&(Je=2),Il===null?Il=[u]:Il.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var _=Tc(u,x,t);nc(u,_);break e;case 1:y=x;var C=u.type,T=u.stateNode;if((u.flags&128)===0&&(typeof C.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&($n===null||!$n.has(T)))){u.flags|=65536,t&=-t,u.lanes|=t;var B=Dc(u,y,t);nc(u,B);break e}}u=u.return}while(u!==null)}ff(n)}catch(le){t=le,We===n&&n!==null&&(We=n=n.return);continue}break}while(!0)}function sf(){var e=Qi.current;return Qi.current=Hi,e===null?Hi:e}function lu(){(Je===0||Je===3||Je===2)&&(Je=4),be===null||(cr&268435455)===0&&(Yi&268435455)===0||Kn(be,it)}function bi(e,t){var n=Ee;Ee|=2;var r=sf();(be!==e||it!==t)&&(yn=null,dr(e,t));do try{rp();break}catch(a){uf(e,a)}while(!0);if(ya(),Ee=n,Qi.current=r,We!==null)throw Error(o(261));return be=null,it=0,Je}function rp(){for(;We!==null;)cf(We)}function lp(){for(;We!==null&&!tr();)cf(We)}function cf(e){var t=pf(e.alternate,e,Pt);e.memoizedProps=e.pendingProps,t===null?ff(e):We=t,Ja.current=null}function ff(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Gh(n,t,Pt),n!==null){We=n;return}}else{if(n=Zh(n,t),n!==null){n.flags&=32767,We=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,We=null;return}}if(t=t.sibling,t!==null){We=t;return}We=t=e}while(t!==null);Je===0&&(Je=5)}function hr(e,t,n){var r=_e,a=Mt.transition;try{Mt.transition=null,_e=1,ip(e,t,n,r)}finally{Mt.transition=a,_e=r}return null}function ip(e,t,n,r){do Xr();while(Vn!==null);if((Ee&6)!==0)throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Ad(e,u),e===be&&(We=be=null,it=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ji||(Ji=!0,mf(sn,function(){return Xr(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Mt.transition,Mt.transition=null;var f=_e;_e=1;var y=Ee;Ee|=4,Ja.current=null,bh(e,n),ef(n,e),Rh(la),ci=!!ra,la=ra=null,e.current=n,ep(n),Ht(),Ee=y,_e=f,Mt.transition=u}else e.current=n;if(Ji&&(Ji=!1,Vn=e,Gi=a),u=e.pendingLanes,u===0&&($n=null),nr(n.stateNode),gt(e,ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Xi)throw Xi=!1,e=qa,qa=null,e;return(Gi&1)!==0&&e.tag!==0&&Xr(),u=e.pendingLanes,(u&1)!==0?e===ba?Ul++:(Ul=0,ba=e):Ul=0,Un(),null}function Xr(){if(Vn!==null){var e=qu(Gi),t=Mt.transition,n=_e;try{if(Mt.transition=null,_e=16>e?16:e,Vn===null)var r=!1;else{if(e=Vn,Vn=null,Gi=0,(Ee&6)!==0)throw Error(o(331));var a=Ee;for(Ee|=4,Z=e.current;Z!==null;){var u=Z,f=u.child;if((Z.flags&16)!==0){var y=u.deletions;if(y!==null){for(var x=0;x<y.length;x++){var N=y[x];for(Z=N;Z!==null;){var I=Z;switch(I.tag){case 0:case 11:case 15:Fl(8,I,u)}var H=I.child;if(H!==null)H.return=I,Z=H;else for(;Z!==null;){I=Z;var j=I.sibling,X=I.return;if(Jc(I),I===N){Z=null;break}if(j!==null){j.return=X,Z=j;break}Z=X}}}var te=u.alternate;if(te!==null){var re=te.child;if(re!==null){te.child=null;do{var Ve=re.sibling;re.sibling=null,re=Ve}while(re!==null)}}Z=u}}if((u.subtreeFlags&2064)!==0&&f!==null)f.return=u,Z=f;else e:for(;Z!==null;){if(u=Z,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Fl(9,u,u.return)}var _=u.sibling;if(_!==null){_.return=u.return,Z=_;break e}Z=u.return}}var C=e.current;for(Z=C;Z!==null;){f=Z;var T=f.child;if((f.subtreeFlags&2064)!==0&&T!==null)T.return=f,Z=T;else e:for(f=C;Z!==null;){if(y=Z,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Ki(9,y)}}catch(le){Be(y,y.return,le)}if(y===f){Z=null;break e}var B=y.sibling;if(B!==null){B.return=y.return,Z=B;break e}Z=y.return}}if(Ee=a,Un(),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Te,e)}catch{}r=!0}return r}finally{_e=n,Mt.transition=t}}return!1}function df(e,t,n){t=Wr(n,t),t=Tc(e,t,1),e=Hn(e,t,1),t=dt(),e!==null&&(ul(e,1,t),gt(e,t))}function Be(e,t,n){if(e.tag===3)df(e,e,n);else for(;t!==null;){if(t.tag===3){df(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))){e=Wr(n,e),e=Dc(t,e,1),t=Hn(t,e,1),e=dt(),t!==null&&(ul(t,1,e),gt(t,e));break}}t=t.return}}function op(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=dt(),e.pingedLanes|=e.suspendedLanes&n,be===e&&(it&n)===n&&(Je===4||Je===3&&(it&130023424)===it&&500>ke()-Za?dr(e,0):Ga|=n),gt(e,t)}function hf(e,t){t===0&&((e.mode&1)===0?t=1:(t=oi,oi<<=1,(oi&130023424)===0&&(oi=4194304)));var n=dt();e=pn(e,t),e!==null&&(ul(e,t,n),gt(e,n))}function ap(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hf(e,n)}function up(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),hf(e,n)}var pf;pf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)vt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return vt=!1,Jh(e,t,n);vt=(e.flags&131072)!==0}else vt=!1,Ie&&(t.flags&1048576)!==0&&Qs(t,Li,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vi(e,t),e=t.pendingProps;var a=jr(t,ot.current);$r(t,n),a=La(null,t,r,e,a,n);var u=Ta();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(u=!0,Ri(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Ea(t),a.updater=Bi,t.stateNode=a,a._reactInternals=t,Fa(t,r,e,n),t=Aa(null,t,r,!0,u,n)):(t.tag=0,Ie&&u&&fa(t),ft(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vi(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=cp(r),e=Vt(r,e),a){case 0:t=Ua(null,t,r,e,n);break e;case 1:t=Ac(null,t,r,e,n);break e;case 11:t=zc(null,t,r,e,n);break e;case 14:t=Fc(null,t,r,Vt(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Vt(r,a),Ua(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Vt(r,a),Ac(e,t,r,a,n);case 3:e:{if(Hc(t),e===null)throw Error(o(387));r=t.pendingProps,u=t.memoizedState,a=u.element,tc(e,t),zi(t,r,null,n);var f=t.memoizedState;if(r=f.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=Wr(Error(o(423)),t),t=Bc(e,t,r,n,a);break e}else if(r!==a){a=Wr(Error(o(424)),t),t=Bc(e,t,r,n,a);break e}else for(Rt=Fn(t.stateNode.containerInfo.firstChild),Ct=t,Ie=!0,$t=null,n=bs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),r===a){t=vn(e,t,n);break e}ft(e,t,r,n)}t=t.child}return t;case 5:return lc(t),e===null&&pa(t),r=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,f=a.children,ia(r,a)?f=null:u!==null&&ia(r,u)&&(t.flags|=32),Uc(e,t),ft(e,t,f,n),t.child;case 6:return e===null&&pa(t),null;case 13:return $c(e,t,n);case 4:return xa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hr(t,null,r,n):ft(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Vt(r,a),zc(e,t,r,a,n);case 7:return ft(e,t,t.pendingProps,n),t.child;case 8:return ft(e,t,t.pendingProps.children,n),t.child;case 12:return ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,u=t.memoizedProps,f=a.value,De(Ni,r._currentValue),r._currentValue=f,u!==null)if(Bt(u.value,f)){if(u.children===a.children&&!pt.current){t=vn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){f=u.child;for(var x=y.firstContext;x!==null;){if(x.context===r){if(u.tag===1){x=mn(-1,n&-n),x.tag=2;var N=u.updateQueue;if(N!==null){N=N.shared;var I=N.pending;I===null?x.next=x:(x.next=I.next,I.next=x),N.pending=x}}u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),wa(u.return,n,t),y.lanes|=n;break}x=x.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),wa(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}ft(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,$r(t,n),a=Nt(a),r=r(a),t.flags|=1,ft(e,t,r,n),t.child;case 14:return r=t.type,a=Vt(r,t.pendingProps),a=Vt(r.type,a),Fc(e,t,r,a,n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Vt(r,a),Vi(e,t),t.tag=1,mt(r)?(e=!0,Ri(t)):e=!1,$r(t,n),_c(t,r,a),Fa(t,r,a,n),Aa(null,t,r,!0,e,n);case 19:return Wc(e,t,n);case 22:return Ic(e,t,n)}throw Error(o(156,t.tag))};function mf(e,t){return Oe(e,t)}function sp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,r){return new sp(e,t,n,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cp(e){if(typeof e=="function")return iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===me)return 11;if(e===je)return 14}return 2}function Qn(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function eo(e,t,n,r,a,u){var f=2;if(r=e,typeof e=="function")iu(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case P:return pr(n.children,a,u,t);case W:f=8,a|=8;break;case fe:return e=zt(12,n,t,a|2),e.elementType=fe,e.lanes=u,e;case Ne:return e=zt(13,n,t,a),e.elementType=Ne,e.lanes=u,e;case Ue:return e=zt(19,n,t,a),e.elementType=Ue,e.lanes=u,e;case It:return to(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:f=10;break e;case ge:f=9;break e;case me:f=11;break e;case je:f=14;break e;case $e:f=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=zt(f,n,t,a),t.elementType=e,t.type=r,t.lanes=u,t}function pr(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function to(e,t,n,r){return e=zt(22,e,r,t),e.elementType=It,e.lanes=n,e.stateNode={isHidden:!1},e}function ou(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function au(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fp(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zo(0),this.expirationTimes=zo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zo(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,r,a,u,f,y,x){return e=new fp(e,t,n,y,x),t===1?(t=1,u===!0&&(t|=8)):t=0,u=zt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ea(u),e}function dp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Y,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vf(e){if(!e)return In;e=e._reactInternals;e:{if(b(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var n=e.type;if(mt(n))return Vs(e,n,t)}return t}function yf(e,t,n,r,a,u,f,y,x){return e=uu(n,r,!0,e,a,u,f,y,x),e.context=vf(null),n=e.current,r=dt(),a=Wn(n),u=mn(r,a),u.callback=t??null,Hn(n,u,a),e.current.lanes=a,ul(e,a,r),gt(e,r),e}function no(e,t,n,r){var a=t.current,u=dt(),f=Wn(a);return n=vf(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(u,f),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Hn(a,t,f),e!==null&&(Qt(e,a,f,u),Mi(e,a,f)),f}function ro(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function su(e,t){gf(e,t),(e=e.alternate)&&gf(e,t)}function hp(){return null}var wf=typeof reportError=="function"?reportError:function(e){console.error(e)};function cu(e){this._internalRoot=e}lo.prototype.render=cu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));no(e,t,null,null)},lo.prototype.unmount=cu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fr(function(){no(null,e,null,null)}),t[cn]=null}};function lo(e){this._internalRoot=e}lo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ts();e={blockedOn:null,target:e,priority:t};for(var n=0;n<On.length&&t!==0&&t<On[n].priority;n++);On.splice(n,0,e),n===0&&ls(e)}};function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sf(){}function pp(e,t,n,r,a){if(a){if(typeof r=="function"){var u=r;r=function(){var N=ro(f);u.call(N)}}var f=yf(t,r,e,0,null,!1,!1,"",Sf);return e._reactRootContainer=f,e[cn]=f.current,xl(e.nodeType===8?e.parentNode:e),fr(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var y=r;r=function(){var N=ro(x);y.call(N)}}var x=uu(e,0,!1,null,null,!1,!1,"",Sf);return e._reactRootContainer=x,e[cn]=x.current,xl(e.nodeType===8?e.parentNode:e),fr(function(){no(t,x,n,r)}),x}function oo(e,t,n,r,a){var u=n._reactRootContainer;if(u){var f=u;if(typeof a=="function"){var y=a;a=function(){var x=ro(f);y.call(x)}}no(t,f,e,a)}else f=pp(n,t,e,a,r);return ro(f)}bu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=al(t.pendingLanes);n!==0&&(Fo(t,n|1),gt(t,ke()),(Ee&6)===0&&(Yr=ke()+500,Un()))}break;case 13:fr(function(){var r=pn(e,1);if(r!==null){var a=dt();Qt(r,e,1,a)}}),su(e,1)}},jo=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=dt();Qt(t,e,134217728,n)}su(e,134217728)}},es=function(e){if(e.tag===13){var t=Wn(e),n=pn(e,t);if(n!==null){var r=dt();Qt(n,e,t,r)}su(e,t)}},ts=function(){return _e},ns=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}},Rr=function(e,t,n){switch(t){case"input":if(br(e,n),t=n.name,n.type==="radio"&&t!=null){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 a=ki(r);if(!a)throw Error(o(90));Ze(r),br(r,a)}}}break;case"textarea":Gt(e,n);break;case"select":t=n.value,t!=null&&kn(e,!!n.multiple,t,!1)}},il=nu,bn=fr;var mp={usingClientEntryPoint:!1,Events:[Rl,zr,ki,ll,ni,nu]},Al={findFiberByHostInstance:rr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vp={bundleType:Al.bundleType,version:Al.version,rendererPackageName:Al.rendererPackageName,rendererConfig:Al.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Pe(e),e===null?null:e.stateNode},findFiberByHostInstance:Al.findFiberByHostInstance||hp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ao.isDisabled&&ao.supportsFiber)try{Te=ao.inject(vp),rt=ao}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mp,wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(t))throw Error(o(200));return dp(e,t,null,n)},wt.createRoot=function(e,t){if(!fu(e))throw Error(o(299));var n=!1,r="",a=wf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=uu(e,1,!1,null,null,n,!1,r,a),e[cn]=t.current,xl(e.nodeType===8?e.parentNode:e),new cu(t)},wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Pe(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return fr(e)},wt.hydrate=function(e,t,n){if(!io(t))throw Error(o(200));return oo(null,e,t,!0,n)},wt.hydrateRoot=function(e,t,n){if(!fu(e))throw Error(o(405));var r=n!=null&&n.hydratedSources||null,a=!1,u="",f=wf;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=yf(t,null,e,1,n??null,a,!1,u,f),e[cn]=t.current,xl(e),r)for(e=0;e<r.length;e++)n=r[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new lo(t)},wt.render=function(e,t,n){if(!io(t))throw Error(o(200));return oo(null,e,t,!1,n)},wt.unmountComponentAtNode=function(e){if(!io(e))throw Error(o(40));return e._reactRootContainer?(fr(function(){oo(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1},wt.unstable_batchedUpdates=nu,wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!io(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return oo(e,t,n,!1,r)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var Cf;function _p(){if(Cf)return du.exports;Cf=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),du.exports=Pp(),du.exports}var qf=_p();const Lp=Ep(qf),Tp=kp({__proto__:null,default:Lp},[qf]);/**
25
- * @remix-run/router v1.23.0
26
- *
27
- * Copyright (c) Remix Software Inc.
28
- *
29
- * This source code is licensed under the MIT license found in the
30
- * LICENSE.md file in the root directory of this source tree.
31
- *
32
- * @license MIT
33
- */function Fe(){return Fe=Object.assign?Object.assign.bind():function(l){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(l[s]=o[s])}return l},Fe.apply(this,arguments)}var Ke;(function(l){l.Pop="POP",l.Push="PUSH",l.Replace="REPLACE"})(Ke||(Ke={}));const Rf="popstate";function Qy(l){l===void 0&&(l={});function i(s,c){let{pathname:d,search:h,hash:m}=s.location;return Kl("",{pathname:d,search:h,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function o(s,c){return typeof c=="string"?c:Gn(c)}return Np(i,o,null,l)}function pe(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Gr(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Dp(){return Math.random().toString(36).substr(2,8)}function Pf(l,i){return{usr:l.state,key:l.key,idx:i}}function Kl(l,i,o,s){return o===void 0&&(o=null),Fe({pathname:typeof l=="string"?l:l.pathname,search:"",hash:""},typeof i=="string"?Sn(i):i,{state:o,key:i&&i.key||s||Dp()})}function Gn(l){let{pathname:i="/",search:o="",hash:s=""}=l;return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function Sn(l){let i={};if(l){let o=l.indexOf("#");o>=0&&(i.hash=l.substr(o),l=l.substr(0,o));let s=l.indexOf("?");s>=0&&(i.search=l.substr(s),l=l.substr(0,s)),l&&(i.pathname=l)}return i}function Np(l,i,o,s){s===void 0&&(s={});let{window:c=document.defaultView,v5Compat:d=!1}=s,h=c.history,m=Ke.Pop,p=null,g=k();g==null&&(g=0,h.replaceState(Fe({},h.state,{idx:g}),""));function k(){return(h.state||{idx:null}).idx}function v(){m=Ke.Pop;let z=k(),K=z==null?null:z-g;g=z,p&&p({action:m,location:M.location,delta:K})}function S(z,K){m=Ke.Push;let U=Kl(M.location,z,K);g=k()+1;let Q=Pf(U,g),A=M.createHref(U);try{h.pushState(Q,"",A)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;c.location.assign(A)}d&&p&&p({action:m,location:M.location,delta:1})}function D(z,K){m=Ke.Replace;let U=Kl(M.location,z,K);g=k();let Q=Pf(U,g),A=M.createHref(U);h.replaceState(Q,"",A),d&&p&&p({action:m,location:M.location,delta:0})}function L(z){let K=c.location.origin!=="null"?c.location.origin:c.location.href,U=typeof z=="string"?z:Gn(z);return U=U.replace(/ $/,"%20"),pe(K,"No window.location.(origin|href) available to create URL for href: "+U),new URL(U,K)}let M={get action(){return m},get location(){return l(c,h)},listen(z){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(Rf,v),p=z,()=>{c.removeEventListener(Rf,v),p=null}},createHref(z){return i(c,z)},createURL:L,encodeLocation(z){let K=L(z);return{pathname:K.pathname,search:K.search,hash:K.hash}},push:S,replace:D,go(z){return h.go(z)}};return M}var Le;(function(l){l.data="data",l.deferred="deferred",l.redirect="redirect",l.error="error"})(Le||(Le={}));const Op=new Set(["lazy","caseSensitive","path","id","index","children"]);function Mp(l){return l.index===!0}function So(l,i,o,s){return o===void 0&&(o=[]),s===void 0&&(s={}),l.map((c,d)=>{let h=[...o,String(d)],m=typeof c.id=="string"?c.id:h.join("-");if(pe(c.index!==!0||!c.children,"Cannot specify children on an index route"),pe(!s[m],'Found a route id collision on id "'+m+`". Route id's must be globally unique within Data Router usages`),Mp(c)){let p=Fe({},c,i(c),{id:m});return s[m]=p,p}else{let p=Fe({},c,i(c),{id:m,children:void 0});return s[m]=p,c.children&&(p.children=So(c.children,i,h,s)),p}})}function gn(l,i,o){return o===void 0&&(o="/"),vo(l,i,o,!1)}function vo(l,i,o,s){let c=typeof i=="string"?Sn(i):i,d=jt(c.pathname||"/",o);if(d==null)return null;let h=ed(l);zp(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=Kp(d);m=Vp(h[p],g,s)}return m}function bf(l,i){let{route:o,pathname:s,params:c}=l;return{id:o.id,pathname:s,params:c,data:i[o.id],handle:o.handle}}function ed(l,i,o,s){i===void 0&&(i=[]),o===void 0&&(o=[]),s===void 0&&(s="");let c=(d,h,m)=>{let p={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};p.relativePath.startsWith("/")&&(pe(p.relativePath.startsWith(s),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(s.length));let g=on([s,p.relativePath]),k=o.concat(p);d.children&&d.children.length>0&&(pe(d.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),ed(d.children,i,k,g)),!(d.path==null&&!d.index)&&i.push({path:g,score:Bp(g,d.index),routesMeta:k})};return l.forEach((d,h)=>{var m;if(d.path===""||!((m=d.path)!=null&&m.includes("?")))c(d,h);else for(let p of td(d.path))c(d,h,p)}),i}function td(l){let i=l.split("/");if(i.length===0)return[];let[o,...s]=i,c=o.endsWith("?"),d=o.replace(/\?$/,"");if(s.length===0)return c?[d,""]:[d];let h=td(s.join("/")),m=[];return m.push(...h.map(p=>p===""?d:[d,p].join("/"))),c&&m.push(...h),m.map(p=>l.startsWith("/")&&p===""?"/":p)}function zp(l){l.sort((i,o)=>i.score!==o.score?o.score-i.score:$p(i.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}const Fp=/^:[\w-]+$/,jp=3,Ip=2,Up=1,Ap=10,Hp=-2,_f=l=>l==="*";function Bp(l,i){let o=l.split("/"),s=o.length;return o.some(_f)&&(s+=Hp),i&&(s+=Ip),o.filter(c=>!_f(c)).reduce((c,d)=>c+(Fp.test(d)?jp:d===""?Up:Ap),s)}function $p(l,i){return l.length===i.length&&l.slice(0,-1).every((s,c)=>s===i[c])?l[l.length-1]-i[i.length-1]:0}function Vp(l,i,o){o===void 0&&(o=!1);let{routesMeta:s}=l,c={},d="/",h=[];for(let m=0;m<s.length;++m){let p=s[m],g=m===s.length-1,k=d==="/"?i:i.slice(d.length)||"/",v=Eo({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},k),S=p.route;if(!v&&g&&o&&!s[s.length-1].route.index&&(v=Eo({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},k)),!v)return null;Object.assign(c,v.params),h.push({params:c,pathname:on([d,v.pathname]),pathnameBase:Xp(on([d,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(d=on([d,v.pathnameBase]))}return h}function Eo(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[o,s]=Wp(l.path,l.caseSensitive,l.end),c=i.match(o);if(!c)return null;let d=c[0],h=d.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:s.reduce((g,k,v)=>{let{paramName:S,isOptional:D}=k;if(S==="*"){let M=m[v]||"";h=d.slice(0,d.length-M.length).replace(/(.)\/+$/,"$1")}const L=m[v];return D&&!L?g[S]=void 0:g[S]=(L||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:h,pattern:l}}function Wp(l,i,o){i===void 0&&(i=!1),o===void 0&&(o=!0),Gr(l==="*"||!l.endsWith("*")||l.endsWith("/*"),'Route path "'+l+'" will be treated as if it were '+('"'+l.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+l.replace(/\*$/,"/*")+'".'));let s=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(s.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(s.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),s]}function Kp(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Gr(!1,'The URL path "'+l+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+i+").")),l}}function jt(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,s=l.charAt(o);return s&&s!=="/"?null:l.slice(o)||"/"}function Qp(l,i){i===void 0&&(i="/");let{pathname:o,search:s="",hash:c=""}=typeof l=="string"?Sn(l):l;return{pathname:o?o.startsWith("/")?o:Yp(o,i):i,search:Jp(s),hash:Gp(c)}}function Yp(l,i){let o=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function mu(l,i,o,s){return"Cannot include a '"+l+"' character in a manually specified "+("`to."+i+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nd(l){return l.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function Du(l,i){let o=nd(l);return i?o.map((s,c)=>c===o.length-1?s.pathname:s.pathnameBase):o.map(s=>s.pathnameBase)}function Nu(l,i,o,s){s===void 0&&(s=!1);let c;typeof l=="string"?c=Sn(l):(c=Fe({},l),pe(!c.pathname||!c.pathname.includes("?"),mu("?","pathname","search",c)),pe(!c.pathname||!c.pathname.includes("#"),mu("#","pathname","hash",c)),pe(!c.search||!c.search.includes("#"),mu("#","search","hash",c)));let d=l===""||c.pathname==="",h=d?"/":c.pathname,m;if(h==null)m=o;else{let v=i.length-1;if(!s&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),v-=1;c.pathname=S.join("/")}m=v>=0?i[v]:"/"}let p=Qp(c,m),g=h&&h!=="/"&&h.endsWith("/"),k=(d||h===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(g||k)&&(p.pathname+="/"),p}const on=l=>l.join("/").replace(/\/\/+/g,"/"),Xp=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Jp=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Gp=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;class Zp{constructor(i,o){this.type="DataWithResponseInit",this.data=i,this.init=o||null}}function qp(l,i){return new Zp(l,typeof i=="number"?{status:i}:i)}class xo extends Error{}class bp{constructor(i,o){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],pe(i&&typeof i=="object"&&!Array.isArray(i),"defer() only accepts plain objects");let s;this.abortPromise=new Promise((d,h)=>s=h),this.controller=new AbortController;let c=()=>s(new xo("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",c),this.controller.signal.addEventListener("abort",c),this.data=Object.entries(i).reduce((d,h)=>{let[m,p]=h;return Object.assign(d,{[m]:this.trackPromise(m,p)})},{}),this.done&&this.unlistenAbortSignal(),this.init=o}trackPromise(i,o){if(!(o instanceof Promise))return o;this.deferredKeys.push(i),this.pendingKeysSet.add(i);let s=Promise.race([o,this.abortPromise]).then(c=>this.onSettle(s,i,void 0,c),c=>this.onSettle(s,i,c));return s.catch(()=>{}),Object.defineProperty(s,"_tracked",{get:()=>!0}),s}onSettle(i,o,s,c){if(this.controller.signal.aborted&&s instanceof xo)return this.unlistenAbortSignal(),Object.defineProperty(i,"_error",{get:()=>s}),Promise.reject(s);if(this.pendingKeysSet.delete(o),this.done&&this.unlistenAbortSignal(),s===void 0&&c===void 0){let d=new Error('Deferred data for key "'+o+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(i,"_error",{get:()=>d}),this.emit(!1,o),Promise.reject(d)}return c===void 0?(Object.defineProperty(i,"_error",{get:()=>s}),this.emit(!1,o),Promise.reject(s)):(Object.defineProperty(i,"_data",{get:()=>c}),this.emit(!1,o),c)}emit(i,o){this.subscribers.forEach(s=>s(i,o))}subscribe(i){return this.subscribers.add(i),()=>this.subscribers.delete(i)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((i,o)=>this.pendingKeysSet.delete(o)),this.emit(!0)}async resolveData(i){let o=!1;if(!this.done){let s=()=>this.cancel();i.addEventListener("abort",s),o=await new Promise(c=>{this.subscribe(d=>{i.removeEventListener("abort",s),(d||this.done)&&c(d)})})}return o}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return pe(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((i,o)=>{let[s,c]=o;return Object.assign(i,{[s]:tm(c)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function em(l){return l instanceof Promise&&l._tracked===!0}function tm(l){if(!em(l))return l;if(l._error)throw l._error;return l._data}const rd=function(i,o){o===void 0&&(o=302);let s=o;typeof s=="number"?s={status:s}:typeof s.status>"u"&&(s.status=302);let c=new Headers(s.headers);return c.set("Location",i),new Response(null,Fe({},s,{headers:c}))};class yr{constructor(i,o,s,c){c===void 0&&(c=!1),this.status=i,this.statusText=o||"",this.internal=c,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function gr(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}const ld=["post","put","patch","delete"],nm=new Set(ld),rm=["get",...ld],lm=new Set(rm),im=new Set([301,302,303,307,308]),om=new Set([307,308]),vu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},am={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Hl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ou=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,um=l=>({hasErrorBoundary:!!l.hasErrorBoundary}),id="remix-router-transitions";function Yy(l){const i=l.window?l.window:typeof window<"u"?window:void 0,o=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u",s=!o;pe(l.routes.length>0,"You must provide a non-empty routes array to createRouter");let c;if(l.mapRouteProperties)c=l.mapRouteProperties;else if(l.detectErrorBoundary){let E=l.detectErrorBoundary;c=R=>({hasErrorBoundary:E(R)})}else c=um;let d={},h=So(l.routes,c,void 0,d),m,p=l.basename||"/",g=l.dataStrategy||dm,k=l.patchRoutesOnNavigation,v=Fe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},l.future),S=null,D=new Set,L=null,M=null,z=null,K=l.hydrationData!=null,U=gn(h,l.history.location,p),Q=!1,A=null;if(U==null&&!k){let E=St(404,{pathname:l.history.location.pathname}),{matches:R,route:O}=Uf(h);U=R,A={[O.id]:E}}U&&!l.hydrationData&&bn(U,h,l.history.location.pathname).active&&(U=null);let q;if(U)if(U.some(E=>E.route.lazy))q=!1;else if(!U.some(E=>E.route.loader))q=!0;else if(v.v7_partialHydration){let E=l.hydrationData?l.hydrationData.loaderData:null,R=l.hydrationData?l.hydrationData.errors:null;if(R){let O=U.findIndex(F=>R[F.route.id]!==void 0);q=U.slice(0,O+1).every(F=>!Cu(F.route,E,R))}else q=U.every(O=>!Cu(O.route,E,R))}else q=l.hydrationData!=null;else if(q=!1,U=[],v.v7_partialHydration){let E=bn(null,h,l.history.location.pathname);E.active&&E.matches&&(Q=!0,U=E.matches)}let Y,P={historyAction:l.history.action,location:l.history.location,matches:U,initialized:q,navigation:vu,restoreScrollPosition:l.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:l.hydrationData&&l.hydrationData.loaderData||{},actionData:l.hydrationData&&l.hydrationData.actionData||null,errors:l.hydrationData&&l.hydrationData.errors||A,fetchers:new Map,blockers:new Map},W=Ke.Pop,fe=!1,se,ge=!1,me=new Map,Ne=null,Ue=!1,je=!1,$e=[],It=new Set,$=new Map,oe=0,J=-1,xe=new Map,we=new Set,ct=new Map,tt=new Map,nt=new Set,Qe=new Map,ht=new Map,Et;function Gl(){if(S=l.history.listen(E=>{let{action:R,location:O,delta:F}=E;if(Et){Et(),Et=void 0;return}Gr(ht.size===0||F!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=Rr({currentLocation:P.location,nextLocation:O,historyAction:R});if(V&&F!=null){let ie=new Promise(ce=>{Et=ce});l.history.go(F*-1),Pn(V,{state:"blocked",location:O,proceed(){Pn(V,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),ie.then(()=>l.history.go(F))},reset(){let ce=new Map(P.blockers);ce.set(V,Hl),Ze({blockers:ce})}});return}return Jt(R,O)}),o){Pm(i,me);let E=()=>_m(i,me);i.addEventListener("pagehide",E),Ne=()=>i.removeEventListener("pagehide",E)}return P.initialized||Jt(Ke.Pop,P.location,{initialHydration:!0}),Y}function Do(){S&&S(),Ne&&Ne(),D.clear(),se&&se.abort(),P.fetchers.forEach((E,R)=>Zt(R)),P.blockers.forEach((E,R)=>Cr(R))}function Sr(E){return D.add(E),()=>D.delete(E)}function Ze(E,R){R===void 0&&(R={}),P=Fe({},P,E);let O=[],F=[];v.v7_fetcherPersist&&P.fetchers.forEach((V,ie)=>{V.state==="idle"&&(nt.has(ie)?F.push(ie):O.push(ie))}),nt.forEach(V=>{!P.fetchers.has(V)&&!$.has(V)&&F.push(V)}),[...D].forEach(V=>V(P,{deletedFetchers:F,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),v.v7_fetcherPersist?(O.forEach(V=>P.fetchers.delete(V)),F.forEach(V=>Zt(V))):F.forEach(V=>nt.delete(V))}function Ut(E,R,O){var F,V;let{flushSync:ie}=O===void 0?{}:O,ce=P.actionData!=null&&P.navigation.formMethod!=null&&Yt(P.navigation.formMethod)&&P.navigation.state==="loading"&&((F=E.state)==null?void 0:F._isRedirect)!==!0,ee;R.actionData?Object.keys(R.actionData).length>0?ee=R.actionData:ee=null:ce?ee=P.actionData:ee=null;let ne=R.loaderData?jf(P.loaderData,R.loaderData,R.matches||[],R.errors):P.loaderData,G=P.blockers;G.size>0&&(G=new Map(G),G.forEach((ve,Ye)=>G.set(Ye,Hl)));let b=fe===!0||P.navigation.formMethod!=null&&Yt(P.navigation.formMethod)&&((V=E.state)==null?void 0:V._isRedirect)!==!0;m&&(h=m,m=void 0),Ue||W===Ke.Pop||(W===Ke.Push?l.history.push(E,E.state):W===Ke.Replace&&l.history.replace(E,E.state));let he;if(W===Ke.Pop){let ve=me.get(P.location.pathname);ve&&ve.has(E.pathname)?he={currentLocation:P.location,nextLocation:E}:me.has(E.pathname)&&(he={currentLocation:E,nextLocation:P.location})}else if(ge){let ve=me.get(P.location.pathname);ve?ve.add(E.pathname):(ve=new Set([E.pathname]),me.set(P.location.pathname,ve)),he={currentLocation:P.location,nextLocation:E}}Ze(Fe({},R,{actionData:ee,loaderData:ne,historyAction:W,location:E,initialized:!0,navigation:vu,revalidation:"idle",restoreScrollPosition:il(E,R.matches||P.matches),preventScrollReset:b,blockers:G}),{viewTransitionOpts:he,flushSync:ie===!0}),W=Ke.Pop,fe=!1,ge=!1,Ue=!1,je=!1,$e=[]}async function Er(E,R){if(typeof E=="number"){l.history.go(E);return}let O=ku(P.location,P.matches,p,v.v7_prependBasename,E,v.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:F,submission:V,error:ie}=Lf(v.v7_normalizeFormMethod,!1,O,R),ce=P.location,ee=Kl(P.location,F,R&&R.state);ee=Fe({},ee,l.history.encodeLocation(ee));let ne=R&&R.replace!=null?R.replace:void 0,G=Ke.Push;ne===!0?G=Ke.Replace:ne===!1||V!=null&&Yt(V.formMethod)&&V.formAction===P.location.pathname+P.location.search&&(G=Ke.Replace);let b=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,he=(R&&R.flushSync)===!0,ve=Rr({currentLocation:ce,nextLocation:ee,historyAction:G});if(ve){Pn(ve,{state:"blocked",location:ee,proceed(){Pn(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),Er(E,R)},reset(){let Ye=new Map(P.blockers);Ye.set(ve,Hl),Ze({blockers:Ye})}});return}return await Jt(G,ee,{submission:V,pendingError:ie,preventScrollReset:b,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:he})}function Zl(){if(qn(),Ze({revalidation:"loading"}),P.navigation.state!=="submitting"){if(P.navigation.state==="idle"){Jt(P.historyAction,P.location,{startUninterruptedRevalidation:!0});return}Jt(W||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:ge===!0})}}async function Jt(E,R,O){se&&se.abort(),se=null,W=E,Ue=(O&&O.startUninterruptedRevalidation)===!0,ni(P.location,P.matches),fe=(O&&O.preventScrollReset)===!0,ge=(O&&O.enableViewTransition)===!0;let F=m||h,V=O&&O.overrideNavigation,ie=O!=null&&O.initialHydration&&P.matches&&P.matches.length>0&&!Q?P.matches:gn(F,R,p),ce=(O&&O.flushSync)===!0;if(ie&&P.initialized&&!je&&gm(P.location,R)&&!(O&&O.submission&&Yt(O.submission.formMethod))){Ut(R,{matches:ie},{flushSync:ce});return}let ee=bn(ie,F,R.pathname);if(ee.active&&ee.matches&&(ie=ee.matches),!ie){let{error:Pe,notFoundMatches:Se,route:Oe}=qt(R.pathname);Ut(R,{matches:Se,loaderData:{},errors:{[Oe.id]:Pe}},{flushSync:ce});return}se=new AbortController;let ne=Jr(l.history,R,se.signal,O&&O.submission),G;if(O&&O.pendingError)G=[mr(ie).route.id,{type:Le.error,error:O.pendingError}];else if(O&&O.submission&&Yt(O.submission.formMethod)){let Pe=await br(ne,R,O.submission,ie,ee.active,{replace:O.replace,flushSync:ce});if(Pe.shortCircuited)return;if(Pe.pendingActionResult){let[Se,Oe]=Pe.pendingActionResult;if(_t(Oe)&&gr(Oe.error)&&Oe.error.status===404){se=null,Ut(R,{matches:Pe.matches,loaderData:{},errors:{[Se]:Oe.error}});return}}ie=Pe.matches||ie,G=Pe.pendingActionResult,V=yu(R,O.submission),ce=!1,ee.active=!1,ne=Jr(l.history,ne.url,ne.signal)}let{shortCircuited:b,matches:he,loaderData:ve,errors:Ye}=await ql(ne,R,ie,ee.active,V,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ce,G);b||(se=null,Ut(R,Fe({matches:he||ie},If(G),{loaderData:ve,errors:Ye})))}async function br(E,R,O,F,V,ie){ie===void 0&&(ie={}),qn();let ce=Cm(R,O);if(Ze({navigation:ce},{flushSync:ie.flushSync===!0}),V){let G=await _n(F,R.pathname,E.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let b=mr(G.partialMatches).route.id;return{matches:G.partialMatches,pendingActionResult:[b,{type:Le.error,error:G.error}]}}else if(G.matches)F=G.matches;else{let{notFoundMatches:b,error:he,route:ve}=qt(R.pathname);return{matches:b,pendingActionResult:[ve.id,{type:Le.error,error:he}]}}}let ee,ne=Wl(F,R);if(!ne.route.action&&!ne.route.lazy)ee={type:Le.error,error:St(405,{method:E.method,pathname:R.pathname,routeId:ne.route.id})};else if(ee=(await Cn("action",P,E,[ne],F,null))[ne.route.id],E.signal.aborted)return{shortCircuited:!0};if(vr(ee)){let G;return ie&&ie.replace!=null?G=ie.replace:G=Mf(ee.response.headers.get("Location"),new URL(E.url),p)===P.location.pathname+P.location.search,await Gt(E,ee,!0,{submission:O,replace:G}),{shortCircuited:!0}}if(Jn(ee))throw St(400,{type:"defer-action"});if(_t(ee)){let G=mr(F,ne.route.id);return(ie&&ie.replace)!==!0&&(W=Ke.Push),{matches:F,pendingActionResult:[G.route.id,ee]}}return{matches:F,pendingActionResult:[ne.route.id,ee]}}async function ql(E,R,O,F,V,ie,ce,ee,ne,G,b){let he=V||yu(R,ie),ve=ie||ce||Hf(he),Ye=!Ue&&(!v.v7_partialHydration||!ne);if(F){if(Ye){let Te=xr(b);Ze(Fe({navigation:he},Te!==void 0?{actionData:Te}:{}),{flushSync:G})}let ye=await _n(O,R.pathname,E.signal);if(ye.type==="aborted")return{shortCircuited:!0};if(ye.type==="error"){let Te=mr(ye.partialMatches).route.id;return{matches:ye.partialMatches,loaderData:{},errors:{[Te]:ye.error}}}else if(ye.matches)O=ye.matches;else{let{error:Te,notFoundMatches:rt,route:nr}=qt(R.pathname);return{matches:rt,loaderData:{},errors:{[nr.id]:Te}}}}let Pe=m||h,[Se,Oe]=Df(l.history,P,O,ve,R,v.v7_partialHydration&&ne===!0,v.v7_skipActionErrorRevalidation,je,$e,It,nt,ct,we,Pe,p,b);if(bt(ye=>!(O&&O.some(Te=>Te.route.id===ye))||Se&&Se.some(Te=>Te.route.id===ye)),J=++oe,Se.length===0&&Oe.length===0){let ye=ei();return Ut(R,Fe({matches:O,loaderData:{},errors:b&&_t(b[1])?{[b[0]]:b[1].error}:null},If(b),ye?{fetchers:new Map(P.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(Ye){let ye={};if(!F){ye.navigation=he;let Te=xr(b);Te!==void 0&&(ye.actionData=Te)}Oe.length>0&&(ye.fetchers=Zn(Oe)),Ze(ye,{flushSync:G})}Oe.forEach(ye=>{At(ye.key),ye.controller&&$.set(ye.key,ye.controller)});let an=()=>Oe.forEach(ye=>At(ye.key));se&&se.signal.addEventListener("abort",an);let{loaderResults:tr,fetcherResults:Ht}=await tl(P,O,Se,Oe,E);if(E.signal.aborted)return{shortCircuited:!0};se&&se.signal.removeEventListener("abort",an),Oe.forEach(ye=>$.delete(ye.key));let ke=so(tr);if(ke)return await Gt(E,ke.result,!0,{replace:ee}),{shortCircuited:!0};if(ke=so(Ht),ke)return we.add(ke.key),await Gt(E,ke.result,!0,{replace:ee}),{shortCircuited:!0};let{loaderData:ol,errors:un}=Ff(P,O,tr,b,Oe,Ht,Qe);Qe.forEach((ye,Te)=>{ye.subscribe(rt=>{(rt||ye.done)&&Qe.delete(Te)})}),v.v7_partialHydration&&ne&&P.errors&&(un=Fe({},P.errors,un));let en=ei(),sn=kr(J),Pr=en||sn||Oe.length>0;return Fe({matches:O,loaderData:ol,errors:un},Pr?{fetchers:new Map(P.fetchers)}:{})}function xr(E){if(E&&!_t(E[1]))return{[E[0]]:E[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function Zn(E){return E.forEach(R=>{let O=P.fetchers.get(R.key),F=Bl(void 0,O?O.data:void 0);P.fetchers.set(R.key,F)}),new Map(P.fetchers)}function kn(E,R,O,F){if(s)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");At(E);let V=(F&&F.flushSync)===!0,ie=m||h,ce=ku(P.location,P.matches,p,v.v7_prependBasename,O,v.v7_relativeSplatPath,R,F==null?void 0:F.relative),ee=gn(ie,ce,p),ne=bn(ee,ie,ce);if(ne.active&&ne.matches&&(ee=ne.matches),!ee){Lt(E,R,St(404,{pathname:ce}),{flushSync:V});return}let{path:G,submission:b,error:he}=Lf(v.v7_normalizeFormMethod,!0,ce,F);if(he){Lt(E,R,he,{flushSync:V});return}let ve=Wl(ee,G),Ye=(F&&F.preventScrollReset)===!0;if(b&&Yt(b.formMethod)){el(E,R,G,ve,ee,ne.active,V,Ye,b);return}ct.set(E,{routeId:R,path:G}),bl(E,R,G,ve,ee,ne.active,V,Ye,b)}async function el(E,R,O,F,V,ie,ce,ee,ne){qn(),ct.delete(E);function G(Ce){if(!Ce.route.action&&!Ce.route.lazy){let Ln=St(405,{method:ne.formMethod,pathname:O,routeId:R});return Lt(E,R,Ln,{flushSync:ce}),!0}return!1}if(!ie&&G(F))return;let b=P.fetchers.get(E);xt(E,Rm(ne,b),{flushSync:ce});let he=new AbortController,ve=Jr(l.history,O,he.signal,ne);if(ie){let Ce=await _n(V,new URL(ve.url).pathname,ve.signal,E);if(Ce.type==="aborted")return;if(Ce.type==="error"){Lt(E,R,Ce.error,{flushSync:ce});return}else if(Ce.matches){if(V=Ce.matches,F=Wl(V,O),G(F))return}else{Lt(E,R,St(404,{pathname:O}),{flushSync:ce});return}}$.set(E,he);let Ye=oe,Se=(await Cn("action",P,ve,[F],V,E))[F.route.id];if(ve.signal.aborted){$.get(E)===he&&$.delete(E);return}if(v.v7_fetcherPersist&&nt.has(E)){if(vr(Se)||_t(Se)){xt(E,Xn(void 0));return}}else{if(vr(Se))if($.delete(E),J>Ye){xt(E,Xn(void 0));return}else return we.add(E),xt(E,Bl(ne)),Gt(ve,Se,!1,{fetcherSubmission:ne,preventScrollReset:ee});if(_t(Se)){Lt(E,R,Se.error);return}}if(Jn(Se))throw St(400,{type:"defer-action"});let Oe=P.navigation.location||P.location,an=Jr(l.history,Oe,he.signal),tr=m||h,Ht=P.navigation.state!=="idle"?gn(tr,P.navigation.location,p):P.matches;pe(Ht,"Didn't find any matches after fetcher action");let ke=++oe;xe.set(E,ke);let ol=Bl(ne,Se.data);P.fetchers.set(E,ol);let[un,en]=Df(l.history,P,Ht,ne,Oe,!1,v.v7_skipActionErrorRevalidation,je,$e,It,nt,ct,we,tr,p,[F.route.id,Se]);en.filter(Ce=>Ce.key!==E).forEach(Ce=>{let Ln=Ce.key,li=P.fetchers.get(Ln),Oo=Bl(void 0,li?li.data:void 0);P.fetchers.set(Ln,Oo),At(Ln),Ce.controller&&$.set(Ln,Ce.controller)}),Ze({fetchers:new Map(P.fetchers)});let sn=()=>en.forEach(Ce=>At(Ce.key));he.signal.addEventListener("abort",sn);let{loaderResults:Pr,fetcherResults:ye}=await tl(P,Ht,un,en,an);if(he.signal.aborted)return;he.signal.removeEventListener("abort",sn),xe.delete(E),$.delete(E),en.forEach(Ce=>$.delete(Ce.key));let Te=so(Pr);if(Te)return Gt(an,Te.result,!1,{preventScrollReset:ee});if(Te=so(ye),Te)return we.add(Te.key),Gt(an,Te.result,!1,{preventScrollReset:ee});let{loaderData:rt,errors:nr}=Ff(P,Ht,Pr,void 0,en,ye,Qe);if(P.fetchers.has(E)){let Ce=Xn(Se.data);P.fetchers.set(E,Ce)}kr(ke),P.navigation.state==="loading"&&ke>J?(pe(W,"Expected pending action"),se&&se.abort(),Ut(P.navigation.location,{matches:Ht,loaderData:rt,errors:nr,fetchers:new Map(P.fetchers)})):(Ze({errors:nr,loaderData:jf(P.loaderData,rt,Ht,nr),fetchers:new Map(P.fetchers)}),je=!1)}async function bl(E,R,O,F,V,ie,ce,ee,ne){let G=P.fetchers.get(E);xt(E,Bl(ne,G?G.data:void 0),{flushSync:ce});let b=new AbortController,he=Jr(l.history,O,b.signal);if(ie){let Se=await _n(V,new URL(he.url).pathname,he.signal,E);if(Se.type==="aborted")return;if(Se.type==="error"){Lt(E,R,Se.error,{flushSync:ce});return}else if(Se.matches)V=Se.matches,F=Wl(V,O);else{Lt(E,R,St(404,{pathname:O}),{flushSync:ce});return}}$.set(E,b);let ve=oe,Pe=(await Cn("loader",P,he,[F],V,E))[F.route.id];if(Jn(Pe)&&(Pe=await Mu(Pe,he.signal,!0)||Pe),$.get(E)===b&&$.delete(E),!he.signal.aborted){if(nt.has(E)){xt(E,Xn(void 0));return}if(vr(Pe))if(J>ve){xt(E,Xn(void 0));return}else{we.add(E),await Gt(he,Pe,!1,{preventScrollReset:ee});return}if(_t(Pe)){Lt(E,R,Pe.error);return}pe(!Jn(Pe),"Unhandled fetcher deferred data"),xt(E,Xn(Pe.data))}}async function Gt(E,R,O,F){let{submission:V,fetcherSubmission:ie,preventScrollReset:ce,replace:ee}=F===void 0?{}:F;R.response.headers.has("X-Remix-Revalidate")&&(je=!0);let ne=R.response.headers.get("Location");pe(ne,"Expected a Location header on the redirect Response"),ne=Mf(ne,new URL(E.url),p);let G=Kl(P.location,ne,{_isRedirect:!0});if(o){let Se=!1;if(R.response.headers.has("X-Remix-Reload-Document"))Se=!0;else if(Ou.test(ne)){const Oe=l.history.createURL(ne);Se=Oe.origin!==i.location.origin||jt(Oe.pathname,p)==null}if(Se){ee?i.location.replace(ne):i.location.assign(ne);return}}se=null;let b=ee===!0||R.response.headers.has("X-Remix-Replace")?Ke.Replace:Ke.Push,{formMethod:he,formAction:ve,formEncType:Ye}=P.navigation;!V&&!ie&&he&&ve&&Ye&&(V=Hf(P.navigation));let Pe=V||ie;if(om.has(R.response.status)&&Pe&&Yt(Pe.formMethod))await Jt(b,G,{submission:Fe({},Pe,{formAction:ne}),preventScrollReset:ce||fe,enableViewTransition:O?ge:void 0});else{let Se=yu(G,V);await Jt(b,G,{overrideNavigation:Se,fetcherSubmission:ie,preventScrollReset:ce||fe,enableViewTransition:O?ge:void 0})}}async function Cn(E,R,O,F,V,ie){let ce,ee={};try{ce=await hm(g,E,R,O,F,V,ie,d,c)}catch(ne){return F.forEach(G=>{ee[G.route.id]={type:Le.error,error:ne}}),ee}for(let[ne,G]of Object.entries(ce))if(wm(G)){let b=G.result;ee[ne]={type:Le.redirect,response:vm(b,O,ne,V,p,v.v7_relativeSplatPath)}}else ee[ne]=await mm(G);return ee}async function tl(E,R,O,F,V){let ie=E.matches,ce=Cn("loader",E,V,O,R,null),ee=Promise.all(F.map(async b=>{if(b.matches&&b.match&&b.controller){let ve=(await Cn("loader",E,Jr(l.history,b.path,b.controller.signal),[b.match],b.matches,b.key))[b.match.route.id];return{[b.key]:ve}}else return Promise.resolve({[b.key]:{type:Le.error,error:St(404,{pathname:b.path})}})})),ne=await ce,G=(await ee).reduce((b,he)=>Object.assign(b,he),{});return await Promise.all([xm(R,ne,V.signal,ie,E.loaderData),km(R,G,F)]),{loaderResults:ne,fetcherResults:G}}function qn(){je=!0,$e.push(...bt()),ct.forEach((E,R)=>{$.has(R)&&It.add(R),At(R)})}function xt(E,R,O){O===void 0&&(O={}),P.fetchers.set(E,R),Ze({fetchers:new Map(P.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function Lt(E,R,O,F){F===void 0&&(F={});let V=mr(P.matches,R);Zt(E),Ze({errors:{[V.route.id]:O},fetchers:new Map(P.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function Rn(E){return tt.set(E,(tt.get(E)||0)+1),nt.has(E)&&nt.delete(E),P.fetchers.get(E)||am}function Zt(E){let R=P.fetchers.get(E);$.has(E)&&!(R&&R.state==="loading"&&xe.has(E))&&At(E),ct.delete(E),xe.delete(E),we.delete(E),v.v7_fetcherPersist&&nt.delete(E),It.delete(E),P.fetchers.delete(E)}function No(E){let R=(tt.get(E)||0)-1;R<=0?(tt.delete(E),nt.add(E),v.v7_fetcherPersist||Zt(E)):tt.set(E,R),Ze({fetchers:new Map(P.fetchers)})}function At(E){let R=$.get(E);R&&(R.abort(),$.delete(E))}function nl(E){for(let R of E){let O=Rn(R),F=Xn(O.data);P.fetchers.set(R,F)}}function ei(){let E=[],R=!1;for(let O of we){let F=P.fetchers.get(O);pe(F,"Expected fetcher: "+O),F.state==="loading"&&(we.delete(O),E.push(O),R=!0)}return nl(E),R}function kr(E){let R=[];for(let[O,F]of xe)if(F<E){let V=P.fetchers.get(O);pe(V,"Expected fetcher: "+O),V.state==="loading"&&(At(O),xe.delete(O),R.push(O))}return nl(R),R.length>0}function rl(E,R){let O=P.blockers.get(E)||Hl;return ht.get(E)!==R&&ht.set(E,R),O}function Cr(E){P.blockers.delete(E),ht.delete(E)}function Pn(E,R){let O=P.blockers.get(E)||Hl;pe(O.state==="unblocked"&&R.state==="blocked"||O.state==="blocked"&&R.state==="blocked"||O.state==="blocked"&&R.state==="proceeding"||O.state==="blocked"&&R.state==="unblocked"||O.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+R.state);let F=new Map(P.blockers);F.set(E,R),Ze({blockers:F})}function Rr(E){let{currentLocation:R,nextLocation:O,historyAction:F}=E;if(ht.size===0)return;ht.size>1&&Gr(!1,"A router only supports one blocker at a time");let V=Array.from(ht.entries()),[ie,ce]=V[V.length-1],ee=P.blockers.get(ie);if(!(ee&&ee.state==="proceeding")&&ce({currentLocation:R,nextLocation:O,historyAction:F}))return ie}function qt(E){let R=St(404,{pathname:E}),O=m||h,{matches:F,route:V}=Uf(O);return bt(),{notFoundMatches:F,route:V,error:R}}function bt(E){let R=[];return Qe.forEach((O,F)=>{(!E||E(F))&&(O.cancel(),R.push(F),Qe.delete(F))}),R}function ti(E,R,O){if(L=E,z=R,M=O||null,!K&&P.navigation===vu){K=!0;let F=il(P.location,P.matches);F!=null&&Ze({restoreScrollPosition:F})}return()=>{L=null,z=null,M=null}}function ll(E,R){return M&&M(E,R.map(F=>bf(F,P.loaderData)))||E.key}function ni(E,R){if(L&&z){let O=ll(E,R);L[O]=z()}}function il(E,R){if(L){let O=ll(E,R),F=L[O];if(typeof F=="number")return F}return null}function bn(E,R,O){if(k)if(E){if(Object.keys(E[0].params).length>0)return{active:!0,matches:vo(R,O,p,!0)}}else return{active:!0,matches:vo(R,O,p,!0)||[]};return{active:!1,matches:null}}async function _n(E,R,O,F){if(!k)return{type:"success",matches:E};let V=E;for(;;){let ie=m==null,ce=m||h,ee=d;try{await k({signal:O,path:R,matches:V,fetcherKey:F,patch:(b,he)=>{O.aborted||Of(b,he,ce,ee,c)}})}catch(b){return{type:"error",error:b,partialMatches:V}}finally{ie&&!O.aborted&&(h=[...h])}if(O.aborted)return{type:"aborted"};let ne=gn(ce,R,p);if(ne)return{type:"success",matches:ne};let G=vo(ce,R,p,!0);if(!G||V.length===G.length&&V.every((b,he)=>b.route.id===G[he].route.id))return{type:"success",matches:null};V=G}}function ri(E){d={},m=So(E,c,void 0,d)}function er(E,R){let O=m==null;Of(E,R,m||h,d,c),O&&(h=[...h],Ze({}))}return Y={get basename(){return p},get future(){return v},get state(){return P},get routes(){return h},get window(){return i},initialize:Gl,subscribe:Sr,enableScrollRestoration:ti,navigate:Er,fetch:kn,revalidate:Zl,createHref:E=>l.history.createHref(E),encodeLocation:E=>l.history.encodeLocation(E),getFetcher:Rn,deleteFetcher:No,dispose:Do,getBlocker:rl,deleteBlocker:Cr,patchRoutes:er,_internalFetchControllers:$,_internalActiveDeferreds:Qe,_internalSetRoutes:ri},Y}function sm(l){return l!=null&&("formData"in l&&l.formData!=null||"body"in l&&l.body!==void 0)}function ku(l,i,o,s,c,d,h,m){let p,g;if(h){p=[];for(let v of i)if(p.push(v),v.route.id===h){g=v;break}}else p=i,g=i[i.length-1];let k=Nu(c||".",Du(p,d),jt(l.pathname,o)||l.pathname,m==="path");if(c==null&&(k.search=l.search,k.hash=l.hash),(c==null||c===""||c===".")&&g){let v=zu(k.search);if(g.route.index&&!v)k.search=k.search?k.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&v){let S=new URLSearchParams(k.search),D=S.getAll("index");S.delete("index"),D.filter(M=>M).forEach(M=>S.append("index",M));let L=S.toString();k.search=L?"?"+L:""}}return s&&o!=="/"&&(k.pathname=k.pathname==="/"?o:on([o,k.pathname])),Gn(k)}function Lf(l,i,o,s){if(!s||!sm(s))return{path:o};if(s.formMethod&&!Em(s.formMethod))return{path:o,error:St(405,{method:s.formMethod})};let c=()=>({path:o,error:St(400,{type:"invalid-body"})}),d=s.formMethod||"get",h=l?d.toUpperCase():d.toLowerCase(),m=ud(o);if(s.body!==void 0){if(s.formEncType==="text/plain"){if(!Yt(h))return c();let S=typeof s.body=="string"?s.body:s.body instanceof FormData||s.body instanceof URLSearchParams?Array.from(s.body.entries()).reduce((D,L)=>{let[M,z]=L;return""+D+M+"="+z+`
34
- `},""):String(s.body);return{path:o,submission:{formMethod:h,formAction:m,formEncType:s.formEncType,formData:void 0,json:void 0,text:S}}}else if(s.formEncType==="application/json"){if(!Yt(h))return c();try{let S=typeof s.body=="string"?JSON.parse(s.body):s.body;return{path:o,submission:{formMethod:h,formAction:m,formEncType:s.formEncType,formData:void 0,json:S,text:void 0}}}catch{return c()}}}pe(typeof FormData=="function","FormData is not available in this environment");let p,g;if(s.formData)p=Ru(s.formData),g=s.formData;else if(s.body instanceof FormData)p=Ru(s.body),g=s.body;else if(s.body instanceof URLSearchParams)p=s.body,g=zf(p);else if(s.body==null)p=new URLSearchParams,g=new FormData;else try{p=new URLSearchParams(s.body),g=zf(p)}catch{return c()}let k={formMethod:h,formAction:m,formEncType:s&&s.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Yt(k.formMethod))return{path:o,submission:k};let v=Sn(o);return i&&v.search&&zu(v.search)&&p.append("index",""),v.search="?"+p,{path:Gn(v),submission:k}}function Tf(l,i,o){o===void 0&&(o=!1);let s=l.findIndex(c=>c.route.id===i);return s>=0?l.slice(0,o?s+1:s):l}function Df(l,i,o,s,c,d,h,m,p,g,k,v,S,D,L,M){let z=M?_t(M[1])?M[1].error:M[1].data:void 0,K=l.createURL(i.location),U=l.createURL(c),Q=o;d&&i.errors?Q=Tf(o,Object.keys(i.errors)[0],!0):M&&_t(M[1])&&(Q=Tf(o,M[0]));let A=M?M[1].statusCode:void 0,q=h&&A&&A>=400,Y=Q.filter((W,fe)=>{let{route:se}=W;if(se.lazy)return!0;if(se.loader==null)return!1;if(d)return Cu(se,i.loaderData,i.errors);if(cm(i.loaderData,i.matches[fe],W)||p.some(Ne=>Ne===W.route.id))return!0;let ge=i.matches[fe],me=W;return Nf(W,Fe({currentUrl:K,currentParams:ge.params,nextUrl:U,nextParams:me.params},s,{actionResult:z,actionStatus:A,defaultShouldRevalidate:q?!1:m||K.pathname+K.search===U.pathname+U.search||K.search!==U.search||od(ge,me)}))}),P=[];return v.forEach((W,fe)=>{if(d||!o.some(Ue=>Ue.route.id===W.routeId)||k.has(fe))return;let se=gn(D,W.path,L);if(!se){P.push({key:fe,routeId:W.routeId,path:W.path,matches:null,match:null,controller:null});return}let ge=i.fetchers.get(fe),me=Wl(se,W.path),Ne=!1;S.has(fe)?Ne=!1:g.has(fe)?(g.delete(fe),Ne=!0):ge&&ge.state!=="idle"&&ge.data===void 0?Ne=m:Ne=Nf(me,Fe({currentUrl:K,currentParams:i.matches[i.matches.length-1].params,nextUrl:U,nextParams:o[o.length-1].params},s,{actionResult:z,actionStatus:A,defaultShouldRevalidate:q?!1:m})),Ne&&P.push({key:fe,routeId:W.routeId,path:W.path,matches:se,match:me,controller:new AbortController})}),[Y,P]}function Cu(l,i,o){if(l.lazy)return!0;if(!l.loader)return!1;let s=i!=null&&i[l.id]!==void 0,c=o!=null&&o[l.id]!==void 0;return!s&&c?!1:typeof l.loader=="function"&&l.loader.hydrate===!0?!0:!s&&!c}function cm(l,i,o){let s=!i||o.route.id!==i.route.id,c=l[o.route.id]===void 0;return s||c}function od(l,i){let o=l.route.path;return l.pathname!==i.pathname||o!=null&&o.endsWith("*")&&l.params["*"]!==i.params["*"]}function Nf(l,i){if(l.route.shouldRevalidate){let o=l.route.shouldRevalidate(i);if(typeof o=="boolean")return o}return i.defaultShouldRevalidate}function Of(l,i,o,s,c){var d;let h;if(l){let g=s[l];pe(g,"No route found to patch children into: routeId = "+l),g.children||(g.children=[]),h=g.children}else h=o;let m=i.filter(g=>!h.some(k=>ad(g,k))),p=So(m,c,[l||"_","patch",String(((d=h)==null?void 0:d.length)||"0")],s);h.push(...p)}function ad(l,i){return"id"in l&&"id"in i&&l.id===i.id?!0:l.index===i.index&&l.path===i.path&&l.caseSensitive===i.caseSensitive?(!l.children||l.children.length===0)&&(!i.children||i.children.length===0)?!0:l.children.every((o,s)=>{var c;return(c=i.children)==null?void 0:c.some(d=>ad(o,d))}):!1}async function fm(l,i,o){if(!l.lazy)return;let s=await l.lazy();if(!l.lazy)return;let c=o[l.id];pe(c,"No route found in manifest");let d={};for(let h in s){let p=c[h]!==void 0&&h!=="hasErrorBoundary";Gr(!p,'Route "'+c.id+'" has a static property "'+h+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+h+'" will be ignored.')),!p&&!Op.has(h)&&(d[h]=s[h])}Object.assign(c,d),Object.assign(c,Fe({},i(c),{lazy:void 0}))}async function dm(l){let{matches:i}=l,o=i.filter(c=>c.shouldLoad);return(await Promise.all(o.map(c=>c.resolve()))).reduce((c,d,h)=>Object.assign(c,{[o[h].route.id]:d}),{})}async function hm(l,i,o,s,c,d,h,m,p,g){let k=d.map(D=>D.route.lazy?fm(D.route,p,m):void 0),v=d.map((D,L)=>{let M=k[L],z=c.some(U=>U.route.id===D.route.id);return Fe({},D,{shouldLoad:z,resolve:async U=>(U&&s.method==="GET"&&(D.route.lazy||D.route.loader)&&(z=!0),z?pm(i,s,D,M,U,g):Promise.resolve({type:Le.data,result:void 0}))})}),S=await l({matches:v,request:s,params:d[0].params,fetcherKey:h,context:g});try{await Promise.all(k)}catch{}return S}async function pm(l,i,o,s,c,d){let h,m,p=g=>{let k,v=new Promise((L,M)=>k=M);m=()=>k(),i.signal.addEventListener("abort",m);let S=L=>typeof g!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+l+'" [routeId: '+o.route.id+"]"))):g({request:i,params:o.params,context:d},...L!==void 0?[L]:[]),D=(async()=>{try{return{type:"data",result:await(c?c(M=>S(M)):S())}}catch(L){return{type:"error",result:L}}})();return Promise.race([D,v])};try{let g=o.route[l];if(s)if(g){let k,[v]=await Promise.all([p(g).catch(S=>{k=S}),s]);if(k!==void 0)throw k;h=v}else if(await s,g=o.route[l],g)h=await p(g);else if(l==="action"){let k=new URL(i.url),v=k.pathname+k.search;throw St(405,{method:i.method,pathname:v,routeId:o.route.id})}else return{type:Le.data,result:void 0};else if(g)h=await p(g);else{let k=new URL(i.url),v=k.pathname+k.search;throw St(404,{pathname:v})}pe(h.result!==void 0,"You defined "+(l==="action"?"an action":"a loader")+" for route "+('"'+o.route.id+"\" but didn't return anything from your `"+l+"` ")+"function. Please return a value or `null`.")}catch(g){return{type:Le.error,result:g}}finally{m&&i.signal.removeEventListener("abort",m)}return h}async function mm(l){let{result:i,type:o}=l;if(sd(i)){let v;try{let S=i.headers.get("Content-Type");S&&/\bapplication\/json\b/.test(S)?i.body==null?v=null:v=await i.json():v=await i.text()}catch(S){return{type:Le.error,error:S}}return o===Le.error?{type:Le.error,error:new yr(i.status,i.statusText,v),statusCode:i.status,headers:i.headers}:{type:Le.data,data:v,statusCode:i.status,headers:i.headers}}if(o===Le.error){if(Af(i)){var s,c;if(i.data instanceof Error){var d,h;return{type:Le.error,error:i.data,statusCode:(d=i.init)==null?void 0:d.status,headers:(h=i.init)!=null&&h.headers?new Headers(i.init.headers):void 0}}return{type:Le.error,error:new yr(((s=i.init)==null?void 0:s.status)||500,void 0,i.data),statusCode:gr(i)?i.status:void 0,headers:(c=i.init)!=null&&c.headers?new Headers(i.init.headers):void 0}}return{type:Le.error,error:i,statusCode:gr(i)?i.status:void 0}}if(Sm(i)){var m,p;return{type:Le.deferred,deferredData:i,statusCode:(m=i.init)==null?void 0:m.status,headers:((p=i.init)==null?void 0:p.headers)&&new Headers(i.init.headers)}}if(Af(i)){var g,k;return{type:Le.data,data:i.data,statusCode:(g=i.init)==null?void 0:g.status,headers:(k=i.init)!=null&&k.headers?new Headers(i.init.headers):void 0}}return{type:Le.data,data:i}}function vm(l,i,o,s,c,d){let h=l.headers.get("Location");if(pe(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ou.test(h)){let m=s.slice(0,s.findIndex(p=>p.route.id===o)+1);h=ku(new URL(i.url),m,c,!0,h,d),l.headers.set("Location",h)}return l}function Mf(l,i,o){if(Ou.test(l)){let s=l,c=s.startsWith("//")?new URL(i.protocol+s):new URL(s),d=jt(c.pathname,o)!=null;if(c.origin===i.origin&&d)return c.pathname+c.search+c.hash}return l}function Jr(l,i,o,s){let c=l.createURL(ud(i)).toString(),d={signal:o};if(s&&Yt(s.formMethod)){let{formMethod:h,formEncType:m}=s;d.method=h.toUpperCase(),m==="application/json"?(d.headers=new Headers({"Content-Type":m}),d.body=JSON.stringify(s.json)):m==="text/plain"?d.body=s.text:m==="application/x-www-form-urlencoded"&&s.formData?d.body=Ru(s.formData):d.body=s.formData}return new Request(c,d)}function Ru(l){let i=new URLSearchParams;for(let[o,s]of l.entries())i.append(o,typeof s=="string"?s:s.name);return i}function zf(l){let i=new FormData;for(let[o,s]of l.entries())i.append(o,s);return i}function ym(l,i,o,s,c){let d={},h=null,m,p=!1,g={},k=o&&_t(o[1])?o[1].error:void 0;return l.forEach(v=>{if(!(v.route.id in i))return;let S=v.route.id,D=i[S];if(pe(!vr(D),"Cannot handle redirect results in processLoaderData"),_t(D)){let L=D.error;k!==void 0&&(L=k,k=void 0),h=h||{};{let M=mr(l,S);h[M.route.id]==null&&(h[M.route.id]=L)}d[S]=void 0,p||(p=!0,m=gr(D.error)?D.error.status:500),D.headers&&(g[S]=D.headers)}else Jn(D)?(s.set(S,D.deferredData),d[S]=D.deferredData.data,D.statusCode!=null&&D.statusCode!==200&&!p&&(m=D.statusCode),D.headers&&(g[S]=D.headers)):(d[S]=D.data,D.statusCode&&D.statusCode!==200&&!p&&(m=D.statusCode),D.headers&&(g[S]=D.headers))}),k!==void 0&&o&&(h={[o[0]]:k},d[o[0]]=void 0),{loaderData:d,errors:h,statusCode:m||200,loaderHeaders:g}}function Ff(l,i,o,s,c,d,h){let{loaderData:m,errors:p}=ym(i,o,s,h);return c.forEach(g=>{let{key:k,match:v,controller:S}=g,D=d[k];if(pe(D,"Did not find corresponding fetcher result"),!(S&&S.signal.aborted))if(_t(D)){let L=mr(l.matches,v==null?void 0:v.route.id);p&&p[L.route.id]||(p=Fe({},p,{[L.route.id]:D.error})),l.fetchers.delete(k)}else if(vr(D))pe(!1,"Unhandled fetcher revalidation redirect");else if(Jn(D))pe(!1,"Unhandled fetcher deferred data");else{let L=Xn(D.data);l.fetchers.set(k,L)}}),{loaderData:m,errors:p}}function jf(l,i,o,s){let c=Fe({},i);for(let d of o){let h=d.route.id;if(i.hasOwnProperty(h)?i[h]!==void 0&&(c[h]=i[h]):l[h]!==void 0&&d.route.loader&&(c[h]=l[h]),s&&s.hasOwnProperty(h))break}return c}function If(l){return l?_t(l[1])?{actionData:{}}:{actionData:{[l[0]]:l[1].data}}:{}}function mr(l,i){return(i?l.slice(0,l.findIndex(s=>s.route.id===i)+1):[...l]).reverse().find(s=>s.route.hasErrorBoundary===!0)||l[0]}function Uf(l){let i=l.length===1?l[0]:l.find(o=>o.index||!o.path||o.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function St(l,i){let{pathname:o,routeId:s,method:c,type:d,message:h}=i===void 0?{}:i,m="Unknown Server Error",p="Unknown @remix-run/router error";return l===400?(m="Bad Request",c&&o&&s?p="You made a "+c+' request to "'+o+'" but '+('did not provide a `loader` for route "'+s+'", ')+"so there is no way to handle the request.":d==="defer-action"?p="defer() is not supported in actions":d==="invalid-body"&&(p="Unable to encode submission body")):l===403?(m="Forbidden",p='Route "'+s+'" does not match URL "'+o+'"'):l===404?(m="Not Found",p='No route matches URL "'+o+'"'):l===405&&(m="Method Not Allowed",c&&o&&s?p="You made a "+c.toUpperCase()+' request to "'+o+'" but '+('did not provide an `action` for route "'+s+'", ')+"so there is no way to handle the request.":c&&(p='Invalid request method "'+c.toUpperCase()+'"')),new yr(l||500,m,new Error(p),!0)}function so(l){let i=Object.entries(l);for(let o=i.length-1;o>=0;o--){let[s,c]=i[o];if(vr(c))return{key:s,result:c}}}function ud(l){let i=typeof l=="string"?Sn(l):l;return Gn(Fe({},i,{hash:""}))}function gm(l,i){return l.pathname!==i.pathname||l.search!==i.search?!1:l.hash===""?i.hash!=="":l.hash===i.hash?!0:i.hash!==""}function wm(l){return sd(l.result)&&im.has(l.result.status)}function Jn(l){return l.type===Le.deferred}function _t(l){return l.type===Le.error}function vr(l){return(l&&l.type)===Le.redirect}function Af(l){return typeof l=="object"&&l!=null&&"type"in l&&"data"in l&&"init"in l&&l.type==="DataWithResponseInit"}function Sm(l){let i=l;return i&&typeof i=="object"&&typeof i.data=="object"&&typeof i.subscribe=="function"&&typeof i.cancel=="function"&&typeof i.resolveData=="function"}function sd(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function Em(l){return lm.has(l.toLowerCase())}function Yt(l){return nm.has(l.toLowerCase())}async function xm(l,i,o,s,c){let d=Object.entries(i);for(let h=0;h<d.length;h++){let[m,p]=d[h],g=l.find(S=>(S==null?void 0:S.route.id)===m);if(!g)continue;let k=s.find(S=>S.route.id===g.route.id),v=k!=null&&!od(k,g)&&(c&&c[g.route.id])!==void 0;Jn(p)&&v&&await Mu(p,o,!1).then(S=>{S&&(i[m]=S)})}}async function km(l,i,o){for(let s=0;s<o.length;s++){let{key:c,routeId:d,controller:h}=o[s],m=i[c];l.find(g=>(g==null?void 0:g.route.id)===d)&&Jn(m)&&(pe(h,"Expected an AbortController for revalidating fetcher deferred result"),await Mu(m,h.signal,!0).then(g=>{g&&(i[c]=g)}))}}async function Mu(l,i,o){if(o===void 0&&(o=!1),!await l.deferredData.resolveData(i)){if(o)try{return{type:Le.data,data:l.deferredData.unwrappedData}}catch(c){return{type:Le.error,error:c}}return{type:Le.data,data:l.deferredData.data}}}function zu(l){return new URLSearchParams(l).getAll("index").some(i=>i==="")}function Wl(l,i){let o=typeof i=="string"?Sn(i).search:i.search;if(l[l.length-1].route.index&&zu(o||""))return l[l.length-1];let s=nd(l);return s[s.length-1]}function Hf(l){let{formMethod:i,formAction:o,formEncType:s,text:c,formData:d,json:h}=l;if(!(!i||!o||!s)){if(c!=null)return{formMethod:i,formAction:o,formEncType:s,formData:void 0,json:void 0,text:c};if(d!=null)return{formMethod:i,formAction:o,formEncType:s,formData:d,json:void 0,text:void 0};if(h!==void 0)return{formMethod:i,formAction:o,formEncType:s,formData:void 0,json:h,text:void 0}}}function yu(l,i){return i?{state:"loading",location:l,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:l,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Cm(l,i){return{state:"submitting",location:l,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Bl(l,i){return l?{state:"loading",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function Rm(l,i){return{state:"submitting",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:i?i.data:void 0}}function Xn(l){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function Pm(l,i){try{let o=l.sessionStorage.getItem(id);if(o){let s=JSON.parse(o);for(let[c,d]of Object.entries(s||{}))d&&Array.isArray(d)&&i.set(c,new Set(d||[]))}}catch{}}function _m(l,i){if(i.size>0){let o={};for(let[s,c]of i)o[s]=[...c];try{l.sessionStorage.setItem(id,JSON.stringify(o))}catch(s){Gr(!1,"Failed to save applied view transitions in sessionStorage ("+s+").")}}}/**
35
- * React Router v6.30.0
36
- *
37
- * Copyright (c) Remix Software Inc.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE.md file in the root directory of this source tree.
41
- *
42
- * @license MIT
43
- */function ko(){return ko=Object.assign?Object.assign.bind():function(l){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(l[s]=o[s])}return l},ko.apply(this,arguments)}const Zr=w.createContext(null),Yl=w.createContext(null),Co=w.createContext(null),Xt=w.createContext(null),Fu=w.createContext(null),En=w.createContext({outlet:null,matches:[],isDataRoute:!1}),cd=w.createContext(null);function ju(l,i){let{relative:o}=i===void 0?{}:i;Xl()||pe(!1);let{basename:s,navigator:c}=w.useContext(Xt),{hash:d,pathname:h,search:m}=Jl(l,{relative:o}),p=h;return s!=="/"&&(p=h==="/"?s:on([s,h])),c.createHref({pathname:p,search:m,hash:d})}function Xl(){return w.useContext(Fu)!=null}function xn(){return Xl()||pe(!1),w.useContext(Fu).location}function fd(l){w.useContext(Xt).static||w.useLayoutEffect(l)}function Lm(){let{isDataRoute:l}=w.useContext(En);return l?Km():Tm()}function Tm(){Xl()||pe(!1);let l=w.useContext(Zr),{basename:i,future:o,navigator:s}=w.useContext(Xt),{matches:c}=w.useContext(En),{pathname:d}=xn(),h=JSON.stringify(Du(c,o.v7_relativeSplatPath)),m=w.useRef(!1);return fd(()=>{m.current=!0}),w.useCallback(function(g,k){if(k===void 0&&(k={}),!m.current)return;if(typeof g=="number"){s.go(g);return}let v=Nu(g,JSON.parse(h),d,k.relative==="path");l==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:on([i,v.pathname])),(k.replace?s.replace:s.push)(v,k.state,k)},[i,s,h,d,l])}const Dm=w.createContext(null);function Nm(l){let i=w.useContext(En).outlet;return i&&w.createElement(Dm.Provider,{value:l},i)}function Jl(l,i){let{relative:o}=i===void 0?{}:i,{future:s}=w.useContext(Xt),{matches:c}=w.useContext(En),{pathname:d}=xn(),h=JSON.stringify(Du(c,s.v7_relativeSplatPath));return w.useMemo(()=>Nu(l,JSON.parse(h),d,o==="path"),[l,h,d,o])}function Om(l,i,o,s){Xl()||pe(!1);let{navigator:c,static:d}=w.useContext(Xt),{matches:h}=w.useContext(En),m=h[h.length-1],p=m?m.params:{};m&&m.pathname;let g=m?m.pathnameBase:"/";m&&m.route;let k=xn(),v;v=k;let S=v.pathname||"/",D=S;if(g!=="/"){let z=g.replace(/^\//,"").split("/");D="/"+S.replace(/^\//,"").split("/").slice(z.length).join("/")}let L=!d&&o&&o.matches&&o.matches.length>0?o.matches:gn(l,{pathname:D});return Im(L&&L.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:on([g,c.encodeLocation?c.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?g:on([g,c.encodeLocation?c.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),h,o,s)}function Mm(){let l=pd(),i=gr(l)?l.status+" "+l.statusText:l instanceof Error?l.message:JSON.stringify(l),o=l instanceof Error?l.stack:null,c={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},i),o?w.createElement("pre",{style:c},o):null,null)}const zm=w.createElement(Mm,null);class Fm extends w.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){console.error("React Router caught the following error during render",i,o)}render(){return this.state.error!==void 0?w.createElement(En.Provider,{value:this.props.routeContext},w.createElement(cd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jm(l){let{routeContext:i,match:o,children:s}=l,c=w.useContext(Zr);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),w.createElement(En.Provider,{value:i},s)}function Im(l,i,o,s){var c;if(i===void 0&&(i=[]),o===void 0&&(o=null),s===void 0&&(s=null),l==null){var d;if(!o)return null;if(o.errors)l=o.matches;else if((d=s)!=null&&d.v7_partialHydration&&i.length===0&&!o.initialized&&o.matches.length>0)l=o.matches;else return null}let h=l,m=(c=o)==null?void 0:c.errors;if(m!=null){let k=h.findIndex(v=>v.route.id&&(m==null?void 0:m[v.route.id])!==void 0);k>=0||pe(!1),h=h.slice(0,Math.min(h.length,k+1))}let p=!1,g=-1;if(o&&s&&s.v7_partialHydration)for(let k=0;k<h.length;k++){let v=h[k];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=k),v.route.id){let{loaderData:S,errors:D}=o,L=v.route.loader&&S[v.route.id]===void 0&&(!D||D[v.route.id]===void 0);if(v.route.lazy||L){p=!0,g>=0?h=h.slice(0,g+1):h=[h[0]];break}}}return h.reduceRight((k,v,S)=>{let D,L=!1,M=null,z=null;o&&(D=m&&v.route.id?m[v.route.id]:void 0,M=v.route.errorElement||zm,p&&(g<0&&S===0?(Qm("route-fallback"),L=!0,z=null):g===S&&(L=!0,z=v.route.hydrateFallbackElement||null)));let K=i.concat(h.slice(0,S+1)),U=()=>{let Q;return D?Q=M:L?Q=z:v.route.Component?Q=w.createElement(v.route.Component,null):v.route.element?Q=v.route.element:Q=k,w.createElement(jm,{match:v,routeContext:{outlet:k,matches:K,isDataRoute:o!=null},children:Q})};return o&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?w.createElement(Fm,{location:o.location,revalidation:o.revalidation,component:M,error:D,children:U(),routeContext:{outlet:null,matches:K,isDataRoute:!0}}):U()},null)}var dd=function(l){return l.UseBlocker="useBlocker",l.UseRevalidator="useRevalidator",l.UseNavigateStable="useNavigate",l}(dd||{}),hd=function(l){return l.UseBlocker="useBlocker",l.UseLoaderData="useLoaderData",l.UseActionData="useActionData",l.UseRouteError="useRouteError",l.UseNavigation="useNavigation",l.UseRouteLoaderData="useRouteLoaderData",l.UseMatches="useMatches",l.UseRevalidator="useRevalidator",l.UseNavigateStable="useNavigate",l.UseRouteId="useRouteId",l}(hd||{});function Um(l){let i=w.useContext(Zr);return i||pe(!1),i}function Iu(l){let i=w.useContext(Yl);return i||pe(!1),i}function Am(l){let i=w.useContext(En);return i||pe(!1),i}function Uu(l){let i=Am(),o=i.matches[i.matches.length-1];return o.route.id||pe(!1),o.route.id}function Hm(){return Uu()}function Bm(){return Iu().navigation}function $m(){let{matches:l,loaderData:i}=Iu();return w.useMemo(()=>l.map(o=>bf(o,i)),[l,i])}function pd(){var l;let i=w.useContext(cd),o=Iu(hd.UseRouteError),s=Uu();return i!==void 0?i:(l=o.errors)==null?void 0:l[s]}function Vm(){let l=w.useContext(Co);return l==null?void 0:l._data}function Wm(){let l=w.useContext(Co);return l==null?void 0:l._error}function Km(){let{router:l}=Um(dd.UseNavigateStable),i=Uu(),o=w.useRef(!1);return fd(()=>{o.current=!0}),w.useCallback(function(c,d){d===void 0&&(d={}),o.current&&(typeof c=="number"?l.navigate(c):l.navigate(c,ko({fromRouteId:i},d)))},[l,i])}const Bf={};function Qm(l,i,o){Bf[l]||(Bf[l]=!0)}function Ym(l,i){l==null||l.v7_startTransition,(l==null?void 0:l.v7_relativeSplatPath)===void 0&&(!i||i.v7_relativeSplatPath),i&&(i.v7_fetcherPersist,i.v7_normalizeFormMethod,i.v7_partialHydration,i.v7_skipActionErrorRevalidation)}function Xy(l){return Nm(l.context)}function Xm(l){let{basename:i="/",children:o=null,location:s,navigationType:c=Ke.Pop,navigator:d,static:h=!1,future:m}=l;Xl()&&pe(!1);let p=i.replace(/^\/*/,"/"),g=w.useMemo(()=>({basename:p,navigator:d,static:h,future:ko({v7_relativeSplatPath:!1},m)}),[p,m,d,h]);typeof s=="string"&&(s=Sn(s));let{pathname:k="/",search:v="",hash:S="",state:D=null,key:L="default"}=s,M=w.useMemo(()=>{let z=jt(k,p);return z==null?null:{location:{pathname:z,search:v,hash:S,state:D,key:L},navigationType:c}},[p,k,v,S,D,L,c]);return M==null?null:w.createElement(Xt.Provider,{value:g},w.createElement(Fu.Provider,{children:o,value:M}))}function Jm(l){let{children:i,errorElement:o,resolve:s}=l;return w.createElement(Zm,{resolve:s,errorElement:o},w.createElement(qm,null,i))}var Ft=function(l){return l[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l}(Ft||{});const Gm=new Promise(()=>{});class Zm extends w.Component{constructor(i){super(i),this.state={error:null}}static getDerivedStateFromError(i){return{error:i}}componentDidCatch(i,o){console.error("<Await> caught the following error during render",i,o)}render(){let{children:i,errorElement:o,resolve:s}=this.props,c=null,d=Ft.pending;if(!(s instanceof Promise))d=Ft.success,c=Promise.resolve(),Object.defineProperty(c,"_tracked",{get:()=>!0}),Object.defineProperty(c,"_data",{get:()=>s});else if(this.state.error){d=Ft.error;let h=this.state.error;c=Promise.reject().catch(()=>{}),Object.defineProperty(c,"_tracked",{get:()=>!0}),Object.defineProperty(c,"_error",{get:()=>h})}else s._tracked?(c=s,d="_error"in c?Ft.error:"_data"in c?Ft.success:Ft.pending):(d=Ft.pending,Object.defineProperty(s,"_tracked",{get:()=>!0}),c=s.then(h=>Object.defineProperty(s,"_data",{get:()=>h}),h=>Object.defineProperty(s,"_error",{get:()=>h})));if(d===Ft.error&&c._error instanceof xo)throw Gm;if(d===Ft.error&&!o)throw c._error;if(d===Ft.error)return w.createElement(Co.Provider,{value:c,children:o});if(d===Ft.success)return w.createElement(Co.Provider,{value:c,children:i});throw c}}function qm(l){let{children:i}=l,o=Vm(),s=typeof i=="function"?i(o):i;return w.createElement(w.Fragment,null,s)}function Jy(l){let i={hasErrorBoundary:l.ErrorBoundary!=null||l.errorElement!=null};return l.Component&&Object.assign(i,{element:w.createElement(l.Component),Component:void 0}),l.HydrateFallback&&Object.assign(i,{hydrateFallbackElement:w.createElement(l.HydrateFallback),HydrateFallback:void 0}),l.ErrorBoundary&&Object.assign(i,{errorElement:w.createElement(l.ErrorBoundary),ErrorBoundary:void 0}),i}/**
44
- * React Router DOM v6.30.0
45
- *
46
- * Copyright (c) Remix Software Inc.
47
- *
48
- * This source code is licensed under the MIT license found in the
49
- * LICENSE.md file in the root directory of this source tree.
50
- *
51
- * @license MIT
52
- */function wr(){return wr=Object.assign?Object.assign.bind():function(l){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(l[s]=o[s])}return l},wr.apply(this,arguments)}function Au(l,i){if(l==null)return{};var o={},s=Object.keys(l),c,d;for(d=0;d<s.length;d++)c=s[d],!(i.indexOf(c)>=0)&&(o[c]=l[c]);return o}const yo="get",gu="application/x-www-form-urlencoded";function Po(l){return l!=null&&typeof l.tagName=="string"}function bm(l){return Po(l)&&l.tagName.toLowerCase()==="button"}function ev(l){return Po(l)&&l.tagName.toLowerCase()==="form"}function tv(l){return Po(l)&&l.tagName.toLowerCase()==="input"}function nv(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function rv(l,i){return l.button===0&&(!i||i==="_self")&&!nv(l)}let co=null;function lv(){if(co===null)try{new FormData(document.createElement("form"),0),co=!1}catch{co=!0}return co}const iv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wu(l){return l!=null&&!iv.has(l)?null:l}function ov(l,i){let o,s,c,d,h;if(ev(l)){let m=l.getAttribute("action");s=m?jt(m,i):null,o=l.getAttribute("method")||yo,c=wu(l.getAttribute("enctype"))||gu,d=new FormData(l)}else if(bm(l)||tv(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=l.getAttribute("formaction")||m.getAttribute("action");if(s=p?jt(p,i):null,o=l.getAttribute("formmethod")||m.getAttribute("method")||yo,c=wu(l.getAttribute("formenctype"))||wu(m.getAttribute("enctype"))||gu,d=new FormData(m,l),!lv()){let{name:g,type:k,value:v}=l;if(k==="image"){let S=g?g+".":"";d.append(S+"x","0"),d.append(S+"y","0")}else g&&d.append(g,v)}}else{if(Po(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=yo,s=null,c=gu,h=l}return d&&c==="text/plain"&&(h=d,d=void 0),{action:s,method:o.toLowerCase(),encType:c,formData:d,body:h}}const av=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uv=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],sv=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],cv="6";try{window.__reactRouterVersion=cv}catch{}const md=w.createContext({isTransitioning:!1}),fv=w.createContext(new Map),dv="startTransition",$f=xp[dv],hv="flushSync",Vf=Tp[hv];function pv(l){$f?$f(l):l()}function $l(l){Vf?Vf(l):l()}let mv=class{constructor(){this.status="pending",this.promise=new Promise((i,o)=>{this.resolve=s=>{this.status==="pending"&&(this.status="resolved",i(s))},this.reject=s=>{this.status==="pending"&&(this.status="rejected",o(s))}})}};function Zy(l){let{fallbackElement:i,router:o,future:s}=l,[c,d]=w.useState(o.state),[h,m]=w.useState(),[p,g]=w.useState({isTransitioning:!1}),[k,v]=w.useState(),[S,D]=w.useState(),[L,M]=w.useState(),z=w.useRef(new Map),{v7_startTransition:K}=s||{},U=w.useCallback(W=>{K?pv(W):W()},[K]),Q=w.useCallback((W,fe)=>{let{deletedFetchers:se,flushSync:ge,viewTransitionOpts:me}=fe;W.fetchers.forEach((Ue,je)=>{Ue.data!==void 0&&z.current.set(je,Ue.data)}),se.forEach(Ue=>z.current.delete(Ue));let Ne=o.window==null||o.window.document==null||typeof o.window.document.startViewTransition!="function";if(!me||Ne){ge?$l(()=>d(W)):U(()=>d(W));return}if(ge){$l(()=>{S&&(k&&k.resolve(),S.skipTransition()),g({isTransitioning:!0,flushSync:!0,currentLocation:me.currentLocation,nextLocation:me.nextLocation})});let Ue=o.window.document.startViewTransition(()=>{$l(()=>d(W))});Ue.finished.finally(()=>{$l(()=>{v(void 0),D(void 0),m(void 0),g({isTransitioning:!1})})}),$l(()=>D(Ue));return}S?(k&&k.resolve(),S.skipTransition(),M({state:W,currentLocation:me.currentLocation,nextLocation:me.nextLocation})):(m(W),g({isTransitioning:!0,flushSync:!1,currentLocation:me.currentLocation,nextLocation:me.nextLocation}))},[o.window,S,k,z,U]);w.useLayoutEffect(()=>o.subscribe(Q),[o,Q]),w.useEffect(()=>{p.isTransitioning&&!p.flushSync&&v(new mv)},[p]),w.useEffect(()=>{if(k&&h&&o.window){let W=h,fe=k.promise,se=o.window.document.startViewTransition(async()=>{U(()=>d(W)),await fe});se.finished.finally(()=>{v(void 0),D(void 0),m(void 0),g({isTransitioning:!1})}),D(se)}},[U,h,k,o.window]),w.useEffect(()=>{k&&h&&c.location.key===h.location.key&&k.resolve()},[k,S,c.location,h]),w.useEffect(()=>{!p.isTransitioning&&L&&(m(L.state),g({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}),M(void 0))},[p.isTransitioning,L]),w.useEffect(()=>{},[]);let A=w.useMemo(()=>({createHref:o.createHref,encodeLocation:o.encodeLocation,go:W=>o.navigate(W),push:(W,fe,se)=>o.navigate(W,{state:fe,preventScrollReset:se==null?void 0:se.preventScrollReset}),replace:(W,fe,se)=>o.navigate(W,{replace:!0,state:fe,preventScrollReset:se==null?void 0:se.preventScrollReset})}),[o]),q=o.basename||"/",Y=w.useMemo(()=>({router:o,navigator:A,static:!1,basename:q}),[o,A,q]),P=w.useMemo(()=>({v7_relativeSplatPath:o.future.v7_relativeSplatPath}),[o.future.v7_relativeSplatPath]);return w.useEffect(()=>Ym(s,o.future),[s,o.future]),w.createElement(w.Fragment,null,w.createElement(Zr.Provider,{value:Y},w.createElement(Yl.Provider,{value:c},w.createElement(fv.Provider,{value:z.current},w.createElement(md.Provider,{value:p},w.createElement(Xm,{basename:q,location:c.location,navigationType:c.historyAction,navigator:A,future:P},c.initialized||o.future.v7_partialHydration?w.createElement(vv,{routes:o.routes,future:o.future,state:c}):i))))),null)}const vv=w.memo(yv);function yv(l){let{routes:i,future:o,state:s}=l;return Om(i,void 0,s,o)}const gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vd=w.forwardRef(function(i,o){let{onClick:s,relative:c,reloadDocument:d,replace:h,state:m,target:p,to:g,preventScrollReset:k,viewTransition:v}=i,S=Au(i,av),{basename:D}=w.useContext(Xt),L,M=!1;if(typeof g=="string"&&wv.test(g)&&(L=g,gv))try{let Q=new URL(window.location.href),A=g.startsWith("//")?new URL(Q.protocol+g):new URL(g),q=jt(A.pathname,D);A.origin===Q.origin&&q!=null?g=q+A.search+A.hash:M=!0}catch{}let z=ju(g,{relative:c}),K=kv(g,{replace:h,state:m,target:p,preventScrollReset:k,relative:c,viewTransition:v});function U(Q){s&&s(Q),Q.defaultPrevented||K(Q)}return w.createElement("a",wr({},S,{href:L||z,onClick:M||d?s:U,ref:o,target:p}))}),Sv=w.forwardRef(function(i,o){let{"aria-current":s="page",caseSensitive:c=!1,className:d="",end:h=!1,style:m,to:p,viewTransition:g,children:k}=i,v=Au(i,uv),S=Jl(p,{relative:v.relative}),D=xn(),L=w.useContext(Yl),{navigator:M,basename:z}=w.useContext(Xt),K=L!=null&&Dv(S)&&g===!0,U=M.encodeLocation?M.encodeLocation(S).pathname:S.pathname,Q=D.pathname,A=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;c||(Q=Q.toLowerCase(),A=A?A.toLowerCase():null,U=U.toLowerCase()),A&&z&&(A=jt(A,z)||A);const q=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let Y=Q===U||!h&&Q.startsWith(U)&&Q.charAt(q)==="/",P=A!=null&&(A===U||!h&&A.startsWith(U)&&A.charAt(U.length)==="/"),W={isActive:Y,isPending:P,isTransitioning:K},fe=Y?s:void 0,se;typeof d=="function"?se=d(W):se=[d,Y?"active":null,P?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let ge=typeof m=="function"?m(W):m;return w.createElement(vd,wr({},v,{"aria-current":fe,className:se,ref:o,style:ge,to:p,viewTransition:g}),typeof k=="function"?k(W):k)}),Ev=w.forwardRef((l,i)=>{let{fetcherKey:o,navigate:s,reloadDocument:c,replace:d,state:h,method:m=yo,action:p,onSubmit:g,relative:k,preventScrollReset:v,viewTransition:S}=l,D=Au(l,sv),L=_v(),M=Lv(p,{relative:k}),z=m.toLowerCase()==="get"?"get":"post",K=U=>{if(g&&g(U),U.defaultPrevented)return;U.preventDefault();let Q=U.nativeEvent.submitter,A=(Q==null?void 0:Q.getAttribute("formmethod"))||m;L(Q||U.currentTarget,{fetcherKey:o,method:A,navigate:s,replace:d,state:h,relative:k,preventScrollReset:v,viewTransition:S})};return w.createElement("form",wr({ref:i,method:z,action:M,onSubmit:c?g:K},D))});var Ql;(function(l){l.UseScrollRestoration="useScrollRestoration",l.UseSubmit="useSubmit",l.UseSubmitFetcher="useSubmitFetcher",l.UseFetcher="useFetcher",l.useViewTransitionState="useViewTransitionState"})(Ql||(Ql={}));var Pu;(function(l){l.UseFetcher="useFetcher",l.UseFetchers="useFetchers",l.UseScrollRestoration="useScrollRestoration"})(Pu||(Pu={}));function Hu(l){let i=w.useContext(Zr);return i||pe(!1),i}function xv(l){let i=w.useContext(Yl);return i||pe(!1),i}function kv(l,i){let{target:o,replace:s,state:c,preventScrollReset:d,relative:h,viewTransition:m}=i===void 0?{}:i,p=Lm(),g=xn(),k=Jl(l,{relative:h});return w.useCallback(v=>{if(rv(v,o)){v.preventDefault();let S=s!==void 0?s:Gn(g)===Gn(k);p(l,{replace:S,state:c,preventScrollReset:d,relative:h,viewTransition:m})}},[g,p,k,s,c,o,l,d,h,m])}function Cv(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Rv=0,Pv=()=>"__"+String(++Rv)+"__";function _v(){let{router:l}=Hu(Ql.UseSubmit),{basename:i}=w.useContext(Xt),o=Hm();return w.useCallback(function(s,c){c===void 0&&(c={}),Cv();let{action:d,method:h,encType:m,formData:p,body:g}=ov(s,i);if(c.navigate===!1){let k=c.fetcherKey||Pv();l.fetch(k,o,c.action||d,{preventScrollReset:c.preventScrollReset,formData:p,body:g,formMethod:c.method||h,formEncType:c.encType||m,flushSync:c.flushSync})}else l.navigate(c.action||d,{preventScrollReset:c.preventScrollReset,formData:p,body:g,formMethod:c.method||h,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:o,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,i,o])}function Lv(l,i){let{relative:o}=i===void 0?{}:i,{basename:s}=w.useContext(Xt),c=w.useContext(En);c||pe(!1);let[d]=c.matches.slice(-1),h=wr({},Jl(l||".",{relative:o})),m=xn();if(l==null){h.search=m.search;let p=new URLSearchParams(h.search),g=p.getAll("index");if(g.some(v=>v==="")){p.delete("index"),g.filter(S=>S).forEach(S=>p.append("index",S));let v=p.toString();h.search=v?"?"+v:""}}return(!l||l===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:on([s,h.pathname])),Gn(h)}const Wf="react-router-scroll-positions";let fo={};function qy(l){let{getKey:i,storageKey:o}=l===void 0?{}:l,{router:s}=Hu(Ql.UseScrollRestoration),{restoreScrollPosition:c,preventScrollReset:d}=xv(Pu.UseScrollRestoration),{basename:h}=w.useContext(Xt),m=xn(),p=$m(),g=Bm();w.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Tv(w.useCallback(()=>{if(g.state==="idle"){let k=(i?i(m,p):null)||m.key;fo[k]=window.scrollY}try{sessionStorage.setItem(o||Wf,JSON.stringify(fo))}catch{}window.history.scrollRestoration="auto"},[o,i,g.state,m,p])),typeof document<"u"&&(w.useLayoutEffect(()=>{try{let k=sessionStorage.getItem(o||Wf);k&&(fo=JSON.parse(k))}catch{}},[o]),w.useLayoutEffect(()=>{let k=i&&h!=="/"?(S,D)=>i(wr({},S,{pathname:jt(S.pathname,h)||S.pathname}),D):i,v=s==null?void 0:s.enableScrollRestoration(fo,()=>window.scrollY,k);return()=>v&&v()},[s,h,i]),w.useLayoutEffect(()=>{if(c!==!1){if(typeof c=="number"){window.scrollTo(0,c);return}if(m.hash){let k=document.getElementById(decodeURIComponent(m.hash.slice(1)));if(k){k.scrollIntoView();return}}d!==!0&&window.scrollTo(0,0)}},[m,c,d]))}function Tv(l,i){let{capture:o}={};w.useEffect(()=>{let s=o!=null?{capture:o}:void 0;return window.addEventListener("pagehide",l,s),()=>{window.removeEventListener("pagehide",l,s)}},[l,o])}function Dv(l,i){i===void 0&&(i={});let o=w.useContext(md);o==null&&pe(!1);let{basename:s}=Hu(Ql.useViewTransitionState),c=Jl(l,{relative:i.relative});if(!o.isTransitioning)return!1;let d=jt(o.currentLocation.pathname,s)||o.currentLocation.pathname,h=jt(o.nextLocation.pathname,s)||o.nextLocation.pathname;return Eo(c.pathname,h)!=null||Eo(c.pathname,d)!=null}var Nv=-1,Ov=-2,Mv=-3,zv=-4,Fv=-5,jv=-6,Iv=-7,Uv="B",Av="D",yd="E",Hv="M",Bv="N",gd="P",$v="R",Vv="S",Wv="Y",Kv="U",Qv="Z",wd=class{constructor(){uo(this,"promise");uo(this,"resolve");uo(this,"reject");this.promise=new Promise((l,i)=>{this.resolve=l,this.reject=i})}};function Yv(){const l=new TextDecoder;let i="";return new TransformStream({transform(o,s){const c=l.decode(o,{stream:!0}),d=(i+c).split(`
53
- `);i=d.pop()||"";for(const h of d)s.enqueue(h)},flush(o){i&&o.enqueue(i)}})}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Su=typeof window<"u"?window:typeof globalThis<"u"?globalThis:void 0;function _u(l){const{hydrated:i,values:o}=this;if(typeof l=="number")return Kf.call(this,l);if(!Array.isArray(l)||!l.length)throw new SyntaxError;const s=o.length;for(const c of l)o.push(c);return i.length=o.length,Kf.call(this,s)}function Kf(l){const{hydrated:i,values:o,deferred:s,plugins:c}=this;let d;const h=[[l,p=>{d=p}]];let m=[];for(;h.length>0;){const[p,g]=h.pop();switch(p){case Iv:g(void 0);continue;case Fv:g(null);continue;case Ov:g(NaN);continue;case jv:g(1/0);continue;case Mv:g(-1/0);continue;case zv:g(-0);continue}if(i[p]){g(i[p]);continue}const k=o[p];if(!k||typeof k!="object"){i[p]=k,g(k);continue}if(Array.isArray(k))if(typeof k[0]=="string"){const[v,S,D]=k;switch(v){case Av:g(i[p]=new Date(S));continue;case Kv:g(i[p]=new URL(S));continue;case Uv:g(i[p]=BigInt(S));continue;case $v:g(i[p]=new RegExp(S,D));continue;case Wv:g(i[p]=Symbol.for(S));continue;case Vv:const L=new Set;i[p]=L;for(let A=1;A<k.length;A++)h.push([k[A],q=>{L.add(q)}]);g(L);continue;case Hv:const M=new Map;i[p]=M;for(let A=1;A<k.length;A+=2){const q=[];h.push([k[A+1],Y=>{q[1]=Y}]),h.push([k[A],Y=>{q[0]=Y}]),m.push(()=>{M.set(q[0],q[1])})}g(M);continue;case Bv:const z=Object.create(null);i[p]=z;for(const A of Object.keys(S).reverse()){const q=[];h.push([S[A],Y=>{q[1]=Y}]),h.push([Number(A.slice(1)),Y=>{q[0]=Y}]),m.push(()=>{z[q[0]]=q[1]})}g(z);continue;case gd:if(i[S])g(i[p]=i[S]);else{const A=new wd;s[S]=A,g(i[p]=A.promise)}continue;case yd:const[,K,U]=k;let Q=U&&Su&&Su[U]?new Su[U](K):new Error(K);i[p]=Q,g(Q);continue;case Qv:g(i[p]=i[S]);continue;default:if(Array.isArray(c)){const A=[],q=k.slice(1);for(let Y=0;Y<q.length;Y++){const P=q[Y];h.push([P,W=>{A[Y]=W}])}m.push(()=>{for(const Y of c){const P=Y(k[0],...A);if(P){g(i[p]=P.value);return}}throw new SyntaxError});continue}throw new SyntaxError}}else{const v=[];i[p]=v;for(let S=0;S<k.length;S++){const D=k[S];D!==Nv&&h.push([D,L=>{v[S]=L}])}g(v);continue}else{const v={};i[p]=v;for(const S of Object.keys(k).reverse()){const D=[];h.push([k[S],L=>{D[1]=L}]),h.push([Number(S.slice(1)),L=>{D[0]=L}]),m.push(()=>{v[D[0]]=D[1]})}g(v);continue}}for(;m.length>0;)m.pop()();return d}async function Xv(l,i){const{plugins:o}=i??{},s=new wd,c=l.pipeThrough(Yv()).getReader(),d={values:[],hydrated:[],deferred:{},plugins:o},h=await Jv.call(d,c);let m=s.promise;return h.done?s.resolve():m=Gv.call(d,c).then(s.resolve).catch(p=>{for(const g of Object.values(d.deferred))g.reject(p);s.reject(p)}),{done:m.then(()=>c.closed),value:h.value}}async function Jv(l){const i=await l.read();if(!i.value)throw new SyntaxError;let o;try{o=JSON.parse(i.value)}catch{throw new SyntaxError}return{done:i.done,value:_u.call(this,o)}}async function Gv(l){let i=await l.read();for(;!i.done;){if(!i.value)continue;const o=i.value;switch(o[0]){case gd:{const s=o.indexOf(":"),c=Number(o.slice(1,s)),d=this.deferred[c];if(!d)throw new Error(`Deferred ID ${c} not found in stream`);const h=o.slice(s+1);let m;try{m=JSON.parse(h)}catch{throw new SyntaxError}const p=_u.call(this,m);d.resolve(p);break}case yd:{const s=o.indexOf(":"),c=Number(o.slice(1,s)),d=this.deferred[c];if(!d)throw new Error(`Deferred ID ${c} not found in stream`);const h=o.slice(s+1);let m;try{m=JSON.parse(h)}catch{throw new SyntaxError}const p=_u.call(this,m);d.reject(p);break}default:throw new SyntaxError}i=await l.read()}}/**
54
- * @remix-run/server-runtime v2.16.2
55
- *
56
- * Copyright (c) Remix Software Inc.
57
- *
58
- * This source code is licensed under the MIT license found in the
59
- * LICENSE.md file in the root directory of this source tree.
60
- *
61
- * @license MIT
62
- */const Sd=Symbol("SingleFetchRedirect");/**
63
- * @remix-run/react v2.16.2
64
- *
65
- * Copyright (c) Remix Software Inc.
66
- *
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE.md file in the root directory of this source tree.
69
- *
70
- * @license MIT
71
- */function Ge(){return Ge=Object.assign?Object.assign.bind():function(l){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(l[s]=o[s])}return l},Ge.apply(this,arguments)}/**
72
- * @remix-run/react v2.16.2
73
- *
74
- * Copyright (c) Remix Software Inc.
75
- *
76
- * This source code is licensed under the MIT license found in the
77
- * LICENSE.md file in the root directory of this source tree.
78
- *
79
- * @license MIT
80
- */function wn(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}/**
81
- * @remix-run/react v2.16.2
82
- *
83
- * Copyright (c) Remix Software Inc.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE.md file in the root directory of this source tree.
87
- *
88
- * @license MIT
89
- */async function Ed(l,i){if(l.id in i)return i[l.id];try{let o=await import(l.module);return i[l.id]=o,o}catch(o){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(o),window.__remixContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}/**
90
- * @remix-run/react v2.16.2
91
- *
92
- * Copyright (c) Remix Software Inc.
93
- *
94
- * This source code is licensed under the MIT license found in the
95
- * LICENSE.md file in the root directory of this source tree.
96
- *
97
- * @license MIT
98
- */function Zv(l,i,o){let s=l.map(d=>{var h;let m=i[d.route.id],p=o.routes[d.route.id];return[p.css?p.css.map(g=>({rel:"stylesheet",href:g})):[],(m==null||(h=m.links)===null||h===void 0?void 0:h.call(m))||[]]}).flat(2),c=ry(l,o);return kd(s,c)}async function xd(l,i){var o,s;if(!l.css&&!i.links||!iy())return;let c=[((o=l.css)===null||o===void 0?void 0:o.map(m=>({rel:"stylesheet",href:m})))??[],((s=i.links)===null||s===void 0?void 0:s.call(i))??[]].flat(1);if(c.length===0)return;let d=[];for(let m of c)!Bu(m)&&m.rel==="stylesheet"&&d.push({...m,rel:"preload",as:"style"});let h=d.filter(m=>(!m.media||window.matchMedia(m.media).matches)&&!document.querySelector(`link[rel="stylesheet"][href="${m.href}"]`));await Promise.all(h.map(qv))}async function qv(l){return new Promise(i=>{let o=document.createElement("link");Object.assign(o,l);function s(){document.head.contains(o)&&document.head.removeChild(o)}o.onload=()=>{s(),i()},o.onerror=()=>{s(),i()},document.head.appendChild(o)})}function Bu(l){return l!=null&&typeof l.page=="string"}function bv(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function ey(l,i,o){let s=await Promise.all(l.map(async c=>{let d=await Ed(i.routes[c.route.id],o);return d.links?d.links():[]}));return kd(s.flat(1).filter(bv).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Qf(l,i,o,s,c,d,h){let m=Cd(l),p=(v,S)=>o[S]?v.route.id!==o[S].route.id:!0,g=(v,S)=>{var D;return o[S].pathname!==v.pathname||((D=o[S].route.path)===null||D===void 0?void 0:D.endsWith("*"))&&o[S].params["*"]!==v.params["*"]};return h==="data"&&(d.v3_singleFetch||c.search!==m.search)?i.filter((v,S)=>{if(!s.routes[v.route.id].hasLoader)return!1;if(p(v,S)||g(v,S))return!0;let L=d.v3_singleFetch||c.search!==m.search;if(v.route.shouldRevalidate){var M;let z=v.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((M=o[0])===null||M===void 0?void 0:M.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:L});if(typeof z=="boolean")return z}return L}):i.filter((v,S)=>{let D=s.routes[v.route.id];return(h==="assets"||D.hasLoader)&&(p(v,S)||g(v,S))})}function ty(l,i,o){let s=Cd(l);return $u(i.filter(c=>o.routes[c.route.id].hasLoader&&!o.routes[c.route.id].hasClientLoader).map(c=>{let{pathname:d,search:h}=s,m=new URLSearchParams(h);return m.set("_data",c.route.id),`${d}?${m}`}))}function ny(l,i){return $u(l.map(o=>{let s=i.routes[o.route.id],c=[s.module];return s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function ry(l,i){return $u(l.map(o=>{let s=i.routes[o.route.id],c=[s.module];return s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function $u(l){return[...new Set(l)]}function ly(l){let i={},o=Object.keys(l).sort();for(let s of o)i[s]=l[s];return i}function kd(l,i){let o=new Set,s=new Set(i);return l.reduce((c,d)=>{if(i&&!Bu(d)&&d.as==="script"&&d.href&&s.has(d.href))return c;let m=JSON.stringify(ly(d));return o.has(m)||(o.add(m),c.push({key:m,link:d})),c},[])}function Cd(l){let i=Sn(l);return i.search===void 0&&(i.search=""),i}let ho;function iy(){if(ho!==void 0)return ho;let l=document.createElement("link");return ho=l.relList.supports("preload"),l=null,ho}/**
99
- * @remix-run/react v2.16.2
100
- *
101
- * Copyright (c) Remix Software Inc.
102
- *
103
- * This source code is licensed under the MIT license found in the
104
- * LICENSE.md file in the root directory of this source tree.
105
- *
106
- * @license MIT
107
- */const oy={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},ay=/[&><\u2028\u2029]/g;function po(l){return l.replace(ay,i=>oy[i])}function Yf(l){return{__html:l}}/**
108
- * @remix-run/react v2.16.2
109
- *
110
- * Copyright (c) Remix Software Inc.
111
- *
112
- * This source code is licensed under the MIT license found in the
113
- * LICENSE.md file in the root directory of this source tree.
114
- *
115
- * @license MIT
116
- */function uy(l){return l.headers.get("X-Remix-Catch")!=null}function sy(l){return l.headers.get("X-Remix-Error")!=null}function cy(l){return Vu(l)&&l.status>=400&&l.headers.get("X-Remix-Error")==null&&l.headers.get("X-Remix-Catch")==null&&l.headers.get("X-Remix-Response")==null}function fy(l){return l.headers.get("X-Remix-Redirect")!=null}function dy(l){var i;return!!((i=l.headers.get("Content-Type"))!==null&&i!==void 0&&i.match(/text\/remix-deferred/))}function Vu(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function hy(l){let i=l;return i&&typeof i=="object"&&typeof i.data=="object"&&typeof i.subscribe=="function"&&typeof i.cancel=="function"&&typeof i.resolveData=="function"}async function Rd(l,i,o=0){let s=new URL(l.url);s.searchParams.set("_data",i),o>0&&await new Promise(m=>setTimeout(m,5**o*10));let c=await _o(l),d=window.__remixRevalidation,h=await fetch(s.href,c).catch(m=>{if(typeof d=="number"&&d===window.__remixRevalidation&&(m==null?void 0:m.name)==="TypeError"&&o<3)return Rd(l,i,o+1);throw m});if(sy(h)){let m=await h.json(),p=new Error(m.message);return p.stack=m.stack,p}if(cy(h)){let m=await h.text(),p=new Error(m);return p.stack=void 0,p}return h}async function _o(l){let i={signal:l.signal};if(l.method!=="GET"){i.method=l.method;let o=l.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?(i.headers={"Content-Type":o},i.body=JSON.stringify(await l.json())):o&&/\btext\/plain\b/.test(o)?(i.headers={"Content-Type":o},i.body=await l.text()):o&&/\bapplication\/x-www-form-urlencoded\b/.test(o)?i.body=new URLSearchParams(await l.text()):i.body=await l.formData()}return i}const py="__deferred_promise:";async function my(l){if(!l)throw new Error("parseDeferredReadableStream requires stream argument");let i,o={};try{let s=vy(l),d=(await s.next()).value;if(!d)throw new Error("no critical data");let h=JSON.parse(d);if(typeof h=="object"&&h!==null)for(let[m,p]of Object.entries(h))typeof p!="string"||!p.startsWith(py)||(i=i||{},i[m]=new Promise((g,k)=>{o[m]={resolve:v=>{g(v),delete o[m]},reject:v=>{k(v),delete o[m]}}}));return(async()=>{try{for await(let m of s){let[p,...g]=m.split(":"),k=g.join(":"),v=JSON.parse(k);if(p==="data")for(let[S,D]of Object.entries(v))o[S]&&o[S].resolve(D);else if(p==="error")for(let[S,D]of Object.entries(v)){let L=new Error(D.message);L.stack=D.stack,o[S]&&o[S].reject(L)}}for(let[m,p]of Object.entries(o))p.reject(new xo(`Deferred ${m} will never be resolved`))}catch(m){for(let p of Object.values(o))p.reject(m)}})(),new bp({...h,...i})}catch(s){for(let c of Object.values(o))c.reject(s);throw s}}async function*vy(l){let i=l.getReader(),o=[],s=[],c=!1,d=new TextEncoder,h=new TextDecoder,m=async()=>{if(s.length>0)return s.shift();for(;!c&&s.length===0;){let g=await i.read();if(g.done){c=!0;break}o.push(g.value);try{let v=h.decode(Xf(...o)).split(`
117
-
118
- `);if(v.length>=2&&(s.push(...v.slice(0,-1)),o=[d.encode(v.slice(-1).join(`
119
-
120
- `))]),s.length>0)break}catch{continue}}return s.length>0||o.length>0&&(s=h.decode(Xf(...o)).split(`
121
-
122
- `).filter(k=>k),o=[]),s.shift()},p=await m();for(;p;)yield p,p=await m()}function Xf(...l){let i=new Uint8Array(l.reduce((s,c)=>s+c.length,0)),o=0;for(let s of l)i.set(s,o),o+=s.length;return i}/**
123
- * @remix-run/react v2.16.2
124
- *
125
- * Copyright (c) Remix Software Inc.
126
- *
127
- * This source code is licensed under the MIT license found in the
128
- * LICENSE.md file in the root directory of this source tree.
129
- *
130
- * @license MIT
131
- */function by(l,i,o){return async({request:s,matches:c,fetcherKey:d})=>s.method!=="GET"?yy(s,c):d?wy(s,c):gy(l,i,o(),s,c)}async function yy(l,i){let o=i.find(d=>d.shouldLoad);wn(o,"No action match found");let s,c=await o.resolve(async d=>await d(async()=>{let m=Lo(l.url),p=await _o(l),{data:g,status:k}=await Wu(m,p);return s=k,Lu(g,o.route.id)}));return Vu(c.result)||gr(c.result)?{[o.route.id]:c}:{[o.route.id]:{type:c.type,result:qp(c.result,s)}}}async function gy(l,i,o,s,c){let d=new Set,h=!1,m=c.map(()=>Jf()),p=Promise.all(m.map(L=>L.promise)),g=Jf(),k=_d(Lo(s.url)),v=await _o(s),S={},D=Promise.all(c.map(async(L,M)=>L.resolve(async z=>{if(m[M].resolve(),!L.shouldLoad){var K;if(!o.state.initialized)return;if(L.route.id in o.state.loaderData&&l.routes[L.route.id]&&(K=i[L.route.id])!==null&&K!==void 0&&K.shouldRevalidate){l.routes[L.route.id].hasLoader&&(h=!0);return}}if(l.routes[L.route.id].hasClientLoader){l.routes[L.route.id].hasLoader&&(h=!0);try{let U=await Pd(z,k,v,L.route.id);S[L.route.id]={type:"data",result:U}}catch(U){S[L.route.id]={type:"error",result:U}}return}l.routes[L.route.id].hasLoader&&d.add(L.route.id);try{let U=await z(async()=>{let Q=await g.promise;return Ld(Q,L.route.id)});S[L.route.id]={type:"data",result:U}}catch(U){S[L.route.id]={type:"error",result:U}}})));if(await p,(!o.state.initialized||d.size===0)&&!window.__remixHdrActive)g.resolve({});else try{h&&d.size>0&&k.searchParams.set("_routes",c.filter(M=>d.has(M.route.id)).map(M=>M.route.id).join(","));let L=await Wu(k,v);g.resolve(L.data)}catch(L){g.reject(L)}return await D,S}async function wy(l,i){let o=i.find(c=>c.shouldLoad);wn(o,"No fetcher match found");let s=await o.resolve(async c=>{let d=_d(Lo(l.url)),h=await _o(l);return Pd(c,d,h,o.route.id)});return{[o.route.id]:s}}function Pd(l,i,o,s){return l(async()=>{let c=new URL(i);c.searchParams.set("_routes",s);let{data:d}=await Wu(c,o);return Ld(d,s)})}function _d(l){let i=l.searchParams.getAll("index");l.searchParams.delete("index");let o=[];for(let s of i)s&&o.push(s);for(let s of o)l.searchParams.append("index",s);return l}function Lo(l){let i=typeof l=="string"?new URL(l,window.location.origin):l;return i.pathname==="/"?i.pathname="_root.data":i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}async function Wu(l,i){let o=await fetch(l,i);if(new Set([100,101,204,205]).has(o.status))return!i.method||i.method==="GET"?{status:o.status,data:{}}:{status:o.status,data:{data:null}};wn(o.body,"No response body to decode");try{let c=await Sy(o.body,window);return{status:o.status,data:c.value}}catch(c){throw console.error(c),new Error(`Unable to decode turbo-stream response from URL: ${l.toString()}`)}}function Sy(l,i){return Xv(l,{plugins:[(o,...s)=>{if(o==="SanitizedError"){let[c,d,h]=s,m=Error;c&&c in i&&typeof i[c]=="function"&&(m=i[c]);let p=new m(d);return p.stack=h,{value:p}}if(o==="ErrorResponse"){let[c,d,h]=s;return{value:new yr(d,h,c)}}if(o==="SingleFetchRedirect")return{value:{[Sd]:s[0]}}},(o,s)=>{if(o==="SingleFetchFallback")return{value:void 0};if(o==="SingleFetchClassInstance")return{value:s}}]})}function Ld(l,i){let o=l[Sd];return o?Lu(o,i):l[i]!==void 0?Lu(l[i],i):null}function Lu(l,i){if("error"in l)throw l.error;if("redirect"in l){let o={};throw l.revalidate&&(o["X-Remix-Revalidate"]="yes"),l.reload&&(o["X-Remix-Reload-Document"]="yes"),l.replace&&(o["X-Remix-Replace"]="yes"),rd(l.redirect,{status:l.status,headers:o})}else{if("data"in l)return l.data;throw new Error(`No response found for routeId "${i}"`)}}function Jf(){let l,i,o=new Promise((s,c)=>{l=async d=>{s(d);try{await o}catch{}},i=async d=>{c(d);try{await o}catch{}}});return{promise:o,resolve:l,reject:i}}/**
132
- * @remix-run/react v2.16.2
133
- *
134
- * Copyright (c) Remix Software Inc.
135
- *
136
- * This source code is licensed under the MIT license found in the
137
- * LICENSE.md file in the root directory of this source tree.
138
- *
139
- * @license MIT
140
- */class eg extends w.Component{constructor(i){super(i),this.state={error:i.error||null,location:i.location}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location?{error:i.error||null,location:i.location}:{error:i.error||o.error,location:o.location}}render(){return this.state.error?w.createElement(Td,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}}function Td({error:l,isOutsideRemixApp:i}){console.error(l);let o=w.createElement("script",{dangerouslySetInnerHTML:{__html:`
141
- console.log(
142
- "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."
143
- );
144
- `}});if(gr(l))return w.createElement(Tu,{title:"Unhandled Thrown Response!"},w.createElement("h1",{style:{fontSize:"24px"}},l.status," ",l.statusText),o);let s;if(l instanceof Error)s=l;else{let c=l==null?"Unknown Error":typeof l=="object"&&"toString"in l?l.toString():JSON.stringify(l);s=new Error(c)}return w.createElement(Tu,{title:"Application Error!",isOutsideRemixApp:i},w.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),w.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},s.stack),o)}function Tu({title:l,renderScripts:i,isOutsideRemixApp:o,children:s}){var c;let{routeModules:d}=qr();return(c=d.root)!==null&&c!==void 0&&c.Layout&&!o?s:w.createElement("html",{lang:"en"},w.createElement("head",null,w.createElement("meta",{charSet:"utf-8"}),w.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),w.createElement("title",null,l)),w.createElement("body",null,w.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},s,i?w.createElement(By,null):null)))}/**
145
- * @remix-run/react v2.16.2
146
- *
147
- * Copyright (c) Remix Software Inc.
148
- *
149
- * This source code is licensed under the MIT license found in the
150
- * LICENSE.md file in the root directory of this source tree.
151
- *
152
- * @license MIT
153
- */function Ey(){return w.createElement(Tu,{title:"Loading...",renderScripts:!0},w.createElement("script",{dangerouslySetInnerHTML:{__html:`
154
- console.log(
155
- "💿 Hey developer 👋. You can provide a way better UX than this " +
156
- "when your app is loading JS modules and/or running \`clientLoader\` " +
157
- "functions. Check out https://remix.run/route/hydrate-fallback " +
158
- "for more information."
159
- );
160
- `}}))}/**
161
- * @remix-run/react v2.16.2
162
- *
163
- * Copyright (c) Remix Software Inc.
164
- *
165
- * This source code is licensed under the MIT license found in the
166
- * LICENSE.md file in the root directory of this source tree.
167
- *
168
- * @license MIT
169
- */function Dd(l){let i={};return Object.values(l).forEach(o=>{let s=o.parentId||"";i[s]||(i[s]=[]),i[s].push(o)}),i}function xy(l,i,o){let s=Nd(i),c=i.HydrateFallback&&(!o||l.id==="root")?i.HydrateFallback:l.id==="root"?Ey:void 0,d=i.ErrorBoundary?i.ErrorBoundary:l.id==="root"?()=>w.createElement(Td,{error:pd()}):void 0;return l.id==="root"&&i.Layout?{...s?{element:w.createElement(i.Layout,null,w.createElement(s,null))}:{Component:s},...d?{errorElement:w.createElement(i.Layout,null,w.createElement(d,null))}:{ErrorBoundary:d},...c?{hydrateFallbackElement:w.createElement(i.Layout,null,w.createElement(c,null))}:{HydrateFallback:c}}:{Component:s,ErrorBoundary:d,HydrateFallback:c}}function tg(l,i,o,s,c,d){return Ku(i,o,s,c,d,"",Dd(i),l)}function mo(l,i,o){if(o){let h=`You cannot call ${l==="action"?"serverAction()":"serverLoader()"} in SPA Mode (routeId: "${i.id}")`;throw console.error(h),new yr(400,"Bad Request",new Error(h),!0)}let c=`You are trying to call ${l==="action"?"serverAction()":"serverLoader()"} on a route that does not have a server ${l} (routeId: "${i.id}")`;if(l==="loader"&&!i.hasLoader||l==="action"&&!i.hasAction)throw console.error(c),new yr(400,"Bad Request",new Error(c),!0)}function Eu(l,i){let o=l==="clientAction"?"a":"an",s=`Route "${i}" does not have ${o} ${l}, but you are trying to submit to it. To fix this, please add ${o} \`${l}\` function to the route`;throw console.error(s),new yr(405,"Method Not Allowed",new Error(s),!0)}function Ku(l,i,o,s,c,d="",h=Dd(l),m){return(h[d]||[]).map(p=>{let g=i[p.id];async function k(Q,A,q){if(typeof q=="function")return await q();let Y=await Ry(Q,p);return A?Py(Y):Y}function v(Q,A,q){return p.hasLoader?k(Q,A,q):Promise.resolve(null)}function S(Q,A,q){if(!p.hasAction)throw Eu("action",p.id);return k(Q,A,q)}async function D(Q){let A=i[p.id],q=A?xd(p,A):Promise.resolve();try{return Q()}finally{await q}}let L={id:p.id,index:p.index,path:p.path};if(g){var M,z,K;Object.assign(L,{...L,...xy(p,g,c),handle:g.handle,shouldRevalidate:Gf(s,g,p.id,m)});let Q=o==null||(M=o.loaderData)===null||M===void 0?void 0:M[p.id],A=o==null||(z=o.errors)===null||z===void 0?void 0:z[p.id],q=m==null&&(((K=g.clientLoader)===null||K===void 0?void 0:K.hydrate)===!0||!p.hasLoader);L.loader=async({request:Y,params:P},W)=>{try{return await D(async()=>(wn(g,"No `routeModule` available for critical-route loader"),g.clientLoader?g.clientLoader({request:Y,params:P,async serverLoader(){if(mo("loader",p,c),q){if(Q!==void 0)return Q;if(A!==void 0)throw A;return null}return v(Y,!0,W)}}):c?null:v(Y,!1,W)))}finally{q=!1}},L.loader.hydrate=Ly(p,g,c),L.action=({request:Y,params:P},W)=>D(async()=>{if(wn(g,"No `routeModule` available for critical-route action"),!g.clientAction){if(c)throw Eu("clientAction",p.id);return S(Y,!1,W)}return g.clientAction({request:Y,params:P,async serverAction(){return mo("action",p,c),S(Y,!0,W)}})})}else p.hasClientLoader||(L.loader=({request:Q},A)=>D(()=>c?Promise.resolve(null):v(Q,!1,A))),p.hasClientAction||(L.action=({request:Q},A)=>D(()=>{if(c)throw Eu("clientAction",p.id);return S(Q,!1,A)})),L.lazy=async()=>{let Q=await Cy(p,i),A={...Q};if(Q.clientLoader){let q=Q.clientLoader;A.loader=(Y,P)=>q({...Y,async serverLoader(){return mo("loader",p,c),v(Y.request,!0,P)}})}if(Q.clientAction){let q=Q.clientAction;A.action=(Y,P)=>q({...Y,async serverAction(){return mo("action",p,c),S(Y.request,!0,P)}})}return{...A.loader?{loader:A.loader}:{},...A.action?{action:A.action}:{},hasErrorBoundary:A.hasErrorBoundary,shouldRevalidate:Gf(s,A,p.id,m),handle:A.handle,Component:A.Component,ErrorBoundary:A.ErrorBoundary}};let U=Ku(l,i,o,s,c,p.id,h,m);return U.length>0&&(L.children=U),L})}function Gf(l,i,o,s){if(s)return ky(o,i.shouldRevalidate,s);if(l.v3_singleFetch&&i.shouldRevalidate){let c=i.shouldRevalidate;return d=>c({...d,defaultShouldRevalidate:!0})}return i.shouldRevalidate}function ky(l,i,o){let s=!1;return c=>s?i?i(c):c.defaultShouldRevalidate:(s=!0,o.has(l))}async function Cy(l,i){let o=await Ed(l,i);return await xd(l,o),{Component:Nd(o),ErrorBoundary:o.ErrorBoundary,clientAction:o.clientAction,clientLoader:o.clientLoader,handle:o.handle,links:o.links,meta:o.meta,shouldRevalidate:o.shouldRevalidate}}async function Ry(l,i){let o=await Rd(l,i.id);if(o instanceof Error)throw o;if(fy(o))throw _y(o);if(uy(o))throw o;return dy(o)&&o.body?await my(o.body):o}function Py(l){if(hy(l))return l.data;if(Vu(l)){let i=l.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?l.json():l.text()}return l}function _y(l){let i=parseInt(l.headers.get("X-Remix-Status"),10)||302,o=l.headers.get("X-Remix-Redirect"),s={},c=l.headers.get("X-Remix-Revalidate");c&&(s["X-Remix-Revalidate"]=c);let d=l.headers.get("X-Remix-Reload-Document");d&&(s["X-Remix-Reload-Document"]=d);let h=l.headers.get("X-Remix-Replace");return h&&(s["X-Remix-Replace"]=h),rd(o,{status:i,headers:s})}function Nd(l){if(l.default==null)return;if(!(typeof l.default=="object"&&Object.keys(l.default).length===0))return l.default}function Ly(l,i,o){return o&&l.id!=="root"||i.clientLoader!=null&&(i.clientLoader.hydrate===!0||l.hasLoader!==!0)}/**
170
- * @remix-run/react v2.16.2
171
- *
172
- * Copyright (c) Remix Software Inc.
173
- *
174
- * This source code is licensed under the MIT license found in the
175
- * LICENSE.md file in the root directory of this source tree.
176
- *
177
- * @license MIT
178
- */const go=new Set,Ty=1e3,Ro=new Set,Dy=7680;function Qu(l,i){return l.v3_lazyRouteDiscovery===!0&&!i}function Ny(l,i){let o=new Set(i.state.matches.map(h=>h.route.id)),s=i.state.location.pathname.split("/").filter(Boolean),c=["/"];for(s.pop();s.length>0;)c.push(`/${s.join("/")}`),s.pop();c.forEach(h=>{let m=gn(i.routes,h,i.basename);m&&m.forEach(p=>o.add(p.route.id))});let d=[...o].reduce((h,m)=>Object.assign(h,{[m]:l.routes[m]}),{});return{...l,routes:d}}function ng(l,i,o,s,c){if(Qu(o,s))return async({path:d,patch:h,signal:m,fetcherKey:p})=>{Ro.has(d)||await Od([d],p?window.location.href:d,l,i,o,s,c,h,m)}}function rg(l,i,o,s,c){w.useEffect(()=>{var d;if(!Qu(s,c)||((d=navigator.connection)===null||d===void 0?void 0:d.saveData)===!0)return;function h(v){let S=v.tagName==="FORM"?v.getAttribute("action"):v.getAttribute("href");if(!S)return;let D=new URL(S,window.location.origin);Ro.has(D.pathname)||go.add(D.pathname)}async function m(){let v=Array.from(go.keys()).filter(S=>Ro.has(S)?(go.delete(S),!1):!0);if(v.length!==0)try{await Od(v,null,i,o,s,c,l.basename,l.patchRoutes)}catch(S){console.error("Failed to fetch manifest patches",S)}}document.body.querySelectorAll("a[data-discover], form[data-discover]").forEach(v=>h(v)),m();let p=My(m,100);function g(v){return v.nodeType===Node.ELEMENT_NODE}let k=new MutationObserver(v=>{let S=new Set;v.forEach(D=>{[D.target,...D.addedNodes].forEach(L=>{g(L)&&((L.tagName==="A"&&L.getAttribute("data-discover")||L.tagName==="FORM"&&L.getAttribute("data-discover"))&&S.add(L),L.tagName!=="A"&&L.querySelectorAll("a[data-discover], form[data-discover]").forEach(M=>S.add(M)))})}),S.forEach(D=>h(D)),p()});return k.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>k.disconnect()},[s,c,i,o,l])}const xu="remix-manifest-version";async function Od(l,i,o,s,c,d,h,m,p){let g=`${h??"/"}/__manifest`.replace(/\/+/g,"/"),k=new URL(g,window.location.origin);if(l.sort().forEach(M=>k.searchParams.append("p",M)),k.searchParams.set("version",o.version),k.toString().length>Dy){go.clear();return}let v;try{let M=await fetch(k,{signal:p});if(M.ok){if(M.status===204&&M.headers.has("X-Remix-Reload-Document")){if(!i){console.warn("Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.");return}if(sessionStorage.getItem(xu)===o.version){console.error("Unable to discover routes due to manifest version mismatch.");return}throw sessionStorage.setItem(xu,o.version),window.location.href=i,new Error("Detected manifest version mismatch, reloading...")}else if(M.status>=400)throw new Error(await M.text())}else throw new Error(`${M.status} ${M.statusText}`);sessionStorage.removeItem(xu),v=await M.json()}catch(M){if(p!=null&&p.aborted)return;throw M}let S=new Set(Object.keys(o.routes)),D=Object.values(v).reduce((M,z)=>S.has(z.id)?M:Object.assign(M,{[z.id]:z}),{});Object.assign(o.routes,D),l.forEach(M=>Oy(M,Ro));let L=new Set;Object.values(D).forEach(M=>{(!M.parentId||!D[M.parentId])&&L.add(M.parentId)}),L.forEach(M=>m(M||null,Ku(D,s,null,c,d,M)))}function Oy(l,i){if(i.size>=Ty){let o=i.values().next().value;typeof o=="string"&&i.delete(o)}i.add(l)}function My(l,i){let o;return(...s)=>{window.clearTimeout(o),o=window.setTimeout(()=>l(...s),i)}}function Md(){let l=w.useContext(Zr);return wn(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function To(){let l=w.useContext(Yl);return wn(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}const zd=w.createContext(void 0);zd.displayName="Remix";function qr(){let l=w.useContext(zd);return wn(l,"You must render this element inside a <Remix> element"),l}function Fd(l,i){let[o,s]=w.useState(!1),[c,d]=w.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:g,onTouchStart:k}=i,v=w.useRef(null);w.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let L=z=>{z.forEach(K=>{d(K.isIntersecting)})},M=new IntersectionObserver(L,{threshold:.5});return v.current&&M.observe(v.current),()=>{M.disconnect()}}},[l]);let S=()=>{l==="intent"&&s(!0)},D=()=>{l==="intent"&&(s(!1),d(!1))};return w.useEffect(()=>{if(o){let L=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(L)}}},[o]),[c,v,{onFocus:Vl(h,S),onBlur:Vl(m,D),onMouseEnter:Vl(p,S),onMouseLeave:Vl(g,D),onTouchStart:Vl(k,S)}]}const Yu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Xu(l,i,o){return l==="render"&&!i&&!o?"true":void 0}let zy=w.forwardRef(({to:l,prefetch:i="none",discover:o="render",...s},c)=>{let d=typeof l=="string"&&Yu.test(l),h=ju(l),[m,p,g]=Fd(i,s);return w.createElement(w.Fragment,null,w.createElement(Sv,Ge({},s,g,{ref:jd(c,p),to:l,"data-discover":Xu(o,d,s.reloadDocument)})),m&&!d?w.createElement(Gu,{page:h}):null)});zy.displayName="NavLink";let Fy=w.forwardRef(({to:l,prefetch:i="none",discover:o="render",...s},c)=>{let d=typeof l=="string"&&Yu.test(l),h=ju(l),[m,p,g]=Fd(i,s);return w.createElement(w.Fragment,null,w.createElement(vd,Ge({},s,g,{ref:jd(c,p),to:l,"data-discover":Xu(o,d,s.reloadDocument)})),m&&!d?w.createElement(Gu,{page:h}):null)});Fy.displayName="Link";let jy=w.forwardRef(({discover:l="render",...i},o)=>{let s=typeof i.action=="string"&&Yu.test(i.action);return w.createElement(Ev,Ge({},i,{ref:o,"data-discover":Xu(l,s,i.reloadDocument)}))});jy.displayName="Form";function Vl(l,i){return o=>{l&&l(o),o.defaultPrevented||i(o)}}function Ju(l,i,o){if(o&&!wo)return[l[0]];if(i){let s=l.findIndex(c=>i[c.route.id]!==void 0);return l.slice(0,s+1)}return l}function lg(){let{isSpaMode:l,manifest:i,routeModules:o,criticalCss:s}=qr(),{errors:c,matches:d}=To(),h=Ju(d,c,l),m=w.useMemo(()=>Zv(h,o,i),[h,o,i]);return w.createElement(w.Fragment,null,s?w.createElement("style",{dangerouslySetInnerHTML:{__html:s}}):null,m.map(({key:p,link:g})=>Bu(g)?w.createElement(Gu,Ge({key:p},g)):w.createElement("link",Ge({key:p},g))))}function Gu({page:l,...i}){let{router:o}=Md(),s=w.useMemo(()=>gn(o.routes,l,o.basename),[o.routes,l,o.basename]);return s?w.createElement(Uy,Ge({page:l,matches:s},i)):(console.warn(`Tried to prefetch ${l} but no routes matched.`),null)}function Iy(l){let{manifest:i,routeModules:o}=qr(),[s,c]=w.useState([]);return w.useEffect(()=>{let d=!1;return ey(l,i,o).then(h=>{d||c(h)}),()=>{d=!0}},[l,i,o]),s}function Uy({page:l,matches:i,...o}){let s=xn(),{future:c,manifest:d,routeModules:h}=qr(),{loaderData:m,matches:p}=To(),g=w.useMemo(()=>Qf(l,i,p,d,s,c,"data"),[l,i,p,d,s,c]),k=w.useMemo(()=>{if(!c.v3_singleFetch)return ty(l,g,d);if(l===s.pathname+s.search+s.hash)return[];let L=new Set,M=!1;if(i.forEach(K=>{var U;d.routes[K.route.id].hasLoader&&(!g.some(Q=>Q.route.id===K.route.id)&&K.route.id in m&&(U=h[K.route.id])!==null&&U!==void 0&&U.shouldRevalidate||d.routes[K.route.id].hasClientLoader?M=!0:L.add(K.route.id))}),L.size===0)return[];let z=Lo(l);return M&&L.size>0&&z.searchParams.set("_routes",i.filter(K=>L.has(K.route.id)).map(K=>K.route.id).join(",")),[z.pathname+z.search]},[c.v3_singleFetch,m,s,d,g,i,l,h]),v=w.useMemo(()=>Qf(l,i,p,d,s,c,"assets"),[l,i,p,d,s,c]),S=w.useMemo(()=>ny(v,d),[v,d]),D=Iy(v);return w.createElement(w.Fragment,null,k.map(L=>w.createElement("link",Ge({key:L,rel:"prefetch",as:"fetch",href:L},o))),S.map(L=>w.createElement("link",Ge({key:L,rel:"modulepreload",href:L},o))),D.map(({key:L,link:M})=>w.createElement("link",Ge({key:L},M))))}function ig(){let{isSpaMode:l,routeModules:i}=qr(),{errors:o,matches:s,loaderData:c}=To(),d=xn(),h=Ju(s,o,l),m=null;o&&(m=o[h[h.length-1].route.id]);let p=[],g=null,k=[];for(let v=0;v<h.length;v++){let S=h[v],D=S.route.id,L=c[D],M=S.params,z=i[D],K=[],U={id:D,data:L,meta:[],params:S.params,pathname:S.pathname,handle:S.route.handle,error:m};if(k[v]=U,z!=null&&z.meta?K=typeof z.meta=="function"?z.meta({data:L,params:M,location:d,matches:k,error:m}):Array.isArray(z.meta)?[...z.meta]:z.meta:g&&(K=[...g]),K=K||[],!Array.isArray(K))throw new Error("The route at "+S.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
179
-
180
- To reference the meta function API, see https://remix.run/route/meta`);U.meta=K,k[v]=U,p=[...K],g=p}return w.createElement(w.Fragment,null,p.flat().map(v=>{if(!v)return null;if("tagName"in v){let{tagName:S,...D}=v;if(!Ay(S))return console.warn(`A meta object uses an invalid tagName: ${S}. Expected either 'link' or 'meta'`),null;let L=S;return w.createElement(L,Ge({key:JSON.stringify(D)},D))}if("title"in v)return w.createElement("title",{key:"title"},String(v.title));if("charset"in v&&(v.charSet??(v.charSet=v.charset),delete v.charset),"charSet"in v&&v.charSet!=null)return typeof v.charSet=="string"?w.createElement("meta",{key:"charSet",charSet:v.charSet}):null;if("script:ld+json"in v)try{let S=JSON.stringify(v["script:ld+json"]);return w.createElement("script",{key:`script:ld+json:${S}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:S}})}catch{return null}return w.createElement("meta",Ge({key:JSON.stringify(v)},v))}))}function Ay(l){return typeof l=="string"&&/^(meta|link)$/.test(l)}function Hy(l){return w.createElement(Jm,l)}let wo=!1;function By(l){let{manifest:i,serverHandoffString:o,abortDelay:s,serializeError:c,isSpaMode:d,future:h,renderMeta:m}=qr(),{router:p,static:g,staticContext:k}=Md(),{matches:v}=To(),S=Qu(h,d);m&&(m.didRenderScripts=!0);let D=Ju(v,null,d);w.useEffect(()=>{wo=!0},[]);let L=(Y,P)=>{let W;return c&&P instanceof Error?W=c(P):W=P,`${JSON.stringify(Y)}:__remixContext.p(!1, ${po(JSON.stringify(W))})`},M=(Y,P,W)=>{let fe;try{fe=JSON.stringify(W)}catch(se){return L(P,se)}return`${JSON.stringify(P)}:__remixContext.p(${po(fe)})`},z=(Y,P,W)=>{let fe;return c&&W instanceof Error?fe=c(W):fe=W,`__remixContext.r(${JSON.stringify(Y)}, ${JSON.stringify(P)}, !1, ${po(JSON.stringify(fe))})`},K=(Y,P,W)=>{let fe;try{fe=JSON.stringify(W)}catch(se){return z(Y,P,se)}return`__remixContext.r(${JSON.stringify(Y)}, ${JSON.stringify(P)}, ${po(fe)})`},U=[],Q=w.useMemo(()=>{var Y;let P=h.v3_singleFetch?"window.__remixContext.stream = new ReadableStream({start(controller){window.__remixContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());":"",W=k?`window.__remixContext = ${o};${P}`:" ",fe=h.v3_singleFetch||k==null?void 0:k.activeDeferreds;W+=fe?["__remixContext.p = function(v,e,p,x) {"," if (typeof e !== 'undefined') {",` x=new Error("Unexpected Server Error");
181
- x.stack=undefined;`," p=Promise.reject(x);"," } else {"," p=Promise.resolve(v);"," }"," return p;","};","__remixContext.n = function(i,k) {"," __remixContext.t = __remixContext.t || {};"," __remixContext.t[i] = __remixContext.t[i] || {};"," let p = new Promise((r, e) => {__remixContext.t[i][k] = {r:(v)=>{r(v);},e:(v)=>{e(v);}};});",typeof s=="number"?`setTimeout(() => {if(typeof p._error !== "undefined" || typeof p._data !== "undefined"){return;} __remixContext.t[i][k].e(new Error("Server timeout."))}, ${s});`:""," return p;","};","__remixContext.r = function(i,k,v,e,p,x) {"," p = __remixContext.t[i][k];"," if (typeof e !== 'undefined') {",` x=new Error("Unexpected Server Error");
182
- x.stack=undefined;`," p.e(x);"," } else {"," p.r(v);"," }","};"].join(`
183
- `)+Object.entries(fe).map(([ge,me])=>{let Ne=new Set(me.pendingKeys),Ue=me.deferredKeys.map(je=>{if(Ne.has(je))return U.push(w.createElement(Zf,{key:`${ge} | ${je}`,deferredData:me,routeId:ge,dataKey:je,scriptProps:l,serializeData:K,serializeError:z})),`${JSON.stringify(je)}:__remixContext.n(${JSON.stringify(ge)}, ${JSON.stringify(je)})`;{let $e=me.data[je];return typeof $e._error<"u"?L(je,$e._error):M(ge,je,$e._data)}}).join(`,
184
- `);return`Object.assign(__remixContext.state.loaderData[${JSON.stringify(ge)}], {${Ue}});`}).join(`
185
- `)+(U.length>0?`__remixContext.a=${U.length};`:""):"";let se=g?`${(Y=i.hmr)!==null&&Y!==void 0&&Y.runtime?`import ${JSON.stringify(i.hmr.runtime)};`:""}${S?"":`import ${JSON.stringify(i.url)}`};
186
- ${D.map((ge,me)=>`import * as route${me} from ${JSON.stringify(i.routes[ge.route.id].module)};`).join(`
187
- `)}
188
- ${S?`window.__remixManifest = ${JSON.stringify(Ny(i,p),null,2)};`:""}
189
- window.__remixRouteModules = {${D.map((ge,me)=>`${JSON.stringify(ge.route.id)}:route${me}`).join(",")}};
190
-
191
- import(${JSON.stringify(i.entry.module)});`:" ";return w.createElement(w.Fragment,null,w.createElement("script",Ge({},l,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:Yf(W),type:void 0})),w.createElement("script",Ge({},l,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:Yf(se),type:"module",async:!0})))},[]);if(!g&&typeof __remixContext=="object"&&__remixContext.a)for(let Y=0;Y<__remixContext.a;Y++)U.push(w.createElement(Zf,{key:Y,scriptProps:l,serializeData:K,serializeError:z}));let A=D.map(Y=>{let P=i.routes[Y.route.id];return(P.imports||[]).concat([P.module])}).flat(1),q=wo?[]:i.entry.imports.concat(A);return wo?null:w.createElement(w.Fragment,null,S?null:w.createElement("link",{rel:"modulepreload",href:i.url,crossOrigin:l.crossOrigin}),w.createElement("link",{rel:"modulepreload",href:i.entry.module,crossOrigin:l.crossOrigin}),Vy(q).map(Y=>w.createElement("link",{key:Y,rel:"modulepreload",href:Y,crossOrigin:l.crossOrigin})),Q,U)}function Zf({dataKey:l,deferredData:i,routeId:o,scriptProps:s,serializeData:c,serializeError:d}){return typeof document>"u"&&i&&l&&o&&wn(i.pendingKeys.includes(l),`Deferred data for route ${o} with key ${l} was not pending but tried to render a script for it.`),w.createElement(w.Suspense,{fallback:typeof document>"u"&&i&&l&&o?null:w.createElement("script",Ge({},s,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}}))},typeof document>"u"&&i&&l&&o?w.createElement(Hy,{resolve:i.data[l],errorElement:w.createElement($y,{dataKey:l,routeId:o,scriptProps:s,serializeError:d}),children:h=>w.createElement("script",Ge({},s,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:c(o,l,h)}}))}):w.createElement("script",Ge({},s,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}})))}function $y({dataKey:l,routeId:i,scriptProps:o,serializeError:s}){let c=Wm();return w.createElement("script",Ge({},o,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:s(i,l,c)}}))}function Vy(l){return[...new Set(l)]}function jd(...l){return i=>{l.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}export{yr as E,lg as L,ig as M,Xy as O,zd as R,By as S,Ge as _,Yy as a,by as b,Ku as c,Sy as d,Qy as e,tg as f,ng as g,eg as h,wn as i,Zy as j,Jy as k,qr as l,gn as m,xn as n,$m as o,qy as p,_p as r,Ly as s,rg as u};