decocms 3.98.0 → 3.99.1

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 (213) hide show
  1. package/dist/client/assets/{AlertCircle-kcMUHNYP.js → AlertCircle-VcwplCRi.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-KPaHD_ZU.js → ArrowUpRight-CAv7CUnJ.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-Do934x7B.js → CheckCircle-V30FMM2D.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-DJ5SHmhN.js → ChevronDown-URo4LveF.js} +1 -1
  5. package/dist/client/assets/{ChevronLeft-QZNH5ck-.js → ChevronLeft-aMkPes9N.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-BXEszS6k.js → ChevronRight-oz8o6WPV.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-CUesWqmK.js → ChevronUp-HJUE3-BD.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-F-o-_a2z.js → DotsVertical-QF46dzdi.js} +1 -1
  9. package/dist/client/assets/{Eye-FmUDnTHn.js → Eye-BSiFxHQB.js} +1 -1
  10. package/dist/client/assets/{FilterLines-eS3dI9hB.js → FilterLines-CEzORaPw.js} +1 -1
  11. package/dist/client/assets/{Globe01-Ckwe4UHh.js → Globe01-wGomueqV.js} +1 -1
  12. package/dist/client/assets/{Globe04-iXhOnFjr.js → Globe04-CsKOsQ4z.js} +1 -1
  13. package/dist/client/assets/{HardDrive-CNIST2bR.js → HardDrive-BuI4Q48l.js} +1 -1
  14. package/dist/client/assets/{Key01-wlyPB5nN.js → Key01-r6MDYdDw.js} +1 -1
  15. package/dist/client/assets/{LayoutLeft-C_wbh4sE.js → LayoutLeft-BFxGsVdk.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-BoVxtqR2.js → LinkExternal01-BWnRnxGs.js} +1 -1
  17. package/dist/client/assets/{Monitor01-DNvJhnf-.js → Monitor01-SEZLDRFN.js} +1 -1
  18. package/dist/client/assets/{Palette-Bf6p_3g1.js → Palette-CEjENuG4.js} +1 -1
  19. package/dist/client/assets/{Play-D6BtU9Uh.js → Play-BDoh8EAp.js} +1 -1
  20. package/dist/client/assets/{Plus-8zBKSNee.js → Plus-Bw9lc6SR.js} +1 -1
  21. package/dist/client/assets/{SearchMd-57vTBUjU.js → SearchMd-BMfw7gZ4.js} +1 -1
  22. package/dist/client/assets/{Settings02-k7X7M16V.js → Settings02-DbH9OAzT.js} +1 -1
  23. package/dist/client/assets/{Shield01-6X9Jy9--.js → Shield01-C1R4fpvK.js} +1 -1
  24. package/dist/client/assets/{Star01-BUumId75.js → Star01-BwAv907s.js} +1 -1
  25. package/dist/client/assets/{Stars01-BvvUaY8d.js → Stars01-D1icdaCh.js} +1 -1
  26. package/dist/client/assets/{Stars02-f3tbtjbB.js → Stars02-PPXsboxW.js} +1 -1
  27. package/dist/client/assets/{Sun-42Xfv_Dc.js → Sun-Dw86eVev.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-BeteqXsq.js → SwitchHorizontal01-F_1MjTR3.js} +1 -1
  29. package/dist/client/assets/{Tool01-DKUGTxge.js → Tool01-DvTGD1Yt.js} +1 -1
  30. package/dist/client/assets/{Trash01-DDwxWuR_.js → Trash01-d58N8w5a.js} +1 -1
  31. package/dist/client/assets/{Upload01-CvwE1uG-.js → Upload01-C_hHbDSF.js} +1 -1
  32. package/dist/client/assets/{User01-KLLrp_Cb.js → User01-BDtU1dk1.js} +1 -1
  33. package/dist/client/assets/{Users01-BoxxsDP9.js → Users01-PX3eYoC8.js} +1 -1
  34. package/dist/client/assets/{Users03-Cnldjgk9.js → Users03-CL71IAQ8.js} +1 -1
  35. package/dist/client/assets/{X-D5odjFOj.js → X-D7X7Z50V.js} +1 -1
  36. package/dist/client/assets/{XCircle-CkFuQ7IG.js → XCircle-PlbEvjyp.js} +1 -1
  37. package/dist/client/assets/{XClose-CQQFXdbB.js → XClose-BbuWQhNb.js} +1 -1
  38. package/dist/client/assets/{Zap-D2QyQXL2.js → Zap-BQKeuD4l.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-DWfiiAgK.js → ZapSquare-CvkoTQDM.js} +1 -1
  40. package/dist/client/assets/{ZoomOut-CGeRz2Xe.js → ZoomOut-DxqRFWA_.js} +1 -1
  41. package/dist/client/assets/{access-gate-B1FO8IUq.js → access-gate-6AWas-Ss.js} +1 -1
  42. package/dist/client/assets/{add-section-modal-C4vE7N12.js → add-section-modal-jgpkoBcW.js} +1 -1
  43. package/dist/client/assets/{agent-icon-AqXPfJak.js → agent-icon-B2N3zGQH.js} +1 -1
  44. package/dist/client/assets/{agents-list-D_wYa6fb.js → agents-list-Cd9i8250.js} +1 -1
  45. package/dist/client/assets/{ai-providers-T-u5bvaJ.js → ai-providers-CG207wTX.js} +1 -1
  46. package/dist/client/assets/{alert-BbYDxfTx.js → alert-Cg3WXwSx.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-C-zjIGep.js → alert-dialog-DvWgcmQI.js} +1 -1
  48. package/dist/client/assets/{app-editor-B1BV7cVP.js → app-editor-tLSi5KV_.js} +1 -1
  49. package/dist/client/assets/{auth-DhQO5_HB.js → auth-DZDiXt1m.js} +1 -1
  50. package/dist/client/assets/{auth-catchall-Di4BNeJO.js → auth-catchall-kuEh1_rd.js} +1 -1
  51. package/dist/client/assets/{auth-entry-_k3gk7s2.js → auth-entry-CavsOUDq.js} +1 -1
  52. package/dist/client/assets/{auth-split-layout-bCFbyvYe.js → auth-split-layout-dFpcxyJe.js} +1 -1
  53. package/dist/client/assets/{authenticate-and-persist-oauth-DBMlTO0L.js → authenticate-and-persist-oauth-CGYbK6H8.js} +1 -1
  54. package/dist/client/assets/{automation-list-row-Bs5UJwPA.js → automation-list-row-CAUoBpVq.js} +1 -1
  55. package/dist/client/assets/{automation-runs-BZimcr-h.js → automation-runs-DyKvgj21.js} +1 -1
  56. package/dist/client/assets/{automations-X1kqWMvM.js → automations-wXAz-GXj.js} +1 -1
  57. package/dist/client/assets/{avatar-BVLQzOkg.js → avatar-Dv3IrttI.js} +1 -1
  58. package/dist/client/assets/{badge-DySIiC0W.js → badge-toKsUzoB.js} +1 -1
  59. package/dist/client/assets/{block-document-DAnpzS1z.js → block-document-DRbnuwCo.js} +1 -1
  60. package/dist/client/assets/{brand-context-Dw4JnvNB.js → brand-context-BaVxi4M4.js} +1 -1
  61. package/dist/client/assets/{buckets-B3emByFY.js → buckets-BKwGKvkZ.js} +1 -1
  62. package/dist/client/assets/{capability-load-error-dMfRi5Lm.js → capability-load-error-BRyHg_Rt.js} +1 -1
  63. package/dist/client/assets/{card-Dcgr1F8G.js → card-Chq65iX4.js} +1 -1
  64. package/dist/client/assets/{category-editor-DxkVuATo.js → category-editor-LeiO5-YX.js} +1 -1
  65. package/dist/client/assets/{chat-context-Bw2XBdCM.js → chat-context-Bspy4m-d.js} +1 -1
  66. package/dist/client/assets/{checkbox-DtAK_uVJ.js → checkbox-KUrNOBQk.js} +1 -1
  67. package/dist/client/assets/{cli-auth-success-C1VkvMBP.js → cli-auth-success-B36KwAFt.js} +1 -1
  68. package/dist/client/assets/{collection-detail-CwmHQu2v.js → collection-detail-CbhoYXmP.js} +1 -1
  69. package/dist/client/assets/{collection-display-button-CwlHCCWA.js → collection-display-button-DNbt3d2y.js} +1 -1
  70. package/dist/client/assets/{collection-search-ChsfwSm5.js → collection-search-BPoBI_I5.js} +1 -1
  71. package/dist/client/assets/{collection-tabs-BKP4OHUr.js → collection-tabs-FH3-RtUV.js} +1 -1
  72. package/dist/client/assets/{command-BxulIERM.js → command-DMsCjDdA.js} +1 -1
  73. package/dist/client/assets/{commerce-onboarding-Dg7vjIhZ.js → commerce-onboarding-Cv30K_3D.js} +1 -1
  74. package/dist/client/assets/{connect-desktop-dialog-CRTSitBm.js → connect-desktop-dialog-G37q3fkg.js} +1 -1
  75. package/dist/client/assets/{connection-card-DHEsTOvl.js → connection-card-BG_Nwlzj.js} +1 -1
  76. package/dist/client/assets/{connection-detail-Dug72TML.js → connection-detail-oU0C71F8.js} +1 -1
  77. package/dist/client/assets/{connection-form-helpers-DydZsosn.js → connection-form-helpers-DLOiycDJ.js} +1 -1
  78. package/dist/client/assets/{connections-D1302Qtf.js → connections-BgFAjnb1.js} +1 -1
  79. package/dist/client/assets/{context-menu-CIuP6HS5.js → context-menu-BRDnNrnF.js} +1 -1
  80. package/dist/client/assets/{decopilot-CTSJKb4z.js → decopilot-DfFzELja.js} +1 -1
  81. package/dist/client/assets/{decopilot-sse-pool-BiYcCf8O.js → decopilot-sse-pool-TIer_srZ.js} +1 -1
  82. package/dist/client/assets/{dialog-CbpDnZu8.js → dialog-CxQBoX40.js} +1 -1
  83. package/dist/client/assets/{domain-settings-CoN7-60k.js → domain-settings-gFWo85oP.js} +1 -1
  84. package/dist/client/assets/{drawer-UU4w29Dz.js → drawer-CoRZTii0.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-QpPxe1tm.js → dropdown-menu-5CWPgj7f.js} +1 -1
  86. package/dist/client/assets/{empty-state-Do7xKqQm.js → empty-state-B-ezQrZT.js} +1 -1
  87. package/dist/client/assets/{extract-connection-data-DVGeC9AU.js → extract-connection-data-BaXkJtVr.js} +1 -1
  88. package/dist/client/assets/{file-explorer-D2afeXPb.js → file-explorer-CwlDpz6e.js} +1 -1
  89. package/dist/client/assets/{file-type-icon-Cs_SK9tU.js → file-type-icon-Cd8oKt-R.js} +1 -1
  90. package/dist/client/assets/{files-5aenLfPW.js → files-CkNnfKPK.js} +1 -1
  91. package/dist/client/assets/{form-HH5S6Yti.js → form-CpFt_4sy.js} +1 -1
  92. package/dist/client/assets/{general-BnR0HO7J.js → general-9kWrBaDN.js} +1 -1
  93. package/dist/client/assets/{github-repo-picker-DvVBXFrQ.js → github-repo-picker-CvyWRbaM.js} +1 -1
  94. package/dist/client/assets/{hooks-fHAHvlgy.js → hooks-BAG9TZjZ.js} +1 -1
  95. package/dist/client/assets/{import-from-deco-dialog-gGGcEtn9.js → import-from-deco-dialog-ga5lUGZx.js} +1 -1
  96. package/dist/client/assets/{index--YoOFH0C.js → index-ALZP0-mx.js} +1 -1
  97. package/dist/client/assets/{index-BMiO2DRK.js → index-BAfXUZ9K.js} +1 -1
  98. package/dist/client/assets/{index-Dm5Wtwak.js → index-BLMNER8l.js} +1 -1
  99. package/dist/client/assets/{index-1K74hihp.js → index-BU8Nad-n.js} +1 -1
  100. package/dist/client/assets/{index-GSJQ2HSb.js → index-BeB2S664.js} +1 -1
  101. package/dist/client/assets/{index-BlCwbTgh.js → index-BwC0cAdP.js} +1 -1
  102. package/dist/client/assets/{index-Cnw7T0fh.js → index-C_Ih0jtP.js} +1 -1
  103. package/dist/client/assets/{index-DEuymgXg.js → index-CiVkOVzW.js} +26 -26
  104. package/dist/client/assets/{index-DUxlPTha.js → index-DPI_0XE-.js} +1 -1
  105. package/dist/client/assets/{index-CJHqjy38.js → index-DS2I5JM3.js} +1 -1
  106. package/dist/client/assets/{index-CutM526i.js → index-DUdLsOJu.js} +1 -1
  107. package/dist/client/assets/{index-uyO8STkD.js → index-DZCgQXLz.js} +1 -1
  108. package/dist/client/assets/{index-DVyj5fuq.js → index-I8Uum3Jx.js} +4 -4
  109. package/dist/client/assets/{index-Cr1XkGY8.js → index-JhgoGL0k.js} +1 -1
  110. package/dist/client/assets/{index-redirect-B3cwEJb7.js → index-redirect-CP9ATXDl.js} +1 -1
  111. package/dist/client/assets/{input-GyW6rRcJ.js → input-CutcETvq.js} +1 -1
  112. package/dist/client/assets/{integration-icon-BtlW6ioP.js → integration-icon-D3W1euXX.js} +1 -1
  113. package/dist/client/assets/{label-DZS4CYvt.js → label-DtGUWURu.js} +1 -1
  114. package/dist/client/assets/{login-8FZgzert.js → login-DUTSfri0.js} +1 -1
  115. package/dist/client/assets/{mcp-oauth-BKEDlyVy.js → mcp-oauth-CSZ5TVrK.js} +1 -1
  116. package/dist/client/assets/{members-BJYRHZsS.js → members-Dq59tJj1.js} +1 -1
  117. package/dist/client/assets/{monaco-editor-CGqqNDfH.js → monaco-editor-x5JEAvo5.js} +1 -1
  118. package/dist/client/assets/{monitoring-stats-row-D3Ly6cXH.js → monitoring-stats-row-BsPY2-bU.js} +1 -1
  119. package/dist/client/assets/{oauth-callback-Dwd806qn.js → oauth-callback-BXF1WEWL.js} +1 -1
  120. package/dist/client/assets/{oauth-callback-ai-provider-CC85HfxS.js → oauth-callback-ai-provider-MpQ7zAqW.js} +1 -1
  121. package/dist/client/assets/{onboarding-D0JBHrcc.js → onboarding-CKZFzjtY.js} +1 -1
  122. package/dist/client/assets/{org-install-DQyhSRpe.js → org-install-DVysq6Hz.js} +1 -1
  123. package/dist/client/assets/{org-layout-Cr-WH3RD.js → org-layout-hE5dYTZz.js} +1 -1
  124. package/dist/client/assets/{organization-choice-CoeFbp4N.js → organization-choice-y8WYOYM0.js} +1 -1
  125. package/dist/client/assets/{page-seo-form-B7y574iK.js → page-seo-form-gPXTm6pw.js} +1 -1
  126. package/dist/client/assets/page-seo-sheet-CpMq28JR.js +1 -0
  127. package/dist/client/assets/{popover-DCt-yH34.js → popover-C8AJAJSa.js} +1 -1
  128. package/dist/client/assets/{post-editor-BZKlC439.js → post-editor-DrZmKifS.js} +1 -1
  129. package/dist/client/assets/{preview-dialog-CvZ5HrrM.js → preview-dialog-D1-LAakL.js} +1 -1
  130. package/dist/client/assets/{primitives-DU5cdK_v.js → primitives-D7qGIw1V.js} +1 -1
  131. package/dist/client/assets/{profile-VCalx_au.js → profile-DwtHhCaD.js} +1 -1
  132. package/dist/client/assets/project-app-view-H9YA_3uu.js +1 -0
  133. package/dist/client/assets/record-editor-C64a4aNL.js +1 -0
  134. package/dist/client/assets/registry-CxYUBbU6.js +2 -0
  135. package/dist/client/assets/{registry-layout-UOOnsAxo.js → registry-layout-CZALtE-Q.js} +1 -1
  136. package/dist/client/assets/{require-capability-B3soU3U-.js → require-capability-DAovjPYR.js} +1 -1
  137. package/dist/client/assets/{required-auth-layout-DJ9sUOZj.js → required-auth-layout-BFGUeccA.js} +1 -1
  138. package/dist/client/assets/{reset-password-Cbn69hRw.js → reset-password-CrnrgmIx.js} +1 -1
  139. package/dist/client/assets/{roles-BUk_bsvO.js → roles-DRg1cyfq.js} +1 -1
  140. package/dist/client/assets/{save-status-CV3d48oi.js → save-status-BmnvufMt.js} +1 -1
  141. package/dist/client/assets/{scroll-area-BOzFl7qs.js → scroll-area-DnauLcxE.js} +1 -1
  142. package/dist/client/assets/{search-input-Bkwrx7tI.js → search-input-BVF4N9EW.js} +1 -1
  143. package/dist/client/assets/{secrets-BaUhAjXu.js → secrets-DPqx_gXC.js} +1 -1
  144. package/dist/client/assets/{sections-editor-B1yHaLKY.js → sections-editor-BLU0buUC.js} +1 -1
  145. package/dist/client/assets/{select-C3uZV2A_.js → select-CeO9pIG_.js} +1 -1
  146. package/dist/client/assets/{select-model-Q-rnyaMQ.js → select-model-mprfSN1i.js} +1 -1
  147. package/dist/client/assets/{seo-editor-tIrWl6nj.js → seo-editor-Dyh0ncgL.js} +1 -1
  148. package/dist/client/assets/{settings-layout-DTBcjBLr.js → settings-layout-BcPbOkgS.js} +1 -1
  149. package/dist/client/assets/{settings-section-BLfkvtRw.js → settings-section-B3kXnqLg.js} +1 -1
  150. package/dist/client/assets/{sheet-n3UWOPEl.js → sheet-CaSXRGPU.js} +1 -1
  151. package/dist/client/assets/{shell-controls-DhJC4c0p.js → shell-controls-D2Qn9uVj.js} +1 -1
  152. package/dist/client/assets/{shell-layout-xNLL_s4g.js → shell-layout-BgovnITR.js} +1 -1
  153. package/dist/client/assets/{shell-route-loading-Cpya0EwH.js → shell-route-loading-w2qYEgt-.js} +1 -1
  154. package/dist/client/assets/{sidebar-B5rVQTnV.js → sidebar-BNKGZwsk.js} +1 -1
  155. package/dist/client/assets/{skeleton-D20LVfuJ.js → skeleton-1BUBAFib.js} +1 -1
  156. package/dist/client/assets/{sortable.esm-bhnYhglv.js → sortable.esm-BQBGtGRV.js} +1 -1
  157. package/dist/client/assets/{sso-1G-Lrcz1.js → sso-B5RA5Egt.js} +1 -1
  158. package/dist/client/assets/{store-B2Ao3pPp.js → store-Ni3ANns9.js} +1 -1
  159. package/dist/client/assets/store-registry-kIHn_jDR.js +2 -0
  160. package/dist/client/assets/{studio-tools-BvOjHliA.js → studio-tools-bjPFQfXc.js} +1 -1
  161. package/dist/client/assets/{switch-aFiGEpQz.js → switch-B9PlH85E.js} +1 -1
  162. package/dist/client/assets/{table-DerXyAj5.js → table-Bh38Wtyx.js} +1 -1
  163. package/dist/client/assets/{tabs-C2oZPeQe.js → tabs-C0RM8s7M.js} +1 -1
  164. package/dist/client/assets/{task-status-D2kMSoyM.js → task-status-sw3Y4pwg.js} +1 -1
  165. package/dist/client/assets/{textarea-C8t5NRp5.js → textarea-CvR7iHW3.js} +1 -1
  166. package/dist/client/assets/{toggle-group-DJ8r0lkn.js → toggle-group-qpErv2AC.js} +1 -1
  167. package/dist/client/assets/{toolbar-CH6VbS3Q.js → toolbar-CB27CeHy.js} +1 -1
  168. package/dist/client/assets/{tooltip-3uKRhKGc.js → tooltip-Cs84Kx7a.js} +1 -1
  169. package/dist/client/assets/{types-pwajyff_.js → types-pQkRXbdZ.js} +1 -1
  170. package/dist/client/assets/{use-ai-providers-CWY8hivp.js → use-ai-providers-BgadC07_.js} +1 -1
  171. package/dist/client/assets/{use-automations-D3-t22-_.js → use-automations-P1MHR3DS.js} +1 -1
  172. package/dist/client/assets/{use-capability-BjlflkMO.js → use-capability-BUm2GwYJ.js} +1 -1
  173. package/dist/client/assets/{use-clock-tick-CzIilxCh.js → use-clock-tick-DNfOIVGO.js} +1 -1
  174. package/dist/client/assets/{use-collections-DCQeHkgD.js → use-collections-KLUYE1x1.js} +1 -1
  175. package/dist/client/assets/{use-connection-CzcC522C.js → use-connection-BcZ8SPdu.js} +1 -1
  176. package/dist/client/assets/{use-copy-DwazvcnZ.js → use-copy-3_Rhxcs5.js} +1 -1
  177. package/dist/client/assets/{use-create-virtual-mcp-Bd6NX9e2.js → use-create-virtual-mcp-BUg1GOjA.js} +1 -1
  178. package/dist/client/assets/{use-debounced-autosave-7QeHZ0an.js → use-debounced-autosave-CSkDAooO.js} +1 -1
  179. package/dist/client/assets/{use-delete-connection-BuL4NUvH.js → use-delete-connection-CRtYZbhZ.js} +1 -1
  180. package/dist/client/assets/{use-file-configs-CElizRPA.js → use-file-configs-YBpYKsXP.js} +1 -1
  181. package/dist/client/assets/{use-infinite-scroll-BXMBgtt1.js → use-infinite-scroll-BJoUj4tJ.js} +1 -1
  182. package/dist/client/assets/{use-join-requests-BNKnZPHN.js → use-join-requests-7lEKJyAD.js} +1 -1
  183. package/dist/client/assets/{use-mcp-client-fdcDDNuq.js → use-mcp-client-Bq9g8m5J.js} +1 -1
  184. package/dist/client/assets/{use-mcp-prompts-D-HAq_yv.js → use-mcp-prompts-B5FIxmOZ.js} +1 -1
  185. package/dist/client/assets/{use-mcp-tools-B6s0E39X.js → use-mcp-tools-LraQQ1bu.js} +1 -1
  186. package/dist/client/assets/{use-members-GGq7DYTP.js → use-members-D283HZiN.js} +1 -1
  187. package/dist/client/assets/{use-mobile-CvxOtGtu.js → use-mobile-C0mpADhR.js} +1 -1
  188. package/dist/client/assets/{use-navigate-to-agent-DwfR9Suw.js → use-navigate-to-agent-CRQ9sIAj.js} +1 -1
  189. package/dist/client/assets/{use-org-auth-client-DXTnBB9n.js → use-org-auth-client-WATciLg3.js} +1 -1
  190. package/dist/client/assets/{use-org-sso-B6LnDpoK.js → use-org-sso-HWNvOeDC.js} +1 -1
  191. package/dist/client/assets/{use-organization-roles-tYXE1Sad.js → use-organization-roles-Cyp5dthQ.js} +1 -1
  192. package/dist/client/assets/{use-organization-settings-BnxEz1nn.js → use-organization-settings-oh1iUWuA.js} +1 -1
  193. package/dist/client/assets/{use-registry-connections-B-i9Sftv.js → use-registry-connections-d6Abj3O4.js} +1 -1
  194. package/dist/client/assets/{use-secrets-DS1SrxPb.js → use-secrets-CkVHtz_G.js} +1 -1
  195. package/dist/client/assets/{use-status-sounds-9_fdEsNO.js → use-status-sounds-MBoAiBsc.js} +1 -1
  196. package/dist/client/assets/{use-view-mode-DFO97l4B.js → use-view-mode-Dhn_wt1k.js} +1 -1
  197. package/dist/client/assets/{use-virtual-mcp-ufrd8iJJ.js → use-virtual-mcp-C5aoCVVQ.js} +1 -1
  198. package/dist/client/assets/useInfiniteQuery-RfoATJAI.js +1 -0
  199. package/dist/client/assets/useSuspenseInfiniteQuery-DBiSYggu.js +1 -0
  200. package/dist/client/assets/{useSuspenseQueries-CKrSo39Z.js → useSuspenseQueries-C6KWJru5.js} +1 -1
  201. package/dist/client/assets/{variant-calendar-DotXoiJr.js → variant-calendar-krPIZ_Rp.js} +1 -1
  202. package/dist/client/assets/{view-mode-toggle-C9lZfxMp.js → view-mode-toggle-DTMt6lCZ.js} +1 -1
  203. package/dist/client/index.html +1 -1
  204. package/dist/server/cli.js +361 -361
  205. package/dist/server/server.js +255 -255
  206. package/package.json +1 -1
  207. package/dist/client/assets/page-seo-sheet-C7aYjteJ.js +0 -1
  208. package/dist/client/assets/project-app-view-DY9V3RKN.js +0 -1
  209. package/dist/client/assets/record-editor-Iup_3GZW.js +0 -1
  210. package/dist/client/assets/registry-C1pjl2mg.js +0 -2
  211. package/dist/client/assets/store-registry-CnLvGy-0.js +0 -2
  212. package/dist/client/assets/useInfiniteQuery-D6zHLjhR.js +0 -1
  213. package/dist/client/assets/useSuspenseInfiniteQuery-BEAkaT6v.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-8FZgzert.js","assets/auth-entry-_k3gk7s2.js","assets/input-GyW6rRcJ.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-bCFbyvYe.js","assets/cli-auth-success-C1VkvMBP.js","assets/reset-password-Cbn69hRw.js","assets/oauth-callback-Dwd806qn.js","assets/mcp-oauth-BKEDlyVy.js","assets/auth-DhQO5_HB.js","assets/shell-layout-xNLL_s4g.js","assets/avatar-BVLQzOkg.js","assets/User01-KLLrp_Cb.js","assets/Users03-Cnldjgk9.js","assets/Stars02-f3tbtjbB.js","assets/XClose-CQQFXdbB.js","assets/CheckCircle-Do934x7B.js","assets/FilterLines-eS3dI9hB.js","assets/Zap-D2QyQXL2.js","assets/dialog-CbpDnZu8.js","assets/X-D5odjFOj.js","assets/required-auth-layout-DJ9sUOZj.js","assets/hooks-fHAHvlgy.js","assets/use-mcp-client-fdcDDNuq.js","assets/decopilot-sse-pool-BiYcCf8O.js","assets/tab-id-BptcWVWa.js","assets/use-organization-settings-BnxEz1nn.js","assets/studio-tools-BvOjHliA.js","assets/use-org-sso-B6LnDpoK.js","assets/onboarding-D0JBHrcc.js","assets/organization-choice-CoeFbp4N.js","assets/label-DZS4CYvt.js","assets/switch-aFiGEpQz.js","assets/Globe04-iXhOnFjr.js","assets/Palette-Bf6p_3g1.js","assets/Upload01-CvwE1uG-.js","assets/commerce-onboarding-Dg7vjIhZ.js","assets/XCircle-CkFuQ7IG.js","assets/integration-icon-BtlW6ioP.js","assets/agent-icon-AqXPfJak.js","assets/AlertCircle-kcMUHNYP.js","assets/Tool01-DKUGTxge.js","assets/SwitchHorizontal01-BeteqXsq.js","assets/Settings02-k7X7M16V.js","assets/ArrowUpRight-KPaHD_ZU.js","assets/ZapSquare-DWfiiAgK.js","assets/ChevronUp-CUesWqmK.js","assets/ChevronDown-DJ5SHmhN.js","assets/ChevronLeft-QZNH5ck-.js","assets/ChevronRight-BXEszS6k.js","assets/DotsVertical-F-o-_a2z.js","assets/Eye-FmUDnTHn.js","assets/ZoomOut-CGeRz2Xe.js","assets/Globe01-Ckwe4UHh.js","assets/Star01-BUumId75.js","assets/HardDrive-CNIST2bR.js","assets/Key01-wlyPB5nN.js","assets/LayoutLeft-C_wbh4sE.js","assets/LinkExternal01-BoVxtqR2.js","assets/Monitor01-DNvJhnf-.js","assets/Sun-42Xfv_Dc.js","assets/Play-D6BtU9Uh.js","assets/Plus-8zBKSNee.js","assets/SearchMd-57vTBUjU.js","assets/Shield01-6X9Jy9--.js","assets/Stars01-BvvUaY8d.js","assets/Trash01-DDwxWuR_.js","assets/Users01-BoxxsDP9.js","assets/tooltip-3uKRhKGc.js","assets/extract-connection-data-DVGeC9AU.js","assets/form-HH5S6Yti.js","assets/useSuspenseQueries-CKrSo39Z.js","assets/authenticate-and-persist-oauth-DBMlTO0L.js","assets/index-uyO8STkD.js","assets/sidebar-B5rVQTnV.js","assets/use-mobile-CvxOtGtu.js","assets/sheet-n3UWOPEl.js","assets/shell-controls-DhJC4c0p.js","assets/toolbar-CH6VbS3Q.js","assets/skeleton-D20LVfuJ.js","assets/popover-DCt-yH34.js","assets/drawer-UU4w29Dz.js","assets/use-virtual-mcp-ufrd8iJJ.js","assets/use-collections-DCQeHkgD.js","assets/use-create-virtual-mcp-Bd6NX9e2.js","assets/use-navigate-to-agent-DwfR9Suw.js","assets/import-from-deco-dialog-gGGcEtn9.js","assets/use-connection-CzcC522C.js","assets/github-repo-picker-DvVBXFrQ.js","assets/checkbox-DtAK_uVJ.js","assets/collection-search-ChsfwSm5.js","assets/use-mcp-tools-B6s0E39X.js","assets/sortable.esm-bhnYhglv.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-DHEsTOvl.js","assets/use-registry-connections-B-i9Sftv.js","assets/useInfiniteQuery-D6zHLjhR.js","assets/use-infinite-scroll-BXMBgtt1.js","assets/card-Dcgr1F8G.js","assets/collection-tabs-BKP4OHUr.js","assets/badge-DySIiC0W.js","assets/select-C3uZV2A_.js","assets/textarea-C8t5NRp5.js","assets/connection-form-helpers-DydZsosn.js","assets/useSuspenseInfiniteQuery-BEAkaT6v.js","assets/use-ai-providers-CWY8hivp.js","assets/connect-desktop-dialog-CRTSitBm.js","assets/chat-context-Bw2XBdCM.js","assets/alert-dialog-C-zjIGep.js","assets/index-GSJQ2HSb.js","assets/use-join-requests-BNKnZPHN.js","assets/use-capability-BjlflkMO.js","assets/command-BxulIERM.js","assets/index-Dm5Wtwak.js","assets/use-org-auth-client-DXTnBB9n.js","assets/context-menu-CIuP6HS5.js","assets/task-status-D2kMSoyM.js","assets/use-clock-tick-CzIilxCh.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/shell-route-loading-Cpya0EwH.js","assets/index-DEuymgXg.js","assets/index-Cnw7T0fh.js","assets/scroll-area-BOzFl7qs.js","assets/use-copy-DwazvcnZ.js","assets/file-type-icon-Cs_SK9tU.js","assets/content-blocks-o63cs2vh.js","assets/types-pwajyff_.js","assets/use-mcp-prompts-D-HAq_yv.js","assets/tabs-C2oZPeQe.js","assets/toggle-group-DJ8r0lkn.js","assets/decopilot-CTSJKb4z.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-BLfkvtRw.js","assets/dropdown-menu-QpPxe1tm.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-9_fdEsNO.js","assets/empty-state-Do7xKqQm.js","assets/preview-dialog-CvZ5HrrM.js","assets/index-DUxlPTha.js","assets/index-Cr1XkGY8.js","assets/use-debounced-autosave-7QeHZ0an.js","assets/index-1K74hihp.js","assets/search-input-Bkwrx7tI.js","assets/use-secrets-DS1SrxPb.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/view-mode-toggle-C9lZfxMp.js","assets/automation-runs-BZimcr-h.js","assets/table-DerXyAj5.js","assets/use-members-GGq7DYTP.js","assets/use-automations-D3-t22-_.js","assets/use-file-configs-CElizRPA.js","assets/monaco-editor-CGqqNDfH.js","assets/select-model-Q-rnyaMQ.js","assets/automation-list-row-Bs5UJwPA.js","assets/index-DDGTF8rc.css","assets/index-CJHqjy38.js","assets/index--YoOFH0C.js","assets/settings-layout-DTBcjBLr.js","assets/index-redirect-B3cwEJb7.js","assets/capability-load-error-dMfRi5Lm.js","assets/connections-D1302Qtf.js","assets/collection-display-button-CwlHCCWA.js","assets/use-delete-connection-BuL4NUvH.js","assets/use-view-mode-DFO97l4B.js","assets/connection-detail-Dug72TML.js","assets/index-BlCwbTgh.js","assets/index-CutM526i.js","assets/monitoring-stats-row-D3Ly6cXH.js","assets/collection-detail-CwmHQu2v.js","assets/alert-BbYDxfTx.js","assets/index-BMiO2DRK.js","assets/require-capability-B3soU3U-.js","assets/access-gate-B1FO8IUq.js","assets/general-BnR0HO7J.js","assets/domain-settings-CoN7-60k.js","assets/brand-context-Dw4JnvNB.js","assets/ai-providers-T-u5bvaJ.js","assets/secrets-BaUhAjXu.js","assets/buckets-B3emByFY.js","assets/members-BJYRHZsS.js","assets/use-organization-roles-tYXE1Sad.js","assets/roles-BUk_bsvO.js","assets/sso-1G-Lrcz1.js","assets/profile-VCalx_au.js","assets/store-B2Ao3pPp.js","assets/registry-C1pjl2mg.js","assets/store-registry-CnLvGy-0.js","assets/agents-list-D_wYa6fb.js","assets/automations-X1kqWMvM.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-DUTSfri0.js","assets/auth-entry-CavsOUDq.js","assets/input-CutcETvq.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-dFpcxyJe.js","assets/cli-auth-success-B36KwAFt.js","assets/reset-password-CrnrgmIx.js","assets/oauth-callback-BXF1WEWL.js","assets/mcp-oauth-CSZ5TVrK.js","assets/auth-DZDiXt1m.js","assets/shell-layout-BgovnITR.js","assets/avatar-Dv3IrttI.js","assets/User01-BDtU1dk1.js","assets/Users03-CL71IAQ8.js","assets/Stars02-PPXsboxW.js","assets/XClose-BbuWQhNb.js","assets/CheckCircle-V30FMM2D.js","assets/FilterLines-CEzORaPw.js","assets/Zap-BQKeuD4l.js","assets/dialog-CxQBoX40.js","assets/X-D7X7Z50V.js","assets/required-auth-layout-BFGUeccA.js","assets/hooks-BAG9TZjZ.js","assets/use-mcp-client-Bq9g8m5J.js","assets/decopilot-sse-pool-TIer_srZ.js","assets/tab-id-BptcWVWa.js","assets/use-organization-settings-oh1iUWuA.js","assets/studio-tools-bjPFQfXc.js","assets/use-org-sso-HWNvOeDC.js","assets/onboarding-CKZFzjtY.js","assets/organization-choice-y8WYOYM0.js","assets/label-DtGUWURu.js","assets/switch-B9PlH85E.js","assets/Globe04-CsKOsQ4z.js","assets/Palette-CEjENuG4.js","assets/Upload01-C_hHbDSF.js","assets/commerce-onboarding-Cv30K_3D.js","assets/XCircle-PlbEvjyp.js","assets/integration-icon-D3W1euXX.js","assets/agent-icon-B2N3zGQH.js","assets/AlertCircle-VcwplCRi.js","assets/Tool01-DvTGD1Yt.js","assets/SwitchHorizontal01-F_1MjTR3.js","assets/Settings02-DbH9OAzT.js","assets/ArrowUpRight-CAv7CUnJ.js","assets/ZapSquare-CvkoTQDM.js","assets/ChevronUp-HJUE3-BD.js","assets/ChevronDown-URo4LveF.js","assets/ChevronLeft-aMkPes9N.js","assets/ChevronRight-oz8o6WPV.js","assets/DotsVertical-QF46dzdi.js","assets/Eye-BSiFxHQB.js","assets/ZoomOut-DxqRFWA_.js","assets/Globe01-wGomueqV.js","assets/Star01-BwAv907s.js","assets/HardDrive-BuI4Q48l.js","assets/Key01-r6MDYdDw.js","assets/LayoutLeft-BFxGsVdk.js","assets/LinkExternal01-BWnRnxGs.js","assets/Monitor01-SEZLDRFN.js","assets/Sun-Dw86eVev.js","assets/Play-BDoh8EAp.js","assets/Plus-Bw9lc6SR.js","assets/SearchMd-BMfw7gZ4.js","assets/Shield01-C1R4fpvK.js","assets/Stars01-D1icdaCh.js","assets/Trash01-d58N8w5a.js","assets/Users01-PX3eYoC8.js","assets/tooltip-Cs84Kx7a.js","assets/extract-connection-data-BaXkJtVr.js","assets/form-CpFt_4sy.js","assets/useSuspenseQueries-C6KWJru5.js","assets/authenticate-and-persist-oauth-CGYbK6H8.js","assets/index-DZCgQXLz.js","assets/sidebar-BNKGZwsk.js","assets/use-mobile-C0mpADhR.js","assets/sheet-CaSXRGPU.js","assets/shell-controls-D2Qn9uVj.js","assets/toolbar-CB27CeHy.js","assets/skeleton-1BUBAFib.js","assets/popover-C8AJAJSa.js","assets/drawer-CoRZTii0.js","assets/use-virtual-mcp-C5aoCVVQ.js","assets/use-collections-KLUYE1x1.js","assets/use-create-virtual-mcp-BUg1GOjA.js","assets/use-navigate-to-agent-CRQ9sIAj.js","assets/import-from-deco-dialog-ga5lUGZx.js","assets/use-connection-BcZ8SPdu.js","assets/github-repo-picker-CvyWRbaM.js","assets/checkbox-KUrNOBQk.js","assets/collection-search-BPoBI_I5.js","assets/use-mcp-tools-LraQQ1bu.js","assets/sortable.esm-BQBGtGRV.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-BG_Nwlzj.js","assets/use-registry-connections-d6Abj3O4.js","assets/useInfiniteQuery-RfoATJAI.js","assets/use-infinite-scroll-BJoUj4tJ.js","assets/card-Chq65iX4.js","assets/collection-tabs-FH3-RtUV.js","assets/badge-toKsUzoB.js","assets/select-CeO9pIG_.js","assets/textarea-CvR7iHW3.js","assets/connection-form-helpers-DLOiycDJ.js","assets/useSuspenseInfiniteQuery-DBiSYggu.js","assets/use-ai-providers-BgadC07_.js","assets/connect-desktop-dialog-G37q3fkg.js","assets/chat-context-Bspy4m-d.js","assets/alert-dialog-DvWgcmQI.js","assets/index-BeB2S664.js","assets/use-join-requests-7lEKJyAD.js","assets/use-capability-BUm2GwYJ.js","assets/command-DMsCjDdA.js","assets/index-BLMNER8l.js","assets/use-org-auth-client-WATciLg3.js","assets/context-menu-BRDnNrnF.js","assets/task-status-sw3Y4pwg.js","assets/use-clock-tick-DNfOIVGO.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/shell-route-loading-w2qYEgt-.js","assets/index-CiVkOVzW.js","assets/index-C_Ih0jtP.js","assets/scroll-area-DnauLcxE.js","assets/use-copy-3_Rhxcs5.js","assets/file-type-icon-Cd8oKt-R.js","assets/content-blocks-o63cs2vh.js","assets/types-pQkRXbdZ.js","assets/use-mcp-prompts-B5FIxmOZ.js","assets/tabs-C0RM8s7M.js","assets/toggle-group-qpErv2AC.js","assets/decopilot-DfFzELja.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-B3kXnqLg.js","assets/dropdown-menu-5CWPgj7f.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-MBoAiBsc.js","assets/empty-state-B-ezQrZT.js","assets/preview-dialog-D1-LAakL.js","assets/index-DPI_0XE-.js","assets/index-JhgoGL0k.js","assets/use-debounced-autosave-CSkDAooO.js","assets/index-BU8Nad-n.js","assets/search-input-BVF4N9EW.js","assets/use-secrets-CkVHtz_G.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/view-mode-toggle-DTMt6lCZ.js","assets/automation-runs-DyKvgj21.js","assets/table-Bh38Wtyx.js","assets/use-members-D283HZiN.js","assets/use-automations-P1MHR3DS.js","assets/use-file-configs-YBpYKsXP.js","assets/monaco-editor-x5JEAvo5.js","assets/select-model-mprfSN1i.js","assets/automation-list-row-CAUoBpVq.js","assets/index-DDGTF8rc.css","assets/index-DS2I5JM3.js","assets/index-ALZP0-mx.js","assets/settings-layout-BcPbOkgS.js","assets/index-redirect-CP9ATXDl.js","assets/capability-load-error-BRyHg_Rt.js","assets/connections-BgFAjnb1.js","assets/collection-display-button-DNbt3d2y.js","assets/use-delete-connection-CRtYZbhZ.js","assets/use-view-mode-Dhn_wt1k.js","assets/connection-detail-oU0C71F8.js","assets/index-BwC0cAdP.js","assets/index-DUdLsOJu.js","assets/monitoring-stats-row-BsPY2-bU.js","assets/collection-detail-CbhoYXmP.js","assets/alert-Cg3WXwSx.js","assets/index-BAfXUZ9K.js","assets/require-capability-DAovjPYR.js","assets/access-gate-6AWas-Ss.js","assets/general-9kWrBaDN.js","assets/domain-settings-gFWo85oP.js","assets/brand-context-BaVxi4M4.js","assets/ai-providers-CG207wTX.js","assets/secrets-DPqx_gXC.js","assets/buckets-BKwGKvkZ.js","assets/members-Dq59tJj1.js","assets/use-organization-roles-Cyp5dthQ.js","assets/roles-DRg1cyfq.js","assets/sso-B5RA5Egt.js","assets/profile-DwtHhCaD.js","assets/store-Ni3ANns9.js","assets/registry-CxYUBbU6.js","assets/store-registry-kIHn_jDR.js","assets/agents-list-Cd9i8250.js","assets/automations-wXAz-GXj.js"])))=>i.map(i=>d[i]);
2
2
  function xj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const Rj="modulepreload",Oj=function(e){return"/"+e},p2={},Rt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");o=l(n.map(f=>{if(f=Oj(f),f in p2)return;p2[f]=!0;const p=f.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":Rj,p||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),p)return new Promise((v,_)=>{g.addEventListener("load",v),g.addEventListener("error",()=>_(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var hce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ay={exports:{}},Wu={};var m2;function Tj(){if(m2)return Wu;m2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return Wu.Fragment=t,Wu.jsx=n,Wu.jsxs=n,Wu}var g2;function Cj(){return g2||(g2=1,Ay.exports=Tj()),Ay.exports}var C=Cj(),Iy={exports:{}},Qu={},My={exports:{}},Py={};var v2;function Aj(){return v2||(v2=1,(function(e){function t(H,W){var te=H.length;H.push(W);e:for(;0<te;){var le=te-1>>>1,Q=H[le];if(0<o(Q,W))H[le]=W,H[te]=Q,te=le;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var W=H[0],te=H.pop();if(te!==W){H[0]=te;e:for(var le=0,Q=H.length,k=Q>>>1;le<k;){var G=2*(le+1)-1,V=H[G],D=G+1,U=H[D];if(0>o(V,te))D<Q&&0>o(U,V)?(H[le]=U,H[D]=te,le=D):(H[le]=V,H[G]=te,le=G);else if(D<Q&&0>o(U,te))H[le]=U,H[D]=te,le=D;else break e}}return W}function o(H,W){var te=H.sortIndex-W.sortIndex;return te!==0?te:H.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,h=null,g=3,v=!1,_=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(H){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=H)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(H){if(b=!1,R(H),!_)if(n(d)!==null)_=!0,A||(A=!0,B());else{var W=n(f);W!==null&&ie(O,W.startTime-H)}}var A=!1,I=-1,P=5,L=-1;function q(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var H=e.unstable_now();L=H;var W=!0;try{e:{_=!1,b&&(b=!1,E(I),I=-1),v=!0;var te=g;try{t:{for(R(H),h=n(d);h!==null&&!(h.expirationTime>H&&q());){var le=h.callback;if(typeof le=="function"){h.callback=null,g=h.priorityLevel;var Q=le(h.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){h.callback=Q,R(H),W=!0;break t}h===n(d)&&r(d),R(H)}else r(d);h=n(d)}if(h!==null)W=!0;else{var k=n(f);k!==null&&ie(O,k.startTime-H),W=!1}}break e}finally{h=null,g=te,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof T=="function")B=function(){T(j)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Z=F.port2;F.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function ie(H,W){I=S(function(){H(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var te=g;g=W;try{return H()}finally{g=te}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(H,W){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=g;g=H;try{return W()}finally{g=te}},e.unstable_scheduleCallback=function(H,W,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,H={id:p++,callback:W,priorityLevel:H,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(H.sortIndex=te,t(f,H),n(d)===null&&H===n(f)&&(b?(E(I),I=-1):b=!0,ie(O,te-le))):(H.sortIndex=Q,t(d,H),_||v||(_=!0,A||(A=!0,B()))),H},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(H){var W=g;return function(){var te=g;g=W;try{return H.apply(this,arguments)}finally{g=te}}}})(Py)),Py}var y2;function Ij(){return y2||(y2=1,My.exports=Aj()),My.exports}var Ny={exports:{}},ot={};var _2;function Mj(){if(_2)return ot;_2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||_}S.prototype.isReactComponent={},S.prototype.setState=function(k,G){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,G,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function T(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||_}var R=T.prototype=new E;R.constructor=T,b(R,S.prototype),R.isPureReactComponent=!0;var O=Array.isArray;function A(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,G,V){var D=V.ref;return{$$typeof:e,type:k,key:G,ref:D!==void 0?D:null,props:V}}function q(k,G){return L(k.type,G,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var G={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return G[V]})}var F=/\/+/g;function Z(k,G){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):G.toString(36)}function ie(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(G){k.status==="pending"&&(k.status="fulfilled",k.value=G)},function(G){k.status==="pending"&&(k.status="rejected",k.reason=G)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function H(k,G,V,D,U){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case p:return fe=k._init,H(fe(k._payload),G,V,D,U)}}if(fe)return U=U(k),fe=D===""?"."+Z(k,0):D,O(U)?(V="",fe!=null&&(V=fe.replace(F,"$&/")+"/"),H(U,G,V,"",function(je){return je})):U!=null&&(j(U)&&(U=q(U,V+(U.key==null||k&&k.key===U.key?"":(""+U.key).replace(F,"$&/")+"/")+fe)),G.push(U)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=H(D,G,V,X,U);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=H(D,G,V,X,U);else if(X==="object"){if(typeof k.then=="function")return H(ie(k),G,V,D,U);throw G=String(k),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,G,V){if(k==null)return k;var D=[],U=0;return H(k,D,"","",function(X){return G.call(V,X,U++)}),D}function te(k){if(k._status===-1){var G=k._result;G=G(),G.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=G)}if(k._status===1)return k._result.default;throw k._result}var le=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,G,V){W(k,function(){G.apply(this,arguments)},V)},count:function(k){var G=0;return W(k,function(){G++}),G},toArray:function(k){return W(k,function(G){return G})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return ot.Activity=h,ot.Children=Q,ot.Component=S,ot.Fragment=n,ot.Profiler=o,ot.PureComponent=T,ot.StrictMode=r,ot.Suspense=d,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ot.__COMPILER_RUNTIME={__proto__:null,c:function(k){return I.H.useMemoCache(k)}},ot.cache=function(k){return function(){return k.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(k,G,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),U=k.key;if(G!=null)for(X in G.key!==void 0&&(U=""+G.key),G)!P.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(D[X]=G[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,U,D)},ot.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},ot.createElement=function(k,G,V){var D,U={},X=null;if(G!=null)for(D in G.key!==void 0&&(X=""+G.key),G)P.call(G,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(U[D]=G[D]);var fe=arguments.length-2;if(fe===1)U.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];U.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)U[D]===void 0&&(U[D]=fe[D]);return L(k,X,U)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(k){return{$$typeof:c,render:k}},ot.isValidElement=j,ot.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:te}},ot.memo=function(k,G){return{$$typeof:f,type:k,compare:G===void 0?null:G}},ot.startTransition=function(k){var G=I.T,V={};I.T=V;try{var D=k(),U=I.S;U!==null&&U(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,le)}catch(X){le(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),I.T=G}},ot.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ot.use=function(k){return I.H.use(k)},ot.useActionState=function(k,G,V){return I.H.useActionState(k,G,V)},ot.useCallback=function(k,G){return I.H.useCallback(k,G)},ot.useContext=function(k){return I.H.useContext(k)},ot.useDebugValue=function(){},ot.useDeferredValue=function(k,G){return I.H.useDeferredValue(k,G)},ot.useEffect=function(k,G){return I.H.useEffect(k,G)},ot.useEffectEvent=function(k){return I.H.useEffectEvent(k)},ot.useId=function(){return I.H.useId()},ot.useImperativeHandle=function(k,G,V){return I.H.useImperativeHandle(k,G,V)},ot.useInsertionEffect=function(k,G){return I.H.useInsertionEffect(k,G)},ot.useLayoutEffect=function(k,G){return I.H.useLayoutEffect(k,G)},ot.useMemo=function(k,G){return I.H.useMemo(k,G)},ot.useOptimistic=function(k,G){return I.H.useOptimistic(k,G)},ot.useReducer=function(k,G,V){return I.H.useReducer(k,G,V)},ot.useRef=function(k){return I.H.useRef(k)},ot.useState=function(k){return I.H.useState(k)},ot.useSyncExternalStore=function(k,G,V){return I.H.useSyncExternalStore(k,G,V)},ot.useTransition=function(){return I.H.useTransition()},ot.version="19.2.6",ot}var b2;function ma(){return b2||(b2=1,Ny.exports=Mj()),Ny.exports}var ky={exports:{}},Er={};var w2;function Pj(){if(w2)return Er;w2=1;var e=ma();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,f,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Er.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Er.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},Er.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},Er.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Er.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Er.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:v}):p==="script"&&r.d.X(d,{crossOrigin:h,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Er.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},Er.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Er.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},Er.requestFormReset=function(d){r.d.r(d)},Er.unstable_batchedUpdates=function(d,f){return d(f)},Er.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},Er.useFormStatus=function(){return l.H.useHostTransitionStatus()},Er.version="19.2.6",Er}var S2;function XM(){if(S2)return ky.exports;S2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ky.exports=Pj(),ky.exports}var E2;function Nj(){if(E2)return Qu;E2=1;var e=Ij(),t=ma(),n=XM();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,u=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(u=a.return),i=a.return;while(i)}return a.tag===3?u:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function c(i){if(i.tag===31){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function d(i){if(s(i)!==i)throw Error(r(188))}function f(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var u=i,m=a;;){var y=u.return;if(y===null)break;var w=y.alternate;if(w===null){if(m=y.return,m!==null){u=m;continue}break}if(y.child===w.child){for(w=y.child;w;){if(w===u)return d(y),i;if(w===m)return d(y),a;w=w.sibling}throw Error(r(188))}if(u.return!==m.return)u=y,m=w;else{for(var N=!1,z=y.child;z;){if(z===u){N=!0,u=y,m=w;break}if(z===m){N=!0,m=y,u=w;break}z=z.sibling}if(!N){for(z=w.child;z;){if(z===u){N=!0,u=w,m=y;break}if(z===m){N=!0,m=w,u=y;break}z=z.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:a}function p(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=p(i),a!==null)return a;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(i){return i===null||typeof i!="object"?null:(i=j&&i[j]||i["@@iterator"],typeof i=="function"?i:null)}var F=Symbol.for("react.client.reference");function Z(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===F?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case _:return"Portal";case T:return i.displayName||"Context";case E:return(i._context.displayName||"Context")+".Consumer";case R:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return a=i.displayName||null,a!==null?a:Z(i.type)||"Memo";case P:a=i._payload,i=i._init;try{return Z(i(a))}catch{}}return null}var ie=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function k(i){return{current:i}}function G(i){0>Q||(i.current=le[Q],le[Q]=null,Q--)}function V(i,a){Q++,le[Q]=i.current,i.current=a}var D=k(null),U=k(null),X=k(null),fe=k(null);function pe(i,a){switch(V(X,a),V(U,i),V(D,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?$O(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=$O(a),i=jO(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(D),V(D,i)}function xe(){G(D),G(U),G(X)}function je(i){i.memoizedState!==null&&V(fe,i);var a=D.current,u=jO(a,i.type);a!==u&&(V(U,i),V(D,u))}function Y(i){U.current===i&&(G(D),G(U)),fe.current===i&&(G(fe),Gu._currentValue=te)}var re,ve;function se(i){if(re===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);re=a&&a[1]||"",ve=-1<u.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+re+i+ve}var Se=!1;function Te(i,a){if(!i||Se)return"";Se=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(a){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(ge){var he=ge}Reflect.construct(i,[],Ee)}else{try{Ee.call()}catch(ge){he=ge}i.call(Ee.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Ee=i())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),N=w[0],z=w[1];if(N&&z){var J=N.split(`
@@ -7,7 +7,7 @@ function xj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
7
7
  `+J[m].replace(" at new "," at ");return i.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",i.displayName)),_e}while(1<=m&&0<=y);break}}}finally{Se=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?se(u):""}function tt(i,a){switch(i.tag){case 26:case 27:case 5:return se(i.type);case 16:return se("Lazy");case 13:return i.child!==a&&a!==null?se("Suspense Fallback"):se("Suspense");case 19:return se("SuspenseList");case 0:case 15:return Te(i.type,!1);case 11:return Te(i.type.render,!1);case 1:return Te(i.type,!0);case 31:return se("Activity");default:return""}}function rt(i){try{var a="",u=null;do a+=tt(i,u),u=i,i=i.return;while(i);return a}catch(m){return`
8
8
  Error generating stack: `+m.message+`
9
9
  `+m.stack}}var Be=Object.prototype.hasOwnProperty,Qe=e.unstable_scheduleCallback,Pe=e.unstable_cancelCallback,Me=e.unstable_shouldYield,Ue=e.unstable_requestPaint,K=e.unstable_now,ne=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,Re=e.unstable_UserBlockingPriority,Ae=e.unstable_NormalPriority,Ie=e.unstable_LowPriority,ke=e.unstable_IdlePriority,Je=e.log,et=e.unstable_setDisableYieldValue,vt=null,Tt=null;function yt(i){if(typeof Je=="function"&&et(i),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(vt,i)}catch{}}var Ln=Math.clz32?Math.clz32:Ye,Ni=Math.log,Ho=Math.LN2;function Ye(i){return i>>>=0,i===0?32:31-(Ni(i)/Ho|0)|0}var dt=256,Ct=262144,it=4194304;function Dt(i){var a=i&42;if(a!==0)return a;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Ke(i,a,u){var m=i.pendingLanes;if(m===0)return 0;var y=0,w=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var z=m&134217727;return z!==0?(m=z&~w,m!==0?y=Dt(m):(N&=z,N!==0?y=Dt(N):u||(u=z&~i,u!==0&&(y=Dt(u))))):(z=m&~w,z!==0?y=Dt(z):N!==0?y=Dt(N):u||(u=m&~i,u!==0&&(y=Dt(u)))),y===0?0:a!==0&&a!==y&&(a&w)===0&&(w=y&-y,u=a&-a,w>=u||w===32&&(u&4194048)!==0)?a:y}function ut(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Jt(i,a){switch(i){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Zt(){var i=it;return it<<=1,(it&62914560)===0&&(it=4194304),i}function Sr(i){for(var a=[],u=0;31>u;u++)a.push(i);return a}function Lt(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function an(i,a,u,m,y,w){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var z=i.entanglements,J=i.expirationTimes,de=i.hiddenUpdates;for(u=N&~u;0<u;){var _e=31-Ln(u),Ee=1<<_e;z[_e]=0,J[_e]=-1;var he=de[_e];if(he!==null)for(de[_e]=null,_e=0;_e<he.length;_e++){var ge=he[_e];ge!==null&&(ge.lane&=-536870913)}u&=~Ee}m!==0&&So(i,m,0),w!==0&&y===0&&i.tag!==0&&(i.suspendedLanes|=w&~(N&~a))}function So(i,a,u){i.pendingLanes|=a,i.suspendedLanes&=~a;var m=31-Ln(a);i.entangledLanes|=a,i.entanglements[m]=i.entanglements[m]|1073741824|u&261930}function sr(i,a){var u=i.entangledLanes|=a;for(i=i.entanglements;u;){var m=31-Ln(u),y=1<<m;y&a|i[m]&a&&(i[m]|=a),u&=~y}}function zr(i,a){var u=a&-a;return u=(u&42)!==0?1:bl(u),(u&(i.suspendedLanes|a))!==0?0:u}function bl(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Go(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function _v(){var i=W.p;return i!==0?i:(i=window.event,i===void 0?32:a2(i.type))}function EE(i,a){var u=W.p;try{return W.p=i,a()}finally{W.p=u}}var _s=Math.random().toString(36).slice(2),ar="__reactFiber$"+_s,Ur="__reactProps$"+_s,wl="__reactContainer$"+_s,bv="__reactEvents$"+_s,hL="__reactListeners$"+_s,pL="__reactHandles$"+_s,xE="__reactResources$"+_s,au="__reactMarker$"+_s;function wv(i){delete i[ar],delete i[Ur],delete i[bv],delete i[hL],delete i[pL]}function Sl(i){var a=i[ar];if(a)return a;for(var u=i.parentNode;u;){if(a=u[wl]||u[ar]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(i=HO(i);i!==null;){if(u=i[ar])return u;i=HO(i)}return a}i=u,u=i.parentNode}return null}function El(i){if(i=i[ar]||i[wl]){var a=i.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return i}return null}function lu(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(r(33))}function xl(i){var a=i[xE];return a||(a=i[xE]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function er(i){i[au]=!0}var RE=new Set,OE={};function Sa(i,a){Rl(i,a),Rl(i+"Capture",a)}function Rl(i,a){for(OE[i]=a,i=0;i<a.length;i++)RE.add(a[i])}var mL=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]*$"),TE={},CE={};function gL(i){return Be.call(CE,i)?!0:Be.call(TE,i)?!1:mL.test(i)?CE[i]=!0:(TE[i]=!0,!1)}function Nf(i,a,u){if(gL(a))if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var m=a.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+u)}}function kf(i,a,u){if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+u)}}function ki(i,a,u,m){if(m===null)i.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(a,u,""+m)}}function Eo(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function AE(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function vL(i,a,u){var m=Object.getOwnPropertyDescriptor(i.constructor.prototype,a);if(!i.hasOwnProperty(a)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var y=m.get,w=m.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return y.call(this)},set:function(N){u=""+N,w.call(this,N)}}),Object.defineProperty(i,a,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(N){u=""+N},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function Sv(i){if(!i._valueTracker){var a=AE(i)?"checked":"value";i._valueTracker=vL(i,a,""+i[a])}}function IE(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var u=a.getValue(),m="";return i&&(m=AE(i)?i.checked?"true":"false":i.value),i=m,i!==u?(a.setValue(i),!0):!1}function Df(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var yL=/[\n"\\]/g;function xo(i){return i.replace(yL,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ev(i,a,u,m,y,w,N,z){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),a!=null?N==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+Eo(a)):i.value!==""+Eo(a)&&(i.value=""+Eo(a)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),a!=null?xv(i,N,Eo(a)):u!=null?xv(i,N,Eo(u)):m!=null&&i.removeAttribute("value"),y==null&&w!=null&&(i.defaultChecked=!!w),y!=null&&(i.checked=y&&typeof y!="function"&&typeof y!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?i.name=""+Eo(z):i.removeAttribute("name")}function ME(i,a,u,m,y,w,N,z){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.type=w),a!=null||u!=null){if(!(w!=="submit"&&w!=="reset"||a!=null)){Sv(i);return}u=u!=null?""+Eo(u):"",a=a!=null?""+Eo(a):u,z||a===i.value||(i.value=a),i.defaultValue=a}m=m??y,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=z?i.checked:!!m,i.defaultChecked=!!m,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),Sv(i)}function xv(i,a,u){a==="number"&&Df(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Ol(i,a,u,m){if(i=i.options,a){a={};for(var y=0;y<u.length;y++)a["$"+u[y]]=!0;for(u=0;u<i.length;u++)y=a.hasOwnProperty("$"+i[u].value),i[u].selected!==y&&(i[u].selected=y),y&&m&&(i[u].defaultSelected=!0)}else{for(u=""+Eo(u),a=null,y=0;y<i.length;y++){if(i[y].value===u){i[y].selected=!0,m&&(i[y].defaultSelected=!0);return}a!==null||i[y].disabled||(a=i[y])}a!==null&&(a.selected=!0)}}function PE(i,a,u){if(a!=null&&(a=""+Eo(a),a!==i.value&&(i.value=a),u==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=u!=null?""+Eo(u):""}function NE(i,a,u,m){if(a==null){if(m!=null){if(u!=null)throw Error(r(92));if(ie(m)){if(1<m.length)throw Error(r(93));m=m[0]}u=m}u==null&&(u=""),a=u}u=Eo(a),i.defaultValue=u,m=i.textContent,m===u&&m!==""&&m!==null&&(i.value=m),Sv(i)}function Tl(i,a){if(a){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=a;return}}i.textContent=a}var _L=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 kE(i,a,u){var m=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?m?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":m?i.setProperty(a,u):typeof u!="number"||u===0||_L.has(a)?a==="float"?i.cssFloat=u:i[a]=(""+u).trim():i[a]=u+"px"}function DE(i,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(i=i.style,u!=null){for(var m in u)!u.hasOwnProperty(m)||a!=null&&a.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var y in a)m=a[y],a.hasOwnProperty(y)&&u[y]!==m&&kE(i,y,m)}else for(var w in a)a.hasOwnProperty(w)&&kE(i,w,a[w])}function Rv(i){if(i.indexOf("-")===-1)return!1;switch(i){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 bL=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"]]),wL=/^[\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 Lf(i){return wL.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Di(){}var Ov=null;function Tv(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Cl=null,Al=null;function LE(i){var a=El(i);if(a&&(i=a.stateNode)){var u=i[Ur]||null;e:switch(i=a.stateNode,a.type){case"input":if(Ev(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+xo(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var m=u[a];if(m!==i&&m.form===i.form){var y=m[Ur]||null;if(!y)throw Error(r(90));Ev(m,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(a=0;a<u.length;a++)m=u[a],m.form===i.form&&IE(m)}break e;case"textarea":PE(i,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&Ol(i,!!u.multiple,a,!1)}}}var Cv=!1;function $E(i,a,u){if(Cv)return i(a,u);Cv=!0;try{var m=i(a);return m}finally{if(Cv=!1,(Cl!==null||Al!==null)&&(Eh(),Cl&&(a=Cl,i=Al,Al=Cl=null,LE(a),i)))for(a=0;a<i.length;a++)LE(i[a])}}function cu(i,a){var u=i.stateNode;if(u===null)return null;var m=u[Ur]||null;if(m===null)return null;u=m[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var Li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Av=!1;if(Li)try{var uu={};Object.defineProperty(uu,"passive",{get:function(){Av=!0}}),window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch{Av=!1}var bs=null,Iv=null,$f=null;function jE(){if($f)return $f;var i,a=Iv,u=a.length,m,y="value"in bs?bs.value:bs.textContent,w=y.length;for(i=0;i<u&&a[i]===y[i];i++);var N=u-i;for(m=1;m<=N&&a[u-m]===y[w-m];m++);return $f=y.slice(i,1<m?1-m:void 0)}function jf(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function zf(){return!0}function zE(){return!1}function Fr(i){function a(u,m,y,w,N){this._reactName=u,this._targetInst=y,this.type=m,this.nativeEvent=w,this.target=N,this.currentTarget=null;for(var z in i)i.hasOwnProperty(z)&&(u=i[z],this[z]=u?u(w):w[z]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?zf:zE,this.isPropagationStopped=zE,this}return h(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=zf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=zf)},persist:function(){},isPersistent:zf}),a}var Ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uf=Fr(Ea),du=h({},Ea,{view:0,detail:0}),SL=Fr(du),Mv,Pv,fu,Ff=h({},du,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kv,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==fu&&(fu&&i.type==="mousemove"?(Mv=i.screenX-fu.screenX,Pv=i.screenY-fu.screenY):Pv=Mv=0,fu=i),Mv)},movementY:function(i){return"movementY"in i?i.movementY:Pv}}),UE=Fr(Ff),EL=h({},Ff,{dataTransfer:0}),xL=Fr(EL),RL=h({},du,{relatedTarget:0}),Nv=Fr(RL),OL=h({},Ea,{animationName:0,elapsedTime:0,pseudoElement:0}),TL=Fr(OL),CL=h({},Ea,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),AL=Fr(CL),IL=h({},Ea,{data:0}),FE=Fr(IL),ML={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PL={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"},NL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kL(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=NL[i])?!!a[i]:!1}function kv(){return kL}var DL=h({},du,{key:function(i){if(i.key){var a=ML[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=jf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?PL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kv,charCode:function(i){return i.type==="keypress"?jf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?jf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),LL=Fr(DL),$L=h({},Ff,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BE=Fr($L),jL=h({},du,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kv}),zL=Fr(jL),UL=h({},Ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),FL=Fr(UL),BL=h({},Ff,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),VL=Fr(BL),qL=h({},Ea,{newState:0,oldState:0}),HL=Fr(qL),GL=[9,13,27,32],Dv=Li&&"CompositionEvent"in window,hu=null;Li&&"documentMode"in document&&(hu=document.documentMode);var KL=Li&&"TextEvent"in window&&!hu,VE=Li&&(!Dv||hu&&8<hu&&11>=hu),qE=" ",HE=!1;function GE(i,a){switch(i){case"keyup":return GL.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KE(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Il=!1;function ZL(i,a){switch(i){case"compositionend":return KE(a);case"keypress":return a.which!==32?null:(HE=!0,qE);case"textInput":return i=a.data,i===qE&&HE?null:i;default:return null}}function YL(i,a){if(Il)return i==="compositionend"||!Dv&&GE(i,a)?(i=jE(),$f=Iv=bs=null,Il=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return VE&&a.locale!=="ko"?null:a.data;default:return null}}var WL={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 ZE(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!WL[i.type]:a==="textarea"}function YE(i,a,u,m){Cl?Al?Al.push(m):Al=[m]:Cl=m,a=Ih(a,"onChange"),0<a.length&&(u=new Uf("onChange","change",null,u,m),i.push({event:u,listeners:a}))}var pu=null,mu=null;function QL(i){MO(i,0)}function Bf(i){var a=lu(i);if(IE(a))return i}function WE(i,a){if(i==="change")return a}var QE=!1;if(Li){var Lv;if(Li){var $v="oninput"in document;if(!$v){var XE=document.createElement("div");XE.setAttribute("oninput","return;"),$v=typeof XE.oninput=="function"}Lv=$v}else Lv=!1;QE=Lv&&(!document.documentMode||9<document.documentMode)}function JE(){pu&&(pu.detachEvent("onpropertychange",ex),mu=pu=null)}function ex(i){if(i.propertyName==="value"&&Bf(mu)){var a=[];YE(a,mu,i,Tv(i)),$E(QL,a)}}function XL(i,a,u){i==="focusin"?(JE(),pu=a,mu=u,pu.attachEvent("onpropertychange",ex)):i==="focusout"&&JE()}function JL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Bf(mu)}function e$(i,a){if(i==="click")return Bf(a)}function t$(i,a){if(i==="input"||i==="change")return Bf(a)}function n$(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var eo=typeof Object.is=="function"?Object.is:n$;function gu(i,a){if(eo(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var u=Object.keys(i),m=Object.keys(a);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var y=u[m];if(!Be.call(a,y)||!eo(i[y],a[y]))return!1}return!0}function tx(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function nx(i,a){var u=tx(i);i=0;for(var m;u;){if(u.nodeType===3){if(m=i+u.textContent.length,i<=a&&m>=a)return{node:u,offset:a-i};i=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=tx(u)}}function rx(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?rx(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function ox(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=Df(i.document);a instanceof i.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)i=a.contentWindow;else break;a=Df(i.document)}return a}function jv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var r$=Li&&"documentMode"in document&&11>=document.documentMode,Ml=null,zv=null,vu=null,Uv=!1;function ix(i,a,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Uv||Ml==null||Ml!==Df(m)||(m=Ml,"selectionStart"in m&&jv(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),vu&&gu(vu,m)||(vu=m,m=Ih(zv,"onSelect"),0<m.length&&(a=new Uf("onSelect","select",null,a,u),i.push({event:a,listeners:m}),a.target=Ml)))}function xa(i,a){var u={};return u[i.toLowerCase()]=a.toLowerCase(),u["Webkit"+i]="webkit"+a,u["Moz"+i]="moz"+a,u}var Pl={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},Fv={},sx={};Li&&(sx=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function Ra(i){if(Fv[i])return Fv[i];if(!Pl[i])return i;var a=Pl[i],u;for(u in a)if(a.hasOwnProperty(u)&&u in sx)return Fv[i]=a[u];return i}var ax=Ra("animationend"),lx=Ra("animationiteration"),cx=Ra("animationstart"),o$=Ra("transitionrun"),i$=Ra("transitionstart"),s$=Ra("transitioncancel"),ux=Ra("transitionend"),dx=new Map,Bv="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(" ");Bv.push("scrollEnd");function Ko(i,a){dx.set(i,a),Sa(a,[i])}var Vf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Ro=[],Nl=0,Vv=0;function qf(){for(var i=Nl,a=Vv=Nl=0;a<i;){var u=Ro[a];Ro[a++]=null;var m=Ro[a];Ro[a++]=null;var y=Ro[a];Ro[a++]=null;var w=Ro[a];if(Ro[a++]=null,m!==null&&y!==null){var N=m.pending;N===null?y.next=y:(y.next=N.next,N.next=y),m.pending=y}w!==0&&fx(u,y,w)}}function Hf(i,a,u,m){Ro[Nl++]=i,Ro[Nl++]=a,Ro[Nl++]=u,Ro[Nl++]=m,Vv|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function qv(i,a,u,m){return Hf(i,a,u,m),Gf(i)}function Oa(i,a){return Hf(i,null,null,a),Gf(i)}function fx(i,a,u){i.lanes|=u;var m=i.alternate;m!==null&&(m.lanes|=u);for(var y=!1,w=i.return;w!==null;)w.childLanes|=u,m=w.alternate,m!==null&&(m.childLanes|=u),w.tag===22&&(i=w.stateNode,i===null||i._visibility&1||(y=!0)),i=w,w=w.return;return i.tag===3?(w=i.stateNode,y&&a!==null&&(y=31-Ln(u),i=w.hiddenUpdates,m=i[y],m===null?i[y]=[a]:m.push(a),a.lane=u|536870912),w):null}function Gf(i){if(50<zu)throw zu=0,J0=null,Error(r(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var kl={};function a$(i,a,u,m){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function to(i,a,u,m){return new a$(i,a,u,m)}function Hv(i){return i=i.prototype,!(!i||!i.isReactComponent)}function $i(i,a){var u=i.alternate;return u===null?(u=to(i.tag,a,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=a,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,a=i.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function hx(i,a){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,a=u.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function Kf(i,a,u,m,y,w){var N=0;if(m=i,typeof i=="function")Hv(i)&&(N=1);else if(typeof i=="string")N=fj(i,u,D.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case L:return i=to(31,u,a,y),i.elementType=L,i.lanes=w,i;case b:return Ta(u.children,y,w,a);case x:N=8,y|=24;break;case S:return i=to(12,u,a,y|2),i.elementType=S,i.lanes=w,i;case O:return i=to(13,u,a,y),i.elementType=O,i.lanes=w,i;case A:return i=to(19,u,a,y),i.elementType=A,i.lanes=w,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:N=10;break e;case E:N=9;break e;case R:N=11;break e;case I:N=14;break e;case P:N=16,m=null;break e}N=29,u=Error(r(130,i===null?"null":typeof i,"")),m=null}return a=to(N,u,a,y),a.elementType=i,a.type=m,a.lanes=w,a}function Ta(i,a,u,m){return i=to(7,i,m,a),i.lanes=u,i}function Gv(i,a,u){return i=to(6,i,null,a),i.lanes=u,i}function px(i){var a=to(18,null,null,0);return a.stateNode=i,a}function Kv(i,a,u){return a=to(4,i.children!==null?i.children:[],i.key,a),a.lanes=u,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var mx=new WeakMap;function Oo(i,a){if(typeof i=="object"&&i!==null){var u=mx.get(i);return u!==void 0?u:(a={value:i,source:a,stack:rt(a)},mx.set(i,a),a)}return{value:i,source:a,stack:rt(a)}}var Dl=[],Ll=0,Zf=null,yu=0,To=[],Co=0,ws=null,ci=1,ui="";function ji(i,a){Dl[Ll++]=yu,Dl[Ll++]=Zf,Zf=i,yu=a}function gx(i,a,u){To[Co++]=ci,To[Co++]=ui,To[Co++]=ws,ws=i;var m=ci;i=ui;var y=32-Ln(m)-1;m&=~(1<<y),u+=1;var w=32-Ln(a)+y;if(30<w){var N=y-y%5;w=(m&(1<<N)-1).toString(32),m>>=N,y-=N,ci=1<<32-Ln(a)+y|u<<y|m,ui=w+i}else ci=1<<w|u<<y|m,ui=i}function Zv(i){i.return!==null&&(ji(i,1),gx(i,1,0))}function Yv(i){for(;i===Zf;)Zf=Dl[--Ll],Dl[Ll]=null,yu=Dl[--Ll],Dl[Ll]=null;for(;i===ws;)ws=To[--Co],To[Co]=null,ui=To[--Co],To[Co]=null,ci=To[--Co],To[Co]=null}function vx(i,a){To[Co++]=ci,To[Co++]=ui,To[Co++]=ws,ci=a.id,ui=a.overflow,ws=i}var lr=null,ln=null,At=!1,Ss=null,Ao=!1,Wv=Error(r(519));function Es(i){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _u(Oo(a,i)),Wv}function yx(i){var a=i.stateNode,u=i.type,m=i.memoizedProps;switch(a[ar]=i,a[Ur]=m,u){case"dialog":bt("cancel",a),bt("close",a);break;case"iframe":case"object":case"embed":bt("load",a);break;case"video":case"audio":for(u=0;u<Fu.length;u++)bt(Fu[u],a);break;case"source":bt("error",a);break;case"img":case"image":case"link":bt("error",a),bt("load",a);break;case"details":bt("toggle",a);break;case"input":bt("invalid",a),ME(a,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":bt("invalid",a);break;case"textarea":bt("invalid",a),NE(a,m.value,m.defaultValue,m.children)}u=m.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||m.suppressHydrationWarning===!0||DO(a.textContent,u)?(m.popover!=null&&(bt("beforetoggle",a),bt("toggle",a)),m.onScroll!=null&&bt("scroll",a),m.onScrollEnd!=null&&bt("scrollend",a),m.onClick!=null&&(a.onclick=Di),a=!0):a=!1,a||Es(i,!0)}function _x(i){for(lr=i.return;lr;)switch(lr.tag){case 5:case 31:case 13:Ao=!1;return;case 27:case 3:Ao=!0;return;default:lr=lr.return}}function $l(i){if(i!==lr)return!1;if(!At)return _x(i),At=!0,!1;var a=i.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||py(i.type,i.memoizedProps)),u=!u),u&&ln&&Es(i),_x(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ln=qO(i)}else if(a===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ln=qO(i)}else a===27?(a=ln,$s(i.type)?(i=_y,_y=null,ln=i):ln=a):ln=lr?Mo(i.stateNode.nextSibling):null;return!0}function Ca(){ln=lr=null,At=!1}function Qv(){var i=Ss;return i!==null&&(Hr===null?Hr=i:Hr.push.apply(Hr,i),Ss=null),i}function _u(i){Ss===null?Ss=[i]:Ss.push(i)}var Xv=k(null),Aa=null,zi=null;function xs(i,a,u){V(Xv,a._currentValue),a._currentValue=u}function Ui(i){i._currentValue=Xv.current,G(Xv)}function Jv(i,a,u){for(;i!==null;){var m=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),i===u)break;i=i.return}}function e0(i,a,u,m){var y=i.child;for(y!==null&&(y.return=i);y!==null;){var w=y.dependencies;if(w!==null){var N=y.child;w=w.firstContext;e:for(;w!==null;){var z=w;w=y;for(var J=0;J<a.length;J++)if(z.context===a[J]){w.lanes|=u,z=w.alternate,z!==null&&(z.lanes|=u),Jv(w.return,u,i),m||(N=null);break e}w=z.next}}else if(y.tag===18){if(N=y.return,N===null)throw Error(r(341));N.lanes|=u,w=N.alternate,w!==null&&(w.lanes|=u),Jv(N,u,i),N=null}else N=y.child;if(N!==null)N.return=y;else for(N=y;N!==null;){if(N===i){N=null;break}if(y=N.sibling,y!==null){y.return=N.return,N=y;break}N=N.return}y=N}}function jl(i,a,u,m){i=null;for(var y=a,w=!1;y!==null;){if(!w){if((y.flags&524288)!==0)w=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var N=y.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var z=y.type;eo(y.pendingProps.value,N.value)||(i!==null?i.push(z):i=[z])}}else if(y===fe.current){if(N=y.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(i!==null?i.push(Gu):i=[Gu])}y=y.return}i!==null&&e0(a,i,u,m),a.flags|=262144}function Yf(i){for(i=i.firstContext;i!==null;){if(!eo(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ia(i){Aa=i,zi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function cr(i){return bx(Aa,i)}function Wf(i,a){return Aa===null&&Ia(i),bx(i,a)}function bx(i,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},zi===null){if(i===null)throw Error(r(308));zi=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else zi=zi.next=a;return u}var l$=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(u,m){i.push(m)}};this.abort=function(){a.aborted=!0,i.forEach(function(u){return u()})}},c$=e.unstable_scheduleCallback,u$=e.unstable_NormalPriority,$n={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function t0(){return{controller:new l$,data:new Map,refCount:0}}function bu(i){i.refCount--,i.refCount===0&&c$(u$,function(){i.controller.abort()})}var wu=null,n0=0,zl=0,Ul=null;function d$(i,a){if(wu===null){var u=wu=[];n0=0,zl=iy(),Ul={status:"pending",value:void 0,then:function(m){u.push(m)}}}return n0++,a.then(wx,wx),a}function wx(){if(--n0===0&&wu!==null){Ul!==null&&(Ul.status="fulfilled");var i=wu;wu=null,zl=0,Ul=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function f$(i,a){var u=[],m={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return i.then(function(){m.status="fulfilled",m.value=a;for(var y=0;y<u.length;y++)(0,u[y])(a)},function(y){for(m.status="rejected",m.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),m}var Sx=H.S;H.S=function(i,a){iO=K(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&d$(i,a),Sx!==null&&Sx(i,a)};var Ma=k(null);function r0(){var i=Ma.current;return i!==null?i:en.pooledCache}function Qf(i,a){a===null?V(Ma,Ma.current):V(Ma,a.pool)}function Ex(){var i=r0();return i===null?null:{parent:$n._currentValue,pool:i}}var Fl=Error(r(460)),o0=Error(r(474)),Xf=Error(r(542)),Jf={then:function(){}};function xx(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Rx(i,a,u){switch(u=i[u],u===void 0?i.push(a):u!==a&&(a.then(Di,Di),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,Tx(i),i;default:if(typeof a.status=="string")a.then(Di,Di);else{if(i=en,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=a,i.status="pending",i.then(function(m){if(a.status==="pending"){var y=a;y.status="fulfilled",y.value=m}},function(m){if(a.status==="pending"){var y=a;y.status="rejected",y.reason=m}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,Tx(i),i}throw Na=a,Fl}}function Pa(i){try{var a=i._init;return a(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Na=u,Fl):u}}var Na=null;function Ox(){if(Na===null)throw Error(r(459));var i=Na;return Na=null,i}function Tx(i){if(i===Fl||i===Xf)throw Error(r(483))}var Bl=null,Su=0;function eh(i){var a=Su;return Su+=1,Bl===null&&(Bl=[]),Rx(Bl,i,a)}function Eu(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function th(i,a){throw a.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function Cx(i){function a(ce,oe){if(i){var ue=ce.deletions;ue===null?(ce.deletions=[oe],ce.flags|=16):ue.push(oe)}}function u(ce,oe){if(!i)return null;for(;oe!==null;)a(ce,oe),oe=oe.sibling;return null}function m(ce){for(var oe=new Map;ce!==null;)ce.key!==null?oe.set(ce.key,ce):oe.set(ce.index,ce),ce=ce.sibling;return oe}function y(ce,oe){return ce=$i(ce,oe),ce.index=0,ce.sibling=null,ce}function w(ce,oe,ue){return ce.index=ue,i?(ue=ce.alternate,ue!==null?(ue=ue.index,ue<oe?(ce.flags|=67108866,oe):ue):(ce.flags|=67108866,oe)):(ce.flags|=1048576,oe)}function N(ce){return i&&ce.alternate===null&&(ce.flags|=67108866),ce}function z(ce,oe,ue,we){return oe===null||oe.tag!==6?(oe=Gv(ue,ce.mode,we),oe.return=ce,oe):(oe=y(oe,ue),oe.return=ce,oe)}function J(ce,oe,ue,we){var Xe=ue.type;return Xe===b?_e(ce,oe,ue.props.children,we,ue.key):oe!==null&&(oe.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===P&&Pa(Xe)===oe.type)?(oe=y(oe,ue.props),Eu(oe,ue),oe.return=ce,oe):(oe=Kf(ue.type,ue.key,ue.props,null,ce.mode,we),Eu(oe,ue),oe.return=ce,oe)}function de(ce,oe,ue,we){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==ue.containerInfo||oe.stateNode.implementation!==ue.implementation?(oe=Kv(ue,ce.mode,we),oe.return=ce,oe):(oe=y(oe,ue.children||[]),oe.return=ce,oe)}function _e(ce,oe,ue,we,Xe){return oe===null||oe.tag!==7?(oe=Ta(ue,ce.mode,we,Xe),oe.return=ce,oe):(oe=y(oe,ue),oe.return=ce,oe)}function Ee(ce,oe,ue){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return oe=Gv(""+oe,ce.mode,ue),oe.return=ce,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:return ue=Kf(oe.type,oe.key,oe.props,null,ce.mode,ue),Eu(ue,oe),ue.return=ce,ue;case _:return oe=Kv(oe,ce.mode,ue),oe.return=ce,oe;case P:return oe=Pa(oe),Ee(ce,oe,ue)}if(ie(oe)||B(oe))return oe=Ta(oe,ce.mode,ue,null),oe.return=ce,oe;if(typeof oe.then=="function")return Ee(ce,eh(oe),ue);if(oe.$$typeof===T)return Ee(ce,Wf(ce,oe),ue);th(ce,oe)}return null}function he(ce,oe,ue,we){var Xe=oe!==null?oe.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Xe!==null?null:z(ce,oe,""+ue,we);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:return ue.key===Xe?J(ce,oe,ue,we):null;case _:return ue.key===Xe?de(ce,oe,ue,we):null;case P:return ue=Pa(ue),he(ce,oe,ue,we)}if(ie(ue)||B(ue))return Xe!==null?null:_e(ce,oe,ue,we,null);if(typeof ue.then=="function")return he(ce,oe,eh(ue),we);if(ue.$$typeof===T)return he(ce,oe,Wf(ce,ue),we);th(ce,ue)}return null}function ge(ce,oe,ue,we,Xe){if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return ce=ce.get(ue)||null,z(oe,ce,""+we,Xe);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case v:return ce=ce.get(we.key===null?ue:we.key)||null,J(oe,ce,we,Xe);case _:return ce=ce.get(we.key===null?ue:we.key)||null,de(oe,ce,we,Xe);case P:return we=Pa(we),ge(ce,oe,ue,we,Xe)}if(ie(we)||B(we))return ce=ce.get(ue)||null,_e(oe,ce,we,Xe,null);if(typeof we.then=="function")return ge(ce,oe,ue,eh(we),Xe);if(we.$$typeof===T)return ge(ce,oe,ue,Wf(oe,we),Xe);th(oe,we)}return null}function He(ce,oe,ue,we){for(var Xe=null,$t=null,Ze=oe,at=oe=0,xt=null;Ze!==null&&at<ue.length;at++){Ze.index>at?(xt=Ze,Ze=null):xt=Ze.sibling;var jt=he(ce,Ze,ue[at],we);if(jt===null){Ze===null&&(Ze=xt);break}i&&Ze&&jt.alternate===null&&a(ce,Ze),oe=w(jt,oe,at),$t===null?Xe=jt:$t.sibling=jt,$t=jt,Ze=xt}if(at===ue.length)return u(ce,Ze),At&&ji(ce,at),Xe;if(Ze===null){for(;at<ue.length;at++)Ze=Ee(ce,ue[at],we),Ze!==null&&(oe=w(Ze,oe,at),$t===null?Xe=Ze:$t.sibling=Ze,$t=Ze);return At&&ji(ce,at),Xe}for(Ze=m(Ze);at<ue.length;at++)xt=ge(Ze,ce,at,ue[at],we),xt!==null&&(i&&xt.alternate!==null&&Ze.delete(xt.key===null?at:xt.key),oe=w(xt,oe,at),$t===null?Xe=xt:$t.sibling=xt,$t=xt);return i&&Ze.forEach(function(Bs){return a(ce,Bs)}),At&&ji(ce,at),Xe}function nt(ce,oe,ue,we){if(ue==null)throw Error(r(151));for(var Xe=null,$t=null,Ze=oe,at=oe=0,xt=null,jt=ue.next();Ze!==null&&!jt.done;at++,jt=ue.next()){Ze.index>at?(xt=Ze,Ze=null):xt=Ze.sibling;var Bs=he(ce,Ze,jt.value,we);if(Bs===null){Ze===null&&(Ze=xt);break}i&&Ze&&Bs.alternate===null&&a(ce,Ze),oe=w(Bs,oe,at),$t===null?Xe=Bs:$t.sibling=Bs,$t=Bs,Ze=xt}if(jt.done)return u(ce,Ze),At&&ji(ce,at),Xe;if(Ze===null){for(;!jt.done;at++,jt=ue.next())jt=Ee(ce,jt.value,we),jt!==null&&(oe=w(jt,oe,at),$t===null?Xe=jt:$t.sibling=jt,$t=jt);return At&&ji(ce,at),Xe}for(Ze=m(Ze);!jt.done;at++,jt=ue.next())jt=ge(Ze,ce,at,jt.value,we),jt!==null&&(i&&jt.alternate!==null&&Ze.delete(jt.key===null?at:jt.key),oe=w(jt,oe,at),$t===null?Xe=jt:$t.sibling=jt,$t=jt);return i&&Ze.forEach(function(Ej){return a(ce,Ej)}),At&&ji(ce,at),Xe}function Qt(ce,oe,ue,we){if(typeof ue=="object"&&ue!==null&&ue.type===b&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:e:{for(var Xe=ue.key;oe!==null;){if(oe.key===Xe){if(Xe=ue.type,Xe===b){if(oe.tag===7){u(ce,oe.sibling),we=y(oe,ue.props.children),we.return=ce,ce=we;break e}}else if(oe.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===P&&Pa(Xe)===oe.type){u(ce,oe.sibling),we=y(oe,ue.props),Eu(we,ue),we.return=ce,ce=we;break e}u(ce,oe);break}else a(ce,oe);oe=oe.sibling}ue.type===b?(we=Ta(ue.props.children,ce.mode,we,ue.key),we.return=ce,ce=we):(we=Kf(ue.type,ue.key,ue.props,null,ce.mode,we),Eu(we,ue),we.return=ce,ce=we)}return N(ce);case _:e:{for(Xe=ue.key;oe!==null;){if(oe.key===Xe)if(oe.tag===4&&oe.stateNode.containerInfo===ue.containerInfo&&oe.stateNode.implementation===ue.implementation){u(ce,oe.sibling),we=y(oe,ue.children||[]),we.return=ce,ce=we;break e}else{u(ce,oe);break}else a(ce,oe);oe=oe.sibling}we=Kv(ue,ce.mode,we),we.return=ce,ce=we}return N(ce);case P:return ue=Pa(ue),Qt(ce,oe,ue,we)}if(ie(ue))return He(ce,oe,ue,we);if(B(ue)){if(Xe=B(ue),typeof Xe!="function")throw Error(r(150));return ue=Xe.call(ue),nt(ce,oe,ue,we)}if(typeof ue.then=="function")return Qt(ce,oe,eh(ue),we);if(ue.$$typeof===T)return Qt(ce,oe,Wf(ce,ue),we);th(ce,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,oe!==null&&oe.tag===6?(u(ce,oe.sibling),we=y(oe,ue),we.return=ce,ce=we):(u(ce,oe),we=Gv(ue,ce.mode,we),we.return=ce,ce=we),N(ce)):u(ce,oe)}return function(ce,oe,ue,we){try{Su=0;var Xe=Qt(ce,oe,ue,we);return Bl=null,Xe}catch(Ze){if(Ze===Fl||Ze===Xf)throw Ze;var $t=to(29,Ze,null,ce.mode);return $t.lanes=we,$t.return=ce,$t}}}var ka=Cx(!0),Ax=Cx(!1),Rs=!1;function i0(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function s0(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Os(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ts(i,a,u){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(Ut&2)!==0){var y=m.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),m.pending=a,a=Gf(i),fx(i,null,u),a}return Hf(i,m,a,u),Gf(i)}function xu(i,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var m=a.lanes;m&=i.pendingLanes,u|=m,a.lanes=u,sr(i,u)}}function a0(i,a){var u=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var y=null,w=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};w===null?y=w=N:w=w.next=N,u=u.next}while(u!==null);w===null?y=w=a:w=w.next=a}else y=w=a;u={baseState:m.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=a:i.next=a,u.lastBaseUpdate=a}var l0=!1;function Ru(){if(l0){var i=Ul;if(i!==null)throw i}}function Ou(i,a,u,m){l0=!1;var y=i.updateQueue;Rs=!1;var w=y.firstBaseUpdate,N=y.lastBaseUpdate,z=y.shared.pending;if(z!==null){y.shared.pending=null;var J=z,de=J.next;J.next=null,N===null?w=de:N.next=de,N=J;var _e=i.alternate;_e!==null&&(_e=_e.updateQueue,z=_e.lastBaseUpdate,z!==N&&(z===null?_e.firstBaseUpdate=de:z.next=de,_e.lastBaseUpdate=J))}if(w!==null){var Ee=y.baseState;N=0,_e=de=J=null,z=w;do{var he=z.lane&-536870913,ge=he!==z.lane;if(ge?(Et&he)===he:(m&he)===he){he!==0&&he===zl&&(l0=!0),_e!==null&&(_e=_e.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var He=i,nt=z;he=a;var Qt=u;switch(nt.tag){case 1:if(He=nt.payload,typeof He=="function"){Ee=He.call(Qt,Ee,he);break e}Ee=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=nt.payload,he=typeof He=="function"?He.call(Qt,Ee,he):He,he==null)break e;Ee=h({},Ee,he);break e;case 2:Rs=!0}}he=z.callback,he!==null&&(i.flags|=64,ge&&(i.flags|=8192),ge=y.callbacks,ge===null?y.callbacks=[he]:ge.push(he))}else ge={lane:he,tag:z.tag,payload:z.payload,callback:z.callback,next:null},_e===null?(de=_e=ge,J=Ee):_e=_e.next=ge,N|=he;if(z=z.next,z===null){if(z=y.shared.pending,z===null)break;ge=z,z=ge.next,ge.next=null,y.lastBaseUpdate=ge,y.shared.pending=null}}while(!0);_e===null&&(J=Ee),y.baseState=J,y.firstBaseUpdate=de,y.lastBaseUpdate=_e,w===null&&(y.shared.lanes=0),Ps|=N,i.lanes=N,i.memoizedState=Ee}}function Ix(i,a){if(typeof i!="function")throw Error(r(191,i));i.call(a)}function Mx(i,a){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)Ix(u[i],a)}var Vl=k(null),nh=k(0);function Px(i,a){i=Yi,V(nh,i),V(Vl,a),Yi=i|a.baseLanes}function c0(){V(nh,Yi),V(Vl,Vl.current)}function u0(){Yi=nh.current,G(Vl),G(nh)}var no=k(null),Io=null;function Cs(i){var a=i.alternate;V(On,On.current&1),V(no,i),Io===null&&(a===null||Vl.current!==null||a.memoizedState!==null)&&(Io=i)}function d0(i){V(On,On.current),V(no,i),Io===null&&(Io=i)}function Nx(i){i.tag===22?(V(On,On.current),V(no,i),Io===null&&(Io=i)):As()}function As(){V(On,On.current),V(no,no.current)}function ro(i){G(no),Io===i&&(Io=null),G(On)}var On=k(0);function rh(i){for(var a=i;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||vy(u)||yy(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Fi=0,st=null,Yt=null,jn=null,oh=!1,ql=!1,Da=!1,ih=0,Tu=0,Hl=null,h$=0;function En(){throw Error(r(321))}function f0(i,a){if(a===null)return!1;for(var u=0;u<a.length&&u<i.length;u++)if(!eo(i[u],a[u]))return!1;return!0}function h0(i,a,u,m,y,w){return Fi=w,st=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,H.H=i===null||i.memoizedState===null?gR:C0,Da=!1,w=u(m,y),Da=!1,ql&&(w=Dx(a,u,m,y)),kx(i),w}function kx(i){H.H=Iu;var a=Yt!==null&&Yt.next!==null;if(Fi=0,jn=Yt=st=null,oh=!1,Tu=0,Hl=null,a)throw Error(r(300));i===null||zn||(i=i.dependencies,i!==null&&Yf(i)&&(zn=!0))}function Dx(i,a,u,m){st=i;var y=0;do{if(ql&&(Hl=null),Tu=0,ql=!1,25<=y)throw Error(r(301));if(y+=1,jn=Yt=null,i.updateQueue!=null){var w=i.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}H.H=vR,w=a(u,m)}while(ql);return w}function p$(){var i=H.H,a=i.useState()[0];return a=typeof a.then=="function"?Cu(a):a,i=i.useState()[0],(Yt!==null?Yt.memoizedState:null)!==i&&(st.flags|=1024),a}function p0(){var i=ih!==0;return ih=0,i}function m0(i,a,u){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~u}function g0(i){if(oh){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}oh=!1}Fi=0,jn=Yt=st=null,ql=!1,Tu=ih=0,Hl=null}function Pr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jn===null?st.memoizedState=jn=i:jn=jn.next=i,jn}function Tn(){if(Yt===null){var i=st.alternate;i=i!==null?i.memoizedState:null}else i=Yt.next;var a=jn===null?st.memoizedState:jn.next;if(a!==null)jn=a,Yt=i;else{if(i===null)throw st.alternate===null?Error(r(467)):Error(r(310));Yt=i,i={memoizedState:Yt.memoizedState,baseState:Yt.baseState,baseQueue:Yt.baseQueue,queue:Yt.queue,next:null},jn===null?st.memoizedState=jn=i:jn=jn.next=i}return jn}function sh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cu(i){var a=Tu;return Tu+=1,Hl===null&&(Hl=[]),i=Rx(Hl,i,a),a=st,(jn===null?a.memoizedState:jn.next)===null&&(a=a.alternate,H.H=a===null||a.memoizedState===null?gR:C0),i}function ah(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Cu(i);if(i.$$typeof===T)return cr(i)}throw Error(r(438,String(i)))}function v0(i){var a=null,u=st.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var m=st.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(a={data:m.data.map(function(y){return y.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=sh(),st.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(i),m=0;m<i;m++)u[m]=q;return a.index++,u}function Bi(i,a){return typeof a=="function"?a(i):a}function lh(i){var a=Tn();return y0(a,Yt,i)}function y0(i,a,u){var m=i.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var y=i.baseQueue,w=m.pending;if(w!==null){if(y!==null){var N=y.next;y.next=w.next,w.next=N}a.baseQueue=y=w,m.pending=null}if(w=i.baseState,y===null)i.memoizedState=w;else{a=y.next;var z=N=null,J=null,de=a,_e=!1;do{var Ee=de.lane&-536870913;if(Ee!==de.lane?(Et&Ee)===Ee:(Fi&Ee)===Ee){var he=de.revertLane;if(he===0)J!==null&&(J=J.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Ee===zl&&(_e=!0);else if((Fi&he)===he){de=de.next,he===zl&&(_e=!0);continue}else Ee={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},J===null?(z=J=Ee,N=w):J=J.next=Ee,st.lanes|=he,Ps|=he;Ee=de.action,Da&&u(w,Ee),w=de.hasEagerState?de.eagerState:u(w,Ee)}else he={lane:Ee,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},J===null?(z=J=he,N=w):J=J.next=he,st.lanes|=Ee,Ps|=Ee;de=de.next}while(de!==null&&de!==a);if(J===null?N=w:J.next=z,!eo(w,i.memoizedState)&&(zn=!0,_e&&(u=Ul,u!==null)))throw u;i.memoizedState=w,i.baseState=N,i.baseQueue=J,m.lastRenderedState=w}return y===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function _0(i){var a=Tn(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var m=u.dispatch,y=u.pending,w=a.memoizedState;if(y!==null){u.pending=null;var N=y=y.next;do w=i(w,N.action),N=N.next;while(N!==y);eo(w,a.memoizedState)||(zn=!0),a.memoizedState=w,a.baseQueue===null&&(a.baseState=w),u.lastRenderedState=w}return[w,m]}function Lx(i,a,u){var m=st,y=Tn(),w=At;if(w){if(u===void 0)throw Error(r(407));u=u()}else u=a();var N=!eo((Yt||y).memoizedState,u);if(N&&(y.memoizedState=u,zn=!0),y=y.queue,S0(zx.bind(null,m,y,i),[i]),y.getSnapshot!==a||N||jn!==null&&jn.memoizedState.tag&1){if(m.flags|=2048,Gl(9,{destroy:void 0},jx.bind(null,m,y,u,a),null),en===null)throw Error(r(349));w||(Fi&127)!==0||$x(m,a,u)}return u}function $x(i,a,u){i.flags|=16384,i={getSnapshot:a,value:u},a=st.updateQueue,a===null?(a=sh(),st.updateQueue=a,a.stores=[i]):(u=a.stores,u===null?a.stores=[i]:u.push(i))}function jx(i,a,u,m){a.value=u,a.getSnapshot=m,Ux(a)&&Fx(i)}function zx(i,a,u){return u(function(){Ux(a)&&Fx(i)})}function Ux(i){var a=i.getSnapshot;i=i.value;try{var u=a();return!eo(i,u)}catch{return!0}}function Fx(i){var a=Oa(i,2);a!==null&&Gr(a,i,2)}function b0(i){var a=Pr();if(typeof i=="function"){var u=i;if(i=u(),Da){yt(!0);try{u()}finally{yt(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:i},a}function Bx(i,a,u,m){return i.baseState=u,y0(i,Yt,typeof m=="function"?m:Bi)}function m$(i,a,u,m,y){if(dh(i))throw Error(r(485));if(i=a.action,i!==null){var w={payload:y,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){w.listeners.push(N)}};H.T!==null?u(!0):w.isTransition=!1,m(w),u=a.pending,u===null?(w.next=a.pending=w,Vx(a,w)):(w.next=u.next,a.pending=u.next=w)}}function Vx(i,a){var u=a.action,m=a.payload,y=i.state;if(a.isTransition){var w=H.T,N={};H.T=N;try{var z=u(y,m),J=H.S;J!==null&&J(N,z),qx(i,a,z)}catch(de){w0(i,a,de)}finally{w!==null&&N.types!==null&&(w.types=N.types),H.T=w}}else try{w=u(y,m),qx(i,a,w)}catch(de){w0(i,a,de)}}function qx(i,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){Hx(i,a,m)},function(m){return w0(i,a,m)}):Hx(i,a,u)}function Hx(i,a,u){a.status="fulfilled",a.value=u,Gx(a),i.state=u,a=i.pending,a!==null&&(u=a.next,u===a?i.pending=null:(u=u.next,a.next=u,Vx(i,u)))}function w0(i,a,u){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do a.status="rejected",a.reason=u,Gx(a),a=a.next;while(a!==m)}i.action=null}function Gx(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function Kx(i,a){return a}function Zx(i,a){if(At){var u=en.formState;if(u!==null){e:{var m=st;if(At){if(ln){t:{for(var y=ln,w=Ao;y.nodeType!==8;){if(!w){y=null;break t}if(y=Mo(y.nextSibling),y===null){y=null;break t}}w=y.data,y=w==="F!"||w==="F"?y:null}if(y){ln=Mo(y.nextSibling),m=y.data==="F!";break e}}Es(m)}m=!1}m&&(a=u[0])}}return u=Pr(),u.memoizedState=u.baseState=a,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kx,lastRenderedState:a},u.queue=m,u=hR.bind(null,st,m),m.dispatch=u,m=b0(!1),w=T0.bind(null,st,!1,m.queue),m=Pr(),y={state:a,dispatch:null,action:i,pending:null},m.queue=y,u=m$.bind(null,st,y,w,u),y.dispatch=u,m.memoizedState=i,[a,u,!1]}function Yx(i){var a=Tn();return Wx(a,Yt,i)}function Wx(i,a,u){if(a=y0(i,a,Kx)[0],i=lh(Bi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var m=Cu(a)}catch(N){throw N===Fl?Xf:N}else m=a;a=Tn();var y=a.queue,w=y.dispatch;return u!==a.memoizedState&&(st.flags|=2048,Gl(9,{destroy:void 0},g$.bind(null,y,u),null)),[m,w,i]}function g$(i,a){i.action=a}function Qx(i){var a=Tn(),u=Yt;if(u!==null)return Wx(a,u,i);Tn(),a=a.memoizedState,u=Tn();var m=u.queue.dispatch;return u.memoizedState=i,[a,m,!1]}function Gl(i,a,u,m){return i={tag:i,create:u,deps:m,inst:a,next:null},a=st.updateQueue,a===null&&(a=sh(),st.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=i.next=i:(m=u.next,u.next=i,i.next=m,a.lastEffect=i),i}function Xx(){return Tn().memoizedState}function ch(i,a,u,m){var y=Pr();st.flags|=i,y.memoizedState=Gl(1|a,{destroy:void 0},u,m===void 0?null:m)}function uh(i,a,u,m){var y=Tn();m=m===void 0?null:m;var w=y.memoizedState.inst;Yt!==null&&m!==null&&f0(m,Yt.memoizedState.deps)?y.memoizedState=Gl(a,w,u,m):(st.flags|=i,y.memoizedState=Gl(1|a,w,u,m))}function Jx(i,a){ch(8390656,8,i,a)}function S0(i,a){uh(2048,8,i,a)}function v$(i){st.flags|=4;var a=st.updateQueue;if(a===null)a=sh(),st.updateQueue=a,a.events=[i];else{var u=a.events;u===null?a.events=[i]:u.push(i)}}function eR(i){var a=Tn().memoizedState;return v$({ref:a,nextImpl:i}),function(){if((Ut&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function tR(i,a){return uh(4,2,i,a)}function nR(i,a){return uh(4,4,i,a)}function rR(i,a){if(typeof a=="function"){i=i();var u=a(i);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function oR(i,a,u){u=u!=null?u.concat([i]):null,uh(4,4,rR.bind(null,a,i),u)}function E0(){}function iR(i,a){var u=Tn();a=a===void 0?null:a;var m=u.memoizedState;return a!==null&&f0(a,m[1])?m[0]:(u.memoizedState=[i,a],i)}function sR(i,a){var u=Tn();a=a===void 0?null:a;var m=u.memoizedState;if(a!==null&&f0(a,m[1]))return m[0];if(m=i(),Da){yt(!0);try{i()}finally{yt(!1)}}return u.memoizedState=[m,a],m}function x0(i,a,u){return u===void 0||(Fi&1073741824)!==0&&(Et&261930)===0?i.memoizedState=a:(i.memoizedState=u,i=aO(),st.lanes|=i,Ps|=i,u)}function aR(i,a,u,m){return eo(u,a)?u:Vl.current!==null?(i=x0(i,u,m),eo(i,a)||(zn=!0),i):(Fi&42)===0||(Fi&1073741824)!==0&&(Et&261930)===0?(zn=!0,i.memoizedState=u):(i=aO(),st.lanes|=i,Ps|=i,a)}function lR(i,a,u,m,y){var w=W.p;W.p=w!==0&&8>w?w:8;var N=H.T,z={};H.T=z,T0(i,!1,a,u);try{var J=y(),de=H.S;if(de!==null&&de(z,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var _e=f$(J,m);Au(i,a,_e,so(i))}else Au(i,a,m,so(i))}catch(Ee){Au(i,a,{then:function(){},status:"rejected",reason:Ee},so())}finally{W.p=w,N!==null&&z.types!==null&&(N.types=z.types),H.T=N}}function y$(){}function R0(i,a,u,m){if(i.tag!==5)throw Error(r(476));var y=cR(i).queue;lR(i,y,a,te,u===null?y$:function(){return uR(i),u(m)})}function cR(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:te},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:u},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function uR(i){var a=cR(i);a.next===null&&(a=i.alternate.memoizedState),Au(i,a.next.queue,{},so())}function O0(){return cr(Gu)}function dR(){return Tn().memoizedState}function fR(){return Tn().memoizedState}function _$(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var u=so();i=Os(u);var m=Ts(a,i,u);m!==null&&(Gr(m,a,u),xu(m,a,u)),a={cache:t0()},i.payload=a;return}a=a.return}}function b$(i,a,u){var m=so();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},dh(i)?pR(a,u):(u=qv(i,a,u,m),u!==null&&(Gr(u,i,m),mR(u,a,m)))}function hR(i,a,u){var m=so();Au(i,a,u,m)}function Au(i,a,u,m){var y={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(dh(i))pR(a,y);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=a.lastRenderedReducer,w!==null))try{var N=a.lastRenderedState,z=w(N,u);if(y.hasEagerState=!0,y.eagerState=z,eo(z,N))return Hf(i,a,y,0),en===null&&qf(),!1}catch{}if(u=qv(i,a,y,m),u!==null)return Gr(u,i,m),mR(u,a,m),!0}return!1}function T0(i,a,u,m){if(m={lane:2,revertLane:iy(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},dh(i)){if(a)throw Error(r(479))}else a=qv(i,u,m,2),a!==null&&Gr(a,i,2)}function dh(i){var a=i.alternate;return i===st||a!==null&&a===st}function pR(i,a){ql=oh=!0;var u=i.pending;u===null?a.next=a:(a.next=u.next,u.next=a),i.pending=a}function mR(i,a,u){if((u&4194048)!==0){var m=a.lanes;m&=i.pendingLanes,u|=m,a.lanes=u,sr(i,u)}}var Iu={readContext:cr,use:ah,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useLayoutEffect:En,useInsertionEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useSyncExternalStore:En,useId:En,useHostTransitionStatus:En,useFormState:En,useActionState:En,useOptimistic:En,useMemoCache:En,useCacheRefresh:En};Iu.useEffectEvent=En;var gR={readContext:cr,use:ah,useCallback:function(i,a){return Pr().memoizedState=[i,a===void 0?null:a],i},useContext:cr,useEffect:Jx,useImperativeHandle:function(i,a,u){u=u!=null?u.concat([i]):null,ch(4194308,4,rR.bind(null,a,i),u)},useLayoutEffect:function(i,a){return ch(4194308,4,i,a)},useInsertionEffect:function(i,a){ch(4,2,i,a)},useMemo:function(i,a){var u=Pr();a=a===void 0?null:a;var m=i();if(Da){yt(!0);try{i()}finally{yt(!1)}}return u.memoizedState=[m,a],m},useReducer:function(i,a,u){var m=Pr();if(u!==void 0){var y=u(a);if(Da){yt(!0);try{u(a)}finally{yt(!1)}}}else y=a;return m.memoizedState=m.baseState=y,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:y},m.queue=i,i=i.dispatch=b$.bind(null,st,i),[m.memoizedState,i]},useRef:function(i){var a=Pr();return i={current:i},a.memoizedState=i},useState:function(i){i=b0(i);var a=i.queue,u=hR.bind(null,st,a);return a.dispatch=u,[i.memoizedState,u]},useDebugValue:E0,useDeferredValue:function(i,a){var u=Pr();return x0(u,i,a)},useTransition:function(){var i=b0(!1);return i=lR.bind(null,st,i.queue,!0,!1),Pr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,u){var m=st,y=Pr();if(At){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),en===null)throw Error(r(349));(Et&127)!==0||$x(m,a,u)}y.memoizedState=u;var w={value:u,getSnapshot:a};return y.queue=w,Jx(zx.bind(null,m,w,i),[i]),m.flags|=2048,Gl(9,{destroy:void 0},jx.bind(null,m,w,u,a),null),u},useId:function(){var i=Pr(),a=en.identifierPrefix;if(At){var u=ui,m=ci;u=(m&~(1<<32-Ln(m)-1)).toString(32)+u,a="_"+a+"R_"+u,u=ih++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=h$++,a="_"+a+"r_"+u.toString(32)+"_";return i.memoizedState=a},useHostTransitionStatus:O0,useFormState:Zx,useActionState:Zx,useOptimistic:function(i){var a=Pr();a.memoizedState=a.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=T0.bind(null,st,!0,u),u.dispatch=a,[i,a]},useMemoCache:v0,useCacheRefresh:function(){return Pr().memoizedState=_$.bind(null,st)},useEffectEvent:function(i){var a=Pr(),u={impl:i};return a.memoizedState=u,function(){if((Ut&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},C0={readContext:cr,use:ah,useCallback:iR,useContext:cr,useEffect:S0,useImperativeHandle:oR,useInsertionEffect:tR,useLayoutEffect:nR,useMemo:sR,useReducer:lh,useRef:Xx,useState:function(){return lh(Bi)},useDebugValue:E0,useDeferredValue:function(i,a){var u=Tn();return aR(u,Yt.memoizedState,i,a)},useTransition:function(){var i=lh(Bi)[0],a=Tn().memoizedState;return[typeof i=="boolean"?i:Cu(i),a]},useSyncExternalStore:Lx,useId:dR,useHostTransitionStatus:O0,useFormState:Yx,useActionState:Yx,useOptimistic:function(i,a){var u=Tn();return Bx(u,Yt,i,a)},useMemoCache:v0,useCacheRefresh:fR};C0.useEffectEvent=eR;var vR={readContext:cr,use:ah,useCallback:iR,useContext:cr,useEffect:S0,useImperativeHandle:oR,useInsertionEffect:tR,useLayoutEffect:nR,useMemo:sR,useReducer:_0,useRef:Xx,useState:function(){return _0(Bi)},useDebugValue:E0,useDeferredValue:function(i,a){var u=Tn();return Yt===null?x0(u,i,a):aR(u,Yt.memoizedState,i,a)},useTransition:function(){var i=_0(Bi)[0],a=Tn().memoizedState;return[typeof i=="boolean"?i:Cu(i),a]},useSyncExternalStore:Lx,useId:dR,useHostTransitionStatus:O0,useFormState:Qx,useActionState:Qx,useOptimistic:function(i,a){var u=Tn();return Yt!==null?Bx(u,Yt,i,a):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:v0,useCacheRefresh:fR};vR.useEffectEvent=eR;function A0(i,a,u,m){a=i.memoizedState,u=u(m,a),u=u==null?a:h({},a,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var I0={enqueueSetState:function(i,a,u){i=i._reactInternals;var m=so(),y=Os(m);y.payload=a,u!=null&&(y.callback=u),a=Ts(i,y,m),a!==null&&(Gr(a,i,m),xu(a,i,m))},enqueueReplaceState:function(i,a,u){i=i._reactInternals;var m=so(),y=Os(m);y.tag=1,y.payload=a,u!=null&&(y.callback=u),a=Ts(i,y,m),a!==null&&(Gr(a,i,m),xu(a,i,m))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var u=so(),m=Os(u);m.tag=2,a!=null&&(m.callback=a),a=Ts(i,m,u),a!==null&&(Gr(a,i,u),xu(a,i,u))}};function yR(i,a,u,m,y,w,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,w,N):a.prototype&&a.prototype.isPureReactComponent?!gu(u,m)||!gu(y,w):!0}function _R(i,a,u,m){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,m),a.state!==i&&I0.enqueueReplaceState(a,a.state,null)}function La(i,a){var u=a;if("ref"in a){u={};for(var m in a)m!=="ref"&&(u[m]=a[m])}if(i=i.defaultProps){u===a&&(u=h({},u));for(var y in i)u[y]===void 0&&(u[y]=i[y])}return u}function bR(i){Vf(i)}function wR(i){console.error(i)}function SR(i){Vf(i)}function fh(i,a){try{var u=i.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(m){setTimeout(function(){throw m})}}function ER(i,a,u){try{var m=i.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function M0(i,a,u){return u=Os(u),u.tag=3,u.payload={element:null},u.callback=function(){fh(i,a)},u}function xR(i){return i=Os(i),i.tag=3,i}function RR(i,a,u,m){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var w=m.value;i.payload=function(){return y(w)},i.callback=function(){ER(a,u,m)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){ER(a,u,m),typeof y!="function"&&(Ns===null?Ns=new Set([this]):Ns.add(this));var z=m.stack;this.componentDidCatch(m.value,{componentStack:z!==null?z:""})})}function w$(i,a,u,m,y){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(a=u.alternate,a!==null&&jl(a,u,y,!0),u=no.current,u!==null){switch(u.tag){case 31:case 13:return Io===null?xh():u.alternate===null&&xn===0&&(xn=3),u.flags&=-257,u.flags|=65536,u.lanes=y,m===Jf?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([m]):a.add(m),ny(i,m,y)),!1;case 22:return u.flags|=65536,m===Jf?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([m]):u.add(m)),ny(i,m,y)),!1}throw Error(r(435,u.tag))}return ny(i,m,y),xh(),!1}if(At)return a=no.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=y,m!==Wv&&(i=Error(r(422),{cause:m}),_u(Oo(i,u)))):(m!==Wv&&(a=Error(r(423),{cause:m}),_u(Oo(a,u))),i=i.current.alternate,i.flags|=65536,y&=-y,i.lanes|=y,m=Oo(m,u),y=M0(i.stateNode,m,y),a0(i,y),xn!==4&&(xn=2)),!1;var w=Error(r(520),{cause:m});if(w=Oo(w,u),ju===null?ju=[w]:ju.push(w),xn!==4&&(xn=2),a===null)return!0;m=Oo(m,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,i=y&-y,u.lanes|=i,i=M0(u.stateNode,m,i),a0(u,i),!1;case 1:if(a=u.type,w=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ns===null||!Ns.has(w))))return u.flags|=65536,y&=-y,u.lanes|=y,y=xR(y),RR(y,i,u,m),a0(u,y),!1}u=u.return}while(u!==null);return!1}var P0=Error(r(461)),zn=!1;function ur(i,a,u,m){a.child=i===null?Ax(a,null,u,m):ka(a,i.child,u,m)}function OR(i,a,u,m,y){u=u.render;var w=a.ref;if("ref"in m){var N={};for(var z in m)z!=="ref"&&(N[z]=m[z])}else N=m;return Ia(a),m=h0(i,a,u,N,w,y),z=p0(),i!==null&&!zn?(m0(i,a,y),Vi(i,a,y)):(At&&z&&Zv(a),a.flags|=1,ur(i,a,m,y),a.child)}function TR(i,a,u,m,y){if(i===null){var w=u.type;return typeof w=="function"&&!Hv(w)&&w.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=w,CR(i,a,w,m,y)):(i=Kf(u.type,null,m,a,a.mode,y),i.ref=a.ref,i.return=a,a.child=i)}if(w=i.child,!U0(i,y)){var N=w.memoizedProps;if(u=u.compare,u=u!==null?u:gu,u(N,m)&&i.ref===a.ref)return Vi(i,a,y)}return a.flags|=1,i=$i(w,m),i.ref=a.ref,i.return=a,a.child=i}function CR(i,a,u,m,y){if(i!==null){var w=i.memoizedProps;if(gu(w,m)&&i.ref===a.ref)if(zn=!1,a.pendingProps=m=w,U0(i,y))(i.flags&131072)!==0&&(zn=!0);else return a.lanes=i.lanes,Vi(i,a,y)}return N0(i,a,u,m,y)}function AR(i,a,u,m){var y=m.children,w=i!==null?i.memoizedState:null;if(i===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((a.flags&128)!==0){if(w=w!==null?w.baseLanes|u:u,i!==null){for(m=a.child=i.child,y=0;m!==null;)y=y|m.lanes|m.childLanes,m=m.sibling;m=y&~w}else m=0,a.child=null;return IR(i,a,w,u,m)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&Qf(a,w!==null?w.cachePool:null),w!==null?Px(a,w):c0(),Nx(a);else return m=a.lanes=536870912,IR(i,a,w!==null?w.baseLanes|u:u,u,m)}else w!==null?(Qf(a,w.cachePool),Px(a,w),As(),a.memoizedState=null):(i!==null&&Qf(a,null),c0(),As());return ur(i,a,y,u),a.child}function Mu(i,a){return i!==null&&i.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function IR(i,a,u,m,y){var w=r0();return w=w===null?null:{parent:$n._currentValue,pool:w},a.memoizedState={baseLanes:u,cachePool:w},i!==null&&Qf(a,null),c0(),Nx(a),i!==null&&jl(i,a,m,!0),a.childLanes=y,null}function hh(i,a){return a=mh({mode:a.mode,children:a.children},i.mode),a.ref=i.ref,i.child=a,a.return=i,a}function MR(i,a,u){return ka(a,i.child,null,u),i=hh(a,a.pendingProps),i.flags|=2,ro(a),a.memoizedState=null,i}function S$(i,a,u){var m=a.pendingProps,y=(a.flags&128)!==0;if(a.flags&=-129,i===null){if(At){if(m.mode==="hidden")return i=hh(a,m),a.lanes=536870912,Mu(null,i);if(d0(a),(i=ln)?(i=VO(i,Ao),i=i!==null&&i.data==="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:ws!==null?{id:ci,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},u=px(i),u.return=a,a.child=u,lr=a,ln=null)):i=null,i===null)throw Es(a);return a.lanes=536870912,null}return hh(a,m)}var w=i.memoizedState;if(w!==null){var N=w.dehydrated;if(d0(a),y)if(a.flags&256)a.flags&=-257,a=MR(i,a,u);else if(a.memoizedState!==null)a.child=i.child,a.flags|=128,a=null;else throw Error(r(558));else if(zn||jl(i,a,u,!1),y=(u&i.childLanes)!==0,zn||y){if(m=en,m!==null&&(N=zr(m,u),N!==0&&N!==w.retryLane))throw w.retryLane=N,Oa(i,N),Gr(m,i,N),P0;xh(),a=MR(i,a,u)}else i=w.treeContext,ln=Mo(N.nextSibling),lr=a,At=!0,Ss=null,Ao=!1,i!==null&&vx(a,i),a=hh(a,m),a.flags|=4096;return a}return i=$i(i.child,{mode:m.mode,children:m.children}),i.ref=a.ref,a.child=i,i.return=a,i}function ph(i,a){var u=a.ref;if(u===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(a.flags|=4194816)}}function N0(i,a,u,m,y){return Ia(a),u=h0(i,a,u,m,void 0,y),m=p0(),i!==null&&!zn?(m0(i,a,y),Vi(i,a,y)):(At&&m&&Zv(a),a.flags|=1,ur(i,a,u,y),a.child)}function PR(i,a,u,m,y,w){return Ia(a),a.updateQueue=null,u=Dx(a,m,u,y),kx(i),m=p0(),i!==null&&!zn?(m0(i,a,w),Vi(i,a,w)):(At&&m&&Zv(a),a.flags|=1,ur(i,a,u,w),a.child)}function NR(i,a,u,m,y){if(Ia(a),a.stateNode===null){var w=kl,N=u.contextType;typeof N=="object"&&N!==null&&(w=cr(N)),w=new u(m,w),a.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=I0,a.stateNode=w,w._reactInternals=a,w=a.stateNode,w.props=m,w.state=a.memoizedState,w.refs={},i0(a),N=u.contextType,w.context=typeof N=="object"&&N!==null?cr(N):kl,w.state=a.memoizedState,N=u.getDerivedStateFromProps,typeof N=="function"&&(A0(a,u,N,m),w.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(N=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),N!==w.state&&I0.enqueueReplaceState(w,w.state,null),Ou(a,m,w,y),Ru(),w.state=a.memoizedState),typeof w.componentDidMount=="function"&&(a.flags|=4194308),m=!0}else if(i===null){w=a.stateNode;var z=a.memoizedProps,J=La(u,z);w.props=J;var de=w.context,_e=u.contextType;N=kl,typeof _e=="object"&&_e!==null&&(N=cr(_e));var Ee=u.getDerivedStateFromProps;_e=typeof Ee=="function"||typeof w.getSnapshotBeforeUpdate=="function",z=a.pendingProps!==z,_e||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(z||de!==N)&&_R(a,w,m,N),Rs=!1;var he=a.memoizedState;w.state=he,Ou(a,m,w,y),Ru(),de=a.memoizedState,z||he!==de||Rs?(typeof Ee=="function"&&(A0(a,u,Ee,m),de=a.memoizedState),(J=Rs||yR(a,u,J,m,he,de,N))?(_e||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(a.flags|=4194308)):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=m,a.memoizedState=de),w.props=m,w.state=de,w.context=N,m=J):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{w=a.stateNode,s0(i,a),N=a.memoizedProps,_e=La(u,N),w.props=_e,Ee=a.pendingProps,he=w.context,de=u.contextType,J=kl,typeof de=="object"&&de!==null&&(J=cr(de)),z=u.getDerivedStateFromProps,(de=typeof z=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(N!==Ee||he!==J)&&_R(a,w,m,J),Rs=!1,he=a.memoizedState,w.state=he,Ou(a,m,w,y),Ru();var ge=a.memoizedState;N!==Ee||he!==ge||Rs||i!==null&&i.dependencies!==null&&Yf(i.dependencies)?(typeof z=="function"&&(A0(a,u,z,m),ge=a.memoizedState),(_e=Rs||yR(a,u,_e,m,he,ge,J)||i!==null&&i.dependencies!==null&&Yf(i.dependencies))?(de||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(m,ge,J),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(m,ge,J)),typeof w.componentDidUpdate=="function"&&(a.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof w.componentDidUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=ge),w.props=m,w.state=ge,w.context=J,m=_e):(typeof w.componentDidUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=1024),m=!1)}return w=m,ph(i,a),m=(a.flags&128)!==0,w||m?(w=a.stateNode,u=m&&typeof u.getDerivedStateFromError!="function"?null:w.render(),a.flags|=1,i!==null&&m?(a.child=ka(a,i.child,null,y),a.child=ka(a,null,u,y)):ur(i,a,u,y),a.memoizedState=w.state,i=a.child):i=Vi(i,a,y),i}function kR(i,a,u,m){return Ca(),a.flags|=256,ur(i,a,u,m),a.child}var k0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function D0(i){return{baseLanes:i,cachePool:Ex()}}function L0(i,a,u){return i=i!==null?i.childLanes&~u:0,a&&(i|=io),i}function DR(i,a,u){var m=a.pendingProps,y=!1,w=(a.flags&128)!==0,N;if((N=w)||(N=i!==null&&i.memoizedState===null?!1:(On.current&2)!==0),N&&(y=!0,a.flags&=-129),N=(a.flags&32)!==0,a.flags&=-33,i===null){if(At){if(y?Cs(a):As(),(i=ln)?(i=VO(i,Ao),i=i!==null&&i.data!=="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:ws!==null?{id:ci,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},u=px(i),u.return=a,a.child=u,lr=a,ln=null)):i=null,i===null)throw Es(a);return yy(i)?a.lanes=32:a.lanes=536870912,null}var z=m.children;return m=m.fallback,y?(As(),y=a.mode,z=mh({mode:"hidden",children:z},y),m=Ta(m,y,u,null),z.return=a,m.return=a,z.sibling=m,a.child=z,m=a.child,m.memoizedState=D0(u),m.childLanes=L0(i,N,u),a.memoizedState=k0,Mu(null,m)):(Cs(a),$0(a,z))}var J=i.memoizedState;if(J!==null&&(z=J.dehydrated,z!==null)){if(w)a.flags&256?(Cs(a),a.flags&=-257,a=j0(i,a,u)):a.memoizedState!==null?(As(),a.child=i.child,a.flags|=128,a=null):(As(),z=m.fallback,y=a.mode,m=mh({mode:"visible",children:m.children},y),z=Ta(z,y,u,null),z.flags|=2,m.return=a,z.return=a,m.sibling=z,a.child=m,ka(a,i.child,null,u),m=a.child,m.memoizedState=D0(u),m.childLanes=L0(i,N,u),a.memoizedState=k0,a=Mu(null,m));else if(Cs(a),yy(z)){if(N=z.nextSibling&&z.nextSibling.dataset,N)var de=N.dgst;N=de,m=Error(r(419)),m.stack="",m.digest=N,_u({value:m,source:null,stack:null}),a=j0(i,a,u)}else if(zn||jl(i,a,u,!1),N=(u&i.childLanes)!==0,zn||N){if(N=en,N!==null&&(m=zr(N,u),m!==0&&m!==J.retryLane))throw J.retryLane=m,Oa(i,m),Gr(N,i,m),P0;vy(z)||xh(),a=j0(i,a,u)}else vy(z)?(a.flags|=192,a.child=i.child,a=null):(i=J.treeContext,ln=Mo(z.nextSibling),lr=a,At=!0,Ss=null,Ao=!1,i!==null&&vx(a,i),a=$0(a,m.children),a.flags|=4096);return a}return y?(As(),z=m.fallback,y=a.mode,J=i.child,de=J.sibling,m=$i(J,{mode:"hidden",children:m.children}),m.subtreeFlags=J.subtreeFlags&65011712,de!==null?z=$i(de,z):(z=Ta(z,y,u,null),z.flags|=2),z.return=a,m.return=a,m.sibling=z,a.child=m,Mu(null,m),m=a.child,z=i.child.memoizedState,z===null?z=D0(u):(y=z.cachePool,y!==null?(J=$n._currentValue,y=y.parent!==J?{parent:J,pool:J}:y):y=Ex(),z={baseLanes:z.baseLanes|u,cachePool:y}),m.memoizedState=z,m.childLanes=L0(i,N,u),a.memoizedState=k0,Mu(i.child,m)):(Cs(a),u=i.child,i=u.sibling,u=$i(u,{mode:"visible",children:m.children}),u.return=a,u.sibling=null,i!==null&&(N=a.deletions,N===null?(a.deletions=[i],a.flags|=16):N.push(i)),a.child=u,a.memoizedState=null,u)}function $0(i,a){return a=mh({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function mh(i,a){return i=to(22,i,null,a),i.lanes=0,i}function j0(i,a,u){return ka(a,i.child,null,u),i=$0(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function LR(i,a,u){i.lanes|=a;var m=i.alternate;m!==null&&(m.lanes|=a),Jv(i.return,a,u)}function z0(i,a,u,m,y,w){var N=i.memoizedState;N===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:y,treeForkCount:w}:(N.isBackwards=a,N.rendering=null,N.renderingStartTime=0,N.last=m,N.tail=u,N.tailMode=y,N.treeForkCount=w)}function $R(i,a,u){var m=a.pendingProps,y=m.revealOrder,w=m.tail;m=m.children;var N=On.current,z=(N&2)!==0;if(z?(N=N&1|2,a.flags|=128):N&=1,V(On,N),ur(i,a,m,u),m=At?yu:0,!z&&i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&LR(i,u,a);else if(i.tag===19)LR(i,u,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(y){case"forwards":for(u=a.child,y=null;u!==null;)i=u.alternate,i!==null&&rh(i)===null&&(y=u),u=u.sibling;u=y,u===null?(y=a.child,a.child=null):(y=u.sibling,u.sibling=null),z0(a,!1,y,u,w,m);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=a.child,a.child=null;y!==null;){if(i=y.alternate,i!==null&&rh(i)===null){a.child=y;break}i=y.sibling,y.sibling=u,u=y,y=i}z0(a,!0,u,null,w,m);break;case"together":z0(a,!1,null,null,void 0,m);break;default:a.memoizedState=null}return a.child}function Vi(i,a,u){if(i!==null&&(a.dependencies=i.dependencies),Ps|=a.lanes,(u&a.childLanes)===0)if(i!==null){if(jl(i,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,u=$i(i,i.pendingProps),a.child=u,u.return=a;i.sibling!==null;)i=i.sibling,u=u.sibling=$i(i,i.pendingProps),u.return=a;u.sibling=null}return a.child}function U0(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&Yf(i)))}function E$(i,a,u){switch(a.tag){case 3:pe(a,a.stateNode.containerInfo),xs(a,$n,i.memoizedState.cache),Ca();break;case 27:case 5:je(a);break;case 4:pe(a,a.stateNode.containerInfo);break;case 10:xs(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,d0(a),null;break;case 13:var m=a.memoizedState;if(m!==null)return m.dehydrated!==null?(Cs(a),a.flags|=128,null):(u&a.child.childLanes)!==0?DR(i,a,u):(Cs(a),i=Vi(i,a,u),i!==null?i.sibling:null);Cs(a);break;case 19:var y=(i.flags&128)!==0;if(m=(u&a.childLanes)!==0,m||(jl(i,a,u,!1),m=(u&a.childLanes)!==0),y){if(m)return $R(i,a,u);a.flags|=128}if(y=a.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),V(On,On.current),m)break;return null;case 22:return a.lanes=0,AR(i,a,u,a.pendingProps);case 24:xs(a,$n,i.memoizedState.cache)}return Vi(i,a,u)}function jR(i,a,u){if(i!==null)if(i.memoizedProps!==a.pendingProps)zn=!0;else{if(!U0(i,u)&&(a.flags&128)===0)return zn=!1,E$(i,a,u);zn=(i.flags&131072)!==0}else zn=!1,At&&(a.flags&1048576)!==0&&gx(a,yu,a.index);switch(a.lanes=0,a.tag){case 16:e:{var m=a.pendingProps;if(i=Pa(a.elementType),a.type=i,typeof i=="function")Hv(i)?(m=La(i,m),a.tag=1,a=NR(null,a,i,m,u)):(a.tag=0,a=N0(null,a,i,m,u));else{if(i!=null){var y=i.$$typeof;if(y===R){a.tag=11,a=OR(null,a,i,m,u);break e}else if(y===I){a.tag=14,a=TR(null,a,i,m,u);break e}}throw a=Z(i)||i,Error(r(306,a,""))}}return a;case 0:return N0(i,a,a.type,a.pendingProps,u);case 1:return m=a.type,y=La(m,a.pendingProps),NR(i,a,m,y,u);case 3:e:{if(pe(a,a.stateNode.containerInfo),i===null)throw Error(r(387));m=a.pendingProps;var w=a.memoizedState;y=w.element,s0(i,a),Ou(a,m,null,u);var N=a.memoizedState;if(m=N.cache,xs(a,$n,m),m!==w.cache&&e0(a,[$n],u,!0),Ru(),m=N.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:N.cache},a.updateQueue.baseState=w,a.memoizedState=w,a.flags&256){a=kR(i,a,m,u);break e}else if(m!==y){y=Oo(Error(r(424)),a),_u(y),a=kR(i,a,m,u);break e}else for(i=a.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,ln=Mo(i.firstChild),lr=a,At=!0,Ss=null,Ao=!0,u=Ax(a,null,m,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ca(),m===y){a=Vi(i,a,u);break e}ur(i,a,m,u)}a=a.child}return a;case 26:return ph(i,a),i===null?(u=YO(a.type,null,a.pendingProps,null))?a.memoizedState=u:At||(u=a.type,i=a.pendingProps,m=Mh(X.current).createElement(u),m[ar]=a,m[Ur]=i,dr(m,u,i),er(m),a.stateNode=m):a.memoizedState=YO(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return je(a),i===null&&At&&(m=a.stateNode=GO(a.type,a.pendingProps,X.current),lr=a,Ao=!0,y=ln,$s(a.type)?(_y=y,ln=Mo(m.firstChild)):ln=y),ur(i,a,a.pendingProps.children,u),ph(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&&At&&((y=m=ln)&&(m=J$(m,a.type,a.pendingProps,Ao),m!==null?(a.stateNode=m,lr=a,ln=Mo(m.firstChild),Ao=!1,y=!0):y=!1),y||Es(a)),je(a),y=a.type,w=a.pendingProps,N=i!==null?i.memoizedProps:null,m=w.children,py(y,w)?m=null:N!==null&&py(y,N)&&(a.flags|=32),a.memoizedState!==null&&(y=h0(i,a,p$,null,null,u),Gu._currentValue=y),ph(i,a),ur(i,a,m,u),a.child;case 6:return i===null&&At&&((i=u=ln)&&(u=ej(u,a.pendingProps,Ao),u!==null?(a.stateNode=u,lr=a,ln=null,i=!0):i=!1),i||Es(a)),null;case 13:return DR(i,a,u);case 4:return pe(a,a.stateNode.containerInfo),m=a.pendingProps,i===null?a.child=ka(a,null,m,u):ur(i,a,m,u),a.child;case 11:return OR(i,a,a.type,a.pendingProps,u);case 7:return ur(i,a,a.pendingProps,u),a.child;case 8:return ur(i,a,a.pendingProps.children,u),a.child;case 12:return ur(i,a,a.pendingProps.children,u),a.child;case 10:return m=a.pendingProps,xs(a,a.type,m.value),ur(i,a,m.children,u),a.child;case 9:return y=a.type._context,m=a.pendingProps.children,Ia(a),y=cr(y),m=m(y),a.flags|=1,ur(i,a,m,u),a.child;case 14:return TR(i,a,a.type,a.pendingProps,u);case 15:return CR(i,a,a.type,a.pendingProps,u);case 19:return $R(i,a,u);case 31:return S$(i,a,u);case 22:return AR(i,a,u,a.pendingProps);case 24:return Ia(a),m=cr($n),i===null?(y=r0(),y===null&&(y=en,w=t0(),y.pooledCache=w,w.refCount++,w!==null&&(y.pooledCacheLanes|=u),y=w),a.memoizedState={parent:m,cache:y},i0(a),xs(a,$n,y)):((i.lanes&u)!==0&&(s0(i,a),Ou(a,null,null,u),Ru()),y=i.memoizedState,w=a.memoizedState,y.parent!==m?(y={parent:m,cache:m},a.memoizedState=y,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=y),xs(a,$n,m)):(m=w.cache,xs(a,$n,m),m!==y.cache&&e0(a,[$n],u,!0))),ur(i,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function qi(i){i.flags|=4}function F0(i,a,u,m,y){if((a=(i.mode&32)!==0)&&(a=!1),a){if(i.flags|=16777216,(y&335544128)===y)if(i.stateNode.complete)i.flags|=8192;else if(dO())i.flags|=8192;else throw Na=Jf,o0}else i.flags&=-16777217}function zR(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!e2(a))if(dO())i.flags|=8192;else throw Na=Jf,o0}function gh(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?Zt():536870912,i.lanes|=a,Wl|=a)}function Pu(i,a){if(!At)switch(i.tailMode){case"hidden":a=i.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function cn(i){var a=i.alternate!==null&&i.alternate.child===i.child,u=0,m=0;if(a)for(var y=i.child;y!==null;)u|=y.lanes|y.childLanes,m|=y.subtreeFlags&65011712,m|=y.flags&65011712,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)u|=y.lanes|y.childLanes,m|=y.subtreeFlags,m|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=m,i.childLanes=u,a}function x$(i,a,u){var m=a.pendingProps;switch(Yv(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cn(a),null;case 1:return cn(a),null;case 3:return u=a.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),a.memoizedState.cache!==m&&(a.flags|=2048),Ui($n),xe(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&($l(a)?qi(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Qv())),cn(a),null;case 26:var y=a.type,w=a.memoizedState;return i===null?(qi(a),w!==null?(cn(a),zR(a,w)):(cn(a),F0(a,y,null,m,u))):w?w!==i.memoizedState?(qi(a),cn(a),zR(a,w)):(cn(a),a.flags&=-16777217):(i=i.memoizedProps,i!==m&&qi(a),cn(a),F0(a,y,i,m,u)),null;case 27:if(Y(a),u=X.current,y=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==m&&qi(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return cn(a),null}i=D.current,$l(a)?yx(a):(i=GO(y,m,u),a.stateNode=i,qi(a))}return cn(a),null;case 5:if(Y(a),y=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==m&&qi(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return cn(a),null}if(w=D.current,$l(a))yx(a);else{var N=Mh(X.current);switch(w){case 1:w=N.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:w=N.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":w=N.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":w=N.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":w=N.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof m.is=="string"?N.createElement("select",{is:m.is}):N.createElement("select"),m.multiple?w.multiple=!0:m.size&&(w.size=m.size);break;default:w=typeof m.is=="string"?N.createElement(y,{is:m.is}):N.createElement(y)}}w[ar]=a,w[Ur]=m;e:for(N=a.child;N!==null;){if(N.tag===5||N.tag===6)w.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===a)break e;for(;N.sibling===null;){if(N.return===null||N.return===a)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}a.stateNode=w;e:switch(dr(w,y,m),y){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&qi(a)}}return cn(a),F0(a,a.type,i===null?null:i.memoizedProps,a.pendingProps,u),null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==m&&qi(a);else{if(typeof m!="string"&&a.stateNode===null)throw Error(r(166));if(i=X.current,$l(a)){if(i=a.stateNode,u=a.memoizedProps,m=null,y=lr,y!==null)switch(y.tag){case 27:case 5:m=y.memoizedProps}i[ar]=a,i=!!(i.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||DO(i.nodeValue,u)),i||Es(a,!0)}else i=Mh(i).createTextNode(m),i[ar]=a,a.stateNode=i}return cn(a),null;case 31:if(u=a.memoizedState,i===null||i.memoizedState!==null){if(m=$l(a),u!==null){if(i===null){if(!m)throw Error(r(318));if(i=a.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[ar]=a}else Ca(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;cn(a),i=!1}else u=Qv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return a.flags&256?(ro(a),a):(ro(a),null);if((a.flags&128)!==0)throw Error(r(558))}return cn(a),null;case 13:if(m=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(y=$l(a),m!==null&&m.dehydrated!==null){if(i===null){if(!y)throw Error(r(318));if(y=a.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[ar]=a}else Ca(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;cn(a),y=!1}else y=Qv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=y),y=!0;if(!y)return a.flags&256?(ro(a),a):(ro(a),null)}return ro(a),(a.flags&128)!==0?(a.lanes=u,a):(u=m!==null,i=i!==null&&i.memoizedState!==null,u&&(m=a.child,y=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(y=m.alternate.memoizedState.cachePool.pool),w=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==y&&(m.flags|=2048)),u!==i&&u&&(a.child.flags|=8192),gh(a,a.updateQueue),cn(a),null);case 4:return xe(),i===null&&cy(a.stateNode.containerInfo),cn(a),null;case 10:return Ui(a.type),cn(a),null;case 19:if(G(On),m=a.memoizedState,m===null)return cn(a),null;if(y=(a.flags&128)!==0,w=m.rendering,w===null)if(y)Pu(m,!1);else{if(xn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(w=rh(i),w!==null){for(a.flags|=128,Pu(m,!1),i=w.updateQueue,a.updateQueue=i,gh(a,i),a.subtreeFlags=0,i=u,u=a.child;u!==null;)hx(u,i),u=u.sibling;return V(On,On.current&1|2),At&&ji(a,m.treeForkCount),a.child}i=i.sibling}m.tail!==null&&K()>wh&&(a.flags|=128,y=!0,Pu(m,!1),a.lanes=4194304)}else{if(!y)if(i=rh(w),i!==null){if(a.flags|=128,y=!0,i=i.updateQueue,a.updateQueue=i,gh(a,i),Pu(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!At)return cn(a),null}else 2*K()-m.renderingStartTime>wh&&u!==536870912&&(a.flags|=128,y=!0,Pu(m,!1),a.lanes=4194304);m.isBackwards?(w.sibling=a.child,a.child=w):(i=m.last,i!==null?i.sibling=w:a.child=w,m.last=w)}return m.tail!==null?(i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=K(),i.sibling=null,u=On.current,V(On,y?u&1|2:u&1),At&&ji(a,m.treeForkCount),i):(cn(a),null);case 22:case 23:return ro(a),u0(),m=a.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(a.flags|=8192):m&&(a.flags|=8192),m?(u&536870912)!==0&&(a.flags&128)===0&&(cn(a),a.subtreeFlags&6&&(a.flags|=8192)):cn(a),u=a.updateQueue,u!==null&&gh(a,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==u&&(a.flags|=2048),i!==null&&G(Ma),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Ui($n),cn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function R$(i,a){switch(Yv(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Ui($n),xe(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return Y(a),null;case 31:if(a.memoizedState!==null){if(ro(a),a.alternate===null)throw Error(r(340));Ca()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 13:if(ro(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ca()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return G(On),null;case 4:return xe(),null;case 10:return Ui(a.type),null;case 22:case 23:return ro(a),u0(),i!==null&&G(Ma),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return Ui($n),null;case 25:return null;default:return null}}function UR(i,a){switch(Yv(a),a.tag){case 3:Ui($n),xe();break;case 26:case 27:case 5:Y(a);break;case 4:xe();break;case 31:a.memoizedState!==null&&ro(a);break;case 13:ro(a);break;case 19:G(On);break;case 10:Ui(a.type);break;case 22:case 23:ro(a),u0(),i!==null&&G(Ma);break;case 24:Ui($n)}}function Nu(i,a){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var y=m.next;u=y;do{if((u.tag&i)===i){m=void 0;var w=u.create,N=u.inst;m=w(),N.destroy=m}u=u.next}while(u!==y)}}catch(z){qt(a,a.return,z)}}function Is(i,a,u){try{var m=a.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var w=y.next;m=w;do{if((m.tag&i)===i){var N=m.inst,z=N.destroy;if(z!==void 0){N.destroy=void 0,y=a;var J=u,de=z;try{de()}catch(_e){qt(y,J,_e)}}}m=m.next}while(m!==w)}}catch(_e){qt(a,a.return,_e)}}function FR(i){var a=i.updateQueue;if(a!==null){var u=i.stateNode;try{Mx(a,u)}catch(m){qt(i,i.return,m)}}}function BR(i,a,u){u.props=La(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(m){qt(i,a,m)}}function ku(i,a){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var m=i.stateNode;break;case 30:m=i.stateNode;break;default:m=i.stateNode}typeof u=="function"?i.refCleanup=u(m):u.current=m}}catch(y){qt(i,a,y)}}function di(i,a){var u=i.ref,m=i.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(y){qt(i,a,y)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){qt(i,a,y)}else u.current=null}function VR(i){var a=i.type,u=i.memoizedProps,m=i.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&m.focus();break e;case"img":u.src?m.src=u.src:u.srcSet&&(m.srcset=u.srcSet)}}catch(y){qt(i,i.return,y)}}function B0(i,a,u){try{var m=i.stateNode;K$(m,i.type,u,a),m[Ur]=a}catch(y){qt(i,i.return,y)}}function qR(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&$s(i.type)||i.tag===4}function V0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||qR(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&$s(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function q0(i,a,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(i),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Di));else if(m!==4&&(m===27&&$s(i.type)&&(u=i.stateNode,a=null),i=i.child,i!==null))for(q0(i,a,u),i=i.sibling;i!==null;)q0(i,a,u),i=i.sibling}function vh(i,a,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?u.insertBefore(i,a):u.appendChild(i);else if(m!==4&&(m===27&&$s(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(vh(i,a,u),i=i.sibling;i!==null;)vh(i,a,u),i=i.sibling}function HR(i){var a=i.stateNode,u=i.memoizedProps;try{for(var m=i.type,y=a.attributes;y.length;)a.removeAttributeNode(y[0]);dr(a,m,u),a[ar]=i,a[Ur]=u}catch(w){qt(i,i.return,w)}}var Hi=!1,Un=!1,H0=!1,GR=typeof WeakSet=="function"?WeakSet:Set,tr=null;function O$(i,a){if(i=i.containerInfo,fy=jh,i=ox(i),jv(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var y=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{u.nodeType,w.nodeType}catch{u=null;break e}var N=0,z=-1,J=-1,de=0,_e=0,Ee=i,he=null;t:for(;;){for(var ge;Ee!==u||y!==0&&Ee.nodeType!==3||(z=N+y),Ee!==w||m!==0&&Ee.nodeType!==3||(J=N+m),Ee.nodeType===3&&(N+=Ee.nodeValue.length),(ge=Ee.firstChild)!==null;)he=Ee,Ee=ge;for(;;){if(Ee===i)break t;if(he===u&&++de===y&&(z=N),he===w&&++_e===m&&(J=N),(ge=Ee.nextSibling)!==null)break;Ee=he,he=Ee.parentNode}Ee=ge}u=z===-1||J===-1?null:{start:z,end:J}}else u=null}u=u||{start:0,end:0}}else u=null;for(hy={focusedElem:i,selectionRange:u},jh=!1,tr=a;tr!==null;)if(a=tr,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,tr=i;else for(;tr!==null;){switch(a=tr,w=a.alternate,i=a.flags,a.tag){case 0:if((i&4)!==0&&(i=a.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)y=i[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&w!==null){i=void 0,u=a,y=w.memoizedProps,w=w.memoizedState,m=u.stateNode;try{var He=La(u.type,y);i=m.getSnapshotBeforeUpdate(He,w),m.__reactInternalSnapshotBeforeUpdate=i}catch(nt){qt(u,u.return,nt)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,u=i.nodeType,u===9)gy(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":gy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=a.sibling,i!==null){i.return=a.return,tr=i;break}tr=a.return}}function KR(i,a,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:Ki(i,u),m&4&&Nu(5,u);break;case 1:if(Ki(i,u),m&4)if(i=u.stateNode,a===null)try{i.componentDidMount()}catch(N){qt(u,u.return,N)}else{var y=La(u.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(y,a,i.__reactInternalSnapshotBeforeUpdate)}catch(N){qt(u,u.return,N)}}m&64&&FR(u),m&512&&ku(u,u.return);break;case 3:if(Ki(i,u),m&64&&(i=u.updateQueue,i!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{Mx(i,a)}catch(N){qt(u,u.return,N)}}break;case 27:a===null&&m&4&&HR(u);case 26:case 5:Ki(i,u),a===null&&m&4&&VR(u),m&512&&ku(u,u.return);break;case 12:Ki(i,u);break;case 31:Ki(i,u),m&4&&WR(i,u);break;case 13:Ki(i,u),m&4&&QR(i,u),m&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=D$.bind(null,u),tj(i,u))));break;case 22:if(m=u.memoizedState!==null||Hi,!m){a=a!==null&&a.memoizedState!==null||Un,y=Hi;var w=Un;Hi=m,(Un=a)&&!w?Zi(i,u,(u.subtreeFlags&8772)!==0):Ki(i,u),Hi=y,Un=w}break;case 30:break;default:Ki(i,u)}}function ZR(i){var a=i.alternate;a!==null&&(i.alternate=null,ZR(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&wv(a)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var hn=null,Br=!1;function Gi(i,a,u){for(u=u.child;u!==null;)YR(i,a,u),u=u.sibling}function YR(i,a,u){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(vt,u)}catch{}switch(u.tag){case 26:Un||di(u,a),Gi(i,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Un||di(u,a);var m=hn,y=Br;$s(u.type)&&(hn=u.stateNode,Br=!1),Gi(i,a,u),Vu(u.stateNode),hn=m,Br=y;break;case 5:Un||di(u,a);case 6:if(m=hn,y=Br,hn=null,Gi(i,a,u),hn=m,Br=y,hn!==null)if(Br)try{(hn.nodeType===9?hn.body:hn.nodeName==="HTML"?hn.ownerDocument.body:hn).removeChild(u.stateNode)}catch(w){qt(u,a,w)}else try{hn.removeChild(u.stateNode)}catch(w){qt(u,a,w)}break;case 18:hn!==null&&(Br?(i=hn,FO(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),oc(i)):FO(hn,u.stateNode));break;case 4:m=hn,y=Br,hn=u.stateNode.containerInfo,Br=!0,Gi(i,a,u),hn=m,Br=y;break;case 0:case 11:case 14:case 15:Is(2,u,a),Un||Is(4,u,a),Gi(i,a,u);break;case 1:Un||(di(u,a),m=u.stateNode,typeof m.componentWillUnmount=="function"&&BR(u,a,m)),Gi(i,a,u);break;case 21:Gi(i,a,u);break;case 22:Un=(m=Un)||u.memoizedState!==null,Gi(i,a,u),Un=m;break;default:Gi(i,a,u)}}function WR(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{oc(i)}catch(u){qt(a,a.return,u)}}}function QR(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{oc(i)}catch(u){qt(a,a.return,u)}}function T$(i){switch(i.tag){case 31:case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new GR),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new GR),a;default:throw Error(r(435,i.tag))}}function yh(i,a){var u=T$(i);a.forEach(function(m){if(!u.has(m)){u.add(m);var y=L$.bind(null,i,m);m.then(y,y)}})}function Vr(i,a){var u=a.deletions;if(u!==null)for(var m=0;m<u.length;m++){var y=u[m],w=i,N=a,z=N;e:for(;z!==null;){switch(z.tag){case 27:if($s(z.type)){hn=z.stateNode,Br=!1;break e}break;case 5:hn=z.stateNode,Br=!1;break e;case 3:case 4:hn=z.stateNode.containerInfo,Br=!0;break e}z=z.return}if(hn===null)throw Error(r(160));YR(w,N,y),hn=null,Br=!1,w=y.alternate,w!==null&&(w.return=null),y.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)XR(a,i),a=a.sibling}var Zo=null;function XR(i,a){var u=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Vr(a,i),qr(i),m&4&&(Is(3,i,i.return),Nu(3,i),Is(5,i,i.return));break;case 1:Vr(a,i),qr(i),m&512&&(Un||u===null||di(u,u.return)),m&64&&Hi&&(i=i.updateQueue,i!==null&&(m=i.callbacks,m!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?m:u.concat(m))));break;case 26:var y=Zo;if(Vr(a,i),qr(i),m&512&&(Un||u===null||di(u,u.return)),m&4){var w=u!==null?u.memoizedState:null;if(m=i.memoizedState,u===null)if(m===null)if(i.stateNode===null){e:{m=i.type,u=i.memoizedProps,y=y.ownerDocument||y;t:switch(m){case"title":w=y.getElementsByTagName("title")[0],(!w||w[au]||w[ar]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=y.createElement(m),y.head.insertBefore(w,y.querySelector("head > title"))),dr(w,m,u),w[ar]=i,er(w),m=w;break e;case"link":var N=XO("link","href",y).get(m+(u.href||""));if(N){for(var z=0;z<N.length;z++)if(w=N[z],w.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&w.getAttribute("rel")===(u.rel==null?null:u.rel)&&w.getAttribute("title")===(u.title==null?null:u.title)&&w.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(z,1);break t}}w=y.createElement(m),dr(w,m,u),y.head.appendChild(w);break;case"meta":if(N=XO("meta","content",y).get(m+(u.content||""))){for(z=0;z<N.length;z++)if(w=N[z],w.getAttribute("content")===(u.content==null?null:""+u.content)&&w.getAttribute("name")===(u.name==null?null:u.name)&&w.getAttribute("property")===(u.property==null?null:u.property)&&w.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&w.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(z,1);break t}}w=y.createElement(m),dr(w,m,u),y.head.appendChild(w);break;default:throw Error(r(468,m))}w[ar]=i,er(w),m=w}i.stateNode=m}else JO(y,i.type,i.stateNode);else i.stateNode=QO(y,m,i.memoizedProps);else w!==m?(w===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):w.count--,m===null?JO(y,i.type,i.stateNode):QO(y,m,i.memoizedProps)):m===null&&i.stateNode!==null&&B0(i,i.memoizedProps,u.memoizedProps)}break;case 27:Vr(a,i),qr(i),m&512&&(Un||u===null||di(u,u.return)),u!==null&&m&4&&B0(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Vr(a,i),qr(i),m&512&&(Un||u===null||di(u,u.return)),i.flags&32){y=i.stateNode;try{Tl(y,"")}catch(He){qt(i,i.return,He)}}m&4&&i.stateNode!=null&&(y=i.memoizedProps,B0(i,y,u!==null?u.memoizedProps:y)),m&1024&&(H0=!0);break;case 6:if(Vr(a,i),qr(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,u=i.stateNode;try{u.nodeValue=m}catch(He){qt(i,i.return,He)}}break;case 3:if(kh=null,y=Zo,Zo=Ph(a.containerInfo),Vr(a,i),Zo=y,qr(i),m&4&&u!==null&&u.memoizedState.isDehydrated)try{oc(a.containerInfo)}catch(He){qt(i,i.return,He)}H0&&(H0=!1,JR(i));break;case 4:m=Zo,Zo=Ph(i.stateNode.containerInfo),Vr(a,i),qr(i),Zo=m;break;case 12:Vr(a,i),qr(i);break;case 31:Vr(a,i),qr(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,yh(i,m)));break;case 13:Vr(a,i),qr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(bh=K()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,yh(i,m)));break;case 22:y=i.memoizedState!==null;var J=u!==null&&u.memoizedState!==null,de=Hi,_e=Un;if(Hi=de||y,Un=_e||J,Vr(a,i),Un=_e,Hi=de,qr(i),m&8192)e:for(a=i.stateNode,a._visibility=y?a._visibility&-2:a._visibility|1,y&&(u===null||J||Hi||Un||$a(i)),u=null,a=i;;){if(a.tag===5||a.tag===26){if(u===null){J=u=a;try{if(w=J.stateNode,y)N=w.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{z=J.stateNode;var Ee=J.memoizedProps.style,he=Ee!=null&&Ee.hasOwnProperty("display")?Ee.display:null;z.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(He){qt(J,J.return,He)}}}else if(a.tag===6){if(u===null){J=a;try{J.stateNode.nodeValue=y?"":J.memoizedProps}catch(He){qt(J,J.return,He)}}}else if(a.tag===18){if(u===null){J=a;try{var ge=J.stateNode;y?BO(ge,!0):BO(J.stateNode,!1)}catch(He){qt(J,J.return,He)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}m&4&&(m=i.updateQueue,m!==null&&(u=m.retryQueue,u!==null&&(m.retryQueue=null,yh(i,u))));break;case 19:Vr(a,i),qr(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,yh(i,m)));break;case 30:break;case 21:break;default:Vr(a,i),qr(i)}}function qr(i){var a=i.flags;if(a&2){try{for(var u,m=i.return;m!==null;){if(qR(m)){u=m;break}m=m.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var y=u.stateNode,w=V0(i);vh(i,w,y);break;case 5:var N=u.stateNode;u.flags&32&&(Tl(N,""),u.flags&=-33);var z=V0(i);vh(i,z,N);break;case 3:case 4:var J=u.stateNode.containerInfo,de=V0(i);q0(i,de,J);break;default:throw Error(r(161))}}catch(_e){qt(i,i.return,_e)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function JR(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;JR(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function Ki(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)KR(i,a.alternate,a),a=a.sibling}function $a(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:Is(4,a,a.return),$a(a);break;case 1:di(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&BR(a,a.return,u),$a(a);break;case 27:Vu(a.stateNode);case 26:case 5:di(a,a.return),$a(a);break;case 22:a.memoizedState===null&&$a(a);break;case 30:$a(a);break;default:$a(a)}i=i.sibling}}function Zi(i,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var m=a.alternate,y=i,w=a,N=w.flags;switch(w.tag){case 0:case 11:case 15:Zi(y,w,u),Nu(4,w);break;case 1:if(Zi(y,w,u),m=w,y=m.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(de){qt(m,m.return,de)}if(m=w,y=m.updateQueue,y!==null){var z=m.stateNode;try{var J=y.shared.hiddenCallbacks;if(J!==null)for(y.shared.hiddenCallbacks=null,y=0;y<J.length;y++)Ix(J[y],z)}catch(de){qt(m,m.return,de)}}u&&N&64&&FR(w),ku(w,w.return);break;case 27:HR(w);case 26:case 5:Zi(y,w,u),u&&m===null&&N&4&&VR(w),ku(w,w.return);break;case 12:Zi(y,w,u);break;case 31:Zi(y,w,u),u&&N&4&&WR(y,w);break;case 13:Zi(y,w,u),u&&N&4&&QR(y,w);break;case 22:w.memoizedState===null&&Zi(y,w,u),ku(w,w.return);break;case 30:break;default:Zi(y,w,u)}a=a.sibling}}function G0(i,a){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&bu(u))}function K0(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&bu(i))}function Yo(i,a,u,m){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)eO(i,a,u,m),a=a.sibling}function eO(i,a,u,m){var y=a.flags;switch(a.tag){case 0:case 11:case 15:Yo(i,a,u,m),y&2048&&Nu(9,a);break;case 1:Yo(i,a,u,m);break;case 3:Yo(i,a,u,m),y&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&bu(i)));break;case 12:if(y&2048){Yo(i,a,u,m),i=a.stateNode;try{var w=a.memoizedProps,N=w.id,z=w.onPostCommit;typeof z=="function"&&z(N,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(J){qt(a,a.return,J)}}else Yo(i,a,u,m);break;case 31:Yo(i,a,u,m);break;case 13:Yo(i,a,u,m);break;case 23:break;case 22:w=a.stateNode,N=a.alternate,a.memoizedState!==null?w._visibility&2?Yo(i,a,u,m):Du(i,a):w._visibility&2?Yo(i,a,u,m):(w._visibility|=2,Kl(i,a,u,m,(a.subtreeFlags&10256)!==0||!1)),y&2048&&G0(N,a);break;case 24:Yo(i,a,u,m),y&2048&&K0(a.alternate,a);break;default:Yo(i,a,u,m)}}function Kl(i,a,u,m,y){for(y=y&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var w=i,N=a,z=u,J=m,de=N.flags;switch(N.tag){case 0:case 11:case 15:Kl(w,N,z,J,y),Nu(8,N);break;case 23:break;case 22:var _e=N.stateNode;N.memoizedState!==null?_e._visibility&2?Kl(w,N,z,J,y):Du(w,N):(_e._visibility|=2,Kl(w,N,z,J,y)),y&&de&2048&&G0(N.alternate,N);break;case 24:Kl(w,N,z,J,y),y&&de&2048&&K0(N.alternate,N);break;default:Kl(w,N,z,J,y)}a=a.sibling}}function Du(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=i,m=a,y=m.flags;switch(m.tag){case 22:Du(u,m),y&2048&&G0(m.alternate,m);break;case 24:Du(u,m),y&2048&&K0(m.alternate,m);break;default:Du(u,m)}a=a.sibling}}var Lu=8192;function Zl(i,a,u){if(i.subtreeFlags&Lu)for(i=i.child;i!==null;)tO(i,a,u),i=i.sibling}function tO(i,a,u){switch(i.tag){case 26:Zl(i,a,u),i.flags&Lu&&i.memoizedState!==null&&hj(u,Zo,i.memoizedState,i.memoizedProps);break;case 5:Zl(i,a,u);break;case 3:case 4:var m=Zo;Zo=Ph(i.stateNode.containerInfo),Zl(i,a,u),Zo=m;break;case 22:i.memoizedState===null&&(m=i.alternate,m!==null&&m.memoizedState!==null?(m=Lu,Lu=16777216,Zl(i,a,u),Lu=m):Zl(i,a,u));break;default:Zl(i,a,u)}}function nO(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function $u(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];tr=m,oO(m,i)}nO(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)rO(i),i=i.sibling}function rO(i){switch(i.tag){case 0:case 11:case 15:$u(i),i.flags&2048&&Is(9,i,i.return);break;case 3:$u(i);break;case 12:$u(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,_h(i)):$u(i);break;default:$u(i)}}function _h(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];tr=m,oO(m,i)}nO(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:Is(8,a,a.return),_h(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,_h(a));break;default:_h(a)}i=i.sibling}}function oO(i,a){for(;tr!==null;){var u=tr;switch(u.tag){case 0:case 11:case 15:Is(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var m=u.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:bu(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,tr=m;else e:for(u=i;tr!==null;){m=tr;var y=m.sibling,w=m.return;if(ZR(m),m===u){tr=null;break e}if(y!==null){y.return=w,tr=y;break e}tr=w}}}var C$={getCacheForType:function(i){var a=cr($n),u=a.data.get(i);return u===void 0&&(u=i(),a.data.set(i,u)),u},cacheSignal:function(){return cr($n).controller.signal}},A$=typeof WeakMap=="function"?WeakMap:Map,Ut=0,en=null,_t=null,Et=0,Vt=0,oo=null,Ms=!1,Yl=!1,Z0=!1,Yi=0,xn=0,Ps=0,ja=0,Y0=0,io=0,Wl=0,ju=null,Hr=null,W0=!1,bh=0,iO=0,wh=1/0,Sh=null,Ns=null,Hn=0,ks=null,Ql=null,Wi=0,Q0=0,X0=null,sO=null,zu=0,J0=null;function so(){return(Ut&2)!==0&&Et!==0?Et&-Et:H.T!==null?iy():_v()}function aO(){if(io===0)if((Et&536870912)===0||At){var i=Ct;Ct<<=1,(Ct&3932160)===0&&(Ct=262144),io=i}else io=536870912;return i=no.current,i!==null&&(i.flags|=32),io}function Gr(i,a,u){(i===en&&(Vt===2||Vt===9)||i.cancelPendingCommit!==null)&&(Xl(i,0),Ds(i,Et,io,!1)),Lt(i,u),((Ut&2)===0||i!==en)&&(i===en&&((Ut&2)===0&&(ja|=u),xn===4&&Ds(i,Et,io,!1)),fi(i))}function lO(i,a,u){if((Ut&6)!==0)throw Error(r(327));var m=!u&&(a&127)===0&&(a&i.expiredLanes)===0||ut(i,a),y=m?P$(i,a):ty(i,a,!0),w=m;do{if(y===0){Yl&&!m&&Ds(i,a,0,!1);break}else{if(u=i.current.alternate,w&&!I$(u)){y=ty(i,a,!1),w=!1;continue}if(y===2){if(w=a,i.errorRecoveryDisabledLanes&w)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){a=N;e:{var z=i;y=ju;var J=z.current.memoizedState.isDehydrated;if(J&&(Xl(z,N).flags|=256),N=ty(z,N,!1),N!==2){if(Z0&&!J){z.errorRecoveryDisabledLanes|=w,ja|=w,y=4;break e}w=Hr,Hr=y,w!==null&&(Hr===null?Hr=w:Hr.push.apply(Hr,w))}y=N}if(w=!1,y!==2)continue}}if(y===1){Xl(i,0),Ds(i,a,0,!0);break}e:{switch(m=i,w=y,w){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Ds(m,a,io,!Ms);break e;case 2:Hr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(y=bh+300-K(),10<y)){if(Ds(m,a,io,!Ms),Ke(m,0,!0)!==0)break e;Wi=a,m.timeoutHandle=zO(cO.bind(null,m,u,Hr,Sh,W0,a,io,ja,Wl,Ms,w,"Throttled",-0,0),y);break e}cO(m,u,Hr,Sh,W0,a,io,ja,Wl,Ms,w,null,-0,0)}}break}while(!0);fi(i)}function cO(i,a,u,m,y,w,N,z,J,de,_e,Ee,he,ge){if(i.timeoutHandle=-1,Ee=a.subtreeFlags,Ee&8192||(Ee&16785408)===16785408){Ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Di},tO(a,w,Ee);var He=(w&62914560)===w?bh-K():(w&4194048)===w?iO-K():0;if(He=pj(Ee,He),He!==null){Wi=w,i.cancelPendingCommit=He(vO.bind(null,i,a,w,u,m,y,N,z,J,_e,Ee,null,he,ge)),Ds(i,w,N,!de);return}}vO(i,a,w,u,m,y,N,z,J)}function I$(i){for(var a=i;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var y=u[m],w=y.getSnapshot;y=y.value;try{if(!eo(w(),y))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ds(i,a,u,m){a&=~Y0,a&=~ja,i.suspendedLanes|=a,i.pingedLanes&=~a,m&&(i.warmLanes|=a),m=i.expirationTimes;for(var y=a;0<y;){var w=31-Ln(y),N=1<<w;m[w]=-1,y&=~N}u!==0&&So(i,u,a)}function Eh(){return(Ut&6)===0?(Uu(0),!1):!0}function ey(){if(_t!==null){if(Vt===0)var i=_t.return;else i=_t,zi=Aa=null,g0(i),Bl=null,Su=0,i=_t;for(;i!==null;)UR(i.alternate,i),i=i.return;_t=null}}function Xl(i,a){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,W$(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),Wi=0,ey(),en=i,_t=u=$i(i.current,null),Et=a,Vt=0,oo=null,Ms=!1,Yl=ut(i,a),Z0=!1,Wl=io=Y0=ja=Ps=xn=0,Hr=ju=null,W0=!1,(a&8)!==0&&(a|=a&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=a;0<m;){var y=31-Ln(m),w=1<<y;a|=i[y],m&=~w}return Yi=a,qf(),u}function uO(i,a){st=null,H.H=Iu,a===Fl||a===Xf?(a=Ox(),Vt=3):a===o0?(a=Ox(),Vt=4):Vt=a===P0?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,oo=a,_t===null&&(xn=1,fh(i,Oo(a,i.current)))}function dO(){var i=no.current;return i===null?!0:(Et&4194048)===Et?Io===null:(Et&62914560)===Et||(Et&536870912)!==0?i===Io:!1}function fO(){var i=H.H;return H.H=Iu,i===null?Iu:i}function hO(){var i=H.A;return H.A=C$,i}function xh(){xn=4,Ms||(Et&4194048)!==Et&&no.current!==null||(Yl=!0),(Ps&134217727)===0&&(ja&134217727)===0||en===null||Ds(en,Et,io,!1)}function ty(i,a,u){var m=Ut;Ut|=2;var y=fO(),w=hO();(en!==i||Et!==a)&&(Sh=null,Xl(i,a)),a=!1;var N=xn;e:do try{if(Vt!==0&&_t!==null){var z=_t,J=oo;switch(Vt){case 8:ey(),N=6;break e;case 3:case 2:case 9:case 6:no.current===null&&(a=!0);var de=Vt;if(Vt=0,oo=null,Jl(i,z,J,de),u&&Yl){N=0;break e}break;default:de=Vt,Vt=0,oo=null,Jl(i,z,J,de)}}M$(),N=xn;break}catch(_e){uO(i,_e)}while(!0);return a&&i.shellSuspendCounter++,zi=Aa=null,Ut=m,H.H=y,H.A=w,_t===null&&(en=null,Et=0,qf()),N}function M$(){for(;_t!==null;)pO(_t)}function P$(i,a){var u=Ut;Ut|=2;var m=fO(),y=hO();en!==i||Et!==a?(Sh=null,wh=K()+500,Xl(i,a)):Yl=ut(i,a);e:do try{if(Vt!==0&&_t!==null){a=_t;var w=oo;t:switch(Vt){case 1:Vt=0,oo=null,Jl(i,a,w,1);break;case 2:case 9:if(xx(w)){Vt=0,oo=null,mO(a);break}a=function(){Vt!==2&&Vt!==9||en!==i||(Vt=7),fi(i)},w.then(a,a);break e;case 3:Vt=7;break e;case 4:Vt=5;break e;case 7:xx(w)?(Vt=0,oo=null,mO(a)):(Vt=0,oo=null,Jl(i,a,w,7));break;case 5:var N=null;switch(_t.tag){case 26:N=_t.memoizedState;case 5:case 27:var z=_t;if(N?e2(N):z.stateNode.complete){Vt=0,oo=null;var J=z.sibling;if(J!==null)_t=J;else{var de=z.return;de!==null?(_t=de,Rh(de)):_t=null}break t}}Vt=0,oo=null,Jl(i,a,w,5);break;case 6:Vt=0,oo=null,Jl(i,a,w,6);break;case 8:ey(),xn=6;break e;default:throw Error(r(462))}}N$();break}catch(_e){uO(i,_e)}while(!0);return zi=Aa=null,H.H=m,H.A=y,Ut=u,_t!==null?0:(en=null,Et=0,qf(),xn)}function N$(){for(;_t!==null&&!Me();)pO(_t)}function pO(i){var a=jR(i.alternate,i,Yi);i.memoizedProps=i.pendingProps,a===null?Rh(i):_t=a}function mO(i){var a=i,u=a.alternate;switch(a.tag){case 15:case 0:a=PR(u,a,a.pendingProps,a.type,void 0,Et);break;case 11:a=PR(u,a,a.pendingProps,a.type.render,a.ref,Et);break;case 5:g0(a);default:UR(u,a),a=_t=hx(a,Yi),a=jR(u,a,Yi)}i.memoizedProps=i.pendingProps,a===null?Rh(i):_t=a}function Jl(i,a,u,m){zi=Aa=null,g0(a),Bl=null,Su=0;var y=a.return;try{if(w$(i,y,a,u,Et)){xn=1,fh(i,Oo(u,i.current)),_t=null;return}}catch(w){if(y!==null)throw _t=y,w;xn=1,fh(i,Oo(u,i.current)),_t=null;return}a.flags&32768?(At||m===1?i=!0:Yl||(Et&536870912)!==0?i=!1:(Ms=i=!0,(m===2||m===9||m===3||m===6)&&(m=no.current,m!==null&&m.tag===13&&(m.flags|=16384))),gO(a,i)):Rh(a)}function Rh(i){var a=i;do{if((a.flags&32768)!==0){gO(a,Ms);return}i=a.return;var u=x$(a.alternate,a,Yi);if(u!==null){_t=u;return}if(a=a.sibling,a!==null){_t=a;return}_t=a=i}while(a!==null);xn===0&&(xn=5)}function gO(i,a){do{var u=R$(i.alternate,i);if(u!==null){u.flags&=32767,_t=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(i=i.sibling,i!==null)){_t=i;return}_t=i=u}while(i!==null);xn=6,_t=null}function vO(i,a,u,m,y,w,N,z,J){i.cancelPendingCommit=null;do Oh();while(Hn!==0);if((Ut&6)!==0)throw Error(r(327));if(a!==null){if(a===i.current)throw Error(r(177));if(w=a.lanes|a.childLanes,w|=Vv,an(i,u,w,N,z,J),i===en&&(_t=en=null,Et=0),Ql=a,ks=i,Wi=u,Q0=w,X0=y,sO=m,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,$$(Ae,function(){return SO(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||m){m=H.T,H.T=null,y=W.p,W.p=2,N=Ut,Ut|=4;try{O$(i,a,u)}finally{Ut=N,W.p=y,H.T=m}}Hn=1,yO(),_O(),bO()}}function yO(){if(Hn===1){Hn=0;var i=ks,a=Ql,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=H.T,H.T=null;var m=W.p;W.p=2;var y=Ut;Ut|=4;try{XR(a,i);var w=hy,N=ox(i.containerInfo),z=w.focusedElem,J=w.selectionRange;if(N!==z&&z&&z.ownerDocument&&rx(z.ownerDocument.documentElement,z)){if(J!==null&&jv(z)){var de=J.start,_e=J.end;if(_e===void 0&&(_e=de),"selectionStart"in z)z.selectionStart=de,z.selectionEnd=Math.min(_e,z.value.length);else{var Ee=z.ownerDocument||document,he=Ee&&Ee.defaultView||window;if(he.getSelection){var ge=he.getSelection(),He=z.textContent.length,nt=Math.min(J.start,He),Qt=J.end===void 0?nt:Math.min(J.end,He);!ge.extend&&nt>Qt&&(N=Qt,Qt=nt,nt=N);var ce=nx(z,nt),oe=nx(z,Qt);if(ce&&oe&&(ge.rangeCount!==1||ge.anchorNode!==ce.node||ge.anchorOffset!==ce.offset||ge.focusNode!==oe.node||ge.focusOffset!==oe.offset)){var ue=Ee.createRange();ue.setStart(ce.node,ce.offset),ge.removeAllRanges(),nt>Qt?(ge.addRange(ue),ge.extend(oe.node,oe.offset)):(ue.setEnd(oe.node,oe.offset),ge.addRange(ue))}}}}for(Ee=[],ge=z;ge=ge.parentNode;)ge.nodeType===1&&Ee.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Ee.length;z++){var we=Ee[z];we.element.scrollLeft=we.left,we.element.scrollTop=we.top}}jh=!!fy,hy=fy=null}finally{Ut=y,W.p=m,H.T=u}}i.current=a,Hn=2}}function _O(){if(Hn===2){Hn=0;var i=ks,a=Ql,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=H.T,H.T=null;var m=W.p;W.p=2;var y=Ut;Ut|=4;try{KR(i,a.alternate,a)}finally{Ut=y,W.p=m,H.T=u}}Hn=3}}function bO(){if(Hn===4||Hn===3){Hn=0,Ue();var i=ks,a=Ql,u=Wi,m=sO;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Hn=5:(Hn=0,Ql=ks=null,wO(i,i.pendingLanes));var y=i.pendingLanes;if(y===0&&(Ns=null),Go(u),a=a.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(vt,a,void 0,(a.current.flags&128)===128)}catch{}if(m!==null){a=H.T,y=W.p,W.p=2,H.T=null;try{for(var w=i.onRecoverableError,N=0;N<m.length;N++){var z=m[N];w(z.value,{componentStack:z.stack})}}finally{H.T=a,W.p=y}}(Wi&3)!==0&&Oh(),fi(i),y=i.pendingLanes,(u&261930)!==0&&(y&42)!==0?i===J0?zu++:(zu=0,J0=i):zu=0,Uu(0)}}function wO(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,bu(a)))}function Oh(){return yO(),_O(),bO(),SO()}function SO(){if(Hn!==5)return!1;var i=ks,a=Q0;Q0=0;var u=Go(Wi),m=H.T,y=W.p;try{W.p=32>u?32:u,H.T=null,u=X0,X0=null;var w=ks,N=Wi;if(Hn=0,Ql=ks=null,Wi=0,(Ut&6)!==0)throw Error(r(331));var z=Ut;if(Ut|=4,rO(w.current),eO(w,w.current,N,u),Ut=z,Uu(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(vt,w)}catch{}return!0}finally{W.p=y,H.T=m,wO(i,a)}}function EO(i,a,u){a=Oo(u,a),a=M0(i.stateNode,a,2),i=Ts(i,a,2),i!==null&&(Lt(i,2),fi(i))}function qt(i,a,u){if(i.tag===3)EO(i,i,u);else for(;a!==null;){if(a.tag===3){EO(a,i,u);break}else if(a.tag===1){var m=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Ns===null||!Ns.has(m))){i=Oo(u,i),u=xR(2),m=Ts(a,u,2),m!==null&&(RR(u,m,a,i),Lt(m,2),fi(m));break}}a=a.return}}function ny(i,a,u){var m=i.pingCache;if(m===null){m=i.pingCache=new A$;var y=new Set;m.set(a,y)}else y=m.get(a),y===void 0&&(y=new Set,m.set(a,y));y.has(u)||(Z0=!0,y.add(u),i=k$.bind(null,i,a,u),a.then(i,i))}function k$(i,a,u){var m=i.pingCache;m!==null&&m.delete(a),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,en===i&&(Et&u)===u&&(xn===4||xn===3&&(Et&62914560)===Et&&300>K()-bh?(Ut&2)===0&&Xl(i,0):Y0|=u,Wl===Et&&(Wl=0)),fi(i)}function xO(i,a){a===0&&(a=Zt()),i=Oa(i,a),i!==null&&(Lt(i,a),fi(i))}function D$(i){var a=i.memoizedState,u=0;a!==null&&(u=a.retryLane),xO(i,u)}function L$(i,a){var u=0;switch(i.tag){case 31:case 13:var m=i.stateNode,y=i.memoizedState;y!==null&&(u=y.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(a),xO(i,u)}function $$(i,a){return Qe(i,a)}var Th=null,ec=null,ry=!1,Ch=!1,oy=!1,Ls=0;function fi(i){i!==ec&&i.next===null&&(ec===null?Th=ec=i:ec=ec.next=i),Ch=!0,ry||(ry=!0,z$())}function Uu(i,a){if(!oy&&Ch){oy=!0;do for(var u=!1,m=Th;m!==null;){if(i!==0){var y=m.pendingLanes;if(y===0)var w=0;else{var N=m.suspendedLanes,z=m.pingedLanes;w=(1<<31-Ln(42|i)+1)-1,w&=y&~(N&~z),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(u=!0,CO(m,w))}else w=Et,w=Ke(m,m===en?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(w&3)===0||ut(m,w)||(u=!0,CO(m,w));m=m.next}while(u);oy=!1}}function j$(){RO()}function RO(){Ch=ry=!1;var i=0;Ls!==0&&Y$()&&(i=Ls);for(var a=K(),u=null,m=Th;m!==null;){var y=m.next,w=OO(m,a);w===0?(m.next=null,u===null?Th=y:u.next=y,y===null&&(ec=u)):(u=m,(i!==0||(w&3)!==0)&&(Ch=!0)),m=y}Hn!==0&&Hn!==5||Uu(i),Ls!==0&&(Ls=0)}function OO(i,a){for(var u=i.suspendedLanes,m=i.pingedLanes,y=i.expirationTimes,w=i.pendingLanes&-62914561;0<w;){var N=31-Ln(w),z=1<<N,J=y[N];J===-1?((z&u)===0||(z&m)!==0)&&(y[N]=Jt(z,a)):J<=a&&(i.expiredLanes|=z),w&=~z}if(a=en,u=Et,u=Ke(i,i===a?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,u===0||i===a&&(Vt===2||Vt===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&Pe(m),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||ut(i,u)){if(a=u&-u,a===i.callbackPriority)return a;switch(m!==null&&Pe(m),Go(u)){case 2:case 8:u=Re;break;case 32:u=Ae;break;case 268435456:u=ke;break;default:u=Ae}return m=TO.bind(null,i),u=Qe(u,m),i.callbackPriority=a,i.callbackNode=u,a}return m!==null&&m!==null&&Pe(m),i.callbackPriority=2,i.callbackNode=null,2}function TO(i,a){if(Hn!==0&&Hn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Oh()&&i.callbackNode!==u)return null;var m=Et;return m=Ke(i,i===en?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(lO(i,m,a),OO(i,K()),i.callbackNode!=null&&i.callbackNode===u?TO.bind(null,i):null)}function CO(i,a){if(Oh())return null;lO(i,a,!0)}function z$(){Q$(function(){(Ut&6)!==0?Qe(ae,j$):RO()})}function iy(){if(Ls===0){var i=zl;i===0&&(i=dt,dt<<=1,(dt&261888)===0&&(dt=256)),Ls=i}return Ls}function AO(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Lf(""+i)}function IO(i,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,i.id&&u.setAttribute("form",i.id),a.parentNode.insertBefore(u,a),i=new FormData(i),u.parentNode.removeChild(u),i}function U$(i,a,u,m,y){if(a==="submit"&&u&&u.stateNode===y){var w=AO((y[Ur]||null).action),N=m.submitter;N&&(a=(a=N[Ur]||null)?AO(a.formAction):N.getAttribute("formAction"),a!==null&&(w=a,N=null));var z=new Uf("action","action",null,m,y);i.push({event:z,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Ls!==0){var J=N?IO(y,N):new FormData(y);R0(u,{pending:!0,data:J,method:y.method,action:w},null,J)}}else typeof w=="function"&&(z.preventDefault(),J=N?IO(y,N):new FormData(y),R0(u,{pending:!0,data:J,method:y.method,action:w},w,J))},currentTarget:y}]})}}for(var sy=0;sy<Bv.length;sy++){var ay=Bv[sy],F$=ay.toLowerCase(),B$=ay[0].toUpperCase()+ay.slice(1);Ko(F$,"on"+B$)}Ko(ax,"onAnimationEnd"),Ko(lx,"onAnimationIteration"),Ko(cx,"onAnimationStart"),Ko("dblclick","onDoubleClick"),Ko("focusin","onFocus"),Ko("focusout","onBlur"),Ko(o$,"onTransitionRun"),Ko(i$,"onTransitionStart"),Ko(s$,"onTransitionCancel"),Ko(ux,"onTransitionEnd"),Rl("onMouseEnter",["mouseout","mouseover"]),Rl("onMouseLeave",["mouseout","mouseover"]),Rl("onPointerEnter",["pointerout","pointerover"]),Rl("onPointerLeave",["pointerout","pointerover"]),Sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fu="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(" "),V$=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fu));function MO(i,a){a=(a&4)!==0;for(var u=0;u<i.length;u++){var m=i[u],y=m.event;m=m.listeners;e:{var w=void 0;if(a)for(var N=m.length-1;0<=N;N--){var z=m[N],J=z.instance,de=z.currentTarget;if(z=z.listener,J!==w&&y.isPropagationStopped())break e;w=z,y.currentTarget=de;try{w(y)}catch(_e){Vf(_e)}y.currentTarget=null,w=J}else for(N=0;N<m.length;N++){if(z=m[N],J=z.instance,de=z.currentTarget,z=z.listener,J!==w&&y.isPropagationStopped())break e;w=z,y.currentTarget=de;try{w(y)}catch(_e){Vf(_e)}y.currentTarget=null,w=J}}}}function bt(i,a){var u=a[bv];u===void 0&&(u=a[bv]=new Set);var m=i+"__bubble";u.has(m)||(PO(a,i,2,!1),u.add(m))}function ly(i,a,u){var m=0;a&&(m|=4),PO(u,i,m,a)}var Ah="_reactListening"+Math.random().toString(36).slice(2);function cy(i){if(!i[Ah]){i[Ah]=!0,RE.forEach(function(u){u!=="selectionchange"&&(V$.has(u)||ly(u,!1,i),ly(u,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Ah]||(a[Ah]=!0,ly("selectionchange",!1,a))}}function PO(i,a,u,m){switch(a2(a)){case 2:var y=vj;break;case 8:y=yj;break;default:y=xy}u=y.bind(null,a,u,i),y=void 0,!Av||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(y=!0),m?y!==void 0?i.addEventListener(a,u,{capture:!0,passive:y}):i.addEventListener(a,u,!0):y!==void 0?i.addEventListener(a,u,{passive:y}):i.addEventListener(a,u,!1)}function uy(i,a,u,m,y){var w=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var N=m.tag;if(N===3||N===4){var z=m.stateNode.containerInfo;if(z===y)break;if(N===4)for(N=m.return;N!==null;){var J=N.tag;if((J===3||J===4)&&N.stateNode.containerInfo===y)return;N=N.return}for(;z!==null;){if(N=Sl(z),N===null)return;if(J=N.tag,J===5||J===6||J===26||J===27){m=w=N;continue e}z=z.parentNode}}m=m.return}$E(function(){var de=w,_e=Tv(u),Ee=[];e:{var he=dx.get(i);if(he!==void 0){var ge=Uf,He=i;switch(i){case"keypress":if(jf(u)===0)break e;case"keydown":case"keyup":ge=LL;break;case"focusin":He="focus",ge=Nv;break;case"focusout":He="blur",ge=Nv;break;case"beforeblur":case"afterblur":ge=Nv;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=UE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=xL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=zL;break;case ax:case lx:case cx:ge=TL;break;case ux:ge=FL;break;case"scroll":case"scrollend":ge=SL;break;case"wheel":ge=VL;break;case"copy":case"cut":case"paste":ge=AL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=BE;break;case"toggle":case"beforetoggle":ge=HL}var nt=(a&4)!==0,Qt=!nt&&(i==="scroll"||i==="scrollend"),ce=nt?he!==null?he+"Capture":null:he;nt=[];for(var oe=de,ue;oe!==null;){var we=oe;if(ue=we.stateNode,we=we.tag,we!==5&&we!==26&&we!==27||ue===null||ce===null||(we=cu(oe,ce),we!=null&&nt.push(Bu(oe,we,ue))),Qt)break;oe=oe.return}0<nt.length&&(he=new ge(he,He,null,u,_e),Ee.push({event:he,listeners:nt}))}}if((a&7)===0){e:{if(he=i==="mouseover"||i==="pointerover",ge=i==="mouseout"||i==="pointerout",he&&u!==Ov&&(He=u.relatedTarget||u.fromElement)&&(Sl(He)||He[wl]))break e;if((ge||he)&&(he=_e.window===_e?_e:(he=_e.ownerDocument)?he.defaultView||he.parentWindow:window,ge?(He=u.relatedTarget||u.toElement,ge=de,He=He?Sl(He):null,He!==null&&(Qt=s(He),nt=He.tag,He!==Qt||nt!==5&&nt!==27&&nt!==6)&&(He=null)):(ge=null,He=de),ge!==He)){if(nt=UE,we="onMouseLeave",ce="onMouseEnter",oe="mouse",(i==="pointerout"||i==="pointerover")&&(nt=BE,we="onPointerLeave",ce="onPointerEnter",oe="pointer"),Qt=ge==null?he:lu(ge),ue=He==null?he:lu(He),he=new nt(we,oe+"leave",ge,u,_e),he.target=Qt,he.relatedTarget=ue,we=null,Sl(_e)===de&&(nt=new nt(ce,oe+"enter",He,u,_e),nt.target=ue,nt.relatedTarget=Qt,we=nt),Qt=we,ge&&He)t:{for(nt=q$,ce=ge,oe=He,ue=0,we=ce;we;we=nt(we))ue++;we=0;for(var Xe=oe;Xe;Xe=nt(Xe))we++;for(;0<ue-we;)ce=nt(ce),ue--;for(;0<we-ue;)oe=nt(oe),we--;for(;ue--;){if(ce===oe||oe!==null&&ce===oe.alternate){nt=ce;break t}ce=nt(ce),oe=nt(oe)}nt=null}else nt=null;ge!==null&&NO(Ee,he,ge,nt,!1),He!==null&&Qt!==null&&NO(Ee,Qt,He,nt,!0)}}e:{if(he=de?lu(de):window,ge=he.nodeName&&he.nodeName.toLowerCase(),ge==="select"||ge==="input"&&he.type==="file")var $t=WE;else if(ZE(he))if(QE)$t=t$;else{$t=JL;var Ze=XL}else ge=he.nodeName,!ge||ge.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?de&&Rv(de.elementType)&&($t=WE):$t=e$;if($t&&($t=$t(i,de))){YE(Ee,$t,u,_e);break e}Ze&&Ze(i,he,de),i==="focusout"&&de&&he.type==="number"&&de.memoizedProps.value!=null&&xv(he,"number",he.value)}switch(Ze=de?lu(de):window,i){case"focusin":(ZE(Ze)||Ze.contentEditable==="true")&&(Ml=Ze,zv=de,vu=null);break;case"focusout":vu=zv=Ml=null;break;case"mousedown":Uv=!0;break;case"contextmenu":case"mouseup":case"dragend":Uv=!1,ix(Ee,u,_e);break;case"selectionchange":if(r$)break;case"keydown":case"keyup":ix(Ee,u,_e)}var at;if(Dv)e:{switch(i){case"compositionstart":var xt="onCompositionStart";break e;case"compositionend":xt="onCompositionEnd";break e;case"compositionupdate":xt="onCompositionUpdate";break e}xt=void 0}else Il?GE(i,u)&&(xt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(xt="onCompositionStart");xt&&(VE&&u.locale!=="ko"&&(Il||xt!=="onCompositionStart"?xt==="onCompositionEnd"&&Il&&(at=jE()):(bs=_e,Iv="value"in bs?bs.value:bs.textContent,Il=!0)),Ze=Ih(de,xt),0<Ze.length&&(xt=new FE(xt,i,null,u,_e),Ee.push({event:xt,listeners:Ze}),at?xt.data=at:(at=KE(u),at!==null&&(xt.data=at)))),(at=KL?ZL(i,u):YL(i,u))&&(xt=Ih(de,"onBeforeInput"),0<xt.length&&(Ze=new FE("onBeforeInput","beforeinput",null,u,_e),Ee.push({event:Ze,listeners:xt}),Ze.data=at)),U$(Ee,i,de,u,_e)}MO(Ee,a)})}function Bu(i,a,u){return{instance:i,listener:a,currentTarget:u}}function Ih(i,a){for(var u=a+"Capture",m=[];i!==null;){var y=i,w=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||w===null||(y=cu(i,u),y!=null&&m.unshift(Bu(i,y,w)),y=cu(i,a),y!=null&&m.push(Bu(i,y,w))),i.tag===3)return m;i=i.return}return[]}function q$(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function NO(i,a,u,m,y){for(var w=a._reactName,N=[];u!==null&&u!==m;){var z=u,J=z.alternate,de=z.stateNode;if(z=z.tag,J!==null&&J===m)break;z!==5&&z!==26&&z!==27||de===null||(J=de,y?(de=cu(u,w),de!=null&&N.unshift(Bu(u,de,J))):y||(de=cu(u,w),de!=null&&N.push(Bu(u,de,J)))),u=u.return}N.length!==0&&i.push({event:a,listeners:N})}var H$=/\r\n?/g,G$=/\u0000|\uFFFD/g;function kO(i){return(typeof i=="string"?i:""+i).replace(H$,`
10
- `).replace(G$,"")}function DO(i,a){return a=kO(a),kO(i)===a}function Wt(i,a,u,m,y,w){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||Tl(i,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&Tl(i,""+m);break;case"className":kf(i,"class",m);break;case"tabIndex":kf(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":kf(i,u,m);break;case"style":DE(i,m,w);break;case"data":if(a!=="object"){kf(i,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){i.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=Lf(""+m),i.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(u,"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 w=="function"&&(u==="formAction"?(a!=="input"&&Wt(i,a,"name",y.name,y,null),Wt(i,a,"formEncType",y.formEncType,y,null),Wt(i,a,"formMethod",y.formMethod,y,null),Wt(i,a,"formTarget",y.formTarget,y,null)):(Wt(i,a,"encType",y.encType,y,null),Wt(i,a,"method",y.method,y,null),Wt(i,a,"target",y.target,y,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=Lf(""+m),i.setAttribute(u,m);break;case"onClick":m!=null&&(i.onclick=Di);break;case"onScroll":m!=null&&bt("scroll",i);break;case"onScrollEnd":m!=null&&bt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}u=Lf(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""+m):i.removeAttribute(u);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":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":m===!0?i.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,m):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(u,m):i.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(u):i.setAttribute(u,m);break;case"popover":bt("beforetoggle",i),bt("toggle",i),Nf(i,"popover",m);break;case"xlinkActuate":ki(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":ki(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":ki(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":ki(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":ki(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":ki(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":ki(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":ki(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":ki(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Nf(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=bL.get(u)||u,Nf(i,u,m))}}function dy(i,a,u,m,y,w){switch(u){case"style":DE(i,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof m=="string"?Tl(i,m):(typeof m=="number"||typeof m=="bigint")&&Tl(i,""+m);break;case"onScroll":m!=null&&bt("scroll",i);break;case"onScrollEnd":m!=null&&bt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Di);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!OE.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),a=u.slice(2,y?u.length-7:void 0),w=i[Ur]||null,w=w!=null?w[u]:null,typeof w=="function"&&i.removeEventListener(a,w,y),typeof m=="function")){typeof w!="function"&&w!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(a,m,y);break e}u in i?i[u]=m:m===!0?i.setAttribute(u,""):Nf(i,u,m)}}}function dr(i,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",i),bt("load",i);var m=!1,y=!1,w;for(w in u)if(u.hasOwnProperty(w)){var N=u[w];if(N!=null)switch(w){case"src":m=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Wt(i,a,w,N,u,null)}}y&&Wt(i,a,"srcSet",u.srcSet,u,null),m&&Wt(i,a,"src",u.src,u,null);return;case"input":bt("invalid",i);var z=w=N=y=null,J=null,de=null;for(m in u)if(u.hasOwnProperty(m)){var _e=u[m];if(_e!=null)switch(m){case"name":y=_e;break;case"type":N=_e;break;case"checked":J=_e;break;case"defaultChecked":de=_e;break;case"value":w=_e;break;case"defaultValue":z=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,a));break;default:Wt(i,a,m,_e,u,null)}}ME(i,w,z,J,de,N,y,!1);return;case"select":bt("invalid",i),m=N=w=null;for(y in u)if(u.hasOwnProperty(y)&&(z=u[y],z!=null))switch(y){case"value":w=z;break;case"defaultValue":N=z;break;case"multiple":m=z;default:Wt(i,a,y,z,u,null)}a=w,u=N,i.multiple=!!m,a!=null?Ol(i,!!m,a,!1):u!=null&&Ol(i,!!m,u,!0);return;case"textarea":bt("invalid",i),w=y=m=null;for(N in u)if(u.hasOwnProperty(N)&&(z=u[N],z!=null))switch(N){case"value":m=z;break;case"defaultValue":y=z;break;case"children":w=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(91));break;default:Wt(i,a,N,z,u,null)}NE(i,m,y,w);return;case"option":for(J in u)u.hasOwnProperty(J)&&(m=u[J],m!=null)&&(J==="selected"?i.selected=m&&typeof m!="function"&&typeof m!="symbol":Wt(i,a,J,m,u,null));return;case"dialog":bt("beforetoggle",i),bt("toggle",i),bt("cancel",i),bt("close",i);break;case"iframe":case"object":bt("load",i);break;case"video":case"audio":for(m=0;m<Fu.length;m++)bt(Fu[m],i);break;case"image":bt("error",i),bt("load",i);break;case"details":bt("toggle",i);break;case"embed":case"source":case"link":bt("error",i),bt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in u)if(u.hasOwnProperty(de)&&(m=u[de],m!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Wt(i,a,de,m,u,null)}return;default:if(Rv(a)){for(_e in u)u.hasOwnProperty(_e)&&(m=u[_e],m!==void 0&&dy(i,a,_e,m,u,void 0));return}}for(z in u)u.hasOwnProperty(z)&&(m=u[z],m!=null&&Wt(i,a,z,m,u,null))}function K$(i,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,w=null,N=null,z=null,J=null,de=null,_e=null;for(ge in u){var Ee=u[ge];if(u.hasOwnProperty(ge)&&Ee!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":J=Ee;default:m.hasOwnProperty(ge)||Wt(i,a,ge,null,m,Ee)}}for(var he in m){var ge=m[he];if(Ee=u[he],m.hasOwnProperty(he)&&(ge!=null||Ee!=null))switch(he){case"type":w=ge;break;case"name":y=ge;break;case"checked":de=ge;break;case"defaultChecked":_e=ge;break;case"value":N=ge;break;case"defaultValue":z=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,a));break;default:ge!==Ee&&Wt(i,a,he,ge,m,Ee)}}Ev(i,N,z,J,de,_e,w,y);return;case"select":ge=N=z=he=null;for(w in u)if(J=u[w],u.hasOwnProperty(w)&&J!=null)switch(w){case"value":break;case"multiple":ge=J;default:m.hasOwnProperty(w)||Wt(i,a,w,null,m,J)}for(y in m)if(w=m[y],J=u[y],m.hasOwnProperty(y)&&(w!=null||J!=null))switch(y){case"value":he=w;break;case"defaultValue":z=w;break;case"multiple":N=w;default:w!==J&&Wt(i,a,y,w,m,J)}a=z,u=N,m=ge,he!=null?Ol(i,!!u,he,!1):!!m!=!!u&&(a!=null?Ol(i,!!u,a,!0):Ol(i,!!u,u?[]:"",!1));return;case"textarea":ge=he=null;for(z in u)if(y=u[z],u.hasOwnProperty(z)&&y!=null&&!m.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Wt(i,a,z,null,m,y)}for(N in m)if(y=m[N],w=u[N],m.hasOwnProperty(N)&&(y!=null||w!=null))switch(N){case"value":he=y;break;case"defaultValue":ge=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==w&&Wt(i,a,N,y,m,w)}PE(i,he,ge);return;case"option":for(var He in u)he=u[He],u.hasOwnProperty(He)&&he!=null&&!m.hasOwnProperty(He)&&(He==="selected"?i.selected=!1:Wt(i,a,He,null,m,he));for(J in m)he=m[J],ge=u[J],m.hasOwnProperty(J)&&he!==ge&&(he!=null||ge!=null)&&(J==="selected"?i.selected=he&&typeof he!="function"&&typeof he!="symbol":Wt(i,a,J,he,m,ge));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 nt in u)he=u[nt],u.hasOwnProperty(nt)&&he!=null&&!m.hasOwnProperty(nt)&&Wt(i,a,nt,null,m,he);for(de in m)if(he=m[de],ge=u[de],m.hasOwnProperty(de)&&he!==ge&&(he!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,a));break;default:Wt(i,a,de,he,m,ge)}return;default:if(Rv(a)){for(var Qt in u)he=u[Qt],u.hasOwnProperty(Qt)&&he!==void 0&&!m.hasOwnProperty(Qt)&&dy(i,a,Qt,void 0,m,he);for(_e in m)he=m[_e],ge=u[_e],!m.hasOwnProperty(_e)||he===ge||he===void 0&&ge===void 0||dy(i,a,_e,he,m,ge);return}}for(var ce in u)he=u[ce],u.hasOwnProperty(ce)&&he!=null&&!m.hasOwnProperty(ce)&&Wt(i,a,ce,null,m,he);for(Ee in m)he=m[Ee],ge=u[Ee],!m.hasOwnProperty(Ee)||he===ge||he==null&&ge==null||Wt(i,a,Ee,he,m,ge)}function LO(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z$(){if(typeof performance.getEntriesByType=="function"){for(var i=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var y=u[m],w=y.transferSize,N=y.initiatorType,z=y.duration;if(w&&z&&LO(N)){for(N=0,z=y.responseEnd,m+=1;m<u.length;m++){var J=u[m],de=J.startTime;if(de>z)break;var _e=J.transferSize,Ee=J.initiatorType;_e&&LO(Ee)&&(J=J.responseEnd,N+=_e*(J<z?1:(z-de)/(J-de)))}if(--m,a+=8*(w+N)/(y.duration/1e3),i++,10<i)break}}if(0<i)return a/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var fy=null,hy=null;function Mh(i){return i.nodeType===9?i:i.ownerDocument}function $O(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jO(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function py(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var my=null;function Y$(){var i=window.event;return i&&i.type==="popstate"?i===my?!1:(my=i,!0):(my=null,!1)}var zO=typeof setTimeout=="function"?setTimeout:void 0,W$=typeof clearTimeout=="function"?clearTimeout:void 0,UO=typeof Promise=="function"?Promise:void 0,Q$=typeof queueMicrotask=="function"?queueMicrotask:typeof UO<"u"?function(i){return UO.resolve(null).then(i).catch(X$)}:zO;function X$(i){setTimeout(function(){throw i})}function $s(i){return i==="head"}function FO(i,a){var u=a,m=0;do{var y=u.nextSibling;if(i.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(m===0){i.removeChild(y),oc(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")Vu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Vu(u);for(var w=u.firstChild;w;){var N=w.nextSibling,z=w.nodeName;w[au]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&w.rel.toLowerCase()==="stylesheet"||u.removeChild(w),w=N}}else u==="body"&&Vu(i.ownerDocument.body);u=y}while(u);oc(a)}function BO(i,a){var u=i;i=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=m}while(u)}function gy(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":gy(u),wv(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function J$(i,a,u,m){for(;i.nodeType===1;){var y=u;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[au])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==y.rel||i.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||i.getAttribute("title")!==(y.title==null?null:y.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(y.src==null?null:y.src)||i.getAttribute("type")!==(y.type==null?null:y.type)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var w=y.name==null?null:""+y.name;if(y.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=Mo(i.nextSibling),i===null)break}return null}function ej(i,a,u){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Mo(i.nextSibling),i===null))return null;return i}function VO(i,a){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Mo(i.nextSibling),i===null))return null;return i}function vy(i){return i.data==="$?"||i.data==="$~"}function yy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function tj(i,a){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=a;else if(i.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Mo(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return i}var _y=null;function qO(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(a===0)return Mo(i.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}i=i.nextSibling}return null}function HO(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return i;a--}else u!=="/$"&&u!=="/&"||a++}i=i.previousSibling}return null}function GO(i,a,u){switch(a=Mh(u),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Vu(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);wv(i)}var Po=new Map,KO=new Set;function Ph(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Qi=W.d;W.d={f:nj,r:rj,D:oj,C:ij,L:sj,m:aj,X:cj,S:lj,M:uj};function nj(){var i=Qi.f(),a=Eh();return i||a}function rj(i){var a=El(i);a!==null&&a.tag===5&&a.type==="form"?uR(a):Qi.r(i)}var tc=typeof document>"u"?null:document;function ZO(i,a,u){var m=tc;if(m&&typeof a=="string"&&a){var y=xo(a);y='link[rel="'+i+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),KO.has(y)||(KO.add(y),i={rel:i,crossOrigin:u,href:a},m.querySelector(y)===null&&(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function oj(i){Qi.D(i),ZO("dns-prefetch",i,null)}function ij(i,a){Qi.C(i,a),ZO("preconnect",i,a)}function sj(i,a,u){Qi.L(i,a,u);var m=tc;if(m&&i&&a){var y='link[rel="preload"][as="'+xo(a)+'"]';a==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+xo(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+xo(u.imageSizes)+'"]')):y+='[href="'+xo(i)+'"]';var w=y;switch(a){case"style":w=nc(i);break;case"script":w=rc(i)}Po.has(w)||(i=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:i,as:a},u),Po.set(w,i),m.querySelector(y)!==null||a==="style"&&m.querySelector(qu(w))||a==="script"&&m.querySelector(Hu(w))||(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function aj(i,a){Qi.m(i,a);var u=tc;if(u&&i){var m=a&&typeof a.as=="string"?a.as:"script",y='link[rel="modulepreload"][as="'+xo(m)+'"][href="'+xo(i)+'"]',w=y;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=rc(i)}if(!Po.has(w)&&(i=h({rel:"modulepreload",href:i},a),Po.set(w,i),u.querySelector(y)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Hu(w)))return}m=u.createElement("link"),dr(m,"link",i),er(m),u.head.appendChild(m)}}}function lj(i,a,u){Qi.S(i,a,u);var m=tc;if(m&&i){var y=xl(m).hoistableStyles,w=nc(i);a=a||"default";var N=y.get(w);if(!N){var z={loading:0,preload:null};if(N=m.querySelector(qu(w)))z.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":a},u),(u=Po.get(w))&&by(i,u);var J=N=m.createElement("link");er(J),dr(J,"link",i),J._p=new Promise(function(de,_e){J.onload=de,J.onerror=_e}),J.addEventListener("load",function(){z.loading|=1}),J.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Nh(N,a,m)}N={type:"stylesheet",instance:N,count:1,state:z},y.set(w,N)}}}function cj(i,a){Qi.X(i,a);var u=tc;if(u&&i){var m=xl(u).hoistableScripts,y=rc(i),w=m.get(y);w||(w=u.querySelector(Hu(y)),w||(i=h({src:i,async:!0},a),(a=Po.get(y))&&wy(i,a),w=u.createElement("script"),er(w),dr(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(y,w))}}function uj(i,a){Qi.M(i,a);var u=tc;if(u&&i){var m=xl(u).hoistableScripts,y=rc(i),w=m.get(y);w||(w=u.querySelector(Hu(y)),w||(i=h({src:i,async:!0,type:"module"},a),(a=Po.get(y))&&wy(i,a),w=u.createElement("script"),er(w),dr(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(y,w))}}function YO(i,a,u,m){var y=(y=X.current)?Ph(y):null;if(!y)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=nc(u.href),u=xl(y).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=nc(u.href);var w=xl(y).hoistableStyles,N=w.get(i);if(N||(y=y.ownerDocument||y,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,N),(w=y.querySelector(qu(i)))&&!w._p&&(N.instance=w,N.state.loading=5),Po.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Po.set(i,u),w||dj(y,i,u,N.state))),a&&m===null)throw Error(r(528,""));return N}if(a&&m!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=rc(u),u=xl(y).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function nc(i){return'href="'+xo(i)+'"'}function qu(i){return'link[rel="stylesheet"]['+i+"]"}function WO(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function dj(i,a,u,m){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=i.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),dr(a,"link",u),er(a),i.head.appendChild(a))}function rc(i){return'[src="'+xo(i)+'"]'}function Hu(i){return"script[async]"+i}function QO(i,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=i.querySelector('style[data-href~="'+xo(u.href)+'"]');if(m)return a.instance=m,er(m),m;var y=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),er(m),dr(m,"style",y),Nh(m,u.precedence,i),a.instance=m;case"stylesheet":y=nc(u.href);var w=i.querySelector(qu(y));if(w)return a.state.loading|=4,a.instance=w,er(w),w;m=WO(u),(y=Po.get(y))&&by(m,y),w=(i.ownerDocument||i).createElement("link"),er(w);var N=w;return N._p=new Promise(function(z,J){N.onload=z,N.onerror=J}),dr(w,"link",m),a.state.loading|=4,Nh(w,u.precedence,i),a.instance=w;case"script":return w=rc(u.src),(y=i.querySelector(Hu(w)))?(a.instance=y,er(y),y):(m=u,(y=Po.get(w))&&(m=h({},u),wy(m,y)),i=i.ownerDocument||i,y=i.createElement("script"),er(y),dr(y,"link",m),i.head.appendChild(y),a.instance=y);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,Nh(m,u.precedence,i));return a.instance}function Nh(i,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=m.length?m[m.length-1]:null,w=y,N=0;N<m.length;N++){var z=m[N];if(z.dataset.precedence===a)w=z;else if(w!==y)break}w?w.parentNode.insertBefore(i,w.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(i,a.firstChild))}function by(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function wy(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var kh=null;function XO(i,a,u){if(kh===null){var m=new Map,y=kh=new Map;y.set(u,m)}else y=kh,m=y.get(u),m||(m=new Map,y.set(u,m));if(m.has(i))return m;for(m.set(i,null),u=u.getElementsByTagName(i),y=0;y<u.length;y++){var w=u[y];if(!(w[au]||w[ar]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var N=w.getAttribute(a)||"";N=i+N;var z=m.get(N);z?z.push(w):m.set(N,[w])}}return m}function JO(i,a,u){i=i.ownerDocument||i,i.head.insertBefore(u,a==="title"?i.querySelector("head > title"):null)}function fj(i,a,u){if(u===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(i=a.disabled,typeof a.precedence=="string"&&i==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function e2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function hj(i,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var y=nc(m.href),w=a.querySelector(qu(y));if(w){a=w._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(i.count++,i=Dh.bind(i),a.then(i,i)),u.state.loading|=4,u.instance=w,er(w);return}w=a.ownerDocument||a,m=WO(m),(y=Po.get(y))&&by(m,y),w=w.createElement("link"),er(w);var N=w;N._p=new Promise(function(z,J){N.onload=z,N.onerror=J}),dr(w,"link",m),u.instance=w}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=Dh.bind(i),a.addEventListener("load",u),a.addEventListener("error",u))}}var Sy=0;function pj(i,a){return i.stylesheets&&i.count===0&&$h(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var m=setTimeout(function(){if(i.stylesheets&&$h(i,i.stylesheets),i.unsuspend){var w=i.unsuspend;i.unsuspend=null,w()}},6e4+a);0<i.imgBytes&&Sy===0&&(Sy=62500*Z$());var y=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&$h(i,i.stylesheets),i.unsuspend)){var w=i.unsuspend;i.unsuspend=null,w()}},(i.imgBytes>Sy?50:800)+a);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(m),clearTimeout(y)}}:null}function Dh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$h(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Lh=null;function $h(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Lh=new Map,a.forEach(mj,i),Lh=null,Dh.call(i))}function mj(i,a){if(!(a.state.loading&4)){var u=Lh.get(i);if(u)var m=u.get(null);else{u=new Map,Lh.set(i,u);for(var y=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<y.length;w++){var N=y[w];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),m=N)}m&&u.set(null,m)}y=a.instance,N=y.getAttribute("data-precedence"),w=u.get(N)||m,w===m&&u.set(null,y),u.set(N,y),this.count++,m=Dh.bind(this),y.addEventListener("load",m),y.addEventListener("error",m),w?w.parentNode.insertBefore(y,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(y,i.firstChild)),a.state.loading|=4}}var Gu={$$typeof:T,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function gj(i,a,u,m,y,w,N,z,J){this.tag=1,this.containerInfo=i,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=Sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sr(0),this.hiddenUpdates=Sr(null),this.identifierPrefix=m,this.onUncaughtError=y,this.onCaughtError=w,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function t2(i,a,u,m,y,w,N,z,J,de,_e,Ee){return i=new gj(i,a,u,N,J,de,_e,Ee,z),a=1,w===!0&&(a|=24),w=to(3,null,null,a),i.current=w,w.stateNode=i,a=t0(),a.refCount++,i.pooledCache=a,a.refCount++,w.memoizedState={element:m,isDehydrated:u,cache:a},i0(w),i}function n2(i){return i?(i=kl,i):kl}function r2(i,a,u,m,y,w){y=n2(y),m.context===null?m.context=y:m.pendingContext=y,m=Os(a),m.payload={element:u},w=w===void 0?null:w,w!==null&&(m.callback=w),u=Ts(i,m,a),u!==null&&(Gr(u,i,a),xu(u,i,a))}function o2(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<a?u:a}}function Ey(i,a){o2(i,a),(i=i.alternate)&&o2(i,a)}function i2(i){if(i.tag===13||i.tag===31){var a=Oa(i,67108864);a!==null&&Gr(a,i,67108864),Ey(i,67108864)}}function s2(i){if(i.tag===13||i.tag===31){var a=so();a=bl(a);var u=Oa(i,a);u!==null&&Gr(u,i,a),Ey(i,a)}}var jh=!0;function vj(i,a,u,m){var y=H.T;H.T=null;var w=W.p;try{W.p=2,xy(i,a,u,m)}finally{W.p=w,H.T=y}}function yj(i,a,u,m){var y=H.T;H.T=null;var w=W.p;try{W.p=8,xy(i,a,u,m)}finally{W.p=w,H.T=y}}function xy(i,a,u,m){if(jh){var y=Ry(m);if(y===null)uy(i,a,m,zh,u),l2(i,m);else if(bj(y,i,a,u,m))m.stopPropagation();else if(l2(i,m),a&4&&-1<_j.indexOf(i)){for(;y!==null;){var w=El(y);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var N=Dt(w.pendingLanes);if(N!==0){var z=w;for(z.pendingLanes|=2,z.entangledLanes|=2;N;){var J=1<<31-Ln(N);z.entanglements[1]|=J,N&=~J}fi(w),(Ut&6)===0&&(wh=K()+500,Uu(0))}}break;case 31:case 13:z=Oa(w,2),z!==null&&Gr(z,w,2),Eh(),Ey(w,2)}if(w=Ry(m),w===null&&uy(i,a,m,zh,u),w===y)break;y=w}y!==null&&m.stopPropagation()}else uy(i,a,m,null,u)}}function Ry(i){return i=Tv(i),Oy(i)}var zh=null;function Oy(i){if(zh=null,i=Sl(i),i!==null){var a=s(i);if(a===null)i=null;else{var u=a.tag;if(u===13){if(i=l(a),i!==null)return i;i=null}else if(u===31){if(i=c(a),i!==null)return i;i=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return zh=i,null}function a2(i){switch(i){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(ne()){case ae:return 2;case Re:return 8;case Ae:case Ie:return 32;case ke:return 268435456;default:return 32}default:return 32}}var Ty=!1,js=null,zs=null,Us=null,Ku=new Map,Zu=new Map,Fs=[],_j="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 l2(i,a){switch(i){case"focusin":case"focusout":js=null;break;case"dragenter":case"dragleave":zs=null;break;case"mouseover":case"mouseout":Us=null;break;case"pointerover":case"pointerout":Ku.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zu.delete(a.pointerId)}}function Yu(i,a,u,m,y,w){return i===null||i.nativeEvent!==w?(i={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:w,targetContainers:[y]},a!==null&&(a=El(a),a!==null&&i2(a)),i):(i.eventSystemFlags|=m,a=i.targetContainers,y!==null&&a.indexOf(y)===-1&&a.push(y),i)}function bj(i,a,u,m,y){switch(a){case"focusin":return js=Yu(js,i,a,u,m,y),!0;case"dragenter":return zs=Yu(zs,i,a,u,m,y),!0;case"mouseover":return Us=Yu(Us,i,a,u,m,y),!0;case"pointerover":var w=y.pointerId;return Ku.set(w,Yu(Ku.get(w)||null,i,a,u,m,y)),!0;case"gotpointercapture":return w=y.pointerId,Zu.set(w,Yu(Zu.get(w)||null,i,a,u,m,y)),!0}return!1}function c2(i){var a=Sl(i.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=l(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===31){if(a=c(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Uh(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var u=Ry(i.nativeEvent);if(u===null){u=i.nativeEvent;var m=new u.constructor(u.type,u);Ov=m,u.target.dispatchEvent(m),Ov=null}else return a=El(u),a!==null&&i2(a),i.blockedOn=u,!1;a.shift()}return!0}function u2(i,a,u){Uh(i)&&u.delete(a)}function wj(){Ty=!1,js!==null&&Uh(js)&&(js=null),zs!==null&&Uh(zs)&&(zs=null),Us!==null&&Uh(Us)&&(Us=null),Ku.forEach(u2),Zu.forEach(u2)}function Fh(i,a){i.blockedOn===a&&(i.blockedOn=null,Ty||(Ty=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wj)))}var Bh=null;function d2(i){Bh!==i&&(Bh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bh===i&&(Bh=null);for(var a=0;a<i.length;a+=3){var u=i[a],m=i[a+1],y=i[a+2];if(typeof m!="function"){if(Oy(m||u)===null)continue;break}var w=El(u);w!==null&&(i.splice(a,3),a-=3,R0(w,{pending:!0,data:y,method:u.method,action:m},m,y))}}))}function oc(i){function a(J){return Fh(J,i)}js!==null&&Fh(js,i),zs!==null&&Fh(zs,i),Us!==null&&Fh(Us,i),Ku.forEach(a),Zu.forEach(a);for(var u=0;u<Fs.length;u++){var m=Fs[u];m.blockedOn===i&&(m.blockedOn=null)}for(;0<Fs.length&&(u=Fs[0],u.blockedOn===null);)c2(u),u.blockedOn===null&&Fs.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var y=u[m],w=u[m+1],N=y[Ur]||null;if(typeof w=="function")N||d2(u);else if(N){var z=null;if(w&&w.hasAttribute("formAction")){if(y=w,N=w[Ur]||null)z=N.formAction;else if(Oy(y)!==null)continue}else z=N.action;typeof z=="function"?u[m+1]=z:(u.splice(m,3),m-=3),d2(u)}}}function f2(){function i(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(N){return y=N})},focusReset:"manual",scroll:"manual"})}function a(){y!==null&&(y(),y=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,y=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),y!==null&&(y(),y=null)}}}function Cy(i){this._internalRoot=i}Vh.prototype.render=Cy.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=so();r2(u,m,i,a,null,null)},Vh.prototype.unmount=Cy.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;r2(i.current,2,null,i,null,null),Eh(),a[wl]=null}};function Vh(i){this._internalRoot=i}Vh.prototype.unstable_scheduleHydration=function(i){if(i){var a=_v();i={blockedOn:null,target:i,priority:a};for(var u=0;u<Fs.length&&a!==0&&a<Fs[u].priority;u++);Fs.splice(u,0,i),u===0&&c2(i)}};var h2=t.version;if(h2!=="19.2.6")throw Error(r(527,h2,"19.2.6"));W.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=f(a),i=i!==null?p(i):null,i=i===null?null:i.stateNode,i};var Sj={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qh.isDisabled&&qh.supportsFiber)try{vt=qh.inject(Sj),Tt=qh}catch{}}return Qu.createRoot=function(i,a){if(!o(i))throw Error(r(299));var u=!1,m="",y=bR,w=wR,N=SR;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(y=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(N=a.onRecoverableError)),a=t2(i,1,!1,null,null,u,m,null,y,w,N,f2),i[wl]=a.current,cy(i),new Cy(a)},Qu.hydrateRoot=function(i,a,u){if(!o(i))throw Error(r(299));var m=!1,y="",w=bR,N=wR,z=SR,J=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(z=u.onRecoverableError),u.formState!==void 0&&(J=u.formState)),a=t2(i,1,!0,a,u??null,m,y,J,w,N,z,f2),a.context=n2(null),u=a.current,m=so(),m=bl(m),y=Os(m),y.callback=null,Ts(u,y,m),u=m,a.current.lanes=u,Lt(a,u),fi(a),i[wl]=a.current,cy(i),new Vh(a)},Qu.version="19.2.6",Qu}var x2;function kj(){if(x2)return Iy.exports;x2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Iy.exports=Nj(),Iy.exports}var Dj=kj(),M=ma();const ee=fl(M),Ew=xj({__proto__:null,default:ee},[M]);var Dy={exports:{}},Ly={};var R2;function Lj(){if(R2)return Ly;R2=1;var e=ma().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Ly.c=function(t){return e.H.useMemoCache(t)},Ly}var O2;function $j(){return O2||(O2=1,Dy.exports=Lj()),Dy.exports}var ir=$j(),tu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jj=class extends tu{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},xw=new jj,zj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Uj=class{#e=zj;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Ja=new Uj;function Fj(e){setTimeout(e,0)}var Bj=typeof window>"u"||"Deno"in globalThis;function Zn(){}function Vj(e,t){return typeof e=="function"?e(t):e}function Ob(e){return typeof e=="number"&&e>=0&&e!==1/0}function JM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function sa(e,t){return typeof e=="function"?e(t):e}function uo(e,t){return typeof e=="function"?e(t):e}function T2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Rw(l,t.options))return!1}else if(!Bd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function C2(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ll(t.options.mutationKey)!==ll(s))return!1}else if(!Bd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Rw(e,t){return(t?.queryKeyHashFn||ll)(e)}function ll(e){return JSON.stringify(e,(t,n)=>Tb(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Bd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Bd(e[n],t[n])):!1}var qj=Object.prototype.hasOwnProperty;function eP(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=A2(e)&&A2(t);if(!r&&!(Tb(e)&&Tb(t)))return t;const s=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,d=r?new Array(c):{};let f=0;for(let p=0;p<c;p++){const h=r?p:l[p],g=e[h],v=t[h];if(g===v){d[h]=g,(r?p<s:qj.call(e,h))&&f++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[h]=v;continue}const _=eP(g,v,n+1);d[h]=_,_===g&&f++}return s===c&&f===s?e:d}function Am(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function A2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Tb(e){if(!I2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!I2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function I2(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hj(e){return new Promise(t=>{Ja.setTimeout(t,e)})}function Cb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?eP(e,t):t}function pce(e){return e}function Gj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Kj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ow=Symbol();function tP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ow?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Tw(e,t){return typeof e=="function"?e(...t):!!e}function Zj(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Vd=(()=>{let e=()=>Bj;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ab(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Yj(e){let t;if(e.then(n=>(t=n,n),Zn)?.catch(Zn),t!==void 0)return{data:t}}function nP(e){return e}function Wj(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function Qj(e,t,n){const r=()=>{const o=e.promise?.then(t).catch(s=>n(s)?Promise.reject(new Error("redacted")):Promise.reject(s));return o?.catch(Zn),o};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function Xj(e){return e.state.isPaused}function Jj(e){return e.state.status==="success"}function e8(e){return!0}function t8(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Xj,r=e.getMutationCache().getAll().flatMap(d=>n(d)?[Wj(d)]:[]),o=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Jj,s=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??e8,l=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??nP,c=e.getQueryCache().getAll().flatMap(d=>o(d)?[Qj(d,l,s)]:[]);return{mutations:r,queries:c}}function n8(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),s=e.getDefaultOptions().hydrate?.deserializeData??nP,l=t.mutations||[],c=t.queries||[];l.forEach(({state:d,...f})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...f},d)}),c.forEach(({queryKey:d,state:f,queryHash:p,meta:h,promise:g,dehydratedAt:v,queryType:_})=>{const b=g?Yj(g):void 0,x=f.data===void 0?b?.data:f.data,S=x===void 0?x:s(x);let E=o.get(p);const T=E?.state.status==="pending",R=E?.state.fetchStatus==="fetching";if(E){const O=b&&v!==void 0&&v>E.state.dataUpdatedAt;if(f.dataUpdatedAt>E.state.dataUpdatedAt||O){const{fetchStatus:A,...I}=f;E.setState({...I,data:S,...f.status==="pending"&&S!==void 0&&{status:"success",...!R&&{fetchStatus:"idle"}}})}}else E=o.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:d,queryHash:p,meta:h,_type:_},{...f,data:S,fetchStatus:"idle",status:f.status==="pending"&&S!==void 0?"success":f.status});g&&!b&&!T&&!R&&(v===void 0||v>E.state.dataUpdatedAt)&&E.fetch(void 0,{initialPromise:Promise.resolve(g).then(s)}).catch(Zn)})}var r8=Fj;function o8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=r8;const s=c=>{t?e.push(c):o(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{s(()=>{c(...d)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Wn=o8(),i8=class extends tu{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Im=new i8;function s8(e){return Math.min(1e3*2**e,3e4)}function rP(e){return(e??"online")==="online"?Im.isOnline():!0}var Ib=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function oP(e){let t=!1,n=0,r;const o=Ab(),s=()=>o.status!=="pending",l=b=>{if(!s()){const x=new Ib(b);g(x),e.onCancel?.(x)}},c=()=>{t=!0},d=()=>{t=!1},f=()=>xw.isFocused()&&(e.networkMode==="always"||Im.isOnline())&&e.canRun(),p=()=>rP(e.networkMode)&&e.canRun(),h=b=>{s()||(r?.(),o.resolve(b))},g=b=>{s()||(r?.(),o.reject(b))},v=()=>new Promise(b=>{r=x=>{(s()||f())&&b(x)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),_=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(S){b=Promise.reject(S)}Promise.resolve(b).then(h).catch(S=>{if(s())return;const E=e.retry??(Vd.isServer()?0:3),T=e.retryDelay??s8,R=typeof T=="function"?T(n,S):T,O=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,S);if(t||!O){g(S);return}n++,e.onFail?.(n,S),Hj(R).then(()=>f()?void 0:v()).then(()=>{t?g(S):_()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?_():v().then(_),o)}}var iP=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ob(this.gcTime)&&(this.#e=Ja.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vd.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Ja.clearTimeout(this.#e),this.#e=void 0)}};function a8(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const h=_=>{Zj(_,()=>t.signal,()=>p=!0)},g=tP(t.options,t.fetchOptions),v=async(_,b,x)=>{if(p)return Promise.reject(t.signal.reason);if(b==null&&_.pages.length)return Promise.resolve(_);const E=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:b,direction:x?"backward":"forward",meta:t.options.meta};return h(A),A})(),T=await g(E),{maxPages:R}=t.options,O=x?Kj:Gj;return{pages:O(_.pages,T,R),pageParams:O(_.pageParams,b,R)}};if(o&&s.length){const _=o==="backward",b=_?sP:Mb,x={pages:s,pageParams:l},S=b(r,x);c=await v(x,S,_)}else{const _=e??s.length;do{const b=d===0?l[0]??r.initialPageParam:Mb(r,c);if(d>0&&b==null)break;c=await v(c,b),d++}while(d<_)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function Mb(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function sP(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function mce(e,t){return t?Mb(e,t)!=null:!1}function gce(e,t){return!t||!e.getPreviousPageParam?!1:sP(e,t)!=null}var l8=class extends iP{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=P2(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#a,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=P2(this.options);t.data!==void 0&&(this.setState(M2(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=Cb(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(Zn).catch(Zn):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(e=>uo(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ow||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>sa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!JM(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#s||this.#u()?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const d=tP(this.options,t),p=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return r(d),d})();(this.#e==="infinite"?a8(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#l({type:"fetch",meta:l.fetchOptions?.meta}),this.#o=oP({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof Ib&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(d,f)=>{this.#l({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#o.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ib){if(d.silent)return this.#o.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...aP(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...M2(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Wn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function aP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function P2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var lP=class extends tu{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#a=Ab(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#a;#s;#u;#l;#p;#d;#f;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),N2(this.#t,this.options)?this.#h():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pb(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pb(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof uo(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Am(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&k2(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||sa(this.options.staleTime,this.#t)!==sa(t.staleTime,this.#t))&&this.#g();const o=this.#v();r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||o!==this.#c)&&this.#y(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return u8(this,n)&&(this.#r=n,this.#o=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zn)),t}#g(){this.#b();const e=sa(this.options.staleTime,this.#t);if(Vd.isServer()||this.#r.isStale||!Ob(e))return;const n=JM(this.#r.dataUpdatedAt,e)+1;this.#d=Ja.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#c=e,!(Vd.isServer()||uo(this.options.enabled,this.#t)===!1||!Ob(this.#c)||this.#c===0)&&(this.#f=Ja.setInterval(()=>{(this.options.refetchIntervalInBackground||xw.isFocused())&&this.#h()},this.#c))}#_(){this.#g(),this.#y(this.#v())}#b(){this.#d!==void 0&&(Ja.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Ja.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,s=this.#i,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},h=!1,g;if(t._optimisticResults){const P=this.hasListeners(),L=!P&&N2(e,t),q=P&&k2(e,n,t,r);(L||q)&&(p={...p,...aP(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:_,status:b}=p;g=p.data;let x=!1;if(t.placeholderData!==void 0&&g===void 0&&b==="pending"){let P;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(P=o.data,x=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,P!==void 0&&(b="success",g=Cb(o?.data,P,t),h=!0)}if(t.select&&g!==void 0&&!x)if(o&&g===s?.data&&t.select===this.#u)g=this.#l;else try{this.#u=t.select,g=t.select(g),g=Cb(o?.data,g,t),this.#l=g,this.#s=null}catch(P){this.#s=P}this.#s&&(v=this.#s,g=this.#l,_=Date.now(),b="error");const S=p.fetchStatus==="fetching",E=b==="pending",T=b==="error",R=E&&S,O=g!==void 0,I={status:b,fetchStatus:p.fetchStatus,isPending:E,isSuccess:b==="success",isError:T,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:_,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:T&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:T&&O,isStale:Cw(e,t),refetch:this.refetch,promise:this.#a,isEnabled:uo(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=I.data!==void 0,L=I.status==="error"&&!P,q=F=>{L?F.reject(I.error):P&&F.resolve(I.data)},j=()=>{const F=this.#a=I.promise=Ab();q(F)},B=this.#a;switch(B.status){case"pending":e.queryHash===n.queryHash&&q(B);break;case"fulfilled":(L||I.data!==B.value)&&j();break;case"rejected":(!L||I.error!==B.reason)&&j();break}}return I}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#p=this.#t),Am(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const s=new Set(o??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&s.has(c)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#E(e){Wn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function c8(e,t){return uo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&uo(t.retryOnMount,e)===!1)}function N2(e,t){return c8(e,t)||e.state.data!==void 0&&Pb(e,t,t.refetchOnMount)}function Pb(e,t,n){if(uo(t.enabled,e)!==!1&&sa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Cw(e,t)}return!1}function k2(e,t,n,r){return(e!==t||uo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Cw(e,n)}function Cw(e,t){return uo(t.enabled,e)!==!1&&e.isStaleByTime(sa(t.staleTime,e))}function u8(e,t){return!Am(e.getCurrentResult(),t)}var d8=class extends iP{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||cP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=oP({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#i({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:e,isPaused:o})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#i({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#i({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Wn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function cP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var f8=class extends tu{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new d8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Hh(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Hh(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Hh(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Hh(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Wn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>C2(t,n))}findAll(e={}){return this.getAll().filter(t=>C2(e,t))}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Wn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Zn))))}};function Hh(e){return e.options.scope?.id}var h8=class extends tu{#e;#t=void 0;#n;#r;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Am(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ll(n.mutationKey)!==ll(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??cP();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Wn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(t.data,null,n,r,o)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,n,r,o)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},p8=class extends tu{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Rw(r,t);let s=this.get(o);return s||(s=new l8({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Wn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>T2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>T2(e,n)):t}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},m8=class{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e={}){this.#e=e.queryCache||new p8,this.#t=e.mutationCache||new f8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#a=xw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Im.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#a?.(),this.#a=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(sa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,l=Vj(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Wn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Wn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Wn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Wn.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Zn).catch(Zn)}invalidateQueries(e,t={}){return Wn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Wn.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Zn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(sa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Im.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ll(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Bd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ll(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{Bd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ow&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},uP=M.createContext(void 0),Aw=e=>{const t=M.useContext(uP);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},g8=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(uP.Provider,{value:e,children:t})),dP=M.createContext(!1),v8=()=>M.useContext(dP);dP.Provider;function fP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hP=M.createContext(fP()),y8=()=>M.useContext(hP),yce=({children:e})=>{const[t]=M.useState(()=>fP());return C.jsx(hP.Provider,{value:t,children:typeof e=="function"?e(t):e})},_8=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?Tw(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},b8=e=>{M.useEffect(()=>{e.clearReset()},[e])},w8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Tw(n,[e.error,r])),S8=(e,t)=>t.state.data===void 0,E8=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},x8=(e,t)=>e.isLoading&&e.isFetching&&!t,R8=(e,t)=>e?.suspense&&t.isPending,D2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function pP(e,t,n){const r=v8(),o=y8(),s=Aw(n),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const c=s.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",E8(l),_8(l,o,c),b8(o);const d=!s.getQueryCache().get(l.queryHash),[f]=M.useState(()=>new t(s,l)),p=f.getOptimisticResult(l),h=!r&&e.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(g=>{const v=h?f.subscribe(Wn.batchCalls(g)):Zn;return f.updateResult(),v},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),M.useEffect(()=>{f.setOptions(l)},[l,f]),R8(l,p))throw D2(l,f,o);if(w8({result:p,errorResetBoundary:o,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,p),l.experimental_prefetchInRender&&!Vd.isServer()&&x8(p,r)&&(d?D2(l,f,o):c?.promise)?.catch(Zn).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?p:f.trackResult(p)}function mP(e,t){return pP(e,lP,t)}function ff(e,t){return pP({...e,enabled:!0,suspense:!0,throwOnError:S8,placeholderData:void 0},lP,t)}function O8(e,t){const n=Aw(t),[r]=M.useState(()=>new h8(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const o=M.useSyncExternalStore(M.useCallback(l=>r.subscribe(Wn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=M.useCallback((l,c)=>{r.mutate(l,c).catch(Zn)},[r]);if(o.error&&Tw(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const gP={publicConfig:()=>["publicConfig"],session:()=>["session"],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],myCapabilities:e=>[e,"my-capabilities"],connections:e=>[e,"connections"],connectionsByBinding:(e,t)=>[e,"connections",`binding:${t}`],connection:(e,t)=>[e,"connection",t],commerceDiscoveryConnection:(e,t)=>["commerce-discovery","connection",e,t],commerceDiscoveryVirtualMcp:(e,t)=>["commerce-discovery","virtual-mcp",e,t],commerceDiscoveryCompanionSchema:(e,t)=>["commerce-discovery","companion-schema",e,t],commerceDiscoveryCompanionConnections:(e,t)=>["commerce-discovery","companion-connections",e,t],commerceDiscoveryCompanionConnectionsPrefix:e=>["commerce-discovery","companion-connections",e],commerceDiscoveryCompanionRegistry:(e,t)=>["commerce-discovery","companion-registry",e,t],commerceDiscoveryCompanionOAuthStatus:(e,t)=>["commerce-discovery","companion-oauth-status",e,t],commerceDiscoveryCompanionGaProperties:(e,t)=>["commerce-discovery","companion-ga-properties",e,t],commerceDiscoveryCompanionGscSites:(e,t)=>["commerce-discovery","companion-gsc-sites",e,t],connectionActivity:(e,t,n)=>["monitoring","activity",e,t,n],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],mcpClientPrefix:()=>["mcp","client"],organizationSettings:e=>["organization-settings",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],modelsList:e=>["models-list",e],homeNextActions:e=>["home-next-actions",e],boardLayout:e=>["board-layout",e],agentPrompts:(e,t)=>["agent-prompts",e,t],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,n)=>["tool-call",e,t,n],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,n)=>[e,t,"collection",n],collectionItem:(e,t,n,r,o)=>[e,t,n,"collection",r,o],collectionList:(e,t,n,r,o)=>[e,t,n,"collection",r,"list",o],collectionListInfinite:(e,t,n,r,o)=>[e,t,n,"collection",r,"list-infinite",o],monitoringStats:()=>["monitoring","stats"],monitoringStatsToolCalls:(e,t)=>["MONITORING_STATS",e,"tool-calls",t],monitoringStatsLlm:(e,t)=>["MONITORING_STATS",e,"llm",t],monitoringThreadUsage:(e,t)=>["MONITORING_THREAD_USAGE",e,t],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],globalSearch:(e,t)=>["global-search",e,t],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],threadMessages:(e,t)=>["threads","messages",e,t],threadModelLogs:(e,t)=>["threads","model-logs",e,t],threadSandbox:(e,t)=>["thread-sandbox","v2",e,t],threadOutputs:e=>["thread-outputs",e],fileText:e=>["file-text",e],csvThumb:e=>["csv-thumb",e],virtualMcpTools:(e,t)=>["virtual-mcp",t,e??"default","tools"],toolDefinitionLookup:(e,t,n)=>["virtual-mcp",t,e??"default","tools","lookup",n],virtualMcpAgents:e=>["virtual-mcp",e,"agents"],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,n)=>[...e,t,n],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,n)=>["automation-runs",e,t,...[...n??[]].sort()],automationRunStats:(e,t,n)=>["automation-run-stats",e,t,n],projects:e=>["projects",e],project:(e,t)=>["project",e,t],virtualMcp:(e,t)=>["virtual-mcp",e,t],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],aiProviderKeyPreview:e=>["ai-provider-key-preview",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],orgFsVolume:(e,t)=>["org-fs",e,t],orgFsList:(e,t,n)=>["org-fs",e,t,"list",n],orgFsUsage:(e,t)=>["org-fs",e,t,"usage"],orgFsStat:(e,t,n)=>["org-fs",e,t,"stat",n],orgFsPublicSets:e=>["org-fs-public-sets",e],orgFsRecent:e=>["org-fs-recent",e],orgFsSkills:e=>["org-fs-skills",e],filePickerObjects:(e,t)=>["file-picker-objects",e,t],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomains:e=>["organization-domains",e],organizationJoinRequests:e=>["organization-join-requests",e],domainLookup:e=>["domain-lookup",e],brandContext:e=>["brand-context",e],defaultBrand:e=>["brand-context",e,"default"],decoProfile:e=>["deco-profile",e],decoSites:e=>["deco-sites",e],decoApps:()=>["deco-apps"],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],liveMeta:e=>["live-meta",e],sandboxInvoke:(e,t)=>["sandbox-invoke",e,t],sandboxRepoDir:(e,t,n)=>["sandbox-repo-dir",e,t,n],linkStatus:()=>["link-status"],currentLink:e=>["current-link",e],githubUserOrgs:(e,t)=>["github-user-orgs",e,t],githubOrgRepos:(e,t,n,r)=>["github-org-repos",e,t,n,r],vmEnv:(e,t,n)=>["vm-env",e,t,n]};function _ce(e,t){e.invalidateQueries({predicate:n=>{const r=n.queryKey;return(!t||r[1]===t)&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})}function vP(){const e=ir.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:gP.publicConfig(),queryFn:T8,staleTime:1/0},e[0]=t):t=e[0];const{data:n}=ff(t);return n}async function T8(){return(await(await fetch("/api/config")).json()).config}const bce={light:"/logos/deco logo.svg",dark:"/logos/deco logo negative.svg"},yP=M.createContext(void 0);function C8(e){const t=ir.c(3),{children:n}=e,r=vP();let o;return t[0]!==n||t[1]!==r.auth?(o=C.jsx(yP.Provider,{value:r.auth,children:n}),t[0]=n,t[1]=r.auth,t[2]=o):o=t[2],o}function wce(){const e=M.useContext(yP);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var L2=M.use,Oc=typeof window<"u"?M.useLayoutEffect:M.useEffect;function $y(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function A8(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([s])=>{t(s)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,r.disabled,e])}function I8(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}const _P=!1;function qd(e){return e[e.length-1]}function M8(e){return typeof e=="function"}function ra(e,t){return M8(e)?e(t):e}const bP=Object.prototype.hasOwnProperty,$2=Object.prototype.propertyIsEnumerable;function wP(e){for(const t in e)if(bP.call(e,t))return!0;return!1}const P8=()=>Object.create(null),za=(e,t)=>el(e,t,P8);function el(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const o=t,s=U2(e)&&U2(o);if(!s&&!(Bc(e)&&Bc(o)))return o;const l=s?e:j2(e);if(!l)return o;const c=s?o:j2(o);if(!c)return o;const d=l.length,f=c.length,p=s?new Array(f):n();let h=0;for(let g=0;g<f;g++){const v=s?g:c[g],_=e[v],b=o[v];if(_===b){p[v]=_,(s?g<d:bP.call(e,v))&&h++;continue}if(_===null||b===null||typeof _!="object"||typeof b!="object"){p[v]=b;continue}const x=el(_,b,n,r+1);p[v]=x,x===_&&h++}return d===f&&h===d?e:p}function j2(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!$2.call(e,o))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const o of n){if(!$2.call(e,o))return!1;r.push(o)}return r}function Bc(e){if(!z2(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!z2(n)||!n.hasOwnProperty("isPrototypeOf"))}function z2(e){return Object.prototype.toString.call(e)==="[object Object]"}function U2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ol(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!ol(e[r],t[r],n))return!1;return!0}if(Bc(e)&&Bc(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const l in t)if((!r||t[l]!==void 0)&&!ol(e[l],t[l],n))return!1;return!0}let o=0;if(!r)o=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&o++;let s=0;for(const l in t)if((!r||t[l]!==void 0)&&(s++,s>o||!ol(e[l],t[l],n)))return!1;return o===s}return!1}function Vc(e){let t,n;const r=new Promise((o,s)=>{t=o,n=s});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e?.(o)},r.reject=o=>{r.status="rejected",n(o)},r}function N8(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Hd(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function k8(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function F2(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return k8(t)}const D8=["http:","https:","mailto:","tel:"];function Mm(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Xu(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",o;for(;(o=t.exec(e))!==null;)r+=F2(e.slice(n,o.index))+o[0],n=t.lastIndex;r=r+F2(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function L8(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function $8(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ds(){throw new Error("Invariant failed")}function Gd(e){const t=new Map;let n,r;const o=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const l=t.get(s);if(l)return o(l),l.value},set(s,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const c=t.get(s);if(c)c.value=l,o(c);else{const d={key:s,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(s,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const oa=4,SP=5;function j8(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function EP(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),o=r===-1?e.length:r,s=e.substring(t,o);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if(s==="$"){const c=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=c,n[4]=c,n[5]=c,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;const l=j8(s);if(l){const[c,d]=l,f=s.charCodeAt(c+1);if(f===45){if(c+2<s.length&&s.charCodeAt(c+2)===36){const p=c+3,h=d;if(p<h)return n[0]=3,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=o,n}}else if(f===36){const p=c+1,h=c+2;return h===d?(n[0]=2,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=e.length,n):(n[0]=1,n[1]=t+c,n[2]=t+h,n[3]=t+d,n[4]=t+d+1,n[5]=o,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function Ag(e,t,n,r,o,s,l){l?.(n);let c=r;{const d=n.fullPath??n.from,f=d.length,p=n.options?.caseSensitive??e,h=n.options?.params?.parse??n.options?.parseParams;for(;c<f;){const v=EP(d,c,t);let _;const b=c,x=v[5];switch(c=x+1,s++,v[0]){case 0:{const S=d.substring(v[2],v[3]);if(p){const E=o.static?.get(S);if(E)_=E;else{o.static??=new Map;const T=tl(n.fullPath??n.from);T.parent=o,T.depth=s,_=T,o.static.set(S,T)}}else{const E=S.toLowerCase(),T=o.staticInsensitive?.get(E);if(T)_=T;else{o.staticInsensitive??=new Map;const R=tl(n.fullPath??n.from);R.parent=o,R.depth=s,_=R,o.staticInsensitive.set(E,R)}}break}case 1:{const S=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(S||E),R=S?T?S:S.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.dynamic?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)_=A;else{const I=zy(1,n.fullPath??n.from,T,R,O);_=I,I.depth=s,I.parent=o,o.dynamic??=[],o.dynamic.push(I)}break}case 3:{const S=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(S||E),R=S?T?S:S.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.optional?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)_=A;else{const I=zy(3,n.fullPath??n.from,T,R,O);_=I,I.parent=o,I.depth=s,o.optional??=[],o.optional.push(I)}break}case 2:{const S=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(S||E),R=S?T?S:S.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=zy(2,n.fullPath??n.from,T,R,O);_=A,A.parent=o,A.depth=s,o.wildcard??=[],o.wildcard.push(A)}}o=_}if(h&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const v=tl(n.fullPath??n.from);v.kind=SP,v.parent=o,s++,v.depth=s,o.pathless??=[],o.pathless.push(v),o=v}const g=(n.path||!n.children)&&!n.isRoot;if(g&&d.endsWith("/")){const v=tl(n.fullPath??n.from);v.kind=oa,v.parent=o,s++,v.depth=s,o.index=v,o=v}o.parse=h??null,g&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)Ag(e,t,d,c,o,s,l)}function jy(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Js(e){if(e.pathless)for(const t of e.pathless)Js(t);if(e.static)for(const t of e.static.values())Js(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Js(t);if(e.dynamic?.length){e.dynamic.sort(jy);for(const t of e.dynamic)Js(t)}if(e.optional?.length){e.optional.sort(jy);for(const t of e.optional)Js(t)}if(e.wildcard?.length){e.wildcard.sort(jy);for(const t of e.wildcard)Js(t)}}function tl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function zy(e,t,n,r,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:n,prefix:r,suffix:o}}function z8(e,t){const n=tl("/"),r=new Uint16Array(6);for(const o of e)Ag(!1,r,o,1,n,0);Js(n),t.masksTree=n,t.flatCache=Gd(1e3)}function U8(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=Iw(e,t.masksTree);return t.flatCache.set(e,r),r}function F8(e,t,n,r,o){e||="/",r||="/";const s=t?`case\0${e}`:e;let l=o.singleCache.get(s);return l||(l=tl("/"),Ag(t,new Uint16Array(6),{from:e},1,l,0),o.singleCache.set(s,l)),Iw(r,l,n)}function B8(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,o=t.matchCache.get(r);if(o!==void 0)return o;e||="/";let s;try{s=Iw(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)s=null;else throw l}return s&&(s.branch=RP(s.route)),t.matchCache.set(r,s),s}function V8(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function q8(e,t=!1,n){const r=tl(e.fullPath),o=new Uint16Array(6),s={},l={};let c=0;return Ag(t,o,e,1,r,0,d=>{if(n?.(d,c),d.id in s&&ds(),s[d.id]=d,c!==0&&d.path){const f=V8(d.fullPath);(!l[f]||d.fullPath.endsWith("/"))&&(l[f]=d)}c++}),Js(r),{processedTree:{segmentTree:r,singleCache:Gd(1e3),matchCache:Gd(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:l}}function Iw(e,t,n=!1){const r=e.split("/"),o=G8(e,r,t,n);if(!o)return null;const[s]=xP(e,r,o);return{route:o.node.route,rawParams:s}}function xP(e,t,n){const r=H8(n.node);let o=null;const s=Object.create(null);let l=n.extract?.part??0,c=n.extract?.node??0,d=n.extract?.path??0,f=n.extract?.segment??0;for(;c<r.length;l++,c++,d++,f++){const p=r[c];if(p.kind===oa)break;if(p.kind===SP){f--,l--,d--;continue}const h=t[l],g=d;if(h&&(d+=h.length),p.kind===1){o??=n.node.fullPath.split("/");const v=o[f],_=p.prefix?.length??0;if(v.charCodeAt(_)===123){const b=p.suffix?.length??0,x=v.substring(_+2,v.length-b-1),S=h.substring(_,h.length-b);s[x]=decodeURIComponent(S)}else{const b=v.substring(1);s[b]=decodeURIComponent(h)}}else if(p.kind===3){if(n.skipped&1<<c){l--,d=g-1;continue}o??=n.node.fullPath.split("/");const v=o[f],_=p.prefix?.length??0,b=p.suffix?.length??0,x=v.substring(_+3,v.length-b-1),S=p.suffix||p.prefix?h.substring(_,h.length-b):h;S&&(s[x]=decodeURIComponent(S))}else if(p.kind===2){const v=p,_=e.substring(g+(v.prefix?.length??0),e.length-(v.suffix?.length??0)),b=decodeURIComponent(_);s["*"]=b,s._splat=b;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:l,node:c,path:d,segment:f}]}function RP(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function H8(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function G8(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const o=!qd(t),s=o&&e!=="/",l=t.length-(o?1:0),c=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let d=null,f=null;for(;c.length;){const p=c.pop(),{node:h,index:g,skipped:v,depth:_,statics:b,dynamics:x,optionals:S}=p;let{extract:E,rawParams:T}=p;if(h.kind===2&&h.route&&!Kh(f,p))continue;if(h.parse){if(!B2(e,t,p))continue;T=p.rawParams,E=p.extract}r&&h.route&&h.kind!==oa&&Kh(d,p)&&(d=p);const R=g===l;if(R&&(h.route&&(!s||h.kind===oa||h.kind===2)&&Kh(f,p)&&(f=p),!h.optional&&!h.wildcard&&!h.index&&!h.pathless))continue;const O=R?void 0:t[g];let A;if(R&&h.index){const I={node:h.index,index:g,skipped:v,depth:_+1,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T};let P=!0;if(h.index.parse&&(B2(e,t,I)||(P=!1)),P){if(!x&&!S&&!v&&K8(b,l))return I;Kh(f,I)&&(f=I)}}if(h.wildcard)for(let I=h.wildcard.length-1;I>=0;I--){const P=h.wildcard[I],{prefix:L,suffix:q}=P;if(!(L&&(R||!(P.caseSensitive?O:A??=O.toLowerCase()).startsWith(L)))){if(q){if(R)continue;const j=t.slice(g).join("/").slice(-q.length);if((P.caseSensitive?j:j.toLowerCase())!==q)continue}c.push({node:P,index:l,skipped:v,depth:_+1,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T})}}if(h.optional){const I=v|1<<_,P=_+1;for(let L=h.optional.length-1;L>=0;L--){const q=h.optional[L];c.push({node:q,index:g,skipped:I,depth:P,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T})}if(!R)for(let L=h.optional.length-1;L>=0;L--){const q=h.optional[L],{prefix:j,suffix:B}=q;if(j||B){const F=q.caseSensitive?O:A??=O.toLowerCase();if(j&&!F.startsWith(j)||B&&!F.endsWith(B))continue}c.push({node:q,index:g+1,skipped:v,depth:P,statics:b,dynamics:x,optionals:S+Gh(l,g),extract:E,rawParams:T})}}if(!R&&h.dynamic&&O)for(let I=h.dynamic.length-1;I>=0;I--){const P=h.dynamic[I],{prefix:L,suffix:q}=P;if(L||q){const j=P.caseSensitive?O:A??=O.toLowerCase();if(L&&!j.startsWith(L)||q&&!j.endsWith(q))continue}c.push({node:P,index:g+1,skipped:v,depth:_+1,statics:b,dynamics:x+Gh(l,g),optionals:S,extract:E,rawParams:T})}if(!R&&h.staticInsensitive){const I=h.staticInsensitive.get(A??=O.toLowerCase());I&&c.push({node:I,index:g+1,skipped:v,depth:_+1,statics:b+Gh(l,g),dynamics:x,optionals:S,extract:E,rawParams:T})}if(!R&&h.static){const I=h.static.get(O);I&&c.push({node:I,index:g+1,skipped:v,depth:_+1,statics:b+Gh(l,g),dynamics:x,optionals:S,extract:E,rawParams:T})}if(h.pathless){const I=_+1;for(let P=h.pathless.length-1;P>=0;P--){const L=h.pathless[P];c.push({node:L,index:g,skipped:v,depth:I,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T})}}}if(f)return f;if(r&&d){let p=d.index;for(let g=0;g<d.index;g++)p+=t[g].length;const h=p===e.length?"/":e.slice(p);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(h),d}return null}function Gh(e,t){return 2**(e-t-1)}function K8(e,t){return e===2**(t-1)-1}function B2(e,t,n){let r,o;try{[r,o]=xP(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=o,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Kh(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===oa)>(e.node.kind===oa)||t.node.kind===oa==(e.node.kind===oa)&&t.depth>e.depth))):!0}function hm(e){return Mw(e.filter(t=>t!==void 0).join("/"))}function Mw(e){return e.replace(/\/{2,}/g,"/")}function OP(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ls(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function TP(e){return ls(OP(e))}function Pm(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Z8(e,t,n){return Pm(e,n)===Pm(t,n)}function Y8({base:e,to:t,trailingSlash:n="never",cache:r}){const o=t.startsWith("/"),s=!o&&t===".";let l;if(r){l=o?t:s?e:e+"\0"+t;const f=r.get(l);if(f)return f}let c;if(s)c=e.split("/");else if(o)c=t.split("/");else{for(c=e.split("/");c.length>1&&qd(c)==="";)c.pop();const f=t.split("/");for(let p=0,h=f.length;p<h;p++){const g=f[p];g===""?p?p===h-1&&c.push(g):c=[g]:g===".."?c.pop():g==="."||c.push(g)}}c.length>1&&(qd(c)===""?n==="never"&&c.pop():n==="always"&&c.push(""));const d=Mw(c.join("/"))||"/";return l&&r&&r.set(l,d),d}function W8(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),n=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return o=>o.replace(r,s=>t.get(s)??s)}function Uy(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>q2(o,n)).join("/"):q2(r,n)}function V2({path:e,params:t,decoder:n,...r}){let o=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:o};const l=e.length;let c=0,d,f="";for(;c<l;){const p=c;d=EP(e,p,d);const h=d[5];if(c=h+1,p===h)continue;const g=d[0];if(g===0){f+="/"+e.substring(p,h);continue}if(g===2){const v=t._splat;s._splat=v,s["*"]=v;const _=e.substring(p,d[1]),b=e.substring(d[4],h);if(!v){o=!0,(_||b)&&(f+="/"+_+b);continue}const x=Uy("_splat",t,n);f+="/"+_+x+b;continue}if(g===1){const v=e.substring(d[2],d[3]);!o&&!(v in t)&&(o=!0),s[v]=t[v];const _=e.substring(p,d[1]),b=e.substring(d[4],h),x=Uy(v,t,n)??"undefined";f+="/"+_+x+b;continue}if(g===3){const v=e.substring(d[2],d[3]),_=t[v];if(_==null)continue;s[v]=_;const b=e.substring(p,d[1]),x=e.substring(d[4],h),S=Uy(v,t,n)??"";f+="/"+b+S+x;continue}}return e.endsWith("/")&&(f+="/"),{usedParams:s,interpolatedPath:f||"/",isMissingParams:o}}function q2(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Cr(e){return e?.isNotFound===!0}function Q8(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const X8="tsr-scroll-restoration-v1_3";function J8(){const e=Q8();if(!e)return null;let t={};try{const r=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");Bc(r)&&(t=r)}catch{}return{get state(){return t},set:r=>{t=ra(r,t)||t},persist:()=>{try{e.setItem(X8,JSON.stringify(t))}catch{}}}}const H2=J8(),e7=e=>e.state.__TSR_key||e.href;function t7(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Zh=!1;const Ju="window",G2="data-scroll-restoration-id";function n7(e,t){if(!H2)return;const n=H2;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,Zh=!1;const r=e.options.getScrollRestorationKey||e7,o=new Map;window.history.scrollRestoration="manual";const s=c=>{if(!(Zh||!e.isScrollRestoring))if(c.target===document||c.target===window)o.set(Ju,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const d=c.target;o.set(d,{scrollX:d.scrollLeft||0,scrollY:d.scrollTop||0})}},l=c=>{if(!e.isScrollRestoring||!c||o.size===0||!n)return;const d=n.state[c]||={};for(const[f,p]of o){let h;if(f===Ju)h=Ju;else if(f.isConnected){const g=f.getAttribute(G2);h=g?`[${G2}="${g}"]`:t7(f)}h&&(d[h]=p)}};document.addEventListener("scroll",s,!0),e.subscribe("onBeforeLoad",c=>{l(c.fromLocation?r(c.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{l(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe("onRendered",c=>{const d=r(c.toLocation),f=e.options.scrollRestorationBehavior,p=e.options.scrollToTopSelectors;if(o.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Zh=!0;try{const h=e.isScrollRestoring?n.state[d]:void 0;let g=!1;if(h)for(const v in h){const _=h[v];if(!Bc(_))continue;const{scrollX:b,scrollY:x}=_;if(!(!Number.isFinite(b)||!Number.isFinite(x))){if(v===Ju)window.scrollTo({top:x,left:b,behavior:f}),g=!0;else if(v){let S;try{S=document.querySelector(v)}catch{continue}S&&(S.scrollLeft=b,S.scrollTop=x,g=!0)}}}if(!g){const v=e.history.location.hash.slice(1);if(v){const _=window.history.state?.__hashScrollIntoViewOptions??!0;if(_){const b=document.getElementById(v);b&&b.scrollIntoView(_)}}else{const _={top:0,left:0,behavior:f};if(window.scrollTo(_),p)for(const b of p){if(b===Ju)continue;const x=typeof b=="function"?b():document.querySelector(b);x&&x.scrollTo(_)}}}}finally{Zh=!1}e.isScrollRestoring&&n.set(h=>(h[d]||={},h))}})}function r7(e,t=String){const n=new URLSearchParams;for(const r in e){const o=e[r];o!==void 0&&n.set(r,t(o))}return n.toString()}function Fy(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function o7(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,o]of t.entries()){const s=n[r];s==null?n[r]=Fy(o):Array.isArray(s)?s.push(Fy(o)):n[r]=[s,Fy(o)]}return n}const i7=a7(JSON.parse),s7=l7(JSON.stringify,JSON.parse);function a7(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=o7(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function l7(e,t){const n=typeof t=="function";function r(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const s=r7(o,r);return s?`?${s}`:""}}const il="__root__";function Xa(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Qr(e){return e instanceof Response&&!!e.options}function c7(e){return{input:({url:t})=>{for(const n of e)t=Nb(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=CP(e[n],t);return t}}}function u7(e){const t=TP(e.basepath),n=`/${t}`,r=`${n}/`,o=e.caseSensitive?n:n.toLowerCase(),s=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===o?l.pathname="/":c.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=hm(["/",t,l.pathname]),l)}}function Nb(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function CP(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function d7(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:o,init:s}=t,l=new Map,c=new Map,d=new Map,f=n(e.status),p=n(e.loadedAt),h=n(e.isLoading),g=n(e.isTransitioning),v=n(e.location),_=n(e.resolvedLocation),b=n(e.statusCode),x=n(e.redirect),S=n([]),E=n([]),T=n([]),R=r(()=>By(l,S.get())),O=r(()=>By(c,E.get())),A=r(()=>By(d,T.get())),I=r(()=>S.get()[0]),P=r(()=>S.get().some(W=>l.get(W)?.get().status==="pending")),L=r(()=>({locationHref:v.get().href,resolvedLocationHref:_.get()?.href,status:f.get()})),q=r(()=>({status:f.get(),loadedAt:p.get(),isLoading:h.get(),isTransitioning:g.get(),matches:R.get(),location:v.get(),resolvedLocation:_.get(),statusCode:b.get(),redirect:x.get()})),j=Gd(64);function B(W){let te=j.get(W);return te||(te=r(()=>{const le=S.get();for(const Q of le){const k=l.get(Q);if(k&&k.routeId===W)return k.get()}}),j.set(W,te)),te}const F={status:f,loadedAt:p,isLoading:h,isTransitioning:g,location:v,resolvedLocation:_,statusCode:b,redirect:x,matchesId:S,pendingIds:E,cachedIds:T,matches:R,pendingMatches:O,cachedMatches:A,firstId:I,hasPending:P,matchRouteDeps:L,matchStores:l,pendingMatchStores:c,cachedMatchStores:d,__store:q,getRouteMatchStore:B,setMatches:Z,setPending:ie,setCached:H};Z(e.matches),s?.(F);function Z(W){Vy(W,l,S,n,o)}function ie(W){Vy(W,c,E,n,o)}function H(W){Vy(W,d,T,n,o)}return F}function By(e,t){const n=[];for(const r of t){const o=e.get(r);o&&n.push(o.get())}return n}function Vy(e,t,n,r,o){const s=e.map(c=>c.id),l=new Set(s);o(()=>{for(const c of t.keys())l.has(c)||t.delete(c);for(const c of e){const d=t.get(c.id);if(!d){const f=r(c);f.routeId=c.routeId,t.set(c.id,f);continue}d.routeId=c.routeId,d.get()!==c&&d.set(c)}$8(n.get(),s)||n.set(s)})}const kb=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},f7=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ig=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),sl=(e,t,n=!0)=>{const r={...e.router.options.context??{}},o=n?t:t-1;for(let s=0;s<=o;s++){const l=e.matches[s];if(!l)continue;const c=e.router.getMatch(l.id);c&&Object.assign(r,c.__routeContext,c.__beforeLoadContext)}return r},K2=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),o=r>=0?r:0;let s=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=o);for(let l=s;l>=0;l--){const c=e.matches[l];if(e.router.looseRoutesById[c.routeId].options.notFoundComponent)return l}return n?s:o},ia=(e,t,n)=>{if(!(!Qr(n)&&!Cr(n)))throw Qr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Qr(n)?"redirected":Cr(n)?"notFound":r.status==="pending"?"success":r.status,context:sl(e,t.index),isFetching:!1,error:n})),Cr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Qr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},AP=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Z2=(e,t,n)=>{const r=sl(e,n);e.updateMatch(t,o=>({...o,context:r}))},ed=(e,t,n,r)=>{const{id:o,routeId:s}=e.matches[t],l=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,ia(e,e.router.getMatch(o),n);try{l.options.onError?.(n)}catch(c){n=c,ia(e,e.router.getMatch(o),n)}e.updateMatch(o,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Qr(n)&&!Cr(n)&&(e.serialError??=n)},IP=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const o=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ig(e,t)&&(n.options.loader||n.options.beforeLoad||PP(n))&&typeof o=="number"&&o!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{kb(e)},o);r._nonReactive.pendingTimeout=s}},h7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;IP(e,t,n,r);const o=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&ia(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},p7=(e,t,n,r)=>{const o=e.router.getMatch(t);let s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Vc(()=>{s?.resolve(),s=void 0});const{paramsError:l,searchError:c}=o;l&&ed(e,n,l,"PARSE_PARAMS"),c&&ed(e,n,c,"VALIDATE_SEARCH"),IP(e,t,r,o);const d=new AbortController;let f=!1;const p=()=>{f||(f=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:d})))},h=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,R=>({...R,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{p(),h()});return}o._nonReactive.beforeLoadPromise=Vc();const g={...sl(e,n,!1),...o.__routeContext},{search:v,params:_,cause:b}=o,x=Ig(e,t),S={search:v,abortController:d,params:_,preload:x,context:g,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":b,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},E=R=>{if(R===void 0){e.router.batch(()=>{p(),h()});return}(Qr(R)||Cr(R))&&(p(),ed(e,n,R,"BEFORE_LOAD")),e.router.batch(()=>{p(),e.updateMatch(t,O=>({...O,__beforeLoadContext:R})),h()})};let T;try{if(T=r.options.beforeLoad(S),Hd(T))return p(),T.catch(R=>{ed(e,n,R,"BEFORE_LOAD")}).then(E)}catch(R){p(),ed(e,n,R,"BEFORE_LOAD")}E(T)},m7=(e,t)=>{const{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r],s=()=>c(),l=()=>p7(e,n,t,o),c=()=>{if(AP(e,n))return;const d=h7(e,n,o);return Hd(d)?d.then(l):l()};return s()},g7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(o),n.options.scripts?.(o),n.options.headers?.(o)]).then(([s,l,c])=>({meta:s?.meta,links:s?.links,headScripts:s?.scripts,headers:c,scripts:l,styles:s?.styles}))},MP=(e,t,n,r,o)=>{const s=t[r-1],{params:l,loaderDeps:c,abortController:d,cause:f}=e.router.getMatch(n),p=sl(e,r),h=Ig(e,n);return{params:l,deps:c,preload:!!h,parentMatchPromise:s,abortController:d,context:p,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:h?"preload":f,route:o,...e.router.options.additionalContext}},Y2=async(e,t,n,r,o)=>{try{const s=e.router.getMatch(n);try{(!(_P??e.router.isServer)||s.ssr===!0)&&Kd(o);const l=o.options.loader,c=typeof l=="function"?l:l?.handler,d=c?.(MP(e,t,n,r,o)),f=!!c&&Hd(d);if((f||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,h=>({...h,isFetching:"loader"})),c){const h=f?await d:d;ia(e,e.router.getMatch(n),h),h!==void 0&&e.updateMatch(n,g=>({...g,loaderData:h}))}o._lazyPromise&&await o._lazyPromise;const p=s._nonReactive.minPendingPromise;p&&await p,o._componentsPromise&&await o._componentsPromise,e.updateMatch(n,h=>({...h,error:void 0,context:sl(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:sl(e,r)}));return}const d=s._nonReactive.minPendingPromise;d&&await d,Cr(l)&&await o.options.notFoundComponent?.preload?.(),ia(e,e.router.getMatch(n),l);try{o.options.onError?.(l)}catch(f){c=f,ia(e,e.router.getMatch(n),f)}!Qr(c)&&!Cr(c)&&await Kd(o,["errorComponent"]),e.updateMatch(n,f=>({...f,error:c,context:sl(e,r),status:"error",isFetching:!1}))}}catch(s){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),ia(e,l,s)}},v7=async(e,t,n)=>{async function r(v,_,b,x,S){const E=Date.now()-_.updatedAt,T=v?S.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:S.options.staleTime??e.router.options.defaultStaleTime??0,R=S.options.shouldReload,O=typeof R=="function"?R(MP(e,t,o,n,S)):R,{status:A,invalid:I}=x,P=E>=T&&(!!e.forceStaleReload||x.cause==="enter"||b!==void 0&&b!==x.id);l=A==="success"&&(I||(O??P)),v&&S.options.preload===!1||(l&&!e.sync&&p?(c=!0,(async()=>{try{await Y2(e,t,o,n,S);const L=e.router.getMatch(o);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0,L._nonReactive.loadPromise=void 0}catch(L){Qr(L)&&await e.router.navigate(L.options)}})()):A!=="success"||l?await Y2(e,t,o,n,S):Z2(e,o,n))}const{id:o,routeId:s}=e.matches[n];let l=!1,c=!1;const d=e.router.looseRoutesById[s],f=d.options.loader,p=((typeof f=="function"?void 0:f?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(AP(e,o)){if(!e.router.getMatch(o))return e.matches[n];Z2(e,o,n)}else{const v=e.router.getMatch(o),_=e.router.stores.matchesId.get()[n],b=(_&&e.router.stores.matchStores.get(_)||null)?.routeId===s?_:e.router.stores.matches.get().find(S=>S.routeId===s)?.id,x=Ig(e,o);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload&&p)return v;await v._nonReactive.loaderPromise;const S=e.router.getMatch(o),E=S._nonReactive.error||S.error;E&&ia(e,S,E),S.status==="pending"&&await r(x,v,b,S,d)}else{const S=x&&!e.router.stores.matchStores.has(o),E=e.router.getMatch(o);E._nonReactive.loaderPromise=Vc(),S!==E.preload&&e.updateMatch(o,T=>({...T,preload:S})),await r(x,v,b,E,d)}}const h=e.router.getMatch(o);c||(h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loadPromise?.resolve(),h._nonReactive.loadPromise=void 0),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,c||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const g=c?h.isFetching:!1;return g!==h.isFetching||h.invalid!==!1?(e.updateMatch(o,v=>({...v,isFetching:g,invalid:!1})),e.router.getMatch(o)):h};async function W2(e){const t=e,n=[];f7(t.router)&&kb(t);let r;for(let g=0;g<t.matches.length;g++){try{const v=m7(t,g);Hd(v)&&await v}catch(v){if(Qr(v))throw v;if(Cr(v))r=v;else if(!t.preload)throw v;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?K2(t,r):void 0,l=r&&t.preload?0:s!==void 0?Math.min(s+1,o):o;let c,d;for(let g=0;g<l;g++)n.push(v7(t,n,g));try{await Promise.all(n)}catch{const g=await Promise.allSettled(n);for(const v of g){if(v.status!=="rejected")continue;const _=v.reason;if(Qr(_))throw _;Cr(_)?c??=_:d??=_}if(d!==void 0)throw d}const f=c??(r&&!t.preload?r:void 0);let p=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!f&&r&&t.preload)return t.matches;if(f){const g=K2(t,f);g===void 0&&ds();const v=t.matches[g],_=t.router.looseRoutesById[v.routeId],b=t.router.options?.defaultNotFoundComponent;!_.options.notFoundComponent&&b&&(_.options.notFoundComponent=b),f.routeId=v.routeId;const x=v.routeId===t.router.routeTree.id;t.updateMatch(v.id,S=>({...S,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),p=g,await Kd(_,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Kd(g,["errorComponent"])}for(let g=0;g<=p;g++){const{id:v,routeId:_}=t.matches[g],b=t.router.looseRoutesById[_];try{const x=g7(t,v,b);if(x){const S=await x;t.updateMatch(v,E=>({...E,...S}))}}catch(x){console.error(`Error executing head for route ${_}:`,x)}}const h=kb(t);if(Hd(h)&&await h,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Q2(e,t){const n=t.map(r=>e.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Kd(e,t=pm){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:o,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===pm?(()=>{if(e._componentsPromise===void 0){const r=Q2(e,pm);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Q2(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function PP(e){for(const t of pm)if(e.options[t]?.preload)return!0;return!1}const pm=["component","errorComponent","pendingComponent","notFoundComponent"];var aa="__TSR_index",X2="popstate",J2="beforeunload";function y7(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:l}))},o=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},s=async({task:l,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){l();return}const f=e.getBlockers?.()??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&f.length&&p)for(const h of f){const g=Nm(d.path,d.state);if(await h.blockerFn({currentLocation:t,nextLocation:g,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,c,d)=>{const f=t.state[aa];c=eT(f+1,c),s({task:()=>{e.pushState(l,c),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:c})},replace:(l,c,d)=>{const f=t.state[aa];c=eT(f,c),s({task:()=>{e.replaceState(l,c),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:c})},go:(l,c)=>{s({task:()=>{e.go(l),o({type:"GO",index:l})},navigateOpts:c,type:"GO"})},back:l=>{s({task:()=>{e.back(l?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{s({task:()=>{e.forward(l?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[aa]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(f=>f!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function eT(e,t){t||(t={});const n=Pw();return{...t,key:n,__TSR_key:n,[aa]:e}}function _7(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let o=[];const s=()=>o,l=P=>o=P,c=(P=>P),d=(()=>Nm(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=Pw();t.history.replaceState({[aa]:0,key:P,__TSR_key:P},"")}let f=d(),p,h=!1,g=!1,v=!1,_=!1;const b=()=>f;let x,S;const E=()=>{x&&(I._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),I._ignoreSubscribers=!1,x=void 0,S=void 0,p=void 0)},T=(P,L,q)=>{const j=c(L);S||(p=f),f=Nm(L,q),x={href:j,state:q,isPush:x?.isPush||P==="push"},S||(S=Promise.resolve().then(()=>E()))},R=P=>{f=d(),I.notify({type:P})},O=async()=>{if(g){g=!1;return}const P=d(),L=P.state[aa]-f.state[aa],q=L===1,j=L===-1,B=!q&&!j||h;h=!1;const F=B?"GO":j?"BACK":"FORWARD",Z=B?{type:"GO",index:L}:{type:j?"BACK":"FORWARD"};if(v)v=!1;else{const ie=s();if(typeof document<"u"&&ie.length){for(const H of ie)if(await H.blockerFn({currentLocation:f,nextLocation:P,action:F})){g=!0,t.history.go(1),I.notify(Z);return}}}f=d(),I.notify(Z)},A=P=>{if(_){_=!1;return}let L=!1;const q=s();if(typeof document<"u"&&q.length)for(const j of q){const B=j.enableBeforeUnload??!0;if(B===!0){L=!0;break}if(typeof B=="function"&&B()===!0){L=!0;break}}if(L)return P.preventDefault(),P.returnValue=""},I=y7({getLocation:b,getLength:()=>t.history.length,pushState:(P,L)=>T("push",P,L),replaceState:(P,L)=>T("replace",P,L),back:P=>(P&&(v=!0),_=!0,t.history.back()),forward:P=>{P&&(v=!0),_=!0,t.history.forward()},go:P=>{h=!0,t.history.go(P)},createHref:P=>c(P),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(J2,A,{capture:!0}),t.removeEventListener(X2,O)},onBlocked:()=>{p&&f!==p&&(f=p)},getBlockers:s,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(J2,A,{capture:!0}),t.addEventListener(X2,O),t.history.pushState=function(...P){const L=n.apply(t.history,P);return I._ignoreSubscribers||R("PUSH"),L},t.history.replaceState=function(...P){const L=r.apply(t.history,P);return I._ignoreSubscribers||R("REPLACE"),L},I}function b7(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Nm(e,t){const n=b7(e),r=n.indexOf("#"),o=n.indexOf("?"),s=Pw();return{href:n,pathname:n.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:n.length),hash:r>-1?n.substring(r):"",search:o>-1?n.slice(o,r===-1?void 0:r):"",state:t||{[aa]:0,key:s,__TSR_key:s}}}function Pw(){return(Math.random()+1).toString(36).substring(7)}function Nc(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var w7=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const r=this.options,o=this.basepath??r?.basepath??"/",s=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=W8(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=_7()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let p;this.resolvePathCache=Gd(1e3),p=this.buildRouteTree(),this.setRoutes(p)}if(!this.stores&&this.latestLocation){const p=this.getStoreConfig(this);this.batch=p.batch,this.stores=d7(E7(this.latestLocation),p),n7(this)}let c=!1;const d=this.options.basepath??"/",f=this.options.rewrite;if(s||o!==d||l!==f){this.basepath=d;const p=[],h=TP(d);h&&h!=="/"&&p.push(u7({basepath:d})),f&&p.push(f),this.rewrite=p.length===0?void 0:p.length===1?p[0]:c7(p),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=q8(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&z8(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const o=({pathname:d,search:f,hash:p,href:h,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const S=this.options.parseSearch(f),E=this.options.stringifySearch(S);return{href:d+E+p,publicHref:d+E+p,pathname:Xu(d).path,external:!1,searchStr:E,search:za(r?.search,S),hash:Xu(p.slice(1)).path,state:el(r?.state,g)}}const v=new URL(h,this.origin),_=Nb(this.rewrite,v),b=this.options.parseSearch(_.search),x=this.options.stringifySearch(b);return _.search=x,{href:_.href.replace(_.origin,""),publicHref:h,pathname:Xu(_.pathname).path,external:!!this.rewrite&&_.origin!==this.origin,searchStr:x,search:za(r?.search,b),hash:Xu(_.hash.slice(1)).path,state:el(r?.state,g)}},s=o(n),{__tempLocation:l,__tempKey:c}=s.state;if(l&&(!c||c===this.tempLocationKey)){const d=o(l);return d.state.key=s.state.key,d.state.__TSR_key=s.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>Y8({base:n,to:r.includes("//")?Mw(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},o):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>x7({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const r=this.stores.matchStores.get(n)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{const l=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(l);s.from;const d=s.unsafeRelative==="path"?l.pathname:s.from??c.fullPath,f=s.to?`${s.to}`:void 0,p=c.search,h=Object.assign(Object.create(null),c.params),g=f?.charCodeAt(0)===47?"/":this.resolvePathWithBase(d,"."),v=f?this.resolvePathWithBase(g,f):g,_=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?h:Object.assign(h,ra(s.params,h)),b=this.routesByPath[ls(v)];let x;if(b)x=this.getRouteBranch(b);else if(v.includes("$"))x=[];else{const j=this.getMatchedRoutes(v);x=j.matchedRoutes,this.options.notFoundRoute&&(!j.foundRoute||j.foundRoute.path!=="/"&&j.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&wP(_))for(const j of x){const B=j.options.params?.stringify??j.options.stringifyParams;if(B)try{Object.assign(_,B(_))}catch{}}const S=n.leaveParams?v:Xu(V2({path:v,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let E=p;if(n._includeValidateSearch&&this.options.search?.strict){const j={};x.forEach(B=>{if(B.options.validateSearch)try{Object.assign(j,mm(B.options.validateSearch,{...j,...E}))}catch{}}),E=j}E=R7({search:E,dest:s,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),E=za(p,E);const T=this.options.stringifySearch(E),R=s.hash===!0?l.hash:s.hash?ra(s.hash,l.hash):void 0,O=R?`#${R}`:"";let A=s.state===!0?l.state:s.state?ra(s.state,l.state):{};A=el(l.state,A);const I=`${S}${T}${O}`;let P,L,q=!1;if(this.rewrite){const j=new URL(I,this.origin),B=CP(this.rewrite,j);P=j.href.replace(j.origin,""),B.origin!==this.origin?(L=B.href,q=!0):L=B.pathname+B.search+B.hash}else P=L8(I),L=P;return{publicHref:L,href:P,pathname:S,search:E,searchStr:T,state:A,hash:R??"",external:q,unmaskOnReload:s.unmaskOnReload}},o=(s={},l)=>{const c=r(s);let d=l?r(l):void 0;if(!d){const f=Object.create(null);if(this.options.routeMasks){const p=U8(c.pathname,this.processedTree);if(p){Object.assign(f,p.rawParams);const{from:h,params:g,...v}=p.route,_=g===!1||g===null?Object.create(null):(g??!0)===!0?f:Object.assign(f,ra(g,f));l={from:n.from,...v,params:_},d=r(l)}}}return d&&(c.maskedLocation=d),c};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...o})=>{const s=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(p=>{o.state[p]=this.latestLocation.state[p]});const f=ol(o.state,this.latestLocation.state);return d.forEach(p=>{delete o.state[p]}),f},l=ls(this.latestLocation.href)===ls(o.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=Vc(()=>{c?.resolve(),c=void 0}),l&&s())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...p}=o;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:o,viewTransition:s,ignoreBlocker:l,href:c,...d}={})=>{if(c){const h=this.history.location.state.__TSR_index,g=Nm(c,{__TSR_index:n?h:h+1}),v=new URL(g.pathname,this.origin);d.to=Nb(this.rewrite,v).pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const f=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const p=this.commitLocation({...f,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:r,href:o,publicHref:s,...l})=>{let c=!1;if(o)try{new URL(`${o}`),c=!0}catch{}if(c&&!r&&(r=!0),r){if(n!==void 0||!o){const f=this.buildLocation({to:n,...l});o=o??f.publicHref,s=s??f.publicHref}const d=!c&&s?s:o;if(Mm(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const p of f)if(p?.blockerFn&&await p.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(o=>!n.some(s=>s.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(r)})},this.load=async n=>{let r,o,s;const l=this.stores.resolvedLocation.get()??this.stores.location.get();for(s=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const f=this.latestLocation,p=Nc(f,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...p}),this.emit({type:"onBeforeLoad",...p}),await W2({router:this,sync:n?.sync,forceStaleReload:l.href===f.href,matches:this.stores.pendingMatches.get(),location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let h=null,g=null,v=null,_=null;this.batch(()=>{const b=this.stores.pendingMatches.get(),x=b.length,S=this.stores.matches.get();h=x?S.filter(R=>!this.stores.pendingMatchStores.has(R.id)):null;const E=new Set;for(const R of this.stores.pendingMatchStores.values())R.routeId&&E.add(R.routeId);const T=new Set;for(const R of this.stores.matchStores.values())R.routeId&&T.add(R.routeId);g=x?S.filter(R=>!E.has(R.routeId)):null,v=x?b.filter(R=>!T.has(R.routeId)):null,_=x?b.filter(R=>T.has(R.routeId)):S,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(b),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...h.filter(R=>R.status!=="error"&&R.status!=="notFound"&&R.status!=="redirected")]),this.clearExpiredCache())});for(const[b,x]of[[g,"onLeave"],[v,"onEnter"],[_,"onStay"]])if(b)for(const S of b)this.looseRoutesById[S.routeId].options[x]?.(S)})})}})}catch(f){Qr(f)?(r=f,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Cr(f)&&(o=f);const p=r?r.status:o?404:this.stores.matches.get().some(h=>h.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(p),this.stores.redirect.set(r)})}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(d=>d.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,l=this.stores.resolvedLocation.get(),c=typeof r.types=="function"?r.types(Nc(s,l)):r.types;if(c===!1){n();return}o={update:n,types:c}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(n);if(o){o.set(r);return}const s=this.stores.matchStores.get(n);if(s){s.set(r);return}const l=this.stores.cachedMatchStores.get(n);if(l){const c=r(l.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(d=>d.filter(f=>f!==n)):l.set(c)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const r=o=>n?.filter?.(o)??!0?{...o,invalid:!0,...n?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const o=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(o);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const s=o.pathname+o.search+o.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&Mm(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!r(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),r=o=>{const s=this.looseRoutesById[o.routeId];if(!s.options.loader)return!0;const l=(o.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:n-o.updatedAt>=l};this.clearCache({filter:r})},this.loadRouteChunk=Kd,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...s,...this.stores.cachedIds.get()]),c=o.filter(d=>!l.has(d.id));if(c.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...c])}try{return o=await W2({router:this,matches:o,location:r,preload:!0,updateMatch:(d,f)=>{s.has(d)?o=o.map(p=>p.id===d?f(p):p):this.updateMatch(d,f)}}),o}catch(d){if(Qr(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:r});Cr(d)||console.error(d);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(o);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const l=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=F8(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,l.pathname,this.processedTree);return!c||n.params&&!ol(c.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?ol(l.search,s.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??s7,parseSearch:e.parseSearch??i7,protocolAllowlist:e.protocolAllowlist??D8}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=RP(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:o}=n;let{matchedRoutes:s}=n,l=!1;(r?r.path!=="/"&&o["**"]:ls(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:l=!0);const c=l?T7(this.options.notFoundMode,s):void 0,d=new Array(s.length),f=new Map;for(const p of this.stores.matchStores.values())p.routeId&&f.set(p.routeId,p.get());for(let p=0;p<s.length;p++){const h=s[p],g=d[p-1];let v,_,b;{const B=g?.search??e.search,F=g?._strictSearch??void 0;try{const Z=mm(h.options.validateSearch,{...B})??void 0;v={...B,...Z},_={...F,...Z},b=void 0}catch(Z){let ie=Z;if(Z instanceof km||(ie=new km(Z.message,{cause:Z})),t?.throwOnError)throw ie;v=B,_={},b=ie}}const x=h.options.loaderDeps?.({search:v})??"",S=x?JSON.stringify(x):"",{interpolatedPath:E,usedParams:T}=V2({path:h.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),R=h.id+E+S,O=this.getMatch(R),A=f.get(h.id),I=O?._strictParams??T;let P;if(!O)try{tT(h,I)}catch(B){if(Cr(B)||Qr(B)?P=B:P=new S7(B.message,{cause:B}),t?.throwOnError)throw P}Object.assign(o,I);const L=A?"stay":"enter";let q;if(O)q={...O,cause:L,params:A?.params??o,_strictParams:I,search:za(A?A.search:O.search,v),_strictSearch:_};else{const B=h.options.loader||h.options.beforeLoad||h.lazyFn||PP(h)?"pending":"success";q={id:R,ssr:h.options.ssr,index:p,routeId:h.id,params:A?.params??o,_strictParams:I,pathname:E,updatedAt:Date.now(),search:A?za(A.search,v):v,_strictSearch:_,searchError:void 0,status:B,isFetching:!1,error:void 0,paramsError:P,__routeContext:void 0,_nonReactive:{loadPromise:Vc()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:A?el(A.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},fullPath:h.fullPath}}t?.preload||(q.globalNotFound=c===h.id),q.searchError=b;const j=this.getParentContext(g);q.context={...j,...q.__routeContext,...q.__beforeLoadContext},d[p]=q}for(let p=0;p<d.length;p++){const h=d[p],g=this.looseRoutesById[h.routeId],v=this.getMatch(h.id),_=f.get(h.routeId);if(h.params=_?za(_.params,o):o,!v){const b=d[p-1],x=this.getParentContext(b);if(g.options.context){const S={deps:h.loaderDeps,params:h.params,context:x??{},location:e,navigate:E=>this.navigate({...E,_fromLocation:e}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:d,routeId:g.id};h.__routeContext=g.options.context(S)??void 0}h.context={...x,...h.__routeContext,...h.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=qd(t),o={...e.search};for(const f of t)try{Object.assign(o,mm(f.options.validateSearch,o))}catch{}const s=qd(this.stores.matchesId.get()),l=s&&this.stores.matchStores.get(s)?.get(),c=l&&l.routeId===r.id&&l.pathname===e.pathname;let d;if(c)d=l.params;else{const f=Object.assign(Object.create(null),n);for(const p of t)try{tT(p,f)}catch{}d=f}return{matchedRoutes:t,fullPath:r.fullPath,search:o,params:d}}},km=class extends Error{},S7=class extends Error{};function E7(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function mm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new km("Async validation not supported");if(n.issues)throw new km(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function x7({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),o=ls(e);let s;const l=B8(o,n,!0);return l&&(s=l.route,Object.assign(r,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:r,foundRoute:s}}function R7({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return O7(n)(e,t,r??!1)}function O7(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const o of e){if("search"in o.options)o.options.search?.middlewares&&t.middlewares.push(...o.options.search.middlewares);else if(o.options.preSearchFilters||o.options.postSearchFilters){const s=({search:l,next:c})=>{let d=l;"preSearchFilters"in o.options&&o.options.preSearchFilters&&(d=o.options.preSearchFilters.reduce((p,h)=>h(p),l));const f=c(d);return"postSearchFilters"in o.options&&o.options.postSearchFilters?o.options.postSearchFilters.reduce((p,h)=>h(p),f):f};t.middlewares.push(s)}if(o.options.validateSearch){const s=({search:l,next:c})=>{const d=c(l);if(!t._includeValidateSearch)return d;try{return{...d,...mm(o.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(s)}}const n=({search:o})=>{const s=t.dest;return s.search?s.search===!0?o:ra(s.search,o):{}};t.middlewares.push(n);const r=(o,s,l)=>{if(o>=l.length)return s;const c=l[o];return c({search:s,next:f=>r(o+1,f,l)})};return function(s,l,c){return t.dest=l,t._includeValidateSearch=c,r(0,s,t.middlewares)}}function T7(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return il}function tT(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const r=n(t);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,r)}}const C7="Error preloading route! ☝️";var NP=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=il:this.parentRoute||ds();let o=r?il:n?.path;o&&o!=="/"&&(o=OP(o));const s=n?.id||o;let l=r?il:hm([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);o==="__root__"&&(o="/"),l!=="__root__"&&(l=hm(["/",l]));const c=l==="__root__"?"/":hm([this.parentRoute.fullPath,o]);this._path=o,this._id=l,this._fullPath=c,this._to=ls(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Xa({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},A7=class extends NP{constructor(e){super(e)}};function I7(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==""){const r=document.getElementById(t.hash);r&&r.scrollIntoView(n)}}}function Nw(e){const t=e.errorComponent??kw;return C.jsx(M7,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}var M7=class extends M.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function kw({error:e}){const[t,n]=M.useState(!1);return C.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[C.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),C.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),C.jsx("div",{style:{height:".25rem"}}),t?C.jsx("div",{children:C.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?C.jsx("code",{children:e.message}):null})}):null]})}function P7({children:e,fallback:t=null}){return kP()?C.jsx(ee.Fragment,{children:e}):C.jsx(ee.Fragment,{children:t})}function kP(){return ee.useSyncExternalStore(N7,()=>!0,()=>!1)}function N7(){return()=>{}}var DP=M.createContext(null);function bo(e){return M.useContext(DP)}var Mg=M.createContext(void 0),k7=M.createContext(void 0),pn=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(pn||{});function D7({update:e,notify:t,unwatched:n}){return{link:r,unlink:o,propagate:s,checkDirty:l,shallowPropagate:c};function r(f,p,h){const g=p.depsTail;if(g!==void 0&&g.dep===f)return;const v=g!==void 0?g.nextDep:p.deps;if(v!==void 0&&v.dep===f){v.version=h,p.depsTail=v;return}const _=f.subsTail;if(_!==void 0&&_.version===h&&_.sub===p)return;const b=p.depsTail=f.subsTail={version:h,dep:f,sub:p,prevDep:g,nextDep:v,prevSub:_,nextSub:void 0};v!==void 0&&(v.prevDep=b),g!==void 0?g.nextDep=b:p.deps=b,_!==void 0?_.nextSub=b:f.subs=b}function o(f,p=f.sub){const h=f.dep,g=f.prevDep,v=f.nextDep,_=f.nextSub,b=f.prevSub;return v!==void 0?v.prevDep=g:p.depsTail=g,g!==void 0?g.nextDep=v:p.deps=v,_!==void 0?_.prevSub=b:h.subsTail=b,b!==void 0?b.nextSub=_:(h.subs=_)===void 0&&n(h),v}function s(f){let p=f.nextSub,h;e:do{const g=f.sub;let v=g.flags;if(v&60?v&12?v&4?!(v&48)&&d(f,g)?(g.flags=v|40,v&=1):v=0:g.flags=v&-9|32:v=0:g.flags=v|32,v&2&&t(g),v&1){const _=g.subs;if(_!==void 0){const b=(f=_).nextSub;b!==void 0&&(h={value:p,prev:h},p=b);continue}}if((f=p)!==void 0){p=f.nextSub;continue}for(;h!==void 0;)if(f=h.value,h=h.prev,f!==void 0){p=f.nextSub;continue e}break}while(!0)}function l(f,p){let h,g=0,v=!1;e:do{const _=f.dep,b=_.flags;if(p.flags&16)v=!0;else if((b&17)===17){if(e(_)){const x=_.subs;x.nextSub!==void 0&&c(x),v=!0}}else if((b&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(h={value:f,prev:h}),f=_.deps,p=_,++g;continue}if(!v){const x=f.nextDep;if(x!==void 0){f=x;continue}}for(;g--;){const x=p.subs,S=x.nextSub!==void 0;if(S?(f=h.value,h=h.prev):f=x,v){if(e(p)){S&&c(x),p=f.sub;continue}v=!1}else p.flags&=-33;p=f.sub;const E=f.nextDep;if(E!==void 0){f=E;continue e}}return v}while(!0)}function c(f){do{const p=f.sub,h=p.flags;(h&48)===32&&(p.flags=h|16,(h&6)===2&&t(p))}while((f=f.nextSub)!==void 0)}function d(f,p){let h=p.depsTail;for(;h!==void 0;){if(h===f)return!0;h=h.prevDep}return!1}}function L7(e,t,n){const r=typeof e=="object",o=r?e:void 0;return{next:(r?e.next:e)?.bind(o),error:(r?e.error:t)?.bind(o),complete:(r?e.complete:n)?.bind(o)}}const Db=[];let gm=0;const{link:nT,unlink:$7,propagate:j7,checkDirty:LP,shallowPropagate:rT}=D7({update(e){return e._update()},notify(e){Db[Lb++]=e,e.flags&=~pn.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=pn.Mutable|pn.Dirty,Dm(e))}});let Yh=0,Lb=0,gi,$b=0;function $P(e){try{++$b,e()}finally{--$b||jP()}}function Dm(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=$7(n,e)}function jP(){if(!($b>0)){for(;Yh<Lb;){const e=Db[Yh];Db[Yh++]=void 0,e.notify()}Yh=0,Lb=0}}function oT(e,t){const n=typeof e=="function",r=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?pn.None:pn.Mutable,get(){return gi!==void 0&&nT(o,gi,gm),o._snapshot},subscribe(s){const l=L7(s),c={current:!1},d=z7(()=>{o.get(),c.current?l.next?.(o._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(s){const l=gi,c=t?.compare??Object.is;if(n)gi=o,++gm,o.depsTail=void 0;else if(s===void 0)return!1;n&&(o.flags=pn.Mutable|pn.RecursedCheck);try{const d=o._snapshot,f=typeof s=="function"?s(d):s===void 0&&n?r(d):s;return d===void 0||!c(d,f)?(o._snapshot=f,!0):!1}finally{gi=l,n&&(o.flags&=~pn.RecursedCheck),Dm(o)}}};return n?(o.flags=pn.Mutable|pn.Dirty,o.get=function(){const s=o.flags;if(s&pn.Dirty||s&pn.Pending&&LP(o.deps,o)){if(o._update()){const l=o.subs;l!==void 0&&rT(l)}}else s&pn.Pending&&(o.flags=s&~pn.Pending);return gi!==void 0&&nT(o,gi,gm),o._snapshot}):o.set=function(s){if(o._update(s)){const l=o.subs;l!==void 0&&(j7(l),rT(l),jP())}},o}function z7(e){const t=()=>{const r=gi;gi=n,++gm,n.depsTail=void 0,n.flags=pn.Watching|pn.RecursedCheck;try{return e()}finally{gi=r,n.flags&=~pn.RecursedCheck,Dm(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:pn.Watching|pn.RecursedCheck,notify(){const r=this.flags;r&pn.Dirty||r&pn.Pending&&LP(this.deps,this)?t():this.flags=pn.Watching},stop(){this.flags=pn.None,this.depsTail=void 0,Dm(this)}};return t(),n}var qy={exports:{}},Hy={},Gy={exports:{}},Ky={};var iT;function U7(){if(iT)return Ky;iT=1;var e=ma();function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(h,g){var v=g(),_=r({inst:{value:v,getSnapshot:g}}),b=_[0].inst,x=_[1];return s(function(){b.value=v,b.getSnapshot=g,d(b)&&x({inst:b})},[h,v,g]),o(function(){return d(b)&&x({inst:b}),h(function(){d(b)&&x({inst:b})})},[h]),l(v),v}function d(h){var g=h.getSnapshot;h=h.value;try{var v=g();return!n(h,v)}catch{return!0}}function f(h,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return Ky.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Ky}var sT;function zP(){return sT||(sT=1,Gy.exports=U7()),Gy.exports}var aT;function F7(){if(aT)return Hy;aT=1;var e=ma(),t=zP();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,c=e.useMemo,d=e.useDebugValue;return Hy.useSyncExternalStoreWithSelector=function(f,p,h,g,v){var _=s(null);if(_.current===null){var b={hasValue:!1,value:null};_.current=b}else b=_.current;_=c(function(){function S(A){if(!E){if(E=!0,T=A,A=g(A),v!==void 0&&b.hasValue){var I=b.value;if(v(I,A))return R=I}return R=A}if(I=R,r(T,A))return I;var P=g(A);return v!==void 0&&v(I,P)?(T=A,I):(T=A,R=P)}var E=!1,T,R,O=h===void 0?null:h;return[function(){return S(p())},O===null?void 0:function(){return S(O())}]},[p,h,g,v]);var x=o(f,_[0],_[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),d(x),x},Hy}var lT;function B7(){return lT||(lT=1,qy.exports=F7()),qy.exports}var V7=B7();function q7(e,t){return e===t}function _o(e,t,n=q7){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(l);return c},[e]),o=M.useCallback(()=>e?.get(),[e]);return V7.useSyncExternalStoreWithSelector(r,o,o,t,n)}var H7={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function hl(e){const t=bo(),n=M.useContext(e.from?k7:Mg),r=e.from??n,o=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,s=M.useRef(void 0);return _o(o??H7,l=>{if((e.shouldThrow??!0)&&!l&&ds(),l===void 0)return;const c=e.select?e.select(l):l;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=el(s.current,c);return s.current=d,d}return c})}function UP(e){return hl({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function FP(e){const{select:t,...n}=e;return hl({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function Dw(e){return hl({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function BP(e){return hl({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Pg(e){const t=bo();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Sce(e){const t=bo(),n=Pg(),r=M.useRef(null);return Oc(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function VP(e){return hl({...e,select:t=>e.select?e.select(t.context):t.context})}var Ng=XM();const qP=fl(Ng);function G7(e,t){const n=bo(),r=I8(t),{activeProps:o,inactiveProps:s,activeOptions:l,to:c,preload:d,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:h,replace:g,startTransition:v,resetScroll:_,viewTransition:b,children:x,target:S,disabled:E,style:T,className:R,onClick:O,onBlur:A,onFocus:I,onMouseEnter:P,onMouseLeave:L,onTouchStart:q,ignoreBlocker:j,params:B,search:F,hash:Z,state:ie,mask:H,reloadDocument:W,unsafeRelative:te,from:le,_fromLocation:Q,...k}=e,G=kP(),V=M.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),D=_o(n.stores.location,ne=>ne,(ne,ae)=>ne.href===ae.href),U=M.useMemo(()=>{const ne={_fromLocation:D,...V};return n.buildLocation(ne)},[n,D,V]),X=U.maskedLocation?U.maskedLocation.publicHref:U.publicHref,fe=U.maskedLocation?U.maskedLocation.external:U.external,pe=M.useMemo(()=>X7(X,fe,n.history,E),[E,fe,X,n.history]),xe=M.useMemo(()=>{if(pe?.external)return Mm(pe.href,n.protocolAllowlist)?void 0:pe.href;if(!J7(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),Mm(c,n.protocolAllowlist)?void 0:c}catch{}},[c,pe,n.protocolAllowlist]),je=M.useMemo(()=>{if(xe)return!1;if(l?.exact){if(!Z8(D.pathname,U.pathname,n.basepath))return!1}else{const ne=Pm(D.pathname,n.basepath),ae=Pm(U.pathname,n.basepath);if(!(ne.startsWith(ae)&&(ne.length===ae.length||ne[ae.length]==="/")))return!1}return(l?.includeSearch??!0)&&!ol(D.search,U.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?G&&D.hash===U.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,D,xe,G,U.hash,U.pathname,U.search,n.basepath]),Y=je?ra(o,{})??K7:Zy,re=je?Zy:ra(s,{})??Zy,ve=[R,Y.className,re.className].filter(Boolean).join(" "),se=(T||Y.style||re.style)&&{...T,...Y.style,...re.style},[Se,Te]=M.useState(!1),tt=M.useRef(!1),rt=e.reloadDocument||xe?!1:d??n.options.defaultPreload,Be=f??n.options.defaultPreloadDelay??0,Qe=M.useCallback(()=>{n.preloadRoute({...V,_builtLocation:U}).catch(ne=>{console.warn(ne),console.warn(C7)})},[n,V,U]);A8(r,M.useCallback(ne=>{ne?.isIntersecting&&Qe()},[Qe]),Q7,{disabled:!!E||rt!=="viewport"}),M.useEffect(()=>{tt.current||!E&&rt==="render"&&(Qe(),tt.current=!0)},[E,Qe,rt]);const Pe=ne=>{const ae=ne.currentTarget.getAttribute("target"),Re=S!==void 0?S:ae;if(!E&&!e9(ne)&&!ne.defaultPrevented&&(!Re||Re==="_self")&&ne.button===0){ne.preventDefault(),Ng.flushSync(()=>{Te(!0)});const Ae=n.subscribe("onResolved",()=>{Ae(),Te(!1)});n.navigate({...V,replace:g,resetScroll:_,hashScrollIntoView:h,startTransition:v,viewTransition:b,ignoreBlocker:j})}};if(xe)return{...k,ref:r,href:xe,...x&&{children:x},...S&&{target:S},...E&&{disabled:E},...T&&{style:T},...R&&{className:R},...O&&{onClick:O},...A&&{onBlur:A},...I&&{onFocus:I},...P&&{onMouseEnter:P},...L&&{onMouseLeave:L},...q&&{onTouchStart:q}};const Me=ne=>{if(E||rt!=="intent")return;if(!Be){Qe();return}const ae=ne.currentTarget;if(td.has(ae))return;const Re=setTimeout(()=>{td.delete(ae),Qe()},Be);td.set(ae,Re)},Ue=ne=>{E||rt!=="intent"||Qe()},K=ne=>{if(E||!rt||!Be)return;const ae=ne.currentTarget,Re=td.get(ae);Re&&(clearTimeout(Re),td.delete(ae))};return{...k,...Y,...re,href:pe?.href,ref:r,onClick:ic([O,Pe]),onBlur:ic([A,K]),onFocus:ic([I,Me]),onMouseEnter:ic([P,Me]),onMouseLeave:ic([L,K]),onTouchStart:ic([q,Ue]),disabled:!!E,target:S,...se&&{style:se},...ve&&{className:ve},...E&&Z7,...je&&Y7,...G&&Se&&W7}}var Zy={},K7={className:"active"},Z7={role:"link","aria-disabled":!0},Y7={"data-status":"active","aria-current":"page"},W7={"data-transitioning":"transitioning"},td=new WeakMap,Q7={rootMargin:"100px"},ic=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function X7(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function J7(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var kg=M.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:o,...s}=G7(r,t),l=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:c,...d}=s;return M.createElement("a",d,l)}return M.createElement(n,s,l)});function e9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var t9=class extends NP{constructor(e){super(e),this.useMatch=t=>hl({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>VP({...t,from:this.id}),this.useSearch=t=>BP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Dw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>FP({...t,from:this.id}),this.useLoaderData=t=>UP({...t,from:this.id}),this.useNavigate=()=>Pg({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(kg,{ref:n,from:this.fullPath,...t}))}};function gt(e){return new t9(e)}var n9=class extends A7{constructor(e){super(e),this.useMatch=t=>hl({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>VP({...t,from:this.id}),this.useSearch=t=>BP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Dw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>FP({...t,from:this.id}),this.useLoaderData=t=>UP({...t,from:this.id}),this.useNavigate=()=>Pg({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(kg,{ref:n,from:this.fullPath,...t}))}};function r9(e){return new n9(e)}function Ot(e,t){let n,r,o,s;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d.default}).catch(d=>{if(o=d,N8(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),s=!0)}})),n),c=function(f){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!r)if(L2)L2(l());else throw l();return M.createElement(r,f)};return c.preload=l,c}function o9(e){const t=bo(),n=`not-found-${_o(t.stores.location,r=>r.pathname)}-${_o(t.stores.status,r=>r)}`;return C.jsx(Nw,{getResetKey:()=>n,onCatch:(r,o)=>{if(Cr(r))e.onCatch?.(r,o);else throw r},errorComponent:({error:r})=>{if(Cr(r))return e.fallback?.(r);throw r},children:e.children})}function i9(){return C.jsx("p",{children:"Not Found"})}function wc(e){return C.jsx(C.Fragment,{children:e.children})}function HP(e,t,n){return t.options.notFoundComponent?C.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?C.jsx(e.options.defaultNotFoundComponent,{...n}):C.jsx(i9,{})}function s9(e){return null}function a9(){return s9(bo()),null}var GP=M.memo(function({matchId:t}){const n=bo(),r=n.stores.matchStores.get(t);r||ds();const o=_o(n.stores.loadedAt,l=>l),s=_o(r,l=>l);return C.jsx(l9,{router:n,matchId:t,resetKey:o,matchState:M.useMemo(()=>{const l=s.routeId,c=n.routesById[l].parentRoute?.id;return{routeId:l,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:c}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function l9({router:e,matchId:t,resetKey:n,matchState:r}){const o=e.routesById[r.routeId],s=o.options.pendingComponent??e.options.defaultPendingComponent,l=s?C.jsx(s,{}):null,c=o.options.errorComponent??e.options.defaultErrorComponent,d=o.options.onCatch??e.options.defaultOnCatch,f=o.isRoot?o.options.notFoundComponent??e.options.notFoundRoute?.options.component:o.options.notFoundComponent,p=r.ssr===!1||r.ssr==="data-only",h=(!o.isRoot||o.options.wrapInSuspense||p)&&(o.options.wrapInSuspense??s??(o.options.errorComponent?.preload||p))?M.Suspense:wc,g=c?Nw:wc,v=f?o9:wc;return C.jsxs(o.isRoot?o.options.shellComponent??wc:wc,{children:[C.jsx(Mg.Provider,{value:t,children:C.jsx(h,{fallback:l,children:C.jsx(g,{getResetKey:()=>n,errorComponent:c||kw,onCatch:(_,b)=>{if(Cr(_))throw _.routeId??=r.routeId,_;d?.(_,b)},children:C.jsx(v,{fallback:_=>{if(_.routeId??=r.routeId,!f||_.routeId&&_.routeId!==r.routeId||!_.routeId&&!o.isRoot)throw _;return M.createElement(f,_)},children:p||r._displayPending?C.jsx(P7,{fallback:l,children:C.jsx(cT,{matchId:t})}):C.jsx(cT,{matchId:t})})})})}),r.parentRouteId===il?C.jsxs(C.Fragment,{children:[C.jsx(c9,{resetKey:n}),e.options.scrollRestoration&&_P?C.jsx(a9,{}):null]}):null]})}function c9({resetKey:e}){const t=bo(),n=M.useRef(void 0);return Oc(()=>{const r=t.latestLocation.href;(n.current===void 0||n.current!==r)&&(t.emit({type:"onRendered",...Nc(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=r)},[t.latestLocation.state.__TSR_key,e,t]),null}var cT=M.memo(function({matchId:t}){const n=bo(),r=(p,h)=>n.getMatch(p.id)?._nonReactive[h]??p._nonReactive[h],o=n.stores.matchStores.get(t);o||ds();const s=_o(o,p=>p),l=s.routeId,c=n.routesById[l],d=M.useMemo(()=>{const p=(n.routesById[l].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:l,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return p?JSON.stringify(p):void 0},[l,s.loaderDeps,s._strictParams,s._strictSearch,n.options.defaultRemountDeps,n.routesById]),f=M.useMemo(()=>{const p=c.options.component??n.options.defaultComponent;return p?C.jsx(p,{},d):C.jsx(KP,{})},[d,c.options.component,n.options.defaultComponent]);if(s._displayPending)throw r(s,"displayPendingPromise");if(s._forcePending)throw r(s,"minPendingPromise");if(s.status==="pending"){const p=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(p){const h=n.getMatch(s.id);if(h&&!h._nonReactive.minPendingPromise){const g=Vc();h._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),h._nonReactive.minPendingPromise=void 0},p)}}throw r(s,"loadPromise")}if(s.status==="notFound")return Cr(s.error)||ds(),HP(n,c,s.error);if(s.status==="redirected")throw Qr(s.error)||ds(),r(s,"loadPromise");if(s.status==="error")throw s.error;return f}),KP=M.memo(function(){const t=bo(),n=M.useContext(Mg);let r,o=!1,s;{const f=n?t.stores.matchStores.get(n):void 0;[r,o]=_o(f,p=>[p?.routeId,p?.globalNotFound??!1]),s=_o(t.stores.matchesId,p=>p[p.findIndex(h=>h===n)+1])}const l=r?t.routesById[r]:void 0,c=t.options.defaultPendingComponent?C.jsx(t.options.defaultPendingComponent,{}):null;if(o)return l||ds(),HP(t,l,void 0);if(!s)return null;const d=C.jsx(GP,{matchId:s});return r===il?C.jsx(M.Suspense,{fallback:c,children:d}):d});function u9(){const e=bo(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),o=_o(e.stores.isLoading,h=>h),s=_o(e.stores.hasPending,h=>h),l=$y(o),c=o||n||s,d=$y(c),f=o||s,p=$y(f);return e.startTransition=h=>{r(!0),M.startTransition(()=>{h(),r(!1)})},M.useEffect(()=>{const h=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ls(e.latestLocation.publicHref)!==ls(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{h()}},[e,e.history]),Oc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Oc(()=>{l&&!o&&e.emit({type:"onLoad",...Nc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,o]),Oc(()=>{p&&!f&&e.emit({type:"onBeforeRouteMount",...Nc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,p,e]),Oc(()=>{if(d&&!c){const h=Nc(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...h}),$P(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),h.hrefChanged&&I7(e)}},[c,d,e]),null}function d9(){const e=bo(),t=e.routesById[il].options.pendingComponent??e.options.defaultPendingComponent,n=t?C.jsx(t,{}):null,r=C.jsxs(typeof document<"u"&&e.ssr?wc:M.Suspense,{fallback:n,children:[C.jsx(u9,{}),C.jsx(f9,{})]});return e.options.InnerWrap?C.jsx(e.options.InnerWrap,{children:r}):r}function f9(){const e=bo(),t=_o(e.stores.firstId,o=>o),n=_o(e.stores.loadedAt,o=>o),r=t?C.jsx(GP,{matchId:t}):null;return C.jsx(Mg.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:C.jsx(Nw,{getResetKey:()=>n,errorComponent:kw,onCatch:void 0,children:r})})}var h9=e=>({createMutableStore:oT,createReadonlyStore:oT,batch:$P}),p9=e=>new m9(e),m9=class extends w7{constructor(e){super(e,h9)}};function g9({router:e,children:t,...n}){wP(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=C.jsx(DP.Provider,{value:e,children:t});return e.options.Wrap?C.jsx(e.options.Wrap,{children:r}):r}function v9({router:e,...t}){return C.jsx(g9,{router:e,...t,children:C.jsx(d9,{})})}var y9={},uT={};const vm=Object.create(null),nd=e=>y9||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?vm:globalThis),Do=new Proxy(vm,{get(e,t){return nd()[t]??vm[t]},has(e,t){return t in nd()||t in vm},set(e,t,n){const r=nd(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=nd(!0);return delete n[t],!0},ownKeys(){const e=nd(!0);return Object.keys(e)}});function Fn(e,t){return typeof process<"u"&&uT?uT[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const rd=1,rr=4,_i=8,po=24,dT={eterm:rr,cons25:rr,console:rr,cygwin:rr,dtterm:rr,gnome:rr,hurd:rr,jfbterm:rr,konsole:rr,kterm:rr,mlterm:rr,mosh:po,putty:rr,st:rr,"rxvt-unicode-24bit":po,terminator:po,"xterm-kitty":po},_9=new Map(Object.entries({APPVEYOR:_i,BUILDKITE:_i,CIRCLECI:po,DRONE:_i,GITEA_ACTIONS:po,GITHUB_ACTIONS:po,GITLAB_CI:_i,TRAVIS:_i})),b9=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function w9(){if(Fn("FORCE_COLOR")!==void 0)switch(Fn("FORCE_COLOR")){case"":case"1":case"true":return rr;case"2":return _i;case"3":return po;default:return rd}if(Fn("NODE_DISABLE_COLORS")!==void 0&&Fn("NODE_DISABLE_COLORS")!==""||Fn("NO_COLOR")!==void 0&&Fn("NO_COLOR")!==""||Fn("TERM")==="dumb")return rd;if(Fn("TMUX"))return po;if("TF_BUILD"in Do&&"AGENT_NAME"in Do)return rr;if("CI"in Do){for(const{0:e,1:t}of _9)if(e in Do)return t;return Fn("CI_NAME")==="codeship"?_i:rd}if("TEAMCITY_VERSION"in Do)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Fn("TEAMCITY_VERSION"))!==null?rr:rd;switch(Fn("TERM_PROGRAM")){case"iTerm.app":return!Fn("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Fn("TERM_PROGRAM_VERSION"))!==null?_i:po;case"HyperTerm":case"MacTerm":return po;case"Apple_Terminal":return _i}if(Fn("COLORTERM")==="truecolor"||Fn("COLORTERM")==="24bit")return po;if(Fn("TERM")){if(/truecolor/.exec(Fn("TERM"))!==null)return po;if(/^xterm-256/.exec(Fn("TERM"))!==null)return _i;const e=Fn("TERM").toLowerCase();if(dT[e])return dT[e];if(b9.some(t=>t.exec(e)!==null))return rr}return Fn("COLORTERM")?rr:rd}const bi={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},jb=["debug","info","success","warn","error"];function S9(e,t){return jb.indexOf(t)>=jb.indexOf(e)}const E9={info:bi.fg.blue,success:bi.fg.green,warn:bi.fg.yellow,error:bi.fg.red,debug:bi.fg.magenta},x9=(e,t,n)=>{const r=new Date().toISOString();return n?`${bi.dim}${r}${bi.reset} ${E9[e]}${e.toUpperCase()}${bi.reset} ${bi.bright}[Better Auth]:${bi.reset} ${t}`:`${r} ${e.toUpperCase()} [Better Auth]: ${t}`},R9=e=>{const t="warn",n=w9()!==1,r=(o,s,l=[])=>{if(!S9(t,o))return;const c=x9(o,s,n);{o==="error"?console.error(c,...l):o==="warn"?console.warn(c,...l):console.log(c,...l);return}};return{...Object.fromEntries(jb.map(o=>[o,(...[s,...l])=>r(o,s,l)])),get level(){return t}}};R9();const O9=Object.freeze({status:"aborted"});function ye(e,t,n){function r(c,d){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,d);const f=l.prototype,p=Object.keys(f);for(let h=0;h<p.length;h++){const g=p[h];g in c||(c[g]=f[g].bind(c))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function l(c){var d;const f=n?.Parent?new s:this;r(f,c),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:c=>n?.Parent&&c instanceof n.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class kc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ZP extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const YP={};function da(e){return YP}function WP(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function zb(e,t){return typeof t=="bigint"?t.toString():t}function Dg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function hf(e){return e==null}function Lw(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function T9(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(o=Number.parseInt(d[1]))}const s=n>o?n:o,l=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return l%c/10**s}const fT=Symbol("evaluating");function It(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==fT)return r===void 0&&(r=fT,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function pl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ga(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function hT(e){return JSON.stringify(e)}function C9(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const QP="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const A9=Dg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function qc(e){if(Zd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Zd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function XP(e){return qc(e)?{...e}:Array.isArray(e)?[...e]:e}const I9=new Set(["string","number","symbol"]);function Hc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function va(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Fe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function M9(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const P9={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function N9(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(l[c]=n.shape[c])}return pl(this,"shape",l),l},checks:[]});return va(e,s)}function k9(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete l[c]}return pl(this,"shape",l),l},checks:[]});return va(e,s)}function D9(e,t){if(!qc(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(s,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=ga(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return pl(this,"shape",s),s}});return va(e,o)}function L9(e,t){if(!qc(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return pl(this,"shape",r),r}});return va(e,n)}function $9(e,t){const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return pl(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return va(e,n)}function j9(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=ga(t._zod.def,{get shape(){const c=t._zod.def.shape,d={...c};if(n)for(const f in n){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(d[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(const f in c)d[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return pl(this,"shape",d),d},checks:[]});return va(t,l)}function z9(e,t,n){const r=ga(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(s[l]=new e({type:"nonoptional",innerType:o[l]}))}else for(const l in o)s[l]=new e({type:"nonoptional",innerType:o[l]});return pl(this,"shape",s),s}});return va(t,r)}function Tc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function nl(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Wh(e){return typeof e=="string"?e:e?.message}function fa(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Wh(e.inst?._zod.def?.error?.(e))??Wh(t?.error?.(e))??Wh(n.customError?.(e))??Wh(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function JP(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $w(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yd(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const e3=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,zb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},jw=ye("$ZodError",e3),Lg=ye("$ZodError",e3,{Parent:Error});function U9(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function F9(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(l=>r({issues:l}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let l=n,c=0;for(;c<s.path.length;){const d=s.path[c];c===s.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(s))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return r(e),n}const $g=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new kc;if(l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>fa(d,s,da())));throw QP(c,o?.callee),c}return l.value},B9=$g(Lg),jg=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>fa(d,s,da())));throw QP(c,o?.callee),c}return l.value},V9=jg(Lg),zg=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new kc;return s.issues.length?{success:!1,error:new(e??jw)(s.issues.map(l=>fa(l,o,da())))}:{success:!0,data:s.value}},q9=zg(Lg),Ug=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>fa(l,o,da())))}:{success:!0,data:s.value}},H9=Ug(Lg),G9=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return $g(e)(t,n,o)},K9=e=>(t,n,r)=>$g(e)(t,n,r),Z9=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return jg(e)(t,n,o)},Y9=e=>async(t,n,r)=>jg(e)(t,n,r),W9=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zg(e)(t,n,o)},Q9=e=>(t,n,r)=>zg(e)(t,n,r),X9=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ug(e)(t,n,o)},J9=e=>async(t,n,r)=>Ug(e)(t,n,r),ez=/^[cC][^\s-]{8,}$/,tz=/^[0-9a-z]+$/,nz=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,rz=/^[0-9a-vA-V]{20}$/,oz=/^[A-Za-z0-9]{27}$/,iz=/^[a-zA-Z0-9_-]{21}$/,sz=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,az=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pT=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lz=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function uz(){return new RegExp(cz,"u")}const dz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,hz=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,pz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,t3=/^[A-Za-z0-9_-]*$/,gz=/^\+[1-9]\d{6,14}$/,n3="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vz=new RegExp(`^${n3}$`);function r3(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function yz(e){return new RegExp(`^${r3(e)}$`)}function _z(e){const t=r3({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${n3}T(?:${r})$`)}const bz=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},wz=/^-?\d+$/,o3=/^-?\d+(?:\.\d+)?$/,Sz=/^(?:true|false)$/i,Ez=/^null$/i,xz=/^undefined$/i,Rz=/^[^A-Z]*$/,Oz=/^[^a-z]*$/,yr=ye("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),i3={number:"number",bigint:"bigint",object:"date"},s3=ye("$ZodCheckLessThan",(e,t)=>{yr.init(e,t);const n=i3[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),a3=ye("$ZodCheckGreaterThan",(e,t)=>{yr.init(e,t);const n=i3[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tz=ye("$ZodCheckMultipleOf",(e,t)=>{yr.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):T9(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Cz=ye("$ZodCheckNumberFormat",(e,t)=>{yr.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,s]=P9[t.format];e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=t.format,c.minimum=o,c.maximum=s,n&&(c.pattern=wz)}),e._zod.check=l=>{const c=l.value;if(n){if(!Number.isInteger(c)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?l.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<o&&l.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>s&&l.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Az=ye("$ZodCheckMaxSize",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;o.size<=t.maximum||r.issues.push({origin:JP(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Iz=ye("$ZodCheckMinSize",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;o.size>=t.minimum||r.issues.push({origin:JP(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Mz=ye("$ZodCheckMaxLength",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const l=$w(o);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pz=ye("$ZodCheckMinLength",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const l=$w(o);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Nz=ye("$ZodCheckLengthEquals",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const l=$w(o),c=s>t.length;r.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Fg=ye("$ZodCheckStringFormat",(e,t)=>{var n,r;yr.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),kz=ye("$ZodCheckRegex",(e,t)=>{Fg.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Dz=ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Rz),Fg.init(e,t)}),Lz=ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Oz),Fg.init(e,t)}),$z=ye("$ZodCheckIncludes",(e,t)=>{yr.init(e,t);const n=Hc(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),jz=ye("$ZodCheckStartsWith",(e,t)=>{yr.init(e,t);const n=new RegExp(`^${Hc(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),zz=ye("$ZodCheckEndsWith",(e,t)=>{yr.init(e,t);const n=new RegExp(`.*${Hc(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Uz=ye("$ZodCheckMimeType",(e,t)=>{yr.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Fz=ye("$ZodCheckOverwrite",(e,t)=>{yr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Bz{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
10
+ `).replace(G$,"")}function DO(i,a){return a=kO(a),kO(i)===a}function Wt(i,a,u,m,y,w){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||Tl(i,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&Tl(i,""+m);break;case"className":kf(i,"class",m);break;case"tabIndex":kf(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":kf(i,u,m);break;case"style":DE(i,m,w);break;case"data":if(a!=="object"){kf(i,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){i.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=Lf(""+m),i.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(u,"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 w=="function"&&(u==="formAction"?(a!=="input"&&Wt(i,a,"name",y.name,y,null),Wt(i,a,"formEncType",y.formEncType,y,null),Wt(i,a,"formMethod",y.formMethod,y,null),Wt(i,a,"formTarget",y.formTarget,y,null)):(Wt(i,a,"encType",y.encType,y,null),Wt(i,a,"method",y.method,y,null),Wt(i,a,"target",y.target,y,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=Lf(""+m),i.setAttribute(u,m);break;case"onClick":m!=null&&(i.onclick=Di);break;case"onScroll":m!=null&&bt("scroll",i);break;case"onScrollEnd":m!=null&&bt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}u=Lf(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""+m):i.removeAttribute(u);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":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":m===!0?i.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,m):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(u,m):i.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(u):i.setAttribute(u,m);break;case"popover":bt("beforetoggle",i),bt("toggle",i),Nf(i,"popover",m);break;case"xlinkActuate":ki(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":ki(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":ki(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":ki(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":ki(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":ki(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":ki(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":ki(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":ki(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Nf(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=bL.get(u)||u,Nf(i,u,m))}}function dy(i,a,u,m,y,w){switch(u){case"style":DE(i,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof m=="string"?Tl(i,m):(typeof m=="number"||typeof m=="bigint")&&Tl(i,""+m);break;case"onScroll":m!=null&&bt("scroll",i);break;case"onScrollEnd":m!=null&&bt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Di);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!OE.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),a=u.slice(2,y?u.length-7:void 0),w=i[Ur]||null,w=w!=null?w[u]:null,typeof w=="function"&&i.removeEventListener(a,w,y),typeof m=="function")){typeof w!="function"&&w!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(a,m,y);break e}u in i?i[u]=m:m===!0?i.setAttribute(u,""):Nf(i,u,m)}}}function dr(i,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",i),bt("load",i);var m=!1,y=!1,w;for(w in u)if(u.hasOwnProperty(w)){var N=u[w];if(N!=null)switch(w){case"src":m=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Wt(i,a,w,N,u,null)}}y&&Wt(i,a,"srcSet",u.srcSet,u,null),m&&Wt(i,a,"src",u.src,u,null);return;case"input":bt("invalid",i);var z=w=N=y=null,J=null,de=null;for(m in u)if(u.hasOwnProperty(m)){var _e=u[m];if(_e!=null)switch(m){case"name":y=_e;break;case"type":N=_e;break;case"checked":J=_e;break;case"defaultChecked":de=_e;break;case"value":w=_e;break;case"defaultValue":z=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,a));break;default:Wt(i,a,m,_e,u,null)}}ME(i,w,z,J,de,N,y,!1);return;case"select":bt("invalid",i),m=N=w=null;for(y in u)if(u.hasOwnProperty(y)&&(z=u[y],z!=null))switch(y){case"value":w=z;break;case"defaultValue":N=z;break;case"multiple":m=z;default:Wt(i,a,y,z,u,null)}a=w,u=N,i.multiple=!!m,a!=null?Ol(i,!!m,a,!1):u!=null&&Ol(i,!!m,u,!0);return;case"textarea":bt("invalid",i),w=y=m=null;for(N in u)if(u.hasOwnProperty(N)&&(z=u[N],z!=null))switch(N){case"value":m=z;break;case"defaultValue":y=z;break;case"children":w=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(91));break;default:Wt(i,a,N,z,u,null)}NE(i,m,y,w);return;case"option":for(J in u)u.hasOwnProperty(J)&&(m=u[J],m!=null)&&(J==="selected"?i.selected=m&&typeof m!="function"&&typeof m!="symbol":Wt(i,a,J,m,u,null));return;case"dialog":bt("beforetoggle",i),bt("toggle",i),bt("cancel",i),bt("close",i);break;case"iframe":case"object":bt("load",i);break;case"video":case"audio":for(m=0;m<Fu.length;m++)bt(Fu[m],i);break;case"image":bt("error",i),bt("load",i);break;case"details":bt("toggle",i);break;case"embed":case"source":case"link":bt("error",i),bt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in u)if(u.hasOwnProperty(de)&&(m=u[de],m!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Wt(i,a,de,m,u,null)}return;default:if(Rv(a)){for(_e in u)u.hasOwnProperty(_e)&&(m=u[_e],m!==void 0&&dy(i,a,_e,m,u,void 0));return}}for(z in u)u.hasOwnProperty(z)&&(m=u[z],m!=null&&Wt(i,a,z,m,u,null))}function K$(i,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,w=null,N=null,z=null,J=null,de=null,_e=null;for(ge in u){var Ee=u[ge];if(u.hasOwnProperty(ge)&&Ee!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":J=Ee;default:m.hasOwnProperty(ge)||Wt(i,a,ge,null,m,Ee)}}for(var he in m){var ge=m[he];if(Ee=u[he],m.hasOwnProperty(he)&&(ge!=null||Ee!=null))switch(he){case"type":w=ge;break;case"name":y=ge;break;case"checked":de=ge;break;case"defaultChecked":_e=ge;break;case"value":N=ge;break;case"defaultValue":z=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,a));break;default:ge!==Ee&&Wt(i,a,he,ge,m,Ee)}}Ev(i,N,z,J,de,_e,w,y);return;case"select":ge=N=z=he=null;for(w in u)if(J=u[w],u.hasOwnProperty(w)&&J!=null)switch(w){case"value":break;case"multiple":ge=J;default:m.hasOwnProperty(w)||Wt(i,a,w,null,m,J)}for(y in m)if(w=m[y],J=u[y],m.hasOwnProperty(y)&&(w!=null||J!=null))switch(y){case"value":he=w;break;case"defaultValue":z=w;break;case"multiple":N=w;default:w!==J&&Wt(i,a,y,w,m,J)}a=z,u=N,m=ge,he!=null?Ol(i,!!u,he,!1):!!m!=!!u&&(a!=null?Ol(i,!!u,a,!0):Ol(i,!!u,u?[]:"",!1));return;case"textarea":ge=he=null;for(z in u)if(y=u[z],u.hasOwnProperty(z)&&y!=null&&!m.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Wt(i,a,z,null,m,y)}for(N in m)if(y=m[N],w=u[N],m.hasOwnProperty(N)&&(y!=null||w!=null))switch(N){case"value":he=y;break;case"defaultValue":ge=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==w&&Wt(i,a,N,y,m,w)}PE(i,he,ge);return;case"option":for(var He in u)he=u[He],u.hasOwnProperty(He)&&he!=null&&!m.hasOwnProperty(He)&&(He==="selected"?i.selected=!1:Wt(i,a,He,null,m,he));for(J in m)he=m[J],ge=u[J],m.hasOwnProperty(J)&&he!==ge&&(he!=null||ge!=null)&&(J==="selected"?i.selected=he&&typeof he!="function"&&typeof he!="symbol":Wt(i,a,J,he,m,ge));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 nt in u)he=u[nt],u.hasOwnProperty(nt)&&he!=null&&!m.hasOwnProperty(nt)&&Wt(i,a,nt,null,m,he);for(de in m)if(he=m[de],ge=u[de],m.hasOwnProperty(de)&&he!==ge&&(he!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,a));break;default:Wt(i,a,de,he,m,ge)}return;default:if(Rv(a)){for(var Qt in u)he=u[Qt],u.hasOwnProperty(Qt)&&he!==void 0&&!m.hasOwnProperty(Qt)&&dy(i,a,Qt,void 0,m,he);for(_e in m)he=m[_e],ge=u[_e],!m.hasOwnProperty(_e)||he===ge||he===void 0&&ge===void 0||dy(i,a,_e,he,m,ge);return}}for(var ce in u)he=u[ce],u.hasOwnProperty(ce)&&he!=null&&!m.hasOwnProperty(ce)&&Wt(i,a,ce,null,m,he);for(Ee in m)he=m[Ee],ge=u[Ee],!m.hasOwnProperty(Ee)||he===ge||he==null&&ge==null||Wt(i,a,Ee,he,m,ge)}function LO(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z$(){if(typeof performance.getEntriesByType=="function"){for(var i=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var y=u[m],w=y.transferSize,N=y.initiatorType,z=y.duration;if(w&&z&&LO(N)){for(N=0,z=y.responseEnd,m+=1;m<u.length;m++){var J=u[m],de=J.startTime;if(de>z)break;var _e=J.transferSize,Ee=J.initiatorType;_e&&LO(Ee)&&(J=J.responseEnd,N+=_e*(J<z?1:(z-de)/(J-de)))}if(--m,a+=8*(w+N)/(y.duration/1e3),i++,10<i)break}}if(0<i)return a/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var fy=null,hy=null;function Mh(i){return i.nodeType===9?i:i.ownerDocument}function $O(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jO(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function py(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var my=null;function Y$(){var i=window.event;return i&&i.type==="popstate"?i===my?!1:(my=i,!0):(my=null,!1)}var zO=typeof setTimeout=="function"?setTimeout:void 0,W$=typeof clearTimeout=="function"?clearTimeout:void 0,UO=typeof Promise=="function"?Promise:void 0,Q$=typeof queueMicrotask=="function"?queueMicrotask:typeof UO<"u"?function(i){return UO.resolve(null).then(i).catch(X$)}:zO;function X$(i){setTimeout(function(){throw i})}function $s(i){return i==="head"}function FO(i,a){var u=a,m=0;do{var y=u.nextSibling;if(i.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(m===0){i.removeChild(y),oc(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")Vu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Vu(u);for(var w=u.firstChild;w;){var N=w.nextSibling,z=w.nodeName;w[au]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&w.rel.toLowerCase()==="stylesheet"||u.removeChild(w),w=N}}else u==="body"&&Vu(i.ownerDocument.body);u=y}while(u);oc(a)}function BO(i,a){var u=i;i=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=m}while(u)}function gy(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":gy(u),wv(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function J$(i,a,u,m){for(;i.nodeType===1;){var y=u;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[au])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==y.rel||i.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||i.getAttribute("title")!==(y.title==null?null:y.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(y.src==null?null:y.src)||i.getAttribute("type")!==(y.type==null?null:y.type)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var w=y.name==null?null:""+y.name;if(y.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=Mo(i.nextSibling),i===null)break}return null}function ej(i,a,u){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Mo(i.nextSibling),i===null))return null;return i}function VO(i,a){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Mo(i.nextSibling),i===null))return null;return i}function vy(i){return i.data==="$?"||i.data==="$~"}function yy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function tj(i,a){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=a;else if(i.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Mo(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return i}var _y=null;function qO(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(a===0)return Mo(i.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}i=i.nextSibling}return null}function HO(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return i;a--}else u!=="/$"&&u!=="/&"||a++}i=i.previousSibling}return null}function GO(i,a,u){switch(a=Mh(u),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Vu(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);wv(i)}var Po=new Map,KO=new Set;function Ph(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Qi=W.d;W.d={f:nj,r:rj,D:oj,C:ij,L:sj,m:aj,X:cj,S:lj,M:uj};function nj(){var i=Qi.f(),a=Eh();return i||a}function rj(i){var a=El(i);a!==null&&a.tag===5&&a.type==="form"?uR(a):Qi.r(i)}var tc=typeof document>"u"?null:document;function ZO(i,a,u){var m=tc;if(m&&typeof a=="string"&&a){var y=xo(a);y='link[rel="'+i+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),KO.has(y)||(KO.add(y),i={rel:i,crossOrigin:u,href:a},m.querySelector(y)===null&&(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function oj(i){Qi.D(i),ZO("dns-prefetch",i,null)}function ij(i,a){Qi.C(i,a),ZO("preconnect",i,a)}function sj(i,a,u){Qi.L(i,a,u);var m=tc;if(m&&i&&a){var y='link[rel="preload"][as="'+xo(a)+'"]';a==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+xo(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+xo(u.imageSizes)+'"]')):y+='[href="'+xo(i)+'"]';var w=y;switch(a){case"style":w=nc(i);break;case"script":w=rc(i)}Po.has(w)||(i=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:i,as:a},u),Po.set(w,i),m.querySelector(y)!==null||a==="style"&&m.querySelector(qu(w))||a==="script"&&m.querySelector(Hu(w))||(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function aj(i,a){Qi.m(i,a);var u=tc;if(u&&i){var m=a&&typeof a.as=="string"?a.as:"script",y='link[rel="modulepreload"][as="'+xo(m)+'"][href="'+xo(i)+'"]',w=y;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=rc(i)}if(!Po.has(w)&&(i=h({rel:"modulepreload",href:i},a),Po.set(w,i),u.querySelector(y)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Hu(w)))return}m=u.createElement("link"),dr(m,"link",i),er(m),u.head.appendChild(m)}}}function lj(i,a,u){Qi.S(i,a,u);var m=tc;if(m&&i){var y=xl(m).hoistableStyles,w=nc(i);a=a||"default";var N=y.get(w);if(!N){var z={loading:0,preload:null};if(N=m.querySelector(qu(w)))z.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":a},u),(u=Po.get(w))&&by(i,u);var J=N=m.createElement("link");er(J),dr(J,"link",i),J._p=new Promise(function(de,_e){J.onload=de,J.onerror=_e}),J.addEventListener("load",function(){z.loading|=1}),J.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Nh(N,a,m)}N={type:"stylesheet",instance:N,count:1,state:z},y.set(w,N)}}}function cj(i,a){Qi.X(i,a);var u=tc;if(u&&i){var m=xl(u).hoistableScripts,y=rc(i),w=m.get(y);w||(w=u.querySelector(Hu(y)),w||(i=h({src:i,async:!0},a),(a=Po.get(y))&&wy(i,a),w=u.createElement("script"),er(w),dr(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(y,w))}}function uj(i,a){Qi.M(i,a);var u=tc;if(u&&i){var m=xl(u).hoistableScripts,y=rc(i),w=m.get(y);w||(w=u.querySelector(Hu(y)),w||(i=h({src:i,async:!0,type:"module"},a),(a=Po.get(y))&&wy(i,a),w=u.createElement("script"),er(w),dr(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(y,w))}}function YO(i,a,u,m){var y=(y=X.current)?Ph(y):null;if(!y)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=nc(u.href),u=xl(y).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=nc(u.href);var w=xl(y).hoistableStyles,N=w.get(i);if(N||(y=y.ownerDocument||y,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,N),(w=y.querySelector(qu(i)))&&!w._p&&(N.instance=w,N.state.loading=5),Po.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Po.set(i,u),w||dj(y,i,u,N.state))),a&&m===null)throw Error(r(528,""));return N}if(a&&m!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=rc(u),u=xl(y).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function nc(i){return'href="'+xo(i)+'"'}function qu(i){return'link[rel="stylesheet"]['+i+"]"}function WO(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function dj(i,a,u,m){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=i.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),dr(a,"link",u),er(a),i.head.appendChild(a))}function rc(i){return'[src="'+xo(i)+'"]'}function Hu(i){return"script[async]"+i}function QO(i,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=i.querySelector('style[data-href~="'+xo(u.href)+'"]');if(m)return a.instance=m,er(m),m;var y=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),er(m),dr(m,"style",y),Nh(m,u.precedence,i),a.instance=m;case"stylesheet":y=nc(u.href);var w=i.querySelector(qu(y));if(w)return a.state.loading|=4,a.instance=w,er(w),w;m=WO(u),(y=Po.get(y))&&by(m,y),w=(i.ownerDocument||i).createElement("link"),er(w);var N=w;return N._p=new Promise(function(z,J){N.onload=z,N.onerror=J}),dr(w,"link",m),a.state.loading|=4,Nh(w,u.precedence,i),a.instance=w;case"script":return w=rc(u.src),(y=i.querySelector(Hu(w)))?(a.instance=y,er(y),y):(m=u,(y=Po.get(w))&&(m=h({},u),wy(m,y)),i=i.ownerDocument||i,y=i.createElement("script"),er(y),dr(y,"link",m),i.head.appendChild(y),a.instance=y);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,Nh(m,u.precedence,i));return a.instance}function Nh(i,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=m.length?m[m.length-1]:null,w=y,N=0;N<m.length;N++){var z=m[N];if(z.dataset.precedence===a)w=z;else if(w!==y)break}w?w.parentNode.insertBefore(i,w.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(i,a.firstChild))}function by(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function wy(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var kh=null;function XO(i,a,u){if(kh===null){var m=new Map,y=kh=new Map;y.set(u,m)}else y=kh,m=y.get(u),m||(m=new Map,y.set(u,m));if(m.has(i))return m;for(m.set(i,null),u=u.getElementsByTagName(i),y=0;y<u.length;y++){var w=u[y];if(!(w[au]||w[ar]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var N=w.getAttribute(a)||"";N=i+N;var z=m.get(N);z?z.push(w):m.set(N,[w])}}return m}function JO(i,a,u){i=i.ownerDocument||i,i.head.insertBefore(u,a==="title"?i.querySelector("head > title"):null)}function fj(i,a,u){if(u===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(i=a.disabled,typeof a.precedence=="string"&&i==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function e2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function hj(i,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var y=nc(m.href),w=a.querySelector(qu(y));if(w){a=w._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(i.count++,i=Dh.bind(i),a.then(i,i)),u.state.loading|=4,u.instance=w,er(w);return}w=a.ownerDocument||a,m=WO(m),(y=Po.get(y))&&by(m,y),w=w.createElement("link"),er(w);var N=w;N._p=new Promise(function(z,J){N.onload=z,N.onerror=J}),dr(w,"link",m),u.instance=w}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=Dh.bind(i),a.addEventListener("load",u),a.addEventListener("error",u))}}var Sy=0;function pj(i,a){return i.stylesheets&&i.count===0&&$h(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var m=setTimeout(function(){if(i.stylesheets&&$h(i,i.stylesheets),i.unsuspend){var w=i.unsuspend;i.unsuspend=null,w()}},6e4+a);0<i.imgBytes&&Sy===0&&(Sy=62500*Z$());var y=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&$h(i,i.stylesheets),i.unsuspend)){var w=i.unsuspend;i.unsuspend=null,w()}},(i.imgBytes>Sy?50:800)+a);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(m),clearTimeout(y)}}:null}function Dh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$h(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Lh=null;function $h(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Lh=new Map,a.forEach(mj,i),Lh=null,Dh.call(i))}function mj(i,a){if(!(a.state.loading&4)){var u=Lh.get(i);if(u)var m=u.get(null);else{u=new Map,Lh.set(i,u);for(var y=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<y.length;w++){var N=y[w];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),m=N)}m&&u.set(null,m)}y=a.instance,N=y.getAttribute("data-precedence"),w=u.get(N)||m,w===m&&u.set(null,y),u.set(N,y),this.count++,m=Dh.bind(this),y.addEventListener("load",m),y.addEventListener("error",m),w?w.parentNode.insertBefore(y,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(y,i.firstChild)),a.state.loading|=4}}var Gu={$$typeof:T,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function gj(i,a,u,m,y,w,N,z,J){this.tag=1,this.containerInfo=i,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=Sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sr(0),this.hiddenUpdates=Sr(null),this.identifierPrefix=m,this.onUncaughtError=y,this.onCaughtError=w,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function t2(i,a,u,m,y,w,N,z,J,de,_e,Ee){return i=new gj(i,a,u,N,J,de,_e,Ee,z),a=1,w===!0&&(a|=24),w=to(3,null,null,a),i.current=w,w.stateNode=i,a=t0(),a.refCount++,i.pooledCache=a,a.refCount++,w.memoizedState={element:m,isDehydrated:u,cache:a},i0(w),i}function n2(i){return i?(i=kl,i):kl}function r2(i,a,u,m,y,w){y=n2(y),m.context===null?m.context=y:m.pendingContext=y,m=Os(a),m.payload={element:u},w=w===void 0?null:w,w!==null&&(m.callback=w),u=Ts(i,m,a),u!==null&&(Gr(u,i,a),xu(u,i,a))}function o2(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<a?u:a}}function Ey(i,a){o2(i,a),(i=i.alternate)&&o2(i,a)}function i2(i){if(i.tag===13||i.tag===31){var a=Oa(i,67108864);a!==null&&Gr(a,i,67108864),Ey(i,67108864)}}function s2(i){if(i.tag===13||i.tag===31){var a=so();a=bl(a);var u=Oa(i,a);u!==null&&Gr(u,i,a),Ey(i,a)}}var jh=!0;function vj(i,a,u,m){var y=H.T;H.T=null;var w=W.p;try{W.p=2,xy(i,a,u,m)}finally{W.p=w,H.T=y}}function yj(i,a,u,m){var y=H.T;H.T=null;var w=W.p;try{W.p=8,xy(i,a,u,m)}finally{W.p=w,H.T=y}}function xy(i,a,u,m){if(jh){var y=Ry(m);if(y===null)uy(i,a,m,zh,u),l2(i,m);else if(bj(y,i,a,u,m))m.stopPropagation();else if(l2(i,m),a&4&&-1<_j.indexOf(i)){for(;y!==null;){var w=El(y);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var N=Dt(w.pendingLanes);if(N!==0){var z=w;for(z.pendingLanes|=2,z.entangledLanes|=2;N;){var J=1<<31-Ln(N);z.entanglements[1]|=J,N&=~J}fi(w),(Ut&6)===0&&(wh=K()+500,Uu(0))}}break;case 31:case 13:z=Oa(w,2),z!==null&&Gr(z,w,2),Eh(),Ey(w,2)}if(w=Ry(m),w===null&&uy(i,a,m,zh,u),w===y)break;y=w}y!==null&&m.stopPropagation()}else uy(i,a,m,null,u)}}function Ry(i){return i=Tv(i),Oy(i)}var zh=null;function Oy(i){if(zh=null,i=Sl(i),i!==null){var a=s(i);if(a===null)i=null;else{var u=a.tag;if(u===13){if(i=l(a),i!==null)return i;i=null}else if(u===31){if(i=c(a),i!==null)return i;i=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return zh=i,null}function a2(i){switch(i){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(ne()){case ae:return 2;case Re:return 8;case Ae:case Ie:return 32;case ke:return 268435456;default:return 32}default:return 32}}var Ty=!1,js=null,zs=null,Us=null,Ku=new Map,Zu=new Map,Fs=[],_j="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 l2(i,a){switch(i){case"focusin":case"focusout":js=null;break;case"dragenter":case"dragleave":zs=null;break;case"mouseover":case"mouseout":Us=null;break;case"pointerover":case"pointerout":Ku.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zu.delete(a.pointerId)}}function Yu(i,a,u,m,y,w){return i===null||i.nativeEvent!==w?(i={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:w,targetContainers:[y]},a!==null&&(a=El(a),a!==null&&i2(a)),i):(i.eventSystemFlags|=m,a=i.targetContainers,y!==null&&a.indexOf(y)===-1&&a.push(y),i)}function bj(i,a,u,m,y){switch(a){case"focusin":return js=Yu(js,i,a,u,m,y),!0;case"dragenter":return zs=Yu(zs,i,a,u,m,y),!0;case"mouseover":return Us=Yu(Us,i,a,u,m,y),!0;case"pointerover":var w=y.pointerId;return Ku.set(w,Yu(Ku.get(w)||null,i,a,u,m,y)),!0;case"gotpointercapture":return w=y.pointerId,Zu.set(w,Yu(Zu.get(w)||null,i,a,u,m,y)),!0}return!1}function c2(i){var a=Sl(i.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=l(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===31){if(a=c(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Uh(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var u=Ry(i.nativeEvent);if(u===null){u=i.nativeEvent;var m=new u.constructor(u.type,u);Ov=m,u.target.dispatchEvent(m),Ov=null}else return a=El(u),a!==null&&i2(a),i.blockedOn=u,!1;a.shift()}return!0}function u2(i,a,u){Uh(i)&&u.delete(a)}function wj(){Ty=!1,js!==null&&Uh(js)&&(js=null),zs!==null&&Uh(zs)&&(zs=null),Us!==null&&Uh(Us)&&(Us=null),Ku.forEach(u2),Zu.forEach(u2)}function Fh(i,a){i.blockedOn===a&&(i.blockedOn=null,Ty||(Ty=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wj)))}var Bh=null;function d2(i){Bh!==i&&(Bh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bh===i&&(Bh=null);for(var a=0;a<i.length;a+=3){var u=i[a],m=i[a+1],y=i[a+2];if(typeof m!="function"){if(Oy(m||u)===null)continue;break}var w=El(u);w!==null&&(i.splice(a,3),a-=3,R0(w,{pending:!0,data:y,method:u.method,action:m},m,y))}}))}function oc(i){function a(J){return Fh(J,i)}js!==null&&Fh(js,i),zs!==null&&Fh(zs,i),Us!==null&&Fh(Us,i),Ku.forEach(a),Zu.forEach(a);for(var u=0;u<Fs.length;u++){var m=Fs[u];m.blockedOn===i&&(m.blockedOn=null)}for(;0<Fs.length&&(u=Fs[0],u.blockedOn===null);)c2(u),u.blockedOn===null&&Fs.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var y=u[m],w=u[m+1],N=y[Ur]||null;if(typeof w=="function")N||d2(u);else if(N){var z=null;if(w&&w.hasAttribute("formAction")){if(y=w,N=w[Ur]||null)z=N.formAction;else if(Oy(y)!==null)continue}else z=N.action;typeof z=="function"?u[m+1]=z:(u.splice(m,3),m-=3),d2(u)}}}function f2(){function i(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(N){return y=N})},focusReset:"manual",scroll:"manual"})}function a(){y!==null&&(y(),y=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,y=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),y!==null&&(y(),y=null)}}}function Cy(i){this._internalRoot=i}Vh.prototype.render=Cy.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=so();r2(u,m,i,a,null,null)},Vh.prototype.unmount=Cy.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;r2(i.current,2,null,i,null,null),Eh(),a[wl]=null}};function Vh(i){this._internalRoot=i}Vh.prototype.unstable_scheduleHydration=function(i){if(i){var a=_v();i={blockedOn:null,target:i,priority:a};for(var u=0;u<Fs.length&&a!==0&&a<Fs[u].priority;u++);Fs.splice(u,0,i),u===0&&c2(i)}};var h2=t.version;if(h2!=="19.2.6")throw Error(r(527,h2,"19.2.6"));W.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=f(a),i=i!==null?p(i):null,i=i===null?null:i.stateNode,i};var Sj={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qh.isDisabled&&qh.supportsFiber)try{vt=qh.inject(Sj),Tt=qh}catch{}}return Qu.createRoot=function(i,a){if(!o(i))throw Error(r(299));var u=!1,m="",y=bR,w=wR,N=SR;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(y=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(N=a.onRecoverableError)),a=t2(i,1,!1,null,null,u,m,null,y,w,N,f2),i[wl]=a.current,cy(i),new Cy(a)},Qu.hydrateRoot=function(i,a,u){if(!o(i))throw Error(r(299));var m=!1,y="",w=bR,N=wR,z=SR,J=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(z=u.onRecoverableError),u.formState!==void 0&&(J=u.formState)),a=t2(i,1,!0,a,u??null,m,y,J,w,N,z,f2),a.context=n2(null),u=a.current,m=so(),m=bl(m),y=Os(m),y.callback=null,Ts(u,y,m),u=m,a.current.lanes=u,Lt(a,u),fi(a),i[wl]=a.current,cy(i),new Vh(a)},Qu.version="19.2.6",Qu}var x2;function kj(){if(x2)return Iy.exports;x2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Iy.exports=Nj(),Iy.exports}var Dj=kj(),M=ma();const ee=fl(M),Ew=xj({__proto__:null,default:ee},[M]);var Dy={exports:{}},Ly={};var R2;function Lj(){if(R2)return Ly;R2=1;var e=ma().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Ly.c=function(t){return e.H.useMemoCache(t)},Ly}var O2;function $j(){return O2||(O2=1,Dy.exports=Lj()),Dy.exports}var ir=$j(),tu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jj=class extends tu{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},xw=new jj,zj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Uj=class{#e=zj;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Ja=new Uj;function Fj(e){setTimeout(e,0)}var Bj=typeof window>"u"||"Deno"in globalThis;function Zn(){}function Vj(e,t){return typeof e=="function"?e(t):e}function Ob(e){return typeof e=="number"&&e>=0&&e!==1/0}function JM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function sa(e,t){return typeof e=="function"?e(t):e}function uo(e,t){return typeof e=="function"?e(t):e}function T2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Rw(l,t.options))return!1}else if(!Bd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function C2(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ll(t.options.mutationKey)!==ll(s))return!1}else if(!Bd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Rw(e,t){return(t?.queryKeyHashFn||ll)(e)}function ll(e){return JSON.stringify(e,(t,n)=>Tb(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Bd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Bd(e[n],t[n])):!1}var qj=Object.prototype.hasOwnProperty;function eP(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=A2(e)&&A2(t);if(!r&&!(Tb(e)&&Tb(t)))return t;const s=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,d=r?new Array(c):{};let f=0;for(let p=0;p<c;p++){const h=r?p:l[p],g=e[h],v=t[h];if(g===v){d[h]=g,(r?p<s:qj.call(e,h))&&f++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[h]=v;continue}const _=eP(g,v,n+1);d[h]=_,_===g&&f++}return s===c&&f===s?e:d}function Am(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function A2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Tb(e){if(!I2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!I2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function I2(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hj(e){return new Promise(t=>{Ja.setTimeout(t,e)})}function Cb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?eP(e,t):t}function pce(e){return e}function Gj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Kj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ow=Symbol();function tP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ow?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Tw(e,t){return typeof e=="function"?e(...t):!!e}function Zj(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Vd=(()=>{let e=()=>Bj;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ab(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Yj(e){let t;if(e.then(n=>(t=n,n),Zn)?.catch(Zn),t!==void 0)return{data:t}}function nP(e){return e}function Wj(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function Qj(e,t,n){const r=()=>{const o=e.promise?.then(t).catch(s=>n(s)?Promise.reject(new Error("redacted")):Promise.reject(s));return o?.catch(Zn),o};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function Xj(e){return e.state.isPaused}function Jj(e){return e.state.status==="success"}function e8(e){return!0}function t8(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Xj,r=e.getMutationCache().getAll().flatMap(d=>n(d)?[Wj(d)]:[]),o=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Jj,s=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??e8,l=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??nP,c=e.getQueryCache().getAll().flatMap(d=>o(d)?[Qj(d,l,s)]:[]);return{mutations:r,queries:c}}function n8(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),s=e.getDefaultOptions().hydrate?.deserializeData??nP,l=t.mutations||[],c=t.queries||[];l.forEach(({state:d,...f})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...f},d)}),c.forEach(({queryKey:d,state:f,queryHash:p,meta:h,promise:g,dehydratedAt:v,queryType:_})=>{const b=g?Yj(g):void 0,x=f.data===void 0?b?.data:f.data,S=x===void 0?x:s(x);let E=o.get(p);const T=E?.state.status==="pending",R=E?.state.fetchStatus==="fetching";if(E){const O=b&&v!==void 0&&v>E.state.dataUpdatedAt;if(f.dataUpdatedAt>E.state.dataUpdatedAt||O){const{fetchStatus:A,...I}=f;E.setState({...I,data:S,...f.status==="pending"&&S!==void 0&&{status:"success",...!R&&{fetchStatus:"idle"}}})}}else E=o.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:d,queryHash:p,meta:h,_type:_},{...f,data:S,fetchStatus:"idle",status:f.status==="pending"&&S!==void 0?"success":f.status});g&&!b&&!T&&!R&&(v===void 0||v>E.state.dataUpdatedAt)&&E.fetch(void 0,{initialPromise:Promise.resolve(g).then(s)}).catch(Zn)})}var r8=Fj;function o8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=r8;const s=c=>{t?e.push(c):o(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{s(()=>{c(...d)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Wn=o8(),i8=class extends tu{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Im=new i8;function s8(e){return Math.min(1e3*2**e,3e4)}function rP(e){return(e??"online")==="online"?Im.isOnline():!0}var Ib=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function oP(e){let t=!1,n=0,r;const o=Ab(),s=()=>o.status!=="pending",l=b=>{if(!s()){const x=new Ib(b);g(x),e.onCancel?.(x)}},c=()=>{t=!0},d=()=>{t=!1},f=()=>xw.isFocused()&&(e.networkMode==="always"||Im.isOnline())&&e.canRun(),p=()=>rP(e.networkMode)&&e.canRun(),h=b=>{s()||(r?.(),o.resolve(b))},g=b=>{s()||(r?.(),o.reject(b))},v=()=>new Promise(b=>{r=x=>{(s()||f())&&b(x)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),_=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(S){b=Promise.reject(S)}Promise.resolve(b).then(h).catch(S=>{if(s())return;const E=e.retry??(Vd.isServer()?0:3),T=e.retryDelay??s8,R=typeof T=="function"?T(n,S):T,O=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,S);if(t||!O){g(S);return}n++,e.onFail?.(n,S),Hj(R).then(()=>f()?void 0:v()).then(()=>{t?g(S):_()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?_():v().then(_),o)}}var iP=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ob(this.gcTime)&&(this.#e=Ja.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vd.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Ja.clearTimeout(this.#e),this.#e=void 0)}};function a8(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const h=_=>{Zj(_,()=>t.signal,()=>p=!0)},g=tP(t.options,t.fetchOptions),v=async(_,b,x)=>{if(p)return Promise.reject(t.signal.reason);if(b==null&&_.pages.length)return Promise.resolve(_);const E=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:b,direction:x?"backward":"forward",meta:t.options.meta};return h(A),A})(),T=await g(E),{maxPages:R}=t.options,O=x?Kj:Gj;return{pages:O(_.pages,T,R),pageParams:O(_.pageParams,b,R)}};if(o&&s.length){const _=o==="backward",b=_?sP:Mb,x={pages:s,pageParams:l},S=b(r,x);c=await v(x,S,_)}else{const _=e??s.length;do{const b=d===0?l[0]??r.initialPageParam:Mb(r,c);if(d>0&&b==null)break;c=await v(c,b),d++}while(d<_)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function Mb(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function sP(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function mce(e,t){return t?Mb(e,t)!=null:!1}function gce(e,t){return!t||!e.getPreviousPageParam?!1:sP(e,t)!=null}var l8=class extends iP{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=P2(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#a,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=P2(this.options);t.data!==void 0&&(this.setState(M2(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=Cb(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(Zn).catch(Zn):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(e=>uo(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ow||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>sa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!JM(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#s||this.#u()?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const d=tP(this.options,t),p=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return r(d),d})();(this.#e==="infinite"?a8(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#l({type:"fetch",meta:l.fetchOptions?.meta}),this.#o=oP({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof Ib&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(d,f)=>{this.#l({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#o.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ib){if(d.silent)return this.#o.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...aP(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...M2(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Wn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function aP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function P2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var lP=class extends tu{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#a=Ab(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#a;#s;#u;#l;#p;#d;#f;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),N2(this.#t,this.options)?this.#h():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pb(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pb(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof uo(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Am(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&k2(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||sa(this.options.staleTime,this.#t)!==sa(t.staleTime,this.#t))&&this.#g();const o=this.#v();r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||o!==this.#c)&&this.#y(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return u8(this,n)&&(this.#r=n,this.#o=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zn)),t}#g(){this.#b();const e=sa(this.options.staleTime,this.#t);if(Vd.isServer()||this.#r.isStale||!Ob(e))return;const n=JM(this.#r.dataUpdatedAt,e)+1;this.#d=Ja.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#c=e,!(Vd.isServer()||uo(this.options.enabled,this.#t)===!1||!Ob(this.#c)||this.#c===0)&&(this.#f=Ja.setInterval(()=>{(this.options.refetchIntervalInBackground||xw.isFocused())&&this.#h()},this.#c))}#_(){this.#g(),this.#y(this.#v())}#b(){this.#d!==void 0&&(Ja.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Ja.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,s=this.#i,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},h=!1,g;if(t._optimisticResults){const P=this.hasListeners(),L=!P&&N2(e,t),q=P&&k2(e,n,t,r);(L||q)&&(p={...p,...aP(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:_,status:b}=p;g=p.data;let x=!1;if(t.placeholderData!==void 0&&g===void 0&&b==="pending"){let P;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(P=o.data,x=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,P!==void 0&&(b="success",g=Cb(o?.data,P,t),h=!0)}if(t.select&&g!==void 0&&!x)if(o&&g===s?.data&&t.select===this.#u)g=this.#l;else try{this.#u=t.select,g=t.select(g),g=Cb(o?.data,g,t),this.#l=g,this.#s=null}catch(P){this.#s=P}this.#s&&(v=this.#s,g=this.#l,_=Date.now(),b="error");const S=p.fetchStatus==="fetching",E=b==="pending",T=b==="error",R=E&&S,O=g!==void 0,I={status:b,fetchStatus:p.fetchStatus,isPending:E,isSuccess:b==="success",isError:T,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:_,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:T&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:T&&O,isStale:Cw(e,t),refetch:this.refetch,promise:this.#a,isEnabled:uo(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=I.data!==void 0,L=I.status==="error"&&!P,q=F=>{L?F.reject(I.error):P&&F.resolve(I.data)},j=()=>{const F=this.#a=I.promise=Ab();q(F)},B=this.#a;switch(B.status){case"pending":e.queryHash===n.queryHash&&q(B);break;case"fulfilled":(L||I.data!==B.value)&&j();break;case"rejected":(!L||I.error!==B.reason)&&j();break}}return I}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#p=this.#t),Am(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const s=new Set(o??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&s.has(c)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#E(e){Wn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function c8(e,t){return uo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&uo(t.retryOnMount,e)===!1)}function N2(e,t){return c8(e,t)||e.state.data!==void 0&&Pb(e,t,t.refetchOnMount)}function Pb(e,t,n){if(uo(t.enabled,e)!==!1&&sa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Cw(e,t)}return!1}function k2(e,t,n,r){return(e!==t||uo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Cw(e,n)}function Cw(e,t){return uo(t.enabled,e)!==!1&&e.isStaleByTime(sa(t.staleTime,e))}function u8(e,t){return!Am(e.getCurrentResult(),t)}var d8=class extends iP{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||cP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=oP({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#i({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:e,isPaused:o})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#i({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#i({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Wn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function cP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var f8=class extends tu{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new d8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Hh(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Hh(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Hh(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Hh(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Wn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>C2(t,n))}findAll(e={}){return this.getAll().filter(t=>C2(e,t))}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Wn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Zn))))}};function Hh(e){return e.options.scope?.id}var h8=class extends tu{#e;#t=void 0;#n;#r;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Am(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ll(n.mutationKey)!==ll(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??cP();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Wn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(t.data,null,n,r,o)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,n,r,o)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},p8=class extends tu{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Rw(r,t);let s=this.get(o);return s||(s=new l8({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Wn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>T2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>T2(e,n)):t}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},m8=class{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e={}){this.#e=e.queryCache||new p8,this.#t=e.mutationCache||new f8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#a=xw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Im.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#a?.(),this.#a=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(sa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,l=Vj(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Wn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Wn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Wn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Wn.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Zn).catch(Zn)}invalidateQueries(e,t={}){return Wn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Wn.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Zn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(sa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Im.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ll(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Bd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ll(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{Bd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ow&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},uP=M.createContext(void 0),Aw=e=>{const t=M.useContext(uP);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},g8=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(uP.Provider,{value:e,children:t})),dP=M.createContext(!1),v8=()=>M.useContext(dP);dP.Provider;function fP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hP=M.createContext(fP()),y8=()=>M.useContext(hP),yce=({children:e})=>{const[t]=M.useState(()=>fP());return C.jsx(hP.Provider,{value:t,children:typeof e=="function"?e(t):e})},_8=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?Tw(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},b8=e=>{M.useEffect(()=>{e.clearReset()},[e])},w8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Tw(n,[e.error,r])),S8=(e,t)=>t.state.data===void 0,E8=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},x8=(e,t)=>e.isLoading&&e.isFetching&&!t,R8=(e,t)=>e?.suspense&&t.isPending,D2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function pP(e,t,n){const r=v8(),o=y8(),s=Aw(n),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const c=s.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",E8(l),_8(l,o,c),b8(o);const d=!s.getQueryCache().get(l.queryHash),[f]=M.useState(()=>new t(s,l)),p=f.getOptimisticResult(l),h=!r&&e.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(g=>{const v=h?f.subscribe(Wn.batchCalls(g)):Zn;return f.updateResult(),v},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),M.useEffect(()=>{f.setOptions(l)},[l,f]),R8(l,p))throw D2(l,f,o);if(w8({result:p,errorResetBoundary:o,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,p),l.experimental_prefetchInRender&&!Vd.isServer()&&x8(p,r)&&(d?D2(l,f,o):c?.promise)?.catch(Zn).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?p:f.trackResult(p)}function mP(e,t){return pP(e,lP,t)}function ff(e,t){return pP({...e,enabled:!0,suspense:!0,throwOnError:S8,placeholderData:void 0},lP,t)}function O8(e,t){const n=Aw(t),[r]=M.useState(()=>new h8(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const o=M.useSyncExternalStore(M.useCallback(l=>r.subscribe(Wn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=M.useCallback((l,c)=>{r.mutate(l,c).catch(Zn)},[r]);if(o.error&&Tw(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const gP={publicConfig:()=>["publicConfig"],session:()=>["session"],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],myCapabilities:e=>[e,"my-capabilities"],connections:e=>[e,"connections"],connectionsByBinding:(e,t)=>[e,"connections",`binding:${t}`],connection:(e,t)=>[e,"connection",t],commerceDiscoveryConnection:(e,t)=>["commerce-discovery","connection",e,t],commerceDiscoveryVirtualMcp:(e,t)=>["commerce-discovery","virtual-mcp",e,t],commerceDiscoveryCompanionSchema:(e,t)=>["commerce-discovery","companion-schema",e,t],commerceDiscoveryCompanionConnections:(e,t)=>["commerce-discovery","companion-connections",e,t],commerceDiscoveryCompanionConnectionsPrefix:e=>["commerce-discovery","companion-connections",e],commerceDiscoveryCompanionRegistry:(e,t)=>["commerce-discovery","companion-registry",e,t],commerceDiscoveryCompanionOAuthStatus:(e,t)=>["commerce-discovery","companion-oauth-status",e,t],commerceDiscoveryCompanionGaProperties:(e,t)=>["commerce-discovery","companion-ga-properties",e,t],commerceDiscoveryCompanionGscSites:(e,t)=>["commerce-discovery","companion-gsc-sites",e,t],connectionActivity:(e,t,n)=>["monitoring","activity",e,t,n],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],mcpClientPrefix:()=>["mcp","client"],organizationSettings:e=>["organization-settings",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],modelsList:e=>["models-list",e],homeNextActions:e=>["home-next-actions",e],boardLayout:e=>["board-layout",e],agentPrompts:(e,t)=>["agent-prompts",e,t],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,n)=>["tool-call",e,t,n],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,n)=>[e,t,"collection",n],collectionItem:(e,t,n,r,o)=>[e,t,n,"collection",r,o],collectionList:(e,t,n,r,o)=>[e,t,n,"collection",r,"list",o],collectionListInfinite:(e,t,n,r,o)=>[e,t,n,"collection",r,"list-infinite",o],monitoringStats:()=>["monitoring","stats"],monitoringStatsToolCalls:(e,t)=>["MONITORING_STATS",e,"tool-calls",t],monitoringStatsLlm:(e,t)=>["MONITORING_STATS",e,"llm",t],monitoringThreadUsage:(e,t)=>["MONITORING_THREAD_USAGE",e,t],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],globalSearch:(e,t)=>["global-search",e,t],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],threadMessages:(e,t)=>["threads","messages",e,t],threadModelLogs:(e,t)=>["threads","model-logs",e,t],threadSandbox:(e,t)=>["thread-sandbox","v2",e,t],threadOutputs:e=>["thread-outputs",e],fileText:e=>["file-text",e],csvThumb:e=>["csv-thumb",e],virtualMcpTools:(e,t)=>["virtual-mcp",t,e??"default","tools"],toolDefinitionLookup:(e,t,n)=>["virtual-mcp",t,e??"default","tools","lookup",n],virtualMcpAgents:e=>["virtual-mcp",e,"agents"],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,n)=>[...e,t,n],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,n)=>["automation-runs",e,t,...[...n??[]].sort()],automationRunStats:(e,t,n)=>["automation-run-stats",e,t,n],projects:e=>["projects",e],project:(e,t)=>["project",e,t],virtualMcp:(e,t)=>["virtual-mcp",e,t],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],aiProviderKeyPreview:e=>["ai-provider-key-preview",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],orgFsVolume:(e,t)=>["org-fs",e,t],orgFsList:(e,t,n)=>["org-fs",e,t,"list",n],orgFsUsage:(e,t)=>["org-fs",e,t,"usage"],orgFsStat:(e,t,n)=>["org-fs",e,t,"stat",n],orgFsPublicSets:e=>["org-fs-public-sets",e],orgFsRecent:e=>["org-fs-recent",e],orgFsSkills:e=>["org-fs-skills",e],filePickerObjects:(e,t,n,r)=>["file-picker-objects",e,t,n??"",r??!1],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomains:e=>["organization-domains",e],organizationJoinRequests:e=>["organization-join-requests",e],domainLookup:e=>["domain-lookup",e],brandContext:e=>["brand-context",e],defaultBrand:e=>["brand-context",e,"default"],decoProfile:e=>["deco-profile",e],decoSites:e=>["deco-sites",e],decoApps:()=>["deco-apps"],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],liveMeta:e=>["live-meta",e],sandboxInvoke:(e,t)=>["sandbox-invoke",e,t],sandboxRepoDir:(e,t,n)=>["sandbox-repo-dir",e,t,n],linkStatus:()=>["link-status"],currentLink:e=>["current-link",e],githubUserOrgs:(e,t)=>["github-user-orgs",e,t],githubOrgRepos:(e,t,n,r)=>["github-org-repos",e,t,n,r],vmEnv:(e,t,n)=>["vm-env",e,t,n]};function _ce(e,t){e.invalidateQueries({predicate:n=>{const r=n.queryKey;return(!t||r[1]===t)&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})}function vP(){const e=ir.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:gP.publicConfig(),queryFn:T8,staleTime:1/0},e[0]=t):t=e[0];const{data:n}=ff(t);return n}async function T8(){return(await(await fetch("/api/config")).json()).config}const bce={light:"/logos/deco logo.svg",dark:"/logos/deco logo negative.svg"},yP=M.createContext(void 0);function C8(e){const t=ir.c(3),{children:n}=e,r=vP();let o;return t[0]!==n||t[1]!==r.auth?(o=C.jsx(yP.Provider,{value:r.auth,children:n}),t[0]=n,t[1]=r.auth,t[2]=o):o=t[2],o}function wce(){const e=M.useContext(yP);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var L2=M.use,Oc=typeof window<"u"?M.useLayoutEffect:M.useEffect;function $y(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function A8(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([s])=>{t(s)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,r.disabled,e])}function I8(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}const _P=!1;function qd(e){return e[e.length-1]}function M8(e){return typeof e=="function"}function ra(e,t){return M8(e)?e(t):e}const bP=Object.prototype.hasOwnProperty,$2=Object.prototype.propertyIsEnumerable;function wP(e){for(const t in e)if(bP.call(e,t))return!0;return!1}const P8=()=>Object.create(null),za=(e,t)=>el(e,t,P8);function el(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const o=t,s=U2(e)&&U2(o);if(!s&&!(Bc(e)&&Bc(o)))return o;const l=s?e:j2(e);if(!l)return o;const c=s?o:j2(o);if(!c)return o;const d=l.length,f=c.length,p=s?new Array(f):n();let h=0;for(let g=0;g<f;g++){const v=s?g:c[g],_=e[v],b=o[v];if(_===b){p[v]=_,(s?g<d:bP.call(e,v))&&h++;continue}if(_===null||b===null||typeof _!="object"||typeof b!="object"){p[v]=b;continue}const x=el(_,b,n,r+1);p[v]=x,x===_&&h++}return d===f&&h===d?e:p}function j2(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!$2.call(e,o))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const o of n){if(!$2.call(e,o))return!1;r.push(o)}return r}function Bc(e){if(!z2(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!z2(n)||!n.hasOwnProperty("isPrototypeOf"))}function z2(e){return Object.prototype.toString.call(e)==="[object Object]"}function U2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ol(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!ol(e[r],t[r],n))return!1;return!0}if(Bc(e)&&Bc(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const l in t)if((!r||t[l]!==void 0)&&!ol(e[l],t[l],n))return!1;return!0}let o=0;if(!r)o=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&o++;let s=0;for(const l in t)if((!r||t[l]!==void 0)&&(s++,s>o||!ol(e[l],t[l],n)))return!1;return o===s}return!1}function Vc(e){let t,n;const r=new Promise((o,s)=>{t=o,n=s});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e?.(o)},r.reject=o=>{r.status="rejected",n(o)},r}function N8(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Hd(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function k8(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function F2(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return k8(t)}const D8=["http:","https:","mailto:","tel:"];function Mm(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Xu(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",o;for(;(o=t.exec(e))!==null;)r+=F2(e.slice(n,o.index))+o[0],n=t.lastIndex;r=r+F2(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function L8(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function $8(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ds(){throw new Error("Invariant failed")}function Gd(e){const t=new Map;let n,r;const o=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const l=t.get(s);if(l)return o(l),l.value},set(s,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const c=t.get(s);if(c)c.value=l,o(c);else{const d={key:s,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(s,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const oa=4,SP=5;function j8(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function EP(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),o=r===-1?e.length:r,s=e.substring(t,o);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if(s==="$"){const c=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=c,n[4]=c,n[5]=c,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;const l=j8(s);if(l){const[c,d]=l,f=s.charCodeAt(c+1);if(f===45){if(c+2<s.length&&s.charCodeAt(c+2)===36){const p=c+3,h=d;if(p<h)return n[0]=3,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=o,n}}else if(f===36){const p=c+1,h=c+2;return h===d?(n[0]=2,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=e.length,n):(n[0]=1,n[1]=t+c,n[2]=t+h,n[3]=t+d,n[4]=t+d+1,n[5]=o,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function Ag(e,t,n,r,o,s,l){l?.(n);let c=r;{const d=n.fullPath??n.from,f=d.length,p=n.options?.caseSensitive??e,h=n.options?.params?.parse??n.options?.parseParams;for(;c<f;){const v=EP(d,c,t);let _;const b=c,x=v[5];switch(c=x+1,s++,v[0]){case 0:{const S=d.substring(v[2],v[3]);if(p){const E=o.static?.get(S);if(E)_=E;else{o.static??=new Map;const T=tl(n.fullPath??n.from);T.parent=o,T.depth=s,_=T,o.static.set(S,T)}}else{const E=S.toLowerCase(),T=o.staticInsensitive?.get(E);if(T)_=T;else{o.staticInsensitive??=new Map;const R=tl(n.fullPath??n.from);R.parent=o,R.depth=s,_=R,o.staticInsensitive.set(E,R)}}break}case 1:{const S=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(S||E),R=S?T?S:S.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.dynamic?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)_=A;else{const I=zy(1,n.fullPath??n.from,T,R,O);_=I,I.depth=s,I.parent=o,o.dynamic??=[],o.dynamic.push(I)}break}case 3:{const S=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(S||E),R=S?T?S:S.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.optional?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)_=A;else{const I=zy(3,n.fullPath??n.from,T,R,O);_=I,I.parent=o,I.depth=s,o.optional??=[],o.optional.push(I)}break}case 2:{const S=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(S||E),R=S?T?S:S.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=zy(2,n.fullPath??n.from,T,R,O);_=A,A.parent=o,A.depth=s,o.wildcard??=[],o.wildcard.push(A)}}o=_}if(h&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const v=tl(n.fullPath??n.from);v.kind=SP,v.parent=o,s++,v.depth=s,o.pathless??=[],o.pathless.push(v),o=v}const g=(n.path||!n.children)&&!n.isRoot;if(g&&d.endsWith("/")){const v=tl(n.fullPath??n.from);v.kind=oa,v.parent=o,s++,v.depth=s,o.index=v,o=v}o.parse=h??null,g&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)Ag(e,t,d,c,o,s,l)}function jy(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Js(e){if(e.pathless)for(const t of e.pathless)Js(t);if(e.static)for(const t of e.static.values())Js(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Js(t);if(e.dynamic?.length){e.dynamic.sort(jy);for(const t of e.dynamic)Js(t)}if(e.optional?.length){e.optional.sort(jy);for(const t of e.optional)Js(t)}if(e.wildcard?.length){e.wildcard.sort(jy);for(const t of e.wildcard)Js(t)}}function tl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function zy(e,t,n,r,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:n,prefix:r,suffix:o}}function z8(e,t){const n=tl("/"),r=new Uint16Array(6);for(const o of e)Ag(!1,r,o,1,n,0);Js(n),t.masksTree=n,t.flatCache=Gd(1e3)}function U8(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=Iw(e,t.masksTree);return t.flatCache.set(e,r),r}function F8(e,t,n,r,o){e||="/",r||="/";const s=t?`case\0${e}`:e;let l=o.singleCache.get(s);return l||(l=tl("/"),Ag(t,new Uint16Array(6),{from:e},1,l,0),o.singleCache.set(s,l)),Iw(r,l,n)}function B8(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,o=t.matchCache.get(r);if(o!==void 0)return o;e||="/";let s;try{s=Iw(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)s=null;else throw l}return s&&(s.branch=RP(s.route)),t.matchCache.set(r,s),s}function V8(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function q8(e,t=!1,n){const r=tl(e.fullPath),o=new Uint16Array(6),s={},l={};let c=0;return Ag(t,o,e,1,r,0,d=>{if(n?.(d,c),d.id in s&&ds(),s[d.id]=d,c!==0&&d.path){const f=V8(d.fullPath);(!l[f]||d.fullPath.endsWith("/"))&&(l[f]=d)}c++}),Js(r),{processedTree:{segmentTree:r,singleCache:Gd(1e3),matchCache:Gd(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:l}}function Iw(e,t,n=!1){const r=e.split("/"),o=G8(e,r,t,n);if(!o)return null;const[s]=xP(e,r,o);return{route:o.node.route,rawParams:s}}function xP(e,t,n){const r=H8(n.node);let o=null;const s=Object.create(null);let l=n.extract?.part??0,c=n.extract?.node??0,d=n.extract?.path??0,f=n.extract?.segment??0;for(;c<r.length;l++,c++,d++,f++){const p=r[c];if(p.kind===oa)break;if(p.kind===SP){f--,l--,d--;continue}const h=t[l],g=d;if(h&&(d+=h.length),p.kind===1){o??=n.node.fullPath.split("/");const v=o[f],_=p.prefix?.length??0;if(v.charCodeAt(_)===123){const b=p.suffix?.length??0,x=v.substring(_+2,v.length-b-1),S=h.substring(_,h.length-b);s[x]=decodeURIComponent(S)}else{const b=v.substring(1);s[b]=decodeURIComponent(h)}}else if(p.kind===3){if(n.skipped&1<<c){l--,d=g-1;continue}o??=n.node.fullPath.split("/");const v=o[f],_=p.prefix?.length??0,b=p.suffix?.length??0,x=v.substring(_+3,v.length-b-1),S=p.suffix||p.prefix?h.substring(_,h.length-b):h;S&&(s[x]=decodeURIComponent(S))}else if(p.kind===2){const v=p,_=e.substring(g+(v.prefix?.length??0),e.length-(v.suffix?.length??0)),b=decodeURIComponent(_);s["*"]=b,s._splat=b;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:l,node:c,path:d,segment:f}]}function RP(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function H8(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function G8(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const o=!qd(t),s=o&&e!=="/",l=t.length-(o?1:0),c=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let d=null,f=null;for(;c.length;){const p=c.pop(),{node:h,index:g,skipped:v,depth:_,statics:b,dynamics:x,optionals:S}=p;let{extract:E,rawParams:T}=p;if(h.kind===2&&h.route&&!Kh(f,p))continue;if(h.parse){if(!B2(e,t,p))continue;T=p.rawParams,E=p.extract}r&&h.route&&h.kind!==oa&&Kh(d,p)&&(d=p);const R=g===l;if(R&&(h.route&&(!s||h.kind===oa||h.kind===2)&&Kh(f,p)&&(f=p),!h.optional&&!h.wildcard&&!h.index&&!h.pathless))continue;const O=R?void 0:t[g];let A;if(R&&h.index){const I={node:h.index,index:g,skipped:v,depth:_+1,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T};let P=!0;if(h.index.parse&&(B2(e,t,I)||(P=!1)),P){if(!x&&!S&&!v&&K8(b,l))return I;Kh(f,I)&&(f=I)}}if(h.wildcard)for(let I=h.wildcard.length-1;I>=0;I--){const P=h.wildcard[I],{prefix:L,suffix:q}=P;if(!(L&&(R||!(P.caseSensitive?O:A??=O.toLowerCase()).startsWith(L)))){if(q){if(R)continue;const j=t.slice(g).join("/").slice(-q.length);if((P.caseSensitive?j:j.toLowerCase())!==q)continue}c.push({node:P,index:l,skipped:v,depth:_+1,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T})}}if(h.optional){const I=v|1<<_,P=_+1;for(let L=h.optional.length-1;L>=0;L--){const q=h.optional[L];c.push({node:q,index:g,skipped:I,depth:P,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T})}if(!R)for(let L=h.optional.length-1;L>=0;L--){const q=h.optional[L],{prefix:j,suffix:B}=q;if(j||B){const F=q.caseSensitive?O:A??=O.toLowerCase();if(j&&!F.startsWith(j)||B&&!F.endsWith(B))continue}c.push({node:q,index:g+1,skipped:v,depth:P,statics:b,dynamics:x,optionals:S+Gh(l,g),extract:E,rawParams:T})}}if(!R&&h.dynamic&&O)for(let I=h.dynamic.length-1;I>=0;I--){const P=h.dynamic[I],{prefix:L,suffix:q}=P;if(L||q){const j=P.caseSensitive?O:A??=O.toLowerCase();if(L&&!j.startsWith(L)||q&&!j.endsWith(q))continue}c.push({node:P,index:g+1,skipped:v,depth:_+1,statics:b,dynamics:x+Gh(l,g),optionals:S,extract:E,rawParams:T})}if(!R&&h.staticInsensitive){const I=h.staticInsensitive.get(A??=O.toLowerCase());I&&c.push({node:I,index:g+1,skipped:v,depth:_+1,statics:b+Gh(l,g),dynamics:x,optionals:S,extract:E,rawParams:T})}if(!R&&h.static){const I=h.static.get(O);I&&c.push({node:I,index:g+1,skipped:v,depth:_+1,statics:b+Gh(l,g),dynamics:x,optionals:S,extract:E,rawParams:T})}if(h.pathless){const I=_+1;for(let P=h.pathless.length-1;P>=0;P--){const L=h.pathless[P];c.push({node:L,index:g,skipped:v,depth:I,statics:b,dynamics:x,optionals:S,extract:E,rawParams:T})}}}if(f)return f;if(r&&d){let p=d.index;for(let g=0;g<d.index;g++)p+=t[g].length;const h=p===e.length?"/":e.slice(p);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(h),d}return null}function Gh(e,t){return 2**(e-t-1)}function K8(e,t){return e===2**(t-1)-1}function B2(e,t,n){let r,o;try{[r,o]=xP(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=o,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Kh(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===oa)>(e.node.kind===oa)||t.node.kind===oa==(e.node.kind===oa)&&t.depth>e.depth))):!0}function hm(e){return Mw(e.filter(t=>t!==void 0).join("/"))}function Mw(e){return e.replace(/\/{2,}/g,"/")}function OP(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ls(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function TP(e){return ls(OP(e))}function Pm(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Z8(e,t,n){return Pm(e,n)===Pm(t,n)}function Y8({base:e,to:t,trailingSlash:n="never",cache:r}){const o=t.startsWith("/"),s=!o&&t===".";let l;if(r){l=o?t:s?e:e+"\0"+t;const f=r.get(l);if(f)return f}let c;if(s)c=e.split("/");else if(o)c=t.split("/");else{for(c=e.split("/");c.length>1&&qd(c)==="";)c.pop();const f=t.split("/");for(let p=0,h=f.length;p<h;p++){const g=f[p];g===""?p?p===h-1&&c.push(g):c=[g]:g===".."?c.pop():g==="."||c.push(g)}}c.length>1&&(qd(c)===""?n==="never"&&c.pop():n==="always"&&c.push(""));const d=Mw(c.join("/"))||"/";return l&&r&&r.set(l,d),d}function W8(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),n=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return o=>o.replace(r,s=>t.get(s)??s)}function Uy(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>q2(o,n)).join("/"):q2(r,n)}function V2({path:e,params:t,decoder:n,...r}){let o=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:o};const l=e.length;let c=0,d,f="";for(;c<l;){const p=c;d=EP(e,p,d);const h=d[5];if(c=h+1,p===h)continue;const g=d[0];if(g===0){f+="/"+e.substring(p,h);continue}if(g===2){const v=t._splat;s._splat=v,s["*"]=v;const _=e.substring(p,d[1]),b=e.substring(d[4],h);if(!v){o=!0,(_||b)&&(f+="/"+_+b);continue}const x=Uy("_splat",t,n);f+="/"+_+x+b;continue}if(g===1){const v=e.substring(d[2],d[3]);!o&&!(v in t)&&(o=!0),s[v]=t[v];const _=e.substring(p,d[1]),b=e.substring(d[4],h),x=Uy(v,t,n)??"undefined";f+="/"+_+x+b;continue}if(g===3){const v=e.substring(d[2],d[3]),_=t[v];if(_==null)continue;s[v]=_;const b=e.substring(p,d[1]),x=e.substring(d[4],h),S=Uy(v,t,n)??"";f+="/"+b+S+x;continue}}return e.endsWith("/")&&(f+="/"),{usedParams:s,interpolatedPath:f||"/",isMissingParams:o}}function q2(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Cr(e){return e?.isNotFound===!0}function Q8(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const X8="tsr-scroll-restoration-v1_3";function J8(){const e=Q8();if(!e)return null;let t={};try{const r=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");Bc(r)&&(t=r)}catch{}return{get state(){return t},set:r=>{t=ra(r,t)||t},persist:()=>{try{e.setItem(X8,JSON.stringify(t))}catch{}}}}const H2=J8(),e7=e=>e.state.__TSR_key||e.href;function t7(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Zh=!1;const Ju="window",G2="data-scroll-restoration-id";function n7(e,t){if(!H2)return;const n=H2;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,Zh=!1;const r=e.options.getScrollRestorationKey||e7,o=new Map;window.history.scrollRestoration="manual";const s=c=>{if(!(Zh||!e.isScrollRestoring))if(c.target===document||c.target===window)o.set(Ju,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const d=c.target;o.set(d,{scrollX:d.scrollLeft||0,scrollY:d.scrollTop||0})}},l=c=>{if(!e.isScrollRestoring||!c||o.size===0||!n)return;const d=n.state[c]||={};for(const[f,p]of o){let h;if(f===Ju)h=Ju;else if(f.isConnected){const g=f.getAttribute(G2);h=g?`[${G2}="${g}"]`:t7(f)}h&&(d[h]=p)}};document.addEventListener("scroll",s,!0),e.subscribe("onBeforeLoad",c=>{l(c.fromLocation?r(c.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{l(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe("onRendered",c=>{const d=r(c.toLocation),f=e.options.scrollRestorationBehavior,p=e.options.scrollToTopSelectors;if(o.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Zh=!0;try{const h=e.isScrollRestoring?n.state[d]:void 0;let g=!1;if(h)for(const v in h){const _=h[v];if(!Bc(_))continue;const{scrollX:b,scrollY:x}=_;if(!(!Number.isFinite(b)||!Number.isFinite(x))){if(v===Ju)window.scrollTo({top:x,left:b,behavior:f}),g=!0;else if(v){let S;try{S=document.querySelector(v)}catch{continue}S&&(S.scrollLeft=b,S.scrollTop=x,g=!0)}}}if(!g){const v=e.history.location.hash.slice(1);if(v){const _=window.history.state?.__hashScrollIntoViewOptions??!0;if(_){const b=document.getElementById(v);b&&b.scrollIntoView(_)}}else{const _={top:0,left:0,behavior:f};if(window.scrollTo(_),p)for(const b of p){if(b===Ju)continue;const x=typeof b=="function"?b():document.querySelector(b);x&&x.scrollTo(_)}}}}finally{Zh=!1}e.isScrollRestoring&&n.set(h=>(h[d]||={},h))}})}function r7(e,t=String){const n=new URLSearchParams;for(const r in e){const o=e[r];o!==void 0&&n.set(r,t(o))}return n.toString()}function Fy(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function o7(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,o]of t.entries()){const s=n[r];s==null?n[r]=Fy(o):Array.isArray(s)?s.push(Fy(o)):n[r]=[s,Fy(o)]}return n}const i7=a7(JSON.parse),s7=l7(JSON.stringify,JSON.parse);function a7(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=o7(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function l7(e,t){const n=typeof t=="function";function r(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const s=r7(o,r);return s?`?${s}`:""}}const il="__root__";function Xa(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Qr(e){return e instanceof Response&&!!e.options}function c7(e){return{input:({url:t})=>{for(const n of e)t=Nb(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=CP(e[n],t);return t}}}function u7(e){const t=TP(e.basepath),n=`/${t}`,r=`${n}/`,o=e.caseSensitive?n:n.toLowerCase(),s=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===o?l.pathname="/":c.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=hm(["/",t,l.pathname]),l)}}function Nb(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function CP(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function d7(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:o,init:s}=t,l=new Map,c=new Map,d=new Map,f=n(e.status),p=n(e.loadedAt),h=n(e.isLoading),g=n(e.isTransitioning),v=n(e.location),_=n(e.resolvedLocation),b=n(e.statusCode),x=n(e.redirect),S=n([]),E=n([]),T=n([]),R=r(()=>By(l,S.get())),O=r(()=>By(c,E.get())),A=r(()=>By(d,T.get())),I=r(()=>S.get()[0]),P=r(()=>S.get().some(W=>l.get(W)?.get().status==="pending")),L=r(()=>({locationHref:v.get().href,resolvedLocationHref:_.get()?.href,status:f.get()})),q=r(()=>({status:f.get(),loadedAt:p.get(),isLoading:h.get(),isTransitioning:g.get(),matches:R.get(),location:v.get(),resolvedLocation:_.get(),statusCode:b.get(),redirect:x.get()})),j=Gd(64);function B(W){let te=j.get(W);return te||(te=r(()=>{const le=S.get();for(const Q of le){const k=l.get(Q);if(k&&k.routeId===W)return k.get()}}),j.set(W,te)),te}const F={status:f,loadedAt:p,isLoading:h,isTransitioning:g,location:v,resolvedLocation:_,statusCode:b,redirect:x,matchesId:S,pendingIds:E,cachedIds:T,matches:R,pendingMatches:O,cachedMatches:A,firstId:I,hasPending:P,matchRouteDeps:L,matchStores:l,pendingMatchStores:c,cachedMatchStores:d,__store:q,getRouteMatchStore:B,setMatches:Z,setPending:ie,setCached:H};Z(e.matches),s?.(F);function Z(W){Vy(W,l,S,n,o)}function ie(W){Vy(W,c,E,n,o)}function H(W){Vy(W,d,T,n,o)}return F}function By(e,t){const n=[];for(const r of t){const o=e.get(r);o&&n.push(o.get())}return n}function Vy(e,t,n,r,o){const s=e.map(c=>c.id),l=new Set(s);o(()=>{for(const c of t.keys())l.has(c)||t.delete(c);for(const c of e){const d=t.get(c.id);if(!d){const f=r(c);f.routeId=c.routeId,t.set(c.id,f);continue}d.routeId=c.routeId,d.get()!==c&&d.set(c)}$8(n.get(),s)||n.set(s)})}const kb=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},f7=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ig=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),sl=(e,t,n=!0)=>{const r={...e.router.options.context??{}},o=n?t:t-1;for(let s=0;s<=o;s++){const l=e.matches[s];if(!l)continue;const c=e.router.getMatch(l.id);c&&Object.assign(r,c.__routeContext,c.__beforeLoadContext)}return r},K2=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),o=r>=0?r:0;let s=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=o);for(let l=s;l>=0;l--){const c=e.matches[l];if(e.router.looseRoutesById[c.routeId].options.notFoundComponent)return l}return n?s:o},ia=(e,t,n)=>{if(!(!Qr(n)&&!Cr(n)))throw Qr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Qr(n)?"redirected":Cr(n)?"notFound":r.status==="pending"?"success":r.status,context:sl(e,t.index),isFetching:!1,error:n})),Cr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Qr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},AP=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Z2=(e,t,n)=>{const r=sl(e,n);e.updateMatch(t,o=>({...o,context:r}))},ed=(e,t,n,r)=>{const{id:o,routeId:s}=e.matches[t],l=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,ia(e,e.router.getMatch(o),n);try{l.options.onError?.(n)}catch(c){n=c,ia(e,e.router.getMatch(o),n)}e.updateMatch(o,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Qr(n)&&!Cr(n)&&(e.serialError??=n)},IP=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const o=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ig(e,t)&&(n.options.loader||n.options.beforeLoad||PP(n))&&typeof o=="number"&&o!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{kb(e)},o);r._nonReactive.pendingTimeout=s}},h7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;IP(e,t,n,r);const o=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&ia(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},p7=(e,t,n,r)=>{const o=e.router.getMatch(t);let s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Vc(()=>{s?.resolve(),s=void 0});const{paramsError:l,searchError:c}=o;l&&ed(e,n,l,"PARSE_PARAMS"),c&&ed(e,n,c,"VALIDATE_SEARCH"),IP(e,t,r,o);const d=new AbortController;let f=!1;const p=()=>{f||(f=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:d})))},h=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,R=>({...R,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{p(),h()});return}o._nonReactive.beforeLoadPromise=Vc();const g={...sl(e,n,!1),...o.__routeContext},{search:v,params:_,cause:b}=o,x=Ig(e,t),S={search:v,abortController:d,params:_,preload:x,context:g,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":b,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},E=R=>{if(R===void 0){e.router.batch(()=>{p(),h()});return}(Qr(R)||Cr(R))&&(p(),ed(e,n,R,"BEFORE_LOAD")),e.router.batch(()=>{p(),e.updateMatch(t,O=>({...O,__beforeLoadContext:R})),h()})};let T;try{if(T=r.options.beforeLoad(S),Hd(T))return p(),T.catch(R=>{ed(e,n,R,"BEFORE_LOAD")}).then(E)}catch(R){p(),ed(e,n,R,"BEFORE_LOAD")}E(T)},m7=(e,t)=>{const{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r],s=()=>c(),l=()=>p7(e,n,t,o),c=()=>{if(AP(e,n))return;const d=h7(e,n,o);return Hd(d)?d.then(l):l()};return s()},g7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(o),n.options.scripts?.(o),n.options.headers?.(o)]).then(([s,l,c])=>({meta:s?.meta,links:s?.links,headScripts:s?.scripts,headers:c,scripts:l,styles:s?.styles}))},MP=(e,t,n,r,o)=>{const s=t[r-1],{params:l,loaderDeps:c,abortController:d,cause:f}=e.router.getMatch(n),p=sl(e,r),h=Ig(e,n);return{params:l,deps:c,preload:!!h,parentMatchPromise:s,abortController:d,context:p,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:h?"preload":f,route:o,...e.router.options.additionalContext}},Y2=async(e,t,n,r,o)=>{try{const s=e.router.getMatch(n);try{(!(_P??e.router.isServer)||s.ssr===!0)&&Kd(o);const l=o.options.loader,c=typeof l=="function"?l:l?.handler,d=c?.(MP(e,t,n,r,o)),f=!!c&&Hd(d);if((f||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,h=>({...h,isFetching:"loader"})),c){const h=f?await d:d;ia(e,e.router.getMatch(n),h),h!==void 0&&e.updateMatch(n,g=>({...g,loaderData:h}))}o._lazyPromise&&await o._lazyPromise;const p=s._nonReactive.minPendingPromise;p&&await p,o._componentsPromise&&await o._componentsPromise,e.updateMatch(n,h=>({...h,error:void 0,context:sl(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:sl(e,r)}));return}const d=s._nonReactive.minPendingPromise;d&&await d,Cr(l)&&await o.options.notFoundComponent?.preload?.(),ia(e,e.router.getMatch(n),l);try{o.options.onError?.(l)}catch(f){c=f,ia(e,e.router.getMatch(n),f)}!Qr(c)&&!Cr(c)&&await Kd(o,["errorComponent"]),e.updateMatch(n,f=>({...f,error:c,context:sl(e,r),status:"error",isFetching:!1}))}}catch(s){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),ia(e,l,s)}},v7=async(e,t,n)=>{async function r(v,_,b,x,S){const E=Date.now()-_.updatedAt,T=v?S.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:S.options.staleTime??e.router.options.defaultStaleTime??0,R=S.options.shouldReload,O=typeof R=="function"?R(MP(e,t,o,n,S)):R,{status:A,invalid:I}=x,P=E>=T&&(!!e.forceStaleReload||x.cause==="enter"||b!==void 0&&b!==x.id);l=A==="success"&&(I||(O??P)),v&&S.options.preload===!1||(l&&!e.sync&&p?(c=!0,(async()=>{try{await Y2(e,t,o,n,S);const L=e.router.getMatch(o);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0,L._nonReactive.loadPromise=void 0}catch(L){Qr(L)&&await e.router.navigate(L.options)}})()):A!=="success"||l?await Y2(e,t,o,n,S):Z2(e,o,n))}const{id:o,routeId:s}=e.matches[n];let l=!1,c=!1;const d=e.router.looseRoutesById[s],f=d.options.loader,p=((typeof f=="function"?void 0:f?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(AP(e,o)){if(!e.router.getMatch(o))return e.matches[n];Z2(e,o,n)}else{const v=e.router.getMatch(o),_=e.router.stores.matchesId.get()[n],b=(_&&e.router.stores.matchStores.get(_)||null)?.routeId===s?_:e.router.stores.matches.get().find(S=>S.routeId===s)?.id,x=Ig(e,o);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload&&p)return v;await v._nonReactive.loaderPromise;const S=e.router.getMatch(o),E=S._nonReactive.error||S.error;E&&ia(e,S,E),S.status==="pending"&&await r(x,v,b,S,d)}else{const S=x&&!e.router.stores.matchStores.has(o),E=e.router.getMatch(o);E._nonReactive.loaderPromise=Vc(),S!==E.preload&&e.updateMatch(o,T=>({...T,preload:S})),await r(x,v,b,E,d)}}const h=e.router.getMatch(o);c||(h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loadPromise?.resolve(),h._nonReactive.loadPromise=void 0),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,c||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const g=c?h.isFetching:!1;return g!==h.isFetching||h.invalid!==!1?(e.updateMatch(o,v=>({...v,isFetching:g,invalid:!1})),e.router.getMatch(o)):h};async function W2(e){const t=e,n=[];f7(t.router)&&kb(t);let r;for(let g=0;g<t.matches.length;g++){try{const v=m7(t,g);Hd(v)&&await v}catch(v){if(Qr(v))throw v;if(Cr(v))r=v;else if(!t.preload)throw v;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?K2(t,r):void 0,l=r&&t.preload?0:s!==void 0?Math.min(s+1,o):o;let c,d;for(let g=0;g<l;g++)n.push(v7(t,n,g));try{await Promise.all(n)}catch{const g=await Promise.allSettled(n);for(const v of g){if(v.status!=="rejected")continue;const _=v.reason;if(Qr(_))throw _;Cr(_)?c??=_:d??=_}if(d!==void 0)throw d}const f=c??(r&&!t.preload?r:void 0);let p=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!f&&r&&t.preload)return t.matches;if(f){const g=K2(t,f);g===void 0&&ds();const v=t.matches[g],_=t.router.looseRoutesById[v.routeId],b=t.router.options?.defaultNotFoundComponent;!_.options.notFoundComponent&&b&&(_.options.notFoundComponent=b),f.routeId=v.routeId;const x=v.routeId===t.router.routeTree.id;t.updateMatch(v.id,S=>({...S,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),p=g,await Kd(_,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Kd(g,["errorComponent"])}for(let g=0;g<=p;g++){const{id:v,routeId:_}=t.matches[g],b=t.router.looseRoutesById[_];try{const x=g7(t,v,b);if(x){const S=await x;t.updateMatch(v,E=>({...E,...S}))}}catch(x){console.error(`Error executing head for route ${_}:`,x)}}const h=kb(t);if(Hd(h)&&await h,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Q2(e,t){const n=t.map(r=>e.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Kd(e,t=pm){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:o,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===pm?(()=>{if(e._componentsPromise===void 0){const r=Q2(e,pm);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Q2(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function PP(e){for(const t of pm)if(e.options[t]?.preload)return!0;return!1}const pm=["component","errorComponent","pendingComponent","notFoundComponent"];var aa="__TSR_index",X2="popstate",J2="beforeunload";function y7(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:l}))},o=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},s=async({task:l,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){l();return}const f=e.getBlockers?.()??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&f.length&&p)for(const h of f){const g=Nm(d.path,d.state);if(await h.blockerFn({currentLocation:t,nextLocation:g,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,c,d)=>{const f=t.state[aa];c=eT(f+1,c),s({task:()=>{e.pushState(l,c),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:c})},replace:(l,c,d)=>{const f=t.state[aa];c=eT(f,c),s({task:()=>{e.replaceState(l,c),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:c})},go:(l,c)=>{s({task:()=>{e.go(l),o({type:"GO",index:l})},navigateOpts:c,type:"GO"})},back:l=>{s({task:()=>{e.back(l?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{s({task:()=>{e.forward(l?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[aa]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(f=>f!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function eT(e,t){t||(t={});const n=Pw();return{...t,key:n,__TSR_key:n,[aa]:e}}function _7(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let o=[];const s=()=>o,l=P=>o=P,c=(P=>P),d=(()=>Nm(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=Pw();t.history.replaceState({[aa]:0,key:P,__TSR_key:P},"")}let f=d(),p,h=!1,g=!1,v=!1,_=!1;const b=()=>f;let x,S;const E=()=>{x&&(I._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),I._ignoreSubscribers=!1,x=void 0,S=void 0,p=void 0)},T=(P,L,q)=>{const j=c(L);S||(p=f),f=Nm(L,q),x={href:j,state:q,isPush:x?.isPush||P==="push"},S||(S=Promise.resolve().then(()=>E()))},R=P=>{f=d(),I.notify({type:P})},O=async()=>{if(g){g=!1;return}const P=d(),L=P.state[aa]-f.state[aa],q=L===1,j=L===-1,B=!q&&!j||h;h=!1;const F=B?"GO":j?"BACK":"FORWARD",Z=B?{type:"GO",index:L}:{type:j?"BACK":"FORWARD"};if(v)v=!1;else{const ie=s();if(typeof document<"u"&&ie.length){for(const H of ie)if(await H.blockerFn({currentLocation:f,nextLocation:P,action:F})){g=!0,t.history.go(1),I.notify(Z);return}}}f=d(),I.notify(Z)},A=P=>{if(_){_=!1;return}let L=!1;const q=s();if(typeof document<"u"&&q.length)for(const j of q){const B=j.enableBeforeUnload??!0;if(B===!0){L=!0;break}if(typeof B=="function"&&B()===!0){L=!0;break}}if(L)return P.preventDefault(),P.returnValue=""},I=y7({getLocation:b,getLength:()=>t.history.length,pushState:(P,L)=>T("push",P,L),replaceState:(P,L)=>T("replace",P,L),back:P=>(P&&(v=!0),_=!0,t.history.back()),forward:P=>{P&&(v=!0),_=!0,t.history.forward()},go:P=>{h=!0,t.history.go(P)},createHref:P=>c(P),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(J2,A,{capture:!0}),t.removeEventListener(X2,O)},onBlocked:()=>{p&&f!==p&&(f=p)},getBlockers:s,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(J2,A,{capture:!0}),t.addEventListener(X2,O),t.history.pushState=function(...P){const L=n.apply(t.history,P);return I._ignoreSubscribers||R("PUSH"),L},t.history.replaceState=function(...P){const L=r.apply(t.history,P);return I._ignoreSubscribers||R("REPLACE"),L},I}function b7(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Nm(e,t){const n=b7(e),r=n.indexOf("#"),o=n.indexOf("?"),s=Pw();return{href:n,pathname:n.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:n.length),hash:r>-1?n.substring(r):"",search:o>-1?n.slice(o,r===-1?void 0:r):"",state:t||{[aa]:0,key:s,__TSR_key:s}}}function Pw(){return(Math.random()+1).toString(36).substring(7)}function Nc(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var w7=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const r=this.options,o=this.basepath??r?.basepath??"/",s=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=W8(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=_7()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let p;this.resolvePathCache=Gd(1e3),p=this.buildRouteTree(),this.setRoutes(p)}if(!this.stores&&this.latestLocation){const p=this.getStoreConfig(this);this.batch=p.batch,this.stores=d7(E7(this.latestLocation),p),n7(this)}let c=!1;const d=this.options.basepath??"/",f=this.options.rewrite;if(s||o!==d||l!==f){this.basepath=d;const p=[],h=TP(d);h&&h!=="/"&&p.push(u7({basepath:d})),f&&p.push(f),this.rewrite=p.length===0?void 0:p.length===1?p[0]:c7(p),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=q8(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&z8(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const o=({pathname:d,search:f,hash:p,href:h,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const S=this.options.parseSearch(f),E=this.options.stringifySearch(S);return{href:d+E+p,publicHref:d+E+p,pathname:Xu(d).path,external:!1,searchStr:E,search:za(r?.search,S),hash:Xu(p.slice(1)).path,state:el(r?.state,g)}}const v=new URL(h,this.origin),_=Nb(this.rewrite,v),b=this.options.parseSearch(_.search),x=this.options.stringifySearch(b);return _.search=x,{href:_.href.replace(_.origin,""),publicHref:h,pathname:Xu(_.pathname).path,external:!!this.rewrite&&_.origin!==this.origin,searchStr:x,search:za(r?.search,b),hash:Xu(_.hash.slice(1)).path,state:el(r?.state,g)}},s=o(n),{__tempLocation:l,__tempKey:c}=s.state;if(l&&(!c||c===this.tempLocationKey)){const d=o(l);return d.state.key=s.state.key,d.state.__TSR_key=s.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>Y8({base:n,to:r.includes("//")?Mw(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},o):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>x7({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const r=this.stores.matchStores.get(n)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{const l=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(l);s.from;const d=s.unsafeRelative==="path"?l.pathname:s.from??c.fullPath,f=s.to?`${s.to}`:void 0,p=c.search,h=Object.assign(Object.create(null),c.params),g=f?.charCodeAt(0)===47?"/":this.resolvePathWithBase(d,"."),v=f?this.resolvePathWithBase(g,f):g,_=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?h:Object.assign(h,ra(s.params,h)),b=this.routesByPath[ls(v)];let x;if(b)x=this.getRouteBranch(b);else if(v.includes("$"))x=[];else{const j=this.getMatchedRoutes(v);x=j.matchedRoutes,this.options.notFoundRoute&&(!j.foundRoute||j.foundRoute.path!=="/"&&j.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&wP(_))for(const j of x){const B=j.options.params?.stringify??j.options.stringifyParams;if(B)try{Object.assign(_,B(_))}catch{}}const S=n.leaveParams?v:Xu(V2({path:v,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let E=p;if(n._includeValidateSearch&&this.options.search?.strict){const j={};x.forEach(B=>{if(B.options.validateSearch)try{Object.assign(j,mm(B.options.validateSearch,{...j,...E}))}catch{}}),E=j}E=R7({search:E,dest:s,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),E=za(p,E);const T=this.options.stringifySearch(E),R=s.hash===!0?l.hash:s.hash?ra(s.hash,l.hash):void 0,O=R?`#${R}`:"";let A=s.state===!0?l.state:s.state?ra(s.state,l.state):{};A=el(l.state,A);const I=`${S}${T}${O}`;let P,L,q=!1;if(this.rewrite){const j=new URL(I,this.origin),B=CP(this.rewrite,j);P=j.href.replace(j.origin,""),B.origin!==this.origin?(L=B.href,q=!0):L=B.pathname+B.search+B.hash}else P=L8(I),L=P;return{publicHref:L,href:P,pathname:S,search:E,searchStr:T,state:A,hash:R??"",external:q,unmaskOnReload:s.unmaskOnReload}},o=(s={},l)=>{const c=r(s);let d=l?r(l):void 0;if(!d){const f=Object.create(null);if(this.options.routeMasks){const p=U8(c.pathname,this.processedTree);if(p){Object.assign(f,p.rawParams);const{from:h,params:g,...v}=p.route,_=g===!1||g===null?Object.create(null):(g??!0)===!0?f:Object.assign(f,ra(g,f));l={from:n.from,...v,params:_},d=r(l)}}}return d&&(c.maskedLocation=d),c};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...o})=>{const s=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(p=>{o.state[p]=this.latestLocation.state[p]});const f=ol(o.state,this.latestLocation.state);return d.forEach(p=>{delete o.state[p]}),f},l=ls(this.latestLocation.href)===ls(o.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=Vc(()=>{c?.resolve(),c=void 0}),l&&s())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...p}=o;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:o,viewTransition:s,ignoreBlocker:l,href:c,...d}={})=>{if(c){const h=this.history.location.state.__TSR_index,g=Nm(c,{__TSR_index:n?h:h+1}),v=new URL(g.pathname,this.origin);d.to=Nb(this.rewrite,v).pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const f=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const p=this.commitLocation({...f,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:r,href:o,publicHref:s,...l})=>{let c=!1;if(o)try{new URL(`${o}`),c=!0}catch{}if(c&&!r&&(r=!0),r){if(n!==void 0||!o){const f=this.buildLocation({to:n,...l});o=o??f.publicHref,s=s??f.publicHref}const d=!c&&s?s:o;if(Mm(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const p of f)if(p?.blockerFn&&await p.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(o=>!n.some(s=>s.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(r)})},this.load=async n=>{let r,o,s;const l=this.stores.resolvedLocation.get()??this.stores.location.get();for(s=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const f=this.latestLocation,p=Nc(f,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...p}),this.emit({type:"onBeforeLoad",...p}),await W2({router:this,sync:n?.sync,forceStaleReload:l.href===f.href,matches:this.stores.pendingMatches.get(),location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let h=null,g=null,v=null,_=null;this.batch(()=>{const b=this.stores.pendingMatches.get(),x=b.length,S=this.stores.matches.get();h=x?S.filter(R=>!this.stores.pendingMatchStores.has(R.id)):null;const E=new Set;for(const R of this.stores.pendingMatchStores.values())R.routeId&&E.add(R.routeId);const T=new Set;for(const R of this.stores.matchStores.values())R.routeId&&T.add(R.routeId);g=x?S.filter(R=>!E.has(R.routeId)):null,v=x?b.filter(R=>!T.has(R.routeId)):null,_=x?b.filter(R=>T.has(R.routeId)):S,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(b),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...h.filter(R=>R.status!=="error"&&R.status!=="notFound"&&R.status!=="redirected")]),this.clearExpiredCache())});for(const[b,x]of[[g,"onLeave"],[v,"onEnter"],[_,"onStay"]])if(b)for(const S of b)this.looseRoutesById[S.routeId].options[x]?.(S)})})}})}catch(f){Qr(f)?(r=f,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Cr(f)&&(o=f);const p=r?r.status:o?404:this.stores.matches.get().some(h=>h.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(p),this.stores.redirect.set(r)})}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(d=>d.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,l=this.stores.resolvedLocation.get(),c=typeof r.types=="function"?r.types(Nc(s,l)):r.types;if(c===!1){n();return}o={update:n,types:c}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(n);if(o){o.set(r);return}const s=this.stores.matchStores.get(n);if(s){s.set(r);return}const l=this.stores.cachedMatchStores.get(n);if(l){const c=r(l.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(d=>d.filter(f=>f!==n)):l.set(c)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const r=o=>n?.filter?.(o)??!0?{...o,invalid:!0,...n?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const o=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(o);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const s=o.pathname+o.search+o.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&Mm(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!r(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),r=o=>{const s=this.looseRoutesById[o.routeId];if(!s.options.loader)return!0;const l=(o.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:n-o.updatedAt>=l};this.clearCache({filter:r})},this.loadRouteChunk=Kd,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...s,...this.stores.cachedIds.get()]),c=o.filter(d=>!l.has(d.id));if(c.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...c])}try{return o=await W2({router:this,matches:o,location:r,preload:!0,updateMatch:(d,f)=>{s.has(d)?o=o.map(p=>p.id===d?f(p):p):this.updateMatch(d,f)}}),o}catch(d){if(Qr(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:r});Cr(d)||console.error(d);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(o);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const l=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=F8(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,l.pathname,this.processedTree);return!c||n.params&&!ol(c.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?ol(l.search,s.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??s7,parseSearch:e.parseSearch??i7,protocolAllowlist:e.protocolAllowlist??D8}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=RP(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:o}=n;let{matchedRoutes:s}=n,l=!1;(r?r.path!=="/"&&o["**"]:ls(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:l=!0);const c=l?T7(this.options.notFoundMode,s):void 0,d=new Array(s.length),f=new Map;for(const p of this.stores.matchStores.values())p.routeId&&f.set(p.routeId,p.get());for(let p=0;p<s.length;p++){const h=s[p],g=d[p-1];let v,_,b;{const B=g?.search??e.search,F=g?._strictSearch??void 0;try{const Z=mm(h.options.validateSearch,{...B})??void 0;v={...B,...Z},_={...F,...Z},b=void 0}catch(Z){let ie=Z;if(Z instanceof km||(ie=new km(Z.message,{cause:Z})),t?.throwOnError)throw ie;v=B,_={},b=ie}}const x=h.options.loaderDeps?.({search:v})??"",S=x?JSON.stringify(x):"",{interpolatedPath:E,usedParams:T}=V2({path:h.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),R=h.id+E+S,O=this.getMatch(R),A=f.get(h.id),I=O?._strictParams??T;let P;if(!O)try{tT(h,I)}catch(B){if(Cr(B)||Qr(B)?P=B:P=new S7(B.message,{cause:B}),t?.throwOnError)throw P}Object.assign(o,I);const L=A?"stay":"enter";let q;if(O)q={...O,cause:L,params:A?.params??o,_strictParams:I,search:za(A?A.search:O.search,v),_strictSearch:_};else{const B=h.options.loader||h.options.beforeLoad||h.lazyFn||PP(h)?"pending":"success";q={id:R,ssr:h.options.ssr,index:p,routeId:h.id,params:A?.params??o,_strictParams:I,pathname:E,updatedAt:Date.now(),search:A?za(A.search,v):v,_strictSearch:_,searchError:void 0,status:B,isFetching:!1,error:void 0,paramsError:P,__routeContext:void 0,_nonReactive:{loadPromise:Vc()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:A?el(A.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},fullPath:h.fullPath}}t?.preload||(q.globalNotFound=c===h.id),q.searchError=b;const j=this.getParentContext(g);q.context={...j,...q.__routeContext,...q.__beforeLoadContext},d[p]=q}for(let p=0;p<d.length;p++){const h=d[p],g=this.looseRoutesById[h.routeId],v=this.getMatch(h.id),_=f.get(h.routeId);if(h.params=_?za(_.params,o):o,!v){const b=d[p-1],x=this.getParentContext(b);if(g.options.context){const S={deps:h.loaderDeps,params:h.params,context:x??{},location:e,navigate:E=>this.navigate({...E,_fromLocation:e}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:d,routeId:g.id};h.__routeContext=g.options.context(S)??void 0}h.context={...x,...h.__routeContext,...h.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=qd(t),o={...e.search};for(const f of t)try{Object.assign(o,mm(f.options.validateSearch,o))}catch{}const s=qd(this.stores.matchesId.get()),l=s&&this.stores.matchStores.get(s)?.get(),c=l&&l.routeId===r.id&&l.pathname===e.pathname;let d;if(c)d=l.params;else{const f=Object.assign(Object.create(null),n);for(const p of t)try{tT(p,f)}catch{}d=f}return{matchedRoutes:t,fullPath:r.fullPath,search:o,params:d}}},km=class extends Error{},S7=class extends Error{};function E7(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function mm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new km("Async validation not supported");if(n.issues)throw new km(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function x7({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),o=ls(e);let s;const l=B8(o,n,!0);return l&&(s=l.route,Object.assign(r,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:r,foundRoute:s}}function R7({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return O7(n)(e,t,r??!1)}function O7(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const o of e){if("search"in o.options)o.options.search?.middlewares&&t.middlewares.push(...o.options.search.middlewares);else if(o.options.preSearchFilters||o.options.postSearchFilters){const s=({search:l,next:c})=>{let d=l;"preSearchFilters"in o.options&&o.options.preSearchFilters&&(d=o.options.preSearchFilters.reduce((p,h)=>h(p),l));const f=c(d);return"postSearchFilters"in o.options&&o.options.postSearchFilters?o.options.postSearchFilters.reduce((p,h)=>h(p),f):f};t.middlewares.push(s)}if(o.options.validateSearch){const s=({search:l,next:c})=>{const d=c(l);if(!t._includeValidateSearch)return d;try{return{...d,...mm(o.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(s)}}const n=({search:o})=>{const s=t.dest;return s.search?s.search===!0?o:ra(s.search,o):{}};t.middlewares.push(n);const r=(o,s,l)=>{if(o>=l.length)return s;const c=l[o];return c({search:s,next:f=>r(o+1,f,l)})};return function(s,l,c){return t.dest=l,t._includeValidateSearch=c,r(0,s,t.middlewares)}}function T7(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return il}function tT(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const r=n(t);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,r)}}const C7="Error preloading route! ☝️";var NP=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=il:this.parentRoute||ds();let o=r?il:n?.path;o&&o!=="/"&&(o=OP(o));const s=n?.id||o;let l=r?il:hm([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);o==="__root__"&&(o="/"),l!=="__root__"&&(l=hm(["/",l]));const c=l==="__root__"?"/":hm([this.parentRoute.fullPath,o]);this._path=o,this._id=l,this._fullPath=c,this._to=ls(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Xa({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},A7=class extends NP{constructor(e){super(e)}};function I7(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==""){const r=document.getElementById(t.hash);r&&r.scrollIntoView(n)}}}function Nw(e){const t=e.errorComponent??kw;return C.jsx(M7,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}var M7=class extends M.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function kw({error:e}){const[t,n]=M.useState(!1);return C.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[C.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),C.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),C.jsx("div",{style:{height:".25rem"}}),t?C.jsx("div",{children:C.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?C.jsx("code",{children:e.message}):null})}):null]})}function P7({children:e,fallback:t=null}){return kP()?C.jsx(ee.Fragment,{children:e}):C.jsx(ee.Fragment,{children:t})}function kP(){return ee.useSyncExternalStore(N7,()=>!0,()=>!1)}function N7(){return()=>{}}var DP=M.createContext(null);function bo(e){return M.useContext(DP)}var Mg=M.createContext(void 0),k7=M.createContext(void 0),pn=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(pn||{});function D7({update:e,notify:t,unwatched:n}){return{link:r,unlink:o,propagate:s,checkDirty:l,shallowPropagate:c};function r(f,p,h){const g=p.depsTail;if(g!==void 0&&g.dep===f)return;const v=g!==void 0?g.nextDep:p.deps;if(v!==void 0&&v.dep===f){v.version=h,p.depsTail=v;return}const _=f.subsTail;if(_!==void 0&&_.version===h&&_.sub===p)return;const b=p.depsTail=f.subsTail={version:h,dep:f,sub:p,prevDep:g,nextDep:v,prevSub:_,nextSub:void 0};v!==void 0&&(v.prevDep=b),g!==void 0?g.nextDep=b:p.deps=b,_!==void 0?_.nextSub=b:f.subs=b}function o(f,p=f.sub){const h=f.dep,g=f.prevDep,v=f.nextDep,_=f.nextSub,b=f.prevSub;return v!==void 0?v.prevDep=g:p.depsTail=g,g!==void 0?g.nextDep=v:p.deps=v,_!==void 0?_.prevSub=b:h.subsTail=b,b!==void 0?b.nextSub=_:(h.subs=_)===void 0&&n(h),v}function s(f){let p=f.nextSub,h;e:do{const g=f.sub;let v=g.flags;if(v&60?v&12?v&4?!(v&48)&&d(f,g)?(g.flags=v|40,v&=1):v=0:g.flags=v&-9|32:v=0:g.flags=v|32,v&2&&t(g),v&1){const _=g.subs;if(_!==void 0){const b=(f=_).nextSub;b!==void 0&&(h={value:p,prev:h},p=b);continue}}if((f=p)!==void 0){p=f.nextSub;continue}for(;h!==void 0;)if(f=h.value,h=h.prev,f!==void 0){p=f.nextSub;continue e}break}while(!0)}function l(f,p){let h,g=0,v=!1;e:do{const _=f.dep,b=_.flags;if(p.flags&16)v=!0;else if((b&17)===17){if(e(_)){const x=_.subs;x.nextSub!==void 0&&c(x),v=!0}}else if((b&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(h={value:f,prev:h}),f=_.deps,p=_,++g;continue}if(!v){const x=f.nextDep;if(x!==void 0){f=x;continue}}for(;g--;){const x=p.subs,S=x.nextSub!==void 0;if(S?(f=h.value,h=h.prev):f=x,v){if(e(p)){S&&c(x),p=f.sub;continue}v=!1}else p.flags&=-33;p=f.sub;const E=f.nextDep;if(E!==void 0){f=E;continue e}}return v}while(!0)}function c(f){do{const p=f.sub,h=p.flags;(h&48)===32&&(p.flags=h|16,(h&6)===2&&t(p))}while((f=f.nextSub)!==void 0)}function d(f,p){let h=p.depsTail;for(;h!==void 0;){if(h===f)return!0;h=h.prevDep}return!1}}function L7(e,t,n){const r=typeof e=="object",o=r?e:void 0;return{next:(r?e.next:e)?.bind(o),error:(r?e.error:t)?.bind(o),complete:(r?e.complete:n)?.bind(o)}}const Db=[];let gm=0;const{link:nT,unlink:$7,propagate:j7,checkDirty:LP,shallowPropagate:rT}=D7({update(e){return e._update()},notify(e){Db[Lb++]=e,e.flags&=~pn.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=pn.Mutable|pn.Dirty,Dm(e))}});let Yh=0,Lb=0,gi,$b=0;function $P(e){try{++$b,e()}finally{--$b||jP()}}function Dm(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=$7(n,e)}function jP(){if(!($b>0)){for(;Yh<Lb;){const e=Db[Yh];Db[Yh++]=void 0,e.notify()}Yh=0,Lb=0}}function oT(e,t){const n=typeof e=="function",r=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?pn.None:pn.Mutable,get(){return gi!==void 0&&nT(o,gi,gm),o._snapshot},subscribe(s){const l=L7(s),c={current:!1},d=z7(()=>{o.get(),c.current?l.next?.(o._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(s){const l=gi,c=t?.compare??Object.is;if(n)gi=o,++gm,o.depsTail=void 0;else if(s===void 0)return!1;n&&(o.flags=pn.Mutable|pn.RecursedCheck);try{const d=o._snapshot,f=typeof s=="function"?s(d):s===void 0&&n?r(d):s;return d===void 0||!c(d,f)?(o._snapshot=f,!0):!1}finally{gi=l,n&&(o.flags&=~pn.RecursedCheck),Dm(o)}}};return n?(o.flags=pn.Mutable|pn.Dirty,o.get=function(){const s=o.flags;if(s&pn.Dirty||s&pn.Pending&&LP(o.deps,o)){if(o._update()){const l=o.subs;l!==void 0&&rT(l)}}else s&pn.Pending&&(o.flags=s&~pn.Pending);return gi!==void 0&&nT(o,gi,gm),o._snapshot}):o.set=function(s){if(o._update(s)){const l=o.subs;l!==void 0&&(j7(l),rT(l),jP())}},o}function z7(e){const t=()=>{const r=gi;gi=n,++gm,n.depsTail=void 0,n.flags=pn.Watching|pn.RecursedCheck;try{return e()}finally{gi=r,n.flags&=~pn.RecursedCheck,Dm(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:pn.Watching|pn.RecursedCheck,notify(){const r=this.flags;r&pn.Dirty||r&pn.Pending&&LP(this.deps,this)?t():this.flags=pn.Watching},stop(){this.flags=pn.None,this.depsTail=void 0,Dm(this)}};return t(),n}var qy={exports:{}},Hy={},Gy={exports:{}},Ky={};var iT;function U7(){if(iT)return Ky;iT=1;var e=ma();function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(h,g){var v=g(),_=r({inst:{value:v,getSnapshot:g}}),b=_[0].inst,x=_[1];return s(function(){b.value=v,b.getSnapshot=g,d(b)&&x({inst:b})},[h,v,g]),o(function(){return d(b)&&x({inst:b}),h(function(){d(b)&&x({inst:b})})},[h]),l(v),v}function d(h){var g=h.getSnapshot;h=h.value;try{var v=g();return!n(h,v)}catch{return!0}}function f(h,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return Ky.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Ky}var sT;function zP(){return sT||(sT=1,Gy.exports=U7()),Gy.exports}var aT;function F7(){if(aT)return Hy;aT=1;var e=ma(),t=zP();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,c=e.useMemo,d=e.useDebugValue;return Hy.useSyncExternalStoreWithSelector=function(f,p,h,g,v){var _=s(null);if(_.current===null){var b={hasValue:!1,value:null};_.current=b}else b=_.current;_=c(function(){function S(A){if(!E){if(E=!0,T=A,A=g(A),v!==void 0&&b.hasValue){var I=b.value;if(v(I,A))return R=I}return R=A}if(I=R,r(T,A))return I;var P=g(A);return v!==void 0&&v(I,P)?(T=A,I):(T=A,R=P)}var E=!1,T,R,O=h===void 0?null:h;return[function(){return S(p())},O===null?void 0:function(){return S(O())}]},[p,h,g,v]);var x=o(f,_[0],_[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),d(x),x},Hy}var lT;function B7(){return lT||(lT=1,qy.exports=F7()),qy.exports}var V7=B7();function q7(e,t){return e===t}function _o(e,t,n=q7){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(l);return c},[e]),o=M.useCallback(()=>e?.get(),[e]);return V7.useSyncExternalStoreWithSelector(r,o,o,t,n)}var H7={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function hl(e){const t=bo(),n=M.useContext(e.from?k7:Mg),r=e.from??n,o=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,s=M.useRef(void 0);return _o(o??H7,l=>{if((e.shouldThrow??!0)&&!l&&ds(),l===void 0)return;const c=e.select?e.select(l):l;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=el(s.current,c);return s.current=d,d}return c})}function UP(e){return hl({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function FP(e){const{select:t,...n}=e;return hl({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function Dw(e){return hl({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function BP(e){return hl({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Pg(e){const t=bo();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Sce(e){const t=bo(),n=Pg(),r=M.useRef(null);return Oc(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function VP(e){return hl({...e,select:t=>e.select?e.select(t.context):t.context})}var Ng=XM();const qP=fl(Ng);function G7(e,t){const n=bo(),r=I8(t),{activeProps:o,inactiveProps:s,activeOptions:l,to:c,preload:d,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:h,replace:g,startTransition:v,resetScroll:_,viewTransition:b,children:x,target:S,disabled:E,style:T,className:R,onClick:O,onBlur:A,onFocus:I,onMouseEnter:P,onMouseLeave:L,onTouchStart:q,ignoreBlocker:j,params:B,search:F,hash:Z,state:ie,mask:H,reloadDocument:W,unsafeRelative:te,from:le,_fromLocation:Q,...k}=e,G=kP(),V=M.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),D=_o(n.stores.location,ne=>ne,(ne,ae)=>ne.href===ae.href),U=M.useMemo(()=>{const ne={_fromLocation:D,...V};return n.buildLocation(ne)},[n,D,V]),X=U.maskedLocation?U.maskedLocation.publicHref:U.publicHref,fe=U.maskedLocation?U.maskedLocation.external:U.external,pe=M.useMemo(()=>X7(X,fe,n.history,E),[E,fe,X,n.history]),xe=M.useMemo(()=>{if(pe?.external)return Mm(pe.href,n.protocolAllowlist)?void 0:pe.href;if(!J7(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),Mm(c,n.protocolAllowlist)?void 0:c}catch{}},[c,pe,n.protocolAllowlist]),je=M.useMemo(()=>{if(xe)return!1;if(l?.exact){if(!Z8(D.pathname,U.pathname,n.basepath))return!1}else{const ne=Pm(D.pathname,n.basepath),ae=Pm(U.pathname,n.basepath);if(!(ne.startsWith(ae)&&(ne.length===ae.length||ne[ae.length]==="/")))return!1}return(l?.includeSearch??!0)&&!ol(D.search,U.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?G&&D.hash===U.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,D,xe,G,U.hash,U.pathname,U.search,n.basepath]),Y=je?ra(o,{})??K7:Zy,re=je?Zy:ra(s,{})??Zy,ve=[R,Y.className,re.className].filter(Boolean).join(" "),se=(T||Y.style||re.style)&&{...T,...Y.style,...re.style},[Se,Te]=M.useState(!1),tt=M.useRef(!1),rt=e.reloadDocument||xe?!1:d??n.options.defaultPreload,Be=f??n.options.defaultPreloadDelay??0,Qe=M.useCallback(()=>{n.preloadRoute({...V,_builtLocation:U}).catch(ne=>{console.warn(ne),console.warn(C7)})},[n,V,U]);A8(r,M.useCallback(ne=>{ne?.isIntersecting&&Qe()},[Qe]),Q7,{disabled:!!E||rt!=="viewport"}),M.useEffect(()=>{tt.current||!E&&rt==="render"&&(Qe(),tt.current=!0)},[E,Qe,rt]);const Pe=ne=>{const ae=ne.currentTarget.getAttribute("target"),Re=S!==void 0?S:ae;if(!E&&!e9(ne)&&!ne.defaultPrevented&&(!Re||Re==="_self")&&ne.button===0){ne.preventDefault(),Ng.flushSync(()=>{Te(!0)});const Ae=n.subscribe("onResolved",()=>{Ae(),Te(!1)});n.navigate({...V,replace:g,resetScroll:_,hashScrollIntoView:h,startTransition:v,viewTransition:b,ignoreBlocker:j})}};if(xe)return{...k,ref:r,href:xe,...x&&{children:x},...S&&{target:S},...E&&{disabled:E},...T&&{style:T},...R&&{className:R},...O&&{onClick:O},...A&&{onBlur:A},...I&&{onFocus:I},...P&&{onMouseEnter:P},...L&&{onMouseLeave:L},...q&&{onTouchStart:q}};const Me=ne=>{if(E||rt!=="intent")return;if(!Be){Qe();return}const ae=ne.currentTarget;if(td.has(ae))return;const Re=setTimeout(()=>{td.delete(ae),Qe()},Be);td.set(ae,Re)},Ue=ne=>{E||rt!=="intent"||Qe()},K=ne=>{if(E||!rt||!Be)return;const ae=ne.currentTarget,Re=td.get(ae);Re&&(clearTimeout(Re),td.delete(ae))};return{...k,...Y,...re,href:pe?.href,ref:r,onClick:ic([O,Pe]),onBlur:ic([A,K]),onFocus:ic([I,Me]),onMouseEnter:ic([P,Me]),onMouseLeave:ic([L,K]),onTouchStart:ic([q,Ue]),disabled:!!E,target:S,...se&&{style:se},...ve&&{className:ve},...E&&Z7,...je&&Y7,...G&&Se&&W7}}var Zy={},K7={className:"active"},Z7={role:"link","aria-disabled":!0},Y7={"data-status":"active","aria-current":"page"},W7={"data-transitioning":"transitioning"},td=new WeakMap,Q7={rootMargin:"100px"},ic=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function X7(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function J7(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var kg=M.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:o,...s}=G7(r,t),l=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:c,...d}=s;return M.createElement("a",d,l)}return M.createElement(n,s,l)});function e9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var t9=class extends NP{constructor(e){super(e),this.useMatch=t=>hl({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>VP({...t,from:this.id}),this.useSearch=t=>BP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Dw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>FP({...t,from:this.id}),this.useLoaderData=t=>UP({...t,from:this.id}),this.useNavigate=()=>Pg({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(kg,{ref:n,from:this.fullPath,...t}))}};function gt(e){return new t9(e)}var n9=class extends A7{constructor(e){super(e),this.useMatch=t=>hl({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>VP({...t,from:this.id}),this.useSearch=t=>BP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Dw({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>FP({...t,from:this.id}),this.useLoaderData=t=>UP({...t,from:this.id}),this.useNavigate=()=>Pg({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(kg,{ref:n,from:this.fullPath,...t}))}};function r9(e){return new n9(e)}function Ot(e,t){let n,r,o,s;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d.default}).catch(d=>{if(o=d,N8(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),s=!0)}})),n),c=function(f){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!r)if(L2)L2(l());else throw l();return M.createElement(r,f)};return c.preload=l,c}function o9(e){const t=bo(),n=`not-found-${_o(t.stores.location,r=>r.pathname)}-${_o(t.stores.status,r=>r)}`;return C.jsx(Nw,{getResetKey:()=>n,onCatch:(r,o)=>{if(Cr(r))e.onCatch?.(r,o);else throw r},errorComponent:({error:r})=>{if(Cr(r))return e.fallback?.(r);throw r},children:e.children})}function i9(){return C.jsx("p",{children:"Not Found"})}function wc(e){return C.jsx(C.Fragment,{children:e.children})}function HP(e,t,n){return t.options.notFoundComponent?C.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?C.jsx(e.options.defaultNotFoundComponent,{...n}):C.jsx(i9,{})}function s9(e){return null}function a9(){return s9(bo()),null}var GP=M.memo(function({matchId:t}){const n=bo(),r=n.stores.matchStores.get(t);r||ds();const o=_o(n.stores.loadedAt,l=>l),s=_o(r,l=>l);return C.jsx(l9,{router:n,matchId:t,resetKey:o,matchState:M.useMemo(()=>{const l=s.routeId,c=n.routesById[l].parentRoute?.id;return{routeId:l,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:c}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function l9({router:e,matchId:t,resetKey:n,matchState:r}){const o=e.routesById[r.routeId],s=o.options.pendingComponent??e.options.defaultPendingComponent,l=s?C.jsx(s,{}):null,c=o.options.errorComponent??e.options.defaultErrorComponent,d=o.options.onCatch??e.options.defaultOnCatch,f=o.isRoot?o.options.notFoundComponent??e.options.notFoundRoute?.options.component:o.options.notFoundComponent,p=r.ssr===!1||r.ssr==="data-only",h=(!o.isRoot||o.options.wrapInSuspense||p)&&(o.options.wrapInSuspense??s??(o.options.errorComponent?.preload||p))?M.Suspense:wc,g=c?Nw:wc,v=f?o9:wc;return C.jsxs(o.isRoot?o.options.shellComponent??wc:wc,{children:[C.jsx(Mg.Provider,{value:t,children:C.jsx(h,{fallback:l,children:C.jsx(g,{getResetKey:()=>n,errorComponent:c||kw,onCatch:(_,b)=>{if(Cr(_))throw _.routeId??=r.routeId,_;d?.(_,b)},children:C.jsx(v,{fallback:_=>{if(_.routeId??=r.routeId,!f||_.routeId&&_.routeId!==r.routeId||!_.routeId&&!o.isRoot)throw _;return M.createElement(f,_)},children:p||r._displayPending?C.jsx(P7,{fallback:l,children:C.jsx(cT,{matchId:t})}):C.jsx(cT,{matchId:t})})})})}),r.parentRouteId===il?C.jsxs(C.Fragment,{children:[C.jsx(c9,{resetKey:n}),e.options.scrollRestoration&&_P?C.jsx(a9,{}):null]}):null]})}function c9({resetKey:e}){const t=bo(),n=M.useRef(void 0);return Oc(()=>{const r=t.latestLocation.href;(n.current===void 0||n.current!==r)&&(t.emit({type:"onRendered",...Nc(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=r)},[t.latestLocation.state.__TSR_key,e,t]),null}var cT=M.memo(function({matchId:t}){const n=bo(),r=(p,h)=>n.getMatch(p.id)?._nonReactive[h]??p._nonReactive[h],o=n.stores.matchStores.get(t);o||ds();const s=_o(o,p=>p),l=s.routeId,c=n.routesById[l],d=M.useMemo(()=>{const p=(n.routesById[l].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:l,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return p?JSON.stringify(p):void 0},[l,s.loaderDeps,s._strictParams,s._strictSearch,n.options.defaultRemountDeps,n.routesById]),f=M.useMemo(()=>{const p=c.options.component??n.options.defaultComponent;return p?C.jsx(p,{},d):C.jsx(KP,{})},[d,c.options.component,n.options.defaultComponent]);if(s._displayPending)throw r(s,"displayPendingPromise");if(s._forcePending)throw r(s,"minPendingPromise");if(s.status==="pending"){const p=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(p){const h=n.getMatch(s.id);if(h&&!h._nonReactive.minPendingPromise){const g=Vc();h._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),h._nonReactive.minPendingPromise=void 0},p)}}throw r(s,"loadPromise")}if(s.status==="notFound")return Cr(s.error)||ds(),HP(n,c,s.error);if(s.status==="redirected")throw Qr(s.error)||ds(),r(s,"loadPromise");if(s.status==="error")throw s.error;return f}),KP=M.memo(function(){const t=bo(),n=M.useContext(Mg);let r,o=!1,s;{const f=n?t.stores.matchStores.get(n):void 0;[r,o]=_o(f,p=>[p?.routeId,p?.globalNotFound??!1]),s=_o(t.stores.matchesId,p=>p[p.findIndex(h=>h===n)+1])}const l=r?t.routesById[r]:void 0,c=t.options.defaultPendingComponent?C.jsx(t.options.defaultPendingComponent,{}):null;if(o)return l||ds(),HP(t,l,void 0);if(!s)return null;const d=C.jsx(GP,{matchId:s});return r===il?C.jsx(M.Suspense,{fallback:c,children:d}):d});function u9(){const e=bo(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),o=_o(e.stores.isLoading,h=>h),s=_o(e.stores.hasPending,h=>h),l=$y(o),c=o||n||s,d=$y(c),f=o||s,p=$y(f);return e.startTransition=h=>{r(!0),M.startTransition(()=>{h(),r(!1)})},M.useEffect(()=>{const h=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ls(e.latestLocation.publicHref)!==ls(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{h()}},[e,e.history]),Oc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Oc(()=>{l&&!o&&e.emit({type:"onLoad",...Nc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,o]),Oc(()=>{p&&!f&&e.emit({type:"onBeforeRouteMount",...Nc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,p,e]),Oc(()=>{if(d&&!c){const h=Nc(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...h}),$P(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),h.hrefChanged&&I7(e)}},[c,d,e]),null}function d9(){const e=bo(),t=e.routesById[il].options.pendingComponent??e.options.defaultPendingComponent,n=t?C.jsx(t,{}):null,r=C.jsxs(typeof document<"u"&&e.ssr?wc:M.Suspense,{fallback:n,children:[C.jsx(u9,{}),C.jsx(f9,{})]});return e.options.InnerWrap?C.jsx(e.options.InnerWrap,{children:r}):r}function f9(){const e=bo(),t=_o(e.stores.firstId,o=>o),n=_o(e.stores.loadedAt,o=>o),r=t?C.jsx(GP,{matchId:t}):null;return C.jsx(Mg.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:C.jsx(Nw,{getResetKey:()=>n,errorComponent:kw,onCatch:void 0,children:r})})}var h9=e=>({createMutableStore:oT,createReadonlyStore:oT,batch:$P}),p9=e=>new m9(e),m9=class extends w7{constructor(e){super(e,h9)}};function g9({router:e,children:t,...n}){wP(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=C.jsx(DP.Provider,{value:e,children:t});return e.options.Wrap?C.jsx(e.options.Wrap,{children:r}):r}function v9({router:e,...t}){return C.jsx(g9,{router:e,...t,children:C.jsx(d9,{})})}var y9={},uT={};const vm=Object.create(null),nd=e=>y9||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?vm:globalThis),Do=new Proxy(vm,{get(e,t){return nd()[t]??vm[t]},has(e,t){return t in nd()||t in vm},set(e,t,n){const r=nd(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=nd(!0);return delete n[t],!0},ownKeys(){const e=nd(!0);return Object.keys(e)}});function Fn(e,t){return typeof process<"u"&&uT?uT[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const rd=1,rr=4,_i=8,po=24,dT={eterm:rr,cons25:rr,console:rr,cygwin:rr,dtterm:rr,gnome:rr,hurd:rr,jfbterm:rr,konsole:rr,kterm:rr,mlterm:rr,mosh:po,putty:rr,st:rr,"rxvt-unicode-24bit":po,terminator:po,"xterm-kitty":po},_9=new Map(Object.entries({APPVEYOR:_i,BUILDKITE:_i,CIRCLECI:po,DRONE:_i,GITEA_ACTIONS:po,GITHUB_ACTIONS:po,GITLAB_CI:_i,TRAVIS:_i})),b9=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function w9(){if(Fn("FORCE_COLOR")!==void 0)switch(Fn("FORCE_COLOR")){case"":case"1":case"true":return rr;case"2":return _i;case"3":return po;default:return rd}if(Fn("NODE_DISABLE_COLORS")!==void 0&&Fn("NODE_DISABLE_COLORS")!==""||Fn("NO_COLOR")!==void 0&&Fn("NO_COLOR")!==""||Fn("TERM")==="dumb")return rd;if(Fn("TMUX"))return po;if("TF_BUILD"in Do&&"AGENT_NAME"in Do)return rr;if("CI"in Do){for(const{0:e,1:t}of _9)if(e in Do)return t;return Fn("CI_NAME")==="codeship"?_i:rd}if("TEAMCITY_VERSION"in Do)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Fn("TEAMCITY_VERSION"))!==null?rr:rd;switch(Fn("TERM_PROGRAM")){case"iTerm.app":return!Fn("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Fn("TERM_PROGRAM_VERSION"))!==null?_i:po;case"HyperTerm":case"MacTerm":return po;case"Apple_Terminal":return _i}if(Fn("COLORTERM")==="truecolor"||Fn("COLORTERM")==="24bit")return po;if(Fn("TERM")){if(/truecolor/.exec(Fn("TERM"))!==null)return po;if(/^xterm-256/.exec(Fn("TERM"))!==null)return _i;const e=Fn("TERM").toLowerCase();if(dT[e])return dT[e];if(b9.some(t=>t.exec(e)!==null))return rr}return Fn("COLORTERM")?rr:rd}const bi={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},jb=["debug","info","success","warn","error"];function S9(e,t){return jb.indexOf(t)>=jb.indexOf(e)}const E9={info:bi.fg.blue,success:bi.fg.green,warn:bi.fg.yellow,error:bi.fg.red,debug:bi.fg.magenta},x9=(e,t,n)=>{const r=new Date().toISOString();return n?`${bi.dim}${r}${bi.reset} ${E9[e]}${e.toUpperCase()}${bi.reset} ${bi.bright}[Better Auth]:${bi.reset} ${t}`:`${r} ${e.toUpperCase()} [Better Auth]: ${t}`},R9=e=>{const t="warn",n=w9()!==1,r=(o,s,l=[])=>{if(!S9(t,o))return;const c=x9(o,s,n);{o==="error"?console.error(c,...l):o==="warn"?console.warn(c,...l):console.log(c,...l);return}};return{...Object.fromEntries(jb.map(o=>[o,(...[s,...l])=>r(o,s,l)])),get level(){return t}}};R9();const O9=Object.freeze({status:"aborted"});function ye(e,t,n){function r(c,d){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,d);const f=l.prototype,p=Object.keys(f);for(let h=0;h<p.length;h++){const g=p[h];g in c||(c[g]=f[g].bind(c))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function l(c){var d;const f=n?.Parent?new s:this;r(f,c),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:c=>n?.Parent&&c instanceof n.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class kc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ZP extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const YP={};function da(e){return YP}function WP(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function zb(e,t){return typeof t=="bigint"?t.toString():t}function Dg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function hf(e){return e==null}function Lw(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function T9(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(o=Number.parseInt(d[1]))}const s=n>o?n:o,l=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return l%c/10**s}const fT=Symbol("evaluating");function It(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==fT)return r===void 0&&(r=fT,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function pl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ga(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function hT(e){return JSON.stringify(e)}function C9(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const QP="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const A9=Dg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function qc(e){if(Zd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Zd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function XP(e){return qc(e)?{...e}:Array.isArray(e)?[...e]:e}const I9=new Set(["string","number","symbol"]);function Hc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function va(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Fe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function M9(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const P9={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function N9(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(l[c]=n.shape[c])}return pl(this,"shape",l),l},checks:[]});return va(e,s)}function k9(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete l[c]}return pl(this,"shape",l),l},checks:[]});return va(e,s)}function D9(e,t){if(!qc(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(s,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=ga(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return pl(this,"shape",s),s}});return va(e,o)}function L9(e,t){if(!qc(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return pl(this,"shape",r),r}});return va(e,n)}function $9(e,t){const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return pl(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return va(e,n)}function j9(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=ga(t._zod.def,{get shape(){const c=t._zod.def.shape,d={...c};if(n)for(const f in n){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(d[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(const f in c)d[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return pl(this,"shape",d),d},checks:[]});return va(t,l)}function z9(e,t,n){const r=ga(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(s[l]=new e({type:"nonoptional",innerType:o[l]}))}else for(const l in o)s[l]=new e({type:"nonoptional",innerType:o[l]});return pl(this,"shape",s),s}});return va(t,r)}function Tc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function nl(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Wh(e){return typeof e=="string"?e:e?.message}function fa(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Wh(e.inst?._zod.def?.error?.(e))??Wh(t?.error?.(e))??Wh(n.customError?.(e))??Wh(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function JP(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $w(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yd(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const e3=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,zb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},jw=ye("$ZodError",e3),Lg=ye("$ZodError",e3,{Parent:Error});function U9(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function F9(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(l=>r({issues:l}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let l=n,c=0;for(;c<s.path.length;){const d=s.path[c];c===s.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(s))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return r(e),n}const $g=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new kc;if(l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>fa(d,s,da())));throw QP(c,o?.callee),c}return l.value},B9=$g(Lg),jg=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>fa(d,s,da())));throw QP(c,o?.callee),c}return l.value},V9=jg(Lg),zg=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new kc;return s.issues.length?{success:!1,error:new(e??jw)(s.issues.map(l=>fa(l,o,da())))}:{success:!0,data:s.value}},q9=zg(Lg),Ug=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>fa(l,o,da())))}:{success:!0,data:s.value}},H9=Ug(Lg),G9=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return $g(e)(t,n,o)},K9=e=>(t,n,r)=>$g(e)(t,n,r),Z9=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return jg(e)(t,n,o)},Y9=e=>async(t,n,r)=>jg(e)(t,n,r),W9=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zg(e)(t,n,o)},Q9=e=>(t,n,r)=>zg(e)(t,n,r),X9=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ug(e)(t,n,o)},J9=e=>async(t,n,r)=>Ug(e)(t,n,r),ez=/^[cC][^\s-]{8,}$/,tz=/^[0-9a-z]+$/,nz=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,rz=/^[0-9a-vA-V]{20}$/,oz=/^[A-Za-z0-9]{27}$/,iz=/^[a-zA-Z0-9_-]{21}$/,sz=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,az=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pT=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lz=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function uz(){return new RegExp(cz,"u")}const dz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,hz=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,pz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,t3=/^[A-Za-z0-9_-]*$/,gz=/^\+[1-9]\d{6,14}$/,n3="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vz=new RegExp(`^${n3}$`);function r3(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function yz(e){return new RegExp(`^${r3(e)}$`)}function _z(e){const t=r3({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${n3}T(?:${r})$`)}const bz=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},wz=/^-?\d+$/,o3=/^-?\d+(?:\.\d+)?$/,Sz=/^(?:true|false)$/i,Ez=/^null$/i,xz=/^undefined$/i,Rz=/^[^A-Z]*$/,Oz=/^[^a-z]*$/,yr=ye("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),i3={number:"number",bigint:"bigint",object:"date"},s3=ye("$ZodCheckLessThan",(e,t)=>{yr.init(e,t);const n=i3[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),a3=ye("$ZodCheckGreaterThan",(e,t)=>{yr.init(e,t);const n=i3[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tz=ye("$ZodCheckMultipleOf",(e,t)=>{yr.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):T9(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Cz=ye("$ZodCheckNumberFormat",(e,t)=>{yr.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,s]=P9[t.format];e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=t.format,c.minimum=o,c.maximum=s,n&&(c.pattern=wz)}),e._zod.check=l=>{const c=l.value;if(n){if(!Number.isInteger(c)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?l.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<o&&l.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>s&&l.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Az=ye("$ZodCheckMaxSize",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;o.size<=t.maximum||r.issues.push({origin:JP(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Iz=ye("$ZodCheckMinSize",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;o.size>=t.minimum||r.issues.push({origin:JP(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Mz=ye("$ZodCheckMaxLength",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const l=$w(o);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pz=ye("$ZodCheckMinLength",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const l=$w(o);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Nz=ye("$ZodCheckLengthEquals",(e,t)=>{var n;yr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!hf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const l=$w(o),c=s>t.length;r.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Fg=ye("$ZodCheckStringFormat",(e,t)=>{var n,r;yr.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),kz=ye("$ZodCheckRegex",(e,t)=>{Fg.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Dz=ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Rz),Fg.init(e,t)}),Lz=ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Oz),Fg.init(e,t)}),$z=ye("$ZodCheckIncludes",(e,t)=>{yr.init(e,t);const n=Hc(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),jz=ye("$ZodCheckStartsWith",(e,t)=>{yr.init(e,t);const n=new RegExp(`^${Hc(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),zz=ye("$ZodCheckEndsWith",(e,t)=>{yr.init(e,t);const n=new RegExp(`.*${Hc(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Uz=ye("$ZodCheckMimeType",(e,t)=>{yr.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Fz=ye("$ZodCheckOverwrite",(e,t)=>{yr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Bz{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
11
11
  `).filter(l=>l),o=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(o)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
12
12
  `))}}const Vz={major:4,minor:3,patch:6},Bt=ye("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Vz;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(l,c,d)=>{let f=Tc(l),p;for(const h of c){if(h._zod.def.when){if(!h._zod.def.when(l))continue}else if(f)continue;const g=l.issues.length,v=h._zod.check(l);if(v instanceof Promise&&d?.async===!1)throw new kc;if(p||v instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await v,l.issues.length!==g&&(f||(f=Tc(l,g)))});else{if(l.issues.length===g)continue;f||(f=Tc(l,g))}}return p?p.then(()=>l):l},s=(l,c,d)=>{if(Tc(l))return l.aborted=!0,l;const f=o(c,r,d);if(f instanceof Promise){if(d.async===!1)throw new kc;return f.then(p=>e._zod.parse(p,d))}return e._zod.parse(f,d)};e._zod.run=(l,c)=>{if(c.skipChecks)return e._zod.parse(l,c);if(c.direction==="backward"){const f=e._zod.parse({value:l.value,issues:[]},{...c,skipChecks:!0});return f instanceof Promise?f.then(p=>s(p,l,c)):s(f,l,c)}const d=e._zod.parse(l,c);if(d instanceof Promise){if(c.async===!1)throw new kc;return d.then(f=>o(f,r,c))}return o(d,r,c)}}It(e,"~standard",()=>({validate:o=>{try{const s=q9(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return H9(e,o).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),zw=ye("$ZodString",(e,t)=>{Bt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??bz(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),gn=ye("$ZodStringFormat",(e,t)=>{Fg.init(e,t),zw.init(e,t)}),qz=ye("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=az),gn.init(e,t)}),Hz=ye("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=pT(r))}else t.pattern??(t.pattern=pT());gn.init(e,t)}),Gz=ye("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=lz),gn.init(e,t)}),Kz=ye("$ZodURL",(e,t)=>{gn.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Zz=ye("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=uz()),gn.init(e,t)}),Yz=ye("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=iz),gn.init(e,t)}),Wz=ye("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ez),gn.init(e,t)}),Qz=ye("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=tz),gn.init(e,t)}),Xz=ye("$ZodULID",(e,t)=>{t.pattern??(t.pattern=nz),gn.init(e,t)}),Jz=ye("$ZodXID",(e,t)=>{t.pattern??(t.pattern=rz),gn.init(e,t)}),eU=ye("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=oz),gn.init(e,t)}),tU=ye("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_z(t)),gn.init(e,t)}),nU=ye("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vz),gn.init(e,t)}),rU=ye("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=yz(t)),gn.init(e,t)}),oU=ye("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=sz),gn.init(e,t)}),iU=ye("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=dz),gn.init(e,t),e._zod.bag.format="ipv4"}),sU=ye("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=fz),gn.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),aU=ye("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=hz),gn.init(e,t)}),lU=ye("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=pz),gn.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const l=Number(s);if(`${l}`!==s)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function l3(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const cU=ye("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=mz),gn.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{l3(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function uU(e){if(!t3.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return l3(n)}const dU=ye("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=t3),gn.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{uU(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),fU=ye("$ZodE164",(e,t)=>{t.pattern??(t.pattern=gz),gn.init(e,t)});function hU(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const pU=ye("$ZodJWT",(e,t)=>{gn.init(e,t),e._zod.check=n=>{hU(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),c3=ye("$ZodNumber",(e,t)=>{Bt.init(e,t),e._zod.pattern=e._zod.bag.pattern??o3,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),mU=ye("$ZodNumberFormat",(e,t)=>{Cz.init(e,t),c3.init(e,t)}),gU=ye("$ZodBoolean",(e,t)=>{Bt.init(e,t),e._zod.pattern=Sz,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),vU=ye("$ZodUndefined",(e,t)=>{Bt.init(e,t),e._zod.pattern=xz,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),yU=ye("$ZodNull",(e,t)=>{Bt.init(e,t),e._zod.pattern=Ez,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),_U=ye("$ZodAny",(e,t)=>{Bt.init(e,t),e._zod.parse=n=>n}),bU=ye("$ZodUnknown",(e,t)=>{Bt.init(e,t),e._zod.parse=n=>n}),wU=ye("$ZodNever",(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function mT(e,t,n){e.issues.length&&t.issues.push(...nl(n,e.issues)),t.value[n]=e.value}const SU=ye("$ZodArray",(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let l=0;l<o.length;l++){const c=o[l],d=t.element._zod.run({value:c,issues:[]},r);d instanceof Promise?s.push(d.then(f=>mT(f,n,l))):mT(d,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function Lm(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...nl(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function u3(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=M9(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function d3(e,t,n,r,o,s){const l=[],c=o.keySet,d=o.catchall._zod,f=d.def.type,p=d.optout==="optional";for(const h in t){if(c.has(h))continue;if(f==="never"){l.push(h);continue}const g=d.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(v=>Lm(v,n,h,t,p))):Lm(g,n,h,t,p)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const EU=ye("$ZodObject",(e,t)=>{if(Bt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const c=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...c};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=Dg(()=>u3(t));It(e._zod,"propValues",()=>{const c=t.shape,d={};for(const f in c){const p=c[f]._zod;if(p.values){d[f]??(d[f]=new Set);for(const h of p.values)d[f].add(h)}}return d});const o=Zd,s=t.catchall;let l;e._zod.parse=(c,d)=>{l??(l=r.value);const f=c.value;if(!o(f))return c.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),c;c.value={};const p=[],h=l.shape;for(const g of l.keys){const v=h[g],_=v._zod.optout==="optional",b=v._zod.run({value:f[g],issues:[]},d);b instanceof Promise?p.push(b.then(x=>Lm(x,c,g,f,_))):Lm(b,c,g,f,_)}return s?d3(p,f,c,d,r.value,e):p.length?Promise.all(p).then(()=>c):c}}),xU=ye("$ZodObjectJIT",(e,t)=>{EU.init(e,t);const n=e._zod.parse,r=Dg(()=>u3(t)),o=g=>{const v=new Bz(["shape","payload","ctx"]),_=r.value,b=T=>{const R=hT(T);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};v.write("const input = payload.value;");const x=Object.create(null);let S=0;for(const T of _.keys)x[T]=`key_${S++}`;v.write("const newResult = {};");for(const T of _.keys){const R=x[T],O=hT(T),I=g[T]?._zod?.optout==="optional";v.write(`const ${R} = ${b(T)};`),I?v.write(`
13
13
  if (${R}.issues.length) {
@@ -160,7 +160,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
160
160
  || ${P} === "boolean" || ${A} === null`).assign(L,(0,r._)`[${A}]`)}}}function g({gen:E,parentData:T,parentDataProperty:R},O){E.if((0,r._)`${T} !== undefined`,()=>E.assign((0,r._)`${T}[${R}]`,O))}function v(E,T,R,O=s.Correct){const A=O===s.Correct?r.operators.EQ:r.operators.NEQ;let I;switch(E){case"null":return(0,r._)`${T} ${A} null`;case"array":I=(0,r._)`Array.isArray(${T})`;break;case"object":I=(0,r._)`${T} && typeof ${T} == "object" && !Array.isArray(${T})`;break;case"integer":I=P((0,r._)`!(${T} % 1) && !isNaN(${T})`);break;case"number":I=P();break;default:return(0,r._)`typeof ${T} ${A} ${E}`}return O===s.Correct?I:(0,r.not)(I);function P(L=r.nil){return(0,r.and)((0,r._)`typeof ${T} == "number"`,L,R?(0,r._)`isFinite(${T})`:r.nil)}}fr.checkDataType=v;function _(E,T,R,O){if(E.length===1)return v(E[0],T,R,O);let A;const I=(0,o.toHash)(E);if(I.array&&I.object){const P=(0,r._)`typeof ${T} != "object"`;A=I.null?P:(0,r._)`!${T} || ${P}`,delete I.null,delete I.array,delete I.object}else A=r.nil;I.number&&delete I.integer;for(const P in I)A=(0,r.and)(A,v(P,T,R,O));return A}fr.checkDataTypes=_;const b={message:({schema:E})=>`must be ${E}`,params:({schema:E,schemaValue:T})=>typeof E=="string"?(0,r._)`{type: ${E}}`:(0,r._)`{type: ${T}}`};function x(E){const T=S(E);(0,n.reportError)(T,b)}fr.reportTypeError=x;function S(E){const{gen:T,data:R,schema:O}=E,A=(0,o.schemaRefOrVal)(E,O,"type");return{gen:T,keyword:"type",data:R,schema:O.type,schemaCode:A,schemaValue:A,parentSchema:O,params:{},it:E}}return fr}var yd={},$I;function Yie(){if($I)return yd;$I=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.assignDefaults=void 0;const e=mt(),t=kt();function n(o,s){const{properties:l,items:c}=o.schema;if(s==="object"&&l)for(const d in l)r(o,d,l[d].default);else s==="array"&&Array.isArray(c)&&c.forEach((d,f)=>r(o,f,d.default))}yd.assignDefaults=n;function r(o,s,l){const{gen:c,compositeRule:d,data:f,opts:p}=o;if(l===void 0)return;const h=(0,e._)`${f}${(0,e.getProperty)(s)}`;if(d){(0,t.checkStrictMode)(o,`default is ignored for: ${h}`);return}let g=(0,e._)`${h} === undefined`;p.useDefaults==="empty"&&(g=(0,e._)`${g} || ${h} === null || ${h} === ""`),c.if(g,(0,e._)`${h} = ${(0,e.stringify)(l)}`)}return yd}var Xo={},Ht={},jI;function li(){if(jI)return Ht;jI=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.validateUnion=Ht.validateArray=Ht.usePattern=Ht.callValidateCode=Ht.schemaProperties=Ht.allSchemaProperties=Ht.noPropertyInData=Ht.propertyInData=Ht.isOwnProperty=Ht.hasPropFunc=Ht.reportMissingProp=Ht.checkMissingProp=Ht.checkReportMissingProp=void 0;const e=mt(),t=kt(),n=wa(),r=kt();function o(E,T){const{gen:R,data:O,it:A}=E;R.if(p(R,O,T,A.opts.ownProperties),()=>{E.setParams({missingProperty:(0,e._)`${T}`},!0),E.error()})}Ht.checkReportMissingProp=o;function s({gen:E,data:T,it:{opts:R}},O,A){return(0,e.or)(...O.map(I=>(0,e.and)(p(E,T,I,R.ownProperties),(0,e._)`${A} = ${I}`)))}Ht.checkMissingProp=s;function l(E,T){E.setParams({missingProperty:T},!0),E.error()}Ht.reportMissingProp=l;function c(E){return E.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ht.hasPropFunc=c;function d(E,T,R){return(0,e._)`${c(E)}.call(${T}, ${R})`}Ht.isOwnProperty=d;function f(E,T,R,O){const A=(0,e._)`${T}${(0,e.getProperty)(R)} !== undefined`;return O?(0,e._)`${A} && ${d(E,T,R)}`:A}Ht.propertyInData=f;function p(E,T,R,O){const A=(0,e._)`${T}${(0,e.getProperty)(R)} === undefined`;return O?(0,e.or)(A,(0,e.not)(d(E,T,R))):A}Ht.noPropertyInData=p;function h(E){return E?Object.keys(E).filter(T=>T!=="__proto__"):[]}Ht.allSchemaProperties=h;function g(E,T){return h(T).filter(R=>!(0,t.alwaysValidSchema)(E,T[R]))}Ht.schemaProperties=g;function v({schemaCode:E,data:T,it:{gen:R,topSchemaRef:O,schemaPath:A,errorPath:I},it:P},L,q,j){const B=j?(0,e._)`${E}, ${T}, ${O}${A}`:T,F=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,I)],[n.default.parentData,P.parentData],[n.default.parentDataProperty,P.parentDataProperty],[n.default.rootData,n.default.rootData]];P.opts.dynamicRef&&F.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const Z=(0,e._)`${B}, ${R.object(...F)}`;return q!==e.nil?(0,e._)`${L}.call(${q}, ${Z})`:(0,e._)`${L}(${Z})`}Ht.callValidateCode=v;const _=(0,e._)`new RegExp`;function b({gen:E,it:{opts:T}},R){const O=T.unicodeRegExp?"u":"",{regExp:A}=T.code,I=A(R,O);return E.scopeValue("pattern",{key:I.toString(),ref:I,code:(0,e._)`${A.code==="new RegExp"?_:(0,r.useFunc)(E,A)}(${R}, ${O})`})}Ht.usePattern=b;function x(E){const{gen:T,data:R,keyword:O,it:A}=E,I=T.name("valid");if(A.allErrors){const L=T.let("valid",!0);return P(()=>T.assign(L,!1)),L}return T.var(I,!0),P(()=>T.break()),I;function P(L){const q=T.const("len",(0,e._)`${R}.length`);T.forRange("i",0,q,j=>{E.subschema({keyword:O,dataProp:j,dataPropType:t.Type.Num},I),T.if((0,e.not)(I),L)})}}Ht.validateArray=x;function S(E){const{gen:T,schema:R,keyword:O,it:A}=E;if(!Array.isArray(R))throw new Error("ajv implementation error");if(R.some(q=>(0,t.alwaysValidSchema)(A,q))&&!A.opts.unevaluated)return;const P=T.let("valid",!1),L=T.name("_valid");T.block(()=>R.forEach((q,j)=>{const B=E.subschema({keyword:O,schemaProp:j,compositeRule:!0},L);T.assign(P,(0,e._)`${P} || ${L}`),E.mergeValidEvaluated(B,L)||T.if((0,e.not)(P))})),E.result(P,()=>E.reset(),()=>E.error(!0))}return Ht.validateUnion=S,Ht}var zI;function Wie(){if(zI)return Xo;zI=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.validateKeywordUsage=Xo.validSchemaType=Xo.funcKeywordCode=Xo.macroKeywordCode=void 0;const e=mt(),t=wa(),n=li(),r=fv();function o(g,v){const{gen:_,keyword:b,schema:x,parentSchema:S,it:E}=g,T=v.macro.call(E.self,x,S,E),R=f(_,b,T);E.opts.validateSchema!==!1&&E.self.validateSchema(T,!0);const O=_.name("valid");g.subschema({schema:T,schemaPath:e.nil,errSchemaPath:`${E.errSchemaPath}/${b}`,topSchemaRef:R,compositeRule:!0},O),g.pass(O,()=>g.error(!0))}Xo.macroKeywordCode=o;function s(g,v){var _;const{gen:b,keyword:x,schema:S,parentSchema:E,$data:T,it:R}=g;d(R,v);const O=!T&&v.compile?v.compile.call(R.self,S,E,R):v.validate,A=f(b,x,O),I=b.let("valid");g.block$data(I,P),g.ok((_=v.valid)!==null&&_!==void 0?_:I);function P(){if(v.errors===!1)j(),v.modifying&&l(g),B(()=>g.error());else{const F=v.async?L():q();v.modifying&&l(g),B(()=>c(g,F))}}function L(){const F=b.let("ruleErrs",null);return b.try(()=>j((0,e._)`await `),Z=>b.assign(I,!1).if((0,e._)`${Z} instanceof ${R.ValidationError}`,()=>b.assign(F,(0,e._)`${Z}.errors`),()=>b.throw(Z))),F}function q(){const F=(0,e._)`${A}.errors`;return b.assign(F,null),j(e.nil),F}function j(F=v.async?(0,e._)`await `:e.nil){const Z=R.opts.passContext?t.default.this:t.default.self,ie=!("compile"in v&&!T||v.schema===!1);b.assign(I,(0,e._)`${F}${(0,n.callValidateCode)(g,A,Z,ie)}`,v.modifying)}function B(F){var Z;b.if((0,e.not)((Z=v.valid)!==null&&Z!==void 0?Z:I),F)}}Xo.funcKeywordCode=s;function l(g){const{gen:v,data:_,it:b}=g;v.if(b.parentData,()=>v.assign(_,(0,e._)`${b.parentData}[${b.parentDataProperty}]`))}function c(g,v){const{gen:_}=g;_.if((0,e._)`Array.isArray(${v})`,()=>{_.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${v} : ${t.default.vErrors}.concat(${v})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,r.extendErrors)(g)},()=>g.error())}function d({schemaEnv:g},v){if(v.async&&!g.$async)throw new Error("async keyword in sync schema")}function f(g,v,_){if(_===void 0)throw new Error(`keyword "${v}" failed to compile`);return g.scopeValue("keyword",typeof _=="function"?{ref:_}:{ref:_,code:(0,e.stringify)(_)})}function p(g,v,_=!1){return!v.length||v.some(b=>b==="array"?Array.isArray(g):b==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==b||_&&typeof g>"u")}Xo.validSchemaType=p;function h({schema:g,opts:v,self:_,errSchemaPath:b},x,S){if(Array.isArray(x.keyword)?!x.keyword.includes(S):x.keyword!==S)throw new Error("ajv implementation error");const E=x.dependencies;if(E?.some(T=>!Object.prototype.hasOwnProperty.call(g,T)))throw new Error(`parent schema must have dependencies of ${S}: ${E.join(",")}`);if(x.validateSchema&&!x.validateSchema(g[S])){const R=`keyword "${S}" value is invalid at path "${b}": `+_.errorsText(x.validateSchema.errors);if(v.validateSchema==="log")_.logger.error(R);else throw new Error(R)}}return Xo.validateKeywordUsage=h,Xo}var rs={},UI;function Qie(){if(UI)return rs;UI=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.extendSubschemaMode=rs.extendSubschemaData=rs.getSubschema=void 0;const e=mt(),t=kt();function n(s,{keyword:l,schemaProp:c,schema:d,schemaPath:f,errSchemaPath:p,topSchemaRef:h}){if(l!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const g=s.schema[l];return c===void 0?{schema:g,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${s.errSchemaPath}/${l}`}:{schema:g[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${l}/${(0,t.escapeFragment)(c)}`}}if(d!==void 0){if(f===void 0||p===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:f,topSchemaRef:h,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}rs.getSubschema=n;function r(s,l,{dataProp:c,dataPropType:d,data:f,dataTypes:p,propertyName:h}){if(f!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=l;if(c!==void 0){const{errorPath:_,dataPathArr:b,opts:x}=l,S=g.let("data",(0,e._)`${l.data}${(0,e.getProperty)(c)}`,!0);v(S),s.errorPath=(0,e.str)`${_}${(0,t.getErrorPath)(c,d,x.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...b,s.parentDataProperty]}if(f!==void 0){const _=f instanceof e.Name?f:g.let("data",f,!0);v(_),h!==void 0&&(s.propertyName=h)}p&&(s.dataTypes=p);function v(_){s.data=_,s.dataLevel=l.dataLevel+1,s.dataTypes=[],l.definedProperties=new Set,s.parentData=l.data,s.dataNames=[...l.dataNames,_]}}rs.extendSubschemaData=r;function o(s,{jtdDiscriminator:l,jtdMetadata:c,compositeRule:d,createErrors:f,allErrors:p}){d!==void 0&&(s.compositeRule=d),f!==void 0&&(s.createErrors=f),p!==void 0&&(s.allErrors=p),s.jtdDiscriminator=l,s.jtdMetadata=c}return rs.extendSubschemaMode=o,rs}var kr={},_b,FI;function z6(){return FI||(FI=1,_b=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;o--!==0;){var l=s[o];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n}),_b}var bb={exports:{}},BI;function Xie(){if(BI)return bb.exports;BI=1;var e=bb.exports=function(r,o,s){typeof o=="function"&&(s=o,o={}),s=o.cb||s;var l=typeof s=="function"?s:s.pre||function(){},c=s.post||function(){};t(o,l,c,r,"",r)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(r,o,s,l,c,d,f,p,h,g){if(l&&typeof l=="object"&&!Array.isArray(l)){o(l,c,d,f,p,h,g);for(var v in l){var _=l[v];if(Array.isArray(_)){if(v in e.arrayKeywords)for(var b=0;b<_.length;b++)t(r,o,s,_[b],c+"/"+v+"/"+b,d,c,v,l,b)}else if(v in e.propsKeywords){if(_&&typeof _=="object")for(var x in _)t(r,o,s,_[x],c+"/"+v+"/"+n(x),d,c,v,l,x)}else(v in e.keywords||r.allKeys&&!(v in e.skipKeywords))&&t(r,o,s,_,c+"/"+v,d,c,v,l)}s(l,c,d,f,p,h,g)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return bb.exports}var VI;function hv(){if(VI)return kr;VI=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.getSchemaRefs=kr.resolveUrl=kr.normalizeId=kr._getFullPath=kr.getFullPath=kr.inlineRef=void 0;const e=kt(),t=z6(),n=Xie(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(b,x=!0){return typeof b=="boolean"?!0:x===!0?!l(b):x?c(b)<=x:!1}kr.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(b){for(const x in b){if(s.has(x))return!0;const S=b[x];if(Array.isArray(S)&&S.some(l)||typeof S=="object"&&l(S))return!0}return!1}function c(b){let x=0;for(const S in b){if(S==="$ref")return 1/0;if(x++,!r.has(S)&&(typeof b[S]=="object"&&(0,e.eachItem)(b[S],E=>x+=c(E)),x===1/0))return 1/0}return x}function d(b,x="",S){S!==!1&&(x=h(x));const E=b.parse(x);return f(b,E)}kr.getFullPath=d;function f(b,x){return b.serialize(x).split("#")[0]+"#"}kr._getFullPath=f;const p=/#\/?$/;function h(b){return b?b.replace(p,""):""}kr.normalizeId=h;function g(b,x,S){return S=h(S),b.resolve(x,S)}kr.resolveUrl=g;const v=/^[a-z_][-a-z0-9._]*$/i;function _(b,x){if(typeof b=="boolean")return{};const{schemaId:S,uriResolver:E}=this.opts,T=h(b[S]||x),R={"":T},O=d(E,T,!1),A={},I=new Set;return n(b,{allKeys:!0},(q,j,B,F)=>{if(F===void 0)return;const Z=O+j;let ie=R[F];typeof q[S]=="string"&&(ie=H.call(this,q[S])),W.call(this,q.$anchor),W.call(this,q.$dynamicAnchor),R[j]=ie;function H(te){const le=this.opts.uriResolver.resolve;if(te=h(ie?le(ie,te):te),I.has(te))throw L(te);I.add(te);let Q=this.refs[te];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?P(q,Q.schema,te):te!==h(Z)&&(te[0]==="#"?(P(q,A[te],te),A[te]=q):this.refs[te]=Z),te}function W(te){if(typeof te=="string"){if(!v.test(te))throw new Error(`invalid anchor "${te}"`);H.call(this,`#${te}`)}}}),A;function P(q,j,B){if(j!==void 0&&!t(q,j))throw L(B)}function L(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return kr.getSchemaRefs=_,kr}var qI;function pv(){if(qI)return ts;qI=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.getData=ts.KeywordCxt=ts.validateFunctionCode=void 0;const e=Zie(),t=Rg(),n=j6(),r=Rg(),o=Yie(),s=Wie(),l=Qie(),c=mt(),d=wa(),f=hv(),p=kt(),h=fv();function g(Y){if(O(Y)&&(I(Y),R(Y))){x(Y);return}v(Y,()=>(0,e.topBoolOrEmptySchema)(Y))}ts.validateFunctionCode=g;function v({gen:Y,validateName:re,schema:ve,schemaEnv:se,opts:Se},Te){Se.code.es5?Y.func(re,(0,c._)`${d.default.data}, ${d.default.valCxt}`,se.$async,()=>{Y.code((0,c._)`"use strict"; ${E(ve,Se)}`),b(Y,Se),Y.code(Te)}):Y.func(re,(0,c._)`${d.default.data}, ${_(Se)}`,se.$async,()=>Y.code(E(ve,Se)).code(Te))}function _(Y){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Y.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function b(Y,re){Y.if(d.default.valCxt,()=>{Y.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Y.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Y.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Y.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),re.dynamicRef&&Y.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Y.var(d.default.instancePath,(0,c._)`""`),Y.var(d.default.parentData,(0,c._)`undefined`),Y.var(d.default.parentDataProperty,(0,c._)`undefined`),Y.var(d.default.rootData,d.default.data),re.dynamicRef&&Y.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function x(Y){const{schema:re,opts:ve,gen:se}=Y;v(Y,()=>{ve.$comment&&re.$comment&&F(Y),q(Y),se.let(d.default.vErrors,null),se.let(d.default.errors,0),ve.unevaluated&&S(Y),P(Y),Z(Y)})}function S(Y){const{gen:re,validateName:ve}=Y;Y.evaluated=re.const("evaluated",(0,c._)`${ve}.evaluated`),re.if((0,c._)`${Y.evaluated}.dynamicProps`,()=>re.assign((0,c._)`${Y.evaluated}.props`,(0,c._)`undefined`)),re.if((0,c._)`${Y.evaluated}.dynamicItems`,()=>re.assign((0,c._)`${Y.evaluated}.items`,(0,c._)`undefined`))}function E(Y,re){const ve=typeof Y=="object"&&Y[re.schemaId];return ve&&(re.code.source||re.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function T(Y,re){if(O(Y)&&(I(Y),R(Y))){A(Y,re);return}(0,e.boolOrEmptySchema)(Y,re)}function R({schema:Y,self:re}){if(typeof Y=="boolean")return!Y;for(const ve in Y)if(re.RULES.all[ve])return!0;return!1}function O(Y){return typeof Y.schema!="boolean"}function A(Y,re){const{schema:ve,gen:se,opts:Se}=Y;Se.$comment&&ve.$comment&&F(Y),j(Y),B(Y);const Te=se.const("_errs",d.default.errors);P(Y,Te),se.var(re,(0,c._)`${Te} === ${d.default.errors}`)}function I(Y){(0,p.checkUnknownRules)(Y),L(Y)}function P(Y,re){if(Y.opts.jtd)return H(Y,[],!1,re);const ve=(0,t.getSchemaTypes)(Y.schema),se=(0,t.coerceAndCheckDataType)(Y,ve);H(Y,ve,!se,re)}function L(Y){const{schema:re,errSchemaPath:ve,opts:se,self:Se}=Y;re.$ref&&se.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(re,Se.RULES)&&Se.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function q(Y){const{schema:re,opts:ve}=Y;re.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,p.checkStrictMode)(Y,"default is ignored in the schema root")}function j(Y){const re=Y.schema[Y.opts.schemaId];re&&(Y.baseId=(0,f.resolveUrl)(Y.opts.uriResolver,Y.baseId,re))}function B(Y){if(Y.schema.$async&&!Y.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:Y,schemaEnv:re,schema:ve,errSchemaPath:se,opts:Se}){const Te=ve.$comment;if(Se.$comment===!0)Y.code((0,c._)`${d.default.self}.logger.log(${Te})`);else if(typeof Se.$comment=="function"){const tt=(0,c.str)`${se}/$comment`,rt=Y.scopeValue("root",{ref:re.root});Y.code((0,c._)`${d.default.self}.opts.$comment(${Te}, ${tt}, ${rt}.schema)`)}}function Z(Y){const{gen:re,schemaEnv:ve,validateName:se,ValidationError:Se,opts:Te}=Y;ve.$async?re.if((0,c._)`${d.default.errors} === 0`,()=>re.return(d.default.data),()=>re.throw((0,c._)`new ${Se}(${d.default.vErrors})`)):(re.assign((0,c._)`${se}.errors`,d.default.vErrors),Te.unevaluated&&ie(Y),re.return((0,c._)`${d.default.errors} === 0`))}function ie({gen:Y,evaluated:re,props:ve,items:se}){ve instanceof c.Name&&Y.assign((0,c._)`${re}.props`,ve),se instanceof c.Name&&Y.assign((0,c._)`${re}.items`,se)}function H(Y,re,ve,se){const{gen:Se,schema:Te,data:tt,allErrors:rt,opts:Be,self:Qe}=Y,{RULES:Pe}=Qe;if(Te.$ref&&(Be.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(Te,Pe))){Se.block(()=>fe(Y,"$ref",Pe.all.$ref.definition));return}Be.jtd||te(Y,re),Se.block(()=>{for(const Ue of Pe.rules)Me(Ue);Me(Pe.post)});function Me(Ue){(0,n.shouldUseGroup)(Te,Ue)&&(Ue.type?(Se.if((0,r.checkDataType)(Ue.type,tt,Be.strictNumbers)),W(Y,Ue),re.length===1&&re[0]===Ue.type&&ve&&(Se.else(),(0,r.reportTypeError)(Y)),Se.endIf()):W(Y,Ue),rt||Se.if((0,c._)`${d.default.errors} === ${se||0}`))}}function W(Y,re){const{gen:ve,schema:se,opts:{useDefaults:Se}}=Y;Se&&(0,o.assignDefaults)(Y,re.type),ve.block(()=>{for(const Te of re.rules)(0,n.shouldUseRule)(se,Te)&&fe(Y,Te.keyword,Te.definition,re.type)})}function te(Y,re){Y.schemaEnv.meta||!Y.opts.strictTypes||(le(Y,re),Y.opts.allowUnionTypes||Q(Y,re),k(Y,Y.dataTypes))}function le(Y,re){if(re.length){if(!Y.dataTypes.length){Y.dataTypes=re;return}re.forEach(ve=>{V(Y.dataTypes,ve)||U(Y,`type "${ve}" not allowed by context "${Y.dataTypes.join(",")}"`)}),D(Y,re)}}function Q(Y,re){re.length>1&&!(re.length===2&&re.includes("null"))&&U(Y,"use allowUnionTypes to allow union type keyword")}function k(Y,re){const ve=Y.self.RULES.all;for(const se in ve){const Se=ve[se];if(typeof Se=="object"&&(0,n.shouldUseRule)(Y.schema,Se)){const{type:Te}=Se.definition;Te.length&&!Te.some(tt=>G(re,tt))&&U(Y,`missing type "${Te.join(",")}" for keyword "${se}"`)}}}function G(Y,re){return Y.includes(re)||re==="number"&&Y.includes("integer")}function V(Y,re){return Y.includes(re)||re==="integer"&&Y.includes("number")}function D(Y,re){const ve=[];for(const se of Y.dataTypes)V(re,se)?ve.push(se):re.includes("integer")&&se==="number"&&ve.push("integer");Y.dataTypes=ve}function U(Y,re){const ve=Y.schemaEnv.baseId+Y.errSchemaPath;re+=` at "${ve}" (strictTypes)`,(0,p.checkStrictMode)(Y,re,Y.opts.strictTypes)}class X{constructor(re,ve,se){if((0,s.validateKeywordUsage)(re,ve,se),this.gen=re.gen,this.allErrors=re.allErrors,this.keyword=se,this.data=re.data,this.schema=re.schema[se],this.$data=ve.$data&&re.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(re,this.schema,se,this.$data),this.schemaType=ve.schemaType,this.parentSchema=re.schema,this.params={},this.it=re,this.def=ve,this.$data)this.schemaCode=re.gen.const("vSchema",je(this.$data,re));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,ve.schemaType,ve.allowUndefined))throw new Error(`${se} value must be ${JSON.stringify(ve.schemaType)}`);("code"in ve?ve.trackErrors:ve.errors!==!1)&&(this.errsCount=re.gen.const("_errs",d.default.errors))}result(re,ve,se){this.failResult((0,c.not)(re),ve,se)}failResult(re,ve,se){this.gen.if(re),se?se():this.error(),ve?(this.gen.else(),ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(re,ve){this.failResult((0,c.not)(re),void 0,ve)}fail(re){if(re===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(re),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(re){if(!this.$data)return this.fail(re);const{schemaCode:ve}=this;this.fail((0,c._)`${ve} !== undefined && (${(0,c.or)(this.invalid$data(),re)})`)}error(re,ve,se){if(ve){this.setParams(ve),this._error(re,se),this.setParams({});return}this._error(re,se)}_error(re,ve){(re?h.reportExtraError:h.reportError)(this,this.def.error,ve)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(re){this.allErrors||this.gen.if(re)}setParams(re,ve){ve?Object.assign(this.params,re):this.params=re}block$data(re,ve,se=c.nil){this.gen.block(()=>{this.check$data(re,se),ve()})}check$data(re=c.nil,ve=c.nil){if(!this.$data)return;const{gen:se,schemaCode:Se,schemaType:Te,def:tt}=this;se.if((0,c.or)((0,c._)`${Se} === undefined`,ve)),re!==c.nil&&se.assign(re,!0),(Te.length||tt.validateSchema)&&(se.elseIf(this.invalid$data()),this.$dataError(),re!==c.nil&&se.assign(re,!1)),se.else()}invalid$data(){const{gen:re,schemaCode:ve,schemaType:se,def:Se,it:Te}=this;return(0,c.or)(tt(),rt());function tt(){if(se.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const Be=Array.isArray(se)?se:[se];return(0,c._)`${(0,r.checkDataTypes)(Be,ve,Te.opts.strictNumbers,r.DataType.Wrong)}`}return c.nil}function rt(){if(Se.validateSchema){const Be=re.scopeValue("validate$data",{ref:Se.validateSchema});return(0,c._)`!${Be}(${ve})`}return c.nil}}subschema(re,ve){const se=(0,l.getSubschema)(this.it,re);(0,l.extendSubschemaData)(se,this.it,re),(0,l.extendSubschemaMode)(se,re);const Se={...this.it,...se,items:void 0,props:void 0};return T(Se,ve),Se}mergeEvaluated(re,ve){const{it:se,gen:Se}=this;se.opts.unevaluated&&(se.props!==!0&&re.props!==void 0&&(se.props=p.mergeEvaluated.props(Se,re.props,se.props,ve)),se.items!==!0&&re.items!==void 0&&(se.items=p.mergeEvaluated.items(Se,re.items,se.items,ve)))}mergeValidEvaluated(re,ve){const{it:se,gen:Se}=this;if(se.opts.unevaluated&&(se.props!==!0||se.items!==!0))return Se.if(ve,()=>this.mergeEvaluated(re,c.Name)),!0}}ts.KeywordCxt=X;function fe(Y,re,ve,se){const Se=new X(Y,ve,re);"code"in ve?ve.code(Se,se):Se.$data&&ve.validate?(0,s.funcKeywordCode)(Se,ve):"macro"in ve?(0,s.macroKeywordCode)(Se,ve):(ve.compile||ve.validate)&&(0,s.funcKeywordCode)(Se,ve)}const pe=/^\/(?:[^~]|~0|~1)*$/,xe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function je(Y,{dataLevel:re,dataNames:ve,dataPathArr:se}){let Se,Te;if(Y==="")return d.default.rootData;if(Y[0]==="/"){if(!pe.test(Y))throw new Error(`Invalid JSON-pointer: ${Y}`);Se=Y,Te=d.default.rootData}else{const Qe=xe.exec(Y);if(!Qe)throw new Error(`Invalid JSON-pointer: ${Y}`);const Pe=+Qe[1];if(Se=Qe[2],Se==="#"){if(Pe>=re)throw new Error(Be("property/index",Pe));return se[re-Pe]}if(Pe>re)throw new Error(Be("data",Pe));if(Te=ve[re-Pe],!Se)return Te}let tt=Te;const rt=Se.split("/");for(const Qe of rt)Qe&&(Te=(0,c._)`${Te}${(0,c.getProperty)((0,p.unescapeJsonPointer)(Qe))}`,tt=(0,c._)`${tt} && ${Te}`);return tt;function Be(Qe,Pe){return`Cannot access ${Qe} ${Pe} levels up, current level is ${re}`}}return ts.getData=je,ts}var Ap={},HI;function uE(){if(HI)return Ap;HI=1,Object.defineProperty(Ap,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return Ap.default=e,Ap}var Ip={},GI;function mv(){if(GI)return Ip;GI=1,Object.defineProperty(Ip,"__esModule",{value:!0});const e=hv();class t extends Error{constructor(r,o,s,l){super(l||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(r,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Ip.default=t,Ip}var lo={},KI;function dE(){if(KI)return lo;KI=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.resolveSchema=lo.getCompilingSchema=lo.resolveRef=lo.compileSchema=lo.SchemaEnv=void 0;const e=mt(),t=uE(),n=wa(),r=hv(),o=kt(),s=pv();class l{constructor(S){var E;this.refs={},this.dynamicAnchors={};let T;typeof S.schema=="object"&&(T=S.schema),this.schema=S.schema,this.schemaId=S.schemaId,this.root=S.root||this,this.baseId=(E=S.baseId)!==null&&E!==void 0?E:(0,r.normalizeId)(T?.[S.schemaId||"$id"]),this.schemaPath=S.schemaPath,this.localRefs=S.localRefs,this.meta=S.meta,this.$async=T?.$async,this.refs={}}}lo.SchemaEnv=l;function c(x){const S=p.call(this,x);if(S)return S;const E=(0,r.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:T,lines:R}=this.opts.code,{ownProperties:O}=this.opts,A=new e.CodeGen(this.scope,{es5:T,lines:R,ownProperties:O});let I;x.$async&&(I=A.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=A.scopeName("validate");x.validateName=P;const L={gen:A,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:A.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,e.stringify)(x.schema)}:{ref:x.schema}),validateName:P,ValidationError:I,schema:x.schema,schemaEnv:x,rootId:E,baseId:x.baseId||E,schemaPath:e.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(x),(0,s.validateFunctionCode)(L),A.optimize(this.opts.code.optimize);const j=A.toString();q=`${A.scopeRefs(n.default.scope)}return ${j}`,this.opts.code.process&&(q=this.opts.code.process(q,x));const F=new Function(`${n.default.self}`,`${n.default.scope}`,q)(this,this.scope.get());if(this.scope.value(P,{ref:F}),F.errors=null,F.schema=x.schema,F.schemaEnv=x,x.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:P,validateCode:j,scopeValues:A._values}),this.opts.unevaluated){const{props:Z,items:ie}=L;F.evaluated={props:Z instanceof e.Name?void 0:Z,items:ie instanceof e.Name?void 0:ie,dynamicProps:Z instanceof e.Name,dynamicItems:ie instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return x.validate=F,x}catch(j){throw delete x.validate,delete x.validateName,q&&this.logger.error("Error compiling schema, function code:",q),j}finally{this._compilations.delete(x)}}lo.compileSchema=c;function d(x,S,E){var T;E=(0,r.resolveUrl)(this.opts.uriResolver,S,E);const R=x.refs[E];if(R)return R;let O=g.call(this,x,E);if(O===void 0){const A=(T=x.localRefs)===null||T===void 0?void 0:T[E],{schemaId:I}=this.opts;A&&(O=new l({schema:A,schemaId:I,root:x,baseId:S}))}if(O!==void 0)return x.refs[E]=f.call(this,O)}lo.resolveRef=d;function f(x){return(0,r.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:c.call(this,x)}function p(x){for(const S of this._compilations)if(h(S,x))return S}lo.getCompilingSchema=p;function h(x,S){return x.schema===S.schema&&x.root===S.root&&x.baseId===S.baseId}function g(x,S){let E;for(;typeof(E=this.refs[S])=="string";)S=E;return E||this.schemas[S]||v.call(this,x,S)}function v(x,S){const E=this.opts.uriResolver.parse(S),T=(0,r._getFullPath)(this.opts.uriResolver,E);let R=(0,r.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&T===R)return b.call(this,E,x);const O=(0,r.normalizeId)(T),A=this.refs[O]||this.schemas[O];if(typeof A=="string"){const I=v.call(this,x,A);return typeof I?.schema!="object"?void 0:b.call(this,E,I)}if(typeof A?.schema=="object"){if(A.validate||c.call(this,A),O===(0,r.normalizeId)(S)){const{schema:I}=A,{schemaId:P}=this.opts,L=I[P];return L&&(R=(0,r.resolveUrl)(this.opts.uriResolver,R,L)),new l({schema:I,schemaId:P,root:x,baseId:R})}return b.call(this,E,A)}}lo.resolveSchema=v;const _=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(x,{baseId:S,schema:E,root:T}){var R;if(((R=x.fragment)===null||R===void 0?void 0:R[0])!=="/")return;for(const I of x.fragment.slice(1).split("/")){if(typeof E=="boolean")return;const P=E[(0,o.unescapeFragment)(I)];if(P===void 0)return;E=P;const L=typeof E=="object"&&E[this.opts.schemaId];!_.has(I)&&L&&(S=(0,r.resolveUrl)(this.opts.uriResolver,S,L))}let O;if(typeof E!="boolean"&&E.$ref&&!(0,o.schemaHasRulesButRef)(E,this.RULES)){const I=(0,r.resolveUrl)(this.opts.uriResolver,S,E.$ref);O=v.call(this,T,I)}const{schemaId:A}=this.opts;if(O=O||new l({schema:E,schemaId:A,root:T,baseId:S}),O.schema!==O.root.schema)return O}return lo}const Jie="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",ese="Meta-schema for $data reference (JSON AnySchema extension proposal)",tse="object",nse=["$data"],rse={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},ose=!1,ise={$id:Jie,description:ese,type:tse,required:nse,properties:rse,additionalProperties:ose};var Mp={},_d={exports:{}},wb,ZI;function U6(){if(ZI)return wb;ZI=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n(g){let v="",_=0,b=0;for(b=0;b<g.length;b++)if(_=g[b].charCodeAt(0),_!==48){if(!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";v+=g[b];break}for(b+=1;b<g.length;b++){if(_=g[b].charCodeAt(0),!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";v+=g[b]}return v}const r=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(g){return g.length=0,!0}function s(g,v,_){if(g.length){const b=n(g);if(b!=="")v.push(b);else return _.error=!0,!1;g.length=0}return!0}function l(g){let v=0;const _={error:!1,address:"",zone:""},b=[],x=[];let S=!1,E=!1,T=s;for(let R=0;R<g.length;R++){const O=g[R];if(!(O==="["||O==="]"))if(O===":"){if(S===!0&&(E=!0),!T(x,b,_))break;if(++v>7){_.error=!0;break}R>0&&g[R-1]===":"&&(S=!0),b.push(":");continue}else if(O==="%"){if(!T(x,b,_))break;T=o}else{x.push(O);continue}}return x.length&&(T===o?_.zone=x.join(""):E?b.push(x.join("")):b.push(n(x))),_.address=b.join(""),_}function c(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const v=l(g);if(v.error)return{host:g,isIPV6:!1};{let _=v.address,b=v.address;return v.zone&&(_+="%"+v.zone,b+="%25"+v.zone),{host:_,isIPV6:!0,escapedHost:b}}}function d(g,v){let _=0;for(let b=0;b<g.length;b++)g[b]===v&&_++;return _}function f(g){let v=g;const _=[];let b=-1,x=0;for(;x=v.length;){if(x===1){if(v===".")break;if(v==="/"){_.push("/");break}else{_.push(v);break}}else if(x===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){_.push("/");break}}else if(x===3&&v==="/.."){_.length!==0&&_.pop(),_.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),_.length!==0&&_.pop();continue}}if((b=v.indexOf("/",1))===-1){_.push(v);break}else _.push(v.slice(0,b)),v=v.slice(b)}return _.join("")}function p(g,v){const _=v!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=_(g.scheme)),g.userinfo!==void 0&&(g.userinfo=_(g.userinfo)),g.host!==void 0&&(g.host=_(g.host)),g.path!==void 0&&(g.path=_(g.path)),g.query!==void 0&&(g.query=_(g.query)),g.fragment!==void 0&&(g.fragment=_(g.fragment)),g}function h(g){const v=[];if(g.userinfo!==void 0&&(v.push(g.userinfo),v.push("@")),g.host!==void 0){let _=unescape(g.host);if(!t(_)){const b=c(_);b.isIPV6===!0?_=`[${b.escapedHost}]`:_=g.host}v.push(_)}return(typeof g.port=="number"||typeof g.port=="string")&&(v.push(":"),v.push(String(g.port))),v.length?v.join(""):void 0}return wb={nonSimpleDomain:r,recomposeAuthority:h,normalizeComponentEncoding:p,removeDotSegments:f,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},wb}var Sb,YI;function sse(){if(YI)return Sb;YI=1;const{isUUID:e}=U6(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(O){return n.indexOf(O)!==-1}function o(O){return O.secure===!0?!0:O.secure===!1?!1:O.scheme?O.scheme.length===3&&(O.scheme[0]==="w"||O.scheme[0]==="W")&&(O.scheme[1]==="s"||O.scheme[1]==="S")&&(O.scheme[2]==="s"||O.scheme[2]==="S"):!1}function s(O){return O.host||(O.error=O.error||"HTTP URIs must have a host."),O}function l(O){const A=String(O.scheme).toLowerCase()==="https";return(O.port===(A?443:80)||O.port==="")&&(O.port=void 0),O.path||(O.path="/"),O}function c(O){return O.secure=o(O),O.resourceName=(O.path||"/")+(O.query?"?"+O.query:""),O.path=void 0,O.query=void 0,O}function d(O){if((O.port===(o(O)?443:80)||O.port==="")&&(O.port=void 0),typeof O.secure=="boolean"&&(O.scheme=O.secure?"wss":"ws",O.secure=void 0),O.resourceName){const[A,I]=O.resourceName.split("?");O.path=A&&A!=="/"?A:void 0,O.query=I,O.resourceName=void 0}return O.fragment=void 0,O}function f(O,A){if(!O.path)return O.error="URN can not be parsed",O;const I=O.path.match(t);if(I){const P=A.scheme||O.scheme||"urn";O.nid=I[1].toLowerCase(),O.nss=I[2];const L=`${P}:${A.nid||O.nid}`,q=R(L);O.path=void 0,q&&(O=q.parse(O,A))}else O.error=O.error||"URN can not be parsed.";return O}function p(O,A){if(O.nid===void 0)throw new Error("URN without nid cannot be serialized");const I=A.scheme||O.scheme||"urn",P=O.nid.toLowerCase(),L=`${I}:${A.nid||P}`,q=R(L);q&&(O=q.serialize(O,A));const j=O,B=O.nss;return j.path=`${P||A.nid}:${B}`,A.skipEscape=!0,j}function h(O,A){const I=O;return I.uuid=I.nss,I.nss=void 0,!A.tolerant&&(!I.uuid||!e(I.uuid))&&(I.error=I.error||"UUID is not valid."),I}function g(O){const A=O;return A.nss=(O.uuid||"").toLowerCase(),A}const v={scheme:"http",domainHost:!0,parse:s,serialize:l},_={scheme:"https",domainHost:v.domainHost,parse:s,serialize:l},b={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:b.domainHost,parse:b.parse,serialize:b.serialize},T={http:v,https:_,ws:b,wss:x,urn:{scheme:"urn",parse:f,serialize:p,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(T,null);function R(O){return O&&(T[O]||T[O.toLowerCase()])||void 0}return Sb={wsIsSecure:o,SCHEMES:T,isValidSchemeName:r,getSchemeHandler:R},Sb}var WI;function ase(){if(WI)return _d.exports;WI=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:r,isIPv4:o,nonSimpleDomain:s}=U6(),{SCHEMES:l,getSchemeHandler:c}=sse();function d(x,S){return typeof x=="string"?x=g(_(x,S),S):typeof x=="object"&&(x=_(g(x,S),S)),x}function f(x,S,E){const T=E?Object.assign({scheme:"null"},E):{scheme:"null"},R=p(_(x,T),_(S,T),T,!0);return T.skipEscape=!0,g(R,T)}function p(x,S,E,T){const R={};return T||(x=_(g(x,E),E),S=_(g(S,E),E)),E=E||{},!E.tolerant&&S.scheme?(R.scheme=S.scheme,R.userinfo=S.userinfo,R.host=S.host,R.port=S.port,R.path=t(S.path||""),R.query=S.query):(S.userinfo!==void 0||S.host!==void 0||S.port!==void 0?(R.userinfo=S.userinfo,R.host=S.host,R.port=S.port,R.path=t(S.path||""),R.query=S.query):(S.path?(S.path[0]==="/"?R.path=t(S.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?R.path="/"+S.path:x.path?R.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+S.path:R.path=S.path,R.path=t(R.path)),R.query=S.query):(R.path=x.path,S.query!==void 0?R.query=S.query:R.query=x.query),R.userinfo=x.userinfo,R.host=x.host,R.port=x.port),R.scheme=x.scheme),R.fragment=S.fragment,R}function h(x,S,E){return typeof x=="string"?(x=unescape(x),x=g(r(_(x,E),!0),{...E,skipEscape:!0})):typeof x=="object"&&(x=g(r(x,!0),{...E,skipEscape:!0})),typeof S=="string"?(S=unescape(S),S=g(r(_(S,E),!0),{...E,skipEscape:!0})):typeof S=="object"&&(S=g(r(S,!0),{...E,skipEscape:!0})),x.toLowerCase()===S.toLowerCase()}function g(x,S){const E={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},T=Object.assign({},S),R=[],O=c(T.scheme||E.scheme);O&&O.serialize&&O.serialize(E,T),E.path!==void 0&&(T.skipEscape?E.path=unescape(E.path):(E.path=escape(E.path),E.scheme!==void 0&&(E.path=E.path.split("%3A").join(":")))),T.reference!=="suffix"&&E.scheme&&R.push(E.scheme,":");const A=n(E);if(A!==void 0&&(T.reference!=="suffix"&&R.push("//"),R.push(A),E.path&&E.path[0]!=="/"&&R.push("/")),E.path!==void 0){let I=E.path;!T.absolutePath&&(!O||!O.absolutePath)&&(I=t(I)),A===void 0&&I[0]==="/"&&I[1]==="/"&&(I="/%2F"+I.slice(2)),R.push(I)}return E.query!==void 0&&R.push("?",E.query),E.fragment!==void 0&&R.push("#",E.fragment),R.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function _(x,S){const E=Object.assign({},S),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let R=!1;E.reference==="suffix"&&(E.scheme?x=E.scheme+":"+x:x="//"+x);const O=x.match(v);if(O){if(T.scheme=O[1],T.userinfo=O[3],T.host=O[4],T.port=parseInt(O[5],10),T.path=O[6]||"",T.query=O[7],T.fragment=O[8],isNaN(T.port)&&(T.port=O[5]),T.host)if(o(T.host)===!1){const P=e(T.host);T.host=P.host.toLowerCase(),R=P.isIPV6}else R=!0;T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&T.query===void 0&&!T.path?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",E.reference&&E.reference!=="suffix"&&E.reference!==T.reference&&(T.error=T.error||"URI is not a "+E.reference+" reference.");const A=c(E.scheme||T.scheme);if(!E.unicodeSupport&&(!A||!A.unicodeSupport)&&T.host&&(E.domainHost||A&&A.domainHost)&&R===!1&&s(T.host))try{T.host=URL.domainToASCII(T.host.toLowerCase())}catch(I){T.error=T.error||"Host's domain name can not be converted to ASCII: "+I}(!A||A&&!A.skipNormalize)&&(x.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=unescape(T.host))),T.path&&(T.path=escape(unescape(T.path))),T.fragment&&(T.fragment=encodeURI(decodeURIComponent(T.fragment)))),A&&A.parse&&A.parse(T,E)}else T.error=T.error||"URI can not be parsed.";return T}const b={SCHEMES:l,normalize:d,resolve:f,resolveComponent:p,equal:h,serialize:g,parse:_};return _d.exports=b,_d.exports.default=b,_d.exports.fastUri=b,_d.exports}var QI;function lse(){if(QI)return Mp;QI=1,Object.defineProperty(Mp,"__esModule",{value:!0});const e=ase();return e.code='require("ajv/dist/runtime/uri").default',Mp.default=e,Mp}var XI;function cse(){return XI||(XI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=pv();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=mt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=uE(),o=mv(),s=$6(),l=dE(),c=mt(),d=hv(),f=Rg(),p=kt(),h=ise,g=lse(),v=(Q,k)=>new RegExp(Q,k);v.code="new RegExp";const _=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},S={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},E=200;function T(Q){var k,G,V,D,U,X,fe,pe,xe,je,Y,re,ve,se,Se,Te,tt,rt,Be,Qe,Pe,Me,Ue,K,ne;const ae=Q.strict,Re=(k=Q.code)===null||k===void 0?void 0:k.optimize,Ae=Re===!0||Re===void 0?1:Re||0,Ie=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,ke=(D=Q.uriResolver)!==null&&D!==void 0?D:g.default;return{strictSchema:(X=(U=Q.strictSchema)!==null&&U!==void 0?U:ae)!==null&&X!==void 0?X:!0,strictNumbers:(pe=(fe=Q.strictNumbers)!==null&&fe!==void 0?fe:ae)!==null&&pe!==void 0?pe:!0,strictTypes:(je=(xe=Q.strictTypes)!==null&&xe!==void 0?xe:ae)!==null&&je!==void 0?je:"log",strictTuples:(re=(Y=Q.strictTuples)!==null&&Y!==void 0?Y:ae)!==null&&re!==void 0?re:"log",strictRequired:(se=(ve=Q.strictRequired)!==null&&ve!==void 0?ve:ae)!==null&&se!==void 0?se:!1,code:Q.code?{...Q.code,optimize:Ae,regExp:Ie}:{optimize:Ae,regExp:Ie},loopRequired:(Se=Q.loopRequired)!==null&&Se!==void 0?Se:E,loopEnum:(Te=Q.loopEnum)!==null&&Te!==void 0?Te:E,meta:(tt=Q.meta)!==null&&tt!==void 0?tt:!0,messages:(rt=Q.messages)!==null&&rt!==void 0?rt:!0,inlineRefs:(Be=Q.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(Qe=Q.schemaId)!==null&&Qe!==void 0?Qe:"$id",addUsedSchema:(Pe=Q.addUsedSchema)!==null&&Pe!==void 0?Pe:!0,validateSchema:(Me=Q.validateSchema)!==null&&Me!==void 0?Me:!0,validateFormats:(Ue=Q.validateFormats)!==null&&Ue!==void 0?Ue:!0,unicodeRegExp:(K=Q.unicodeRegExp)!==null&&K!==void 0?K:!0,int32range:(ne=Q.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:ke}}class R{constructor(k={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,...T(k)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:b,es5:G,lines:V}),this.logger=B(k.logger);const D=k.validateFormats;k.validateFormats=!1,this.RULES=(0,s.getRules)(),O.call(this,x,k,"NOT SUPPORTED"),O.call(this,S,k,"DEPRECATED","warn"),this._metaOpts=q.call(this),k.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&L.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),I.call(this),k.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:G,schemaId:V}=this.opts;let D=h;V==="id"&&(D={...h},D.id=D.$id,delete D.$id),G&&k&&this.addMetaSchema(D,D[V],!1)}defaultMeta(){const{meta:k,schemaId:G}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[G]||k:void 0}validate(k,G){let V;if(typeof k=="string"){if(V=this.getSchema(k),!V)throw new Error(`no schema with key or ref "${k}"`)}else V=this.compile(k);const D=V(G);return"$async"in V||(this.errors=V.errors),D}compile(k,G){const V=this._addSchema(k,G);return V.validate||this._compileSchemaEnv(V)}compileAsync(k,G){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return D.call(this,k,G);async function D(je,Y){await U.call(this,je.$schema);const re=this._addSchema(je,Y);return re.validate||X.call(this,re)}async function U(je){je&&!this.getSchema(je)&&await D.call(this,{$ref:je},!0)}async function X(je){try{return this._compileSchemaEnv(je)}catch(Y){if(!(Y instanceof o.default))throw Y;return fe.call(this,Y),await pe.call(this,Y.missingSchema),X.call(this,je)}}function fe({missingSchema:je,missingRef:Y}){if(this.refs[je])throw new Error(`AnySchema ${je} is loaded but ${Y} cannot be resolved`)}async function pe(je){const Y=await xe.call(this,je);this.refs[je]||await U.call(this,Y.$schema),this.refs[je]||this.addSchema(Y,je,G)}async function xe(je){const Y=this._loading[je];if(Y)return Y;try{return await(this._loading[je]=V(je))}finally{delete this._loading[je]}}}addSchema(k,G,V,D=this.opts.validateSchema){if(Array.isArray(k)){for(const X of k)this.addSchema(X,void 0,V,D);return this}let U;if(typeof k=="object"){const{schemaId:X}=this.opts;if(U=k[X],U!==void 0&&typeof U!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||U),this._checkUnique(G),this.schemas[G]=this._addSchema(k,V,G,D,!0),this}addMetaSchema(k,G,V=this.opts.validateSchema){return this.addSchema(k,G,!0,V),this}validateSchema(k,G){if(typeof k=="boolean")return!0;let V;if(V=k.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(V,k);if(!D&&G){const U="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(U);else throw new Error(U)}return D}getSchema(k){let G;for(;typeof(G=A.call(this,k))=="string";)k=G;if(G===void 0){const{schemaId:V}=this.opts,D=new l.SchemaEnv({schema:{},schemaId:V});if(G=l.resolveSchema.call(this,D,k),!G)return;this.refs[k]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const G=A.call(this,k);return typeof G=="object"&&this._cache.delete(G.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{const G=k;this._cache.delete(G);let V=k[this.opts.schemaId];return V&&(V=(0,d.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(k){for(const G of k)this.addKeyword(G);return this}addKeyword(k,G){let V;if(typeof k=="string")V=k,typeof G=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=V);else if(typeof k=="object"&&G===void 0){if(G=k,V=G.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Z.call(this,V,G),!G)return(0,p.eachItem)(V,U=>ie.call(this,U)),this;W.call(this,G);const D={...G,type:(0,f.getJSONTypes)(G.type),schemaType:(0,f.getJSONTypes)(G.schemaType)};return(0,p.eachItem)(V,D.type.length===0?U=>ie.call(this,U,D):U=>D.type.forEach(X=>ie.call(this,U,D,X))),this}getKeyword(k){const G=this.RULES.all[k];return typeof G=="object"?G.definition:!!G}removeKeyword(k){const{RULES:G}=this;delete G.keywords[k],delete G.all[k];for(const V of G.rules){const D=V.rules.findIndex(U=>U.keyword===k);D>=0&&V.rules.splice(D,1)}return this}addFormat(k,G){return typeof G=="string"&&(G=new RegExp(G)),this.formats[k]=G,this}errorsText(k=this.errors,{separator:G=", ",dataVar:V="data"}={}){return!k||k.length===0?"No errors":k.map(D=>`${V}${D.instancePath} ${D.message}`).reduce((D,U)=>D+G+U)}$dataMetaSchema(k,G){const V=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const D of G){const U=D.split("/").slice(1);let X=k;for(const fe of U)X=X[fe];for(const fe in V){const pe=V[fe];if(typeof pe!="object")continue;const{$data:xe}=pe.definition,je=X[fe];xe&&je&&(X[fe]=le(je))}}return k}_removeAllSchemas(k,G){for(const V in k){const D=k[V];(!G||G.test(V))&&(typeof D=="string"?delete k[V]:D&&!D.meta&&(this._cache.delete(D.schema),delete k[V]))}}_addSchema(k,G,V,D=this.opts.validateSchema,U=this.opts.addUsedSchema){let X;const{schemaId:fe}=this.opts;if(typeof k=="object")X=k[fe];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let pe=this._cache.get(k);if(pe!==void 0)return pe;V=(0,d.normalizeId)(X||V);const xe=d.getSchemaRefs.call(this,k,V);return pe=new l.SchemaEnv({schema:k,schemaId:fe,meta:G,baseId:V,localRefs:xe}),this._cache.set(pe.schema,pe),U&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=pe),D&&this.validateSchema(k,!0),pe}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):l.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){const G=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,k)}finally{this.opts=G}}}R.ValidationError=r.default,R.MissingRefError=o.default,e.default=R;function O(Q,k,G,V="error"){for(const D in Q){const U=D;U in k&&this.logger[V](`${G}: option ${D}. ${Q[U]}`)}}function A(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function I(){const Q=this.opts.schemas;if(Q)if(Array.isArray(Q))this.addSchema(Q);else for(const k in Q)this.addSchema(Q[k],k)}function P(){for(const Q in this.opts.formats){const k=this.opts.formats[Q];k&&this.addFormat(Q,k)}}function L(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const k in Q){const G=Q[k];G.keyword||(G.keyword=k),this.addKeyword(G)}}function q(){const Q={...this.opts};for(const k of _)delete Q[k];return Q}const j={log(){},warn(){},error(){}};function B(Q){if(Q===!1)return j;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function Z(Q,k){const{RULES:G}=this;if((0,p.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!F.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function ie(Q,k,G){var V;const D=k?.post;if(G&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:U}=this;let X=D?U.post:U.rules.find(({type:pe})=>pe===G);if(X||(X={type:G,rules:[]},U.rules.push(X)),U.keywords[Q]=!0,!k)return;const fe={keyword:Q,definition:{...k,type:(0,f.getJSONTypes)(k.type),schemaType:(0,f.getJSONTypes)(k.schemaType)}};k.before?H.call(this,X,fe,k.before):X.rules.push(fe),U.all[Q]=fe,(V=k.implements)===null||V===void 0||V.forEach(pe=>this.addKeyword(pe))}function H(Q,k,G){const V=Q.rules.findIndex(D=>D.keyword===G);V>=0?Q.rules.splice(V,0,k):(Q.rules.push(k),this.logger.warn(`rule ${G} is not defined`))}function W(Q){let{metaSchema:k}=Q;k!==void 0&&(Q.$data&&this.opts.$data&&(k=le(k)),Q.validateSchema=this.compile(k,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(Q){return{anyOf:[Q,te]}}})(pb)),pb}var Pp={},Np={},kp={},JI;function use(){if(JI)return kp;JI=1,Object.defineProperty(kp,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return kp.default=e,kp}var Qs={},eM;function dse(){if(eM)return Qs;eM=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.callRef=Qs.getValidate=void 0;const e=mv(),t=li(),n=mt(),r=wa(),o=dE(),s=kt(),l={keyword:"$ref",schemaType:"string",code(f){const{gen:p,schema:h,it:g}=f,{baseId:v,schemaEnv:_,validateName:b,opts:x,self:S}=g,{root:E}=_;if((h==="#"||h==="#/")&&v===E.baseId)return R();const T=o.resolveRef.call(S,E,v,h);if(T===void 0)throw new e.default(g.opts.uriResolver,v,h);if(T instanceof o.SchemaEnv)return O(T);return A(T);function R(){if(_===E)return d(f,b,_,_.$async);const I=p.scopeValue("root",{ref:E});return d(f,(0,n._)`${I}.validate`,E,E.$async)}function O(I){const P=c(f,I);d(f,P,I,I.$async)}function A(I){const P=p.scopeValue("schema",x.code.source===!0?{ref:I,code:(0,n.stringify)(I)}:{ref:I}),L=p.name("valid"),q=f.subschema({schema:I,dataTypes:[],schemaPath:n.nil,topSchemaRef:P,errSchemaPath:h},L);f.mergeEvaluated(q),f.ok(L)}}};function c(f,p){const{gen:h}=f;return p.validate?h.scopeValue("validate",{ref:p.validate}):(0,n._)`${h.scopeValue("wrapper",{ref:p})}.validate`}Qs.getValidate=c;function d(f,p,h,g){const{gen:v,it:_}=f,{allErrors:b,schemaEnv:x,opts:S}=_,E=S.passContext?r.default.this:n.nil;g?T():R();function T(){if(!x.$async)throw new Error("async schema referenced by sync schema");const I=v.let("valid");v.try(()=>{v.code((0,n._)`await ${(0,t.callValidateCode)(f,p,E)}`),A(p),b||v.assign(I,!0)},P=>{v.if((0,n._)`!(${P} instanceof ${_.ValidationError})`,()=>v.throw(P)),O(P),b||v.assign(I,!1)}),f.ok(I)}function R(){f.result((0,t.callValidateCode)(f,p,E),()=>A(p),()=>O(p))}function O(I){const P=(0,n._)`${I}.errors`;v.assign(r.default.vErrors,(0,n._)`${r.default.vErrors} === null ? ${P} : ${r.default.vErrors}.concat(${P})`),v.assign(r.default.errors,(0,n._)`${r.default.vErrors}.length`)}function A(I){var P;if(!_.opts.unevaluated)return;const L=(P=h?.validate)===null||P===void 0?void 0:P.evaluated;if(_.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(_.props=s.mergeEvaluated.props(v,L.props,_.props));else{const q=v.var("props",(0,n._)`${I}.evaluated.props`);_.props=s.mergeEvaluated.props(v,q,_.props,n.Name)}if(_.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(_.items=s.mergeEvaluated.items(v,L.items,_.items));else{const q=v.var("items",(0,n._)`${I}.evaluated.items`);_.items=s.mergeEvaluated.items(v,q,_.items,n.Name)}}}return Qs.callRef=d,Qs.default=l,Qs}var tM;function fse(){if(tM)return Np;tM=1,Object.defineProperty(Np,"__esModule",{value:!0});const e=use(),t=dse(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Np.default=n,Np}var Dp={},Lp={},nM;function hse(){if(nM)return Lp;nM=1,Object.defineProperty(Lp,"__esModule",{value:!0});const e=mt(),t=e.operators,n={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},r={message:({keyword:s,schemaCode:l})=>(0,e.str)`must be ${n[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>(0,e._)`{comparison: ${n[s].okStr}, limit: ${l}}`},o={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(s){const{keyword:l,data:c,schemaCode:d}=s;s.fail$data((0,e._)`${c} ${n[l].fail} ${d} || isNaN(${c})`)}};return Lp.default=o,Lp}var $p={},rM;function pse(){if(rM)return $p;rM=1,Object.defineProperty($p,"__esModule",{value:!0});const e=mt(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:o,data:s,schemaCode:l,it:c}=r,d=c.opts.multipleOfPrecision,f=o.let("res"),p=d?(0,e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${d}`:(0,e._)`${f} !== parseInt(${f})`;r.fail$data((0,e._)`(${l} === 0 || (${f} = ${s}/${l}, ${p}))`)}};return $p.default=n,$p}var jp={},zp={},oM;function mse(){if(oM)return zp;oM=1,Object.defineProperty(zp,"__esModule",{value:!0});function e(t){const n=t.length;let r=0,o=0,s;for(;o<n;)r++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<n&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return r}return zp.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',zp}var iM;function gse(){if(iM)return jp;iM=1,Object.defineProperty(jp,"__esModule",{value:!0});const e=mt(),t=kt(),n=mse(),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:l}){const c=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${l} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:l,data:c,schemaCode:d,it:f}=s,p=l==="maxLength"?e.operators.GT:e.operators.LT,h=f.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(s.gen,n.default)}(${c})`;s.fail$data((0,e._)`${h} ${p} ${d}`)}};return jp.default=o,jp}var Up={},sM;function vse(){if(sM)return Up;sM=1,Object.defineProperty(Up,"__esModule",{value:!0});const e=li(),t=kt(),n=mt(),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,n.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,n._)`{pattern: ${s}}`},code(s){const{gen:l,data:c,$data:d,schema:f,schemaCode:p,it:h}=s,g=h.opts.unicodeRegExp?"u":"";if(d){const{regExp:v}=h.opts.code,_=v.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(l,v),b=l.let("valid");l.try(()=>l.assign(b,(0,n._)`${_}(${p}, ${g}).test(${c})`),()=>l.assign(b,!1)),s.fail$data((0,n._)`!${b}`)}else{const v=(0,e.usePattern)(s,f);s.fail$data((0,n._)`!${v}.test(${c})`)}}};return Up.default=o,Up}var Fp={},aM;function yse(){if(aM)return Fp;aM=1,Object.defineProperty(Fp,"__esModule",{value:!0});const e=mt(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:o}){const s=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:o,data:s,schemaCode:l}=r,c=o==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${s}).length ${c} ${l}`)}};return Fp.default=n,Fp}var Bp={},lM;function _se(){if(lM)return Bp;lM=1,Object.defineProperty(Bp,"__esModule",{value:!0});const e=li(),t=mt(),n=kt(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:l,schema:c,schemaCode:d,data:f,$data:p,it:h}=s,{opts:g}=h;if(!p&&c.length===0)return;const v=c.length>=g.loopRequired;if(h.allErrors?_():b(),g.strictRequired){const E=s.parentSchema.properties,{definedProperties:T}=s.it;for(const R of c)if(E?.[R]===void 0&&!T.has(R)){const O=h.schemaEnv.baseId+h.errSchemaPath,A=`required property "${R}" is not defined at "${O}" (strictRequired)`;(0,n.checkStrictMode)(h,A,h.opts.strictRequired)}}function _(){if(v||p)s.block$data(t.nil,x);else for(const E of c)(0,e.checkReportMissingProp)(s,E)}function b(){const E=l.let("missing");if(v||p){const T=l.let("valid",!0);s.block$data(T,()=>S(E,T)),s.ok(T)}else l.if((0,e.checkMissingProp)(s,c,E)),(0,e.reportMissingProp)(s,E),l.else()}function x(){l.forOf("prop",d,E=>{s.setParams({missingProperty:E}),l.if((0,e.noPropertyInData)(l,f,E,g.ownProperties),()=>s.error())})}function S(E,T){s.setParams({missingProperty:E}),l.forOf(E,d,()=>{l.assign(T,(0,e.propertyInData)(l,f,E,g.ownProperties)),l.if((0,t.not)(T),()=>{s.error(),l.break()})},t.nil)}}};return Bp.default=o,Bp}var Vp={},cM;function bse(){if(cM)return Vp;cM=1,Object.defineProperty(Vp,"__esModule",{value:!0});const e=mt(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:o}){const s=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:o,data:s,schemaCode:l}=r,c=o==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${s}.length ${c} ${l}`)}};return Vp.default=n,Vp}var qp={},Hp={},uM;function fE(){if(uM)return Hp;uM=1,Object.defineProperty(Hp,"__esModule",{value:!0});const e=z6();return e.code='require("ajv/dist/runtime/equal").default',Hp.default=e,Hp}var dM;function wse(){if(dM)return qp;dM=1,Object.defineProperty(qp,"__esModule",{value:!0});const e=Rg(),t=mt(),n=kt(),r=fE(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${l} are identical)`,params:({params:{i:l,j:c}})=>(0,t._)`{i: ${l}, j: ${c}}`},code(l){const{gen:c,data:d,$data:f,schema:p,parentSchema:h,schemaCode:g,it:v}=l;if(!f&&!p)return;const _=c.let("valid"),b=h.items?(0,e.getSchemaTypes)(h.items):[];l.block$data(_,x,(0,t._)`${g} === false`),l.ok(_);function x(){const R=c.let("i",(0,t._)`${d}.length`),O=c.let("j");l.setParams({i:R,j:O}),c.assign(_,!0),c.if((0,t._)`${R} > 1`,()=>(S()?E:T)(R,O))}function S(){return b.length>0&&!b.some(R=>R==="object"||R==="array")}function E(R,O){const A=c.name("item"),I=(0,e.checkDataTypes)(b,A,v.opts.strictNumbers,e.DataType.Wrong),P=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${R}--;`,()=>{c.let(A,(0,t._)`${d}[${R}]`),c.if(I,(0,t._)`continue`),b.length>1&&c.if((0,t._)`typeof ${A} == "string"`,(0,t._)`${A} += "_"`),c.if((0,t._)`typeof ${P}[${A}] == "number"`,()=>{c.assign(O,(0,t._)`${P}[${A}]`),l.error(),c.assign(_,!1).break()}).code((0,t._)`${P}[${A}] = ${R}`)})}function T(R,O){const A=(0,n.useFunc)(c,r.default),I=c.name("outer");c.label(I).for((0,t._)`;${R}--;`,()=>c.for((0,t._)`${O} = ${R}; ${O}--;`,()=>c.if((0,t._)`${A}(${d}[${R}], ${d}[${O}])`,()=>{l.error(),c.assign(_,!1).break(I)})))}}};return qp.default=s,qp}var Gp={},fM;function Sse(){if(fM)return Gp;fM=1,Object.defineProperty(Gp,"__esModule",{value:!0});const e=mt(),t=kt(),n=fE(),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:l,data:c,$data:d,schemaCode:f,schema:p}=s;d||p&&typeof p=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(l,n.default)}(${c}, ${f})`):s.fail((0,e._)`${p} !== ${c}`)}};return Gp.default=o,Gp}var Kp={},hM;function Ese(){if(hM)return Kp;hM=1,Object.defineProperty(Kp,"__esModule",{value:!0});const e=mt(),t=kt(),n=fE(),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:l,data:c,$data:d,schema:f,schemaCode:p,it:h}=s;if(!d&&f.length===0)throw new Error("enum must have non-empty array");const g=f.length>=h.opts.loopEnum;let v;const _=()=>v??(v=(0,t.useFunc)(l,n.default));let b;if(g||d)b=l.let("valid"),s.block$data(b,x);else{if(!Array.isArray(f))throw new Error("ajv implementation error");const E=l.const("vSchema",p);b=(0,e.or)(...f.map((T,R)=>S(E,R)))}s.pass(b);function x(){l.assign(b,!1),l.forOf("v",p,E=>l.if((0,e._)`${_()}(${c}, ${E})`,()=>l.assign(b,!0).break()))}function S(E,T){const R=f[T];return typeof R=="object"&&R!==null?(0,e._)`${_()}(${c}, ${E}[${T}])`:(0,e._)`${c} === ${R}`}}};return Kp.default=o,Kp}var pM;function xse(){if(pM)return Dp;pM=1,Object.defineProperty(Dp,"__esModule",{value:!0});const e=hse(),t=pse(),n=gse(),r=vse(),o=yse(),s=_se(),l=bse(),c=wse(),d=Sse(),f=Ese(),p=[e.default,t.default,n.default,r.default,o.default,s.default,l.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];return Dp.default=p,Dp}var Zp={},_c={},mM;function F6(){if(mM)return _c;mM=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.validateAdditionalItems=void 0;const e=mt(),t=kt(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{parentSchema:l,it:c}=s,{items:d}=l;if(!Array.isArray(d)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(s,d)}};function o(s,l){const{gen:c,schema:d,data:f,keyword:p,it:h}=s;h.items=!0;const g=c.const("len",(0,e._)`${f}.length`);if(d===!1)s.setParams({len:l.length}),s.pass((0,e._)`${g} <= ${l.length}`);else if(typeof d=="object"&&!(0,t.alwaysValidSchema)(h,d)){const _=c.var("valid",(0,e._)`${g} <= ${l.length}`);c.if((0,e.not)(_),()=>v(_)),s.ok(_)}function v(_){c.forRange("i",l.length,g,b=>{s.subschema({keyword:p,dataProp:b,dataPropType:t.Type.Num},_),h.allErrors||c.if((0,e.not)(_),()=>c.break())})}}return _c.validateAdditionalItems=o,_c.default=r,_c}var Yp={},bc={},gM;function B6(){if(gM)return bc;gM=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.validateTuple=void 0;const e=mt(),t=kt(),n=li(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:l,it:c}=s;if(Array.isArray(l))return o(s,"additionalItems",l);c.items=!0,!(0,t.alwaysValidSchema)(c,l)&&s.ok((0,n.validateArray)(s))}};function o(s,l,c=s.schema){const{gen:d,parentSchema:f,data:p,keyword:h,it:g}=s;b(f),g.opts.unevaluated&&c.length&&g.items!==!0&&(g.items=t.mergeEvaluated.items(d,c.length,g.items));const v=d.name("valid"),_=d.const("len",(0,e._)`${p}.length`);c.forEach((x,S)=>{(0,t.alwaysValidSchema)(g,x)||(d.if((0,e._)`${_} > ${S}`,()=>s.subschema({keyword:h,schemaProp:S,dataProp:S},v)),s.ok(v))});function b(x){const{opts:S,errSchemaPath:E}=g,T=c.length,R=T===x.minItems&&(T===x.maxItems||x[l]===!1);if(S.strictTuples&&!R){const O=`"${h}" is ${T}-tuple, but minItems or maxItems/${l} are not specified or different at path "${E}"`;(0,t.checkStrictMode)(g,O,S.strictTuples)}}}return bc.validateTuple=o,bc.default=r,bc}var vM;function Rse(){if(vM)return Yp;vM=1,Object.defineProperty(Yp,"__esModule",{value:!0});const e=B6(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return Yp.default=t,Yp}var Wp={},yM;function Ose(){if(yM)return Wp;yM=1,Object.defineProperty(Wp,"__esModule",{value:!0});const e=mt(),t=kt(),n=li(),r=F6(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:c,parentSchema:d,it:f}=l,{prefixItems:p}=d;f.items=!0,!(0,t.alwaysValidSchema)(f,c)&&(p?(0,r.validateAdditionalItems)(l,p):l.ok((0,n.validateArray)(l)))}};return Wp.default=s,Wp}var Qp={},_M;function Tse(){if(_M)return Qp;_M=1,Object.defineProperty(Qp,"__esModule",{value:!0});const e=mt(),t=kt(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:o,max:s}})=>s===void 0?(0,e.str)`must contain at least ${o} valid item(s)`:(0,e.str)`must contain at least ${o} and no more than ${s} valid item(s)`,params:({params:{min:o,max:s}})=>s===void 0?(0,e._)`{minContains: ${o}}`:(0,e._)`{minContains: ${o}, maxContains: ${s}}`},code(o){const{gen:s,schema:l,parentSchema:c,data:d,it:f}=o;let p,h;const{minContains:g,maxContains:v}=c;f.opts.next?(p=g===void 0?1:g,h=v):p=1;const _=s.const("len",(0,e._)`${d}.length`);if(o.setParams({min:p,max:h}),h===void 0&&p===0){(0,t.checkStrictMode)(f,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&p>h){(0,t.checkStrictMode)(f,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,t.alwaysValidSchema)(f,l)){let T=(0,e._)`${_} >= ${p}`;h!==void 0&&(T=(0,e._)`${T} && ${_} <= ${h}`),o.pass(T);return}f.items=!0;const b=s.name("valid");h===void 0&&p===1?S(b,()=>s.if(b,()=>s.break())):p===0?(s.let(b,!0),h!==void 0&&s.if((0,e._)`${d}.length > 0`,x)):(s.let(b,!1),x()),o.result(b,()=>o.reset());function x(){const T=s.name("_valid"),R=s.let("count",0);S(T,()=>s.if(T,()=>E(R)))}function S(T,R){s.forRange("i",0,_,O=>{o.subschema({keyword:"contains",dataProp:O,dataPropType:t.Type.Num,compositeRule:!0},T),R()})}function E(T){s.code((0,e._)`${T}++`),h===void 0?s.if((0,e._)`${T} >= ${p}`,()=>s.assign(b,!0).break()):(s.if((0,e._)`${T} > ${h}`,()=>s.assign(b,!1).break()),p===1?s.assign(b,!0):s.if((0,e._)`${T} >= ${p}`,()=>s.assign(b,!0)))}}};return Qp.default=r,Qp}var Eb={},bM;function Cse(){return bM||(bM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=mt(),n=kt(),r=li();e.error={message:({params:{property:d,depsCount:f,deps:p}})=>{const h=f===1?"property":"properties";return(0,t.str)`must have ${h} ${p} when property ${d} is present`},params:({params:{property:d,depsCount:f,deps:p,missingProperty:h}})=>(0,t._)`{property: ${d},
161
161
  missingProperty: ${h},
162
162
  depsCount: ${f},
163
- deps: ${p}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[f,p]=s(d);l(d,f),c(d,p)}};function s({schema:d}){const f={},p={};for(const h in d){if(h==="__proto__")continue;const g=Array.isArray(d[h])?f:p;g[h]=d[h]}return[f,p]}function l(d,f=d.schema){const{gen:p,data:h,it:g}=d;if(Object.keys(f).length===0)return;const v=p.let("missing");for(const _ in f){const b=f[_];if(b.length===0)continue;const x=(0,r.propertyInData)(p,h,_,g.opts.ownProperties);d.setParams({property:_,depsCount:b.length,deps:b.join(", ")}),g.allErrors?p.if(x,()=>{for(const S of b)(0,r.checkReportMissingProp)(d,S)}):(p.if((0,t._)`${x} && (${(0,r.checkMissingProp)(d,b,v)})`),(0,r.reportMissingProp)(d,v),p.else())}}e.validatePropertyDeps=l;function c(d,f=d.schema){const{gen:p,data:h,keyword:g,it:v}=d,_=p.name("valid");for(const b in f)(0,n.alwaysValidSchema)(v,f[b])||(p.if((0,r.propertyInData)(p,h,b,v.opts.ownProperties),()=>{const x=d.subschema({keyword:g,schemaProp:b},_);d.mergeValidEvaluated(x,_)},()=>p.var(_,!0)),d.ok(_))}e.validateSchemaDeps=c,e.default=o})(Eb)),Eb}var Xp={},wM;function Ase(){if(wM)return Xp;wM=1,Object.defineProperty(Xp,"__esModule",{value:!0});const e=mt(),t=kt(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:o})=>(0,e._)`{propertyName: ${o.propertyName}}`},code(o){const{gen:s,schema:l,data:c,it:d}=o;if((0,t.alwaysValidSchema)(d,l))return;const f=s.name("valid");s.forIn("key",c,p=>{o.setParams({propertyName:p}),o.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),d.allErrors||s.break()})}),o.ok(f)}};return Xp.default=r,Xp}var Jp={},SM;function V6(){if(SM)return Jp;SM=1,Object.defineProperty(Jp,"__esModule",{value:!0});const e=li(),t=mt(),n=wa(),r=kt(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:c,schema:d,parentSchema:f,data:p,errsCount:h,it:g}=l;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:_}=g;if(g.props=!0,_.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(g,d))return;const b=(0,e.allSchemaProperties)(f.properties),x=(0,e.allSchemaProperties)(f.patternProperties);S(),l.ok((0,t._)`${h} === ${n.default.errors}`);function S(){c.forIn("key",p,A=>{!b.length&&!x.length?R(A):c.if(E(A),()=>R(A))})}function E(A){let I;if(b.length>8){const P=(0,r.schemaRefOrVal)(g,f.properties,"properties");I=(0,e.isOwnProperty)(c,P,A)}else b.length?I=(0,t.or)(...b.map(P=>(0,t._)`${A} === ${P}`)):I=t.nil;return x.length&&(I=(0,t.or)(I,...x.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${A})`))),(0,t.not)(I)}function T(A){c.code((0,t._)`delete ${p}[${A}]`)}function R(A){if(_.removeAdditional==="all"||_.removeAdditional&&d===!1){T(A);return}if(d===!1){l.setParams({additionalProperty:A}),l.error(),v||c.break();return}if(typeof d=="object"&&!(0,r.alwaysValidSchema)(g,d)){const I=c.name("valid");_.removeAdditional==="failing"?(O(A,I,!1),c.if((0,t.not)(I),()=>{l.reset(),T(A)})):(O(A,I),v||c.if((0,t.not)(I),()=>c.break()))}}function O(A,I,P){const L={keyword:"additionalProperties",dataProp:A,dataPropType:r.Type.Str};P===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(L,I)}}};return Jp.default=s,Jp}var em={},EM;function Ise(){if(EM)return em;EM=1,Object.defineProperty(em,"__esModule",{value:!0});const e=pv(),t=li(),n=kt(),r=V6(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,parentSchema:d,data:f,it:p}=s;p.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(p,r.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const x of h)p.definedProperties.add(x);p.opts.unevaluated&&h.length&&p.props!==!0&&(p.props=n.mergeEvaluated.props(l,(0,n.toHash)(h),p.props));const g=h.filter(x=>!(0,n.alwaysValidSchema)(p,c[x]));if(g.length===0)return;const v=l.name("valid");for(const x of g)_(x)?b(x):(l.if((0,t.propertyInData)(l,f,x,p.opts.ownProperties)),b(x),p.allErrors||l.else().var(v,!0),l.endIf()),s.it.definedProperties.add(x),s.ok(v);function _(x){return p.opts.useDefaults&&!p.compositeRule&&c[x].default!==void 0}function b(x){s.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return em.default=o,em}var tm={},xM;function Mse(){if(xM)return tm;xM=1,Object.defineProperty(tm,"__esModule",{value:!0});const e=li(),t=mt(),n=kt(),r=kt(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,data:d,parentSchema:f,it:p}=s,{opts:h}=p,g=(0,e.allSchemaProperties)(c),v=g.filter(R=>(0,n.alwaysValidSchema)(p,c[R]));if(g.length===0||v.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const _=h.strictSchema&&!h.allowMatchingProperties&&f.properties,b=l.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,r.evaluatedPropsToName)(l,p.props));const{props:x}=p;S();function S(){for(const R of g)_&&E(R),p.allErrors?T(R):(l.var(b,!0),T(R),l.if(b))}function E(R){for(const O in _)new RegExp(R).test(O)&&(0,n.checkStrictMode)(p,`property ${O} matches pattern ${R} (use allowMatchingProperties)`)}function T(R){l.forIn("key",d,O=>{l.if((0,t._)`${(0,e.usePattern)(s,R)}.test(${O})`,()=>{const A=v.includes(R);A||s.subschema({keyword:"patternProperties",schemaProp:R,dataProp:O,dataPropType:r.Type.Str},b),p.opts.unevaluated&&x!==!0?l.assign((0,t._)`${x}[${O}]`,!0):!A&&!p.allErrors&&l.if((0,t.not)(b),()=>l.break())})})}}};return tm.default=o,tm}var nm={},RM;function Pse(){if(RM)return nm;RM=1,Object.defineProperty(nm,"__esModule",{value:!0});const e=kt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:o,it:s}=n;if((0,e.alwaysValidSchema)(s,o)){n.fail();return}const l=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),n.failResult(l,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return nm.default=t,nm}var rm={},OM;function Nse(){if(OM)return rm;OM=1,Object.defineProperty(rm,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:li().validateUnion,error:{message:"must match a schema in anyOf"}};return rm.default=t,rm}var om={},TM;function kse(){if(TM)return om;TM=1,Object.defineProperty(om,"__esModule",{value:!0});const e=mt(),t=kt(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:o})=>(0,e._)`{passingSchemas: ${o.passing}}`},code(o){const{gen:s,schema:l,parentSchema:c,it:d}=o;if(!Array.isArray(l))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const f=l,p=s.let("valid",!1),h=s.let("passing",null),g=s.name("_valid");o.setParams({passing:h}),s.block(v),o.result(p,()=>o.reset(),()=>o.error(!0));function v(){f.forEach((_,b)=>{let x;(0,t.alwaysValidSchema)(d,_)?s.var(g,!0):x=o.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},g),b>0&&s.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(h,(0,e._)`[${h}, ${b}]`).else(),s.if(g,()=>{s.assign(p,!0),s.assign(h,b),x&&o.mergeEvaluated(x,e.Name)})})}}};return om.default=r,om}var im={},CM;function Dse(){if(CM)return im;CM=1,Object.defineProperty(im,"__esModule",{value:!0});const e=kt(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:o,it:s}=n;if(!Array.isArray(o))throw new Error("ajv implementation error");const l=r.name("valid");o.forEach((c,d)=>{if((0,e.alwaysValidSchema)(s,c))return;const f=n.subschema({keyword:"allOf",schemaProp:d},l);n.ok(l),n.mergeEvaluated(f)})}};return im.default=t,im}var sm={},AM;function Lse(){if(AM)return sm;AM=1,Object.defineProperty(sm,"__esModule",{value:!0});const e=mt(),t=kt(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:l,parentSchema:c,it:d}=s;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const f=o(d,"then"),p=o(d,"else");if(!f&&!p)return;const h=l.let("valid",!0),g=l.name("_valid");if(v(),s.reset(),f&&p){const b=l.let("ifClause");s.setParams({ifClause:b}),l.if(g,_("then",b),_("else",b))}else f?l.if(g,_("then")):l.if((0,e.not)(g),_("else"));s.pass(h,()=>s.error(!0));function v(){const b=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);s.mergeEvaluated(b)}function _(b,x){return()=>{const S=s.subschema({keyword:b},g);l.assign(h,g),s.mergeValidEvaluated(S,h),x?l.assign(x,(0,e._)`${b}`):s.setParams({ifClause:b})}}}};function o(s,l){const c=s.schema[l];return c!==void 0&&!(0,t.alwaysValidSchema)(s,c)}return sm.default=r,sm}var am={},IM;function $se(){if(IM)return am;IM=1,Object.defineProperty(am,"__esModule",{value:!0});const e=kt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:o}){r.if===void 0&&(0,e.checkStrictMode)(o,`"${n}" without "if" is ignored`)}};return am.default=t,am}var MM;function jse(){if(MM)return Zp;MM=1,Object.defineProperty(Zp,"__esModule",{value:!0});const e=F6(),t=Rse(),n=B6(),r=Ose(),o=Tse(),s=Cse(),l=Ase(),c=V6(),d=Ise(),f=Mse(),p=Pse(),h=Nse(),g=kse(),v=Dse(),_=Lse(),b=$se();function x(S=!1){const E=[p.default,h.default,g.default,v.default,_.default,b.default,l.default,c.default,s.default,d.default,f.default];return S?E.push(t.default,r.default):E.push(e.default,n.default),E.push(o.default),E}return Zp.default=x,Zp}var lm={},cm={},PM;function zse(){if(PM)return cm;PM=1,Object.defineProperty(cm,"__esModule",{value:!0});const e=mt(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,o){const{gen:s,data:l,$data:c,schema:d,schemaCode:f,it:p}=r,{opts:h,errSchemaPath:g,schemaEnv:v,self:_}=p;if(!h.validateFormats)return;c?b():x();function b(){const S=s.scopeValue("formats",{ref:_.formats,code:h.code.formats}),E=s.const("fDef",(0,e._)`${S}[${f}]`),T=s.let("fType"),R=s.let("format");s.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>s.assign(T,(0,e._)`${E}.type || "string"`).assign(R,(0,e._)`${E}.validate`),()=>s.assign(T,(0,e._)`"string"`).assign(R,E)),r.fail$data((0,e.or)(O(),A()));function O(){return h.strictSchema===!1?e.nil:(0,e._)`${f} && !${R}`}function A(){const I=v.$async?(0,e._)`(${E}.async ? await ${R}(${l}) : ${R}(${l}))`:(0,e._)`${R}(${l})`,P=(0,e._)`(typeof ${R} == "function" ? ${I} : ${R}.test(${l}))`;return(0,e._)`${R} && ${R} !== true && ${T} === ${o} && !${P}`}}function x(){const S=_.formats[d];if(!S){O();return}if(S===!0)return;const[E,T,R]=A(S);E===o&&r.pass(I());function O(){if(h.strictSchema===!1){_.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${d}" ignored in schema at path "${g}"`}}function A(P){const L=P instanceof RegExp?(0,e.regexpCode)(P):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,q=s.scopeValue("formats",{key:d,ref:P,code:L});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${q}.validate`]:["string",P,q]}function I(){if(typeof S=="object"&&!(S instanceof RegExp)&&S.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${R}(${l})`}return typeof T=="function"?(0,e._)`${R}(${l})`:(0,e._)`${R}.test(${l})`}}}};return cm.default=n,cm}var NM;function Use(){if(NM)return lm;NM=1,Object.defineProperty(lm,"__esModule",{value:!0});const t=[zse().default];return lm.default=t,lm}var Ya={},kM;function Fse(){return kM||(kM=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.contentVocabulary=Ya.metadataVocabulary=void 0,Ya.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ya.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Ya}var DM;function Bse(){if(DM)return Pp;DM=1,Object.defineProperty(Pp,"__esModule",{value:!0});const e=fse(),t=xse(),n=jse(),r=Use(),o=Fse(),s=[e.default,t.default,(0,n.default)(),r.default,o.metadataVocabulary,o.contentVocabulary];return Pp.default=s,Pp}var um={},bd={},LM;function Vse(){if(LM)return bd;LM=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(bd.DiscrError=e={})),bd}var $M;function qse(){if($M)return um;$M=1,Object.defineProperty(um,"__esModule",{value:!0});const e=mt(),t=Vse(),n=dE(),r=mv(),o=kt(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:f}})=>(0,e._)`{error: ${c}, tag: ${f}, tagValue: ${d}}`},code(c){const{gen:d,data:f,schema:p,parentSchema:h,it:g}=c,{oneOf:v}=h;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const _=p.propertyName;if(typeof _!="string")throw new Error("discriminator: requires propertyName");if(p.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const b=d.let("valid",!1),x=d.const("tag",(0,e._)`${f}${(0,e.getProperty)(_)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>S(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:_})),c.ok(b);function S(){const R=T();d.if(!1);for(const O in R)d.elseIf((0,e._)`${x} === ${O}`),d.assign(b,E(R[O]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:_}),d.endIf()}function E(R){const O=d.name("valid"),A=c.subschema({keyword:"oneOf",schemaProp:R},O);return c.mergeEvaluated(A,e.Name),O}function T(){var R;const O={},A=P(h);let I=!0;for(let j=0;j<v.length;j++){let B=v[j];if(B?.$ref&&!(0,o.schemaHasRulesButRef)(B,g.self.RULES)){const Z=B.$ref;if(B=n.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,Z),B instanceof n.SchemaEnv&&(B=B.schema),B===void 0)throw new r.default(g.opts.uriResolver,g.baseId,Z)}const F=(R=B?.properties)===null||R===void 0?void 0:R[_];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${_}"`);I=I&&(A||P(B)),L(F,j)}if(!I)throw new Error(`discriminator: "${_}" must be required`);return O;function P({required:j}){return Array.isArray(j)&&j.includes(_)}function L(j,B){if(j.const)q(j.const,B);else if(j.enum)for(const F of j.enum)q(F,B);else throw new Error(`discriminator: "properties/${_}" must have "const" or "enum"`)}function q(j,B){if(typeof j!="string"||j in O)throw new Error(`discriminator: "${_}" values must be unique strings`);O[j]=B}}}};return um.default=l,um}const Hse="http://json-schema.org/draft-07/schema#",Gse="http://json-schema.org/draft-07/schema#",Kse="Core schema meta-schema",Zse={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Yse=["object","boolean"],Wse={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Qse={$schema:Hse,$id:Gse,title:Kse,definitions:Zse,type:Yse,properties:Wse,default:!0};var jM;function Xse(){return jM||(jM=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=cse(),r=Bse(),o=qse(),s=Qse,l=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(_=>this.addVocabulary(_)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const _=this.opts.$data?this.$dataMetaSchema(s,l):s;this.addMetaSchema(_,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var f=pv();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var p=mt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var h=uE();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var g=mv();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Tp,Tp.exports)),Tp.exports}var dm={exports:{}},xb={},zM;function Jse(){return zM||(zM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(j,B){return{validate:j,compare:B}}e.fullFormats={date:t(s,l),time:t(d(!0),f),"date-time":t(g(!0),v),"iso-time":t(d(),p),"iso-date-time":t(g(),_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:S,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:T,int32:{type:"number",validate:A},int64:{type:"number",validate:I},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,_),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(j){return j%4===0&&(j%100!==0||j%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(j){const B=r.exec(j);if(!B)return!1;const F=+B[1],Z=+B[2],ie=+B[3];return Z>=1&&Z<=12&&ie>=1&&ie<=(Z===2&&n(F)?29:o[Z])}function l(j,B){if(j&&B)return j>B?1:j<B?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(j){return function(F){const Z=c.exec(F);if(!Z)return!1;const ie=+Z[1],H=+Z[2],W=+Z[3],te=Z[4],le=Z[5]==="-"?-1:1,Q=+(Z[6]||0),k=+(Z[7]||0);if(Q>23||k>59||j&&!te)return!1;if(ie<=23&&H<=59&&W<60)return!0;const G=H-k*le,V=ie-Q*le-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&W<61}}function f(j,B){if(!(j&&B))return;const F=new Date("2020-01-01T"+j).valueOf(),Z=new Date("2020-01-01T"+B).valueOf();if(F&&Z)return F-Z}function p(j,B){if(!(j&&B))return;const F=c.exec(j),Z=c.exec(B);if(F&&Z)return j=F[1]+F[2]+F[3],B=Z[1]+Z[2]+Z[3],j>B?1:j<B?-1:0}const h=/t|\s/i;function g(j){const B=d(j);return function(Z){const ie=Z.split(h);return ie.length===2&&s(ie[0])&&B(ie[1])}}function v(j,B){if(!(j&&B))return;const F=new Date(j).valueOf(),Z=new Date(B).valueOf();if(F&&Z)return F-Z}function _(j,B){if(!(j&&B))return;const[F,Z]=j.split(h),[ie,H]=B.split(h),W=l(F,ie);if(W!==void 0)return W||f(Z,H)}const b=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function S(j){return b.test(j)&&x.test(j)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function T(j){return E.lastIndex=0,E.test(j)}const R=-2147483648,O=2**31-1;function A(j){return Number.isInteger(j)&&j<=O&&j>=R}function I(j){return Number.isInteger(j)}function P(){return!0}const L=/[^\\]\\Z/;function q(j){if(L.test(j))return!1;try{return new RegExp(j),!0}catch{return!1}}})(xb)),xb}var Rb={},UM;function eae(){return UM||(UM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Xse(),n=mt(),r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:c,schemaCode:d})=>(0,n.str)`should be ${o[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,n._)`{comparison: ${o[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:d,data:f,schemaCode:p,keyword:h,it:g}=c,{opts:v,self:_}=g;if(!v.validateFormats)return;const b=new t.KeywordCxt(g,_.RULES.all.format.definition,"format");b.$data?x():S();function x(){const T=d.scopeValue("formats",{ref:_.formats,code:v.code.formats}),R=d.const("fmt",(0,n._)`${T}[${b.schemaCode}]`);c.fail$data((0,n.or)((0,n._)`typeof ${R} != "object"`,(0,n._)`${R} instanceof RegExp`,(0,n._)`typeof ${R}.compare != "function"`,E(R)))}function S(){const T=b.schema,R=_.formats[T];if(!R||R===!0)return;if(typeof R!="object"||R instanceof RegExp||typeof R.compare!="function")throw new Error(`"${h}": format "${T}" does not define "compare" function`);const O=d.scopeValue("formats",{key:T,ref:R,code:v.code.formats?(0,n._)`${v.code.formats}${(0,n.getProperty)(T)}`:void 0});c.fail$data(E(O))}function E(T){return(0,n._)`${T}.compare(${f}, ${p}) ${o[h].fail} 0`}},dependencies:["format"]};const l=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=l})(Rb)),Rb}var FM;function tae(){return FM||(FM=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Jse(),r=eae(),o=mt(),s=new o.Name("fullFormats"),l=new o.Name("fastFormats"),c=(f,p={keywords:!0})=>{if(Array.isArray(p))return d(f,p,n.fullFormats,s),f;const[h,g]=p.mode==="fast"?[n.fastFormats,l]:[n.fullFormats,s],v=p.formats||n.formatNames;return d(f,v,h,g),p.keywords&&(0,r.default)(f),f};c.get=(f,p="full")=>{const g=(p==="fast"?n.fastFormats:n.fullFormats)[f];if(!g)throw new Error(`Unknown format "${f}"`);return g};function d(f,p,h,g){var v,_;(v=(_=f.opts.code).formats)!==null&&v!==void 0||(_.formats=(0,o._)`require("ajv-formats/dist/formats").${g}`);for(const b of p)f.addFormat(b,h[b])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(dm,dm.exports)),dm.exports}var nae=tae();const lue=fl(nae);let hE;hE=globalThis.crypto;async function rae(e){return(await hE).getRandomValues(new Uint8Array(e))}async function oae(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%t.length;let r="";for(;r.length<e;){const o=await rae(e-r.length);for(const s of o)s<n&&(r+=t[s%t.length])}return r}async function iae(e){return await oae(e)}async function sae(e){const t=await(await hE).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function cue(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await iae(e),n=await sae(t);return{code_verifier:t,code_challenge:n}}const gr=TB().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:SV.custom,message:"URL must be parseable",fatal:!0}),O9}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),uue=vr({resource:$().url(),authorization_servers:Oe(gr).optional(),jwks_uri:$().url().optional(),scopes_supported:Oe($()).optional(),bearer_methods_supported:Oe($()).optional(),resource_signing_alg_values_supported:Oe($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Nt().optional(),authorization_details_types_supported:Oe($()).optional(),dpop_signing_alg_values_supported:Oe($()).optional(),dpop_bound_access_tokens_required:Nt().optional()}),aae=vr({issuer:$(),authorization_endpoint:gr,token_endpoint:gr,registration_endpoint:gr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),service_documentation:gr.optional(),revocation_endpoint:gr.optional(),revocation_endpoint_auth_methods_supported:Oe($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:Oe($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),code_challenge_methods_supported:Oe($()).optional(),client_id_metadata_document_supported:Nt().optional()}),lae=vr({issuer:$(),authorization_endpoint:gr,token_endpoint:gr,userinfo_endpoint:gr.optional(),jwks_uri:gr,registration_endpoint:gr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),acr_values_supported:Oe($()).optional(),subject_types_supported:Oe($()),id_token_signing_alg_values_supported:Oe($()),id_token_encryption_alg_values_supported:Oe($()).optional(),id_token_encryption_enc_values_supported:Oe($()).optional(),userinfo_signing_alg_values_supported:Oe($()).optional(),userinfo_encryption_alg_values_supported:Oe($()).optional(),userinfo_encryption_enc_values_supported:Oe($()).optional(),request_object_signing_alg_values_supported:Oe($()).optional(),request_object_encryption_alg_values_supported:Oe($()).optional(),request_object_encryption_enc_values_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),display_values_supported:Oe($()).optional(),claim_types_supported:Oe($()).optional(),claims_supported:Oe($()).optional(),service_documentation:$().optional(),claims_locales_supported:Oe($()).optional(),ui_locales_supported:Oe($()).optional(),claims_parameter_supported:Nt().optional(),request_parameter_supported:Nt().optional(),request_uri_parameter_supported:Nt().optional(),require_request_uri_registration:Nt().optional(),op_policy_uri:gr.optional(),op_tos_uri:gr.optional(),client_id_metadata_document_supported:Nt().optional()}),due=be({...lae.shape,...aae.pick({code_challenge_methods_supported:!0}).shape}),fue=be({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:J3().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),hue=be({error:$(),error_description:$().optional(),error_uri:$().optional()}),BM=gr.optional().or(Ge("").transform(()=>{})),cae=be({redirect_uris:Oe(gr),token_endpoint_auth_method:$().optional(),grant_types:Oe($()).optional(),response_types:Oe($()).optional(),client_name:$().optional(),client_uri:gr.optional(),logo_uri:BM,scope:$().optional(),contacts:Oe($()).optional(),tos_uri:BM,policy_uri:$().optional(),jwks_uri:gr.optional(),jwks:ZB().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),uae=be({client_id:$(),client_secret:$().optional(),client_id_issued_at:ct().optional(),client_secret_expires_at:ct().optional()}).strip(),pue=cae.merge(uae);be({error:$(),error_description:$().optional()}).strip();be({token:$(),token_type_hint:$().optional()}).strip();class wr extends Error{constructor(t,n){super(t),this.errorUri=n,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class rw extends wr{}rw.errorCode="invalid_request";class ow extends wr{}ow.errorCode="invalid_client";class iw extends wr{}iw.errorCode="invalid_grant";class sw extends wr{}sw.errorCode="unauthorized_client";class aw extends wr{}aw.errorCode="unsupported_grant_type";class lw extends wr{}lw.errorCode="invalid_scope";class cw extends wr{}cw.errorCode="access_denied";class uw extends wr{}uw.errorCode="server_error";class dw extends wr{}dw.errorCode="temporarily_unavailable";class fw extends wr{}fw.errorCode="unsupported_response_type";class hw extends wr{}hw.errorCode="unsupported_token_type";class pw extends wr{}pw.errorCode="invalid_token";class mw extends wr{}mw.errorCode="method_not_allowed";class gw extends wr{}gw.errorCode="too_many_requests";class vw extends wr{}vw.errorCode="invalid_client_metadata";class yw extends wr{}yw.errorCode="insufficient_scope";class _w extends wr{}_w.errorCode="invalid_target";const mue={[rw.errorCode]:rw,[ow.errorCode]:ow,[iw.errorCode]:iw,[sw.errorCode]:sw,[aw.errorCode]:aw,[lw.errorCode]:lw,[cw.errorCode]:cw,[uw.errorCode]:uw,[dw.errorCode]:dw,[fw.errorCode]:fw,[hw.errorCode]:hw,[pw.errorCode]:pw,[mw.errorCode]:mw,[gw.errorCode]:gw,[vw.errorCode]:vw,[yw.errorCode]:yw,[_w.errorCode]:_w};async function q6(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(n){if(n instanceof dv&&n.code===uf.MethodNotFound)return{resources:[]};throw n}}async function dae(e,t){return await e.readResource({uri:t})}function gue(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=lv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>q6(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],ff(c)}function vue(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=lv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>q6(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],mP(c)}function yue(e){const t=ir.c(15);let n,r,o;t[0]!==e?({client:n,uri:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o):(n=t[1],r=t[2],o=t[3]);let s;t[4]!==n||t[5]!==o?(s=lv.mcpReadResource(n,o),t[4]=n,t[5]=o,t[6]=s):s=t[6];let l;t[7]!==n||t[8]!==o?(l=()=>dae(n,o),t[7]=n,t[8]=o,t[9]=l):l=t[9];const c=r.staleTime??3e4;let d;return t[10]!==r||t[11]!==s||t[12]!==l||t[13]!==c?(d={...r,queryKey:s,queryFn:l,staleTime:c,retry:!1},t[10]=r,t[11]=s,t[12]=l,t[13]=c,t[14]=d):d=t[14],ff(d)}const H6="ui-resource-html";function _ue(e){const t=ir.c(20);let n,r,o,s,l;t[0]!==e?({orgSlug:o,connectionId:n,uri:l,meshUrl:r,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);let c;t[6]!==n||t[7]!==o||t[8]!==l?(c=lv.mcpUiResourceHtml(o,n,l),t[6]=n,t[7]=o,t[8]=l,t[9]=c):c=t[9];let d;t[10]!==n||t[11]!==r||t[12]!==o||t[13]!==l?(d=async()=>{const g=`${r??(typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(o)}/mcp/${encodeURIComponent(n)}/ui-resource?uri=${encodeURIComponent(l)}`,v=await fetch(g,{credentials:"include"});if(!v.ok)throw new Error(`Failed to read UI resource (${v.status})`);return v.text()},t[10]=n,t[11]=r,t[12]=o,t[13]=l,t[14]=d):d=t[14];const f=s.staleTime??3e4;let p;return t[15]!==s||t[16]!==c||t[17]!==d||t[18]!==f?(p={...s,queryKey:c,queryFn:d,staleTime:f,retry:!1},t[15]=s,t[16]=c,t[17]=d,t[18]=f,t[19]=p):p=t[19],ff(p)}const fae=be({authorizationEndpoint:$().url(),tokenEndpoint:$().url(),introspectionEndpoint:$().url().optional(),clientId:$(),clientSecret:$().optional(),scopes:Oe($()),grantType:sn(["authorization_code","client_credentials"])}),VM=be({type:Ge("object"),properties:Mt($(),Gt()).optional(),required:Oe($()).optional()}).catchall(Gt()),hae=cE.extend({inputSchema:VM,outputSchema:VM.optional()}),pae=be({headers:Mt($(),$()).optional()}),mae=be({command:$().describe("Command to run (e.g., 'npx', 'node')"),args:Oe($()).optional().describe("Command arguments"),cwd:$().optional().describe("Working directory"),envVars:Mt($(),$()).optional().describe("Environment variables (encrypted in storage)")}),G6=be({id:$().describe("Unique identifier for the connection"),title:$().describe("Human-readable name for the connection"),created_at:$().describe("When the connection was created"),updated_at:$().describe("When the connection was last updated"),created_by:$().describe("User ID who created the connection"),updated_by:$().optional().describe("User ID who last updated the connection"),organization_id:$().describe("Organization ID this connection belongs to"),description:$().nullable().describe("Description of the connection"),icon:$().nullable().describe("Icon URL for the connection"),app_name:$().nullable().describe("Associated app name"),app_id:$().nullable().describe("Associated app ID"),slug:$().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:sn(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:$().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:$().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:fn([mae,pae]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:fae.nullable().describe("OAuth configuration"),configuration_state:Mt($(),Gt()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:Oe($()).nullable().optional().describe("Configuration scopes"),metadata:Mt($(),Gt()).nullable().describe("Additional metadata (includes repository info)"),tools:Oe(hae).nullable().describe("Discovered tools from MCP"),bindings:Oe($()).nullable().describe("Detected bindings"),status:sn(["active","inactive","error"]).describe("Current status")});G6.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:$().nullish()});G6.partial();function bue(e){return e!=null&&"command"in e}function wue(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const Nd=be({connection_id:$().describe("Connection ID"),selected_tools:Oe($()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:Oe($()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:Oe($()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),K6=Nd.extend({selected_tools:Nd.shape.selected_tools.optional(),selected_resources:Nd.shape.selected_resources.optional(),selected_prompts:Nd.shape.selected_prompts.optional()}),gae=be({connectionId:$(),toolName:$(),label:$(),icon:$().nullable().optional()}),vae=be({id:$().describe("Stable id; used as React key and ?tab= value"),title:$().describe("Tab label"),icon:$().optional().describe("Optional lucide icon name"),view:be({type:Ge("ext-app"),appId:$(),args:Mt($(),Gt()).optional()})}),yae=be({defaultMainView:be({type:$(),id:$().optional(),toolName:$().optional()}).nullable().optional(),chatDefaultOpen:Nt().nullable().optional(),tabs:Oe(vae).optional()}),qM=be({tileId:$().optional(),connectionId:$().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:$().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:$().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Mt($(),Gt()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:ct().int().positive().optional(),maxHeight:ct().int().positive().optional()}),pE=be({banner:$().nullable().optional(),bannerColor:$().nullable().optional(),icon:$().nullable().optional(),themeColor:$().nullable().optional(),pinnedViews:Oe(gae).nullable().optional(),layout:yae.nullable().optional(),homeTile:qM.nullable().optional(),homeTiles:Oe(qM).nullable().optional(),homePrompts:Oe($()).nullable().optional()});function Sue(e){const t=e?.homeTiles;if(Array.isArray(t)&&t.length>0)return t;const n=e?.homeTile;return n?[n]:[]}const _ae=/^[A-Za-z_][A-Za-z0-9_]*$/,HM=$().min(1).regex(_ae,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),bae=Vw("kind",[be({key:HM,kind:Ge("literal"),value:$()}),be({key:HM,kind:Ge("secret"),secretId:$().min(1)})]),mE=be({selected:$().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:$().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:$().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:Oe(bae).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that mesh resolves via the credential vault before posting /_sandbox/config.")}),gE=be({url:$().describe("GitHub repository URL"),owner:$().describe("Repository owner"),name:$().describe("Repository name"),installationId:ct().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:$().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),wae=sn(["agent-sandbox","user-desktop"]),Sae=sn(["agent-sandbox","user-desktop","cluster"]);function Z6(e){return e==="cluster"?"agent-sandbox":e}const Y6={sandboxHandle:$().describe("Provider-specific handle"),previewUrl:$().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:$().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:wae.optional(),createdAt:ct().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:be({packageManager:$().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:$().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:$().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},W6=be(Y6),Eae=be({...Y6,sandboxProviderKind:Sae.optional()});function xae(e){const t=Eae.parse(e);return W6.parse({...t,sandboxProviderKind:t.sandboxProviderKind?Z6(t.sandboxProviderKind):void 0})}function Eue(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const t=e,n={};for(const[r,o]of Object.entries(t)){if(!o||typeof o!="object"||r!=="cluster"&&r!=="agent-sandbox"&&r!=="user-desktop")continue;const s=Z6(r);try{if(r==="cluster"&&n[s])continue;n[s]=xae(o)}catch{}}return n}const vE=Mt($().describe("userId"),Mt($().describe("branch"),Mt($().describe("sandboxProviderKind"),W6))),Rae=be({id:$().describe("Stable identifier for this knowledge file"),name:$().describe("File name shown in the UI"),kind:sn(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:$().describe("Org filesystem (Library) volume the file lives in"),path:$().describe("Path within the volume"),url:$().describe("Same-origin URL to read the file (display/download)"),contentType:$().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:ct().nullable().optional().describe("File size in bytes"),addedAt:$().describe("ISO timestamp when the file was attached")}),yE=Oe(Rae).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),xue=be({id:$().describe("Unique identifier"),title:$().describe("Human-readable name"),description:$().nullable().describe("Description"),icon:$().nullable().describe("Icon URL"),created_at:$().describe("Creation timestamp"),updated_at:$().describe("Last update timestamp"),created_by:$().describe("User ID who created this item"),updated_by:$().optional().describe("User ID who last updated this item"),organization_id:$().describe("Organization ID this item belongs to"),status:sn(["active","inactive"]).describe("Current status"),pinned:Nt().describe("Whether this space is pinned to the sidebar"),metadata:be({instructions:$().nullable().describe("Instructions also used as system prompt"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),liveAgentId:$().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:pE.nullable().optional().describe("UI customization settings"),githubRepo:gE.nullable().optional().describe("Linked GitHub repository"),runtime:mE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:vE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:yE,siteSlug:$().nullable().optional().describe("Linked asset site slug (managed storage tenancy)")}).loose().describe("Metadata"),connections:Oe(Nd).describe("Connections with their selected tools, resources, and prompts")});be({title:$().min(1).max(255).describe("Name for the virtual MCP"),description:$().nullable().optional().describe("Optional description"),icon:$().nullish().describe("Optional icon URL"),status:sn(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:Nt().optional().default(!1).describe("Pin to sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),liveAgentId:$().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:pE.nullable().optional().describe("UI customization settings"),githubRepo:gE.nullable().optional().describe("Linked GitHub repository"),runtime:mE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:vE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:yE,siteSlug:$().nullable().optional().describe("Linked asset site slug (managed storage tenancy)")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(K6).describe("Connections to include/exclude (can be empty for exclusion mode)")});be({title:$().min(1).max(255).optional().describe("New name"),description:$().nullable().optional().describe("New description (null to clear)"),icon:$().nullish().describe("New icon URL"),status:sn(["active","inactive"]).optional().describe("New status"),pinned:Nt().optional().describe("Pin/unpin from sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),liveAgentId:$().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:pE.nullable().optional().describe("UI customization settings"),githubRepo:gE.nullable().optional().describe("Linked GitHub repository"),runtime:mE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:vE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:yE,siteSlug:$().nullable().optional().describe("Linked asset site slug (managed storage tenancy)")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(K6).optional().describe("New connections (replaces existing)")});var GM;(function(e){e.Completable="McpCompletable"})(GM||(GM={}));const Oae="mesh-ui-resources",Og="html",Tae=10080*60*1e3,Cae=50,Aae=16*1024*1024;function Iae(e){return e[0]==="mcp"&&e[1]===H6}function gv(){return new Promise((e,t)=>{const n=indexedDB.open(Oae,1);n.onupgradeneeded=()=>{n.result.objectStoreNames.contains(Og)||n.result.createObjectStore(Og)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}function eu(e,t){return e.transaction(Og,t).objectStore(Og)}function bw(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}async function Mae(e){if(!(typeof indexedDB>"u"))try{const t=await gv(),n=eu(t,"readonly"),r=await bw(n.getAllKeys()),o=await bw(n.getAll()),s=Date.now(),l=r.map((f,p)=>({key:f,value:o[p]})).sort((f,p)=>(p.value?.updatedAt??0)-(f.value?.updatedAt??0)),c=[];let d=0;for(const{key:f,value:p}of l){if(!p||s-p.updatedAt>Tae||d>=Cae){c.push(f);continue}d++;try{const g=JSON.parse(String(f));e.getQueryData(g)===void 0&&e.setQueryData(g,p.html,{updatedAt:0})}catch{c.push(f)}}if(c.length>0){const f=eu(t,"readwrite");for(const p of c)f.delete(p)}}catch{}}function Pae(e){if(typeof indexedDB>"u")return()=>{};const t=gv().catch(()=>null);return e.getQueryCache().subscribe(n=>{const r=n.query;if(!Array.isArray(r.queryKey)||!Iae(r.queryKey)||r.state.status!=="success")return;const o=r.state.data;typeof o!="string"||o.length>Aae||t.then(s=>{if(s)try{eu(s,"readwrite").put({html:o,updatedAt:Date.now()},JSON.stringify(r.queryKey))}catch{}})})}function Nae(){typeof indexedDB>"u"||gv().then(e=>eu(e,"readwrite").clear()).catch(()=>{})}async function Rue(e){if(!(typeof indexedDB>"u"))try{const t=await gv(),n=await bw(eu(t,"readonly").getAllKeys()),r=eu(t,"readwrite");for(const o of n)try{const s=JSON.parse(String(o));s[1]===H6&&s[3]===e&&r.delete(o)}catch{}}catch{}}const Tg="mesh:rq-cache",Q6=1440*60*1e3,kae=1e3,Dae=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Lae=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let X6=!1,J6=!1;function $ae(e){const t=e[0];return typeof t=="string"&&Dae.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Lae.has(e[4])}function jae(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Tg);if(!t)return;const n=JSON.parse(t),r=!n.timestamp||Date.now()-n.timestamp>Q6;if(n.buster!=="3.98.0"||r||!n.state){window.localStorage.removeItem(Tg);return}n8(e,n.state),X6=!0}catch{Uae()}}function zae(e){if(typeof window>"u")return()=>{};let t=null;const n=()=>{t=null;try{const r=t8(e,{shouldDehydrateQuery:o=>o.state.status==="success"&&$ae(o.queryKey)});window.localStorage.setItem(Tg,JSON.stringify({buster:"3.98.0",timestamp:Date.now(),state:r}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(n,kae))})}const eL="studio:org-cache:";function tL(e){return`${eL}${e}`}function Oue(e,t){if(typeof window>"u")return null;try{const n=window.localStorage.getItem(tL(e));if(!n)return null;const r=JSON.parse(n)[t];return!r||Date.now()-r.updatedAt>Q6?null:(J6=!0,r)}catch{return null}}function Tue(e,t,n){if(!(typeof window>"u"))try{const r=tL(e),o=window.localStorage.getItem(r),s=o?JSON.parse(o):{};s[t]={data:n,updatedAt:Date.now()},window.localStorage.setItem(r,JSON.stringify(s))}catch{}}function Uae(){if(Nae(),!(typeof window>"u"))try{window.localStorage.removeItem(Tg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(eL)&&window.localStorage.removeItem(t)}}catch{}}function Fae(){return X6}function Bae(){return J6}let ps=!1,ww=null,KM=!1;const _E="mesh:lp-distinct-id",Vae=1440*60*1e3;function nL(){try{const e=window.localStorage.getItem(_E);if(!e)return;const{id:t,ts:n}=JSON.parse(e);return typeof t!="string"||!t||typeof n!="number"?void 0:Date.now()-n<=Vae?t:void 0}catch{return}}function qae(){try{window.localStorage.removeItem(_E)}catch{}}function Hae(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(_E,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const n=t??nL();return n?Object.keys(window.localStorage).some(o=>o.startsWith("ph_")&&o.endsWith("_posthog"))?void 0:n:void 0}catch{return}}function Gae(e){const t=nL();if(t&&(qae(),t!==e))try{_l.alias(t)}catch{}}function Kae(e,t){if(ps||typeof window>"u")return;const n=Hae();_l.init(e,{api_host:t,ui_host:"https://us.posthog.com",...n?{bootstrap:{distinctID:n}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture"},person_profiles:"identified_only"}),ps=!0}function Zae(e,t){ps&&(_l.identify(e,t),Gae(e))}function Yae(){ps&&(_l.reset(),ww=null)}function Wae(e,t){ps&&_l.capture(e,t)}function Cue(){return ps}function Aue(){if(!ps||KM||typeof performance>"u")return;KM=!0;const e=performance.getEntriesByType("navigation")[0],t=n=>{const r=performance.getEntriesByName(n,"measure")[0];return r?Math.round(r.duration):void 0};Wae("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Fae(),org_cache_restored:Bae()})}function Iue(e,t){ps&&e!==ww&&(_l.group("organization",e,t),ww=e)}function rL(e,t){if(ps)try{_l.captureException(e,t)}catch{}}let fm=null;function Qae({children:e}){const t=vP(),{data:n}=Bg.useSession();if(t.posthog){Kae(t.posthog.key,t.posthog.host);const r=n?.user?.id??null;r&&r!==fm?(Zae(r,{email:n?.user?.email,name:n?.user?.name}),fm=r):!r&&fm&&(Yae(),fm=null)}return C.jsx(C.Fragment,{children:e})}const bE=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));bE.displayName="AlertTriangle";const oL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));oL.displayName="Archive";const iL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));iL.displayName="Loading01";const sL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));sL.displayName="Lock01";const aL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));aL.displayName="RefreshCw01";function wE(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=C.jsx("div",{className:"flex items-center justify-center min-h-screen",children:C.jsx(iL,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Xae(e){try{return JSON.parse(e)}catch{return}}function ZM(e,t){const n=localStorage.getItem(e),r=n?Xae(n):void 0,o=typeof t=="function"?t(r):r??t;if(r===void 0||o!==r)try{const s=JSON.stringify(o);localStorage.setItem(e,s)}catch{}return o}function Jae(e,t){const n=ir.c(25),r=Aw();let o;n[0]!==e?(o=["localStorage",e],n[0]=e,n[1]=o):o=n[1];const s=o;let l,c;n[2]!==t||n[3]!==e?(l=()=>ZM(e,t),c=()=>ZM(e,t),n[2]=t,n[3]=e,n[4]=l,n[5]=c):(l=n[4],c=n[5]);let d;n[6]!==s||n[7]!==l||n[8]!==c?(d={queryKey:s,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},n[6]=s,n[7]=l,n[8]=c,n[9]=d):d=n[9];const{data:f}=mP(d);let p;n[10]!==e?(p=async E=>{const T=JSON.stringify(E);return localStorage.setItem(e,T),E},n[10]=e,n[11]=p):p=n[11];let h;n[12]!==r||n[13]!==s?(h=E=>{r.setQueryData(s,E)},n[12]=r,n[13]=s,n[14]=h):h=n[14];let g;n[15]!==p||n[16]!==h?(g={mutationFn:p,onSuccess:h},n[15]=p,n[16]=h,n[17]=g):g=n[17];const v=O8(g);let _;n[18]!==v||n[19]!==r||n[20]!==s?(_=E=>{const T=r.getQueryData(s),R=typeof E=="function"?E(T):E;v.mutate(R)},n[18]=v,n[19]=r,n[20]=s,n[21]=_):_=n[21];const b=_,x=f;let S;return n[22]!==b||n[23]!==x?(S=[x,b],n[22]=b,n[23]=x,n[24]=S):S=n[24],S}const su={assistantChatTasks:e=>`mesh:assistant-chat:tasks:${e}`,messages:(e,t)=>`mesh:messages:${e}:${t}`,chatSelectedMode:e=>`mesh:chat:selectedMode:${e}`,chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`mesh:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,assistantChatActiveTask:e=>`mesh:assistant-chat:active-task:${e}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",tasksPanelWidth:()=>"mesh:tasks-panel:width",sidebarOpen:()=>"mesh:sidebar-open",orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,storeShowStdio:()=>"mesh:store:show-stdio",preferences:()=>"mesh:user:preferences",pluginConnection:(e,t)=>`mesh:plugin:connection:${e}:${t}`,lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,sidebarOrgPinnedOrder:e=>`sidebar.org-pinned-order.${e}`},ele={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system"},lL=["auto","readonly"],Mue=[{value:"readonly",label:"Ask before edit",short:"Ask"},{value:"auto",label:"Auto approve",short:"Auto"}],tle=["light","dark","system"];function Pue(){try{const e=JSON.parse(localStorage.getItem(su.preferences())??"{}");if(lL.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function nle(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=su.preferences(),e[0]=t):t=e[0],Jae(t,rle)}function rle(e){const t={...ele,...e};return lL.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),tle.includes(t.theme)||(t.theme="system"),t}async function ole(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function ile(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const n=[];if(e.light&&Object.keys(e.light).length>0){const r=Object.entries(e.light).map(([o,s])=>` ${o}: ${s};`).join(`
163
+ deps: ${p}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[f,p]=s(d);l(d,f),c(d,p)}};function s({schema:d}){const f={},p={};for(const h in d){if(h==="__proto__")continue;const g=Array.isArray(d[h])?f:p;g[h]=d[h]}return[f,p]}function l(d,f=d.schema){const{gen:p,data:h,it:g}=d;if(Object.keys(f).length===0)return;const v=p.let("missing");for(const _ in f){const b=f[_];if(b.length===0)continue;const x=(0,r.propertyInData)(p,h,_,g.opts.ownProperties);d.setParams({property:_,depsCount:b.length,deps:b.join(", ")}),g.allErrors?p.if(x,()=>{for(const S of b)(0,r.checkReportMissingProp)(d,S)}):(p.if((0,t._)`${x} && (${(0,r.checkMissingProp)(d,b,v)})`),(0,r.reportMissingProp)(d,v),p.else())}}e.validatePropertyDeps=l;function c(d,f=d.schema){const{gen:p,data:h,keyword:g,it:v}=d,_=p.name("valid");for(const b in f)(0,n.alwaysValidSchema)(v,f[b])||(p.if((0,r.propertyInData)(p,h,b,v.opts.ownProperties),()=>{const x=d.subschema({keyword:g,schemaProp:b},_);d.mergeValidEvaluated(x,_)},()=>p.var(_,!0)),d.ok(_))}e.validateSchemaDeps=c,e.default=o})(Eb)),Eb}var Xp={},wM;function Ase(){if(wM)return Xp;wM=1,Object.defineProperty(Xp,"__esModule",{value:!0});const e=mt(),t=kt(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:o})=>(0,e._)`{propertyName: ${o.propertyName}}`},code(o){const{gen:s,schema:l,data:c,it:d}=o;if((0,t.alwaysValidSchema)(d,l))return;const f=s.name("valid");s.forIn("key",c,p=>{o.setParams({propertyName:p}),o.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),d.allErrors||s.break()})}),o.ok(f)}};return Xp.default=r,Xp}var Jp={},SM;function V6(){if(SM)return Jp;SM=1,Object.defineProperty(Jp,"__esModule",{value:!0});const e=li(),t=mt(),n=wa(),r=kt(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:c,schema:d,parentSchema:f,data:p,errsCount:h,it:g}=l;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:_}=g;if(g.props=!0,_.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(g,d))return;const b=(0,e.allSchemaProperties)(f.properties),x=(0,e.allSchemaProperties)(f.patternProperties);S(),l.ok((0,t._)`${h} === ${n.default.errors}`);function S(){c.forIn("key",p,A=>{!b.length&&!x.length?R(A):c.if(E(A),()=>R(A))})}function E(A){let I;if(b.length>8){const P=(0,r.schemaRefOrVal)(g,f.properties,"properties");I=(0,e.isOwnProperty)(c,P,A)}else b.length?I=(0,t.or)(...b.map(P=>(0,t._)`${A} === ${P}`)):I=t.nil;return x.length&&(I=(0,t.or)(I,...x.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${A})`))),(0,t.not)(I)}function T(A){c.code((0,t._)`delete ${p}[${A}]`)}function R(A){if(_.removeAdditional==="all"||_.removeAdditional&&d===!1){T(A);return}if(d===!1){l.setParams({additionalProperty:A}),l.error(),v||c.break();return}if(typeof d=="object"&&!(0,r.alwaysValidSchema)(g,d)){const I=c.name("valid");_.removeAdditional==="failing"?(O(A,I,!1),c.if((0,t.not)(I),()=>{l.reset(),T(A)})):(O(A,I),v||c.if((0,t.not)(I),()=>c.break()))}}function O(A,I,P){const L={keyword:"additionalProperties",dataProp:A,dataPropType:r.Type.Str};P===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(L,I)}}};return Jp.default=s,Jp}var em={},EM;function Ise(){if(EM)return em;EM=1,Object.defineProperty(em,"__esModule",{value:!0});const e=pv(),t=li(),n=kt(),r=V6(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,parentSchema:d,data:f,it:p}=s;p.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(p,r.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const x of h)p.definedProperties.add(x);p.opts.unevaluated&&h.length&&p.props!==!0&&(p.props=n.mergeEvaluated.props(l,(0,n.toHash)(h),p.props));const g=h.filter(x=>!(0,n.alwaysValidSchema)(p,c[x]));if(g.length===0)return;const v=l.name("valid");for(const x of g)_(x)?b(x):(l.if((0,t.propertyInData)(l,f,x,p.opts.ownProperties)),b(x),p.allErrors||l.else().var(v,!0),l.endIf()),s.it.definedProperties.add(x),s.ok(v);function _(x){return p.opts.useDefaults&&!p.compositeRule&&c[x].default!==void 0}function b(x){s.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return em.default=o,em}var tm={},xM;function Mse(){if(xM)return tm;xM=1,Object.defineProperty(tm,"__esModule",{value:!0});const e=li(),t=mt(),n=kt(),r=kt(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,data:d,parentSchema:f,it:p}=s,{opts:h}=p,g=(0,e.allSchemaProperties)(c),v=g.filter(R=>(0,n.alwaysValidSchema)(p,c[R]));if(g.length===0||v.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const _=h.strictSchema&&!h.allowMatchingProperties&&f.properties,b=l.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,r.evaluatedPropsToName)(l,p.props));const{props:x}=p;S();function S(){for(const R of g)_&&E(R),p.allErrors?T(R):(l.var(b,!0),T(R),l.if(b))}function E(R){for(const O in _)new RegExp(R).test(O)&&(0,n.checkStrictMode)(p,`property ${O} matches pattern ${R} (use allowMatchingProperties)`)}function T(R){l.forIn("key",d,O=>{l.if((0,t._)`${(0,e.usePattern)(s,R)}.test(${O})`,()=>{const A=v.includes(R);A||s.subschema({keyword:"patternProperties",schemaProp:R,dataProp:O,dataPropType:r.Type.Str},b),p.opts.unevaluated&&x!==!0?l.assign((0,t._)`${x}[${O}]`,!0):!A&&!p.allErrors&&l.if((0,t.not)(b),()=>l.break())})})}}};return tm.default=o,tm}var nm={},RM;function Pse(){if(RM)return nm;RM=1,Object.defineProperty(nm,"__esModule",{value:!0});const e=kt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:o,it:s}=n;if((0,e.alwaysValidSchema)(s,o)){n.fail();return}const l=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),n.failResult(l,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return nm.default=t,nm}var rm={},OM;function Nse(){if(OM)return rm;OM=1,Object.defineProperty(rm,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:li().validateUnion,error:{message:"must match a schema in anyOf"}};return rm.default=t,rm}var om={},TM;function kse(){if(TM)return om;TM=1,Object.defineProperty(om,"__esModule",{value:!0});const e=mt(),t=kt(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:o})=>(0,e._)`{passingSchemas: ${o.passing}}`},code(o){const{gen:s,schema:l,parentSchema:c,it:d}=o;if(!Array.isArray(l))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const f=l,p=s.let("valid",!1),h=s.let("passing",null),g=s.name("_valid");o.setParams({passing:h}),s.block(v),o.result(p,()=>o.reset(),()=>o.error(!0));function v(){f.forEach((_,b)=>{let x;(0,t.alwaysValidSchema)(d,_)?s.var(g,!0):x=o.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},g),b>0&&s.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(h,(0,e._)`[${h}, ${b}]`).else(),s.if(g,()=>{s.assign(p,!0),s.assign(h,b),x&&o.mergeEvaluated(x,e.Name)})})}}};return om.default=r,om}var im={},CM;function Dse(){if(CM)return im;CM=1,Object.defineProperty(im,"__esModule",{value:!0});const e=kt(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:o,it:s}=n;if(!Array.isArray(o))throw new Error("ajv implementation error");const l=r.name("valid");o.forEach((c,d)=>{if((0,e.alwaysValidSchema)(s,c))return;const f=n.subschema({keyword:"allOf",schemaProp:d},l);n.ok(l),n.mergeEvaluated(f)})}};return im.default=t,im}var sm={},AM;function Lse(){if(AM)return sm;AM=1,Object.defineProperty(sm,"__esModule",{value:!0});const e=mt(),t=kt(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:l,parentSchema:c,it:d}=s;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const f=o(d,"then"),p=o(d,"else");if(!f&&!p)return;const h=l.let("valid",!0),g=l.name("_valid");if(v(),s.reset(),f&&p){const b=l.let("ifClause");s.setParams({ifClause:b}),l.if(g,_("then",b),_("else",b))}else f?l.if(g,_("then")):l.if((0,e.not)(g),_("else"));s.pass(h,()=>s.error(!0));function v(){const b=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);s.mergeEvaluated(b)}function _(b,x){return()=>{const S=s.subschema({keyword:b},g);l.assign(h,g),s.mergeValidEvaluated(S,h),x?l.assign(x,(0,e._)`${b}`):s.setParams({ifClause:b})}}}};function o(s,l){const c=s.schema[l];return c!==void 0&&!(0,t.alwaysValidSchema)(s,c)}return sm.default=r,sm}var am={},IM;function $se(){if(IM)return am;IM=1,Object.defineProperty(am,"__esModule",{value:!0});const e=kt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:o}){r.if===void 0&&(0,e.checkStrictMode)(o,`"${n}" without "if" is ignored`)}};return am.default=t,am}var MM;function jse(){if(MM)return Zp;MM=1,Object.defineProperty(Zp,"__esModule",{value:!0});const e=F6(),t=Rse(),n=B6(),r=Ose(),o=Tse(),s=Cse(),l=Ase(),c=V6(),d=Ise(),f=Mse(),p=Pse(),h=Nse(),g=kse(),v=Dse(),_=Lse(),b=$se();function x(S=!1){const E=[p.default,h.default,g.default,v.default,_.default,b.default,l.default,c.default,s.default,d.default,f.default];return S?E.push(t.default,r.default):E.push(e.default,n.default),E.push(o.default),E}return Zp.default=x,Zp}var lm={},cm={},PM;function zse(){if(PM)return cm;PM=1,Object.defineProperty(cm,"__esModule",{value:!0});const e=mt(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,o){const{gen:s,data:l,$data:c,schema:d,schemaCode:f,it:p}=r,{opts:h,errSchemaPath:g,schemaEnv:v,self:_}=p;if(!h.validateFormats)return;c?b():x();function b(){const S=s.scopeValue("formats",{ref:_.formats,code:h.code.formats}),E=s.const("fDef",(0,e._)`${S}[${f}]`),T=s.let("fType"),R=s.let("format");s.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>s.assign(T,(0,e._)`${E}.type || "string"`).assign(R,(0,e._)`${E}.validate`),()=>s.assign(T,(0,e._)`"string"`).assign(R,E)),r.fail$data((0,e.or)(O(),A()));function O(){return h.strictSchema===!1?e.nil:(0,e._)`${f} && !${R}`}function A(){const I=v.$async?(0,e._)`(${E}.async ? await ${R}(${l}) : ${R}(${l}))`:(0,e._)`${R}(${l})`,P=(0,e._)`(typeof ${R} == "function" ? ${I} : ${R}.test(${l}))`;return(0,e._)`${R} && ${R} !== true && ${T} === ${o} && !${P}`}}function x(){const S=_.formats[d];if(!S){O();return}if(S===!0)return;const[E,T,R]=A(S);E===o&&r.pass(I());function O(){if(h.strictSchema===!1){_.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${d}" ignored in schema at path "${g}"`}}function A(P){const L=P instanceof RegExp?(0,e.regexpCode)(P):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,q=s.scopeValue("formats",{key:d,ref:P,code:L});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${q}.validate`]:["string",P,q]}function I(){if(typeof S=="object"&&!(S instanceof RegExp)&&S.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${R}(${l})`}return typeof T=="function"?(0,e._)`${R}(${l})`:(0,e._)`${R}.test(${l})`}}}};return cm.default=n,cm}var NM;function Use(){if(NM)return lm;NM=1,Object.defineProperty(lm,"__esModule",{value:!0});const t=[zse().default];return lm.default=t,lm}var Ya={},kM;function Fse(){return kM||(kM=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.contentVocabulary=Ya.metadataVocabulary=void 0,Ya.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ya.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Ya}var DM;function Bse(){if(DM)return Pp;DM=1,Object.defineProperty(Pp,"__esModule",{value:!0});const e=fse(),t=xse(),n=jse(),r=Use(),o=Fse(),s=[e.default,t.default,(0,n.default)(),r.default,o.metadataVocabulary,o.contentVocabulary];return Pp.default=s,Pp}var um={},bd={},LM;function Vse(){if(LM)return bd;LM=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(bd.DiscrError=e={})),bd}var $M;function qse(){if($M)return um;$M=1,Object.defineProperty(um,"__esModule",{value:!0});const e=mt(),t=Vse(),n=dE(),r=mv(),o=kt(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:f}})=>(0,e._)`{error: ${c}, tag: ${f}, tagValue: ${d}}`},code(c){const{gen:d,data:f,schema:p,parentSchema:h,it:g}=c,{oneOf:v}=h;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const _=p.propertyName;if(typeof _!="string")throw new Error("discriminator: requires propertyName");if(p.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const b=d.let("valid",!1),x=d.const("tag",(0,e._)`${f}${(0,e.getProperty)(_)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>S(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:_})),c.ok(b);function S(){const R=T();d.if(!1);for(const O in R)d.elseIf((0,e._)`${x} === ${O}`),d.assign(b,E(R[O]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:_}),d.endIf()}function E(R){const O=d.name("valid"),A=c.subschema({keyword:"oneOf",schemaProp:R},O);return c.mergeEvaluated(A,e.Name),O}function T(){var R;const O={},A=P(h);let I=!0;for(let j=0;j<v.length;j++){let B=v[j];if(B?.$ref&&!(0,o.schemaHasRulesButRef)(B,g.self.RULES)){const Z=B.$ref;if(B=n.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,Z),B instanceof n.SchemaEnv&&(B=B.schema),B===void 0)throw new r.default(g.opts.uriResolver,g.baseId,Z)}const F=(R=B?.properties)===null||R===void 0?void 0:R[_];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${_}"`);I=I&&(A||P(B)),L(F,j)}if(!I)throw new Error(`discriminator: "${_}" must be required`);return O;function P({required:j}){return Array.isArray(j)&&j.includes(_)}function L(j,B){if(j.const)q(j.const,B);else if(j.enum)for(const F of j.enum)q(F,B);else throw new Error(`discriminator: "properties/${_}" must have "const" or "enum"`)}function q(j,B){if(typeof j!="string"||j in O)throw new Error(`discriminator: "${_}" values must be unique strings`);O[j]=B}}}};return um.default=l,um}const Hse="http://json-schema.org/draft-07/schema#",Gse="http://json-schema.org/draft-07/schema#",Kse="Core schema meta-schema",Zse={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Yse=["object","boolean"],Wse={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Qse={$schema:Hse,$id:Gse,title:Kse,definitions:Zse,type:Yse,properties:Wse,default:!0};var jM;function Xse(){return jM||(jM=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=cse(),r=Bse(),o=qse(),s=Qse,l=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(_=>this.addVocabulary(_)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const _=this.opts.$data?this.$dataMetaSchema(s,l):s;this.addMetaSchema(_,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var f=pv();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var p=mt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var h=uE();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var g=mv();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Tp,Tp.exports)),Tp.exports}var dm={exports:{}},xb={},zM;function Jse(){return zM||(zM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(j,B){return{validate:j,compare:B}}e.fullFormats={date:t(s,l),time:t(d(!0),f),"date-time":t(g(!0),v),"iso-time":t(d(),p),"iso-date-time":t(g(),_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:S,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:T,int32:{type:"number",validate:A},int64:{type:"number",validate:I},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,_),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(j){return j%4===0&&(j%100!==0||j%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(j){const B=r.exec(j);if(!B)return!1;const F=+B[1],Z=+B[2],ie=+B[3];return Z>=1&&Z<=12&&ie>=1&&ie<=(Z===2&&n(F)?29:o[Z])}function l(j,B){if(j&&B)return j>B?1:j<B?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(j){return function(F){const Z=c.exec(F);if(!Z)return!1;const ie=+Z[1],H=+Z[2],W=+Z[3],te=Z[4],le=Z[5]==="-"?-1:1,Q=+(Z[6]||0),k=+(Z[7]||0);if(Q>23||k>59||j&&!te)return!1;if(ie<=23&&H<=59&&W<60)return!0;const G=H-k*le,V=ie-Q*le-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&W<61}}function f(j,B){if(!(j&&B))return;const F=new Date("2020-01-01T"+j).valueOf(),Z=new Date("2020-01-01T"+B).valueOf();if(F&&Z)return F-Z}function p(j,B){if(!(j&&B))return;const F=c.exec(j),Z=c.exec(B);if(F&&Z)return j=F[1]+F[2]+F[3],B=Z[1]+Z[2]+Z[3],j>B?1:j<B?-1:0}const h=/t|\s/i;function g(j){const B=d(j);return function(Z){const ie=Z.split(h);return ie.length===2&&s(ie[0])&&B(ie[1])}}function v(j,B){if(!(j&&B))return;const F=new Date(j).valueOf(),Z=new Date(B).valueOf();if(F&&Z)return F-Z}function _(j,B){if(!(j&&B))return;const[F,Z]=j.split(h),[ie,H]=B.split(h),W=l(F,ie);if(W!==void 0)return W||f(Z,H)}const b=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function S(j){return b.test(j)&&x.test(j)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function T(j){return E.lastIndex=0,E.test(j)}const R=-2147483648,O=2**31-1;function A(j){return Number.isInteger(j)&&j<=O&&j>=R}function I(j){return Number.isInteger(j)}function P(){return!0}const L=/[^\\]\\Z/;function q(j){if(L.test(j))return!1;try{return new RegExp(j),!0}catch{return!1}}})(xb)),xb}var Rb={},UM;function eae(){return UM||(UM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Xse(),n=mt(),r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:c,schemaCode:d})=>(0,n.str)`should be ${o[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,n._)`{comparison: ${o[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:d,data:f,schemaCode:p,keyword:h,it:g}=c,{opts:v,self:_}=g;if(!v.validateFormats)return;const b=new t.KeywordCxt(g,_.RULES.all.format.definition,"format");b.$data?x():S();function x(){const T=d.scopeValue("formats",{ref:_.formats,code:v.code.formats}),R=d.const("fmt",(0,n._)`${T}[${b.schemaCode}]`);c.fail$data((0,n.or)((0,n._)`typeof ${R} != "object"`,(0,n._)`${R} instanceof RegExp`,(0,n._)`typeof ${R}.compare != "function"`,E(R)))}function S(){const T=b.schema,R=_.formats[T];if(!R||R===!0)return;if(typeof R!="object"||R instanceof RegExp||typeof R.compare!="function")throw new Error(`"${h}": format "${T}" does not define "compare" function`);const O=d.scopeValue("formats",{key:T,ref:R,code:v.code.formats?(0,n._)`${v.code.formats}${(0,n.getProperty)(T)}`:void 0});c.fail$data(E(O))}function E(T){return(0,n._)`${T}.compare(${f}, ${p}) ${o[h].fail} 0`}},dependencies:["format"]};const l=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=l})(Rb)),Rb}var FM;function tae(){return FM||(FM=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Jse(),r=eae(),o=mt(),s=new o.Name("fullFormats"),l=new o.Name("fastFormats"),c=(f,p={keywords:!0})=>{if(Array.isArray(p))return d(f,p,n.fullFormats,s),f;const[h,g]=p.mode==="fast"?[n.fastFormats,l]:[n.fullFormats,s],v=p.formats||n.formatNames;return d(f,v,h,g),p.keywords&&(0,r.default)(f),f};c.get=(f,p="full")=>{const g=(p==="fast"?n.fastFormats:n.fullFormats)[f];if(!g)throw new Error(`Unknown format "${f}"`);return g};function d(f,p,h,g){var v,_;(v=(_=f.opts.code).formats)!==null&&v!==void 0||(_.formats=(0,o._)`require("ajv-formats/dist/formats").${g}`);for(const b of p)f.addFormat(b,h[b])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(dm,dm.exports)),dm.exports}var nae=tae();const lue=fl(nae);let hE;hE=globalThis.crypto;async function rae(e){return(await hE).getRandomValues(new Uint8Array(e))}async function oae(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%t.length;let r="";for(;r.length<e;){const o=await rae(e-r.length);for(const s of o)s<n&&(r+=t[s%t.length])}return r}async function iae(e){return await oae(e)}async function sae(e){const t=await(await hE).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function cue(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await iae(e),n=await sae(t);return{code_verifier:t,code_challenge:n}}const gr=TB().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:SV.custom,message:"URL must be parseable",fatal:!0}),O9}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),uue=vr({resource:$().url(),authorization_servers:Oe(gr).optional(),jwks_uri:$().url().optional(),scopes_supported:Oe($()).optional(),bearer_methods_supported:Oe($()).optional(),resource_signing_alg_values_supported:Oe($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Nt().optional(),authorization_details_types_supported:Oe($()).optional(),dpop_signing_alg_values_supported:Oe($()).optional(),dpop_bound_access_tokens_required:Nt().optional()}),aae=vr({issuer:$(),authorization_endpoint:gr,token_endpoint:gr,registration_endpoint:gr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),service_documentation:gr.optional(),revocation_endpoint:gr.optional(),revocation_endpoint_auth_methods_supported:Oe($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:Oe($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),code_challenge_methods_supported:Oe($()).optional(),client_id_metadata_document_supported:Nt().optional()}),lae=vr({issuer:$(),authorization_endpoint:gr,token_endpoint:gr,userinfo_endpoint:gr.optional(),jwks_uri:gr,registration_endpoint:gr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),acr_values_supported:Oe($()).optional(),subject_types_supported:Oe($()),id_token_signing_alg_values_supported:Oe($()),id_token_encryption_alg_values_supported:Oe($()).optional(),id_token_encryption_enc_values_supported:Oe($()).optional(),userinfo_signing_alg_values_supported:Oe($()).optional(),userinfo_encryption_alg_values_supported:Oe($()).optional(),userinfo_encryption_enc_values_supported:Oe($()).optional(),request_object_signing_alg_values_supported:Oe($()).optional(),request_object_encryption_alg_values_supported:Oe($()).optional(),request_object_encryption_enc_values_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),display_values_supported:Oe($()).optional(),claim_types_supported:Oe($()).optional(),claims_supported:Oe($()).optional(),service_documentation:$().optional(),claims_locales_supported:Oe($()).optional(),ui_locales_supported:Oe($()).optional(),claims_parameter_supported:Nt().optional(),request_parameter_supported:Nt().optional(),request_uri_parameter_supported:Nt().optional(),require_request_uri_registration:Nt().optional(),op_policy_uri:gr.optional(),op_tos_uri:gr.optional(),client_id_metadata_document_supported:Nt().optional()}),due=be({...lae.shape,...aae.pick({code_challenge_methods_supported:!0}).shape}),fue=be({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:J3().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),hue=be({error:$(),error_description:$().optional(),error_uri:$().optional()}),BM=gr.optional().or(Ge("").transform(()=>{})),cae=be({redirect_uris:Oe(gr),token_endpoint_auth_method:$().optional(),grant_types:Oe($()).optional(),response_types:Oe($()).optional(),client_name:$().optional(),client_uri:gr.optional(),logo_uri:BM,scope:$().optional(),contacts:Oe($()).optional(),tos_uri:BM,policy_uri:$().optional(),jwks_uri:gr.optional(),jwks:ZB().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),uae=be({client_id:$(),client_secret:$().optional(),client_id_issued_at:ct().optional(),client_secret_expires_at:ct().optional()}).strip(),pue=cae.merge(uae);be({error:$(),error_description:$().optional()}).strip();be({token:$(),token_type_hint:$().optional()}).strip();class wr extends Error{constructor(t,n){super(t),this.errorUri=n,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class rw extends wr{}rw.errorCode="invalid_request";class ow extends wr{}ow.errorCode="invalid_client";class iw extends wr{}iw.errorCode="invalid_grant";class sw extends wr{}sw.errorCode="unauthorized_client";class aw extends wr{}aw.errorCode="unsupported_grant_type";class lw extends wr{}lw.errorCode="invalid_scope";class cw extends wr{}cw.errorCode="access_denied";class uw extends wr{}uw.errorCode="server_error";class dw extends wr{}dw.errorCode="temporarily_unavailable";class fw extends wr{}fw.errorCode="unsupported_response_type";class hw extends wr{}hw.errorCode="unsupported_token_type";class pw extends wr{}pw.errorCode="invalid_token";class mw extends wr{}mw.errorCode="method_not_allowed";class gw extends wr{}gw.errorCode="too_many_requests";class vw extends wr{}vw.errorCode="invalid_client_metadata";class yw extends wr{}yw.errorCode="insufficient_scope";class _w extends wr{}_w.errorCode="invalid_target";const mue={[rw.errorCode]:rw,[ow.errorCode]:ow,[iw.errorCode]:iw,[sw.errorCode]:sw,[aw.errorCode]:aw,[lw.errorCode]:lw,[cw.errorCode]:cw,[uw.errorCode]:uw,[dw.errorCode]:dw,[fw.errorCode]:fw,[hw.errorCode]:hw,[pw.errorCode]:pw,[mw.errorCode]:mw,[gw.errorCode]:gw,[vw.errorCode]:vw,[yw.errorCode]:yw,[_w.errorCode]:_w};async function q6(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(n){if(n instanceof dv&&n.code===uf.MethodNotFound)return{resources:[]};throw n}}async function dae(e,t){return await e.readResource({uri:t})}function gue(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=lv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>q6(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],ff(c)}function vue(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=lv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>q6(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],mP(c)}function yue(e){const t=ir.c(15);let n,r,o;t[0]!==e?({client:n,uri:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o):(n=t[1],r=t[2],o=t[3]);let s;t[4]!==n||t[5]!==o?(s=lv.mcpReadResource(n,o),t[4]=n,t[5]=o,t[6]=s):s=t[6];let l;t[7]!==n||t[8]!==o?(l=()=>dae(n,o),t[7]=n,t[8]=o,t[9]=l):l=t[9];const c=r.staleTime??3e4;let d;return t[10]!==r||t[11]!==s||t[12]!==l||t[13]!==c?(d={...r,queryKey:s,queryFn:l,staleTime:c,retry:!1},t[10]=r,t[11]=s,t[12]=l,t[13]=c,t[14]=d):d=t[14],ff(d)}const H6="ui-resource-html";function _ue(e){const t=ir.c(20);let n,r,o,s,l;t[0]!==e?({orgSlug:o,connectionId:n,uri:l,meshUrl:r,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);let c;t[6]!==n||t[7]!==o||t[8]!==l?(c=lv.mcpUiResourceHtml(o,n,l),t[6]=n,t[7]=o,t[8]=l,t[9]=c):c=t[9];let d;t[10]!==n||t[11]!==r||t[12]!==o||t[13]!==l?(d=async()=>{const g=`${r??(typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(o)}/mcp/${encodeURIComponent(n)}/ui-resource?uri=${encodeURIComponent(l)}`,v=await fetch(g,{credentials:"include"});if(!v.ok)throw new Error(`Failed to read UI resource (${v.status})`);return v.text()},t[10]=n,t[11]=r,t[12]=o,t[13]=l,t[14]=d):d=t[14];const f=s.staleTime??3e4;let p;return t[15]!==s||t[16]!==c||t[17]!==d||t[18]!==f?(p={...s,queryKey:c,queryFn:d,staleTime:f,retry:!1},t[15]=s,t[16]=c,t[17]=d,t[18]=f,t[19]=p):p=t[19],ff(p)}const fae=be({authorizationEndpoint:$().url(),tokenEndpoint:$().url(),introspectionEndpoint:$().url().optional(),clientId:$(),clientSecret:$().optional(),scopes:Oe($()),grantType:sn(["authorization_code","client_credentials"])}),VM=be({type:Ge("object"),properties:Mt($(),Gt()).optional(),required:Oe($()).optional()}).catchall(Gt()),hae=cE.extend({inputSchema:VM,outputSchema:VM.optional()}),pae=be({headers:Mt($(),$()).optional()}),mae=be({command:$().describe("Command to run (e.g., 'npx', 'node')"),args:Oe($()).optional().describe("Command arguments"),cwd:$().optional().describe("Working directory"),envVars:Mt($(),$()).optional().describe("Environment variables (encrypted in storage)")}),G6=be({id:$().describe("Unique identifier for the connection"),title:$().describe("Human-readable name for the connection"),created_at:$().describe("When the connection was created"),updated_at:$().describe("When the connection was last updated"),created_by:$().describe("User ID who created the connection"),updated_by:$().optional().describe("User ID who last updated the connection"),organization_id:$().describe("Organization ID this connection belongs to"),description:$().nullable().describe("Description of the connection"),icon:$().nullable().describe("Icon URL for the connection"),app_name:$().nullable().describe("Associated app name"),app_id:$().nullable().describe("Associated app ID"),slug:$().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:sn(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:$().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:$().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:fn([mae,pae]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:fae.nullable().describe("OAuth configuration"),configuration_state:Mt($(),Gt()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:Oe($()).nullable().optional().describe("Configuration scopes"),metadata:Mt($(),Gt()).nullable().describe("Additional metadata (includes repository info)"),tools:Oe(hae).nullable().describe("Discovered tools from MCP"),bindings:Oe($()).nullable().describe("Detected bindings"),status:sn(["active","inactive","error"]).describe("Current status")});G6.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:$().nullish()});G6.partial();function bue(e){return e!=null&&"command"in e}function wue(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const Nd=be({connection_id:$().describe("Connection ID"),selected_tools:Oe($()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:Oe($()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:Oe($()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),K6=Nd.extend({selected_tools:Nd.shape.selected_tools.optional(),selected_resources:Nd.shape.selected_resources.optional(),selected_prompts:Nd.shape.selected_prompts.optional()}),gae=be({connectionId:$(),toolName:$(),label:$(),icon:$().nullable().optional()}),vae=be({id:$().describe("Stable id; used as React key and ?tab= value"),title:$().describe("Tab label"),icon:$().optional().describe("Optional lucide icon name"),view:be({type:Ge("ext-app"),appId:$(),args:Mt($(),Gt()).optional()})}),yae=be({defaultMainView:be({type:$(),id:$().optional(),toolName:$().optional()}).nullable().optional(),chatDefaultOpen:Nt().nullable().optional(),tabs:Oe(vae).optional()}),qM=be({tileId:$().optional(),connectionId:$().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:$().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:$().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Mt($(),Gt()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:ct().int().positive().optional(),maxHeight:ct().int().positive().optional()}),pE=be({banner:$().nullable().optional(),bannerColor:$().nullable().optional(),icon:$().nullable().optional(),themeColor:$().nullable().optional(),pinnedViews:Oe(gae).nullable().optional(),layout:yae.nullable().optional(),homeTile:qM.nullable().optional(),homeTiles:Oe(qM).nullable().optional(),homePrompts:Oe($()).nullable().optional()});function Sue(e){const t=e?.homeTiles;if(Array.isArray(t)&&t.length>0)return t;const n=e?.homeTile;return n?[n]:[]}const _ae=/^[A-Za-z_][A-Za-z0-9_]*$/,HM=$().min(1).regex(_ae,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),bae=Vw("kind",[be({key:HM,kind:Ge("literal"),value:$()}),be({key:HM,kind:Ge("secret"),secretId:$().min(1)})]),mE=be({selected:$().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:$().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:$().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:Oe(bae).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that mesh resolves via the credential vault before posting /_sandbox/config.")}),gE=be({url:$().describe("GitHub repository URL"),owner:$().describe("Repository owner"),name:$().describe("Repository name"),installationId:ct().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:$().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),wae=sn(["agent-sandbox","user-desktop"]),Sae=sn(["agent-sandbox","user-desktop","cluster"]);function Z6(e){return e==="cluster"?"agent-sandbox":e}const Y6={sandboxHandle:$().describe("Provider-specific handle"),previewUrl:$().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:$().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:wae.optional(),createdAt:ct().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:be({packageManager:$().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:$().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:$().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},W6=be(Y6),Eae=be({...Y6,sandboxProviderKind:Sae.optional()});function xae(e){const t=Eae.parse(e);return W6.parse({...t,sandboxProviderKind:t.sandboxProviderKind?Z6(t.sandboxProviderKind):void 0})}function Eue(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const t=e,n={};for(const[r,o]of Object.entries(t)){if(!o||typeof o!="object"||r!=="cluster"&&r!=="agent-sandbox"&&r!=="user-desktop")continue;const s=Z6(r);try{if(r==="cluster"&&n[s])continue;n[s]=xae(o)}catch{}}return n}const vE=Mt($().describe("userId"),Mt($().describe("branch"),Mt($().describe("sandboxProviderKind"),W6))),Rae=be({id:$().describe("Stable identifier for this knowledge file"),name:$().describe("File name shown in the UI"),kind:sn(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:$().describe("Org filesystem (Library) volume the file lives in"),path:$().describe("Path within the volume"),url:$().describe("Same-origin URL to read the file (display/download)"),contentType:$().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:ct().nullable().optional().describe("File size in bytes"),addedAt:$().describe("ISO timestamp when the file was attached")}),yE=Oe(Rae).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),xue=be({id:$().describe("Unique identifier"),title:$().describe("Human-readable name"),description:$().nullable().describe("Description"),icon:$().nullable().describe("Icon URL"),created_at:$().describe("Creation timestamp"),updated_at:$().describe("Last update timestamp"),created_by:$().describe("User ID who created this item"),updated_by:$().optional().describe("User ID who last updated this item"),organization_id:$().describe("Organization ID this item belongs to"),status:sn(["active","inactive"]).describe("Current status"),pinned:Nt().describe("Whether this space is pinned to the sidebar"),metadata:be({instructions:$().nullable().describe("Instructions also used as system prompt"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),liveAgentId:$().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:pE.nullable().optional().describe("UI customization settings"),githubRepo:gE.nullable().optional().describe("Linked GitHub repository"),runtime:mE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:vE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:yE,siteSlug:$().nullable().optional().describe("Linked asset site slug (managed storage tenancy)")}).loose().describe("Metadata"),connections:Oe(Nd).describe("Connections with their selected tools, resources, and prompts")});be({title:$().min(1).max(255).describe("Name for the virtual MCP"),description:$().nullable().optional().describe("Optional description"),icon:$().nullish().describe("Optional icon URL"),status:sn(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:Nt().optional().default(!1).describe("Pin to sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),liveAgentId:$().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:pE.nullable().optional().describe("UI customization settings"),githubRepo:gE.nullable().optional().describe("Linked GitHub repository"),runtime:mE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:vE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:yE,siteSlug:$().nullable().optional().describe("Linked asset site slug (managed storage tenancy)")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(K6).describe("Connections to include/exclude (can be empty for exclusion mode)")});be({title:$().min(1).max(255).optional().describe("New name"),description:$().nullable().optional().describe("New description (null to clear)"),icon:$().nullish().describe("New icon URL"),status:sn(["active","inactive"]).optional().describe("New status"),pinned:Nt().optional().describe("Pin/unpin from sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),liveAgentId:$().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:pE.nullable().optional().describe("UI customization settings"),githubRepo:gE.nullable().optional().describe("Linked GitHub repository"),runtime:mE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:vE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:yE,siteSlug:$().nullable().optional().describe("Linked asset site slug (managed storage tenancy)")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(K6).optional().describe("New connections (replaces existing)")});var GM;(function(e){e.Completable="McpCompletable"})(GM||(GM={}));const Oae="mesh-ui-resources",Og="html",Tae=10080*60*1e3,Cae=50,Aae=16*1024*1024;function Iae(e){return e[0]==="mcp"&&e[1]===H6}function gv(){return new Promise((e,t)=>{const n=indexedDB.open(Oae,1);n.onupgradeneeded=()=>{n.result.objectStoreNames.contains(Og)||n.result.createObjectStore(Og)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}function eu(e,t){return e.transaction(Og,t).objectStore(Og)}function bw(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}async function Mae(e){if(!(typeof indexedDB>"u"))try{const t=await gv(),n=eu(t,"readonly"),r=await bw(n.getAllKeys()),o=await bw(n.getAll()),s=Date.now(),l=r.map((f,p)=>({key:f,value:o[p]})).sort((f,p)=>(p.value?.updatedAt??0)-(f.value?.updatedAt??0)),c=[];let d=0;for(const{key:f,value:p}of l){if(!p||s-p.updatedAt>Tae||d>=Cae){c.push(f);continue}d++;try{const g=JSON.parse(String(f));e.getQueryData(g)===void 0&&e.setQueryData(g,p.html,{updatedAt:0})}catch{c.push(f)}}if(c.length>0){const f=eu(t,"readwrite");for(const p of c)f.delete(p)}}catch{}}function Pae(e){if(typeof indexedDB>"u")return()=>{};const t=gv().catch(()=>null);return e.getQueryCache().subscribe(n=>{const r=n.query;if(!Array.isArray(r.queryKey)||!Iae(r.queryKey)||r.state.status!=="success")return;const o=r.state.data;typeof o!="string"||o.length>Aae||t.then(s=>{if(s)try{eu(s,"readwrite").put({html:o,updatedAt:Date.now()},JSON.stringify(r.queryKey))}catch{}})})}function Nae(){typeof indexedDB>"u"||gv().then(e=>eu(e,"readwrite").clear()).catch(()=>{})}async function Rue(e){if(!(typeof indexedDB>"u"))try{const t=await gv(),n=await bw(eu(t,"readonly").getAllKeys()),r=eu(t,"readwrite");for(const o of n)try{const s=JSON.parse(String(o));s[1]===H6&&s[3]===e&&r.delete(o)}catch{}}catch{}}const Tg="mesh:rq-cache",Q6=1440*60*1e3,kae=1e3,Dae=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Lae=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let X6=!1,J6=!1;function $ae(e){const t=e[0];return typeof t=="string"&&Dae.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Lae.has(e[4])}function jae(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Tg);if(!t)return;const n=JSON.parse(t),r=!n.timestamp||Date.now()-n.timestamp>Q6;if(n.buster!=="3.99.1"||r||!n.state){window.localStorage.removeItem(Tg);return}n8(e,n.state),X6=!0}catch{Uae()}}function zae(e){if(typeof window>"u")return()=>{};let t=null;const n=()=>{t=null;try{const r=t8(e,{shouldDehydrateQuery:o=>o.state.status==="success"&&$ae(o.queryKey)});window.localStorage.setItem(Tg,JSON.stringify({buster:"3.99.1",timestamp:Date.now(),state:r}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(n,kae))})}const eL="studio:org-cache:";function tL(e){return`${eL}${e}`}function Oue(e,t){if(typeof window>"u")return null;try{const n=window.localStorage.getItem(tL(e));if(!n)return null;const r=JSON.parse(n)[t];return!r||Date.now()-r.updatedAt>Q6?null:(J6=!0,r)}catch{return null}}function Tue(e,t,n){if(!(typeof window>"u"))try{const r=tL(e),o=window.localStorage.getItem(r),s=o?JSON.parse(o):{};s[t]={data:n,updatedAt:Date.now()},window.localStorage.setItem(r,JSON.stringify(s))}catch{}}function Uae(){if(Nae(),!(typeof window>"u"))try{window.localStorage.removeItem(Tg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(eL)&&window.localStorage.removeItem(t)}}catch{}}function Fae(){return X6}function Bae(){return J6}let ps=!1,ww=null,KM=!1;const _E="mesh:lp-distinct-id",Vae=1440*60*1e3;function nL(){try{const e=window.localStorage.getItem(_E);if(!e)return;const{id:t,ts:n}=JSON.parse(e);return typeof t!="string"||!t||typeof n!="number"?void 0:Date.now()-n<=Vae?t:void 0}catch{return}}function qae(){try{window.localStorage.removeItem(_E)}catch{}}function Hae(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(_E,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const n=t??nL();return n?Object.keys(window.localStorage).some(o=>o.startsWith("ph_")&&o.endsWith("_posthog"))?void 0:n:void 0}catch{return}}function Gae(e){const t=nL();if(t&&(qae(),t!==e))try{_l.alias(t)}catch{}}function Kae(e,t){if(ps||typeof window>"u")return;const n=Hae();_l.init(e,{api_host:t,ui_host:"https://us.posthog.com",...n?{bootstrap:{distinctID:n}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture"},person_profiles:"identified_only"}),ps=!0}function Zae(e,t){ps&&(_l.identify(e,t),Gae(e))}function Yae(){ps&&(_l.reset(),ww=null)}function Wae(e,t){ps&&_l.capture(e,t)}function Cue(){return ps}function Aue(){if(!ps||KM||typeof performance>"u")return;KM=!0;const e=performance.getEntriesByType("navigation")[0],t=n=>{const r=performance.getEntriesByName(n,"measure")[0];return r?Math.round(r.duration):void 0};Wae("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Fae(),org_cache_restored:Bae()})}function Iue(e,t){ps&&e!==ww&&(_l.group("organization",e,t),ww=e)}function rL(e,t){if(ps)try{_l.captureException(e,t)}catch{}}let fm=null;function Qae({children:e}){const t=vP(),{data:n}=Bg.useSession();if(t.posthog){Kae(t.posthog.key,t.posthog.host);const r=n?.user?.id??null;r&&r!==fm?(Zae(r,{email:n?.user?.email,name:n?.user?.name}),fm=r):!r&&fm&&(Yae(),fm=null)}return C.jsx(C.Fragment,{children:e})}const bE=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));bE.displayName="AlertTriangle";const oL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));oL.displayName="Archive";const iL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));iL.displayName="Loading01";const sL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));sL.displayName="Lock01";const aL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));aL.displayName="RefreshCw01";function wE(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=C.jsx("div",{className:"flex items-center justify-center min-h-screen",children:C.jsx(iL,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Xae(e){try{return JSON.parse(e)}catch{return}}function ZM(e,t){const n=localStorage.getItem(e),r=n?Xae(n):void 0,o=typeof t=="function"?t(r):r??t;if(r===void 0||o!==r)try{const s=JSON.stringify(o);localStorage.setItem(e,s)}catch{}return o}function Jae(e,t){const n=ir.c(25),r=Aw();let o;n[0]!==e?(o=["localStorage",e],n[0]=e,n[1]=o):o=n[1];const s=o;let l,c;n[2]!==t||n[3]!==e?(l=()=>ZM(e,t),c=()=>ZM(e,t),n[2]=t,n[3]=e,n[4]=l,n[5]=c):(l=n[4],c=n[5]);let d;n[6]!==s||n[7]!==l||n[8]!==c?(d={queryKey:s,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},n[6]=s,n[7]=l,n[8]=c,n[9]=d):d=n[9];const{data:f}=mP(d);let p;n[10]!==e?(p=async E=>{const T=JSON.stringify(E);return localStorage.setItem(e,T),E},n[10]=e,n[11]=p):p=n[11];let h;n[12]!==r||n[13]!==s?(h=E=>{r.setQueryData(s,E)},n[12]=r,n[13]=s,n[14]=h):h=n[14];let g;n[15]!==p||n[16]!==h?(g={mutationFn:p,onSuccess:h},n[15]=p,n[16]=h,n[17]=g):g=n[17];const v=O8(g);let _;n[18]!==v||n[19]!==r||n[20]!==s?(_=E=>{const T=r.getQueryData(s),R=typeof E=="function"?E(T):E;v.mutate(R)},n[18]=v,n[19]=r,n[20]=s,n[21]=_):_=n[21];const b=_,x=f;let S;return n[22]!==b||n[23]!==x?(S=[x,b],n[22]=b,n[23]=x,n[24]=S):S=n[24],S}const su={assistantChatTasks:e=>`mesh:assistant-chat:tasks:${e}`,messages:(e,t)=>`mesh:messages:${e}:${t}`,chatSelectedMode:e=>`mesh:chat:selectedMode:${e}`,chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`mesh:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,assistantChatActiveTask:e=>`mesh:assistant-chat:active-task:${e}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",tasksPanelWidth:()=>"mesh:tasks-panel:width",sidebarOpen:()=>"mesh:sidebar-open",orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,storeShowStdio:()=>"mesh:store:show-stdio",preferences:()=>"mesh:user:preferences",pluginConnection:(e,t)=>`mesh:plugin:connection:${e}:${t}`,lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,sidebarOrgPinnedOrder:e=>`sidebar.org-pinned-order.${e}`},ele={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system"},lL=["auto","readonly"],Mue=[{value:"readonly",label:"Ask before edit",short:"Ask"},{value:"auto",label:"Auto approve",short:"Auto"}],tle=["light","dark","system"];function Pue(){try{const e=JSON.parse(localStorage.getItem(su.preferences())??"{}");if(lL.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function nle(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=su.preferences(),e[0]=t):t=e[0],Jae(t,rle)}function rle(e){const t={...ele,...e};return lL.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),tle.includes(t.theme)||(t.theme="system"),t}async function ole(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function ile(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const n=[];if(e.light&&Object.keys(e.light).length>0){const r=Object.entries(e.light).map(([o,s])=>` ${o}: ${s};`).join(`
164
164
  `);n.push(`:root {
165
165
  ${r}
166
166
  }`)}if(e.dark&&Object.keys(e.dark).length>0){const r=Object.entries(e.dark).map(([o,s])=>` ${o}: ${s};`).join(`
@@ -168,4 +168,4 @@ ${r}
168
168
  ${r}
169
169
  }`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
170
170
 
171
- `),document.head.appendChild(r)}}function sle(e){const t=ir.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:gP.publicConfig(),queryFn:ole,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=ff(r),[s]=nle();let l,c;t[1]!==o.theme?(l=()=>{ile(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const S=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!S)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=S;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),_=x=>{h.classList.toggle("dark",x),g()};_(v.matches);const b=x=>_(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const Pf=new m8({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});jae(Pf);zae(Pf);Mae(Pf);Pae(Pf);function ale(e){const t=ir.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(EG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(wE,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(g8,{client:Pf,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(sle,{children:C.jsx(C8,{children:C.jsx(Qte,{children:C.jsx(Qae,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function lle(...e){return TN(Zw(e))}const cle=QN("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function df(e){const t=ir.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?iS:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=lle(cle({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const ule=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function dle(e){const t=ir.c(3),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:ule}}),t[0]=r):r=t[0];let o;return t[1]!==n?(o=C.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[r,C.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:n})]}),t[1]=n,t[2]=o):o=t[2],o}function cL(e){const t=ir.c(9),{orgName:n}=e,r=fle;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx("div",{className:"bg-muted p-3 rounded-full",children:C.jsx(oL,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=o):o=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=C.jsx("h3",{className:"text-lg font-medium",children:"Organization unavailable"}),t[1]=s):s=t[1];let l;t[2]!==n?(l=n?C.jsxs(C.Fragment,{children:[C.jsx("strong",{children:n})," has been deleted or is no longer available."]}):"This organization has been deleted or is no longer available.",t[2]=n,t[3]=l):l=t[3];let c;t[4]!==l?(c=C.jsxs("div",{className:"space-y-2",children:[s,C.jsx("p",{className:"text-sm text-muted-foreground",children:l})]}),t[4]=l,t[5]=c):c=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx(df,{onClick:r,children:"Go to home"}),t[6]=d):d=t[6];let f;return t[7]!==c?(f=C.jsxs(dle,{children:[o,c,d]}),t[7]=c,t[8]=f):f=t[8],f}function fle(){window.location.href="/"}function hle(e){const t=ir.c(14),{area:n,description:r}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:s}=Dw(o),l=n?`No access to ${n}`:"No access",c=r??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:C.jsx(sL,{size:28})}),t[1]=d):d=t[1];let f;t[2]!==l?(f=C.jsx("h3",{className:"text-lg font-medium",children:l}),t[2]=l,t[3]=f):f=t[3];let p;t[4]!==c?(p=C.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:c}),t[4]=c,t[5]=p):p=t[5];let h;t[6]!==f||t[7]!==p?(h=C.jsxs("div",{className:"space-y-1",children:[f,p]}),t[6]=f,t[7]=p,t[8]=h):h=t[8];let g;t[9]!==s?(g=C.jsx(df,{variant:"outline",size:"sm",asChild:!0,children:C.jsx(kg,{to:"/$org/settings/profile",params:{org:s},children:"Go to your profile"})}),t[9]=s,t[10]=g):g=t[10];let v;return t[11]!==h||t[12]!==g?(v=C.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[d,h,g]}),t[11]=h,t[12]=g,t[13]=v):v=t[13],v}const YM="__mesh_chunk_reload_ts";function uL(e){return e?.message==="Organization is archived"}function ple(e){return!!e?.message?.includes("Access denied")}function WM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Nue extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),rL(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:uL(this.state.error)?C.jsx(cL,{}):ple(this.state.error)?C.jsx(hle,{}):C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(bE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(df,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class mle extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=WM(t);if(rL(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(YM),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(YM,String(s)),window.location.reload())}render(){return this.state.hasError&&WM(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(aL,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(df,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?uL(this.state.error)?C.jsx(cL,{}):C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(bE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(df,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}function dL(e){try{localStorage.setItem(su.lastLocation(),JSON.stringify(e))}catch{}}function gle(){try{const e=localStorage.getItem(su.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function kue(){try{localStorage.removeItem(su.lastLocation())}catch{}}let us=null,QM=!1;const Sw=new Set;function Cg(){for(const e of Sw)e()}function vle(){QM||typeof window>"u"||(QM=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),us=e,Cg()}),window.addEventListener("appinstalled",()=>{us=null,Cg()}))}function Due(){us!==null&&(us=null,Cg())}function yle(e){return Sw.add(e),()=>{Sw.delete(e)}}function _le(){return us}function ble(){return null}function wle(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&window.matchMedia("(display-mode: standalone)").matches,t=navigator.standalone===!0;return e||t}function Sle(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function Lue(){const e=ir.c(5),t=M.useSyncExternalStore(yle,_le,ble);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=wle(),e[0]=n):n=e[0];const r=n,o=t!==null&&!r;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=Sle(),l=Ele,e[1]=s,e[2]=l):(s=e[1],l=e[2]);let c;return e[3]!==o?(c={canPrompt:o,installed:r,ios:s,promptInstall:l},e[3]=o,e[4]=c):c=e[4],c}async function Ele(){if(!us)return"unavailable";await us.prompt();const e=await us.userChoice;return e.outcome==="accepted"&&(us=null,Cg()),e.outcome}const Pi=r9({component:()=>C.jsx(mle,{children:C.jsx(ale,{children:C.jsx(M.Suspense,{fallback:C.jsx(wE,{}),children:C.jsx(KP,{})})})})}),xle=gt({getParentRoute:()=>Pi,path:"/login",component:Ot(()=>Rt(()=>import("./login-8FZgzert.js"),__vite__mapDeps([0,1,2,3,4,5]))),validateSearch:ya(()=>be({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional()}))}),Rle=gt({getParentRoute:()=>Pi,path:"/cli/auth-success",component:Ot(()=>Rt(()=>import("./cli-auth-success-C1VkvMBP.js"),__vite__mapDeps([6,5])))}),Ole=gt({getParentRoute:()=>Pi,path:"/reset-password",component:Ot(()=>Rt(()=>import("./reset-password-Cbn69hRw.js"),__vite__mapDeps([7,2]))),validateSearch:ya(()=>be({token:$().optional(),error:$().optional()}))}),Tle=gt({getParentRoute:()=>Pi,path:"/auth/$pathname",component:Ot(()=>Rt(()=>import("./auth-catchall-Di4BNeJO.js"),[]))}),Cle=gt({getParentRoute:()=>Pi,path:"/oauth/callback",component:Ot(()=>Rt(()=>import("./oauth-callback-Dwd806qn.js"),__vite__mapDeps([8,9,10])))}),Ale=gt({getParentRoute:()=>Pi,path:"/oauth/callback/ai-provider",component:Ot(()=>Rt(()=>import("./oauth-callback-ai-provider-CC85HfxS.js"),[]))}),SE=gt({getParentRoute:()=>Pi,id:"shell",component:Ot(()=>Rt(()=>import("./shell-layout-xNLL_s4g.js").then(e=>e.s),__vite__mapDeps([11,12,13,14,15,16,17,18,19,20,21,22,23,24,10,25,3,4,26,27,28,29])))}),Ile=gt({getParentRoute:()=>SE,path:"/",beforeLoad:async()=>{const e=gle();if(e?.taskId)throw Xa({to:"/$org/$taskId",params:{org:e.org,taskId:e.taskId},search:e.virtualmcpid?{virtualmcpid:e.virtualmcpid}:{}});if(e)throw Xa({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(su.lastOrgSlug());if(t)throw Xa({to:"/$org",params:{org:t}});const{data:n}=await dN();if(!n)return;const r=n[0];throw Xa(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),Mle=gt({getParentRoute:()=>Pi,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await dN();if(e&&e.length>0)throw Xa({to:"/"})},component:Ot(()=>Rt(()=>import("./onboarding-D0JBHrcc.js"),__vite__mapDeps([30,22,5,31,12,13,2,32,33,14,17,34,35,36])))}),Ple=gt({getParentRoute:()=>Pi,path:"/commerce-onboarding",component:Ot(()=>Rt(()=>import("./commerce-onboarding-Dg7vjIhZ.js"),__vite__mapDeps([37,1,2,3,4,5,31,12,13,26,24,10,38,39,40,41,42,43,44,45,46,14,17,47,48,49,50,51,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,64,65,66,67,36,68,16,21,19,20,69,70,71,32,72,73,9]))),validateSearch:ya(()=>be({org:$().optional(),siteUrl:$().optional()}))}),vv=gt({getParentRoute:()=>SE,path:"/$org",beforeLoad:({params:e})=>{dL({org:e.org})},component:Ot(()=>Rt(()=>import("./org-layout-Cr-WH3RD.js"),[]))}),yv=gt({getParentRoute:()=>vv,id:"org-shell",component:Ot(()=>Rt(()=>import("./index-uyO8STkD.js"),__vite__mapDeps([74,75,58,76,77,21,69,78,79,49,50,53,80,81,82,64,55,63,24,10,83,84,85,86,87,88,89,20,90,47,91,44,40,41,42,43,38,45,46,14,17,48,51,15,52,54,18,34,56,57,59,60,61,35,62,65,66,67,36,13,68,16,19,73,9,92,70,23,25,3,4,11,12,22,26,27,28,29,93,94,95,96,97,98,99,39,100,101,71,32,2,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120])))}),fL=gt({getParentRoute:()=>yv,id:"agent-shell",component:Ot(()=>Rt(()=>import("./index-DEuymgXg.js").then(e=>e.aD),__vite__mapDeps([121,122,108,23,24,10,25,3,4,83,84,106,28,26,27,123,40,41,42,43,44,38,45,46,14,17,47,48,49,50,51,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,64,65,66,67,36,13,68,16,21,19,118,119,124,69,125,20,76,126,127,11,12,22,29,77,39,86,88,128,71,32,2,102,82,91,129,130,93,94,95,96,97,98,70,99,100,101,103,104,73,9,105,107,131,90,80,132,133,81,113,114,134,135,136,137,79,138,139,92,112,120,140,109,33,141,142,75,143,89,144,145,146,147,148,149,115,117,150,151,152,153,154,155])))}),Nle=be({virtualmcpid:$().optional(),tab:$().optional(),main:$().optional(),preview:$().optional(),id:$().optional(),toolName:$().optional(),tasks:ct().optional(),mainOpen:ct().optional(),chat:ct().optional(),autosend:$().optional(),runLocally:$().optional()}),kle=gt({getParentRoute:()=>fL,path:"/$taskId",validateSearch:Nle,beforeLoad:({params:e,search:t})=>{dL({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Dle=gt({getParentRoute:()=>yv,path:"/",component:Ot(()=>Rt(()=>import("./index-CJHqjy38.js"),__vite__mapDeps([156,76,72,24,10,83,84,47,40,41,42,43,44,38,45,46,14,17,48,49,50,51,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,64,65,66,67,36,13,68,16,21,19,122,108,23,25,3,4,106,28,26,27,123,118,119,124,69,125,20,126,127,11,12,22,29,77,39,86,88,128,71,32,2,102,82,91,129,130,93,94,95,96,97,98,70,99,100,101,103,104,73,9,105,107,131,90,80,132,133,81,113,114,134,135,92,79])))}),Lle=be({path:$().optional(),preview:$().optional(),skill:$().optional()}),$le=gt({getParentRoute:()=>yv,path:"/files",validateSearch:Lle,component:Ot(()=>Rt(()=>import("./index--YoOFH0C.js"),__vite__mapDeps([157,50,52,54,53,35,63,66,36,19,76,109,20,21,2,80,125,47,26,79,49,138,69,59,16,139,134,51,58,81,57,67,103,48])))}),Dn=gt({getParentRoute:()=>vv,path:"/settings",component:Ot(()=>Rt(()=>import("./settings-layout-DTBcjBLr.js"),__vite__mapDeps([158,78,77,21,75,58,76,69,79,49,50,142,46,14,56,57,65,13,19,112,111,28,136,135,25,3])))}),jle=gt({getParentRoute:()=>vv,path:"/install",component:Ot(()=>Rt(()=>import("./org-install-DQyhSRpe.js"),[]))}),zle=gt({getParentRoute:()=>Dn,path:"/",component:Ot(()=>Rt(()=>import("./index-redirect-B3cwEJb7.js"),__vite__mapDeps([159,112,160])))}),Ule=gt({getParentRoute:()=>Dn,path:"/connections",component:Ot(()=>Rt(()=>import("./connections-D1302Qtf.js"),__vite__mapDeps([161,70,24,10,162,134,47,50,51,43,69,146,101,143,64,100,95,94,96,88,84,27,28,97,98,99,39,38,40,41,42,44,45,46,14,17,48,49,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,65,66,67,36,13,68,16,21,19,137,142,75,76,77,163,109,112,164,90,20,82,71,32,2,102,103,83,104,73,9]))),validateSearch:ya(()=>be({action:sn(["create"]).optional(),tab:sn(["all","connected"]).optional()}))}),Fle=gt({getParentRoute:()=>Dn,path:"/connections/$appSlug",component:Ot(()=>Rt(()=>import("./connection-detail-Dug72TML.js"),__vite__mapDeps([165,70,24,10,137,104,2,63,67,166,142,75,58,76,77,21,69,92,53,57,88,84,96,27,28,102,47,48,167,140,9,101,127,52,55,40,41,42,43,44,38,45,46,14,17,49,50,51,15,54,18,34,56,59,60,61,35,62,64,65,66,36,13,68,16,19,114,81,83,85,86,149,115,12,128,39,71,32,163,109,168,129,94,91,99,134]))),validateSearch:ya(()=>be({tab:$().optional()}))}),Ble=gt({getParentRoute:()=>Dn,path:"/connections/$appSlug/$collectionName/$itemId",component:Ot(()=>Rt(()=>import("./collection-detail-CwmHQu2v.js"),__vite__mapDeps([169,137,84,24,10,71,32,2,103,166,142,75,58,76,77,21,69,92,53,57,88,70,96,27,28,63,102,47,48,167,140,9,101,127,52,55,40,41,42,43,44,38,45,46,14,17,49,50,51,15,54,18,34,56,59,60,61,35,62,64,65,66,67,36,13,68,16,19,114,81,83,85,86,170,94,126,39,108,23,25,3,4,106,26,11,12,20,22,29,152,139]))),validateSearch:ya(()=>be({replayId:$().optional()}))}),Vle=gt({getParentRoute:()=>Dn,path:"/monitor",component:Ot(()=>Rt(()=>import("./index-BMiO2DRK.js"),__vite__mapDeps([171,143,64,142,75,58,76,77,21,69,137,172,112,173,160,123,40,41,42,43,44,38,45,46,14,17,47,48,49,50,51,15,52,53,54,18,55,34,56,57,59,60,61,35,62,63,65,66,67,36,13,68,16,19,118,119,124,125,20,26,126,127,24,10,108,23,25,3,4,83,84,106,28,27,11,12,22,29,39,86,88,128,71,32,2,102,94,101,81,152,139,149,115,147,97,98,99,148,117,150,105,90,113,114,103,100,33,170,168,167]))),validateSearch:ya(()=>be({tab:sn(["overview","audit","dashboards","threads","automations"]).default("overview"),from:$().default("now-30m"),to:$().default("now"),connectionId:Oe($()).optional().default([]),virtualMcpId:Oe($()).optional().default([]),tool:$().default(""),status:sn(["all","success","errors"]).default("all"),search:$().default(""),page:ct().optional(),streaming:Nt().default(!0),propertyFilters:$().default(""),hideSystem:Nt().default(!1)}))}),qle=gt({getParentRoute:()=>Dn,path:"/general",component:Ot(()=>Rt(()=>import("./general-BnR0HO7J.js"),__vite__mapDeps([174,142,75,58,76,77,21,69,115,141,12,13,2,133,99,45,175,28,101,102,47,48,109,172,112,173,160])))}),Hle=gt({getParentRoute:()=>Dn,path:"/brand-context",component:Ot(()=>Rt(()=>import("./brand-context-Dw4JnvNB.js"),__vite__mapDeps([176,48,50,55,59,63,67,19,109,2,103,142,75,58,76,77,21,69,28,141,172,112,173,160])))}),Gle=gt({getParentRoute:()=>Dn,path:"/ai-providers",component:Ot(()=>Rt(()=>import("./ai-providers-T-u5bvaJ.js"),__vite__mapDeps([177,41,142,75,58,76,77,21,69,80,133,99,45,106,28,17,108,23,24,10,25,3,4,83,84,26,27,153,20,82,131,90,47,2,102,48,44,42,57,64,132,60,50,12,13,52,107,66,141,130,109,63,67,145,119,172,112,173,160])))}),Kle=gt({getParentRoute:()=>Dn,path:"/secrets",component:Ot(()=>Rt(()=>import("./secrets-BaUhAjXu.js"),__vite__mapDeps([178,41,63,13,68,20,21,2,32,102,69,47,48,80,103,142,75,58,76,77,133,99,45,144,28,172,112,173,160])))}),Zle=gt({getParentRoute:()=>Dn,path:"/files",component:Ot(()=>Rt(()=>import("./files-5aenLfPW.js"),[]))}),Yle=gt({getParentRoute:()=>Dn,path:"/buckets",component:Ot(()=>Rt(()=>import("./buckets-B3emByFY.js"),__vite__mapDeps([179,41,56,63,67,109,20,21,2,32,102,69,47,48,33,80,103,142,75,58,76,77,133,99,45,151,28,172,112,173,160])))}),Wle=gt({getParentRoute:()=>Dn,path:"/members",component:Ot(()=>Rt(()=>import("./members-BJYRHZsS.js"),__vite__mapDeps([180,162,134,47,50,51,43,69,146,101,143,64,142,75,58,76,77,21,181,148,115,137,20,71,32,102,48,103,133,99,45,111,112,28,12,13,149,109,57,65,67,16,90,113,114,81,63,172,173,160])))}),Qle=gt({getParentRoute:()=>Dn,path:"/roles",component:Ot(()=>Rt(()=>import("./roles-BUk_bsvO.js"),__vite__mapDeps([182,181,148,43,115,101,109,134,47,50,51,63,67,142,75,58,76,77,21,69,137,143,64,132,39,38,40,41,42,44,45,46,14,17,48,49,15,52,53,54,18,55,34,56,57,59,60,61,35,62,65,66,36,13,68,16,19,98,90,105,24,10,91,149,88,84,106,28,12,33,133,99,112,173,160]))),validateSearch:ya(()=>be({role:$().optional()}))}),Xle=gt({getParentRoute:()=>Dn,path:"/sso",component:Ot(()=>Rt(()=>import("./sso-1G-Lrcz1.js"),__vite__mapDeps([183,175,28,133,99,45,101,2,102,69,47,48,142,75,58,76,77,21,33,29,67,172,112,173,160])))}),Jle=gt({getParentRoute:()=>Dn,path:"/profile",component:Ot(()=>Rt(()=>import("./profile-VCalx_au.js"),__vite__mapDeps([184,142,75,58,76,77,21,69,12,13,33,102,47,48,130,2,60,61,62,141,135,110,133,99,45])))}),ece=gt({getParentRoute:()=>Dn,path:"/store",component:Ot(()=>Rt(()=>import("./store-B2Ao3pPp.js"),__vite__mapDeps([185,41,50,63,67,2,33,80,12,13,81,88,84,24,10,142,75,58,76,77,21,69,96,27,28,133,99,45,172,112,173,160])))}),tce=gt({getParentRoute:()=>Dn,path:"/registry",component:Ot(()=>Rt(()=>import("./registry-C1pjl2mg.js"),__vite__mapDeps([186,172,112,173,160])))}),nce=gt({getParentRoute:()=>Dn,path:"/store/registry",component:Ot(()=>Rt(()=>import("./store-registry-CnLvGy-0.js"),__vite__mapDeps([187,172,112,173,160])))}),rce=gt({getParentRoute:()=>Dn,path:"/agents",component:Ot(()=>Rt(()=>import("./agents-list-D_wYa6fb.js"),__vite__mapDeps([188,134,47,50,51,55,14,89,20,21,90,91,64,88,84,24,10,44,40,41,42,43,38,45,46,17,48,49,15,52,53,54,18,34,56,57,58,59,60,61,35,62,63,65,66,67,36,13,68,16,19,73,9,92,70,86,83,87,142,75,76,77,69,99,145,119,112,137,85,109,143])))}),oce=gt({getParentRoute:()=>Dn,path:"/automations",component:Ot(()=>Rt(()=>import("./automations-X1kqWMvM.js"),__vite__mapDeps([189,63,19,143,64,142,75,58,76,77,21,69,137,150,24,10,28,86,83,84,154,109,134,47,50,51,15,67,40,41,42,43,44,38,45,46,14,17,48,49,52,53,54,18,55,34,56,57,59,60,61,35,62,65,66,36,13,68,16,172,112,173,160])))}),ice=Dn.addChildren([zle,Ule,Fle,Ble,rce,oce,Vle,qle,Hle,Gle,Kle,Zle,Yle,Wle,Qle,Xle,Jle,ece,nce,tce]),sce=fL.addChildren([kle]),ace=yv.addChildren([Dle,$le,sce]),lce=vv.addChildren([ace,ice,jle]),cce=SE.addChildren([Ile,lce]),uce=Pi.addChildren([cce,Mle,Ple,xle,Rle,Ole,Tle,Cle,Ale]),dce=p9({routeTree:uce,defaultPendingComponent:wE,defaultPendingMs:200,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})});vle();const fce=document.getElementById("root");Dj.createRoot(fce).render(C.jsx(M.StrictMode,{children:C.jsx(v9,{router:dce})}));export{sS as $,Kce as A,df as B,Jae as C,ooe as D,Nue as E,vP as F,kg as G,bce as H,hl as I,nle as J,gP as K,su as L,ute as M,Sce as N,KP as O,Uae as P,yce as Q,Gee as R,wE as S,pt as T,MW as U,Sn as V,lt as W,H4 as X,vl as Y,gs as Z,Jn as _,Bg as a,dae as a$,PW as a0,NW as a1,lS as a2,gf as a3,ek as a4,oL as a5,Eue as a6,_ce as a7,bE as a8,gue as a9,D2 as aA,w8 as aB,S8 as aC,Oe as aD,sn as aE,Mt as aF,Nt as aG,Mue as aH,uK as aI,Pue as aJ,lv as aK,NC as aL,Ew as aM,pW as aN,ii as aO,Jd as aP,Ng as aQ,vS as aR,Gc as aS,pa as aT,vs as aU,si as aV,N4 as aW,gW as aX,_W as aY,vW as aZ,oW as a_,xue as aa,cK as ab,Mce as ac,_ae as ad,aL as ae,dK as af,sL as ag,ee as ah,A4 as ai,I4 as aj,la as ak,ct as al,Rt as am,Sue as an,tu as ao,Wn as ap,Am as aq,eP as ar,lP as as,v8 as at,y8 as au,E8 as av,_8 as aw,b8 as ax,Zn as ay,R8 as az,Pg as b,Aue as b$,q6 as b0,pce as b1,bo as b2,_o as b3,el as b4,Due as b5,Lue as b6,Gt as b7,wue as b8,vue as b9,fl as bA,mt as bB,Xse as bC,TN as bD,Zw as bE,QN as bF,rD as bG,iD as bH,iX as bI,V4 as bJ,MX as bK,cle as bL,lX as bM,V7 as bN,qP as bO,ri as bP,Wce as bQ,oi as bR,hce as bS,pY as bT,ma as bU,dv as bV,uf as bW,dle as bX,gle as bY,kue as bZ,Iue as b_,bue as ba,HW as bb,nk as bc,qW as bd,Rue as be,H6 as bf,iS as bg,lue as bh,ZB as bi,Z3 as bj,GB as bk,fn as bl,Ge as bm,Fw as bn,RB as bo,Oce as bp,QB as bq,_V as br,qw as bs,Bw as bt,tV as bu,Tce as bv,oue as bw,tie as bx,ya as by,TB as bz,ir as c,S6 as c$,Oue as c0,uN as c1,cL as c2,Tue as c3,Qce as c4,xce as c5,Koe as c6,Zoe as c7,lE as c8,D6 as c9,Rce as cA,Sf as cB,uY as cC,fY as cD,hY as cE,mf as cF,hK as cG,fK as cH,FN as cI,pP as cJ,uue as cK,aae as cL,due as cM,ioe as cN,ow as cO,sw as cP,iw as cQ,fue as cR,vw as cS,wr as cT,uw as cU,hue as cV,mue as cW,pue as cX,cue as cY,q9 as cZ,y6 as c_,cE as ca,uv as cb,_6 as cc,lie as cd,w6 as ce,rie as cf,gie as cg,Ooe as ch,Coe as ci,Moe as cj,Boe as ck,oie as cl,Toe as cm,Aoe as cn,Poe as co,Noe as cp,Voe as cq,Qoe as cr,_ue as cs,yue as ct,Hce as cu,Z6 as cv,gB as cw,Ece as cx,Cce as cy,Vw as cz,O8 as d,eX as d$,R6 as d0,T6 as d1,C6 as d2,I6 as d3,nue as d4,rue as d5,eue as d6,tue as d7,soe as d8,Jce as d9,cS as dA,Xd as dB,r4 as dC,aS as dD,gce as dE,mce as dF,bQ as dG,RQ as dH,IQ as dI,wQ as dJ,SQ as dK,_Q as dL,lk as dM,EQ as dN,xQ as dO,OQ as dP,TQ as dQ,CQ as dR,AQ as dS,MQ as dT,NQ as dU,kQ as dV,kce as dW,Nce as dX,XQ as dY,JQ as dZ,nX as d_,E6 as da,O6 as db,A6 as dc,sue as dd,x6 as de,_oe as df,Xce as dg,v6 as dh,Bie as di,Woe as dj,aue as dk,kie as dl,$ie as dm,yie as dn,vie as dp,iue as dq,mY as dr,gY as ds,vY as dt,dY as du,mX as dv,gX as dw,pX as dx,Pce as dy,f4 as dz,Dw as e,tX as e0,Dce as e1,Lce as e2,Uce as e3,Fce as e4,Bce as e5,Vce as e6,$ce as e7,jce as e8,zce as e9,hle as ea,Zce as f,Gce as g,Yce as h,iL as i,C as j,mP as k,lle as l,Aw as m,Ci as n,be as o,Ti as p,ff as q,M as r,$ as s,ZT as t,BP as u,Cue as v,Wae as w,Ace as x,Ice as y,wce as z};
171
+ `),document.head.appendChild(r)}}function sle(e){const t=ir.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:gP.publicConfig(),queryFn:ole,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=ff(r),[s]=nle();let l,c;t[1]!==o.theme?(l=()=>{ile(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const S=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!S)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=S;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),_=x=>{h.classList.toggle("dark",x),g()};_(v.matches);const b=x=>_(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const Pf=new m8({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});jae(Pf);zae(Pf);Mae(Pf);Pae(Pf);function ale(e){const t=ir.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(EG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(wE,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(g8,{client:Pf,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(sle,{children:C.jsx(C8,{children:C.jsx(Qte,{children:C.jsx(Qae,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function lle(...e){return TN(Zw(e))}const cle=QN("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function df(e){const t=ir.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?iS:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=lle(cle({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const ule=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function dle(e){const t=ir.c(3),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:ule}}),t[0]=r):r=t[0];let o;return t[1]!==n?(o=C.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[r,C.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:n})]}),t[1]=n,t[2]=o):o=t[2],o}function cL(e){const t=ir.c(9),{orgName:n}=e,r=fle;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx("div",{className:"bg-muted p-3 rounded-full",children:C.jsx(oL,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=o):o=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=C.jsx("h3",{className:"text-lg font-medium",children:"Organization unavailable"}),t[1]=s):s=t[1];let l;t[2]!==n?(l=n?C.jsxs(C.Fragment,{children:[C.jsx("strong",{children:n})," has been deleted or is no longer available."]}):"This organization has been deleted or is no longer available.",t[2]=n,t[3]=l):l=t[3];let c;t[4]!==l?(c=C.jsxs("div",{className:"space-y-2",children:[s,C.jsx("p",{className:"text-sm text-muted-foreground",children:l})]}),t[4]=l,t[5]=c):c=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx(df,{onClick:r,children:"Go to home"}),t[6]=d):d=t[6];let f;return t[7]!==c?(f=C.jsxs(dle,{children:[o,c,d]}),t[7]=c,t[8]=f):f=t[8],f}function fle(){window.location.href="/"}function hle(e){const t=ir.c(14),{area:n,description:r}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:s}=Dw(o),l=n?`No access to ${n}`:"No access",c=r??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:C.jsx(sL,{size:28})}),t[1]=d):d=t[1];let f;t[2]!==l?(f=C.jsx("h3",{className:"text-lg font-medium",children:l}),t[2]=l,t[3]=f):f=t[3];let p;t[4]!==c?(p=C.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:c}),t[4]=c,t[5]=p):p=t[5];let h;t[6]!==f||t[7]!==p?(h=C.jsxs("div",{className:"space-y-1",children:[f,p]}),t[6]=f,t[7]=p,t[8]=h):h=t[8];let g;t[9]!==s?(g=C.jsx(df,{variant:"outline",size:"sm",asChild:!0,children:C.jsx(kg,{to:"/$org/settings/profile",params:{org:s},children:"Go to your profile"})}),t[9]=s,t[10]=g):g=t[10];let v;return t[11]!==h||t[12]!==g?(v=C.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[d,h,g]}),t[11]=h,t[12]=g,t[13]=v):v=t[13],v}const YM="__mesh_chunk_reload_ts";function uL(e){return e?.message==="Organization is archived"}function ple(e){return!!e?.message?.includes("Access denied")}function WM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Nue extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),rL(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:uL(this.state.error)?C.jsx(cL,{}):ple(this.state.error)?C.jsx(hle,{}):C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(bE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(df,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class mle extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=WM(t);if(rL(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(YM),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(YM,String(s)),window.location.reload())}render(){return this.state.hasError&&WM(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(aL,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(df,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?uL(this.state.error)?C.jsx(cL,{}):C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(bE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(df,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}function dL(e){try{localStorage.setItem(su.lastLocation(),JSON.stringify(e))}catch{}}function gle(){try{const e=localStorage.getItem(su.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function kue(){try{localStorage.removeItem(su.lastLocation())}catch{}}let us=null,QM=!1;const Sw=new Set;function Cg(){for(const e of Sw)e()}function vle(){QM||typeof window>"u"||(QM=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),us=e,Cg()}),window.addEventListener("appinstalled",()=>{us=null,Cg()}))}function Due(){us!==null&&(us=null,Cg())}function yle(e){return Sw.add(e),()=>{Sw.delete(e)}}function _le(){return us}function ble(){return null}function wle(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&window.matchMedia("(display-mode: standalone)").matches,t=navigator.standalone===!0;return e||t}function Sle(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function Lue(){const e=ir.c(5),t=M.useSyncExternalStore(yle,_le,ble);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=wle(),e[0]=n):n=e[0];const r=n,o=t!==null&&!r;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=Sle(),l=Ele,e[1]=s,e[2]=l):(s=e[1],l=e[2]);let c;return e[3]!==o?(c={canPrompt:o,installed:r,ios:s,promptInstall:l},e[3]=o,e[4]=c):c=e[4],c}async function Ele(){if(!us)return"unavailable";await us.prompt();const e=await us.userChoice;return e.outcome==="accepted"&&(us=null,Cg()),e.outcome}const Pi=r9({component:()=>C.jsx(mle,{children:C.jsx(ale,{children:C.jsx(M.Suspense,{fallback:C.jsx(wE,{}),children:C.jsx(KP,{})})})})}),xle=gt({getParentRoute:()=>Pi,path:"/login",component:Ot(()=>Rt(()=>import("./login-DUTSfri0.js"),__vite__mapDeps([0,1,2,3,4,5]))),validateSearch:ya(()=>be({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional()}))}),Rle=gt({getParentRoute:()=>Pi,path:"/cli/auth-success",component:Ot(()=>Rt(()=>import("./cli-auth-success-B36KwAFt.js"),__vite__mapDeps([6,5])))}),Ole=gt({getParentRoute:()=>Pi,path:"/reset-password",component:Ot(()=>Rt(()=>import("./reset-password-CrnrgmIx.js"),__vite__mapDeps([7,2]))),validateSearch:ya(()=>be({token:$().optional(),error:$().optional()}))}),Tle=gt({getParentRoute:()=>Pi,path:"/auth/$pathname",component:Ot(()=>Rt(()=>import("./auth-catchall-kuEh1_rd.js"),[]))}),Cle=gt({getParentRoute:()=>Pi,path:"/oauth/callback",component:Ot(()=>Rt(()=>import("./oauth-callback-BXF1WEWL.js"),__vite__mapDeps([8,9,10])))}),Ale=gt({getParentRoute:()=>Pi,path:"/oauth/callback/ai-provider",component:Ot(()=>Rt(()=>import("./oauth-callback-ai-provider-MpQ7zAqW.js"),[]))}),SE=gt({getParentRoute:()=>Pi,id:"shell",component:Ot(()=>Rt(()=>import("./shell-layout-BgovnITR.js").then(e=>e.s),__vite__mapDeps([11,12,13,14,15,16,17,18,19,20,21,22,23,24,10,25,3,4,26,27,28,29])))}),Ile=gt({getParentRoute:()=>SE,path:"/",beforeLoad:async()=>{const e=gle();if(e?.taskId)throw Xa({to:"/$org/$taskId",params:{org:e.org,taskId:e.taskId},search:e.virtualmcpid?{virtualmcpid:e.virtualmcpid}:{}});if(e)throw Xa({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(su.lastOrgSlug());if(t)throw Xa({to:"/$org",params:{org:t}});const{data:n}=await dN();if(!n)return;const r=n[0];throw Xa(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),Mle=gt({getParentRoute:()=>Pi,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await dN();if(e&&e.length>0)throw Xa({to:"/"})},component:Ot(()=>Rt(()=>import("./onboarding-CKZFzjtY.js"),__vite__mapDeps([30,22,5,31,12,13,2,32,33,14,17,34,35,36])))}),Ple=gt({getParentRoute:()=>Pi,path:"/commerce-onboarding",component:Ot(()=>Rt(()=>import("./commerce-onboarding-Cv30K_3D.js"),__vite__mapDeps([37,1,2,3,4,5,31,12,13,26,24,10,38,39,40,41,42,43,44,45,46,14,17,47,48,49,50,51,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,64,65,66,67,36,68,16,21,19,20,69,70,71,32,72,73,9]))),validateSearch:ya(()=>be({org:$().optional(),siteUrl:$().optional()}))}),vv=gt({getParentRoute:()=>SE,path:"/$org",beforeLoad:({params:e})=>{dL({org:e.org})},component:Ot(()=>Rt(()=>import("./org-layout-hE5dYTZz.js"),[]))}),yv=gt({getParentRoute:()=>vv,id:"org-shell",component:Ot(()=>Rt(()=>import("./index-DZCgQXLz.js"),__vite__mapDeps([74,75,58,76,77,21,69,78,79,49,50,53,80,81,82,64,55,63,24,10,83,84,85,86,87,88,89,20,90,47,91,44,40,41,42,43,38,45,46,14,17,48,51,15,52,54,18,34,56,57,59,60,61,35,62,65,66,67,36,13,68,16,19,73,9,92,70,23,25,3,4,11,12,22,26,27,28,29,93,94,95,96,97,98,99,39,100,101,71,32,2,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120])))}),fL=gt({getParentRoute:()=>yv,id:"agent-shell",component:Ot(()=>Rt(()=>import("./index-CiVkOVzW.js").then(e=>e.aD),__vite__mapDeps([121,122,108,23,24,10,25,3,4,83,84,106,28,26,27,123,40,41,42,43,44,38,45,46,14,17,47,48,49,50,51,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,64,65,66,67,36,13,68,16,21,19,118,119,124,69,125,20,76,126,127,11,12,22,29,77,39,86,88,128,71,32,2,102,82,91,129,130,93,94,95,96,97,98,70,99,100,101,103,104,73,9,105,107,131,90,80,132,133,81,113,114,134,135,136,137,79,138,139,92,112,120,140,109,33,141,142,75,143,89,144,145,146,147,148,149,115,117,150,151,152,153,154,155])))}),Nle=be({virtualmcpid:$().optional(),tab:$().optional(),main:$().optional(),preview:$().optional(),id:$().optional(),toolName:$().optional(),tasks:ct().optional(),mainOpen:ct().optional(),chat:ct().optional(),autosend:$().optional(),runLocally:$().optional()}),kle=gt({getParentRoute:()=>fL,path:"/$taskId",validateSearch:Nle,beforeLoad:({params:e,search:t})=>{dL({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Dle=gt({getParentRoute:()=>yv,path:"/",component:Ot(()=>Rt(()=>import("./index-DS2I5JM3.js"),__vite__mapDeps([156,76,72,24,10,83,84,47,40,41,42,43,44,38,45,46,14,17,48,49,50,51,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,64,65,66,67,36,13,68,16,21,19,122,108,23,25,3,4,106,28,26,27,123,118,119,124,69,125,20,126,127,11,12,22,29,77,39,86,88,128,71,32,2,102,82,91,129,130,93,94,95,96,97,98,70,99,100,101,103,104,73,9,105,107,131,90,80,132,133,81,113,114,134,135,92,79])))}),Lle=be({path:$().optional(),preview:$().optional(),skill:$().optional()}),$le=gt({getParentRoute:()=>yv,path:"/files",validateSearch:Lle,component:Ot(()=>Rt(()=>import("./index-ALZP0-mx.js"),__vite__mapDeps([157,50,52,54,53,35,63,66,36,19,76,109,20,21,2,80,125,47,26,79,49,138,69,59,16,139,134,51,58,81,57,67,103,48])))}),Dn=gt({getParentRoute:()=>vv,path:"/settings",component:Ot(()=>Rt(()=>import("./settings-layout-BcPbOkgS.js"),__vite__mapDeps([158,78,77,21,75,58,76,69,79,49,50,142,46,14,56,57,65,13,19,112,111,28,136,135,25,3])))}),jle=gt({getParentRoute:()=>vv,path:"/install",component:Ot(()=>Rt(()=>import("./org-install-DVysq6Hz.js"),[]))}),zle=gt({getParentRoute:()=>Dn,path:"/",component:Ot(()=>Rt(()=>import("./index-redirect-CP9ATXDl.js"),__vite__mapDeps([159,112,160])))}),Ule=gt({getParentRoute:()=>Dn,path:"/connections",component:Ot(()=>Rt(()=>import("./connections-BgFAjnb1.js"),__vite__mapDeps([161,70,24,10,162,134,47,50,51,43,69,146,101,143,64,100,95,94,96,88,84,27,28,97,98,99,39,38,40,41,42,44,45,46,14,17,48,49,15,52,53,54,18,55,34,56,57,58,59,60,61,35,62,63,65,66,67,36,13,68,16,21,19,137,142,75,76,77,163,109,112,164,90,20,82,71,32,2,102,103,83,104,73,9]))),validateSearch:ya(()=>be({action:sn(["create"]).optional(),tab:sn(["all","connected"]).optional()}))}),Fle=gt({getParentRoute:()=>Dn,path:"/connections/$appSlug",component:Ot(()=>Rt(()=>import("./connection-detail-oU0C71F8.js"),__vite__mapDeps([165,70,24,10,137,104,2,63,67,166,142,75,58,76,77,21,69,92,53,57,88,84,96,27,28,102,47,48,167,140,9,101,127,52,55,40,41,42,43,44,38,45,46,14,17,49,50,51,15,54,18,34,56,59,60,61,35,62,64,65,66,36,13,68,16,19,114,81,83,85,86,149,115,12,128,39,71,32,163,109,168,129,94,91,99,134]))),validateSearch:ya(()=>be({tab:$().optional()}))}),Ble=gt({getParentRoute:()=>Dn,path:"/connections/$appSlug/$collectionName/$itemId",component:Ot(()=>Rt(()=>import("./collection-detail-CbhoYXmP.js"),__vite__mapDeps([169,137,84,24,10,71,32,2,103,166,142,75,58,76,77,21,69,92,53,57,88,70,96,27,28,63,102,47,48,167,140,9,101,127,52,55,40,41,42,43,44,38,45,46,14,17,49,50,51,15,54,18,34,56,59,60,61,35,62,64,65,66,67,36,13,68,16,19,114,81,83,85,86,170,94,126,39,108,23,25,3,4,106,26,11,12,20,22,29,152,139]))),validateSearch:ya(()=>be({replayId:$().optional()}))}),Vle=gt({getParentRoute:()=>Dn,path:"/monitor",component:Ot(()=>Rt(()=>import("./index-BAfXUZ9K.js"),__vite__mapDeps([171,143,64,142,75,58,76,77,21,69,137,172,112,173,160,123,40,41,42,43,44,38,45,46,14,17,47,48,49,50,51,15,52,53,54,18,55,34,56,57,59,60,61,35,62,63,65,66,67,36,13,68,16,19,118,119,124,125,20,26,126,127,24,10,108,23,25,3,4,83,84,106,28,27,11,12,22,29,39,86,88,128,71,32,2,102,94,101,81,152,139,149,115,147,97,98,99,148,117,150,105,90,113,114,103,100,33,170,168,167]))),validateSearch:ya(()=>be({tab:sn(["overview","audit","dashboards","threads","automations"]).default("overview"),from:$().default("now-30m"),to:$().default("now"),connectionId:Oe($()).optional().default([]),virtualMcpId:Oe($()).optional().default([]),tool:$().default(""),status:sn(["all","success","errors"]).default("all"),search:$().default(""),page:ct().optional(),streaming:Nt().default(!0),propertyFilters:$().default(""),hideSystem:Nt().default(!1)}))}),qle=gt({getParentRoute:()=>Dn,path:"/general",component:Ot(()=>Rt(()=>import("./general-9kWrBaDN.js"),__vite__mapDeps([174,142,75,58,76,77,21,69,115,141,12,13,2,133,99,45,175,28,101,102,47,48,109,172,112,173,160])))}),Hle=gt({getParentRoute:()=>Dn,path:"/brand-context",component:Ot(()=>Rt(()=>import("./brand-context-BaVxi4M4.js"),__vite__mapDeps([176,48,50,55,59,63,67,19,109,2,103,142,75,58,76,77,21,69,28,141,172,112,173,160])))}),Gle=gt({getParentRoute:()=>Dn,path:"/ai-providers",component:Ot(()=>Rt(()=>import("./ai-providers-CG207wTX.js"),__vite__mapDeps([177,41,142,75,58,76,77,21,69,80,133,99,45,106,28,17,108,23,24,10,25,3,4,83,84,26,27,153,20,82,131,90,47,2,102,48,44,42,57,64,132,60,50,12,13,52,107,66,141,130,109,63,67,145,119,172,112,173,160])))}),Kle=gt({getParentRoute:()=>Dn,path:"/secrets",component:Ot(()=>Rt(()=>import("./secrets-DPqx_gXC.js"),__vite__mapDeps([178,41,63,13,68,20,21,2,32,102,69,47,48,80,103,142,75,58,76,77,133,99,45,144,28,172,112,173,160])))}),Zle=gt({getParentRoute:()=>Dn,path:"/files",component:Ot(()=>Rt(()=>import("./files-CkNnfKPK.js"),[]))}),Yle=gt({getParentRoute:()=>Dn,path:"/buckets",component:Ot(()=>Rt(()=>import("./buckets-BKwGKvkZ.js"),__vite__mapDeps([179,41,56,63,67,109,20,21,2,32,102,69,47,48,33,80,103,142,75,58,76,77,133,99,45,151,28,172,112,173,160])))}),Wle=gt({getParentRoute:()=>Dn,path:"/members",component:Ot(()=>Rt(()=>import("./members-Dq59tJj1.js"),__vite__mapDeps([180,162,134,47,50,51,43,69,146,101,143,64,142,75,58,76,77,21,181,148,115,137,20,71,32,102,48,103,133,99,45,111,112,28,12,13,149,109,57,65,67,16,90,113,114,81,63,172,173,160])))}),Qle=gt({getParentRoute:()=>Dn,path:"/roles",component:Ot(()=>Rt(()=>import("./roles-DRg1cyfq.js"),__vite__mapDeps([182,181,148,43,115,101,109,134,47,50,51,63,67,142,75,58,76,77,21,69,137,143,64,132,39,38,40,41,42,44,45,46,14,17,48,49,15,52,53,54,18,55,34,56,57,59,60,61,35,62,65,66,36,13,68,16,19,98,90,105,24,10,91,149,88,84,106,28,12,33,133,99,112,173,160]))),validateSearch:ya(()=>be({role:$().optional()}))}),Xle=gt({getParentRoute:()=>Dn,path:"/sso",component:Ot(()=>Rt(()=>import("./sso-B5RA5Egt.js"),__vite__mapDeps([183,175,28,133,99,45,101,2,102,69,47,48,142,75,58,76,77,21,33,29,67,172,112,173,160])))}),Jle=gt({getParentRoute:()=>Dn,path:"/profile",component:Ot(()=>Rt(()=>import("./profile-DwtHhCaD.js"),__vite__mapDeps([184,142,75,58,76,77,21,69,12,13,33,102,47,48,130,2,60,61,62,141,135,110,133,99,45])))}),ece=gt({getParentRoute:()=>Dn,path:"/store",component:Ot(()=>Rt(()=>import("./store-Ni3ANns9.js"),__vite__mapDeps([185,41,50,63,67,2,33,80,12,13,81,88,84,24,10,142,75,58,76,77,21,69,96,27,28,133,99,45,172,112,173,160])))}),tce=gt({getParentRoute:()=>Dn,path:"/registry",component:Ot(()=>Rt(()=>import("./registry-CxYUBbU6.js"),__vite__mapDeps([186,172,112,173,160])))}),nce=gt({getParentRoute:()=>Dn,path:"/store/registry",component:Ot(()=>Rt(()=>import("./store-registry-kIHn_jDR.js"),__vite__mapDeps([187,172,112,173,160])))}),rce=gt({getParentRoute:()=>Dn,path:"/agents",component:Ot(()=>Rt(()=>import("./agents-list-Cd9i8250.js"),__vite__mapDeps([188,134,47,50,51,55,14,89,20,21,90,91,64,88,84,24,10,44,40,41,42,43,38,45,46,17,48,49,15,52,53,54,18,34,56,57,58,59,60,61,35,62,63,65,66,67,36,13,68,16,19,73,9,92,70,86,83,87,142,75,76,77,69,99,145,119,112,137,85,109,143])))}),oce=gt({getParentRoute:()=>Dn,path:"/automations",component:Ot(()=>Rt(()=>import("./automations-wXAz-GXj.js"),__vite__mapDeps([189,63,19,143,64,142,75,58,76,77,21,69,137,150,24,10,28,86,83,84,154,109,134,47,50,51,15,67,40,41,42,43,44,38,45,46,14,17,48,49,52,53,54,18,55,34,56,57,59,60,61,35,62,65,66,36,13,68,16,172,112,173,160])))}),ice=Dn.addChildren([zle,Ule,Fle,Ble,rce,oce,Vle,qle,Hle,Gle,Kle,Zle,Yle,Wle,Qle,Xle,Jle,ece,nce,tce]),sce=fL.addChildren([kle]),ace=yv.addChildren([Dle,$le,sce]),lce=vv.addChildren([ace,ice,jle]),cce=SE.addChildren([Ile,lce]),uce=Pi.addChildren([cce,Mle,Ple,xle,Rle,Ole,Tle,Cle,Ale]),dce=p9({routeTree:uce,defaultPendingComponent:wE,defaultPendingMs:200,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})});vle();const fce=document.getElementById("root");Dj.createRoot(fce).render(C.jsx(M.StrictMode,{children:C.jsx(v9,{router:dce})}));export{sS as $,Kce as A,df as B,Jae as C,ooe as D,Nue as E,vP as F,kg as G,bce as H,hl as I,nle as J,gP as K,su as L,ute as M,Sce as N,KP as O,Uae as P,yce as Q,Gee as R,wE as S,pt as T,MW as U,Sn as V,lt as W,H4 as X,vl as Y,gs as Z,Jn as _,Bg as a,dae as a$,PW as a0,NW as a1,lS as a2,gf as a3,ek as a4,oL as a5,Eue as a6,_ce as a7,bE as a8,gue as a9,D2 as aA,w8 as aB,S8 as aC,Oe as aD,sn as aE,Mt as aF,Nt as aG,Mue as aH,uK as aI,Pue as aJ,lv as aK,NC as aL,Ew as aM,pW as aN,ii as aO,Jd as aP,Ng as aQ,vS as aR,Gc as aS,pa as aT,vs as aU,si as aV,N4 as aW,gW as aX,_W as aY,vW as aZ,oW as a_,xue as aa,cK as ab,Mce as ac,_ae as ad,aL as ae,dK as af,sL as ag,ee as ah,A4 as ai,I4 as aj,la as ak,ct as al,Rt as am,Sue as an,tu as ao,Wn as ap,Am as aq,eP as ar,lP as as,v8 as at,y8 as au,E8 as av,_8 as aw,b8 as ax,Zn as ay,R8 as az,Pg as b,Aue as b$,q6 as b0,pce as b1,bo as b2,_o as b3,el as b4,Due as b5,Lue as b6,Gt as b7,wue as b8,vue as b9,fl as bA,mt as bB,Xse as bC,TN as bD,Zw as bE,QN as bF,rD as bG,iD as bH,iX as bI,V4 as bJ,MX as bK,cle as bL,lX as bM,V7 as bN,qP as bO,ri as bP,Wce as bQ,oi as bR,hce as bS,pY as bT,ma as bU,dv as bV,uf as bW,dle as bX,gle as bY,kue as bZ,Iue as b_,bue as ba,HW as bb,nk as bc,qW as bd,Rue as be,H6 as bf,iS as bg,lue as bh,ZB as bi,Z3 as bj,GB as bk,fn as bl,Ge as bm,Fw as bn,RB as bo,Oce as bp,QB as bq,_V as br,qw as bs,Bw as bt,tV as bu,Tce as bv,oue as bw,tie as bx,ya as by,TB as bz,ir as c,S6 as c$,Oue as c0,uN as c1,cL as c2,Tue as c3,Qce as c4,xce as c5,Koe as c6,Zoe as c7,lE as c8,D6 as c9,Rce as cA,Sf as cB,uY as cC,fY as cD,hY as cE,mf as cF,hK as cG,fK as cH,FN as cI,pP as cJ,uue as cK,aae as cL,due as cM,ioe as cN,ow as cO,sw as cP,iw as cQ,fue as cR,vw as cS,wr as cT,uw as cU,hue as cV,mue as cW,pue as cX,cue as cY,q9 as cZ,y6 as c_,cE as ca,uv as cb,_6 as cc,lie as cd,w6 as ce,rie as cf,gie as cg,Ooe as ch,Coe as ci,Moe as cj,Boe as ck,oie as cl,Toe as cm,Aoe as cn,Poe as co,Noe as cp,Voe as cq,Qoe as cr,_ue as cs,yue as ct,Hce as cu,Z6 as cv,gB as cw,Ece as cx,Cce as cy,Vw as cz,O8 as d,eX as d$,R6 as d0,T6 as d1,C6 as d2,I6 as d3,nue as d4,rue as d5,eue as d6,tue as d7,soe as d8,Jce as d9,cS as dA,Xd as dB,r4 as dC,aS as dD,gce as dE,mce as dF,bQ as dG,RQ as dH,IQ as dI,wQ as dJ,SQ as dK,_Q as dL,lk as dM,EQ as dN,xQ as dO,OQ as dP,TQ as dQ,CQ as dR,AQ as dS,MQ as dT,NQ as dU,kQ as dV,kce as dW,Nce as dX,XQ as dY,JQ as dZ,nX as d_,E6 as da,O6 as db,A6 as dc,sue as dd,x6 as de,_oe as df,Xce as dg,v6 as dh,Bie as di,Woe as dj,aue as dk,kie as dl,$ie as dm,yie as dn,vie as dp,iue as dq,mY as dr,gY as ds,vY as dt,dY as du,mX as dv,gX as dw,pX as dx,Pce as dy,f4 as dz,Dw as e,tX as e0,Dce as e1,Lce as e2,Uce as e3,Fce as e4,Bce as e5,Vce as e6,$ce as e7,jce as e8,zce as e9,hle as ea,Zce as f,Gce as g,Yce as h,iL as i,C as j,mP as k,lle as l,Aw as m,Ci as n,be as o,Ti as p,ff as q,M as r,$ as s,ZT as t,BP as u,Cue as v,Wae as w,Ace as x,Ice as y,wce as z};