kiki-agent-lite 0.3.1 → 0.3.2

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.
Files changed (228) hide show
  1. package/README.md +13 -10
  2. package/dist/docs/en/configuration/config-files.md +63 -20
  3. package/dist/docs/en/configuration/data-locations.md +12 -4
  4. package/dist/docs/en/configuration/env-vars.md +4 -6
  5. package/dist/docs/en/configuration/overrides.md +13 -14
  6. package/dist/docs/en/configuration/providers.md +8 -6
  7. package/dist/docs/en/customization/agent-profiles.md +33 -38
  8. package/dist/docs/en/customization/agents.md +129 -107
  9. package/dist/docs/en/customization/hooks.md +41 -48
  10. package/dist/docs/en/customization/personas.md +19 -21
  11. package/dist/docs/en/customization/plugins.md +180 -156
  12. package/dist/docs/en/customization/prompt-fields.md +10 -6
  13. package/dist/docs/en/customization/skills.md +11 -13
  14. package/dist/docs/en/customization/skins.md +23 -27
  15. package/dist/docs/en/customization/themes.md +15 -15
  16. package/dist/docs/en/features/agents.md +85 -0
  17. package/dist/docs/en/features/daily.md +37 -7
  18. package/dist/docs/en/features/ecosystem.md +3 -1
  19. package/dist/docs/en/features/extend.md +7 -1
  20. package/dist/docs/en/features/freedom.md +4 -0
  21. package/dist/docs/en/features/index.md +6 -5
  22. package/dist/docs/en/features/long-work.md +23 -5
  23. package/dist/docs/en/features/look.md +1 -1
  24. package/dist/docs/en/features/people.md +10 -2
  25. package/dist/docs/en/features/spaces.md +16 -4
  26. package/dist/docs/en/features/workbench.md +11 -3
  27. package/dist/docs/en/getting-started/desktop-app.md +44 -29
  28. package/dist/docs/en/getting-started/first-launch.md +32 -21
  29. package/dist/docs/en/getting-started/installation.md +27 -12
  30. package/dist/docs/en/getting-started/use-cases.md +35 -35
  31. package/dist/docs/en/guides/goals.md +9 -7
  32. package/dist/docs/en/guides/interaction.md +26 -26
  33. package/dist/docs/en/guides/interface.md +18 -14
  34. package/dist/docs/en/guides/memory.md +43 -14
  35. package/dist/docs/en/guides/sessions.md +32 -26
  36. package/dist/docs/en/guides/settings.md +60 -29
  37. package/dist/docs/en/index.md +8 -2
  38. package/dist/docs/en/reference/command.md +8 -4
  39. package/dist/docs/en/reference/keyboard.md +18 -4
  40. package/dist/docs/en/reference/model-vocabulary.md +6 -8
  41. package/dist/docs/en/reference/slash-commands.md +4 -4
  42. package/dist/docs/en/reference/tools.md +92 -15
  43. package/dist/docs/en/release-notes/changelog.md +1 -9
  44. package/dist/docs/en/server/acp.md +1 -1
  45. package/dist/docs/en/server/ide.md +1 -1
  46. package/dist/docs/en/server/local-server.md +5 -5
  47. package/dist/docs/en/server/mcp.md +2 -2
  48. package/dist/docs/en/server/rest-api.md +79 -5
  49. package/dist/docs/en/server/sdk.md +2 -2
  50. package/dist/docs/zh/configuration/config-files.md +56 -15
  51. package/dist/docs/zh/configuration/data-locations.md +12 -4
  52. package/dist/docs/zh/configuration/env-vars.md +4 -6
  53. package/dist/docs/zh/configuration/overrides.md +13 -14
  54. package/dist/docs/zh/configuration/providers.md +7 -5
  55. package/dist/docs/zh/customization/agent-profiles.md +31 -36
  56. package/dist/docs/zh/customization/agents.md +120 -98
  57. package/dist/docs/zh/customization/hooks.md +35 -42
  58. package/dist/docs/zh/customization/personas.md +16 -18
  59. package/dist/docs/zh/customization/plugins.md +167 -142
  60. package/dist/docs/zh/customization/prompt-fields.md +9 -5
  61. package/dist/docs/zh/customization/skills.md +10 -12
  62. package/dist/docs/zh/customization/skins.md +19 -23
  63. package/dist/docs/zh/customization/themes.md +12 -12
  64. package/dist/docs/zh/features/agents.md +85 -0
  65. package/dist/docs/zh/features/daily.md +37 -7
  66. package/dist/docs/zh/features/ecosystem.md +3 -1
  67. package/dist/docs/zh/features/extend.md +7 -1
  68. package/dist/docs/zh/features/freedom.md +4 -0
  69. package/dist/docs/zh/features/index.md +6 -5
  70. package/dist/docs/zh/features/long-work.md +22 -4
  71. package/dist/docs/zh/features/look.md +1 -1
  72. package/dist/docs/zh/features/people.md +10 -2
  73. package/dist/docs/zh/features/spaces.md +15 -3
  74. package/dist/docs/zh/features/workbench.md +11 -3
  75. package/dist/docs/zh/getting-started/desktop-app.md +43 -28
  76. package/dist/docs/zh/getting-started/first-launch.md +32 -21
  77. package/dist/docs/zh/getting-started/installation.md +26 -11
  78. package/dist/docs/zh/getting-started/use-cases.md +35 -37
  79. package/dist/docs/zh/guides/goals.md +8 -8
  80. package/dist/docs/zh/guides/interaction.md +25 -25
  81. package/dist/docs/zh/guides/interface.md +18 -14
  82. package/dist/docs/zh/guides/memory.md +43 -14
  83. package/dist/docs/zh/guides/sessions.md +30 -24
  84. package/dist/docs/zh/guides/settings.md +54 -23
  85. package/dist/docs/zh/index.md +7 -1
  86. package/dist/docs/zh/reference/command.md +7 -3
  87. package/dist/docs/zh/reference/keyboard.md +18 -4
  88. package/dist/docs/zh/reference/model-vocabulary.md +6 -8
  89. package/dist/docs/zh/reference/slash-commands.md +3 -3
  90. package/dist/docs/zh/reference/tools.md +74 -9
  91. package/dist/docs/zh/release-notes/changelog.md +1 -9
  92. package/dist/docs/zh/server/acp.md +1 -1
  93. package/dist/docs/zh/server/ide.md +1 -1
  94. package/dist/docs/zh/server/local-server.md +5 -5
  95. package/dist/docs/zh/server/mcp.md +2 -2
  96. package/dist/docs/zh/server/rest-api.md +69 -1
  97. package/dist/docs/zh/server/sdk.md +2 -2
  98. package/dist/main.mjs +12545 -3456
  99. package/dist/web/assets/AppErrorBoundary-RFIAb-Uf.js +1 -0
  100. package/dist/web/assets/NavScopeBoundary-DY_ET7A-.js +1 -0
  101. package/dist/web/assets/{arc-y2SkSoyr.js → arc-CMgTB1m7.js} +1 -1
  102. package/dist/web/assets/{architectureDiagram-3BPJPVTR-uCwLz53m.js → architectureDiagram-3BPJPVTR-BU79ou2C.js} +1 -1
  103. package/dist/web/assets/{blockDiagram-GPEHLZMM-BZyWv36G.js → blockDiagram-GPEHLZMM-Bkuldod2.js} +1 -1
  104. package/dist/web/assets/{c4Diagram-AAUBKEIU-DKGx9i50.js → c4Diagram-AAUBKEIU-C3WMeqyu.js} +1 -1
  105. package/dist/web/assets/channel-DpDZUJRn.js +1 -0
  106. package/dist/web/assets/{chunk-2J33WTMH-CSkrhrsp.js → chunk-2J33WTMH-CesyWmwo.js} +1 -1
  107. package/dist/web/assets/{chunk-4BX2VUAB-CtxMoJ68.js → chunk-4BX2VUAB-C7rghYTf.js} +1 -1
  108. package/dist/web/assets/{chunk-55IACEB6-Dos3ftEy.js → chunk-55IACEB6-BqRHhwtz.js} +1 -1
  109. package/dist/web/assets/{chunk-727SXJPM-wbzEYK9z.js → chunk-727SXJPM-BhSqCRBc.js} +1 -1
  110. package/dist/web/assets/{chunk-AQP2D5EJ-B9GKvCD6.js → chunk-AQP2D5EJ-DdYE2ZVZ.js} +1 -1
  111. package/dist/web/assets/{chunk-FMBD7UC4-u5Y2P6IX.js → chunk-FMBD7UC4-BCRPUxDF.js} +1 -1
  112. package/dist/web/assets/{chunk-ND2GUHAM-B8rFKkTV.js → chunk-ND2GUHAM-CuvyDjTR.js} +1 -1
  113. package/dist/web/assets/{chunk-QZHKN3VN-EQsKtuD-.js → chunk-QZHKN3VN-BU5vAS78.js} +1 -1
  114. package/dist/web/assets/classDiagram-4FO5ZUOK-Bju1GfNu.js +1 -0
  115. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-Bju1GfNu.js +1 -0
  116. package/dist/web/assets/client-C0oH7-8r.js +2 -0
  117. package/dist/web/assets/connection-BhO2nh7P.js +1 -0
  118. package/dist/web/assets/{cose-bilkent-S5V4N54A-D6dr5mIW.js → cose-bilkent-S5V4N54A-CXrvsA1a.js} +1 -1
  119. package/dist/web/assets/{dagre-BM42HDAG-Dnyhc4Hn.js → dagre-BM42HDAG-TaAea3Rt.js} +1 -1
  120. package/dist/web/assets/{diagram-2AECGRRQ-CYXkWdne.js → diagram-2AECGRRQ-CdEH4jGt.js} +1 -1
  121. package/dist/web/assets/{diagram-5GNKFQAL-DPwBf5Ag.js → diagram-5GNKFQAL-A0jZ_p-T.js} +1 -1
  122. package/dist/web/assets/{diagram-KO2AKTUF-DNeLYZ8X.js → diagram-KO2AKTUF-miHWORz3.js} +1 -1
  123. package/dist/web/assets/{diagram-LMA3HP47-zU8RsQTX.js → diagram-LMA3HP47-BlUIwEIg.js} +1 -1
  124. package/dist/web/assets/{diagram-OG6HWLK6-Cf9Mm94H.js → diagram-OG6HWLK6-DwDzMhEg.js} +1 -1
  125. package/dist/web/assets/{erDiagram-TEJ5UH35-Ch4CeiUI.js → erDiagram-TEJ5UH35-BJr5w62i.js} +1 -1
  126. package/dist/web/assets/export-BlxaZKEe.js +2 -0
  127. package/dist/web/assets/{flowDiagram-I6XJVG4X-Csn6WqEH.js → flowDiagram-I6XJVG4X-BP7KSFjx.js} +1 -1
  128. package/dist/web/assets/{ganttDiagram-6RSMTGT7-DsuBgEyu.js → ganttDiagram-6RSMTGT7-BstLBBof.js} +1 -1
  129. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-CPA7jCxU.js → gitGraphDiagram-PVQCEYII-C57s7nZ-.js} +1 -1
  130. package/dist/web/assets/highlighted-body-OFNGDK62-BVb-7KsA.js +1 -0
  131. package/dist/web/assets/index-69qhvTvD.js +1 -0
  132. package/dist/web/assets/{index-BYUHmd8w.js → index-BDNM6yJI.js} +2 -2
  133. package/dist/web/assets/{index-BGgZxlEQ.js → index-BJF_gEDs.js} +2 -2
  134. package/dist/web/assets/index-BOwMP6BP.js +1 -0
  135. package/dist/web/assets/{index-C69a5Mcz.js → index-BZsyXCqm.js} +1 -1
  136. package/dist/web/assets/{index-C7EA7a_g.js → index-Bfl4JiNq.js} +2 -2
  137. package/dist/web/assets/index-BlD3AKX-.js +1 -0
  138. package/dist/web/assets/{index-CIymCfcP.js → index-BnvW0EvQ.js} +1 -1
  139. package/dist/web/assets/index-C4rmWyOm.js +1 -0
  140. package/dist/web/assets/index-CGLcb3HY.js +1 -0
  141. package/dist/web/assets/{index-kWBxPqIX.js → index-CPvOeQPX.js} +1 -1
  142. package/dist/web/assets/index-Cjbe0JKM.js +1 -0
  143. package/dist/web/assets/index-CmYoJWUm.js +1 -0
  144. package/dist/web/assets/index-CtUFrjKe.js +1 -0
  145. package/dist/web/assets/index-DDvDRMTK.js +1 -0
  146. package/dist/web/assets/index-DSpndwAR.css +1 -0
  147. package/dist/web/assets/index-D_JjTHxi.js +1 -0
  148. package/dist/web/assets/index-DbuwcnbT.js +1 -0
  149. package/dist/web/assets/index-DcXyS0nN.js +1 -0
  150. package/dist/web/assets/index-Dcl9ruKA.js +1 -0
  151. package/dist/web/assets/index-DgwALPNA.js +121 -0
  152. package/dist/web/assets/{index-DoN1FTEe.js → index-DkE8hRT1.js} +2 -2
  153. package/dist/web/assets/index-DsyRBZ4h.js +1 -0
  154. package/dist/web/assets/{index-29zav3JI.js → index-DuudNhLL.js} +4 -4
  155. package/dist/web/assets/index-Gc4F0b2f.js +1 -0
  156. package/dist/web/assets/index-HGqqwKoV.js +13 -0
  157. package/dist/web/assets/index-KchrJnno.js +3 -0
  158. package/dist/web/assets/{index-B0KNSyji.js → index-Tmi2BPYU.js} +1 -1
  159. package/dist/web/assets/index-Ya4GuDs0.js +1 -0
  160. package/dist/web/assets/index-_aDaKqLB.js +1 -0
  161. package/dist/web/assets/index-_qwOAotB.js +1 -0
  162. package/dist/web/assets/index-hnIkczza.js +7 -0
  163. package/dist/web/assets/{infoDiagram-5YYISTIA-D3Q__m62.js → infoDiagram-5YYISTIA-CifuVY6C.js} +1 -1
  164. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-CcvCBuZ5.js → ishikawaDiagram-YF4QCWOH-Cd60vQUi.js} +1 -1
  165. package/dist/web/assets/{journeyDiagram-JHISSGLW-COZU4LNt.js → journeyDiagram-JHISSGLW-Cb3Xl_wl.js} +1 -1
  166. package/dist/web/assets/{kanban-definition-UN3LZRKU-BrXjBoAU.js → kanban-definition-UN3LZRKU-Ei6ThuZt.js} +1 -1
  167. package/dist/web/assets/{linear-BgP1STFi.js → linear-CDZJx-o2.js} +1 -1
  168. package/dist/web/assets/mermaid-GHXKKRXX-DFxyxD7G.js +331 -0
  169. package/dist/web/assets/{mindmap-definition-RKZ34NQL-CgjSrE5r.js → mindmap-definition-RKZ34NQL-B0ygxzkx.js} +1 -1
  170. package/dist/web/assets/navViewState-Ck_HK-TK.js +1 -0
  171. package/dist/web/assets/{pieDiagram-4H26LBE5-DTfe1sKA.js → pieDiagram-4H26LBE5-B2FdrvDv.js} +1 -1
  172. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-D95hfh0q.js → quadrantDiagram-W4KKPZXB-CwpOTy3d.js} +1 -1
  173. package/dist/web/assets/{requirementDiagram-4Y6WPE33-DtSLi7Mh.js → requirementDiagram-4Y6WPE33-ExdZNzLQ.js} +1 -1
  174. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-gi_dJpcU.js → sankeyDiagram-5OEKKPKP-u0EZKD7D.js} +1 -1
  175. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-DKQ9a72t.js → sequenceDiagram-3UESZ5HK-BXHMy5DY.js} +1 -1
  176. package/dist/web/assets/{spaces-B2Ccyh_T.js → spaces-C8n7xQPx.js} +1 -1
  177. package/dist/web/assets/{stateDiagram-AJRCARHV-Bz7tmSqa.js → stateDiagram-AJRCARHV-DMXx7ell.js} +1 -1
  178. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-Bydq1_By.js +1 -0
  179. package/dist/web/assets/theme-BBnHttAf.js +1 -0
  180. package/dist/web/assets/{timeline-definition-PNZ67QCA-BfMXPwhV.js → timeline-definition-PNZ67QCA-DtqVG_4u.js} +1 -1
  181. package/dist/web/assets/{vennDiagram-CIIHVFJN-WLxW2KT5.js → vennDiagram-CIIHVFJN-Dom0ex8r.js} +1 -1
  182. package/dist/web/assets/{wardley-L42UT6IY-DiiqwIdq.js → wardley-L42UT6IY-C-RstmuQ.js} +1 -1
  183. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-DmCukWuw.js → wardleyDiagram-YWT4CUSO-C8CzNfdf.js} +1 -1
  184. package/dist/web/assets/{xychartDiagram-2RQKCTM6-Cfq1W2tT.js → xychartDiagram-2RQKCTM6-1AxVTyB6.js} +1 -1
  185. package/dist/web/index.html +2 -2
  186. package/native/auth-native/prebuilds/linux-arm64/auth-native.node +0 -0
  187. package/native/auth-native/prebuilds/linux-x64/auth-native.node +0 -0
  188. package/native/auth-native/prebuilds/win32-arm64/auth-native.node +0 -0
  189. package/native/auth-native/prebuilds/win32-x64/auth-native.node +0 -0
  190. package/package.json +1 -1
  191. package/dist/web/assets/AppErrorBoundary-DWpgwxFV.js +0 -1
  192. package/dist/web/assets/NavScopeBoundary-D8Lf1G0U.js +0 -1
  193. package/dist/web/assets/channel-BGdXootG.js +0 -1
  194. package/dist/web/assets/classDiagram-4FO5ZUOK-CPcnLy_H.js +0 -1
  195. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CPcnLy_H.js +0 -1
  196. package/dist/web/assets/client-DSIbyfoz.js +0 -2
  197. package/dist/web/assets/connection-DYZn9oPZ.js +0 -1
  198. package/dist/web/assets/export-Bq8ZECqX.js +0 -2
  199. package/dist/web/assets/highlighted-body-OFNGDK62-CDPBxM_E.js +0 -1
  200. package/dist/web/assets/index-AksnytJj.js +0 -1
  201. package/dist/web/assets/index-B8xhhYDh.css +0 -1
  202. package/dist/web/assets/index-BUrlrKap.js +0 -1
  203. package/dist/web/assets/index-B_5-HLed.js +0 -62
  204. package/dist/web/assets/index-BfmoxdpP.js +0 -1
  205. package/dist/web/assets/index-Bo3e-ohM.js +0 -3
  206. package/dist/web/assets/index-BrYV9gV_.js +0 -1
  207. package/dist/web/assets/index-C8XUtAvK.js +0 -1
  208. package/dist/web/assets/index-C9uil5my.js +0 -13
  209. package/dist/web/assets/index-CKpWHSp9.js +0 -1
  210. package/dist/web/assets/index-CLKBgQxV.js +0 -1
  211. package/dist/web/assets/index-CTyyUNWj.js +0 -7
  212. package/dist/web/assets/index-D7cg9qYZ.js +0 -1
  213. package/dist/web/assets/index-D7dg8R_q.js +0 -1
  214. package/dist/web/assets/index-DCSpedV_.js +0 -1
  215. package/dist/web/assets/index-DLbD0Nx5.js +0 -1
  216. package/dist/web/assets/index-DaEzbvvu.js +0 -1
  217. package/dist/web/assets/index-DhbcjMZF.js +0 -1
  218. package/dist/web/assets/index-Dw2h88mF.js +0 -1
  219. package/dist/web/assets/index-FcMtfmKv.js +0 -1
  220. package/dist/web/assets/index-XFq9Kgg0.js +0 -1
  221. package/dist/web/assets/index-iI2mM43w.js +0 -1
  222. package/dist/web/assets/index-oXOF7lko.js +0 -1
  223. package/dist/web/assets/locale-CANfezJ4.js +0 -17
  224. package/dist/web/assets/mermaid-GHXKKRXX-_JLagMll.js +0 -321
  225. package/dist/web/assets/navViewState-DS5LnMYc.js +0 -1
  226. package/dist/web/assets/settings-CcwMWXbp.js +0 -42
  227. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-D6-wdUbw.js +0 -1
  228. package/dist/web/assets/theme-DlDhDxeD.js +0 -1
@@ -1,62 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/client-DSIbyfoz.js","assets/settings-CcwMWXbp.js","assets/locale-CANfezJ4.js","assets/mermaid-GHXKKRXX-_JLagMll.js","assets/connection-DYZn9oPZ.js","assets/index-BfmoxdpP.js","assets/navViewState-DS5LnMYc.js","assets/export-Bq8ZECqX.js","assets/spaces-B2Ccyh_T.js","assets/theme-DlDhDxeD.js","assets/AppErrorBoundary-DWpgwxFV.js","assets/index-D7dg8R_q.js","assets/NavScopeBoundary-D8Lf1G0U.js"])))=>i.map(i=>d[i]);
2
- function V0(n,i){for(var r=0;r<i.length;r++){const o=i[r];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in n)){const d=Object.getOwnPropertyDescriptor(o,c);d&&Object.defineProperty(n,c,d.get?d:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function r(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=r(c);fetch(c.href,d)}})();const X0="modulepreload",Z0=function(n){return"/"+n},by={},Ut=function(i,r,o){let c=Promise.resolve();if(r&&r.length>0){let h=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),p=y?.nonce||y?.getAttribute("nonce");c=h(r.map(m=>{if(m=Z0(m),m in by)return;by[m]=!0;const b=m.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const T=document.createElement("link");if(T.rel=b?"stylesheet":X0,b||(T.as="script"),T.crossOrigin="",T.href=m,p&&T.setAttribute("nonce",p),document.head.appendChild(T),b)return new Promise((A,H)=>{T.addEventListener("load",A),T.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return c.then(h=>{for(const y of h||[])y.status==="rejected"&&d(y.reason);return i().catch(d)})};function k0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Oc={exports:{}},tu={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var Sy;function K0(){if(Sy)return tu;Sy=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var y in c)y!=="key"&&(d[y]=c[y])}else d=c;return c=d.ref,{$$typeof:n,type:o,key:h,ref:c!==void 0?c:null,props:d}}return tu.Fragment=i,tu.jsx=r,tu.jsxs=r,tu}var Ey;function J0(){return Ey||(Ey=1,Oc.exports=K0()),Oc.exports}var Ta=J0(),Dc={exports:{}},be={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var wy;function F0(){if(wy)return be;wy=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),T=Symbol.iterator;function A(w){return w===null||typeof w!="object"?null:(w=T&&w[T]||w["@@iterator"],typeof w=="function"?w:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,Q={};function J(w,j,k){this.props=w,this.context=j,this.refs=Q,this.updater=k||H}J.prototype.isReactComponent={},J.prototype.setState=function(w,j){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,j,"setState")},J.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function F(){}F.prototype=J.prototype;function W(w,j,k){this.props=w,this.context=j,this.refs=Q,this.updater=k||H}var ge=W.prototype=new F;ge.constructor=W,G(ge,J.prototype),ge.isPureReactComponent=!0;var ye=Array.isArray;function Ee(){}var te={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function se(w,j,k){var $=k.ref;return{$$typeof:n,type:w,key:j,ref:$!==void 0?$:null,props:k}}function Te(w,j){return se(w.type,j,w.props)}function xe(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function pe(w){var j={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(k){return j[k]})}var He=/\/+/g;function We(w,j){return typeof w=="object"&&w!==null&&w.key!=null?pe(""+w.key):j.toString(36)}function oe(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(Ee,Ee):(w.status="pending",w.then(function(j){w.status==="pending"&&(w.status="fulfilled",w.value=j)},function(j){w.status==="pending"&&(w.status="rejected",w.reason=j)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function x(w,j,k,$,he){var ve=typeof w;(ve==="undefined"||ve==="boolean")&&(w=null);var Oe=!1;if(w===null)Oe=!0;else switch(ve){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(w.$$typeof){case n:case i:Oe=!0;break;case b:return Oe=w._init,x(Oe(w._payload),j,k,$,he)}}if(Oe)return he=he(w),Oe=$===""?"."+We(w,0):$,ye(he)?(k="",Oe!=null&&(k=Oe.replace(He,"$&/")+"/"),x(he,j,k,"",function(jn){return jn})):he!=null&&(xe(he)&&(he=Te(he,k+(he.key==null||w&&w.key===he.key?"":(""+he.key).replace(He,"$&/")+"/")+Oe)),j.push(he)),1;Oe=0;var ft=$===""?".":$+":";if(ye(w))for(var Ke=0;Ke<w.length;Ke++)$=w[Ke],ve=ft+We($,Ke),Oe+=x($,j,k,ve,he);else if(Ke=A(w),typeof Ke=="function")for(w=Ke.call(w),Ke=0;!($=w.next()).done;)$=$.value,ve=ft+We($,Ke++),Oe+=x($,j,k,ve,he);else if(ve==="object"){if(typeof w.then=="function")return x(oe(w),j,k,$,he);throw j=String(w),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function Z(w,j,k){if(w==null)return w;var $=[],he=0;return x(w,$,"","",function(ve){return j.call(k,ve,he++)}),$}function ne(w){if(w._status===-1){var j=w._result;j=j(),j.then(function(k){(w._status===0||w._status===-1)&&(w._status=1,w._result=k)},function(k){(w._status===0||w._status===-1)&&(w._status=2,w._result=k)}),w._status===-1&&(w._status=0,w._result=j)}if(w._status===1)return w._result.default;throw w._result}var ue=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},_e={map:Z,forEach:function(w,j,k){Z(w,function(){j.apply(this,arguments)},k)},count:function(w){var j=0;return Z(w,function(){j++}),j},toArray:function(w){return Z(w,function(j){return j})||[]},only:function(w){if(!xe(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return be.Activity=g,be.Children=_e,be.Component=J,be.Fragment=r,be.Profiler=c,be.PureComponent=W,be.StrictMode=o,be.Suspense=p,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,be.__COMPILER_RUNTIME={__proto__:null,c:function(w){return te.H.useMemoCache(w)}},be.cache=function(w){return function(){return w.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(w,j,k){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var $=G({},w.props),he=w.key;if(j!=null)for(ve in j.key!==void 0&&(he=""+j.key),j)!C.call(j,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&j.ref===void 0||($[ve]=j[ve]);var ve=arguments.length-2;if(ve===1)$.children=k;else if(1<ve){for(var Oe=Array(ve),ft=0;ft<ve;ft++)Oe[ft]=arguments[ft+2];$.children=Oe}return se(w.type,he,$)},be.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},be.createElement=function(w,j,k){var $,he={},ve=null;if(j!=null)for($ in j.key!==void 0&&(ve=""+j.key),j)C.call(j,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(he[$]=j[$]);var Oe=arguments.length-2;if(Oe===1)he.children=k;else if(1<Oe){for(var ft=Array(Oe),Ke=0;Ke<Oe;Ke++)ft[Ke]=arguments[Ke+2];he.children=ft}if(w&&w.defaultProps)for($ in Oe=w.defaultProps,Oe)he[$]===void 0&&(he[$]=Oe[$]);return se(w,ve,he)},be.createRef=function(){return{current:null}},be.forwardRef=function(w){return{$$typeof:y,render:w}},be.isValidElement=xe,be.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:ne}},be.memo=function(w,j){return{$$typeof:m,type:w,compare:j===void 0?null:j}},be.startTransition=function(w){var j=te.T,k={};te.T=k;try{var $=w(),he=te.S;he!==null&&he(k,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(Ee,ue)}catch(ve){ue(ve)}finally{j!==null&&k.types!==null&&(j.types=k.types),te.T=j}},be.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},be.use=function(w){return te.H.use(w)},be.useActionState=function(w,j,k){return te.H.useActionState(w,j,k)},be.useCallback=function(w,j){return te.H.useCallback(w,j)},be.useContext=function(w){return te.H.useContext(w)},be.useDebugValue=function(){},be.useDeferredValue=function(w,j){return te.H.useDeferredValue(w,j)},be.useEffect=function(w,j){return te.H.useEffect(w,j)},be.useEffectEvent=function(w){return te.H.useEffectEvent(w)},be.useId=function(){return te.H.useId()},be.useImperativeHandle=function(w,j,k){return te.H.useImperativeHandle(w,j,k)},be.useInsertionEffect=function(w,j){return te.H.useInsertionEffect(w,j)},be.useLayoutEffect=function(w,j){return te.H.useLayoutEffect(w,j)},be.useMemo=function(w,j){return te.H.useMemo(w,j)},be.useOptimistic=function(w,j){return te.H.useOptimistic(w,j)},be.useReducer=function(w,j,k){return te.H.useReducer(w,j,k)},be.useRef=function(w){return te.H.useRef(w)},be.useState=function(w){return te.H.useState(w)},be.useSyncExternalStore=function(w,j,k){return te.H.useSyncExternalStore(w,j,k)},be.useTransition=function(){return te.H.useTransition()},be.version="19.2.5",be}var _y;function cf(){return _y||(_y=1,Dc.exports=F0()),Dc.exports}var D=cf();const W0=k0(D),$0=V0({__proto__:null,default:W0},[D]);var Ac={exports:{}},au={},zc={exports:{}},Mc={};/**
19
- * @license React
20
- * scheduler.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var Ry;function P0(){return Ry||(Ry=1,(function(n){function i(x,Z){var ne=x.length;x.push(Z);e:for(;0<ne;){var ue=ne-1>>>1,_e=x[ue];if(0<c(_e,Z))x[ue]=Z,x[ne]=_e,ne=ue;else break e}}function r(x){return x.length===0?null:x[0]}function o(x){if(x.length===0)return null;var Z=x[0],ne=x.pop();if(ne!==Z){x[0]=ne;e:for(var ue=0,_e=x.length,w=_e>>>1;ue<w;){var j=2*(ue+1)-1,k=x[j],$=j+1,he=x[$];if(0>c(k,ne))$<_e&&0>c(he,k)?(x[ue]=he,x[$]=ne,ue=$):(x[ue]=k,x[j]=ne,ue=j);else if($<_e&&0>c(he,ne))x[ue]=he,x[$]=ne,ue=$;else break e}}return Z}function c(x,Z){var ne=x.sortIndex-Z.sortIndex;return ne!==0?ne:x.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var p=[],m=[],b=1,g=null,T=3,A=!1,H=!1,G=!1,Q=!1,J=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function ge(x){for(var Z=r(m);Z!==null;){if(Z.callback===null)o(m);else if(Z.startTime<=x)o(m),Z.sortIndex=Z.expirationTime,i(p,Z);else break;Z=r(m)}}function ye(x){if(G=!1,ge(x),!H)if(r(p)!==null)H=!0,Ee||(Ee=!0,pe());else{var Z=r(m);Z!==null&&oe(ye,Z.startTime-x)}}var Ee=!1,te=-1,C=5,se=-1;function Te(){return Q?!0:!(n.unstable_now()-se<C)}function xe(){if(Q=!1,Ee){var x=n.unstable_now();se=x;var Z=!0;try{e:{H=!1,G&&(G=!1,F(te),te=-1),A=!0;var ne=T;try{t:{for(ge(x),g=r(p);g!==null&&!(g.expirationTime>x&&Te());){var ue=g.callback;if(typeof ue=="function"){g.callback=null,T=g.priorityLevel;var _e=ue(g.expirationTime<=x);if(x=n.unstable_now(),typeof _e=="function"){g.callback=_e,ge(x),Z=!0;break t}g===r(p)&&o(p),ge(x)}else o(p);g=r(p)}if(g!==null)Z=!0;else{var w=r(m);w!==null&&oe(ye,w.startTime-x),Z=!1}}break e}finally{g=null,T=ne,A=!1}Z=void 0}}finally{Z?pe():Ee=!1}}}var pe;if(typeof W=="function")pe=function(){W(xe)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,We=He.port2;He.port1.onmessage=xe,pe=function(){We.postMessage(null)}}else pe=function(){J(xe,0)};function oe(x,Z){te=J(function(){x(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(x){x.callback=null},n.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<x?Math.floor(1e3/x):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(x){switch(T){case 1:case 2:case 3:var Z=3;break;default:Z=T}var ne=T;T=Z;try{return x()}finally{T=ne}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(x,Z){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var ne=T;T=x;try{return Z()}finally{T=ne}},n.unstable_scheduleCallback=function(x,Z,ne){var ue=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ue+ne:ue):ne=ue,x){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ne+_e,x={id:b++,callback:Z,priorityLevel:x,startTime:ne,expirationTime:_e,sortIndex:-1},ne>ue?(x.sortIndex=ne,i(m,x),r(p)===null&&x===r(m)&&(G?(F(te),te=-1):G=!0,oe(ye,ne-ue))):(x.sortIndex=_e,i(p,x),H||A||(H=!0,Ee||(Ee=!0,pe()))),x},n.unstable_shouldYield=Te,n.unstable_wrapCallback=function(x){var Z=T;return function(){var ne=T;T=Z;try{return x.apply(this,arguments)}finally{T=ne}}}})(Mc)),Mc}var Ty;function I0(){return Ty||(Ty=1,zc.exports=P0()),zc.exports}var Cc={exports:{}},Ct={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var Oy;function eb(){if(Oy)return Ct;Oy=1;var n=cf();function i(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(p,m,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:p,containerInfo:m,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ct.createPortal=function(p,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(p,m,null,b)},Ct.flushSync=function(p){var m=h.T,b=o.p;try{if(h.T=null,o.p=2,p)return p()}finally{h.T=m,o.p=b,o.d.f()}},Ct.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(p,m))},Ct.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},Ct.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var b=m.as,g=y(b,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?o.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:T,fetchPriority:A}):b==="script"&&o.d.X(p,{crossOrigin:g,integrity:T,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ct.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);o.d.M(p,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(p)},Ct.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,g=y(b,m.crossOrigin);o.d.L(p,b,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ct.preloadModule=function(p,m){if(typeof p=="string")if(m){var b=y(m.as,m.crossOrigin);o.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(p)},Ct.requestFormReset=function(p){o.d.r(p)},Ct.unstable_batchedUpdates=function(p,m){return p(m)},Ct.useFormState=function(p,m,b){return h.H.useFormState(p,m,b)},Ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},Ct.version="19.2.5",Ct}var Dy;function Rv(){if(Dy)return Cc.exports;Dy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Cc.exports=eb(),Cc.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var Ay;function tb(){if(Ay)return au;Ay=1;var n=I0(),i=cf(),r=Rv();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(d(e)!==e)throw Error(o(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var s=u.alternate;if(s===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===a)return p(u),e;if(s===l)return p(u),t;s=s.sibling}throw Error(o(188))}if(a.return!==l.return)a=u,l=s;else{for(var f=!1,v=u.child;v;){if(v===a){f=!0,a=u,l=s;break}if(v===l){f=!0,l=u,a=s;break}v=v.sibling}if(!f){for(v=s.child;v;){if(v===a){f=!0,a=s,l=u;break}if(v===l){f=!0,l=s,a=u;break}v=v.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,T=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),W=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),xe=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=xe&&e[xe]||e["@@iterator"],typeof e=="function"?e:null)}var He=Symbol.for("react.client.reference");function We(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===He?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case J:return"Profiler";case Q:return"StrictMode";case ye:return"Suspense";case Ee:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case W:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case ge:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:We(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return We(e(t))}catch{}}return null}var oe=Array.isArray,x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},ue=[],_e=-1;function w(e){return{current:e}}function j(e){0>_e||(e.current=ue[_e],ue[_e]=null,_e--)}function k(e,t){_e++,ue[_e]=e.current,e.current=t}var $=w(null),he=w(null),ve=w(null),Oe=w(null);function ft(e,t){switch(k(ve,t),k(he,e),k($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qm(t),e=Vm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j($),k($,e)}function Ke(){j($),j(he),j(ve)}function jn(e){e.memoizedState!==null&&k(Oe,e);var t=$.current,a=Vm(t,e.type);t!==a&&(k(he,e),k($,a))}function fl(e){he.current===e&&(j($),j(he)),Oe.current===e&&(j(Oe),$i._currentValue=ne)}var si,gt;function Bt(e){if(si===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);si=t&&t[1]||"",gt=-1<a.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+si+e+gt}var dl=!1;function oi(e,t){if(!e||dl)return"";dl=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(L){var N=L}Reflect.construct(e,[],V)}else{try{V.call()}catch(L){N=L}e.call(V.prototype)}}else{try{throw Error()}catch(L){N=L}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(L){if(L&&N&&typeof L.stack=="string")return[L.stack,N.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),f=s[0],v=s[1];if(f&&v){var S=f.split(`
45
- `),M=v.split(`
46
- `);for(u=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;u<M.length&&!M[u].includes("DetermineComponentFrameRoot");)u++;if(l===S.length||u===M.length)for(l=S.length-1,u=M.length-1;1<=l&&0<=u&&S[l]!==M[u];)u--;for(;1<=l&&0<=u;l--,u--)if(S[l]!==M[u]){if(l!==1||u!==1)do if(l--,u--,0>u||S[l]!==M[u]){var B=`
47
- `+S[l].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=l&&0<=u);break}}}finally{dl=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Bt(a):""}function Ha(e,t){switch(e.tag){case 26:case 27:case 5:return Bt(e.type);case 16:return Bt("Lazy");case 13:return e.child!==t&&t!==null?Bt("Suspense Fallback"):Bt("Suspense");case 19:return Bt("SuspenseList");case 0:case 15:return oi(e.type,!1);case 11:return oi(e.type.render,!1);case 1:return oi(e.type,!0);case 31:return Bt("Activity");default:return""}}function Du(e){try{var t="",a=null;do t+=Ha(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
48
- Error generating stack: `+l.message+`
49
- `+l.stack}}var ci=Object.prototype.hasOwnProperty,hl=n.unstable_scheduleCallback,fi=n.unstable_cancelCallback,ms=n.unstable_shouldYield,ys=n.unstable_requestPaint,xt=n.unstable_now,Ba=n.unstable_getCurrentPriorityLevel,ln=n.unstable_ImmediatePriority,di=n.unstable_UserBlockingPriority,un=n.unstable_NormalPriority,ba=n.unstable_LowPriority,aa=n.unstable_IdlePriority,Au=n.log,vs=n.unstable_setDisableYieldValue,ja=null,Lt=null;function St(e){if(typeof Au=="function"&&vs(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(ja,e)}catch{}}var zt=Math.clz32?Math.clz32:ps,zu=Math.log,Mu=Math.LN2;function ps(e){return e>>>=0,e===0?32:31-(zu(e)/Mu|0)|0}var qn=256,qa=262144,Yn=4194304;function Sa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ml(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~s,l!==0?u=Sa(l):(f&=v,f!==0?u=Sa(f):a||(a=v&~e,a!==0&&(u=Sa(a))))):(v=l&~s,v!==0?u=Sa(v):f!==0?u=Sa(f):a||(a=l&~e,a!==0&&(u=Sa(a)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:u}function rn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hi(){var e=Yn;return Yn<<=1,(Yn&62914560)===0&&(Yn=4194304),e}function sn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cu(e,t,a,l,u,s){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,S=e.expirationTimes,M=e.hiddenUpdates;for(a=f&~a;0<a;){var B=31-zt(a),V=1<<B;v[B]=0,S[B]=-1;var N=M[B];if(N!==null)for(M[B]=null,B=0;B<N.length;B++){var L=N[B];L!==null&&(L.lane&=-536870913)}a&=~V}l!==0&&Uu(e,l,0),s!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function Uu(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-zt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Nu(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-zt(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function E(e,t){var a=t&-t;return a=(a&42)!==0?1:R(a),(a&(e.suspendedLanes|t))!==0?0:a}function R(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function U(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function X(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:dy(e.type))}function K(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var le=Math.random().toString(36).slice(2),P="__reactFiber$"+le,I="__reactProps$"+le,ie="__reactContainer$"+le,ee="__reactEvents$"+le,de="__reactListeners$"+le,ce="__reactHandles$"+le,Be="__reactResources$"+le,De="__reactMarker$"+le;function Je(e){delete e[P],delete e[I],delete e[ee],delete e[de],delete e[ce]}function Pe(e){var t=e[P];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ie]||a[P]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Wm(e);e!==null;){if(a=e[P])return a;e=Wm(e)}return t}e=a,a=e.parentNode}return null}function nt(e){if(e=e[P]||e[ie]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Le(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function dt(e){var t=e[Be];return t||(t=e[Be]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[De]=!0}var on=new Set,Ea={};function Et(e,t){Aa(e,t),Aa(e+"Capture",t)}function Aa(e,t){for(Ea[e]=t,e=0;e<t.length;e++)on.add(t[e])}var Gn=RegExp("^[: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]*$"),za={},Qn={};function yl(e){return ci.call(Qn,e)?!0:ci.call(za,e)?!1:Gn.test(e)?Qn[e]=!0:(za[e]=!0,!1)}function Ae(e,t,a){if(yl(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function rt(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Mt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vl(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(f){a=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pl(e){if(!e._valueTracker){var t=Ie(e)?"checked":"value";e._valueTracker=vl(e,t,""+e[t])}}function xu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Ie(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Lu(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}}var Bp=/[\n"\\]/g;function na(e){return e.replace(Bp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bs(e,t,a,l,u,s,f,v){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ht(t)):e.value!==""+ht(t)&&(e.value=""+ht(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Ss(e,f,ht(t)):a!=null?Ss(e,f,ht(a)):l!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+ht(v):e.removeAttribute("name")}function Hf(e,t,a,l,u,s,f,v){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){pl(e);return}a=a!=null?""+ht(a):"",t=t!=null?""+ht(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),pl(e)}function Ss(e,t,a){t==="number"&&Lu(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function gl(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+ht(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Bf(e,t,a){if(t!=null&&(t=""+ht(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ht(a):""}function jf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(oe(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=ht(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),pl(e)}function bl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var jp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function qf(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||jp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Yf(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&qf(e,u,l)}else for(var s in t)t.hasOwnProperty(s)&&qf(e,s,t[s])}function Es(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hu(e){return Yp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ya(){}var ws=null;function _s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,El=null;function Gf(e){var t=nt(e);if(t&&(e=t.stateNode)){var a=e[I]||null;e:switch(e=t.stateNode,t.type){case"input":if(bs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+na(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[I]||null;if(!u)throw Error(o(90));bs(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&xu(l)}break e;case"textarea":Bf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&gl(e,!!a.multiple,t,!1)}}}var Rs=!1;function Qf(e,t,a){if(Rs)return e(t,a);Rs=!0;try{var l=e(t);return l}finally{if(Rs=!1,(Sl!==null||El!==null)&&(_r(),Sl&&(t=Sl,e=El,El=Sl=null,Gf(t),e)))for(t=0;t<e.length;t++)Gf(e[t])}}function mi(e,t){var a=e.stateNode;if(a===null)return null;var l=a[I]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ts=!1;if(Ga)try{var yi={};Object.defineProperty(yi,"passive",{get:function(){Ts=!0}}),window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{Ts=!1}var cn=null,Os=null,Bu=null;function Vf(){if(Bu)return Bu;var e,t=Os,a=t.length,l,u="value"in cn?cn.value:cn.textContent,s=u.length;for(e=0;e<a&&t[e]===u[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===u[s-l];l++);return Bu=u.slice(e,1<l?1-l:void 0)}function ju(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 qu(){return!0}function Xf(){return!1}function jt(e){function t(a,l,u,s,f){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(s):s[v]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?qu:Xf,this.isPropagationStopped=Xf,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=qu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=qu)},persist:function(){},isPersistent:qu}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yu=jt(Vn),vi=g({},Vn,{view:0,detail:0}),Gp=jt(vi),Ds,As,pi,Gu=g({},vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ms,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!==pi&&(pi&&e.type==="mousemove"?(Ds=e.screenX-pi.screenX,As=e.screenY-pi.screenY):As=Ds=0,pi=e),Ds)},movementY:function(e){return"movementY"in e?e.movementY:As}}),Zf=jt(Gu),Qp=g({},Gu,{dataTransfer:0}),Vp=jt(Qp),Xp=g({},vi,{relatedTarget:0}),zs=jt(Xp),Zp=g({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),kp=jt(Zp),Kp=g({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jp=jt(Kp),Fp=g({},Vn,{data:0}),kf=jt(Fp),Wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$p={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"},Pp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ip(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pp[e])?!!t[e]:!1}function Ms(){return Ip}var eg=g({},vi,{key:function(e){if(e.key){var t=Wp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ju(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$p[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ms,charCode:function(e){return e.type==="keypress"?ju(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ju(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tg=jt(eg),ag=g({},Gu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=jt(ag),ng=g({},vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ms}),lg=jt(ng),ig=g({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ug=jt(ig),rg=g({},Gu,{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}),sg=jt(rg),og=g({},Vn,{newState:0,oldState:0}),cg=jt(og),fg=[9,13,27,32],Cs=Ga&&"CompositionEvent"in window,gi=null;Ga&&"documentMode"in document&&(gi=document.documentMode);var dg=Ga&&"TextEvent"in window&&!gi,Jf=Ga&&(!Cs||gi&&8<gi&&11>=gi),Ff=" ",Wf=!1;function $f(e,t){switch(e){case"keyup":return fg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wl=!1;function hg(e,t){switch(e){case"compositionend":return Pf(t);case"keypress":return t.which!==32?null:(Wf=!0,Ff);case"textInput":return e=t.data,e===Ff&&Wf?null:e;default:return null}}function mg(e,t){if(wl)return e==="compositionend"||!Cs&&$f(e,t)?(e=Vf(),Bu=Os=cn=null,wl=!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 Jf&&t.locale!=="ko"?null:t.data;default:return null}}var yg={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 If(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yg[e.type]:t==="textarea"}function ed(e,t,a,l){Sl?El?El.push(l):El=[l]:Sl=l,t=Mr(t,"onChange"),0<t.length&&(a=new Yu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var bi=null,Si=null;function vg(e){Hm(e,0)}function Qu(e){var t=Le(e);if(xu(t))return e}function td(e,t){if(e==="change")return t}var ad=!1;if(Ga){var Us;if(Ga){var Ns="oninput"in document;if(!Ns){var nd=document.createElement("div");nd.setAttribute("oninput","return;"),Ns=typeof nd.oninput=="function"}Us=Ns}else Us=!1;ad=Us&&(!document.documentMode||9<document.documentMode)}function ld(){bi&&(bi.detachEvent("onpropertychange",id),Si=bi=null)}function id(e){if(e.propertyName==="value"&&Qu(Si)){var t=[];ed(t,Si,e,_s(e)),Qf(vg,t)}}function pg(e,t,a){e==="focusin"?(ld(),bi=t,Si=a,bi.attachEvent("onpropertychange",id)):e==="focusout"&&ld()}function gg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qu(Si)}function bg(e,t){if(e==="click")return Qu(t)}function Sg(e,t){if(e==="input"||e==="change")return Qu(t)}function Eg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:Eg;function Ei(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!ci.call(t,u)||!kt(e[u],t[u]))return!1}return!0}function ud(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rd(e,t){var a=ud(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ud(a)}}function sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lu(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Lu(e.document)}return t}function xs(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")}var wg=Ga&&"documentMode"in document&&11>=document.documentMode,_l=null,Ls=null,wi=null,Hs=!1;function cd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Hs||_l==null||_l!==Lu(l)||(l=_l,"selectionStart"in l&&xs(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),wi&&Ei(wi,l)||(wi=l,l=Mr(Ls,"onSelect"),0<l.length&&(t=new Yu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=_l)))}function Xn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Rl={animationend:Xn("Animation","AnimationEnd"),animationiteration:Xn("Animation","AnimationIteration"),animationstart:Xn("Animation","AnimationStart"),transitionrun:Xn("Transition","TransitionRun"),transitionstart:Xn("Transition","TransitionStart"),transitioncancel:Xn("Transition","TransitionCancel"),transitionend:Xn("Transition","TransitionEnd")},Bs={},fd={};Ga&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function Zn(e){if(Bs[e])return Bs[e];if(!Rl[e])return e;var t=Rl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in fd)return Bs[e]=t[a];return e}var dd=Zn("animationend"),hd=Zn("animationiteration"),md=Zn("animationstart"),_g=Zn("transitionrun"),Rg=Zn("transitionstart"),Tg=Zn("transitioncancel"),yd=Zn("transitionend"),vd=new Map,js="abort auxClick beforeToggle 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(" ");js.push("scrollEnd");function wa(e,t){vd.set(e,t),Et(t,[e])}var Vu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},la=[],Tl=0,qs=0;function Xu(){for(var e=Tl,t=qs=Tl=0;t<e;){var a=la[t];la[t++]=null;var l=la[t];la[t++]=null;var u=la[t];la[t++]=null;var s=la[t];if(la[t++]=null,l!==null&&u!==null){var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}s!==0&&pd(a,u,s)}}function Zu(e,t,a,l){la[Tl++]=e,la[Tl++]=t,la[Tl++]=a,la[Tl++]=l,qs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ys(e,t,a,l){return Zu(e,t,a,l),ku(e)}function kn(e,t){return Zu(e,null,null,t),ku(e)}function pd(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(u=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,u&&t!==null&&(u=31-zt(a),e=s.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),s):null}function ku(e){if(50<Xi)throw Xi=0,Wo=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ol={};function Og(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,a,l){return new Og(e,t,a,l)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qa(e,t){var a=e.alternate;return a===null?(a=Kt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function gd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ku(e,t,a,l,u,s){var f=0;if(l=e,typeof e=="function")Gs(e)&&(f=1);else if(typeof e=="string")f=C0(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=Kt(31,a,t,u),e.elementType=se,e.lanes=s,e;case G:return Kn(a.children,u,s,t);case Q:f=8,u|=24;break;case J:return e=Kt(12,a,t,u|2),e.elementType=J,e.lanes=s,e;case ye:return e=Kt(13,a,t,u),e.elementType=ye,e.lanes=s,e;case Ee:return e=Kt(19,a,t,u),e.elementType=Ee,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:f=10;break e;case F:f=9;break e;case ge:f=11;break e;case te:f=14;break e;case C:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Kt(f,a,t,u),t.elementType=e,t.type=l,t.lanes=s,t}function Kn(e,t,a,l){return e=Kt(7,e,l,t),e.lanes=a,e}function Qs(e,t,a){return e=Kt(6,e,null,t),e.lanes=a,e}function bd(e){var t=Kt(18,null,null,0);return t.stateNode=e,t}function Vs(e,t,a){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Sd=new WeakMap;function ia(e,t){if(typeof e=="object"&&e!==null){var a=Sd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Du(t)},Sd.set(e,t),t)}return{value:e,source:t,stack:Du(t)}}var Dl=[],Al=0,Ju=null,_i=0,ua=[],ra=0,fn=null,Ma=1,Ca="";function Va(e,t){Dl[Al++]=_i,Dl[Al++]=Ju,Ju=e,_i=t}function Ed(e,t,a){ua[ra++]=Ma,ua[ra++]=Ca,ua[ra++]=fn,fn=e;var l=Ma;e=Ca;var u=32-zt(l)-1;l&=~(1<<u),a+=1;var s=32-zt(t)+u;if(30<s){var f=u-u%5;s=(l&(1<<f)-1).toString(32),l>>=f,u-=f,Ma=1<<32-zt(t)+u|a<<u|l,Ca=s+e}else Ma=1<<s|a<<u|l,Ca=e}function Xs(e){e.return!==null&&(Va(e,1),Ed(e,1,0))}function Zs(e){for(;e===Ju;)Ju=Dl[--Al],Dl[Al]=null,_i=Dl[--Al],Dl[Al]=null;for(;e===fn;)fn=ua[--ra],ua[ra]=null,Ca=ua[--ra],ua[ra]=null,Ma=ua[--ra],ua[ra]=null}function wd(e,t){ua[ra++]=Ma,ua[ra++]=Ca,ua[ra++]=fn,Ma=t.id,Ca=t.overflow,fn=e}var Rt=null,et=null,Ne=!1,dn=null,sa=!1,ks=Error(o(519));function hn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ri(ia(t,e)),ks}function _d(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[P]=e,t[I]=l,a){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(a=0;a<ki.length;a++)Me(ki[a],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),Hf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),jf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Ym(t.textContent,a)?(l.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),l.onScroll!=null&&Me("scroll",t),l.onScrollEnd!=null&&Me("scrollend",t),l.onClick!=null&&(t.onclick=Ya),t=!0):t=!1,t||hn(e,!0)}function Rd(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:sa=!1;return;case 27:case 3:sa=!0;return;default:Rt=Rt.return}}function zl(e){if(e!==Rt)return!1;if(!Ne)return Rd(e),Ne=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||fc(e.type,e.memoizedProps)),a=!a),a&&et&&hn(e),Rd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));et=Fm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));et=Fm(e)}else t===27?(t=et,Dn(e.type)?(e=vc,vc=null,et=e):et=t):et=Rt?ca(e.stateNode.nextSibling):null;return!0}function Jn(){et=Rt=null,Ne=!1}function Ks(){var e=dn;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),dn=null),e}function Ri(e){dn===null?dn=[e]:dn.push(e)}var Js=w(null),Fn=null,Xa=null;function mn(e,t,a){k(Js,t._currentValue),t._currentValue=a}function Za(e){e._currentValue=Js.current,j(Js)}function Fs(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Ws(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var s=u.dependencies;if(s!==null){var f=u.child;s=s.firstContext;e:for(;s!==null;){var v=s;s=u;for(var S=0;S<t.length;S++)if(v.context===t[S]){s.lanes|=a,v=s.alternate,v!==null&&(v.lanes|=a),Fs(s.return,a,e),l||(f=null);break e}s=v.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=a,s=f.alternate,s!==null&&(s.lanes|=a),Fs(f,a,e),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===e){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Ml(e,t,a,l){e=null;for(var u=t,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var v=u.type;kt(u.pendingProps.value,f.value)||(e!==null?e.push(v):e=[v])}}else if(u===Oe.current){if(f=u.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push($i):e=[$i])}u=u.return}e!==null&&Ws(t,e,a,l),t.flags|=262144}function Fu(e){for(e=e.firstContext;e!==null;){if(!kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wn(e){Fn=e,Xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return Td(Fn,e)}function Wu(e,t){return Fn===null&&Wn(e),Td(e,t)}function Td(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Xa===null){if(e===null)throw Error(o(308));Xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xa=Xa.next=t;return a}var Dg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Ag=n.unstable_scheduleCallback,zg=n.unstable_NormalPriority,mt={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $s(){return{controller:new Dg,data:new Map,refCount:0}}function Ti(e){e.refCount--,e.refCount===0&&Ag(zg,function(){e.controller.abort()})}var Oi=null,Ps=0,Cl=0,Ul=null;function Mg(e,t){if(Oi===null){var a=Oi=[];Ps=0,Cl=ac(),Ul={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ps++,t.then(Od,Od),t}function Od(){if(--Ps===0&&Oi!==null){Ul!==null&&(Ul.status="fulfilled");var e=Oi;Oi=null,Cl=0,Ul=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Cg(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var Dd=x.S;x.S=function(e,t){cm=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Mg(e,t),Dd!==null&&Dd(e,t)};var $n=w(null);function Is(){var e=$n.current;return e!==null?e:Fe.pooledCache}function $u(e,t){t===null?k($n,$n.current):k($n,t.pool)}function Ad(){var e=Is();return e===null?null:{parent:mt._currentValue,pool:e}}var Nl=Error(o(460)),eo=Error(o(474)),Pu=Error(o(542)),Iu={then:function(){}};function zd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Md(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ya,Ya),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ud(e),e;default:if(typeof t.status=="string")t.then(Ya,Ya);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ud(e),e}throw In=t,Nl}}function Pn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(In=a,Nl):a}}var In=null;function Cd(){if(In===null)throw Error(o(459));var e=In;return In=null,e}function Ud(e){if(e===Nl||e===Pu)throw Error(o(483))}var xl=null,Di=0;function er(e){var t=Di;return Di+=1,xl===null&&(xl=[]),Md(xl,e,t)}function Ai(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function tr(e,t){throw t.$$typeof===T?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Nd(e){function t(O,_){if(e){var z=O.deletions;z===null?(O.deletions=[_],O.flags|=16):z.push(_)}}function a(O,_){if(!e)return null;for(;_!==null;)t(O,_),_=_.sibling;return null}function l(O){for(var _=new Map;O!==null;)O.key!==null?_.set(O.key,O):_.set(O.index,O),O=O.sibling;return _}function u(O,_){return O=Qa(O,_),O.index=0,O.sibling=null,O}function s(O,_,z){return O.index=z,e?(z=O.alternate,z!==null?(z=z.index,z<_?(O.flags|=67108866,_):z):(O.flags|=67108866,_)):(O.flags|=1048576,_)}function f(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,_,z,Y){return _===null||_.tag!==6?(_=Qs(z,O.mode,Y),_.return=O,_):(_=u(_,z),_.return=O,_)}function S(O,_,z,Y){var fe=z.type;return fe===G?B(O,_,z.props.children,Y,z.key):_!==null&&(_.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===C&&Pn(fe)===_.type)?(_=u(_,z.props),Ai(_,z),_.return=O,_):(_=Ku(z.type,z.key,z.props,null,O.mode,Y),Ai(_,z),_.return=O,_)}function M(O,_,z,Y){return _===null||_.tag!==4||_.stateNode.containerInfo!==z.containerInfo||_.stateNode.implementation!==z.implementation?(_=Vs(z,O.mode,Y),_.return=O,_):(_=u(_,z.children||[]),_.return=O,_)}function B(O,_,z,Y,fe){return _===null||_.tag!==7?(_=Kn(z,O.mode,Y,fe),_.return=O,_):(_=u(_,z),_.return=O,_)}function V(O,_,z){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Qs(""+_,O.mode,z),_.return=O,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case A:return z=Ku(_.type,_.key,_.props,null,O.mode,z),Ai(z,_),z.return=O,z;case H:return _=Vs(_,O.mode,z),_.return=O,_;case C:return _=Pn(_),V(O,_,z)}if(oe(_)||pe(_))return _=Kn(_,O.mode,z,null),_.return=O,_;if(typeof _.then=="function")return V(O,er(_),z);if(_.$$typeof===W)return V(O,Wu(O,_),z);tr(O,_)}return null}function N(O,_,z,Y){var fe=_!==null?_.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return fe!==null?null:v(O,_,""+z,Y);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case A:return z.key===fe?S(O,_,z,Y):null;case H:return z.key===fe?M(O,_,z,Y):null;case C:return z=Pn(z),N(O,_,z,Y)}if(oe(z)||pe(z))return fe!==null?null:B(O,_,z,Y,null);if(typeof z.then=="function")return N(O,_,er(z),Y);if(z.$$typeof===W)return N(O,_,Wu(O,z),Y);tr(O,z)}return null}function L(O,_,z,Y,fe){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return O=O.get(z)||null,v(_,O,""+Y,fe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case A:return O=O.get(Y.key===null?z:Y.key)||null,S(_,O,Y,fe);case H:return O=O.get(Y.key===null?z:Y.key)||null,M(_,O,Y,fe);case C:return Y=Pn(Y),L(O,_,z,Y,fe)}if(oe(Y)||pe(Y))return O=O.get(z)||null,B(_,O,Y,fe,null);if(typeof Y.then=="function")return L(O,_,z,er(Y),fe);if(Y.$$typeof===W)return L(O,_,z,Wu(_,Y),fe);tr(_,Y)}return null}function ae(O,_,z,Y){for(var fe=null,je=null,re=_,Re=_=0,Ue=null;re!==null&&Re<z.length;Re++){re.index>Re?(Ue=re,re=null):Ue=re.sibling;var qe=N(O,re,z[Re],Y);if(qe===null){re===null&&(re=Ue);break}e&&re&&qe.alternate===null&&t(O,re),_=s(qe,_,Re),je===null?fe=qe:je.sibling=qe,je=qe,re=Ue}if(Re===z.length)return a(O,re),Ne&&Va(O,Re),fe;if(re===null){for(;Re<z.length;Re++)re=V(O,z[Re],Y),re!==null&&(_=s(re,_,Re),je===null?fe=re:je.sibling=re,je=re);return Ne&&Va(O,Re),fe}for(re=l(re);Re<z.length;Re++)Ue=L(re,O,Re,z[Re],Y),Ue!==null&&(e&&Ue.alternate!==null&&re.delete(Ue.key===null?Re:Ue.key),_=s(Ue,_,Re),je===null?fe=Ue:je.sibling=Ue,je=Ue);return e&&re.forEach(function(Un){return t(O,Un)}),Ne&&Va(O,Re),fe}function me(O,_,z,Y){if(z==null)throw Error(o(151));for(var fe=null,je=null,re=_,Re=_=0,Ue=null,qe=z.next();re!==null&&!qe.done;Re++,qe=z.next()){re.index>Re?(Ue=re,re=null):Ue=re.sibling;var Un=N(O,re,qe.value,Y);if(Un===null){re===null&&(re=Ue);break}e&&re&&Un.alternate===null&&t(O,re),_=s(Un,_,Re),je===null?fe=Un:je.sibling=Un,je=Un,re=Ue}if(qe.done)return a(O,re),Ne&&Va(O,Re),fe;if(re===null){for(;!qe.done;Re++,qe=z.next())qe=V(O,qe.value,Y),qe!==null&&(_=s(qe,_,Re),je===null?fe=qe:je.sibling=qe,je=qe);return Ne&&Va(O,Re),fe}for(re=l(re);!qe.done;Re++,qe=z.next())qe=L(re,O,Re,qe.value,Y),qe!==null&&(e&&qe.alternate!==null&&re.delete(qe.key===null?Re:qe.key),_=s(qe,_,Re),je===null?fe=qe:je.sibling=qe,je=qe);return e&&re.forEach(function(Q0){return t(O,Q0)}),Ne&&Va(O,Re),fe}function ke(O,_,z,Y){if(typeof z=="object"&&z!==null&&z.type===G&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case A:e:{for(var fe=z.key;_!==null;){if(_.key===fe){if(fe=z.type,fe===G){if(_.tag===7){a(O,_.sibling),Y=u(_,z.props.children),Y.return=O,O=Y;break e}}else if(_.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===C&&Pn(fe)===_.type){a(O,_.sibling),Y=u(_,z.props),Ai(Y,z),Y.return=O,O=Y;break e}a(O,_);break}else t(O,_);_=_.sibling}z.type===G?(Y=Kn(z.props.children,O.mode,Y,z.key),Y.return=O,O=Y):(Y=Ku(z.type,z.key,z.props,null,O.mode,Y),Ai(Y,z),Y.return=O,O=Y)}return f(O);case H:e:{for(fe=z.key;_!==null;){if(_.key===fe)if(_.tag===4&&_.stateNode.containerInfo===z.containerInfo&&_.stateNode.implementation===z.implementation){a(O,_.sibling),Y=u(_,z.children||[]),Y.return=O,O=Y;break e}else{a(O,_);break}else t(O,_);_=_.sibling}Y=Vs(z,O.mode,Y),Y.return=O,O=Y}return f(O);case C:return z=Pn(z),ke(O,_,z,Y)}if(oe(z))return ae(O,_,z,Y);if(pe(z)){if(fe=pe(z),typeof fe!="function")throw Error(o(150));return z=fe.call(z),me(O,_,z,Y)}if(typeof z.then=="function")return ke(O,_,er(z),Y);if(z.$$typeof===W)return ke(O,_,Wu(O,z),Y);tr(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,_!==null&&_.tag===6?(a(O,_.sibling),Y=u(_,z),Y.return=O,O=Y):(a(O,_),Y=Qs(z,O.mode,Y),Y.return=O,O=Y),f(O)):a(O,_)}return function(O,_,z,Y){try{Di=0;var fe=ke(O,_,z,Y);return xl=null,fe}catch(re){if(re===Nl||re===Pu)throw re;var je=Kt(29,re,null,O.mode);return je.lanes=Y,je.return=O,je}finally{}}}var el=Nd(!0),xd=Nd(!1),yn=!1;function to(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ye&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=ku(e),pd(e,null,a),t}return Zu(e,l,t,a),ku(e)}function zi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Nu(e,a)}}function no(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?u=s=f:s=s.next=f,a=a.next}while(a!==null);s===null?u=s=t:s=s.next=t}else u=s=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var lo=!1;function Mi(){if(lo){var e=Ul;if(e!==null)throw e}}function Ci(e,t,a,l){lo=!1;var u=e.updateQueue;yn=!1;var s=u.firstBaseUpdate,f=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var S=v,M=S.next;S.next=null,f===null?s=M:f.next=M,f=S;var B=e.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==f&&(v===null?B.firstBaseUpdate=M:v.next=M,B.lastBaseUpdate=S))}if(s!==null){var V=u.baseState;f=0,B=M=S=null,v=s;do{var N=v.lane&-536870913,L=N!==v.lane;if(L?(Ce&N)===N:(l&N)===N){N!==0&&N===Cl&&(lo=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,me=v;N=t;var ke=a;switch(me.tag){case 1:if(ae=me.payload,typeof ae=="function"){V=ae.call(ke,V,N);break e}V=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=me.payload,N=typeof ae=="function"?ae.call(ke,V,N):ae,N==null)break e;V=g({},V,N);break e;case 2:yn=!0}}N=v.callback,N!==null&&(e.flags|=64,L&&(e.flags|=8192),L=u.callbacks,L===null?u.callbacks=[N]:L.push(N))}else L={lane:N,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(M=B=L,S=V):B=B.next=L,f|=N;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;L=v,v=L.next,L.next=null,u.lastBaseUpdate=L,u.shared.pending=null}}while(!0);B===null&&(S=V),u.baseState=S,u.firstBaseUpdate=M,u.lastBaseUpdate=B,s===null&&(u.shared.lanes=0),wn|=f,e.lanes=f,e.memoizedState=V}}function Ld(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Hd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ld(a[e],t)}var Ll=w(null),ar=w(0);function Bd(e,t){e=en,k(ar,e),k(Ll,t),en=e|t.baseLanes}function io(){k(ar,en),k(Ll,Ll.current)}function uo(){en=ar.current,j(Ll),j(ar)}var Jt=w(null),oa=null;function gn(e){var t=e.alternate;k(st,st.current&1),k(Jt,e),oa===null&&(t===null||Ll.current!==null||t.memoizedState!==null)&&(oa=e)}function ro(e){k(st,st.current),k(Jt,e),oa===null&&(oa=e)}function jd(e){e.tag===22?(k(st,st.current),k(Jt,e),oa===null&&(oa=e)):bn()}function bn(){k(st,st.current),k(Jt,Jt.current)}function Ft(e){j(Jt),oa===e&&(oa=null),j(st)}var st=w(0);function nr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||mc(a)||yc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 ka=0,we=null,Xe=null,yt=null,lr=!1,Hl=!1,tl=!1,ir=0,Ui=0,Bl=null,Ug=0;function lt(){throw Error(o(321))}function so(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!kt(e[a],t[a]))return!1;return!0}function oo(e,t,a,l,u,s){return ka=s,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,x.H=e===null||e.memoizedState===null?Eh:To,tl=!1,s=a(l,u),tl=!1,Hl&&(s=Yd(t,a,l,u)),qd(e),s}function qd(e){x.H=Li;var t=Xe!==null&&Xe.next!==null;if(ka=0,yt=Xe=we=null,lr=!1,Ui=0,Bl=null,t)throw Error(o(300));e===null||vt||(e=e.dependencies,e!==null&&Fu(e)&&(vt=!0))}function Yd(e,t,a,l){we=e;var u=0;do{if(Hl&&(Bl=null),Ui=0,Hl=!1,25<=u)throw Error(o(301));if(u+=1,yt=Xe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}x.H=wh,s=t(a,l)}while(Hl);return s}function Ng(){var e=x.H,t=e.useState()[0];return t=typeof t.then=="function"?Ni(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(we.flags|=1024),t}function co(){var e=ir!==0;return ir=0,e}function fo(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ho(e){if(lr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lr=!1}ka=0,yt=Xe=we=null,Hl=!1,Ui=ir=0,Bl=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?we.memoizedState=yt=e:yt=yt.next=e,yt}function ot(){if(Xe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=yt===null?we.memoizedState:yt.next;if(t!==null)yt=t,Xe=e;else{if(e===null)throw we.alternate===null?Error(o(467)):Error(o(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},yt===null?we.memoizedState=yt=e:yt=yt.next=e}return yt}function ur(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ni(e){var t=Ui;return Ui+=1,Bl===null&&(Bl=[]),e=Md(Bl,e,t),t=we,(yt===null?t.memoizedState:yt.next)===null&&(t=t.alternate,x.H=t===null||t.memoizedState===null?Eh:To),e}function rr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ni(e);if(e.$$typeof===W)return Tt(e)}throw Error(o(438,String(e)))}function mo(e){var t=null,a=we.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=we.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ur(),we.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Te;return t.index++,a}function Ka(e,t){return typeof t=="function"?t(e):t}function sr(e){var t=ot();return yo(t,Xe,e)}function yo(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var u=e.baseQueue,s=l.pending;if(s!==null){if(u!==null){var f=u.next;u.next=s.next,s.next=f}t.baseQueue=u=s,l.pending=null}if(s=e.baseState,u===null)e.memoizedState=s;else{t=u.next;var v=f=null,S=null,M=t,B=!1;do{var V=M.lane&-536870913;if(V!==M.lane?(Ce&V)===V:(ka&V)===V){var N=M.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),V===Cl&&(B=!0);else if((ka&N)===N){M=M.next,N===Cl&&(B=!0);continue}else V={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(v=S=V,f=s):S=S.next=V,we.lanes|=N,wn|=N;V=M.action,tl&&a(s,V),s=M.hasEagerState?M.eagerState:a(s,V)}else N={lane:V,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(v=S=N,f=s):S=S.next=N,we.lanes|=V,wn|=V;M=M.next}while(M!==null&&M!==t);if(S===null?f=s:S.next=v,!kt(s,e.memoizedState)&&(vt=!0,B&&(a=Ul,a!==null)))throw a;e.memoizedState=s,e.baseState=f,e.baseQueue=S,l.lastRenderedState=s}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function vo(e){var t=ot(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,s=t.memoizedState;if(u!==null){a.pending=null;var f=u=u.next;do s=e(s,f.action),f=f.next;while(f!==u);kt(s,t.memoizedState)||(vt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function Gd(e,t,a){var l=we,u=ot(),s=Ne;if(s){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!kt((Xe||u).memoizedState,a);if(f&&(u.memoizedState=a,vt=!0),u=u.queue,bo(Xd.bind(null,l,u,e),[e]),u.getSnapshot!==t||f||yt!==null&&yt.memoizedState.tag&1){if(l.flags|=2048,jl(9,{destroy:void 0},Vd.bind(null,l,u,a,t),null),Fe===null)throw Error(o(349));s||(ka&127)!==0||Qd(l,t,a)}return a}function Qd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=we.updateQueue,t===null?(t=ur(),we.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Vd(e,t,a,l){t.value=a,t.getSnapshot=l,Zd(t)&&kd(e)}function Xd(e,t,a){return a(function(){Zd(t)&&kd(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!kt(e,a)}catch{return!0}}function kd(e){var t=kn(e,2);t!==null&&Vt(t,e,2)}function po(e){var t=Ht();if(typeof e=="function"){var a=e;if(e=a(),tl){St(!0);try{a()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function Kd(e,t,a,l){return e.baseState=a,yo(e,Xe,typeof l=="function"?l:Ka)}function xg(e,t,a,l,u){if(fr(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};x.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,Jd(t,s)):(s.next=a.next,t.pending=a.next=s)}}function Jd(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var s=x.T,f={};x.T=f;try{var v=a(u,l),S=x.S;S!==null&&S(f,v),Fd(e,t,v)}catch(M){go(e,t,M)}finally{s!==null&&f.types!==null&&(s.types=f.types),x.T=s}}else try{s=a(u,l),Fd(e,t,s)}catch(M){go(e,t,M)}}function Fd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Wd(e,t,l)},function(l){return go(e,t,l)}):Wd(e,t,a)}function Wd(e,t,a){t.status="fulfilled",t.value=a,$d(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Jd(e,a)))}function go(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,$d(t),t=t.next;while(t!==l)}e.action=null}function $d(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pd(e,t){return t}function Id(e,t){if(Ne){var a=Fe.formState;if(a!==null){e:{var l=we;if(Ne){if(et){t:{for(var u=et,s=sa;u.nodeType!==8;){if(!s){u=null;break t}if(u=ca(u.nextSibling),u===null){u=null;break t}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){et=ca(u.nextSibling),l=u.data==="F!";break e}}hn(l)}l=!1}l&&(t=a[0])}}return a=Ht(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pd,lastRenderedState:t},a.queue=l,a=gh.bind(null,we,l),l.dispatch=a,l=po(!1),s=Ro.bind(null,we,!1,l.queue),l=Ht(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=xg.bind(null,we,u,s,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function eh(e){var t=ot();return th(t,Xe,e)}function th(e,t,a){if(t=yo(e,t,Pd)[0],e=sr(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ni(t)}catch(f){throw f===Nl?Pu:f}else l=t;t=ot();var u=t.queue,s=u.dispatch;return a!==t.memoizedState&&(we.flags|=2048,jl(9,{destroy:void 0},Lg.bind(null,u,a),null)),[l,s,e]}function Lg(e,t){e.action=t}function ah(e){var t=ot(),a=Xe;if(a!==null)return th(t,a,e);ot(),t=t.memoizedState,a=ot();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function jl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=we.updateQueue,t===null&&(t=ur(),we.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function nh(){return ot().memoizedState}function or(e,t,a,l){var u=Ht();we.flags|=e,u.memoizedState=jl(1|t,{destroy:void 0},a,l===void 0?null:l)}function cr(e,t,a,l){var u=ot();l=l===void 0?null:l;var s=u.memoizedState.inst;Xe!==null&&l!==null&&so(l,Xe.memoizedState.deps)?u.memoizedState=jl(t,s,a,l):(we.flags|=e,u.memoizedState=jl(1|t,s,a,l))}function lh(e,t){or(8390656,8,e,t)}function bo(e,t){cr(2048,8,e,t)}function Hg(e){we.flags|=4;var t=we.updateQueue;if(t===null)t=ur(),we.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ih(e){var t=ot().memoizedState;return Hg({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function uh(e,t){return cr(4,2,e,t)}function rh(e,t){return cr(4,4,e,t)}function sh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function oh(e,t,a){a=a!=null?a.concat([e]):null,cr(4,4,sh.bind(null,t,e),a)}function So(){}function ch(e,t){var a=ot();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&so(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function fh(e,t){var a=ot();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&so(t,l[1]))return l[0];if(l=e(),tl){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[l,t],l}function Eo(e,t,a){return a===void 0||(ka&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=dm(),we.lanes|=e,wn|=e,a)}function dh(e,t,a,l){return kt(a,t)?a:Ll.current!==null?(e=Eo(e,a,l),kt(e,t)||(vt=!0),e):(ka&42)===0||(ka&1073741824)!==0&&(Ce&261930)===0?(vt=!0,e.memoizedState=a):(e=dm(),we.lanes|=e,wn|=e,t)}function hh(e,t,a,l,u){var s=Z.p;Z.p=s!==0&&8>s?s:8;var f=x.T,v={};x.T=v,Ro(e,!1,t,a);try{var S=u(),M=x.S;if(M!==null&&M(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var B=Cg(S,l);xi(e,t,B,Pt(e))}else xi(e,t,l,Pt(e))}catch(V){xi(e,t,{then:function(){},status:"rejected",reason:V},Pt())}finally{Z.p=s,f!==null&&v.types!==null&&(f.types=v.types),x.T=f}}function Bg(){}function wo(e,t,a,l){if(e.tag!==5)throw Error(o(476));var u=mh(e).queue;hh(e,u,t,ne,a===null?Bg:function(){return yh(e),a(l)})}function mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yh(e){var t=mh(e);t.next===null&&(t=e.alternate.memoizedState),xi(e,t.next.queue,{},Pt())}function _o(){return Tt($i)}function vh(){return ot().memoizedState}function ph(){return ot().memoizedState}function jg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Pt();e=vn(a);var l=pn(t,e,a);l!==null&&(Vt(l,t,a),zi(l,t,a)),t={cache:$s()},e.payload=t;return}t=t.return}}function qg(e,t,a){var l=Pt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fr(e)?bh(t,a):(a=Ys(e,t,a,l),a!==null&&(Vt(a,e,l),Sh(a,t,l)))}function gh(e,t,a){var l=Pt();xi(e,t,a,l)}function xi(e,t,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(fr(e))bh(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,v=s(f,a);if(u.hasEagerState=!0,u.eagerState=v,kt(v,f))return Zu(e,t,u,0),Fe===null&&Xu(),!1}catch{}finally{}if(a=Ys(e,t,u,l),a!==null)return Vt(a,e,l),Sh(a,t,l),!0}return!1}function Ro(e,t,a,l){if(l={lane:2,revertLane:ac(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fr(e)){if(t)throw Error(o(479))}else t=Ys(e,a,l,2),t!==null&&Vt(t,e,2)}function fr(e){var t=e.alternate;return e===we||t!==null&&t===we}function bh(e,t){Hl=lr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Sh(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Nu(e,a)}}var Li={readContext:Tt,use:rr,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};Li.useEffectEvent=lt;var Eh={readContext:Tt,use:rr,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:lh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,or(4194308,4,sh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return or(4194308,4,e,t)},useInsertionEffect:function(e,t){or(4,2,e,t)},useMemo:function(e,t){var a=Ht();t=t===void 0?null:t;var l=e();if(tl){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Ht();if(a!==void 0){var u=a(t);if(tl){St(!0);try{a(t)}finally{St(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=qg.bind(null,we,e),[l.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=po(e);var t=e.queue,a=gh.bind(null,we,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:So,useDeferredValue:function(e,t){var a=Ht();return Eo(a,e,t)},useTransition:function(){var e=po(!1);return e=hh.bind(null,we,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=we,u=Ht();if(Ne){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Fe===null)throw Error(o(349));(Ce&127)!==0||Qd(l,t,a)}u.memoizedState=a;var s={value:a,getSnapshot:t};return u.queue=s,lh(Xd.bind(null,l,s,e),[e]),l.flags|=2048,jl(9,{destroy:void 0},Vd.bind(null,l,s,a,t),null),a},useId:function(){var e=Ht(),t=Fe.identifierPrefix;if(Ne){var a=Ca,l=Ma;a=(l&~(1<<32-zt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ir++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Ug++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_o,useFormState:Id,useActionState:Id,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ro.bind(null,we,!0,a),a.dispatch=t,[e,t]},useMemoCache:mo,useCacheRefresh:function(){return Ht().memoizedState=jg.bind(null,we)},useEffectEvent:function(e){var t=Ht(),a={impl:e};return t.memoizedState=a,function(){if((Ye&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},To={readContext:Tt,use:rr,useCallback:ch,useContext:Tt,useEffect:bo,useImperativeHandle:oh,useInsertionEffect:uh,useLayoutEffect:rh,useMemo:fh,useReducer:sr,useRef:nh,useState:function(){return sr(Ka)},useDebugValue:So,useDeferredValue:function(e,t){var a=ot();return dh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=sr(Ka)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:Gd,useId:vh,useHostTransitionStatus:_o,useFormState:eh,useActionState:eh,useOptimistic:function(e,t){var a=ot();return Kd(a,Xe,e,t)},useMemoCache:mo,useCacheRefresh:ph};To.useEffectEvent=ih;var wh={readContext:Tt,use:rr,useCallback:ch,useContext:Tt,useEffect:bo,useImperativeHandle:oh,useInsertionEffect:uh,useLayoutEffect:rh,useMemo:fh,useReducer:vo,useRef:nh,useState:function(){return vo(Ka)},useDebugValue:So,useDeferredValue:function(e,t){var a=ot();return Xe===null?Eo(a,e,t):dh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=vo(Ka)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:Gd,useId:vh,useHostTransitionStatus:_o,useFormState:ah,useActionState:ah,useOptimistic:function(e,t){var a=ot();return Xe!==null?Kd(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:mo,useCacheRefresh:ph};wh.useEffectEvent=ih;function Oo(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Do={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Pt(),u=vn(l);u.payload=t,a!=null&&(u.callback=a),t=pn(e,u,l),t!==null&&(Vt(t,e,l),zi(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Pt(),u=vn(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=pn(e,u,l),t!==null&&(Vt(t,e,l),zi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Pt(),l=vn(a);l.tag=2,t!=null&&(l.callback=t),t=pn(e,l,a),t!==null&&(Vt(t,e,a),zi(t,e,a))}};function _h(e,t,a,l,u,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,f):t.prototype&&t.prototype.isPureReactComponent?!Ei(a,l)||!Ei(u,s):!0}function Rh(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Do.enqueueReplaceState(t,t.state,null)}function al(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Th(e){Vu(e)}function Oh(e){console.error(e)}function Dh(e){Vu(e)}function dr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ah(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ao(e,t,a){return a=vn(a),a.tag=3,a.payload={element:null},a.callback=function(){dr(e,t)},a}function zh(e){return e=vn(e),e.tag=3,e}function Mh(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var s=l.value;e.payload=function(){return u(s)},e.callback=function(){Ah(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Ah(t,a,l),typeof u!="function"&&(_n===null?_n=new Set([this]):_n.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function Yg(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ml(t,a,u,!0),a=Jt.current,a!==null){switch(a.tag){case 31:case 13:return oa===null?Rr():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===Iu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Io(e,l,u)),!1;case 22:return a.flags|=65536,l===Iu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Io(e,l,u)),!1}throw Error(o(435,a.tag))}return Io(e,l,u),Rr(),!1}if(Ne)return t=Jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==ks&&(e=Error(o(422),{cause:l}),Ri(ia(e,a)))):(l!==ks&&(t=Error(o(423),{cause:l}),Ri(ia(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=ia(l,a),u=Ao(e.stateNode,l,u),no(e,u),it!==4&&(it=2)),!1;var s=Error(o(520),{cause:l});if(s=ia(s,a),Vi===null?Vi=[s]:Vi.push(s),it!==4&&(it=2),t===null)return!0;l=ia(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Ao(a.stateNode,l,e),no(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(_n===null||!_n.has(s))))return a.flags|=65536,u&=-u,a.lanes|=u,u=zh(u),Mh(u,e,a,l),no(a,u),!1}a=a.return}while(a!==null);return!1}var zo=Error(o(461)),vt=!1;function Ot(e,t,a,l){t.child=e===null?xd(t,null,a,l):el(t,e.child,a,l)}function Ch(e,t,a,l,u){a=a.render;var s=t.ref;if("ref"in l){var f={};for(var v in l)v!=="ref"&&(f[v]=l[v])}else f=l;return Wn(t),l=oo(e,t,a,f,s,u),v=co(),e!==null&&!vt?(fo(e,t,u),Ja(e,t,u)):(Ne&&v&&Xs(t),t.flags|=1,Ot(e,t,l,u),t.child)}function Uh(e,t,a,l,u){if(e===null){var s=a.type;return typeof s=="function"&&!Gs(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,Nh(e,t,s,l,u)):(e=Ku(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Bo(e,u)){var f=s.memoizedProps;if(a=a.compare,a=a!==null?a:Ei,a(f,l)&&e.ref===t.ref)return Ja(e,t,u)}return t.flags|=1,e=Qa(s,l),e.ref=t.ref,e.return=t,t.child=e}function Nh(e,t,a,l,u){if(e!==null){var s=e.memoizedProps;if(Ei(s,l)&&e.ref===t.ref)if(vt=!1,t.pendingProps=l=s,Bo(e,u))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,Ja(e,t,u)}return Mo(e,t,a,l,u)}function xh(e,t,a,l){var u=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~s}else l=0,t.child=null;return Lh(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$u(t,s!==null?s.cachePool:null),s!==null?Bd(t,s):io(),jd(t);else return l=t.lanes=536870912,Lh(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?($u(t,s.cachePool),Bd(t,s),bn(),t.memoizedState=null):(e!==null&&$u(t,null),io(),bn());return Ot(e,t,u,a),t.child}function Hi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lh(e,t,a,l,u){var s=Is();return s=s===null?null:{parent:mt._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&$u(t,null),io(),jd(t),e!==null&&Ml(e,t,l,!0),t.childLanes=u,null}function hr(e,t){return t=yr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hh(e,t,a){return el(t,e.child,null,a),e=hr(t,t.pendingProps),e.flags|=2,Ft(t),t.memoizedState=null,e}function Gg(e,t,a){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(l.mode==="hidden")return e=hr(t,l),t.lanes=536870912,Hi(null,e);if(ro(t),(e=et)?(e=Jm(e,sa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fn!==null?{id:Ma,overflow:Ca}:null,retryLane:536870912,hydrationErrors:null},a=bd(e),a.return=t,t.child=a,Rt=t,et=null)):e=null,e===null)throw hn(t);return t.lanes=536870912,null}return hr(t,l)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(ro(t),u)if(t.flags&256)t.flags&=-257,t=Hh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(vt||Ml(e,t,a,!1),u=(a&e.childLanes)!==0,vt||u){if(l=Fe,l!==null&&(f=E(l,a),f!==0&&f!==s.retryLane))throw s.retryLane=f,kn(e,f),Vt(l,e,f),zo;Rr(),t=Hh(e,t,a)}else e=s.treeContext,et=ca(f.nextSibling),Rt=t,Ne=!0,dn=null,sa=!1,e!==null&&wd(t,e),t=hr(t,l),t.flags|=4096;return t}return e=Qa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Mo(e,t,a,l,u){return Wn(t),a=oo(e,t,a,l,void 0,u),l=co(),e!==null&&!vt?(fo(e,t,u),Ja(e,t,u)):(Ne&&l&&Xs(t),t.flags|=1,Ot(e,t,a,u),t.child)}function Bh(e,t,a,l,u,s){return Wn(t),t.updateQueue=null,a=Yd(t,l,a,u),qd(e),l=co(),e!==null&&!vt?(fo(e,t,s),Ja(e,t,s)):(Ne&&l&&Xs(t),t.flags|=1,Ot(e,t,a,s),t.child)}function jh(e,t,a,l,u){if(Wn(t),t.stateNode===null){var s=Ol,f=a.contextType;typeof f=="object"&&f!==null&&(s=Tt(f)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Do,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},to(t),f=a.contextType,s.context=typeof f=="object"&&f!==null?Tt(f):Ol,s.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Oo(t,a,f,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&Do.enqueueReplaceState(s,s.state,null),Ci(t,l,s,u),Mi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var v=t.memoizedProps,S=al(a,v);s.props=S;var M=s.context,B=a.contextType;f=Ol,typeof B=="object"&&B!==null&&(f=Tt(B));var V=a.getDerivedStateFromProps;B=typeof V=="function"||typeof s.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,B||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(v||M!==f)&&Rh(t,s,l,f),yn=!1;var N=t.memoizedState;s.state=N,Ci(t,l,s,u),Mi(),M=t.memoizedState,v||N!==M||yn?(typeof V=="function"&&(Oo(t,a,V,l),M=t.memoizedState),(S=yn||_h(t,a,S,l,N,M,f))?(B||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),s.props=l,s.state=M,s.context=f,l=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,ao(e,t),f=t.memoizedProps,B=al(a,f),s.props=B,V=t.pendingProps,N=s.context,M=a.contextType,S=Ol,typeof M=="object"&&M!==null&&(S=Tt(M)),v=a.getDerivedStateFromProps,(M=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==V||N!==S)&&Rh(t,s,l,S),yn=!1,N=t.memoizedState,s.state=N,Ci(t,l,s,u),Mi();var L=t.memoizedState;f!==V||N!==L||yn||e!==null&&e.dependencies!==null&&Fu(e.dependencies)?(typeof v=="function"&&(Oo(t,a,v,l),L=t.memoizedState),(B=yn||_h(t,a,B,l,N,L,S)||e!==null&&e.dependencies!==null&&Fu(e.dependencies))?(M||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,L,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,L,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),s.props=l,s.state=L,s.context=S,l=B):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,mr(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=el(t,e.child,null,u),t.child=el(t,null,a,u)):Ot(e,t,a,u),t.memoizedState=s.state,e=t.child):e=Ja(e,t,u),e}function qh(e,t,a,l){return Jn(),t.flags|=256,Ot(e,t,a,l),t.child}var Co={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uo(e){return{baseLanes:e,cachePool:Ad()}}function No(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=$t),e}function Yh(e,t,a){var l=t.pendingProps,u=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),f&&(u=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(u?gn(t):bn(),(e=et)?(e=Jm(e,sa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fn!==null?{id:Ma,overflow:Ca}:null,retryLane:536870912,hydrationErrors:null},a=bd(e),a.return=t,t.child=a,Rt=t,et=null)):e=null,e===null)throw hn(t);return yc(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,u?(bn(),u=t.mode,v=yr({mode:"hidden",children:v},u),l=Kn(l,u,a,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=Uo(a),l.childLanes=No(e,f,a),t.memoizedState=Co,Hi(null,l)):(gn(t),xo(t,v))}var S=e.memoizedState;if(S!==null&&(v=S.dehydrated,v!==null)){if(s)t.flags&256?(gn(t),t.flags&=-257,t=Lo(e,t,a)):t.memoizedState!==null?(bn(),t.child=e.child,t.flags|=128,t=null):(bn(),v=l.fallback,u=t.mode,l=yr({mode:"visible",children:l.children},u),v=Kn(v,u,a,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,el(t,e.child,null,a),l=t.child,l.memoizedState=Uo(a),l.childLanes=No(e,f,a),t.memoizedState=Co,t=Hi(null,l));else if(gn(t),yc(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var M=f.dgst;f=M,l=Error(o(419)),l.stack="",l.digest=f,Ri({value:l,source:null,stack:null}),t=Lo(e,t,a)}else if(vt||Ml(e,t,a,!1),f=(a&e.childLanes)!==0,vt||f){if(f=Fe,f!==null&&(l=E(f,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,kn(e,l),Vt(f,e,l),zo;mc(v)||Rr(),t=Lo(e,t,a)}else mc(v)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,et=ca(v.nextSibling),Rt=t,Ne=!0,dn=null,sa=!1,e!==null&&wd(t,e),t=xo(t,l.children),t.flags|=4096);return t}return u?(bn(),v=l.fallback,u=t.mode,S=e.child,M=S.sibling,l=Qa(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,M!==null?v=Qa(M,v):(v=Kn(v,u,a,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,Hi(null,l),l=t.child,v=e.child.memoizedState,v===null?v=Uo(a):(u=v.cachePool,u!==null?(S=mt._currentValue,u=u.parent!==S?{parent:S,pool:S}:u):u=Ad(),v={baseLanes:v.baseLanes|a,cachePool:u}),l.memoizedState=v,l.childLanes=No(e,f,a),t.memoizedState=Co,Hi(e.child,l)):(gn(t),a=e.child,e=a.sibling,a=Qa(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function xo(e,t){return t=yr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yr(e,t){return e=Kt(22,e,null,t),e.lanes=0,e}function Lo(e,t,a){return el(t,e.child,null,a),e=xo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Fs(e.return,t,a)}function Ho(e,t,a,l,u,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=u,f.treeForkCount=s)}function Qh(e,t,a){var l=t.pendingProps,u=l.revealOrder,s=l.tail;l=l.children;var f=st.current,v=(f&2)!==0;if(v?(f=f&1|2,t.flags|=128):f&=1,k(st,f),Ot(e,t,l,a),l=Ne?_i:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gh(e,a,t);else if(e.tag===19)Gh(e,a,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}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&nr(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Ho(t,!1,u,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&nr(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Ho(t,!0,a,null,s,l);break;case"together":Ho(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Ja(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),wn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ml(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Qa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Qa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Bo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fu(e)))}function Qg(e,t,a){switch(t.tag){case 3:ft(t,t.stateNode.containerInfo),mn(t,mt,e.memoizedState.cache),Jn();break;case 27:case 5:jn(t);break;case 4:ft(t,t.stateNode.containerInfo);break;case 10:mn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ro(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(gn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Yh(e,t,a):(gn(t),e=Ja(e,t,a),e!==null?e.sibling:null);gn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ml(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return Qh(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),k(st,st.current),l)break;return null;case 22:return t.lanes=0,xh(e,t,a,t.pendingProps);case 24:mn(t,mt,e.memoizedState.cache)}return Ja(e,t,a)}function Vh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Bo(e,a)&&(t.flags&128)===0)return vt=!1,Qg(e,t,a);vt=(e.flags&131072)!==0}else vt=!1,Ne&&(t.flags&1048576)!==0&&Ed(t,_i,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Pn(t.elementType),t.type=e,typeof e=="function")Gs(e)?(l=al(e,l),t.tag=1,t=jh(null,t,e,l,a)):(t.tag=0,t=Mo(null,t,e,l,a));else{if(e!=null){var u=e.$$typeof;if(u===ge){t.tag=11,t=Ch(null,t,e,l,a);break e}else if(u===te){t.tag=14,t=Uh(null,t,e,l,a);break e}}throw t=We(e)||e,Error(o(306,t,""))}}return t;case 0:return Mo(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=al(l,t.pendingProps),jh(e,t,l,u,a);case 3:e:{if(ft(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var s=t.memoizedState;u=s.element,ao(e,t),Ci(t,l,null,a);var f=t.memoizedState;if(l=f.cache,mn(t,mt,l),l!==s.cache&&Ws(t,[mt],a,!0),Mi(),l=f.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=qh(e,t,l,a);break e}else if(l!==u){u=ia(Error(o(424)),t),Ri(u),t=qh(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=ca(e.firstChild),Rt=t,Ne=!0,dn=null,sa=!0,a=xd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Jn(),l===u){t=Ja(e,t,a);break e}Ot(e,t,l,a)}t=t.child}return t;case 26:return mr(e,t),e===null?(a=ey(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,l=Cr(ve.current).createElement(a),l[P]=t,l[I]=e,Dt(l,a,e),$e(l),t.stateNode=l):t.memoizedState=ey(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return jn(t),e===null&&Ne&&(l=t.stateNode=$m(t.type,t.pendingProps,ve.current),Rt=t,sa=!0,u=et,Dn(t.type)?(vc=u,et=ca(l.firstChild)):et=u),Ot(e,t,t.pendingProps.children,a),mr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((u=l=et)&&(l=g0(l,t.type,t.pendingProps,sa),l!==null?(t.stateNode=l,Rt=t,et=ca(l.firstChild),sa=!1,u=!0):u=!1),u||hn(t)),jn(t),u=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,l=s.children,fc(u,s)?l=null:f!==null&&fc(u,f)&&(t.flags|=32),t.memoizedState!==null&&(u=oo(e,t,Ng,null,null,a),$i._currentValue=u),mr(e,t),Ot(e,t,l,a),t.child;case 6:return e===null&&Ne&&((e=a=et)&&(a=b0(a,t.pendingProps,sa),a!==null?(t.stateNode=a,Rt=t,et=null,e=!0):e=!1),e||hn(t)),null;case 13:return Yh(e,t,a);case 4:return ft(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=el(t,null,l,a):Ot(e,t,l,a),t.child;case 11:return Ch(e,t,t.type,t.pendingProps,a);case 7:return Ot(e,t,t.pendingProps,a),t.child;case 8:return Ot(e,t,t.pendingProps.children,a),t.child;case 12:return Ot(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,mn(t,t.type,l.value),Ot(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Wn(t),u=Tt(u),l=l(u),t.flags|=1,Ot(e,t,l,a),t.child;case 14:return Uh(e,t,t.type,t.pendingProps,a);case 15:return Nh(e,t,t.type,t.pendingProps,a);case 19:return Qh(e,t,a);case 31:return Gg(e,t,a);case 22:return xh(e,t,a,t.pendingProps);case 24:return Wn(t),l=Tt(mt),e===null?(u=Is(),u===null&&(u=Fe,s=$s(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=a),u=s),t.memoizedState={parent:l,cache:u},to(t),mn(t,mt,u)):((e.lanes&a)!==0&&(ao(e,t),Ci(t,null,null,a),Mi()),u=e.memoizedState,s=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),mn(t,mt,l)):(l=s.cache,mn(t,mt,l),l!==u.cache&&Ws(t,[mt],a,!0))),Ot(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Fa(e){e.flags|=4}function jo(e,t,a,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(vm())e.flags|=8192;else throw In=Iu,eo}else e.flags&=-16777217}function Xh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!iy(t))if(vm())e.flags|=8192;else throw In=Iu,eo}function vr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?hi():536870912,e.lanes|=t,Ql|=t)}function Bi(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Vg(e,t,a){var l=t.pendingProps;switch(Zs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Za(mt),Ke(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(zl(t)?Fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ks())),tt(t),null;case 26:var u=t.type,s=t.memoizedState;return e===null?(Fa(t),s!==null?(tt(t),Xh(t,s)):(tt(t),jo(t,u,null,l,a))):s?s!==e.memoizedState?(Fa(t),tt(t),Xh(t,s)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Fa(t),tt(t),jo(t,u,e,l,a)),null;case 27:if(fl(t),a=ve.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return tt(t),null}e=$.current,zl(t)?_d(t):(e=$m(u,l,a),t.stateNode=e,Fa(t))}return tt(t),null;case 5:if(fl(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return tt(t),null}if(s=$.current,zl(t))_d(t);else{var f=Cr(ve.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}s[P]=t,s[I]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(Dt(s,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Fa(t)}}return tt(t),jo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Fa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=ve.current,zl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=Rt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[P]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Ym(e.nodeValue,a)),e||hn(t,!0)}else e=Cr(e).createTextNode(l),e[P]=t,t.stateNode=e}return tt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=zl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[P]=t}else Jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else a=Ks(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(o(558))}return tt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=zl(t),l!==null&&l.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[P]=t}else Jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),u=!1}else u=Ks(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==u&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),vr(t,t.updateQueue),tt(t),null);case 4:return Ke(),e===null&&uc(t.stateNode.containerInfo),tt(t),null;case 10:return Za(t.type),tt(t),null;case 19:if(j(st),l=t.memoizedState,l===null)return tt(t),null;if(u=(t.flags&128)!==0,s=l.rendering,s===null)if(u)Bi(l,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=nr(e),s!==null){for(t.flags|=128,Bi(l,!1),e=s.updateQueue,t.updateQueue=e,vr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)gd(a,e),a=a.sibling;return k(st,st.current&1|2),Ne&&Va(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>Er&&(t.flags|=128,u=!0,Bi(l,!1),t.lanes=4194304)}else{if(!u)if(e=nr(s),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,vr(t,e),Bi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Ne)return tt(t),null}else 2*xt()-l.renderingStartTime>Er&&a!==536870912&&(t.flags|=128,u=!0,Bi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,a=st.current,k(st,u?a&1|2:a&1),Ne&&Va(t,l.treeForkCount),e):(tt(t),null);case 22:case 23:return Ft(t),uo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),a=t.updateQueue,a!==null&&vr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&j($n),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Za(mt),tt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Xg(e,t){switch(Zs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Za(mt),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fl(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(o(340));Jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(st),null;case 4:return Ke(),null;case 10:return Za(t.type),null;case 22:case 23:return Ft(t),uo(),e!==null&&j($n),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Za(mt),null;case 25:return null;default:return null}}function Zh(e,t){switch(Zs(t),t.tag){case 3:Za(mt),Ke();break;case 26:case 27:case 5:fl(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:j(st);break;case 10:Za(t.type);break;case 22:case 23:Ft(t),uo(),e!==null&&j($n);break;case 24:Za(mt)}}function ji(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var s=a.create,f=a.inst;l=s(),f.destroy=l}a=a.next}while(a!==u)}}catch(v){Ve(t,t.return,v)}}function Sn(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var s=u.next;l=s;do{if((l.tag&e)===e){var f=l.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,u=t;var S=a,M=v;try{M()}catch(B){Ve(u,S,B)}}}l=l.next}while(l!==s)}}catch(B){Ve(t,t.return,B)}}function kh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Hd(t,a)}catch(l){Ve(e,e.return,l)}}}function Kh(e,t,a){a.props=al(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ve(e,t,l)}}function qi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){Ve(e,t,u)}}function Ua(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Ve(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ve(e,t,u)}else a.current=null}function Jh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Ve(e,e.return,u)}}function qo(e,t,a){try{var l=e.stateNode;d0(l,e.type,a,t),l[I]=t}catch(u){Ve(e,e.return,u)}}function Fh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dn(e.type)||e.tag===4}function Yo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fh(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.tag===27&&Dn(e.type)||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 Go(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ya));else if(l!==4&&(l===27&&Dn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Go(e,t,a),e=e.sibling;e!==null;)Go(e,t,a),e=e.sibling}function pr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Dn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(pr(e,t,a),e=e.sibling;e!==null;)pr(e,t,a),e=e.sibling}function Wh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Dt(t,l,a),t[P]=e,t[I]=a}catch(s){Ve(e,e.return,s)}}var Wa=!1,pt=!1,Qo=!1,$h=typeof WeakSet=="function"?WeakSet:Set,wt=null;function Zg(e,t){if(e=e.containerInfo,oc=jr,e=od(e),xs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var f=0,v=-1,S=-1,M=0,B=0,V=e,N=null;t:for(;;){for(var L;V!==a||u!==0&&V.nodeType!==3||(v=f+u),V!==s||l!==0&&V.nodeType!==3||(S=f+l),V.nodeType===3&&(f+=V.nodeValue.length),(L=V.firstChild)!==null;)N=V,V=L;for(;;){if(V===e)break t;if(N===a&&++M===u&&(v=f),N===s&&++B===l&&(S=f),(L=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=L}a=v===-1||S===-1?null:{start:v,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(cc={focusedElem:e,selectionRange:a},jr=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){switch(t=wt,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,u=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var ae=al(a.type,u);e=l.getSnapshotBeforeUpdate(ae,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(me){Ve(a,a.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)hc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,wt=e;break}wt=t.return}}function Ph(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Pa(e,a),l&4&&ji(5,a);break;case 1:if(Pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Ve(a,a.return,f)}else{var u=al(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ve(a,a.return,f)}}l&64&&kh(a),l&512&&qi(a,a.return);break;case 3:if(Pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Hd(e,t)}catch(f){Ve(a,a.return,f)}}break;case 27:t===null&&l&4&&Wh(a);case 26:case 5:Pa(e,a),t===null&&l&4&&Jh(a),l&512&&qi(a,a.return);break;case 12:Pa(e,a);break;case 31:Pa(e,a),l&4&&tm(e,a);break;case 13:Pa(e,a),l&4&&am(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=e0.bind(null,a),S0(e,a))));break;case 22:if(l=a.memoizedState!==null||Wa,!l){t=t!==null&&t.memoizedState!==null||pt,u=Wa;var s=pt;Wa=l,(pt=t)&&!s?Ia(e,a,(a.subtreeFlags&8772)!==0):Pa(e,a),Wa=u,pt=s}break;case 30:break;default:Pa(e,a)}}function Ih(e){var t=e.alternate;t!==null&&(e.alternate=null,Ih(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Je(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var at=null,qt=!1;function $a(e,t,a){for(a=a.child;a!==null;)em(e,t,a),a=a.sibling}function em(e,t,a){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(ja,a)}catch{}switch(a.tag){case 26:pt||Ua(a,t),$a(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pt||Ua(a,t);var l=at,u=qt;Dn(a.type)&&(at=a.stateNode,qt=!1),$a(e,t,a),Ji(a.stateNode),at=l,qt=u;break;case 5:pt||Ua(a,t);case 6:if(l=at,u=qt,at=null,$a(e,t,a),at=l,qt=u,at!==null)if(qt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(a.stateNode)}catch(s){Ve(a,t,s)}else try{at.removeChild(a.stateNode)}catch(s){Ve(a,t,s)}break;case 18:at!==null&&(qt?(e=at,km(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wl(e)):km(at,a.stateNode));break;case 4:l=at,u=qt,at=a.stateNode.containerInfo,qt=!0,$a(e,t,a),at=l,qt=u;break;case 0:case 11:case 14:case 15:Sn(2,a,t),pt||Sn(4,a,t),$a(e,t,a);break;case 1:pt||(Ua(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Kh(a,t,l)),$a(e,t,a);break;case 21:$a(e,t,a);break;case 22:pt=(l=pt)||a.memoizedState!==null,$a(e,t,a),pt=l;break;default:$a(e,t,a)}}function tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wl(e)}catch(a){Ve(t,t.return,a)}}}function am(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wl(e)}catch(a){Ve(t,t.return,a)}}function kg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $h),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $h),t;default:throw Error(o(435,e.tag))}}function gr(e,t){var a=kg(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var u=t0.bind(null,e,l);l.then(u,u)}})}function Yt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],s=e,f=t,v=f;e:for(;v!==null;){switch(v.tag){case 27:if(Dn(v.type)){at=v.stateNode,qt=!1;break e}break;case 5:at=v.stateNode,qt=!1;break e;case 3:case 4:at=v.stateNode.containerInfo,qt=!0;break e}v=v.return}if(at===null)throw Error(o(160));em(s,f,u),at=null,qt=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)nm(t,e),t=t.sibling}var _a=null;function nm(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Gt(e),l&4&&(Sn(3,e,e.return),ji(3,e),Sn(5,e,e.return));break;case 1:Yt(t,e),Gt(e),l&512&&(pt||a===null||Ua(a,a.return)),l&64&&Wa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=_a;if(Yt(t,e),Gt(e),l&512&&(pt||a===null||Ua(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":s=u.getElementsByTagName("title")[0],(!s||s[De]||s[P]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(l),u.head.insertBefore(s,u.querySelector("head > title"))),Dt(s,l,a),s[P]=e,$e(s),l=s;break e;case"link":var f=ny("link","href",u).get(l+(a.href||""));if(f){for(var v=0;v<f.length;v++)if(s=f[v],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(v,1);break t}}s=u.createElement(l),Dt(s,l,a),u.head.appendChild(s);break;case"meta":if(f=ny("meta","content",u).get(l+(a.content||""))){for(v=0;v<f.length;v++)if(s=f[v],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(v,1);break t}}s=u.createElement(l),Dt(s,l,a),u.head.appendChild(s);break;default:throw Error(o(468,l))}s[P]=e,$e(s),l=s}e.stateNode=l}else ly(u,e.type,e.stateNode);else e.stateNode=ay(u,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?ly(u,e.type,e.stateNode):ay(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&qo(e,e.memoizedProps,a.memoizedProps)}break;case 27:Yt(t,e),Gt(e),l&512&&(pt||a===null||Ua(a,a.return)),a!==null&&l&4&&qo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Yt(t,e),Gt(e),l&512&&(pt||a===null||Ua(a,a.return)),e.flags&32){u=e.stateNode;try{bl(u,"")}catch(ae){Ve(e,e.return,ae)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,qo(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Qo=!0);break;case 6:if(Yt(t,e),Gt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ae){Ve(e,e.return,ae)}}break;case 3:if(xr=null,u=_a,_a=Ur(t.containerInfo),Yt(t,e),_a=u,Gt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Wl(t.containerInfo)}catch(ae){Ve(e,e.return,ae)}Qo&&(Qo=!1,lm(e));break;case 4:l=_a,_a=Ur(e.stateNode.containerInfo),Yt(t,e),Gt(e),_a=l;break;case 12:Yt(t,e),Gt(e);break;case 31:Yt(t,e),Gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,gr(e,l)));break;case 13:Yt(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Sr=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,gr(e,l)));break;case 22:u=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,M=Wa,B=pt;if(Wa=M||u,pt=B||S,Yt(t,e),pt=B,Wa=M,Gt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||S||Wa||pt||nl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(s=S.stateNode,u)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=S.stateNode;var V=S.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(ae){Ve(S,S.return,ae)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=u?"":S.memoizedProps}catch(ae){Ve(S,S.return,ae)}}}else if(t.tag===18){if(a===null){S=t;try{var L=S.stateNode;u?Km(L,!0):Km(S.stateNode,!1)}catch(ae){Ve(S,S.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,gr(e,a))));break;case 19:Yt(t,e),Gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,gr(e,l)));break;case 30:break;case 21:break;default:Yt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Fh(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,s=Yo(e);pr(e,s,u);break;case 5:var f=a.stateNode;a.flags&32&&(bl(f,""),a.flags&=-33);var v=Yo(e);pr(e,v,f);break;case 3:case 4:var S=a.stateNode.containerInfo,M=Yo(e);Go(e,M,S);break;default:throw Error(o(161))}}catch(B){Ve(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ph(e,t.alternate,t),t=t.sibling}function nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Sn(4,t,t.return),nl(t);break;case 1:Ua(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Kh(t,t.return,a),nl(t);break;case 27:Ji(t.stateNode);case 26:case 5:Ua(t,t.return),nl(t);break;case 22:t.memoizedState===null&&nl(t);break;case 30:nl(t);break;default:nl(t)}e=e.sibling}}function Ia(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:Ia(u,s,a),ji(4,s);break;case 1:if(Ia(u,s,a),l=s,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(M){Ve(l,l.return,M)}if(l=s,u=l.updateQueue,u!==null){var v=l.stateNode;try{var S=u.shared.hiddenCallbacks;if(S!==null)for(u.shared.hiddenCallbacks=null,u=0;u<S.length;u++)Ld(S[u],v)}catch(M){Ve(l,l.return,M)}}a&&f&64&&kh(s),qi(s,s.return);break;case 27:Wh(s);case 26:case 5:Ia(u,s,a),a&&l===null&&f&4&&Jh(s),qi(s,s.return);break;case 12:Ia(u,s,a);break;case 31:Ia(u,s,a),a&&f&4&&tm(u,s);break;case 13:Ia(u,s,a),a&&f&4&&am(u,s);break;case 22:s.memoizedState===null&&Ia(u,s,a),qi(s,s.return);break;case 30:break;default:Ia(u,s,a)}t=t.sibling}}function Vo(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ti(a))}function Xo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e))}function Ra(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)im(e,t,a,l),t=t.sibling}function im(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Ra(e,t,a,l),u&2048&&ji(9,t);break;case 1:Ra(e,t,a,l);break;case 3:Ra(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e)));break;case 12:if(u&2048){Ra(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,v=s.onPostCommit;typeof v=="function"&&v(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ve(t,t.return,S)}}else Ra(e,t,a,l);break;case 31:Ra(e,t,a,l);break;case 13:Ra(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?Ra(e,t,a,l):Yi(e,t):s._visibility&2?Ra(e,t,a,l):(s._visibility|=2,ql(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Vo(f,t);break;case 24:Ra(e,t,a,l),u&2048&&Xo(t.alternate,t);break;default:Ra(e,t,a,l)}}function ql(e,t,a,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,v=a,S=l,M=f.flags;switch(f.tag){case 0:case 11:case 15:ql(s,f,v,S,u),ji(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?ql(s,f,v,S,u):Yi(s,f):(B._visibility|=2,ql(s,f,v,S,u)),u&&M&2048&&Vo(f.alternate,f);break;case 24:ql(s,f,v,S,u),u&&M&2048&&Xo(f.alternate,f);break;default:ql(s,f,v,S,u)}t=t.sibling}}function Yi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:Yi(a,l),u&2048&&Vo(l.alternate,l);break;case 24:Yi(a,l),u&2048&&Xo(l.alternate,l);break;default:Yi(a,l)}t=t.sibling}}var Gi=8192;function Yl(e,t,a){if(e.subtreeFlags&Gi)for(e=e.child;e!==null;)um(e,t,a),e=e.sibling}function um(e,t,a){switch(e.tag){case 26:Yl(e,t,a),e.flags&Gi&&e.memoizedState!==null&&U0(a,_a,e.memoizedState,e.memoizedProps);break;case 5:Yl(e,t,a);break;case 3:case 4:var l=_a;_a=Ur(e.stateNode.containerInfo),Yl(e,t,a),_a=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Gi,Gi=16777216,Yl(e,t,a),Gi=l):Yl(e,t,a));break;default:Yl(e,t,a)}}function rm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Qi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];wt=l,om(l,e)}rm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sm(e),e=e.sibling}function sm(e){switch(e.tag){case 0:case 11:case 15:Qi(e),e.flags&2048&&Sn(9,e,e.return);break;case 3:Qi(e);break;case 12:Qi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,br(e)):Qi(e);break;default:Qi(e)}}function br(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];wt=l,om(l,e)}rm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sn(8,t,t.return),br(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,br(t));break;default:br(t)}e=e.sibling}}function om(e,t){for(;wt!==null;){var a=wt;switch(a.tag){case 0:case 11:case 15:Sn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ti(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,wt=l;else e:for(a=e;wt!==null;){l=wt;var u=l.sibling,s=l.return;if(Ih(l),l===a){wt=null;break e}if(u!==null){u.return=s,wt=u;break e}wt=s}}}var Kg={getCacheForType:function(e){var t=Tt(mt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Tt(mt).controller.signal}},Jg=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Fe=null,ze=null,Ce=0,Qe=0,Wt=null,En=!1,Gl=!1,Zo=!1,en=0,it=0,wn=0,ll=0,ko=0,$t=0,Ql=0,Vi=null,Qt=null,Ko=!1,Sr=0,cm=0,Er=1/0,wr=null,_n=null,bt=0,Rn=null,Vl=null,tn=0,Jo=0,Fo=null,fm=null,Xi=0,Wo=null;function Pt(){return(Ye&2)!==0&&Ce!==0?Ce&-Ce:x.T!==null?ac():X()}function dm(){if($t===0)if((Ce&536870912)===0||Ne){var e=qa;qa<<=1,(qa&3932160)===0&&(qa=262144),$t=e}else $t=536870912;return e=Jt.current,e!==null&&(e.flags|=32),$t}function Vt(e,t,a){(e===Fe&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(Xl(e,0),Tn(e,Ce,$t,!1)),Da(e,a),((Ye&2)===0||e!==Fe)&&(e===Fe&&((Ye&2)===0&&(ll|=a),it===4&&Tn(e,Ce,$t,!1)),Na(e))}function hm(e,t,a){if((Ye&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||rn(e,t),u=l?$g(e,t):Po(e,t,!0),s=l;do{if(u===0){Gl&&!l&&Tn(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Fg(a)){u=Po(e,t,!1),s=!1;continue}if(u===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var v=e;u=Vi;var S=v.current.memoizedState.isDehydrated;if(S&&(Xl(v,f).flags|=256),f=Po(v,f,!1),f!==2){if(Zo&&!S){v.errorRecoveryDisabledLanes|=s,ll|=s,u=4;break e}s=Qt,Qt=u,s!==null&&(Qt===null?Qt=s:Qt.push.apply(Qt,s))}u=f}if(s=!1,u!==2)continue}}if(u===1){Xl(e,0),Tn(e,t,0,!0);break}e:{switch(l=e,s=u,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Tn(l,t,$t,!En);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=Sr+300-xt(),10<u)){if(Tn(l,t,$t,!En),ml(l,0,!0)!==0)break e;tn=t,l.timeoutHandle=Xm(mm.bind(null,l,a,Qt,wr,Ko,t,$t,ll,Ql,En,s,"Throttled",-0,0),u);break e}mm(l,a,Qt,wr,Ko,t,$t,ll,Ql,En,s,null,-0,0)}}break}while(!0);Na(e)}function mm(e,t,a,l,u,s,f,v,S,M,B,V,N,L){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ya},um(t,s,V);var ae=(s&62914560)===s?Sr-xt():(s&4194048)===s?cm-xt():0;if(ae=N0(V,ae),ae!==null){tn=s,e.cancelPendingCommit=ae(wm.bind(null,e,t,s,a,l,u,f,v,S,B,V,null,N,L)),Tn(e,s,f,!M);return}}wm(e,t,s,a,l,u,f,v,S)}function Fg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],s=u.getSnapshot;u=u.value;try{if(!kt(s(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Tn(e,t,a,l){t&=~ko,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var s=31-zt(u),f=1<<s;l[s]=-1,u&=~f}a!==0&&Uu(e,a,t)}function _r(){return(Ye&6)===0?(Zi(0),!1):!0}function $o(){if(ze!==null){if(Qe===0)var e=ze.return;else e=ze,Xa=Fn=null,ho(e),xl=null,Di=0,e=ze;for(;e!==null;)Zh(e.alternate,e),e=e.return;ze=null}}function Xl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,y0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),tn=0,$o(),Fe=e,ze=a=Qa(e.current,null),Ce=t,Qe=0,Wt=null,En=!1,Gl=rn(e,t),Zo=!1,Ql=$t=ko=ll=wn=it=0,Qt=Vi=null,Ko=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-zt(l),s=1<<u;t|=e[u],l&=~s}return en=t,Xu(),a}function ym(e,t){we=null,x.H=Li,t===Nl||t===Pu?(t=Cd(),Qe=3):t===eo?(t=Cd(),Qe=4):Qe=t===zo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,ze===null&&(it=1,dr(e,ia(t,e.current)))}function vm(){var e=Jt.current;return e===null?!0:(Ce&4194048)===Ce?oa===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===oa:!1}function pm(){var e=x.H;return x.H=Li,e===null?Li:e}function gm(){var e=x.A;return x.A=Kg,e}function Rr(){it=4,En||(Ce&4194048)!==Ce&&Jt.current!==null||(Gl=!0),(wn&134217727)===0&&(ll&134217727)===0||Fe===null||Tn(Fe,Ce,$t,!1)}function Po(e,t,a){var l=Ye;Ye|=2;var u=pm(),s=gm();(Fe!==e||Ce!==t)&&(wr=null,Xl(e,t)),t=!1;var f=it;e:do try{if(Qe!==0&&ze!==null){var v=ze,S=Wt;switch(Qe){case 8:$o(),f=6;break e;case 3:case 2:case 9:case 6:Jt.current===null&&(t=!0);var M=Qe;if(Qe=0,Wt=null,Zl(e,v,S,M),a&&Gl){f=0;break e}break;default:M=Qe,Qe=0,Wt=null,Zl(e,v,S,M)}}Wg(),f=it;break}catch(B){ym(e,B)}while(!0);return t&&e.shellSuspendCounter++,Xa=Fn=null,Ye=l,x.H=u,x.A=s,ze===null&&(Fe=null,Ce=0,Xu()),f}function Wg(){for(;ze!==null;)bm(ze)}function $g(e,t){var a=Ye;Ye|=2;var l=pm(),u=gm();Fe!==e||Ce!==t?(wr=null,Er=xt()+500,Xl(e,t)):Gl=rn(e,t);e:do try{if(Qe!==0&&ze!==null){t=ze;var s=Wt;t:switch(Qe){case 1:Qe=0,Wt=null,Zl(e,t,s,1);break;case 2:case 9:if(zd(s)){Qe=0,Wt=null,Sm(t);break}t=function(){Qe!==2&&Qe!==9||Fe!==e||(Qe=7),Na(e)},s.then(t,t);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:zd(s)?(Qe=0,Wt=null,Sm(t)):(Qe=0,Wt=null,Zl(e,t,s,7));break;case 5:var f=null;switch(ze.tag){case 26:f=ze.memoizedState;case 5:case 27:var v=ze;if(f?iy(f):v.stateNode.complete){Qe=0,Wt=null;var S=v.sibling;if(S!==null)ze=S;else{var M=v.return;M!==null?(ze=M,Tr(M)):ze=null}break t}}Qe=0,Wt=null,Zl(e,t,s,5);break;case 6:Qe=0,Wt=null,Zl(e,t,s,6);break;case 8:$o(),it=6;break e;default:throw Error(o(462))}}Pg();break}catch(B){ym(e,B)}while(!0);return Xa=Fn=null,x.H=l,x.A=u,Ye=a,ze!==null?0:(Fe=null,Ce=0,Xu(),it)}function Pg(){for(;ze!==null&&!ms();)bm(ze)}function bm(e){var t=Vh(e.alternate,e,en);e.memoizedProps=e.pendingProps,t===null?Tr(e):ze=t}function Sm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Bh(a,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=Bh(a,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:ho(t);default:Zh(a,t),t=ze=gd(t,en),t=Vh(a,t,en)}e.memoizedProps=e.pendingProps,t===null?Tr(e):ze=t}function Zl(e,t,a,l){Xa=Fn=null,ho(t),xl=null,Di=0;var u=t.return;try{if(Yg(e,u,t,a,Ce)){it=1,dr(e,ia(a,e.current)),ze=null;return}}catch(s){if(u!==null)throw ze=u,s;it=1,dr(e,ia(a,e.current)),ze=null;return}t.flags&32768?(Ne||l===1?e=!0:Gl||(Ce&536870912)!==0?e=!1:(En=e=!0,(l===2||l===9||l===3||l===6)&&(l=Jt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Em(t,e)):Tr(t)}function Tr(e){var t=e;do{if((t.flags&32768)!==0){Em(t,En);return}e=t.return;var a=Vg(t.alternate,t,en);if(a!==null){ze=a;return}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);it===0&&(it=5)}function Em(e,t){do{var a=Xg(e.alternate,e);if(a!==null){a.flags&=32767,ze=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ze=e;return}ze=e=a}while(e!==null);it=6,ze=null}function wm(e,t,a,l,u,s,f,v,S){e.cancelPendingCommit=null;do Or();while(bt!==0);if((Ye&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=qs,Cu(e,a,s,f,v,S),e===Fe&&(ze=Fe=null,Ce=0),Vl=t,Rn=e,tn=a,Jo=s,Fo=u,fm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,a0(un,function(){return Dm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=x.T,x.T=null,u=Z.p,Z.p=2,f=Ye,Ye|=4;try{Zg(e,t,a)}finally{Ye=f,Z.p=u,x.T=l}}bt=1,_m(),Rm(),Tm()}}function _m(){if(bt===1){bt=0;var e=Rn,t=Vl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=x.T,x.T=null;var l=Z.p;Z.p=2;var u=Ye;Ye|=4;try{nm(t,e);var s=cc,f=od(e.containerInfo),v=s.focusedElem,S=s.selectionRange;if(f!==v&&v&&v.ownerDocument&&sd(v.ownerDocument.documentElement,v)){if(S!==null&&xs(v)){var M=S.start,B=S.end;if(B===void 0&&(B=M),"selectionStart"in v)v.selectionStart=M,v.selectionEnd=Math.min(B,v.value.length);else{var V=v.ownerDocument||document,N=V&&V.defaultView||window;if(N.getSelection){var L=N.getSelection(),ae=v.textContent.length,me=Math.min(S.start,ae),ke=S.end===void 0?me:Math.min(S.end,ae);!L.extend&&me>ke&&(f=ke,ke=me,me=f);var O=rd(v,me),_=rd(v,ke);if(O&&_&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==_.node||L.focusOffset!==_.offset)){var z=V.createRange();z.setStart(O.node,O.offset),L.removeAllRanges(),me>ke?(L.addRange(z),L.extend(_.node,_.offset)):(z.setEnd(_.node,_.offset),L.addRange(z))}}}}for(V=[],L=v;L=L.parentNode;)L.nodeType===1&&V.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<V.length;v++){var Y=V[v];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}jr=!!oc,cc=oc=null}finally{Ye=u,Z.p=l,x.T=a}}e.current=t,bt=2}}function Rm(){if(bt===2){bt=0;var e=Rn,t=Vl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=x.T,x.T=null;var l=Z.p;Z.p=2;var u=Ye;Ye|=4;try{Ph(e,t.alternate,t)}finally{Ye=u,Z.p=l,x.T=a}}bt=3}}function Tm(){if(bt===4||bt===3){bt=0,ys();var e=Rn,t=Vl,a=tn,l=fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,Vl=Rn=null,Om(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(_n=null),U(a),t=t.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(ja,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=x.T,u=Z.p,Z.p=2,x.T=null;try{for(var s=e.onRecoverableError,f=0;f<l.length;f++){var v=l[f];s(v.value,{componentStack:v.stack})}}finally{x.T=t,Z.p=u}}(tn&3)!==0&&Or(),Na(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Wo?Xi++:(Xi=0,Wo=e):Xi=0,Zi(0)}}function Om(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ti(t)))}function Or(){return _m(),Rm(),Tm(),Dm()}function Dm(){if(bt!==5)return!1;var e=Rn,t=Jo;Jo=0;var a=U(tn),l=x.T,u=Z.p;try{Z.p=32>a?32:a,x.T=null,a=Fo,Fo=null;var s=Rn,f=tn;if(bt=0,Vl=Rn=null,tn=0,(Ye&6)!==0)throw Error(o(331));var v=Ye;if(Ye|=4,sm(s.current),im(s,s.current,f,a),Ye=v,Zi(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(ja,s)}catch{}return!0}finally{Z.p=u,x.T=l,Om(e,t)}}function Am(e,t,a){t=ia(a,t),t=Ao(e.stateNode,t,2),e=pn(e,t,2),e!==null&&(Da(e,2),Na(e))}function Ve(e,t,a){if(e.tag===3)Am(e,e,a);else for(;t!==null;){if(t.tag===3){Am(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(_n===null||!_n.has(l))){e=ia(a,e),a=zh(2),l=pn(t,a,2),l!==null&&(Mh(a,l,t,e),Da(l,2),Na(l));break}}t=t.return}}function Io(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Jg;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||(Zo=!0,u.add(a),e=Ig.bind(null,e,t,a),t.then(e,e))}function Ig(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&(Ce&a)===a&&(it===4||it===3&&(Ce&62914560)===Ce&&300>xt()-Sr?(Ye&2)===0&&Xl(e,0):ko|=a,Ql===Ce&&(Ql=0)),Na(e)}function zm(e,t){t===0&&(t=hi()),e=kn(e,t),e!==null&&(Da(e,t),Na(e))}function e0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),zm(e,a)}function t0(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),zm(e,a)}function a0(e,t){return hl(e,t)}var Dr=null,kl=null,ec=!1,Ar=!1,tc=!1,On=0;function Na(e){e!==kl&&e.next===null&&(kl===null?Dr=kl=e:kl=kl.next=e),Ar=!0,ec||(ec=!0,l0())}function Zi(e,t){if(!tc&&Ar){tc=!0;do for(var a=!1,l=Dr;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var s=0;else{var f=l.suspendedLanes,v=l.pingedLanes;s=(1<<31-zt(42|e)+1)-1,s&=u&~(f&~v),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Nm(l,s))}else s=Ce,s=ml(l,l===Fe?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||rn(l,s)||(a=!0,Nm(l,s));l=l.next}while(a);tc=!1}}function n0(){Mm()}function Mm(){Ar=ec=!1;var e=0;On!==0&&m0()&&(e=On);for(var t=xt(),a=null,l=Dr;l!==null;){var u=l.next,s=Cm(l,t);s===0?(l.next=null,a===null?Dr=u:a.next=u,u===null&&(kl=a)):(a=l,(e!==0||(s&3)!==0)&&(Ar=!0)),l=u}bt!==0&&bt!==5||Zi(e),On!==0&&(On=0)}function Cm(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-zt(s),v=1<<f,S=u[f];S===-1?((v&a)===0||(v&l)!==0)&&(u[f]=gs(v,t)):S<=t&&(e.expiredLanes|=v),s&=~v}if(t=Fe,a=Ce,a=ml(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&fi(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&fi(l),U(a)){case 2:case 8:a=di;break;case 32:a=un;break;case 268435456:a=aa;break;default:a=un}return l=Um.bind(null,e),a=hl(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&fi(l),e.callbackPriority=2,e.callbackNode=null,2}function Um(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Or()&&e.callbackNode!==a)return null;var l=Ce;return l=ml(e,e===Fe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(hm(e,l,t),Cm(e,xt()),e.callbackNode!=null&&e.callbackNode===a?Um.bind(null,e):null)}function Nm(e,t){if(Or())return null;hm(e,t,!0)}function l0(){v0(function(){(Ye&6)!==0?hl(ln,n0):Mm()})}function ac(){if(On===0){var e=Cl;e===0&&(e=qn,qn<<=1,(qn&261888)===0&&(qn=256)),On=e}return On}function xm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hu(""+e)}function Lm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function i0(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var s=xm((u[I]||null).action),f=l.submitter;f&&(t=(t=f[I]||null)?xm(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var v=new Yu("action","action",null,l,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(On!==0){var S=f?Lm(u,f):new FormData(u);wo(a,{pending:!0,data:S,method:u.method,action:s},null,S)}}else typeof s=="function"&&(v.preventDefault(),S=f?Lm(u,f):new FormData(u),wo(a,{pending:!0,data:S,method:u.method,action:s},s,S))},currentTarget:u}]})}}for(var nc=0;nc<js.length;nc++){var lc=js[nc],u0=lc.toLowerCase(),r0=lc[0].toUpperCase()+lc.slice(1);wa(u0,"on"+r0)}wa(dd,"onAnimationEnd"),wa(hd,"onAnimationIteration"),wa(md,"onAnimationStart"),wa("dblclick","onDoubleClick"),wa("focusin","onFocus"),wa("focusout","onBlur"),wa(_g,"onTransitionRun"),wa(Rg,"onTransitionStart"),wa(Tg,"onTransitionCancel"),wa(yd,"onTransitionEnd"),Aa("onMouseEnter",["mouseout","mouseover"]),Aa("onMouseLeave",["mouseout","mouseover"]),Aa("onPointerEnter",["pointerout","pointerover"]),Aa("onPointerLeave",["pointerout","pointerover"]),Et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Et("onBeforeInput",["compositionend","keypress","textInput","paste"]),Et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),s0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function Hm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var f=l.length-1;0<=f;f--){var v=l[f],S=v.instance,M=v.currentTarget;if(v=v.listener,S!==s&&u.isPropagationStopped())break e;s=v,u.currentTarget=M;try{s(u)}catch(B){Vu(B)}u.currentTarget=null,s=S}else for(f=0;f<l.length;f++){if(v=l[f],S=v.instance,M=v.currentTarget,v=v.listener,S!==s&&u.isPropagationStopped())break e;s=v,u.currentTarget=M;try{s(u)}catch(B){Vu(B)}u.currentTarget=null,s=S}}}}function Me(e,t){var a=t[ee];a===void 0&&(a=t[ee]=new Set);var l=e+"__bubble";a.has(l)||(Bm(t,e,2,!1),a.add(l))}function ic(e,t,a){var l=0;t&&(l|=4),Bm(a,e,l,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[zr]){e[zr]=!0,on.forEach(function(a){a!=="selectionchange"&&(s0.has(a)||ic(a,!1,e),ic(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,ic("selectionchange",!1,t))}}function Bm(e,t,a,l){switch(dy(t)){case 2:var u=H0;break;case 8:u=B0;break;default:u=Ec}a=u.bind(null,t,a,e),u=void 0,!Ts||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function rc(e,t,a,l,u){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var v=l.stateNode.containerInfo;if(v===u)break;if(f===4)for(f=l.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;v!==null;){if(f=Pe(v),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){l=s=f;continue e}v=v.parentNode}}l=l.return}Qf(function(){var M=s,B=_s(a),V=[];e:{var N=vd.get(e);if(N!==void 0){var L=Yu,ae=e;switch(e){case"keypress":if(ju(a)===0)break e;case"keydown":case"keyup":L=tg;break;case"focusin":ae="focus",L=zs;break;case"focusout":ae="blur",L=zs;break;case"beforeblur":case"afterblur":L=zs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Vp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=lg;break;case dd:case hd:case md:L=kp;break;case yd:L=ug;break;case"scroll":case"scrollend":L=Gp;break;case"wheel":L=sg;break;case"copy":case"cut":case"paste":L=Jp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Kf;break;case"toggle":case"beforetoggle":L=cg}var me=(t&4)!==0,ke=!me&&(e==="scroll"||e==="scrollend"),O=me?N!==null?N+"Capture":null:N;me=[];for(var _=M,z;_!==null;){var Y=_;if(z=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||z===null||O===null||(Y=mi(_,O),Y!=null&&me.push(Ki(_,Y,z))),ke)break;_=_.return}0<me.length&&(N=new L(N,ae,null,a,B),V.push({event:N,listeners:me}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",N&&a!==ws&&(ae=a.relatedTarget||a.fromElement)&&(Pe(ae)||ae[ie]))break e;if((L||N)&&(N=B.window===B?B:(N=B.ownerDocument)?N.defaultView||N.parentWindow:window,L?(ae=a.relatedTarget||a.toElement,L=M,ae=ae?Pe(ae):null,ae!==null&&(ke=d(ae),me=ae.tag,ae!==ke||me!==5&&me!==27&&me!==6)&&(ae=null)):(L=null,ae=M),L!==ae)){if(me=Zf,Y="onMouseLeave",O="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(me=Kf,Y="onPointerLeave",O="onPointerEnter",_="pointer"),ke=L==null?N:Le(L),z=ae==null?N:Le(ae),N=new me(Y,_+"leave",L,a,B),N.target=ke,N.relatedTarget=z,Y=null,Pe(B)===M&&(me=new me(O,_+"enter",ae,a,B),me.target=z,me.relatedTarget=ke,Y=me),ke=Y,L&&ae)t:{for(me=o0,O=L,_=ae,z=0,Y=O;Y;Y=me(Y))z++;Y=0;for(var fe=_;fe;fe=me(fe))Y++;for(;0<z-Y;)O=me(O),z--;for(;0<Y-z;)_=me(_),Y--;for(;z--;){if(O===_||_!==null&&O===_.alternate){me=O;break t}O=me(O),_=me(_)}me=null}else me=null;L!==null&&jm(V,N,L,me,!1),ae!==null&&ke!==null&&jm(V,ke,ae,me,!0)}}e:{if(N=M?Le(M):window,L=N.nodeName&&N.nodeName.toLowerCase(),L==="select"||L==="input"&&N.type==="file")var je=td;else if(If(N))if(ad)je=Sg;else{je=gg;var re=pg}else L=N.nodeName,!L||L.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?M&&Es(M.elementType)&&(je=td):je=bg;if(je&&(je=je(e,M))){ed(V,je,a,B);break e}re&&re(e,N,M),e==="focusout"&&M&&N.type==="number"&&M.memoizedProps.value!=null&&Ss(N,"number",N.value)}switch(re=M?Le(M):window,e){case"focusin":(If(re)||re.contentEditable==="true")&&(_l=re,Ls=M,wi=null);break;case"focusout":wi=Ls=_l=null;break;case"mousedown":Hs=!0;break;case"contextmenu":case"mouseup":case"dragend":Hs=!1,cd(V,a,B);break;case"selectionchange":if(wg)break;case"keydown":case"keyup":cd(V,a,B)}var Re;if(Cs)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else wl?$f(e,a)&&(Ue="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(Jf&&a.locale!=="ko"&&(wl||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&wl&&(Re=Vf()):(cn=B,Os="value"in cn?cn.value:cn.textContent,wl=!0)),re=Mr(M,Ue),0<re.length&&(Ue=new kf(Ue,e,null,a,B),V.push({event:Ue,listeners:re}),Re?Ue.data=Re:(Re=Pf(a),Re!==null&&(Ue.data=Re)))),(Re=dg?hg(e,a):mg(e,a))&&(Ue=Mr(M,"onBeforeInput"),0<Ue.length&&(re=new kf("onBeforeInput","beforeinput",null,a,B),V.push({event:re,listeners:Ue}),re.data=Re)),i0(V,e,M,a,B)}Hm(V,t)})}function Ki(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Mr(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=mi(e,a),u!=null&&l.unshift(Ki(e,u,s)),u=mi(e,t),u!=null&&l.push(Ki(e,u,s))),e.tag===3)return l;e=e.return}return[]}function o0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jm(e,t,a,l,u){for(var s=t._reactName,f=[];a!==null&&a!==l;){var v=a,S=v.alternate,M=v.stateNode;if(v=v.tag,S!==null&&S===l)break;v!==5&&v!==26&&v!==27||M===null||(S=M,u?(M=mi(a,s),M!=null&&f.unshift(Ki(a,M,S))):u||(M=mi(a,s),M!=null&&f.push(Ki(a,M,S)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var c0=/\r\n?/g,f0=/\u0000|\uFFFD/g;function qm(e){return(typeof e=="string"?e:""+e).replace(c0,`
50
- `).replace(f0,"")}function Ym(e,t){return t=qm(t),qm(e)===t}function Ze(e,t,a,l,u,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||bl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&bl(e,""+l);break;case"className":rt(e,"class",l);break;case"tabIndex":rt(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":rt(e,a,l);break;case"style":Yf(e,l,s);break;case"data":if(t!=="object"){rt(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Hu(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(t!=="input"&&Ze(e,t,"name",u.name,u,null),Ze(e,t,"formEncType",u.formEncType,u,null),Ze(e,t,"formMethod",u.formMethod,u,null),Ze(e,t,"formTarget",u.formTarget,u,null)):(Ze(e,t,"encType",u.encType,u,null),Ze(e,t,"method",u.method,u,null),Ze(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Hu(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Ya);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Hu(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Ae(e,"popover",l);break;case"xlinkActuate":Mt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Mt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Mt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Mt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Mt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Mt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ae(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=qp.get(a)||a,Ae(e,a,l))}}function sc(e,t,a,l,u,s){switch(a){case"style":Yf(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?bl(e,l):(typeof l=="number"||typeof l=="bigint")&&bl(e,""+l);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Ya);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ea.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),s=e[I]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,u),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ae(e,a,l)}}}function Dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var l=!1,u=!1,s;for(s in a)if(a.hasOwnProperty(s)){var f=a[s];if(f!=null)switch(s){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ze(e,t,s,f,a,null)}}u&&Ze(e,t,"srcSet",a.srcSet,a,null),l&&Ze(e,t,"src",a.src,a,null);return;case"input":Me("invalid",e);var v=s=f=u=null,S=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var B=a[l];if(B!=null)switch(l){case"name":u=B;break;case"type":f=B;break;case"checked":S=B;break;case"defaultChecked":M=B;break;case"value":s=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:Ze(e,t,l,B,a,null)}}Hf(e,s,v,S,M,f,u,!1);return;case"select":Me("invalid",e),l=f=s=null;for(u in a)if(a.hasOwnProperty(u)&&(v=a[u],v!=null))switch(u){case"value":s=v;break;case"defaultValue":f=v;break;case"multiple":l=v;default:Ze(e,t,u,v,a,null)}t=s,a=f,e.multiple=!!l,t!=null?gl(e,!!l,t,!1):a!=null&&gl(e,!!l,a,!0);return;case"textarea":Me("invalid",e),s=u=l=null;for(f in a)if(a.hasOwnProperty(f)&&(v=a[f],v!=null))switch(f){case"value":l=v;break;case"defaultValue":u=v;break;case"children":s=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Ze(e,t,f,v,a,null)}jf(e,l,u,s);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ze(e,t,S,l,a,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(l=0;l<ki.length;l++)Me(ki[l],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ze(e,t,M,l,a,null)}return;default:if(Es(t)){for(B in a)a.hasOwnProperty(B)&&(l=a[B],l!==void 0&&sc(e,t,B,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&Ze(e,t,v,l,a,null))}function d0(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,f=null,v=null,S=null,M=null,B=null;for(L in a){var V=a[L];if(a.hasOwnProperty(L)&&V!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":S=V;default:l.hasOwnProperty(L)||Ze(e,t,L,null,l,V)}}for(var N in l){var L=l[N];if(V=a[N],l.hasOwnProperty(N)&&(L!=null||V!=null))switch(N){case"type":s=L;break;case"name":u=L;break;case"checked":M=L;break;case"defaultChecked":B=L;break;case"value":f=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:L!==V&&Ze(e,t,N,L,l,V)}}bs(e,f,v,S,M,B,s,u);return;case"select":L=f=v=N=null;for(s in a)if(S=a[s],a.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":L=S;default:l.hasOwnProperty(s)||Ze(e,t,s,null,l,S)}for(u in l)if(s=l[u],S=a[u],l.hasOwnProperty(u)&&(s!=null||S!=null))switch(u){case"value":N=s;break;case"defaultValue":v=s;break;case"multiple":f=s;default:s!==S&&Ze(e,t,u,s,l,S)}t=v,a=f,l=L,N!=null?gl(e,!!a,N,!1):!!l!=!!a&&(t!=null?gl(e,!!a,t,!0):gl(e,!!a,a?[]:"",!1));return;case"textarea":L=N=null;for(v in a)if(u=a[v],a.hasOwnProperty(v)&&u!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ze(e,t,v,null,l,u)}for(f in l)if(u=l[f],s=a[f],l.hasOwnProperty(f)&&(u!=null||s!=null))switch(f){case"value":N=u;break;case"defaultValue":L=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==s&&Ze(e,t,f,u,l,s)}Bf(e,N,L);return;case"option":for(var ae in a)if(N=a[ae],a.hasOwnProperty(ae)&&N!=null&&!l.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ze(e,t,ae,null,l,N)}for(S in l)if(N=l[S],L=a[S],l.hasOwnProperty(S)&&N!==L&&(N!=null||L!=null))switch(S){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Ze(e,t,S,N,l,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in a)N=a[me],a.hasOwnProperty(me)&&N!=null&&!l.hasOwnProperty(me)&&Ze(e,t,me,null,l,N);for(M in l)if(N=l[M],L=a[M],l.hasOwnProperty(M)&&N!==L&&(N!=null||L!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,t));break;default:Ze(e,t,M,N,l,L)}return;default:if(Es(t)){for(var ke in a)N=a[ke],a.hasOwnProperty(ke)&&N!==void 0&&!l.hasOwnProperty(ke)&&sc(e,t,ke,void 0,l,N);for(B in l)N=l[B],L=a[B],!l.hasOwnProperty(B)||N===L||N===void 0&&L===void 0||sc(e,t,B,N,l,L);return}}for(var O in a)N=a[O],a.hasOwnProperty(O)&&N!=null&&!l.hasOwnProperty(O)&&Ze(e,t,O,null,l,N);for(V in l)N=l[V],L=a[V],!l.hasOwnProperty(V)||N===L||N==null&&L==null||Ze(e,t,V,N,l,L)}function Gm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function h0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],s=u.transferSize,f=u.initiatorType,v=u.duration;if(s&&v&&Gm(f)){for(f=0,v=u.responseEnd,l+=1;l<a.length;l++){var S=a[l],M=S.startTime;if(M>v)break;var B=S.transferSize,V=S.initiatorType;B&&Gm(V)&&(S=S.responseEnd,f+=B*(S<v?1:(v-M)/(S-M)))}if(--l,t+=8*(s+f)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var oc=null,cc=null;function Cr(e){return e.nodeType===9?e:e.ownerDocument}function Qm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function fc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dc=null;function m0(){var e=window.event;return e&&e.type==="popstate"?e===dc?!1:(dc=e,!0):(dc=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,y0=typeof clearTimeout=="function"?clearTimeout:void 0,Zm=typeof Promise=="function"?Promise:void 0,v0=typeof queueMicrotask=="function"?queueMicrotask:typeof Zm<"u"?function(e){return Zm.resolve(null).then(e).catch(p0)}:Xm;function p0(e){setTimeout(function(){throw e})}function Dn(e){return e==="head"}function km(e,t){var a=t,l=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(u),Wl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ji(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ji(a);for(var s=a.firstChild;s;){var f=s.nextSibling,v=s.nodeName;s[De]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=f}}else a==="body"&&Ji(e.ownerDocument.body);a=u}while(a);Wl(t)}function Km(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function hc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":hc(a),Je(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function g0(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[De])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=ca(e.nextSibling),e===null)break}return null}function b0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ca(e.nextSibling),e===null))return null;return e}function Jm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ca(e.nextSibling),e===null))return null;return e}function mc(e){return e.data==="$?"||e.data==="$~"}function yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function S0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ca(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vc=null;function Fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ca(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function $m(e,t,a){switch(t=Cr(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Je(e)}var fa=new Map,Pm=new Set;function Ur(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var an=Z.d;Z.d={f:E0,r:w0,D:_0,C:R0,L:T0,m:O0,X:A0,S:D0,M:z0};function E0(){var e=an.f(),t=_r();return e||t}function w0(e){var t=nt(e);t!==null&&t.tag===5&&t.type==="form"?yh(t):an.r(e)}var Kl=typeof document>"u"?null:document;function Im(e,t,a){var l=Kl;if(l&&typeof t=="string"&&t){var u=na(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Pm.has(u)||(Pm.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),Dt(t,"link",e),$e(t),l.head.appendChild(t)))}}function _0(e){an.D(e),Im("dns-prefetch",e,null)}function R0(e,t){an.C(e,t),Im("preconnect",e,t)}function T0(e,t,a){an.L(e,t,a);var l=Kl;if(l&&e&&t){var u='link[rel="preload"][as="'+na(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+na(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+na(a.imageSizes)+'"]')):u+='[href="'+na(e)+'"]';var s=u;switch(t){case"style":s=Jl(e);break;case"script":s=Fl(e)}fa.has(s)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fa.set(s,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Fi(s))||t==="script"&&l.querySelector(Wi(s))||(t=l.createElement("link"),Dt(t,"link",e),$e(t),l.head.appendChild(t)))}}function O0(e,t){an.m(e,t);var a=Kl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+na(l)+'"][href="'+na(e)+'"]',s=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Fl(e)}if(!fa.has(s)&&(e=g({rel:"modulepreload",href:e},t),fa.set(s,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wi(s)))return}l=a.createElement("link"),Dt(l,"link",e),$e(l),a.head.appendChild(l)}}}function D0(e,t,a){an.S(e,t,a);var l=Kl;if(l&&e){var u=dt(l).hoistableStyles,s=Jl(e);t=t||"default";var f=u.get(s);if(!f){var v={loading:0,preload:null};if(f=l.querySelector(Fi(s)))v.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fa.get(s))&&pc(e,a);var S=f=l.createElement("link");$e(S),Dt(S,"link",e),S._p=new Promise(function(M,B){S.onload=M,S.onerror=B}),S.addEventListener("load",function(){v.loading|=1}),S.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Nr(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:v},u.set(s,f)}}}function A0(e,t){an.X(e,t);var a=Kl;if(a&&e){var l=dt(a).hoistableScripts,u=Fl(e),s=l.get(u);s||(s=a.querySelector(Wi(u)),s||(e=g({src:e,async:!0},t),(t=fa.get(u))&&gc(e,t),s=a.createElement("script"),$e(s),Dt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function z0(e,t){an.M(e,t);var a=Kl;if(a&&e){var l=dt(a).hoistableScripts,u=Fl(e),s=l.get(u);s||(s=a.querySelector(Wi(u)),s||(e=g({src:e,async:!0,type:"module"},t),(t=fa.get(u))&&gc(e,t),s=a.createElement("script"),$e(s),Dt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function ey(e,t,a,l){var u=(u=ve.current)?Ur(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Jl(a.href),a=dt(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Jl(a.href);var s=dt(u).hoistableStyles,f=s.get(e);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=u.querySelector(Fi(e)))&&!s._p&&(f.instance=s,f.state.loading=5),fa.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fa.set(e,a),s||M0(u,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fl(a),a=dt(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Jl(e){return'href="'+na(e)+'"'}function Fi(e){return'link[rel="stylesheet"]['+e+"]"}function ty(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function M0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Dt(t,"link",a),$e(t),e.head.appendChild(t))}function Fl(e){return'[src="'+na(e)+'"]'}function Wi(e){return"script[async]"+e}function ay(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+na(a.href)+'"]');if(l)return t.instance=l,$e(l),l;var u=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),$e(l),Dt(l,"style",u),Nr(l,a.precedence,e),t.instance=l;case"stylesheet":u=Jl(a.href);var s=e.querySelector(Fi(u));if(s)return t.state.loading|=4,t.instance=s,$e(s),s;l=ty(a),(u=fa.get(u))&&pc(l,u),s=(e.ownerDocument||e).createElement("link"),$e(s);var f=s;return f._p=new Promise(function(v,S){f.onload=v,f.onerror=S}),Dt(s,"link",l),t.state.loading|=4,Nr(s,a.precedence,e),t.instance=s;case"script":return s=Fl(a.src),(u=e.querySelector(Wi(s)))?(t.instance=u,$e(u),u):(l=a,(u=fa.get(s))&&(l=g({},a),gc(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),$e(u),Dt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Nr(l,a.precedence,e));return t.instance}function Nr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,s=u,f=0;f<l.length;f++){var v=l[f];if(v.dataset.precedence===t)s=v;else if(s!==u)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function pc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xr=null;function ny(e,t,a){if(xr===null){var l=new Map,u=xr=new Map;u.set(a,l)}else u=xr,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var s=a[u];if(!(s[De]||s[P]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var v=l.get(f);v?v.push(s):l.set(f,[s])}}return l}function ly(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function C0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function iy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function U0(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Jl(l.href),s=t.querySelector(Fi(u));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Lr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,$e(s);return}s=t.ownerDocument||t,l=ty(l),(u=fa.get(u))&&pc(l,u),s=s.createElement("link"),$e(s);var f=s;f._p=new Promise(function(v,S){f.onload=v,f.onerror=S}),Dt(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Lr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var bc=0;function N0(e,t){return e.stylesheets&&e.count===0&&Br(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Br(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&bc===0&&(bc=62500*h0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Br(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>bc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Br(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hr=null;function Br(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hr=new Map,t.forEach(x0,e),Hr=null,Lr.call(e))}function x0(e,t){if(!(t.state.loading&4)){var a=Hr.get(e);if(a)var l=a.get(null);else{a=new Map,Hr.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var f=u[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}u=t.instance,f=u.getAttribute("data-precedence"),s=a.get(f)||l,s===l&&a.set(null,u),a.set(f,u),this.count++,l=Lr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),s?s.parentNode.insertBefore(u,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var $i={$$typeof:W,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function L0(e,t,a,l,u,s,f,v,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sn(0),this.hiddenUpdates=sn(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function uy(e,t,a,l,u,s,f,v,S,M,B,V){return e=new L0(e,t,a,f,S,M,B,V,v),t=1,s===!0&&(t|=24),s=Kt(3,null,null,t),e.current=s,s.stateNode=e,t=$s(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},to(s),e}function ry(e){return e?(e=Ol,e):Ol}function sy(e,t,a,l,u,s){u=ry(u),l.context===null?l.context=u:l.pendingContext=u,l=vn(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=pn(e,l,t),a!==null&&(Vt(a,e,t),zi(a,e,t))}function oy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Sc(e,t){oy(e,t),(e=e.alternate)&&oy(e,t)}function cy(e){if(e.tag===13||e.tag===31){var t=kn(e,67108864);t!==null&&Vt(t,e,67108864),Sc(e,67108864)}}function fy(e){if(e.tag===13||e.tag===31){var t=Pt();t=R(t);var a=kn(e,t);a!==null&&Vt(a,e,t),Sc(e,t)}}var jr=!0;function H0(e,t,a,l){var u=x.T;x.T=null;var s=Z.p;try{Z.p=2,Ec(e,t,a,l)}finally{Z.p=s,x.T=u}}function B0(e,t,a,l){var u=x.T;x.T=null;var s=Z.p;try{Z.p=8,Ec(e,t,a,l)}finally{Z.p=s,x.T=u}}function Ec(e,t,a,l){if(jr){var u=wc(l);if(u===null)rc(e,t,l,qr,a),hy(e,l);else if(q0(u,e,t,a,l))l.stopPropagation();else if(hy(e,l),t&4&&-1<j0.indexOf(e)){for(;u!==null;){var s=nt(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=Sa(s.pendingLanes);if(f!==0){var v=s;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var S=1<<31-zt(f);v.entanglements[1]|=S,f&=~S}Na(s),(Ye&6)===0&&(Er=xt()+500,Zi(0))}}break;case 31:case 13:v=kn(s,2),v!==null&&Vt(v,s,2),_r(),Sc(s,2)}if(s=wc(l),s===null&&rc(e,t,l,qr,a),s===u)break;u=s}u!==null&&l.stopPropagation()}else rc(e,t,l,null,a)}}function wc(e){return e=_s(e),_c(e)}var qr=null;function _c(e){if(qr=null,e=Pe(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=y(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return qr=e,null}function dy(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ba()){case ln:return 2;case di:return 8;case un:case ba:return 32;case aa:return 268435456;default:return 32}default:return 32}}var Rc=!1,An=null,zn=null,Mn=null,Pi=new Map,Ii=new Map,Cn=[],j0="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".split(" ");function hy(e,t){switch(e){case"focusin":case"focusout":An=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function eu(e,t,a,l,u,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[u]},t!==null&&(t=nt(t),t!==null&&cy(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function q0(e,t,a,l,u){switch(t){case"focusin":return An=eu(An,e,t,a,l,u),!0;case"dragenter":return zn=eu(zn,e,t,a,l,u),!0;case"mouseover":return Mn=eu(Mn,e,t,a,l,u),!0;case"pointerover":var s=u.pointerId;return Pi.set(s,eu(Pi.get(s)||null,e,t,a,l,u)),!0;case"gotpointercapture":return s=u.pointerId,Ii.set(s,eu(Ii.get(s)||null,e,t,a,l,u)),!0}return!1}function my(e){var t=Pe(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,K(e.priority,function(){fy(a)});return}}else if(t===31){if(t=y(a),t!==null){e.blockedOn=t,K(e.priority,function(){fy(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=wc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);ws=l,a.target.dispatchEvent(l),ws=null}else return t=nt(a),t!==null&&cy(t),e.blockedOn=a,!1;t.shift()}return!0}function yy(e,t,a){Yr(e)&&a.delete(t)}function Y0(){Rc=!1,An!==null&&Yr(An)&&(An=null),zn!==null&&Yr(zn)&&(zn=null),Mn!==null&&Yr(Mn)&&(Mn=null),Pi.forEach(yy),Ii.forEach(yy)}function Gr(e,t){e.blockedOn===t&&(e.blockedOn=null,Rc||(Rc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Y0)))}var Qr=null;function vy(e){Qr!==e&&(Qr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Qr===e&&(Qr=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(_c(l||a)===null)continue;break}var s=nt(a);s!==null&&(e.splice(t,3),t-=3,wo(s,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function Wl(e){function t(S){return Gr(S,e)}An!==null&&Gr(An,e),zn!==null&&Gr(zn,e),Mn!==null&&Gr(Mn,e),Pi.forEach(t),Ii.forEach(t);for(var a=0;a<Cn.length;a++){var l=Cn[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Cn.length&&(a=Cn[0],a.blockedOn===null);)my(a),a.blockedOn===null&&Cn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],s=a[l+1],f=u[I]||null;if(typeof s=="function")f||vy(a);else if(f){var v=null;if(s&&s.hasAttribute("formAction")){if(u=s,f=s[I]||null)v=f.formAction;else if(_c(u)!==null)continue}else v=f.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),vy(a)}}}function py(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Tc(e){this._internalRoot=e}Vr.prototype.render=Tc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Pt();sy(a,l,e,t,null,null)},Vr.prototype.unmount=Tc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sy(e.current,2,null,e,null,null),_r(),t[ie]=null}};function Vr(e){this._internalRoot=e}Vr.prototype.unstable_scheduleHydration=function(e){if(e){var t=X();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Cn.length&&t!==0&&t<Cn[a].priority;a++);Cn.splice(a,0,e),a===0&&my(e)}};var gy=i.version;if(gy!=="19.2.5")throw Error(o(527,gy,"19.2.5"));Z.findDOMNode=function(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=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var G0={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xr.isDisabled&&Xr.supportsFiber)try{ja=Xr.inject(G0),Lt=Xr}catch{}}return au.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,l="",u=Th,s=Oh,f=Dh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=uy(e,1,!1,null,null,a,l,null,u,s,f,py),e[ie]=t.current,uc(e),new Tc(t)},au.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var l=!1,u="",s=Th,f=Oh,v=Dh,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=uy(e,1,!0,t,a??null,l,u,S,s,f,v,py),t.context=ry(null),a=t.current,l=Pt(),l=R(l),u=vn(l),u.callback=null,pn(a,u,l),a=l,t.current.lanes=a,Da(t,a),Na(t),e[ie]=t.current,uc(e),new Vr(t)},au.version="19.2.5",au}var zy;function ab(){if(zy)return Ac.exports;zy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Ac.exports=tb(),Ac.exports}var nb=ab();/**
51
- * react-router v7.14.1
52
- *
53
- * Copyright (c) Remix Software Inc.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE.md file in the root directory of this source tree.
57
- *
58
- * @license MIT
59
- */var Tv=n=>{throw TypeError(n)},lb=(n,i,r)=>i.has(n)||Tv("Cannot "+r),Uc=(n,i,r)=>(lb(n,i,"read from private field"),r?r.call(n):i.get(n)),ib=(n,i,r)=>i.has(n)?Tv("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,r),My="popstate";function Cy(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function ub(n={}){function i(o,c){let d=c.state?.masked,{pathname:h,search:y,hash:p}=d||o.location;return mu("",{pathname:h,search:y,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default",d?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function r(o,c){return typeof c=="string"?c:xa(c)}return sb(i,r,null,n)}function Se(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function ut(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function rb(){return Math.random().toString(36).substring(2,10)}function Uy(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function mu(n,i,r=null,o,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?Oa(i):i,state:r,key:i&&i.key||o||rb(),unstable_mask:c}}function xa({pathname:n="/",search:i="",hash:r=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Oa(n){let i={};if(n){let r=n.indexOf("#");r>=0&&(i.hash=n.substring(r),n=n.substring(0,r));let o=n.indexOf("?");o>=0&&(i.search=n.substring(o),n=n.substring(0,o)),n&&(i.pathname=n)}return i}function sb(n,i,r,o={}){let{window:c=document.defaultView,v5Compat:d=!1}=o,h=c.history,y="POP",p=null,m=b();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function b(){return(h.state||{idx:null}).idx}function g(){y="POP";let Q=b(),J=Q==null?null:Q-m;m=Q,p&&p({action:y,location:G.location,delta:J})}function T(Q,J){y="PUSH";let F=Cy(Q)?Q:mu(G.location,Q,J);m=b()+1;let W=Uy(F,m),ge=G.createHref(F.unstable_mask||F);try{h.pushState(W,"",ge)}catch(ye){if(ye instanceof DOMException&&ye.name==="DataCloneError")throw ye;c.location.assign(ge)}d&&p&&p({action:y,location:G.location,delta:1})}function A(Q,J){y="REPLACE";let F=Cy(Q)?Q:mu(G.location,Q,J);m=b();let W=Uy(F,m),ge=G.createHref(F.unstable_mask||F);h.replaceState(W,"",ge),d&&p&&p({action:y,location:G.location,delta:0})}function H(Q){return Ov(Q)}let G={get action(){return y},get location(){return n(c,h)},listen(Q){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(My,g),p=Q,()=>{c.removeEventListener(My,g),p=null}},createHref(Q){return i(c,Q)},createURL:H,encodeLocation(Q){let J=H(Q);return{pathname:J.pathname,search:J.search,hash:J.hash}},push:T,replace:A,go(Q){return h.go(Q)}};return G}function Ov(n,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Se(r,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:xa(n);return o=o.replace(/ $/,"%20"),!i&&o.startsWith("//")&&(o=r+o),new URL(o,r)}var ru,Ny=class{constructor(n){if(ib(this,ru,new Map),n)for(let[i,r]of n)this.set(i,r)}get(n){if(Uc(this,ru).has(n))return Uc(this,ru).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,i){Uc(this,ru).set(n,i)}};ru=new WeakMap;var ob=new Set(["lazy","caseSensitive","path","id","index","children"]);function cb(n){return ob.has(n)}var fb=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function db(n){return fb.has(n)}function hb(n){return n.index===!0}function yu(n,i,r=[],o={},c=!1){return n.map((d,h)=>{let y=[...r,String(h)],p=typeof d.id=="string"?d.id:y.join("-");if(Se(d.index!==!0||!d.children,"Cannot specify children on an index route"),Se(c||!o[p],`Found a route id collision on id "${p}". Route id's must be globally unique within Data Router usages`),hb(d)){let m={...d,id:p};return o[p]=xy(m,i(m)),m}else{let m={...d,id:p,children:void 0};return o[p]=xy(m,i(m)),d.children&&(m.children=yu(d.children,i,y,o,c)),m}})}function xy(n,i){return Object.assign(n,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...n.lazy,...i.lazy}}:{}})}function xn(n,i,r="/"){return su(n,i,r,!1)}function su(n,i,r,o){let c=typeof i=="string"?Oa(i):i,d=va(c.pathname||"/",r);if(d==null)return null;let h=Dv(n);yb(h);let y=null;for(let p=0;y==null&&p<h.length;++p){let m=zv(d);y=Rb(h[p],m,o)}return y}function mb(n,i){let{route:r,pathname:o,params:c}=n;return{id:r.id,pathname:o,params:c,data:i[r.id],loaderData:i[r.id],handle:r.handle}}function Dv(n,i=[],r=[],o="",c=!1){let d=(h,y,p=c,m)=>{let b={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:y,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&p)return;Se(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let g=ya([o,b.relativePath]),T=r.concat(b);h.children&&h.children.length>0&&(Se(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Dv(h.children,i,T,g,p)),!(h.path==null&&!h.index)&&i.push({path:g,score:wb(g,h.index),routesMeta:T})};return n.forEach((h,y)=>{if(h.path===""||!h.path?.includes("?"))d(h,y);else for(let p of Av(h.path))d(h,y,!0,p)}),i}function Av(n){let i=n.split("/");if(i.length===0)return[];let[r,...o]=i,c=r.endsWith("?"),d=r.replace(/\?$/,"");if(o.length===0)return c?[d,""]:[d];let h=Av(o.join("/")),y=[];return y.push(...h.map(p=>p===""?d:[d,p].join("/"))),c&&y.push(...h),y.map(p=>n.startsWith("/")&&p===""?"/":p)}function yb(n){n.sort((i,r)=>i.score!==r.score?r.score-i.score:_b(i.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var vb=/^:[\w-]+$/,pb=3,gb=2,bb=1,Sb=10,Eb=-2,Ly=n=>n==="*";function wb(n,i){let r=n.split("/"),o=r.length;return r.some(Ly)&&(o+=Eb),i&&(o+=gb),r.filter(c=>!Ly(c)).reduce((c,d)=>c+(vb.test(d)?pb:d===""?bb:Sb),o)}function _b(n,i){return n.length===i.length&&n.slice(0,-1).every((o,c)=>o===i[c])?n[n.length-1]-i[i.length-1]:0}function Rb(n,i,r=!1){let{routesMeta:o}=n,c={},d="/",h=[];for(let y=0;y<o.length;++y){let p=o[y],m=y===o.length-1,b=d==="/"?i:i.slice(d.length)||"/",g=vu({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},b),T=p.route;if(!g&&m&&r&&!o[o.length-1].route.index&&(g=vu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!g)return null;Object.assign(c,g.params),h.push({params:c,pathname:ya([d,g.pathname]),pathnameBase:Ab(ya([d,g.pathnameBase])),route:T}),g.pathnameBase!=="/"&&(d=ya([d,g.pathnameBase]))}return h}function vu(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,o]=Tb(n.path,n.caseSensitive,n.end),c=i.match(r);if(!c)return null;let d=c[0],h=d.replace(/(.)\/+$/,"$1"),y=c.slice(1);return{params:o.reduce((m,{paramName:b,isOptional:g},T)=>{if(b==="*"){let H=y[T]||"";h=d.slice(0,d.length-H.length).replace(/(.)\/+$/,"$1")}const A=y[T];return g&&!A?m[b]=void 0:m[b]=(A||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:h,pattern:n}}function Tb(n,i=!1,r=!0){ut(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let o=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,y,p,m,b)=>{if(o.push({paramName:y,isOptional:p!=null}),p){let g=b.charAt(m+h.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),o]}function zv(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ut(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function va(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,o=n.charAt(r);return o&&o!=="/"?null:n.slice(r)||"/"}function Ob({basename:n,pathname:i}){return i==="/"?n:ya([n,i])}var Mv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ff=n=>Mv.test(n);function Db(n,i="/"){let{pathname:r,search:o="",hash:c=""}=typeof n=="string"?Oa(n):n,d;return r?(r=df(r),r.startsWith("/")?d=Hy(r.substring(1),"/"):d=Hy(r,i)):d=i,{pathname:d,search:zb(o),hash:Mb(c)}}function Hy(n,i){let r=ns(i).split("/");return n.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function Nc(n,i,r,o){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cv(n){return n.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function fs(n){let i=Cv(n);return i.map((r,o)=>o===i.length-1?r.pathname:r.pathnameBase)}function Su(n,i,r,o=!1){let c;typeof n=="string"?c=Oa(n):(c={...n},Se(!c.pathname||!c.pathname.includes("?"),Nc("?","pathname","search",c)),Se(!c.pathname||!c.pathname.includes("#"),Nc("#","pathname","hash",c)),Se(!c.search||!c.search.includes("#"),Nc("#","search","hash",c)));let d=n===""||c.pathname==="",h=d?"/":c.pathname,y;if(h==null)y=r;else{let g=i.length-1;if(!o&&h.startsWith("..")){let T=h.split("/");for(;T[0]==="..";)T.shift(),g-=1;c.pathname=T.join("/")}y=g>=0?i[g]:"/"}let p=Db(c,y),m=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||b)&&(p.pathname+="/"),p}var df=n=>n.replace(/\/\/+/g,"/"),ya=n=>df(n.join("/")),ns=n=>n.replace(/\/+$/,""),Ab=n=>ns(n).replace(/^\/*/,"/"),zb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Mb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Eu=class{constructor(n,i,r,o=!1){this.status=n,this.statusText=i||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function pu(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function wu(n){let i=n.map(r=>r.route.path).filter(Boolean);return ya(i)||"/"}var Uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Nv(n,i){let r=n;if(typeof r!="string"||!Mv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,c=!1;if(Uv)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),y=va(h.pathname,i);h.origin===d.origin&&y!=null?r=y+h.search+h.hash:c=!0}catch{ut(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:c,to:r}}var Hn=Symbol("Uninstrumented");function Cb(n,i){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(d){let h=Object.keys(r);for(let y of h)d[y]&&r[y].push(d[y])}}));let o={};if(typeof i.lazy=="function"&&r.lazy.length>0){let c=ti(r.lazy,i.lazy,()=>{});c&&(o.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(d=>{let h=c[d],y=r[`lazy.${d}`];if(typeof h=="function"&&y.length>0){let p=ti(y,h,()=>{});p&&(o.lazy=Object.assign(o.lazy||{},{[d]:p}))}})}return["loader","action"].forEach(c=>{let d=i[c];if(typeof d=="function"&&r[c].length>0){let h=d[Hn]??d,y=ti(r[c],h,(...p)=>By(p[0]));y&&(c==="loader"&&h.hydrate===!0&&(y.hydrate=!0),y[Hn]=h,o[c]=y)}}),i.middleware&&i.middleware.length>0&&r.middleware.length>0&&(o.middleware=i.middleware.map(c=>{let d=c[Hn]??c,h=ti(r.middleware,d,(...y)=>By(y[0]));return h?(h[Hn]=d,h):c})),o}function Ub(n,i){let r={navigate:[],fetch:[]};if(i.forEach(o=>o({instrument(c){let d=Object.keys(c);for(let h of d)c[h]&&r[h].push(c[h])}})),r.navigate.length>0){let o=n.navigate[Hn]??n.navigate,c=ti(r.navigate,o,(...d)=>{let[h,y]=d;return{to:typeof h=="number"||typeof h=="string"?h:h?xa(h):".",...jy(n,y??{})}});c&&(c[Hn]=o,n.navigate=c)}if(r.fetch.length>0){let o=n.fetch[Hn]??n.fetch,c=ti(r.fetch,o,(...d)=>{let[h,,y,p]=d;return{href:y??".",fetcherKey:h,...jy(n,p??{})}});c&&(c[Hn]=o,n.fetch=c)}return n}function ti(n,i,r){return n.length===0?null:async(...o)=>{let c=await xv(n,r(...o),()=>i(...o),n.length-1);if(c.type==="error")throw c.value;return c.value}}async function xv(n,i,r,o){let c=n[o],d;if(c){let h,y=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=xv(n,i,r,o-1),d=await h,Se(d,"Expected a result"),d.type==="error"&&d.value instanceof Error?{status:"error",error:d.value}:{status:"success",error:void 0});try{await c(y,i)}catch(p){console.error("An instrumentation function threw an error:",p)}h||await y(),await h}else try{d={type:"success",value:await r()}}catch(h){d={type:"error",value:h}}return d||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function By(n){let{request:i,context:r,params:o,unstable_pattern:c}=n;return{request:Nb(i),params:{...o},unstable_pattern:c,context:xb(r)}}function jy(n,i){return{currentUrl:xa(n.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function Nb(n){return{method:n.method,url:n.url,headers:{get:(...i)=>n.headers.get(...i)}}}function xb(n){if(Hb(n)){let i={...n};return Object.freeze(i),i}else return{get:i=>n.get(i)}}var Lb=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Hb(n){if(n===null||typeof n!="object")return!1;const i=Object.getPrototypeOf(n);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===Lb}var Lv=["POST","PUT","PATCH","DELETE"],Bb=new Set(Lv),jb=["GET",...Lv],qb=new Set(jb),Hv=new Set([301,302,303,307,308]),Yb=new Set([307,308]),xc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gb={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},nu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Qb=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Bv="remix-router-transitions",jv=Symbol("ResetLoaderData");function Vb(n){const i=n.window?n.window:typeof window<"u"?window:void 0,r=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";Se(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let o=n.hydrationRouteProperties||[],c=n.mapRouteProperties||Qb,d=c;if(n.unstable_instrumentations){let E=n.unstable_instrumentations;d=R=>({...c(R),...Cb(E.map(U=>U.route).filter(Boolean),R)})}let h={},y=yu(n.routes,d,void 0,h),p,m=n.basename||"/";m.startsWith("/")||(m=`/${m}`);let b=n.dataStrategy||Jb,g={unstable_passThroughRequests:!1,...n.future},T=null,A=new Set,H=null,G=null,Q=null,J=n.hydrationData!=null,F=xn(y,n.history.location,m),W=!1,ge=null,ye,Ee;if(F==null&&!n.patchRoutesOnNavigation){let E=ha(404,{pathname:n.history.location.pathname}),{matches:R,route:U}=Zr(y);ye=!0,Ee=!ye,F=R,ge={[U.id]:E}}else if(F&&!n.hydrationData&&sn(F,y,n.history.location.pathname).active&&(F=null),F)if(F.some(E=>E.route.lazy))ye=!1,Ee=!ye;else if(!F.some(E=>hf(E.route)))ye=!0,Ee=!ye;else{let E=n.hydrationData?n.hydrationData.loaderData:null,R=n.hydrationData?n.hydrationData.errors:null,U=F;if(R){let X=F.findIndex(K=>R[K.route.id]!==void 0);U=U.slice(0,X+1)}Ee=!1,ye=!0,U.forEach(X=>{let K=qv(X.route,E,R);Ee=Ee||K.renderFallback,ye=ye&&!K.shouldLoad})}else{ye=!1,Ee=!ye,F=[];let E=sn(null,y,n.history.location.pathname);E.active&&E.matches&&(W=!0,F=E.matches)}let te,C={historyAction:n.history.action,location:n.history.location,matches:F,initialized:ye,renderFallback:Ee,navigation:xc,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||ge,fetchers:new Map,blockers:new Map},se="POP",Te=null,xe=!1,pe,He=!1,We=new Map,oe=null,x=!1,Z=!1,ne=new Set,ue=new Map,_e=0,w=-1,j=new Map,k=new Set,$=new Map,he=new Map,ve=new Set,Oe=new Map,ft,Ke=null;function jn(){if(T=n.history.listen(({action:E,location:R,delta:U})=>{if(ft){ft(),ft=void 0;return}ut(Oe.size===0||U!=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 X=Yn({currentLocation:C.location,nextLocation:R,historyAction:E});if(X&&U!=null){let K=new Promise(le=>{ft=le});n.history.go(U*-1),qa(X,{state:"blocked",location:R,proceed(){qa(X,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),K.then(()=>n.history.go(U))},reset(){let le=new Map(C.blockers);le.set(X,nu),gt({blockers:le})}}),Te?.resolve(),Te=null;return}return Ha(E,R)}),r){dS(i,We);let E=()=>hS(i,We);i.addEventListener("pagehide",E),oe=()=>i.removeEventListener("pagehide",E)}return C.initialized||Ha("POP",C.location,{initialHydration:!0}),te}function fl(){T&&T(),oe&&oe(),A.clear(),pe&&pe.abort(),C.fetchers.forEach((E,R)=>ja(R)),C.blockers.forEach((E,R)=>qn(R))}function si(E){return A.add(E),()=>A.delete(E)}function gt(E,R={}){E.matches&&(E.matches=E.matches.map(K=>{let le=h[K.route.id],P=K.route;return P.element!==le.element||P.errorElement!==le.errorElement||P.hydrateFallbackElement!==le.hydrateFallbackElement?{...K,route:le}:K})),C={...C,...E};let U=[],X=[];C.fetchers.forEach((K,le)=>{K.state==="idle"&&(ve.has(le)?U.push(le):X.push(le))}),ve.forEach(K=>{!C.fetchers.has(K)&&!ue.has(K)&&U.push(K)}),[...A].forEach(K=>K(C,{deletedFetchers:U,newErrors:E.errors??null,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),U.forEach(K=>ja(K)),X.forEach(K=>C.fetchers.delete(K))}function Bt(E,R,{flushSync:U}={}){let X=C.actionData!=null&&C.navigation.formMethod!=null&&Nt(C.navigation.formMethod)&&C.navigation.state==="loading"&&E.state?._isRedirect!==!0,K;R.actionData?Object.keys(R.actionData).length>0?K=R.actionData:K=null:X?K=C.actionData:K=null;let le=R.loaderData?Fy(C.loaderData,R.loaderData,R.matches||[],R.errors):C.loaderData,P=C.blockers;P.size>0&&(P=new Map(P),P.forEach((de,ce)=>P.set(ce,nu)));let I=x?!1:hi(E,R.matches||C.matches),ie=xe===!0||C.navigation.formMethod!=null&&Nt(C.navigation.formMethod)&&E.state?._isRedirect!==!0;p&&(y=p,p=void 0),x||se==="POP"||(se==="PUSH"?n.history.push(E,E.state):se==="REPLACE"&&n.history.replace(E,E.state));let ee;if(se==="POP"){let de=We.get(C.location.pathname);de&&de.has(E.pathname)?ee={currentLocation:C.location,nextLocation:E}:We.has(E.pathname)&&(ee={currentLocation:E,nextLocation:C.location})}else if(He){let de=We.get(C.location.pathname);de?de.add(E.pathname):(de=new Set([E.pathname]),We.set(C.location.pathname,de)),ee={currentLocation:C.location,nextLocation:E}}gt({...R,actionData:K,loaderData:le,historyAction:se,location:E,initialized:!0,renderFallback:!1,navigation:xc,revalidation:"idle",restoreScrollPosition:I,preventScrollReset:ie,blockers:P},{viewTransitionOpts:ee,flushSync:U===!0}),se="POP",xe=!1,He=!1,x=!1,Z=!1,Te?.resolve(),Te=null,Ke?.resolve(),Ke=null}async function dl(E,R){if(Te?.resolve(),Te=null,typeof E=="number"){Te||(Te=Iy());let Je=Te.promise;return n.history.go(E),Je}let U=Qc(C.location,C.matches,m,E,R?.fromRouteId,R?.relative),{path:X,submission:K,error:le}=qy(!1,U,R),P;R?.unstable_mask&&(P={pathname:"",search:"",hash:"",...typeof R.unstable_mask=="string"?Oa(R.unstable_mask):{...C.location.unstable_mask,...R.unstable_mask}});let I=C.location,ie=mu(I,X,R&&R.state,void 0,P);ie={...ie,...n.history.encodeLocation(ie)};let ee=R&&R.replace!=null?R.replace:void 0,de="PUSH";ee===!0?de="REPLACE":ee===!1||K!=null&&Nt(K.formMethod)&&K.formAction===C.location.pathname+C.location.search&&(de="REPLACE");let ce=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,Be=(R&&R.flushSync)===!0,De=Yn({currentLocation:I,nextLocation:ie,historyAction:de});if(De){qa(De,{state:"blocked",location:ie,proceed(){qa(De,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),dl(E,R)},reset(){let Je=new Map(C.blockers);Je.set(De,nu),gt({blockers:Je})}});return}await Ha(de,ie,{submission:K,pendingError:le,preventScrollReset:ce,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:Be,callSiteDefaultShouldRevalidate:R&&R.unstable_defaultShouldRevalidate})}function oi(){Ke||(Ke=Iy()),un(),gt({revalidation:"loading"});let E=Ke.promise;return C.navigation.state==="submitting"?E:C.navigation.state==="idle"?(Ha(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),E):(Ha(se||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:He===!0}),E)}async function Ha(E,R,U){pe&&pe.abort(),pe=null,se=E,x=(U&&U.startUninterruptedRevalidation)===!0,gs(C.location,C.matches),xe=(U&&U.preventScrollReset)===!0,He=(U&&U.enableViewTransition)===!0;let X=p||y,K=U&&U.overrideNavigation,le=U?.initialHydration&&C.matches&&C.matches.length>0&&!W?C.matches:xn(X,R,m),P=(U&&U.flushSync)===!0;if(le&&C.initialized&&!Z&&aS(C.location,R)&&!(U&&U.submission&&Nt(U.submission.formMethod))){Bt(R,{matches:le},{flushSync:P});return}let I=sn(le,X,R.pathname);if(I.active&&I.matches&&(le=I.matches),!le){let{error:Pe,notFoundMatches:nt,route:Le}=Sa(R.pathname);Bt(R,{matches:nt,loaderData:{},errors:{[Le.id]:Pe}},{flushSync:P});return}pe=new AbortController;let ie=Il(n.history,R,pe.signal,U&&U.submission),ee=n.getContext?await n.getContext():new Ny,de;if(U&&U.pendingError)de=[Ln(le).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&Nt(U.submission.formMethod)){let Pe=await Du(ie,R,U.submission,le,ee,I.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:P});if(Pe.shortCircuited)return;if(Pe.pendingActionResult){let[nt,Le]=Pe.pendingActionResult;if(ea(Le)&&pu(Le.error)&&Le.error.status===404){pe=null,Bt(R,{matches:Pe.matches,loaderData:{},errors:{[nt]:Le.error}});return}}le=Pe.matches||le,de=Pe.pendingActionResult,K=Lc(R,U.submission),P=!1,I.active=!1,ie=Il(n.history,ie.url,ie.signal)}let{shortCircuited:ce,matches:Be,loaderData:De,errors:Je}=await ci(ie,R,le,ee,I.active,K,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,P,de,U&&U.callSiteDefaultShouldRevalidate);ce||(pe=null,Bt(R,{matches:Be||le,...Wy(de),loaderData:De,errors:Je}))}async function Du(E,R,U,X,K,le,P,I={}){un();let ie=cS(R,U);if(gt({navigation:ie},{flushSync:I.flushSync===!0}),le){let ce=await Da(X,R.pathname,E.signal);if(ce.type==="aborted")return{shortCircuited:!0};if(ce.type==="error"){if(ce.partialMatches.length===0){let{matches:De,route:Je}=Zr(y);return{matches:De,pendingActionResult:[Je.id,{type:"error",error:ce.error}]}}let Be=Ln(ce.partialMatches).route.id;return{matches:ce.partialMatches,pendingActionResult:[Be,{type:"error",error:ce.error}]}}else if(ce.matches)X=ce.matches;else{let{notFoundMatches:Be,error:De,route:Je}=Sa(R.pathname);return{matches:Be,pendingActionResult:[Je.id,{type:"error",error:De}]}}}let ee,de=Pr(X,R);if(!de.route.action&&!de.route.lazy)ee={type:"error",error:ha(405,{method:E.method,pathname:R.pathname,routeId:de.route.id})};else{let ce=ni(d,h,E,R,X,de,P?[]:o,K),Be=await ln(E,R,ce,K,null);if(ee=Be[de.route.id],!ee){for(let De of X)if(Be[De.route.id]){ee=Be[De.route.id];break}}if(E.signal.aborted)return{shortCircuited:!0}}if(ul(ee)){let ce;return I&&I.replace!=null?ce=I.replace:ce=ky(ee.response.headers.get("Location"),new URL(E.url),m,n.history)===C.location.pathname+C.location.search,await Ba(E,ee,!0,{submission:U,replace:ce}),{shortCircuited:!0}}if(ea(ee)){let ce=Ln(X,de.route.id);return(I&&I.replace)!==!0&&(se="PUSH"),{matches:X,pendingActionResult:[ce.route.id,ee,de.route.id]}}return{matches:X,pendingActionResult:[de.route.id,ee]}}async function ci(E,R,U,X,K,le,P,I,ie,ee,de,ce,Be){let De=le||Lc(R,P),Je=P||I||Py(De),Pe=!x&&!ee;if(K){if(Pe){let rt=hl(ce);gt({navigation:De,...rt!==void 0?{actionData:rt}:{}},{flushSync:de})}let Ae=await Da(U,R.pathname,E.signal);if(Ae.type==="aborted")return{shortCircuited:!0};if(Ae.type==="error"){if(Ae.partialMatches.length===0){let{matches:Mt,route:ht}=Zr(y);return{matches:Mt,loaderData:{},errors:{[ht.id]:Ae.error}}}let rt=Ln(Ae.partialMatches).route.id;return{matches:Ae.partialMatches,loaderData:{},errors:{[rt]:Ae.error}}}else if(Ae.matches)U=Ae.matches;else{let{error:rt,notFoundMatches:Mt,route:ht}=Sa(R.pathname);return{matches:Mt,loaderData:{},errors:{[ht.id]:rt}}}}let nt=p||y,{dsMatches:Le,revalidatingFetchers:dt}=Yy(E,X,d,h,n.history,C,U,Je,R,ee?[]:o,ee===!0,Z,ne,ve,$,k,nt,m,n.patchRoutesOnNavigation!=null,ce,Be);if(w=++_e,!n.dataStrategy&&!Le.some(Ae=>Ae.shouldLoad)&&!Le.some(Ae=>Ae.route.middleware&&Ae.route.middleware.length>0)&&dt.length===0){let Ae=zu();return Bt(R,{matches:U,loaderData:{},errors:ce&&ea(ce[1])?{[ce[0]]:ce[1].error}:null,...Wy(ce),...Ae?{fetchers:new Map(C.fetchers)}:{}},{flushSync:de}),{shortCircuited:!0}}if(Pe){let Ae={};if(!K){Ae.navigation=De;let rt=hl(ce);rt!==void 0&&(Ae.actionData=rt)}dt.length>0&&(Ae.fetchers=fi(dt)),gt(Ae,{flushSync:de})}dt.forEach(Ae=>{St(Ae.key),Ae.controller&&ue.set(Ae.key,Ae.controller)});let $e=()=>dt.forEach(Ae=>St(Ae.key));pe&&pe.signal.addEventListener("abort",$e);let{loaderResults:on,fetcherResults:Ea}=await di(Le,dt,E,R,X);if(E.signal.aborted)return{shortCircuited:!0};pe&&pe.signal.removeEventListener("abort",$e),dt.forEach(Ae=>ue.delete(Ae.key));let Et=kr(on);if(Et)return await Ba(E,Et.result,!0,{replace:ie}),{shortCircuited:!0};if(Et=kr(Ea),Et)return k.add(Et.key),await Ba(E,Et.result,!0,{replace:ie}),{shortCircuited:!0};let{loaderData:Aa,errors:Gn}=Jy(C,U,on,ce,dt,Ea);ee&&C.errors&&(Gn={...C.errors,...Gn});let za=zu(),Qn=Mu(w),yl=za||Qn||dt.length>0;return{matches:U,loaderData:Aa,errors:Gn,...yl?{fetchers:new Map(C.fetchers)}:{}}}function hl(E){if(E&&!ea(E[1]))return{[E[0]]:E[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function fi(E){return E.forEach(R=>{let U=C.fetchers.get(R.key),X=lu(void 0,U?U.data:void 0);C.fetchers.set(R.key,X)}),new Map(C.fetchers)}async function ms(E,R,U,X){St(E);let K=(X&&X.flushSync)===!0,le=p||y,P=Qc(C.location,C.matches,m,U,R,X?.relative),I=xn(le,P,m),ie=sn(I,le,P);if(ie.active&&ie.matches&&(I=ie.matches),!I){aa(E,R,ha(404,{pathname:P}),{flushSync:K});return}let{path:ee,submission:de,error:ce}=qy(!0,P,X);if(ce){aa(E,R,ce,{flushSync:K});return}let Be=n.getContext?await n.getContext():new Ny,De=(X&&X.preventScrollReset)===!0;if(de&&Nt(de.formMethod)){await ys(E,R,ee,I,Be,ie.active,K,De,de,X&&X.unstable_defaultShouldRevalidate);return}$.set(E,{routeId:R,path:ee}),await xt(E,R,ee,I,Be,ie.active,K,De,de)}async function ys(E,R,U,X,K,le,P,I,ie,ee){un(),$.delete(E);let de=C.fetchers.get(E);ba(E,fS(ie,de),{flushSync:P});let ce=new AbortController,Be=Il(n.history,U,ce.signal,ie);if(le){let Ie=await Da(X,new URL(Be.url).pathname,Be.signal,E);if(Ie.type==="aborted")return;if(Ie.type==="error"){aa(E,R,Ie.error,{flushSync:P});return}else if(Ie.matches)X=Ie.matches;else{aa(E,R,ha(404,{pathname:U}),{flushSync:P});return}}let De=Pr(X,U);if(!De.route.action&&!De.route.lazy){let Ie=ha(405,{method:ie.formMethod,pathname:U,routeId:R});aa(E,R,Ie,{flushSync:P});return}ue.set(E,ce);let Je=_e,Pe=ni(d,h,Be,U,X,De,o,K),nt=await ln(Be,U,Pe,K,E),Le=nt[De.route.id];if(!Le){for(let Ie of Pe)if(nt[Ie.route.id]){Le=nt[Ie.route.id];break}}if(Be.signal.aborted){ue.get(E)===ce&&ue.delete(E);return}if(ve.has(E)){if(ul(Le)||ea(Le)){ba(E,nn(void 0));return}}else{if(ul(Le))if(ue.delete(E),w>Je){ba(E,nn(void 0));return}else return k.add(E),ba(E,lu(ie)),Ba(Be,Le,!1,{fetcherSubmission:ie,preventScrollReset:I});if(ea(Le)){aa(E,R,Le.error);return}}let dt=C.navigation.location||C.location,$e=Il(n.history,dt,ce.signal),on=p||y,Ea=C.navigation.state!=="idle"?xn(on,C.navigation.location,m):C.matches;Se(Ea,"Didn't find any matches after fetcher action");let Et=++_e;j.set(E,Et);let Aa=lu(ie,Le.data);C.fetchers.set(E,Aa);let{dsMatches:Gn,revalidatingFetchers:za}=Yy($e,K,d,h,n.history,C,Ea,ie,dt,o,!1,Z,ne,ve,$,k,on,m,n.patchRoutesOnNavigation!=null,[De.route.id,Le],ee);za.filter(Ie=>Ie.key!==E).forEach(Ie=>{let vl=Ie.key,pl=C.fetchers.get(vl),xu=lu(void 0,pl?pl.data:void 0);C.fetchers.set(vl,xu),St(vl),Ie.controller&&ue.set(vl,Ie.controller)}),gt({fetchers:new Map(C.fetchers)});let Qn=()=>za.forEach(Ie=>St(Ie.key));ce.signal.addEventListener("abort",Qn);let{loaderResults:yl,fetcherResults:Ae}=await di(Gn,za,$e,dt,K);if(ce.signal.aborted)return;if(ce.signal.removeEventListener("abort",Qn),j.delete(E),ue.delete(E),za.forEach(Ie=>ue.delete(Ie.key)),C.fetchers.has(E)){let Ie=nn(Le.data);C.fetchers.set(E,Ie)}let rt=kr(yl);if(rt)return Ba($e,rt.result,!1,{preventScrollReset:I});if(rt=kr(Ae),rt)return k.add(rt.key),Ba($e,rt.result,!1,{preventScrollReset:I});let{loaderData:Mt,errors:ht}=Jy(C,Ea,yl,void 0,za,Ae);Mu(Et),C.navigation.state==="loading"&&Et>w?(Se(se,"Expected pending action"),pe&&pe.abort(),Bt(C.navigation.location,{matches:Ea,loaderData:Mt,errors:ht,fetchers:new Map(C.fetchers)})):(gt({errors:ht,loaderData:Fy(C.loaderData,Mt,Ea,ht),fetchers:new Map(C.fetchers)}),Z=!1)}async function xt(E,R,U,X,K,le,P,I,ie){let ee=C.fetchers.get(E);ba(E,lu(ie,ee?ee.data:void 0),{flushSync:P});let de=new AbortController,ce=Il(n.history,U,de.signal);if(le){let Le=await Da(X,new URL(ce.url).pathname,ce.signal,E);if(Le.type==="aborted")return;if(Le.type==="error"){aa(E,R,Le.error,{flushSync:P});return}else if(Le.matches)X=Le.matches;else{aa(E,R,ha(404,{pathname:U}),{flushSync:P});return}}let Be=Pr(X,U);ue.set(E,de);let De=_e,Je=ni(d,h,ce,U,X,Be,o,K),nt=(await ln(ce,U,Je,K,E))[Be.route.id];if(ue.get(E)===de&&ue.delete(E),!ce.signal.aborted){if(ve.has(E)){ba(E,nn(void 0));return}if(ul(nt))if(w>De){ba(E,nn(void 0));return}else{k.add(E),await Ba(ce,nt,!1,{preventScrollReset:I});return}if(ea(nt)){aa(E,R,nt.error);return}ba(E,nn(nt.data))}}async function Ba(E,R,U,{submission:X,fetcherSubmission:K,preventScrollReset:le,replace:P}={}){U||(Te?.resolve(),Te=null),R.response.headers.has("X-Remix-Revalidate")&&(Z=!0);let I=R.response.headers.get("Location");Se(I,"Expected a Location header on the redirect Response"),I=ky(I,new URL(E.url),m,n.history);let ie=mu(C.location,I,{_isRedirect:!0});if(r){let Je=!1;if(R.response.headers.has("X-Remix-Reload-Document"))Je=!0;else if(ff(I)){const Pe=Ov(I,!0);Je=Pe.origin!==i.location.origin||va(Pe.pathname,m)==null}if(Je){P?i.location.replace(I):i.location.assign(I);return}}pe=null;let ee=P===!0||R.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:de,formAction:ce,formEncType:Be}=C.navigation;!X&&!K&&de&&ce&&Be&&(X=Py(C.navigation));let De=X||K;if(Yb.has(R.response.status)&&De&&Nt(De.formMethod))await Ha(ee,ie,{submission:{...De,formAction:I},preventScrollReset:le||xe,enableViewTransition:U?He:void 0});else{let Je=Lc(ie,X);await Ha(ee,ie,{overrideNavigation:Je,fetcherSubmission:K,preventScrollReset:le||xe,enableViewTransition:U?He:void 0})}}async function ln(E,R,U,X,K){let le,P={};try{le=await Wb(b,E,R,U,K,X,!1)}catch(I){return U.filter(ie=>ie.shouldLoad).forEach(ie=>{P[ie.route.id]={type:"error",error:I}}),P}if(E.signal.aborted)return P;if(!Nt(E.method))for(let I of U){if(le[I.route.id]?.type==="error")break;!le.hasOwnProperty(I.route.id)&&!C.loaderData.hasOwnProperty(I.route.id)&&(!C.errors||!C.errors.hasOwnProperty(I.route.id))&&I.shouldCallHandler()&&(le[I.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${I.route.id}`)})}for(let[I,ie]of Object.entries(le))if(uS(ie)){let ee=ie.result;P[I]={type:"redirect",response:eS(ee,E,I,U,m)}}else P[I]=await Ib(ie);return P}async function di(E,R,U,X,K){let le=ln(U,X,E,K,null),P=Promise.all(R.map(async ee=>{if(ee.matches&&ee.match&&ee.request&&ee.controller){let ce=(await ln(ee.request,ee.path,ee.matches,K,ee.key))[ee.match.route.id];return{[ee.key]:ce}}else return Promise.resolve({[ee.key]:{type:"error",error:ha(404,{pathname:ee.path})}})})),I=await le,ie=(await P).reduce((ee,de)=>Object.assign(ee,de),{});return{loaderResults:I,fetcherResults:ie}}function un(){Z=!0,$.forEach((E,R)=>{ue.has(R)&&ne.add(R),St(R)})}function ba(E,R,U={}){C.fetchers.set(E,R),gt({fetchers:new Map(C.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function aa(E,R,U,X={}){let K=Ln(C.matches,R);ja(E),gt({errors:{[K.route.id]:U},fetchers:new Map(C.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function Au(E){return he.set(E,(he.get(E)||0)+1),ve.has(E)&&ve.delete(E),C.fetchers.get(E)||Gb}function vs(E,R){St(E,R?.reason),ba(E,nn(null))}function ja(E){let R=C.fetchers.get(E);ue.has(E)&&!(R&&R.state==="loading"&&j.has(E))&&St(E),$.delete(E),j.delete(E),k.delete(E),ve.delete(E),ne.delete(E),C.fetchers.delete(E)}function Lt(E){let R=(he.get(E)||0)-1;R<=0?(he.delete(E),ve.add(E)):he.set(E,R),gt({fetchers:new Map(C.fetchers)})}function St(E,R){let U=ue.get(E);U&&(U.abort(R),ue.delete(E))}function zt(E){for(let R of E){let U=Au(R),X=nn(U.data);C.fetchers.set(R,X)}}function zu(){let E=[],R=!1;for(let U of k){let X=C.fetchers.get(U);Se(X,`Expected fetcher: ${U}`),X.state==="loading"&&(k.delete(U),E.push(U),R=!0)}return zt(E),R}function Mu(E){let R=[];for(let[U,X]of j)if(X<E){let K=C.fetchers.get(U);Se(K,`Expected fetcher: ${U}`),K.state==="loading"&&(St(U),j.delete(U),R.push(U))}return zt(R),R.length>0}function ps(E,R){let U=C.blockers.get(E)||nu;return Oe.get(E)!==R&&Oe.set(E,R),U}function qn(E){C.blockers.delete(E),Oe.delete(E)}function qa(E,R){let U=C.blockers.get(E)||nu;Se(U.state==="unblocked"&&R.state==="blocked"||U.state==="blocked"&&R.state==="blocked"||U.state==="blocked"&&R.state==="proceeding"||U.state==="blocked"&&R.state==="unblocked"||U.state==="proceeding"&&R.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${R.state}`);let X=new Map(C.blockers);X.set(E,R),gt({blockers:X})}function Yn({currentLocation:E,nextLocation:R,historyAction:U}){if(Oe.size===0)return;Oe.size>1&&ut(!1,"A router only supports one blocker at a time");let X=Array.from(Oe.entries()),[K,le]=X[X.length-1],P=C.blockers.get(K);if(!(P&&P.state==="proceeding")&&le({currentLocation:E,nextLocation:R,historyAction:U}))return K}function Sa(E){let R=ha(404,{pathname:E}),U=p||y,{matches:X,route:K}=Zr(U);return{notFoundMatches:X,route:K,error:R}}function ml(E,R,U){if(H=E,Q=R,G=U||null,!J&&C.navigation===xc){J=!0;let X=hi(C.location,C.matches);X!=null&&gt({restoreScrollPosition:X})}return()=>{H=null,Q=null,G=null}}function rn(E,R){return G&&G(E,R.map(X=>mb(X,C.loaderData)))||E.key}function gs(E,R){if(H&&Q){let U=rn(E,R);H[U]=Q()}}function hi(E,R){if(H){let U=rn(E,R),X=H[U];if(typeof X=="number")return X}return null}function sn(E,R,U){if(n.patchRoutesOnNavigation)if(E){if(Object.keys(E[0].params).length>0)return{active:!0,matches:su(R,U,m,!0)}}else return{active:!0,matches:su(R,U,m,!0)||[]};return{active:!1,matches:null}}async function Da(E,R,U,X){if(!n.patchRoutesOnNavigation)return{type:"success",matches:E};let K=E;for(;;){let le=p==null,P=p||y,I=h;try{await n.patchRoutesOnNavigation({signal:U,path:R,matches:K,fetcherKey:X,patch:(de,ce)=>{U.aborted||Gy(de,ce,P,I,d,!1)}})}catch(de){return{type:"error",error:de,partialMatches:K}}finally{le&&!U.aborted&&(y=[...y])}if(U.aborted)return{type:"aborted"};let ie=xn(P,R,m),ee=null;if(ie){if(Object.keys(ie[0].params).length===0)return{type:"success",matches:ie};if(ee=su(P,R,m,!0),!(ee&&K.length<ee.length&&Cu(K,ee.slice(0,K.length))))return{type:"success",matches:ie}}if(ee||(ee=su(P,R,m,!0)),!ee||Cu(K,ee))return{type:"success",matches:null};K=ee}}function Cu(E,R){return E.length===R.length&&E.every((U,X)=>U.route.id===R[X].route.id)}function Uu(E){h={},p=yu(E,d,void 0,h)}function Nu(E,R,U=!1){let X=p==null;Gy(E,R,p||y,h,d,U),X&&(y=[...y],gt({}))}return te={get basename(){return m},get future(){return g},get state(){return C},get routes(){return y},get window(){return i},initialize:jn,subscribe:si,enableScrollRestoration:ml,navigate:dl,fetch:ms,revalidate:oi,createHref:E=>n.history.createHref(E),encodeLocation:E=>n.history.encodeLocation(E),getFetcher:Au,resetFetcher:vs,deleteFetcher:Lt,dispose:fl,getBlocker:ps,deleteBlocker:qn,patchRoutes:Nu,_internalFetchControllers:ue,_internalSetRoutes:Uu,_internalSetStateDoNotUseOrYouWillBreakYourApp(E){gt(E)}},n.unstable_instrumentations&&(te=Ub(te,n.unstable_instrumentations.map(E=>E.router).filter(Boolean))),te}function Xb(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Qc(n,i,r,o,c,d){let h,y;if(c){h=[];for(let m of i)if(h.push(m),m.route.id===c){y=m;break}}else h=i,y=i[i.length-1];let p=Su(o||".",fs(h),va(n.pathname,r)||n.pathname,d==="path");if(o==null&&(p.search=n.search,p.hash=n.hash),(o==null||o===""||o===".")&&y){let m=yf(p.search);if(y.route.index&&!m)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&m){let b=new URLSearchParams(p.search),g=b.getAll("index");b.delete("index"),g.filter(A=>A).forEach(A=>b.append("index",A));let T=b.toString();p.search=T?`?${T}`:""}}return r!=="/"&&(p.pathname=Ob({basename:r,pathname:p.pathname})),xa(p)}function qy(n,i,r){if(!r||!Xb(r))return{path:i};if(r.formMethod&&!oS(r.formMethod))return{path:i,error:ha(405,{method:r.formMethod})};let o=()=>({path:i,error:ha(400,{type:"invalid-body"})}),d=(r.formMethod||"get").toUpperCase(),h=kv(i);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Nt(d))return o();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((T,[A,H])=>`${T}${A}=${H}
60
- `,""):String(r.body);return{path:i,submission:{formMethod:d,formAction:h,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!Nt(d))return o();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:i,submission:{formMethod:d,formAction:h,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return o()}}}Se(typeof FormData=="function","FormData is not available in this environment");let y,p;if(r.formData)y=Xc(r.formData),p=r.formData;else if(r.body instanceof FormData)y=Xc(r.body),p=r.body;else if(r.body instanceof URLSearchParams)y=r.body,p=Ky(y);else if(r.body==null)y=new URLSearchParams,p=new FormData;else try{y=new URLSearchParams(r.body),p=Ky(y)}catch{return o()}let m={formMethod:d,formAction:h,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(Nt(m.formMethod))return{path:i,submission:m};let b=Oa(i);return n&&b.search&&yf(b.search)&&y.append("index",""),b.search=`?${y}`,{path:xa(b),submission:m}}function Yy(n,i,r,o,c,d,h,y,p,m,b,g,T,A,H,G,Q,J,F,W,ge){let ye=W?ea(W[1])?W[1].error:W[1].data:void 0,Ee=c.createURL(d.location),te=c.createURL(p),C;if(b&&d.errors){let oe=Object.keys(d.errors)[0];C=h.findIndex(x=>x.route.id===oe)}else if(W&&ea(W[1])){let oe=W[0];C=h.findIndex(x=>x.route.id===oe)-1}let se=W?W[1].statusCode:void 0,Te=se&&se>=400,xe={currentUrl:Ee,currentParams:d.matches[0]?.params||{},nextUrl:te,nextParams:h[0].params,...y,actionResult:ye,actionStatus:se},pe=wu(h),He=h.map((oe,x)=>{let{route:Z}=oe,ne=null;if(C!=null&&x>C)ne=!1;else if(Z.lazy)ne=!0;else if(!hf(Z))ne=!1;else if(b){let{shouldLoad:j}=qv(Z,d.loaderData,d.errors);ne=j}else Zb(d.loaderData,d.matches[x],oe)&&(ne=!0);if(ne!==null)return Vc(r,o,n,p,pe,oe,m,i,ne);let ue=!1;typeof ge=="boolean"?ue=ge:Te?ue=!1:(g||Ee.pathname+Ee.search===te.pathname+te.search||Ee.search!==te.search||kb(d.matches[x],oe))&&(ue=!0);let _e={...xe,defaultShouldRevalidate:ue},w=cu(oe,_e);return Vc(r,o,n,p,pe,oe,m,i,w,_e,ge)}),We=[];return H.forEach((oe,x)=>{if(b||!h.some($=>$.route.id===oe.routeId)||A.has(x))return;let Z=d.fetchers.get(x),ne=Z&&Z.state!=="idle"&&Z.data===void 0,ue=xn(Q,oe.path,J);if(!ue){if(F&&ne)return;We.push({key:x,routeId:oe.routeId,path:oe.path,matches:null,match:null,request:null,controller:null});return}if(G.has(x))return;let _e=Pr(ue,oe.path),w=new AbortController,j=Il(c,oe.path,w.signal),k=null;if(T.has(x))T.delete(x),k=ni(r,o,j,oe.path,ue,_e,m,i);else if(ne)g&&(k=ni(r,o,j,oe.path,ue,_e,m,i));else{let $;typeof ge=="boolean"?$=ge:Te?$=!1:$=g;let he={...xe,defaultShouldRevalidate:$};cu(_e,he)&&(k=ni(r,o,j,oe.path,ue,_e,m,i,he))}k&&We.push({key:x,routeId:oe.routeId,path:oe.path,matches:k,match:_e,request:j,controller:w})}),{dsMatches:He,revalidatingFetchers:We}}function hf(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function qv(n,i,r){if(n.lazy)return{shouldLoad:!0,renderFallback:!0};if(!hf(n))return{shouldLoad:!1,renderFallback:!1};let o=i!=null&&n.id in i,c=r!=null&&r[n.id]!==void 0;if(!o&&c)return{shouldLoad:!1,renderFallback:!1};if(typeof n.loader=="function"&&n.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!o};let d=!o&&!c;return{shouldLoad:d,renderFallback:d}}function Zb(n,i,r){let o=!i||r.route.id!==i.route.id,c=!n.hasOwnProperty(r.route.id);return o||c}function kb(n,i){let r=n.route.path;return n.pathname!==i.pathname||r!=null&&r.endsWith("*")&&n.params["*"]!==i.params["*"]}function cu(n,i){if(n.route.shouldRevalidate){let r=n.route.shouldRevalidate(i);if(typeof r=="boolean")return r}return i.defaultShouldRevalidate}function Gy(n,i,r,o,c,d){let h;if(n){let m=o[n];Se(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),h=m.children}else h=r;let y=[],p=[];if(i.forEach(m=>{let b=h.find(g=>Yv(m,g));b?p.push({existingRoute:b,newRoute:m}):y.push(m)}),y.length>0){let m=yu(y,c,[n||"_","patch",String(h?.length||"0")],o);h.push(...m)}if(d&&p.length>0)for(let m=0;m<p.length;m++){let{existingRoute:b,newRoute:g}=p[m],T=b,[A]=yu([g],c,[],{},!0);Object.assign(T,{element:A.element?A.element:T.element,errorElement:A.errorElement?A.errorElement:T.errorElement,hydrateFallbackElement:A.hydrateFallbackElement?A.hydrateFallbackElement:T.hydrateFallbackElement})}}function Yv(n,i){return"id"in n&&"id"in i&&n.id===i.id?!0:n.index===i.index&&n.path===i.path&&n.caseSensitive===i.caseSensitive?(!n.children||n.children.length===0)&&(!i.children||i.children.length===0)?!0:n.children?.every((r,o)=>i.children?.some(c=>Yv(r,c)))??!1:!1}var Qy=new WeakMap,Gv=({key:n,route:i,manifest:r,mapRouteProperties:o})=>{let c=r[i.id];if(Se(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let d=c.lazy[n];if(!d)return;let h=Qy.get(c);h||(h={},Qy.set(c,h));let y=h[n];if(y)return y;let p=(async()=>{let m=cb(n),g=c[n]!==void 0&&n!=="hasErrorBoundary";if(m)ut(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),h[n]=Promise.resolve();else if(g)ut(!1,`Route "${c.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let T=await d();T!=null&&(Object.assign(c,{[n]:T}),Object.assign(c,o(c)))}typeof c.lazy=="object"&&(c.lazy[n]=void 0,Object.values(c.lazy).every(T=>T===void 0)&&(c.lazy=void 0))})();return h[n]=p,p},Vy=new WeakMap;function Kb(n,i,r,o,c){let d=r[n.id];if(Se(d,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let b=Vy.get(d);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let g=(async()=>{Se(typeof n.lazy=="function","No lazy route function found");let T=await n.lazy(),A={};for(let H in T){let G=T[H];if(G===void 0)continue;let Q=db(H),F=d[H]!==void 0&&H!=="hasErrorBoundary";Q?ut(!Q,"Route property "+H+" is not a supported property to be returned from a lazy route function. This property will be ignored."):F?ut(!F,`Route "${d.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.`):A[H]=G}Object.assign(d,A),Object.assign(d,{...o(d),lazy:void 0})})();return Vy.set(d,g),g.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:g}}let h=Object.keys(n.lazy),y=[],p;for(let b of h){if(c&&c.includes(b))continue;let g=Gv({key:b,route:n,manifest:r,mapRouteProperties:o});g&&(y.push(g),b===i&&(p=g))}let m=y.length>0?Promise.all(y).then(()=>{}):void 0;return m?.catch(()=>{}),p?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:p}}async function Xy(n){let i=n.matches.filter(c=>c.shouldLoad),r={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,d)=>{r[i[d].route.id]=c}),r}async function Jb(n){return n.matches.some(i=>i.route.middleware)?Qv(n,()=>Xy(n)):Xy(n)}function Qv(n,i){return Fb(n,i,o=>{if(sS(o))throw o;return o},lS,r);function r(o,c,d){if(d)return Promise.resolve(Object.assign(d.value,{[c]:{type:"error",result:o}}));{let{matches:h}=n,y=Math.min(Math.max(h.findIndex(m=>m.route.id===c),0),Math.max(h.findIndex(m=>m.shouldCallHandler()),0)),p=Ln(h,h[y].route.id).route.id;return Promise.resolve({[p]:{type:"error",result:o}})}}}async function Fb(n,i,r,o,c){let{matches:d,...h}=n,y=d.flatMap(m=>m.route.middleware?m.route.middleware.map(b=>[m.route.id,b]):[]);return await Vv(h,y,i,r,o,c)}async function Vv(n,i,r,o,c,d,h=0){let{request:y}=n;if(y.signal.aborted)throw y.signal.reason??new Error(`Request aborted: ${y.method} ${y.url}`);let p=i[h];if(!p)return await r();let[m,b]=p,g,T=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");try{return g={value:await Vv(n,i,r,o,c,d,h+1)},g.value}catch(A){return g={value:await d(A,m,g)},g.value}};try{let A=await b(n,T),H=A!=null?o(A):void 0;return c(H)?H:g?H??g.value:(g={value:await T()},g.value)}catch(A){return await d(A,m,g)}}function Xv(n,i,r,o,c){let d=Gv({key:"middleware",route:o.route,manifest:i,mapRouteProperties:n}),h=Kb(o.route,Nt(r.method)?"action":"loader",i,n,c);return{middleware:d,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function Vc(n,i,r,o,c,d,h,y,p,m=null,b){let g=!1,T=Xv(n,i,r,d,h);return{...d,_lazyPromises:T,shouldLoad:p,shouldRevalidateArgs:m,shouldCallHandler(A){return g=!0,m?typeof b=="boolean"?cu(d,{...m,defaultShouldRevalidate:b}):typeof A=="boolean"?cu(d,{...m,defaultShouldRevalidate:A}):cu(d,m):p},resolve(A){let{lazy:H,loader:G,middleware:Q}=d.route,J=g||p||A&&!Nt(r.method)&&(H||G),F=Q&&Q.length>0&&!G&&!H;return J&&(Nt(r.method)||!F)?$b({request:r,path:o,unstable_pattern:c,match:d,lazyHandlerPromise:T?.handler,lazyRoutePromise:T?.route,handlerOverride:A,scopedContext:y}):Promise.resolve({type:"data",result:void 0})}}}function ni(n,i,r,o,c,d,h,y,p=null){return c.map(m=>m.route.id!==d.route.id?{...m,shouldLoad:!1,shouldRevalidateArgs:p,shouldCallHandler:()=>!1,_lazyPromises:Xv(n,i,r,m,h),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Vc(n,i,r,o,wu(c),m,h,y,!0,p))}async function Wb(n,i,r,o,c,d,h){o.some(b=>b._lazyPromises?.middleware)&&await Promise.all(o.map(b=>b._lazyPromises?.middleware));let y={request:i,unstable_url:Zv(i,r),unstable_pattern:wu(o),params:o[0].params,context:d,matches:o},m=await n({...y,fetcherKey:c,runClientMiddleware:b=>{let g=y;return Qv(g,()=>b({...g,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(o.flatMap(b=>[b._lazyPromises?.handler,b._lazyPromises?.route]))}catch{}return m}async function $b({request:n,path:i,unstable_pattern:r,match:o,lazyHandlerPromise:c,lazyRoutePromise:d,handlerOverride:h,scopedContext:y}){let p,m,b=Nt(n.method),g=b?"action":"loader",T=A=>{let H,G=new Promise((F,W)=>H=W);m=()=>H(),n.signal.addEventListener("abort",m);let Q=F=>typeof A!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${g}" [routeId: ${o.route.id}]`)):A({request:n,unstable_url:Zv(n,i),unstable_pattern:r,params:o.params,context:y},...F!==void 0?[F]:[]),J=(async()=>{try{return{type:"data",result:await(h?h(W=>Q(W)):Q())}}catch(F){return{type:"error",result:F}}})();return Promise.race([J,G])};try{let A=b?o.route.action:o.route.loader;if(c||d)if(A){let H,[G]=await Promise.all([T(A).catch(Q=>{H=Q}),c,d]);if(H!==void 0)throw H;p=G}else{await c;let H=b?o.route.action:o.route.loader;if(H)[p]=await Promise.all([T(H),d]);else if(g==="action"){let G=new URL(n.url),Q=G.pathname+G.search;throw ha(405,{method:n.method,pathname:Q,routeId:o.route.id})}else return{type:"data",result:void 0}}else if(A)p=await T(A);else{let H=new URL(n.url),G=H.pathname+H.search;throw ha(404,{pathname:G})}}catch(A){return{type:"error",result:A}}finally{m&&n.signal.removeEventListener("abort",m)}return p}async function Pb(n){let i=n.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?n.body==null?null:n.json():n.text()}async function Ib(n){let{result:i,type:r}=n;if(mf(i)){let o;try{o=await Pb(i)}catch(c){return{type:"error",error:c}}return r==="error"?{type:"error",error:new Eu(i.status,i.statusText,o),statusCode:i.status,headers:i.headers}:{type:"data",data:o,statusCode:i.status,headers:i.headers}}return r==="error"?$y(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:nS(i),statusCode:pu(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:pu(i)?i.status:void 0}:$y(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function eS(n,i,r,o,c){let d=n.headers.get("Location");if(Se(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!ff(d)){let h=o.slice(0,o.findIndex(y=>y.route.id===r)+1);d=Qc(new URL(i.url),h,c,d),n.headers.set("Location",d)}return n}var Zy=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function ky(n,i,r,o){if(ff(n)){let c=n,d=c.startsWith("//")?new URL(i.protocol+c):new URL(c);if(Zy.includes(d.protocol))throw new Error("Invalid redirect location");let h=va(d.pathname,r)!=null;if(d.origin===i.origin&&h)return df(d.pathname)+d.search+d.hash}try{let c=o.createURL(n);if(Zy.includes(c.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Il(n,i,r,o){let c=n.createURL(kv(i)).toString(),d={signal:r};if(o&&Nt(o.formMethod)){let{formMethod:h,formEncType:y}=o;d.method=h.toUpperCase(),y==="application/json"?(d.headers=new Headers({"Content-Type":y}),d.body=JSON.stringify(o.json)):y==="text/plain"?d.body=o.text:y==="application/x-www-form-urlencoded"&&o.formData?d.body=Xc(o.formData):d.body=o.formData}return new Request(c,d)}function Zv(n,i){let r=new URL(n.url),o=typeof i=="string"?Oa(i):i;if(r.pathname=o.pathname||"/",o.search){let c=new URLSearchParams(o.search),d=c.getAll("index");c.delete("index");for(let h of d.filter(Boolean))c.append("index",h);r.search=c.size?`?${c.toString()}`:""}else r.search="";return r.hash=o.hash||"",r}function Xc(n){let i=new URLSearchParams;for(let[r,o]of n.entries())i.append(r,typeof o=="string"?o:o.name);return i}function Ky(n){let i=new FormData;for(let[r,o]of n.entries())i.append(r,o);return i}function tS(n,i,r,o=!1,c=!1){let d={},h=null,y,p=!1,m={},b=r&&ea(r[1])?r[1].error:void 0;return n.forEach(g=>{if(!(g.route.id in i))return;let T=g.route.id,A=i[T];if(Se(!ul(A),"Cannot handle redirect results in processLoaderData"),ea(A)){let H=A.error;if(b!==void 0&&(H=b,b=void 0),h=h||{},c)h[T]=H;else{let G=Ln(n,T);h[G.route.id]==null&&(h[G.route.id]=H)}o||(d[T]=jv),p||(p=!0,y=pu(A.error)?A.error.status:500),A.headers&&(m[T]=A.headers)}else d[T]=A.data,A.statusCode&&A.statusCode!==200&&!p&&(y=A.statusCode),A.headers&&(m[T]=A.headers)}),b!==void 0&&r&&(h={[r[0]]:b},r[2]&&(d[r[2]]=void 0)),{loaderData:d,errors:h,statusCode:y||200,loaderHeaders:m}}function Jy(n,i,r,o,c,d){let{loaderData:h,errors:y}=tS(i,r,o);return c.filter(p=>!p.matches||p.matches.some(m=>m.shouldLoad)).forEach(p=>{let{key:m,match:b,controller:g}=p;if(g&&g.signal.aborted)return;let T=d[m];if(Se(T,"Did not find corresponding fetcher result"),ea(T)){let A=Ln(n.matches,b?.route.id);y&&y[A.route.id]||(y={...y,[A.route.id]:T.error}),n.fetchers.delete(m)}else if(ul(T))Se(!1,"Unhandled fetcher revalidation redirect");else{let A=nn(T.data);n.fetchers.set(m,A)}}),{loaderData:h,errors:y}}function Fy(n,i,r,o){let c=Object.entries(i).filter(([,d])=>d!==jv).reduce((d,[h,y])=>(d[h]=y,d),{});for(let d of r){let h=d.route.id;if(!i.hasOwnProperty(h)&&n.hasOwnProperty(h)&&d.route.loader&&(c[h]=n[h]),o&&o.hasOwnProperty(h))break}return c}function Wy(n){return n?ea(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function Ln(n,i){return(i?n.slice(0,n.findIndex(o=>o.route.id===i)+1):[...n]).reverse().find(o=>o.route.hasErrorBoundary===!0)||n[0]}function Zr(n){let i=n.length===1?n[0]:n.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function ha(n,{pathname:i,routeId:r,method:o,type:c,message:d}={}){let h="Unknown Server Error",y="Unknown @remix-run/router error";return n===400?(h="Bad Request",o&&i&&r?y=`You made a ${o} request to "${i}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:c==="invalid-body"&&(y="Unable to encode submission body")):n===403?(h="Forbidden",y=`Route "${r}" does not match URL "${i}"`):n===404?(h="Not Found",y=`No route matches URL "${i}"`):n===405&&(h="Method Not Allowed",o&&i&&r?y=`You made a ${o.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:o&&(y=`Invalid request method "${o.toUpperCase()}"`)),new Eu(n||500,h,new Error(y),!0)}function kr(n){let i=Object.entries(n);for(let r=i.length-1;r>=0;r--){let[o,c]=i[r];if(ul(c))return{key:o,result:c}}}function kv(n){let i=typeof n=="string"?Oa(n):n;return xa({...i,hash:""})}function aS(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function nS(n){return new Eu(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function lS(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([i,r])=>typeof i=="string"&&iS(r))}function iS(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function uS(n){return mf(n.result)&&Hv.has(n.result.status)}function ea(n){return n.type==="error"}function ul(n){return(n&&n.type)==="redirect"}function $y(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function mf(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function rS(n){return Hv.has(n)}function sS(n){return mf(n)&&rS(n.status)&&n.headers.has("Location")}function oS(n){return qb.has(n.toUpperCase())}function Nt(n){return Bb.has(n.toUpperCase())}function yf(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function Pr(n,i){let r=typeof i=="string"?Oa(i).search:i.search;if(n[n.length-1].route.index&&yf(r||""))return n[n.length-1];let o=Cv(n);return o[o.length-1]}function Py(n){let{formMethod:i,formAction:r,formEncType:o,text:c,formData:d,json:h}=n;if(!(!i||!r||!o)){if(c!=null)return{formMethod:i,formAction:r,formEncType:o,formData:void 0,json:void 0,text:c};if(d!=null)return{formMethod:i,formAction:r,formEncType:o,formData:d,json:void 0,text:void 0};if(h!==void 0)return{formMethod:i,formAction:r,formEncType:o,formData:void 0,json:h,text:void 0}}}function Lc(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function cS(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function lu(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.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 fS(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function nn(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function dS(n,i){try{let r=n.sessionStorage.getItem(Bv);if(r){let o=JSON.parse(r);for(let[c,d]of Object.entries(o||{}))d&&Array.isArray(d)&&i.set(c,new Set(d||[]))}}catch{}}function hS(n,i){if(i.size>0){let r={};for(let[o,c]of i)r[o]=[...c];try{n.sessionStorage.setItem(Bv,JSON.stringify(r))}catch(o){ut(!1,`Failed to save applied view transitions in sessionStorage (${o}).`)}}}function Iy(){let n,i,r=new Promise((o,c)=>{n=async d=>{o(d);try{await r}catch{}},i=async d=>{c(d);try{await r}catch{}}});return{promise:r,resolve:n,reject:i}}var sl=D.createContext(null);sl.displayName="DataRouter";var _u=D.createContext(null);_u.displayName="DataRouterState";var Kv=D.createContext(!1);function Jv(){return D.useContext(Kv)}var vf=D.createContext({isTransitioning:!1});vf.displayName="ViewTransition";var Fv=D.createContext(new Map);Fv.displayName="Fetchers";var mS=D.createContext(null);mS.displayName="Await";var ta=D.createContext(null);ta.displayName="Navigation";var ri=D.createContext(null);ri.displayName="Location";var pa=D.createContext({outlet:null,matches:[],isDataRoute:!1});pa.displayName="Route";var pf=D.createContext(null);pf.displayName="RouteError";var Wv="REACT_ROUTER_ERROR",yS="REDIRECT",vS="ROUTE_ERROR_RESPONSE";function pS(n){if(n.startsWith(`${Wv}:${yS}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function gS(n){if(n.startsWith(`${Wv}:${vS}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Eu(i.status,i.statusText,i.data)}catch{}}function bS(n,{relative:i}={}){Se(ol(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=D.useContext(ta),{hash:c,pathname:d,search:h}=Ru(n,{relative:i}),y=d;return r!=="/"&&(y=d==="/"?r:ya([r,d])),o.createHref({pathname:y,search:h,hash:c})}function ol(){return D.useContext(ri)!=null}function ga(){return Se(ol(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(ri).location}function sw(){return D.useContext(ri).navigationType}function ow(n){Se(ol(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:i}=ga();return D.useMemo(()=>vu(n,zv(i)),[i,n])}var $v="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Pv(n){D.useContext(ta).static||D.useLayoutEffect(n)}function gf(){let{isDataRoute:n}=D.useContext(pa);return n?xS():SS()}function SS(){Se(ol(),"useNavigate() may be used only in the context of a <Router> component.");let n=D.useContext(sl),{basename:i,navigator:r}=D.useContext(ta),{matches:o}=D.useContext(pa),{pathname:c}=ga(),d=JSON.stringify(fs(o)),h=D.useRef(!1);return Pv(()=>{h.current=!0}),D.useCallback((p,m={})=>{if(ut(h.current,$v),!h.current)return;if(typeof p=="number"){r.go(p);return}let b=Su(p,JSON.parse(d),c,m.relative==="path");n==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:ya([i,b.pathname])),(m.replace?r.replace:r.push)(b,m.state,m)},[i,r,d,c,n])}var ES=D.createContext(null);function wS(n){let i=D.useContext(pa).outlet;return D.useMemo(()=>i&&D.createElement(ES.Provider,{value:n},i),[i,n])}function cw(){let{matches:n}=D.useContext(pa),i=n[n.length-1];return i?i.params:{}}function Ru(n,{relative:i}={}){let{matches:r}=D.useContext(pa),{pathname:o}=ga(),c=JSON.stringify(fs(r));return D.useMemo(()=>Su(n,JSON.parse(c),o,i==="path"),[n,c,o,i])}function _S(n,i){return Iv(n,i)}function Iv(n,i,r){Se(ol(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=D.useContext(ta),{matches:c}=D.useContext(pa),d=c[c.length-1],h=d?d.params:{},y=d?d.pathname:"/",p=d?d.pathnameBase:"/",m=d&&d.route;{let Q=m&&m.path||"";tp(y,!m||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${Q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
61
-
62
- Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let b=ga(),g;if(i){let Q=typeof i=="string"?Oa(i):i;Se(p==="/"||Q.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),g=Q}else g=b;let T=g.pathname||"/",A=T;if(p!=="/"){let Q=p.replace(/^\//,"").split("/");A="/"+T.replace(/^\//,"").split("/").slice(Q.length).join("/")}let H=xn(n,{pathname:A});ut(m||H!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),ut(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=AS(H&&H.map(Q=>Object.assign({},Q,{params:Object.assign({},h,Q.params),pathname:ya([p,o.encodeLocation?o.encodeLocation(Q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?p:ya([p,o.encodeLocation?o.encodeLocation(Q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),c,r);return i&&G?D.createElement(ri.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},G):G}function RS(){let n=NS(),i=pu(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:d},"ErrorBoundary")," or"," ",D.createElement("code",{style:d},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},i),r?D.createElement("pre",{style:c},r):null,h)}var TS=D.createElement(RS,null),ep=class extends D.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=gS(n.digest);r&&(n=r)}let i=n!==void 0?D.createElement(pa.Provider,{value:this.props.routeContext},D.createElement(pf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?D.createElement(OS,{error:n},i):i}};ep.contextType=Kv;var Hc=new WeakMap;function OS({children:n,error:i}){let{basename:r}=D.useContext(ta);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let o=pS(i.digest);if(o){let c=Hc.get(i);if(c)throw c;let d=Nv(o.location,r);if(Uv&&!Hc.get(i))if(d.isExternal||o.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:o.replace}));throw Hc.set(i,h),h}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function DS({routeContext:n,match:i,children:r}){let o=D.useContext(sl);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),D.createElement(pa.Provider,{value:n},r)}function AS(n,i=[],r){let o=r?.state;if(n==null){if(!o)return null;if(o.errors)n=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)n=o.matches;else return null}let c=n,d=o?.errors;if(d!=null){let b=c.findIndex(g=>g.route.id&&d?.[g.route.id]!==void 0);Se(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let h=!1,y=-1;if(r&&o){h=o.renderFallback;for(let b=0;b<c.length;b++){let g=c[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(y=b),g.route.id){let{loaderData:T,errors:A}=o,H=g.route.loader&&!T.hasOwnProperty(g.route.id)&&(!A||A[g.route.id]===void 0);if(g.route.lazy||H){r.isStatic&&(h=!0),y>=0?c=c.slice(0,y+1):c=[c[0]];break}}}}let p=r?.onError,m=o&&p?(b,g)=>{p(b,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:wu(o.matches),errorInfo:g})}:void 0;return c.reduceRight((b,g,T)=>{let A,H=!1,G=null,Q=null;o&&(A=d&&g.route.id?d[g.route.id]:void 0,G=g.route.errorElement||TS,h&&(y<0&&T===0?(tp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,Q=null):y===T&&(H=!0,Q=g.route.hydrateFallbackElement||null)));let J=i.concat(c.slice(0,T+1)),F=()=>{let W;return A?W=G:H?W=Q:g.route.Component?W=D.createElement(g.route.Component,null):g.route.element?W=g.route.element:W=b,D.createElement(DS,{match:g,routeContext:{outlet:b,matches:J,isDataRoute:o!=null},children:W})};return o&&(g.route.ErrorBoundary||g.route.errorElement||T===0)?D.createElement(ep,{location:o.location,revalidation:o.revalidation,component:G,error:A,children:F(),routeContext:{outlet:null,matches:J,isDataRoute:!0},onError:m}):F()},null)}function bf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zS(n){let i=D.useContext(sl);return Se(i,bf(n)),i}function MS(n){let i=D.useContext(_u);return Se(i,bf(n)),i}function CS(n){let i=D.useContext(pa);return Se(i,bf(n)),i}function Sf(n){let i=CS(n),r=i.matches[i.matches.length-1];return Se(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function US(){return Sf("useRouteId")}function NS(){let n=D.useContext(pf),i=MS("useRouteError"),r=Sf("useRouteError");return n!==void 0?n:i.errors?.[r]}function xS(){let{router:n}=zS("useNavigate"),i=Sf("useNavigate"),r=D.useRef(!1);return Pv(()=>{r.current=!0}),D.useCallback(async(c,d={})=>{ut(r.current,$v),r.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:i,...d}))},[n,i])}var ev={};function tp(n,i,r){!i&&!ev[n]&&(ev[n]=!0,ut(!1,r))}var tv={};function av(n,i){!n&&!tv[i]&&(tv[i]=!0,console.warn(i))}var LS="useOptimistic",nv=$0[LS],HS=()=>{};function BS(n){return nv?nv(n):[n,HS]}function jS(n){let i={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&ut(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:D.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&ut(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:D.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&ut(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:D.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),i}var qS=["HydrateFallback","hydrateFallbackElement"],YS=class{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",n(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",i(r))}})}};function GS({router:n,flushSync:i,onError:r,unstable_useTransitions:o}){o=Jv()||o;let[d,h]=D.useState(n.state),[y,p]=BS(d),[m,b]=D.useState(),[g,T]=D.useState({isTransitioning:!1}),[A,H]=D.useState(),[G,Q]=D.useState(),[J,F]=D.useState(),W=D.useRef(new Map),ge=D.useCallback((se,{deletedFetchers:Te,newErrors:xe,flushSync:pe,viewTransitionOpts:He})=>{xe&&r&&Object.values(xe).forEach(oe=>r(oe,{location:se.location,params:se.matches[0]?.params??{},unstable_pattern:wu(se.matches)})),se.fetchers.forEach((oe,x)=>{oe.data!==void 0&&W.current.set(x,oe.data)}),Te.forEach(oe=>W.current.delete(oe)),av(pe===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let We=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(av(He==null||We,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!He||!We){i&&pe?i(()=>h(se)):o===!1?h(se):D.startTransition(()=>{o===!0&&p(oe=>lv(oe,se)),h(se)});return}if(i&&pe){i(()=>{G&&(A?.resolve(),G.skipTransition()),T({isTransitioning:!0,flushSync:!0,currentLocation:He.currentLocation,nextLocation:He.nextLocation})});let oe=n.window.document.startViewTransition(()=>{i(()=>h(se))});oe.finished.finally(()=>{i(()=>{H(void 0),Q(void 0),b(void 0),T({isTransitioning:!1})})}),i(()=>Q(oe));return}G?(A?.resolve(),G.skipTransition(),F({state:se,currentLocation:He.currentLocation,nextLocation:He.nextLocation})):(b(se),T({isTransitioning:!0,flushSync:!1,currentLocation:He.currentLocation,nextLocation:He.nextLocation}))},[n.window,i,G,A,o,p,r]);D.useLayoutEffect(()=>n.subscribe(ge),[n,ge]);let ye=y.initialized;D.useLayoutEffect(()=>{!ye&&n.state.initialized&&ge(n.state,{deletedFetchers:[],flushSync:!1,newErrors:null})},[ye,ge,n.state]),D.useEffect(()=>{g.isTransitioning&&!g.flushSync&&H(new YS)},[g]),D.useEffect(()=>{if(A&&m&&n.window){let se=m,Te=A.promise,xe=n.window.document.startViewTransition(async()=>{o===!1?h(se):D.startTransition(()=>{o===!0&&p(pe=>lv(pe,se)),h(se)}),await Te});xe.finished.finally(()=>{H(void 0),Q(void 0),b(void 0),T({isTransitioning:!1})}),Q(xe)}},[m,A,n.window,o,p]),D.useEffect(()=>{A&&m&&y.location.key===m.location.key&&A.resolve()},[A,G,y.location,m]),D.useEffect(()=>{!g.isTransitioning&&J&&(b(J.state),T({isTransitioning:!0,flushSync:!1,currentLocation:J.currentLocation,nextLocation:J.nextLocation}),F(void 0))},[g.isTransitioning,J]);let Ee=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:se=>n.navigate(se),push:(se,Te,xe)=>n.navigate(se,{state:Te,preventScrollReset:xe?.preventScrollReset}),replace:(se,Te,xe)=>n.navigate(se,{replace:!0,state:Te,preventScrollReset:xe?.preventScrollReset})}),[n]),te=n.basename||"/",C=D.useMemo(()=>({router:n,navigator:Ee,static:!1,basename:te,onError:r}),[n,Ee,te,r]);return D.createElement(D.Fragment,null,D.createElement(sl.Provider,{value:C},D.createElement(_u.Provider,{value:y},D.createElement(Fv.Provider,{value:W.current},D.createElement(vf.Provider,{value:g},D.createElement(ZS,{basename:te,location:y.location,navigationType:y.historyAction,navigator:Ee,unstable_useTransitions:o},D.createElement(QS,{routes:n.routes,future:n.future,state:y,isStatic:!1,onError:r})))))),null)}function lv(n,i){return{...n,navigation:i.navigation.state!=="idle"?i.navigation:n.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:n.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:n.actionData,fetchers:i.fetchers}}var QS=D.memo(VS);function VS({routes:n,future:i,state:r,isStatic:o,onError:c}){return Iv(n,void 0,{state:r,isStatic:o,onError:c})}function fw({to:n,replace:i,state:r,relative:o}){Se(ol(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=D.useContext(ta);ut(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=D.useContext(pa),{pathname:h}=ga(),y=gf(),p=Su(n,fs(d),h,o==="path"),m=JSON.stringify(p);return D.useEffect(()=>{y(JSON.parse(m),{replace:i,state:r,relative:o})},[y,m,o,i,r]),null}function dw(n){return wS(n.context)}function XS(n){Se(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ZS({basename:n="/",children:i=null,location:r,navigationType:o="POP",navigator:c,static:d=!1,unstable_useTransitions:h}){Se(!ol(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=n.replace(/^\/*/,"/"),p=D.useMemo(()=>({basename:y,navigator:c,static:d,unstable_useTransitions:h,future:{}}),[y,c,d,h]);typeof r=="string"&&(r=Oa(r));let{pathname:m="/",search:b="",hash:g="",state:T=null,key:A="default",unstable_mask:H}=r,G=D.useMemo(()=>{let Q=va(m,y);return Q==null?null:{location:{pathname:Q,search:b,hash:g,state:T,key:A,unstable_mask:H},navigationType:o}},[y,m,b,g,T,A,o,H]);return ut(G!=null,`<Router basename="${y}"> is not able to match the URL "${m}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),G==null?null:D.createElement(ta.Provider,{value:p},D.createElement(ri.Provider,{children:i,value:G}))}function hw({children:n,location:i}){return _S(Zc(n),i)}function Zc(n,i=[]){let r=[];return D.Children.forEach(n,(o,c)=>{if(!D.isValidElement(o))return;let d=[...i,c];if(o.type===D.Fragment){r.push.apply(r,Zc(o.props.children,d));return}Se(o.type===XS,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Se(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||d.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=Zc(o.props.children,d)),r.push(h)}),r}var Ir="get",es="application/x-www-form-urlencoded";function ds(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function kS(n){return ds(n)&&n.tagName.toLowerCase()==="button"}function KS(n){return ds(n)&&n.tagName.toLowerCase()==="form"}function JS(n){return ds(n)&&n.tagName.toLowerCase()==="input"}function FS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function WS(n,i){return n.button===0&&(!i||i==="_self")&&!FS(n)}function kc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((i,r)=>{let o=n[r];return i.concat(Array.isArray(o)?o.map(c=>[r,c]):[[r,o]])},[]))}function $S(n,i){let r=kc(n);return i&&i.forEach((o,c)=>{r.has(c)||i.getAll(c).forEach(d=>{r.append(c,d)})}),r}var Kr=null;function PS(){if(Kr===null)try{new FormData(document.createElement("form"),0),Kr=!1}catch{Kr=!0}return Kr}var IS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bc(n){return n!=null&&!IS.has(n)?(ut(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${es}"`),null):n}function e1(n,i){let r,o,c,d,h;if(KS(n)){let y=n.getAttribute("action");o=y?va(y,i):null,r=n.getAttribute("method")||Ir,c=Bc(n.getAttribute("enctype"))||es,d=new FormData(n)}else if(kS(n)||JS(n)&&(n.type==="submit"||n.type==="image")){let y=n.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||y.getAttribute("action");if(o=p?va(p,i):null,r=n.getAttribute("formmethod")||y.getAttribute("method")||Ir,c=Bc(n.getAttribute("formenctype"))||Bc(y.getAttribute("enctype"))||es,d=new FormData(y,n),!PS()){let{name:m,type:b,value:g}=n;if(b==="image"){let T=m?`${m}.`:"";d.append(`${T}x`,"0"),d.append(`${T}y`,"0")}else m&&d.append(m,g)}}else{if(ds(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ir,o=null,c=es,h=n}return d&&c==="text/plain"&&(h=d,d=void 0),{action:o,method:r.toLowerCase(),encType:c,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ef(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function ap(n,i,r,o){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${o}`:c.pathname=`${c.pathname}.${o}`:c.pathname==="/"?c.pathname=`_root.${o}`:i&&va(c.pathname,i)==="/"?c.pathname=`${ns(i)}/_root.${o}`:c.pathname=`${ns(c.pathname)}.${o}`,c}async function t1(n,i){if(n.id in i)return i[n.id];try{let r=await import(n.module);return i[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function a1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function n1(n,i,r){let o=await Promise.all(n.map(async c=>{let d=i.routes[c.route.id];if(d){let h=await t1(d,r);return h.links?h.links():[]}return[]}));return r1(o.flat(1).filter(a1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function iv(n,i,r,o,c,d){let h=(p,m)=>r[m]?p.route.id!==r[m].route.id:!0,y=(p,m)=>r[m].pathname!==p.pathname||r[m].route.path?.endsWith("*")&&r[m].params["*"]!==p.params["*"];return d==="assets"?i.filter((p,m)=>h(p,m)||y(p,m)):d==="data"?i.filter((p,m)=>{let b=o.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(h(p,m)||y(p,m))return!0;if(p.route.shouldRevalidate){let g=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function l1(n,i,{includeHydrateFallback:r}={}){return i1(n.map(o=>{let c=i.routes[o.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function i1(n){return[...new Set(n)]}function u1(n){let i={},r=Object.keys(n).sort();for(let o of r)i[o]=n[o];return i}function r1(n,i){let r=new Set;return new Set(i),n.reduce((o,c)=>{let d=JSON.stringify(u1(c));return r.has(d)||(r.add(d),o.push({key:d,link:c})),o},[])}function wf(){let n=D.useContext(sl);return Ef(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function s1(){let n=D.useContext(_u);return Ef(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var _f=D.createContext(void 0);_f.displayName="FrameworkContext";function Rf(){let n=D.useContext(_f);return Ef(n,"You must render this element inside a <HydratedRouter> element"),n}function o1(n,i){let r=D.useContext(_f),[o,c]=D.useState(!1),[d,h]=D.useState(!1),{onFocus:y,onBlur:p,onMouseEnter:m,onMouseLeave:b,onTouchStart:g}=i,T=D.useRef(null);D.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let G=J=>{J.forEach(F=>{h(F.isIntersecting)})},Q=new IntersectionObserver(G,{threshold:.5});return T.current&&Q.observe(T.current),()=>{Q.disconnect()}}},[n]),D.useEffect(()=>{if(o){let G=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(G)}}},[o]);let A=()=>{c(!0)},H=()=>{c(!1),h(!1)};return r?n!=="intent"?[d,T,{}]:[d,T,{onFocus:iu(y,A),onBlur:iu(p,H),onMouseEnter:iu(m,A),onMouseLeave:iu(b,H),onTouchStart:iu(g,A)}]:[!1,T,{}]}function iu(n,i){return r=>{n&&n(r),r.defaultPrevented||i(r)}}function c1({page:n,...i}){let r=Jv(),{router:o}=wf(),c=D.useMemo(()=>xn(o.routes,n,o.basename),[o.routes,n,o.basename]);return c?r?D.createElement(d1,{page:n,matches:c,...i}):D.createElement(h1,{page:n,matches:c,...i}):null}function f1(n){let{manifest:i,routeModules:r}=Rf(),[o,c]=D.useState([]);return D.useEffect(()=>{let d=!1;return n1(n,i,r).then(h=>{d||c(h)}),()=>{d=!0}},[n,i,r]),o}function d1({page:n,matches:i,...r}){let o=ga(),{future:c}=Rf(),{basename:d}=wf(),h=D.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let y=ap(n,d,c.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,m=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?p=!0:m.push(b.route.id);return p&&m.length>0&&y.searchParams.set("_routes",m.join(",")),[y.pathname+y.search]},[d,c.unstable_trailingSlashAwareDataRequests,n,o,i]);return D.createElement(D.Fragment,null,h.map(y=>D.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})))}function h1({page:n,matches:i,...r}){let o=ga(),{future:c,manifest:d,routeModules:h}=Rf(),{basename:y}=wf(),{loaderData:p,matches:m}=s1(),b=D.useMemo(()=>iv(n,i,m,d,o,"data"),[n,i,m,d,o]),g=D.useMemo(()=>iv(n,i,m,d,o,"assets"),[n,i,m,d,o]),T=D.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let G=new Set,Q=!1;if(i.forEach(F=>{let W=d.routes[F.route.id];!W||!W.hasLoader||(!b.some(ge=>ge.route.id===F.route.id)&&F.route.id in p&&h[F.route.id]?.shouldRevalidate||W.hasClientLoader?Q=!0:G.add(F.route.id))}),G.size===0)return[];let J=ap(n,y,c.unstable_trailingSlashAwareDataRequests,"data");return Q&&G.size>0&&J.searchParams.set("_routes",i.filter(F=>G.has(F.route.id)).map(F=>F.route.id).join(",")),[J.pathname+J.search]},[y,c.unstable_trailingSlashAwareDataRequests,p,o,d,b,i,n,h]),A=D.useMemo(()=>l1(g,d),[g,d]),H=f1(g);return D.createElement(D.Fragment,null,T.map(G=>D.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...r})),A.map(G=>D.createElement("link",{key:G,rel:"modulepreload",href:G,...r})),H.map(({key:G,link:Q})=>D.createElement("link",{key:G,nonce:r.nonce,...Q,crossOrigin:Q.crossOrigin??r.crossOrigin})))}function m1(...n){return i=>{n.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{y1&&(window.__reactRouterVersion="7.14.1")}catch{}function v1(n,i){return Vb({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:ub({window:i?.window}),hydrationData:p1(),routes:n,mapRouteProperties:jS,hydrationRouteProperties:qS,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function p1(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:g1(n.errors)}),n}function g1(n){if(!n)return null;let i=Object.entries(n),r={};for(let[o,c]of i)if(c&&c.__type==="RouteErrorResponse")r[o]=new Eu(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let d=window[c.__subType];if(typeof d=="function")try{let h=new d(c.message);h.stack="",r[o]=h}catch{}}if(r[o]==null){let d=new Error(c.message);d.stack="",r[o]=d}}else r[o]=c;return r}var np=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lp=D.forwardRef(function({onClick:i,discover:r="render",prefetch:o="none",relative:c,reloadDocument:d,replace:h,unstable_mask:y,state:p,target:m,to:b,preventScrollReset:g,viewTransition:T,unstable_defaultShouldRevalidate:A,...H},G){let{basename:Q,navigator:J,unstable_useTransitions:F}=D.useContext(ta),W=typeof b=="string"&&np.test(b),ge=Nv(b,Q);b=ge.to;let ye=bS(b,{relative:c}),Ee=ga(),te=null;if(y){let oe=Su(y,[],Ee.unstable_mask?Ee.unstable_mask.pathname:"/",!0);Q!=="/"&&(oe.pathname=oe.pathname==="/"?Q:ya([Q,oe.pathname])),te=J.createHref(oe)}let[C,se,Te]=o1(o,H),xe=w1(b,{replace:h,unstable_mask:y,state:p,target:m,preventScrollReset:g,relative:c,viewTransition:T,unstable_defaultShouldRevalidate:A,unstable_useTransitions:F});function pe(oe){i&&i(oe),oe.defaultPrevented||xe(oe)}let He=!(ge.isExternal||d),We=D.createElement("a",{...H,...Te,href:(He?te:void 0)||ge.absoluteURL||ye,onClick:He?pe:i,ref:m1(G,se),target:m,"data-discover":!W&&r==="render"?"true":void 0});return C&&!W?D.createElement(D.Fragment,null,We,D.createElement(c1,{page:ye})):We});lp.displayName="Link";var b1=D.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:o="",end:c=!1,style:d,to:h,viewTransition:y,children:p,...m},b){let g=Ru(h,{relative:m.relative}),T=ga(),A=D.useContext(_u),{navigator:H,basename:G}=D.useContext(ta),Q=A!=null&&D1(g)&&y===!0,J=H.encodeLocation?H.encodeLocation(g).pathname:g.pathname,F=T.pathname,W=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;r||(F=F.toLowerCase(),W=W?W.toLowerCase():null,J=J.toLowerCase()),W&&G&&(W=va(W,G)||W);const ge=J!=="/"&&J.endsWith("/")?J.length-1:J.length;let ye=F===J||!c&&F.startsWith(J)&&F.charAt(ge)==="/",Ee=W!=null&&(W===J||!c&&W.startsWith(J)&&W.charAt(J.length)==="/"),te={isActive:ye,isPending:Ee,isTransitioning:Q},C=ye?i:void 0,se;typeof o=="function"?se=o(te):se=[o,ye?"active":null,Ee?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let Te=typeof d=="function"?d(te):d;return D.createElement(lp,{...m,"aria-current":C,className:se,ref:b,style:Te,to:h,viewTransition:y},typeof p=="function"?p(te):p)});b1.displayName="NavLink";var S1=D.forwardRef(({discover:n="render",fetcherKey:i,navigate:r,reloadDocument:o,replace:c,state:d,method:h=Ir,action:y,onSubmit:p,relative:m,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:T,...A},H)=>{let{unstable_useTransitions:G}=D.useContext(ta),Q=T1(),J=O1(y,{relative:m}),F=h.toLowerCase()==="get"?"get":"post",W=typeof y=="string"&&np.test(y),ge=ye=>{if(p&&p(ye),ye.defaultPrevented)return;ye.preventDefault();let Ee=ye.nativeEvent.submitter,te=Ee?.getAttribute("formmethod")||h,C=()=>Q(Ee||ye.currentTarget,{fetcherKey:i,method:te,navigate:r,replace:c,state:d,relative:m,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:T});G&&r!==!1?D.startTransition(()=>C()):C()};return D.createElement("form",{ref:H,method:F,action:J,onSubmit:o?p:ge,...A,"data-discover":!W&&n==="render"?"true":void 0})});S1.displayName="Form";function E1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ip(n){let i=D.useContext(sl);return Se(i,E1(n)),i}function w1(n,{target:i,replace:r,unstable_mask:o,state:c,preventScrollReset:d,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:p,unstable_useTransitions:m}={}){let b=gf(),g=ga(),T=Ru(n,{relative:h});return D.useCallback(A=>{if(WS(A,i)){A.preventDefault();let H=r!==void 0?r:xa(g)===xa(T),G=()=>b(n,{replace:H,unstable_mask:o,state:c,preventScrollReset:d,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:p});m?D.startTransition(()=>G()):G()}},[g,b,T,r,o,c,i,n,d,h,y,p,m])}function mw(n){ut(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=D.useRef(kc(n)),r=D.useRef(!1),o=ga(),c=D.useMemo(()=>$S(o.search,r.current?null:i.current),[o.search]),d=gf(),h=D.useCallback((y,p)=>{const m=kc(typeof y=="function"?y(new URLSearchParams(c)):y);r.current=!0,d("?"+m,p)},[d,c]);return[c,h]}var _1=0,R1=()=>`__${String(++_1)}__`;function T1(){let{router:n}=ip("useSubmit"),{basename:i}=D.useContext(ta),r=US(),o=n.fetch,c=n.navigate;return D.useCallback(async(d,h={})=>{let{action:y,method:p,encType:m,formData:b,body:g}=e1(d,i);if(h.navigate===!1){let T=h.fetcherKey||R1();await o(T,r,h.action||y,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:g,formMethod:h.method||p,formEncType:h.encType||m,flushSync:h.flushSync})}else await c(h.action||y,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:g,formMethod:h.method||p,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,c,i,r])}function O1(n,{relative:i}={}){let{basename:r}=D.useContext(ta),o=D.useContext(pa);Se(o,"useFormAction must be used inside a RouteContext");let[c]=o.matches.slice(-1),d={...Ru(n||".",{relative:i})},h=ga();if(n==null){d.search=h.search;let y=new URLSearchParams(d.search),p=y.getAll("index");if(p.some(b=>b==="")){y.delete("index"),p.filter(g=>g).forEach(g=>y.append("index",g));let b=y.toString();d.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:ya([r,d.pathname])),xa(d)}function D1(n,{relative:i}={}){let r=D.useContext(vf);Se(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=ip("useViewTransitionState"),c=Ru(n,{relative:i});if(!r.isTransitioning)return!1;let d=va(r.currentLocation.pathname,o)||r.currentLocation.pathname,h=va(r.nextLocation.pathname,o)||r.nextLocation.pathname;return vu(c.pathname,h)!=null||vu(c.pathname,d)!=null}var A1=Rv();function z1(n){return D.createElement(GS,{flushSync:A1.flushSync,...n})}function At(n,i,r,o){if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(n):o?o.value:i.get(n)}function ei(n,i,r,o,c){if(typeof i=="function"?n!==i||!0:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i.set(n,r),r}var il,da,$l,Jr,ts;const Zt="__TAURI_TO_IPC_KEY__";function up(n,i=!1){return window.__TAURI_INTERNALS__.transformCallback(n,i)}class yw{constructor(i){il.set(this,void 0),da.set(this,0),$l.set(this,[]),Jr.set(this,void 0),ei(this,il,i||(()=>{})),this.id=up(r=>{const o=r.index;if("end"in r){o==At(this,da,"f")?this.cleanupCallback():ei(this,Jr,o);return}const c=r.message;if(o==At(this,da,"f")){for(At(this,il,"f").call(this,c),ei(this,da,At(this,da,"f")+1);At(this,da,"f")in At(this,$l,"f");){const d=At(this,$l,"f")[At(this,da,"f")];At(this,il,"f").call(this,d),delete At(this,$l,"f")[At(this,da,"f")],ei(this,da,At(this,da,"f")+1)}At(this,da,"f")===At(this,Jr,"f")&&this.cleanupCallback()}else At(this,$l,"f")[o]=c})}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}set onmessage(i){ei(this,il,i)}get onmessage(){return At(this,il,"f")}[(il=new WeakMap,da=new WeakMap,$l=new WeakMap,Jr=new WeakMap,Zt)](){return`__CHANNEL__:${this.id}`}toJSON(){return this[Zt]()}}async function q(n,i={},r){return window.__TAURI_INTERNALS__.invoke(n,i,r)}class M1{get rid(){return At(this,ts,"f")}constructor(i){ts.set(this,void 0),ei(this,ts,i)}async close(){return q("plugin:resources|close",{rid:this.rid})}}ts=new WeakMap;function C1(){return!!(globalThis||window).isTauri}function rp(n){const i=[];let r=!1;return{streaming:!1,async write(o){if(r)throw new Error("The save stream is closed");i.push(o.slice())},async close(){if(r)return!1;r=!0;const o=new Blob(i);return i.length=0,n(o)},async abort(){r=!0,i.length=0}}}async function U1(n){const i=globalThis.showSaveFilePicker;if(i!==void 0)try{const o=(await(await i({suggestedName:n})).createWritable()).getWriter();let c=!1;return{streaming:!0,write:d=>o.write(d),async close(){return c?!1:(c=!0,await o.close(),!0)},async abort(){c||(c=!0,await o.abort())}}}catch(r){if(r instanceof DOMException&&r.name==="AbortError")return null;throw r}return rp(async r=>{const o=URL.createObjectURL(r),c=document.createElement("a");return c.href=o,c.download=n,document.body.append(c),c.click(),c.remove(),setTimeout(()=>URL.revokeObjectURL(o),0),!0})}const Kc=new Set;function sp(){return typeof window<"u"&&typeof window.Notification=="function"}async function N1(n){if(!sp())return;let i=window.Notification.permission;if(i==="default"&&(i=await window.Notification.requestPermission()),i!=="granted")return;const r=new window.Notification(n.title,{...n.body===void 0?{}:{body:n.body},...n.tag===void 0?{}:{tag:n.tag}}),o=n.route;r.onclick=()=>{if(window.focus(),r.close(),o!==void 0)for(const c of Kc)c(o)}}const x1={kind:"browser",openSaveSink:U1,...sp()?{notify:N1,onNotificationClick:n=>(Kc.add(n),()=>{Kc.delete(n)})}:{},connection:{async discover(){const n=await fetch("/__kiki/local-server");if(!n.ok)throw new Error(`Local server detection failed (${n.status})`);const i=await n.json();if(i.error!==void 0)throw new Error(i.error);return i.url===void 0?null:{config:{url:i.url,token:i.token??""},persist:!1}}}};var It;(function(n){n.WINDOW_RESIZED="tauri://resize",n.WINDOW_MOVED="tauri://move",n.WINDOW_CLOSE_REQUESTED="tauri://close-requested",n.WINDOW_DESTROYED="tauri://destroyed",n.WINDOW_FOCUS="tauri://focus",n.WINDOW_BLUR="tauri://blur",n.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",n.WINDOW_THEME_CHANGED="tauri://theme-changed",n.WINDOW_CREATED="tauri://window-created",n.WINDOW_SUSPENDED="tauri://suspended",n.WINDOW_RESUMED="tauri://resumed",n.WEBVIEW_CREATED="tauri://webview-created",n.DRAG_ENTER="tauri://drag-enter",n.DRAG_OVER="tauri://drag-over",n.DRAG_DROP="tauri://drag-drop",n.DRAG_LEAVE="tauri://drag-leave"})(It||(It={}));async function op(n,i){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(n,i),await q("plugin:event|unlisten",{event:n,eventId:i})}async function Tu(n,i,r){var o;const c=typeof r?.target=="string"?{kind:"AnyLabel",label:r.target}:(o=r?.target)!==null&&o!==void 0?o:{kind:"Any"};return q("plugin:event|listen",{event:n,target:c,handler:up(i)}).then(d=>async()=>op(n,d))}async function L1(n,i,r){return Tu(n,o=>{op(n,o.id),i(o)},r)}async function H1(n,i){await q("plugin:event|emit",{event:n,payload:i})}async function B1(n,i,r){await q("plugin:event|emit_to",{target:typeof n=="string"?{kind:"AnyLabel",label:n}:n,event:i,payload:r})}class cp{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.width=i[0].Logical.width,this.height=i[0].Logical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toPhysical(i){return new fu(this.width*i,this.height*i)}[Zt](){return{width:this.width,height:this.height}}toJSON(){return this[Zt]()}}class fu{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.width=i[0].Physical.width,this.height=i[0].Physical.height):(this.width=i[0].width,this.height=i[0].height):(this.width=i[0],this.height=i[1])}toLogical(i){return new cp(this.width/i,this.height/i)}[Zt](){return{width:this.width,height:this.height}}toJSON(){return this[Zt]()}}class Pl{constructor(i){this.size=i}toLogical(i){return this.size instanceof cp?this.size:this.size.toLogical(i)}toPhysical(i){return this.size instanceof fu?this.size:this.size.toPhysical(i)}[Zt](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[Zt]()}}class fp{constructor(...i){this.type="Logical",i.length===1?"Logical"in i[0]?(this.x=i[0].Logical.x,this.y=i[0].Logical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toPhysical(i){return new Nn(this.x*i,this.y*i)}[Zt](){return{x:this.x,y:this.y}}toJSON(){return this[Zt]()}}class Nn{constructor(...i){this.type="Physical",i.length===1?"Physical"in i[0]?(this.x=i[0].Physical.x,this.y=i[0].Physical.y):(this.x=i[0].x,this.y=i[0].y):(this.x=i[0],this.y=i[1])}toLogical(i){return new fp(this.x/i,this.y/i)}[Zt](){return{x:this.x,y:this.y}}toJSON(){return this[Zt]()}}class Fr{constructor(i){this.position=i}toLogical(i){return this.position instanceof fp?this.position:this.position.toLogical(i)}toPhysical(i){return this.position instanceof Nn?this.position:this.position.toPhysical(i)}[Zt](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[Zt]()}}class du extends M1{constructor(i){super(i)}static async new(i,r,o){return q("plugin:image|new",{rgba:ls(i),width:r,height:o}).then(c=>new du(c))}static async fromBytes(i){return q("plugin:image|from_bytes",{bytes:ls(i)}).then(r=>new du(r))}static async fromPath(i){return q("plugin:image|from_path",{path:i}).then(r=>new du(r))}async rgba(){return q("plugin:image|rgba",{rid:this.rid}).then(i=>new Uint8Array(i))}async size(){return q("plugin:image|size",{rid:this.rid})}}function ls(n){return n==null?null:typeof n=="string"?n:n instanceof du?n.rid:n}var Jc;(function(n){n[n.Critical=1]="Critical",n[n.Informational=2]="Informational"})(Jc||(Jc={}));class j1{constructor(i){this._preventDefault=!1,this.event=i.event,this.id=i.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var uv;(function(n){n.None="none",n.Normal="normal",n.Indeterminate="indeterminate",n.Paused="paused",n.Error="error"})(uv||(uv={}));function is(){return new dp(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function jc(){return q("plugin:window|get_all_windows").then(n=>n.map(i=>new dp(i,{skip:!0})))}const qc=["tauri://created","tauri://error"];class dp{constructor(i,r={}){var o;this.label=i,this.listeners=Object.create(null),r?.skip||q("plugin:window|create",{options:{...r,parent:typeof r.parent=="string"?r.parent:(o=r.parent)===null||o===void 0?void 0:o.label,label:i}}).then(async()=>this.emit("tauri://created")).catch(async c=>this.emit("tauri://error",c))}static async getByLabel(i){var r;return(r=(await jc()).find(o=>o.label===i))!==null&&r!==void 0?r:null}static getCurrent(){return is()}static async getAll(){return jc()}static async getFocusedWindow(){for(const i of await jc())if(await i.isFocused())return i;return null}async listen(i,r){return this._handleTauriEvent(i,r)?()=>{const o=this.listeners[i];o.splice(o.indexOf(r),1)}:Tu(i,r,{target:{kind:"Window",label:this.label}})}async once(i,r){return this._handleTauriEvent(i,r)?()=>{const o=this.listeners[i];o.splice(o.indexOf(r),1)}:L1(i,r,{target:{kind:"Window",label:this.label}})}async emit(i,r){if(qc.includes(i)){for(const o of this.listeners[i]||[])o({event:i,id:-1,payload:r});return}return H1(i,r)}async emitTo(i,r,o){if(qc.includes(r)){for(const c of this.listeners[r]||[])c({event:r,id:-1,payload:o});return}return B1(i,r,o)}_handleTauriEvent(i,r){return qc.includes(i)?(i in this.listeners?this.listeners[i].push(r):this.listeners[i]=[r],!0):!1}async scaleFactor(){return q("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return q("plugin:window|inner_position",{label:this.label}).then(i=>new Nn(i))}async outerPosition(){return q("plugin:window|outer_position",{label:this.label}).then(i=>new Nn(i))}async innerSize(){return q("plugin:window|inner_size",{label:this.label}).then(i=>new fu(i))}async outerSize(){return q("plugin:window|outer_size",{label:this.label}).then(i=>new fu(i))}async isFullscreen(){return q("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return q("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return q("plugin:window|is_maximized",{label:this.label})}async isFocused(){return q("plugin:window|is_focused",{label:this.label})}async isDecorated(){return q("plugin:window|is_decorated",{label:this.label})}async isResizable(){return q("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return q("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return q("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return q("plugin:window|is_closable",{label:this.label})}async isVisible(){return q("plugin:window|is_visible",{label:this.label})}async title(){return q("plugin:window|title",{label:this.label})}async theme(){return q("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return q("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return q("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return q("plugin:window|scene_identifier",{label:this.label})}async center(){return q("plugin:window|center",{label:this.label})}async requestUserAttention(i){let r=null;return i&&(i===Jc.Critical?r={type:"Critical"}:r={type:"Informational"}),q("plugin:window|request_user_attention",{label:this.label,value:r})}async setResizable(i){return q("plugin:window|set_resizable",{label:this.label,value:i})}async setEnabled(i){return q("plugin:window|set_enabled",{label:this.label,value:i})}async isEnabled(){return q("plugin:window|is_enabled",{label:this.label})}async setMaximizable(i){return q("plugin:window|set_maximizable",{label:this.label,value:i})}async setMinimizable(i){return q("plugin:window|set_minimizable",{label:this.label,value:i})}async setClosable(i){return q("plugin:window|set_closable",{label:this.label,value:i})}async setTitle(i){return q("plugin:window|set_title",{label:this.label,value:i})}async maximize(){return q("plugin:window|maximize",{label:this.label})}async unmaximize(){return q("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return q("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return q("plugin:window|minimize",{label:this.label})}async unminimize(){return q("plugin:window|unminimize",{label:this.label})}async show(){return q("plugin:window|show",{label:this.label})}async hide(){return q("plugin:window|hide",{label:this.label})}async close(){return q("plugin:window|close",{label:this.label})}async destroy(){return q("plugin:window|destroy",{label:this.label})}async setDecorations(i){return q("plugin:window|set_decorations",{label:this.label,value:i})}async setShadow(i){return q("plugin:window|set_shadow",{label:this.label,value:i})}async setEffects(i){return q("plugin:window|set_effects",{label:this.label,value:i})}async clearEffects(){return q("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(i){return q("plugin:window|set_always_on_top",{label:this.label,value:i})}async setAlwaysOnBottom(i){return q("plugin:window|set_always_on_bottom",{label:this.label,value:i})}async setContentProtected(i){return q("plugin:window|set_content_protected",{label:this.label,value:i})}async setSize(i){return q("plugin:window|set_size",{label:this.label,value:i instanceof Pl?i:new Pl(i)})}async setMinSize(i){return q("plugin:window|set_min_size",{label:this.label,value:i instanceof Pl?i:i?new Pl(i):null})}async setMaxSize(i){return q("plugin:window|set_max_size",{label:this.label,value:i instanceof Pl?i:i?new Pl(i):null})}async setSizeConstraints(i){function r(o){return o?{Logical:o}:null}return q("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:r(i?.minWidth),minHeight:r(i?.minHeight),maxWidth:r(i?.maxWidth),maxHeight:r(i?.maxHeight)}})}async setPosition(i){return q("plugin:window|set_position",{label:this.label,value:i instanceof Fr?i:new Fr(i)})}async setFullscreen(i){return q("plugin:window|set_fullscreen",{label:this.label,value:i})}async setSimpleFullscreen(i){return q("plugin:window|set_simple_fullscreen",{label:this.label,value:i})}async setFocus(){return q("plugin:window|set_focus",{label:this.label})}async setFocusable(i){return q("plugin:window|set_focusable",{label:this.label,value:i})}async setIcon(i){return q("plugin:window|set_icon",{label:this.label,value:ls(i)})}async setSkipTaskbar(i){return q("plugin:window|set_skip_taskbar",{label:this.label,value:i})}async setCursorGrab(i){return q("plugin:window|set_cursor_grab",{label:this.label,value:i})}async setCursorVisible(i){return q("plugin:window|set_cursor_visible",{label:this.label,value:i})}async setCursorIcon(i){return q("plugin:window|set_cursor_icon",{label:this.label,value:i})}async setBackgroundColor(i){return q("plugin:window|set_background_color",{color:i})}async setCursorPosition(i){return q("plugin:window|set_cursor_position",{label:this.label,value:i instanceof Fr?i:new Fr(i)})}async setIgnoreCursorEvents(i){return q("plugin:window|set_ignore_cursor_events",{label:this.label,value:i})}async startDragging(){return q("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(i){return q("plugin:window|start_resize_dragging",{label:this.label,value:i})}async setBadgeCount(i){return q("plugin:window|set_badge_count",{label:this.label,value:i})}async setBadgeLabel(i){return q("plugin:window|set_badge_label",{label:this.label,value:i})}async setOverlayIcon(i){return q("plugin:window|set_overlay_icon",{label:this.label,value:i?ls(i):void 0})}async setProgressBar(i){return q("plugin:window|set_progress_bar",{label:this.label,value:i})}async setVisibleOnAllWorkspaces(i){return q("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:i})}async setTitleBarStyle(i){return q("plugin:window|set_title_bar_style",{label:this.label,value:i})}async setTheme(i){return q("plugin:window|set_theme",{label:this.label,value:i})}async onResized(i){return this.listen(It.WINDOW_RESIZED,r=>{r.payload=new fu(r.payload),i(r)})}async onMoved(i){return this.listen(It.WINDOW_MOVED,r=>{r.payload=new Nn(r.payload),i(r)})}async onCloseRequested(i){return this.listen(It.WINDOW_CLOSE_REQUESTED,async r=>{const o=new j1(r);await i(o),o.isPreventDefault()||await this.destroy()})}async onDragDropEvent(i){const r=await this.listen(It.DRAG_ENTER,h=>{i({...h,payload:{type:"enter",paths:h.payload.paths,position:new Nn(h.payload.position)}})}),o=await this.listen(It.DRAG_OVER,h=>{i({...h,payload:{type:"over",position:new Nn(h.payload.position)}})}),c=await this.listen(It.DRAG_DROP,h=>{i({...h,payload:{type:"drop",paths:h.payload.paths,position:new Nn(h.payload.position)}})}),d=await this.listen(It.DRAG_LEAVE,h=>{i({...h,payload:{type:"leave"}})});return()=>{r(),c(),o(),d()}}async onFocusChanged(i){const r=await this.listen(It.WINDOW_FOCUS,c=>{i({...c,payload:!0})}),o=await this.listen(It.WINDOW_BLUR,c=>{i({...c,payload:!1})});return()=>{r(),o()}}async onScaleChanged(i){return this.listen(It.WINDOW_SCALE_FACTOR_CHANGED,i)}async onThemeChanged(i){return this.listen(It.WINDOW_THEME_CHANGED,i)}}var rv;(function(n){n.Disabled="disabled",n.Throttle="throttle",n.Suspend="suspend"})(rv||(rv={}));var sv;(function(n){n.Default="default",n.FluentOverlay="fluentOverlay"})(sv||(sv={}));var ov;(function(n){n.AppearanceBased="appearanceBased",n.Light="light",n.Dark="dark",n.MediumLight="mediumLight",n.UltraDark="ultraDark",n.Titlebar="titlebar",n.Selection="selection",n.Menu="menu",n.Popover="popover",n.Sidebar="sidebar",n.HeaderView="headerView",n.Sheet="sheet",n.WindowBackground="windowBackground",n.HudWindow="hudWindow",n.FullScreenUI="fullScreenUI",n.Tooltip="tooltip",n.ContentBackground="contentBackground",n.UnderWindowBackground="underWindowBackground",n.UnderPageBackground="underPageBackground",n.Mica="mica",n.Blur="blur",n.Acrylic="acrylic",n.Tabbed="tabbed",n.TabbedDark="tabbedDark",n.TabbedLight="tabbedLight"})(ov||(ov={}));var cv;(function(n){n.FollowsWindowActiveState="followsWindowActiveState",n.Active="active",n.Inactive="inactive"})(cv||(cv={}));var fv;(function(n){n.Year="year",n.Month="month",n.TwoWeeks="twoWeeks",n.Week="week",n.Day="day",n.Hour="hour",n.Minute="minute",n.Second="second"})(fv||(fv={}));var dv;(function(n){n[n.None=0]="None",n[n.Min=1]="Min",n[n.Low=2]="Low",n[n.Default=3]="Default",n[n.High=4]="High"})(dv||(dv={}));var hv;(function(n){n[n.Secret=-1]="Secret",n[n.Private=0]="Private",n[n.Public=1]="Public"})(hv||(hv={}));async function q1(){return window.Notification.permission!=="default"?await Promise.resolve(window.Notification.permission==="granted"):await q("plugin:notification|is_permission_granted")}async function Y1(){return await window.Notification.requestPermission()}let hp=!1;function uu(){if(hp)throw new Error("This is an SSH workspace. Use a remote server operation, not a local file or directory action.")}const G1={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp"};async function Q1(){let n=await q1();return n||(n=await Y1()==="granted"),n}function V1(n){let i=!1,r;return Tu("kiki://notification-click",o=>{const c=o.payload;!i&&typeof c?.route=="string"&&(q("take_navigation_intent"),n(c.route,typeof c.homeId=="string"?c.homeId:void 0))}).then(o=>{i?o():r=o},()=>{}),()=>{i=!0,r?.()}}function X1(n){let i=!1,r;return Tu("kiki://new-session",()=>{i||n()}).then(o=>{i?o():r=o},()=>{}),()=>{i=!0,r?.()}}function Z1(n){let i=!1,r;const o=is(),c=async(d,h)=>{try{const y=await o.scaleFactor();i||n({paths:d,position:{x:h.x/y,y:h.y/y}})}catch{i||n({paths:d})}};return o.onDragDropEvent(d=>{i||d.payload.type!=="drop"||c(d.payload.paths,d.payload.position)}).then(d=>{i?d():r=d},()=>{}),()=>{i=!0,r?.()}}const k1={kind:"tauri",connection:{async discover(){return{config:await q("desktop_connection"),persist:!1}},listSshProfiles:()=>q("list_ssh_profiles"),saveSshProfile:n=>q("save_ssh_profile",{profile:n}),removeSshProfile:n=>q("remove_ssh_profile",{id:n}),connectSshProfile:(n,i)=>q("connect_ssh_profile",{id:n,token:i}),prepareSshProfile:(n,i)=>q("prepare_ssh_profile",{id:n,token:i}),resumeScopeConnection:(n,i,r)=>q("resume_scope_connection",{homeId:n,id:i,tunnelId:r}),commitScopeConnection:(n,i,r,o)=>q("commit_scope_connection",{homeId:n,id:i,tunnelId:r,reload:o}),takeScopeConnection:()=>q("take_scope_connection"),sshTunnelRunning:(n,i)=>q("ssh_tunnel_running",{id:n,tunnelId:i}),disconnectSshProfile:(n,i)=>q("disconnect_ssh_profile",{id:n,tunnelId:i}),setWorkspaceScope:n=>{hp=n==="ssh"},async cancelStartup(){await q("cancel_desktop_startup")},async onBackendStage(n){return Tu("kiki://desktop-backend-stage",i=>{n(i.payload)})}},async notify(n){await Q1()&&await q("send_desktop_notification",{title:n.title,body:n.body,route:n.route})},onNotificationClick:V1,async setUnreadBadge(n){try{await q("set_unread_count",{n:Math.max(0,Math.min(4294967295,Math.trunc(n)))})}catch{return}},async isWindowVisibleAndFocused(){try{const n=is(),[i,r]=await Promise.all([n.isVisible(),n.isFocused()]);return i&&r}catch{return!0}},async saveBlob(n,i){const[{save:r},{writeFile:o}]=await Promise.all([Ut(()=>import("./index-C69a5Mcz.js"),[]),Ut(()=>import("./index-CIymCfcP.js"),[])]),c=await r({defaultPath:i});if(c===null)return!1;const d=new Uint8Array(await n.arrayBuffer());return await o(c,d),!0},async openSaveSink(n){const[{save:i},{open:r,mkdir:o,rename:c,copyFile:d,remove:h,BaseDirectory:y}]=await Promise.all([Ut(()=>import("./index-C69a5Mcz.js"),[]),Ut(()=>import("./index-CIymCfcP.js"),[])]),p=await i({defaultPath:n});if(p===null)return null;await o("kiki-media-saves",{baseDir:y.AppLocalData,recursive:!0});const m=`kiki-media-saves/${crypto.randomUUID()}.part`,b=await r(m,{baseDir:y.AppLocalData,write:!0,createNew:!0});let g="writing";return{streaming:!0,async write(T){if(g!=="writing")throw new Error("The save stream is closed");if(T.byteLength>64*1024)throw new Error("The save chunk exceeds 64 KiB");let A=0;for(;A<T.byteLength;){const H=await b.write(T.subarray(A));if(H<=0)throw new Error("The file could not accept the next download chunk");A+=H}},async close(){if(g!=="writing")return!1;g="committing";let T=!1;try{await b.close(),T=!0;try{await c(m,p,{oldPathBaseDir:y.AppLocalData})}catch(A){if(!/EXDEV|cross[- ]device|different disk|os error (?:17|18)/iu.test(String(A)))throw A;try{await d(m,p,{fromPathBaseDir:y.AppLocalData})}catch(H){throw new Error("Could not finish saving. The selected file may be incomplete.",{cause:H})}}return!0}finally{g="closed",T||await b.close().catch(()=>{}),await h(m,{baseDir:y.AppLocalData}).catch(()=>{})}},async abort(){if(g==="writing"){g="closed";try{await b.close()}finally{await h(m,{baseDir:y.AppLocalData})}}}}},async pickFiles(){const[{open:n},{readFile:i,stat:r}]=await Promise.all([Ut(()=>import("./index-C69a5Mcz.js"),[]),Ut(()=>import("./index-CIymCfcP.js"),[])]),o=await n({multiple:!0});if(o===null)return null;const c=typeof o=="string"?[o]:o;return Promise.all(c.map(async d=>{const h=d.replaceAll("\\","/").split("/").at(-1)??d,y=h.includes(".")?(h.split(".").at(-1)??"").toLowerCase():"",p=G1[y]??"",m=await r(d);return{name:h,size:m.size,type:p,async read(){const b=await i(d);return new File([b],h,{type:p})}}}))},async pickDirectories(){uu();const{open:n}=await Ut(async()=>{const{open:r}=await import("./index-C69a5Mcz.js");return{open:r}},[]),i=await n({directory:!0,multiple:!0});return i===null?null:typeof i=="string"?[i]:i},async pickDirectory(){uu();const{open:n}=await Ut(async()=>{const{open:r}=await import("./index-C69a5Mcz.js");return{open:r}},[]),i=await n({directory:!0,multiple:!1});return i===null?null:typeof i=="string"?i:i[0]??null},async revealPath(n){uu(),await q("reveal_host_path",{path:/^\/[A-Za-z]:[\\/]/.test(n)?n.slice(1):n})},async openUrl(n){await q("open_external_url",{url:n})},async openPath(n){uu(),await q("open_host_path",{path:/^\/[A-Za-z]:[\\/]/.test(n)?n.slice(1):n})},async writeFileText(n,i){uu(),await q("write_host_file_text",{path:n,text:i})},async writeDesktopPrefs(n){try{await q("write_desktop_prefs",{prefs:n})}catch{return}},async readDesktopPrefs(){try{return await q("read_desktop_prefs")}catch{return null}},async restartServer(){await q("restart_server")},desktopLogInfo:()=>q("desktop_log_info"),async openDesktopLogDirectory(){await q("open_desktop_log_directory")},async supportsDesktopUpdates(){return q("supports_desktop_updates")},async checkDesktopUpdate(){const n=await q("check_desktop_update");return n===null?null:{...n,async install(){await q("prepare_for_update"),await q("install_desktop_update")}}},onTrayNewSession:X1,onFileDrop:Z1,activeSpace:()=>q("desktop_active_space"),takeNavigationIntent:()=>q("take_navigation_intent"),async spaceStatuses(){try{return await q("desktop_space_statuses")}catch{return[]}},prepareSpace:n=>q("prepare_space",{homeId:n}),async switchSpace(n){await q("switch_space",{homeId:n})},async openSpace(n){await q("open_space",{homeId:n})},async openRemoteSpace(n){await q("open_space",{connectionId:n})},createSpaceShortcut:n=>q("create_space_shortcut",{homeId:n}),async restartSpace(n){await q("restart_space",{homeId:n})},async setTheme(n){try{await is().setTheme(n)}catch{return}}};let Wr,mv=!1;const Fc=new Map;function K1(){return typeof globalThis.acquireVsCodeApi=="function"}function ct(n,i={}){const r=J1();F1();const o=crypto.randomUUID();return new Promise((c,d)=>{Fc.set(o,{resolve:h=>c(h),reject:d}),r.postMessage({channel:"kiki.vscode-host.request",id:o,method:n,params:i})})}const mp={kind:"browser",connection:{discover:()=>ct("connection.discover")},preparePrompt:(n,i,r=!0)=>ct("editor.preparePrompt",{content:n,conversationId:i,includeEditorContext:r}),notify:n=>ct("window.notify",n),isWindowVisibleAndFocused:()=>ct("window.focused"),async saveBlob(n,i){const r=[...new Uint8Array(await n.arrayBuffer())];return ct("file.save",{filename:i,bytes:r})},async openSaveSink(n){const i=await ct("file.save.open",{filename:n});if(i===null)return null;if(!i.supported)return rp(d=>mp.saveBlob(d,n));if(i.sinkId===void 0)throw new Error("The host did not open a save stream");const r=i.sinkId;let o=0,c=!1;return{streaming:!0,async write(d){if(c)throw new Error("The save stream is closed");for(let h=0;h<d.byteLength;h+=64*1024){const y=d.slice(h,Math.min(d.byteLength,h+65536)),p=await ct("file.save.write",{sinkId:r,offset:o,bytes:y.buffer});if(o+=y.byteLength,p.bytes!==o)throw new Error("The host did not write the complete download chunk")}},async close(){return c?!1:(c=!0,ct("file.save.close",{sinkId:r}))},async abort(){c||(c=!0,await ct("file.save.abort",{sinkId:r}))}}},async pickFiles(){return(await ct("file.pick"))?.map(W1)??null},pickDirectory:()=>ct("directory.pick"),pickDirectories:()=>ct("directory.pickMany"),revealPath:n=>ct("path.reveal",{path:n}),openPath:n=>ct("file.open",{path:n}),writeFileText:(n,i)=>ct("file.writeText",{path:n,text:i}),openFile:(n,i,r)=>ct("file.open",{path:n,line:i,column:r}),showDiff:(n,i,r)=>ct("diff.open",{originalPath:n,modifiedPath:i,title:r}),openTerminal:n=>ct("terminal.open",{cwd:n}),writeClipboard:n=>ct("clipboard.write",{text:n}),openExternal:n=>ct("external.open",{url:n}),openUrl:n=>ct("external.open",{url:n})};function J1(){if(Wr!==void 0)return Wr;const n=globalThis.acquireVsCodeApi;return Wr=n(),Wr}function F1(){mv||(mv=!0,window.addEventListener("message",n=>{const i=n.data;if(i.channel!=="kiki.vscode-host.response"||typeof i.id!="string")return;const r=Fc.get(i.id);r!==void 0&&(Fc.delete(i.id),i.ok?r.resolve(i.result):r.reject(new Error(i.error??"VS Code host request failed.")))}))}function W1(n){return{name:n.name,size:n.bytes.length,type:n.type,async read(){return new File([new Uint8Array(n.bytes)],n.name,{type:n.type})}}}const ai=C1()?k1:K1()?mp:x1,yp=D.createContext(ai);function $1({children:n,host:i=ai}){return Ta.jsx(yp.Provider,{value:i,children:n})}function vw(){return D.useContext(yp)}const P1="kiki.space.";let us=null;function as(n){us=n!==null&&n.homeId!==""&&n.isPrimary!==!0?n:null}function rs(){return us}function Yc(n){return us===null?n:`${P1}${us.homeId}.${n}`}const Tf={getItem:n=>localStorage.getItem(Yc(n)),setItem:(n,i)=>{localStorage.setItem(Yc(n),i)},removeItem:n=>{localStorage.removeItem(Yc(n))}};function I1(n,i){const r=n==="main"?i:`kiki.space.${n}.${i}`;try{return localStorage.getItem(r)}catch{return null}}const eE="__KIKI_ACTIVE_SPACE__",tE="main";function $r(n,i){const r=n[i];return typeof r=="string"&&r!==""?r:void 0}function vp(n){let i=n;if(typeof i=="string")try{i=JSON.parse(i)}catch{return null}if(typeof i!="object"||i===null||Array.isArray(i))return null;const r=i,o=$r(r,"homeId");return o===void 0?null:{homeId:o,name:$r(r,"name"),color:$r(r,"color"),preset:$r(r,"preset"),isPrimary:r.isPrimary===!0||o===tE?!0:void 0}}function aE(){return typeof window>"u"?null:vp(window[eE])}async function nE(n){const i=aE();if(i!==null)return as(i),rs();if(n!==null&&n.kind==="tauri"&&n.activeSpace!==void 0)try{const r=vp(await n.activeSpace());if(r!==null)return as(r),rs()}catch{}return as(null),null}const Of="kiki.viewRoute",pp="kiki.viewRouteOwner";function cl(n){if(typeof n!="string"||!n.startsWith("/")||n.startsWith("//")||n.includes("\\"))return!1;try{const i=new URL(n,"http://example.test");return i.origin!=="http://example.test"||i.searchParams.has("token")||i.searchParams.has("server")||i.searchParams.has("url")||i.hash.startsWith("#token=")?!1:/^\/(?:new|usage|activity|board|cron|memory|personas|capabilities)$/.test(i.pathname)||/^\/settings(?:\/[^/]+)?$/.test(i.pathname)||/^\/s\/[^/]+(?:\/.*)?$/.test(i.pathname)||/^\/(?:rooms|r)\/[^/]+$/.test(i.pathname)}catch{return!1}}function gp(){try{const n=JSON.parse(Tf.getItem(Of)??"{}");if(typeof n=="object"&&n!==null&&!Array.isArray(n))return n}catch{}return{}}function pw(n,i="local"){try{const r=JSON.parse(I1(n,Of)??"{}"),o=Object.hasOwn(r,i)?r[i]:void 0;return cl(o)?o:void 0}catch{return}}function lE(n="local"){const i=gp(),r=Object.hasOwn(i,n)?i[n]:void 0;return cl(r)?r:void 0}function gw(n,i="local"){if(cl(n))try{Tf.setItem(Of,JSON.stringify({...gp(),[i]:n}))}catch{}}function bp(){return rs()?.homeId??"main"}function iE(){try{const n=JSON.parse(sessionStorage.getItem(pp)??"null");if(typeof n!="object"||n===null)return;const i=n;if(typeof i.homeId=="string"&&typeof i.route=="string")return i}catch{}}function uE(n){try{sessionStorage.setItem(pp,JSON.stringify({homeId:bp(),route:n}))}catch{}}function yv(){const n=lE();if(n!==void 0)return n;try{const i=Tf.getItem("kiki.lastSessionId");if(i)return`/s/${encodeURIComponent(i)}`}catch{}return"/new"}function rE(n){if(n.kind!=="tauri")return;const i=`${window.location.pathname}${window.location.search}${window.location.hash}`,r=iE();let o=i;r?.homeId!==bp()?o=r!==void 0&&i==="/activity"&&window.history.state===null?i:yv():i==="/"&&(o=yv()),o!==i&&window.history.replaceState(null,"",o),uE(o)}const Df="kiki.navHistory.v1",sE=100;let oE=0,Ge=[],Xt=-1,Wc=!1,ii=!1;const _t=new Map,$c=new Set;let Sp=0;function bw(n){return $c.add(n),()=>{$c.delete(n)}}function Sw(){return Sp}function Af(){Sp+=1;for(const n of $c)n()}function La(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function cE(n){return La(n)&&typeof n.homeId=="string"&&typeof n.scopeId=="string"&&(n.serverHomeId===void 0||typeof n.serverHomeId=="string")&&(n.connectionRef===void 0||typeof n.connectionRef=="string")}function Bn(n){return{homeId:n.homeId,scopeId:n.scopeId,serverHomeId:n.serverHomeId,connectionRef:n.connectionRef}}function Ep(n){return La(n)&&typeof n.visitId=="string"&&n.visitId!==""&&typeof n.pathname=="string"&&typeof n.search=="string"&&typeof n.hash=="string"&&cE(n.scope)&&(n.key===void 0||typeof n.key=="string")&&(n.missing===void 0||n.missing===!0)&&(n.label===void 0||typeof n.label=="string")}function zf(n){return Ep(n)&&La(n)&&typeof n.timestamp=="number"&&Number.isFinite(n.timestamp)&&(n.ui===void 0||La(n.ui))}function wp(){for(;_t.size>sE;){const n=_t.keys().next().value;if(n===void 0)break;_t.delete(n)}}function Ou(){if(!Wc){Wc=!0;try{const n=JSON.parse(sessionStorage.getItem(Df)??"null");if(!La(n)||n.version!==1)return;const i=n.entries,r=n.currentIndex;if(Array.isArray(i)&&i.every(Ep)&&new Set(i.map(o=>o.visitId)).size===i.length&&typeof r=="number"&&Number.isInteger(r)&&r>=0&&r<i.length&&(Ge=i.map(o=>({...o,scope:Bn(o.scope)})),Xt=r),Array.isArray(n.snapshots)){for(const o of n.snapshots)zf(o)&&(_t.delete(o.visitId),_t.set(o.visitId,{...o,scope:Bn(o.scope)}));wp()}}catch{}}}function hs(){try{const n=[];for(const i of _t.values())try{const r=JSON.parse(JSON.stringify(i));zf(r)&&n.push(r)}catch{}sessionStorage.setItem(Df,JSON.stringify({version:1,entries:Ge,currentIndex:Xt,snapshots:n}))}catch{}}function ui(){return`v_${Date.now()}_${++oE}`}function vv(){let n=ui();for(;Ge.some(i=>i.visitId===n)||_t.has(n);)n=ui();return n}function Ew(n){Ou();const{location:i,scope:r}=n,o=La(i.state)?i.state:void 0,c=La(o?.kikiNav)?o.kikiNav:o,d=typeof c?.visitId=="string"&&c.visitId!==""?c.visitId:void 0,h=n.label??(typeof c?.label=="string"?c.label:void 0);let y=n.action??(n.replace?"REPLACE":"PUSH"),p=d===void 0?-1:Ge.findIndex(A=>A.visitId===d);if(p===-1&&i.key!==void 0&&(p=Ge.findIndex(A=>A.key===i.key)),!ii){const A=Ge[p],H=A!==void 0&&(d===A.visitId||i.key!=="default"&&A.pathname===i.pathname&&A.search===i.search&&A.hash===i.hash);H||(Ge=[],Xt=-1,p=-1),ii=!0,H&&(Xt=p,y="POP")}const m=Ge[Xt],b=m!==void 0&&(i.key!==void 0?i.key===m.key:d===m.visitId)&&m.pathname===i.pathname&&m.search===i.search&&m.hash===i.hash&&!Pc(m.scope,r);let g;if(y==="POP"&&p!==-1){Xt=p;const A=Ge[p],H=Pc(A.scope,r)?A.scope:{...A.scope,serverHomeId:r.serverHomeId??A.scope.serverHomeId,connectionRef:r.connectionRef??A.scope.connectionRef};g={...A,scope:H,key:i.key??A.key,pathname:i.pathname,search:i.search,hash:i.hash,label:h??A.label},Ge[Xt]=g}else(y==="REPLACE"||b)&&m!==void 0?(g={visitId:d===void 0||d===m.visitId?m.visitId:Ge.some(H=>H.visitId===d)?vv():d,key:i.key,pathname:i.pathname,search:i.search,hash:i.hash,scope:Bn(r),label:h??m.label},Ge[Xt]=g):(g={visitId:d!==void 0&&!Ge.some(H=>H.visitId===d)?d:vv(),key:i.key,pathname:i.pathname,search:i.search,hash:i.hash,scope:Bn(r),label:h},y==="POP"?(Ge=[g],Xt=0):(Ge=Ge.slice(0,Xt+1),Ge.push(g),Xt=Ge.length-1));const T=_t.get(g.visitId);return T!==void 0&&_t.set(g.visitId,{...T,pathname:g.pathname,search:g.search,hash:g.hash,scope:g.scope,label:g.label}),hs(),Af(),g}function ww(){return hE()!==null}function _p(){return ii?Ge[Xt]??null:null}function fE(n){Ou();const i=La(n.state)?n.state:void 0,r=La(i?.kikiNav)?i.kikiNav:void 0,o=Ge.find(c=>r?.visitId===c.visitId||(ii||n.key!=="default")&&c.key===n.key);return o!==void 0&&o.pathname===n.pathname&&o.search===n.search&&o.hash===n.hash?o:null}function dE(n){if(!ii)return null;const i=Ge.findIndex(r=>r.visitId===n);for(let r=i-1;r>=0;r-=1)if(Ge[r]?.missing!==!0)return Ge[r]??null;return null}function _w(n){const i=Ge.findIndex(r=>r.visitId===n);i===-1||Ge[i]?.missing===!0||(Ge[i]={...Ge[i],missing:!0},_t.delete(n),hs(),Af())}function Rw(n,i){const r=_p();if(r?.visitId!==i.visitId||r.key!==i.key)return null;const o=Ge.findIndex(c=>c.visitId===n);return o===-1?null:o-Xt}function hE(){const n=_p();return n===null?null:dE(n.visitId)}function mE(n,i){Ou();const r=_t.get(n),c={...Ge.find(d=>d.visitId===n),...r,...i,visitId:n,timestamp:i.timestamp??Date.now()};zf(c)&&(_t.delete(n),_t.set(n,{...c,scope:Bn(c.scope),ui:c.ui===void 0?void 0:{...c.ui}}),wp(),hs())}function Rp(n){Ou();const i=_t.get(n);return i!==void 0&&(_t.delete(n),_t.set(n,i),hs()),i}function Mf(){Ge=[],Xt=-1,_t.clear(),Wc=!0,ii=!1;try{sessionStorage.removeItem(Df)}catch{}Af()}function yE(n,i){const r=Rp(n)?.ui;mE(n,{ui:{...r,...i}})}function vE(n){return Rp(n)?.ui}function Tw(n){return Ou(),_t.get(n)?.ui}function Ow(n,i,r,o){if(!Number.isFinite(r)||o!==void 0)return;const c=vE(n),d=La(c?.scrollPositions)?c.scrollPositions:{};yE(n,{scrollPositions:{...d,[i]:{top:r,left:o}}})}function Pc(n,i){return n.homeId!==i.homeId||n.scopeId!==i.scopeId}class ou extends Error{constructor(i){super(i),this.reason=i,this.name="ScopeRestoreError"}}function Dw(n,i){const r=fE(n),c=n.state?.kikiNav?.scope;return{scope:r?.scope??(typeof c?.homeId=="string"&&typeof c.scopeId=="string"?c:i),route:`${n.pathname}${n.search}${n.hash}`}}function Aw(n){return/^\/(?:s|rooms|r)\/[^/?#]+/.test(n)}async function zw(n,i,r,o,c){let d;try{if(r.throwIfAborted(),!cl(n.route))throw new ou("scope-invalid");if(o({phase:"restoring",target:n}),d=await i.prepare(n.scope,r,c),r.throwIfAborted(),o({phase:"verifying",target:n}),Pc(d.scope,n.scope))throw new ou("identity-mismatch");return await d.validate(n.route,r),r.throwIfAborted(),d}catch(h){if(await d?.dispose(),r.aborted||h instanceof DOMException&&h.name==="AbortError")throw h;const y=h instanceof ou?h.reason:"offline";throw o({phase:"failed",target:n,reason:y}),new ou(y)}}let hu;function Mw(n){return hu=n,()=>{hu===n&&(hu=void 0)}}function Cw(n){return hu===void 0?Promise.reject(new ou("scope-invalid")):hu(n)}const ss="kiki.navScopeHandoff.v1";let Ic=null;function pE(){try{const n=JSON.parse(sessionStorage.getItem(ss)??"null")??Ic;return n===null||typeof n.scope?.homeId!="string"||typeof n.scope.scopeId!="string"||!cl(n.route)||n.route!==`${window.location.pathname}${window.location.search}${window.location.hash}`||n.key!==window.history.state?.key?null:Bn(n.scope)}catch{return null}}function gE(n,i,r){sessionStorage.setItem(ss,JSON.stringify({scope:Bn(n),route:i,key:r}))}function bE(n){Ic=null;try{const i=JSON.parse(sessionStorage.getItem(ss)??"null");if(sessionStorage.removeItem(ss),typeof i!="object"||i===null)return!1;const r=i,o=r.scope?.homeId===n&&cl(r.route)&&r.route===`${window.location.pathname}${window.location.search}${window.location.hash}`&&r.key===window.history.state?.key;return Ic=o?{...r,scope:Bn(r.scope)}:null,o}catch{return!1}}function SE(n,i){!n&&!i&&Mf()}function EE(n,i){if(!cl(n.route))return!1;Mf();const r=window.history.state,o={homeId:n.homeId??i,scopeId:"local"};return window.history.replaceState({...r,idx:r?.idx??0,key:r?.key??`cold_${ui()}`,usr:{kikiNav:{visitId:ui(),scope:o}}},"",n.route),!0}function wE(n){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(n))return!1;Mf();const i={homeId:`remote:${n}`,scopeId:`remote:${n}`},r="/new",o=`remote_${ui()}`;return window.history.replaceState({idx:0,key:o,usr:{kikiNav:{visitId:ui(),scope:i}}},"",r),gE(i,r,o),!0}var Cf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_E=class extends Cf{#t;#e;#a;constructor(){super(),this.#a=n=>{if(typeof window<"u"&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Tp=new _E,RE={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},TE=class{#t=RE;#e=!1;setTimeoutProvider(n){this.#t=n}setTimeout(n,i){return this.#t.setTimeout(n,i)}clearTimeout(n){this.#t.clearTimeout(n)}setInterval(n,i){return this.#t.setInterval(n,i)}clearInterval(n){this.#t.clearInterval(n)}},rl=new TE;function OE(n){setTimeout(n,0)}var DE=typeof window>"u"||"Deno"in globalThis;function gu(){}function Uw(n,i){return typeof n=="function"?n(i):n}function ef(n){return typeof n=="number"&&n>=0&&n!==1/0}function Op(n,i){return Math.max(n+(i||0)-Date.now(),0)}function li(n,i){return typeof n=="function"?n(i):n}function ma(n,i){return typeof n=="function"?n(i):n}function Nw(n,i){const{type:r="all",exact:o,fetchStatus:c,predicate:d,queryKey:h,stale:y}=n;if(h){if(o){if(i.queryHash!==AE(h,i.options))return!1}else if(!Uf(i.queryKey,h))return!1}if(r!=="all"){const p=i.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof y=="boolean"&&i.isStale()!==y||c&&c!==i.state.fetchStatus||d&&!d(i))}function xw(n,i){const{exact:r,status:o,predicate:c,mutationKey:d}=n;if(d){if(!i.options.mutationKey)return!1;if(r){if(tf(i.options.mutationKey)!==tf(d))return!1}else if(!Uf(i.options.mutationKey,d))return!1}return!(o&&i.state.status!==o||c&&!c(i))}function AE(n,i){return(i?.queryKeyHashFn||tf)(n)}function tf(n){return JSON.stringify(n,(i,r)=>nf(r)?Object.keys(r).sort().reduce((o,c)=>(o[c]=r[c],o),{}):r)}function Uf(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(r=>Uf(n[r],i[r])):!1}var zE=Object.prototype.hasOwnProperty;function Dp(n,i,r=0){if(n===i)return n;if(r>500)return i;const o=pv(n)&&pv(i);if(!o&&!(nf(n)&&nf(i)))return i;const d=(o?n:Object.keys(n)).length,h=o?i:Object.keys(i),y=h.length,p=o?new Array(y):{};let m=0;for(let b=0;b<y;b++){const g=o?b:h[b],T=n[g],A=i[g];if(T===A){p[g]=T,(o?b<d:zE.call(n,g))&&m++;continue}if(T===null||A===null||typeof T!="object"||typeof A!="object"){p[g]=A;continue}const H=Dp(T,A,r+1);p[g]=H,H===T&&m++}return d===y&&m===d?n:p}function af(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function pv(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function nf(n){if(!gv(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!gv(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function gv(n){return Object.prototype.toString.call(n)==="[object Object]"}function ME(n){return new Promise(i=>{rl.setTimeout(i,n)})}function lf(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?Dp(n,i):i}function Lw(n,i,r=0){const o=[...n,i];return r&&o.length>r?o.slice(1):o}function Hw(n,i,r=0){const o=[i,...n];return r&&o.length>r?o.slice(0,-1):o}var Ap=Symbol();function CE(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Ap?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function zp(n,i){return typeof n=="function"?n(...i):!!n}function Bw(n,i,r){let o=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??=i(),o||(o=!0,c.aborted?r():c.addEventListener("abort",r,{once:!0})),c)}),n}var bu=(()=>{let n=()=>DE;return{isServer(){return n()},setIsServer(i){n=i}}})();function uf(){let n,i;const r=new Promise((c,d)=>{n=c,i=d});r.status="pending",r.catch(()=>{});function o(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{o({status:"fulfilled",value:c}),n(c)},r.reject=c=>{o({status:"rejected",reason:c}),i(c)},r}var UE=OE;function NE(){let n=[],i=0,r=y=>{y()},o=y=>{y()},c=UE;const d=y=>{i?n.push(y):c(()=>{r(y)})},h=()=>{const y=n;n=[],y.length&&c(()=>{o(()=>{y.forEach(p=>{r(p)})})})};return{batch:y=>{let p;i++;try{p=y()}finally{i--,i||h()}return p},batchCalls:y=>(...p)=>{d(()=>{y(...p)})},schedule:d,setNotifyFunction:y=>{r=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{c=y}}}var Nf=NE(),xE=class extends Cf{#t=!0;#e;#a;constructor(){super(),this.#a=n=>{if(typeof window<"u"&&window.addEventListener){const i=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(r=>{r(n)}))}isOnline(){return this.#t}},Mp=new xE;function LE(n){return Math.min(1e3*2**n,3e4)}function Cp(n){return(n??"online")==="online"?Mp.isOnline():!0}var rf=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function HE(n){let i=!1,r=0,o;const c=uf(),d=()=>c.status!=="pending",h=G=>{if(!d()){const Q=new rf(G);T(Q),n.onCancel?.(Q)}},y=()=>{i=!0},p=()=>{i=!1},m=()=>Tp.isFocused()&&(n.networkMode==="always"||Mp.isOnline())&&n.canRun(),b=()=>Cp(n.networkMode)&&n.canRun(),g=G=>{d()||(o?.(),c.resolve(G))},T=G=>{d()||(o?.(),c.reject(G))},A=()=>new Promise(G=>{o=Q=>{(d()||m())&&G(Q)},n.onPause?.()}).then(()=>{o=void 0,d()||n.onContinue?.()}),H=()=>{if(d())return;let G;const Q=r===0?n.initialPromise:void 0;try{G=Q??n.fn()}catch(J){G=Promise.reject(J)}Promise.resolve(G).then(g).catch(J=>{if(d())return;const F=n.retry??(bu.isServer()?0:3),W=n.retryDelay??LE,ge=typeof W=="function"?W(r,J):W,ye=F===!0||typeof F=="number"&&r<F||typeof F=="function"&&F(r,J);if(i||!ye){T(J);return}r++,n.onFail?.(r,J),ME(ge).then(()=>m()?void 0:A()).then(()=>{i?T(J):H()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(o?.(),c),cancelRetry:y,continueRetry:p,canStart:b,start:()=>(b()?H():A().then(H),c)}}var BE=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ef(this.gcTime)&&(this.#t=rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(bu.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(rl.clearTimeout(this.#t),this.#t=void 0)}},jw=class extends BE{#t;#e;#a;#l;#n;#s;#i;constructor(n){super(),this.#i=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#a=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=Sv(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Sv(this.options);i.data!==void 0&&(this.setState(bv(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,i){const r=lf(this.state.data,n,this.options);return this.#u({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(n,i){this.#u({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#n?.promise;return this.#n?.cancel(n),i?i.then(gu).catch(gu):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(n=>ma(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ap||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>li(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Op(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#n&&(this.#i||this.#r()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(p=>p.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#i=!0,r.signal)})},c=()=>{const y=CE(this.options,i),m=(()=>{const b={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(b),b})();return this.#i=!1,this.options.persister?this.options.persister(y,m,this):y(m)},h=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return o(y),y})();this.options.behavior?.onFetch(h,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#u({type:"fetch",meta:h.fetchOptions?.meta}),this.#n=HE({initialPromise:i?.initialPromise,fn:h.fetchFn,onCancel:y=>{y instanceof rf&&y.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(y,p)=>{this.#u({type:"failed",failureCount:y,error:p})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const y=await this.#n.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof rf){if(y.silent)return this.#n.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#u({type:"error",error:y}),this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#u(n){const i=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Up(r.data,this.options),fetchMeta:n.meta??null};case"success":const o={...r,...bv(n.data,n.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?o:void 0,o;case"error":const c=n.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=i(this.state),Nf.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function Up(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Cp(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function bv(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Sv(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,o=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jE=class extends Cf{constructor(n,i){super(),this.options=i,this.#t=n,this.#r=null,this.#i=uf(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#a=void 0;#l=void 0;#n;#s;#i;#r;#u;#h;#m;#c;#f;#o;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Ev(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sf(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sf(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#E(),this.#e.removeObserver(this)}setOptions(n){const i=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ma(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),i._defaulted&&!af(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&wv(this.#e,r,this.options,i)&&this.#d(),this.updateResult(),o&&(this.#e!==r||ma(this.options.enabled,this.#e)!==ma(i.enabled,this.#e)||li(this.options.staleTime,this.#e)!==li(i.staleTime,this.#e))&&this.#v();const c=this.#p();o&&(this.#e!==r||ma(this.options.enabled,this.#e)!==ma(i.enabled,this.#e)||c!==this.#o)&&this.#g(c)}getOptimisticResult(n){const i=this.#t.getQueryCache().build(this.#t,n),r=this.createResult(i,n);return YE(this,r)&&(this.#l=r,this.#s=this.options,this.#n=this.#e.state),r}getCurrentResult(){return this.#l}trackResult(n,i){return new Proxy(n,{get:(r,o)=>(this.trackProp(o),i?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(n){this.#y.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#t.defaultQueryOptions(n),r=this.#t.getQueryCache().build(this.#t,i);return r.fetch().then(()=>this.createResult(r,i))}fetch(n){return this.#d({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#d(n){this.#w();let i=this.#e.fetch(this.options,n);return n?.throwOnError||(i=i.catch(gu)),i}#v(){this.#S();const n=li(this.options.staleTime,this.#e);if(bu.isServer()||this.#l.isStale||!ef(n))return;const r=Op(this.#l.dataUpdatedAt,n)+1;this.#c=rl.setTimeout(()=>{this.#l.isStale||this.updateResult()},r)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#E(),this.#o=n,!(bu.isServer()||ma(this.options.enabled,this.#e)===!1||!ef(this.#o)||this.#o===0)&&(this.#f=rl.setInterval(()=>{(this.options.refetchIntervalInBackground||Tp.isFocused())&&this.#d()},this.#o))}#b(){this.#v(),this.#g(this.#p())}#S(){this.#c!==void 0&&(rl.clearTimeout(this.#c),this.#c=void 0)}#E(){this.#f!==void 0&&(rl.clearInterval(this.#f),this.#f=void 0)}createResult(n,i){const r=this.#e,o=this.options,c=this.#l,d=this.#n,h=this.#s,p=n!==r?n.state:this.#a,{state:m}=n;let b={...m},g=!1,T;if(i._optimisticResults){const C=this.hasListeners(),se=!C&&Ev(n,i),Te=C&&wv(n,r,i,o);(se||Te)&&(b={...b,...Up(m.data,n.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:A,errorUpdatedAt:H,status:G}=b;T=b.data;let Q=!1;if(i.placeholderData!==void 0&&T===void 0&&G==="pending"){let C;c?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(C=c.data,Q=!0):C=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,C!==void 0&&(G="success",T=lf(c?.data,C,i),g=!0)}if(i.select&&T!==void 0&&!Q)if(c&&T===d?.data&&i.select===this.#u)T=this.#h;else try{this.#u=i.select,T=i.select(T),T=lf(c?.data,T,i),this.#h=T,this.#r=null}catch(C){this.#r=C}this.#r&&(A=this.#r,T=this.#h,H=Date.now(),G="error");const J=b.fetchStatus==="fetching",F=G==="pending",W=G==="error",ge=F&&J,ye=T!==void 0,te={status:G,fetchStatus:b.fetchStatus,isPending:F,isSuccess:G==="success",isError:W,isInitialLoading:ge,isLoading:ge,data:T,dataUpdatedAt:b.dataUpdatedAt,error:A,errorUpdatedAt:H,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:n.isFetched(),isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:J,isRefetching:J&&!F,isLoadingError:W&&!ye,isPaused:b.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:W&&ye,isStale:xf(n,i),refetch:this.refetch,promise:this.#i,isEnabled:ma(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const C=te.data!==void 0,se=te.status==="error"&&!C,Te=He=>{se?He.reject(te.error):C&&He.resolve(te.data)},xe=()=>{const He=this.#i=te.promise=uf();Te(He)},pe=this.#i;switch(pe.status){case"pending":n.queryHash===r.queryHash&&Te(pe);break;case"fulfilled":(se||te.data!==pe.value)&&xe();break;case"rejected":(!se||te.error!==pe.reason)&&xe();break}}return te}updateResult(){const n=this.#l,i=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#s=this.options,this.#n.data!==void 0&&(this.#m=this.#e),af(i,n))return;this.#l=i;const r=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!this.#y.size)return!0;const d=new Set(c??this.#y);return this.options.throwOnError&&d.add("error"),Object.keys(this.#l).some(h=>{const y=h;return this.#l[y]!==n[y]&&d.has(y)})};this.#_({listeners:r()})}#w(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const i=this.#e;this.#e=n,this.#a=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(n){Nf.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qE(n,i){return ma(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function Ev(n,i){return qE(n,i)||n.state.data!==void 0&&sf(n,i,i.refetchOnMount)}function sf(n,i,r){if(ma(i.enabled,n)!==!1&&li(i.staleTime,n)!=="static"){const o=typeof r=="function"?r(n):r;return o==="always"||o!==!1&&xf(n,i)}return!1}function wv(n,i,r,o){return(n!==i||ma(o.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&xf(n,r)}function xf(n,i){return ma(i.enabled,n)!==!1&&n.isStaleByTime(li(i.staleTime,n))}function YE(n,i){return!af(n.getCurrentResult(),i)}var Np=D.createContext(void 0),GE=n=>{const i=D.useContext(Np);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},qw=({client:n,children:i})=>(D.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),Ta.jsx(Np.Provider,{value:n,children:i})),xp=D.createContext(!1),QE=()=>D.useContext(xp);xp.Provider;function VE(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var XE=D.createContext(VE()),ZE=()=>D.useContext(XE),kE=(n,i,r)=>{const o=r?.state.error&&typeof n.throwOnError=="function"?zp(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||o)&&(i.isReset()||(n.retryOnMount=!1))},KE=n=>{D.useEffect(()=>{n.clearReset()},[n])},JE=({result:n,errorResetBoundary:i,throwOnError:r,query:o,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&o&&(c&&n.data===void 0||zp(r,[n.error,o])),FE=n=>{if(n.suspense){const r=c=>c==="static"?c:Math.max(c??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...c)=>r(o(...c)):r(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},WE=(n,i)=>n.isLoading&&n.isFetching&&!i,$E=(n,i)=>n?.suspense&&i.isPending,_v=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function PE(n,i,r){const o=QE(),c=ZE(),d=GE(),h=d.defaultQueryOptions(n);d.getDefaultOptions().queries?._experimental_beforeQuery?.(h);const y=d.getQueryCache().get(h.queryHash);h._optimisticResults=o?"isRestoring":"optimistic",FE(h),kE(h,c,y),KE(c);const p=!d.getQueryCache().get(h.queryHash),[m]=D.useState(()=>new i(d,h)),b=m.getOptimisticResult(h),g=!o&&n.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(T=>{const A=g?m.subscribe(Nf.batchCalls(T)):gu;return m.updateResult(),A},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),D.useEffect(()=>{m.setOptions(h)},[h,m]),$E(h,b))throw _v(h,m,c);if(JE({result:b,errorResetBoundary:c,throwOnError:h.throwOnError,query:y,suspense:h.suspense}))throw b.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(h,b),h.experimental_prefetchInRender&&!bu.isServer()&&WE(b,o)&&(p?_v(h,m,c):y?.promise)?.catch(gu).finally(()=>{m.updateResult()}),h.notifyOnChangeProps?b:m.trackResult(b)}function Lp(n,i){return PE(n,jE)}const os="access",IE=/^[A-Za-z0-9_-]{32,128}$/,cs={all:["web-access"],status:()=>[...cs.all,"status"],session:()=>[...cs.all,"session"]};function Hp(n){const i=n.klient.rest;if(i===void 0)throw new Error("Web access needs an HTTP connection to the server.");return i.webAccess}function Yw(n){return Lp({queryKey:cs.status(),queryFn:async()=>{if(n===null)throw new Error("The local control connection is not ready.");return Hp(n).status()},enabled:n!==null,refetchInterval:6e3,staleTime:3e3})}function Gw(n){return Lp({queryKey:cs.session(),queryFn:async()=>{if(n===null)throw new Error("The browser connection is not ready.");return Hp(n).current()},enabled:n!==null,refetchInterval:15e3,staleTime:1e4,retry:!1})}function ew(n){if(!n.startsWith("#"))return null;const i=n.slice(1);for(const r of i.split("&")){const o=r.indexOf("=");if(o<0||r.slice(0,o)!==os)continue;let d=r.slice(o+1);try{d=decodeURIComponent(d)}catch{}return IE.test(d)?d:null}return null}function tw(n){const r=(n.hash.startsWith("#")?n.hash.slice(1):n.hash).split("&"),o=r.filter(d=>!d.startsWith(`${os}=`)),c=o.length===r.length?n.hash:o.length===0||o.length===1&&o[0]===""?"":`#${o.join("&")}`;return`${n.pathname}${n.search}${c}`}function aw(n){const i=n.hash.startsWith("#")?n.hash:n.hash===""?"":`#${n.hash}`;return nw(i)!==null}function nw(n){return n===""||n==="#"?null:(n.startsWith("#")?n.slice(1):n).split("&").some(r=>r.startsWith(`${os}=`))?os:null}function lw(n,i=window.history){const r=new URLSearchParams(n.search),o=r.has("server")||r.has("url");if(!aw(n))return{kind:"none"};const c=ew(n.hash),d=tw(n);try{i.replaceState(i.state??null,"",d)}catch{}return o?{kind:"rejected"}:c===null?{kind:"none"}:{kind:"code",code:c}}async function Qw(n){if(typeof window>"u")return n(!1);try{const i=await fetch("/api/web-access/session",{method:"GET",credentials:"same-origin",headers:{accept:"application/json"}});if(!i.ok)return n(!1);const r=await i.json();n(r.data?.authenticated===!0);return}catch{n(!1)}}let Lf={kind:"none"};function Vw(){return Lf}function Gc(n){Lf=n}function Xw(){Lf={kind:"none"}}function Zw(n){return n==="retargeted"?"retargeted":"refused"}function kw(n){return n.host===null?null:n.port===null?n.host:`${n.host}:${n.port}`}const Kw={host:"",port:"",publicUrl:"",insecureNoTls:!1};function Jw(n){return{host:n.host??"",port:n.port===null?"":String(n.port),publicUrl:"",insecureNoTls:n.insecure}}const iw=/^[A-Za-z0-9._:-]{1,255}$/;function of(n){const i=n.trim().toLowerCase();return i==="localhost"||i==="::1"||i==="[::1]"||/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(i)}function Fw(n){const i=n.host.trim();if(i!==""&&!iw.test(i))return"st.web.address.hostInvalid";const r=n.port.trim();if(r!==""){if(!/^\d{1,5}$/.test(r))return"st.web.address.portInvalid";const c=Number(r);if(c<1||c>65535)return"st.web.address.portInvalid"}const o=n.publicUrl.trim();if(o!==""){let c;try{c=new URL(o)}catch{return"st.web.address.publicUrlInvalid"}if(!["http:","https:"].includes(c.protocol)||c.username!==""||c.password!==""||c.pathname!=="/"&&c.pathname!==""||c.search!==""||c.hash!=="")return"st.web.address.publicUrlInvalid"}return i!==""&&!of(i)&&!(o!==""&&o.toLowerCase().startsWith("https://"))&&!n.insecureNoTls||o!==""&&o.toLowerCase().startsWith("http://")&&!of(new URL(o).hostname)&&!n.insecureNoTls?"st.web.address.needsTls":null}function Ww(n,i){const r=i.host.trim(),o=i.port.trim(),c=i.publicUrl.trim();return{mode:n,...r===""?{}:{host:r},...o===""?{}:{port:Number(o)},...c===""?{}:{publicUrl:c},...i.insecureNoTls?{insecureNoTls:!0}:{}}}function $w(n){const i=n.host.trim();return i!==""&&!of(i)}async function uw(){const{KikiClient:n}=await Ut(async()=>{const{KikiClient:r}=await import("./client-DSIbyfoz.js").then(o=>o.q);return{KikiClient:r}},__vite__mapDeps([0,1,2])),i=lw(window.location);if(i.kind!=="code"){i.kind==="rejected"&&Gc({kind:"failed",reason:"retargeted"});return}try{const r=new n({baseUrl:"",token:""});try{const o=await r.klient.rest.webAccess.exchange({code:i.code});Gc(o.authenticated?{kind:"signed-in"}:{kind:"failed",reason:"rejected"})}finally{r.klient.close()}}catch(r){Gc({kind:"failed",reason:r instanceof Error?r.message:String(r)})}}async function rw(){await uw(),await nE(ai);const n=await ai.takeNavigationIntent?.().catch(()=>null),i=n!=null&&"connectionId"in n&&wE(n.connectionId),r=pE();r!==null&&r.homeId===r.scopeId&&/^remote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(r.scopeId)&&as({homeId:r.scopeId});const o=rs()?.homeId??"main",c=bE(o),d=performance.getEntriesByType("navigation")[0]?.type==="reload";SE(c,d);const h=i||n!=null&&"route"in n&&EE(n,o),y=new URLSearchParams(window.location.search).has("server")||new URLSearchParams(window.location.search).has("url");!c&&!h&&!y&&rE(ai);const[{App:p},{AppErrorBoundary:m},{I18nProvider:b},{ConnectionProvider:g},{startThemeSync:T},{startSkinSync:A},{NavScopeBoundary:H}]=await Promise.all([Ut(()=>import("./mermaid-GHXKKRXX-_JLagMll.js").then(J=>J.ae),__vite__mapDeps([3,4,5,2,1,0,6,7,8,9])),Ut(()=>import("./AppErrorBoundary-DWpgwxFV.js"),__vite__mapDeps([10,5,2])),Ut(()=>import("./index-BfmoxdpP.js").then(J=>J.i),__vite__mapDeps([5,2])),Ut(()=>import("./connection-DYZn9oPZ.js").then(J=>J.f),__vite__mapDeps([4,5,2,1,0])),Ut(()=>import("./theme-DlDhDxeD.js"),__vite__mapDeps([9,1,2])),Ut(()=>import("./index-D7dg8R_q.js"),__vite__mapDeps([11,7,1,2,8,9])),Ut(()=>import("./NavScopeBoundary-D8Lf1G0U.js"),__vite__mapDeps([12,6,2,5,4,1,0,8]))]);T(ai),A();let G;function Q(){return G??=v1([{path:"*",element:Ta.jsx(m,{children:Ta.jsx(H,{children:Ta.jsx(p,{})})})}]),Ta.jsx(z1,{router:G})}nb.createRoot(document.querySelector("#root")).render(Ta.jsx(D.StrictMode,{children:Ta.jsx($1,{children:Ta.jsx(b,{children:Ta.jsx(g,{children:Ta.jsx(Q,{})})})})}))}rw();export{pE as $,k0 as A,Tf as B,yw as C,sl as D,CE as E,Hw as F,Lw as G,Bw as H,BE as I,HE as J,Nf as K,Cf as L,xw as M,gu as N,AE as O,Nw as P,jw as Q,M1 as R,ou as S,Tp as T,Mp as U,li as V,Uw as W,tf as X,Uf as Y,Ap as Z,vp as _,rs as a,Vw as a0,Zw as a1,Qw as a2,qw as a3,K1 as a4,Xw as a5,Ut as a6,jE as a7,af as a8,Dp as a9,rp as aA,U1 as aB,Yw as aC,Kw as aD,Jw as aE,Gw as aF,Hp as aG,kw as aH,Fw as aI,$w as aJ,cs as aK,Ww as aL,vE as aM,Ow as aN,gw as aO,uE as aP,hw as aQ,XS as aR,lE as aS,GE as aa,QE as ab,ZE as ac,FE as ad,kE as ae,KE as af,$E as ag,_v as ah,JE as ai,zp as aj,PE as ak,Yc as al,A1 as am,Np as an,bw as ao,Sw as ap,hE as aq,ww as ar,mw as as,mp as at,lp as au,cw as av,ow as aw,dw as ax,fw as ay,ri as az,Cw as b,vw as c,ga as d,gf as e,sw as f,Dw as g,Pc as h,q as i,Ta as j,fE as k,dE as l,_w as m,ui as n,Rw as o,zw as p,Ew as q,D as r,gE as s,Mw as t,Lp as u,_p as v,Aw as w,pw as x,Tw as y,yE as z};