@hotmeshio/long-tail 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dashboard/dist/assets/AdminDashboard-Nvja-XIJ.js +2 -0
  2. package/dashboard/dist/assets/{AdminDashboard-Ck5-jV9T.js.map → AdminDashboard-Nvja-XIJ.js.map} +1 -1
  3. package/dashboard/dist/assets/AgentConfigPage-Sf2god7q.js +16 -0
  4. package/dashboard/dist/assets/{AgentConfigPage-DFiXRBWs.js.map → AgentConfigPage-Sf2god7q.js.map} +1 -1
  5. package/dashboard/dist/assets/AgentDetailPage-DtgDeZJR.js +4 -0
  6. package/dashboard/dist/assets/{AgentDetailPage-BBgM_pMe.js.map → AgentDetailPage-DtgDeZJR.js.map} +1 -1
  7. package/dashboard/dist/assets/AgentsPage-C6zqP_xC.js +2 -0
  8. package/dashboard/dist/assets/{AgentsPage-DxwFuedf.js.map → AgentsPage-C6zqP_xC.js.map} +1 -1
  9. package/dashboard/dist/assets/AvailableEscalationsPage-D61kC7Is.js +2 -0
  10. package/dashboard/dist/assets/{AvailableEscalationsPage-DNQbeIcn.js.map → AvailableEscalationsPage-D61kC7Is.js.map} +1 -1
  11. package/dashboard/dist/assets/BotPicker-ChgljKHj.js +2 -0
  12. package/dashboard/dist/assets/{BotPicker-mqwKVOE3.js.map → BotPicker-ChgljKHj.js.map} +1 -1
  13. package/dashboard/dist/assets/CapabilitiesPage-DeybKoZM.js +2 -0
  14. package/dashboard/dist/assets/{CapabilitiesPage-Biffm0kW.js.map → CapabilitiesPage-DeybKoZM.js.map} +1 -1
  15. package/dashboard/dist/assets/CollapsibleSection-BPiTuPBk.js +2 -0
  16. package/dashboard/dist/assets/{CollapsibleSection-Bn6Ks79X.js.map → CollapsibleSection-BPiTuPBk.js.map} +1 -1
  17. package/dashboard/dist/assets/ConfirmDeleteModal-D9_1b4MW.js +2 -0
  18. package/dashboard/dist/assets/{ConfirmDeleteModal-no0-c_1G.js.map → ConfirmDeleteModal-D9_1b4MW.js.map} +1 -1
  19. package/dashboard/dist/assets/CopyableId-blg-gZvT.js +2 -0
  20. package/dashboard/dist/assets/{CopyableId-DS6IDMIX.js.map → CopyableId-blg-gZvT.js.map} +1 -1
  21. package/dashboard/dist/assets/CredentialsPage-DXOcPWtd.js +2 -0
  22. package/dashboard/dist/assets/{CredentialsPage-C3NyncEB.js.map → CredentialsPage-DXOcPWtd.js.map} +1 -1
  23. package/dashboard/dist/assets/CronLabel-D3411N8x.js +2 -0
  24. package/dashboard/dist/assets/{CronLabel-DQWBx57H.js.map → CronLabel-D3411N8x.js.map} +1 -1
  25. package/dashboard/dist/assets/CustomDurationPicker-WG2tPSbV.js +2 -0
  26. package/dashboard/dist/assets/{CustomDurationPicker-DV42oZ1G.js.map → CustomDurationPicker-WG2tPSbV.js.map} +1 -1
  27. package/dashboard/dist/assets/DataTable-ZWgVQg7F.js +2 -0
  28. package/dashboard/dist/assets/{DataTable-Bf4dgxll.js.map → DataTable-ZWgVQg7F.js.map} +1 -1
  29. package/dashboard/dist/assets/DropZone-SgiK1WOl.js +2 -0
  30. package/dashboard/dist/assets/{DropZone-CTSXBb3c.js.map → DropZone-SgiK1WOl.js.map} +1 -1
  31. package/dashboard/dist/assets/ElapsedCell-BFWEGSD7.js +2 -0
  32. package/dashboard/dist/assets/{ElapsedCell-roy4G5SQ.js.map → ElapsedCell-BFWEGSD7.js.map} +1 -1
  33. package/dashboard/dist/assets/EmptyState-BcsfPq9T.js +2 -0
  34. package/dashboard/dist/assets/{EmptyState-CLVm9KmA.js.map → EmptyState-BcsfPq9T.js.map} +1 -1
  35. package/dashboard/dist/assets/EscalationSchemaPage-D2Y5Yeqn.js +9 -0
  36. package/dashboard/dist/assets/{EscalationSchemaPage-DulCCxea.js.map → EscalationSchemaPage-D2Y5Yeqn.js.map} +1 -1
  37. package/dashboard/dist/assets/EscalationsOverview-VlLcX2YM.js +2 -0
  38. package/dashboard/dist/assets/{EscalationsOverview-DDwxn_mT.js.map → EscalationsOverview-VlLcX2YM.js.map} +1 -1
  39. package/dashboard/dist/assets/EventTable-3MJw14jp.js +2 -0
  40. package/dashboard/dist/assets/{EventTable-BaLNvCew.js.map → EventTable-3MJw14jp.js.map} +1 -1
  41. package/dashboard/dist/assets/FilterBar-B4Mk2PvT.js +2 -0
  42. package/dashboard/dist/assets/{FilterBar-DEAbNQqp.js.map → FilterBar-B4Mk2PvT.js.map} +1 -1
  43. package/dashboard/dist/assets/GraphInvokePage-QaUUrPnh.js +2 -0
  44. package/dashboard/dist/assets/{GraphInvokePage-BmM8r0R3.js.map → GraphInvokePage-QaUUrPnh.js.map} +1 -1
  45. package/dashboard/dist/assets/HomePage-Br0A3iOp.js +2 -0
  46. package/dashboard/dist/assets/HomePage-Br0A3iOp.js.map +1 -0
  47. package/dashboard/dist/assets/ListToolbar-d4MGQefV.js +2 -0
  48. package/dashboard/dist/assets/{ListToolbar-Dviaskni.js.map → ListToolbar-d4MGQefV.js.map} +1 -1
  49. package/dashboard/dist/assets/McpOverview-CUzJD5Z5.js +2 -0
  50. package/dashboard/dist/assets/{McpOverview-BBm66wbF.js.map → McpOverview-CUzJD5Z5.js.map} +1 -1
  51. package/dashboard/dist/assets/McpQueryDetailPage-pYSZmV3M.js +5 -0
  52. package/dashboard/dist/assets/{McpQueryDetailPage-B6GJOMcz.js.map → McpQueryDetailPage-pYSZmV3M.js.map} +1 -1
  53. package/dashboard/dist/assets/McpQueryPage-CA5C5dss.js +2 -0
  54. package/dashboard/dist/assets/{McpQueryPage-C-8nIdBL.js.map → McpQueryPage-CA5C5dss.js.map} +1 -1
  55. package/dashboard/dist/assets/McpRunDetailPage-CrRkXwAe.js +2 -0
  56. package/dashboard/dist/assets/{McpRunDetailPage-CSq_0qqi.js.map → McpRunDetailPage-CrRkXwAe.js.map} +1 -1
  57. package/dashboard/dist/assets/McpRunsPage-BqRBDbkn.js +2 -0
  58. package/dashboard/dist/assets/McpRunsPage-BqRBDbkn.js.map +1 -0
  59. package/dashboard/dist/assets/Modal-CSrxpXeM.js +2 -0
  60. package/dashboard/dist/assets/{Modal-C6HI6btY.js.map → Modal-CSrxpXeM.js.map} +1 -1
  61. package/dashboard/dist/assets/NamespacePill-SErKwgkb.js +2 -0
  62. package/dashboard/dist/assets/{NamespacePill-eGsbJBFa.js.map → NamespacePill-SErKwgkb.js.map} +1 -1
  63. package/dashboard/dist/assets/OperationsPage--uVJxzmP.js +2 -0
  64. package/dashboard/dist/assets/OperationsPage--uVJxzmP.js.map +1 -0
  65. package/dashboard/dist/assets/OperatorDashboard-D-UMrTqI.js +2 -0
  66. package/dashboard/dist/assets/{OperatorDashboard-BbmgsOmQ.js.map → OperatorDashboard-D-UMrTqI.js.map} +1 -1
  67. package/dashboard/dist/assets/PageHeader-DJo7yMUR.js +2 -0
  68. package/dashboard/dist/assets/{PageHeader-DcgGV0Y2.js.map → PageHeader-DJo7yMUR.js.map} +1 -1
  69. package/dashboard/dist/assets/PageHeaderWithStats-W3akV6nB.js +2 -0
  70. package/dashboard/dist/assets/{PageHeaderWithStats-Cf8TYFRh.js.map → PageHeaderWithStats-W3akV6nB.js.map} +1 -1
  71. package/dashboard/dist/assets/PriorityBadge-B4ykBH7f.js +2 -0
  72. package/dashboard/dist/assets/{PriorityBadge-a7u8C9uY.js.map → PriorityBadge-B4ykBH7f.js.map} +1 -1
  73. package/dashboard/dist/assets/ProcessDetailPage-BV6D_wuR.js +2 -0
  74. package/dashboard/dist/assets/{ProcessDetailPage-D80w44rV.js.map → ProcessDetailPage-BV6D_wuR.js.map} +1 -1
  75. package/dashboard/dist/assets/ProcessesListPage-BAalEHpx.js +2 -0
  76. package/dashboard/dist/assets/{ProcessesListPage-BjW5xUkv.js.map → ProcessesListPage-BAalEHpx.js.map} +1 -1
  77. package/dashboard/dist/assets/RoleDetailPage-ClE7rUoo.js +11 -0
  78. package/dashboard/dist/assets/{RoleDetailPage-oahg0cdT.js.map → RoleDetailPage-ClE7rUoo.js.map} +1 -1
  79. package/dashboard/dist/assets/RolePill-DHWixsQR.js +2 -0
  80. package/dashboard/dist/assets/{RolePill-BAeaQUXX.js.map → RolePill-DHWixsQR.js.map} +1 -1
  81. package/dashboard/dist/assets/RolesPage-DMsgZioQ.js +2 -0
  82. package/dashboard/dist/assets/{RolesPage-BI1Xtqq_.js.map → RolesPage-DMsgZioQ.js.map} +1 -1
  83. package/dashboard/dist/assets/RowActions-BA9L9djf.js +2 -0
  84. package/dashboard/dist/assets/{RowActions--m4F6GW8.js.map → RowActions-BA9L9djf.js.map} +1 -1
  85. package/dashboard/dist/assets/RunAsSelector-VCnEYIwj.js +2 -0
  86. package/dashboard/dist/assets/{RunAsSelector-DiGzSfiG.js.map → RunAsSelector-VCnEYIwj.js.map} +1 -1
  87. package/dashboard/dist/assets/StatCard-DrdlUeQz.js +2 -0
  88. package/dashboard/dist/assets/{StatCard-DCPGFzCv.js.map → StatCard-DrdlUeQz.js.map} +1 -1
  89. package/dashboard/dist/assets/StatusBadge-DZ9137bI.js +2 -0
  90. package/dashboard/dist/assets/{StatusBadge-mk-dJwPT.js.map → StatusBadge-DZ9137bI.js.map} +1 -1
  91. package/dashboard/dist/assets/StickyPagination-3eCY2-_V.js +2 -0
  92. package/dashboard/dist/assets/{StickyPagination-Clm9H840.js.map → StickyPagination-3eCY2-_V.js.map} +1 -1
  93. package/dashboard/dist/assets/StreamMessageDetail-70kDFH4o.js +2 -0
  94. package/dashboard/dist/assets/{StreamMessageDetail-Bikvs1Cz.js.map → StreamMessageDetail-70kDFH4o.js.map} +1 -1
  95. package/dashboard/dist/assets/SwimlaneTimeline-BOXRit6t.js +2 -0
  96. package/dashboard/dist/assets/{SwimlaneTimeline-C9X3IVqI.js.map → SwimlaneTimeline-BOXRit6t.js.map} +1 -1
  97. package/dashboard/dist/assets/TagInput-CGGC3DTR.js +2 -0
  98. package/dashboard/dist/assets/{TagInput-DmJLnghg.js.map → TagInput-CGGC3DTR.js.map} +1 -1
  99. package/dashboard/dist/assets/TaskDetailPage-YxGQE9Qg.js +2 -0
  100. package/dashboard/dist/assets/TaskDetailPage-YxGQE9Qg.js.map +1 -0
  101. package/dashboard/dist/assets/TaskQueuePill-D6omQJNY.js +2 -0
  102. package/dashboard/dist/assets/{TaskQueuePill--1OX6egx.js.map → TaskQueuePill-D6omQJNY.js.map} +1 -1
  103. package/dashboard/dist/assets/TasksListPage-DuLJQN7Q.js +2 -0
  104. package/dashboard/dist/assets/{TasksListPage-DcYV-GMA.js.map → TasksListPage-DuLJQN7Q.js.map} +1 -1
  105. package/dashboard/dist/assets/TimeAgo-dnc1ZjKc.js +2 -0
  106. package/dashboard/dist/assets/{TimeAgo-pYn3T9IZ.js.map → TimeAgo-dnc1ZjKc.js.map} +1 -1
  107. package/dashboard/dist/assets/TimestampCell-CDR6cTyq.js +2 -0
  108. package/dashboard/dist/assets/{TimestampCell-BPMCscic.js.map → TimestampCell-CDR6cTyq.js.map} +1 -1
  109. package/dashboard/dist/assets/ToolPill-BW0iRwZu.js +2 -0
  110. package/dashboard/dist/assets/{ToolPill-BnF9lCUX.js.map → ToolPill-BW0iRwZu.js.map} +1 -1
  111. package/dashboard/dist/assets/ToolTestPanel-CfwGdRdz.js +2 -0
  112. package/dashboard/dist/assets/{ToolTestPanel-Bw4z_Tya.js.map → ToolTestPanel-CfwGdRdz.js.map} +1 -1
  113. package/dashboard/dist/assets/TopicDetailPage-f2qaeGFz.js +9 -0
  114. package/dashboard/dist/assets/{TopicDetailPage-CtFztOnn.js.map → TopicDetailPage-f2qaeGFz.js.map} +1 -1
  115. package/dashboard/dist/assets/TopicsPage-CwYdVmyK.js +2 -0
  116. package/dashboard/dist/assets/{TopicsPage-BXdc6pAU.js.map → TopicsPage-CwYdVmyK.js.map} +1 -1
  117. package/dashboard/dist/assets/UserName-CRE7EZPU.js +2 -0
  118. package/dashboard/dist/assets/{UserName-R96NG6xB.js.map → UserName-CRE7EZPU.js.map} +1 -1
  119. package/dashboard/dist/assets/WorkflowExecutionPage-BjNBu-Zt.js +2 -0
  120. package/dashboard/dist/assets/{WorkflowExecutionPage-DmRJabMQ.js.map → WorkflowExecutionPage-BjNBu-Zt.js.map} +1 -1
  121. package/dashboard/dist/assets/WorkflowPill-BtNBSplz.js +2 -0
  122. package/dashboard/dist/assets/{WorkflowPill-Cc2MlYbB.js.map → WorkflowPill-BtNBSplz.js.map} +1 -1
  123. package/dashboard/dist/assets/WorkflowsDashboard-DfpvbzNt.js +2 -0
  124. package/dashboard/dist/assets/WorkflowsDashboard-DfpvbzNt.js.map +1 -0
  125. package/dashboard/dist/assets/WorkflowsOverview-BwD2lQwj.js +2 -0
  126. package/dashboard/dist/assets/{WorkflowsOverview-BhgE0RS8.js.map → WorkflowsOverview-BwD2lQwj.js.map} +1 -1
  127. package/dashboard/dist/assets/YamlWorkflowDetailPage-BhHb7j2s.js +33 -0
  128. package/dashboard/dist/assets/{YamlWorkflowDetailPage-CvIgB5y7.js.map → YamlWorkflowDetailPage-BhHb7j2s.js.map} +1 -1
  129. package/dashboard/dist/assets/YamlWorkflowsPage-SBRpY2dI.js +2 -0
  130. package/dashboard/dist/assets/YamlWorkflowsPage-SBRpY2dI.js.map +1 -0
  131. package/dashboard/dist/assets/{agents-BpYMwrsB.js → agents-VbkdqWCr.js} +2 -2
  132. package/dashboard/dist/assets/{agents-BpYMwrsB.js.map → agents-VbkdqWCr.js.map} +1 -1
  133. package/dashboard/dist/assets/{bots-DI6Wqp5X.js → bots-CsgYcYU_.js} +2 -2
  134. package/dashboard/dist/assets/{bots-DI6Wqp5X.js.map → bots-CsgYcYU_.js.map} +1 -1
  135. package/dashboard/dist/assets/capabilities-CMhFyoDl.js +2 -0
  136. package/dashboard/dist/assets/{capabilities-BKZZb8eM.js.map → capabilities-CMhFyoDl.js.map} +1 -1
  137. package/dashboard/dist/assets/{controlplane-Djshb7fm.js → controlplane-BstXtPbV.js} +2 -2
  138. package/dashboard/dist/assets/{controlplane-Djshb7fm.js.map → controlplane-BstXtPbV.js.map} +1 -1
  139. package/dashboard/dist/assets/escalation-C0BNAeIG.js +2 -0
  140. package/dashboard/dist/assets/{escalation-D8mrXtjS.js.map → escalation-C0BNAeIG.js.map} +1 -1
  141. package/dashboard/dist/assets/escalation-columns-DajPgfuV.js +2 -0
  142. package/dashboard/dist/assets/{escalation-columns-CyLzgPkz.js.map → escalation-columns-DajPgfuV.js.map} +1 -1
  143. package/dashboard/dist/assets/index-BWLVqWLU.js +2 -0
  144. package/dashboard/dist/assets/{index-CQtv2rj6.js.map → index-BWLVqWLU.js.map} +1 -1
  145. package/dashboard/dist/assets/index-BY5m8rhE.js +2 -0
  146. package/dashboard/dist/assets/{index-CwAmiy_j.js.map → index-BY5m8rhE.js.map} +1 -1
  147. package/dashboard/dist/assets/index-BYf0oNSQ.js +6 -0
  148. package/dashboard/dist/assets/{index-eshNd6NY.js.map → index-BYf0oNSQ.js.map} +1 -1
  149. package/dashboard/dist/assets/index-BcaQ_hCz.js +9 -0
  150. package/dashboard/dist/assets/{index-Y6yj36QR.js.map → index-BcaQ_hCz.js.map} +1 -1
  151. package/dashboard/dist/assets/index-BdqKh0UK.css +1 -0
  152. package/dashboard/dist/assets/index-C8k3Z2su.js +63 -0
  153. package/dashboard/dist/assets/index-C8k3Z2su.js.map +1 -0
  154. package/dashboard/dist/assets/index-CSixdp5W.js +2 -0
  155. package/dashboard/dist/assets/{index-yxnQew1X.js.map → index-CSixdp5W.js.map} +1 -1
  156. package/dashboard/dist/assets/index-CXnSqSFH.js +2 -0
  157. package/dashboard/dist/assets/{index-B5MAG4Uv.js.map → index-CXnSqSFH.js.map} +1 -1
  158. package/dashboard/dist/assets/index-CaSMWhLU.js +2 -0
  159. package/dashboard/dist/assets/{index-C71I-f5G.js.map → index-CaSMWhLU.js.map} +1 -1
  160. package/dashboard/dist/assets/index-Cl1vY8Lg.js +2 -0
  161. package/dashboard/dist/assets/{index-xn9fmkHC.js.map → index-Cl1vY8Lg.js.map} +1 -1
  162. package/dashboard/dist/assets/index-CvFQtPWA.js +2 -0
  163. package/dashboard/dist/assets/{index-CJb3dXku.js.map → index-CvFQtPWA.js.map} +1 -1
  164. package/dashboard/dist/assets/index-DWlPFH3T.js +6 -0
  165. package/dashboard/dist/assets/{index-BfxiRwk2.js.map → index-DWlPFH3T.js.map} +1 -1
  166. package/dashboard/dist/assets/index-D_6JFBiM.js +2 -0
  167. package/dashboard/dist/assets/{index-DkbnD-Te.js.map → index-D_6JFBiM.js.map} +1 -1
  168. package/dashboard/dist/assets/index-fqU_l4dC.js +2 -0
  169. package/dashboard/dist/assets/{index-CphzO7b8.js.map → index-fqU_l4dC.js.map} +1 -1
  170. package/dashboard/dist/assets/{knowledge-C_1r0faY.js → knowledge-Bskl1MbC.js} +2 -2
  171. package/dashboard/dist/assets/{knowledge-C_1r0faY.js.map → knowledge-Bskl1MbC.js.map} +1 -1
  172. package/dashboard/dist/assets/{mcp-BtG54ZAx.js → mcp-C_qz25AB.js} +2 -2
  173. package/dashboard/dist/assets/{mcp-BtG54ZAx.js.map → mcp-C_qz25AB.js.map} +1 -1
  174. package/dashboard/dist/assets/{mcp-query-CSdQWxmv.js → mcp-query-CJx58s1A.js} +2 -2
  175. package/dashboard/dist/assets/{mcp-query-CSdQWxmv.js.map → mcp-query-CJx58s1A.js.map} +1 -1
  176. package/dashboard/dist/assets/{pipelines-DVkwxN64.js → pipelines-B6GzpgtG.js} +2 -2
  177. package/dashboard/dist/assets/{pipelines-DVkwxN64.js.map → pipelines-B6GzpgtG.js.map} +1 -1
  178. package/dashboard/dist/assets/roles-D8lPvFgG.js +2 -0
  179. package/dashboard/dist/assets/{roles-CpRcUIMm.js.map → roles-D8lPvFgG.js.map} +1 -1
  180. package/dashboard/dist/assets/tasks-BWHakSYf.js +2 -0
  181. package/dashboard/dist/assets/{tasks-DNdvW5H6.js.map → tasks-BWHakSYf.js.map} +1 -1
  182. package/dashboard/dist/assets/{topics-DNC77Chw.js → topics-0dXzPX8t.js} +2 -2
  183. package/dashboard/dist/assets/{topics-DNC77Chw.js.map → topics-0dXzPX8t.js.map} +1 -1
  184. package/dashboard/dist/assets/{useCollapsedSections-CGNA5oKV.js → useCollapsedSections-BU5HULGs.js} +2 -2
  185. package/dashboard/dist/assets/{useCollapsedSections-CGNA5oKV.js.map → useCollapsedSections-BU5HULGs.js.map} +1 -1
  186. package/dashboard/dist/assets/{useDebouncedValue-DmL3uNt_.js → useDebouncedValue-BA5S7V54.js} +2 -2
  187. package/dashboard/dist/assets/{useDebouncedValue-DmL3uNt_.js.map → useDebouncedValue-BA5S7V54.js.map} +1 -1
  188. package/dashboard/dist/assets/{useEventHooks-CUUeBSH1.js → useEventHooks-Dpixlgp-.js} +2 -2
  189. package/dashboard/dist/assets/{useEventHooks-CUUeBSH1.js.map → useEventHooks-Dpixlgp-.js.map} +1 -1
  190. package/dashboard/dist/assets/{useFilterParams-Ch-a71bE.js → useFilterParams-x-Dg0Vgz.js} +2 -2
  191. package/dashboard/dist/assets/{useFilterParams-Ch-a71bE.js.map → useFilterParams-x-Dg0Vgz.js.map} +1 -1
  192. package/dashboard/dist/assets/{useNamespace-D-AjLnPK.js → useNamespace-DQMc77ok.js} +2 -2
  193. package/dashboard/dist/assets/{useNamespace-D-AjLnPK.js.map → useNamespace-DQMc77ok.js.map} +1 -1
  194. package/dashboard/dist/assets/{useYamlActivityEvents-DRdetOb_.js → useYamlActivityEvents-DO5bHOVE.js} +2 -2
  195. package/dashboard/dist/assets/{useYamlActivityEvents-DRdetOb_.js.map → useYamlActivityEvents-DO5bHOVE.js.map} +1 -1
  196. package/dashboard/dist/assets/{users-BUgdEsec.js → users-B_LVbnUk.js} +2 -2
  197. package/dashboard/dist/assets/{users-BUgdEsec.js.map → users-B_LVbnUk.js.map} +1 -1
  198. package/dashboard/dist/assets/{vendor-icons-CNyYGNsk.js → vendor-icons-DOIDKgo6.js} +116 -121
  199. package/dashboard/dist/assets/{vendor-icons-CNyYGNsk.js.map → vendor-icons-DOIDKgo6.js.map} +1 -1
  200. package/dashboard/dist/assets/vendor-query-B2UbickB.js +18 -0
  201. package/dashboard/dist/assets/vendor-query-B2UbickB.js.map +1 -0
  202. package/dashboard/dist/assets/vendor-react-CXumBFUA.js +22 -0
  203. package/dashboard/dist/assets/vendor-react-CXumBFUA.js.map +1 -0
  204. package/dashboard/dist/assets/{workflows-BfyR5VJt.js → workflows-WmmGDAvo.js} +2 -2
  205. package/dashboard/dist/assets/{workflows-BfyR5VJt.js.map → workflows-WmmGDAvo.js.map} +1 -1
  206. package/dashboard/dist/assets/{yaml-workflows-Bz7yEnhl.js → yaml-workflows-BS7KHhU1.js} +2 -2
  207. package/dashboard/dist/assets/{yaml-workflows-Bz7yEnhl.js.map → yaml-workflows-BS7KHhU1.js.map} +1 -1
  208. package/dashboard/dist/index.html +5 -5
  209. package/docs/dashboard.md +58 -42
  210. package/package.json +1 -1
  211. package/dashboard/dist/assets/AdminDashboard-Ck5-jV9T.js +0 -2
  212. package/dashboard/dist/assets/AgentConfigPage-DFiXRBWs.js +0 -16
  213. package/dashboard/dist/assets/AgentDetailPage-BBgM_pMe.js +0 -4
  214. package/dashboard/dist/assets/AgentsPage-DxwFuedf.js +0 -2
  215. package/dashboard/dist/assets/AvailableEscalationsPage-DNQbeIcn.js +0 -2
  216. package/dashboard/dist/assets/BotPicker-mqwKVOE3.js +0 -2
  217. package/dashboard/dist/assets/CapabilitiesPage-Biffm0kW.js +0 -2
  218. package/dashboard/dist/assets/CollapsibleSection-Bn6Ks79X.js +0 -2
  219. package/dashboard/dist/assets/ConfirmDeleteModal-no0-c_1G.js +0 -2
  220. package/dashboard/dist/assets/CopyableId-DS6IDMIX.js +0 -2
  221. package/dashboard/dist/assets/CredentialsPage-C3NyncEB.js +0 -2
  222. package/dashboard/dist/assets/CronLabel-DQWBx57H.js +0 -2
  223. package/dashboard/dist/assets/CustomDurationPicker-DV42oZ1G.js +0 -2
  224. package/dashboard/dist/assets/DataTable-Bf4dgxll.js +0 -2
  225. package/dashboard/dist/assets/DropZone-CTSXBb3c.js +0 -2
  226. package/dashboard/dist/assets/ElapsedCell-roy4G5SQ.js +0 -2
  227. package/dashboard/dist/assets/EmptyState-CLVm9KmA.js +0 -2
  228. package/dashboard/dist/assets/EscalationSchemaPage-DulCCxea.js +0 -9
  229. package/dashboard/dist/assets/EscalationsOverview-DDwxn_mT.js +0 -2
  230. package/dashboard/dist/assets/EventTable-BaLNvCew.js +0 -2
  231. package/dashboard/dist/assets/FilterBar-DEAbNQqp.js +0 -2
  232. package/dashboard/dist/assets/GraphInvokePage-BmM8r0R3.js +0 -2
  233. package/dashboard/dist/assets/HomePage-Ds3PzWWr.js +0 -2
  234. package/dashboard/dist/assets/HomePage-Ds3PzWWr.js.map +0 -1
  235. package/dashboard/dist/assets/ListToolbar-Dviaskni.js +0 -2
  236. package/dashboard/dist/assets/McpOverview-BBm66wbF.js +0 -2
  237. package/dashboard/dist/assets/McpQueryDetailPage-B6GJOMcz.js +0 -5
  238. package/dashboard/dist/assets/McpQueryPage-C-8nIdBL.js +0 -2
  239. package/dashboard/dist/assets/McpRunDetailPage-CSq_0qqi.js +0 -2
  240. package/dashboard/dist/assets/McpRunsPage-BdK8ahX7.js +0 -2
  241. package/dashboard/dist/assets/McpRunsPage-BdK8ahX7.js.map +0 -1
  242. package/dashboard/dist/assets/Modal-C6HI6btY.js +0 -2
  243. package/dashboard/dist/assets/NamespacePill-eGsbJBFa.js +0 -2
  244. package/dashboard/dist/assets/OperationsPage-DODPFmf2.js +0 -2
  245. package/dashboard/dist/assets/OperationsPage-DODPFmf2.js.map +0 -1
  246. package/dashboard/dist/assets/OperatorDashboard-BbmgsOmQ.js +0 -2
  247. package/dashboard/dist/assets/PageHeader-DcgGV0Y2.js +0 -2
  248. package/dashboard/dist/assets/PageHeaderWithStats-Cf8TYFRh.js +0 -2
  249. package/dashboard/dist/assets/PriorityBadge-a7u8C9uY.js +0 -2
  250. package/dashboard/dist/assets/ProcessDetailPage-D80w44rV.js +0 -2
  251. package/dashboard/dist/assets/ProcessesListPage-BjW5xUkv.js +0 -2
  252. package/dashboard/dist/assets/RoleDetailPage-oahg0cdT.js +0 -11
  253. package/dashboard/dist/assets/RolePill-BAeaQUXX.js +0 -2
  254. package/dashboard/dist/assets/RolesPage-BI1Xtqq_.js +0 -2
  255. package/dashboard/dist/assets/RowActions--m4F6GW8.js +0 -2
  256. package/dashboard/dist/assets/RunAsSelector-DiGzSfiG.js +0 -2
  257. package/dashboard/dist/assets/StatCard-DCPGFzCv.js +0 -2
  258. package/dashboard/dist/assets/StatusBadge-mk-dJwPT.js +0 -2
  259. package/dashboard/dist/assets/StickyPagination-Clm9H840.js +0 -2
  260. package/dashboard/dist/assets/StreamMessageDetail-Bikvs1Cz.js +0 -2
  261. package/dashboard/dist/assets/SwimlaneTimeline-C9X3IVqI.js +0 -2
  262. package/dashboard/dist/assets/TagInput-DmJLnghg.js +0 -2
  263. package/dashboard/dist/assets/TaskDetailPage-C0tbiUi7.js +0 -2
  264. package/dashboard/dist/assets/TaskDetailPage-C0tbiUi7.js.map +0 -1
  265. package/dashboard/dist/assets/TaskQueuePill--1OX6egx.js +0 -2
  266. package/dashboard/dist/assets/TasksListPage-DcYV-GMA.js +0 -2
  267. package/dashboard/dist/assets/TimeAgo-pYn3T9IZ.js +0 -2
  268. package/dashboard/dist/assets/TimestampCell-BPMCscic.js +0 -2
  269. package/dashboard/dist/assets/ToolPill-BnF9lCUX.js +0 -2
  270. package/dashboard/dist/assets/ToolTestPanel-Bw4z_Tya.js +0 -2
  271. package/dashboard/dist/assets/TopicDetailPage-CtFztOnn.js +0 -9
  272. package/dashboard/dist/assets/TopicsPage-BXdc6pAU.js +0 -2
  273. package/dashboard/dist/assets/UserName-R96NG6xB.js +0 -2
  274. package/dashboard/dist/assets/WorkflowExecutionPage-DmRJabMQ.js +0 -2
  275. package/dashboard/dist/assets/WorkflowPill-Cc2MlYbB.js +0 -2
  276. package/dashboard/dist/assets/WorkflowsDashboard-uLU5ZToY.js +0 -2
  277. package/dashboard/dist/assets/WorkflowsDashboard-uLU5ZToY.js.map +0 -1
  278. package/dashboard/dist/assets/WorkflowsOverview-BhgE0RS8.js +0 -2
  279. package/dashboard/dist/assets/YamlWorkflowDetailPage-CvIgB5y7.js +0 -33
  280. package/dashboard/dist/assets/YamlWorkflowsPage-DWnsgl2v.js +0 -2
  281. package/dashboard/dist/assets/YamlWorkflowsPage-DWnsgl2v.js.map +0 -1
  282. package/dashboard/dist/assets/capabilities-BKZZb8eM.js +0 -2
  283. package/dashboard/dist/assets/escalation-D8mrXtjS.js +0 -2
  284. package/dashboard/dist/assets/escalation-columns-CyLzgPkz.js +0 -2
  285. package/dashboard/dist/assets/index-B5MAG4Uv.js +0 -2
  286. package/dashboard/dist/assets/index-BfxiRwk2.js +0 -6
  287. package/dashboard/dist/assets/index-C71I-f5G.js +0 -2
  288. package/dashboard/dist/assets/index-CC4g-6QE.css +0 -1
  289. package/dashboard/dist/assets/index-CJb3dXku.js +0 -2
  290. package/dashboard/dist/assets/index-CQtv2rj6.js +0 -2
  291. package/dashboard/dist/assets/index-CphzO7b8.js +0 -2
  292. package/dashboard/dist/assets/index-CwAmiy_j.js +0 -2
  293. package/dashboard/dist/assets/index-DgCS2Frb.js +0 -281
  294. package/dashboard/dist/assets/index-DgCS2Frb.js.map +0 -1
  295. package/dashboard/dist/assets/index-DkbnD-Te.js +0 -2
  296. package/dashboard/dist/assets/index-Y6yj36QR.js +0 -9
  297. package/dashboard/dist/assets/index-eshNd6NY.js +0 -6
  298. package/dashboard/dist/assets/index-xn9fmkHC.js +0 -2
  299. package/dashboard/dist/assets/index-yxnQew1X.js +0 -2
  300. package/dashboard/dist/assets/roles-CpRcUIMm.js +0 -2
  301. package/dashboard/dist/assets/tasks-DNdvW5H6.js +0 -2
  302. package/dashboard/dist/assets/vendor-query-DLp59M9_.js +0 -35
  303. package/dashboard/dist/assets/vendor-query-DLp59M9_.js.map +0 -1
  304. package/dashboard/dist/assets/vendor-react-zA2lQFDs.js +0 -26
  305. package/dashboard/dist/assets/vendor-react-zA2lQFDs.js.map +0 -1
@@ -1,281 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProcessesListPage-BjW5xUkv.js","./tasks-DNdvW5H6.js","./vendor-query-DLp59M9_.js","./workflows-BfyR5VJt.js","./useEventHooks-CUUeBSH1.js","./useFilterParams-Ch-a71bE.js","./vendor-react-zA2lQFDs.js","./useDebouncedValue-DmL3uNt_.js","./api-path-u2Jf9QXS.js","./DataTable-Bf4dgxll.js","./EmptyState-CLVm9KmA.js","./TimestampCell-BPMCscic.js","./StickyPagination-Clm9H840.js","./FilterBar-DEAbNQqp.js","./PageHeader-DcgGV0Y2.js","./vendor-icons-CNyYGNsk.js","./ListToolbar-Dviaskni.js","./WorkflowPill-Cc2MlYbB.js","./ProcessDetailPage-D80w44rV.js","./PageHeaderWithStats-Cf8TYFRh.js","./StatusBadge-mk-dJwPT.js","./RolePill-BAeaQUXX.js","./UserName-R96NG6xB.js","./users-BUgdEsec.js","./McpOverview-BBm66wbF.js","./mcp-BtG54ZAx.js","./pipelines-DVkwxN64.js","./yaml-workflows-Bz7yEnhl.js","./controlplane-Djshb7fm.js","./StatCard-DCPGFzCv.js","./McpRunsPage-BdK8ahX7.js","./useNamespace-D-AjLnPK.js","./ElapsedCell-roy4G5SQ.js","./RowActions--m4F6GW8.js","./McpRunDetailPage-CSq_0qqi.js","./CopyableId-DS6IDMIX.js","./CollapsibleSection-Bn6Ks79X.js","./useCollapsedSections-CGNA5oKV.js","./SwimlaneTimeline-C9X3IVqI.js","./StreamMessageDetail-Bikvs1Cz.js","./EventTable-BaLNvCew.js","./McpQueryPage-C-8nIdBL.js","./mcp-query-CSdQWxmv.js","./McpQueryDetailPage-B6GJOMcz.js","./TagInput-DmJLnghg.js","./useYamlActivityEvents-DRdetOb_.js","./helpers-DzO-OGPe.js","./RunAsSelector-DiGzSfiG.js","./BotPicker-mqwKVOE3.js","./bots-DI6Wqp5X.js","./ToolPill-BnF9lCUX.js","./TimeAgo-pYn3T9IZ.js","./EscalationsOverview-DDwxn_mT.js","./AvailableEscalationsPage-DNQbeIcn.js","./CustomDurationPicker-DV42oZ1G.js","./Modal-C6HI6btY.js","./constants-BHkpVaqx.js","./roles-CpRcUIMm.js","./escalation-columns-CyLzgPkz.js","./PriorityBadge-a7u8C9uY.js","./escalation-D8mrXtjS.js","./OperatorDashboard-BbmgsOmQ.js","./index-eshNd6NY.js","./WorkflowsOverview-BhgE0RS8.js","./index-BfxiRwk2.js","./NamespacePill-eGsbJBFa.js","./WorkflowsDashboard-uLU5ZToY.js","./YamlWorkflowsPage-DWnsgl2v.js","./GraphInvokePage-BmM8r0R3.js","./YamlWorkflowDetailPage-CvIgB5y7.js","./TasksListPage-DcYV-GMA.js","./TaskDetailPage-C0tbiUi7.js","./WorkflowExecutionPage-DmRJabMQ.js","./AdminDashboard-Ck5-jV9T.js","./index-B5MAG4Uv.js","./TaskQueuePill--1OX6egx.js","./index-Y6yj36QR.js","./ConfirmDeleteModal-no0-c_1G.js","./index-CphzO7b8.js","./ToolTestPanel-Bw4z_Tya.js","./index-DkbnD-Te.js","./index-CQtv2rj6.js","./RolesPage-BI1Xtqq_.js","./RoleDetailPage-oahg0cdT.js","./EscalationSchemaPage-DulCCxea.js","./index-CJb3dXku.js","./OperationsPage-DODPFmf2.js","./index-yxnQew1X.js","./index-CwAmiy_j.js","./CredentialsPage-C3NyncEB.js","./index-C71I-f5G.js","./DropZone-CTSXBb3c.js","./index-xn9fmkHC.js","./knowledge-C_1r0faY.js","./HomePage-Ds3PzWWr.js","./AgentsPage-DxwFuedf.js","./agents-BpYMwrsB.js","./AgentDetailPage-BBgM_pMe.js","./CronLabel-DQWBx57H.js","./AgentConfigPage-DFiXRBWs.js","./capabilities-BKZZb8eM.js","./topics-DNC77Chw.js","./CapabilitiesPage-Biffm0kW.js","./TopicsPage-BXdc6pAU.js","./TopicDetailPage-CtFztOnn.js"])))=>i.map(i=>d[i]);
2
- var Z3=Object.defineProperty;var K3=(r,s,a)=>s in r?Z3(r,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[s]=a;var w=(r,s,a)=>K3(r,typeof s!="symbol"?s+"":s,a);import{r as oS,a as R,g as W3,u as Ns,b as ss,c as Es,Q as eT,d as tT}from"./vendor-query-DLp59M9_.js";import{r as nT,L as fl,u as ci,N as oh,a as lS,b as Na,O as hl,c as cS,d as sT,R as aT}from"./vendor-react-zA2lQFDs.js";import{I as A0,R as uS,B as fS,U as rT,L as D0,a as YE,b as iT,Z as oT,S as GE,P as JE,C as lT,W as ey,c as cT,d as uT,F as fT,e as dT,f as hT,T as mT,N as pT,g as bT,D as yT,M as dS,h as hS,i as gT,j as vT,k as xT,E as NT,X as vh,l as ET,m as wT,n as ST,o as QE,G as _T,p as AT,q as DT,r as TT,s as CT}from"./vendor-icons-CNyYGNsk.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function a(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(u){if(u.ep)return;u.ep=!0;const d=a(u);fetch(u.href,d)}})();var i0={exports:{}},Id={},XE;function OT(){if(XE)return Id;XE=1;/**
3
- * @license React
4
- * react-jsx-dev-runtime.development.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */return(function(){function r(X){if(X==null)return null;if(typeof X=="function")return X.$$typeof===oe?null:X.displayName||X.name||null;if(typeof X=="string")return X;switch(X){case I:return"Fragment";case te:return"Profiler";case W:return"StrictMode";case ne:return"Suspense";case fe:return"SuspenseList";case H:return"Activity"}if(typeof X=="object")switch(typeof X.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),X.$$typeof){case L:return"Portal";case le:return X.displayName||"Context";case Ne:return(X._context.displayName||"Context")+".Consumer";case V:var we=X.render;return X=X.displayName,X||(X=we.displayName||we.name||"",X=X!==""?"ForwardRef("+X+")":"ForwardRef"),X;case J:return we=X.displayName||null,we!==null?we:r(X.type)||"Memo";case Q:we=X._payload,X=X._init;try{return r(X(we))}catch{}}return null}function s(X){return""+X}function a(X){try{s(X);var we=!1}catch{we=!0}if(we){we=console;var Ke=we.error,He=typeof Symbol=="function"&&Symbol.toStringTag&&X[Symbol.toStringTag]||X.constructor.name||"Object";return Ke.call(we,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",He),s(X)}}function o(X){if(X===I)return"<>";if(typeof X=="object"&&X!==null&&X.$$typeof===Q)return"<...>";try{var we=r(X);return we?"<"+we+">":"<...>"}catch{return"<...>"}}function u(){var X=ae.A;return X===null?null:X.getOwner()}function d(){return Error("react-stack-top-frame")}function p(X){if(ge.call(X,"key")){var we=Object.getOwnPropertyDescriptor(X,"key").get;if(we&&we.isReactWarning)return!1}return X.key!==void 0}function m(X,we){function Ke(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",we))}Ke.isReactWarning=!0,Object.defineProperty(X,"key",{get:Ke,configurable:!0})}function g(){var X=r(this.type);return be[X]||(be[X]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),X=this.props.ref,X!==void 0?X:null}function x(X,we,Ke,He,Yt,Aa){var tt=Ke.ref;return X={$$typeof:k,type:X,key:we,props:Ke,_owner:He},(tt!==void 0?tt:null)!==null?Object.defineProperty(X,"ref",{enumerable:!1,get:g}):Object.defineProperty(X,"ref",{enumerable:!1,value:null}),X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(X,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(X,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Yt}),Object.defineProperty(X,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Aa}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X}function S(X,we,Ke,He,Yt,Aa){var tt=we.children;if(tt!==void 0)if(He)if(Fe(tt)){for(He=0;He<tt.length;He++)E(tt[He]);Object.freeze&&Object.freeze(tt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else E(tt);if(ge.call(we,"key")){tt=r(X);var jt=Object.keys(we).filter(function(un){return un!=="key"});He=0<jt.length?"{key: someKey, "+jt.join(": ..., ")+": ...}":"{key: someKey}",Oe[tt+He]||(jt=0<jt.length?"{"+jt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
11
- let props = %s;
12
- <%s {...props} />
13
- React keys must be passed directly to JSX without using spread:
14
- let props = %s;
15
- <%s key={someKey} {...props} />`,He,tt,jt,tt),Oe[tt+He]=!0)}if(tt=null,Ke!==void 0&&(a(Ke),tt=""+Ke),p(we)&&(a(we.key),tt=""+we.key),"key"in we){Ke={};for(var Ve in we)Ve!=="key"&&(Ke[Ve]=we[Ve])}else Ke=we;return tt&&m(Ke,typeof X=="function"?X.displayName||X.name||"Unknown":X),x(X,tt,Ke,u(),Yt,Aa)}function E(X){D(X)?X._store&&(X._store.validated=1):typeof X=="object"&&X!==null&&X.$$typeof===Q&&(X._payload.status==="fulfilled"?D(X._payload.value)&&X._payload.value._store&&(X._payload.value._store.validated=1):X._store&&(X._store.validated=1))}function D(X){return typeof X=="object"&&X!==null&&X.$$typeof===k}var q=oS(),k=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),Ne=Symbol.for("react.consumer"),le=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),ae=q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=Object.prototype.hasOwnProperty,Fe=Array.isArray,Xe=console.createTask?console.createTask:function(){return null};q={react_stack_bottom_frame:function(X){return X()}};var re,be={},Ee=q.react_stack_bottom_frame.bind(q,d)(),Me=Xe(o(d)),Oe={};Id.Fragment=I,Id.jsxDEV=function(X,we,Ke,He){var Yt=1e4>ae.recentlyCreatedOwnerStacks++;return S(X,we,Ke,He,Yt?Error("react-stack-top-frame"):Ee,Yt?Xe(o(X)):Me)}})(),Id}var ZE;function jT(){return ZE||(ZE=1,i0.exports=OT()),i0.exports}var b=jT(),o0={exports:{}},ru={},l0={exports:{}},c0={},KE;function RT(){return KE||(KE=1,(function(r){/**
16
- * @license React
17
- * scheduler.development.js
18
- *
19
- * Copyright (c) Meta Platforms, Inc. and affiliates.
20
- *
21
- * This source code is licensed under the MIT license found in the
22
- * LICENSE file in the root directory of this source tree.
23
- */(function(){function s(){if(V=!1,Q){var re=r.unstable_now();ae=re;var be=!0;try{e:{Ne=!1,le&&(le=!1,fe(H),H=-1),te=!0;var Ee=W;try{t:{for(p(re),I=o(q);I!==null&&!(I.expirationTime>re&&g());){var Me=I.callback;if(typeof Me=="function"){I.callback=null,W=I.priorityLevel;var Oe=Me(I.expirationTime<=re);if(re=r.unstable_now(),typeof Oe=="function"){I.callback=Oe,p(re),be=!0;break t}I===o(q)&&u(q),p(re)}else u(q);I=o(q)}if(I!==null)be=!0;else{var X=o(k);X!==null&&x(m,X.startTime-re),be=!1}}break e}finally{I=null,W=Ee,te=!1}be=void 0}}finally{be?ge():Q=!1}}}function a(re,be){var Ee=re.length;re.push(be);e:for(;0<Ee;){var Me=Ee-1>>>1,Oe=re[Me];if(0<d(Oe,be))re[Me]=be,re[Ee]=Oe,Ee=Me;else break e}}function o(re){return re.length===0?null:re[0]}function u(re){if(re.length===0)return null;var be=re[0],Ee=re.pop();if(Ee!==be){re[0]=Ee;e:for(var Me=0,Oe=re.length,X=Oe>>>1;Me<X;){var we=2*(Me+1)-1,Ke=re[we],He=we+1,Yt=re[He];if(0>d(Ke,Ee))He<Oe&&0>d(Yt,Ke)?(re[Me]=Yt,re[He]=Ee,Me=He):(re[Me]=Ke,re[we]=Ee,Me=we);else if(He<Oe&&0>d(Yt,Ee))re[Me]=Yt,re[He]=Ee,Me=He;else break e}}return be}function d(re,be){var Ee=re.sortIndex-be.sortIndex;return Ee!==0?Ee:re.id-be.id}function p(re){for(var be=o(k);be!==null;){if(be.callback===null)u(k);else if(be.startTime<=re)u(k),be.sortIndex=be.expirationTime,a(q,be);else break;be=o(k)}}function m(re){if(le=!1,p(re),!Ne)if(o(q)!==null)Ne=!0,Q||(Q=!0,ge());else{var be=o(k);be!==null&&x(m,be.startTime-re)}}function g(){return V?!0:!(r.unstable_now()-ae<oe)}function x(re,be){H=ne(function(){re(r.unstable_now())},be)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;r.unstable_now=function(){return S.now()}}else{var E=Date,D=E.now();r.unstable_now=function(){return E.now()-D}}var q=[],k=[],L=1,I=null,W=3,te=!1,Ne=!1,le=!1,V=!1,ne=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null,Q=!1,H=-1,oe=5,ae=-1;if(typeof J=="function")var ge=function(){J(s)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,Xe=Fe.port2;Fe.port1.onmessage=s,ge=function(){Xe.postMessage(null)}}else ge=function(){ne(s,0)};r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(re){re.callback=null},r.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<re?Math.floor(1e3/re):5},r.unstable_getCurrentPriorityLevel=function(){return W},r.unstable_next=function(re){switch(W){case 1:case 2:case 3:var be=3;break;default:be=W}var Ee=W;W=be;try{return re()}finally{W=Ee}},r.unstable_requestPaint=function(){V=!0},r.unstable_runWithPriority=function(re,be){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var Ee=W;W=re;try{return be()}finally{W=Ee}},r.unstable_scheduleCallback=function(re,be,Ee){var Me=r.unstable_now();switch(typeof Ee=="object"&&Ee!==null?(Ee=Ee.delay,Ee=typeof Ee=="number"&&0<Ee?Me+Ee:Me):Ee=Me,re){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=Ee+Oe,re={id:L++,callback:be,priorityLevel:re,startTime:Ee,expirationTime:Oe,sortIndex:-1},Ee>Me?(re.sortIndex=Ee,a(k,re),o(q)===null&&re===o(k)&&(le?(fe(H),H=-1):le=!0,x(m,Ee-Me))):(re.sortIndex=Oe,a(q,re),Ne||te||(Ne=!0,Q||(Q=!0,ge()))),re},r.unstable_shouldYield=g,r.unstable_wrapCallback=function(re){var be=W;return function(){var Ee=W;W=be;try{return re.apply(this,arguments)}finally{W=Ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(c0)),c0}var WE;function MT(){return WE||(WE=1,l0.exports=RT()),l0.exports}var ew;function kT(){if(ew)return ru;ew=1;/**
24
- * @license React
25
- * react-dom-client.development.js
26
- *
27
- * Copyright (c) Meta Platforms, Inc. and affiliates.
28
- *
29
- * This source code is licensed under the MIT license found in the
30
- * LICENSE file in the root directory of this source tree.
31
- */return(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function s(e,t,n,i){if(n>=t.length)return i;var l=t[n],c=Gt(e)?e.slice():Ie({},e);return c[l]=s(e[l],t,n+1,i),c}function a(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var i=0;i<n.length-1;i++)if(t[i]!==n[i]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(e,t,n,0)}}function o(e,t,n,i){var l=t[i],c=Gt(e)?e.slice():Ie({},e);return i+1===t.length?(c[n[i]]=c[l],Gt(c)?c.splice(l,1):delete c[l]):c[l]=o(e[l],t,n,i+1),c}function u(e,t,n){var i=t[n],l=Gt(e)?e.slice():Ie({},e);return n+1===t.length?(Gt(l)?l.splice(i,1):delete l[i],l):(l[i]=u(e[i],t,n+1),l)}function d(){return!1}function p(){return null}function m(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function g(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function x(){}function S(){}function E(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function D(e,t,n,i){return new B_(e,t,n,i)}function q(e,t){e.context===Mr&&(_p(e.current,2,t,e,null,null),xo())}function k(e,t){if(ls!==null){var n=t.staleFamilies;t=t.updatedFamilies,ec(),Ky(e.current,t,n),xo()}}function L(e){ls=e}function I(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function W(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function te(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ne(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function le(e){if(W(e)!==e)throw Error("Unable to find node on an unmounted component.")}function V(e){var t=e.alternate;if(!t){if(t=W(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(l===null)break;var c=l.alternate;if(c===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===n)return le(l),e;if(c===i)return le(l),t;c=c.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==i.return)n=l,i=c;else{for(var f=!1,h=l.child;h;){if(h===n){f=!0,n=l,i=c;break}if(h===i){f=!0,i=l,n=c;break}h=h.sibling}if(!f){for(h=c.child;h;){if(h===n){f=!0,n=c,i=l;break}if(h===i){f=!0,i=c,n=l;break}h=h.sibling}if(!f)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==i)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function ne(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ne(e),t!==null)return t;e=e.sibling}return null}function fe(e){return e===null||typeof e!="object"?null:(e=r1&&e[r1]||e["@@iterator"],typeof e=="function"?e:null)}function J(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===iD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Do:return"Fragment";case Rp:return"Profiler";case Bf:return"StrictMode";case kp:return"Suspense";case Vp:return"SuspenseList";case Up:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Ao:return"Portal";case fa:return e.displayName||"Context";case Mp:return(e._context.displayName||"Context")+".Consumer";case uc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qf:return t=e.displayName||null,t!==null?t:J(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return J(e(t))}catch{}}return null}function Q(e){return typeof e.tag=="number"?H(e):typeof e.name=="string"?e.name:null}function H(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(t);case 8:return t===Bf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return H(e.return)}return null}function oe(e){return{current:e}}function ae(e,t){0>La?console.error("Unexpected pop."):(t!==Bp[La]&&console.error("Unexpected Fiber popped."),e.current=zp[La],zp[La]=null,Bp[La]=null,La--)}function ge(e,t,n){La++,zp[La]=e.current,Bp[La]=n,e.current=t}function Fe(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Xe(e,t){ge(Dr,t,e),ge(fc,e,e),ge(Ar,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Cx(t):tr;break;default:if(n=t.tagName,t=t.namespaceURI)t=Cx(t),t=Ox(t,n);else switch(n){case"svg":t=ol;break;case"math":t=zd;break;default:t=tr}}n=n.toLowerCase(),n=wy(null,n),n={context:t,ancestorInfo:n},ae(Ar,e),ge(Ar,n,e)}function re(e){ae(Ar,e),ae(fc,e),ae(Dr,e)}function be(){return Fe(Ar.current)}function Ee(e){e.memoizedState!==null&&ge(Lf,e,e);var t=Fe(Ar.current),n=e.type,i=Ox(t.context,n);n=wy(t.ancestorInfo,n),i={context:i,ancestorInfo:n},t!==i&&(ge(fc,e,e),ge(Ar,i,e))}function Me(e){fc.current===e&&(ae(Ar,e),ae(fc,e)),Lf.current===e&&(ae(Lf,e),nu._currentValue=Zi)}function Oe(){}function X(){if(dc===0){i1=console.log,o1=console.info,l1=console.warn,c1=console.error,u1=console.group,f1=console.groupCollapsed,d1=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}dc++}function we(){if(dc--,dc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},e,{value:i1}),info:Ie({},e,{value:o1}),warn:Ie({},e,{value:l1}),error:Ie({},e,{value:c1}),group:Ie({},e,{value:u1}),groupCollapsed:Ie({},e,{value:f1}),groupEnd:Ie({},e,{value:d1})})}0>dc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ke(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
32
- `)&&(e=e.slice(29)),t=e.indexOf(`
33
- `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
34
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function He(e){if(qp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qp=t&&t[1]||"",h1=-1<n.stack.indexOf(`
35
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
36
- `+qp+e+h1}function Yt(e,t){if(!e||Lp)return"";var n=Pp.get(e);if(n!==void 0)return n;Lp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=G.H,G.H=null,X();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(ce){var $=ce}Reflect.construct(e,[],O)}else{try{O.call()}catch(ce){$=ce}e.call(O.prototype)}}else{try{throw Error()}catch(ce){$=ce}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(ce){if(ce&&$&&typeof ce.stack=="string")return[ce.stack,$.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),h=f[0],y=f[1];if(h&&y){var v=h.split(`
37
- `),z=y.split(`
38
- `);for(f=c=0;c<v.length&&!v[c].includes("DetermineComponentFrameRoot");)c++;for(;f<z.length&&!z[f].includes("DetermineComponentFrameRoot");)f++;if(c===v.length||f===z.length)for(c=v.length-1,f=z.length-1;1<=c&&0<=f&&v[c]!==z[f];)f--;for(;1<=c&&0<=f;c--,f--)if(v[c]!==z[f]){if(c!==1||f!==1)do if(c--,f--,0>f||v[c]!==z[f]){var B=`
39
- `+v[c].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&Pp.set(e,B),B}while(1<=c&&0<=f);break}}}finally{Lp=!1,G.H=i,we(),Error.prepareStackTrace=n}return v=(v=e?e.displayName||e.name:"")?He(v):"",typeof e=="function"&&Pp.set(e,v),v}function Aa(e,t){switch(e.tag){case 26:case 27:case 5:return He(e.type);case 16:return He("Lazy");case 13:return e.child!==t&&t!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return Yt(e.type,!1);case 11:return Yt(e.type.render,!1);case 1:return Yt(e.type,!0);case 31:return He("Activity");default:return""}}function tt(e){try{var t="",n=null;do{t+=Aa(e,n);var i=e._debugInfo;if(i)for(var l=i.length-1;0<=l;l--){var c=i[l];if(typeof c.name=="string"){var f=t;e:{var h=c.name,y=c.env,v=c.debugLocation;if(v!=null){var z=Ke(v),B=z.lastIndexOf(`
40
- `),O=B===-1?z:z.slice(B+1);if(O.indexOf(h)!==-1){var $=`
41
- `+O;break e}}$=He(h+(y?" ["+y+"]":""))}t=f+$}}n=e,e=e.return}while(e);return t}catch(ce){return`
42
- Error generating stack: `+ce.message+`
43
- `+ce.stack}}function jt(e){return(e=e?e.displayName||e.name:"")?He(e):""}function Ve(){if(In===null)return null;var e=In._debugOwner;return e!=null?Q(e):null}function un(){if(In===null)return"";var e=In;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=He(e.type);break;case 13:t+=He("Suspense");break;case 19:t+=He("SuspenseList");break;case 31:t+=He("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=jt(e.type));break;case 11:e._debugOwner||t!==""||(t+=jt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var i=n._debugStack;if(e&&i){var l=Ke(i);l!==""&&(t+=`
44
- `+l)}}else if(e.debugStack!=null){var c=e.debugStack;(e=e.owner)&&c&&(t+=`
45
- `+Ke(c))}else break;var f=t}catch(h){f=`
46
- Error generating stack: `+h.message+`
47
- `+h.stack}return f}function ye(e,t,n,i,l,c,f){var h=In;no(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,i,l,c,f)):t(n,i,l,c,f)}finally{no(h)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function no(e){G.getCurrentStack=e===null?null:un,da=!1,In=e}function Da(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ta(e){try{return lr(e),!1}catch{return!0}}function lr(e){return""+e}function st(e,t){if(Ta(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Da(e)),lr(e)}function so(e,t){if(Ta(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Da(e)),lr(e)}function Sl(e){if(Ta(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Da(e)),lr(e)}function Dh(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Co=t.inject(e),hn=t}catch(n){console.error("React instrumentation encountered an error: %o.",n)}return!!t.checkDCE}function bt(e){if(typeof hD=="function"&&mD(e),hn&&typeof hn.setStrictMode=="function")try{hn.setStrictMode(Co,e)}catch(t){ha||(ha=!0,console.error("React instrumentation encountered an error: %o",t))}}function ui(e){return e>>>=0,e===0?32:31-(pD(e)/bD|0)|0}function qs(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Ca(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var h=i&134217727;return h!==0?(i=h&~c,i!==0?l=qs(i):(f&=h,f!==0?l=qs(f):n||(n=h&~e,n!==0&&(l=qs(n))))):(h=i&~c,h!==0?l=qs(h):f!==0?l=qs(f):n||(n=i&~e,n!==0&&(l=qs(n)))),l===0?0:t!==0&&t!==l&&(t&c)===0&&(c=l&-l,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:l}function fn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Th(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function _l(){var e=$f;return $f<<=1,($f&62914560)===0&&($f=4194304),e}function Al(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ch(e,t,n,i,l,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var h=e.entanglements,y=e.expirationTimes,v=e.hiddenUpdates;for(n=f&~n;0<n;){var z=31-yn(n),B=1<<z;h[z]=0,y[z]=-1;var O=v[z];if(O!==null)for(v[z]=null,z=0;z<O.length;z++){var $=O[z];$!==null&&($.lane&=-536870913)}n&=~B}i!==0&&Cu(e,i,0),c!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function Cu(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-yn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Ou(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-yn(n),l=1<<i;l&t|e[i]&t&&(e[i]|=t),n&=~l}}function Dl(e,t){var n=t&-t;return n=(n&42)!==0?1:Tl(n),(n&(e.suspendedLanes|t))!==0?0:n}function Tl(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ls(e,t,n){if(ma)for(e=e.pendingUpdatersLaneMap;0<n;){var i=31-yn(n),l=1<<i;e[i].add(t),n&=~l}}function di(e,t){if(ma)for(var n=e.pendingUpdatersLaneMap,i=e.memoizedUpdaters;0<t;){var l=31-yn(t);e=1<<l,l=n[l],0<l.size&&(l.forEach(function(c){var f=c.alternate;f!==null&&i.has(f)||i.add(c)}),l.clear()),t&=~e}}function ao(e){return e&=-e,rs<e?pa<e?(e&134217727)!==0?Pa:If:pa:rs}function ro(){var e=rt.p;return e!==0?e:(e=window.event,e===void 0?Pa:Kx(e.type))}function io(e,t){var n=rt.p;try{return rt.p=e,t()}finally{rt.p=n}}function cr(e){delete e[ln],delete e[gn],delete e[Yp],delete e[yD],delete e[gD]}function Ps(e){var t=e[ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cr]||n[ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bx(e);e!==null;){if(n=e[ln])return n;e=Bx(e)}return t}e=n,n=e.parentNode}return null}function Un(e){if(e=e[ln]||e[Cr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Oa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Hs(e){var t=e[m1];return t||(t=e[m1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rt(e){e[hc]=!0}function ja(e,t){$s(e,t),$s(e+"Capture",t)}function $s(e,t){Ti[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ti[e]=t;var n=e.toLowerCase();for(Gp[n]=e,e==="onDoubleClick"&&(Gp.ondblclick=e),e=0;e<t.length;e++)p1.add(t[e])}function Is(e,t){vD[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ur(e){return Ts.call(y1,e)?!0:Ts.call(b1,e)?!1:xD.test(e)?y1[e]=!0:(b1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function fr(e,t,n){if(ur(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(st(n,t),e===""+n?n:e)}}function ws(e,t,n){if(ur(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}st(n,t),e.setAttribute(t,""+n)}}function Fs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}st(n,t),e.setAttribute(t,""+n)}}function Tn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}st(i,n),e.setAttributeNS(t,n,""+i)}}function Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Sl(e),e;default:return""}}function dr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cl(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(f){Sl(f),n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(f){Sl(f),n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oo(e){if(!e._valueTracker){var t=dr(e)?"checked":"value";e._valueTracker=Cl(e,t,""+e[t])}}function ju(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=dr(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function lo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Tt(e){return e.replace(ND,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ys(e,t){t.checked===void 0||t.defaultChecked===void 0||v1||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ve()||"A component",t.type),v1=!0),t.value===void 0||t.defaultValue===void 0||g1||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ve()||"A component",t.type),g1=!0)}function Gs(e,t,n,i,l,c,f,h){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?(st(f,"type"),e.type=f):e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?hi(e,f,Xt(t)):n!=null?hi(e,f,Xt(n)):i!=null&&e.removeAttribute("value"),l==null&&c!=null&&(e.defaultChecked=!!c),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?(st(h,"name"),e.name=""+Xt(h)):e.removeAttribute("name")}function co(e,t,n,i,l,c,f,h){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(st(c,"type"),e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){oo(e);return}n=n!=null?""+Xt(n):"",t=t!=null?""+Xt(t):n,h||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=h?e.checked:!!i,e.defaultChecked=!!i,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(st(f,"name"),e.name=f),oo(e)}function hi(e,t,n){t==="number"&&lo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ol(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?jp.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||N1||(N1=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||E1||(E1=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||x1||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),x1=!0)}function Ru(){var e=Ve();return e?`
48
-
49
- Check the render method of \``+e+"`.":""}function Ut(e,t,n,i){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Xt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function jl(e,t){for(e=0;e<S1.length;e++){var n=S1[e];if(t[n]!=null){var i=Gt(t[n]);t.multiple&&!i?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Ru()):!t.multiple&&i&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Ru())}}t.value===void 0||t.defaultValue===void 0||w1||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),w1=!0)}function N(e,t){t.value===void 0||t.defaultValue===void 0||_1||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Ve()||"A component"),_1=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function A(e,t,n){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Xt(n):""}function _(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Gt(i)){if(1<i.length)throw Error("<textarea> can only have at most one child.");i=i[0]}n=i}n==null&&(n=""),t=n}n=Xt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),oo(e)}function T(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?T(e.children[0],t):e}function U(e){return" "+" ".repeat(e)}function P(e){return"+ "+" ".repeat(e)}function K(e){return"- "+" ".repeat(e)}function se(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function F(e,t){return A1.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function ee(e,t,n){var i=120-2*n;if(t===null)return P(n)+F(e,i)+`
50
- `;if(typeof t=="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>i-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),P(n)+F(e,i)+`
51
- `+K(n)+F(t,i)+`
52
- `}return U(n)+F(e,i)+`
53
- `}function ve(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function Le(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Gt(e))return"[...]";if(e.$$typeof===ua)return(t=J(e.type))?"<"+t+">":"<...>";var n=ve(e);if(n==="Object"){n="",t-=2;for(var i in e)if(e.hasOwnProperty(i)){var l=JSON.stringify(i);if(l!=='"'+i+'"'&&(i=l),t-=i.length-2,l=Le(e[i],15>t?t:15),t-=l.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+i+":"+l}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function ot(e,t){return typeof e!="string"||A1.test(e)?"{"+Le(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function pn(e,t,n){var i=120-n.length-e.length,l=[],c;for(c in t)if(t.hasOwnProperty(c)&&c!=="children"){var f=ot(t[c],120-n.length-c.length-1);i-=c.length+f.length+2,l.push(c+"="+f)}return l.length===0?n+"<"+e+`>
54
- `:0<i?n+"<"+e+" "+l.join(" ")+`>
55
- `:n+"<"+e+`
56
- `+n+" "+l.join(`
57
- `+n+" ")+`
58
- `+n+`>
59
- `}function hr(e,t,n){var i="",l=Ie({},t),c;for(c in e)if(e.hasOwnProperty(c)){delete l[c];var f=120-2*n-c.length-2,h=Le(e[c],f);t.hasOwnProperty(c)?(f=Le(t[c],f),i+=P(n)+c+": "+h+`
60
- `,i+=K(n)+c+": "+f+`
61
- `):i+=P(n)+c+": "+h+`
62
- `}for(var y in l)l.hasOwnProperty(y)&&(e=Le(l[y],120-2*n-y.length-2),i+=K(n)+y+": "+e+`
63
- `);return i}function y_(e,t,n,i){var l="",c=new Map;for(v in n)n.hasOwnProperty(v)&&c.set(v.toLowerCase(),v);if(c.size===1&&c.has("children"))l+=pn(e,t,U(i));else{for(var f in t)if(t.hasOwnProperty(f)&&f!=="children"){var h=120-2*(i+1)-f.length-1,y=c.get(f.toLowerCase());if(y!==void 0){c.delete(f.toLowerCase());var v=t[f];y=n[y];var z=ot(v,h);h=ot(y,h),typeof v=="object"&&v!==null&&typeof y=="object"&&y!==null&&ve(v)==="Object"&&ve(y)==="Object"&&(2<Object.keys(v).length||2<Object.keys(y).length||-1<z.indexOf("...")||-1<h.indexOf("..."))?l+=U(i+1)+f+`={{
64
- `+hr(v,y,i+2)+U(i+1)+`}}
65
- `:(l+=P(i+1)+f+"="+z+`
66
- `,l+=K(i+1)+f+"="+h+`
67
- `)}else l+=U(i+1)+f+"="+ot(t[f],h)+`
68
- `}c.forEach(function(B){if(B!=="children"){var O=120-2*(i+1)-B.length-1;l+=K(i+1)+B+"="+ot(n[B],O)+`
69
- `}}),l=l===""?U(i)+"<"+e+`>
70
- `:U(i)+"<"+e+`
71
- `+l+U(i)+`>
72
- `}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(c="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(c=""+t),l+=ee(c,""+e,i+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(l=e==null?l+ee(""+t,null,i+1):l+ee(""+t,void 0,i+1)),l}function Ny(e,t){var n=se(e);if(n===null){for(n="",e=e.child;e;)n+=Ny(e,t),e=e.sibling;return n}return U(t)+"<"+n+`>
73
- `}function Oh(e,t){var n=T(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return U(t)+`...
74
- `+Oh(n,t+1);n="";var i=e.fiber._debugInfo;if(i)for(var l=0;l<i.length;l++){var c=i[l].name;typeof c=="string"&&(n+=U(t)+"<"+c+`>
75
- `,t++)}if(i="",l=e.fiber.pendingProps,e.fiber.tag===6)i=ee(l,e.serverProps,t),t++;else if(c=se(e.fiber),c!==null)if(e.serverProps===void 0){i=t;var f=120-2*i-c.length-2,h="";for(v in l)if(l.hasOwnProperty(v)&&v!=="children"){var y=ot(l[v],15);if(f-=v.length+y.length+2,0>f){h+=" ...";break}h+=" "+v+"="+y}i=U(i)+"<"+c+h+`>
76
- `,t++}else e.serverProps===null?(i=pn(c,l,P(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(i=y_(c,l,e.serverProps,t),t++);var v="";for(l=e.fiber.child,c=0;l&&c<e.children.length;)f=e.children[c],f.fiber===l?(v+=Oh(f,t),c++):v+=Ny(l,t),l=l.sibling;for(l&&0<e.children.length&&(v+=U(t)+`...
77
- `),l=e.serverTail,e.serverProps===null&&t--,e=0;e<l.length;e++)c=l[e],v=typeof c=="string"?v+(K(t)+F(c,120-2*t)+`
78
- `):v+pn(c.type,c.props,K(t));return n+i+v}function jh(e){try{return`
79
-
80
- `+Oh(e,0)}catch{return""}}function Ey(e,t,n){for(var i=t,l=null,c=0;i;)i===e&&(c=0),l={fiber:i,children:l!==null?[l]:[],serverProps:i===t?n:i===e?null:void 0,serverTail:[],distanceFromLeaf:c},c++,i=i.return;return l!==null?jh(l).replaceAll(/^[+-]/gm,">"):""}function wy(e,t){var n=Ie({},e||T1),i={tag:t};return D1.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),wD.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ED.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=i,t==="form"&&(n.formTag=i),t==="a"&&(n.aTagInScope=i),t==="button"&&(n.buttonTagInScope=i),t==="nobr"&&(n.nobrTagInScope=i),t==="p"&&(n.pTagInButtonScope=i),t==="li"&&(n.listItemTagAutoclosing=i),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=i),t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=i),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Sy(e,t,n){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(n)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!n)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return SD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return n||t===null;case"html":return n&&t==="#document"||t===null;case"body":return n&&(t==="#document"||t==="html")||t===null}return!0}function g_(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function _y(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Rh(e,t){t=t||T1;var n=t.current;if(t=(n=Sy(e,n&&n.tag,t.implicitRootScope)?null:n)?null:g_(e,t),t=n||t,!t)return!0;var i=t.tag;if(t=String(!!n)+"|"+e+"|"+i,Ff[t])return!1;Ff[t]=!0;var l=(t=In)?_y(t.return,i):null,c=t!==null&&l!==null?Ey(l,t,null):"",f="<"+e+">";return n?(n="",i==="table"&&e==="tr"&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
81
- This will cause a hydration error.%s`,f,i,n,c)):console.error(`In HTML, %s cannot be a descendant of <%s>.
82
- This will cause a hydration error.%s`,f,i,c),t&&(e=t.return,l===null||e===null||l===e&&e._debugOwner===t._debugOwner||ye(l,function(){console.error(`<%s> cannot contain a nested %s.
83
- See this log for the ancestor stack trace.`,i,f)})),!1}function Mu(e,t,n){if(n||Sy("#text",t,!1))return!0;if(n="#text|"+t,Ff[n])return!1;Ff[n]=!0;var i=(n=In)?_y(n,t):null;return n=n!==null&&i!==null?Ey(i,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
84
- This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
85
- This will cause a hydration error.%s`,t,n),!1}function Rl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function v_(e){return e.replace(DD,function(t,n){return n.toUpperCase()})}function Ay(e,t,n){var i=t.indexOf("--")===0;i||(-1<t.indexOf("-")?Oo.hasOwnProperty(t)&&Oo[t]||(Oo[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,v_(t.replace(AD,"ms-")))):_D.test(t)?Oo.hasOwnProperty(t)&&Oo[t]||(Oo[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!j1.test(n)||Qp.hasOwnProperty(n)&&Qp[n]||(Qp[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(j1,""))),typeof n=="number"&&(isNaN(n)?R1||(R1=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||M1||(M1=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||k1.has(t)?t==="float"?e.cssFloat=n:(so(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Dy(e,t,n){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var i={};if(n){for(var l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var c=Jp[l]||[l],f=0;f<c.length;f++)i[c[f]]=l}for(var h in t)if(t.hasOwnProperty(h)&&(!n||n[h]!==t[h]))for(l=Jp[h]||[h],c=0;c<l.length;c++)i[l[c]]=h;h={};for(var y in t)for(l=Jp[y]||[y],c=0;c<l.length;c++)h[l[c]]=y;y={};for(var v in i)if(l=i[v],(c=h[v])&&l!==c&&(f=l+","+c,!y[f])){y[f]=!0,f=console;var z=t[l];f.error.call(f,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",z==null||typeof z=="boolean"||z===""?"Removing":"Updating",l,c)}}for(var B in n)!n.hasOwnProperty(B)||t!=null&&t.hasOwnProperty(B)||(B.indexOf("--")===0?e.setProperty(B,""):B==="float"?e.cssFloat="":e[B]="");for(var O in t)v=t[O],t.hasOwnProperty(O)&&n[O]!==v&&Ay(e,O,v)}else for(i in t)t.hasOwnProperty(i)&&Ay(e,i,t[i])}function Ml(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ty(e){return TD.get(e)||e}function x_(e,t){if(Ts.call(Ro,t)&&Ro[t])return!0;if(OD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=V1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ro[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ro[t]=!0}if(CD.test(t)){if(e=t.toLowerCase(),e=V1.hasOwnProperty(e)?e:null,e==null)return Ro[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ro[t]=!0)}return!0}function N_(e,t){var n=[],i;for(i in t)x_(e,i)||n.push(i);t=n.map(function(l){return"`"+l+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function E_(e,t,n,i){if(Ts.call(vn,t)&&vn[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),vn[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(i!=null){if(e=i.possibleRegistrationNames,i.registrationNameDependencies.hasOwnProperty(t))return!0;if(i=e.hasOwnProperty(l)?e[l]:null,i!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,i),vn[t]=!0;if(z1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),vn[t]=!0}else if(z1.test(t))return jD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),vn[t]=!0;if(RD.test(t)||MD.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),vn[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),vn[t]=!0;if(l==="is"&&n!==null&&n!==void 0&&typeof n!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),vn[t]=!0;if(typeof n=="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),vn[t]=!0;if(Gf.hasOwnProperty(l)){if(l=Gf[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),vn[t]=!0}else if(t!==l)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,l),vn[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-"?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),vn[t]=!0)}case"function":case"symbol":return vn[t]=!0,!1;case"string":if(n==="false"||n==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),vn[t]=!0}}return!0}function w_(e,t,n){var i=[],l;for(l in t)E_(e,l,t[l],n)||i.push(l);t=i.map(function(c){return"`"+c+"`"}).join(", "),i.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<i.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function kl(e){return kD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ra(){}function Mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Cy(e){var t=Un(e);if(t&&(e=t.stateNode)){var n=e[gn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(st(t,"name"),n=n.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var l=i[gn]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Gs(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&ju(i)}break e;case"textarea":A(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}function Oy(e,t,n){if(Xp)return e(t,n);Xp=!0;try{var i=e(t);return i}finally{if(Xp=!1,(Mo!==null||ko!==null)&&(xo(),Mo&&(t=Mo,e=ko,ko=Mo=null,Cy(t),e)))for(t=0;t<e.length;t++)Cy(e[t])}}function Vl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[gn]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function jy(){if(Jf)return Jf;var e,t=Kp,n=t.length,i,l="value"in Or?Or.value:Or.textContent,c=l.length;for(e=0;e<n&&t[e]===l[e];e++);var f=n-e;for(i=1;i<=f&&t[n-i]===l[c-i];i++);return Jf=l.slice(e,1<i?1-i:void 0)}function ku(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vu(){return!0}function Ry(){return!1}function Cn(e){function t(n,i,l,c,f){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(c):c[h]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Vu:Ry,this.isPropagationStopped=Ry,this}return Ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vu)},persist:function(){},isPersistent:Vu}),t}function S_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=GD[e])?!!t[e]:!1}function kh(){return S_}function My(e,t){switch(e){case"keyup":return r3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==P1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ky(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function __(e,t){switch(e){case"compositionend":return ky(t);case"keypress":return t.which!==$1?null:(F1=!0,I1);case"textInput":return e=t.data,e===I1&&F1?null:e;default:return null}}function A_(e,t){if(Vo)return e==="compositionend"||!nb&&My(e,t)?(e=jy(),Jf=Kp=Or=null,Vo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return H1&&t.locale!=="ko"?null:t.data;default:return null}}function Vy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!o3[e.type]:t==="textarea"}function D_(e){if(!ba)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Uy(e,t,n,i){Mo?ko?ko.push(i):ko=[i]:Mo=i,t=Tf(t,"onChange"),0<t.length&&(n=new Qf("onChange","change",null,n,i),e.push({event:n,listeners:t}))}function T_(e){gx(e,0)}function Uu(e){var t=Oa(e);if(ju(t))return e}function zy(e,t){if(e==="change")return t}function By(){vc&&(vc.detachEvent("onpropertychange",qy),xc=vc=null)}function qy(e){if(e.propertyName==="value"&&Uu(xc)){var t=[];Uy(t,xc,e,Mh(e)),Oy(T_,t)}}function C_(e,t,n){e==="focusin"?(By(),vc=t,xc=n,vc.attachEvent("onpropertychange",qy)):e==="focusout"&&By()}function O_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Uu(xc)}function j_(e,t){if(e==="click")return Uu(t)}function R_(e,t){if(e==="input"||e==="change")return Uu(t)}function M_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ul(e,t){if(xn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!Ts.call(t,l)||!xn(e[l],t[l]))return!1}return!0}function Ly(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Py(e,t){var n=Ly(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ly(n)}}function Hy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $y(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lo(e.document)}return t}function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Iy(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ab||Uo==null||Uo!==lo(i)||(i=Uo,"selectionStart"in i&&Vh(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Nc&&Ul(Nc,i)||(Nc=i,i=Tf(sb,"onSelect"),0<i.length&&(t=new Qf("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Uo)))}function mi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function pi(e){if(rb[e])return rb[e];if(!zo[e])return e;var t=zo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in G1)return rb[e]=t[n];return e}function Ss(e,t){K1.set(e,t),ja(t,[e])}function k_(e){for(var t=Zf,n=0;n<e.length;n++){var i=e[n];if(typeof i=="object"&&i!==null)if(Gt(i)&&i.length===2&&typeof i[0]=="string"){if(t!==Zf&&t!==ub)return lb;t=ub}else return lb;else{if(typeof i=="function"||typeof i=="string"&&50<i.length||t!==Zf&&t!==cb)return lb;t=cb}}return t}function Uh(e,t,n,i){for(var l in e)Ts.call(e,l)&&l[0]!=="_"&&Js(l,e[l],t,n,i)}function Js(e,t,n,i,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===ua){var c=J(t.type)||"…",f=t.key;t=t.props;var h=Object.keys(t),y=h.length;if(f==null&&y===0){t="<"+c+" />";break}if(3>i||y===1&&h[0]==="children"&&f==null){t="<"+c+" … />";break}n.push([l+"  ".repeat(i)+e,"<"+c]),f!==null&&Js("key",f,n,i+1,l),e=!1;for(var v in t)v==="children"?t.children!=null&&(!Gt(t.children)||0<t.children.length)&&(e=!0):Ts.call(t,v)&&v[0]!=="_"&&Js(v,t[v],n,i+1,l);n.push(["",e?">…</"+c+">":"/>"]);return}if(c=Object.prototype.toString.call(t),c=c.slice(8,c.length-1),c==="Array"){if(v=k_(t),v===cb||v===Zf){t=JSON.stringify(t);break}else if(v===ub){for(n.push([l+"  ".repeat(i)+e,""]),e=0;e<t.length;e++)c=t[e],Js(c[0],c[1],n,i+1,l);return}}if(c==="Promise"){if(t.status==="fulfilled"){if(c=n.length,Js(e,t.value,n,i,l),n.length>c){n=n[c],n[1]="Promise<"+(n[1]||"Object")+">";return}}else if(t.status==="rejected"&&(c=n.length,Js(e,t.reason,n,i,l),n.length>c)){n=n[c],n[1]="Rejected Promise<"+n[1]+">";return}n.push(["  ".repeat(i)+e,"Promise"]);return}c==="Object"&&(v=Object.getPrototypeOf(t))&&typeof v.constructor=="function"&&(c=v.constructor.name),n.push([l+"  ".repeat(i)+e,c==="Object"?3>i?"":"…":c]),3>i&&Uh(t,n,i+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===m3?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}n.push([l+"  ".repeat(i)+e,t])}function Fy(e,t,n,i){var l=!0;for(f in e)f in t||(n.push([Kf+"  ".repeat(i)+f,"…"]),l=!1);for(var c in t)if(c in e){var f=e[c],h=t[c];if(f!==h){if(i===0&&c==="children")l="  ".repeat(i)+c,n.push([Kf+l,"…"],[Wf+l,"…"]);else{if(!(3<=i)){if(typeof f=="object"&&typeof h=="object"&&f!==null&&h!==null&&f.$$typeof===h.$$typeof)if(h.$$typeof===ua){if(f.type===h.type&&f.key===h.key){f=J(h.type)||"…",l="  ".repeat(i)+c,f="<"+f+" … />",n.push([Kf+l,f],[Wf+l,f]),l=!1;continue}}else{var y=Object.prototype.toString.call(f),v=Object.prototype.toString.call(h);if(y===v&&(v==="[object Object]"||v==="[object Array]")){y=[tN+"  ".repeat(i)+c,v==="[object Array]"?"Array":""],n.push(y),v=n.length,Fy(f,h,n,i+1)?v===n.length&&(y[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof f=="function"&&typeof h=="function"&&f.name===h.name&&f.length===h.length&&(y=Function.prototype.toString.call(f),v=Function.prototype.toString.call(h),y===v)){f=h.name===""?"() => {}":h.name+"() {}",n.push([tN+"  ".repeat(i)+c,f+" Referentially unequal function closure. Consider memoization."]);continue}}Js(c,f,n,i,Kf),Js(c,h,n,i,Wf)}l=!1}}else n.push([Wf+"  ".repeat(i)+c,"…"]),l=!1;return l}function _s(e){Ze=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Qs(e,t,n,i){yt&&(Rr.start=t,Rr.end=n,Ha.color="warning",Ha.tooltipText=i,Ha.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,i,Rr)):performance.measure(i,Rr))}function zu(e,t,n){Qs(e,t,n,"Reconnect")}function Bu(e,t,n,i,l){var c=H(e);if(c!==null&&yt){var f=e.alternate,h=e.actualDuration;if(f===null||f.child!==e.child)for(var y=e.child;y!==null;y=y.sibling)h-=y.actualDuration;i=.5>h?i?"tertiary-light":"primary-light":10>h?i?"tertiary":"primary":100>h?i?"tertiary-dark":"primary-dark":"error";var v=e.memoizedProps;h=e._debugTask,v!==null&&f!==null&&f.memoizedProps!==v?(y=[p3],v=Fy(f.memoizedProps,v,y,0),1<y.length&&(v&&!jr&&(f.lanes&l)===0&&100<e.actualDuration?(jr=!0,y[0]=b3,Ha.color="warning",Ha.tooltipText=nN):(Ha.color=i,Ha.tooltipText=c),Ha.properties=y,Rr.start=t,Rr.end=n,h!=null?h.run(performance.measure.bind(performance,"​"+c,Rr)):performance.measure("​"+c,Rr))):h!=null?h.run(console.timeStamp.bind(console,c,t,n,is,void 0,i)):console.timeStamp(c,t,n,is,void 0,i)}}function zh(e,t,n,i){if(yt){var l=H(e);if(l!==null){for(var c=null,f=[],h=0;h<i.length;h++){var y=i[h];c==null&&y.source!==null&&(c=y.source._debugTask),y=y.value,f.push(["Error",typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y)])}e.key!==null&&Js("key",e.key,f,0,""),e.memoizedProps!==null&&Uh(e.memoizedProps,f,0,""),c==null&&(c=e._debugTask),e={start:t,end:n,detail:{devtools:{color:"error",track:is,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:f}}},c?c.run(performance.measure.bind(performance,"​"+l,e)):performance.measure("​"+l,e)}}}function Xs(e,t,n,i,l){if(l!==null){if(yt){var c=H(e);if(c!==null){i=[];for(var f=0;f<l.length;f++){var h=l[f].value;i.push(["Error",typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h)])}e.key!==null&&Js("key",e.key,i,0,""),e.memoizedProps!==null&&Uh(e.memoizedProps,i,0,""),t={start:t,end:n,detail:{devtools:{color:"error",track:is,tooltipText:"A lifecycle or effect errored",properties:i}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+c,t)):performance.measure("​"+c,t)}}}else c=H(e),c!==null&&yt&&(l=1>i?"secondary-light":100>i?"secondary":500>i?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,c,t,n,is,void 0,l)):console.timeStamp(c,t,n,is,void 0,l))}function V_(e,t,n,i){if(yt&&!(t<=e)){var l=(n&738197653)===n?"tertiary-dark":"primary-dark";n=(n&536870912)===n?"Prepared":(n&201326741)===n?"Hydrated":"Render",i?i.run(console.timeStamp.bind(console,n,e,t,Ze,Je,l)):console.timeStamp(n,e,t,Ze,Je,l)}}function Yy(e,t,n,i){!yt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Prewarm",e,t,Ze,Je,n)):console.timeStamp("Prewarm",e,t,Ze,Je,n))}function Gy(e,t,n,i){!yt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Suspended",e,t,Ze,Je,n)):console.timeStamp("Suspended",e,t,Ze,Je,n))}function U_(e,t,n,i,l,c){if(yt&&!(t<=e)){n=[];for(var f=0;f<i.length;f++){var h=i[f].value;n.push(["Recoverable Error",typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Ze,trackGroup:Je,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:n}}},c?c.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Bh(e,t,n,i){!yt||t<=e||(i?i.run(console.timeStamp.bind(console,"Errored",e,t,Ze,Je,"error")):console.timeStamp("Errored",e,t,Ze,Je,"error"))}function z_(e,t,n,i){!yt||t<=e||(i?i.run(console.timeStamp.bind(console,n,e,t,Ze,Je,"secondary-light")):console.timeStamp(n,e,t,Ze,Je,"secondary-light"))}function Jy(e,t,n,i,l){if(yt&&!(t<=e)){for(var c=[],f=0;f<n.length;f++){var h=n[f].value;c.push(["Error",typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Ze,trackGroup:Je,tooltipText:i?"Remaining Effects Errored":"Commit Errored",properties:c}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function qh(e,t,n){!yt||t<=e||console.timeStamp("Animating",e,t,Ze,Je,"secondary-dark")}function qu(){for(var e=Bo,t=fb=Bo=0;t<e;){var n=os[t];os[t++]=null;var i=os[t];os[t++]=null;var l=os[t];os[t++]=null;var c=os[t];if(os[t++]=null,i!==null&&l!==null){var f=i.pending;f===null?l.next=l:(l.next=f.next,f.next=l),i.pending=l}c!==0&&Qy(n,l,c)}}function Lu(e,t,n,i){os[Bo++]=e,os[Bo++]=t,os[Bo++]=n,os[Bo++]=i,fb|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Lh(e,t,n,i){return Lu(e,t,n,i),Pu(e)}function dn(e,t){return Lu(e,null,null,t),Pu(e)}function Qy(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var l=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&Ec||(l=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,l&&t!==null&&(l=31-yn(n),e=c.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=n|536870912),c):null}function Pu(e){if(Qc>R3)throw Fi=Qc=0,Xc=Ib=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Fi>M3&&(Fi=0,Xc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&fx(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&fx(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function bi(e){if(ls===null)return e;var t=ls(e);return t===void 0?e:t.current}function Ph(e){if(ls===null)return e;var t=ls(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=bi(e.render),e.render!==t)?(t={$$typeof:uc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Xy(e,t){if(ls===null)return!1;var n=e.elementType;t=t.type;var i=!1,l=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(i=!0);break;case 0:(typeof t=="function"||l===$n)&&(i=!0);break;case 11:(l===uc||l===$n)&&(i=!0);break;case 14:case 15:(l===qf||l===$n)&&(i=!0);break;default:return!1}return!!(i&&(e=ls(n),e!==void 0&&e===ls(t)))}function Zy(e){ls!==null&&typeof WeakSet=="function"&&(qo===null&&(qo=new WeakSet),qo.add(e))}function Ky(e,t,n){do{var i=e,l=i.alternate,c=i.child,f=i.sibling,h=i.tag;i=i.type;var y=null;switch(h){case 0:case 15:case 1:y=i;break;case 11:y=i.render}if(ls===null)throw Error("Expected resolveFamily to be set during hot reload.");var v=!1;if(i=!1,y!==null&&(y=ls(y),y!==void 0&&(n.has(y)?i=!0:t.has(y)&&(h===1?i=!0:v=!0))),qo!==null&&(qo.has(e)||l!==null&&qo.has(l))&&(i=!0),i&&(e._debugNeedsRemount=!0),(i||v)&&(l=dn(e,2),l!==null&&At(l,e,2)),c===null||i||Ky(c,t,n),f===null)break;e=f}while(!0)}function B_(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,sN||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Hh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ma(e,t){var n=e.alternate;switch(n===null?(n=D(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=bi(e.type);break;case 1:n.type=bi(e.type);break;case 11:n.type=Ph(e.type)}return n}function Wy(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function $h(e,t,n,i,l,c){var f=0,h=e;if(typeof e=="function")Hh(e)&&(f=1),h=bi(h);else if(typeof e=="string")f=be(),f=GA(e,n,f)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Up:return t=D(31,n,t,l),t.elementType=Up,t.lanes=c,t;case Do:return yi(n.children,l,c,t);case Bf:f=8,l|=mn,l|=Cs;break;case Rp:return e=n,i=l,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=D(12,e,t,i|ze),t.elementType=Rp,t.lanes=c,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case kp:return t=D(13,n,t,l),t.elementType=kp,t.lanes=c,t;case Vp:return t=D(19,n,t,l),t.elementType=Vp,t.lanes=c,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fa:f=10;break e;case Mp:f=9;break e;case uc:f=11,h=Ph(h);break e;case qf:f=14;break e;case $n:f=16,h=null;break e}h="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":Gt(e)?n="array":e!==void 0&&e.$$typeof===ua?(n="<"+(J(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(f=i?Q(i):null)&&(h+=`
86
-
87
- Check the render method of \``+f+"`."),f=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+h)),h=null}return t=D(f,n,t,l),t.elementType=e,t.type=h,t.lanes=c,t._debugOwner=i,t}function Hu(e,t,n){return t=$h(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function yi(e,t,n,i){return e=D(7,e,i,t),e.lanes=n,e}function Ih(e,t,n){return e=D(6,e,null,t),e.lanes=n,e}function eg(e){var t=D(18,null,null,Te);return t.stateNode=e,t}function Fh(e,t,n){return t=D(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zn(e,t){if(typeof e=="object"&&e!==null){var n=db.get(e);return n!==void 0?n:(t={value:e,source:t,stack:tt(t)},db.set(e,t),t)}return{value:e,source:t,stack:tt(t)}}function ka(e,t){mr(),Lo[Po++]=wc,Lo[Po++]=ed,ed=e,wc=t}function tg(e,t,n){mr(),cs[us++]=Ia,cs[us++]=Fa,cs[us++]=Oi,Oi=e;var i=Ia;e=Fa;var l=32-yn(i)-1;i&=~(1<<l),n+=1;var c=32-yn(t)+l;if(30<c){var f=l-l%5;c=(i&(1<<f)-1).toString(32),i>>=f,l-=f,Ia=1<<32-yn(t)+l|n<<l|i,Fa=c+e}else Ia=1<<c|n<<l|i,Fa=e}function Yh(e){mr(),e.return!==null&&(ka(e,1),tg(e,1,0))}function Gh(e){for(;e===ed;)ed=Lo[--Po],Lo[Po]=null,wc=Lo[--Po],Lo[Po]=null;for(;e===Oi;)Oi=cs[--us],cs[us]=null,Fa=cs[--us],cs[us]=null,Ia=cs[--us],cs[us]=null}function ng(){return mr(),Oi!==null?{id:Ia,overflow:Fa}:null}function sg(e,t){mr(),cs[us++]=Ia,cs[us++]=Fa,cs[us++]=Oi,Ia=t.id,Fa=t.overflow,Oi=e}function mr(){Ye||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function gi(e,t){if(e.return===null){if(Fn===null)Fn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Fn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Fn.distanceFromLeaf>t&&(Fn.distanceFromLeaf=t)}return Fn}var n=gi(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function ag(){Ye&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function $u(e,t){ya||(e=gi(e,0),e.serverProps=null,t!==null&&(t=Ux(t),e.serverTail.push(t)))}function pr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n="",i=Fn;throw i!==null&&(Fn=null,n=jh(i)),zl(zn(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
88
-
89
- - A server/client branch \`if (typeof window !== 'undefined')\`.
90
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
91
- - Date formatting in a user's locale which doesn't match the server.
92
- - External changing data without sending a snapshot of it along with the HTML.
93
- - Invalid HTML tag nesting.
94
-
95
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
96
-
97
- https://react.dev/link/hydration-mismatch`+n),e)),hb}function rg(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ln]=e,t[gn]=i,hp(n,i),n){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(n=0;n<Zc.length;n++)Ge(Zc[n],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":Is("input",i),Ge("invalid",t),Ys(t,i),co(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"option":Ol(t,i);break;case"select":Is("select",i),Ge("invalid",t),jl(t,i);break;case"textarea":Is("textarea",i),Ge("invalid",t),N(t,i),_(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Ex(t.textContent,n)?(i.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),i.onScroll!=null&&Ge("scroll",t),i.onScrollEnd!=null&&Ge("scrollend",t),i.onClick!=null&&(t.onclick=Ra),t=!0):t=!1,t||pr(e,!0)}function ig(e){for(cn=e.return;cn;)switch(cn.tag){case 5:case 31:case 13:fs=!1;return;case 27:case 3:fs=!0;return;default:cn=cn.return}}function uo(e){if(e!==cn)return!1;if(!Ye)return ig(e),Ye=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||gp(e.type,e.memoizedProps)),n=!n),n&&gt){for(n=gt;n;){var i=gi(e,0),l=Ux(n);i.serverTail.push(l),n=l.type==="Suspense"?Ep(n):Hn(n.nextSibling)}pr(e)}if(ig(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");gt=Ep(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");gt=Ep(e)}else t===27?(t=gt,_r(e.type)?(e=n0,n0=null,gt=e):gt=t):gt=cn?Hn(e.stateNode.nextSibling):null;return!0}function vi(){gt=cn=null,ya=Ye=!1}function Jh(){var e=kr;return e!==null&&(Sn===null?Sn=e:Sn.push.apply(Sn,e),kr=null),e}function zl(e){kr===null?kr=[e]:kr.push(e)}function Qh(){var e=Fn;if(e!==null){Fn=null;for(var t=jh(e);0<e.children.length;)e=e.children[0];ye(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
98
-
99
- - A server/client branch \`if (typeof window !== 'undefined')\`.
100
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
101
- - Date formatting in a user's locale which doesn't match the server.
102
- - External changing data without sending a snapshot of it along with the HTML.
103
- - Invalid HTML tag nesting.
104
-
105
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
106
-
107
- %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Iu(){Ho=td=null,$o=!1}function br(e,t,n){ge(mb,t._currentValue,e),t._currentValue=n,ge(pb,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==rN&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=rN}function Va(e,t){e._currentValue=mb.current;var n=pb.current;ae(pb,t),e._currentRenderer=n,ae(mb,t)}function Xh(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Zh(e,t,n,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var c=l.dependencies;if(c!==null){var f=l.child;c=c.firstContext;e:for(;c!==null;){var h=c;c=l;for(var y=0;y<t.length;y++)if(h.context===t[y]){c.lanes|=n,h=c.alternate,h!==null&&(h.lanes|=n),Xh(c.return,n,e),i||(f=null);break e}c=h.next}}else if(l.tag===18){if(f=l.return,f===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Xh(f,n,e),f=null}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===e){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}}function fo(e,t,n,i){e=null;for(var l=t,c=!1;l!==null;){if(!c){if((l.flags&524288)!==0)c=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var f=l.alternate;if(f===null)throw Error("Should have a current fiber. This is a bug in React.");if(f=f.memoizedProps,f!==null){var h=l.type;xn(l.pendingProps.value,f.value)||(e!==null?e.push(h):e=[h])}}else if(l===Lf.current){if(f=l.alternate,f===null)throw Error("Should have a current fiber. This is a bug in React.");f.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(nu):e=[nu])}l=l.return}e!==null&&Zh(t,e,n,i),t.flags|=262144}function Fu(e){for(e=e.firstContext;e!==null;){if(!xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xi(e){td=e,Ho=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return $o&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),og(td,e)}function Yu(e,t){return td===null&&xi(e),og(e,t)}function og(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ho===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Ho=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Ho=Ho.next=t;return n}function Kh(){return{controller:new v3,data:new Map,refCount:0}}function Ni(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Bl(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&x3(N3,function(){e.controller.abort()})}function Zs(e,t,n){(e&127)!==0?0>ga&&(ga=qt(),_c=nd(t),bb=t,n!=null&&(yb=H(n)),(We&(Qt|Jn))!==tn&&(Dt=!0,Ur=Sc),e=rc(),t=ac(),e!==Io||t!==Ac?Io=-1.1:t!==null&&(Ur=Sc),Mi=e,Ac=t):(e&4194048)!==0&&0>ds&&(ds=qt(),Dc=nd(t),iN=t,n!=null&&(oN=H(n)),0>Qa)&&(e=rc(),t=ac(),(e!==Br||t!==ki)&&(Br=-1.1),zr=e,ki=t)}function q_(e){if(0>ga){ga=qt(),_c=e._debugTask!=null?e._debugTask:null,(We&(Qt|Jn))!==tn&&(Ur=Sc);var t=rc(),n=ac();t!==Io||n!==Ac?Io=-1.1:n!==null&&(Ur=Sc),Mi=t,Ac=n}0>ds&&(ds=qt(),Dc=e._debugTask!=null?e._debugTask:null,0>Qa)&&(e=rc(),t=ac(),(e!==Br||t!==ki)&&(Br=-1.1),zr=e,ki=t)}function Ua(){var e=ji;return ji=0,e}function Gu(e){var t=ji;return ji=e,t}function ql(e){var t=ji;return ji+=e,t}function Ju(){De=Ae=-1.1}function Bn(){var e=Ae;return Ae=-1.1,e}function qn(e){0<=e&&(Ae=e)}function Ks(){var e=Et;return Et=-0,e}function Ws(e){0<=e&&(Et=e)}function ea(){var e=Nt;return Nt=null,e}function ta(){var e=Dt;return Dt=!1,e}function Wh(e){Nn=qt(),0>e.actualStartTime&&(e.actualStartTime=Nn)}function em(e){if(0<=Nn){var t=qt()-Nn;e.actualDuration+=t,e.selfBaseDuration=t,Nn=-1}}function lg(e){if(0<=Nn){var t=qt()-Nn;e.actualDuration+=t,Nn=-1}}function na(){if(0<=Nn){var e=qt(),t=e-Nn;Nn=-1,ji+=t,Et+=t,De=e}}function cg(e){Nt===null&&(Nt=[]),Nt.push(e),Ga===null&&(Ga=[]),Ga.push(e)}function sa(){Nn=qt(),0>Ae&&(Ae=Nn)}function Ll(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function L_(e,t){if(Cc===null){var n=Cc=[];vb=0,Vi=cp(),Fo={status:"pending",value:void 0,then:function(i){n.push(i)}}}return vb++,t.then(ug,ug),t}function ug(){if(--vb===0&&(-1<ds||(Qa=-1.1),Cc!==null)){Fo!==null&&(Fo.status="fulfilled");var e=Cc;Cc=null,Vi=0,Fo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function P_(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}function tm(){var e=Ui.current;return e!==null?e:ht.pooledCache}function Qu(e,t){t===null?ge(Ui,Ui.current,e):ge(Ui,t.pool,e)}function fg(){var e=tm();return e===null?null:{parent:Bt._currentValue,pool:e}}function dg(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function hg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mg(e,t,n){G.actQueue!==null&&(G.didUsePromise=!0);var i=e.thenables;if(n=i[n],n===void 0?i.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Ra,Ra),t=n),t._debugInfo===void 0){e=performance.now(),i=t.displayName;var l={name:typeof i=="string"?i:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:l}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){l.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bg(e),e;default:if(typeof t.status=="string")t.then(Ra,Ra);else{if(e=ht,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(c){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=c}},function(c){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bg(e),e}throw Bi=t,Uc=!0,Yo}}function yr(e){try{return A3(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Bi=t,Uc=!0,Yo):t}}function pg(){if(Bi===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Bi;return Bi=null,Uc=!1,e}function bg(e){if(e===Yo||e===ud)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function an(e){var t=Be;return e!=null&&(Be=t===null?e:t.concat(e)),t}function nm(){var e=Be;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Xu(e,t,n){for(var i=Object.keys(e.props),l=0;l<i.length;l++){var c=i[l];if(c!=="children"&&c!=="key"){t===null&&(t=Hu(e,n.mode,0),t._debugInfo=Be,t.return=n),ye(t,function(f){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f)},c);break}}}function Zu(e){var t=zc;return zc+=1,Go===null&&(Go=dg()),mg(Go,e,t)}function Pl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yg(e,t){throw t.$$typeof===aD?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
108
- - Multiple copies of the "react" package is used.
109
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
110
- - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Ku(e,t){var n=nm();n!==null?n.run(yg.bind(null,e,t)):yg(e,t)}function gg(e,t){var n=H(e)||"Component";DN[n]||(DN[n]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
111
- root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
112
- <%s>{%s}</%s>`,t,t,n,t,n))}function Wu(e,t){var n=nm();n!==null?n.run(gg.bind(null,e,t)):gg(e,t)}function vg(e,t){var n=H(e)||"Component";TN[n]||(TN[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
113
- root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
114
- <%s>%s</%s>`,n,t,n))}function ef(e,t){var n=nm();n!==null?n.run(vg.bind(null,e,t)):vg(e,t)}function xg(e){function t(C,j){if(e){var M=C.deletions;M===null?(C.deletions=[j],C.flags|=16):M.push(j)}}function n(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function i(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function l(C,j){return C=Ma(C,j),C.index=0,C.sibling=null,C}function c(C,j,M){return C.index=M,e?(M=C.alternate,M!==null?(M=M.index,M<j?(C.flags|=67108866,j):M):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function f(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function h(C,j,M,Z){return j===null||j.tag!==6?(j=Ih(M,C.mode,Z),j.return=C,j._debugOwner=C,j._debugTask=C._debugTask,j._debugInfo=Be,j):(j=l(j,M),j.return=C,j._debugInfo=Be,j)}function y(C,j,M,Z){var de=M.type;return de===Do?(j=z(C,j,M.props.children,Z,M.key),Xu(M,j,C),j):j!==null&&(j.elementType===de||Xy(j,M)||typeof de=="object"&&de!==null&&de.$$typeof===$n&&yr(de)===j.type)?(j=l(j,M.props),Pl(j,M),j.return=C,j._debugOwner=M._owner,j._debugInfo=Be,j):(j=Hu(M,C.mode,Z),Pl(j,M),j.return=C,j._debugInfo=Be,j)}function v(C,j,M,Z){return j===null||j.tag!==4||j.stateNode.containerInfo!==M.containerInfo||j.stateNode.implementation!==M.implementation?(j=Fh(M,C.mode,Z),j.return=C,j._debugInfo=Be,j):(j=l(j,M.children||[]),j.return=C,j._debugInfo=Be,j)}function z(C,j,M,Z,de){return j===null||j.tag!==7?(j=yi(M,C.mode,Z,de),j.return=C,j._debugOwner=C,j._debugTask=C._debugTask,j._debugInfo=Be,j):(j=l(j,M),j.return=C,j._debugInfo=Be,j)}function B(C,j,M){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Ih(""+j,C.mode,M),j.return=C,j._debugOwner=C,j._debugTask=C._debugTask,j._debugInfo=Be,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case ua:return M=Hu(j,C.mode,M),Pl(M,j),M.return=C,C=an(j._debugInfo),M._debugInfo=Be,Be=C,M;case Ao:return j=Fh(j,C.mode,M),j.return=C,j._debugInfo=Be,j;case $n:var Z=an(j._debugInfo);return j=yr(j),C=B(C,j,M),Be=Z,C}if(Gt(j)||fe(j))return M=yi(j,C.mode,M,null),M.return=C,M._debugOwner=C,M._debugTask=C._debugTask,C=an(j._debugInfo),M._debugInfo=Be,Be=C,M;if(typeof j.then=="function")return Z=an(j._debugInfo),C=B(C,Zu(j),M),Be=Z,C;if(j.$$typeof===fa)return B(C,Yu(C,j),M);Ku(C,j)}return typeof j=="function"&&Wu(C,j),typeof j=="symbol"&&ef(C,j),null}function O(C,j,M,Z){var de=j!==null?j.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return de!==null?null:h(C,j,""+M,Z);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ua:return M.key===de?(de=an(M._debugInfo),C=y(C,j,M,Z),Be=de,C):null;case Ao:return M.key===de?v(C,j,M,Z):null;case $n:return de=an(M._debugInfo),M=yr(M),C=O(C,j,M,Z),Be=de,C}if(Gt(M)||fe(M))return de!==null?null:(de=an(M._debugInfo),C=z(C,j,M,Z,null),Be=de,C);if(typeof M.then=="function")return de=an(M._debugInfo),C=O(C,j,Zu(M),Z),Be=de,C;if(M.$$typeof===fa)return O(C,j,Yu(C,M),Z);Ku(C,M)}return typeof M=="function"&&Wu(C,M),typeof M=="symbol"&&ef(C,M),null}function $(C,j,M,Z,de){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return C=C.get(M)||null,h(j,C,""+Z,de);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case ua:return M=C.get(Z.key===null?M:Z.key)||null,C=an(Z._debugInfo),j=y(j,M,Z,de),Be=C,j;case Ao:return C=C.get(Z.key===null?M:Z.key)||null,v(j,C,Z,de);case $n:var Re=an(Z._debugInfo);return Z=yr(Z),j=$(C,j,M,Z,de),Be=Re,j}if(Gt(Z)||fe(Z))return M=C.get(M)||null,C=an(Z._debugInfo),j=z(j,M,Z,de,null),Be=C,j;if(typeof Z.then=="function")return Re=an(Z._debugInfo),j=$(C,j,M,Zu(Z),de),Be=Re,j;if(Z.$$typeof===fa)return $(C,j,M,Yu(j,Z),de);Ku(j,Z)}return typeof Z=="function"&&Wu(j,Z),typeof Z=="symbol"&&ef(j,Z),null}function ce(C,j,M,Z){if(typeof M!="object"||M===null)return Z;switch(M.$$typeof){case ua:case Ao:S(C,j,M);var de=M.key;if(typeof de!="string")break;if(Z===null){Z=new Set,Z.add(de);break}if(!Z.has(de)){Z.add(de);break}ye(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",de)});break;case $n:M=yr(M),ce(C,j,M,Z)}return Z}function pe(C,j,M,Z){for(var de=null,Re=null,_e=null,Se=j,Ue=j=0,vt=null;Se!==null&&Ue<M.length;Ue++){Se.index>Ue?(vt=Se,Se=null):vt=Se.sibling;var kt=O(C,Se,M[Ue],Z);if(kt===null){Se===null&&(Se=vt);break}de=ce(C,kt,M[Ue],de),e&&Se&&kt.alternate===null&&t(C,Se),j=c(kt,j,Ue),_e===null?Re=kt:_e.sibling=kt,_e=kt,Se=vt}if(Ue===M.length)return n(C,Se),Ye&&ka(C,Ue),Re;if(Se===null){for(;Ue<M.length;Ue++)Se=B(C,M[Ue],Z),Se!==null&&(de=ce(C,Se,M[Ue],de),j=c(Se,j,Ue),_e===null?Re=Se:_e.sibling=Se,_e=Se);return Ye&&ka(C,Ue),Re}for(Se=i(Se);Ue<M.length;Ue++)vt=$(Se,C,Ue,M[Ue],Z),vt!==null&&(de=ce(C,vt,M[Ue],de),e&&vt.alternate!==null&&Se.delete(vt.key===null?Ue:vt.key),j=c(vt,j,Ue),_e===null?Re=vt:_e.sibling=vt,_e=vt);return e&&Se.forEach(function(sr){return t(C,sr)}),Ye&&ka(C,Ue),Re}function pt(C,j,M,Z){if(M==null)throw Error("An iterable object provided no iterator.");for(var de=null,Re=null,_e=j,Se=j=0,Ue=null,vt=null,kt=M.next();_e!==null&&!kt.done;Se++,kt=M.next()){_e.index>Se?(Ue=_e,_e=null):Ue=_e.sibling;var sr=O(C,_e,kt.value,Z);if(sr===null){_e===null&&(_e=Ue);break}vt=ce(C,sr,kt.value,vt),e&&_e&&sr.alternate===null&&t(C,_e),j=c(sr,j,Se),Re===null?de=sr:Re.sibling=sr,Re=sr,_e=Ue}if(kt.done)return n(C,_e),Ye&&ka(C,Se),de;if(_e===null){for(;!kt.done;Se++,kt=M.next())_e=B(C,kt.value,Z),_e!==null&&(vt=ce(C,_e,kt.value,vt),j=c(_e,j,Se),Re===null?de=_e:Re.sibling=_e,Re=_e);return Ye&&ka(C,Se),de}for(_e=i(_e);!kt.done;Se++,kt=M.next())Ue=$(_e,C,Se,kt.value,Z),Ue!==null&&(vt=ce(C,Ue,kt.value,vt),e&&Ue.alternate!==null&&_e.delete(Ue.key===null?Se:Ue.key),j=c(Ue,j,Se),Re===null?de=Ue:Re.sibling=Ue,Re=Ue);return e&&_e.forEach(function(X3){return t(C,X3)}),Ye&&ka(C,Se),de}function Qe(C,j,M,Z){if(typeof M=="object"&&M!==null&&M.type===Do&&M.key===null&&(Xu(M,null,C),M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case ua:var de=an(M._debugInfo);e:{for(var Re=M.key;j!==null;){if(j.key===Re){if(Re=M.type,Re===Do){if(j.tag===7){n(C,j.sibling),Z=l(j,M.props.children),Z.return=C,Z._debugOwner=M._owner,Z._debugInfo=Be,Xu(M,Z,C),C=Z;break e}}else if(j.elementType===Re||Xy(j,M)||typeof Re=="object"&&Re!==null&&Re.$$typeof===$n&&yr(Re)===j.type){n(C,j.sibling),Z=l(j,M.props),Pl(Z,M),Z.return=C,Z._debugOwner=M._owner,Z._debugInfo=Be,C=Z;break e}n(C,j);break}else t(C,j);j=j.sibling}M.type===Do?(Z=yi(M.props.children,C.mode,Z,M.key),Z.return=C,Z._debugOwner=C,Z._debugTask=C._debugTask,Z._debugInfo=Be,Xu(M,Z,C),C=Z):(Z=Hu(M,C.mode,Z),Pl(Z,M),Z.return=C,Z._debugInfo=Be,C=Z)}return C=f(C),Be=de,C;case Ao:e:{for(de=M,M=de.key;j!==null;){if(j.key===M)if(j.tag===4&&j.stateNode.containerInfo===de.containerInfo&&j.stateNode.implementation===de.implementation){n(C,j.sibling),Z=l(j,de.children||[]),Z.return=C,C=Z;break e}else{n(C,j);break}else t(C,j);j=j.sibling}Z=Fh(de,C.mode,Z),Z.return=C,C=Z}return f(C);case $n:return de=an(M._debugInfo),M=yr(M),C=Qe(C,j,M,Z),Be=de,C}if(Gt(M))return de=an(M._debugInfo),C=pe(C,j,M,Z),Be=de,C;if(fe(M)){if(de=an(M._debugInfo),Re=fe(M),typeof Re!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var _e=Re.call(M);return _e===M?(C.tag!==0||Object.prototype.toString.call(C.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(_e)!=="[object Generator]")&&(_N||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),_N=!0):M.entries!==Re||wb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),wb=!0),C=pt(C,j,_e,Z),Be=de,C}if(typeof M.then=="function")return de=an(M._debugInfo),C=Qe(C,j,Zu(M),Z),Be=de,C;if(M.$$typeof===fa)return Qe(C,j,Yu(C,M),Z);Ku(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(de=""+M,j!==null&&j.tag===6?(n(C,j.sibling),Z=l(j,de),Z.return=C,C=Z):(n(C,j),Z=Ih(de,C.mode,Z),Z.return=C,Z._debugOwner=C,Z._debugTask=C._debugTask,Z._debugInfo=Be,C=Z),f(C)):(typeof M=="function"&&Wu(C,M),typeof M=="symbol"&&ef(C,M),n(C,j))}return function(C,j,M,Z){var de=Be;Be=null;try{zc=0;var Re=Qe(C,j,M,Z);return Go=null,Re}catch(vt){if(vt===Yo||vt===ud)throw vt;var _e=D(29,vt,null,C.mode);_e.lanes=Z,_e.return=C;var Se=_e._debugInfo=Be;if(_e._debugOwner=C._debugOwner,_e._debugTask=C._debugTask,Se!=null){for(var Ue=Se.length-1;0<=Ue;Ue--)if(typeof Se[Ue].stack=="string"){_e._debugOwner=Se[Ue],_e._debugTask=Se[Ue].debugTask;break}}return _e}finally{Be=de}}}function Ng(e,t){var n=Gt(e);return e=!n&&typeof fe(e)=="function",n||e?(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1):!0}function sm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function am(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gr(e){return{lane:e,tag:ON,payload:null,callback:null,next:null}}function vr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,_b===i&&!MN){var l=H(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
115
-
116
- Please update the following component: %s`,l),MN=!0}return(We&Qt)!==tn?(l=i.pending,l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=Pu(e),Qy(e,null,n),t):(Lu(e,i,t,n),Pu(e))}function Hl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ou(e,n)}}function tf(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?l=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?l=c=t:c=c.next=t}else l=c=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $l(){if(Ab){var e=Fo;if(e!==null)throw e}}function Il(e,t,n,i){Ab=!1;var l=e.updateQueue;qr=!1,_b=l.shared;var c=l.firstBaseUpdate,f=l.lastBaseUpdate,h=l.shared.pending;if(h!==null){l.shared.pending=null;var y=h,v=y.next;y.next=null,f===null?c=v:f.next=v,f=y;var z=e.alternate;z!==null&&(z=z.updateQueue,h=z.lastBaseUpdate,h!==f&&(h===null?z.firstBaseUpdate=v:h.next=v,z.lastBaseUpdate=y))}if(c!==null){var B=l.baseState;f=0,z=v=y=null,h=c;do{var O=h.lane&-536870913,$=O!==h.lane;if($?(qe&O)===O:(i&O)===O){O!==0&&O===Vi&&(Ab=!0),z!==null&&(z=z.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{O=e;var ce=h,pe=t,pt=n;switch(ce.tag){case jN:if(ce=ce.payload,typeof ce=="function"){$o=!0;var Qe=ce.call(pt,B,pe);if(O.mode&mn){bt(!0);try{ce.call(pt,B,pe)}finally{bt(!1)}}$o=!1,B=Qe;break e}B=ce;break e;case Sb:O.flags=O.flags&-65537|128;case ON:if(Qe=ce.payload,typeof Qe=="function"){if($o=!0,ce=Qe.call(pt,B,pe),O.mode&mn){bt(!0);try{Qe.call(pt,B,pe)}finally{bt(!1)}}$o=!1}else ce=Qe;if(ce==null)break e;B=Ie({},B,ce);break e;case RN:qr=!0}}O=h.callback,O!==null&&(e.flags|=64,$&&(e.flags|=8192),$=l.callbacks,$===null?l.callbacks=[O]:$.push(O))}else $={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},z===null?(v=z=$,y=B):z=z.next=$,f|=O;if(h=h.next,h===null){if(h=l.shared.pending,h===null)break;$=h,h=$.next,$.next=null,l.lastBaseUpdate=$,l.shared.pending=null}}while(!0);z===null&&(y=B),l.baseState=y,l.firstBaseUpdate=v,l.lastBaseUpdate=z,c===null&&(l.shared.lanes=0),Hr|=f,e.lanes=f,e.memoizedState=B}_b=null}function Eg(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function H_(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Eg(n[e],t)}function wg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Eg(n[e],t)}function Sg(e,t){var n=xa;ge(dd,n,e),ge(Jo,t,e),xa=n|t.baseLanes}function rm(e){ge(dd,xa,e),ge(Jo,Jo.current,e)}function im(e){xa=dd.current,ae(Jo,e),ae(dd,e)}function xr(e){var t=e.alternate;ge(Mt,Mt.current&Qo,e),ge(Yn,e,e),hs===null&&(t===null||Jo.current!==null||t.memoizedState!==null)&&(hs=e)}function om(e){ge(Mt,Mt.current,e),ge(Yn,e,e),hs===null&&(hs=e)}function _g(e){e.tag===22?(ge(Mt,Mt.current,e),ge(Yn,e,e),hs===null&&(hs=e)):Nr(e)}function Nr(e){ge(Mt,Mt.current,e),ge(Yn,Yn.current,e)}function Ln(e){ae(Yn,e),hs===e&&(hs=null),ae(Mt,e)}function nf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xp(n)||Np(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function $e(){var e=Y;ps===null?ps=[e]:ps.push(e)}function ie(){var e=Y;if(ps!==null&&(Ka++,ps[Ka]!==e)){var t=H(je);if(!kN.has(t)&&(kN.add(t),ps!==null)){for(var n="",i=0;i<=Ka;i++){var l=ps[i],c=i===Ka?e:l;for(l=i+1+". "+l;30>l.length;)l+=" ";l+=c+`
117
- `,n+=l}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
118
-
119
- Previous render Next render
120
- ------------------------------------------------------
121
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122
- `,t,n)}}}function ho(e){e==null||Gt(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Y,typeof e)}function sf(){var e=H(je);UN.has(e)||(UN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Ct(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
123
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
124
- 2. You might be breaking the Rules of Hooks
125
- 3. You might have more than one copy of React in the same app
126
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function lm(e,t){if(Lc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Y),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
127
-
128
- Previous: %s
129
- Incoming: %s`,Y,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!xn(e[n],t[n]))return!1;return!0}function cm(e,t,n,i,l,c){Xa=c,je=t,ps=e!==null?e._debugHookTypes:null,Ka=-1,Lc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(c=H(je),Db.has(c)||(Db.add(c),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",c===null?"An unknown Component":"<"+c+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Cb:ps!==null?zN:Tb,Li=c=(t.mode&mn)!==Te;var f=xb(n,i,l);if(Li=!1,Zo&&(f=um(t,n,i,l)),c){bt(!0);try{f=um(t,n,i,l)}finally{bt(!1)}}return Ag(e,t),f}function Ag(e,t){t._debugHookTypes=ps,t.dependencies===null?Za!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Za}):t.dependencies._debugThenableState=Za,G.H=Pc;var n=dt!==null&&dt.next!==null;if(Xa=0,ps=Y=Lt=dt=je=null,Ka=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),md=!1,qc=0,Za=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Pt||(e=e.dependencies,e!==null&&Fu(e)&&(Pt=!0)),Uc?(Uc=!1,e=!0):e=!1,e&&(t=H(t)||"Unknown",VN.has(t)||Db.has(t)||(VN.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function um(e,t,n,i){je=e;var l=0;do{if(Zo&&(Za=null),qc=0,Zo=!1,l>=T3)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Lc=!1,Lt=dt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}Ka=-1,G.H=BN,c=xb(t,n,i)}while(Zo);return c}function $_(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Fl(t):t,e=e.useState()[0],(dt!==null?dt.memoizedState:null)!==e&&(je.flags|=1024),t}function fm(){var e=pd!==0;return pd=0,e}function dm(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Cs)!==Te?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function hm(e){if(md){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}md=!1}Xa=0,ps=Lt=dt=je=null,Ka=-1,Y=null,Zo=!1,qc=pd=0,Za=null}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?je.memoizedState=Lt=e:Lt=Lt.next=e,Lt}function lt(){if(dt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=dt.next;var t=Lt===null?je.memoizedState:Lt.next;if(t!==null)Lt=t,dt=e;else{if(e===null)throw je.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");dt=e,e={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},Lt===null?je.memoizedState=Lt=e:Lt=Lt.next=e}return Lt}function af(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fl(e){var t=qc;return qc+=1,Za===null&&(Za=dg()),e=mg(Za,e,t),t=je,(Lt===null?t.memoizedState:Lt.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Cb:Tb),e}function Er(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fl(e);if(e.$$typeof===fa)return xt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ei(e){var t=null,n=je.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=je.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=af(),je.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Lc)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=rD;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function As(e,t){return typeof t=="function"?t(e):t}function mm(e,t,n){var i=bn();if(n!==void 0){var l=n(t);if(Li){bt(!0);try{n(t)}finally{bt(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=J_.bind(null,je,e),[i.memoizedState,e]}function mo(e){var t=lt();return pm(t,dt,e)}function pm(e,t,n){var i=e.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=n;var l=e.baseQueue,c=i.pending;if(c!==null){if(l!==null){var f=l.next;l.next=c.next,c.next=f}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=c,i.pending=null}if(c=e.baseState,l===null)e.memoizedState=c;else{t=l.next;var h=f=null,y=null,v=t,z=!1;do{var B=v.lane&-536870913;if(B!==v.lane?(qe&B)===B:(Xa&B)===B){var O=v.revertLane;if(O===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),B===Vi&&(z=!0);else if((Xa&O)===O){v=v.next,O===Vi&&(z=!0);continue}else B={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},y===null?(h=y=B,f=c):y=y.next=B,je.lanes|=O,Hr|=O;B=v.action,Li&&n(c,B),c=v.hasEagerState?v.eagerState:n(c,B)}else O={lane:B,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},y===null?(h=y=O,f=c):y=y.next=O,je.lanes|=B,Hr|=B;v=v.next}while(v!==null&&v!==t);if(y===null?f=c:y.next=h,!xn(c,e.memoizedState)&&(Pt=!0,z&&(n=Fo,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=y,i.lastRenderedState=c}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Yl(e){var t=lt(),n=t.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,c=t.memoizedState;if(l!==null){n.pending=null;var f=l=l.next;do c=e(c,f.action),f=f.next;while(f!==l);xn(c,t.memoizedState)||(Pt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function bm(e,t,n){var i=je,l=bn();if(Ye){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var c=n();Xo||c===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Xo=!0)}else{if(c=t(),Xo||(n=t(),xn(c,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xo=!0)),ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(qe&127)!==0||Dg(i,t,c)}return l.memoizedState=c,n={value:c,getSnapshot:t},l.queue=n,cf(Cg.bind(null,i,n,e),[e]),i.flags|=2048,bo(ms|wn,{destroy:void 0},Tg.bind(null,i,n,c,t),null),c}function rf(e,t,n){var i=je,l=lt(),c=Ye;if(c){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!Xo){var f=t();xn(n,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xo=!0)}(f=!xn((dt||l).memoizedState,n))&&(l.memoizedState=n,Pt=!0),l=l.queue;var h=Cg.bind(null,i,l,e);if(On(2048,wn,h,[e]),l.getSnapshot!==t||f||Lt!==null&&Lt.memoizedState.tag&ms){if(i.flags|=2048,bo(ms|wn,{destroy:void 0},Tg.bind(null,i,l,n,t),null),ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c||(Xa&127)!==0||Dg(i,t,n)}return n}function Dg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t=af(),je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Tg(e,t,n,i){t.value=n,t.getSnapshot=i,Og(t)&&jg(e)}function Cg(e,t,n){return n(function(){Og(t)&&(Zs(2,"updateSyncExternalStore()",e),jg(e))})}function Og(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xn(e,n)}catch{return!0}}function jg(e){var t=dn(e,2);t!==null&&At(t,e,2)}function ym(e){var t=bn();if(typeof e=="function"){var n=e;if(e=n(),Li){bt(!0);try{n()}finally{bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:e},t}function gm(e){e=ym(e);var t=e.queue,n=Xg.bind(null,je,t);return t.dispatch=n,[e.memoizedState,n]}function vm(e){var t=bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Mm.bind(null,je,!0,n),n.dispatch=t,[e,t]}function Rg(e,t){var n=lt();return Mg(n,dt,e,t)}function Mg(e,t,n,i){return e.baseState=n,pm(e,dt,typeof i=="function"?i:As)}function kg(e,t){var n=lt();return dt!==null?Mg(n,dt,e,t):(n.baseState=e,[e,n.queue.dispatch])}function I_(e,t,n,i,l){if(pf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var c={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};G.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,Vg(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Vg(e,t){var n=t.action,i=t.payload,l=e.state;if(t.isTransition){var c=G.T,f={};f._updatedFibers=new Set,G.T=f;try{var h=n(l,i),y=G.S;y!==null&&y(f,h),Ug(e,t,h)}catch(v){xm(e,t,v)}finally{c!==null&&f.types!==null&&(c.types!==null&&c.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),c.types=f.types),G.T=c,c===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{f=n(l,i),Ug(e,t,f)}catch(v){xm(e,t,v)}}function Ug(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?(G.asyncTransitions++,n.then(mf,mf),n.then(function(i){zg(e,t,i)},function(i){return xm(e,t,i)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):zg(e,t,n)}function zg(e,t,n){t.status="fulfilled",t.value=n,Bg(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Vg(e,n)))}function xm(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Bg(t),t=t.next;while(t!==i)}e.action=null}function Bg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qg(e,t){return t}function po(e,t){if(Ye){var n=ht.formState;if(n!==null){e:{var i=je;if(Ye){if(gt){t:{for(var l=gt,c=fs;l.nodeType!==8;){if(!c){l=null;break t}if(l=Hn(l.nextSibling),l===null){l=null;break t}}c=l.data,l=c===Kb||c===wE?l:null}if(l){gt=Hn(l.nextSibling),i=l.data===Kb;break e}}pr(i)}i=!1}i&&(t=n[0])}}return n=bn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qg,lastRenderedState:t},n.queue=i,n=Xg.bind(null,je,i),i.dispatch=n,i=ym(!1),c=Mm.bind(null,je,!1,i.queue),i=bn(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,n=I_.bind(null,je,l,c,n),l.dispatch=n,i.memoizedState=e,[t,n,!1]}function of(e){var t=lt();return Lg(t,dt,e)}function Lg(e,t,n){if(t=pm(e,t,qg)[0],e=mo(As)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Fl(t)}catch(f){throw f===Yo?ud:f}else i=t;t=lt();var l=t.queue,c=l.dispatch;return n!==t.memoizedState&&(je.flags|=2048,bo(ms|wn,{destroy:void 0},F_.bind(null,l,n),null)),[i,c,e]}function F_(e,t){e.action=t}function lf(e){var t=lt(),n=dt;if(n!==null)return Lg(t,n,e);lt(),t=t.memoizedState,n=lt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function bo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=je.updateQueue,t===null&&(t=af(),je.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Nm(e){var t=bn();return e={current:e},t.memoizedState=e}function wi(e,t,n,i){var l=bn();je.flags|=e,l.memoizedState=bo(ms|t,{destroy:void 0},n,i===void 0?null:i)}function On(e,t,n,i){var l=lt();i=i===void 0?null:i;var c=l.memoizedState.inst;dt!==null&&i!==null&&lm(i,dt.memoizedState.deps)?l.memoizedState=bo(t,c,n,i):(je.flags|=e,l.memoizedState=bo(ms|t,c,n,i))}function cf(e,t){(je.mode&Cs)!==Te?wi(276826112,wn,e,t):wi(8390656,wn,e,t)}function Y_(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=af(),je.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Em(e){var t=bn(),n={impl:e};return t.memoizedState=n,function(){if((We&Qt)!==tn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function uf(e){var t=lt().memoizedState;return Y_({ref:t,nextImpl:e}),function(){if((We&Qt)!==tn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function wm(e,t){var n=4194308;return(je.mode&Cs)!==Te&&(n|=134217728),wi(n,Gn,e,t)}function Pg(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Sm(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null;var i=4194308;(je.mode&Cs)!==Te&&(i|=134217728),wi(i,Gn,Pg.bind(null,t,e),n)}function ff(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null,On(4,Gn,Pg.bind(null,t,e),n)}function _m(e,t){return bn().memoizedState=[e,t===void 0?null:t],e}function df(e,t){var n=lt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&lm(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Am(e,t){var n=bn();t=t===void 0?null:t;var i=e();if(Li){bt(!0);try{e()}finally{bt(!1)}}return n.memoizedState=[i,t],i}function hf(e,t){var n=lt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&lm(t,i[1]))return i[0];if(i=e(),Li){bt(!0);try{e()}finally{bt(!1)}}return n.memoizedState=[i,t],i}function Dm(e,t){var n=bn();return Tm(n,e,t)}function Hg(e,t){var n=lt();return Ig(n,dt.memoizedState,e,t)}function $g(e,t){var n=lt();return dt===null?Tm(n,e,t):Ig(n,dt.memoizedState,e,t)}function Tm(e,t,n){return n===void 0||(Xa&1073741824)!==0&&(qe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Fv(),je.lanes|=e,Hr|=e,n)}function Ig(e,t,n,i){return xn(n,t)?n:Jo.current!==null?(e=Tm(e,n,i),xn(e,t)||(Pt=!0),e):(Xa&42)===0||(Xa&1073741824)!==0&&(qe&261930)===0?(Pt=!0,e.memoizedState=n):(e=Fv(),je.lanes|=e,Hr|=e,t)}function mf(){G.asyncTransitions--}function Fg(e,t,n,i,l){var c=rt.p;rt.p=c!==0&&c<pa?c:pa;var f=G.T,h={};h._updatedFibers=new Set,G.T=h,Mm(e,!1,t,n);try{var y=l(),v=G.S;if(v!==null&&v(h,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){G.asyncTransitions++,y.then(mf,mf);var z=P_(y,i);Gl(e,t,z,Pn(e))}else Gl(e,t,i,Pn(e))}catch(B){Gl(e,t,{then:function(){},status:"rejected",reason:B},Pn(e))}finally{rt.p=c,f!==null&&h.types!==null&&(f.types!==null&&f.types!==h.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=h.types),G.T=f,f===null&&h._updatedFibers&&(e=h._updatedFibers.size,h._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Cm(e,t,n,i){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=Yg(e).queue;q_(e),Fg(e,l,t,Zi,n===null?x:function(){return Gg(e),n(i)})}function Yg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Zi,baseState:Zi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:Zi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gg(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Yg(e);t.next===null&&(t=e.alternate.memoizedState),Gl(e,t.next.queue,{},Pn(e))}function Om(){var e=ym(!1);return e=Fg.bind(null,je,e.queue,!0,!1),bn().memoizedState=e,[!1,e]}function Jg(){var e=mo(As)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Fl(e),t]}function Qg(){var e=Yl(As)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Fl(e),t]}function Si(){return xt(nu)}function jm(){var e=bn(),t=ht.identifierPrefix;if(Ye){var n=Fa,i=Ia;n=(i&~(1<<32-yn(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=D3++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t}function Rm(){return bn().memoizedState=G_.bind(null,je)}function G_(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Pn(n),l=gr(i),c=vr(n,l,i);c!==null&&(Zs(i,"refresh()",e),At(c,n,i),Hl(c,n,i)),e=Kh(),t!=null&&c!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}n=n.return}}function J_(e,t,n){var i=arguments;typeof i[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),i=Pn(e);var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};pf(e)?Zg(t,l):(l=Lh(e,t,l,i),l!==null&&(Zs(i,"dispatch()",e),At(l,e,i),Kg(l,t,i)))}function Xg(e,t,n){var i=arguments;typeof i[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),i=Pn(e),Gl(e,t,n,i)&&Zs(i,"setState()",e)}function Gl(e,t,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pf(e))Zg(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null)){var f=G.H;G.H=js;try{var h=t.lastRenderedState,y=c(h,n);if(l.hasEagerState=!0,l.eagerState=y,xn(y,h))return Lu(e,t,l,0),ht===null&&qu(),!1}catch{}finally{G.H=f}}if(n=Lh(e,t,l,i),n!==null)return At(n,e,i),Kg(n,t,i),!0}return!1}function Mm(e,t,n,i){if(G.T===null&&Vi===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),i={lane:2,revertLane:cp(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},pf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Lh(e,n,i,2),t!==null&&(Zs(2,"setOptimistic()",e),At(t,e,2))}function pf(e){var t=e.alternate;return e===je||t!==null&&t===je}function Zg(e,t){Zo=md=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kg(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ou(e,n)}}function km(e){if(e!==null&&typeof e!="function"){var t=String(e);QN.has(t)||(QN.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Vm(e,t,n,i){var l=e.memoizedState,c=n(i,l);if(e.mode&mn){bt(!0);try{c=n(i,l)}finally{bt(!1)}}c===void 0&&(t=J(t)||"Component",FN.has(t)||(FN.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=c==null?l:Ie({},l,c),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function Wg(e,t,n,i,l,c,f){var h=e.stateNode;if(typeof h.shouldComponentUpdate=="function"){if(n=h.shouldComponentUpdate(i,c,f),e.mode&mn){bt(!0);try{n=h.shouldComponentUpdate(i,c,f)}finally{bt(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",J(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!Ul(n,i)||!Ul(l,c):!0}function ev(e,t,n,i){var l=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==l&&(e=H(e)||"Component",LN.has(e)||(LN.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Ob.enqueueReplaceState(t,t.state,null))}function _i(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ie({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function tv(e){ob(e),console.warn(`%s
130
-
131
- %s
132
- `,Ko?"An error occurred in the <"+Ko+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
133
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function nv(e){var t=Ko?"The above error occurred in the <"+Ko+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+((jb||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var i=e.environmentName;e=[`%o
134
-
135
- %s
136
-
137
- %s
138
- `,e,t,n].slice(0),typeof e[0]=="string"?e.splice(0,1,jE+" "+e[0],RE,Ld+i+Ld,ME):e.splice(0,0,jE,RE,Ld+i+Ld,ME),e.unshift(console),i=J3.apply(console.error,e),i()}else console.error(`%o
139
-
140
- %s
141
-
142
- %s
143
- `,e,t,n)}function sv(e){ob(e)}function bf(e,t){try{Ko=t.source?H(t.source):null,jb=null;var n=t.value;if(G.actQueue!==null)G.thrownErrors.push(n);else{var i=e.onUncaughtError;i(n,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function av(e,t,n){try{Ko=n.source?H(n.source):null,jb=H(t);var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Um(e,t,n){return n=gr(n),n.tag=Sb,n.payload={element:null},n.callback=function(){ye(t.source,bf,e,t)},n}function zm(e){return e=gr(e),e.tag=Sb,e}function Bm(e,t,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var c=i.value;e.payload=function(){return l(c)},e.callback=function(){Zy(n),ye(i.source,av,t,n,i)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Zy(n),ye(i.source,av,t,n,i),typeof l!="function"&&(Ir===null?Ir=new Set([this]):Ir.add(this)),w3(this,i),typeof l=="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",H(n)||"Unknown")})}function Q_(e,t,n,i,l){if(n.flags|=32768,ma&&tc(e,l),i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&fo(t,n,l,!0),Ye&&(ya=!0),n=Yn.current,n!==null){switch(n.tag){case 31:case 13:return hs===null?_f():n.alternate===null&&wt===er&&(wt=gd),n.flags&=-257,n.flags|=65536,n.lanes=l,i===fd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),rp(e,i,l)),!1;case 22:return n.flags|=65536,i===fd?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),rp(e,i,l)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return rp(e,i,l),_f(),!1}if(Ye)return ya=!0,t=Yn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==hb&&zl(zn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:i}),n))):(i!==hb&&zl(zn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:i}),n)),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=zn(i,n),l=Um(e.stateNode,i,l),tf(e,l),wt!==Lr&&(wt=Pi)),!1;var c=zn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:i}),n);if(Gc===null?Gc=[c]:Gc.push(c),wt!==Lr&&(wt=Pi),t===null)return!0;i=zn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=Um(n.stateNode,i,e),tf(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ir===null||!Ir.has(c))))return n.flags|=65536,l&=-l,n.lanes|=l,l=zm(l),Bm(l,e,n,i),tf(n,l),!1}n=n.return}while(n!==null);return!1}function rn(e,t,n,i){t.child=e===null?CN(t,null,n,i):qi(t,e.child,n,i)}function rv(e,t,n,i,l){n=n.render;var c=t.ref;if("ref"in i){var f={};for(var h in i)h!=="ref"&&(f[h]=i[h])}else f=i;return xi(t),i=cm(e,t,n,f,c,l),h=fm(),e!==null&&!Pt?(dm(e,t,l),za(e,t,l)):(Ye&&h&&Yh(t),t.flags|=1,rn(e,t,i,l),t.child)}function iv(e,t,n,i,l){if(e===null){var c=n.type;return typeof c=="function"&&!Hh(c)&&c.defaultProps===void 0&&n.compare===null?(n=bi(c),t.tag=15,t.type=n,Lm(t,c),ov(e,t,n,i,l)):(e=$h(n.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ym(e,l)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(f,i)&&e.ref===t.ref)return za(e,t,l)}return t.flags|=1,e=Ma(c,i),e.ref=t.ref,e.return=t,t.child=e}function ov(e,t,n,i,l){if(e!==null){var c=e.memoizedProps;if(Ul(c,i)&&e.ref===t.ref&&t.type===e.type)if(Pt=!1,t.pendingProps=i=c,Ym(e,l))(e.flags&131072)!==0&&(Pt=!0);else return t.lanes=e.lanes,za(e,t,l)}return qm(e,t,n,i,l)}function lv(e,t,n,i){var l=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Ec,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~c}else i=0,t.child=null;return cv(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qu(t,c!==null?c.cachePool:null),c!==null?Sg(t,c):rm(t),_g(t);else return i=t.lanes=536870912,cv(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(Qu(t,c.cachePool),Sg(t,c),Nr(t),t.memoizedState=null):(e!==null&&Qu(t,null),rm(t),Nr(t));return rn(e,t,l,n),t.child}function Jl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Ec,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cv(e,t,n,i,l){var c=tm();return c=c===null?null:{parent:Bt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Qu(t,null),rm(t),_g(t),e!==null&&fo(e,t,i,!0),t.childLanes=l,null}function yf(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
144
- - <Activity %s>
145
- + <Activity %s>`,n===!0?"hidden":n===!1?"hidden={false}":"hidden={...}",n?'mode="hidden"':'mode="visible"'),t=vf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uv(e,t,n){return qi(t,e.child,null,n),e=yf(t,t.pendingProps),e.flags|=2,Ln(t),t.memoizedState=null,e}function X_(e,t,n){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ye){if(i.mode==="hidden")return e=yf(t,i),t.lanes=536870912,Jl(null,e);if(om(t),(e=gt)?(n=Vx(e,fs),n=n!==null&&n.data===Gi?n:null,n!==null&&(i={dehydrated:n,treeContext:ng(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=eg(n),i.return=t,t.child=i,cn=t,gt=null)):n=null,n===null)throw $u(t,e),pr(t);return t.lanes=536870912,null}return yf(t,i)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(om(t),l)if(t.flags&256)t.flags&=-257,t=uv(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(ag(),(n&536870912)!==0&&Sf(t),Pt||fo(e,t,n,!1),l=(n&e.childLanes)!==0,Pt||l){if(i=ht,i!==null&&(f=Dl(i,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,dn(e,f),At(i,e,f),Rb;_f(),t=uv(e,t,n)}else e=c.treeContext,gt=Hn(f.nextSibling),cn=t,Ye=!0,kr=null,ya=!1,Fn=null,fs=!1,e!==null&&sg(t,e),t=yf(t,i),t.flags|=4096;return t}return c=e.child,i={mode:i.mode,children:i.children},(n&536870912)!==0&&(n&e.lanes)!==0&&Sf(t),e=Ma(c,i),e.ref=t.ref,t.child=e,e.return=t,e}function gf(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==n)&&(t.flags|=4194816)}}function qm(e,t,n,i,l){if(n.prototype&&typeof n.prototype.render=="function"){var c=J(n)||"Unknown";XN[c]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",c,c),XN[c]=!0)}return t.mode&mn&&Os.recordLegacyContextWarning(t,null),e===null&&(Lm(t,t.type),n.contextTypes&&(c=J(n)||"Unknown",KN[c]||(KN[c]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",c)))),xi(t),n=cm(e,t,n,i,void 0,l),i=fm(),e!==null&&!Pt?(dm(e,t,l),za(e,t,l)):(Ye&&i&&Yh(t),t.flags|=1,rn(e,t,n,l),t.child)}function fv(e,t,n,i,l,c){return xi(t),Ka=-1,Lc=e!==null&&e.type!==t.type,t.updateQueue=null,n=um(t,i,n,l),Ag(e,t),i=fm(),e!==null&&!Pt?(dm(e,t,c),za(e,t,c)):(Ye&&i&&Yh(t),t.flags|=1,rn(e,t,n,c),t.child)}function dv(e,t,n,i,l){switch(p(t)){case!1:var c=t.stateNode,f=new t.type(t.memoizedProps,c.context).state;c.updater.enqueueSetState(c,f,null);break;case!0:t.flags|=128,t.flags|=65536,c=Error("Simulated error coming from DevTools");var h=l&-l;if(t.lanes|=h,f=ht,f===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");h=zm(h),Bm(h,f,t,zn(c,t)),tf(t,h)}if(xi(t),t.stateNode===null){if(f=Mr,c=n.contextType,"contextType"in n&&c!==null&&(c===void 0||c.$$typeof!==fa)&&!JN.has(n)&&(JN.add(n),h=c===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof c!="object"?" However, it is set to a "+typeof c+".":c.$$typeof===Mp?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(c).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",J(n)||"Component",h)),typeof c=="object"&&c!==null&&(f=xt(c)),c=new n(i,f),t.mode&mn){bt(!0);try{c=new n(i,f)}finally{bt(!1)}}if(f=t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ob,t.stateNode=c,c._reactInternals=t,c._reactInternalInstance=qN,typeof n.getDerivedStateFromProps=="function"&&f===null&&(f=J(n)||"Component",PN.has(f)||(PN.add(f),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,c.state===null?"null":"undefined",f))),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"){var y=h=f=null;if(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0?f="componentWillMount":typeof c.UNSAFE_componentWillMount=="function"&&(f="UNSAFE_componentWillMount"),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0?h="componentWillReceiveProps":typeof c.UNSAFE_componentWillReceiveProps=="function"&&(h="UNSAFE_componentWillReceiveProps"),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0?y="componentWillUpdate":typeof c.UNSAFE_componentWillUpdate=="function"&&(y="UNSAFE_componentWillUpdate"),f!==null||h!==null||y!==null){c=J(n)||"Component";var v=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";$N.has(c)||($N.add(c),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
146
-
147
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
148
-
149
- The above lifecycles should be removed. Learn more about this warning here:
150
- https://react.dev/link/unsafe-component-lifecycles`,c,v,f!==null?`
151
- `+f:"",h!==null?`
152
- `+h:"",y!==null?`
153
- `+y:""))}}c=t.stateNode,f=J(n)||"Component",c.render||(n.prototype&&typeof n.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",f):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",f)),!c.getInitialState||c.getInitialState.isReactClassApproved||c.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",f),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",f),c.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",f),n.childContextTypes&&!GN.has(n)&&(GN.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",f)),n.contextTypes&&!YN.has(n)&&(YN.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",f)),typeof c.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",f),n.prototype&&n.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",J(n)||"A pure component"),typeof c.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",f),typeof c.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",f),typeof c.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",f),typeof c.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",f),h=c.props!==i,c.props!==void 0&&h&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",f),c.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",f,f),typeof c.getSnapshotBeforeUpdate!="function"||typeof c.componentDidUpdate=="function"||HN.has(n)||(HN.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",J(n))),typeof c.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof c.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof n.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",f),(h=c.state)&&(typeof h!="object"||Gt(h))&&console.error("%s.state: must be set to an object or null",f),typeof c.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",f),c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},sm(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?xt(f):Mr,c.state===i&&(f=J(n)||"Component",IN.has(f)||(IN.add(f),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",f))),t.mode&mn&&Os.recordLegacyContextWarning(t,c),Os.recordUnsafeLifecycleWarnings(t,c),c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Vm(t,n,f,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",H(t)||"Component"),Ob.enqueueReplaceState(c,c.state,null)),Il(t,i,c,l),$l(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Cs)!==Te&&(t.flags|=134217728),c=!0}else if(e===null){c=t.stateNode;var z=t.memoizedProps;h=_i(n,z),c.props=h;var B=c.context;y=n.contextType,f=Mr,typeof y=="object"&&y!==null&&(f=xt(y)),v=n.getDerivedStateFromProps,y=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,y||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(z||B!==f)&&ev(t,c,i,f),qr=!1;var O=t.memoizedState;c.state=O,Il(t,i,c,l),$l(),B=t.memoizedState,z||O!==B||qr?(typeof v=="function"&&(Vm(t,n,v,i),B=t.memoizedState),(h=qr||Wg(t,n,h,i,O,B,f))?(y||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Cs)!==Te&&(t.flags|=134217728)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Cs)!==Te&&(t.flags|=134217728),t.memoizedProps=i,t.memoizedState=B),c.props=i,c.state=B,c.context=f,c=h):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Cs)!==Te&&(t.flags|=134217728),c=!1)}else{c=t.stateNode,am(e,t),f=t.memoizedProps,y=_i(n,f),c.props=y,v=t.pendingProps,O=c.context,B=n.contextType,h=Mr,typeof B=="object"&&B!==null&&(h=xt(B)),z=n.getDerivedStateFromProps,(B=typeof z=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==v||O!==h)&&ev(t,c,i,h),qr=!1,O=t.memoizedState,c.state=O,Il(t,i,c,l),$l();var $=t.memoizedState;f!==v||O!==$||qr||e!==null&&e.dependencies!==null&&Fu(e.dependencies)?(typeof z=="function"&&(Vm(t,n,z,i),$=t.memoizedState),(y=qr||Wg(t,n,y,i,O,$,h)||e!==null&&e.dependencies!==null&&Fu(e.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,$,h),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,$,h)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=$),c.props=i,c.state=$,c.context=h,c=y):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),c=!1)}if(h=c,gf(e,t),f=(t.flags&128)!==0,h||f){if(h=t.stateNode,no(t),f&&typeof n.getDerivedStateFromError!="function")n=null,Nn=-1;else if(n=pN(h),t.mode&mn){bt(!0);try{pN(h)}finally{bt(!1)}}t.flags|=1,e!==null&&f?(t.child=qi(t,e.child,null,l),t.child=qi(t,null,n,l)):rn(e,t,n,l),t.memoizedState=h.state,e=t.child}else e=za(e,t,l);return l=t.stateNode,c&&l.props!==i&&(Wo||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",H(t)||"a component"),Wo=!0),e}function hv(e,t,n,i){return vi(),t.flags|=256,rn(e,t,n,i),t.child}function Lm(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
154
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=J(t)||"Unknown",WN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),WN[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=J(t)||"Unknown",ZN[t]||(console.error("%s: Function components do not support contextType.",t),ZN[t]=!0))}function Pm(e){return{baseLanes:e,cachePool:fg()}}function Hm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vn),e}function mv(e,t,n){var i,l=t.pendingProps;d(t)&&(t.flags|=128);var c=!1,f=(t.flags&128)!==0;if((i=f)||(i=e!==null&&e.memoizedState===null?!1:(Mt.current&Bc)!==0),i&&(c=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ye){if(c?xr(t):Nr(t),(e=gt)?(n=Vx(e,fs),n=n!==null&&n.data!==Gi?n:null,n!==null&&(i={dehydrated:n,treeContext:ng(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=eg(n),i.return=t,t.child=i,cn=t,gt=null)):n=null,n===null)throw $u(t,e),pr(t);return Np(n)?t.lanes=32:t.lanes=536870912,null}var h=l.children;if(l=l.fallback,c){Nr(t);var y=t.mode;return h=vf({mode:"hidden",children:h},y),l=yi(l,y,n,null),h.return=t,l.return=t,h.sibling=l,t.child=h,l=t.child,l.memoizedState=Pm(n),l.childLanes=Hm(e,i,n),t.memoizedState=Mb,Jl(null,l)}return xr(t),$m(t,h)}var v=e.memoizedState;if(v!==null){var z=v.dehydrated;if(z!==null){if(f)t.flags&256?(xr(t),t.flags&=-257,t=Im(e,t,n)):t.memoizedState!==null?(Nr(t),t.child=e.child,t.flags|=128,t=null):(Nr(t),h=l.fallback,y=t.mode,l=vf({mode:"visible",children:l.children},y),h=yi(h,y,n,null),h.flags|=2,l.return=t,h.return=t,l.sibling=h,t.child=l,qi(t,e.child,null,n),l=t.child,l.memoizedState=Pm(n),l.childLanes=Hm(e,i,n),t.memoizedState=Mb,t=Jl(null,l));else if(xr(t),ag(),(n&536870912)!==0&&Sf(t),Np(z)){if(i=z.nextSibling&&z.nextSibling.dataset,i){h=i.dgst;var B=i.msg;y=i.stck;var O=i.cstck}c=B,i=h,l=y,z=O,h=c,y=z,h=Error(h||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),h.stack=l||"",h.digest=i,i=y===void 0?null:y,l={value:h,source:null,stack:i},typeof i=="string"&&db.set(h,l),zl(l),t=Im(e,t,n)}else if(Pt||fo(e,t,n,!1),i=(n&e.childLanes)!==0,Pt||i){if(i=ht,i!==null&&(l=Dl(i,n),l!==0&&l!==v.retryLane))throw v.retryLane=l,dn(e,l),At(i,e,l),Rb;xp(z)||_f(),t=Im(e,t,n)}else xp(z)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,gt=Hn(z.nextSibling),cn=t,Ye=!0,kr=null,ya=!1,Fn=null,fs=!1,e!==null&&sg(t,e),t=$m(t,l.children),t.flags|=4096);return t}}return c?(Nr(t),h=l.fallback,y=t.mode,O=e.child,z=O.sibling,l=Ma(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,z!==null?h=Ma(z,h):(h=yi(h,y,n,null),h.flags|=2),h.return=t,l.return=t,l.sibling=h,t.child=l,Jl(null,l),l=t.child,h=e.child.memoizedState,h===null?h=Pm(n):(y=h.cachePool,y!==null?(O=Bt._currentValue,y=y.parent!==O?{parent:O,pool:O}:y):y=fg(),h={baseLanes:h.baseLanes|n,cachePool:y}),l.memoizedState=h,l.childLanes=Hm(e,i,n),t.memoizedState=Mb,Jl(e.child,l)):(v!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&Sf(t),xr(t),n=e.child,e=n.sibling,n=Ma(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function $m(e,t){return t=vf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vf(e,t){return e=D(22,e,null,t),e.lanes=0,e}function Im(e,t,n){return qi(t,e.child,null,n),e=$m(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pv(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Xh(e.return,t,n)}function Fm(e,t,n,i,l,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=l,f.treeForkCount=c)}function bv(e,t,n){var i=t.pendingProps,l=i.revealOrder,c=i.tail,f=i.children,h=Mt.current;if((i=(h&Bc)!==0)?(h=h&Qo|Bc,t.flags|=128):h&=Qo,ge(Mt,h,t),h=l??"null",l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!eE[h])if(eE[h]=!0,l==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(l==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof l=="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);h=c??"null",yd[h]||(c==null?(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&(yd[h]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):c!=="visible"&&c!=="collapsed"&&c!=="hidden"?(yd[h]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',c)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(yd[h]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',c)));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&f!==void 0&&f!==null&&f!==!1)if(Gt(f)){for(h=0;h<f.length;h++)if(!Ng(f[h],h))break e}else if(h=fe(f),typeof h=="function"){if(h=h.call(f))for(var y=h.next(),v=0;!y.done;y=h.next()){if(!Ng(y.value,v))break e;v++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',l);if(rn(e,t,f,n),Ye?(mr(),f=wc):f=0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pv(e,n,t);else if(e.tag===19)pv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&nf(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Fm(t,!1,l,n,c,f);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&nf(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Fm(t,!0,n,null,c,f);break;case"together":Fm(t,!1,null,null,void 0,f);break;default:t.memoizedState=null}return t.child}function za(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nn=-1,Hr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(fo(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,n=Ma(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ma(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ym(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fu(e)))}function Z_(e,t,n){switch(t.tag){case 3:Xe(t,t.stateNode.containerInfo),br(t,Bt,e.memoizedState.cache),vi();break;case 27:case 5:Ee(t);break;case 4:Xe(t,t.stateNode.containerInfo);break;case 10:br(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var i=t.stateNode;i.effectDuration=-0,i.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,om(t),null;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(xr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?mv(e,t,n):(xr(t),e=za(e,t,n),e!==null?e.sibling:null);xr(t);break;case 19:var l=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(fo(e,t,n,!1),i=(n&t.childLanes)!==0),l){if(i)return bv(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ge(Mt,Mt.current,t),i)break;return null;case 22:return t.lanes=0,lv(e,t,n,t.pendingProps);case 24:br(t,Bt,e.memoizedState.cache)}return za(e,t,n)}function Gm(e,t,n){if(t._debugNeedsRemount&&e!==null){n=$h(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var i=t.return;if(i===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===i.child)i.child=n;else{var l=i.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=n}return t=i.deletions,t===null?(i.deletions=[e],i.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Pt=!0;else{if(!Ym(e,n)&&(t.flags&128)===0)return Pt=!1,Z_(e,t,n);Pt=(e.flags&131072)!==0}else Pt=!1,(i=Ye)&&(mr(),i=(t.flags&1048576)!==0),i&&(i=t.index,mr(),tg(t,wc,i));switch(t.lanes=0,t.tag){case 16:e:if(i=t.pendingProps,e=yr(t.elementType),t.type=e,typeof e=="function")Hh(e)?(i=_i(e,i),t.tag=1,t.type=e=bi(e),t=dv(null,t,e,i,n)):(t.tag=0,Lm(t,e),t.type=e=bi(e),t=qm(null,t,e,i,n));else{if(e!=null){if(l=e.$$typeof,l===uc){t.tag=11,t.type=e=Ph(e),t=rv(null,t,e,i,n);break e}else if(l===qf){t.tag=14,t=iv(null,t,e,i,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===$n&&(t=" Did you wrap a component in React.lazy() more than once?"),n=J(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+n+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return qm(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,l=_i(i,t.pendingProps),dv(e,t,i,l,n);case 3:e:{if(Xe(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");i=t.pendingProps;var c=t.memoizedState;l=c.element,am(e,t),Il(t,i,null,n);var f=t.memoizedState;if(i=f.cache,br(t,Bt,i),i!==c.cache&&Zh(t,[Bt],n,!0),$l(),i=f.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=hv(e,t,i,n);break e}else if(i!==l){l=zn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),zl(l),t=hv(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(gt=Hn(e.firstChild),cn=t,Ye=!0,kr=null,ya=!1,Fn=null,fs=!0,n=CN(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(vi(),i===l){t=za(e,t,n);break e}rn(e,t,i,n)}t=t.child}return t;case 26:return gf(e,t),e===null?(n=Px(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ye||(n=t.type,e=t.pendingProps,i=Fe(Dr.current),i=Cf(i).createElement(n),i[ln]=t,i[gn]=e,on(i,n,e),Rt(i),t.stateNode=i):t.memoizedState=Px(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&Ye&&(i=Fe(Dr.current),l=be(),i=t.stateNode=qx(t.type,t.pendingProps,i,l,!1),ya||(l=Dx(i,t.type,t.pendingProps,l),l!==null&&(gi(t,0).serverProps=l)),cn=t,fs=!0,l=gt,_r(t.type)?(n0=l,gt=Hn(i.firstChild)):gt=l),rn(e,t,t.pendingProps.children,n),gf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&(c=be(),i=Rh(t.type,c.ancestorInfo),l=gt,(f=!l)||(f=qA(l,t.type,t.pendingProps,fs),f!==null?(t.stateNode=f,ya||(c=Dx(f,t.type,t.pendingProps,c),c!==null&&(gi(t,0).serverProps=c)),cn=t,gt=Hn(f.firstChild),fs=!1,c=!0):c=!1,f=!c),f&&(i&&$u(t,l),pr(t))),Ee(t),l=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,i=c.children,gp(l,c)?i=null:f!==null&&gp(l,f)&&(t.flags|=32),t.memoizedState!==null&&(l=cm(e,t,$_,null,null,n),nu._currentValue=l),gf(e,t),rn(e,t,i,n),t.child;case 6:return e===null&&Ye&&(n=t.pendingProps,e=be(),i=e.ancestorInfo.current,n=i!=null?Mu(n,i.tag,e.ancestorInfo.implicitRootScope):!0,e=gt,(i=!e)||(i=LA(e,t.pendingProps,fs),i!==null?(t.stateNode=i,cn=t,gt=null,i=!0):i=!1,i=!i),i&&(n&&$u(t,e),pr(t))),null;case 13:return mv(e,t,n);case 4:return Xe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=qi(t,null,i,n):rn(e,t,i,n),t.child;case 11:return rv(e,t,t.type,t.pendingProps,n);case 7:return rn(e,t,t.pendingProps,n),t.child;case 8:return rn(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,i=t.stateNode,i.effectDuration=-0,i.passiveEffectDuration=-0,rn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.type,l=t.pendingProps,c=l.value,"value"in l||tE||(tE=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),br(t,i,c),rn(e,t,l.children,n),t.child;case 9:return l=t.type._context,i=t.pendingProps.children,typeof i!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),xi(t),l=xt(l),i=xb(i,l,void 0),t.flags|=1,rn(e,t,i,n),t.child;case 14:return iv(e,t,t.type,t.pendingProps,n);case 15:return ov(e,t,t.type,t.pendingProps,n);case 19:return bv(e,t,n);case 31:return X_(e,t,n);case 22:return lv(e,t,n,t.pendingProps);case 24:return xi(t),i=xt(Bt),e===null?(l=tm(),l===null&&(l=ht,c=Kh(),l.pooledCache=c,Ni(c),c!==null&&(l.pooledCacheLanes|=n),l=c),t.memoizedState={parent:i,cache:l},sm(t),br(t,Bt,l)):((e.lanes&n)!==0&&(am(e,t),Il(t,null,null,n),$l()),l=e.memoizedState,c=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),br(t,Bt,i)):(i=c.cache,br(t,Bt,i),i!==l.cache&&Zh(t,[Bt],n,!0))),rn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ba(e){e.flags|=4}function Jm(e,t,n,i,l){if((t=(e.mode&g3)!==Te)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Qv())e.flags|=8192;else throw Bi=fd,Eb}else e.flags&=-16777217}function yv(e,t){if(t.type!=="stylesheet"||(t.state.loading&bs)!==Xi)e.flags&=-16777217;else if(e.flags|=16777216,!Yx(t))if(Qv())e.flags|=8192;else throw Bi=fd,Eb}function xf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_l():536870912,e.lanes|=t,Ii|=t)}function Ql(e,t){if(!Ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)if((e.mode&ze)!==Te){for(var l=e.selfBaseDuration,c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,l+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&65011712,i|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&ze)!==Te){l=e.actualDuration,c=e.selfBaseDuration;for(var f=e.child;f!==null;)n|=f.lanes|f.childLanes,i|=f.subtreeFlags,i|=f.flags,l+=f.actualDuration,c+=f.treeBaseDuration,f=f.sibling;e.actualDuration=l,e.treeBaseDuration=c}else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function K_(e,t,n){var i=t.pendingProps;switch(Gh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Va(Bt,t),re(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(uo(t)?(Qh(),Ba(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jh())),mt(t),null;case 26:var l=t.type,c=t.memoizedState;return e===null?(Ba(t),c!==null?(mt(t),yv(t,c)):(mt(t),Jm(t,l,null,i,n))):c?c!==e.memoizedState?(Ba(t),mt(t),yv(t,c)):(mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Ba(t),mt(t),Jm(t,l,e,i,n)),null;case 27:if(Me(t),n=Fe(Dr.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ba(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mt(t),null}e=be(),uo(t)?rg(t):(e=qx(l,i,n,e,!0),t.stateNode=e,Ba(t))}return mt(t),null;case 5:if(Me(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ba(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mt(t),null}var f=be();if(uo(t))rg(t);else{switch(c=Fe(Dr.current),Rh(l,f.ancestorInfo),f=f.context,c=Cf(c),f){case ol:c=c.createElementNS(jo,l);break;case zd:c=c.createElementNS(Yf,l);break;default:switch(l){case"svg":c=c.createElementNS(jo,l);break;case"math":c=c.createElementNS(Yf,l);break;case"script":c=c.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?c.createElement(l,{is:i.is}):c.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(c)!=="[object HTMLUnknownElement]"||Ts.call(_E,l)||(_E[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}c[ln]=t,c[gn]=i;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(on(c,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ba(t)}}return mt(t),Jm(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ba(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Fe(Dr.current),n=be(),uo(t)){if(e=t.stateNode,n=t.memoizedProps,l=!ya,i=null,c=cn,c!==null)switch(c.tag){case 3:l&&(l=zx(e,n,i),l!==null&&(gi(t,0).serverProps=l));break;case 27:case 5:i=c.memoizedProps,l&&(l=zx(e,n,i),l!==null&&(gi(t,0).serverProps=l))}e[ln]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Ex(e.nodeValue,n)),e||pr(t,!0)}else l=n.ancestorInfo.current,l!=null&&Mu(i,l.tag,n.ancestorInfo.implicitRootScope),e=Cf(e).createTextNode(i),e[ln]=t,t.stateNode=e}return mt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=uo(t),n!==null){if(e===null){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ln]=t,mt(t),(t.mode&ze)!==Te&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Qh(),vi(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,mt(t),(t.mode&ze)!==Te&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Jh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ln(t),t):(Ln(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=i,c=uo(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");c[ln]=t,mt(t),(t.mode&ze)!==Te&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else Qh(),vi(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,mt(t),(t.mode&ze)!==Te&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=Jh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ln(t),t):(Ln(t),null)}return Ln(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&ze)!==Te&&Ll(t),t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==l&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xf(t,t.updateQueue),mt(t),(t.mode&ze)!==Te&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return re(t),e===null&&fp(t.stateNode.containerInfo),mt(t),null;case 10:return Va(t.type,t),mt(t),null;case 19:if(ae(Mt,t),i=t.memoizedState,i===null)return mt(t),null;if(l=(t.flags&128)!==0,c=i.rendering,c===null)if(l)Ql(i,!1);else{if(wt!==er||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=nf(e),c!==null){for(t.flags|=128,Ql(i,!1),e=c.updateQueue,t.updateQueue=e,xf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Wy(n,e),n=n.sibling;return ge(Mt,Mt.current&Qo|Bc,t),Ye&&ka(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Kt()>Sd&&(t.flags|=128,l=!0,Ql(i,!1),t.lanes=4194304)}else{if(!l)if(e=nf(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,xf(t,e),Ql(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ye)return mt(t),null}else 2*Kt()-i.renderingStartTime>Sd&&n!==536870912&&(t.flags|=128,l=!0,Ql(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Kt(),e.sibling=null,n=Mt.current,n=l?n&Qo|Bc:n&Qo,ge(Mt,n,t),Ye&&ka(t,i.treeForkCount),e):(mt(t),null);case 22:case 23:return Ln(t),im(t),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),n=t.updateQueue,n!==null&&xf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&ae(Ui,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Va(Bt,t),mt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function W_(e,t){switch(Gh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Te&&Ll(t),t):null;case 3:return Va(Bt,t),re(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 31:if(t.memoizedState!==null){if(Ln(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Te&&Ll(t),t):null;case 13:if(Ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Te&&Ll(t),t):null;case 19:return ae(Mt,t),null;case 4:return re(t),null;case 10:return Va(t.type,t),null;case 22:case 23:return Ln(t),im(t),e!==null&&ae(Ui,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Te&&Ll(t),t):null;case 24:return Va(Bt,t),null;case 25:return null;default:return null}}function gv(e,t){switch(Gh(t),t.tag){case 3:Va(Bt,t),re(t);break;case 26:case 27:case 5:Me(t);break;case 4:re(t);break;case 31:t.memoizedState!==null&&Ln(t);break;case 13:Ln(t);break;case 19:ae(Mt,t);break;case 10:Va(t.type,t);break;case 22:case 23:Ln(t),im(t),e!==null&&ae(Ui,t);break;case 24:Va(Bt,t)}}function aa(e){return(e.mode&ze)!==Te}function vv(e,t){aa(e)?(sa(),Xl(t,e),na()):Xl(t,e)}function Qm(e,t,n){aa(e)?(sa(),yo(n,e,t),na()):yo(n,e,t)}function Xl(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&e)===e&&(i=void 0,(e&En)!==hd&&(al=!0),i=ye(t,S3,n),(e&En)!==hd&&(al=!1),i!==void 0&&typeof i!="function")){var c=void 0;c=(n.tag&Gn)!==0?"useLayoutEffect":(n.tag&En)!==0?"useInsertionEffect":"useEffect";var f=void 0;f=i===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof i.then=="function"?`
155
-
156
- It looks like you wrote `+c+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
157
-
158
- `+c+`(() => {
159
- async function fetchData() {
160
- // You can await here
161
- const response = await MyAPI.getData(someId);
162
- // ...
163
- }
164
- fetchData();
165
- }, [someId]); // Or [] if effect doesn't need props or state
166
-
167
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+i,ye(t,function(h,y){console.error("%s must not return anything besides a function, which is used for clean-up.%s",h,y)},c,f)}n=n.next}while(n!==l)}}catch(h){at(t,t.return,h)}}function yo(e,t,n){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var c=l.next;i=c;do{if((i.tag&e)===e){var f=i.inst,h=f.destroy;h!==void 0&&(f.destroy=void 0,(e&En)!==hd&&(al=!0),l=t,ye(l,_3,l,n,h),(e&En)!==hd&&(al=!1))}i=i.next}while(i!==c)}}catch(y){at(t,t.return,y)}}function xv(e,t){aa(e)?(sa(),Xl(t,e),na()):Xl(t,e)}function Xm(e,t,n){aa(e)?(sa(),yo(n,e,t),na()):yo(n,e,t)}function Nv(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Wo||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{ye(e,wg,t,n)}catch(i){at(e,e.return,i)}}}function eA(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function tA(e,t){var n=t.memoizedProps,i=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Wo||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{var l=_i(e.type,n),c=ye(e,eA,t,l,i);n=nE,c!==void 0||n.has(e.type)||(n.add(e.type),ye(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",H(e))})),t.__reactInternalSnapshotBeforeUpdate=c}catch(f){at(e,e.return,f)}}function Ev(e,t,n){n.props=_i(e.type,e.memoizedProps),n.state=e.memoizedState,aa(e)?(sa(),ye(e,NN,e,t,n),na()):ye(e,NN,e,t,n)}function nA(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t=="function")if(aa(e))try{sa(),e.refCleanup=t(n)}finally{na()}else e.refCleanup=t(n);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",H(e)),t.current=n}}function Zl(e,t){try{ye(e,nA,e)}catch(n){at(e,t,n)}}function ra(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{if(aa(e))try{sa(),ye(e,i)}finally{na(e)}else ye(e,i)}catch(l){at(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(aa(e))try{sa(),ye(e,n,null)}finally{na(e)}else ye(e,n,null)}catch(l){at(e,t,l)}else n.current=null}function wv(e,t,n,i){var l=e.memoizedProps,c=l.id,f=l.onCommit;l=l.onRender,t=t===null?"mount":"update",od&&(t="nested-update"),typeof l=="function"&&l(c,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof f=="function"&&f(c,t,i,n)}function sA(e,t,n,i){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",od&&(t="nested-update"),typeof l=="function"&&l(e,t,i,n)}function Sv(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{ye(e,DA,i,t,n,e)}catch(l){at(e,e.return,l)}}function Zm(e,t,n){try{ye(e,CA,e.stateNode,e.type,n,t,e)}catch(i){at(e,e.return,i)}}function _v(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_r(e.type)||e.tag===4}function Km(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_v(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&_r(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wm(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(Rx(n),(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t)):(Rx(n),t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ra));else if(i!==4&&(i===27&&_r(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Wm(e,t,n),e=e.sibling;e!==null;)Wm(e,t,n),e=e.sibling}function Nf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&_r(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Nf(e,t,n),e=e.sibling;e!==null;)Nf(e,t,n),e=e.sibling}function aA(e){for(var t,n=e.return;n!==null;){if(_v(n)){t=n;break}n=n.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,n=Km(e),Nf(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(jx(n),t.flags&=-33),t=Km(e),Nf(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=Km(e),Wm(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Av(e){var t=e.stateNode,n=e.memoizedProps;try{ye(e,FA,e.type,n,t,e)}catch(i){at(e,e.return,i)}}function Dv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function rA(e,t){if(e=e.containerInfo,Wb=Pd,e=$y(e),Vh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var l=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,h=-1,y=-1,v=0,z=0,B=e,O=null;t:for(;;){for(var $;B!==n||l!==0&&B.nodeType!==3||(h=f+l),B!==c||i!==0&&B.nodeType!==3||(y=f+i),B.nodeType===3&&(f+=B.nodeValue.length),($=B.firstChild)!==null;)O=B,B=$;for(;;){if(B===e)break t;if(O===n&&++v===l&&(h=f),O===c&&++z===i&&(y=f),($=B.nextSibling)!==null)break;B=O,O=B.parentNode}B=$}n=h===-1||y===-1?null:{start:h,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(e0={focusedElem:e,selectionRange:n},Pd=!1,en=t;en!==null;)if(t=en,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,en=e;else for(;en!==null;){switch(e=t=en,n=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)l=e[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&n!==null&&tA(e,n);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)vp(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,en=e;break}en=t.return}}function Tv(e,t,n){var i=Bn(),l=Ks(),c=ea(),f=ta(),h=n.flags;switch(n.tag){case 0:case 11:case 15:ia(e,n),h&4&&vv(n,Gn|ms);break;case 1:if(ia(e,n),h&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||Wo||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(n)||"instance")),aa(n)?(sa(),ye(n,Nb,n,e),na()):ye(n,Nb,n,e);else{var y=_i(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||Wo||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(n)||"instance")),aa(n)?(sa(),ye(n,gN,n,e,y,t,e.__reactInternalSnapshotBeforeUpdate),na()):ye(n,gN,n,e,y,t,e.__reactInternalSnapshotBeforeUpdate)}h&64&&Nv(n),h&512&&Zl(n,n.return);break;case 3:if(t=Ua(),ia(e,n),h&64&&(h=n.updateQueue,h!==null)){if(y=null,n.child!==null)switch(n.child.tag){case 27:case 5:y=n.child.stateNode;break;case 1:y=n.child.stateNode}try{ye(n,wg,h,y)}catch(z){at(n,n.return,z)}}e.effectDuration+=Gu(t);break;case 27:t===null&&h&4&&Av(n);case 26:case 5:if(ia(e,n),t===null){if(h&4)Sv(n);else if(h&64){e=n.type,t=n.memoizedProps,y=n.stateNode;try{ye(n,TA,y,e,t,n)}catch(z){at(n,n.return,z)}}}h&512&&Zl(n,n.return);break;case 12:if(h&4){h=Ua(),ia(e,n),e=n.stateNode,e.effectDuration+=ql(h);try{ye(n,wv,n,t,Vr,e.effectDuration)}catch(z){at(n,n.return,z)}}else ia(e,n);break;case 31:ia(e,n),h&4&&jv(e,n);break;case 13:ia(e,n),h&4&&Rv(e,n),h&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(h=mA.bind(null,n),PA(e,h))));break;case 22:if(h=n.memoizedState!==null||Wa,!h){t=t!==null&&t.memoizedState!==null||Ht,y=Wa;var v=Ht;Wa=h,(Ht=t)&&!v?(oa(e,n,(n.subtreeFlags&8772)!==0),(n.mode&ze)!==Te&&0<=Ae&&0<=De&&.05<De-Ae&&zu(n,Ae,De)):ia(e,n),Wa=y,Ht=v}break;case 30:break;default:ia(e,n)}(n.mode&ze)!==Te&&0<=Ae&&0<=De&&((Dt||.05<Et)&&Xs(n,Ae,De,Et,Nt),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<De-Ae&&(Dv(n.return.alternate,n.return)||Qs(n,Ae,De,"Mount"))),qn(i),Ws(l),Nt=c,Dt=f}function Cv(e){var t=e.alternate;t!==null&&(e.alternate=null,Cv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cr(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function qa(e,t,n){for(n=n.child;n!==null;)Ov(e,t,n),n=n.sibling}function Ov(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Co,n)}catch(v){ha||(ha=!0,console.error("React instrumentation encountered an error: %o",v))}var i=Bn(),l=Ks(),c=ea(),f=ta();switch(n.tag){case 26:Ht||ra(n,t),qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:Ht||ra(n,t);var h=$t,y=Mn;_r(n.type)&&($t=n.stateNode,Mn=!1),qa(e,t,n),ye(n,ic,n.stateNode),$t=h,Mn=y;break;case 5:Ht||ra(n,t);case 6:if(h=$t,y=Mn,$t=null,qa(e,t,n),$t=h,Mn=y,$t!==null)if(Mn)try{ye(n,RA,$t,n.stateNode)}catch(v){at(n,t,v)}else try{ye(n,jA,$t,n.stateNode)}catch(v){at(n,t,v)}break;case 18:$t!==null&&(Mn?(e=$t,Mx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_o(e)):Mx($t,n.stateNode));break;case 4:h=$t,y=Mn,$t=n.stateNode.containerInfo,Mn=!0,qa(e,t,n),$t=h,Mn=y;break;case 0:case 11:case 14:case 15:yo(En,n,t),Ht||Qm(n,t,Gn),qa(e,t,n);break;case 1:Ht||(ra(n,t),h=n.stateNode,typeof h.componentWillUnmount=="function"&&Ev(n,t,h)),qa(e,t,n);break;case 21:qa(e,t,n);break;case 22:Ht=(h=Ht)||n.memoizedState!==null,qa(e,t,n),Ht=h;break;default:qa(e,t,n)}(n.mode&ze)!==Te&&0<=Ae&&0<=De&&(Dt||.05<Et)&&Xs(n,Ae,De,Et,Nt),qn(i),Ws(l),Nt=c,Dt=f}function jv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ye(t,$A,e)}catch(n){at(t,t.return,n)}}}function Rv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ye(t,IA,e)}catch(n){at(t,t.return,n)}}function iA(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sE),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ef(e,t){var n=iA(e);t.forEach(function(i){if(!n.has(i)){if(n.add(i),ma)if(el!==null&&tl!==null)tc(tl,el);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=pA.bind(null,e,i);i.then(l,l)}})}function jn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var l=e,c=t,f=n[i],h=Bn(),y=c;e:for(;y!==null;){switch(y.tag){case 27:if(_r(y.type)){$t=y.stateNode,Mn=!1;break e}break;case 5:$t=y.stateNode,Mn=!1;break e;case 3:case 4:$t=y.stateNode.containerInfo,Mn=!0;break e}y=y.return}if($t===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ov(l,c,f),$t=null,Mn=!1,(f.mode&ze)!==Te&&0<=Ae&&0<=De&&.05<De-Ae&&Qs(f,Ae,De,"Unmount"),qn(h),l=f,c=l.alternate,c!==null&&(c.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mv(t,e),t=t.sibling}function Mv(e,t){var n=Bn(),i=Ks(),l=ea(),c=ta(),f=e.alternate,h=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jn(t,e),Rn(e),h&4&&(yo(En|ms,e,e.return),Xl(En|ms,e),Qm(e,e.return,Gn|ms));break;case 1:if(jn(t,e),Rn(e),h&512&&(Ht||f===null||ra(f,f.return)),h&64&&Wa&&(h=e.updateQueue,h!==null&&(f=h.callbacks,f!==null))){var y=h.shared.hiddenCallbacks;h.shared.hiddenCallbacks=y===null?f:y.concat(f)}break;case 26:if(y=Rs,jn(t,e),Rn(e),h&512&&(Ht||f===null||ra(f,f.return)),h&4){var v=f!==null?f.memoizedState:null;if(h=e.memoizedState,f===null)if(h===null)if(e.stateNode===null){e:{h=e.type,f=e.memoizedProps,y=y.ownerDocument||y;t:switch(h){case"title":v=y.getElementsByTagName("title")[0],(!v||v[hc]||v[ln]||v.namespaceURI===jo||v.hasAttribute("itemprop"))&&(v=y.createElement(h),y.head.insertBefore(v,y.querySelector("head > title"))),on(v,h,f),v[ln]=e,Rt(v),h=v;break e;case"link":var z=Ix("link","href",y).get(h+(f.href||""));if(z){for(var B=0;B<z.length;B++)if(v=z[B],v.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&v.getAttribute("rel")===(f.rel==null?null:f.rel)&&v.getAttribute("title")===(f.title==null?null:f.title)&&v.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){z.splice(B,1);break t}}v=y.createElement(h),on(v,h,f),y.head.appendChild(v);break;case"meta":if(z=Ix("meta","content",y).get(h+(f.content||""))){for(B=0;B<z.length;B++)if(v=z[B],st(f.content,"content"),v.getAttribute("content")===(f.content==null?null:""+f.content)&&v.getAttribute("name")===(f.name==null?null:f.name)&&v.getAttribute("property")===(f.property==null?null:f.property)&&v.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&v.getAttribute("charset")===(f.charSet==null?null:f.charSet)){z.splice(B,1);break t}}v=y.createElement(h),on(v,h,f),y.head.appendChild(v);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+h+'". This is a bug in React.')}v[ln]=e,Rt(v),h=v}e.stateNode=h}else Fx(y,e.type,e.stateNode);else e.stateNode=$x(y,h,e.memoizedProps);else v!==h?(v===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):v.count--,h===null?Fx(y,e.type,e.stateNode):$x(y,h,e.memoizedProps)):h===null&&e.stateNode!==null&&Zm(e,e.memoizedProps,f.memoizedProps)}break;case 27:jn(t,e),Rn(e),h&512&&(Ht||f===null||ra(f,f.return)),f!==null&&h&4&&Zm(e,e.memoizedProps,f.memoizedProps);break;case 5:if(jn(t,e),Rn(e),h&512&&(Ht||f===null||ra(f,f.return)),e.flags&32){y=e.stateNode;try{ye(e,jx,y)}catch(pe){at(e,e.return,pe)}}h&4&&e.stateNode!=null&&(y=e.memoizedProps,Zm(e,y,f!==null?f.memoizedProps:y)),h&1024&&(kb=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(jn(t,e),Rn(e),h&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");h=e.memoizedProps,f=f!==null?f.memoizedProps:h,y=e.stateNode;try{ye(e,OA,y,f,h)}catch(pe){at(e,e.return,pe)}}break;case 3:if(y=Ua(),Bd=null,v=Rs,Rs=Of(t.containerInfo),jn(t,e),Rs=v,Rn(e),h&4&&f!==null&&f.memoizedState.isDehydrated)try{ye(e,HA,t.containerInfo)}catch(pe){at(e,e.return,pe)}kb&&(kb=!1,kv(e)),t.effectDuration+=Gu(y);break;case 4:h=Rs,Rs=Of(e.stateNode.containerInfo),jn(t,e),Rn(e),Rs=h;break;case 12:h=Ua(),jn(t,e),Rn(e),e.stateNode.effectDuration+=ql(h);break;case 31:jn(t,e),Rn(e),h&4&&(h=e.updateQueue,h!==null&&(e.updateQueue=null,Ef(e,h)));break;case 13:jn(t,e),Rn(e),e.child.flags&8192&&e.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(wd=Kt()),h&4&&(h=e.updateQueue,h!==null&&(e.updateQueue=null,Ef(e,h)));break;case 22:y=e.memoizedState!==null;var O=f!==null&&f.memoizedState!==null,$=Wa,ce=Ht;if(Wa=$||y,Ht=ce||O,jn(t,e),Ht=ce,Wa=$,O&&!y&&!$&&!ce&&(e.mode&ze)!==Te&&0<=Ae&&0<=De&&.05<De-Ae&&zu(e,Ae,De),Rn(e),h&8192)e:for(t=e.stateNode,t._visibility=y?t._visibility&~Ec:t._visibility|Ec,!y||f===null||O||Wa||Ht||(Ai(e),(e.mode&ze)!==Te&&0<=Ae&&0<=De&&.05<De-Ae&&Qs(e,Ae,De,"Disconnect")),f=null,t=e;;){if(t.tag===5||t.tag===26){if(f===null){O=f=t;try{v=O.stateNode,y?ye(O,kA,v):ye(O,zA,O.stateNode,O.memoizedProps)}catch(pe){at(O,O.return,pe)}}}else if(t.tag===6){if(f===null){O=t;try{z=O.stateNode,y?ye(O,VA,z):ye(O,BA,z,O.memoizedProps)}catch(pe){at(O,O.return,pe)}}}else if(t.tag===18){if(f===null){O=t;try{B=O.stateNode,y?ye(O,MA,B):ye(O,UA,O.stateNode)}catch(pe){at(O,O.return,pe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;f===t&&(f=null),t=t.return}f===t&&(f=null),t.sibling.return=t.return,t=t.sibling}h&4&&(h=e.updateQueue,h!==null&&(f=h.retryQueue,f!==null&&(h.retryQueue=null,Ef(e,f))));break;case 19:jn(t,e),Rn(e),h&4&&(h=e.updateQueue,h!==null&&(e.updateQueue=null,Ef(e,h)));break;case 30:break;case 21:break;default:jn(t,e),Rn(e)}(e.mode&ze)!==Te&&0<=Ae&&0<=De&&((Dt||.05<Et)&&Xs(e,Ae,De,Et,Nt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<De-Ae&&(Dv(e.return.alternate,e.return)||Qs(e,Ae,De,"Mount"))),qn(n),Ws(i),Nt=l,Dt=c}function Rn(e){var t=e.flags;if(t&2){try{ye(e,aA,e)}catch(n){at(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Tv(e,t.alternate,t),t=t.sibling}function Vv(e){var t=Bn(),n=Ks(),i=ea(),l=ta();switch(e.tag){case 0:case 11:case 14:case 15:Qm(e,e.return,Gn),Ai(e);break;case 1:ra(e,e.return);var c=e.stateNode;typeof c.componentWillUnmount=="function"&&Ev(e,e.return,c),Ai(e);break;case 27:ye(e,ic,e.stateNode);case 26:case 5:ra(e,e.return),Ai(e);break;case 22:e.memoizedState===null&&Ai(e);break;case 30:Ai(e);break;default:Ai(e)}(e.mode&ze)!==Te&&0<=Ae&&0<=De&&(Dt||.05<Et)&&Xs(e,Ae,De,Et,Nt),qn(t),Ws(n),Nt=i,Dt=l}function Ai(e){for(e=e.child;e!==null;)Vv(e),e=e.sibling}function Uv(e,t,n,i){var l=Bn(),c=Ks(),f=ea(),h=ta(),y=n.flags;switch(n.tag){case 0:case 11:case 15:oa(e,n,i),vv(n,Gn);break;case 1:if(oa(e,n,i),t=n.stateNode,typeof t.componentDidMount=="function"&&ye(n,Nb,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{ye(n,H_,t,e)}catch(v){at(n,n.return,v)}}i&&y&64&&Nv(n),Zl(n,n.return);break;case 27:Av(n);case 26:case 5:oa(e,n,i),i&&t===null&&y&4&&Sv(n),Zl(n,n.return);break;case 12:if(i&&y&4){y=Ua(),oa(e,n,i),i=n.stateNode,i.effectDuration+=ql(y);try{ye(n,wv,n,t,Vr,i.effectDuration)}catch(v){at(n,n.return,v)}}else oa(e,n,i);break;case 31:oa(e,n,i),i&&y&4&&jv(e,n);break;case 13:oa(e,n,i),i&&y&4&&Rv(e,n);break;case 22:n.memoizedState===null&&oa(e,n,i),Zl(n,n.return);break;case 30:break;default:oa(e,n,i)}(n.mode&ze)!==Te&&0<=Ae&&0<=De&&(Dt||.05<Et)&&Xs(n,Ae,De,Et,Nt),qn(l),Ws(c),Nt=f,Dt=h}function oa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Uv(e,t.alternate,t,n),t=t.sibling}function ep(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Ni(e),n!=null&&Bl(n))}function tp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Ni(t),e!=null&&Bl(e))}function Ds(e,t,n,i,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var c=t.sibling;zv(e,t,n,i,c!==null?c.actualStartTime:l),t=c}}function zv(e,t,n,i,l){var c=Bn(),f=Ks(),h=ea(),y=ta(),v=jr,z=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&ze)!==Te&&0<t.actualStartTime&&(t.flags&1)!==0&&Bu(t,t.actualStartTime,l,Jt,n),Ds(e,t,n,i,l),z&2048&&xv(t,wn|ms);break;case 1:(t.mode&ze)!==Te&&0<t.actualStartTime&&((t.flags&128)!==0?zh(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&Bu(t,t.actualStartTime,l,Jt,n)),Ds(e,t,n,i,l);break;case 3:var B=Ua(),O=Jt;Jt=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Ds(e,t,n,i,l),Jt=O,z&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),i=t.memoizedState.cache,i!==n&&(Ni(i),n!=null&&Bl(n))),e.passiveEffectDuration+=Gu(B);break;case 12:if(z&2048){z=Ua(),Ds(e,t,n,i,l),e=t.stateNode,e.passiveEffectDuration+=ql(z);try{ye(t,sA,t,t.alternate,Vr,e.passiveEffectDuration)}catch($){at(t,t.return,$)}}else Ds(e,t,n,i,l);break;case 31:z=Jt,B=t.alternate!==null?t.alternate.memoizedState:null,O=t.memoizedState,B!==null&&O===null?(O=t.deletions,O!==null&&0<O.length&&O[0].tag===18?(Jt=!1,B=B.hydrationErrors,B!==null&&zh(t,t.actualStartTime,l,B)):Jt=!0):Jt=!1,Ds(e,t,n,i,l),Jt=z;break;case 13:z=Jt,B=t.alternate!==null?t.alternate.memoizedState:null,O=t.memoizedState,B===null||B.dehydrated===null||O!==null&&O.dehydrated!==null?Jt=!1:(O=t.deletions,O!==null&&0<O.length&&O[0].tag===18?(Jt=!1,B=B.hydrationErrors,B!==null&&zh(t,t.actualStartTime,l,B)):Jt=!0),Ds(e,t,n,i,l),Jt=z;break;case 23:break;case 22:O=t.stateNode,B=t.alternate,t.memoizedState!==null?O._visibility&$a?Ds(e,t,n,i,l):Kl(e,t,n,i,l):O._visibility&$a?Ds(e,t,n,i,l):(O._visibility|=$a,go(e,t,n,i,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&ze)===Te||Jt||(e=t.actualStartTime,0<=e&&.05<l-e&&zu(t,e,l),0<=Ae&&0<=De&&.05<De-Ae&&zu(t,Ae,De))),z&2048&&ep(B,t);break;case 24:Ds(e,t,n,i,l),z&2048&&tp(t.alternate,t);break;default:Ds(e,t,n,i,l)}(t.mode&ze)!==Te&&((e=!Jt&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<l-n&&Qs(t,n,l,"Mount")),0<=Ae&&0<=De&&((Dt||.05<Et)&&Xs(t,Ae,De,Et,Nt),e&&.05<De-Ae&&Qs(t,Ae,De,"Mount"))),qn(c),Ws(f),Nt=h,Dt=y,jr=v}function go(e,t,n,i,l,c){for(l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var f=t.sibling;Bv(e,t,n,i,l,f!==null?f.actualStartTime:c),t=f}}function Bv(e,t,n,i,l,c){var f=Bn(),h=Ks(),y=ea(),v=ta(),z=jr;l&&(t.mode&ze)!==Te&&0<t.actualStartTime&&(t.flags&1)!==0&&Bu(t,t.actualStartTime,c,Jt,n);var B=t.flags;switch(t.tag){case 0:case 11:case 15:go(e,t,n,i,l,c),xv(t,wn);break;case 23:break;case 22:var O=t.stateNode;t.memoizedState!==null?O._visibility&$a?go(e,t,n,i,l,c):Kl(e,t,n,i,c):(O._visibility|=$a,go(e,t,n,i,l,c)),l&&B&2048&&ep(t.alternate,t);break;case 24:go(e,t,n,i,l,c),l&&B&2048&&tp(t.alternate,t);break;default:go(e,t,n,i,l,c)}(t.mode&ze)!==Te&&0<=Ae&&0<=De&&(Dt||.05<Et)&&Xs(t,Ae,De,Et,Nt),qn(f),Ws(h),Nt=y,Dt=v,jr=z}function Kl(e,t,n,i,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var c=t.child;c!==null;){t=c.sibling;var f=e,h=n,y=i,v=t!==null?t.actualStartTime:l,z=jr;(c.mode&ze)!==Te&&0<c.actualStartTime&&(c.flags&1)!==0&&Bu(c,c.actualStartTime,v,Jt,h);var B=c.flags;switch(c.tag){case 22:Kl(f,c,h,y,v),B&2048&&ep(c.alternate,c);break;case 24:Kl(f,c,h,y,v),B&2048&&tp(c.alternate,c);break;default:Kl(f,c,h,y,v)}jr=z,c=t}}function vo(e,t,n){if(e.subtreeFlags&Hc)for(e=e.child;e!==null;)qv(e,t,n),e=e.sibling}function qv(e,t,n){switch(e.tag){case 26:vo(e,t,n),e.flags&Hc&&e.memoizedState!==null&&JA(n,Rs,e.memoizedState,e.memoizedProps);break;case 5:vo(e,t,n);break;case 3:case 4:var i=Rs;Rs=Of(e.stateNode.containerInfo),vo(e,t,n),Rs=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Hc,Hc=16777216,vo(e,t,n),Hc=i):vo(e,t,n));break;default:vo(e,t,n)}}function Lv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n],l=Bn();en=i,$v(i,e),(i.mode&ze)!==Te&&0<=Ae&&0<=De&&.05<De-Ae&&Qs(i,Ae,De,"Unmount"),qn(l)}Lv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pv(e),e=e.sibling}function Pv(e){var t=Bn(),n=Ks(),i=ea(),l=ta();switch(e.tag){case 0:case 11:case 15:Wl(e),e.flags&2048&&Xm(e,e.return,wn|ms);break;case 3:var c=Ua();Wl(e),e.stateNode.passiveEffectDuration+=Gu(c);break;case 12:c=Ua(),Wl(e),e.stateNode.passiveEffectDuration+=ql(c);break;case 22:c=e.stateNode,e.memoizedState!==null&&c._visibility&$a&&(e.return===null||e.return.tag!==13)?(c._visibility&=~$a,wf(e),(e.mode&ze)!==Te&&0<=Ae&&0<=De&&.05<De-Ae&&Qs(e,Ae,De,"Disconnect")):Wl(e);break;default:Wl(e)}(e.mode&ze)!==Te&&0<=Ae&&0<=De&&(Dt||.05<Et)&&Xs(e,Ae,De,Et,Nt),qn(t),Ws(n),Dt=l,Nt=i}function wf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n],l=Bn();en=i,$v(i,e),(i.mode&ze)!==Te&&0<=Ae&&0<=De&&.05<De-Ae&&Qs(i,Ae,De,"Unmount"),qn(l)}Lv(e)}for(e=e.child;e!==null;)Hv(e),e=e.sibling}function Hv(e){var t=Bn(),n=Ks(),i=ea(),l=ta();switch(e.tag){case 0:case 11:case 15:Xm(e,e.return,wn),wf(e);break;case 22:var c=e.stateNode;c._visibility&$a&&(c._visibility&=~$a,wf(e));break;default:wf(e)}(e.mode&ze)!==Te&&0<=Ae&&0<=De&&(Dt||.05<Et)&&Xs(e,Ae,De,Et,Nt),qn(t),Ws(n),Dt=l,Nt=i}function $v(e,t){for(;en!==null;){var n=en,i=n,l=t,c=Bn(),f=Ks(),h=ea(),y=ta();switch(i.tag){case 0:case 11:case 15:Xm(i,l,wn);break;case 23:case 22:i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool,l!=null&&Ni(l));break;case 24:Bl(i.memoizedState.cache)}if((i.mode&ze)!==Te&&0<=Ae&&0<=De&&(Dt||.05<Et)&&Xs(i,Ae,De,Et,Nt),qn(c),Ws(f),Dt=y,Nt=h,i=n.child,i!==null)i.return=n,en=i;else e:for(n=e;en!==null;){if(i=en,c=i.sibling,f=i.return,Cv(i),i===n){en=null;break e}if(c!==null){c.return=f,en=c;break e}en=f}}}function oA(){O3.forEach(function(e){return e()})}function Iv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Pn(e){if((We&Qt)!==tn&&qe!==0)return qe&-qe;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),cp()):ro()}function Fv(){if(Vn===0)if((qe&536870912)===0||Ye){var e=Hf;Hf<<=1,(Hf&3932160)===0&&(Hf=262144),Vn=e}else Vn=536870912;return e=Yn.current,e!==null&&(e.flags|=32),Vn}function At(e,t,n){if(al&&console.error("useInsertionEffect must not schedule updates."),Fb&&(Dd=!0),(e===ht&&(ct===Hi||ct===$i)||e.cancelPendingCommit!==null)&&(No(e,0),wr(e,qe,Vn,!1)),fi(e,n),(We&Qt)!==tn&&e===ht){if(da)switch(t.tag){case 0:case 11:case 15:e=Pe&&H(Pe)||"Unknown",gE.has(e)||(gE.add(e),t=H(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:yE||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),yE=!0)}}else ma&&Ls(e,t,n),yA(t),e===ht&&((We&Qt)===tn&&($r|=n),wt===Lr&&wr(e,qe,Vn,!1)),la(e)}function Yv(e,t,n){if((We&(Qt|Jn))!==tn)throw Error("Should not already be working.");if(qe!==0&&Pe!==null){var i=Pe,l=Kt();switch(uN){case Fc:case Hi:var c=Tc;yt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Suspended",c,l,is,void 0,"primary-light")):console.timeStamp("Suspended",c,l,is,void 0,"primary-light"));break;case $i:c=Tc,yt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Action",c,l,is,void 0,"primary-light")):console.timeStamp("Action",c,l,is,void 0,"primary-light"));break;default:yt&&(i=l-Tc,3>i||console.timeStamp("Blocked",Tc,l,is,void 0,5>i?"primary-light":10>i?"primary":100>i?"primary-dark":"error"))}}c=(n=!n&&(t&127)===0&&(t&e.expiredLanes)===0||fn(e,t))?cA(e,t):sp(e,t,!0);var f=n;do{if(c===er){nl&&!n&&wr(e,t,0,!1),t=ct,Tc=qt(),uN=t;break}else{if(i=Kt(),l=e.current.alternate,f&&!lA(l)){_s(t),l=Wt,c=i,!yt||c<=l||(Ot?Ot.run(console.timeStamp.bind(console,"Teared Render",l,c,Ze,Je,"error")):console.timeStamp("Teared Render",l,c,Ze,Je,"error")),Di(t,i),c=sp(e,t,!1),f=!1;continue}if(c===Pi){if(f=t,e.errorRecoveryDisabledLanes&f)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){_s(t),Bh(Wt,i,t,Ot),Di(t,i),t=h;e:{i=e,c=f,f=Gc;var y=i.current.memoizedState.isDehydrated;if(y&&(No(i,h).flags|=256),h=sp(i,h,!1),h!==Pi){if(zb&&!y){i.errorRecoveryDisabledLanes|=c,$r|=c,c=Lr;break e}i=Sn,Sn=f,i!==null&&(Sn===null?Sn=i:Sn.push.apply(Sn,i))}c=h}if(f=!1,c!==Pi)continue;i=Kt()}}if(c===Ic){_s(t),Bh(Wt,i,t,Ot),Di(t,i),No(e,0),wr(e,t,0,!0);break}e:{switch(n=e,c){case er:case Ic:throw Error("Root did not complete. This is a bug in React.");case Lr:if((t&4194048)!==t)break;case vd:_s(t),Yy(Wt,i,t,Ot),Di(t,i),l=t,(l&127)!==0?ad=i:(l&4194048)!==0&&(rd=i),wr(n,t,Vn,!Pr);break e;case Pi:Sn=null;break;case gd:case aE:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)ap(n,l,t,Sn,Jc,Ed,Vn,$r,Ii,c,null,null,Wt,i);else{if((t&62914560)===t&&(f=wd+oE-Kt(),10<f)){if(wr(n,t,Vn,!Pr),Ca(n,0,!0)!==0)break e;Ms=t,n.timeoutHandle=AE(Gv.bind(null,n,l,Sn,Jc,Ed,t,Vn,$r,Ii,Pr,c,"Throttled",Wt,i),f);break e}Gv(n,l,Sn,Jc,Ed,t,Vn,$r,Ii,Pr,c,null,Wt,i)}}}break}while(!0);la(e)}function Gv(e,t,n,i,l,c,f,h,y,v,z,B,O,$){e.timeoutHandle=Qi;var ce=t.subtreeFlags,pe=null;if((ce&8192||(ce&16785408)===16785408)&&(pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ra},qv(t,c,pe),ce=(c&62914560)===c?wd-Kt():(c&4194048)===c?iE-Kt():0,ce=QA(pe,ce),ce!==null)){Ms=c,e.cancelPendingCommit=ce(ap.bind(null,e,t,c,n,i,l,f,h,y,z,pe,pe.waitingForViewTransition?"Waiting for the previous Animation":0<pe.count?0<pe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":pe.imgCount===1?"Suspended on an Image":0<pe.imgCount?"Suspended on Images":null,O,$)),wr(e,c,f,!v);return}ap(e,t,c,n,i,l,f,h,y,z,pe,B,O,$)}function lA(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],c=l.getSnapshot;l=l.value;try{if(!xn(c(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wr(e,t,n,i){t&=~Bb,t&=~$r,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var c=31-yn(l),f=1<<c;i[c]=-1,l&=~f}n!==0&&Cu(e,n,t)}function xo(){return(We&(Qt|Jn))===tn?(nc(0),!1):!0}function np(){if(Pe!==null){if(ct===kn)var e=Pe.return;else e=Pe,Iu(),hm(e),Go=null,zc=0,e=Pe;for(;e!==null;)gv(e.alternate,e),e=e.return;Pe=null}}function Di(e,t){(e&127)!==0&&(Ri=t),(e&4194048)!==0&&(Ja=t),(e&62914560)!==0&&(lN=t),(e&2080374784)!==0&&(cN=t)}function No(e,t){yt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Je,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Je,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Je,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Je,"primary-light"));var n=Wt;if(Wt=qt(),qe!==0&&0<n){if(_s(qe),wt===gd||wt===Lr)Yy(n,Wt,t,Ot);else{var i=Wt,l=Ot;if(yt&&!(i<=n)){var c=(t&738197653)===t?"tertiary-dark":"primary-dark",f=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,f,n,i,Ze,Je,c)):console.timeStamp(f,n,i,Ze,Je,c)}}Di(qe,Wt)}if(n=Ot,Ot=null,(t&127)!==0){Ot=_c,l=0<=ga&&ga<Ri?Ri:ga,i=0<=Mi&&Mi<Ri?Ri:Mi,c=0<=i?i:0<=l?l:Wt,0<=ad?(_s(2),Gy(ad,c,t,n)):id&127,n=l;var h=i,y=Ac,v=0<Io,z=Ur===Sc,B=Ur===sd;if(l=Wt,i=_c,c=bb,f=yb,yt){if(Ze="Blocking",0<n?n>l&&(n=l):n=l,0<h?h>n&&(h=n):h=n,y!==null&&n>h){var O=v?"secondary-light":"warning";i?i.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+y,h,n,Ze,Je,O)):console.timeStamp(v?"Consecutive":"Event: "+y,h,n,Ze,Je,O)}l>n&&(h=z?"error":(t&738197653)===t?"tertiary-light":"primary-light",z=B?"Promise Resolved":z?"Cascading Update":5<l-n?"Update Blocked":"Update",B=[],f!=null&&B.push(["Component name",f]),c!=null&&B.push(["Method name",c]),n={start:n,end:l,detail:{devtools:{properties:B,track:Ze,trackGroup:Je,color:h}}},i?i.run(performance.measure.bind(performance,z,n)):performance.measure(z,n))}ga=-1.1,Ur=0,yb=bb=null,ad=-1.1,Io=Mi,Mi=-1.1,Ri=qt()}if((t&4194048)!==0&&(Ot=Dc,l=0<=Qa&&Qa<Ja?Ja:Qa,n=0<=ds&&ds<Ja?Ja:ds,i=0<=zr&&zr<Ja?Ja:zr,c=0<=i?i:0<=n?n:Wt,0<=rd?(_s(256),Gy(rd,c,t,Ot)):id&4194048,B=i,h=ki,y=0<Br,v=gb===sd,c=Wt,i=Dc,f=iN,z=oN,yt&&(Ze="Transition",0<n?n>c&&(n=c):n=c,0<l?l>n&&(l=n):l=n,0<B?B>l&&(B=l):B=l,l>B&&h!==null&&(O=y?"secondary-light":"warning",i?i.run(console.timeStamp.bind(console,y?"Consecutive":"Event: "+h,B,l,Ze,Je,O)):console.timeStamp(y?"Consecutive":"Event: "+h,B,l,Ze,Je,O)),n>l&&(i?i.run(console.timeStamp.bind(console,"Action",l,n,Ze,Je,"primary-dark")):console.timeStamp("Action",l,n,Ze,Je,"primary-dark")),c>n&&(l=v?"Promise Resolved":5<c-n?"Update Blocked":"Update",B=[],z!=null&&B.push(["Component name",z]),f!=null&&B.push(["Method name",f]),n={start:n,end:c,detail:{devtools:{properties:B,track:Ze,trackGroup:Je,color:"primary-light"}}},i?i.run(performance.measure.bind(performance,l,n)):performance.measure(l,n))),ds=Qa=-1.1,gb=0,rd=-1.1,Br=zr,zr=-1.1,Ja=qt()),(t&62914560)!==0&&(id&62914560)!==0&&(_s(4194304),qh(lN,Wt)),(t&2080374784)!==0&&(id&2080374784)!==0&&(_s(268435456),qh(cN,Wt)),n=e.timeoutHandle,n!==Qi&&(e.timeoutHandle=Qi,$3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ms=0,np(),ht=e,Pe=n=Ma(e.current,null),qe=t,ct=kn,Qn=null,Pr=!1,nl=fn(e,t),zb=!1,wt=er,Ii=Vn=Bb=$r=Hr=0,Sn=Gc=null,Ed=!1,(t&8)!==0&&(t|=t&32),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=t;0<i;)l=31-yn(i),c=1<<l,t|=e[l],i&=~c;return xa=t,qu(),e=eN(),1e3<e-W1&&(G.recentlyCreatedOwnerStacks=0,W1=e),Os.discardPendingWarnings(),n}function Jv(e,t){je=null,G.H=Pc,G.getCurrentStack=null,da=!1,In=null,t===Yo||t===ud?(t=pg(),ct=Fc):t===Eb?(t=pg(),ct=rE):ct=t===Rb?Ub:t!==null&&typeof t=="object"&&typeof t.then=="function"?Yc:xd,Qn=t;var n=Pe;n===null?(wt=Ic,bf(e,zn(t,e.current))):n.mode&ze&&em(n)}function Qv(){var e=Yn.current;return e===null?!0:(qe&4194048)===qe?hs===null:(qe&62914560)===qe||(qe&536870912)!==0?e===hs:!1}function Xv(){var e=G.H;return G.H=Pc,e===null?Pc:e}function Zv(){var e=G.A;return G.A=C3,e}function Sf(e){Ot===null&&(Ot=e._debugTask==null?null:e._debugTask)}function _f(){wt=Lr,Pr||(qe&4194048)!==qe&&Yn.current!==null||(nl=!0),(Hr&134217727)===0&&($r&134217727)===0||ht===null||wr(ht,qe,Vn,!1)}function sp(e,t,n){var i=We;We|=Qt;var l=Xv(),c=Zv();if(ht!==e||qe!==t){if(ma){var f=e.memoizedUpdaters;0<f.size&&(tc(e,qe),f.clear()),di(e,t)}Jc=null,No(e,t)}t=!1,f=wt;e:do try{if(ct!==kn&&Pe!==null){var h=Pe,y=Qn;switch(ct){case Ub:np(),f=vd;break e;case Fc:case Hi:case $i:case Yc:Yn.current===null&&(t=!0);var v=ct;if(ct=kn,Qn=null,Eo(e,h,y,v),n&&nl){f=er;break e}break;default:v=ct,ct=kn,Qn=null,Eo(e,h,y,v)}}Kv(),f=wt;break}catch(z){Jv(e,z)}while(!0);return t&&e.shellSuspendCounter++,Iu(),We=i,G.H=l,G.A=c,Pe===null&&(ht=null,qe=0,qu()),f}function Kv(){for(;Pe!==null;)Wv(Pe)}function cA(e,t){var n=We;We|=Qt;var i=Xv(),l=Zv();if(ht!==e||qe!==t){if(ma){var c=e.memoizedUpdaters;0<c.size&&(tc(e,qe),c.clear()),di(e,t)}Jc=null,Sd=Kt()+lE,No(e,t)}else nl=fn(e,t);e:do try{if(ct!==kn&&Pe!==null)t:switch(t=Pe,c=Qn,ct){case xd:ct=kn,Qn=null,Eo(e,t,c,xd);break;case Hi:case $i:if(hg(c)){ct=kn,Qn=null,ex(t);break}t=function(){ct!==Hi&&ct!==$i||ht!==e||(ct=Nd),la(e)},c.then(t,t);break e;case Fc:ct=Nd;break e;case rE:ct=Vb;break e;case Nd:hg(c)?(ct=kn,Qn=null,ex(t)):(ct=kn,Qn=null,Eo(e,t,c,Nd));break;case Vb:var f=null;switch(Pe.tag){case 26:f=Pe.memoizedState;case 5:case 27:var h=Pe;if(f?Yx(f):h.stateNode.complete){ct=kn,Qn=null;var y=h.sibling;if(y!==null)Pe=y;else{var v=h.return;v!==null?(Pe=v,Af(v)):Pe=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ct=kn,Qn=null,Eo(e,t,c,Vb);break;case Yc:ct=kn,Qn=null,Eo(e,t,c,Yc);break;case Ub:np(),wt=vd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?Kv():uA();break}catch(z){Jv(e,z)}while(!0);return Iu(),G.H=i,G.A=l,We=n,Pe!==null?er:(ht=null,qe=0,qu(),wt)}function uA(){for(;Pe!==null&&!cD();)Wv(Pe)}function Wv(e){var t=e.alternate;(e.mode&ze)!==Te?(Wh(e),t=ye(e,Gm,t,e,xa),em(e)):t=ye(e,Gm,t,e,xa),e.memoizedProps=e.pendingProps,t===null?Af(e):Pe=t}function ex(e){var t=ye(e,fA,e);e.memoizedProps=e.pendingProps,t===null?Af(e):Pe=t}function fA(e){var t=e.alternate,n=(e.mode&ze)!==Te;switch(n&&Wh(e),e.tag){case 15:case 0:t=fv(t,e,e.pendingProps,e.type,void 0,qe);break;case 11:t=fv(t,e,e.pendingProps,e.type.render,e.ref,qe);break;case 5:hm(e);default:gv(t,e),e=Pe=Wy(e,xa),t=Gm(t,e,xa)}return n&&em(e),t}function Eo(e,t,n,i){Iu(),hm(t),Go=null,zc=0;var l=t.return;try{if(Q_(e,l,t,n,qe)){wt=Ic,bf(e,zn(n,e.current)),Pe=null;return}}catch(c){if(l!==null)throw Pe=l,c;wt=Ic,bf(e,zn(n,e.current)),Pe=null;return}t.flags&32768?(Ye||i===xd?e=!0:nl||(qe&536870912)!==0?e=!1:(Pr=e=!0,(i===Hi||i===$i||i===Fc||i===Yc)&&(i=Yn.current,i!==null&&i.tag===13&&(i.flags|=16384))),tx(t,e)):Af(t)}function Af(e){var t=e;do{if((t.flags&32768)!==0){tx(t,Pr);return}var n=t.alternate;if(e=t.return,Wh(t),n=ye(t,K_,n,t,xa),(t.mode&ze)!==Te&&lg(t),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);wt===er&&(wt=aE)}function tx(e,t){do{var n=W_(e.alternate,e);if(n!==null){n.flags&=32767,Pe=n;return}if((e.mode&ze)!==Te){lg(e),n=e.actualDuration;for(var i=e.child;i!==null;)n+=i.actualDuration,i=i.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Pe=e;return}Pe=e=n}while(e!==null);wt=vd,Pe=null}function ap(e,t,n,i,l,c,f,h,y,v,z,B,O,$){e.cancelPendingCommit=null;do ec();while(It!==Fr);if(Os.flushLegacyContextWarning(),Os.flushPendingUnsafeLifecycleWarnings(),(We&(Qt|Jn))!==tn)throw Error("Should not already be working.");if(_s(n),v===Pi?Bh(O,$,n,Ot):i!==null?U_(O,$,n,i,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Ot):V_(O,$,n,Ot),t!==null){if(n===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(c=t.lanes|t.childLanes,c|=fb,Ch(e,n,c,f,h,y),e===ht&&(Pe=ht=null,qe=0),sl=t,Yr=e,Ms=n,Pb=c,$b=l,mE=i,Hb=$,pE=B,ks=_d,bE=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,bA(To,function(){return eu=window.event,ks===_d&&(ks=Lb),ix(),null})):(e.callbackNode=null,e.callbackPriority=0),Ga=null,Vr=qt(),B!==null&&z_($,Vr,B,Ot),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null,l=rt.p,rt.p=rs,f=We,We|=Jn;try{rA(e,t,n)}finally{We=f,rt.p=l,G.T=i}}It=uE,nx(),sx(),ax()}}function nx(){if(It===uE){It=Fr;var e=Yr,t=sl,n=Ms,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var l=rt.p;rt.p=rs;var c=We;We|=Jn;try{el=n,tl=e,Ju(),Mv(t,e),tl=el=null,n=e0;var f=$y(e.containerInfo),h=n.focusedElem,y=n.selectionRange;if(f!==h&&h&&h.ownerDocument&&Hy(h.ownerDocument.documentElement,h)){if(y!==null&&Vh(h)){var v=y.start,z=y.end;if(z===void 0&&(z=v),"selectionStart"in h)h.selectionStart=v,h.selectionEnd=Math.min(z,h.value.length);else{var B=h.ownerDocument||document,O=B&&B.defaultView||window;if(O.getSelection){var $=O.getSelection(),ce=h.textContent.length,pe=Math.min(y.start,ce),pt=y.end===void 0?pe:Math.min(y.end,ce);!$.extend&&pe>pt&&(f=pt,pt=pe,pe=f);var Qe=Py(h,pe),C=Py(h,pt);if(Qe&&C&&($.rangeCount!==1||$.anchorNode!==Qe.node||$.anchorOffset!==Qe.offset||$.focusNode!==C.node||$.focusOffset!==C.offset)){var j=B.createRange();j.setStart(Qe.node,Qe.offset),$.removeAllRanges(),pe>pt?($.addRange(j),$.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),$.addRange(j))}}}}for(B=[],$=h;$=$.parentNode;)$.nodeType===1&&B.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<B.length;h++){var M=B[h];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}Pd=!!Wb,e0=Wb=null}finally{We=c,rt.p=l,G.T=i}}e.current=t,It=fE}}function sx(){if(It===fE){It=Fr;var e=bE;if(e!==null){Vr=qt();var t=Ya,n=Vr;!yt||n<=t||console.timeStamp(e,t,n,Ze,Je,"secondary-light")}e=Yr,t=sl,n=Ms;var i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var l=rt.p;rt.p=rs;var c=We;We|=Jn;try{el=n,tl=e,Ju(),Tv(e,t.alternate,t),tl=el=null}finally{We=c,rt.p=l,G.T=i}}e=Hb,t=pE,Ya=qt(),e=t===null?e:Vr,t=Ya,n=ks===qb,i=Ot,Ga!==null?Jy(e,t,Ga,!1,i):!yt||t<=e||(i?i.run(console.timeStamp.bind(console,n?"Commit Interrupted View Transition":"Commit",e,t,Ze,Je,n?"error":"secondary-dark")):console.timeStamp(n?"Commit Interrupted View Transition":"Commit",e,t,Ze,Je,n?"error":"secondary-dark")),It=dE}}function ax(){if(It===hE||It===dE){if(It===hE){var e=Ya;Ya=qt();var t=Ya,n=ks===qb;!yt||t<=e||console.timeStamp(n?"Interrupted View Transition":"Starting Animation",e,t,Ze,Je,n?" error":"secondary-light"),ks!==qb&&(ks=cE)}It=Fr,uD(),e=Yr;var i=sl;t=Ms,n=mE;var l=i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;l?It=Ad:(It=Fr,sl=Yr=null,rx(e,e.pendingLanes),Fi=0,Xc=null);var c=e.pendingLanes;if(c===0&&(Ir=null),l||ux(e),c=ao(t),i=i.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{var f=(i.current.flags&128)===128;switch(c){case rs:var h=$p;break;case pa:h=Ip;break;case Pa:h=To;break;case If:h=Fp;break;default:h=To}hn.onCommitFiberRoot(Co,i,h,f)}catch(B){ha||(ha=!0,console.error("React instrumentation encountered an error: %o",B))}if(ma&&e.memoizedUpdaters.clear(),oA(),n!==null){f=G.T,h=rt.p,rt.p=rs,G.T=null;try{var y=e.onRecoverableError;for(i=0;i<n.length;i++){var v=n[i],z=dA(v.stack);ye(v.source,y,v.value,z)}}finally{G.T=f,rt.p=h}}(Ms&3)!==0&&ec(),la(e),c=e.pendingLanes,(t&261930)!==0&&(c&42)!==0?(ld=!0,e===Ib?Qc++:(Qc=0,Ib=e)):Qc=0,l||Di(t,Ya),nc(0)}}function dA(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function rx(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Bl(t)))}function ec(){return nx(),sx(),ax(),ix()}function ix(){if(It!==Ad)return!1;var e=Yr,t=Pb;Pb=0;var n=ao(Ms),i=Pa>n?Pa:n;n=G.T;var l=rt.p;try{rt.p=i,G.T=null;var c=$b;$b=null,i=Yr;var f=Ms;if(It=Fr,sl=Yr=null,Ms=0,(We&(Qt|Jn))!==tn)throw Error("Cannot flush passive effects while already rendering.");_s(f),Fb=!0,Dd=!1;var h=0;if(Ga=null,h=Kt(),ks===cE)qh(Ya,h,E3);else{var y=Ya,v=h,z=ks===Lb;!yt||v<=y||(Ot?Ot.run(console.timeStamp.bind(console,z?"Waiting for Paint":"Waiting",y,v,Ze,Je,"secondary-light")):console.timeStamp(z?"Waiting for Paint":"Waiting",y,v,Ze,Je,"secondary-light"))}y=We,We|=Jn;var B=i.current;Ju(),Pv(B);var O=i.current;B=Hb,Ju(),zv(i,O,f,c,B),ux(i),We=y;var $=Kt();if(O=h,B=Ot,Ga!==null?Jy(O,$,Ga,!0,B):!yt||$<=O||(B?B.run(console.timeStamp.bind(console,"Remaining Effects",O,$,Ze,Je,"secondary-dark")):console.timeStamp("Remaining Effects",O,$,Ze,Je,"secondary-dark")),Di(f,$),nc(0,!1),Dd?i===Xc?Fi++:(Fi=0,Xc=i):Fi=0,Dd=Fb=!1,hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Co,i)}catch(pe){ha||(ha=!0,console.error("React instrumentation encountered an error: %o",pe))}var ce=i.current.stateNode;return ce.effectDuration=0,ce.passiveEffectDuration=0,!0}finally{rt.p=l,G.T=n,rx(e,t)}}function ox(e,t,n){t=zn(n,t),cg(t),t=Um(e.stateNode,t,2),e=vr(e,t,2),e!==null&&(fi(e,2),la(e))}function at(e,t,n){if(al=!1,e.tag===3)ox(e,e,n);else{for(;t!==null;){if(t.tag===3){ox(t,e,n);return}if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ir===null||!Ir.has(i))){e=zn(n,e),cg(e),n=zm(2),i=vr(t,n,2),i!==null&&(Bm(n,i,t,e),fi(i,2),la(i));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
168
-
169
- Error message:
170
-
171
- %s`,n)}}function rp(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new j3;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(n)||(zb=!0,l.add(n),i=hA.bind(null,e,t,n),ma&&tc(e,n),t.then(i,i))}function hA(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,(n&127)!==0?0>ga&&(Ri=ga=qt(),_c=nd("Promise Resolved"),Ur=sd):(n&4194048)!==0&&0>ds&&(Ja=ds=qt(),Dc=nd("Promise Resolved"),gb=sd),Iv()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
172
-
173
- When testing, code that resolves suspended data should be wrapped into act(...):
174
-
175
- act(() => {
176
- /* finish loading suspended data */
177
- });
178
- /* assert on the output */
179
-
180
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),ht===e&&(qe&n)===n&&(wt===Lr||wt===gd&&(qe&62914560)===qe&&Kt()-wd<oE?(We&Qt)===tn&&No(e,0):Bb|=n,Ii===qe&&(Ii=0)),la(e)}function lx(e,t){t===0&&(t=_l()),e=dn(e,t),e!==null&&(fi(e,t),la(e))}function mA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lx(e,n)}function pA(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),lx(e,n)}function ip(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var i=e,l=t,c=l.type===Bf;c=n||c,l.tag!==22?l.flags&67108864?c&&ye(l,cx,i,l):ip(i,l,c):l.memoizedState===null&&(c&&l.flags&8192?ye(l,cx,i,l):l.subtreeFlags&67108864&&ye(l,ip,i,l,c)),t=t.sibling}}function cx(e,t){bt(!0);try{Vv(t),Hv(t),Uv(e,t.alternate,t,!1),Bv(e,t,0,null,!1,0)}finally{bt(!1)}}function ux(e){var t=!0;e.current.mode&(mn|Cs)||(t=!1),ip(e,e.current,t)}function fx(e){if((We&Qt)===tn){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=H(e)||"ReactComponent",Td!==null){if(Td.has(t))return;Td.add(t)}else Td=new Set([t]);ye(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function tc(e,t){ma&&e.memoizedUpdaters.forEach(function(n){Ls(e,n,t)})}function bA(e,t){var n=G.actQueue;return n!==null?(n.push(t),k3):Hp(e,t)}function yA(e){Iv()&&G.actQueue===null&&ye(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
181
-
182
- When testing, code that causes React state updates should be wrapped into act(...):
183
-
184
- act(() => {
185
- /* fire events that update state */
186
- });
187
- /* assert on the output */
188
-
189
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,H(e))})}function la(e){e!==rl&&e.next===null&&(rl===null?Cd=rl=e:rl=rl.next=e),Od=!0,G.actQueue!==null?Gb||(Gb=!0,px()):Yb||(Yb=!0,px())}function nc(e,t){if(!Jb&&Od){Jb=!0;do for(var n=!1,i=Cd;i!==null;){if(e!==0){var l=i.pendingLanes;if(l===0)var c=0;else{var f=i.suspendedLanes,h=i.pingedLanes;c=(1<<31-yn(42|e)+1)-1,c&=l&~(f&~h),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,mx(i,c))}else c=qe,c=Ca(i,i===ht?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Qi),(c&3)===0||fn(i,c)||(n=!0,mx(i,c));i=i.next}while(n);Jb=!1}}function gA(){eu=window.event,op()}function op(){Od=Gb=Yb=!1;var e=0;Gr!==0&&_A()&&(e=Gr);for(var t=Kt(),n=null,i=Cd;i!==null;){var l=i.next,c=dx(i,t);c===0?(i.next=null,n===null?Cd=l:n.next=l,l===null&&(rl=n)):(n=i,(e!==0||(c&3)!==0)&&(Od=!0)),i=l}It!==Fr&&It!==Ad||nc(e),Gr!==0&&(Gr=0)}function dx(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-yn(c),h=1<<f,y=l[f];y===-1?((h&n)===0||(h&i)!==0)&&(l[f]=Th(h,t)):y<=t&&(e.expiredLanes|=h),c&=~h}if(t=ht,n=qe,n=Ca(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Qi),i=e.callbackNode,n===0||e===t&&(ct===Hi||ct===$i)||e.cancelPendingCommit!==null)return i!==null&&lp(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||fn(e,n)){if(t=n&-n,t!==e.callbackPriority||G.actQueue!==null&&i!==Qb)lp(i);else return t;switch(ao(n)){case rs:case pa:n=Ip;break;case Pa:n=To;break;case If:n=Fp;break;default:n=To}return i=hx.bind(null,e),G.actQueue!==null?(G.actQueue.push(i),n=Qb):n=Hp(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&lp(i),e.callbackPriority=2,e.callbackNode=null,2}function hx(e,t){if(ld=od=!1,eu=window.event,It!==Fr&&It!==Ad)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ks===_d&&(ks=Lb),ec()&&e.callbackNode!==n)return null;var i=qe;return i=Ca(e,e===ht?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Qi),i===0?null:(Yv(e,i,t),dx(e,Kt()),e.callbackNode!=null&&e.callbackNode===n?hx.bind(null,e):null)}function mx(e,t){if(ec())return null;od=ld,ld=!1,Yv(e,t,!0)}function lp(e){e!==Qb&&e!==null&&lD(e)}function px(){G.actQueue!==null&&G.actQueue.push(function(){return op(),null}),I3(function(){(We&(Qt|Jn))!==tn?Hp($p,gA):op()})}function cp(){if(Gr===0){var e=Vi;e===0&&(e=Pf,Pf<<=1,(Pf&261888)===0&&(Pf=256)),Gr=e}return Gr}function bx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(st(e,"action"),kl(""+e))}function yx(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function vA(e,t,n,i,l){if(t==="submit"&&n&&n.stateNode===l){var c=bx((l[gn]||null).action),f=i.submitter;f&&(t=(t=f[gn]||null)?bx(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var h=new Qf("action","action",null,i,l);e.push({event:h,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Gr!==0){var y=f?yx(l,f):new FormData(l),v={pending:!0,data:y,method:l.method,action:c};Object.freeze(v),Cm(n,v,null,y)}}else typeof c=="function"&&(h.preventDefault(),y=f?yx(l,f):new FormData(l),v={pending:!0,data:y,method:l.method,action:c},Object.freeze(v),Cm(n,v,c,y))},currentTarget:l}]})}}function Df(e,t,n){e.currentTarget=n;try{t(e)}catch(i){ob(i)}e.currentTarget=null}function gx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n];e:{var l=void 0,c=i.event;if(i=i.listeners,t)for(var f=i.length-1;0<=f;f--){var h=i[f],y=h.instance,v=h.currentTarget;if(h=h.listener,y!==l&&c.isPropagationStopped())break e;y!==null?ye(y,Df,c,h,v):Df(c,h,v),l=y}else for(f=0;f<i.length;f++){if(h=i[f],y=h.instance,v=h.currentTarget,h=h.listener,y!==l&&c.isPropagationStopped())break e;y!==null?ye(y,Df,c,h,v):Df(c,h,v),l=y}}}}function Ge(e,t){Xb.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[Yp];n===void 0&&(n=t[Yp]=new Set);var i=e+"__bubble";n.has(i)||(vx(t,e,2,!1),n.add(i))}function up(e,t,n){Xb.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var i=0;t&&(i|=4),vx(n,e,i,t)}function fp(e){if(!e[jd]){e[jd]=!0,p1.forEach(function(n){n!=="selectionchange"&&(Xb.has(n)||up(n,!1,e),up(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jd]||(t[jd]=!0,up("selectionchange",!1,t))}}function vx(e,t,n,i){switch(Kx(t)){case rs:var l=WA;break;case pa:l=eD;break;default:l=Dp}n=l.bind(null,t,n,e),l=void 0,!Zp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function dp(e,t,n,i,l){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var f=i.tag;if(f===3||f===4){var h=i.stateNode.containerInfo;if(h===l)break;if(f===4)for(f=i.return;f!==null;){var y=f.tag;if((y===3||y===4)&&f.stateNode.containerInfo===l)return;f=f.return}for(;h!==null;){if(f=Ps(h),f===null)return;if(y=f.tag,y===5||y===6||y===26||y===27){i=c=f;continue e}h=h.parentNode}}i=i.return}Oy(function(){var v=c,z=Mh(n),B=[];e:{var O=K1.get(e);if(O!==void 0){var $=Qf,ce=e;switch(e){case"keypress":if(ku(n)===0)break e;case"keydown":case"keyup":$=QD;break;case"focusin":ce="focus",$=tb;break;case"focusout":ce="blur",$=tb;break;case"beforeblur":case"afterblur":$=tb;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=B1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=zD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=KD;break;case J1:case Q1:case X1:$=LD;break;case Z1:$=e3;break;case"scroll":case"scrollend":$=VD;break;case"wheel":$=n3;break;case"copy":case"cut":case"paste":$=HD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=L1;break;case"toggle":case"beforetoggle":$=a3}var pe=(t&4)!==0,pt=!pe&&(e==="scroll"||e==="scrollend"),Qe=pe?O!==null?O+"Capture":null:O;pe=[];for(var C=v,j;C!==null;){var M=C;if(j=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||j===null||Qe===null||(M=Vl(C,Qe),M!=null&&pe.push(sc(C,M,j))),pt)break;C=C.return}0<pe.length&&(O=new $(O,ce,null,n,z),B.push({event:O,listeners:pe}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",O&&n!==mc&&(ce=n.relatedTarget||n.fromElement)&&(Ps(ce)||ce[Cr]))break e;if(($||O)&&(O=z.window===z?z:(O=z.ownerDocument)?O.defaultView||O.parentWindow:window,$?(ce=n.relatedTarget||n.toElement,$=v,ce=ce?Ps(ce):null,ce!==null&&(pt=W(ce),pe=ce.tag,ce!==pt||pe!==5&&pe!==27&&pe!==6)&&(ce=null)):($=null,ce=v),$!==ce)){if(pe=B1,M="onMouseLeave",Qe="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(pe=L1,M="onPointerLeave",Qe="onPointerEnter",C="pointer"),pt=$==null?O:Oa($),j=ce==null?O:Oa(ce),O=new pe(M,C+"leave",$,n,z),O.target=pt,O.relatedTarget=j,M=null,Ps(z)===v&&(pe=new pe(Qe,C+"enter",ce,n,z),pe.target=j,pe.relatedTarget=pt,M=pe),pt=M,$&&ce)t:{for(pe=xA,Qe=$,C=ce,j=0,M=Qe;M;M=pe(M))j++;M=0;for(var Z=C;Z;Z=pe(Z))M++;for(;0<j-M;)Qe=pe(Qe),j--;for(;0<M-j;)C=pe(C),M--;for(;j--;){if(Qe===C||C!==null&&Qe===C.alternate){pe=Qe;break t}Qe=pe(Qe),C=pe(C)}pe=null}else pe=null;$!==null&&xx(B,O,$,pe,!1),ce!==null&&pt!==null&&xx(B,pt,ce,pe,!0)}}e:{if(O=v?Oa(v):window,$=O.nodeName&&O.nodeName.toLowerCase(),$==="select"||$==="input"&&O.type==="file")var de=zy;else if(Vy(O))if(Y1)de=R_;else{de=O_;var Re=C_}else $=O.nodeName,!$||$.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?v&&Ml(v.elementType)&&(de=zy):de=j_;if(de&&(de=de(e,v))){Uy(B,de,n,z);break e}Re&&Re(e,O,v),e==="focusout"&&v&&O.type==="number"&&v.memoizedProps.value!=null&&hi(O,"number",O.value)}switch(Re=v?Oa(v):window,e){case"focusin":(Vy(Re)||Re.contentEditable==="true")&&(Uo=Re,sb=v,Nc=null);break;case"focusout":Nc=sb=Uo=null;break;case"mousedown":ab=!0;break;case"contextmenu":case"mouseup":case"dragend":ab=!1,Iy(B,n,z);break;case"selectionchange":if(l3)break;case"keydown":case"keyup":Iy(B,n,z)}var _e;if(nb)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Vo?My(e,n)&&(Se="onCompositionEnd"):e==="keydown"&&n.keyCode===P1&&(Se="onCompositionStart");Se&&(H1&&n.locale!=="ko"&&(Vo||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Vo&&(_e=jy()):(Or=z,Kp="value"in Or?Or.value:Or.textContent,Vo=!0)),Re=Tf(v,Se),0<Re.length&&(Se=new q1(Se,e,null,n,z),B.push({event:Se,listeners:Re}),_e?Se.data=_e:(_e=ky(n),_e!==null&&(Se.data=_e)))),(_e=i3?__(e,n):A_(e,n))&&(Se=Tf(v,"onBeforeInput"),0<Se.length&&(Re=new ID("onBeforeInput","beforeinput",null,n,z),B.push({event:Re,listeners:Se}),Re.data=_e)),vA(B,e,v,n,z)}gx(B,t)})}function sc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Tf(e,t){for(var n=t+"Capture",i=[];e!==null;){var l=e,c=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||c===null||(l=Vl(e,n),l!=null&&i.unshift(sc(e,l,c)),l=Vl(e,t),l!=null&&i.push(sc(e,l,c))),e.tag===3)return i;e=e.return}return[]}function xA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xx(e,t,n,i,l){for(var c=t._reactName,f=[];n!==null&&n!==i;){var h=n,y=h.alternate,v=h.stateNode;if(h=h.tag,y!==null&&y===i)break;h!==5&&h!==26&&h!==27||v===null||(y=v,l?(v=Vl(n,c),v!=null&&f.unshift(sc(n,v,y))):l||(v=Vl(n,c),v!=null&&f.push(sc(n,v,y)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}function hp(e,t){N_(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||U1||(U1=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Ti,possibleRegistrationNames:Gp};Ml(e)||typeof t.is=="string"||w_(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Zt(e,t,n,i){t!==n&&(n=Sr(n),Sr(t)!==n&&(i[e]=t))}function NA(e,t,n){t.forEach(function(i){n[wx(i)]=i==="style"?pp(e):e.getAttribute(i)})}function ca(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Nx(e,t){return e=e.namespaceURI===Yf||e.namespaceURI===jo?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Sr(e){return Ta(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Da(e)),lr(e)),(typeof e=="string"?e:""+e).replace(V3,`
190
- `).replace(U3,"")}function Ex(e,t){return t=Sr(t),Sr(e)===t}function ft(e,t,n,i,l,c){switch(n){case"children":typeof i=="string"?(Mu(i,t,!1),t==="body"||t==="textarea"&&i===""||Rl(e,i)):(typeof i=="number"||typeof i=="bigint")&&(Mu(""+i,t,!1),t!=="body"&&Rl(e,""+i));break;case"className":Fs(e,"class",i);break;case"tabIndex":Fs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Fs(e,n,i);break;case"style":Dy(e,i,c);break;case"data":if(t!=="object"){Fs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){console.error(n==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}st(i,n),i=kl(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(i!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof i=="function"&&(l.encType==null&&l.method==null||kd||(kd=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),l.target==null||Md||(Md=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||Rd?t!=="button"||l.type==null||l.type==="submit"||Rd?typeof i=="function"&&(l.name==null||NE||(NE=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),l.formEncType==null&&l.formMethod==null||kd||(kd=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),l.formTarget==null||Md||(Md=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Rd=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Rd=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(n==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof i=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&ft(e,t,"name",l.name,l,null),ft(e,t,"formEncType",l.formEncType,l,null),ft(e,t,"formMethod",l.formMethod,l,null),ft(e,t,"formTarget",l.formTarget,l,null)):(ft(e,t,"encType",l.encType,l,null),ft(e,t,"method",l.method,l,null),ft(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}st(i,n),i=kl(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(typeof i!="function"&&ca(n,i),e.onclick=Ra);break;case"onScroll":i!=null&&(typeof i!="function"&&ca(n,i),Ge("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&ca(n,i),Ge("scrollend",e));break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=i.__html,n!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}st(i,n),n=kl(""+i),e.setAttributeNS(Yi,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?(st(i,n),e.setAttribute(n,""+i)):e.removeAttribute(n);break;case"inert":i!==""||Vd[n]||(Vd[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?(st(i,n),e.setAttribute(n,i)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?(st(i,n),e.setAttribute(n,i)):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):(st(i,n),e.setAttribute(n,i));break;case"popover":Ge("beforetoggle",e),Ge("toggle",e),ws(e,"popover",i);break;case"xlinkActuate":Tn(e,Yi,"xlink:actuate",i);break;case"xlinkArcrole":Tn(e,Yi,"xlink:arcrole",i);break;case"xlinkRole":Tn(e,Yi,"xlink:role",i);break;case"xlinkShow":Tn(e,Yi,"xlink:show",i);break;case"xlinkTitle":Tn(e,Yi,"xlink:title",i);break;case"xlinkType":Tn(e,Yi,"xlink:type",i);break;case"xmlBase":Tn(e,Zb,"xml:base",i);break;case"xmlLang":Tn(e,Zb,"xml:lang",i);break;case"xmlSpace":Tn(e,Zb,"xml:space",i);break;case"is":c!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),ws(e,"is",i);break;case"innerText":case"textContent":break;case"popoverTarget":EE||i==null||typeof i!="object"||(EE=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",i));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=Ty(n),ws(e,n,i)):Ti.hasOwnProperty(n)&&i!=null&&typeof i!="function"&&ca(n,i)}}function mp(e,t,n,i,l,c){switch(n){case"style":Dy(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=i.__html,n!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof i=="string"?Rl(e,i):(typeof i=="number"||typeof i=="bigint")&&Rl(e,""+i);break;case"onScroll":i!=null&&(typeof i!="function"&&ca(n,i),Ge("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!="function"&&ca(n,i),Ge("scrollend",e));break;case"onClick":i!=null&&(typeof i!="function"&&ca(n,i),e.onclick=Ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ti.hasOwnProperty(n))i!=null&&typeof i!="function"&&ca(n,i);else e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),t=n.slice(2,l?n.length-7:void 0),c=e[gn]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,l),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,l);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):ws(e,n,i)}}}function on(e,t,n){switch(hp(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",e),Ge("load",e);var i=!1,l=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ft(e,t,c,f,n,null)}}l&&ft(e,t,"srcSet",n.srcSet,n,null),i&&ft(e,t,"src",n.src,n,null);return;case"input":Is("input",n),Ge("invalid",e);var h=c=f=l=null,y=null,v=null;for(i in n)if(n.hasOwnProperty(i)){var z=n[i];if(z!=null)switch(i){case"name":l=z;break;case"type":f=z;break;case"checked":y=z;break;case"defaultChecked":v=z;break;case"value":c=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ft(e,t,i,z,n,null)}}Ys(e,n),co(e,c,h,y,v,f,l,!1);return;case"select":Is("select",n),Ge("invalid",e),i=f=c=null;for(l in n)if(n.hasOwnProperty(l)&&(h=n[l],h!=null))switch(l){case"value":c=h;break;case"defaultValue":f=h;break;case"multiple":i=h;default:ft(e,t,l,h,n,null)}jl(e,n),t=c,n=f,e.multiple=!!i,t!=null?Ut(e,!!i,t,!1):n!=null&&Ut(e,!!i,n,!0);return;case"textarea":Is("textarea",n),Ge("invalid",e),c=l=i=null;for(f in n)if(n.hasOwnProperty(f)&&(h=n[f],h!=null))switch(f){case"value":i=h;break;case"defaultValue":l=h;break;case"children":c=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ft(e,t,f,h,n,null)}N(e,n),_(e,i,l,c);return;case"option":Ol(e,n);for(y in n)if(n.hasOwnProperty(y)&&(i=n[y],i!=null))switch(y){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:ft(e,t,y,i,n,null)}return;case"dialog":Ge("beforetoggle",e),Ge("toggle",e),Ge("cancel",e),Ge("close",e);break;case"iframe":case"object":Ge("load",e);break;case"video":case"audio":for(i=0;i<Zc.length;i++)Ge(Zc[i],e);break;case"image":Ge("error",e),Ge("load",e);break;case"details":Ge("toggle",e);break;case"embed":case"source":case"link":Ge("error",e),Ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(v in n)if(n.hasOwnProperty(v)&&(i=n[v],i!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ft(e,t,v,i,n,null)}return;default:if(Ml(t)){for(z in n)n.hasOwnProperty(z)&&(i=n[z],i!==void 0&&mp(e,t,z,i,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(i=n[h],i!=null&&ft(e,t,h,i,n,null))}function EA(e,t,n,i){switch(hp(t,i),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,c=null,f=null,h=null,y=null,v=null,z=null;for($ in n){var B=n[$];if(n.hasOwnProperty($)&&B!=null)switch($){case"checked":break;case"value":break;case"defaultValue":y=B;default:i.hasOwnProperty($)||ft(e,t,$,null,i,B)}}for(var O in i){var $=i[O];if(B=n[O],i.hasOwnProperty(O)&&($!=null||B!=null))switch(O){case"type":c=$;break;case"name":l=$;break;case"checked":v=$;break;case"defaultChecked":z=$;break;case"value":f=$;break;case"defaultValue":h=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:$!==B&&ft(e,t,O,$,i,B)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,i=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,t||!i||xE||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),xE=!0),!t||i||vE||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),vE=!0),Gs(e,f,h,y,v,z,c,l);return;case"select":$=f=h=O=null;for(c in n)if(y=n[c],n.hasOwnProperty(c)&&y!=null)switch(c){case"value":break;case"multiple":$=y;default:i.hasOwnProperty(c)||ft(e,t,c,null,i,y)}for(l in i)if(c=i[l],y=n[l],i.hasOwnProperty(l)&&(c!=null||y!=null))switch(l){case"value":O=c;break;case"defaultValue":h=c;break;case"multiple":f=c;default:c!==y&&ft(e,t,l,c,i,y)}i=h,t=f,n=$,O!=null?Ut(e,!!t,O,!1):!!n!=!!t&&(i!=null?Ut(e,!!t,i,!0):Ut(e,!!t,t?[]:"",!1));return;case"textarea":$=O=null;for(h in n)if(l=n[h],n.hasOwnProperty(h)&&l!=null&&!i.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:ft(e,t,h,null,i,l)}for(f in i)if(l=i[f],c=n[f],i.hasOwnProperty(f)&&(l!=null||c!=null))switch(f){case"value":O=l;break;case"defaultValue":$=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==c&&ft(e,t,f,l,i,c)}A(e,O,$);return;case"option":for(var ce in n)if(O=n[ce],n.hasOwnProperty(ce)&&O!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:ft(e,t,ce,null,i,O)}for(y in i)if(O=i[y],$=n[y],i.hasOwnProperty(y)&&O!==$&&(O!=null||$!=null))switch(y){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:ft(e,t,y,O,i,$)}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 pe in n)O=n[pe],n.hasOwnProperty(pe)&&O!=null&&!i.hasOwnProperty(pe)&&ft(e,t,pe,null,i,O);for(v in i)if(O=i[v],$=n[v],i.hasOwnProperty(v)&&O!==$&&(O!=null||$!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ft(e,t,v,O,i,$)}return;default:if(Ml(t)){for(var pt in n)O=n[pt],n.hasOwnProperty(pt)&&O!==void 0&&!i.hasOwnProperty(pt)&&mp(e,t,pt,void 0,i,O);for(z in i)O=i[z],$=n[z],!i.hasOwnProperty(z)||O===$||O===void 0&&$===void 0||mp(e,t,z,O,i,$);return}}for(var Qe in n)O=n[Qe],n.hasOwnProperty(Qe)&&O!=null&&!i.hasOwnProperty(Qe)&&ft(e,t,Qe,null,i,O);for(B in i)O=i[B],$=n[B],!i.hasOwnProperty(B)||O===$||O==null&&$==null||ft(e,t,B,O,i,$)}function wx(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function pp(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var i=e[n];t[i]=e.getPropertyValue(i)}return t}function Sx(e,t,n){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var i,l=i="",c;for(c in t)if(t.hasOwnProperty(c)){var f=t[c];f!=null&&typeof f!="boolean"&&f!==""&&(c.indexOf("--")===0?(so(f,c),i+=l+c+":"+(""+f).trim()):typeof f!="number"||f===0||k1.has(c)?(so(f,c),i+=l+c.replace(C1,"-$1").toLowerCase().replace(O1,"-ms-")+":"+(""+f).trim()):i+=l+c.replace(C1,"-$1").toLowerCase().replace(O1,"-ms-")+":"+f+"px",l=";")}i=i||null,t=e.getAttribute("style"),t!==i&&(i=Sr(i),Sr(t)!==i&&(n.style=pp(e)))}}function as(e,t,n,i,l,c){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(st(i,t),e===""+i)return}Zt(t,e,i,c)}function _x(e,t,n,i,l,c){if(l.delete(n),e=e.getAttribute(n),e===null){switch(typeof i){case"function":case"symbol":return}if(!i)return}else switch(typeof i){case"function":case"symbol":break;default:if(i)return}Zt(t,e,i,c)}function bp(e,t,n,i,l,c){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":return}else if(i!=null)switch(typeof i){case"function":case"symbol":break;default:if(st(i,n),e===""+i)return}Zt(t,e,i,c)}function Ax(e,t,n,i,l,c){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(i))return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(!isNaN(i)&&(st(i,t),e===""+i))return}Zt(t,e,i,c)}function yp(e,t,n,i,l,c){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(st(i,t),n=kl(""+i),e===n)return}Zt(t,e,i,c)}function Dx(e,t,n,i){for(var l={},c=new Set,f=e.attributes,h=0;h<f.length;h++)switch(f[h].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:c.add(f[h].name)}if(Ml(t)){for(var y in n)if(n.hasOwnProperty(y)){var v=n[y];if(v!=null){if(Ti.hasOwnProperty(y))typeof v!="function"&&ca(y,v);else if(n.suppressHydrationWarning!==!0)switch(y){case"children":typeof v!="string"&&typeof v!="number"||Zt("children",e.textContent,v,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,v=v?v.__html:void 0,v!=null&&(v=Nx(e,v),Zt(y,f,v,l));continue;case"style":c.delete(y),Sx(e,v,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":c.delete(y.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",y);continue;case"className":c.delete("class"),f=fr(e,"class",v),Zt("className",f,v,l);continue;default:i.context===tr&&t!=="svg"&&t!=="math"?c.delete(y.toLowerCase()):c.delete(y),f=fr(e,y,v),Zt(y,f,v,l)}}}}else for(v in n)if(n.hasOwnProperty(v)&&(y=n[v],y!=null)){if(Ti.hasOwnProperty(v))typeof y!="function"&&ca(v,y);else if(n.suppressHydrationWarning!==!0)switch(v){case"children":typeof y!="string"&&typeof y!="number"||Zt("children",e.textContent,y,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,y=y?y.__html:void 0,y!=null&&(y=Nx(e,y),f!==y&&(l[v]={__html:f}));continue;case"className":as(e,v,"class",y,c,l);continue;case"tabIndex":as(e,v,"tabindex",y,c,l);continue;case"style":c.delete(v),Sx(e,y,l);continue;case"multiple":c.delete(v),Zt(v,e.multiple,y,l);continue;case"muted":c.delete(v),Zt(v,e.muted,y,l);continue;case"autoFocus":c.delete("autofocus"),Zt(v,e.autofocus,y,l);continue;case"data":if(t!=="object"){c.delete(v),f=e.getAttribute("data"),Zt(v,f,y,l);continue}case"src":case"href":if(!(y!==""||t==="a"&&v==="href"||t==="object"&&v==="data")){console.error(v==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',v,v);continue}yp(e,v,v,y,c,l);continue;case"action":case"formAction":if(f=e.getAttribute(v),typeof y=="function"){c.delete(v.toLowerCase()),v==="formAction"?(c.delete("name"),c.delete("formenctype"),c.delete("formmethod"),c.delete("formtarget")):(c.delete("enctype"),c.delete("method"),c.delete("target"));continue}else if(f===z3){c.delete(v.toLowerCase()),Zt(v,"function",y,l);continue}yp(e,v,v.toLowerCase(),y,c,l);continue;case"xlinkHref":yp(e,v,"xlink:href",y,c,l);continue;case"contentEditable":bp(e,v,"contenteditable",y,c,l);continue;case"spellCheck":bp(e,v,"spellcheck",y,c,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":bp(e,v,v,y,c,l);continue;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":_x(e,v,v.toLowerCase(),y,c,l);continue;case"capture":case"download":e:{h=e;var z=f=v,B=l;if(c.delete(z),h=h.getAttribute(z),h===null)switch(typeof y){case"undefined":case"function":case"symbol":break e;default:if(y===!1)break e}else if(y!=null)switch(typeof y){case"function":case"symbol":break;case"boolean":if(y===!0&&h==="")break e;break;default:if(st(y,f),h===""+y)break e}Zt(f,h,y,B)}continue;case"cols":case"rows":case"size":case"span":e:{if(h=e,z=f=v,B=l,c.delete(z),h=h.getAttribute(z),h===null)switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(y)||1>y)break e}else if(y!=null)switch(typeof y){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(y)||1>y)&&(st(y,f),h===""+y))break e}Zt(f,h,y,B)}continue;case"rowSpan":Ax(e,v,"rowspan",y,c,l);continue;case"start":Ax(e,v,v,y,c,l);continue;case"xHeight":as(e,v,"x-height",y,c,l);continue;case"xlinkActuate":as(e,v,"xlink:actuate",y,c,l);continue;case"xlinkArcrole":as(e,v,"xlink:arcrole",y,c,l);continue;case"xlinkRole":as(e,v,"xlink:role",y,c,l);continue;case"xlinkShow":as(e,v,"xlink:show",y,c,l);continue;case"xlinkTitle":as(e,v,"xlink:title",y,c,l);continue;case"xlinkType":as(e,v,"xlink:type",y,c,l);continue;case"xmlBase":as(e,v,"xml:base",y,c,l);continue;case"xmlLang":as(e,v,"xml:lang",y,c,l);continue;case"xmlSpace":as(e,v,"xml:space",y,c,l);continue;case"inert":y!==""||Vd[v]||(Vd[v]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",v)),_x(e,v,v,y,c,l);continue;default:if(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N"){h=Ty(v),f=!1,i.context===tr&&t!=="svg"&&t!=="math"?c.delete(h.toLowerCase()):(z=v.toLowerCase(),z=Gf.hasOwnProperty(z)&&Gf[z]||null,z!==null&&z!==v&&(f=!0,c.delete(z)),c.delete(h));e:if(z=e,B=h,h=y,ur(B))if(z.hasAttribute(B))z=z.getAttribute(B),st(h,B),h=z===""+h?h:z;else{switch(typeof h){case"function":case"symbol":break e;case"boolean":if(z=B.toLowerCase().slice(0,5),z!=="data-"&&z!=="aria-")break e}h=h===void 0?void 0:null}else h=void 0;f||Zt(v,h,y,l)}}}return 0<c.size&&n.suppressHydrationWarning!==!0&&NA(e,c,l),Object.keys(l).length===0?null:l}function wA(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Tx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SA(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],c=l.transferSize,f=l.initiatorType,h=l.duration;if(c&&h&&Tx(f)){for(f=0,h=l.responseEnd,i+=1;i<n.length;i++){var y=n[i],v=y.startTime;if(v>h)break;var z=y.transferSize,B=y.initiatorType;z&&Tx(B)&&(y=y.responseEnd,f+=z*(y<h?1:(h-v)/(y-v)))}if(--i,t+=8*(c+f)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Cf(e){return e.nodeType===9?e:e.ownerDocument}function Cx(e){switch(e){case jo:return ol;case Yf:return zd;default:return tr}}function Ox(e,t){if(e===tr)switch(t){case"svg":return ol;case"math":return zd;default:return tr}return e===ol&&t==="foreignObject"?tr:e}function gp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function _A(){var e=window.event;return e&&e.type==="popstate"?e===t0?!1:(t0=e,!0):(t0=null,!1)}function ac(){var e=window.event;return e&&e!==eu?e.type:null}function rc(){var e=window.event;return e&&e!==eu?e.timeStamp:-1.1}function AA(e){setTimeout(function(){throw e})}function DA(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function TA(){}function CA(e,t,n,i){EA(e,t,n,i),e[gn]=i}function jx(e){Rl(e,"")}function OA(e,t,n){e.nodeValue=n}function Rx(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[gn]||null;if(t!==null){var n=Un(e);n!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,ye(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,ye(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function _r(e){return e==="head"}function jA(e,t){e.removeChild(t)}function RA(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function Mx(e,t){var n=t,i=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n===Wc||n===Ud){if(i===0){e.removeChild(l),_o(t);return}i--}else if(n===Kc||n===Jr||n===Ji||n===il||n===Gi)i++;else if(n===q3)ic(e.ownerDocument.documentElement);else if(n===P3){n=e.ownerDocument.head,ic(n);for(var c=n.firstChild;c;){var f=c.nextSibling,h=c.nodeName;c[hc]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n===L3&&ic(e.ownerDocument.body);n=l}while(n);_o(t)}function kx(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n===Wc){if(e===0)break;e--}else n!==Kc&&n!==Jr&&n!==Ji&&n!==il||e++;n=i}while(n)}function MA(e){kx(e,!0)}function kA(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function VA(e){e.nodeValue=""}function UA(e){kx(e,!1)}function zA(e,t){t=t[H3],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function BA(e,t){e.nodeValue=t}function vp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vp(n),cr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function qA(e,t,n,i){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[hc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){st(l.name,"name");var c=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Hn(e.nextSibling),e===null)break}return null}function LA(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Hn(e.nextSibling),e===null))return null;return e}function Vx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Hn(e.nextSibling),e===null))return null;return e}function xp(e){return e.data===Jr||e.data===Ji}function Np(e){return e.data===il||e.data===Jr&&e.ownerDocument.readyState!==SE}function PA(e,t){var n=e.ownerDocument;if(e.data===Ji)e._reactRetry=t;else if(e.data!==Jr||n.readyState!==SE)t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Kc||t===il||t===Jr||t===Ji||t===Gi||t===Kb||t===wE)break;if(t===Wc||t===Ud)return null}}return e}function Ux(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},i=e.attributes,l=0;l<i.length;l++){var c=i[l];n[wx(c.name)]=c.name.toLowerCase()==="style"?pp(e):c.value}return{type:t,props:n}}return e.nodeType===8?e.data===Gi?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function zx(e,t,n){return n===null||n[B3]!==!0?(e.nodeValue===t?e=null:(t=Sr(t),e=Sr(e.nodeValue)===t?null:e.nodeValue),e):null}function Ep(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Wc||n===Ud){if(t===0)return Hn(e.nextSibling);t--}else n!==Kc&&n!==il&&n!==Jr&&n!==Ji&&n!==Gi||t++}e=e.nextSibling}return null}function Bx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Kc||n===il||n===Jr||n===Ji||n===Gi){if(t===0)return e;t--}else n!==Wc&&n!==Ud||t++}e=e.previousSibling}return null}function HA(e){_o(e)}function $A(e){_o(e)}function IA(e){_o(e)}function qx(e,t,n,i,l){switch(l&&Rh(e,i.ancestorInfo),t=Cf(n),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function FA(e,t,n,i){if(!n[Cr]&&Un(n)){var l=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",l,l,l)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(l=n.attributes;l.length;)n.removeAttributeNode(l[0]);on(n,e,t),n[ln]=i,n[gn]=t}function ic(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);cr(e)}function Of(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Lx(e,t,n){var i=ll;if(i&&typeof t=="string"&&t){var l=Tt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),OE.has(l)||(OE.add(l),e={rel:e,crossOrigin:n,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),on(t,"link",e),Rt(t),i.head.appendChild(t)))}}function Px(e,t,n,i){var l=(l=Dr.current)?Of(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=wo(n.href),t=Hs(l).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=wo(n.href);var c=Hs(l).hoistableStyles,f=c.get(e);if(!f&&(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:Xi,preload:null}},c.set(e,f),(c=l.querySelector(oc(e)))&&!c._p&&(f.instance=c,f.state.loading=tu|bs),!ys.has(e))){var h={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};ys.set(e,h),c||YA(l,e,h,f.state)}if(t&&i===null)throw n=`
191
-
192
- - `+jf(t)+`
193
- + `+jf(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return f}if(t&&i!==null)throw n=`
194
-
195
- - `+jf(t)+`
196
- + `+jf(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=So(n),t=Hs(l).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function jf(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):Ts.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):Ts.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):Ts.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function wo(e){return'href="'+Tt(e)+'"'}function oc(e){return'link[rel="stylesheet"]['+e+"]"}function Hx(e){return Ie({},e,{"data-precedence":e.precedence,precedence:null})}function YA(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=tu:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=tu}),t.addEventListener("error",function(){return i.loading|=TE}),on(t,"link",n),Rt(t),e.head.appendChild(t))}function So(e){return'[src="'+Tt(e)+'"]'}function lc(e){return"script[async]"+e}function $x(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Tt(n.href)+'"]');if(i)return t.instance=i,Rt(i),i;var l=Ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Rt(i),on(i,"style",l),Rf(i,n.precedence,e),t.instance=i;case"stylesheet":l=wo(n.href);var c=e.querySelector(oc(l));if(c)return t.state.loading|=bs,t.instance=c,Rt(c),c;i=Hx(n),(l=ys.get(l))&&wp(i,l),c=(e.ownerDocument||e).createElement("link"),Rt(c);var f=c;return f._p=new Promise(function(h,y){f.onload=h,f.onerror=y}),on(c,"link",i),t.state.loading|=bs,Rf(c,n.precedence,e),t.instance=c;case"script":return c=So(n.src),(l=e.querySelector(lc(c)))?(t.instance=l,Rt(l),l):(i=n,(l=ys.get(c))&&(i=Ie({},n),Sp(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),Rt(l),on(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&bs)===Xi&&(i=t.instance,t.state.loading|=bs,Rf(i,n.precedence,e));return t.instance}function Rf(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,c=l,f=0;f<i.length;f++){var h=i[f];if(h.dataset.precedence===t)c=h;else if(c!==l)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function wp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Ix(e,t,n){if(Bd===null){var i=new Map,l=Bd=new Map;l.set(n,i)}else l=Bd,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var c=n[l];if(!(c[hc]||c[ln]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!==jo){var f=c.getAttribute(t)||"";f=e+f;var h=i.get(f);h?h.push(c):i.set(f,[c])}}return i}function Fx(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function GA(e,t,n){var i=!n.ancestorInfo.containerTagInScope;if(n.context===ol||t.itemProp!=null)return!i||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){i&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var l=t.onError,c=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),l&&n.push("`onError`"),c!=null&&n.push("`disabled`"),l=wA(n,"and"),l+=n.length===1?" prop":" props",c=n.length===1?"an "+l:"the "+l,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,c,l)}i&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&i&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){i&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":i&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Yx(e){return!(e.type==="stylesheet"&&(e.state.loading&CE)===Xi)}function JA(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&bs)===Xi){if(n.instance===null){var l=wo(i.href),c=t.querySelector(oc(l));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Mf.bind(e),t.then(e,e)),n.state.loading|=bs,n.instance=c,Rt(c);return}c=t.ownerDocument||t,i=Hx(i),(l=ys.get(l))&&wp(i,l),c=c.createElement("link"),Rt(c);var f=c;f._p=new Promise(function(h,y){f.onload=h,f.onerror=y}),on(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&CE)===Xi&&(e.count++,n=Mf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}function QA(e,t){return e.stylesheets&&e.count===0&&kf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&kf(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},F3+t);0<e.imgBytes&&s0===0&&(s0=125*SA()*G3);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&kf(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>s0?50:Y3)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function Mf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function kf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qd=new Map,t.forEach(XA,e),qd=null,Mf.call(e))}function XA(e,t){if(!(t.state.loading&bs)){var n=qd.get(e);if(n)var i=n.get(a0);else{n=new Map,qd.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<l.length;c++){var f=l[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),i=f)}i&&n.set(a0,i)}l=t.instance,f=l.getAttribute("data-precedence"),c=n.get(f)||i,c===i&&n.set(a0,l),n.set(f,l),this.count++,i=Mf.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),c?c.parentNode.insertBefore(l,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=bs}}function ZA(e,t,n,i,l,c,f,h,y){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Qi,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Al(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.hiddenUpdates=Al(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function Gx(e,t,n,i,l,c,f,h,y,v,z,B){return e=new ZA(e,t,n,f,y,v,z,B,h),t=y3,c===!0&&(t|=mn|Cs),t|=ze,c=D(3,null,null,t),e.current=c,c.stateNode=e,t=Kh(),Ni(t),e.pooledCache=t,Ni(t),c.memoizedState={element:i,isDehydrated:n,cache:t},sm(c),e}function Jx(e){return e?(e=Mr,e):Mr}function _p(e,t,n,i,l,c){if(hn&&typeof hn.onScheduleFiberRoot=="function")try{hn.onScheduleFiberRoot(Co,i,n)}catch(f){ha||(ha=!0,console.error("React instrumentation encountered an error: %o",f))}l=Jx(l),i.context===null?i.context=l:i.pendingContext=l,da&&In!==null&&!kE&&(kE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
197
-
198
- Check the render method of %s.`,H(In)||"Unknown")),i=gr(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",c),i.callback=c),n=vr(e,i,t),n!==null&&(Zs(t,"root.render()",null),At(n,e,t),Hl(n,e,t))}function Qx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ap(e,t){Qx(e,t),(e=e.alternate)&&Qx(e,t)}function Xx(e){if(e.tag===13||e.tag===31){var t=dn(e,67108864);t!==null&&At(t,e,67108864),Ap(e,67108864)}}function Zx(e){if(e.tag===13||e.tag===31){var t=Pn(e);t=Tl(t);var n=dn(e,t);n!==null&&At(n,e,t),Ap(e,t)}}function KA(){return In}function WA(e,t,n,i){var l=G.T;G.T=null;var c=rt.p;try{rt.p=rs,Dp(e,t,n,i)}finally{rt.p=c,G.T=l}}function eD(e,t,n,i){var l=G.T;G.T=null;var c=rt.p;try{rt.p=pa,Dp(e,t,n,i)}finally{rt.p=c,G.T=l}}function Dp(e,t,n,i){if(Pd){var l=Tp(i);if(l===null)dp(e,t,i,Hd,n),Wx(e,i);else if(tD(l,e,t,n,i))i.stopPropagation();else if(Wx(e,i),t&4&&-1<Q3.indexOf(e)){for(;l!==null;){var c=Un(l);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=qs(c.pendingLanes);if(f!==0){var h=c;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var y=1<<31-yn(f);h.entanglements[1]|=y,f&=~y}la(c),(We&(Qt|Jn))===tn&&(Sd=Kt()+lE,nc(0))}}break;case 31:case 13:h=dn(c,2),h!==null&&At(h,c,2),xo(),Ap(c,2)}if(c=Tp(i),c===null&&dp(e,t,i,Hd,n),c===l)break;l=c}l!==null&&i.stopPropagation()}else dp(e,t,i,null,n)}}function Tp(e){return e=Mh(e),Cp(e)}function Cp(e){if(Hd=null,e=Ps(e),e!==null){var t=W(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=te(t),e!==null)return e;e=null}else if(n===31){if(e=Ne(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hd=e,null}function Kx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return rs;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 pa;case"message":switch(fD()){case $p:return rs;case Ip:return pa;case To:case dD:return Pa;case Fp:return If;default:return Pa}default:return Pa}}function Wx(e,t){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Xr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":su.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":au.delete(t.pointerId)}}function cc(e,t,n,i,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[l]},t!==null&&(t=Un(t),t!==null&&Xx(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function tD(e,t,n,i,l){switch(t){case"focusin":return Qr=cc(Qr,e,t,n,i,l),!0;case"dragenter":return Xr=cc(Xr,e,t,n,i,l),!0;case"mouseover":return Zr=cc(Zr,e,t,n,i,l),!0;case"pointerover":var c=l.pointerId;return su.set(c,cc(su.get(c)||null,e,t,n,i,l)),!0;case"gotpointercapture":return c=l.pointerId,au.set(c,cc(au.get(c)||null,e,t,n,i,l)),!0}return!1}function e1(e){var t=Ps(e.target);if(t!==null){var n=W(t);if(n!==null){if(t=n.tag,t===13){if(t=te(n),t!==null){e.blockedOn=t,io(e.priority,function(){Zx(n)});return}}else if(t===31){if(t=Ne(n),t!==null){e.blockedOn=t,io(e.priority,function(){Zx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tp(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n),l=i;mc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),mc=l,n.target.dispatchEvent(i),mc===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),mc=null}else return t=Un(n),t!==null&&Xx(t),e.blockedOn=n,!1;t.shift()}return!0}function t1(e,t,n){Vf(e)&&n.delete(t)}function nD(){r0=!1,Qr!==null&&Vf(Qr)&&(Qr=null),Xr!==null&&Vf(Xr)&&(Xr=null),Zr!==null&&Vf(Zr)&&(Zr=null),su.forEach(t1),au.forEach(t1)}function Uf(e,t){e.blockedOn===t&&(e.blockedOn=null,r0||(r0=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,nD)))}function n1(e){$d!==e&&($d=e,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,function(){$d===e&&($d=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if(Cp(i||n)===null)continue;break}var c=Un(n);c!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:l,method:n.method,action:i},Object.freeze(n),Cm(c,n,i,l))}}))}function _o(e){function t(y){return Uf(y,e)}Qr!==null&&Uf(Qr,e),Xr!==null&&Uf(Xr,e),Zr!==null&&Uf(Zr,e),su.forEach(t),au.forEach(t);for(var n=0;n<Kr.length;n++){var i=Kr[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Kr.length&&(n=Kr[0],n.blockedOn===null);)e1(n),n.blockedOn===null&&Kr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],c=n[i+1],f=l[gn]||null;if(typeof c=="function")f||n1(n);else if(f){var h=null;if(c&&c.hasAttribute("formAction")){if(l=c,f=c[gn]||null)h=f.formAction;else if(Cp(l)!==null)continue}else h=f.action;typeof h=="function"?n[i+1]=h:(n.splice(i,3),i-=3),n1(n)}}}function s1(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return l=f})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Op(e){this._internalRoot=e}function zf(e){this._internalRoot=e}function a1(e){e[Cr]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var zt=MT(),jp=oS(),sD=nT(),Ie=Object.assign,aD=Symbol.for("react.element"),ua=Symbol.for("react.transitional.element"),Ao=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),Bf=Symbol.for("react.strict_mode"),Rp=Symbol.for("react.profiler"),Mp=Symbol.for("react.consumer"),fa=Symbol.for("react.context"),uc=Symbol.for("react.forward_ref"),kp=Symbol.for("react.suspense"),Vp=Symbol.for("react.suspense_list"),qf=Symbol.for("react.memo"),$n=Symbol.for("react.lazy"),Up=Symbol.for("react.activity"),rD=Symbol.for("react.memo_cache_sentinel"),r1=Symbol.iterator,iD=Symbol.for("react.client.reference"),Gt=Array.isArray,G=jp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt=sD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oD=Object.freeze({pending:!1,data:null,method:null,action:null}),zp=[],Bp=[],La=-1,Ar=oe(null),fc=oe(null),Dr=oe(null),Lf=oe(null),dc=0,i1,o1,l1,c1,u1,f1,d1;Oe.__reactDisabledLog=!0;var qp,h1,Lp=!1,Pp=new(typeof WeakMap=="function"?WeakMap:Map),In=null,da=!1,Ts=Object.prototype.hasOwnProperty,Hp=zt.unstable_scheduleCallback,lD=zt.unstable_cancelCallback,cD=zt.unstable_shouldYield,uD=zt.unstable_requestPaint,Kt=zt.unstable_now,fD=zt.unstable_getCurrentPriorityLevel,$p=zt.unstable_ImmediatePriority,Ip=zt.unstable_UserBlockingPriority,To=zt.unstable_NormalPriority,dD=zt.unstable_LowPriority,Fp=zt.unstable_IdlePriority,hD=zt.log,mD=zt.unstable_setDisableYieldValue,Co=null,hn=null,ha=!1,ma=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",yn=Math.clz32?Math.clz32:ui,pD=Math.log,bD=Math.LN2,Pf=256,Hf=262144,$f=4194304,rs=2,pa=8,Pa=32,If=268435456,Tr=Math.random().toString(36).slice(2),ln="__reactFiber$"+Tr,gn="__reactProps$"+Tr,Cr="__reactContainer$"+Tr,Yp="__reactEvents$"+Tr,yD="__reactListeners$"+Tr,gD="__reactHandles$"+Tr,m1="__reactResources$"+Tr,hc="__reactMarker$"+Tr,p1=new Set,Ti={},Gp={},vD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},xD=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]*$"),b1={},y1={},ND=/[\n"\\]/g,g1=!1,v1=!1,x1=!1,N1=!1,E1=!1,w1=!1,S1=["value","defaultValue"],_1=!1,A1=/["'&<>\n\t]|^\s|\s$/,ED="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),D1="applet caption html table td th marquee object template foreignObject desc title".split(" "),wD=D1.concat(["button"]),SD="dd dt li option optgroup p rp rt".split(" "),T1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ff={},Jp={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},C1=/([A-Z])/g,O1=/^ms-/,_D=/^(?:webkit|moz|o)[A-Z]/,AD=/^-ms-/,DD=/-(.)/g,j1=/;\s*$/,Oo={},Qp={},R1=!1,M1=!1,k1=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(" ")),Yf="http://www.w3.org/1998/Math/MathML",jo="http://www.w3.org/2000/svg",TD=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"]]),Gf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},V1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Ro={},CD=RegExp("^(aria)-[: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]*$"),OD=RegExp("^(aria)[A-Z][: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]*$"),U1=!1,vn={},z1=/^on./,jD=/^on[^A-Z]/,RD=RegExp("^(aria)-[: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]*$"),MD=RegExp("^(aria)[A-Z][: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]*$"),kD=/^[\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,mc=null,Mo=null,ko=null,Xp=!1,ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zp=!1;if(ba)try{var pc={};Object.defineProperty(pc,"passive",{get:function(){Zp=!0}}),window.addEventListener("test",pc,pc),window.removeEventListener("test",pc,pc)}catch{Zp=!1}var Or=null,Kp=null,Jf=null,Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qf=Cn(Ci),bc=Ie({},Ci,{view:0,detail:0}),VD=Cn(bc),Wp,eb,yc,Xf=Ie({},bc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yc&&(yc&&e.type==="mousemove"?(Wp=e.screenX-yc.screenX,eb=e.screenY-yc.screenY):eb=Wp=0,yc=e),Wp)},movementY:function(e){return"movementY"in e?e.movementY:eb}}),B1=Cn(Xf),UD=Ie({},Xf,{dataTransfer:0}),zD=Cn(UD),BD=Ie({},bc,{relatedTarget:0}),tb=Cn(BD),qD=Ie({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),LD=Cn(qD),PD=Ie({},Ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),HD=Cn(PD),$D=Ie({},Ci,{data:0}),q1=Cn($D),ID=q1,FD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YD={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"},GD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},JD=Ie({},bc,{key:function(e){if(e.key){var t=FD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ku(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?YD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kh,charCode:function(e){return e.type==="keypress"?ku(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ku(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QD=Cn(JD),XD=Ie({},Xf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),L1=Cn(XD),ZD=Ie({},bc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kh}),KD=Cn(ZD),WD=Ie({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),e3=Cn(WD),t3=Ie({},Xf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),n3=Cn(t3),s3=Ie({},Ci,{newState:0,oldState:0}),a3=Cn(s3),r3=[9,13,27,32],P1=229,nb=ba&&"CompositionEvent"in window,gc=null;ba&&"documentMode"in document&&(gc=document.documentMode);var i3=ba&&"TextEvent"in window&&!gc,H1=ba&&(!nb||gc&&8<gc&&11>=gc),$1=32,I1=String.fromCharCode($1),F1=!1,Vo=!1,o3={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},vc=null,xc=null,Y1=!1;ba&&(Y1=D_("input")&&(!document.documentMode||9<document.documentMode));var xn=typeof Object.is=="function"?Object.is:M_,l3=ba&&"documentMode"in document&&11>=document.documentMode,Uo=null,sb=null,Nc=null,ab=!1,zo={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},rb={},G1={};ba&&(G1=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);var J1=pi("animationend"),Q1=pi("animationiteration"),X1=pi("animationstart"),c3=pi("transitionrun"),u3=pi("transitionstart"),f3=pi("transitioncancel"),Z1=pi("transitionend"),K1=new Map,ib="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(" ");ib.push("scrollEnd");var W1=0;if(typeof performance=="object"&&typeof performance.now=="function")var d3=performance,eN=function(){return d3.now()};else{var h3=Date;eN=function(){return h3.now()}}var ob=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},m3="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Zf=0,lb=1,cb=2,ub=3,Kf="– ",Wf="+ ",tN="  ",yt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",is="Components ⚛",Je="Scheduler ⚛",Ze="Blocking",jr=!1,Ha={color:"primary",properties:null,tooltipText:"",track:is},Rr={start:-0,end:-0,detail:{devtools:Ha}},p3=["Changed Props",""],nN="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",b3=["Changed Props",nN],Ec=1,$a=2,os=[],Bo=0,fb=0,Mr={};Object.freeze(Mr);var ls=null,qo=null,Te=0,y3=1,ze=2,mn=8,Cs=16,g3=32,sN=!1;try{var aN=Object.preventExtensions({})}catch{sN=!0}var db=new WeakMap,Lo=[],Po=0,ed=null,wc=0,cs=[],us=0,Oi=null,Ia=1,Fa="",cn=null,gt=null,Ye=!1,ya=!1,Fn=null,kr=null,fs=!1,hb=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),mb=oe(null),pb=oe(null),rN={},td=null,Ho=null,$o=!1,v3=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},x3=zt.unstable_scheduleCallback,N3=zt.unstable_NormalPriority,Bt={$$typeof:fa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},qt=zt.unstable_now,nd=console.createTask?console.createTask:function(){return null},Sc=1,sd=2,Wt=-0,Vr=-0,Ya=-0,Ga=null,Nn=-1.1,ji=-0,Et=-0,Ae=-1.1,De=-1.1,Nt=null,Dt=!1,Ri=-0,ga=-1.1,_c=null,Ur=0,bb=null,yb=null,Mi=-1.1,Ac=null,Io=-1.1,ad=-1.1,Ja=-0,Qa=-1.1,ds=-1.1,gb=0,Dc=null,iN=null,oN=null,zr=-1.1,ki=null,Br=-1.1,rd=-1.1,lN=-0,cN=-0,id=0,E3=null,uN=0,Tc=-1.1,od=!1,ld=!1,Cc=null,vb=0,Vi=0,Fo=null,fN=G.S;G.S=function(e,t){if(iE=Kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Qa&&0>ds){Qa=qt();var n=rc(),i=ac();(n!==Br||i!==ki)&&(Br=-1.1),zr=n,ki=i}L_(e,t)}fN!==null&&fN(e,t)};var Ui=oe(null),Os={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Oc=[],jc=[],Rc=[],Mc=[],kc=[],Vc=[],zi=new Set;Os.recordUnsafeLifecycleWarnings=function(e,t){zi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Oc.push(e),e.mode&mn&&typeof t.UNSAFE_componentWillMount=="function"&&jc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Rc.push(e),e.mode&mn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Mc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&kc.push(e),e.mode&mn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Vc.push(e))},Os.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Oc.length&&(Oc.forEach(function(h){e.add(H(h)||"Component"),zi.add(h.type)}),Oc=[]);var t=new Set;0<jc.length&&(jc.forEach(function(h){t.add(H(h)||"Component"),zi.add(h.type)}),jc=[]);var n=new Set;0<Rc.length&&(Rc.forEach(function(h){n.add(H(h)||"Component"),zi.add(h.type)}),Rc=[]);var i=new Set;0<Mc.length&&(Mc.forEach(function(h){i.add(H(h)||"Component"),zi.add(h.type)}),Mc=[]);var l=new Set;0<kc.length&&(kc.forEach(function(h){l.add(H(h)||"Component"),zi.add(h.type)}),kc=[]);var c=new Set;if(0<Vc.length&&(Vc.forEach(function(h){c.add(H(h)||"Component"),zi.add(h.type)}),Vc=[]),0<t.size){var f=E(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
-
200
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
201
-
202
- Please update the following components: %s`,f)}0<i.size&&(f=E(i),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
203
-
204
- * Move data fetching code or side effects to componentDidUpdate.
205
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
-
207
- Please update the following components: %s`,f)),0<c.size&&(f=E(c),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
208
-
209
- * Move data fetching code or side effects to componentDidUpdate.
210
-
211
- Please update the following components: %s`,f)),0<e.size&&(f=E(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
212
-
213
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
214
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
215
-
216
- Please update the following components: %s`,f)),0<n.size&&(f=E(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
217
-
218
- * Move data fetching code or side effects to componentDidUpdate.
219
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
220
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
221
-
222
- Please update the following components: %s`,f)),0<l.size&&(f=E(l),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
223
-
224
- * Move data fetching code or side effects to componentDidUpdate.
225
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
226
-
227
- Please update the following components: %s`,f))};var cd=new Map,dN=new Set;Os.recordLegacyContextWarning=function(e,t){for(var n=null,i=e;i!==null;)i.mode&mn&&(n=i),i=i.return;n===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!dN.has(e.type)&&(i=cd.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(i===void 0&&(i=[],cd.set(n,i)),i.push(e))},Os.flushLegacyContextWarning=function(){cd.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(l){n.add(H(l)||"Component"),dN.add(l.type)});var i=E(n);ye(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
228
-
229
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
230
-
231
- Please update the following components: %s
232
-
233
- Learn more about this warning here: https://react.dev/link/legacy-context`,i)})}})},Os.discardPendingWarnings=function(){Oc=[],jc=[],Rc=[],Mc=[],kc=[],Vc=[],cd=new Map};var hN={react_stack_bottom_frame:function(e,t,n){var i=da;da=!0;try{return e(t,n)}finally{da=i}}},xb=hN.react_stack_bottom_frame.bind(hN),mN={react_stack_bottom_frame:function(e){var t=da;da=!0;try{return e.render()}finally{da=t}}},pN=mN.react_stack_bottom_frame.bind(mN),bN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){at(e,e.return,n)}}},Nb=bN.react_stack_bottom_frame.bind(bN),yN={react_stack_bottom_frame:function(e,t,n,i,l){try{t.componentDidUpdate(n,i,l)}catch(c){at(e,e.return,c)}}},gN=yN.react_stack_bottom_frame.bind(yN),vN={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},w3=vN.react_stack_bottom_frame.bind(vN),xN={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(i){at(e,t,i)}}},NN=xN.react_stack_bottom_frame.bind(xN),EN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},S3=EN.react_stack_bottom_frame.bind(EN),wN={react_stack_bottom_frame:function(e,t,n){try{n()}catch(i){at(e,t,i)}}},_3=wN.react_stack_bottom_frame.bind(wN),SN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},A3=SN.react_stack_bottom_frame.bind(SN),Yo=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Eb=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ud=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),fd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Bi=null,Uc=!1,Go=null,zc=0,Be=null,wb,_N=wb=!1,AN={},DN={},TN={};S=function(e,t,n){if(n!==null&&typeof n=="object"&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var i=H(e),l=i||"null";if(!AN[l]){AN[l]=!0,n=n._owner,e=e._debugOwner;var c="";e&&typeof e.tag=="number"&&(l=H(e))&&(c=`
234
-
235
- Check the render method of \``+l+"`."),c||i&&(c=`
236
-
237
- Check the top-level render call using <`+i+">.");var f="";n!=null&&e!==n&&(i=null,typeof n.tag=="number"?i=H(n):typeof n.name=="string"&&(i=n.name),i&&(f=" It was passed a child from "+i+".")),ye(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',c,f)})}}};var qi=xg(!0),CN=xg(!1),ON=0,jN=1,RN=2,Sb=3,qr=!1,MN=!1,_b=null,Ab=!1,Jo=oe(null),dd=oe(0),Yn=oe(null),hs=null,Qo=1,Bc=2,Mt=oe(0),hd=0,ms=1,En=2,Gn=4,wn=8,Xo,kN=new Set,VN=new Set,Db=new Set,UN=new Set,Xa=0,je=null,dt=null,Lt=null,md=!1,Zo=!1,Li=!1,pd=0,qc=0,Za=null,D3=0,T3=25,Y=null,ps=null,Ka=-1,Lc=!1,Pc={readContext:xt,use:Er,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};Pc.useEffectEvent=Ct;var Tb=null,zN=null,Cb=null,BN=null,va=null,js=null,bd=null;Tb={readContext:function(e){return xt(e)},use:Er,useCallback:function(e,t){return Y="useCallback",$e(),ho(t),_m(e,t)},useContext:function(e){return Y="useContext",$e(),xt(e)},useEffect:function(e,t){return Y="useEffect",$e(),ho(t),cf(e,t)},useImperativeHandle:function(e,t,n){return Y="useImperativeHandle",$e(),ho(n),Sm(e,t,n)},useInsertionEffect:function(e,t){Y="useInsertionEffect",$e(),ho(t),wi(4,En,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",$e(),ho(t),wm(e,t)},useMemo:function(e,t){Y="useMemo",$e(),ho(t);var n=G.H;G.H=va;try{return Am(e,t)}finally{G.H=n}},useReducer:function(e,t,n){Y="useReducer",$e();var i=G.H;G.H=va;try{return mm(e,t,n)}finally{G.H=i}},useRef:function(e){return Y="useRef",$e(),Nm(e)},useState:function(e){Y="useState",$e();var t=G.H;G.H=va;try{return gm(e)}finally{G.H=t}},useDebugValue:function(){Y="useDebugValue",$e()},useDeferredValue:function(e,t){return Y="useDeferredValue",$e(),Dm(e,t)},useTransition:function(){return Y="useTransition",$e(),Om()},useSyncExternalStore:function(e,t,n){return Y="useSyncExternalStore",$e(),bm(e,t,n)},useId:function(){return Y="useId",$e(),jm()},useFormState:function(e,t){return Y="useFormState",$e(),sf(),po(e,t)},useActionState:function(e,t){return Y="useActionState",$e(),po(e,t)},useOptimistic:function(e){return Y="useOptimistic",$e(),vm(e)},useHostTransitionStatus:Si,useMemoCache:Ei,useCacheRefresh:function(){return Y="useCacheRefresh",$e(),Rm()},useEffectEvent:function(e){return Y="useEffectEvent",$e(),Em(e)}},zN={readContext:function(e){return xt(e)},use:Er,useCallback:function(e,t){return Y="useCallback",ie(),_m(e,t)},useContext:function(e){return Y="useContext",ie(),xt(e)},useEffect:function(e,t){return Y="useEffect",ie(),cf(e,t)},useImperativeHandle:function(e,t,n){return Y="useImperativeHandle",ie(),Sm(e,t,n)},useInsertionEffect:function(e,t){Y="useInsertionEffect",ie(),wi(4,En,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",ie(),wm(e,t)},useMemo:function(e,t){Y="useMemo",ie();var n=G.H;G.H=va;try{return Am(e,t)}finally{G.H=n}},useReducer:function(e,t,n){Y="useReducer",ie();var i=G.H;G.H=va;try{return mm(e,t,n)}finally{G.H=i}},useRef:function(e){return Y="useRef",ie(),Nm(e)},useState:function(e){Y="useState",ie();var t=G.H;G.H=va;try{return gm(e)}finally{G.H=t}},useDebugValue:function(){Y="useDebugValue",ie()},useDeferredValue:function(e,t){return Y="useDeferredValue",ie(),Dm(e,t)},useTransition:function(){return Y="useTransition",ie(),Om()},useSyncExternalStore:function(e,t,n){return Y="useSyncExternalStore",ie(),bm(e,t,n)},useId:function(){return Y="useId",ie(),jm()},useActionState:function(e,t){return Y="useActionState",ie(),po(e,t)},useFormState:function(e,t){return Y="useFormState",ie(),sf(),po(e,t)},useOptimistic:function(e){return Y="useOptimistic",ie(),vm(e)},useHostTransitionStatus:Si,useMemoCache:Ei,useCacheRefresh:function(){return Y="useCacheRefresh",ie(),Rm()},useEffectEvent:function(e){return Y="useEffectEvent",ie(),Em(e)}},Cb={readContext:function(e){return xt(e)},use:Er,useCallback:function(e,t){return Y="useCallback",ie(),df(e,t)},useContext:function(e){return Y="useContext",ie(),xt(e)},useEffect:function(e,t){Y="useEffect",ie(),On(2048,wn,e,t)},useImperativeHandle:function(e,t,n){return Y="useImperativeHandle",ie(),ff(e,t,n)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",ie(),On(4,En,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",ie(),On(4,Gn,e,t)},useMemo:function(e,t){Y="useMemo",ie();var n=G.H;G.H=js;try{return hf(e,t)}finally{G.H=n}},useReducer:function(e,t,n){Y="useReducer",ie();var i=G.H;G.H=js;try{return mo(e,t,n)}finally{G.H=i}},useRef:function(){return Y="useRef",ie(),lt().memoizedState},useState:function(){Y="useState",ie();var e=G.H;G.H=js;try{return mo(As)}finally{G.H=e}},useDebugValue:function(){Y="useDebugValue",ie()},useDeferredValue:function(e,t){return Y="useDeferredValue",ie(),Hg(e,t)},useTransition:function(){return Y="useTransition",ie(),Jg()},useSyncExternalStore:function(e,t,n){return Y="useSyncExternalStore",ie(),rf(e,t,n)},useId:function(){return Y="useId",ie(),lt().memoizedState},useFormState:function(e){return Y="useFormState",ie(),sf(),of(e)},useActionState:function(e){return Y="useActionState",ie(),of(e)},useOptimistic:function(e,t){return Y="useOptimistic",ie(),Rg(e,t)},useHostTransitionStatus:Si,useMemoCache:Ei,useCacheRefresh:function(){return Y="useCacheRefresh",ie(),lt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",ie(),uf(e)}},BN={readContext:function(e){return xt(e)},use:Er,useCallback:function(e,t){return Y="useCallback",ie(),df(e,t)},useContext:function(e){return Y="useContext",ie(),xt(e)},useEffect:function(e,t){Y="useEffect",ie(),On(2048,wn,e,t)},useImperativeHandle:function(e,t,n){return Y="useImperativeHandle",ie(),ff(e,t,n)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",ie(),On(4,En,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",ie(),On(4,Gn,e,t)},useMemo:function(e,t){Y="useMemo",ie();var n=G.H;G.H=bd;try{return hf(e,t)}finally{G.H=n}},useReducer:function(e,t,n){Y="useReducer",ie();var i=G.H;G.H=bd;try{return Yl(e,t,n)}finally{G.H=i}},useRef:function(){return Y="useRef",ie(),lt().memoizedState},useState:function(){Y="useState",ie();var e=G.H;G.H=bd;try{return Yl(As)}finally{G.H=e}},useDebugValue:function(){Y="useDebugValue",ie()},useDeferredValue:function(e,t){return Y="useDeferredValue",ie(),$g(e,t)},useTransition:function(){return Y="useTransition",ie(),Qg()},useSyncExternalStore:function(e,t,n){return Y="useSyncExternalStore",ie(),rf(e,t,n)},useId:function(){return Y="useId",ie(),lt().memoizedState},useFormState:function(e){return Y="useFormState",ie(),sf(),lf(e)},useActionState:function(e){return Y="useActionState",ie(),lf(e)},useOptimistic:function(e,t){return Y="useOptimistic",ie(),kg(e,t)},useHostTransitionStatus:Si,useMemoCache:Ei,useCacheRefresh:function(){return Y="useCacheRefresh",ie(),lt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",ie(),uf(e)}},va={readContext:function(e){return g(),xt(e)},use:function(e){return m(),Er(e)},useCallback:function(e,t){return Y="useCallback",m(),$e(),_m(e,t)},useContext:function(e){return Y="useContext",m(),$e(),xt(e)},useEffect:function(e,t){return Y="useEffect",m(),$e(),cf(e,t)},useImperativeHandle:function(e,t,n){return Y="useImperativeHandle",m(),$e(),Sm(e,t,n)},useInsertionEffect:function(e,t){Y="useInsertionEffect",m(),$e(),wi(4,En,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",m(),$e(),wm(e,t)},useMemo:function(e,t){Y="useMemo",m(),$e();var n=G.H;G.H=va;try{return Am(e,t)}finally{G.H=n}},useReducer:function(e,t,n){Y="useReducer",m(),$e();var i=G.H;G.H=va;try{return mm(e,t,n)}finally{G.H=i}},useRef:function(e){return Y="useRef",m(),$e(),Nm(e)},useState:function(e){Y="useState",m(),$e();var t=G.H;G.H=va;try{return gm(e)}finally{G.H=t}},useDebugValue:function(){Y="useDebugValue",m(),$e()},useDeferredValue:function(e,t){return Y="useDeferredValue",m(),$e(),Dm(e,t)},useTransition:function(){return Y="useTransition",m(),$e(),Om()},useSyncExternalStore:function(e,t,n){return Y="useSyncExternalStore",m(),$e(),bm(e,t,n)},useId:function(){return Y="useId",m(),$e(),jm()},useFormState:function(e,t){return Y="useFormState",m(),$e(),po(e,t)},useActionState:function(e,t){return Y="useActionState",m(),$e(),po(e,t)},useOptimistic:function(e){return Y="useOptimistic",m(),$e(),vm(e)},useMemoCache:function(e){return m(),Ei(e)},useHostTransitionStatus:Si,useCacheRefresh:function(){return Y="useCacheRefresh",$e(),Rm()},useEffectEvent:function(e){return Y="useEffectEvent",m(),$e(),Em(e)}},js={readContext:function(e){return g(),xt(e)},use:function(e){return m(),Er(e)},useCallback:function(e,t){return Y="useCallback",m(),ie(),df(e,t)},useContext:function(e){return Y="useContext",m(),ie(),xt(e)},useEffect:function(e,t){Y="useEffect",m(),ie(),On(2048,wn,e,t)},useImperativeHandle:function(e,t,n){return Y="useImperativeHandle",m(),ie(),ff(e,t,n)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",m(),ie(),On(4,En,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",m(),ie(),On(4,Gn,e,t)},useMemo:function(e,t){Y="useMemo",m(),ie();var n=G.H;G.H=js;try{return hf(e,t)}finally{G.H=n}},useReducer:function(e,t,n){Y="useReducer",m(),ie();var i=G.H;G.H=js;try{return mo(e,t,n)}finally{G.H=i}},useRef:function(){return Y="useRef",m(),ie(),lt().memoizedState},useState:function(){Y="useState",m(),ie();var e=G.H;G.H=js;try{return mo(As)}finally{G.H=e}},useDebugValue:function(){Y="useDebugValue",m(),ie()},useDeferredValue:function(e,t){return Y="useDeferredValue",m(),ie(),Hg(e,t)},useTransition:function(){return Y="useTransition",m(),ie(),Jg()},useSyncExternalStore:function(e,t,n){return Y="useSyncExternalStore",m(),ie(),rf(e,t,n)},useId:function(){return Y="useId",m(),ie(),lt().memoizedState},useFormState:function(e){return Y="useFormState",m(),ie(),of(e)},useActionState:function(e){return Y="useActionState",m(),ie(),of(e)},useOptimistic:function(e,t){return Y="useOptimistic",m(),ie(),Rg(e,t)},useMemoCache:function(e){return m(),Ei(e)},useHostTransitionStatus:Si,useCacheRefresh:function(){return Y="useCacheRefresh",ie(),lt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",m(),ie(),uf(e)}},bd={readContext:function(e){return g(),xt(e)},use:function(e){return m(),Er(e)},useCallback:function(e,t){return Y="useCallback",m(),ie(),df(e,t)},useContext:function(e){return Y="useContext",m(),ie(),xt(e)},useEffect:function(e,t){Y="useEffect",m(),ie(),On(2048,wn,e,t)},useImperativeHandle:function(e,t,n){return Y="useImperativeHandle",m(),ie(),ff(e,t,n)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",m(),ie(),On(4,En,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",m(),ie(),On(4,Gn,e,t)},useMemo:function(e,t){Y="useMemo",m(),ie();var n=G.H;G.H=js;try{return hf(e,t)}finally{G.H=n}},useReducer:function(e,t,n){Y="useReducer",m(),ie();var i=G.H;G.H=js;try{return Yl(e,t,n)}finally{G.H=i}},useRef:function(){return Y="useRef",m(),ie(),lt().memoizedState},useState:function(){Y="useState",m(),ie();var e=G.H;G.H=js;try{return Yl(As)}finally{G.H=e}},useDebugValue:function(){Y="useDebugValue",m(),ie()},useDeferredValue:function(e,t){return Y="useDeferredValue",m(),ie(),$g(e,t)},useTransition:function(){return Y="useTransition",m(),ie(),Qg()},useSyncExternalStore:function(e,t,n){return Y="useSyncExternalStore",m(),ie(),rf(e,t,n)},useId:function(){return Y="useId",m(),ie(),lt().memoizedState},useFormState:function(e){return Y="useFormState",m(),ie(),lf(e)},useActionState:function(e){return Y="useActionState",m(),ie(),lf(e)},useOptimistic:function(e,t){return Y="useOptimistic",m(),ie(),kg(e,t)},useMemoCache:function(e){return m(),Ei(e)},useHostTransitionStatus:Si,useCacheRefresh:function(){return Y="useCacheRefresh",ie(),lt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",m(),ie(),uf(e)}};var qN={},LN=new Set,PN=new Set,HN=new Set,$N=new Set,IN=new Set,FN=new Set,YN=new Set,GN=new Set,JN=new Set,QN=new Set;Object.freeze(qN);var Ob={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Pn(e),l=gr(i);l.payload=t,n!=null&&(km(n),l.callback=n),t=vr(e,l,i),t!==null&&(Zs(i,"this.setState()",e),At(t,e,i),Hl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Pn(e),l=gr(i);l.tag=jN,l.payload=t,n!=null&&(km(n),l.callback=n),t=vr(e,l,i),t!==null&&(Zs(i,"this.replaceState()",e),At(t,e,i),Hl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pn(e),i=gr(n);i.tag=RN,t!=null&&(km(t),i.callback=t),t=vr(e,i,n),t!==null&&(Zs(n,"this.forceUpdate()",e),At(t,e,n),Hl(t,e,n))}},Ko=null,jb=null,Rb=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Pt=!1,XN={},ZN={},KN={},WN={},Wo=!1,eE={},yd={},Mb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},tE=!1,nE=null;nE=new Set;var Wa=!1,Ht=!1,kb=!1,sE=typeof WeakSet=="function"?WeakSet:Set,en=null,el=null,tl=null,$t=null,Mn=!1,Rs=null,Jt=!1,Hc=8192,C3={getCacheForType:function(e){var t=xt(Bt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return xt(Bt).controller.signal},getOwner:function(){return In}};if(typeof Symbol=="function"&&Symbol.for){var $c=Symbol.for;$c("selector.component"),$c("selector.has_pseudo_class"),$c("selector.role"),$c("selector.test_id"),$c("selector.text")}var O3=[],j3=typeof WeakMap=="function"?WeakMap:Map,tn=0,Qt=2,Jn=4,er=0,Ic=1,Pi=2,gd=3,Lr=4,vd=6,aE=5,We=tn,ht=null,Pe=null,qe=0,kn=0,xd=1,Hi=2,Fc=3,rE=4,Vb=5,Yc=6,Nd=7,Ub=8,$i=9,ct=kn,Qn=null,Pr=!1,nl=!1,zb=!1,xa=0,wt=er,Hr=0,$r=0,Bb=0,Vn=0,Ii=0,Gc=null,Sn=null,Ed=!1,wd=0,iE=0,oE=300,Sd=1/0,lE=500,Jc=null,Ot=null,Ir=null,_d=0,qb=1,Lb=2,cE=3,Fr=0,uE=1,fE=2,dE=3,hE=4,Ad=5,It=0,Yr=null,sl=null,Ms=0,Pb=0,Hb=-0,$b=null,mE=null,pE=null,ks=_d,bE=null,R3=50,Qc=0,Ib=null,Fb=!1,Dd=!1,M3=50,Fi=0,Xc=null,al=!1,Td=null,yE=!1,gE=new Set,k3={},Cd=null,rl=null,Yb=!1,Gb=!1,Od=!1,Jb=!1,Gr=0,Qb={};(function(){for(var e=0;e<ib.length;e++){var t=ib[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Ss(n,"on"+t)}Ss(J1,"onAnimationEnd"),Ss(Q1,"onAnimationIteration"),Ss(X1,"onAnimationStart"),Ss("dblclick","onDoubleClick"),Ss("focusin","onFocus"),Ss("focusout","onBlur"),Ss(c3,"onTransitionRun"),Ss(u3,"onTransitionStart"),Ss(f3,"onTransitionCancel"),Ss(Z1,"onTransitionEnd")})(),$s("onMouseEnter",["mouseout","mouseover"]),$s("onMouseLeave",["mouseout","mouseover"]),$s("onPointerEnter",["pointerout","pointerover"]),$s("onPointerLeave",["pointerout","pointerover"]),ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zc="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(" "),Xb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zc)),jd="_reactListening"+Math.random().toString(36).slice(2),vE=!1,xE=!1,Rd=!1,NE=!1,Md=!1,kd=!1,EE=!1,Vd={},V3=/\r\n?/g,U3=/\u0000|\uFFFD/g,Yi="http://www.w3.org/1999/xlink",Zb="http://www.w3.org/XML/1998/namespace",z3="javascript:throw new Error('React form unexpectedly submitted.')",B3="suppressHydrationWarning",Gi="&",Ud="/&",Kc="$",Wc="/$",Jr="$?",Ji="$~",il="$!",q3="html",L3="body",P3="head",Kb="F!",wE="F",SE="loading",H3="style",tr=0,ol=1,zd=2,Wb=null,e0=null,_E={dialog:!0,webview:!0},t0=null,eu=void 0,AE=typeof setTimeout=="function"?setTimeout:void 0,$3=typeof clearTimeout=="function"?clearTimeout:void 0,Qi=-1,DE=typeof Promise=="function"?Promise:void 0,I3=typeof queueMicrotask=="function"?queueMicrotask:typeof DE<"u"?function(e){return DE.resolve(null).then(e).catch(AA)}:AE,n0=null,Xi=0,tu=1,TE=2,CE=3,bs=4,ys=new Map,OE=new Set,nr=rt.d;rt.d={f:function(){var e=nr.f(),t=xo();return e||t},r:function(e){var t=Un(e);t!==null&&t.tag===5&&t.type==="form"?Gg(t):nr.r(e)},D:function(e){nr.D(e),Lx("dns-prefetch",e,null)},C:function(e,t){nr.C(e,t),Lx("preconnect",e,t)},L:function(e,t,n){nr.L(e,t,n);var i=ll;if(i&&e&&t){var l='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Tt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Tt(n.imageSizes)+'"]')):l+='[href="'+Tt(e)+'"]';var c=l;switch(t){case"style":c=wo(e);break;case"script":c=So(e)}ys.has(c)||(e=Ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ys.set(c,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(oc(c))||t==="script"&&i.querySelector(lc(c))||(t=i.createElement("link"),on(t,"link",e),Rt(t),i.head.appendChild(t)))}},m:function(e,t){nr.m(e,t);var n=ll;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Tt(i)+'"][href="'+Tt(e)+'"]',c=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=So(e)}if(!ys.has(c)&&(e=Ie({rel:"modulepreload",href:e},t),ys.set(c,e),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(lc(c)))return}i=n.createElement("link"),on(i,"link",e),Rt(i),n.head.appendChild(i)}}},X:function(e,t){nr.X(e,t);var n=ll;if(n&&e){var i=Hs(n).hoistableScripts,l=So(e),c=i.get(l);c||(c=n.querySelector(lc(l)),c||(e=Ie({src:e,async:!0},t),(t=ys.get(l))&&Sp(e,t),c=n.createElement("script"),Rt(c),on(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(l,c))}},S:function(e,t,n){nr.S(e,t,n);var i=ll;if(i&&e){var l=Hs(i).hoistableStyles,c=wo(e);t=t||"default";var f=l.get(c);if(!f){var h={loading:Xi,preload:null};if(f=i.querySelector(oc(c)))h.loading=tu|bs;else{e=Ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ys.get(c))&&wp(e,n);var y=f=i.createElement("link");Rt(y),on(y,"link",e),y._p=new Promise(function(v,z){y.onload=v,y.onerror=z}),y.addEventListener("load",function(){h.loading|=tu}),y.addEventListener("error",function(){h.loading|=TE}),h.loading|=bs,Rf(f,t,i)}f={type:"stylesheet",instance:f,count:1,state:h},l.set(c,f)}}},M:function(e,t){nr.M(e,t);var n=ll;if(n&&e){var i=Hs(n).hoistableScripts,l=So(e),c=i.get(l);c||(c=n.querySelector(lc(l)),c||(e=Ie({src:e,async:!0,type:"module"},t),(t=ys.get(l))&&Sp(e,t),c=n.createElement("script"),Rt(c),on(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(l,c))}}};var ll=typeof document>"u"?null:document,Bd=null,F3=6e4,Y3=800,G3=500,s0=0,a0=null,qd=null,Zi=oD,nu={$$typeof:fa,Provider:null,Consumer:null,_currentValue:Zi,_currentValue2:Zi,_threadCount:0},jE="%c%s%c",RE="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",ME="",Ld=" ",J3=Function.prototype.bind,kE=!1,VE=null,UE=null,zE=null,BE=null,qE=null,LE=null,PE=null,HE=null,$E=null,IE=null;VE=function(e,t,n,i){t=r(e,t),t!==null&&(n=s(t.memoizedState,n,0,i),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ie({},e.memoizedProps),n=dn(e,2),n!==null&&At(n,e,2))},UE=function(e,t,n){t=r(e,t),t!==null&&(n=u(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ie({},e.memoizedProps),n=dn(e,2),n!==null&&At(n,e,2))},zE=function(e,t,n,i){t=r(e,t),t!==null&&(n=a(t.memoizedState,n,i),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ie({},e.memoizedProps),n=dn(e,2),n!==null&&At(n,e,2))},BE=function(e,t,n){e.pendingProps=s(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dn(e,2),t!==null&&At(t,e,2)},qE=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dn(e,2),t!==null&&At(t,e,2)},LE=function(e,t,n){e.pendingProps=a(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dn(e,2),t!==null&&At(t,e,2)},PE=function(e){var t=dn(e,2);t!==null&&At(t,e,2)},HE=function(e){var t=_l(),n=dn(e,t);n!==null&&At(n,e,t)},$E=function(e){p=e},IE=function(e){d=e};var Pd=!0,Hd=null,r0=!1,Qr=null,Xr=null,Zr=null,su=new Map,au=new Map,Kr=[],Q3="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(" "),$d=null;if(zf.prototype.render=Op.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):I(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var i=t.current,l=Pn(i);_p(i,l,n,t,null,null)},zf.prototype.unmount=Op.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(We&(Qt|Jn))!==tn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),_p(e.current,2,null,e,null,null),xo(),t[Cr]=null}},zf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ro();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kr.length&&t!==0&&t<Kr[n].priority;n++);Kr.splice(n,0,e),n===0&&e1(e)}},(function(){var e=jp.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
238
- - react: `+(e+`
239
- - react-dom: 19.2.4
240
- Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),rt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=V(t),e=e!==null?ne(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.4"};return e.overrideHookState=VE,e.overrideHookStateDeletePath=UE,e.overrideHookStateRenamePath=zE,e.overrideProps=BE,e.overridePropsDeletePath=qE,e.overridePropsRenamePath=LE,e.scheduleUpdate=PE,e.scheduleRetry=HE,e.setErrorHandler=$E,e.setSuspenseHandler=IE,e.scheduleRefresh=k,e.scheduleRoot=q,e.setRefreshHandler=L,e.getCurrentFiber=KA,Dh(e)})()&&ba&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var FE=window.location.protocol;/^(https?|file):$/.test(FE)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(FE==="file:"?`
241
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}ru.createRoot=function(e,t){if(!I(e))throw Error("Target container is not a DOM element.");a1(e);var n=!1,i="",l=tv,c=nv,f=sv;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ua&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
242
-
243
- let root = createRoot(domContainer);
244
- root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Gx(e,1,!1,null,null,n,i,null,l,c,f,s1),e[Cr]=t.current,fp(e),new Op(t)},ru.hydrateRoot=function(e,t,n){if(!I(e))throw Error("Target container is not a DOM element.");a1(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=!1,l="",c=tv,f=nv,h=sv,y=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(y=n.formState)),t=Gx(e,1,!0,t,n??null,i,l,y,c,f,h,s1),t.context=Jx(null),n=t.current,i=Pn(n),i=Tl(i),l=gr(i),l.callback=null,vr(n,l,i),Zs(i,"hydrateRoot()",null),n=i,t.current.lanes=n,fi(t,n),la(t),e[Cr]=t.current,fp(e),new zf(t)},ru.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ru}var tw;function VT(){return tw||(tw=1,o0.exports=kT()),o0.exports}var UT=VT();const zT="modulepreload",BT=function(r,s){return new URL(r,s).href},nw={},ke=function(s,a,o){let u=Promise.resolve();if(a&&a.length>0){let p=function(S){return Promise.all(S.map(E=>Promise.resolve(E).then(D=>({status:"fulfilled",value:D}),D=>({status:"rejected",reason:D}))))};const m=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));u=p(a.map(S=>{if(S=BT(S,o),S in nw)return;nw[S]=!0;const E=S.endsWith(".css"),D=E?'[rel="stylesheet"]':"";if(!!o)for(let L=m.length-1;L>=0;L--){const I=m[L];if(I.href===S&&(!E||I.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${S}"]${D}`))return;const k=document.createElement("link");if(k.rel=E?"stylesheet":zT,E||(k.as="script"),k.crossOrigin="",k.href=S,x&&k.setAttribute("nonce",x),document.head.appendChild(k),E)return new Promise((L,I)=>{k.addEventListener("load",L),k.addEventListener("error",()=>I(new Error(`Unable to preload CSS for ${S}`)))})}))}function d(p){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=p,window.dispatchEvent(m),!m.defaultPrevented)throw p}return u.then(p=>{for(const m of p||[])m.status==="rejected"&&d(m.reason);return s().catch(d)})};function ty(r){try{const s=r.split(".");if(s.length!==3)return null;const a=atob(s[1].replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(a)}catch{return null}}function mS(r){const s=ty(r);return!s||typeof s.exp!="number"?null:s.exp}function ny(r,s=0){const a=mS(r);return a===null?!0:Date.now()/1e3>=a-s}const Kn=window.__LT_BASE__??"",T0=`${Kn}/api`;let ti=null;function Fd(r){ti=r}function pS(){return ti}async function sw(){const r=sessionStorage.getItem("lt_credentials");if(!r)return null;try{const{username:s,password:a}=JSON.parse(r),o=await fetch(`${T0}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:s,password:a})});if(!o.ok)return null;const u=await o.json();return u.token&&u.user&&sessionStorage.setItem("lt_user_info",JSON.stringify({displayName:u.user.display_name,username:u.user.external_id})),u.token??null}catch{return null}}let Wr=null;async function it(r,s={}){const a={"Content-Type":"application/json",...s.headers};if(ti){if(ny(ti)){Wr||(Wr=sw().finally(()=>{Wr=null}));const u=await Wr;if(u)ti=u,window.dispatchEvent(new CustomEvent("auth:refreshed",{detail:{token:u}}));else throw window.dispatchEvent(new CustomEvent("auth:unauthorized")),new Error("Session expired")}a.Authorization=`Bearer ${ti}`}let o=await fetch(`${T0}${r}`,{...s,headers:a});if(o.status===401&&ti){Wr||(Wr=sw().finally(()=>{Wr=null}));const u=await Wr;if(u&&(ti=u,window.dispatchEvent(new CustomEvent("auth:refreshed",{detail:{token:u}})),a.Authorization=`Bearer ${u}`,o=await fetch(`${T0}${r}`,{...s,headers:a})),o.status===401)throw window.dispatchEvent(new CustomEvent("auth:unauthorized")),new Error("Session expired")}else if(o.status===401)throw window.dispatchEvent(new CustomEvent("auth:unauthorized")),new Error("Session expired");if(!o.ok){const u=await o.json().catch(()=>({error:o.statusText}));throw new Error(u.message||u.error||o.statusText)}return o.json()}const bS=R.createContext(null),qT=300;function u0(r,s){if(ny(r))return null;const a=ty(r);if(!a)return null;const o=s??(()=>{try{const u=sessionStorage.getItem("lt_user_info");return u?JSON.parse(u):null}catch{return null}})();return{userId:a.userId,displayName:(o==null?void 0:o.displayName)??null,username:(o==null?void 0:o.username)??null,roles:a.roles??[]}}function LT({children:r}){const[s,a]=R.useState(()=>{const E=sessionStorage.getItem("lt_token");return E?ny(E)?(sessionStorage.removeItem("lt_token"),null):(Fd(E),u0(E)):null}),o=R.useRef(void 0),u=R.useCallback(E=>{clearTimeout(o.current);const D=mS(E);if(!D)return;const q=(D-qT)*1e3-Date.now();q<=0||(o.current=setTimeout(async()=>{try{const k=ty(E);if(k!=null&&k.sso){const le=await fetch(`${Kn}/api/auth/sso`,{method:"POST"});if(!le.ok)return;const V=await le.json();V.token&&window.dispatchEvent(new CustomEvent("auth:refreshed",{detail:{token:V.token}}));return}const L=sessionStorage.getItem("lt_credentials");if(!L)return;const{username:I,password:W}=JSON.parse(L),te=await fetch(`${Kn}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:I,password:W})});if(!te.ok)return;const Ne=await te.json();Ne.token&&window.dispatchEvent(new CustomEvent("auth:refreshed",{detail:{token:Ne.token}}))}catch{}},q))},[]),d=R.useCallback((E,D,q)=>{const k={displayName:(q==null?void 0:q.displayName)??null,username:(q==null?void 0:q.username)??(D==null?void 0:D.username)??null},L=u0(E,k);L&&(Fd(E),sessionStorage.setItem("lt_token",E),sessionStorage.setItem("lt_user_info",JSON.stringify(k)),D&&sessionStorage.setItem("lt_credentials",JSON.stringify(D)),a(L),u(E))},[u]),p=R.useCallback(()=>{clearTimeout(o.current);const E=sessionStorage.getItem("lt_sso_logout_url");Fd(null),sessionStorage.removeItem("lt_token"),sessionStorage.removeItem("lt_credentials"),sessionStorage.removeItem("lt_user_info"),sessionStorage.removeItem("lt_sso_logout_url"),a(null),E&&(window.location.href=E)},[]);R.useEffect(()=>{const E=()=>p(),D=q=>{var I;const k=(I=q.detail)==null?void 0:I.token;if(!k)return;const L=u0(k);L&&(Fd(k),sessionStorage.setItem("lt_token",k),a(L),u(k))};return window.addEventListener("auth:unauthorized",E),window.addEventListener("auth:refreshed",D),()=>{window.removeEventListener("auth:unauthorized",E),window.removeEventListener("auth:refreshed",D)}},[p,u]),R.useEffect(()=>{const E=sessionStorage.getItem("lt_token");return E&&s&&u(E),()=>clearTimeout(o.current)},[]);const m=(s==null?void 0:s.roles.some(E=>E.type==="superadmin"))??!1,g=R.useCallback(E=>(s==null?void 0:s.roles.some(D=>D.role===E))??!1,[s]),x=R.useCallback(E=>(s==null?void 0:s.roles.some(D=>D.type===E))??!1,[s]),S=(s==null?void 0:s.roles.map(E=>E.role))??[];return b.jsxDEV(bS.Provider,{value:{user:s,isAuthenticated:!!s,isSuperAdmin:m,login:d,logout:p,hasRole:g,hasRoleType:x,userRoleNames:S},children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useAuth.tsx",lineNumber:200,columnNumber:5},this)}function eo(){const r=R.useContext(bS);if(!r)throw new Error("useAuth must be used within AuthProvider");return r}const ts=new Uint8Array(0),to=new TextEncoder,Wn=new TextDecoder;function PT(...r){let s=0;for(let u=0;u<r.length;u++)s+=r[u].length;const a=new Uint8Array(s);let o=0;for(let u=0;u<r.length;u++)a.set(r[u],o),o+=r[u].length;return a}function pu(...r){const s=[];for(let a=0;a<r.length;a++)s.push(to.encode(r[a]));return s.length===0?ts:s.length===1?s[0]:PT(...s)}function aw(r){return!r||r.length===0?"":Wn.decode(r)}const rw="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",iw=36,HT=0xcfd41b9100000,ow=33,$T=333,lw=22;function IT(r){for(let s=0;s<r.length;s++)r[s]=Math.floor(Math.random()*255)}function FT(r){var s;(s=globalThis==null?void 0:globalThis.crypto)!=null&&s.getRandomValues?globalThis.crypto.getRandomValues(r):IT(r)}class YT{constructor(){w(this,"buf");w(this,"seq");w(this,"inc");w(this,"inited");this.buf=new Uint8Array(lw),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){this.seq=Math.floor(Math.random()*HT),this.inc=Math.floor(Math.random()*($T-ow)+ow)}setPre(){const s=new Uint8Array(12);FT(s);for(let a=0;a<12;a++){const o=s[a]%36;this.buf[a]=rw.charCodeAt(o)}}fillSeq(){let s=this.seq;for(let a=lw-1;a>=12;a--)this.buf[a]=rw.charCodeAt(s%iw),s=Math.floor(s/iw)}next(){return this.inited||this.init(),this.seq+=this.inc,this.seq>0xcfd41b9100000&&(this.setPre(),this.initSeqAndInc()),this.fillSeq(),String.fromCharCode.apply(String,this.buf)}reset(){this.init()}}const oi=new YT;var ar;(function(r){r.Disconnect="disconnect",r.Reconnect="reconnect",r.Update="update",r.LDM="ldm",r.Error="error"})(ar||(ar={}));var ml;(function(r){r.Reconnecting="reconnecting",r.PingTimer="pingTimer",r.StaleConnection="staleConnection",r.ClientInitiatedReconnect="client initiated reconnect"})(ml||(ml={}));var ue;(function(r){r.ApiError="BAD API",r.BadAuthentication="BAD_AUTHENTICATION",r.BadCreds="BAD_CREDS",r.BadHeader="BAD_HEADER",r.BadJson="BAD_JSON",r.BadPayload="BAD_PAYLOAD",r.BadSubject="BAD_SUBJECT",r.Cancelled="CANCELLED",r.ConnectionClosed="CONNECTION_CLOSED",r.ConnectionDraining="CONNECTION_DRAINING",r.ConnectionRefused="CONNECTION_REFUSED",r.ConnectionTimeout="CONNECTION_TIMEOUT",r.Disconnect="DISCONNECT",r.InvalidOption="INVALID_OPTION",r.InvalidPayload="INVALID_PAYLOAD",r.MaxPayloadExceeded="MAX_PAYLOAD_EXCEEDED",r.NoResponders="503",r.NotFunction="NOT_FUNC",r.RequestError="REQUEST_ERROR",r.ServerOptionNotAvailable="SERVER_OPT_NA",r.SubClosed="SUB_CLOSED",r.SubDraining="SUB_DRAINING",r.Timeout="TIMEOUT",r.Tls="TLS",r.Unknown="UNKNOWN_ERROR",r.WssRequired="WSS_REQUIRED",r.JetStreamInvalidAck="JESTREAM_INVALID_ACK",r.JetStream404NoMessages="404",r.JetStream408RequestTimeout="408",r.JetStream409MaxAckPendingExceeded="409",r.JetStream409="409",r.JetStreamNotEnabled="503",r.JetStreamIdleHeartBeat="IDLE_HEARTBEAT",r.AuthorizationViolation="AUTHORIZATION_VIOLATION",r.AuthenticationExpired="AUTHENTICATION_EXPIRED",r.ProtocolError="NATS_PROTOCOL_ERR",r.PermissionsViolation="PERMISSIONS_VIOLATION",r.AuthenticationTimeout="AUTHENTICATION_TIMEOUT",r.AccountExpired="ACCOUNT_EXPIRED"})(ue||(ue={}));function GT(r){return typeof r.code=="string"}class yS{constructor(){w(this,"messages");this.messages=new Map,this.messages.set(ue.InvalidPayload,"Invalid payload type - payloads can be 'binary', 'string', or 'json'"),this.messages.set(ue.BadJson,"Bad JSON"),this.messages.set(ue.WssRequired,"TLS is required, therefore a secure websocket connection is also required")}static getMessage(s){return JT.getMessage(s)}getMessage(s){return this.messages.get(s)||s}}const JT=new yS;class xe extends Error{constructor(a,o,u){super(a);w(this,"name");w(this,"message");w(this,"code");w(this,"permissionContext");w(this,"chainedError");w(this,"api_error");this.name="NatsError",this.message=a,this.code=o,this.chainedError=u}static errorForCode(a,o){const u=yS.getMessage(a);return new xe(u,a,o)}isAuthError(){return this.code===ue.AuthenticationExpired||this.code===ue.AuthorizationViolation||this.code===ue.AccountExpired}isAuthTimeout(){return this.code===ue.AuthenticationTimeout}isPermissionError(){return this.code===ue.PermissionsViolation}isProtocolError(){return this.code===ue.ProtocolError}isJetStreamError(){return this.api_error!==void 0}jsError(){return this.api_error?this.api_error:null}}var Xn;(function(r){r[r.Exact=0]="Exact",r[r.CanonicalMIME=1]="CanonicalMIME",r[r.IgnoreCase=2]="IgnoreCase"})(Xn||(Xn={}));var zs;(function(r){r.Timer="timer",r.Count="count",r.JitterTimer="jitterTimer",r.SentinelMsg="sentinelMsg"})(zs||(zs={}));var bu;(function(r){r.STATS="io.nats.micro.v1.stats_response",r.INFO="io.nats.micro.v1.info_response",r.PING="io.nats.micro.v1.ping_response"})(bu||(bu={}));const lh="Nats-Service-Error",ch="Nats-Service-Error-Code";class uh extends Error{constructor(a,o){super(o);w(this,"code");this.code=a}static isServiceError(a){return uh.toServiceError(a)!==null}static toServiceError(a){var u,d;const o=((u=a==null?void 0:a.headers)==null?void 0:u.get(ch))||"";if(o!==""){const p=parseInt(o)||400,m=((d=a==null?void 0:a.headers)==null?void 0:d.get(lh))||"";return new uh(p,m.length?m:o)}return null}}function rr(r=""){if(r=r||"_INBOX",typeof r!="string")throw new Error("prefix must be a string");return r.split(".").forEach(s=>{if(s==="*"||s===">")throw new Error(`inbox prefixes cannot have wildcards '${r}'`)}),`${r}.${oi.next()}`}const C0="127.0.0.1";var ni;(function(r){r.PING="PING",r.STATS="STATS",r.INFO="INFO"})(ni||(ni={}));function xh(r,...s){for(let a=0;a<s.length;a++){const o=s[a];Object.keys(o).forEach(function(u){r[u]=o[u]})}return r}function Yd(r){return Wn.decode(r).replace(/\n/g,"␊").replace(/\r/g,"␍")}function vl(r,s=!0){const a=s?xe.errorForCode(ue.Timeout):null;let o,u;const d=new Promise((p,m)=>{o={cancel:()=>{u&&clearTimeout(u)}},u=setTimeout(()=>{m(a===null?xe.errorForCode(ue.Timeout):a)},r)});return Object.assign(d,o)}function El(r=0){let s;const a=new Promise(o=>{const u=setTimeout(()=>{o()},r);s={cancel:()=>{u&&clearTimeout(u)}}});return Object.assign(a,s)}function _t(){let r={};const s=new Promise((a,o)=>{r={resolve:a,reject:o}});return Object.assign(s,r)}function gS(r){for(let s=r.length-1;s>0;s--){const a=Math.floor(Math.random()*(s+1));[r[s],r[a]]=[r[a],r[s]]}return r}function QT(r){return r===0?0:Math.floor(r/2+Math.random()*r)}function sy(r=[0,250,250,500,500,3e3,5e3]){Array.isArray(r)||(r=[0,250,250,500,500,3e3,5e3]);const s=r.length-1;return{backoff(a){return QT(a>s?r[s]:r[a])}}}function St(r){return r*1e6}function ay(r){return Math.floor(r/1e6)}function cw(r){let o=!0;const u=new Array(r.length);for(let d=0;d<r.length;d++){let p=r.charCodeAt(d);if(p===58||p<33||p>126)throw new xe(`'${r[d]}' is not a valid character for a header key`,ue.BadHeader);o&&97<=p&&p<=122?p-=32:!o&&65<=p&&p<=90&&(p+=32),u[d]=p,o=p==45}return String.fromCharCode(...u)}function ir(r=0,s=""){if(r===0&&s!==""||r>0&&s==="")throw new Error("setting status requires both code and description");return new si(r,s)}const f0="NATS/1.0";class si{constructor(s=0,a=""){w(this,"_code");w(this,"headers");w(this,"_description");this._code=s,this._description=a,this.headers=new Map}[Symbol.iterator](){return this.headers.entries()}size(){return this.headers.size}equals(s){if(s&&this.headers.size===s.headers.size&&this._code===s._code){for(const[a,o]of this.headers){const u=s.values(a);if(o.length!==u.length)return!1;const d=[...o].sort(),p=[...u].sort();for(let m=0;m<d.length;m++)if(d[m]!==p[m])return!1}return!0}return!1}static decode(s){const a=new si,u=Wn.decode(s).split(`\r
245
- `),d=u[0];if(d!==f0){let p=d.replace(f0,"").trim();if(p.length>0){a._code=parseInt(p,10),isNaN(a._code)&&(a._code=0);const m=a._code.toString();p=p.replace(m,""),a._description=p.trim()}}return u.length>=1&&u.slice(1).map(p=>{if(p){const m=p.indexOf(":");if(m>-1){const g=p.slice(0,m),x=p.slice(m+1).trim();a.append(g,x)}}}),a}toString(){if(this.headers.size===0&&this._code===0)return"";let s=f0;this._code>0&&this._description!==""&&(s+=` ${this._code} ${this._description}`);for(const[a,o]of this.headers)for(let u=0;u<o.length;u++)s=`${s}\r
246
- ${a}: ${o[u]}`;return`${s}\r
247
- \r
248
- `}encode(){return to.encode(this.toString())}static validHeaderValue(s){if(/[\r\n]/.test(s))throw new xe("invalid header value - \\r and \\n are not allowed.",ue.BadHeader);return s.trim()}keys(){const s=[];for(const a of this.headers.keys())s.push(a);return s}findKeys(s,a=Xn.Exact){const o=this.keys();switch(a){case Xn.Exact:return o.filter(u=>u===s);case Xn.CanonicalMIME:return s=cw(s),o.filter(u=>u===s);default:{const u=s.toLowerCase();return o.filter(d=>u===d.toLowerCase())}}}get(s,a=Xn.Exact){const o=this.findKeys(s,a);if(o.length){const u=this.headers.get(o[0]);if(u)return Array.isArray(u)?u[0]:u}return""}last(s,a=Xn.Exact){const o=this.findKeys(s,a);if(o.length){const u=this.headers.get(o[0]);if(u)return Array.isArray(u)?u[u.length-1]:u}return""}has(s,a=Xn.Exact){return this.findKeys(s,a).length>0}set(s,a,o=Xn.Exact){this.delete(s,o),this.append(s,a,o)}append(s,a,o=Xn.Exact){const u=cw(s);o===Xn.CanonicalMIME&&(s=u);const d=this.findKeys(s,o);s=d.length>0?d[0]:s;const p=si.validHeaderValue(a);let m=this.headers.get(s);m||(m=[],this.headers.set(s,m)),m.push(p)}values(s,a=Xn.Exact){const o=[];return this.findKeys(s,a).forEach(d=>{const p=this.headers.get(d);p&&o.push(...p)}),o}delete(s,a=Xn.Exact){this.findKeys(s,a).forEach(u=>{this.headers.delete(u)})}get hasError(){return this._code>=300}get status(){return`${this._code} ${this._description}`.trim()}toRecord(){const s={};return this.keys().forEach(a=>{s[a]=this.values(a)}),s}get code(){return this._code}get description(){return this._description}static fromRecord(s){const a=new si;for(const o in s)a.headers.set(o,s[o]);return a}}function O0(){return{encode(r){return to.encode(r)},decode(r){return Wn.decode(r)}}}function Bs(r){return{encode(s){try{return s===void 0&&(s=null),to.encode(JSON.stringify(s))}catch(a){throw xe.errorForCode(ue.BadJson,a)}},decode(s){try{return JSON.parse(Wn.decode(s),r)}catch(a){throw xe.errorForCode(ue.BadJson,a)}}}}function vS(r){var s;return r&&r.data.length===0&&((s=r.headers)==null?void 0:s.code)===503?xe.errorForCode(ue.NoResponders):null}class ry{constructor(s,a,o){w(this,"_headers");w(this,"_msg");w(this,"_rdata");w(this,"_reply");w(this,"_subject");w(this,"publisher");this._msg=s,this._rdata=a,this.publisher=o}get subject(){return this._subject?this._subject:(this._subject=Wn.decode(this._msg.subject),this._subject)}get reply(){return this._reply?this._reply:(this._reply=Wn.decode(this._msg.reply),this._reply)}get sid(){return this._msg.sid}get headers(){if(this._msg.hdr>-1&&!this._headers){const s=this._rdata.subarray(0,this._msg.hdr);this._headers=si.decode(s)}return this._headers}get data(){return this._rdata?this._msg.hdr>-1?this._rdata.subarray(this._msg.hdr):this._rdata:new Uint8Array(0)}respond(s=ts,a){return this.reply?(this.publisher.publish(this.reply,s,a),!0):!1}size(){var u;const s=this._msg.subject.length,a=((u=this._msg.reply)==null?void 0:u.length)||0,o=this._msg.size===-1?0:this._msg.size;return s+a+o}json(s){return Bs(s).decode(this.data)}string(){return Wn.decode(this.data)}requestInfo(){var a;const s=(a=this.headers)==null?void 0:a.get("Nats-Request-Info");return s?JSON.parse(s,function(o,u){return(o==="start"||o==="stop")&&u!==""?new Date(Date.parse(u)):u}):null}}w(ry,"jc");function pl(r){return Nh("durable",r)}function _n(r){return Nh("stream",r)}function Nh(r,s=""){if(s==="")throw Error(`${r} name required`);return[".","*",">","/","\\"," "," ",`
249
- `,"\r"].forEach(o=>{if(s.indexOf(o)!==-1){switch(o){case`
250
- `:o="\\n";break;case"\r":o="\\r";break;case" ":o="\\t";break}throw Error(`invalid ${r} name - ${r} name cannot contain '${o}'`)}}),""}function du(r,s=""){if(s==="")throw Error(`${r} name required`);const a=XT(s);if(a.length)throw new Error(`invalid ${r} name - ${r} name ${a}`)}function XT(r=""){if(r==="")throw Error("name required");const s=/^[-\w]+$/g;if(r.match(s)===null){for(const o of r.split(""))if(o.match(s)===null)return`cannot contain '${o}'`}return""}function j0(r){if(r.data.length>0)return!1;const s=r.headers;return s?s.code>=100&&s.code<200:!1}function R0(r){var s;return j0(r)&&((s=r.headers)==null?void 0:s.description)==="Idle Heartbeat"}function ZT(r,s,a){const o=ir(r,s),u={hdr:1,sid:0,size:0},d=new ry(u,ts,{});return d._headers=o,d._subject=a,d}function bl(r){if(r.data.length!==0)return null;const s=r.headers;return s?xS(s.code,s.description):null}var vs;(function(r){r.MaxBatchExceeded="exceeded maxrequestbatch of",r.MaxExpiresExceeded="exceeded maxrequestexpires of",r.MaxBytesExceeded="exceeded maxrequestmaxbytes of",r.MaxMessageSizeExceeded="message size exceeds maxbytes",r.PushConsumer="consumer is push based",r.MaxWaitingExceeded="exceeded maxwaiting",r.IdleHeartbeatMissed="idle heartbeats missed",r.ConsumerDeleted="consumer deleted"})(vs||(vs={}));function KT(r){return r.code!==ue.JetStream409?!1:[vs.MaxBatchExceeded,vs.MaxExpiresExceeded,vs.MaxBytesExceeded,vs.MaxMessageSizeExceeded,vs.PushConsumer,vs.IdleHeartbeatMissed,vs.ConsumerDeleted].find(a=>r.message.indexOf(a)!==-1)!==void 0}function xS(r,s=""){if(r<300)return null;switch(s=s.toLowerCase(),r){case 404:return new xe(s,ue.JetStream404NoMessages);case 408:return new xe(s,ue.JetStream408RequestTimeout);case 409:{const a=s.startsWith(vs.IdleHeartbeatMissed)?ue.JetStreamIdleHeartBeat:ue.JetStream409;return new xe(s,a)}case 503:return xe.errorForCode(ue.JetStreamNotEnabled,new Error(s));default:return s===""&&(s=ue.Unknown),new xe(s,`${r}`)}}class sn{constructor(){w(this,"inflight");w(this,"processed");w(this,"received");w(this,"noIterator");w(this,"iterClosed");w(this,"done");w(this,"signal");w(this,"yields");w(this,"filtered");w(this,"pendingFiltered");w(this,"ingestionFilterFn");w(this,"protocolFilterFn");w(this,"dispatchedFn");w(this,"ctx");w(this,"_data");w(this,"err");w(this,"time");w(this,"yielding");this.inflight=0,this.filtered=0,this.pendingFiltered=0,this.processed=0,this.received=0,this.noIterator=!1,this.done=!1,this.signal=_t(),this.yields=[],this.iterClosed=_t(),this.time=0,this.yielding=!1}[Symbol.asyncIterator](){return this.iterate()}push(s){if(this.done)return;if(typeof s=="function"){this.yields.push(s),this.signal.resolve();return}const{ingest:a,protocol:o}=this.ingestionFilterFn?this.ingestionFilterFn(s,this.ctx||this):{ingest:!0,protocol:!1};a&&(o&&(this.filtered++,this.pendingFiltered++),this.yields.push(s),this.signal.resolve())}async*iterate(){if(this.noIterator)throw new xe("unsupported iterator",ue.ApiError);if(this.yielding)throw new xe("already yielding",ue.ApiError);this.yielding=!0;try{for(;;){if(this.yields.length===0&&await this.signal,this.err)throw this.err;const s=this.yields;this.inflight=s.length,this.yields=[];for(let a=0;a<s.length;a++){if(typeof s[a]=="function"){const u=s[a];try{u()}catch(d){throw d}if(this.err)throw this.err;continue}if(this.protocolFilterFn?this.protocolFilterFn(s[a]):!0){this.processed++;const u=Date.now();yield s[a],this.time=Date.now()-u,this.dispatchedFn&&s[a]&&this.dispatchedFn(s[a])}else this.pendingFiltered--;this.inflight--}if(this.done)break;this.yields.length===0&&(s.length=0,this.yields=s,this.signal=_t())}}finally{this.stop()}}stop(s){this.done||(this.err=s,this.done=!0,this.signal.resolve(),this.iterClosed.resolve(s))}getProcessed(){return this.noIterator?this.received:this.processed}getPending(){return this.yields.length+this.inflight-this.pendingFiltered}getReceived(){return this.received-this.filtered}}class iy{constructor(s,a,o={maxOut:2}){w(this,"interval");w(this,"maxOut");w(this,"cancelAfter");w(this,"timer");w(this,"autoCancelTimer");w(this,"last");w(this,"missed");w(this,"count");w(this,"callback");this.interval=s,this.maxOut=(o==null?void 0:o.maxOut)||2,this.cancelAfter=(o==null?void 0:o.cancelAfter)||0,this.last=Date.now(),this.missed=0,this.count=0,this.callback=a,this._schedule()}cancel(){this.autoCancelTimer&&clearTimeout(this.autoCancelTimer),this.timer&&clearInterval(this.timer),this.timer=0,this.autoCancelTimer=0,this.missed=0}work(){this.last=Date.now(),this.missed=0}_change(s,a=0,o=2){this.interval=s,this.maxOut=o,this.cancelAfter=a,this.restart()}restart(){this.cancel(),this._schedule()}_schedule(){this.cancelAfter>0&&(this.autoCancelTimer=setTimeout(()=>{this.cancel()},this.cancelAfter)),this.timer=setInterval(()=>{if(this.count++,Date.now()-this.last>this.interval&&this.missed++,this.missed>=this.maxOut)try{this.callback(this.missed)===!0&&this.cancel()}catch(s){console.log(s)}},this.interval)}}var M0;(function(r){r.Limits="limits",r.Interest="interest",r.Workqueue="workqueue"})(M0||(M0={}));var xu;(function(r){r.Old="old",r.New="new"})(xu||(xu={}));var k0;(function(r){r.File="file",r.Memory="memory"})(k0||(k0={}));var Vt;(function(r){r.All="all",r.Last="last",r.New="new",r.StartSequence="by_start_sequence",r.StartTime="by_start_time",r.LastPerSubject="last_per_subject"})(Vt||(Vt={}));var nn;(function(r){r.None="none",r.All="all",r.Explicit="explicit",r.NotSet=""})(nn||(nn={}));var xl;(function(r){r.Instant="instant",r.Original="original"})(xl||(xl={}));var li;(function(r){r.None="none",r.S2="s2"})(li||(li={}));var fh;(function(r){r.CreateOrUpdate="",r.Update="update",r.Create="create"})(fh||(fh={}));function WT(r,s={}){return Object.assign({name:r,deliver_policy:Vt.All,ack_policy:nn.Explicit,ack_wait:St(30*1e3),replay_policy:xl.Instant},s)}var uw;(function(r){r.API="api_audit",r.StreamAction="stream_action",r.ConsumerAction="consumer_action",r.SnapshotCreate="snapshot_create",r.SnapshotComplete="snapshot_complete",r.RestoreCreate="restore_create",r.RestoreComplete="restore_complete",r.MaxDeliver="max_deliver",r.Terminated="terminated",r.Ack="consumer_ack",r.StreamLeaderElected="stream_leader_elected",r.StreamQuorumLost="stream_quorum_lost",r.ConsumerLeaderElected="consumer_leader_elected",r.ConsumerQuorumLost="consumer_quorum_lost"})(uw||(uw={}));var Dn;(function(r){r.StreamSourceHdr="Nats-Stream-Source",r.LastConsumerSeqHdr="Nats-Last-Consumer",r.LastStreamSeqHdr="Nats-Last-Stream",r.ConsumerStalledHdr="Nats-Consumer-Stalled",r.MessageSizeHdr="Nats-Msg-Size",r.RollupHdr="Nats-Rollup",r.RollupValueSubject="sub",r.RollupValueAll="all",r.PendingMessagesHdr="Nats-Pending-Messages",r.PendingBytesHdr="Nats-Pending-Bytes"})(Dn||(Dn={}));var Vs;(function(r){r.LastValue="",r.AllHistory="history",r.UpdatesOnly="updates"})(Vs||(Vs={}));var dl;(function(r){r.Stream="Nats-Stream",r.Sequence="Nats-Sequence",r.TimeStamp="Nats-Time-Stamp",r.Subject="Nats-Subject"})(dl||(dl={}));var fw;(function(r){r.Stream="Nats-Stream",r.Subject="Nats-Subject",r.Sequence="Nats-Sequence",r.LastSequence="Nats-Last-Sequence",r.Size="Nats-Msg-Size"})(fw||(fw={}));const Zn="KV_";class eC{constructor(s){w(this,"config");w(this,"ordered");w(this,"mack");w(this,"stream");w(this,"callbackFn");w(this,"max");w(this,"qname");w(this,"isBind");w(this,"filters");this.stream="",this.mack=!1,this.ordered=!1,this.config=WT("",s||{})}getOpts(){var a;const s={};if(s.config=Object.assign({},this.config),s.config.filter_subject&&(this.filterSubject(s.config.filter_subject),s.config.filter_subject=void 0),s.config.filter_subjects&&((a=s.config.filter_subjects)==null||a.forEach(o=>{this.filterSubject(o)}),s.config.filter_subjects=void 0),s.mack=this.mack,s.stream=this.stream,s.callbackFn=this.callbackFn,s.max=this.max,s.queue=this.qname,s.ordered=this.ordered,s.config.ack_policy=s.ordered?nn.None:s.config.ack_policy,s.isBind=s.isBind||!1,this.filters)switch(this.filters.length){case 0:break;case 1:s.config.filter_subject=this.filters[0];break;default:s.config.filter_subjects=this.filters}return s}description(s){return this.config.description=s,this}deliverTo(s){return this.config.deliver_subject=s,this}durable(s){return pl(s),this.config.durable_name=s,this}startSequence(s){if(s<=0)throw new Error("sequence must be greater than 0");return this.config.deliver_policy=Vt.StartSequence,this.config.opt_start_seq=s,this}startTime(s){return this.config.deliver_policy=Vt.StartTime,this.config.opt_start_time=s.toISOString(),this}deliverAll(){return this.config.deliver_policy=Vt.All,this}deliverLastPerSubject(){return this.config.deliver_policy=Vt.LastPerSubject,this}deliverLast(){return this.config.deliver_policy=Vt.Last,this}deliverNew(){return this.config.deliver_policy=Vt.New,this}startAtTimeDelta(s){return this.startTime(new Date(Date.now()-s)),this}headersOnly(){return this.config.headers_only=!0,this}ackNone(){return this.config.ack_policy=nn.None,this}ackAll(){return this.config.ack_policy=nn.All,this}ackExplicit(){return this.config.ack_policy=nn.Explicit,this}ackWait(s){return this.config.ack_wait=St(s),this}maxDeliver(s){return this.config.max_deliver=s,this}filterSubject(s){return this.filters=this.filters||[],this.filters.push(s),this}replayInstantly(){return this.config.replay_policy=xl.Instant,this}replayOriginal(){return this.config.replay_policy=xl.Original,this}sample(s){if(s=Math.trunc(s),s<0||s>100)throw new Error("value must be between 0-100");return this.config.sample_freq=`${s}%`,this}limit(s){return this.config.rate_limit_bps=s,this}maxWaiting(s){return this.config.max_waiting=s,this}maxAckPending(s){return this.config.max_ack_pending=s,this}idleHeartbeat(s){return this.config.idle_heartbeat=St(s),this}flowControl(){return this.config.flow_control=!0,this}deliverGroup(s){return this.queue(s),this}manualAck(){return this.mack=!0,this}maxMessages(s){return this.max=s,this}callback(s){return this.callbackFn=s,this}queue(s){return this.qname=s,this.config.deliver_group=s,this}orderedConsumer(){return this.ordered=!0,this}bind(s,a){return this.stream=s,this.config.durable_name=a,this.isBind=!0,this}bindStream(s){return this.stream=s,this}inactiveEphemeralThreshold(s){return this.config.inactive_threshold=St(s),this}maxPullBatch(s){return this.config.max_batch=s,this}maxPullRequestExpires(s){return this.config.max_expires=St(s),this}memory(){return this.config.mem_storage=!0,this}numReplicas(s){return this.config.num_replicas=s,this}consumerName(s){return this.config.name=s,this}}function ai(r){return new eC(r)}function dw(r){return typeof r.getOpts=="function"}class tC{static encode(s){if(typeof s=="string")return btoa(s);const a=Array.from(s);return btoa(String.fromCharCode(...a))}static decode(s,a=!1){const o=atob(s);return a?Uint8Array.from(o,u=>u.charCodeAt(0)):o}}class yl{static encode(s){return yl.toB64URLEncoding(tC.encode(s))}static decode(s,a=!1){return yl.decode(yl.fromB64URLEncoding(s),a)}static toB64URLEncoding(s){return s.replace(/\+/g,"-").replace(/\//g,"_")}static fromB64URLEncoding(s){return s.replace(/_/g,"/").replace(/-/g,"+")}}class Nl{constructor(){w(this,"buffers");w(this,"byteLength");this.buffers=[],this.byteLength=0}static concat(...s){let a=0;for(let d=0;d<s.length;d++)a+=s[d].length;const o=new Uint8Array(a);let u=0;for(let d=0;d<s.length;d++)o.set(s[d],u),u+=s[d].length;return o}static fromAscii(s){return s||(s=""),to.encode(s)}static toAscii(s){return Wn.decode(s)}reset(){this.buffers.length=0,this.byteLength=0}pack(){if(this.buffers.length>1){const s=new Uint8Array(this.byteLength);let a=0;for(let o=0;o<this.buffers.length;o++)s.set(this.buffers[o],a),a+=this.buffers[o].length;this.buffers.length=0,this.buffers.push(s)}}shift(){if(this.buffers.length){const s=this.buffers.shift();if(s)return this.byteLength-=s.length,s}return new Uint8Array(0)}drain(s){if(this.buffers.length){this.pack();const a=this.buffers.pop();if(a){const o=this.byteLength;(s===void 0||s>o)&&(s=o);const u=a.subarray(0,s);return o>s&&this.buffers.push(a.subarray(s)),this.byteLength=o-s,u}}return new Uint8Array(0)}fill(s,...a){s&&(this.buffers.push(s),this.byteLength+=s.length);for(let o=0;o<a.length;o++)a[o]&&a[o].length&&(this.buffers.push(a[o]),this.byteLength+=a[o].length)}peek(){return this.buffers.length?(this.pack(),this.buffers[0]):new Uint8Array(0)}size(){return this.byteLength}length(){return this.buffers.length}}function nC(r,s){return s.forEach(function(a){a&&typeof a!="string"&&!Array.isArray(a)&&Object.keys(a).forEach(function(o){if(o!=="default"&&!(o in r)){var u=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(r,o,u.get?u:{enumerable:!0,get:function(){return a[o]}})}})}),Object.freeze(r)}var sC=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},iu=sC.performance||{};iu.now||iu.mozNow||iu.msNow||iu.oNow||iu.webkitNow;var hw={versions:{}},aC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rC(r){if(r.__esModule)return r;var s=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(a){var o=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(s,a,o.get?o:{enumerable:!0,get:function(){return r[a]}})}),s}var d0,Eh={exports:{}},mw={},pw=rC(nC({__proto__:null,default:mw},[mw]));d0=Eh,(function(){var r="input is invalid type",s=typeof window=="object",a=s?window:{};a.JS_SHA256_NO_WINDOW&&(s=!1);var o=!s&&typeof self=="object",u=!a.JS_SHA256_NO_NODE_JS&&hw.versions&&hw.versions.node;u?a=aC:o&&(a=self);var d=!a.JS_SHA256_NO_COMMON_JS&&d0.exports,p=!a.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",m="0123456789abcdef".split(""),g=[-2147483648,8388608,32768,128],x=[24,16,8,0],S=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],E=["hex","array","digest","arrayBuffer"],D=[];!a.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(V){return Object.prototype.toString.call(V)==="[object Array]"}),!p||!a.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(V){return typeof V=="object"&&V.buffer&&V.buffer.constructor===ArrayBuffer});var q=function(V,ne){return function(fe){return new te(ne,!0).update(fe)[V]()}},k=function(V){var ne=q("hex",V);u&&(ne=L(ne,V)),ne.create=function(){return new te(V)},ne.update=function(Q){return ne.create().update(Q)};for(var fe=0;fe<E.length;++fe){var J=E[fe];ne[J]=q(J,V)}return ne},L=function(V,ne){var fe,J=pw,Q=pw.Buffer,H=ne?"sha224":"sha256";return fe=Q.from&&!a.JS_SHA256_NO_BUFFER_FROM?Q.from:function(oe){return new Q(oe)},function(oe){if(typeof oe=="string")return J.createHash(H).update(oe,"utf8").digest("hex");if(oe==null)throw new Error(r);return oe.constructor===ArrayBuffer&&(oe=new Uint8Array(oe)),Array.isArray(oe)||ArrayBuffer.isView(oe)||oe.constructor===Q?J.createHash(H).update(fe(oe)).digest("hex"):V(oe)}},I=function(V,ne){return function(fe,J){return new Ne(fe,ne,!0).update(J)[V]()}},W=function(V){var ne=I("hex",V);ne.create=function(Q){return new Ne(Q,V)},ne.update=function(Q,H){return ne.create(Q).update(H)};for(var fe=0;fe<E.length;++fe){var J=E[fe];ne[J]=I(J,V)}return ne};function te(V,ne){ne?(D[0]=D[16]=D[1]=D[2]=D[3]=D[4]=D[5]=D[6]=D[7]=D[8]=D[9]=D[10]=D[11]=D[12]=D[13]=D[14]=D[15]=0,this.blocks=D):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],V?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=V}function Ne(V,ne,fe){var J,Q=typeof V;if(Q==="string"){var H,oe=[],ae=V.length,ge=0;for(J=0;J<ae;++J)(H=V.charCodeAt(J))<128?oe[ge++]=H:H<2048?(oe[ge++]=192|H>>>6,oe[ge++]=128|63&H):H<55296||H>=57344?(oe[ge++]=224|H>>>12,oe[ge++]=128|H>>>6&63,oe[ge++]=128|63&H):(H=65536+((1023&H)<<10|1023&V.charCodeAt(++J)),oe[ge++]=240|H>>>18,oe[ge++]=128|H>>>12&63,oe[ge++]=128|H>>>6&63,oe[ge++]=128|63&H);V=oe}else{if(Q!=="object")throw new Error(r);if(V===null)throw new Error(r);if(p&&V.constructor===ArrayBuffer)V=new Uint8Array(V);else if(!(Array.isArray(V)||p&&ArrayBuffer.isView(V)))throw new Error(r)}V.length>64&&(V=new te(ne,!0).update(V).array());var Fe=[],Xe=[];for(J=0;J<64;++J){var re=V[J]||0;Fe[J]=92^re,Xe[J]=54^re}te.call(this,ne,fe),this.update(Xe),this.oKeyPad=Fe,this.inner=!0,this.sharedMemory=fe}te.prototype.update=function(V){if(!this.finalized){var ne,fe=typeof V;if(fe!=="string"){if(fe!=="object")throw new Error(r);if(V===null)throw new Error(r);if(p&&V.constructor===ArrayBuffer)V=new Uint8Array(V);else if(!(Array.isArray(V)||p&&ArrayBuffer.isView(V)))throw new Error(r);ne=!0}for(var J,Q,H=0,oe=V.length,ae=this.blocks;H<oe;){if(this.hashed&&(this.hashed=!1,ae[0]=this.block,this.block=ae[16]=ae[1]=ae[2]=ae[3]=ae[4]=ae[5]=ae[6]=ae[7]=ae[8]=ae[9]=ae[10]=ae[11]=ae[12]=ae[13]=ae[14]=ae[15]=0),ne)for(Q=this.start;H<oe&&Q<64;++H)ae[Q>>>2]|=V[H]<<x[3&Q++];else for(Q=this.start;H<oe&&Q<64;++H)(J=V.charCodeAt(H))<128?ae[Q>>>2]|=J<<x[3&Q++]:J<2048?(ae[Q>>>2]|=(192|J>>>6)<<x[3&Q++],ae[Q>>>2]|=(128|63&J)<<x[3&Q++]):J<55296||J>=57344?(ae[Q>>>2]|=(224|J>>>12)<<x[3&Q++],ae[Q>>>2]|=(128|J>>>6&63)<<x[3&Q++],ae[Q>>>2]|=(128|63&J)<<x[3&Q++]):(J=65536+((1023&J)<<10|1023&V.charCodeAt(++H)),ae[Q>>>2]|=(240|J>>>18)<<x[3&Q++],ae[Q>>>2]|=(128|J>>>12&63)<<x[3&Q++],ae[Q>>>2]|=(128|J>>>6&63)<<x[3&Q++],ae[Q>>>2]|=(128|63&J)<<x[3&Q++]);this.lastByteIndex=Q,this.bytes+=Q-this.start,Q>=64?(this.block=ae[16],this.start=Q-64,this.hash(),this.hashed=!0):this.start=Q}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},te.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var V=this.blocks,ne=this.lastByteIndex;V[16]=this.block,V[ne>>>2]|=g[3&ne],this.block=V[16],ne>=56&&(this.hashed||this.hash(),V[0]=this.block,V[16]=V[1]=V[2]=V[3]=V[4]=V[5]=V[6]=V[7]=V[8]=V[9]=V[10]=V[11]=V[12]=V[13]=V[14]=V[15]=0),V[14]=this.hBytes<<3|this.bytes>>>29,V[15]=this.bytes<<3,this.hash()}},te.prototype.hash=function(){var V,ne,fe,J,Q,H,oe,ae,ge,Fe=this.h0,Xe=this.h1,re=this.h2,be=this.h3,Ee=this.h4,Me=this.h5,Oe=this.h6,X=this.h7,we=this.blocks;for(V=16;V<64;++V)ne=((Q=we[V-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3,fe=((Q=we[V-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10,we[V]=we[V-16]+ne+we[V-7]+fe|0;for(ge=Xe&re,V=0;V<64;V+=4)this.first?(this.is224?(H=300032,X=(Q=we[0]-1413257819)-150054599|0,be=Q+24177077|0):(H=704751109,X=(Q=we[0]-210244248)-1521486534|0,be=Q+143694565|0),this.first=!1):(ne=(Fe>>>2|Fe<<30)^(Fe>>>13|Fe<<19)^(Fe>>>22|Fe<<10),J=(H=Fe&Xe)^Fe&re^ge,X=be+(Q=X+(fe=(Ee>>>6|Ee<<26)^(Ee>>>11|Ee<<21)^(Ee>>>25|Ee<<7))+(Ee&Me^~Ee&Oe)+S[V]+we[V])|0,be=Q+(ne+J)|0),ne=(be>>>2|be<<30)^(be>>>13|be<<19)^(be>>>22|be<<10),J=(oe=be&Fe)^be&Xe^H,Oe=re+(Q=Oe+(fe=(X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&Ee^~X&Me)+S[V+1]+we[V+1])|0,ne=((re=Q+(ne+J)|0)>>>2|re<<30)^(re>>>13|re<<19)^(re>>>22|re<<10),J=(ae=re&be)^re&Fe^oe,Me=Xe+(Q=Me+(fe=(Oe>>>6|Oe<<26)^(Oe>>>11|Oe<<21)^(Oe>>>25|Oe<<7))+(Oe&X^~Oe&Ee)+S[V+2]+we[V+2])|0,ne=((Xe=Q+(ne+J)|0)>>>2|Xe<<30)^(Xe>>>13|Xe<<19)^(Xe>>>22|Xe<<10),J=(ge=Xe&re)^Xe&be^ae,Ee=Fe+(Q=Ee+(fe=(Me>>>6|Me<<26)^(Me>>>11|Me<<21)^(Me>>>25|Me<<7))+(Me&Oe^~Me&X)+S[V+3]+we[V+3])|0,Fe=Q+(ne+J)|0,this.chromeBugWorkAround=!0;this.h0=this.h0+Fe|0,this.h1=this.h1+Xe|0,this.h2=this.h2+re|0,this.h3=this.h3+be|0,this.h4=this.h4+Ee|0,this.h5=this.h5+Me|0,this.h6=this.h6+Oe|0,this.h7=this.h7+X|0},te.prototype.hex=function(){this.finalize();var V=this.h0,ne=this.h1,fe=this.h2,J=this.h3,Q=this.h4,H=this.h5,oe=this.h6,ae=this.h7,ge=m[V>>>28&15]+m[V>>>24&15]+m[V>>>20&15]+m[V>>>16&15]+m[V>>>12&15]+m[V>>>8&15]+m[V>>>4&15]+m[15&V]+m[ne>>>28&15]+m[ne>>>24&15]+m[ne>>>20&15]+m[ne>>>16&15]+m[ne>>>12&15]+m[ne>>>8&15]+m[ne>>>4&15]+m[15&ne]+m[fe>>>28&15]+m[fe>>>24&15]+m[fe>>>20&15]+m[fe>>>16&15]+m[fe>>>12&15]+m[fe>>>8&15]+m[fe>>>4&15]+m[15&fe]+m[J>>>28&15]+m[J>>>24&15]+m[J>>>20&15]+m[J>>>16&15]+m[J>>>12&15]+m[J>>>8&15]+m[J>>>4&15]+m[15&J]+m[Q>>>28&15]+m[Q>>>24&15]+m[Q>>>20&15]+m[Q>>>16&15]+m[Q>>>12&15]+m[Q>>>8&15]+m[Q>>>4&15]+m[15&Q]+m[H>>>28&15]+m[H>>>24&15]+m[H>>>20&15]+m[H>>>16&15]+m[H>>>12&15]+m[H>>>8&15]+m[H>>>4&15]+m[15&H]+m[oe>>>28&15]+m[oe>>>24&15]+m[oe>>>20&15]+m[oe>>>16&15]+m[oe>>>12&15]+m[oe>>>8&15]+m[oe>>>4&15]+m[15&oe];return this.is224||(ge+=m[ae>>>28&15]+m[ae>>>24&15]+m[ae>>>20&15]+m[ae>>>16&15]+m[ae>>>12&15]+m[ae>>>8&15]+m[ae>>>4&15]+m[15&ae]),ge},te.prototype.toString=te.prototype.hex,te.prototype.digest=function(){this.finalize();var V=this.h0,ne=this.h1,fe=this.h2,J=this.h3,Q=this.h4,H=this.h5,oe=this.h6,ae=this.h7,ge=[V>>>24&255,V>>>16&255,V>>>8&255,255&V,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne,fe>>>24&255,fe>>>16&255,fe>>>8&255,255&fe,J>>>24&255,J>>>16&255,J>>>8&255,255&J,Q>>>24&255,Q>>>16&255,Q>>>8&255,255&Q,H>>>24&255,H>>>16&255,H>>>8&255,255&H,oe>>>24&255,oe>>>16&255,oe>>>8&255,255&oe];return this.is224||ge.push(ae>>>24&255,ae>>>16&255,ae>>>8&255,255&ae),ge},te.prototype.array=te.prototype.digest,te.prototype.arrayBuffer=function(){this.finalize();var V=new ArrayBuffer(this.is224?28:32),ne=new DataView(V);return ne.setUint32(0,this.h0),ne.setUint32(4,this.h1),ne.setUint32(8,this.h2),ne.setUint32(12,this.h3),ne.setUint32(16,this.h4),ne.setUint32(20,this.h5),ne.setUint32(24,this.h6),this.is224||ne.setUint32(28,this.h7),V},Ne.prototype=new te,Ne.prototype.finalize=function(){if(te.prototype.finalize.call(this),this.inner){this.inner=!1;var V=this.array();te.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(V),te.prototype.finalize.call(this)}};var le=k();le.sha256=le,le.sha224=k(!0),le.sha256.hmac=W(),le.sha224.hmac=W(!0),d?d0.exports=le:(a.sha256=le.sha256,a.sha224=le.sha224)})();Eh.exports;Eh.exports.sha224;var bw=Eh.exports.sha256;function V0(r){return fC(r)}function iC(r){if(!/^[0-9A-Fa-f]+$/.test(r))return!1;const a=/^[0-9A-F]+$/.test(r),o=/^[0-9a-f]+$/.test(r);return a||o?r.length%2===0:!1}function oC(r){return/^[A-Za-z0-9\-_]*(={0,2})?$/.test(r)||/^[A-Za-z0-9+/]*(={0,2})?$/.test(r)}function lC(r){return iC(r)?"hex":oC(r)?"b64":""}function cC(r){if(r.length%2!==0)throw new Error("hex string must have an even length");const s=new Uint8Array(r.length/2);for(let a=0;a<r.length;a+=2)s[a/2]=parseInt(r.substring(a,a+2),16);return s}function uC(r){r=r.replace(/-/g,"+"),r=r.replace(/_/g,"/");const s=atob(r);return Uint8Array.from(s,a=>a.charCodeAt(0))}function fC(r){switch(lC(r)){case"hex":return cC(r);case"b64":return uC(r)}return null}function dC(r,s){const a=typeof r=="string"?V0(r):r,o=typeof s=="string"?V0(s):s;if(a===null||o===null||a.length!==o.length)return!1;for(let u=0;u<a.length;u++)if(a[u]!==o[u])return!1;return!0}class NS{constructor(s,a,o=!0){w(this,"token");w(this,"received");w(this,"ctx");w(this,"requestSubject");w(this,"mux");this.mux=s,this.requestSubject=a,this.received=0,this.token=oi.next(),o&&(this.ctx=new Error)}}class hC extends NS{constructor(a,o,u={maxWait:1e3}){super(a,o);w(this,"callback");w(this,"done");w(this,"timer");w(this,"max");w(this,"opts");if(this.opts=u,typeof this.opts.callback!="function")throw new Error("callback is required");this.callback=this.opts.callback,this.max=typeof u.maxMessages=="number"&&u.maxMessages>0?u.maxMessages:-1,this.done=_t(),this.done.then(()=>{this.callback(null,null)}),this.timer=setTimeout(()=>{this.cancel()},u.maxWait)}cancel(a){a&&this.callback(a,null),clearTimeout(this.timer),this.mux.cancel(this),this.done.resolve()}resolver(a,o){a?(this.ctx&&(a.stack+=`
251
-
252
- ${this.ctx.stack}`),this.cancel(a)):(this.callback(null,o),this.opts.strategy===zs.Count&&(this.max--,this.max===0&&this.cancel()),this.opts.strategy===zs.JitterTimer&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.cancel()},this.opts.jitter||300)),this.opts.strategy===zs.SentinelMsg&&o&&o.data.length===0&&this.cancel())}}class ES extends NS{constructor(a,o,u={timeout:1e3},d=!0){super(a,o,d);w(this,"deferred");w(this,"timer");this.deferred=_t(),this.timer=vl(u.timeout,d)}resolver(a,o){this.timer&&this.timer.cancel(),a?(this.ctx&&(a.stack+=`
253
-
254
- ${this.ctx.stack}`),this.deferred.reject(a)):this.deferred.resolve(o),this.cancel()}cancel(a){this.timer&&this.timer.cancel(),this.mux.cancel(this),this.deferred.reject(a||xe.errorForCode(ue.Cancelled))}}const mC="$JS.API";function pC(r){return r=r||{},r.domain&&(r.apiPrefix=`$JS.${r.domain}.API`,delete r.domain),xh({apiPrefix:mC,timeout:5e3},r)}class _u{constructor(s,a){w(this,"nc");w(this,"opts");w(this,"prefix");w(this,"timeout");w(this,"jc");this.nc=s,this.opts=pC(a),this._parseOpts(),this.prefix=this.opts.apiPrefix,this.timeout=this.opts.timeout,this.jc=Bs()}getOptions(){return Object.assign({},this.opts)}_parseOpts(){let s=this.opts.apiPrefix;if(!s||s.length===0)throw new Error("invalid empty prefix");s[s.length-1]==="."&&(s=s.substr(0,s.length-1)),this.opts.apiPrefix=s}async _request(s,a=null,o){o=o||{},o.timeout=this.timeout;let u=ts;a&&(u=this.jc.encode(a));let{retries:d}=o;d=d||1,d=d===-1?Number.MAX_SAFE_INTEGER:d;const p=sy();for(let m=0;m<d;m++)try{const g=await this.nc.request(s,u,o);return this.parseJsResponse(g)}catch(g){const x=g;if((x.code==="503"||x.code===ue.Timeout)&&m+1<d)await El(p.backoff(m));else throw g}}async findStream(s){const a={subject:s},u=await this._request(`${this.prefix}.STREAM.NAMES`,a);if(!u.streams||u.streams.length!==1)throw new Error("no stream matches subject");return u.streams[0]}getConnection(){return this.nc}parseJsResponse(s){const a=this.jc.decode(s.data),o=a;if(o.error){const u=xS(o.error.code,o.error.description);if(u!==null)throw u.api_error=o.error,u}return a}}class hu{constructor(s,a,o,u){w(this,"err");w(this,"offset");w(this,"pageInfo");w(this,"subject");w(this,"jsm");w(this,"filter");w(this,"payload");if(!s)throw new Error("subject is required");this.subject=s,this.jsm=o,this.offset=0,this.pageInfo={},this.filter=a,this.payload=u||{}}async next(){if(this.err)return[];if(this.pageInfo&&this.offset>=this.pageInfo.total)return[];const s={offset:this.offset};this.payload&&Object.assign(s,this.payload);try{const a=await this.jsm._request(this.subject,s,{timeout:this.jsm.timeout});this.pageInfo=a;const o=this.countResponse(a);return o===0?[]:(this.offset+=o,this.filter(a))}catch(a){throw this.err=a,a}}countResponse(s){var a,o,u;switch(s==null?void 0:s.type){case"io.nats.jetstream.api.v1.stream_names_response":case"io.nats.jetstream.api.v1.stream_list_response":return((a=s.streams)==null?void 0:a.length)||0;case"io.nats.jetstream.api.v1.consumer_list_response":return((o=s.consumers)==null?void 0:o.length)||0;default:return console.error(`jslister.ts: unknown API response for paged output: ${s==null?void 0:s.type}`),((u=s.streams)==null?void 0:u.length)||0}return 0}async*[Symbol.asyncIterator](){let s=await this.next();for(;s.length>0;){for(const a of s)yield a;s=await this.next()}}}function Wi(r=""){const s=r.match(/(\d+).(\d+).(\d+)/);if(s)return{major:parseInt(s[1]),minor:parseInt(s[2]),micro:parseInt(s[3])};throw new Error(`'${r}' is not a semver value`)}function U0(r,s){return r.major<s.major?-1:r.major>s.major?1:r.minor<s.minor?-1:r.minor>s.minor?1:r.micro<s.micro?-1:r.micro>s.micro?1:0}var nt;(function(r){r.JS_KV="js_kv",r.JS_OBJECTSTORE="js_objectstore",r.JS_PULL_MAX_BYTES="js_pull_max_bytes",r.JS_NEW_CONSUMER_CREATE_API="js_new_consumer_create",r.JS_ALLOW_DIRECT="js_allow_direct",r.JS_MULTIPLE_CONSUMER_FILTER="js_multiple_consumer_filter",r.JS_SIMPLIFICATION="js_simplification",r.JS_STREAM_CONSUMER_METADATA="js_stream_consumer_metadata",r.JS_CONSUMER_FILTER_SUBJECTS="js_consumer_filter_subjects",r.JS_STREAM_FIRST_SEQ="js_stream_first_seq",r.JS_STREAM_SUBJECT_TRANSFORM="js_stream_subject_transform",r.JS_STREAM_SOURCE_SUBJECT_TRANSFORM="js_stream_source_subject_transform",r.JS_STREAM_COMPRESSION="js_stream_compression",r.JS_DEFAULT_CONSUMER_LIMITS="js_default_consumer_limits",r.JS_BATCH_DIRECT_GET="js_batch_direct_get"})(nt||(nt={}));class bC{constructor(s){w(this,"server");w(this,"features");w(this,"disabled");this.features=new Map,this.disabled=[],this.update(s)}resetDisabled(){this.disabled.length=0,this.update(this.server)}disable(s){this.disabled.push(s),this.update(this.server)}isDisabled(s){return this.disabled.indexOf(s)!==-1}update(s){typeof s=="string"&&(s=Wi(s)),this.server=s,this.set(nt.JS_KV,"2.6.2"),this.set(nt.JS_OBJECTSTORE,"2.6.3"),this.set(nt.JS_PULL_MAX_BYTES,"2.8.3"),this.set(nt.JS_NEW_CONSUMER_CREATE_API,"2.9.0"),this.set(nt.JS_ALLOW_DIRECT,"2.9.0"),this.set(nt.JS_MULTIPLE_CONSUMER_FILTER,"2.10.0"),this.set(nt.JS_SIMPLIFICATION,"2.9.4"),this.set(nt.JS_STREAM_CONSUMER_METADATA,"2.10.0"),this.set(nt.JS_CONSUMER_FILTER_SUBJECTS,"2.10.0"),this.set(nt.JS_STREAM_FIRST_SEQ,"2.10.0"),this.set(nt.JS_STREAM_SUBJECT_TRANSFORM,"2.10.0"),this.set(nt.JS_STREAM_SOURCE_SUBJECT_TRANSFORM,"2.10.0"),this.set(nt.JS_STREAM_COMPRESSION,"2.10.0"),this.set(nt.JS_DEFAULT_CONSUMER_LIMITS,"2.10.0"),this.set(nt.JS_BATCH_DIRECT_GET,"2.11.0"),this.disabled.forEach(a=>{this.features.delete(a)})}set(s,a){this.features.set(s,{min:a,ok:U0(this.server,Wi(a))>=0})}get(s){return this.features.get(s)||{min:"unknown",ok:!1}}supports(s){var a;return((a=this.get(s))==null?void 0:a.ok)||!1}require(s){return typeof s=="string"&&(s=Wi(s)),U0(this.server,s)>=0}}class dh extends _u{constructor(s,a){super(s,a)}async add(s,a,o=fh.Create){if(_n(s),a.deliver_group&&a.flow_control)throw new Error("jetstream flow control is not supported with queue groups");if(a.deliver_group&&a.idle_heartbeat)throw new Error("jetstream idle heartbeat is not supported with queue groups");const u={};u.config=a,u.stream_name=s,u.action=o,u.config.durable_name&&pl(u.config.durable_name);const d=this.nc;let{min:p,ok:m}=d.features.get(nt.JS_NEW_CONSUMER_CREATE_API);const g=a.name===""?void 0:a.name;if(g&&!m)throw new Error(`consumer 'name' requires server ${p}`);if(g)try{Nh("name",g)}catch(D){const q=D.message,k=q.indexOf("cannot contain");throw k!==-1?new Error(`consumer 'name' ${q.substring(k)}`):D}let x,S="";if(Array.isArray(a.filter_subjects)){const{min:D,ok:q}=d.features.get(nt.JS_MULTIPLE_CONSUMER_FILTER);if(!q)throw new Error(`consumer 'filter_subjects' requires server ${D}`);m=!1}if(a.metadata){const{min:D,ok:q}=d.features.get(nt.JS_STREAM_CONSUMER_METADATA);if(!q)throw new Error(`consumer 'metadata' requires server ${D}`)}if(m&&(S=a.name??a.durable_name??""),S!==""){let D=a.filter_subject??void 0;D===">"&&(D=void 0),x=D!==void 0?`${this.prefix}.CONSUMER.CREATE.${s}.${S}.${D}`:`${this.prefix}.CONSUMER.CREATE.${s}.${S}`}else x=a.durable_name?`${this.prefix}.CONSUMER.DURABLE.CREATE.${s}.${a.durable_name}`:`${this.prefix}.CONSUMER.CREATE.${s}`;return await this._request(x,u)}async update(s,a,o){const u=await this.info(s,a),d=o;return this.add(s,Object.assign(u.config,d),fh.Update)}async info(s,a){return _n(s),pl(a),await this._request(`${this.prefix}.CONSUMER.INFO.${s}.${a}`)}async delete(s,a){return _n(s),pl(a),(await this._request(`${this.prefix}.CONSUMER.DELETE.${s}.${a}`)).success}list(s){_n(s);const a=u=>u.consumers,o=`${this.prefix}.CONSUMER.LIST.${s}`;return new hu(o,a,this)}pause(s,a,o){const u=`${this.prefix}.CONSUMER.PAUSE.${s}.${a}`,d={pause_until:o.toISOString()};return this._request(u,d)}resume(s,a){return this.pause(s,a,new Date(0))}}function cl(r,s,a=!1){if(a===!0&&!r)throw xe.errorForCode(ue.ApiError,new Error(`${s} is not a function`));if(r&&typeof r!="function")throw xe.errorForCode(ue.ApiError,new Error(`${s} is not a function`))}class yC extends sn{constructor(a,o,u){super();w(this,"sub");w(this,"adapter");w(this,"subIterDone");cl(u.adapter,"adapter",!0),this.adapter=u.adapter,u.callback&&cl(u.callback,"callback"),this.noIterator=typeof u.callback=="function",u.ingestionFilterFn&&(cl(u.ingestionFilterFn,"ingestionFilterFn"),this.ingestionFilterFn=u.ingestionFilterFn),u.protocolFilterFn&&(cl(u.protocolFilterFn,"protocolFilterFn"),this.protocolFilterFn=u.protocolFilterFn),u.dispatchedFn&&(cl(u.dispatchedFn,"dispatchedFn"),this.dispatchedFn=u.dispatchedFn),u.cleanupFn&&cl(u.cleanupFn,"cleanupFn");let d=(S,E)=>{this.callback(S,E)};if(u.callback){const S=u.callback;d=(E,D)=>{const[q,k]=this.adapter(E,D);if(q){S(q,null);return}const{ingest:L}=this.ingestionFilterFn?this.ingestionFilterFn(k,this):{ingest:!0};L&&(!this.protocolFilterFn||this.protocolFilterFn(k))&&(S(q,k),this.dispatchedFn&&k&&this.dispatchedFn(k))}}const{max:p,queue:m,timeout:g}=u,x={queue:m,timeout:g,callback:d};p&&p>0&&(x.max=p),this.sub=a.subscribe(o,x),u.cleanupFn&&(this.sub.cleanupFn=u.cleanupFn),this.noIterator||this.iterClosed.then(()=>{this.unsubscribe()}),this.subIterDone=_t(),Promise.all([this.sub.closed,this.iterClosed]).then(()=>{this.subIterDone.resolve()}).catch(()=>{this.subIterDone.resolve()}),(async S=>{await S.closed,this.stop()})(this.sub).then().catch()}unsubscribe(a){this.sub.unsubscribe(a)}drain(){return this.sub.drain()}isDraining(){return this.sub.isDraining()}isClosed(){return this.sub.isClosed()}callback(a,o){this.sub.cancelTimeout();const[u,d]=this.adapter(a,o);u&&this.stop(u),d&&this.push(d)}getSubject(){return this.sub.getSubject()}getReceived(){return this.sub.getReceived()}getProcessed(){return this.sub.getProcessed()}getPending(){return this.sub.getPending()}getID(){return this.sub.getID()}getMax(){return this.sub.getMax()}get closed(){return this.sub.closed}}let es;function gC(r){es=r}function wS(){return es!==void 0&&es.defaultPort!==void 0?es.defaultPort:4222}function h0(){return es!==void 0&&es.urlParseFn?es.urlParseFn:void 0}function vC(){if(!es||typeof es.factory!="function")throw new Error("transport fn is not set");return es.factory()}function z0(){return es!==void 0&&es.dnsResolveFn?es.dnsResolveFn:void 0}const th=`\r
255
- `,hh=Nl.fromAscii(th),xC=new Uint8Array(hh)[0],NC=new Uint8Array(hh)[1];function EC(r){for(let s=0;s<r.length;s++){const a=s+1;if(r.byteLength>a&&r[s]===xC&&r[a]===NC)return a+1}return 0}function wC(r){const s=EC(r);if(s>0){const o=new Uint8Array(r).slice(0,s);return Wn.decode(o)}return""}const SC=4,SS=48,_C=65,AC=97;function DC(r,s,a,o){const u=new Uint8Array(16);return[0,0,0,0,0,0,0,0,0,0,255,255].forEach((p,m)=>{u[m]=p}),u[12]=r,u[13]=s,u[14]=a,u[15]=o,u}function B0(r){return TC(r)!==void 0}function TC(r){for(let s=0;s<r.length;s++)switch(r[s]){case".":return _S(r);case":":return CC(r)}}function _S(r){const s=new Uint8Array(4);for(let a=0;a<4;a++){if(r.length===0)return;if(a>0){if(r[0]!==".")return;r=r.substring(1)}const{n:o,c:u,ok:d}=OC(r);if(!d||o>255)return;r=r.substring(u),s[a]=o}return DC(s[0],s[1],s[2],s[3])}function CC(r){const s=new Uint8Array(16);let a=-1;if(r.length>=2&&r[0]===":"&&r[1]===":"&&(a=0,r=r.substring(2),r.length===0))return s;let o=0;for(;o<16;){const{n:u,c:d,ok:p}=jC(r);if(!p||u>65535)return;if(d<r.length&&r[d]==="."){if(a<0&&o!=12||o+4>16)return;const m=_S(r);if(m===void 0)return;s[o]=m[12],s[o+1]=m[13],s[o+2]=m[14],s[o+3]=m[15],r="",o+=SC;break}if(s[o]=u>>8,s[o+1]=u,o+=2,r=r.substring(d),r.length===0)break;if(r[0]!==":"||r.length==1)return;if(r=r.substring(1),r[0]===":"){if(a>=0)return;if(a=o,r=r.substring(1),r.length===0)break}}if(r.length===0){if(o<16){if(a<0)return;const u=16-o;for(let d=o-1;d>=a;d--)s[d+u]=s[d];for(let d=a+u-1;d>=a;d--)s[d]=0}else if(a>=0)return;return s}}function OC(r){let s=0,a=0;for(s=0;s<r.length&&48<=r.charCodeAt(s)&&r.charCodeAt(s)<=57;s++)if(a=a*10+(r.charCodeAt(s)-SS),a>=16777215)return{n:16777215,c:s,ok:!1};return s===0?{n:0,c:0,ok:!1}:{n:a,c:s,ok:!0}}function jC(r){let s=0,a=0;for(a=0;a<r.length;a++){if(48<=r.charCodeAt(a)&&r.charCodeAt(a)<=57)s*=16,s+=r.charCodeAt(a)-SS;else if(97<=r.charCodeAt(a)&&r.charCodeAt(a)<=102)s*=16,s+=r.charCodeAt(a)-AC+10;else if(65<=r.charCodeAt(a)&&r.charCodeAt(a)<=70)s*=16,s+=r.charCodeAt(a)-_C+10;else break;if(s>=16777215)return{n:0,c:a,ok:!1}}return a===0?{n:0,c:a,ok:!1}:{n:s,c:a,ok:!0}}function RC(r){return r.indexOf("[")!==-1||r.indexOf("::")!==-1?!1:r.indexOf(".")!==-1||r.split(":").length<=2}function q0(r){return!RC(r)}function MC(r){const s="::FFFF:",a=r.toUpperCase().indexOf(s);if(a!==-1&&r.indexOf(".")!==-1){let o=r.substring(a+s.length);return o=o.replace("[",""),o.replace("]","")}return r}function kC(r){r=r.trim(),r.match(/^(.*:\/\/)(.*)/m)&&(r=r.replace(/^(.*:\/\/)(.*)/gm,"$2")),r=MC(r),q0(r)&&r.indexOf("[")===-1&&(r=`[${r}]`);const s=q0(r)?r.match(/(]:)(\d+)/):r.match(/(:)(\d+)/),a=s&&s.length===3&&s[1]&&s[2]?parseInt(s[2]):4222,o=a===80?"https":"http",u=new URL(`${o}://${r}`);u.port=`${a}`;let d=u.hostname;return d.charAt(0)==="["&&(d=d.substring(1,d.length-1)),{listen:u.host,hostname:d,port:a}}class yu{constructor(s,a=!1){w(this,"src");w(this,"listen");w(this,"hostname");w(this,"port");w(this,"didConnect");w(this,"reconnects");w(this,"lastConnect");w(this,"gossiped");w(this,"tlsName");w(this,"resolves");this.src=s,this.tlsName="";const o=kC(s);this.listen=o.listen,this.hostname=o.hostname,this.port=o.port,this.didConnect=!1,this.reconnects=0,this.lastConnect=0,this.gossiped=a}toString(){return this.listen}async resolve(s){if(!s.fn||s.resolve===!1)return[this];const a=[];if(B0(this.hostname))return[this];{const o=await s.fn(this.hostname);s.debug&&console.log(`resolve ${this.hostname} = ${o.join(",")}`);for(const u of o){const d=this.port===80?"https":"http",p=new URL(`${d}://${q0(u)?"["+u+"]":u}`);p.port=`${this.port}`;const m=new yu(p.host,!1);m.tlsName=this.hostname,a.push(m)}}return s.randomize&&gS(a),this.resolves=a,a}}class VC{constructor(s=[],a={}){w(this,"firstSelect");w(this,"servers");w(this,"currentServer");w(this,"tlsName");w(this,"randomize");this.firstSelect=!0,this.servers=[],this.tlsName="",this.randomize=a.randomize||!1;const o=h0();s&&(s.forEach(u=>{u=o?o(u):u,this.servers.push(new yu(u))}),this.randomize&&(this.servers=gS(this.servers))),this.servers.length===0&&this.addServer(`${C0}:${wS()}`,!1),this.currentServer=this.servers[0]}clear(){this.servers.length=0}updateTLSName(){const s=this.getCurrentServer();B0(s.hostname)||(this.tlsName=s.hostname,this.servers.forEach(a=>{a.gossiped&&(a.tlsName=this.tlsName)}))}getCurrentServer(){return this.currentServer}addServer(s,a=!1){const o=h0();s=o?o(s):s;const u=new yu(s,a);B0(u.hostname)&&(u.tlsName=this.tlsName),this.servers.push(u)}selectServer(){if(this.firstSelect)return this.firstSelect=!1,this.currentServer;const s=this.servers.shift();return s&&(this.servers.push(s),this.currentServer=s),s}removeCurrentServer(){this.removeServer(this.currentServer)}removeServer(s){if(s){const a=this.servers.indexOf(s);this.servers.splice(a,1)}}length(){return this.servers.length}next(){return this.servers.length?this.servers[0]:void 0}getServers(){return this.servers}update(s,a){const o=[];let u=[];const d=h0(),p=new Map;s.connect_urls&&s.connect_urls.length>0&&s.connect_urls.forEach(g=>{g=d?d(g,a):g;const x=new yu(g,!0);p.set(g,x)});const m=[];return this.servers.forEach((g,x)=>{const S=g.listen;g.gossiped&&this.currentServer.listen!==S&&p.get(S)===void 0&&m.push(x),p.delete(S)}),m.reverse(),m.forEach(g=>{const x=this.servers.splice(g,1);u=u.concat(x[0].listen)}),p.forEach((g,x)=>{this.servers.push(g),o.push(x)}),{added:o,deleted:u}}}class UC{constructor(){w(this,"baseInbox");w(this,"reqs");this.reqs=new Map}size(){return this.reqs.size}init(s){return this.baseInbox=`${rr(s)}.`,this.baseInbox}add(s){isNaN(s.received)||(s.received=0),this.reqs.set(s.token,s)}get(s){return this.reqs.get(s)}cancel(s){this.reqs.delete(s.token)}getToken(s){const a=s.subject||"";return a.indexOf(this.baseInbox)===0?a.substring(this.baseInbox.length):null}all(){return Array.from(this.reqs.values())}handleError(s,a){if(a&&a.permissionContext){if(s)return this.all().forEach(u=>{u.resolver(a,{})}),!0;const o=a.permissionContext;if(o.operation==="publish"){const u=this.all().find(d=>d.requestSubject===o.subject);if(u)return u.resolver(a,{}),!0}}return!1}dispatcher(){return(s,a)=>{const o=this.getToken(a);if(o){const u=this.get(o);u&&(s===null&&a.headers&&(s=vS(a)),u.resolver(s,a))}}}close(){const s=xe.errorForCode(ue.Timeout);this.reqs.forEach(a=>{a.resolver(s,{})})}}class zC{constructor(s,a,o){w(this,"ph");w(this,"interval");w(this,"maxOut");w(this,"timer");w(this,"pendings");this.ph=s,this.interval=a,this.maxOut=o,this.pendings=[]}start(){this.cancel(),this._schedule()}cancel(s){this.timer&&(clearTimeout(this.timer),this.timer=void 0),this._reset(),s&&this.ph.disconnect()}_schedule(){this.timer=setTimeout(()=>{if(this.ph.dispatchStatus({type:ml.PingTimer,data:`${this.pendings.length+1}`}),this.pendings.length===this.maxOut){this.cancel(!0);return}const s=_t();this.ph.flush(s).then(()=>{this._reset()}).catch(()=>{this.cancel()}),this.pendings.push(s),this._schedule()},this.interval)}_reset(){this.pendings=this.pendings.filter(s=>(s.resolve(),!1))}}class BC extends Error{constructor(s){super(s),this.name="AssertionError"}}function qC(r,s="Assertion failed."){if(!r)throw new BC(s)}const yw=32*1024,m0=2**32-2;function Gd(r,s,a=0){const o=s.byteLength-a;return r.byteLength>o&&(r=r.subarray(0,o)),s.set(r,a),r.byteLength}class p0{constructor(s){w(this,"_buf");w(this,"_off");if(this._off=0,s==null){this._buf=new Uint8Array(0);return}this._buf=new Uint8Array(s)}bytes(s={copy:!0}){return s.copy===!1?this._buf.subarray(this._off):this._buf.slice(this._off)}empty(){return this._buf.byteLength<=this._off}get length(){return this._buf.byteLength-this._off}get capacity(){return this._buf.buffer.byteLength}truncate(s){if(s===0){this.reset();return}if(s<0||s>this.length)throw Error("bytes.Buffer: truncation out of range");this._reslice(this._off+s)}reset(){this._reslice(0),this._off=0}_tryGrowByReslice(s){const a=this._buf.byteLength;return s<=this.capacity-a?(this._reslice(a+s),a):-1}_reslice(s){qC(s<=this._buf.buffer.byteLength),this._buf=new Uint8Array(this._buf.buffer,0,s)}readByte(){const s=new Uint8Array(1);return this.read(s)?s[0]:null}read(s){if(this.empty())return this.reset(),s.byteLength===0?0:null;const a=Gd(this._buf.subarray(this._off),s);return this._off+=a,a}writeByte(s){return this.write(Uint8Array.of(s))}writeString(s){return this.write(to.encode(s))}write(s){const a=this._grow(s.byteLength);return Gd(s,this._buf,a)}_grow(s){const a=this.length;a===0&&this._off!==0&&this.reset();const o=this._tryGrowByReslice(s);if(o>=0)return o;const u=this.capacity;if(s<=Math.floor(u/2)-a)Gd(this._buf.subarray(this._off),this._buf);else{if(u+s>m0)throw new Error("The buffer cannot be grown beyond the maximum size.");{const d=new Uint8Array(Math.min(2*u+s,m0));Gd(this._buf.subarray(this._off),d),this._buf=d}}return this._off=0,this._reslice(Math.min(a+s,m0)),a}grow(s){if(s<0)throw Error("Buffer._grow: negative count");const a=this._grow(s);this._reslice(a)}readFrom(s){let a=0;const o=new Uint8Array(yw);for(;;){const u=this.capacity-this.length<yw,d=u?o:new Uint8Array(this._buf.buffer,this.length),p=s.read(d);if(p===null)return a;u?this.write(d.subarray(0,p)):this._reslice(this.length+p),a+=p}}}var An;(function(r){r[r.OK=0]="OK",r[r.ERR=1]="ERR",r[r.MSG=2]="MSG",r[r.INFO=3]="INFO",r[r.PING=4]="PING",r[r.PONG=5]="PONG"})(An||(An={}));function gw(){const r={};return r.sid=-1,r.hdr=-1,r.size=-1,r}const LC=48;class vw{constructor(s){w(this,"dispatcher");w(this,"state");w(this,"as");w(this,"drop");w(this,"hdr");w(this,"ma");w(this,"argBuf");w(this,"msgBuf");this.dispatcher=s,this.state=he.OP_START,this.as=0,this.drop=0,this.hdr=0}parse(s){let a;for(a=0;a<s.length;a++){const o=s[a];switch(this.state){case he.OP_START:switch(o){case me.M:case me.m:this.state=he.OP_M,this.hdr=-1,this.ma=gw();break;case me.H:case me.h:this.state=he.OP_H,this.hdr=0,this.ma=gw();break;case me.P:case me.p:this.state=he.OP_P;break;case me.PLUS:this.state=he.OP_PLUS;break;case me.MINUS:this.state=he.OP_MINUS;break;case me.I:case me.i:this.state=he.OP_I;break;default:throw this.fail(s.subarray(a))}break;case he.OP_H:switch(o){case me.M:case me.m:this.state=he.OP_M;break;default:throw this.fail(s.subarray(a))}break;case he.OP_M:switch(o){case me.S:case me.s:this.state=he.OP_MS;break;default:throw this.fail(s.subarray(a))}break;case he.OP_MS:switch(o){case me.G:case me.g:this.state=he.OP_MSG;break;default:throw this.fail(s.subarray(a))}break;case he.OP_MSG:switch(o){case me.SPACE:case me.TAB:this.state=he.OP_MSG_SPC;break;default:throw this.fail(s.subarray(a))}break;case he.OP_MSG_SPC:switch(o){case me.SPACE:case me.TAB:continue;default:this.state=he.MSG_ARG,this.as=a}break;case he.MSG_ARG:switch(o){case me.CR:this.drop=1;break;case me.NL:{const u=this.argBuf?this.argBuf.bytes():s.subarray(this.as,a-this.drop);this.processMsgArgs(u),this.drop=0,this.as=a+1,this.state=he.MSG_PAYLOAD,a=this.as+this.ma.size-1;break}default:this.argBuf&&this.argBuf.writeByte(o)}break;case he.MSG_PAYLOAD:if(this.msgBuf)if(this.msgBuf.length>=this.ma.size){const u=this.msgBuf.bytes({copy:!1});this.dispatcher.push({kind:An.MSG,msg:this.ma,data:u}),this.argBuf=void 0,this.msgBuf=void 0,this.state=he.MSG_END}else{let u=this.ma.size-this.msgBuf.length;const d=s.length-a;d<u&&(u=d),u>0?(this.msgBuf.write(s.subarray(a,a+u)),a=a+u-1):this.msgBuf.writeByte(o)}else a-this.as>=this.ma.size&&(this.dispatcher.push({kind:An.MSG,msg:this.ma,data:s.subarray(this.as,a)}),this.argBuf=void 0,this.msgBuf=void 0,this.state=he.MSG_END);break;case he.MSG_END:switch(o){case me.NL:this.drop=0,this.as=a+1,this.state=he.OP_START;break;default:continue}break;case he.OP_PLUS:switch(o){case me.O:case me.o:this.state=he.OP_PLUS_O;break;default:throw this.fail(s.subarray(a))}break;case he.OP_PLUS_O:switch(o){case me.K:case me.k:this.state=he.OP_PLUS_OK;break;default:throw this.fail(s.subarray(a))}break;case he.OP_PLUS_OK:switch(o){case me.NL:this.dispatcher.push({kind:An.OK}),this.drop=0,this.state=he.OP_START;break}break;case he.OP_MINUS:switch(o){case me.E:case me.e:this.state=he.OP_MINUS_E;break;default:throw this.fail(s.subarray(a))}break;case he.OP_MINUS_E:switch(o){case me.R:case me.r:this.state=he.OP_MINUS_ER;break;default:throw this.fail(s.subarray(a))}break;case he.OP_MINUS_ER:switch(o){case me.R:case me.r:this.state=he.OP_MINUS_ERR;break;default:throw this.fail(s.subarray(a))}break;case he.OP_MINUS_ERR:switch(o){case me.SPACE:case me.TAB:this.state=he.OP_MINUS_ERR_SPC;break;default:throw this.fail(s.subarray(a))}break;case he.OP_MINUS_ERR_SPC:switch(o){case me.SPACE:case me.TAB:continue;default:this.state=he.MINUS_ERR_ARG,this.as=a}break;case he.MINUS_ERR_ARG:switch(o){case me.CR:this.drop=1;break;case me.NL:{let u;this.argBuf?(u=this.argBuf.bytes(),this.argBuf=void 0):u=s.subarray(this.as,a-this.drop),this.dispatcher.push({kind:An.ERR,data:u}),this.drop=0,this.as=a+1,this.state=he.OP_START;break}default:this.argBuf&&this.argBuf.write(Uint8Array.of(o))}break;case he.OP_P:switch(o){case me.I:case me.i:this.state=he.OP_PI;break;case me.O:case me.o:this.state=he.OP_PO;break;default:throw this.fail(s.subarray(a))}break;case he.OP_PO:switch(o){case me.N:case me.n:this.state=he.OP_PON;break;default:throw this.fail(s.subarray(a))}break;case he.OP_PON:switch(o){case me.G:case me.g:this.state=he.OP_PONG;break;default:throw this.fail(s.subarray(a))}break;case he.OP_PONG:switch(o){case me.NL:this.dispatcher.push({kind:An.PONG}),this.drop=0,this.state=he.OP_START;break}break;case he.OP_PI:switch(o){case me.N:case me.n:this.state=he.OP_PIN;break;default:throw this.fail(s.subarray(a))}break;case he.OP_PIN:switch(o){case me.G:case me.g:this.state=he.OP_PING;break;default:throw this.fail(s.subarray(a))}break;case he.OP_PING:switch(o){case me.NL:this.dispatcher.push({kind:An.PING}),this.drop=0,this.state=he.OP_START;break}break;case he.OP_I:switch(o){case me.N:case me.n:this.state=he.OP_IN;break;default:throw this.fail(s.subarray(a))}break;case he.OP_IN:switch(o){case me.F:case me.f:this.state=he.OP_INF;break;default:throw this.fail(s.subarray(a))}break;case he.OP_INF:switch(o){case me.O:case me.o:this.state=he.OP_INFO;break;default:throw this.fail(s.subarray(a))}break;case he.OP_INFO:switch(o){case me.SPACE:case me.TAB:this.state=he.OP_INFO_SPC;break;default:throw this.fail(s.subarray(a))}break;case he.OP_INFO_SPC:switch(o){case me.SPACE:case me.TAB:continue;default:this.state=he.INFO_ARG,this.as=a}break;case he.INFO_ARG:switch(o){case me.CR:this.drop=1;break;case me.NL:{let u;this.argBuf?(u=this.argBuf.bytes(),this.argBuf=void 0):u=s.subarray(this.as,a-this.drop),this.dispatcher.push({kind:An.INFO,data:u}),this.drop=0,this.as=a+1,this.state=he.OP_START;break}default:this.argBuf&&this.argBuf.writeByte(o)}break;default:throw this.fail(s.subarray(a))}}(this.state===he.MSG_ARG||this.state===he.MINUS_ERR_ARG||this.state===he.INFO_ARG)&&!this.argBuf&&(this.argBuf=new p0(s.subarray(this.as,a-this.drop))),this.state===he.MSG_PAYLOAD&&!this.msgBuf&&(this.argBuf||this.cloneMsgArg(),this.msgBuf=new p0(s.subarray(this.as)))}cloneMsgArg(){const s=this.ma.subject.length,a=this.ma.reply?this.ma.reply.length:0,o=new Uint8Array(s+a);o.set(this.ma.subject),this.ma.reply&&o.set(this.ma.reply,s),this.argBuf=new p0(o),this.ma.subject=o.subarray(0,s),this.ma.reply&&(this.ma.reply=o.subarray(s))}processMsgArgs(s){if(this.hdr>=0)return this.processHeaderMsgArgs(s);const a=[];let o=-1;for(let u=0;u<s.length;u++)switch(s[u]){case me.SPACE:case me.TAB:case me.CR:case me.NL:o>=0&&(a.push(s.subarray(o,u)),o=-1);break;default:o<0&&(o=u)}switch(o>=0&&a.push(s.subarray(o)),a.length){case 3:this.ma.subject=a[0],this.ma.sid=this.protoParseInt(a[1]),this.ma.reply=void 0,this.ma.size=this.protoParseInt(a[2]);break;case 4:this.ma.subject=a[0],this.ma.sid=this.protoParseInt(a[1]),this.ma.reply=a[2],this.ma.size=this.protoParseInt(a[3]);break;default:throw this.fail(s,"processMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(s,"processMsgArgs Bad or Missing Sid Error");if(this.ma.size<0)throw this.fail(s,"processMsgArgs Bad or Missing Size Error")}fail(s,a=""){return a?a=`${a} [${this.state}]`:a=`parse error [${this.state}]`,new Error(`${a}: ${Wn.decode(s)}`)}processHeaderMsgArgs(s){const a=[];let o=-1;for(let u=0;u<s.length;u++)switch(s[u]){case me.SPACE:case me.TAB:case me.CR:case me.NL:o>=0&&(a.push(s.subarray(o,u)),o=-1);break;default:o<0&&(o=u)}switch(o>=0&&a.push(s.subarray(o)),a.length){case 4:this.ma.subject=a[0],this.ma.sid=this.protoParseInt(a[1]),this.ma.reply=void 0,this.ma.hdr=this.protoParseInt(a[2]),this.ma.size=this.protoParseInt(a[3]);break;case 5:this.ma.subject=a[0],this.ma.sid=this.protoParseInt(a[1]),this.ma.reply=a[2],this.ma.hdr=this.protoParseInt(a[3]),this.ma.size=this.protoParseInt(a[4]);break;default:throw this.fail(s,"processHeaderMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(s,"processHeaderMsgArgs Bad or Missing Sid Error");if(this.ma.hdr<0||this.ma.hdr>this.ma.size)throw this.fail(s,"processHeaderMsgArgs Bad or Missing Header Size Error");if(this.ma.size<0)throw this.fail(s,"processHeaderMsgArgs Bad or Missing Size Error")}protoParseInt(s){if(s.length===0)return-1;let a=0;for(let o=0;o<s.length;o++){if(s[o]<48||s[o]>57)return-1;a=a*10+(s[o]-LC)}return a}}var he;(function(r){r[r.OP_START=0]="OP_START",r[r.OP_PLUS=1]="OP_PLUS",r[r.OP_PLUS_O=2]="OP_PLUS_O",r[r.OP_PLUS_OK=3]="OP_PLUS_OK",r[r.OP_MINUS=4]="OP_MINUS",r[r.OP_MINUS_E=5]="OP_MINUS_E",r[r.OP_MINUS_ER=6]="OP_MINUS_ER",r[r.OP_MINUS_ERR=7]="OP_MINUS_ERR",r[r.OP_MINUS_ERR_SPC=8]="OP_MINUS_ERR_SPC",r[r.MINUS_ERR_ARG=9]="MINUS_ERR_ARG",r[r.OP_M=10]="OP_M",r[r.OP_MS=11]="OP_MS",r[r.OP_MSG=12]="OP_MSG",r[r.OP_MSG_SPC=13]="OP_MSG_SPC",r[r.MSG_ARG=14]="MSG_ARG",r[r.MSG_PAYLOAD=15]="MSG_PAYLOAD",r[r.MSG_END=16]="MSG_END",r[r.OP_H=17]="OP_H",r[r.OP_P=18]="OP_P",r[r.OP_PI=19]="OP_PI",r[r.OP_PIN=20]="OP_PIN",r[r.OP_PING=21]="OP_PING",r[r.OP_PO=22]="OP_PO",r[r.OP_PON=23]="OP_PON",r[r.OP_PONG=24]="OP_PONG",r[r.OP_I=25]="OP_I",r[r.OP_IN=26]="OP_IN",r[r.OP_INF=27]="OP_INF",r[r.OP_INFO=28]="OP_INFO",r[r.OP_INFO_SPC=29]="OP_INFO_SPC",r[r.INFO_ARG=30]="INFO_ARG"})(he||(he={}));var me;(function(r){r[r.CR=13]="CR",r[r.E=69]="E",r[r.e=101]="e",r[r.F=70]="F",r[r.f=102]="f",r[r.G=71]="G",r[r.g=103]="g",r[r.H=72]="H",r[r.h=104]="h",r[r.I=73]="I",r[r.i=105]="i",r[r.K=75]="K",r[r.k=107]="k",r[r.M=77]="M",r[r.m=109]="m",r[r.MINUS=45]="MINUS",r[r.N=78]="N",r[r.n=110]="n",r[r.NL=10]="NL",r[r.O=79]="O",r[r.o=111]="o",r[r.P=80]="P",r[r.p=112]="p",r[r.PLUS=43]="PLUS",r[r.R=82]="R",r[r.r=114]="r",r[r.S=83]="S",r[r.s=115]="s",r[r.SPACE=32]="SPACE",r[r.TAB=9]="TAB"})(me||(me={}));(function(r){var s=function(N,A){this.hi=N|0,this.lo=A|0},a=function(N){var A,_=new Float64Array(16);if(N)for(A=0;A<N.length;A++)_[A]=N[A];return _},o=function(){throw new Error("no PRNG")},u=new Uint8Array(16),d=new Uint8Array(32);d[0]=9;var p=a(),m=a([1]),g=a([56129,1]),x=a([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),S=a([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),E=a([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),D=a([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),q=a([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function k(N,A){return N<<A|N>>>32-A}function L(N,A){var _=N[A+3]&255;return _=_<<8|N[A+2]&255,_=_<<8|N[A+1]&255,_<<8|N[A+0]&255}function I(N,A){var _=N[A]<<24|N[A+1]<<16|N[A+2]<<8|N[A+3],T=N[A+4]<<24|N[A+5]<<16|N[A+6]<<8|N[A+7];return new s(_,T)}function W(N,A,_){var T;for(T=0;T<4;T++)N[A+T]=_&255,_>>>=8}function te(N,A,_){N[A]=_.hi>>24&255,N[A+1]=_.hi>>16&255,N[A+2]=_.hi>>8&255,N[A+3]=_.hi&255,N[A+4]=_.lo>>24&255,N[A+5]=_.lo>>16&255,N[A+6]=_.lo>>8&255,N[A+7]=_.lo&255}function Ne(N,A,_,T,U){var P,K=0;for(P=0;P<U;P++)K|=N[A+P]^_[T+P];return(1&K-1>>>8)-1}function le(N,A,_,T){return Ne(N,A,_,T,16)}function V(N,A,_,T){return Ne(N,A,_,T,32)}function ne(N,A,_,T,U){var P=new Uint32Array(16),K=new Uint32Array(16),se=new Uint32Array(16),F=new Uint32Array(4),ee,ve,Le;for(ee=0;ee<4;ee++)K[5*ee]=L(T,4*ee),K[1+ee]=L(_,4*ee),K[6+ee]=L(A,4*ee),K[11+ee]=L(_,16+4*ee);for(ee=0;ee<16;ee++)se[ee]=K[ee];for(ee=0;ee<20;ee++){for(ve=0;ve<4;ve++){for(Le=0;Le<4;Le++)F[Le]=K[(5*ve+4*Le)%16];for(F[1]^=k(F[0]+F[3]|0,7),F[2]^=k(F[1]+F[0]|0,9),F[3]^=k(F[2]+F[1]|0,13),F[0]^=k(F[3]+F[2]|0,18),Le=0;Le<4;Le++)P[4*ve+(ve+Le)%4]=F[Le]}for(Le=0;Le<16;Le++)K[Le]=P[Le]}if(U){for(ee=0;ee<16;ee++)K[ee]=K[ee]+se[ee]|0;for(ee=0;ee<4;ee++)K[5*ee]=K[5*ee]-L(T,4*ee)|0,K[6+ee]=K[6+ee]-L(A,4*ee)|0;for(ee=0;ee<4;ee++)W(N,4*ee,K[5*ee]),W(N,16+4*ee,K[6+ee])}else for(ee=0;ee<16;ee++)W(N,4*ee,K[ee]+se[ee]|0)}function fe(N,A,_,T){return ne(N,A,_,T,!1),0}function J(N,A,_,T){return ne(N,A,_,T,!0),0}var Q=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function H(N,A,_,T,U,P,K){var se=new Uint8Array(16),F=new Uint8Array(64),ee,ve;if(!U)return 0;for(ve=0;ve<16;ve++)se[ve]=0;for(ve=0;ve<8;ve++)se[ve]=P[ve];for(;U>=64;){for(fe(F,se,K,Q),ve=0;ve<64;ve++)N[A+ve]=(_?_[T+ve]:0)^F[ve];for(ee=1,ve=8;ve<16;ve++)ee=ee+(se[ve]&255)|0,se[ve]=ee&255,ee>>>=8;U-=64,A+=64,_&&(T+=64)}if(U>0)for(fe(F,se,K,Q),ve=0;ve<U;ve++)N[A+ve]=(_?_[T+ve]:0)^F[ve];return 0}function oe(N,A,_,T,U){return H(N,A,null,0,_,T,U)}function ae(N,A,_,T,U){var P=new Uint8Array(32);return J(P,T,U,Q),oe(N,A,_,T.subarray(16),P)}function ge(N,A,_,T,U,P,K){var se=new Uint8Array(32);return J(se,P,K,Q),H(N,A,_,T,U,P.subarray(16),se)}function Fe(N,A){var _,T=0;for(_=0;_<17;_++)T=T+(N[_]+A[_]|0)|0,N[_]=T&255,T>>>=8}var Xe=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252]);function re(N,A,_,T,U,P){var K,se,F,ee,ve=new Uint32Array(17),Le=new Uint32Array(17),ot=new Uint32Array(17),pn=new Uint32Array(17),hr=new Uint32Array(17);for(F=0;F<17;F++)Le[F]=ot[F]=0;for(F=0;F<16;F++)Le[F]=P[F];for(Le[3]&=15,Le[4]&=252,Le[7]&=15,Le[8]&=252,Le[11]&=15,Le[12]&=252,Le[15]&=15;U>0;){for(F=0;F<17;F++)pn[F]=0;for(F=0;F<16&&F<U;++F)pn[F]=_[T+F];for(pn[F]=1,T+=F,U-=F,Fe(ot,pn),se=0;se<17;se++)for(ve[se]=0,F=0;F<17;F++)ve[se]=ve[se]+ot[F]*(F<=se?Le[se-F]:320*Le[se+17-F]|0)|0|0;for(se=0;se<17;se++)ot[se]=ve[se];for(ee=0,F=0;F<16;F++)ee=ee+ot[F]|0,ot[F]=ee&255,ee>>>=8;for(ee=ee+ot[16]|0,ot[16]=ee&3,ee=5*(ee>>>2)|0,F=0;F<16;F++)ee=ee+ot[F]|0,ot[F]=ee&255,ee>>>=8;ee=ee+ot[16]|0,ot[16]=ee}for(F=0;F<17;F++)hr[F]=ot[F];for(Fe(ot,Xe),K=-(ot[16]>>>7)|0,F=0;F<17;F++)ot[F]^=K&(hr[F]^ot[F]);for(F=0;F<16;F++)pn[F]=P[F+16];for(pn[16]=0,Fe(ot,pn),F=0;F<16;F++)N[A+F]=ot[F];return 0}function be(N,A,_,T,U,P){var K=new Uint8Array(16);return re(K,0,_,T,U,P),le(N,A,K,0)}function Ee(N,A,_,T,U){var P;if(_<32)return-1;for(ge(N,0,A,0,_,T,U),re(N,16,N,32,_-32,N),P=0;P<16;P++)N[P]=0;return 0}function Me(N,A,_,T,U){var P,K=new Uint8Array(32);if(_<32||(ae(K,0,32,T,U),be(A,16,A,32,_-32,K)!==0))return-1;for(ge(N,0,A,0,_,T,U),P=0;P<32;P++)N[P]=0;return 0}function Oe(N,A){var _;for(_=0;_<16;_++)N[_]=A[_]|0}function X(N){var A,_;for(_=0;_<16;_++)N[_]+=65536,A=Math.floor(N[_]/65536),N[(_+1)*(_<15?1:0)]+=A-1+37*(A-1)*(_===15?1:0),N[_]-=A*65536}function we(N,A,_){for(var T,U=~(_-1),P=0;P<16;P++)T=U&(N[P]^A[P]),N[P]^=T,A[P]^=T}function Ke(N,A){var _,T,U,P=a(),K=a();for(_=0;_<16;_++)K[_]=A[_];for(X(K),X(K),X(K),T=0;T<2;T++){for(P[0]=K[0]-65517,_=1;_<15;_++)P[_]=K[_]-65535-(P[_-1]>>16&1),P[_-1]&=65535;P[15]=K[15]-32767-(P[14]>>16&1),U=P[15]>>16&1,P[14]&=65535,we(K,P,1-U)}for(_=0;_<16;_++)N[2*_]=K[_]&255,N[2*_+1]=K[_]>>8}function He(N,A){var _=new Uint8Array(32),T=new Uint8Array(32);return Ke(_,N),Ke(T,A),V(_,0,T,0)}function Yt(N){var A=new Uint8Array(32);return Ke(A,N),A[0]&1}function Aa(N,A){var _;for(_=0;_<16;_++)N[_]=A[2*_]+(A[2*_+1]<<8);N[15]&=32767}function tt(N,A,_){var T;for(T=0;T<16;T++)N[T]=A[T]+_[T]|0}function jt(N,A,_){var T;for(T=0;T<16;T++)N[T]=A[T]-_[T]|0}function Ve(N,A,_){var T,U,P=new Float64Array(31);for(T=0;T<31;T++)P[T]=0;for(T=0;T<16;T++)for(U=0;U<16;U++)P[T+U]+=A[T]*_[U];for(T=0;T<15;T++)P[T]+=38*P[T+16];for(T=0;T<16;T++)N[T]=P[T];X(N),X(N)}function un(N,A){Ve(N,A,A)}function ye(N,A){var _=a(),T;for(T=0;T<16;T++)_[T]=A[T];for(T=253;T>=0;T--)un(_,_),T!==2&&T!==4&&Ve(_,_,A);for(T=0;T<16;T++)N[T]=_[T]}function no(N,A){var _=a(),T;for(T=0;T<16;T++)_[T]=A[T];for(T=250;T>=0;T--)un(_,_),T!==1&&Ve(_,_,A);for(T=0;T<16;T++)N[T]=_[T]}function Da(N,A,_){var T=new Uint8Array(32),U=new Float64Array(80),P,K,se=a(),F=a(),ee=a(),ve=a(),Le=a(),ot=a();for(K=0;K<31;K++)T[K]=A[K];for(T[31]=A[31]&127|64,T[0]&=248,Aa(U,_),K=0;K<16;K++)F[K]=U[K],ve[K]=se[K]=ee[K]=0;for(se[0]=ve[0]=1,K=254;K>=0;--K)P=T[K>>>3]>>>(K&7)&1,we(se,F,P),we(ee,ve,P),tt(Le,se,ee),jt(se,se,ee),tt(ee,F,ve),jt(F,F,ve),un(ve,Le),un(ot,se),Ve(se,ee,se),Ve(ee,F,Le),tt(Le,se,ee),jt(se,se,ee),un(F,se),jt(ee,ve,ot),Ve(se,ee,g),tt(se,se,ve),Ve(ee,ee,se),Ve(se,ve,ot),Ve(ve,F,U),un(F,Le),we(se,F,P),we(ee,ve,P);for(K=0;K<16;K++)U[K+16]=se[K],U[K+32]=ee[K],U[K+48]=F[K],U[K+64]=ve[K];var pn=U.subarray(32),hr=U.subarray(16);return ye(pn,pn),Ve(hr,hr,pn),Ke(N,hr),0}function Ta(N,A){return Da(N,A,d)}function lr(N,A){return o(A,32),Ta(N,A)}function st(N,A,_){var T=new Uint8Array(32);return Da(T,_,A),J(N,u,T,Q)}var so=Ee,Sl=Me;function Dh(N,A,_,T,U,P){var K=new Uint8Array(32);return st(K,U,P),so(N,A,_,T,K)}function bt(N,A,_,T,U,P){var K=new Uint8Array(32);return st(K,U,P),Sl(N,A,_,T,K)}function ui(){var N=0,A=0,_=0,T=0,U=65535,P,K,se;for(se=0;se<arguments.length;se++)P=arguments[se].lo,K=arguments[se].hi,N+=P&U,A+=P>>>16,_+=K&U,T+=K>>>16;return A+=N>>>16,_+=A>>>16,T+=_>>>16,new s(_&U|T<<16,N&U|A<<16)}function qs(N,A){return new s(N.hi>>>A,N.lo>>>A|N.hi<<32-A)}function Ca(){var N=0,A=0,_;for(_=0;_<arguments.length;_++)N^=arguments[_].lo,A^=arguments[_].hi;return new s(A,N)}function fn(N,A){var _,T,U=32-A;return A<32?(_=N.hi>>>A|N.lo<<U,T=N.lo>>>A|N.hi<<U):A<64&&(_=N.lo>>>A|N.hi<<U,T=N.hi>>>A|N.lo<<U),new s(_,T)}function Th(N,A,_){var T=N.hi&A.hi^~N.hi&_.hi,U=N.lo&A.lo^~N.lo&_.lo;return new s(T,U)}function _l(N,A,_){var T=N.hi&A.hi^N.hi&_.hi^A.hi&_.hi,U=N.lo&A.lo^N.lo&_.lo^A.lo&_.lo;return new s(T,U)}function Al(N){return Ca(fn(N,28),fn(N,34),fn(N,39))}function fi(N){return Ca(fn(N,14),fn(N,18),fn(N,41))}function Ch(N){return Ca(fn(N,1),fn(N,8),qs(N,7))}function Cu(N){return Ca(fn(N,19),fn(N,61),qs(N,6))}var Ou=[new s(1116352408,3609767458),new s(1899447441,602891725),new s(3049323471,3964484399),new s(3921009573,2173295548),new s(961987163,4081628472),new s(1508970993,3053834265),new s(2453635748,2937671579),new s(2870763221,3664609560),new s(3624381080,2734883394),new s(310598401,1164996542),new s(607225278,1323610764),new s(1426881987,3590304994),new s(1925078388,4068182383),new s(2162078206,991336113),new s(2614888103,633803317),new s(3248222580,3479774868),new s(3835390401,2666613458),new s(4022224774,944711139),new s(264347078,2341262773),new s(604807628,2007800933),new s(770255983,1495990901),new s(1249150122,1856431235),new s(1555081692,3175218132),new s(1996064986,2198950837),new s(2554220882,3999719339),new s(2821834349,766784016),new s(2952996808,2566594879),new s(3210313671,3203337956),new s(3336571891,1034457026),new s(3584528711,2466948901),new s(113926993,3758326383),new s(338241895,168717936),new s(666307205,1188179964),new s(773529912,1546045734),new s(1294757372,1522805485),new s(1396182291,2643833823),new s(1695183700,2343527390),new s(1986661051,1014477480),new s(2177026350,1206759142),new s(2456956037,344077627),new s(2730485921,1290863460),new s(2820302411,3158454273),new s(3259730800,3505952657),new s(3345764771,106217008),new s(3516065817,3606008344),new s(3600352804,1432725776),new s(4094571909,1467031594),new s(275423344,851169720),new s(430227734,3100823752),new s(506948616,1363258195),new s(659060556,3750685593),new s(883997877,3785050280),new s(958139571,3318307427),new s(1322822218,3812723403),new s(1537002063,2003034995),new s(1747873779,3602036899),new s(1955562222,1575990012),new s(2024104815,1125592928),new s(2227730452,2716904306),new s(2361852424,442776044),new s(2428436474,593698344),new s(2756734187,3733110249),new s(3204031479,2999351573),new s(3329325298,3815920427),new s(3391569614,3928383900),new s(3515267271,566280711),new s(3940187606,3454069534),new s(4118630271,4000239992),new s(116418474,1914138554),new s(174292421,2731055270),new s(289380356,3203993006),new s(460393269,320620315),new s(685471733,587496836),new s(852142971,1086792851),new s(1017036298,365543100),new s(1126000580,2618297676),new s(1288033470,3409855158),new s(1501505948,4234509866),new s(1607167915,987167468),new s(1816402316,1246189591)];function Dl(N,A,_){var T=[],U=[],P=[],K=[],se,F,ee;for(F=0;F<8;F++)T[F]=P[F]=I(N,8*F);for(var ve=0;_>=128;){for(F=0;F<16;F++)K[F]=I(A,8*F+ve);for(F=0;F<80;F++){for(ee=0;ee<8;ee++)U[ee]=P[ee];for(se=ui(P[7],fi(P[4]),Th(P[4],P[5],P[6]),Ou[F],K[F%16]),U[7]=ui(se,Al(P[0]),_l(P[0],P[1],P[2])),U[3]=ui(U[3],se),ee=0;ee<8;ee++)P[(ee+1)%8]=U[ee];if(F%16===15)for(ee=0;ee<16;ee++)K[ee]=ui(K[ee],K[(ee+9)%16],Ch(K[(ee+1)%16]),Cu(K[(ee+14)%16]))}for(F=0;F<8;F++)P[F]=ui(P[F],T[F]),T[F]=P[F];ve+=128,_-=128}for(F=0;F<8;F++)te(N,8*F,T[F]);return _}var Tl=new Uint8Array([106,9,230,103,243,188,201,8,187,103,174,133,132,202,167,59,60,110,243,114,254,148,248,43,165,79,245,58,95,29,54,241,81,14,82,127,173,230,130,209,155,5,104,140,43,62,108,31,31,131,217,171,251,65,189,107,91,224,205,25,19,126,33,121]);function Ls(N,A,_){var T=new Uint8Array(64),U=new Uint8Array(256),P,K=_;for(P=0;P<64;P++)T[P]=Tl[P];for(Dl(T,A,_),_%=128,P=0;P<256;P++)U[P]=0;for(P=0;P<_;P++)U[P]=A[K-_+P];for(U[_]=128,_=256-128*(_<112?1:0),U[_-9]=0,te(U,_-8,new s(K/536870912|0,K<<3)),Dl(T,U,_),P=0;P<64;P++)N[P]=T[P];return 0}function di(N,A){var _=a(),T=a(),U=a(),P=a(),K=a(),se=a(),F=a(),ee=a(),ve=a();jt(_,N[1],N[0]),jt(ve,A[1],A[0]),Ve(_,_,ve),tt(T,N[0],N[1]),tt(ve,A[0],A[1]),Ve(T,T,ve),Ve(U,N[3],A[3]),Ve(U,U,S),Ve(P,N[2],A[2]),tt(P,P,P),jt(K,T,_),jt(se,P,U),tt(F,P,U),tt(ee,T,_),Ve(N[0],K,se),Ve(N[1],ee,F),Ve(N[2],F,se),Ve(N[3],K,ee)}function ao(N,A,_){var T;for(T=0;T<4;T++)we(N[T],A[T],_)}function ro(N,A){var _=a(),T=a(),U=a();ye(U,A[2]),Ve(_,A[0],U),Ve(T,A[1],U),Ke(N,T),N[31]^=Yt(_)<<7}function io(N,A,_){var T,U;for(Oe(N[0],p),Oe(N[1],m),Oe(N[2],m),Oe(N[3],p),U=255;U>=0;--U)T=_[U/8|0]>>(U&7)&1,ao(N,A,T),di(A,N),di(N,N),ao(N,A,T)}function cr(N,A){var _=[a(),a(),a(),a()];Oe(_[0],E),Oe(_[1],D),Oe(_[2],m),Ve(_[3],E,D),io(N,_,A)}function Ps(N,A,_){var T=new Uint8Array(64),U=[a(),a(),a(),a()],P;for(_||o(A,32),Ls(T,A,32),T[0]&=248,T[31]&=127,T[31]|=64,cr(U,T),ro(N,U),P=0;P<32;P++)A[P+32]=N[P];return 0}var Un=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Oa(N,A){var _,T,U,P;for(T=63;T>=32;--T){for(_=0,U=T-32,P=T-12;U<P;++U)A[U]+=_-16*A[T]*Un[U-(T-32)],_=Math.floor((A[U]+128)/256),A[U]-=_*256;A[U]+=_,A[T]=0}for(_=0,U=0;U<32;U++)A[U]+=_-(A[31]>>4)*Un[U],_=A[U]>>8,A[U]&=255;for(U=0;U<32;U++)A[U]-=_*Un[U];for(T=0;T<32;T++)A[T+1]+=A[T]>>8,N[T]=A[T]&255}function Hs(N){var A=new Float64Array(64),_;for(_=0;_<64;_++)A[_]=N[_];for(_=0;_<64;_++)N[_]=0;Oa(N,A)}function Rt(N,A,_,T){var U=new Uint8Array(64),P=new Uint8Array(64),K=new Uint8Array(64),se,F,ee=new Float64Array(64),ve=[a(),a(),a(),a()];Ls(U,T,32),U[0]&=248,U[31]&=127,U[31]|=64;var Le=_+64;for(se=0;se<_;se++)N[64+se]=A[se];for(se=0;se<32;se++)N[32+se]=U[32+se];for(Ls(K,N.subarray(32),_+32),Hs(K),cr(ve,K),ro(N,ve),se=32;se<64;se++)N[se]=T[se];for(Ls(P,N,_+64),Hs(P),se=0;se<64;se++)ee[se]=0;for(se=0;se<32;se++)ee[se]=K[se];for(se=0;se<32;se++)for(F=0;F<32;F++)ee[se+F]+=P[se]*U[F];return Oa(N.subarray(32),ee),Le}function ja(N,A){var _=a(),T=a(),U=a(),P=a(),K=a(),se=a(),F=a();return Oe(N[2],m),Aa(N[1],A),un(U,N[1]),Ve(P,U,x),jt(U,U,N[2]),tt(P,N[2],P),un(K,P),un(se,K),Ve(F,se,K),Ve(_,F,U),Ve(_,_,P),no(_,_),Ve(_,_,U),Ve(_,_,P),Ve(_,_,P),Ve(N[0],_,P),un(T,N[0]),Ve(T,T,P),He(T,U)&&Ve(N[0],N[0],q),un(T,N[0]),Ve(T,T,P),He(T,U)?-1:(Yt(N[0])===A[31]>>7&&jt(N[0],p,N[0]),Ve(N[3],N[0],N[1]),0)}function $s(N,A,_,T){var U,P=new Uint8Array(32),K=new Uint8Array(64),se=[a(),a(),a(),a()],F=[a(),a(),a(),a()];if(_<64||ja(F,T))return-1;for(U=0;U<_;U++)N[U]=A[U];for(U=0;U<32;U++)N[U+32]=T[U];if(Ls(K,N,_),Hs(K),io(se,F,K),cr(F,A.subarray(32)),di(se,F),ro(P,se),_-=64,V(A,0,P,0)){for(U=0;U<_;U++)N[U]=0;return-1}for(U=0;U<_;U++)N[U]=A[U+64];return _}var Is=32,ur=24,fr=32,ws=16,Fs=32,Tn=32,Xt=32,dr=32,Cl=32,oo=ur,ju=fr,lo=ws,Tt=64,Ys=32,Gs=64,co=32,hi=64;r.lowlevel={crypto_core_hsalsa20:J,crypto_stream_xor:ge,crypto_stream:ae,crypto_stream_salsa20_xor:H,crypto_stream_salsa20:oe,crypto_onetimeauth:re,crypto_onetimeauth_verify:be,crypto_verify_16:le,crypto_verify_32:V,crypto_secretbox:Ee,crypto_secretbox_open:Me,crypto_scalarmult:Da,crypto_scalarmult_base:Ta,crypto_box_beforenm:st,crypto_box_afternm:so,crypto_box:Dh,crypto_box_open:bt,crypto_box_keypair:lr,crypto_hash:Ls,crypto_sign:Rt,crypto_sign_keypair:Ps,crypto_sign_open:$s,crypto_secretbox_KEYBYTES:Is,crypto_secretbox_NONCEBYTES:ur,crypto_secretbox_ZEROBYTES:fr,crypto_secretbox_BOXZEROBYTES:ws,crypto_scalarmult_BYTES:Fs,crypto_scalarmult_SCALARBYTES:Tn,crypto_box_PUBLICKEYBYTES:Xt,crypto_box_SECRETKEYBYTES:dr,crypto_box_BEFORENMBYTES:Cl,crypto_box_NONCEBYTES:oo,crypto_box_ZEROBYTES:ju,crypto_box_BOXZEROBYTES:lo,crypto_sign_BYTES:Tt,crypto_sign_PUBLICKEYBYTES:Ys,crypto_sign_SECRETKEYBYTES:Gs,crypto_sign_SEEDBYTES:co,crypto_hash_BYTES:hi,gf:a,D:x,L:Un,pack25519:Ke,unpack25519:Aa,M:Ve,A:tt,S:un,Z:jt,pow2523:no,add:di,set25519:Oe,modL:Oa,scalarmult:io,scalarbase:cr};function Ol(N,A){if(N.length!==Is)throw new Error("bad key size");if(A.length!==ur)throw new Error("bad nonce size")}function Ru(N,A){if(N.length!==Xt)throw new Error("bad public key size");if(A.length!==dr)throw new Error("bad secret key size")}function Ut(){for(var N=0;N<arguments.length;N++)if(!(arguments[N]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function jl(N){for(var A=0;A<N.length;A++)N[A]=0}r.randomBytes=function(N){var A=new Uint8Array(N);return o(A,N),A},r.secretbox=function(N,A,_){Ut(N,A,_),Ol(_,A);for(var T=new Uint8Array(fr+N.length),U=new Uint8Array(T.length),P=0;P<N.length;P++)T[P+fr]=N[P];return Ee(U,T,T.length,A,_),U.subarray(ws)},r.secretbox.open=function(N,A,_){Ut(N,A,_),Ol(_,A);for(var T=new Uint8Array(ws+N.length),U=new Uint8Array(T.length),P=0;P<N.length;P++)T[P+ws]=N[P];return T.length<32||Me(U,T,T.length,A,_)!==0?null:U.subarray(fr)},r.secretbox.keyLength=Is,r.secretbox.nonceLength=ur,r.secretbox.overheadLength=ws,r.scalarMult=function(N,A){if(Ut(N,A),N.length!==Tn)throw new Error("bad n size");if(A.length!==Fs)throw new Error("bad p size");var _=new Uint8Array(Fs);return Da(_,N,A),_},r.scalarMult.base=function(N){if(Ut(N),N.length!==Tn)throw new Error("bad n size");var A=new Uint8Array(Fs);return Ta(A,N),A},r.scalarMult.scalarLength=Tn,r.scalarMult.groupElementLength=Fs,r.box=function(N,A,_,T){var U=r.box.before(_,T);return r.secretbox(N,A,U)},r.box.before=function(N,A){Ut(N,A),Ru(N,A);var _=new Uint8Array(Cl);return st(_,N,A),_},r.box.after=r.secretbox,r.box.open=function(N,A,_,T){var U=r.box.before(_,T);return r.secretbox.open(N,A,U)},r.box.open.after=r.secretbox.open,r.box.keyPair=function(){var N=new Uint8Array(Xt),A=new Uint8Array(dr);return lr(N,A),{publicKey:N,secretKey:A}},r.box.keyPair.fromSecretKey=function(N){if(Ut(N),N.length!==dr)throw new Error("bad secret key size");var A=new Uint8Array(Xt);return Ta(A,N),{publicKey:A,secretKey:new Uint8Array(N)}},r.box.publicKeyLength=Xt,r.box.secretKeyLength=dr,r.box.sharedKeyLength=Cl,r.box.nonceLength=oo,r.box.overheadLength=r.secretbox.overheadLength,r.sign=function(N,A){if(Ut(N,A),A.length!==Gs)throw new Error("bad secret key size");var _=new Uint8Array(Tt+N.length);return Rt(_,N,N.length,A),_},r.sign.open=function(N,A){if(Ut(N,A),A.length!==Ys)throw new Error("bad public key size");var _=new Uint8Array(N.length),T=$s(_,N,N.length,A);if(T<0)return null;for(var U=new Uint8Array(T),P=0;P<U.length;P++)U[P]=_[P];return U},r.sign.detached=function(N,A){for(var _=r.sign(N,A),T=new Uint8Array(Tt),U=0;U<T.length;U++)T[U]=_[U];return T},r.sign.detached.verify=function(N,A,_){if(Ut(N,A,_),A.length!==Tt)throw new Error("bad signature size");if(_.length!==Ys)throw new Error("bad public key size");var T=new Uint8Array(Tt+N.length),U=new Uint8Array(Tt+N.length),P;for(P=0;P<Tt;P++)T[P]=A[P];for(P=0;P<N.length;P++)T[P+Tt]=N[P];return $s(U,T,T.length,_)>=0},r.sign.keyPair=function(){var N=new Uint8Array(Ys),A=new Uint8Array(Gs);return Ps(N,A),{publicKey:N,secretKey:A}},r.sign.keyPair.fromSecretKey=function(N){if(Ut(N),N.length!==Gs)throw new Error("bad secret key size");for(var A=new Uint8Array(Ys),_=0;_<A.length;_++)A[_]=N[32+_];return{publicKey:A,secretKey:new Uint8Array(N)}},r.sign.keyPair.fromSeed=function(N){if(Ut(N),N.length!==co)throw new Error("bad seed size");for(var A=new Uint8Array(Ys),_=new Uint8Array(Gs),T=0;T<32;T++)_[T]=N[T];return Ps(A,_,!0),{publicKey:A,secretKey:_}},r.sign.publicKeyLength=Ys,r.sign.secretKeyLength=Gs,r.sign.seedLength=co,r.sign.signatureLength=Tt,r.hash=function(N){Ut(N);var A=new Uint8Array(hi);return Ls(A,N,N.length),A},r.hash.hashLength=hi,r.verify=function(N,A){return Ut(N,A),N.length===0||A.length===0||N.length!==A.length?!1:Ne(N,0,A,0,N.length)===0},r.setPRNG=function(N){o=N},(function(){var N=typeof globalThis<"u"?globalThis.crypto||globalThis.msCrypto:null;if(N&&N.getRandomValues){var A=65536;r.setPRNG(function(_,T){var U,P=new Uint8Array(T);for(U=0;U<T;U+=A)N.getRandomValues(P.subarray(U,U+Math.min(T-U,A)));for(U=0;U<T;U++)_[U]=P[U];jl(P)})}else typeof require<"u"&&(N=require("crypto"),N&&N.randomBytes&&r.setPRNG(function(_,T){var U,P=N.randomBytes(T);for(U=0;U<T;U++)_[U]=P[U];jl(P)}))})()})(typeof module<"u"&&module.exports?module.exports:globalThis.nacl=globalThis.nacl||{});const Jd=typeof module<"u"&&module.exports?module.exports:globalThis.nacl;Jd.sign.keyPair.fromSeed,Jd.sign.detached,Jd.sign.detached.verify,Jd.randomBytes;var xw;(function(r){r.InvalidPrefixByte="nkeys: invalid prefix byte",r.InvalidKey="nkeys: invalid key",r.InvalidPublicKey="nkeys: invalid public key",r.InvalidSeedLen="nkeys: invalid seed length",r.InvalidSeed="nkeys: invalid seed",r.InvalidEncoding="nkeys: invalid encoded key",r.InvalidSignature="nkeys: signature verification failed",r.CannotSign="nkeys: cannot sign, no private key available",r.PublicKeyOnly="nkeys: no seed or private key available",r.InvalidChecksum="nkeys: invalid checksum",r.SerializationError="nkeys: serialization error",r.ApiError="nkeys: api error",r.ClearedPair="nkeys: pair is cleared"})(xw||(xw={}));var Nw;(function(r){r[r.Seed=144]="Seed",r[r.Private=120]="Private",r[r.Operator=112]="Operator",r[r.Server=104]="Server",r[r.Cluster=16]="Cluster",r[r.Account=0]="Account",r[r.User=160]="User"})(Nw||(Nw={}));function PC(r){return s=>{let a={};return r.forEach(o=>{const u=o(s)||{};a=Object.assign(a,u)}),a}}function HC(){return()=>{}}function $C(r,s){return()=>{const a=typeof r=="function"?r():r,o=typeof s=="function"?s():s;return{user:a,pass:o}}}function IC(r){return()=>({auth_token:typeof r=="function"?r():r})}const AS=120*1e3,FC=2,DS=2*1e3;function YC(){return{maxPingOut:2,maxReconnectAttempts:10,noRandomize:!1,pedantic:!1,pingInterval:AS,reconnect:!0,reconnectJitter:100,reconnectJitterTLS:1e3,reconnectTimeWait:DS,tls:void 0,verbose:!1,waitOnFirstConnect:!1,ignoreAuthErrorAbort:!1}}function GC(r){const s=[];return typeof r.authenticator=="function"&&s.push(r.authenticator),Array.isArray(r.authenticator)&&s.push(...r.authenticator),r.token&&s.push(IC(r.token)),r.user&&s.push($C(r.user,r.pass)),s.length===0?HC():PC(s)}function JC(r){const s=`${C0}:${wS()}`;if(r=r||{servers:[s]},r.servers=r.servers||[],typeof r.servers=="string"&&(r.servers=[r.servers]),r.servers.length>0&&r.port)throw new xe("port and servers options are mutually exclusive",ue.InvalidOption);r.servers.length===0&&r.port&&(r.servers=[`${C0}:${r.port}`]),r.servers&&r.servers.length===0&&(r.servers=[s]);const a=xh(YC(),r);if(a.authenticator=GC(a),["reconnectDelayHandler","authenticator"].forEach(o=>{if(a[o]&&typeof a[o]!="function")throw new xe(`${o} option should be a function`,ue.NotFunction)}),a.reconnectDelayHandler||(a.reconnectDelayHandler=()=>{let o=a.tls?a.reconnectJitterTLS:a.reconnectJitter;return o&&(o++,o=Math.floor(Math.random()*o)),a.reconnectTimeWait+o}),a.inboxPrefix)try{rr(a.inboxPrefix)}catch(o){throw new xe(o.message,ue.ApiError)}if(a.resolve===void 0&&(a.resolve=typeof z0()=="function"),a.resolve&&typeof z0()!="function")throw new xe("'resolve' is not supported on this client",ue.InvalidOption);return a}function QC(r,s){const{proto:a,tls_required:o,tls_available:u}=r;if((a===void 0||a<1)&&s.noEcho)throw new xe("noEcho",ue.ServerOptionNotAvailable);const d=o||u||!1;if(s.tls&&!d)throw new xe("tls",ue.ServerOptionNotAvailable)}const XC=1024*32,ZC=/^INFO\s+([^\r\n]+)\r\n/i,KC=pu(`PONG\r
256
- `),Ew=pu(`PING\r
257
- `);class WC{constructor(s,a,o){w(this,"echo");w(this,"no_responders");w(this,"protocol");w(this,"verbose");w(this,"pedantic");w(this,"jwt");w(this,"nkey");w(this,"sig");w(this,"user");w(this,"pass");w(this,"auth_token");w(this,"tls_required");w(this,"name");w(this,"lang");w(this,"version");w(this,"headers");this.protocol=1,this.version=s.version,this.lang=s.lang,this.echo=a.noEcho?!1:void 0,this.verbose=a.verbose,this.pedantic=a.pedantic,this.tls_required=a.tls?!0:void 0,this.name=a.name;const u=(a&&typeof a.authenticator=="function"?a.authenticator(o):{})||{};xh(this,u)}}class TS extends sn{constructor(a,o,u={}){var p;super();w(this,"sid");w(this,"queue");w(this,"draining");w(this,"max");w(this,"subject");w(this,"drained");w(this,"protocol");w(this,"timer");w(this,"info");w(this,"cleanupFn");w(this,"closed");w(this,"requestSubject");xh(this,u),this.protocol=a,this.subject=o,this.draining=!1,this.noIterator=typeof u.callback=="function",this.closed=_t();const d=!((p=a.options)!=null&&p.noAsyncTraces);u.timeout&&(this.timer=vl(u.timeout,d),this.timer.then(()=>{this.timer=void 0}).catch(m=>{this.stop(m),this.noIterator&&this.callback(m,{})})),this.noIterator||this.iterClosed.then(()=>{this.closed.resolve(),this.unsubscribe()})}setPrePostHandlers(a){if(this.noIterator){const o=this.callback,u=a.ingestionFilterFn?a.ingestionFilterFn:()=>({ingest:!0,protocol:!1}),d=a.protocolFilterFn?a.protocolFilterFn:()=>!0,p=a.dispatchedFn?a.dispatchedFn:()=>{};this.callback=(m,g)=>{const{ingest:x}=u(g);x&&d(g)&&(o(m,g),p(g))}}else this.protocolFilterFn=a.protocolFilterFn,this.dispatchedFn=a.dispatchedFn}callback(a,o){this.cancelTimeout(),a?this.stop(a):this.push(o)}close(){if(!this.isClosed()){this.cancelTimeout();const a=()=>{if(this.stop(),this.cleanupFn)try{this.cleanupFn(this,this.info)}catch{}this.closed.resolve()};this.noIterator?a():this.push(a)}}unsubscribe(a){this.protocol.unsubscribe(this,a)}cancelTimeout(){this.timer&&(this.timer.cancel(),this.timer=void 0)}drain(){return this.protocol.isClosed()?Promise.reject(xe.errorForCode(ue.ConnectionClosed)):this.isClosed()?Promise.reject(xe.errorForCode(ue.SubClosed)):(this.drained||(this.draining=!0,this.protocol.unsub(this),this.drained=this.protocol.flush(_t()).then(()=>{this.protocol.subscriptions.cancel(this)}).catch(()=>{this.protocol.subscriptions.cancel(this)})),this.drained)}isDraining(){return this.draining}isClosed(){return this.done}getSubject(){return this.subject}getMax(){return this.max}getID(){return this.sid}}class eO{constructor(){w(this,"mux");w(this,"subs");w(this,"sidCounter");this.sidCounter=0,this.mux=null,this.subs=new Map}size(){return this.subs.size}add(s){return this.sidCounter++,s.sid=this.sidCounter,this.subs.set(s.sid,s),s}setMux(s){return this.mux=s,s}getMux(){return this.mux}get(s){return this.subs.get(s)}resub(s){return this.sidCounter++,this.subs.delete(s.sid),s.sid=this.sidCounter,this.subs.set(s.sid,s),s}all(){return Array.from(this.subs.values())}cancel(s){s&&(s.close(),this.subs.delete(s.sid))}handleError(s){if(s&&s.permissionContext){const a=s.permissionContext,o=this.all();let u;if(a.operation==="subscription"&&(u=o.find(d=>d.subject===a.subject&&d.queue===a.queue)),a.operation==="publish"&&(u=o.find(d=>d.requestSubject===a.subject)),u)return u.callback(s,{}),u.close(),this.subs.delete(u.sid),u!==this.mux}return!1}close(){this.subs.forEach(s=>{s.close()})}}class mh{constructor(s,a){w(this,"connected");w(this,"connectedOnce");w(this,"infoReceived");w(this,"info");w(this,"muxSubscriptions");w(this,"options");w(this,"outbound");w(this,"pongs");w(this,"subscriptions");w(this,"transport");w(this,"noMorePublishing");w(this,"connectError");w(this,"publisher");w(this,"_closed");w(this,"closed");w(this,"listeners");w(this,"heartbeats");w(this,"parser");w(this,"outMsgs");w(this,"inMsgs");w(this,"outBytes");w(this,"inBytes");w(this,"pendingLimit");w(this,"lastError");w(this,"abortReconnect");w(this,"whyClosed");w(this,"servers");w(this,"server");w(this,"features");w(this,"connectPromise");this._closed=!1,this.connected=!1,this.connectedOnce=!1,this.infoReceived=!1,this.noMorePublishing=!1,this.abortReconnect=!1,this.listeners=[],this.pendingLimit=XC,this.outMsgs=0,this.inMsgs=0,this.outBytes=0,this.inBytes=0,this.options=s,this.publisher=a,this.subscriptions=new eO,this.muxSubscriptions=new UC,this.outbound=new Nl,this.pongs=[],this.whyClosed="",this.pendingLimit=s.pendingLimit||this.pendingLimit,this.features=new bC({major:0,minor:0,micro:0}),this.connectPromise=null;const o=typeof s.servers=="string"?[s.servers]:s.servers;this.servers=new VC(o,{randomize:!s.noRandomize}),this.closed=_t(),this.parser=new vw(this),this.heartbeats=new zC(this,this.options.pingInterval||AS,this.options.maxPingOut||FC)}resetOutbound(){this.outbound.reset();const s=this.pongs;this.pongs=[];const a=xe.errorForCode(ue.Disconnect);a.stack="",s.forEach(o=>{o.reject(a)}),this.parser=new vw(this),this.infoReceived=!1}dispatchStatus(s){this.listeners.forEach(a=>{a.push(s)})}status(){const s=new sn;return this.listeners.push(s),s}prepare(){this.transport&&this.transport.discard(),this.info=void 0,this.resetOutbound();const s=_t();return s.catch(()=>{}),this.pongs.unshift(s),this.connectError=a=>{s.reject(a)},this.transport=vC(),this.transport.closed().then(async a=>{if(this.connected=!1,!this.isClosed()){await this.disconnected(this.transport.closeError||this.lastError);return}}),s}disconnect(){this.dispatchStatus({type:ml.StaleConnection,data:""}),this.transport.disconnect()}reconnect(){return this.connected&&(this.dispatchStatus({type:ml.ClientInitiatedReconnect,data:""}),this.transport.disconnect()),Promise.resolve()}async disconnected(s){this.dispatchStatus({type:ar.Disconnect,data:this.servers.getCurrentServer().toString()}),this.options.reconnect?await this.dialLoop().then(()=>{var a;this.dispatchStatus({type:ar.Reconnect,data:this.servers.getCurrentServer().toString()}),((a=this.lastError)==null?void 0:a.code)===ue.AuthenticationExpired&&(this.lastError=void 0)}).catch(a=>{this._close(a)}):await this._close(s)}async dial(s){const a=this.prepare();let o;try{o=vl(this.options.timeout||2e4);const u=this.transport.connect(s,this.options);await Promise.race([u,o]),(async()=>{try{for await(const d of this.transport)this.parser.parse(d)}catch(d){console.log("reader closed",d)}})().then()}catch(u){a.reject(u)}try{await Promise.race([o,a]),o&&o.cancel(),this.connected=!0,this.connectError=void 0,this.sendSubscriptions(),this.connectedOnce=!0,this.server.didConnect=!0,this.server.reconnects=0,this.flushPending(),this.heartbeats.start()}catch(u){throw o&&o.cancel(),await this.transport.close(u),u}}async _doDial(s){const{resolve:a}=this.options,o=await s.resolve({fn:z0(),debug:this.options.debug,randomize:!this.options.noRandomize,resolve:a});let u=null;for(const d of o)try{u=null,this.dispatchStatus({type:ml.Reconnecting,data:d.toString()}),await this.dial(d);return}catch(p){u=p}throw u}dialLoop(){return this.connectPromise===null&&(this.connectPromise=this.dodialLoop(),this.connectPromise.then(()=>{}).catch(()=>{}).finally(()=>{this.connectPromise=null})),this.connectPromise}async dodialLoop(){let s;for(;;){this._closed&&this.servers.clear();const a=this.options.reconnectDelayHandler?this.options.reconnectDelayHandler():DS;let o=a;const u=this.selectServer();if(!u||this.abortReconnect)throw s||(this.lastError?this.lastError:xe.errorForCode(ue.ConnectionRefused));const d=Date.now();if(u.lastConnect===0||u.lastConnect+a<=d){u.lastConnect=Date.now();try{await this._doDial(u);break}catch(p){if(s=p,!this.connectedOnce){if(this.options.waitOnFirstConnect)continue;this.servers.removeCurrentServer()}u.reconnects++;const m=this.options.maxReconnectAttempts||0;m!==-1&&u.reconnects>=m&&this.servers.removeCurrentServer()}}else o=Math.min(o,u.lastConnect+a-d),await El(o)}}static async connect(s,a){const o=new mh(s,a);return await o.dialLoop(),o}static toError(s){const a=s?s.toLowerCase():"";if(a.indexOf("permissions violation")!==-1){const o=new xe(s,ue.PermissionsViolation),u=s.match(/(Publish|Subscription) to "(\S+)"/);if(u){o.permissionContext={operation:u[1].toLowerCase(),subject:u[2],queue:void 0};const d=s.match(/using queue "(\S+)"/);d&&(o.permissionContext.queue=d[1])}return o}else return a.indexOf("authorization violation")!==-1?new xe(s,ue.AuthorizationViolation):a.indexOf("user authentication expired")!==-1?new xe(s,ue.AuthenticationExpired):a.indexOf("account authentication expired")!=-1?new xe(s,ue.AccountExpired):a.indexOf("authentication timeout")!==-1?new xe(s,ue.AuthenticationTimeout):new xe(s,ue.ProtocolError)}processMsg(s,a){if(this.inMsgs++,this.inBytes+=a.length,!this.subscriptions.sidCounter)return;const o=this.subscriptions.get(s.sid);o&&(o.received+=1,o.callback&&o.callback(null,new ry(s,a,this)),o.max!==void 0&&o.received>=o.max&&o.unsubscribe())}processError(s){const a=aw(s),o=mh.toError(a),u={type:ar.Error,data:o.code};if(o.isPermissionError()){let d=!1;if(o.permissionContext){u.permissionContext=o.permissionContext;const p=this.subscriptions.getMux();d=(p==null?void 0:p.subject)===o.permissionContext.subject}this.subscriptions.handleError(o),this.muxSubscriptions.handleError(d,o),d&&this.subscriptions.setMux(null)}this.dispatchStatus(u),this.handleError(o)}handleError(s){s.isAuthError()?this.handleAuthError(s):s.isProtocolError()?this.lastError=s:s.isAuthTimeout()&&(this.lastError=s),s.isPermissionError()||(this.lastError=s)}handleAuthError(s){this.lastError&&s.code===this.lastError.code&&this.options.ignoreAuthErrorAbort===!1&&(this.abortReconnect=!0),this.connectError?this.connectError(s):this.disconnect()}processPing(){this.transport.send(KC)}processPong(){const s=this.pongs.shift();s&&s.resolve()}processInfo(s){const a=JSON.parse(aw(s));this.info=a;const o=this.options&&this.options.ignoreClusterUpdates?void 0:this.servers.update(a,this.transport.isEncrypted());if(!this.infoReceived){this.features.update(Wi(a.version)),this.infoReceived=!0,this.transport.isEncrypted()&&this.servers.updateTLSName();const{version:d,lang:p}=this.transport;try{const m=new WC({version:d,lang:p},this.options,a.nonce);a.headers&&(m.headers=!0,m.no_responders=!0);const g=JSON.stringify(m);this.transport.send(pu(`CONNECT ${g}${th}`)),this.transport.send(Ew)}catch(m){this._close(m)}}o&&this.dispatchStatus({type:ar.Update,data:o}),(a.ldm!==void 0?a.ldm:!1)&&this.dispatchStatus({type:ar.LDM,data:this.servers.getCurrentServer().toString()})}push(s){switch(s.kind){case An.MSG:{const{msg:a,data:o}=s;this.processMsg(a,o);break}case An.OK:break;case An.ERR:this.processError(s.data);break;case An.PING:this.processPing();break;case An.PONG:this.processPong();break;case An.INFO:this.processInfo(s.data);break}}sendCommand(s,...a){const o=this.outbound.length();let u;typeof s=="string"?u=pu(s):u=s,this.outbound.fill(u,...a),o===0?queueMicrotask(()=>{this.flushPending()}):this.outbound.size()>=this.pendingLimit&&this.flushPending()}publish(s,a=ts,o){let u;if(a instanceof Uint8Array)u=a;else if(typeof a=="string")u=to.encode(a);else throw xe.errorForCode(ue.BadPayload);let d=u.length;o=o||{},o.reply=o.reply||"";let p=ts,m=0;if(o.headers){if(this.info&&!this.info.headers)throw new xe("headers",ue.ServerOptionNotAvailable);p=o.headers.encode(),m=p.length,d=u.length+m}if(this.info&&d>this.info.max_payload)throw xe.errorForCode(ue.MaxPayloadExceeded);this.outBytes+=d,this.outMsgs++;let g;o.headers?(o.reply?g=`HPUB ${s} ${o.reply} ${m} ${d}\r
258
- `:g=`HPUB ${s} ${m} ${d}\r
259
- `,this.sendCommand(g,p,u,hh)):(o.reply?g=`PUB ${s} ${o.reply} ${d}\r
260
- `:g=`PUB ${s} ${d}\r
261
- `,this.sendCommand(g,u,hh))}request(s){return this.initMux(),this.muxSubscriptions.add(s),s}subscribe(s){return this.subscriptions.add(s),this._subunsub(s),s}_sub(s){s.queue?this.sendCommand(`SUB ${s.subject} ${s.queue} ${s.sid}\r
262
- `):this.sendCommand(`SUB ${s.subject} ${s.sid}\r
263
- `)}_subunsub(s){return this._sub(s),s.max&&this.unsubscribe(s,s.max),s}unsubscribe(s,a){this.unsub(s,a),(s.max===void 0||s.received>=s.max)&&this.subscriptions.cancel(s)}unsub(s,a){!s||this.isClosed()||(a?this.sendCommand(`UNSUB ${s.sid} ${a}\r
264
- `):this.sendCommand(`UNSUB ${s.sid}\r
265
- `),s.max=a)}resub(s,a){!s||this.isClosed()||(this.unsub(s),s.subject=a,this.subscriptions.resub(s),this._sub(s))}flush(s){return s||(s=_t()),this.pongs.push(s),this.outbound.fill(Ew),this.flushPending(),s}sendSubscriptions(){const s=[];this.subscriptions.all().forEach(a=>{const o=a;o.queue?s.push(`SUB ${o.subject} ${o.queue} ${o.sid}${th}`):s.push(`SUB ${o.subject} ${o.sid}${th}`)}),s.length&&this.transport.send(pu(s.join("")))}async _close(s){this._closed||(this.whyClosed=new Error("close trace").stack||"",this.heartbeats.cancel(),this.connectError&&(this.connectError(s),this.connectError=void 0),this.muxSubscriptions.close(),this.subscriptions.close(),this.listeners.forEach(a=>{a.stop()}),this._closed=!0,await this.transport.close(s),await this.closed.resolve(s))}close(){return this._close()}isClosed(){return this._closed}drain(){const s=this.subscriptions.all(),a=[];return s.forEach(o=>{a.push(o.drain())}),Promise.all(a).then(async()=>(this.noMorePublishing=!0,await this.flush(),this.close())).catch(()=>{})}flushPending(){if(!(!this.infoReceived||!this.connected)&&this.outbound.size()){const s=this.outbound.drain();this.transport.send(s)}}initMux(){if(!this.subscriptions.getMux()){const a=this.muxSubscriptions.init(this.options.inboxPrefix),o=new TS(this,`${a}*`);o.callback=this.muxSubscriptions.dispatcher(),this.subscriptions.setMux(o),this.subscribe(o)}}selectServer(){const s=this.servers.selectServer();if(s!==void 0)return this.server=s,this.server}getServer(){return this.server}}const tO="$SRV";class ww{constructor(s){w(this,"msg");this.msg=s}get data(){return this.msg.data}get sid(){return this.msg.sid}get subject(){return this.msg.subject}get reply(){return this.msg.reply||""}get headers(){return this.msg.headers}respond(s,a){return this.msg.respond(s,a)}respondError(s,a,o,u){var d,p;return u=u||{},u.headers=u.headers||ir(),(d=u.headers)==null||d.set(ch,`${s}`),(p=u.headers)==null||p.set(lh,a),this.msg.respond(o,u)}json(s){return this.msg.json(s)}string(){return this.msg.string()}}class Nu{constructor(s,a="",o=""){w(this,"subject");w(this,"queue");w(this,"srv");a!==""&&sO("service group",a);let u="";if(s instanceof Au)this.srv=s,u="";else if(s instanceof Nu){const d=s;this.srv=d.srv,o===""&&d.queue!==""&&(o=d.queue),u=d.subject}else throw new Error("unknown ServiceGroup type");this.subject=this.calcSubject(u,a),this.queue=o}calcSubject(s,a=""){return a===""?s:s!==""?`${s}.${a}`:a}addEndpoint(s="",a){a=a||{subject:s};const o=typeof a=="function"?{handler:a,subject:s}:a;du("endpoint",s);let{subject:u,handler:d,metadata:p,queue:m}=o;u=u||s,m=m||this.queue,nO("endpoint subject",u),u=this.calcSubject(this.subject,u);const g={name:s,subject:u,queue:m,handler:d,metadata:p};return this.srv._addEndpoint(g)}addGroup(s="",a=""){return new Nu(this,s,a)}}function nO(r,s){if(s==="")throw new Error(`${r} cannot be empty`);if(s.indexOf(" ")!==-1)throw new Error(`${r} cannot contain spaces: '${s}'`);const a=s.split(".");a.forEach((o,u)=>{if(o===">"&&u!==a.length-1)throw new Error(`${r} cannot have internal '>': '${s}'`)})}function sO(r,s){if(s.indexOf(" ")!==-1)throw new Error(`${r} cannot contain spaces: '${s}'`);s.split(".").forEach(o=>{if(o===">")throw new Error(`${r} name cannot contain internal '>': '${s}'`)})}class Au{constructor(s,a={name:"",version:""}){w(this,"nc");w(this,"_id");w(this,"config");w(this,"handlers");w(this,"internal");w(this,"_stopped");w(this,"_done");w(this,"started");this.nc=s,this.config=Object.assign({},a),this.config.queue||(this.config.queue="q"),du("name",this.config.name),du("queue",this.config.queue),Wi(this.config.version),this._id=oi.next(),this.internal=[],this._done=_t(),this._stopped=!1,this.handlers=[],this.started=new Date().toISOString(),this.reset(),this.nc.closed().then(()=>{this.close().catch()}).catch(o=>{this.close(o).catch()})}static controlSubject(s,a="",o="",u){const d=u??tO;return a===""&&o===""?`${d}.${s}`:(du("control subject name",a),o!==""?(du("control subject id",o),`${d}.${s}.${a}.${o}`):`${d}.${s}.${a}`)}get subjects(){return this.handlers.filter(s=>s.internal===!1).map(s=>s.subject)}get id(){return this._id}get name(){return this.config.name}get description(){return this.config.description??""}get version(){return this.config.version}get metadata(){return this.config.metadata}errorToHeader(s){const a=ir();if(s instanceof uh){const o=s;a.set(lh,o.message),a.set(ch,`${o.code}`)}else a.set(lh,s.message),a.set(ch,"500");return a}setupHandler(s,a=!1){const o=a?"":s.queue?s.queue:this.config.queue,{name:u,subject:d,handler:p}=s,m=s;m.internal=a,a&&this.internal.push(m),m.stats=new aO(u,d,o),m.queue=o;const g=p?(x,S)=>{if(x){this.close(x);return}const E=Date.now();try{p(x,new ww(S))}catch(D){m.stats.countError(D),S==null||S.respond(ts,{headers:this.errorToHeader(D)})}finally{m.stats.countLatency(E)}}:void 0;return m.sub=this.nc.subscribe(d,{callback:g,queue:o}),m.sub.closed.then(()=>{this._stopped||this.close(new Error(`required subscription ${s.subject} stopped`)).catch()}).catch(x=>{if(!this._stopped){const S=new Error(`required subscription ${s.subject} errored: ${x.message}`);S.stack=x.stack,this.close(S).catch()}}),m}info(){return{type:bu.INFO,name:this.name,id:this.id,version:this.version,description:this.description,metadata:this.metadata,endpoints:this.endpoints()}}endpoints(){return this.handlers.map(s=>{const{subject:a,metadata:o,name:u,queue:d}=s;return{subject:a,metadata:o,name:u,queue_group:d}})}async stats(){const s=[];for(const a of this.handlers){if(typeof this.config.statsHandler=="function")try{a.stats.data=await this.config.statsHandler(a)}catch(o){a.stats.countError(o)}s.push(a.stats.stats(a.qi))}return{type:bu.STATS,name:this.name,id:this.id,version:this.version,started:this.started,metadata:this.metadata,endpoints:s}}addInternalHandler(s,a){const o=`${s}`.toUpperCase();this._doAddInternalHandler(`${o}-all`,s,a),this._doAddInternalHandler(`${o}-kind`,s,a,this.name),this._doAddInternalHandler(`${o}`,s,a,this.name,this.id)}_doAddInternalHandler(s,a,o,u="",d=""){const p={};p.name=s,p.subject=Au.controlSubject(a,u,d),p.handler=o,this.setupHandler(p,!0)}start(){const s=Bs(),a=(p,m)=>p?(this.close(p),Promise.reject(p)):this.stats().then(g=>(m==null||m.respond(s.encode(g)),Promise.resolve())),o=(p,m)=>p?(this.close(p),Promise.reject(p)):(m==null||m.respond(s.encode(this.info())),Promise.resolve()),u=s.encode(this.ping()),d=(p,m)=>p?(this.close(p).then().catch(),Promise.reject(p)):(m.respond(u),Promise.resolve());return this.addInternalHandler(ni.PING,d),this.addInternalHandler(ni.STATS,a),this.addInternalHandler(ni.INFO,o),this.handlers.forEach(p=>{const{subject:m}=p;typeof m=="string"&&p.handler!==null&&this.setupHandler(p)}),Promise.resolve(this)}close(s){if(this._stopped)return this._done;this._stopped=!0;let a=[];return this.nc.isClosed()||(a=this.handlers.concat(this.internal).map(o=>o.sub.drain())),Promise.allSettled(a).then(()=>{this._done.resolve(s||null)}),this._done}get stopped(){return this._done}get isStopped(){return this._stopped}stop(s){return this.close(s)}ping(){return{type:bu.PING,name:this.name,id:this.id,version:this.version,metadata:this.metadata}}reset(){if(this.started=new Date().toISOString(),this.handlers)for(const s of this.handlers)s.stats.reset(s.qi)}addGroup(s,a){return new Nu(this,s,a)}addEndpoint(s,a){return new Nu(this).addEndpoint(s,a)}_addEndpoint(s){const a=new sn;a.noIterator=typeof s.handler=="function",a.noIterator||(s.handler=(u,d)=>{u?this.stop(u).catch():a.push(new ww(d))},a.iterClosed.then(()=>{this.close().catch()}));const o=this.setupHandler(s,!1);return o.qi=a,this.handlers.push(o),a}}class aO{constructor(s,a,o=""){w(this,"name");w(this,"subject");w(this,"average_processing_time");w(this,"num_requests");w(this,"processing_time");w(this,"num_errors");w(this,"last_error");w(this,"data");w(this,"metadata");w(this,"queue");this.name=s,this.subject=a,this.average_processing_time=0,this.num_errors=0,this.num_requests=0,this.processing_time=0,this.queue=o}reset(s){this.num_requests=0,this.processing_time=0,this.average_processing_time=0,this.num_errors=0,this.last_error=void 0,this.data=void 0;const a=s;a&&(a.time=0,a.processed=0)}countLatency(s){this.num_requests++,this.processing_time+=St(Date.now()-s),this.average_processing_time=Math.round(this.processing_time/this.num_requests)}countError(s){this.num_errors++,this.last_error=s.message}_stats(){const{name:s,subject:a,average_processing_time:o,num_errors:u,num_requests:d,processing_time:p,last_error:m,data:g,queue:x}=this;return{name:s,subject:a,average_processing_time:o,num_errors:u,num_requests:d,processing_time:p,last_error:m,data:g,queue_group:x}}stats(s){const a=s;return(a==null?void 0:a.noIterator)===!1&&(this.processing_time=St(a.time),this.num_requests=a.processed,this.average_processing_time=this.processing_time>0&&this.num_requests>0?this.processing_time/this.num_requests:0),this._stats()}}class rO{constructor(s,a={strategy:zs.JitterTimer,maxWait:2e3},o){w(this,"nc");w(this,"prefix");w(this,"opts");this.nc=s,this.prefix=o,this.opts=a}ping(s="",a=""){return this.q(ni.PING,s,a)}stats(s="",a=""){return this.q(ni.STATS,s,a)}info(s="",a=""){return this.q(ni.INFO,s,a)}async q(s,a="",o=""){const u=new sn,d=Bs(),p=Au.controlSubject(s,a,o,this.prefix),m=await this.nc.requestMany(p,ts,this.opts);return(async()=>{for await(const g of m)try{const x=d.decode(g.data);u.push(x)}catch(x){u.push(()=>{u.stop(x)})}u.push(()=>{u.stop()})})().catch(g=>{u.stop(g)}),u}}function CS(){return{key:{encode(r){return r},decode(r){return r}},value:{encode(r){return r},decode(r){return r}}}}function iO(){return{replicas:1,history:1,timeout:2e3,max_bytes:-1,maxValueSize:-1,codec:CS(),storage:k0.File}}const ph="KV-Operation",Sw="$KV",oO=/^[-/=.\w]+$/,lO=/^[-/=.>*\w]+$/,cO=/^[-\w]+$/;function uO(r){if(r.startsWith(".")||r.endsWith(".")||!oO.test(r))throw new Error(`invalid key: ${r}`)}function fO(r){if(r.startsWith(".")||r.endsWith(".")||!lO.test(r))throw new Error(`invalid key: ${r}`)}function dO(r){if(r.startsWith(".")||r.endsWith("."))throw new Error(`invalid key: ${r}`);const s=r.split(".");let a=!1;for(let o=0;o<s.length;o++)switch(s[o]){case"*":a=!0;break;case">":if(o!==s.length-1)throw new Error(`invalid key: ${r}`);a=!0;break}return a}function nh(r){if(!cO.test(r))throw new Error(`invalid bucket name: ${r}`)}var Ea;(function(r){r.MsgIdHdr="Nats-Msg-Id",r.ExpectedStreamHdr="Nats-Expected-Stream",r.ExpectedLastSeqHdr="Nats-Expected-Last-Sequence",r.ExpectedLastMsgIdHdr="Nats-Expected-Last-Msg-Id",r.ExpectedLastSubjectSequenceHdr="Nats-Expected-Last-Subject-Sequence"})(Ea||(Ea={}));class Eu{constructor(s,a,o){w(this,"js");w(this,"jsm");w(this,"stream");w(this,"bucket");w(this,"direct");w(this,"codec");w(this,"prefix");w(this,"editPrefix");w(this,"useJsPrefix");w(this,"_prefixLen");w(this,"validateKey",uO);w(this,"validateSearchKey",fO);w(this,"hasWildcards",dO);nh(s),this.js=a,this.jsm=o,this.bucket=s,this.prefix=Sw,this.editPrefix="",this.useJsPrefix=!1,this._prefixLen=0}static async create(s,a,o={}){nh(a);const u=await s.jetstreamManager(),d=new Eu(a,s,u);return await d.init(o),d}static async bind(s,a,o={}){const u=await s.jetstreamManager(),d={config:{allow_direct:o.allow_direct}};nh(a);const p=new Eu(a,s,u);return d.config.name=o.streamName??p.bucketName(),Object.assign(p,d),p.stream=d.config.name,p.codec=o.codec||CS(),p.direct=d.config.allow_direct??!1,p.initializePrefixes(d),p}async init(s={}){const a=Object.assign(iO(),s);this.codec=a.codec;const o={};this.stream=o.name=s.streamName??this.bucketName(),o.retention=M0.Limits,o.max_msgs_per_subject=a.history,a.maxBucketSize&&(a.max_bytes=a.maxBucketSize),a.max_bytes&&(o.max_bytes=a.max_bytes),o.max_msg_size=a.maxValueSize,o.storage=a.storage;const u=s.placementCluster??"";if(u&&(s.placement={},s.placement.cluster=u,s.placement.tags=[]),s.placement&&(o.placement=s.placement),s.republish&&(o.republish=s.republish),s.description&&(o.description=s.description),s.mirror){const E=Object.assign({},s.mirror);E.name.startsWith(Zn)||(E.name=`${Zn}${E.name}`),o.mirror=E,o.mirror_direct=!0}else if(s.sources){const E=s.sources.map(D=>{const q=Object.assign({},D),k=q.name.startsWith(Zn)?q.name.substring(Zn.length):q.name;return q.name.startsWith(Zn)||(q.name=`${Zn}${q.name}`),!D.external&&k!==this.bucket&&(q.subject_transforms=[{src:`$KV.${k}.>`,dest:`$KV.${this.bucket}.>`}]),q});o.sources=E,o.subjects=[this.subjectForBucket()]}else o.subjects=[this.subjectForBucket()];s.metadata&&(o.metadata=s.metadata),typeof s.compression=="boolean"&&(o.compression=s.compression?li.S2:li.None);const d=this.js.nc,p=d.getServerVersion(),m=p?U0(p,Wi("2.7.2"))>=0:!1;o.discard=m?xu.New:xu.Old;const{ok:g,min:x}=d.features.get(nt.JS_ALLOW_DIRECT);if(!g&&s.allow_direct===!0){const E=p?`${p.major}.${p.minor}.${p.micro}`:"unknown";return Promise.reject(new Error(`allow_direct is not available on server version ${E} - requires ${x}`))}s.allow_direct=typeof s.allow_direct=="boolean"?s.allow_direct:g,o.allow_direct=s.allow_direct,this.direct=o.allow_direct,o.num_replicas=a.replicas,a.ttl&&(o.max_age=St(a.ttl)),o.allow_rollup_hdrs=!0;let S;try{S=await this.jsm.streams.info(o.name),!S.config.allow_direct&&this.direct===!0&&(this.direct=!1)}catch(E){if(E.message==="stream not found")S=await this.jsm.streams.add(o);else throw E}this.initializePrefixes(S)}initializePrefixes(s){this._prefixLen=0,this.prefix=`$KV.${this.bucket}`,this.useJsPrefix=this.js.apiPrefix!=="$JS.API";const{mirror:a}=s.config;if(a){let o=a.name;if(o.startsWith(Zn)&&(o=o.substring(Zn.length)),a.external&&a.external.api!==""){const u=a.name.substring(Zn.length);this.useJsPrefix=!1,this.prefix=`$KV.${u}`,this.editPrefix=`${a.external.api}.$KV.${o}`}else this.editPrefix=this.prefix}}bucketName(){return this.stream??`${Zn}${this.bucket}`}subjectForBucket(){return`${this.prefix}.${this.bucket}.>`}subjectForKey(s,a=!1){const o=[];return a?(this.useJsPrefix&&o.push(this.js.apiPrefix),this.editPrefix!==""?o.push(this.editPrefix):o.push(this.prefix)):this.prefix&&o.push(this.prefix),o.push(s),o.join(".")}fullKeyName(s){return this.prefix!==""?`${this.prefix}.${s}`:`${Sw}.${this.bucket}.${s}`}get prefixLen(){return this._prefixLen===0&&(this._prefixLen=this.prefix.length+1),this._prefixLen}encodeKey(s){const a=[];for(const o of s.split("."))switch(o){case">":case"*":a.push(o);break;default:a.push(this.codec.key.encode(o));break}return a.join(".")}decodeKey(s){const a=[];for(const o of s.split("."))switch(o){case">":case"*":a.push(o);break;default:a.push(this.codec.key.decode(o));break}return a.join(".")}close(){return Promise.resolve()}dataLen(s,a){const o=a&&a.get(Dn.MessageSizeHdr)||"";return o!==""?parseInt(o,10):s.length}smToEntry(s){return new DO(this.bucket,this.prefixLen,s)}jmToEntry(s){const a=this.decodeKey(s.subject.substring(this.prefixLen));return new TO(this.bucket,a,s)}async create(s,a){var d;let o;try{const p=await this.put(s,a,{previousSeq:0});return Promise.resolve(p)}catch(p){if(o=p,((d=p==null?void 0:p.api_error)==null?void 0:d.err_code)!==10071)return Promise.reject(p)}let u=0;try{const p=await this.get(s);return(p==null?void 0:p.operation)==="DEL"||(p==null?void 0:p.operation)==="PURGE"?(u=p!==null?p.revision:0,this.update(s,a,u)):Promise.reject(o)}catch(p){return Promise.reject(p)}}update(s,a,o){if(o<=0)throw new Error("version must be greater than 0");return this.put(s,a,{previousSeq:o})}async put(s,a,o={}){var p,m;const u=this.encodeKey(s);this.validateKey(u);const d={};if(o.previousSeq!==void 0){const g=ir();d.headers=g,g.set(Ea.ExpectedLastSubjectSequenceHdr,`${o.previousSeq}`)}try{return(await this.js.publish(this.subjectForKey(u,!0),a,d)).seq}catch(g){const x=g;return x.isJetStreamError()?(x.message=(p=x.api_error)==null?void 0:p.description,x.code=`${(m=x.api_error)==null?void 0:m.code}`,Promise.reject(x)):Promise.reject(g)}}async get(s,a){const o=this.encodeKey(s);this.validateKey(o);let u={last_by_subj:this.subjectForKey(o)};a&&a.revision>0&&(u={seq:a.revision});let d;try{this.direct?d=await this.jsm.direct.getMessage(this.bucketName(),u):d=await this.jsm.streams.getMessage(this.bucketName(),u);const p=this.smToEntry(d);return p.key!==o?null:p}catch(p){if(p.code===ue.JetStream404NoMessages)return null;throw p}}purge(s,a){return this._deleteOrPurge(s,"PURGE",a)}delete(s,a){return this._deleteOrPurge(s,"DEL",a)}async purgeDeletes(s=1800*1e3){const a=_t(),o=[],u=await this.watch({key:">",initializedFn:()=>{a.resolve()}});(async()=>{for await(const g of u)(g.operation==="DEL"||g.operation==="PURGE")&&o.push(g)})().then(),await a,u.stop();const d=Date.now()-s,p=o.map(g=>{const x=this.subjectForKey(g.key);return g.created.getTime()>=d?this.jsm.streams.purge(this.stream,{filter:x,keep:1}):this.jsm.streams.purge(this.stream,{filter:x,keep:0})}),m=await Promise.all(p);return m.unshift({success:!0,purged:0}),m.reduce((g,x)=>(g.purged+=x.purged,g))}async _deleteOrPurge(s,a,o){if(!this.hasWildcards(s))return this._doDeleteOrPurge(s,a,o);const u=await this.keys(s),d=[];for await(const p of u)d.push(this._doDeleteOrPurge(p,a)),d.length===100&&(await Promise.all(d),d.length=0);d.length>0&&await Promise.all(d)}async _doDeleteOrPurge(s,a,o){const u=this.encodeKey(s);this.validateKey(u);const d=ir();d.set(ph,a),a==="PURGE"&&d.set(Dn.RollupHdr,Dn.RollupValueSubject),o!=null&&o.previousSeq&&d.set(Ea.ExpectedLastSubjectSequenceHdr,`${o.previousSeq}`),await this.js.publish(this.subjectForKey(u,!0),ts,{headers:d})}_buildCC(s,a,o={}){let d=(Array.isArray(s)?s:[s]).map(g=>{const x=this.encodeKey(g);return this.validateSearchKey(g),this.fullKeyName(x)}),p=Vt.LastPerSubject;a===Vs.AllHistory&&(p=Vt.All),a===Vs.UpdatesOnly&&(p=Vt.New);let m;return d.length===1&&(m=d[0],d=void 0),Object.assign({deliver_policy:p,ack_policy:nn.None,filter_subjects:d,filter_subject:m,flow_control:!0,idle_heartbeat:St(5*1e3)},o)}remove(s){return this.purge(s)}async history(s={}){const a=s.key??">",o=new sn,u={};u.headers_only=s.headers_only||!1;let d;d=()=>{o.stop()};let p=0;const m=this._buildCC(a,Vs.AllHistory,u),g=m.filter_subject,x=ai(m);x.bindStream(this.stream),x.orderedConsumer(),x.callback((E,D)=>{if(E){o.stop(E);return}if(D){const q=this.jmToEntry(D);o.push(q),o.received++,(d&&p>0&&o.received>=p||D.info.pending===0)&&(o.push(d),d=void 0)}});const S=await this.js.subscribe(g,x);if(d){const{info:{last:E}}=S,D=E.num_pending+E.delivered.consumer_seq;if(D===0||o.received>=D)try{d()}catch(q){o.stop(q)}finally{d=void 0}else p=D}return o._data=S,o.iterClosed.then(()=>{S.unsubscribe()}),S.closed.then(()=>{o.stop()}).catch(E=>{o.stop(E)}),o}canSetWatcherName(){const a=this.js.nc,{ok:o}=a.features.get(nt.JS_NEW_CONSUMER_CREATE_API);return o}async watch(s={}){const a=s.key??">",o=new sn,u={};u.headers_only=s.headers_only||!1;let d=Vs.LastValue;s.include===Vs.AllHistory?d=Vs.AllHistory:s.include===Vs.UpdatesOnly&&(d=Vs.UpdatesOnly);const p=s.ignoreDeletes===!0;let m=s.initializedFn,g=0;const x=this._buildCC(a,d,u),S=x.filter_subject,E=ai(x);this.canSetWatcherName()&&E.consumerName(oi.next()),E.bindStream(this.stream),s.resumeFromRevision&&s.resumeFromRevision>0&&E.startSequence(s.resumeFromRevision),E.orderedConsumer(),E.callback((q,k)=>{if(q){o.stop(q);return}if(k){const L=this.jmToEntry(k);if(p&&L.operation==="DEL")return;o.push(L),o.received++,m&&(g>0&&o.received>=g||k.info.pending===0)&&(o.push(m),m=void 0)}});const D=await this.js.subscribe(S,E);if(m){const{info:{last:q}}=D,k=q.num_pending+q.delivered.consumer_seq;if(k===0||o.received>=k)try{m()}catch(L){o.stop(L)}finally{m=void 0}else g=k}return o._data=D,o.iterClosed.then(()=>{D.unsubscribe()}),D.closed.then(()=>{o.stop()}).catch(q=>{o.stop(q)}),o}async keys(s=">"){const a=new sn,o=this._buildCC(s,Vs.LastValue,{headers_only:!0}),u=Array.isArray(s)?">":o.filter_subject,d=ai(o);d.bindStream(this.stream),d.orderedConsumer();const p=await this.js.subscribe(u,d);return(async()=>{var g;for await(const x of p){const S=(g=x.headers)==null?void 0:g.get(ph);if(S!=="DEL"&&S!=="PURGE"){const E=this.decodeKey(x.subject.substring(this.prefixLen));a.push(E)}x.info.pending===0&&p.unsubscribe()}})().then(()=>{a.stop()}).catch(g=>{a.stop(g)}),p.info.last.num_pending===0&&p.unsubscribe(),a}purgeBucket(s){return this.jsm.streams.purge(this.bucketName(),s)}destroy(){return this.jsm.streams.delete(this.bucketName())}async status(){var d;const a=((d=this.js.nc.info)==null?void 0:d.cluster)??"",o=this.bucketName(),u=await this.jsm.streams.info(o);return new OS(u,a)}}class OS{constructor(s,a=""){w(this,"si");w(this,"cluster");this.si=s,this.cluster=a}get bucket(){return this.si.config.name.startsWith(Zn)?this.si.config.name.substring(Zn.length):this.si.config.name}get values(){return this.si.state.messages}get history(){return this.si.config.max_msgs_per_subject}get ttl(){return ay(this.si.config.max_age)}get bucket_location(){return this.cluster}get backingStore(){return this.si.config.storage}get storage(){return this.si.config.storage}get replicas(){return this.si.config.num_replicas}get description(){return this.si.config.description??""}get maxBucketSize(){return this.si.config.max_bytes}get maxValueSize(){return this.si.config.max_msg_size}get max_bytes(){return this.si.config.max_bytes}get placement(){return this.si.config.placement||{cluster:"",tags:[]}}get placementCluster(){var s;return((s=this.si.config.placement)==null?void 0:s.cluster)??""}get republish(){return this.si.config.republish??{src:"",dest:""}}get streamInfo(){return this.si}get size(){return this.si.state.bytes}get metadata(){return this.si.config.metadata??{}}get compression(){return this.si.config.compression?this.si.config.compression!==li.None:!1}}const oy="OBJ_",_w="SHA-256=";function hO(r){return nh(r),`${oy}${r}`}function mO(r){return r.startsWith(oy)?r.substring(4):r}class L0{constructor(s){w(this,"si");w(this,"backingStore");this.si=s,this.backingStore="JetStream"}get bucket(){return mO(this.si.config.name)}get description(){return this.si.config.description??""}get ttl(){return this.si.config.max_age}get storage(){return this.si.config.storage}get replicas(){return this.si.config.num_replicas}get sealed(){return this.si.config.sealed}get size(){return this.si.state.bytes}get streamInfo(){return this.si}get metadata(){return this.si.config.metadata}get compression(){return this.si.config.compression?this.si.config.compression!==li.None:!1}}function Qd(r){if(r===void 0)return;const{domain:s}=r;if(s===void 0)return r;const a=Object.assign({},r);if(delete a.domain,s==="")return a;if(a.external)throw new Error("domain and external are both set");return a.external={api:`$JS.${s}.API`},a}var gs;(function(r){r[r.Unset=-1]="Unset",r[r.Consume=0]="Consume",r[r.Fetch=1]="Fetch"})(gs||(gs={}));var wa;(function(r){r.HeartbeatsMissed="heartbeats_missed",r.ConsumerNotFound="consumer_not_found",r.StreamNotFound="stream_not_found",r.ConsumerDeleted="consumer_deleted",r.OrderedConsumerRecreated="ordered_consumer_recreated",r.NoResponders="no_responders"})(wa||(wa={}));var gl;(function(r){r.DebugEvent="debug",r.Discard="discard",r.Reset="reset",r.Next="next"})(gl||(gl={}));const Aw=Uint8Array.of(43,65,67,75),pO=Uint8Array.of(45,78,65,75),ou=Uint8Array.of(43,87,80,73),bO=Uint8Array.of(43,78,88,84),yO=Uint8Array.of(43,84,69,82,77),gO=Uint8Array.of(32);function wu(r,s=5e3){return new VO(r,s)}class b0 extends sn{constructor(a,o,u=!1){super();w(this,"consumer");w(this,"opts");w(this,"sub");w(this,"monitor");w(this,"pending");w(this,"inbox");w(this,"refilling");w(this,"pong");w(this,"callback");w(this,"timeout");w(this,"cleanupHandler");w(this,"listeners");w(this,"statusIterator");w(this,"forOrderedConsumer");w(this,"resetHandler");w(this,"abortOnMissingResource");w(this,"bind");w(this,"inBackOff");this.consumer=a;const d=o;this.opts=this.parseOptions(o,u),this.callback=d.callback||null,this.noIterator=typeof this.callback=="function",this.monitor=null,this.pong=null,this.pending={msgs:0,bytes:0,requests:0},this.refilling=u,this.timeout=null,this.inbox=rr(a.api.nc.options.inboxPrefix),this.listeners=[],this.forOrderedConsumer=!1,this.abortOnMissingResource=d.abort_on_missing_resource===!0,this.bind=d.bind===!0,this.inBackOff=!1,this.start()}start(){const{max_messages:a,max_bytes:o,idle_heartbeat:u,threshold_bytes:d,threshold_messages:p}=this.opts;this.closed().then(g=>{if(this.cleanupHandler)try{this.cleanupHandler(g)}catch{}});const{sub:m}=this;m&&m.unsubscribe(),this.sub=this.consumer.api.nc.subscribe(this.inbox,{callback:(g,x)=>{var E,D,q,k;if(g){this.stop(g);return}if((E=this.monitor)==null||E.work(),x.subject===this.inbox){if(R0(x))return;const L=(D=x.headers)==null?void 0:D.code,I=((k=(q=x.headers)==null?void 0:q.description)==null?void 0:k.toLowerCase())||"unknown",{msgsLeft:W,bytesLeft:te}=this.parseDiscard(x.headers);if(W>0||te>0)this.pending.msgs-=W,this.pending.bytes-=te,this.pending.requests--,this.notify(gl.Discard,{msgsLeft:W,bytesLeft:te});else if(L===400){this.stop(new xe(I,`${L}`));return}else if(L===409&&I==="consumer deleted"){if(this.notify(wa.ConsumerDeleted,`${L} ${I}`),!this.refilling||this.abortOnMissingResource){const Ne=new xe(I,`${L}`);this.stop(Ne);return}}else if(L===503){if(this.notify(wa.NoResponders,`${L} No Responders`),!this.refilling||this.abortOnMissingResource){const Ne=new xe("no responders",`${L}`);this.stop(Ne);return}}else this.notify(gl.DebugEvent,`${L} ${I}`)}else this._push(wu(x,this.consumer.api.timeout)),this.received++,this.pending.msgs&&this.pending.msgs--,this.pending.bytes&&(this.pending.bytes-=x.size());if(this.pending.msgs===0&&this.pending.bytes===0&&(this.pending.requests=0),this.refilling){if(a&&this.pending.msgs<=p||o&&this.pending.bytes<=d){const L=this.pullOptions();this.pull(L)}}else this.pending.requests===0&&this._push(()=>{this.stop()})}}),this.sub.closed.then(()=>{this.sub.draining&&this._push(()=>{this.stop()})}),u&&(this.monitor=new iy(u,g=>(this.notify(wa.HeartbeatsMissed,g),this.resetPending().then(()=>{}).catch(()=>{}),!1),{maxOut:2})),(async()=>{var x;const g=this.consumer.api.nc.status();this.statusIterator=g;for await(const S of g)switch(S.type){case ar.Disconnect:(x=this.monitor)==null||x.cancel();break;case ar.Reconnect:this.resetPending().then(E=>{var D;E&&((D=this.monitor)==null||D.restart())}).catch(()=>{});break}})(),this.pull(this.pullOptions())}_push(a){if(!this.callback)super.push(a);else{const o=typeof a=="function"?a:null;try{o?o():this.callback(a)}catch(u){this.stop(u)}}}notify(a,o){this.listeners.length>0&&this.listeners.forEach(u=>{u.done||u.push({type:a,data:o})})}resetPending(){return this.bind?this.resetPendingNoInfo():this.resetPendingWithInfo()}resetPendingNoInfo(){return this.pending.msgs=0,this.pending.bytes=0,this.pending.requests=0,this.pull(this.pullOptions()),Promise.resolve(!0)}async resetPendingWithInfo(){if(this.inBackOff)return!1;let a=0,o=0;const u=sy([this.opts.expires]);let d=0;for(;;){if(this.done)return!1;if(this.consumer.api.nc.isClosed())return console.error("aborting resetPending - connection is closed"),!1;try{return await this.consumer.info(),this.inBackOff=!1,a=0,this.pending.msgs=0,this.pending.bytes=0,this.pending.requests=0,this.pull(this.pullOptions()),!0}catch(p){if(p.message==="stream not found"){if(o++,this.notify(wa.StreamNotFound,o),!this.refilling||this.abortOnMissingResource)return this.stop(p),!1}else if(p.message==="consumer not found"){if(a++,this.notify(wa.ConsumerNotFound,a),this.resetHandler)try{this.resetHandler()}catch{}if(!this.refilling||this.abortOnMissingResource)return this.stop(p),!1;if(this.forOrderedConsumer)return!1}else a=0,o=0;this.inBackOff=!0;const m=u.backoff(d),g=El(m);await Promise.race([g,this.consumer.api.nc.closed()]),g.cancel(),d++}}}pull(a){this.pending.bytes+=a.max_bytes??0,this.pending.msgs+=a.batch??0,this.pending.requests++;const o=this.consumer.api.nc;this._push(()=>{o.publish(`${this.consumer.api.prefix}.CONSUMER.MSG.NEXT.${this.consumer.stream}.${this.consumer.name}`,this.consumer.api.jc.encode(a),{reply:this.inbox}),this.notify(gl.Next,a)})}pullOptions(){const a=this.opts.max_messages-this.pending.msgs,o=this.opts.max_bytes-this.pending.bytes,u=St(this.opts.idle_heartbeat),d=St(this.opts.expires);return{batch:a,max_bytes:o,idle_heartbeat:u,expires:d}}parseDiscard(a){const o={msgsLeft:0,bytesLeft:0},u=a==null?void 0:a.get(Dn.PendingMessagesHdr);u&&(o.msgsLeft=parseInt(u));const d=a==null?void 0:a.get(Dn.PendingBytesHdr);return d&&(o.bytesLeft=parseInt(d)),o}trackTimeout(a){this.timeout=a}close(){return this.stop(),this.iterClosed}closed(){return this.iterClosed}clearTimers(){var a,o;(a=this.monitor)==null||a.cancel(),this.monitor=null,(o=this.timeout)==null||o.cancel(),this.timeout=null}setCleanupHandler(a){this.cleanupHandler=a}stop(a){var o,u;this.done||((o=this.sub)==null||o.unsubscribe(),this.clearTimers(),(u=this.statusIterator)==null||u.stop(),this._push(()=>{super.stop(a),this.listeners.forEach(d=>{d.stop()})}))}parseOptions(a,o=!1){const u=a||{};if(u.max_messages=u.max_messages||0,u.max_bytes=u.max_bytes||0,u.max_messages!==0&&u.max_bytes!==0)throw new Error("only specify one of max_messages or max_bytes");if(u.max_messages===0&&(u.max_messages=100),u.expires=u.expires||3e4,u.expires<1e3)throw new Error("expires should be at least 1000ms");if(u.idle_heartbeat=u.idle_heartbeat||u.expires/2,u.idle_heartbeat=u.idle_heartbeat>3e4?3e4:u.idle_heartbeat,o){const d=Math.round(u.max_messages*.75)||1;u.threshold_messages=u.threshold_messages||d;const p=Math.round(u.max_bytes*.75)||1;u.threshold_bytes=u.threshold_bytes||p}return u}status(){const a=new sn;return this.listeners.push(a),Promise.resolve(a)}}class vO extends sn{constructor(){super();w(this,"src");w(this,"listeners");this.listeners=[]}setSource(a){this.src&&(this.src.resetHandler=void 0,this.src.setCleanupHandler(),this.src.stop()),this.src=a,this.src.setCleanupHandler(o=>{this.stop(o||void 0)}),(async()=>{const o=await this.src.status();for await(const u of o)this.notify(u.type,u.data)})().catch(()=>{})}notify(a,o){this.listeners.length>0&&this.listeners.forEach(u=>{u.done||u.push({type:a,data:o})})}stop(a){var o;this.done||((o=this.src)==null||o.stop(a),super.stop(a),this.listeners.forEach(u=>{u.stop()}))}close(){return this.stop(),this.iterClosed}closed(){return this.iterClosed}status(){const a=new sn;return this.listeners.push(a),Promise.resolve(a)}}class P0{constructor(s,a){w(this,"api");w(this,"_info");w(this,"stream");w(this,"name");this.api=s,this._info=a,this.stream=a.stream_name,this.name=a.name}consume(s={max_messages:100,expires:3e4}){return Promise.resolve(new b0(this,s,!0))}fetch(s={max_messages:100,expires:3e4}){const a=new b0(this,s,!1),o=Math.round(a.opts.expires*1.05),u=vl(o);return a.closed().catch(()=>{}).finally(()=>{u.cancel()}),u.catch(()=>{a.close().catch()}),a.trackTimeout(u),Promise.resolve(a)}next(s={expires:3e4}){const a=_t(),o=s;o.max_messages=1;const u=new b0(this,o,!1),d=Math.round(u.opts.expires*1.05);d>=6e4&&(async()=>{for await(const m of await u.status())if(m.type===wa.HeartbeatsMissed&&m.data>=2){a.reject(new Error("consumer missed heartbeats"));break}})().catch(),(async()=>{for await(const m of u){a.resolve(m);break}})().catch(()=>{});const p=vl(d);return u.closed().then(m=>{m?a.reject(m):a.resolve(null)}).catch(m=>{a.reject(m)}).finally(()=>{p.cancel()}),p.catch(m=>{a.resolve(null),u.close().catch()}),u.trackTimeout(p),a}delete(){const{stream_name:s,name:a}=this._info;return this.api.delete(s,a)}info(s=!1){if(s)return Promise.resolve(this._info);const{stream_name:a,name:o}=this._info;return this.api.info(a,o).then(u=>(this._info=u,this._info))}}class xO{constructor(s,a,o={}){w(this,"api");w(this,"consumerOpts");w(this,"consumer");w(this,"opts");w(this,"cursor");w(this,"stream");w(this,"namePrefix");w(this,"serial");w(this,"currentConsumer");w(this,"userCallback");w(this,"iter");w(this,"type");w(this,"startSeq");w(this,"maxInitialReset");this.api=s,this.stream=a,this.cursor={stream_seq:1,deliver_seq:0},this.namePrefix=oi.next(),typeof o.name_prefix=="string"&&(Nh("name_prefix",o.name_prefix),this.namePrefix=o.name_prefix+this.namePrefix),this.serial=0,this.currentConsumer=null,this.userCallback=null,this.iter=null,this.type=gs.Unset,this.consumerOpts=o,this.maxInitialReset=30,this.startSeq=this.consumerOpts.opt_start_seq||0,this.cursor.stream_seq=this.startSeq>0?this.startSeq-1:0}getConsumerOpts(s){this.serial++;const a=`${this.namePrefix}_${this.serial}`;s=s===0?1:s;const o={name:a,deliver_policy:Vt.StartSequence,opt_start_seq:s,ack_policy:nn.None,inactive_threshold:St(300*1e3),num_replicas:1};return this.consumerOpts.headers_only===!0&&(o.headers_only=!0),Array.isArray(this.consumerOpts.filterSubjects)&&(o.filter_subjects=this.consumerOpts.filterSubjects),typeof this.consumerOpts.filterSubjects=="string"&&(o.filter_subject=this.consumerOpts.filterSubjects),this.consumerOpts.replay_policy&&(o.replay_policy=this.consumerOpts.replay_policy),s===this.startSeq+1&&(o.deliver_policy=this.consumerOpts.deliver_policy||Vt.StartSequence,(this.consumerOpts.deliver_policy===Vt.LastPerSubject||this.consumerOpts.deliver_policy===Vt.New||this.consumerOpts.deliver_policy===Vt.Last)&&(delete o.opt_start_seq,o.deliver_policy=this.consumerOpts.deliver_policy),o.deliver_policy===Vt.LastPerSubject&&typeof o.filter_subjects>"u"&&typeof o.filter_subject>"u"&&(o.filter_subject=">"),this.consumerOpts.opt_start_time&&(delete o.opt_start_seq,o.deliver_policy=Vt.StartTime,o.opt_start_time=this.consumerOpts.opt_start_time),this.consumerOpts.inactive_threshold&&(o.inactive_threshold=St(this.consumerOpts.inactive_threshold))),o}async resetConsumer(s=0){var p,m,g,x,S;oi.next();const a=this.serial===0;(p=this.consumer)==null||p.delete().catch(()=>{}),s=s===0?1:s,this.cursor.deliver_seq=0;const o=this.getConsumerOpts(s);o.max_deliver=1,o.mem_storage=!0;const u=sy([((m=this.opts)==null?void 0:m.expires)||3e4]);let d;for(let E=0;;E++)try{d=await this.api.add(this.stream,o),(g=this.iter)==null||g.notify(wa.OrderedConsumerRecreated,d.name);break}catch(D){if(D.message==="stream not found"&&((x=this.iter)==null||x.notify(wa.StreamNotFound,E),this.type===gs.Fetch||this.opts.abort_on_missing_resource===!0))return(S=this.iter)==null||S.stop(D),Promise.reject(D);if(a&&E>=this.maxInitialReset)throw D;await El(u.backoff(E+1))}return d}internalHandler(s){return a=>{var u;if(this.serial!==s)return;const o=a.info.deliverySequence;if(o!==this.cursor.deliver_seq+1){this.notifyOrderedResetAndReset();return}this.cursor.deliver_seq=o,this.cursor.stream_seq=a.info.streamSequence,this.userCallback?this.userCallback(a):(u=this.iter)==null||u.push(a)}}async reset(s={max_messages:100,expires:3e4},a){var g,x;a=a||{};const o=a.fromFetch||!1,u=a.orderedReset||!1;if(this.type===gs.Fetch&&u){(g=this.iter)==null||g.src.stop(),await((x=this.iter)==null?void 0:x.closed()),this.currentConsumer=null;return}(this.currentConsumer===null||u)&&(this.currentConsumer=await this.resetConsumer(this.cursor.stream_seq+1)),(this.iter===null||o)&&(this.iter=new vO),this.consumer=new P0(this.api,this.currentConsumer);const d=s;d.callback=this.internalHandler(this.serial);let p=null;this.type===gs.Fetch&&o?p=await this.consumer.fetch(s):this.type===gs.Consume&&(p=await this.consumer.consume(s));const m=p;m.forOrderedConsumer=!0,m.resetHandler=()=>{this.notifyOrderedResetAndReset()},this.iter.setSource(m)}notifyOrderedResetAndReset(){var s;(s=this.iter)==null||s.notify(gl.Reset,""),this.reset(this.opts,{orderedReset:!0})}async consume(s={max_messages:100,expires:3e4}){if(s.bind)return Promise.reject(new Error("bind is not supported"));if(this.type===gs.Fetch)return Promise.reject(new Error("ordered consumer initialized as fetch"));if(this.type===gs.Consume)return Promise.reject(new Error("ordered consumer doesn't support concurrent consume"));const{callback:o}=s;return o&&(this.userCallback=o),this.type=gs.Consume,this.opts=s,await this.reset(s),this.iter}async fetch(s={max_messages:100,expires:3e4}){var u;if(s.bind)return Promise.reject(new Error("bind is not supported"));if(this.type===gs.Consume)return Promise.reject(new Error("ordered consumer already initialized as consume"));if(((u=this.iter)==null?void 0:u.done)===!1)return Promise.reject(new Error("ordered consumer doesn't support concurrent fetch"));const{callback:o}=s;return o&&(this.userCallback=o),this.type=gs.Fetch,this.opts=s,await this.reset(s,{fromFetch:!0}),this.iter}async next(s={expires:3e4}){const a=s;if(a.bind)return Promise.reject(new Error("bind is not supported"));a.max_messages=1;const o=_t();return a.callback=d=>{this.userCallback=null,o.resolve(d)},(await this.fetch(a)).iterClosed.then(d=>{d&&o.reject(d),o.resolve(null)}).catch(d=>{o.reject(d)}),o}delete(){return this.currentConsumer?this.api.delete(this.stream,this.currentConsumer.name).then(s=>Promise.resolve(s)).catch(s=>Promise.reject(s)).finally(()=>{this.currentConsumer=null}):Promise.resolve(!1)}async info(s){return this.currentConsumer==null?(this.currentConsumer=await this.resetConsumer(this.startSeq),Promise.resolve(this.currentConsumer)):s&&this.currentConsumer?Promise.resolve(this.currentConsumer):this.api.info(this.stream,this.currentConsumer.name)}}class H0{constructor(s){w(this,"api");w(this,"notified");this.api=s,this.notified=!1}checkVersion(){const s=this.api.nc.features.get(nt.JS_SIMPLIFICATION);return s.ok?Promise.resolve():Promise.reject(new Error(`consumers framework is only supported on servers ${s.min} or better`))}getPullConsumerFor(s){if(s.config.deliver_subject!==void 0)throw new Error("push consumer not supported");return new P0(this.api,s)}async get(s,a={}){return typeof a=="object"?this.ordered(s,a):(await this.checkVersion(),this.api.info(s,a).then(o=>o.config.deliver_subject!==void 0?Promise.reject(new Error("push consumer not supported")):new P0(this.api,o)).catch(o=>Promise.reject(o)))}async ordered(s,a){await this.checkVersion();const o=this.api;return new ly(o.nc,o.opts).info(s).then(d=>Promise.resolve(new xO(this.api,s,a))).catch(d=>Promise.reject(d))}}class wh{constructor(s,a){w(this,"api");w(this,"_info");this.api=s,this._info=a}get name(){return this._info.config.name}alternates(){return this.info().then(s=>s.alternates?s.alternates:[])}async best(){if(await this.info(),this._info.alternates){const s=await this.api.info(this._info.alternates[0].name);return new wh(this.api,s)}else return this}info(s=!1,a){return s?Promise.resolve(this._info):this.api.info(this.name,a).then(o=>(this._info=o,this._info))}getConsumerFromInfo(s){return new H0(new dh(this.api.nc,this.api.opts)).getPullConsumerFor(s)}getConsumer(s){return new H0(new dh(this.api.nc,this.api.opts)).get(this.name,s)}getMessage(s){return this.api.getMessage(this.name,s)}deleteMessage(s,a){return this.api.deleteMessage(this.name,s,a)}}class ly extends _u{constructor(s,a){super(s,a)}checkStreamConfigVersions(s){const a=this.nc;if(s.metadata){const{min:u,ok:d}=a.features.get(nt.JS_STREAM_CONSUMER_METADATA);if(!d)throw new Error(`stream 'metadata' requires server ${u}`)}if(s.first_seq){const{min:u,ok:d}=a.features.get(nt.JS_STREAM_FIRST_SEQ);if(!d)throw new Error(`stream 'first_seq' requires server ${u}`)}if(s.subject_transform){const{min:u,ok:d}=a.features.get(nt.JS_STREAM_SUBJECT_TRANSFORM);if(!d)throw new Error(`stream 'subject_transform' requires server ${u}`)}if(s.compression){const{min:u,ok:d}=a.features.get(nt.JS_STREAM_COMPRESSION);if(!d)throw new Error(`stream 'compression' requires server ${u}`)}if(s.consumer_limits){const{min:u,ok:d}=a.features.get(nt.JS_DEFAULT_CONSUMER_LIMITS);if(!d)throw new Error(`stream 'consumer_limits' requires server ${u}`)}function o(u,d){var m;if((((m=d==null?void 0:d.subject_transforms)==null?void 0:m.length)||0)>0){const{min:g,ok:x}=a.features.get(nt.JS_STREAM_SOURCE_SUBJECT_TRANSFORM);if(!x)throw new Error(`${u} 'subject_transforms' requires server ${g}`)}}s.sources&&s.sources.forEach(u=>{o("stream sources",u)}),s.mirror&&o("stream mirror",s.mirror)}async add(s={}){var u;this.checkStreamConfigVersions(s),_n(s.name),s.mirror=Qd(s.mirror),s.sources=(u=s.sources)==null?void 0:u.map(Qd);const o=await this._request(`${this.prefix}.STREAM.CREATE.${s.name}`,s);return this._fixInfo(o),o}async delete(s){return _n(s),(await this._request(`${this.prefix}.STREAM.DELETE.${s}`)).success}async update(s,a={}){var m;if(typeof s=="object"){const g=s;s=g.name,a=g,console.trace("\x1B[33m >> streams.update(config: StreamConfig) api changed to streams.update(name: string, config: StreamUpdateConfig) - this shim will be removed - update your code. \x1B[0m")}this.checkStreamConfigVersions(a),_n(s);const o=await this.info(s),u=Object.assign(o.config,a);u.mirror=Qd(u.mirror),u.sources=(m=u.sources)==null?void 0:m.map(Qd);const p=await this._request(`${this.prefix}.STREAM.UPDATE.${s}`,u);return this._fixInfo(p),p}async info(s,a){_n(s);const o=`${this.prefix}.STREAM.INFO.${s}`;let d=await this._request(o,a),{total:p,limit:m}=d,g=d.state.subjects?Object.getOwnPropertyNames(d.state.subjects).length:1;if(p&&p>g){const x=[d],S=a||{};let E=0;for(;p>g;){E++,S.offset=m*E;const q=await this._request(o,S);p=q.total,x.push(q);const k=Object.getOwnPropertyNames(q.state.subjects).length;if(g+=k,k<m)break}let D={};for(let q=0;q<x.length;q++)d=x[q],d.state.subjects&&(D=Object.assign(D,d.state.subjects));d.offset=0,d.total=0,d.limit=0,d.state.subjects=D}return this._fixInfo(d),d}list(s=""){const a=s!=null&&s.length?{subject:s}:{},o=d=>{const p=d;return p.streams.forEach(m=>{this._fixInfo(m)}),p.streams},u=`${this.prefix}.STREAM.LIST`;return new hu(u,o,this,a)}_fixInfo(s){s.config.sealed=s.config.sealed||!1,s.config.deny_delete=s.config.deny_delete||!1,s.config.deny_purge=s.config.deny_purge||!1,s.config.allow_rollup_hdrs=s.config.allow_rollup_hdrs||!1}async purge(s,a){if(a){const{keep:u,seq:d}=a;if(typeof u=="number"&&typeof d=="number")throw new Error("can specify one of keep or seq")}return _n(s),await this._request(`${this.prefix}.STREAM.PURGE.${s}`,a)}async deleteMessage(s,a,o=!0){_n(s);const u={seq:a};return o||(u.no_erase=!0),(await this._request(`${this.prefix}.STREAM.MSG.DELETE.${s}`,u)).success}async getMessage(s,a){_n(s);const u=await this._request(`${this.prefix}.STREAM.MSG.GET.${s}`,a);return new jS(u)}find(s){return this.findStream(s)}listKvs(){const s=o=>{var g;const d=o.streams.filter(x=>x.config.name.startsWith(Zn));d.forEach(x=>{this._fixInfo(x)});let p="";return d.length&&(p=((g=this.nc.info)==null?void 0:g.cluster)??""),d.map(x=>new OS(x,p))},a=`${this.prefix}.STREAM.LIST`;return new hu(a,s,this)}listObjectStores(){const s=o=>{const d=o.streams.filter(m=>m.config.name.startsWith(oy));return d.forEach(m=>{this._fixInfo(m)}),d.map(m=>new L0(m))},a=`${this.prefix}.STREAM.LIST`;return new hu(a,s,this)}names(s=""){const a=s!=null&&s.length?{subject:s}:{},o=d=>d.streams,u=`${this.prefix}.STREAM.NAMES`;return new hu(u,o,this,a)}async get(s){const a=await this.info(s);return Promise.resolve(new wh(this,a))}}class NO extends _u{constructor(s,a){super(s,a)}async getMessage(s,a){_n(s);let o=a;const{last_by_subj:u}=o;u&&(o=null);const d=o?this.jc.encode(o):ts,p=this.opts.apiPrefix||"$JS.API",m=u?`${p}.DIRECT.GET.${s}.${u}`:`${p}.DIRECT.GET.${s}`,g=await this.nc.request(m,d,{timeout:this.timeout}),x=bl(g);if(x)return Promise.reject(x);const S=new $0(g);return Promise.resolve(S)}async getBatch(s,a){_n(s);const u=`${this.opts.apiPrefix||"$JS.API"}.DIRECT.GET.${s}`;if(!Array.isArray(a.multi_last)||a.multi_last.length===0)return Promise.reject("multi_last is required");const d=JSON.stringify(a,(g,x)=>g==="up_to_time"&&x instanceof Date?x.toISOString():x),p=new sn,m=await this.nc.requestMany(u,d,{strategy:zs.SentinelMsg});return(async()=>{var E,D,q;let g=!1,x=!1,S;for await(const k of m){if(!g){g=!0;const L=((E=k.headers)==null?void 0:E.code)||0;if(L!==0&&L<200||L>299){S=(D=k.headers)==null?void 0:D.description.toLowerCase();break}if(((q=k.headers)==null?void 0:q.get("Nats-Num-Pending"))===""){x=!0;break}}if(k.data.length===0)break;p.push(new $0(k))}p.push(()=>{if(x)throw new Error("batch direct get not supported by the server");if(S)throw new Error(`bad request: ${S}`);p.stop()})})(),Promise.resolve(p)}}class $0{constructor(s){w(this,"data");w(this,"header");if(!s.headers)throw new Error("headers expected");this.data=s.data,this.header=s.headers}get subject(){return this.header.last(dl.Subject)}get seq(){const s=this.header.last(dl.Sequence);return typeof s=="string"?parseInt(s):0}get time(){return new Date(Date.parse(this.timestamp))}get timestamp(){return this.header.last(dl.TimeStamp)}get stream(){return this.header.last(dl.Stream)}json(s){return Bs(s).decode(this.data)}string(){return Wn.decode(this.data)}}w($0,"jc");class EO extends _u{constructor(a,o){super(a,o);w(this,"streams");w(this,"consumers");w(this,"direct");this.streams=new ly(a,o),this.consumers=new dh(a,o),this.direct=new NO(a,o)}async getAccountInfo(){return await this._request(`${this.prefix}.INFO`)}jetstream(){return this.nc.jetstream(this.getOptions())}advisories(){const a=new sn;return this.nc.subscribe("$JS.EVENT.ADVISORY.>",{callback:(o,u)=>{if(o)throw o;try{const d=this.parseJsResponse(u),p=d.type.split("."),m=p[p.length-1];a.push({kind:m,data:d})}catch(d){a.stop(d)}}}),a}}class jS{constructor(s){w(this,"_header");w(this,"smr");this.smr=s}get subject(){return this.smr.message.subject}get seq(){return this.smr.message.seq}get timestamp(){return this.smr.message.time}get time(){return new Date(Date.parse(this.timestamp))}get data(){return this.smr.message.data?this._parse(this.smr.message.data):ts}get header(){if(!this._header)if(this.smr.message.hdrs){const s=this._parse(this.smr.message.hdrs);this._header=si.decode(s)}else this._header=ir();return this._header}_parse(s){const a=atob(s),o=a.length,u=new Uint8Array(o);for(let d=0;d<o;d++)u[d]=a.charCodeAt(d);return u}json(s){return Bs(s).decode(this.data)}string(){return Wn.decode(this.data)}}w(jS,"jc");class wO{constructor(s){w(this,"api");this.api=s}get(s){return this.api.info(s).then(a=>new wh(this.api,a))}}class y0{constructor(s){w(this,"info");w(this,"hdrs");this.info=s}get name(){return this.info.name}get description(){return this.info.description??""}get headers(){return this.hdrs||(this.hdrs=si.fromRecord(this.info.headers||{})),this.hdrs}get options(){return this.info.options}get bucket(){return this.info.bucket}get chunks(){return this.info.chunks}get deleted(){return this.info.deleted??!1}get digest(){return this.info.digest}get mtime(){return this.info.mtime}get nuid(){return this.info.nuid}get size(){return this.info.size}get revision(){return this.info.revision}get metadata(){return this.info.metadata||{}}isLink(){var s,a;return((s=this.info.options)==null?void 0:s.link)!==void 0&&((a=this.info.options)==null?void 0:a.link)!==null}}function Dw(r){const s={name:r.name,description:r.description??"",options:r.options,metadata:r.metadata};if(r.headers){const a=r.headers;s.headers=a.toRecord()}return s}function SO(){return new ReadableStream({pull(r){r.enqueue(new Uint8Array(0)),r.close()}})}class gu{constructor(s,a,o){w(this,"jsm");w(this,"js");w(this,"stream");w(this,"name");this.name=s,this.jsm=a,this.js=o}_checkNotEmpty(s){return!s||s.length===0?{name:s,error:new Error("name cannot be empty")}:{name:s}}async info(s){const a=await this.rawInfo(s);return a?new y0(a):null}async list(){const s=[],a=await this.watch({ignoreDeletes:!0,includeHistory:!0});for await(const o of a){if(o===null)break;s.push(o)}return Promise.resolve(s)}async rawInfo(s){const{name:a,error:o}=this._checkNotEmpty(s);if(o)return Promise.reject(o);const u=this._metaSubject(a);try{const d=await this.jsm.streams.getMessage(this.stream,{last_by_subj:u}),m=Bs().decode(d.data);return m.revision=d.seq,m}catch(d){return d.code==="404"?null:Promise.reject(d)}}async _si(s){try{return await this.jsm.streams.info(this.stream,s)}catch(a){return a.code==="404"?null:Promise.reject(a)}}async seal(){let s=await this._si();return s===null?Promise.reject(new Error("object store not found")):(s.config.sealed=!0,s=await this.jsm.streams.update(this.stream,s.config),Promise.resolve(new L0(s)))}async status(s){const a=await this._si(s);return a===null?Promise.reject(new Error("object store not found")):Promise.resolve(new L0(a))}destroy(){return this.jsm.streams.delete(this.stream)}async _put(s,a,o){var le;const u=this.js.getOptions();o=o||{timeout:u.timeout},o.timeout=o.timeout||u.timeout,o.previousRevision=o.previousRevision??void 0;const{timeout:d,previousRevision:p}=o,m=this.js.nc.info,g=(m==null?void 0:m.max_payload)||1024;s=s||{},s.options=s.options||{};let x=((le=s.options)==null?void 0:le.max_chunk_size)||128*1024;x=x>g?g:x,s.options.max_chunk_size=x;const S=await this.info(s.name),{name:E,error:D}=this._checkNotEmpty(s.name);if(D)return Promise.reject(D);const q=oi.next(),k=this._chunkSubject(q),L=this._metaSubject(E),I=Object.assign({bucket:this.name,nuid:q,size:0,chunks:0},Dw(s)),W=_t(),te=[],Ne=new Nl;try{const V=a?a.getReader():null,ne=bw.create();for(;;){const{done:fe,value:J}=V?await V.read():{done:!0,value:void 0};if(fe){if(Ne.size()>0){const ae=Ne.drain();ne.update(ae),I.chunks++,I.size+=ae.length,te.push(this.js.publish(k,ae,{timeout:d}))}await Promise.all(te),te.length=0,I.mtime=new Date().toISOString();const Q=yl.encode(ne.digest());I.digest=`${_w}${Q}`,I.deleted=!1;const H=ir();typeof p=="number"&&H.set(Ea.ExpectedLastSubjectSequenceHdr,`${p}`),H.set(Dn.RollupHdr,Dn.RollupValueSubject);const oe=await this.js.publish(L,Bs().encode(I),{headers:H,timeout:d});if(I.revision=oe.seq,S)try{await this.jsm.streams.purge(this.stream,{filter:`$O.${this.name}.C.${S.nuid}`})}catch{}W.resolve(new y0(I));break}if(J)for(Ne.fill(J);Ne.size()>x;){I.chunks++,I.size+=x;const Q=Ne.drain(s.options.max_chunk_size);ne.update(Q),te.push(this.js.publish(k,Q,{timeout:d}))}}}catch(V){await this.jsm.streams.purge(this.stream,{filter:k}),W.reject(V)}return W}putBlob(s,a,o){function u(d){return new ReadableStream({pull(p){p.enqueue(d),p.close()}})}return a===null&&(a=new Uint8Array(0)),this.put(s,u(a),o)}put(s,a,o){var u;return(u=s==null?void 0:s.options)!=null&&u.link?Promise.reject(new Error("link cannot be set when putting the object in bucket")):this._put(s,a,o)}async getBlob(s){async function a(d){const p=new Nl,m=d.getReader();for(;;){const{done:g,value:x}=await m.read();if(g)return p.drain();x&&x.length&&p.fill(x)}}const o=await this.get(s);if(o===null)return Promise.resolve(null);const u=await Promise.all([o.error,a(o.data)]);return u[0]?Promise.reject(u[0]):Promise.resolve(u[1])}async get(s){const a=await this.rawInfo(s);if(a===null||a.deleted)return Promise.resolve(null);if(a.options&&a.options.link){const E=a.options.link.name||"";if(E==="")throw new Error("link is a bucket");return(a.options.link.bucket!==this.name?await gu.create(this.js,a.options.link.bucket):this).get(E)}if(!a.digest.startsWith(_w))return Promise.reject(new Error(`unknown digest type: ${a.digest}`));const o=V0(a.digest.substring(8));if(o===null)return Promise.reject(new Error(`unable to parse digest: ${a.digest}`));const u=_t(),d={info:new y0(a),error:u};if(a.size===0)return d.data=SO(),u.resolve(null),Promise.resolve(d);let p;const m=ai();m.orderedConsumer();const g=bw.create(),x=`$O.${this.name}.C.${a.nuid}`,S=await this.js.subscribe(x,m);return(async()=>{for await(const E of S)E.data.length>0&&(g.update(E.data),p.enqueue(E.data)),E.info.pending===0&&(dC(o,g.digest())?p.close():p.error(new Error(`received a corrupt object, digests do not match received: ${a.digest} calculated ${o}`)),S.unsubscribe())})().then(()=>{u.resolve()}).catch(E=>{p.error(E),u.reject(E)}),d.data=new ReadableStream({start(E){p=E},cancel(){S.unsubscribe()}}),d}linkStore(s,a){if(!(a instanceof gu))return Promise.reject("bucket required");const o=a,{name:u,error:d}=this._checkNotEmpty(s);if(d)return Promise.reject(d);const p={name:u,options:{link:{bucket:o.name}}};return this._put(p,null)}async link(s,a){const{name:o,error:u}=this._checkNotEmpty(s);if(u)return Promise.reject(u);if(a.deleted)return Promise.reject(new Error("src object is deleted"));if(a.isLink())return Promise.reject(new Error("src object is a link"));const d=await this.rawInfo(s);if(d!==null&&!d.deleted)return Promise.reject(new Error("an object already exists with that name"));const p={bucket:a.bucket,name:a.name},m={name:o,bucket:a.bucket,options:{link:p}};await this.js.publish(this._metaSubject(s),JSON.stringify(m));const g=await this.info(s);return Promise.resolve(g)}async delete(s){const a=await this.rawInfo(s);if(a===null)return Promise.resolve({purged:0,success:!1});a.deleted=!0,a.size=0,a.chunks=0,a.digest="";const o=Bs(),u=ir();return u.set(Dn.RollupHdr,Dn.RollupValueSubject),await this.js.publish(this._metaSubject(a.name),o.encode(a),{headers:u}),this.jsm.streams.purge(this.stream,{filter:this._chunkSubject(a.nuid)})}async update(s,a={}){const o=await this.rawInfo(s);if(o===null)return Promise.reject(new Error("object not found"));if(o.deleted)return Promise.reject(new Error("cannot update meta for a deleted object"));a.name=a.name??o.name;const{name:u,error:d}=this._checkNotEmpty(a.name);if(d)return Promise.reject(d);if(s!==a.name){const g=await this.info(a.name);if(g&&!g.deleted)return Promise.reject(new Error("an object already exists with that name"))}a.name=u;const p=Object.assign({},o,Dw(a)),m=await this.js.publish(this._metaSubject(p.name),JSON.stringify(p));return s!==a.name&&await this.jsm.streams.purge(this.stream,{filter:this._metaSubject(s)}),Promise.resolve(m)}async watch(s={}){s.includeHistory=s.includeHistory??!1,s.ignoreDeletes=s.ignoreDeletes??!1;let a=!1;const o=new sn,u=this._metaSubjectAll();try{await this.jsm.streams.getMessage(this.stream,{last_by_subj:u})}catch(g){g.code==="404"?(o.push(null),a=!0):o.stop(g)}const d=Bs(),p=ai();p.orderedConsumer(),s.includeHistory?p.deliverLastPerSubject():(a=!0,p.deliverNew()),p.callback((g,x)=>{var S;if(g){o.stop(g);return}if(x!==null){const E=d.decode(x.data);E.deleted&&s.ignoreDeletes===!0||o.push(E),((S=x.info)==null?void 0:S.pending)===0&&!a&&(a=!0,o.push(null))}});const m=await this.js.subscribe(u,p);return o._data=m,o.iterClosed.then(()=>{m.unsubscribe()}),m.closed.then(()=>{o.stop()}).catch(g=>{o.stop(g)}),o}_chunkSubject(s){return`$O.${this.name}.C.${s}`}_metaSubject(s){return`$O.${this.name}.M.${yl.encode(s)}`}_metaSubjectAll(){return`$O.${this.name}.M.>`}async init(s={}){try{this.stream=hO(this.name)}catch(u){return Promise.reject(u)}const a=(s==null?void 0:s.ttl)||0;delete s.ttl;const o=Object.assign({max_age:a},s);o.name=this.stream,o.num_replicas=s.replicas??1,o.allow_direct=!0,o.allow_rollup_hdrs=!0,o.discard=xu.New,o.subjects=[`$O.${this.name}.C.>`,`$O.${this.name}.M.>`],s.placement&&(o.placement=s.placement),s.metadata&&(o.metadata=s.metadata),typeof s.compression=="boolean"&&(o.compression=s.compression?li.S2:li.None);try{await this.jsm.streams.info(o.name)}catch(u){u.message==="stream not found"&&await this.jsm.streams.add(o)}}static async create(s,a,o={}){const u=await s.jetstreamManager(),d=new gu(a,u,s);return await d.init(o),Promise.resolve(d)}}class _O{constructor(s){w(this,"js");this.js=s}kv(s,a={}){const o=this.js,{ok:u,min:d}=o.nc.features.get(nt.JS_KV);return u?a.bindOnly?Eu.bind(this.js,s,a):Eu.create(this.js,s,a):Promise.reject(new Error(`kv is only supported on servers ${d} or better`))}os(s,a={}){var p;if(typeof((p=crypto==null?void 0:crypto.subtle)==null?void 0:p.digest)!="function")return Promise.reject(new Error("objectstore: unable to calculate hashes - crypto.subtle.digest with sha256 support is required"));const o=this.js,{ok:u,min:d}=o.nc.features.get(nt.JS_OBJECTSTORE);return u?gu.create(this.js,s,a):Promise.reject(new Error(`objectstore is only supported on servers ${d} or better`))}}class cy extends _u{constructor(a,o){super(a,o);w(this,"consumers");w(this,"streams");w(this,"consumerAPI");w(this,"streamAPI");this.consumerAPI=new dh(a,o),this.streamAPI=new ly(a,o),this.consumers=new H0(this.consumerAPI),this.streams=new wO(this.streamAPI)}jetstreamManager(a){a===void 0&&(a=this.opts.checkAPI);const o=Object.assign({},this.opts,{checkAPI:a});return this.nc.jetstreamManager(o)}get apiPrefix(){return this.prefix}get views(){return new _O(this)}async publish(a,o=ts,u){u=u||{},u.expect=u.expect||{};const d=(u==null?void 0:u.headers)||ir();u&&(u.msgID&&d.set(Ea.MsgIdHdr,u.msgID),u.expect.lastMsgID&&d.set(Ea.ExpectedLastMsgIdHdr,u.expect.lastMsgID),u.expect.streamName&&d.set(Ea.ExpectedStreamHdr,u.expect.streamName),typeof u.expect.lastSequence=="number"&&d.set(Ea.ExpectedLastSeqHdr,`${u.expect.lastSequence}`),typeof u.expect.lastSubjectSequence=="number"&&d.set(Ea.ExpectedLastSubjectSequenceHdr,`${u.expect.lastSubjectSequence}`));const p=u.timeout||this.timeout,m={};p&&(m.timeout=p),u&&(m.headers=d);let{retries:g,retry_delay:x}=u;g=g||1,x=x||250;let S;for(let D=0;D<g;D++)try{S=await this.nc.request(a,o,m);break}catch(q){if(q.code==="503"&&D+1<g)await El(x);else throw q}const E=this.parseJsResponse(S);if(E.stream==="")throw xe.errorForCode(ue.JetStreamInvalidAck);return E.duplicate=E.duplicate?E.duplicate:!1,E}async pull(a,o,u=0){_n(a),pl(o);let d=this.timeout;u>d&&(d=u),u=u<0?0:St(u);const p={batch:1,no_wait:u===0,expires:u},m=await this.nc.request(`${this.prefix}.CONSUMER.MSG.NEXT.${a}.${o}`,this.jc.encode(p),{noMux:!0,timeout:d}),g=bl(m);if(g)throw g;return wu(m,this.timeout)}fetch(a,o,u={}){_n(a),pl(o);let d=null;const p=(u.max_bytes??0)>0;let m=0;const g=p?u.max_bytes:0;let x=null;const S={};if(S.batch=u.batch||1,g){const te=this.nc.features.get(nt.JS_PULL_MAX_BYTES);if(!te.ok)throw new Error(`max_bytes is only supported on servers ${te.min} or better`);S.max_bytes=g}S.no_wait=u.no_wait||!1,S.no_wait&&S.expires&&(S.expires=0);const E=u.expires||0;if(E&&(S.expires=St(E)),E===0&&S.no_wait===!1)throw new Error("expires or no_wait is required");const D=u.idle_heartbeat||0;D&&(S.idle_heartbeat=St(D),u.delay_heartbeat===!0&&(S.idle_heartbeat=St(D*4)));const q=new sn,k=S.batch;let L=0;q.protocolFilterFn=(te,Ne=!1)=>R0(te.msg)?(x==null||x.work(),!1):!0,q.dispatchedFn=te=>{if(te){if(p&&(m+=te.data.length),L++,d&&te.info.pending===0)return;(q.getPending()===1&&te.info.pending===0||k===L||g>0&&m>=g)&&q.stop()}};const I=rr(this.nc.options.inboxPrefix),W=this.nc.subscribe(I,{max:u.batch,callback:(te,Ne)=>{te===null&&(te=bl(Ne)),te!==null?(d&&(d.cancel(),d=null),GT(te)?q.stop(MS(te)===null?void 0:te):q.stop(te)):(x==null||x.work(),q.received++,q.push(wu(Ne,this.timeout)))}});return E&&(d=vl(E),d.catch(()=>{W.isClosed()||(W.drain().catch(()=>{}),d=null),x&&x.cancel()})),(async()=>{try{D&&(x=new iy(D,te=>(q.push(()=>{q.err=new xe(`${vs.IdleHeartbeatMissed}: ${te}`,ue.JetStreamIdleHeartBeat)}),!0)))}catch{}await W.closed,d!==null&&(d.cancel(),d=null),x&&x.cancel(),q.stop()})().catch(),this.nc.publish(`${this.prefix}.CONSUMER.MSG.NEXT.${a}.${o}`,this.jc.encode(S),{reply:I}),q}async pullSubscribe(a,o=ai()){const u=await this._processOptions(a,o);if(u.ordered)throw new Error("pull subscribers cannot be be ordered");if(u.config.deliver_subject)throw new Error("consumer info specifies deliver_subject - pull consumers cannot have deliver_subject set");const d=u.config.ack_policy;if(d===nn.None||d===nn.All)throw new Error("ack policy for pull consumers must be explicit");const p=this._buildTypedSubscriptionOpts(u),m=new CO(this,u.deliver,p);m.info=u;try{await this._maybeCreateConsumer(u)}catch(g){throw m.unsubscribe(),g}return m}async subscribe(a,o=ai()){const u=await this._processOptions(a,o);if(!u.isBind&&!u.config.deliver_subject)throw new Error("push consumer requires deliver_subject");const d=this._buildTypedSubscriptionOpts(u),p=new RS(this,u.deliver,d);p.info=u;try{await this._maybeCreateConsumer(u)}catch(m){throw p.unsubscribe(),m}return p._maybeSetupHbMonitoring(),p}async _processOptions(a,o=ai()){const u=dw(o)?o.getOpts():o;if(u.isBind=dw(o)?o.isBind:!1,u.flow_control={heartbeat_count:0,fc_count:0,consumer_restarts:0},u.ordered){if(u.ordered_consumer_sequence={stream_seq:0,delivery_seq:0},u.config.ack_policy!==nn.NotSet&&u.config.ack_policy!==nn.None)throw new xe("ordered consumer: ack_policy can only be set to 'none'",ue.ApiError);if(u.config.durable_name&&u.config.durable_name.length>0)throw new xe("ordered consumer: durable_name cannot be set",ue.ApiError);if(u.config.deliver_subject&&u.config.deliver_subject.length>0)throw new xe("ordered consumer: deliver_subject cannot be set",ue.ApiError);if(u.config.max_deliver!==void 0&&u.config.max_deliver>1)throw new xe("ordered consumer: max_deliver cannot be set",ue.ApiError);if(u.config.deliver_group&&u.config.deliver_group.length>0)throw new xe("ordered consumer: deliver_group cannot be set",ue.ApiError);u.config.deliver_subject=rr(this.nc.options.inboxPrefix),u.config.ack_policy=nn.None,u.config.max_deliver=1,u.config.flow_control=!0,u.config.idle_heartbeat=u.config.idle_heartbeat||St(5e3),u.config.ack_wait=St(1320*60*1e3),u.config.mem_storage=!0,u.config.num_replicas=1}if(u.config.ack_policy===nn.NotSet&&(u.config.ack_policy=nn.All),u.api=this,u.config=u.config||{},u.stream=u.stream?u.stream:await this.findStream(a),u.attached=!1,u.config.durable_name)try{const d=await this.consumerAPI.info(u.stream,u.config.durable_name);if(d){if(d.config.filter_subject&&d.config.filter_subject!==a)throw new Error("subject does not match consumer");const p=u.config.deliver_group??"";if(p===""&&d.push_bound===!0)throw new Error("duplicate subscription");const m=d.config.deliver_group??"";if(p!==m)throw m===""?new Error("durable requires no queue group"):new Error(`durable requires queue group '${m}'`);u.last=d,u.config=d.config,u.attached=!0,u.config.durable_name||(u.name=d.name)}}catch(d){if(d.code!=="404")throw d}return!u.attached&&u.config.filter_subject===void 0&&u.config.filter_subjects===void 0&&(u.config.filter_subject=a),u.deliver=u.config.deliver_subject||rr(this.nc.options.inboxPrefix),u}_buildTypedSubscriptionOpts(a){const o={};return o.adapter=OO(a.callbackFn===void 0,this.timeout),o.ingestionFilterFn=cy.ingestionFn(a.ordered),o.protocolFilterFn=(u,d=!1)=>{const p=u;return j0(p.msg)?(d||p.msg.respond(),!1):!0},!a.mack&&a.config.ack_policy!==nn.None&&(o.dispatchedFn=MO),a.callbackFn&&(o.callback=a.callbackFn),o.max=a.max||0,o.queue=a.queue,o}async _maybeCreateConsumer(a){if(a.attached)return;if(a.isBind)throw new Error(`unable to bind - durable consumer ${a.config.durable_name} doesn't exist in ${a.stream}`);a.config=Object.assign({deliver_policy:Vt.All,ack_policy:nn.Explicit,ack_wait:St(30*1e3),replay_policy:xl.Instant},a.config);const o=await this.consumerAPI.add(a.stream,a.config);if(Array.isArray(a.config.filter_subjects&&!Array.isArray(o.config.filter_subjects)))throw new Error("jetstream server doesn't support consumers with multiple filter subjects");a.name=o.name,a.config=o.config,a.last=o}static ingestionFn(a){return(o,u)=>{var g;const d=u;if(!o)return{ingest:!1,protocol:!1};const p=o;if(bl(p.msg)||(g=d.monitor)==null||g.work(),R0(p.msg)){const x=a?d._checkHbOrderConsumer(p.msg):!0;return a||d.info.flow_control.heartbeat_count++,{ingest:x,protocol:!0}}else if(j0(p.msg))return d.info.flow_control.fc_count++,{ingest:!0,protocol:!0};return{ingest:a?d._checkOrderedConsumer(o):!0,protocol:!1}}}}class uy{constructor(s){w(this,"options");w(this,"protocol");w(this,"draining");w(this,"listeners");w(this,"_services");this.draining=!1,this.options=JC(s),this.listeners=[]}static connect(s={}){return new Promise((a,o)=>{const u=new uy(s);mh.connect(u.options,u).then(d=>{u.protocol=d,(async function(){for await(const p of d.status())u.listeners.forEach(m=>{m.push(p)})})(),a(u)}).catch(d=>{o(d)})})}closed(){return this.protocol.closed}async close(){await this.protocol.close()}_check(s,a,o){if(this.isClosed())throw xe.errorForCode(ue.ConnectionClosed);if(a&&this.isDraining()||o&&this.protocol.noMorePublishing)throw xe.errorForCode(ue.ConnectionDraining);if(s=s||"",s.length===0)throw xe.errorForCode(ue.BadSubject)}publish(s,a,o){this._check(s,!1,!0),this.protocol.publish(s,a,o)}publishMessage(s){return this.publish(s.subject,s.data,{reply:s.reply,headers:s.headers})}respondMessage(s){return s.reply?(this.publish(s.reply,s.data,{reply:s.reply,headers:s.headers}),!0):!1}subscribe(s,a={}){this._check(s,!0,!1);const o=new TS(this.protocol,s,a);return this.protocol.subscribe(o),o}_resub(s,a,o){this._check(a,!0,!1);const u=s;u.max=o,o&&(u.max=o+u.received),this.protocol.resub(u,a)}requestMany(s,a=ts,o={maxWait:1e3,maxMessages:-1}){const u=!this.protocol.options.noAsyncTraces;try{this._check(s,!0,!0)}catch(g){return Promise.reject(g)}if(o.strategy=o.strategy||zs.Timer,o.maxWait=o.maxWait||1e3,o.maxWait<1)return Promise.reject(new xe("timeout",ue.InvalidOption));const d=new sn;function p(g){d.push(()=>{d.stop(g)})}function m(g,x){g||x===null?p(g===null?void 0:g):d.push(x)}if(o.noMux){const g=u?new Error().stack:null;let x=typeof o.maxMessages=="number"&&o.maxMessages>0?o.maxMessages:-1;const S=this.subscribe(rr(this.options.inboxPrefix),{callback:(k,L)=>{var I,W;if(((I=L==null?void 0:L.data)==null?void 0:I.length)===0&&((W=L==null?void 0:L.headers)==null?void 0:W.status)===ue.NoResponders&&(k=xe.errorForCode(ue.NoResponders)),k){g&&(k.stack+=`
266
-
267
- ${g}`),E(k);return}m(null,L),o.strategy===zs.Count&&(x--,x===0&&E()),o.strategy===zs.JitterTimer&&(q(),D=setTimeout(()=>{E()},300)),o.strategy===zs.SentinelMsg&&L&&L.data.length===0&&E()}});S.requestSubject=s,S.closed.then(()=>{p()}).catch(k=>{d.stop(k)});const E=k=>{k&&d.push(()=>{throw k}),q(),S.drain().then(()=>{p()}).catch(L=>{p()})};d.iterClosed.then(()=>{q(),S==null||S.unsubscribe()}).catch(k=>{q(),S==null||S.unsubscribe()});try{this.publish(s,a,{reply:S.getSubject()})}catch(k){E(k)}let D=setTimeout(()=>{E()},o.maxWait);const q=()=>{D&&clearTimeout(D)}}else{const g=o;g.callback=m,d.iterClosed.then(()=>{x.cancel()}).catch(S=>{x.cancel(S)});const x=new hC(this.protocol.muxSubscriptions,s,g);this.protocol.request(x);try{this.publish(s,a,{reply:`${this.protocol.muxSubscriptions.baseInbox}${x.token}`,headers:o.headers})}catch(S){x.cancel(S)}}return Promise.resolve(d)}request(s,a,o={timeout:1e3,noMux:!1}){try{this._check(s,!0,!0)}catch(d){return Promise.reject(d)}const u=!this.protocol.options.noAsyncTraces;if(o.timeout=o.timeout||1e3,o.timeout<1)return Promise.reject(new xe("timeout",ue.InvalidOption));if(!o.noMux&&o.reply)return Promise.reject(new xe("reply can only be used with noMux",ue.InvalidOption));if(o.noMux){const d=o.reply?o.reply:rr(this.options.inboxPrefix),p=_t(),m=u?new Error:null,g=this.subscribe(d,{max:1,timeout:o.timeout,callback:(x,S)=>{x?(m&&x.code!==ue.Timeout&&(x.stack+=`
268
-
269
- ${m.stack}`),g.unsubscribe(),p.reject(x)):(x=vS(S),x?(m&&(x.stack+=`
270
-
271
- ${m.stack}`),p.reject(x)):p.resolve(S))}});return g.requestSubject=s,this.protocol.publish(s,a,{reply:d,headers:o.headers}),p}else{const d=new ES(this.protocol.muxSubscriptions,s,o,u);this.protocol.request(d);try{this.publish(s,a,{reply:`${this.protocol.muxSubscriptions.baseInbox}${d.token}`,headers:o.headers})}catch(m){d.cancel(m)}const p=Promise.race([d.timer,d.deferred]);return p.catch(()=>{d.cancel()}),p}}flush(){return this.isClosed()?Promise.reject(xe.errorForCode(ue.ConnectionClosed)):this.protocol.flush()}drain(){return this.isClosed()?Promise.reject(xe.errorForCode(ue.ConnectionClosed)):this.isDraining()?Promise.reject(xe.errorForCode(ue.ConnectionDraining)):(this.draining=!0,this.protocol.drain())}isClosed(){return this.protocol.isClosed()}isDraining(){return this.draining}getServer(){const s=this.protocol.getServer();return s?s.listen:""}status(){const s=new sn;return s.iterClosed.then(()=>{const a=this.listeners.indexOf(s);this.listeners.splice(a,1)}),this.listeners.push(s),s}get info(){return this.protocol.isClosed()?void 0:this.protocol.info}async context(){return(await this.request("$SYS.REQ.USER.INFO")).json((a,o)=>a==="time"?new Date(Date.parse(o)):o)}stats(){return{inBytes:this.protocol.inBytes,outBytes:this.protocol.outBytes,inMsgs:this.protocol.inMsgs,outMsgs:this.protocol.outMsgs}}async jetstreamManager(s={}){const a=new EO(this,s);if(s.checkAPI!==!1)try{await a.getAccountInfo()}catch(o){const u=o;throw u.code===ue.NoResponders&&(u.code=ue.JetStreamNotEnabled),u}return a}jetstream(s={}){return new cy(this,s)}getServerVersion(){const s=this.info;return s?Wi(s.version):void 0}async rtt(){if(!this.protocol._closed&&!this.protocol.connected)throw xe.errorForCode(ue.Disconnect);const s=Date.now();return await this.flush(),Date.now()-s}get features(){return this.protocol.features}get services(){return this._services||(this._services=new AO(this)),this._services}reconnect(){return this.isClosed()?Promise.reject(xe.errorForCode(ue.ConnectionClosed)):this.isDraining()?Promise.reject(xe.errorForCode(ue.ConnectionDraining)):this.protocol.reconnect()}}class AO{constructor(s){w(this,"nc");this.nc=s}add(s){try{return new Au(this.nc,s).start()}catch(a){return Promise.reject(a)}}client(s,a){return new rO(this.nc,s,a)}}class DO{constructor(s,a,o){w(this,"bucket");w(this,"sm");w(this,"prefixLen");this.bucket=s,this.prefixLen=a,this.sm=o}get key(){return this.sm.subject.substring(this.prefixLen)}get value(){return this.sm.data}get delta(){return 0}get created(){return this.sm.time}get revision(){return this.sm.seq}get operation(){return this.sm.header.get(ph)||"PUT"}get length(){const s=this.sm.header.get(Dn.MessageSizeHdr)||"";return s!==""?parseInt(s,10):this.sm.data.length}json(){return this.sm.json()}string(){return this.sm.string()}}class TO{constructor(s,a,o){w(this,"bucket");w(this,"key");w(this,"sm");this.bucket=s,this.key=a,this.sm=o}get value(){return this.sm.data}get created(){return new Date(ay(this.sm.info.timestampNanos))}get revision(){return this.sm.seq}get operation(){var s;return((s=this.sm.headers)==null?void 0:s.get(ph))||"PUT"}get delta(){return this.sm.info.pending}get length(){var a;const s=((a=this.sm.headers)==null?void 0:a.get(Dn.MessageSizeHdr))||"";return s!==""?parseInt(s,10):this.sm.data.length}json(){return this.sm.json()}string(){return this.sm.string()}}class RS extends yC{constructor(a,o,u){super(a.nc,o,u);w(this,"js");w(this,"monitor");this.js=a,this.monitor=null,this.sub.closed.then(()=>{this.monitor&&this.monitor.cancel()})}set info(a){this.sub.info=a}get info(){return this.sub.info}_resetOrderedConsumer(a){if(this.info===null||this.sub.isClosed())return;const o=rr(this.js.nc.options.inboxPrefix);this.js.nc._resub(this.sub,o);const d=this.info;d.config.name=oi.next(),d.ordered_consumer_sequence.delivery_seq=0,d.flow_control.heartbeat_count=0,d.flow_control.fc_count=0,d.flow_control.consumer_restarts++,d.deliver=o,d.config.deliver_subject=o,d.config.deliver_policy=Vt.StartSequence,d.config.opt_start_seq=a;const p={};p.stream_name=this.info.stream,p.config=d.config;const m=`${d.api.prefix}.CONSUMER.CREATE.${d.stream}`;this.js._request(m,p,{retries:-1}).then(g=>{const x=g,S=this.sub.info;S.last=x,this.info.config=x.config,this.info.name=x.name}).catch(g=>{const x=new xe(`unable to recreate ordered consumer ${d.stream} at seq ${a}`,ue.RequestError,g);this.sub.callback(x,{})})}_maybeSetupHbMonitoring(){var o,u;const a=((u=(o=this.info)==null?void 0:o.config)==null?void 0:u.idle_heartbeat)||0;a&&this._setupHbMonitoring(ay(a))}_setupHbMonitoring(a,o=0){const u={cancelAfter:0,maxOut:2};o&&(u.cancelAfter=o);const d=this.sub,p=m=>{var S,E,D,q;const g=ZT(409,`${vs.IdleHeartbeatMissed}: ${m}`,this.sub.subject);if(!((S=this.info)==null?void 0:S.ordered))this.sub.callback(null,g);else{if(!this.js.nc.protocol.connected)return!1;const k=((D=(E=this.info)==null?void 0:E.ordered_consumer_sequence)==null?void 0:D.stream_seq)||0;return this._resetOrderedConsumer(k+1),(q=this.monitor)==null||q.restart(),!1}return!d.noIterator};this.monitor=new iy(a,p,u)}_checkHbOrderConsumer(a){const o=a.headers.get(Dn.ConsumerStalledHdr);o!==""&&this.js.nc.publish(o);const u=parseInt(a.headers.get(Dn.LastConsumerSeqHdr),10),d=this.info.ordered_consumer_sequence;return this.info.flow_control.heartbeat_count++,u!==d.delivery_seq&&this._resetOrderedConsumer(d.stream_seq+1),!1}_checkOrderedConsumer(a){const o=this.info.ordered_consumer_sequence,u=a.info.streamSequence,d=a.info.deliverySequence;return d!=o.delivery_seq+1?(this._resetOrderedConsumer(o.stream_seq+1),!1):(o.delivery_seq=d,o.stream_seq=u,!0)}async destroy(){this.isClosed()||await this.drain();const a=this.sub.info,o=a.config.durable_name||a.name,u=`${a.api.prefix}.CONSUMER.DELETE.${a.stream}.${o}`;await a.api._request(u)}async consumerInfo(){const a=this.sub.info,o=a.config.durable_name||a.name,u=`${a.api.prefix}.CONSUMER.INFO.${a.stream}.${o}`,d=await a.api._request(u);return a.last=d,d}}class CO extends RS{constructor(s,a,o){super(s,a,o)}pull(s={batch:1}){const{stream:a,config:o,name:u}=this.sub.info,d=o.durable_name??u,p={};if(p.batch=s.batch||1,p.no_wait=s.no_wait||!1,(s.max_bytes??0)>0){const x=this.js.nc.features.get(nt.JS_PULL_MAX_BYTES);if(!x.ok)throw new Error(`max_bytes is only supported on servers ${x.min} or better`);p.max_bytes=s.max_bytes}let m=0;s.expires&&s.expires>0&&(m=s.expires,p.expires=St(m));let g=0;if(s.idle_heartbeat&&s.idle_heartbeat>0&&(g=s.idle_heartbeat,p.idle_heartbeat=St(g)),g&&m===0)throw new Error("idle_heartbeat requires expires");if(g>m)throw new Error("expires must be greater than idle_heartbeat");if(this.info){this.monitor&&this.monitor.cancel(),m&&g&&(this.monitor?this.monitor._change(g,m):this._setupHbMonitoring(g,m));const x=this.info.api,S=`${x.prefix}.CONSUMER.MSG.NEXT.${a}.${d}`,E=this.sub.subject;x.nc.publish(S,x.jc.encode(p),{reply:E})}}}function OO(r,s){return r?RO(s):jO(s)}function jO(r){return(s,a)=>s?[s,null]:(s=bl(a),s?[s,null]:[null,wu(a,r)])}function RO(r){return(s,a)=>{if(s)return[s,null];const o=bl(a);return o!==null?[MS(o),null]:[null,wu(a,r)]}}function MS(r){if(r!==null)switch(r.code){case ue.JetStream404NoMessages:case ue.JetStream408RequestTimeout:return null;case ue.JetStream409:return KT(r)?r:null;default:return r}return null}function MO(r){r&&r.ack()}function kO(r){const s=r.split(".");if(s.length===9&&s.splice(2,0,"_",""),s.length<11||s[0]!=="$JS"||s[1]!=="ACK")throw new Error("not js message");const a={};return a.domain=s[2]==="_"?"":s[2],a.account_hash=s[3],a.stream=s[4],a.consumer=s[5],a.deliveryCount=parseInt(s[6],10),a.redeliveryCount=a.deliveryCount,a.redelivered=a.deliveryCount>1,a.streamSequence=parseInt(s[7],10),a.deliverySequence=parseInt(s[8],10),a.timestampNanos=parseInt(s[9],10),a.pending=parseInt(s[10],10),a}class VO{constructor(s,a){w(this,"msg");w(this,"di");w(this,"didAck");w(this,"timeout");this.msg=s,this.didAck=!1,this.timeout=a}get subject(){return this.msg.subject}get sid(){return this.msg.sid}get data(){return this.msg.data}get headers(){return this.msg.headers}get info(){return this.di||(this.di=kO(this.reply)),this.di}get redelivered(){return this.info.deliveryCount>1}get reply(){return this.msg.reply||""}get seq(){return this.info.streamSequence}doAck(s){this.didAck||(this.didAck=!this.isWIP(s),this.msg.respond(s))}isWIP(s){return s.length===4&&s[0]===ou[0]&&s[1]===ou[1]&&s[2]===ou[2]&&s[3]===ou[3]}async ackAck(s){var o;s=s||{},s.timeout=s.timeout||this.timeout;const a=_t();if(this.didAck)a.resolve(!1);else if(this.didAck=!0,this.msg.reply){const d=this.msg.publisher,p=!((o=d.options)!=null&&o.noAsyncTraces),m=new ES(d.muxSubscriptions,this.msg.reply,{timeout:s.timeout},p);d.request(m);try{d.publish(this.msg.reply,Aw,{reply:`${d.muxSubscriptions.baseInbox}${m.token}`})}catch(g){m.cancel(g)}try{await Promise.race([m.timer,m.deferred]),a.resolve(!0)}catch(g){m.cancel(g),a.reject(g)}}else a.resolve(!1);return a}ack(){this.doAck(Aw)}nak(s){let a=pO;s&&(a=O0().encode(`-NAK ${JSON.stringify({delay:St(s)})}`)),this.doAck(a)}working(){this.doAck(ou)}next(s,a={batch:1}){const o={};o.batch=a.batch||1,o.no_wait=a.no_wait||!1,a.expires&&a.expires>0&&(o.expires=St(a.expires));const u=Bs().encode(o),d=Nl.concat(bO,gO,u),p=s?{reply:s}:void 0;this.msg.respond(d,p)}term(s=""){let a=yO;(s==null?void 0:s.length)>0&&(a=O0().encode(`+TERM ${s}`)),this.doAck(a)}json(){return this.msg.json()}string(){return this.msg.string()}}const UO="1.30.3",zO="nats.ws";class BO{constructor(){w(this,"version");w(this,"lang");w(this,"closeError");w(this,"connected");w(this,"done");w(this,"socket");w(this,"options");w(this,"socketClosed");w(this,"encrypted");w(this,"peeked");w(this,"yields");w(this,"signal");w(this,"closedNotification");this.version=UO,this.lang=zO,this.connected=!1,this.done=!1,this.socketClosed=!1,this.encrypted=!1,this.peeked=!1,this.yields=[],this.signal=_t(),this.closedNotification=_t()}async connect(s,a){const o=_t();if(a.tls)return o.reject(new xe("tls",ue.InvalidOption)),o;this.options=a;const u=s.src;if(a.wsFactory){const{socket:d,encrypted:p}=await a.wsFactory(s.src,a);this.socket=d,this.encrypted=p}else this.encrypted=u.indexOf("wss://")===0,this.socket=new WebSocket(u);return this.socket.binaryType="arraybuffer",this.socket.onopen=()=>{this.isDiscarded()},this.socket.onmessage=d=>{if(this.isDiscarded())return;if(this.yields.push(new Uint8Array(d.data)),this.peeked){this.signal.resolve();return}const p=Nl.concat(...this.yields),m=wC(p);if(m!==""){const g=ZC.exec(m);if(!g){a.debug&&console.error("!!!",Yd(p)),o.reject(new Error("unexpected response from server"));return}try{const x=JSON.parse(g[1]);QC(x,this.options),this.peeked=!0,this.connected=!0,this.signal.resolve(),o.resolve()}catch(x){o.reject(x);return}}},this.socket.onclose=d=>{if(this.isDiscarded())return;this.socketClosed=!0;let p;this.done||(d.wasClean||(p=new Error(d.reason)),this._closed(p))},this.socket.onerror=d=>{if(this.isDiscarded())return;const p=d,m=new xe(p.message,ue.Unknown,new Error(p.error));o.reject(m)},o}disconnect(){this._closed(void 0,!0)}async _closed(s,a=!0){if(!this.isDiscarded()&&this.connected&&!this.done){if(this.closeError=s,!s)for(;!this.socketClosed&&this.socket.bufferedAmount>0;)await El(100);this.done=!0;try{this.socket.close(s?1002:1e3,s?s.message:void 0)}catch{}a&&this.closedNotification.resolve(s)}}get isClosed(){return this.done}[Symbol.asyncIterator](){return this.iterate()}async*iterate(){for(;;){if(this.isDiscarded())return;this.yields.length===0&&await this.signal;const s=this.yields;this.yields=[];for(let a=0;a<s.length;a++)this.options.debug&&console.info(`> ${Yd(s[a])}`),yield s[a];if(this.done)break;this.yields.length===0&&(s.length=0,this.yields=s,this.signal=_t())}}isEncrypted(){return this.connected&&this.encrypted}send(s){if(!this.isDiscarded())try{this.socket.send(s.buffer),this.options.debug&&console.info(`< ${Yd(s)}`);return}catch(a){this.options.debug&&console.error(`!!! ${Yd(s)}: ${a}`)}}close(s){return this._closed(s,!1)}closed(){return this.closedNotification}isDiscarded(){return this.done?(this.discard(),!0):!1}discard(){var s;this.done=!0;try{(s=this.socket)==null||s.close()}catch{}}}function qO(r,s){/^(.*:\/\/)(.*)/.test(r)||(typeof s=="boolean"?r=`${s===!0?"https":"http"}://${r}`:r=`https://${r}`);let o=new URL(r);const u=o.protocol.toLowerCase();u==="ws:"&&(s=!1),u==="wss:"&&(s=!0),u!=="https:"&&u!=="http"&&(r=r.replace(/^(.*:\/\/)(.*)/gm,"$2"),o=new URL(`http://${r}`));let d,p;const m=o.hostname,g=o.pathname,x=o.search||"";switch(u){case"http:":case"ws:":case"nats:":p=o.port||"80",d="ws:";break;case"https:":case"wss:":case"tls:":p=o.port||"443",d="wss:";break;default:p=o.port||s===!0?"443":"80",d=s===!0?"wss:":"ws:";break}return`${d}//${m}:${p}${g}${x}`}function LO(r={}){return gC({defaultPort:443,urlParseFn:qO,factory:()=>new BO}),uy.connect(r)}const PO=null,HO=null,$O="lt.events";function kS(r,s){const a=r.split("."),o=s.split(".");for(let u=0;u<o.length;u++){const d=o[u];if(d===">")return!0;if(u>=a.length||d!=="*"&&d!==a[u])return!1}return a.length===o.length}const Du=R.createContext({connected:!1,subscribe:()=>()=>{}});function IO(){const{connected:r}=R.useContext(Du);return{connected:r}}function FO(r,s){const{subscribe:a}=R.useContext(Du),o=R.useRef(s);o.current=s,R.useEffect(()=>a(r,d=>o.current(d)),[a,r])}const YO=R.createContext({connected:!1,subscribe:()=>()=>{}}),GO=O0();function JO({children:r,url:s,token:a}){const o=R.useRef(null),u=R.useRef(null),[d,p]=R.useState(!1),m=R.useRef(null),g=R.useRef(new Map),x=R.useCallback((D,q)=>{const k=g.current;return k.has(D)||k.set(D,new Set),k.get(D).add(q),()=>{const L=k.get(D);L&&(L.delete(q),L.size===0&&k.delete(D))}},[]),S=R.useCallback((D,q)=>{for(const[k,L]of g.current)if(kS(D,k))for(const I of L)try{I(q)}catch{}},[]),E=R.useCallback(async()=>{try{if(o.current)return;const D=s||PO;if(!D){console.error("[lt-nats] no NATS WebSocket URL configured — set NATS_WS_URL on the server");return}const q=await LO({servers:D,token:a||HO||void 0,reconnect:!0,maxReconnectAttempts:-1,reconnectTimeWait:2e3});o.current=q,p(!0);const k=q.subscribe("lt.>");u.current=k,(async()=>{for await(const L of k)try{const I=JSON.parse(GO.decode(L.data));S(L.subject,I)}catch{}})(),(async()=>{for await(const L of q.status())L.type==="disconnect"||L.type==="error"?p(!1):L.type==="reconnect"&&p(!0)})()}catch{p(!1),m.current=setTimeout(E,3e3)}},[S]);return R.useEffect(()=>(E(),()=>{m.current&&clearTimeout(m.current),u.current&&u.current.unsubscribe(),o.current&&(o.current.close().catch(()=>{}),o.current=null),p(!1)}),[E]),b.jsxDEV(YO.Provider,{value:{connected:d,subscribe:x},children:b.jsxDEV(Du.Provider,{value:{connected:d,subscribe:x},children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useNats.tsx",lineNumber:206,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/hooks/useNats.tsx",lineNumber:205,columnNumber:5},this)}const _a=Object.create(null);_a.open="0";_a.close="1";_a.ping="2";_a.pong="3";_a.message="4";_a.upgrade="5";_a.noop="6";const sh=Object.create(null);Object.keys(_a).forEach(r=>{sh[_a[r]]=r});const I0={type:"error",data:"parser error"},VS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",US=typeof ArrayBuffer=="function",zS=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,fy=({type:r,data:s},a,o)=>VS&&s instanceof Blob?a?o(s):Tw(s,o):US&&(s instanceof ArrayBuffer||zS(s))?a?o(s):Tw(new Blob([s]),o):o(_a[r]+(s||"")),Tw=(r,s)=>{const a=new FileReader;return a.onload=function(){const o=a.result.split(",")[1];s("b"+(o||""))},a.readAsDataURL(r)};function Cw(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let g0;function QO(r,s){if(VS&&r.data instanceof Blob)return r.data.arrayBuffer().then(Cw).then(s);if(US&&(r.data instanceof ArrayBuffer||zS(r.data)))return s(Cw(r.data));fy(r,!1,a=>{g0||(g0=new TextEncoder),s(g0.encode(a))})}const Ow="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<Ow.length;r++)mu[Ow.charCodeAt(r)]=r;const XO=r=>{let s=r.length*.75,a=r.length,o,u=0,d,p,m,g;r[r.length-1]==="="&&(s--,r[r.length-2]==="="&&s--);const x=new ArrayBuffer(s),S=new Uint8Array(x);for(o=0;o<a;o+=4)d=mu[r.charCodeAt(o)],p=mu[r.charCodeAt(o+1)],m=mu[r.charCodeAt(o+2)],g=mu[r.charCodeAt(o+3)],S[u++]=d<<2|p>>4,S[u++]=(p&15)<<4|m>>2,S[u++]=(m&3)<<6|g&63;return x},ZO=typeof ArrayBuffer=="function",dy=(r,s)=>{if(typeof r!="string")return{type:"message",data:BS(r,s)};const a=r.charAt(0);return a==="b"?{type:"message",data:KO(r.substring(1),s)}:sh[a]?r.length>1?{type:sh[a],data:r.substring(1)}:{type:sh[a]}:I0},KO=(r,s)=>{if(ZO){const a=XO(r);return BS(a,s)}else return{base64:!0,data:r}},BS=(r,s)=>{switch(s){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}},qS="",WO=(r,s)=>{const a=r.length,o=new Array(a);let u=0;r.forEach((d,p)=>{fy(d,!1,m=>{o[p]=m,++u===a&&s(o.join(qS))})})},e5=(r,s)=>{const a=r.split(qS),o=[];for(let u=0;u<a.length;u++){const d=dy(a[u],s);if(o.push(d),d.type==="error")break}return o};function t5(){return new TransformStream({transform(r,s){QO(r,a=>{const o=a.length;let u;if(o<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,o);else if(o<65536){u=new Uint8Array(3);const d=new DataView(u.buffer);d.setUint8(0,126),d.setUint16(1,o)}else{u=new Uint8Array(9);const d=new DataView(u.buffer);d.setUint8(0,127),d.setBigUint64(1,BigInt(o))}r.data&&typeof r.data!="string"&&(u[0]|=128),s.enqueue(u),s.enqueue(a)})}})}let v0;function Xd(r){return r.reduce((s,a)=>s+a.length,0)}function Zd(r,s){if(r[0].length===s)return r.shift();const a=new Uint8Array(s);let o=0;for(let u=0;u<s;u++)a[u]=r[0][o++],o===r[0].length&&(r.shift(),o=0);return r.length&&o<r[0].length&&(r[0]=r[0].slice(o)),a}function n5(r,s){v0||(v0=new TextDecoder);const a=[];let o=0,u=-1,d=!1;return new TransformStream({transform(p,m){for(a.push(p);;){if(o===0){if(Xd(a)<1)break;const g=Zd(a,1);d=(g[0]&128)===128,u=g[0]&127,u<126?o=3:u===126?o=1:o=2}else if(o===1){if(Xd(a)<2)break;const g=Zd(a,2);u=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),o=3}else if(o===2){if(Xd(a)<8)break;const g=Zd(a,8),x=new DataView(g.buffer,g.byteOffset,g.length),S=x.getUint32(0);if(S>Math.pow(2,21)-1){m.enqueue(I0);break}u=S*Math.pow(2,32)+x.getUint32(4),o=3}else{if(Xd(a)<u)break;const g=Zd(a,u);m.enqueue(dy(d?g:v0.decode(g),s)),o=0}if(u===0||u>r){m.enqueue(I0);break}}}})}const LS=4;function Ft(r){if(r)return s5(r)}function s5(r){for(var s in Ft.prototype)r[s]=Ft.prototype[s];return r}Ft.prototype.on=Ft.prototype.addEventListener=function(r,s){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(s),this};Ft.prototype.once=function(r,s){function a(){this.off(r,a),s.apply(this,arguments)}return a.fn=s,this.on(r,a),this};Ft.prototype.off=Ft.prototype.removeListener=Ft.prototype.removeAllListeners=Ft.prototype.removeEventListener=function(r,s){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+r];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var o,u=0;u<a.length;u++)if(o=a[u],o===s||o.fn===s){a.splice(u,1);break}return a.length===0&&delete this._callbacks["$"+r],this};Ft.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var s=new Array(arguments.length-1),a=this._callbacks["$"+r],o=1;o<arguments.length;o++)s[o-1]=arguments[o];if(a){a=a.slice(0);for(var o=0,u=a.length;o<u;++o)a[o].apply(this,s)}return this};Ft.prototype.emitReserved=Ft.prototype.emit;Ft.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};Ft.prototype.hasListeners=function(r){return!!this.listeners(r).length};const Sh=typeof Promise=="function"&&typeof Promise.resolve=="function"?s=>Promise.resolve().then(s):(s,a)=>a(s,0),xs=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),a5="arraybuffer";function PS(r,...s){return s.reduce((a,o)=>(r.hasOwnProperty(o)&&(a[o]=r[o]),a),{})}const r5=xs.setTimeout,i5=xs.clearTimeout;function _h(r,s){s.useNativeTimers?(r.setTimeoutFn=r5.bind(xs),r.clearTimeoutFn=i5.bind(xs)):(r.setTimeoutFn=xs.setTimeout.bind(xs),r.clearTimeoutFn=xs.clearTimeout.bind(xs))}const o5=1.33;function l5(r){return typeof r=="string"?c5(r):Math.ceil((r.byteLength||r.size)*o5)}function c5(r){let s=0,a=0;for(let o=0,u=r.length;o<u;o++)s=r.charCodeAt(o),s<128?a+=1:s<2048?a+=2:s<55296||s>=57344?a+=3:(o++,a+=4);return a}function HS(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function u5(r){let s="";for(let a in r)r.hasOwnProperty(a)&&(s.length&&(s+="&"),s+=encodeURIComponent(a)+"="+encodeURIComponent(r[a]));return s}function f5(r){let s={},a=r.split("&");for(let o=0,u=a.length;o<u;o++){let d=a[o].split("=");s[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return s}class d5 extends Error{constructor(s,a,o){super(s),this.description=a,this.context=o,this.type="TransportError"}}class hy extends Ft{constructor(s){super(),this.writable=!1,_h(this,s),this.opts=s,this.query=s.query,this.socket=s.socket,this.supportsBinary=!s.forceBase64}onError(s,a,o){return super.emitReserved("error",new d5(s,a,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(s){this.readyState==="open"&&this.write(s)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(s){const a=dy(s,this.socket.binaryType);this.onPacket(a)}onPacket(s){super.emitReserved("packet",s)}onClose(s){this.readyState="closed",super.emitReserved("close",s)}pause(s){}createUri(s,a={}){return s+"://"+this._hostname()+this._port()+this.opts.path+this._query(a)}_hostname(){const s=this.opts.hostname;return s.indexOf(":")===-1?s:"["+s+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(s){const a=u5(s);return a.length?"?"+a:""}}class h5 extends hy{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(s){this.readyState="pausing";const a=()=>{this.readyState="paused",s()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||a()})),this.writable||(o++,this.once("drain",function(){--o||a()}))}else a()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(s){const a=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};e5(s,this.socket.binaryType).forEach(a),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const s=()=>{this.write([{type:"close"}])};this.readyState==="open"?s():this.once("open",s)}write(s){this.writable=!1,WO(s,a=>{this.doWrite(a,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const s=this.opts.secure?"https":"http",a=this.query||{};return this.opts.timestampRequests!==!1&&(a[this.opts.timestampParam]=HS()),!this.supportsBinary&&!a.sid&&(a.b64=1),this.createUri(s,a)}}let $S=!1;try{$S=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const m5=$S;function p5(){}class b5 extends h5{constructor(s){if(super(s),typeof location<"u"){const a=location.protocol==="https:";let o=location.port;o||(o=a?"443":"80"),this.xd=typeof location<"u"&&s.hostname!==location.hostname||o!==s.port}}doWrite(s,a){const o=this.request({method:"POST",data:s});o.on("success",a),o.on("error",(u,d)=>{this.onError("xhr post error",u,d)})}doPoll(){const s=this.request();s.on("data",this.onData.bind(this)),s.on("error",(a,o)=>{this.onError("xhr poll error",a,o)}),this.pollXhr=s}}class Sa extends Ft{constructor(s,a,o){super(),this.createRequest=s,_h(this,o),this._opts=o,this._method=o.method||"GET",this._uri=a,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var s;const a=PS(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");a.xdomain=!!this._opts.xd;const o=this._xhr=this.createRequest(a);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&o.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(s=this._opts.cookieJar)===null||s===void 0||s.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var u;o.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Sa.requestsCount++,Sa.requests[this._index]=this)}_onError(s){this.emitReserved("error",s,this._xhr),this._cleanup(!0)}_cleanup(s){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=p5,s)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Sa.requests[this._index],this._xhr=null}}_onLoad(){const s=this._xhr.responseText;s!==null&&(this.emitReserved("data",s),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Sa.requestsCount=0;Sa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",jw);else if(typeof addEventListener=="function"){const r="onpagehide"in xs?"pagehide":"unload";addEventListener(r,jw,!1)}}function jw(){for(let r in Sa.requests)Sa.requests.hasOwnProperty(r)&&Sa.requests[r].abort()}const y5=(function(){const r=IS({xdomain:!1});return r&&r.responseType!==null})();class g5 extends b5{constructor(s){super(s);const a=s&&s.forceBase64;this.supportsBinary=y5&&!a}request(s={}){return Object.assign(s,{xd:this.xd},this.opts),new Sa(IS,this.uri(),s)}}function IS(r){const s=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!s||m5))return new XMLHttpRequest}catch{}if(!s)try{return new xs[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const FS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class v5 extends hy{get name(){return"websocket"}doOpen(){const s=this.uri(),a=this.opts.protocols,o=FS?{}:PS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(s,a,o)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=s=>this.onClose({description:"websocket connection closed",context:s}),this.ws.onmessage=s=>this.onData(s.data),this.ws.onerror=s=>this.onError("websocket error",s)}write(s){this.writable=!1;for(let a=0;a<s.length;a++){const o=s[a],u=a===s.length-1;fy(o,this.supportsBinary,d=>{try{this.doWrite(o,d)}catch{}u&&Sh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const s=this.opts.secure?"wss":"ws",a=this.query||{};return this.opts.timestampRequests&&(a[this.opts.timestampParam]=HS()),this.supportsBinary||(a.b64=1),this.createUri(s,a)}}const x0=xs.WebSocket||xs.MozWebSocket;class x5 extends v5{createSocket(s,a,o){return FS?new x0(s,a,o):a?new x0(s,a):new x0(s)}doWrite(s,a){this.ws.send(a)}}class N5 extends hy{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(s){return this.emitReserved("error",s)}this._transport.closed.then(()=>{this.onClose()}).catch(s=>{this.onError("webtransport error",s)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(s=>{const a=n5(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=s.readable.pipeThrough(a).getReader(),u=t5();u.readable.pipeTo(s.writable),this._writer=u.writable.getWriter();const d=()=>{o.read().then(({done:m,value:g})=>{m||(this.onPacket(g),d())}).catch(m=>{})};d();const p={type:"open"};this.query.sid&&(p.data=`{"sid":"${this.query.sid}"}`),this._writer.write(p).then(()=>this.onOpen())})})}write(s){this.writable=!1;for(let a=0;a<s.length;a++){const o=s[a],u=a===s.length-1;this._writer.write(o).then(()=>{u&&Sh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var s;(s=this._transport)===null||s===void 0||s.close()}}const E5={websocket:x5,webtransport:N5,polling:g5},w5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,S5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function F0(r){if(r.length>8e3)throw"URI too long";const s=r,a=r.indexOf("["),o=r.indexOf("]");a!=-1&&o!=-1&&(r=r.substring(0,a)+r.substring(a,o).replace(/:/g,";")+r.substring(o,r.length));let u=w5.exec(r||""),d={},p=14;for(;p--;)d[S5[p]]=u[p]||"";return a!=-1&&o!=-1&&(d.source=s,d.host=d.host.substring(1,d.host.length-1).replace(/;/g,":"),d.authority=d.authority.replace("[","").replace("]","").replace(/;/g,":"),d.ipv6uri=!0),d.pathNames=_5(d,d.path),d.queryKey=A5(d,d.query),d}function _5(r,s){const a=/\/{2,9}/g,o=s.replace(a,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&o.splice(0,1),s.slice(-1)=="/"&&o.splice(o.length-1,1),o}function A5(r,s){const a={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,u,d){u&&(a[u]=d)}),a}const Y0=typeof addEventListener=="function"&&typeof removeEventListener=="function",ah=[];Y0&&addEventListener("offline",()=>{ah.forEach(r=>r())},!1);class ri extends Ft{constructor(s,a){if(super(),this.binaryType=a5,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,s&&typeof s=="object"&&(a=s,s=null),s){const o=F0(s);a.hostname=o.host,a.secure=o.protocol==="https"||o.protocol==="wss",a.port=o.port,o.query&&(a.query=o.query)}else a.host&&(a.hostname=F0(a.host).host);_h(this,a),this.secure=a.secure!=null?a.secure:typeof location<"u"&&location.protocol==="https:",a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.hostname=a.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=a.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},a.transports.forEach(o=>{const u=o.prototype.name;this.transports.push(u),this._transportsByName[u]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},a),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=f5(this.opts.query)),Y0&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ah.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(s){const a=Object.assign({},this.opts.query);a.EIO=LS,a.transport=s,this.id&&(a.sid=this.id);const o=Object.assign({},this.opts,{query:a,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[s]);return new this._transportsByName[s](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const s=this.opts.rememberUpgrade&&ri.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const a=this.createTransport(s);a.open(),this.setTransport(a)}setTransport(s){this.transport&&this.transport.removeAllListeners(),this.transport=s,s.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",a=>this._onClose("transport close",a))}onOpen(){this.readyState="open",ri.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",s),this.emitReserved("heartbeat"),s.type){case"open":this.onHandshake(JSON.parse(s.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const a=new Error("server error");a.code=s.data,this._onError(a);break;case"message":this.emitReserved("data",s.data),this.emitReserved("message",s.data);break}}onHandshake(s){this.emitReserved("handshake",s),this.id=s.sid,this.transport.query.sid=s.sid,this._pingInterval=s.pingInterval,this._pingTimeout=s.pingTimeout,this._maxPayload=s.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const s=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+s,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},s),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const s=this._getWritablePackets();this.transport.send(s),this._prevBufferLen=s.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let a=1;for(let o=0;o<this.writeBuffer.length;o++){const u=this.writeBuffer[o].data;if(u&&(a+=l5(u)),o>0&&a>this._maxPayload)return this.writeBuffer.slice(0,o);a+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const s=Date.now()>this._pingTimeoutTime;return s&&(this._pingTimeoutTime=0,Sh(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),s}write(s,a,o){return this._sendPacket("message",s,a,o),this}send(s,a,o){return this._sendPacket("message",s,a,o),this}_sendPacket(s,a,o,u){if(typeof a=="function"&&(u=a,a=void 0),typeof o=="function"&&(u=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;const d={type:s,data:a,options:o};this.emitReserved("packetCreate",d),this.writeBuffer.push(d),u&&this.once("flush",u),this.flush()}close(){const s=()=>{this._onClose("forced close"),this.transport.close()},a=()=>{this.off("upgrade",a),this.off("upgradeError",a),s()},o=()=>{this.once("upgrade",a),this.once("upgradeError",a)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():s()}):this.upgrading?o():s()),this}_onError(s){if(ri.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",s),this._onClose("transport error",s)}_onClose(s,a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Y0&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const o=ah.indexOf(this._offlineEventListener);o!==-1&&ah.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",s,a),this.writeBuffer=[],this._prevBufferLen=0}}}ri.protocol=LS;class D5 extends ri{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let s=0;s<this._upgrades.length;s++)this._probe(this._upgrades[s])}_probe(s){let a=this.createTransport(s),o=!1;ri.priorWebsocketSuccess=!1;const u=()=>{o||(a.send([{type:"ping",data:"probe"}]),a.once("packet",E=>{if(!o)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",a),!a)return;ri.priorWebsocketSuccess=a.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(S(),this.setTransport(a),a.send([{type:"upgrade"}]),this.emitReserved("upgrade",a),a=null,this.upgrading=!1,this.flush())})}else{const D=new Error("probe error");D.transport=a.name,this.emitReserved("upgradeError",D)}}))};function d(){o||(o=!0,S(),a.close(),a=null)}const p=E=>{const D=new Error("probe error: "+E);D.transport=a.name,d(),this.emitReserved("upgradeError",D)};function m(){p("transport closed")}function g(){p("socket closed")}function x(E){a&&E.name!==a.name&&d()}const S=()=>{a.removeListener("open",u),a.removeListener("error",p),a.removeListener("close",m),this.off("close",g),this.off("upgrading",x)};a.once("open",u),a.once("error",p),a.once("close",m),this.once("close",g),this.once("upgrading",x),this._upgrades.indexOf("webtransport")!==-1&&s!=="webtransport"?this.setTimeoutFn(()=>{o||a.open()},200):a.open()}onHandshake(s){this._upgrades=this._filterUpgrades(s.upgrades),super.onHandshake(s)}_filterUpgrades(s){const a=[];for(let o=0;o<s.length;o++)~this.transports.indexOf(s[o])&&a.push(s[o]);return a}}let T5=class extends D5{constructor(s,a={}){const o=typeof s=="object"?s:a;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(u=>E5[u]).filter(u=>!!u)),super(s,o)}};function C5(r,s="",a){let o=r;a=a||typeof location<"u"&&location,r==null&&(r=a.protocol+"//"+a.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=a.protocol+r:r=a.host+r),/^(https?|wss?):\/\//.test(r)||(typeof a<"u"?r=a.protocol+"//"+r:r="https://"+r),o=F0(r)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const d=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+d+":"+o.port+s,o.href=o.protocol+"://"+d+(a&&a.port===o.port?"":":"+o.port),o}const O5=typeof ArrayBuffer=="function",j5=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,YS=Object.prototype.toString,R5=typeof Blob=="function"||typeof Blob<"u"&&YS.call(Blob)==="[object BlobConstructor]",M5=typeof File=="function"||typeof File<"u"&&YS.call(File)==="[object FileConstructor]";function my(r){return O5&&(r instanceof ArrayBuffer||j5(r))||R5&&r instanceof Blob||M5&&r instanceof File}function rh(r,s){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let a=0,o=r.length;a<o;a++)if(rh(r[a]))return!0;return!1}if(my(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return rh(r.toJSON(),!0);for(const a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&rh(r[a]))return!0;return!1}function k5(r){const s=[],a=r.data,o=r;return o.data=G0(a,s),o.attachments=s.length,{packet:o,buffers:s}}function G0(r,s){if(!r)return r;if(my(r)){const a={_placeholder:!0,num:s.length};return s.push(r),a}else if(Array.isArray(r)){const a=new Array(r.length);for(let o=0;o<r.length;o++)a[o]=G0(r[o],s);return a}else if(typeof r=="object"&&!(r instanceof Date)){const a={};for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(a[o]=G0(r[o],s));return a}return r}function V5(r,s){return r.data=J0(r.data,s),delete r.attachments,r}function J0(r,s){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<s.length)return s[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let a=0;a<r.length;a++)r[a]=J0(r[a],s);else if(typeof r=="object")for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&(r[a]=J0(r[a],s));return r}var Kd={exports:{}},N0,Rw;function U5(){if(Rw)return N0;Rw=1;var r=1e3,s=r*60,a=s*60,o=a*24,u=o*7,d=o*365.25;N0=function(S,E){E=E||{};var D=typeof S;if(D==="string"&&S.length>0)return p(S);if(D==="number"&&isFinite(S))return E.long?g(S):m(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function p(S){if(S=String(S),!(S.length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(E){var D=parseFloat(E[1]),q=(E[2]||"ms").toLowerCase();switch(q){case"years":case"year":case"yrs":case"yr":case"y":return D*d;case"weeks":case"week":case"w":return D*u;case"days":case"day":case"d":return D*o;case"hours":case"hour":case"hrs":case"hr":case"h":return D*a;case"minutes":case"minute":case"mins":case"min":case"m":return D*s;case"seconds":case"second":case"secs":case"sec":case"s":return D*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return D;default:return}}}}function m(S){var E=Math.abs(S);return E>=o?Math.round(S/o)+"d":E>=a?Math.round(S/a)+"h":E>=s?Math.round(S/s)+"m":E>=r?Math.round(S/r)+"s":S+"ms"}function g(S){var E=Math.abs(S);return E>=o?x(S,E,o,"day"):E>=a?x(S,E,a,"hour"):E>=s?x(S,E,s,"minute"):E>=r?x(S,E,r,"second"):S+" ms"}function x(S,E,D,q){var k=E>=D*1.5;return Math.round(S/D)+" "+q+(k?"s":"")}return N0}var E0,Mw;function z5(){if(Mw)return E0;Mw=1;function r(s){o.debug=o,o.default=o,o.coerce=x,o.disable=m,o.enable=d,o.enabled=g,o.humanize=U5(),o.destroy=S,Object.keys(s).forEach(E=>{o[E]=s[E]}),o.names=[],o.skips=[],o.formatters={};function a(E){let D=0;for(let q=0;q<E.length;q++)D=(D<<5)-D+E.charCodeAt(q),D|=0;return o.colors[Math.abs(D)%o.colors.length]}o.selectColor=a;function o(E){let D,q=null,k,L;function I(...W){if(!I.enabled)return;const te=I,Ne=Number(new Date),le=Ne-(D||Ne);te.diff=le,te.prev=D,te.curr=Ne,D=Ne,W[0]=o.coerce(W[0]),typeof W[0]!="string"&&W.unshift("%O");let V=0;W[0]=W[0].replace(/%([a-zA-Z%])/g,(fe,J)=>{if(fe==="%%")return"%";V++;const Q=o.formatters[J];if(typeof Q=="function"){const H=W[V];fe=Q.call(te,H),W.splice(V,1),V--}return fe}),o.formatArgs.call(te,W),(te.log||o.log).apply(te,W)}return I.namespace=E,I.useColors=o.useColors(),I.color=o.selectColor(E),I.extend=u,I.destroy=o.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>q!==null?q:(k!==o.namespaces&&(k=o.namespaces,L=o.enabled(E)),L),set:W=>{q=W}}),typeof o.init=="function"&&o.init(I),I}function u(E,D){const q=o(this.namespace+(typeof D>"u"?":":D)+E);return q.log=this.log,q}function d(E){o.save(E),o.namespaces=E,o.names=[],o.skips=[];const D=(typeof E=="string"?E:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const q of D)q[0]==="-"?o.skips.push(q.slice(1)):o.names.push(q)}function p(E,D){let q=0,k=0,L=-1,I=0;for(;q<E.length;)if(k<D.length&&(D[k]===E[q]||D[k]==="*"))D[k]==="*"?(L=k,I=q,k++):(q++,k++);else if(L!==-1)k=L+1,I++,q=I;else return!1;for(;k<D.length&&D[k]==="*";)k++;return k===D.length}function m(){const E=[...o.names,...o.skips.map(D=>"-"+D)].join(",");return o.enable(""),E}function g(E){for(const D of o.skips)if(p(E,D))return!1;for(const D of o.names)if(p(E,D))return!0;return!1}function x(E){return E instanceof Error?E.stack||E.message:E}function S(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}return E0=r,E0}var kw;function B5(){return kw||(kw=1,(function(r,s){var a={};s.formatArgs=u,s.save=d,s.load=p,s.useColors=o,s.storage=m(),s.destroy=(()=>{let x=!1;return()=>{x||(x=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let x;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(x=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(x[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function u(x){if(x[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+x[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;const S="color: "+this.color;x.splice(1,0,S,"color: inherit");let E=0,D=0;x[0].replace(/%[a-zA-Z%]/g,q=>{q!=="%%"&&(E++,q==="%c"&&(D=E))}),x.splice(D,0,S)}s.log=console.debug||console.log||(()=>{});function d(x){try{x?s.storage.setItem("debug",x):s.storage.removeItem("debug")}catch{}}function p(){let x;try{x=s.storage.getItem("debug")||s.storage.getItem("DEBUG")}catch{}return!x&&typeof process<"u"&&"env"in process&&(x=a.DEBUG),x}function m(){try{return localStorage}catch{}}r.exports=z5()(s);const{formatters:g}=r.exports;g.j=function(x){try{return JSON.stringify(x)}catch(S){return"[UnexpectedJSONParseError]: "+S.message}}})(Kd,Kd.exports)),Kd.exports}var q5=B5();const L5=W3(q5),Q0=L5("socket.io-parser"),P5=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var et;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(et||(et={}));class H5{constructor(s){this.replacer=s}encode(s){return Q0("encoding packet %j",s),(s.type===et.EVENT||s.type===et.ACK)&&rh(s)?this.encodeAsBinary({type:s.type===et.EVENT?et.BINARY_EVENT:et.BINARY_ACK,nsp:s.nsp,data:s.data,id:s.id}):[this.encodeAsString(s)]}encodeAsString(s){let a=""+s.type;return(s.type===et.BINARY_EVENT||s.type===et.BINARY_ACK)&&(a+=s.attachments+"-"),s.nsp&&s.nsp!=="/"&&(a+=s.nsp+","),s.id!=null&&(a+=s.id),s.data!=null&&(a+=JSON.stringify(s.data,this.replacer)),Q0("encoded %j as %s",s,a),a}encodeAsBinary(s){const a=k5(s),o=this.encodeAsString(a.packet),u=a.buffers;return u.unshift(o),u}}class py extends Ft{constructor(s){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof s=="function"?{reviver:s}:s)}add(s){let a;if(typeof s=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");a=this.decodeString(s);const o=a.type===et.BINARY_EVENT;o||a.type===et.BINARY_ACK?(a.type=o?et.EVENT:et.ACK,this.reconstructor=new $5(a),a.attachments===0&&super.emitReserved("decoded",a)):super.emitReserved("decoded",a)}else if(my(s)||s.base64)if(this.reconstructor)a=this.reconstructor.takeBinaryData(s),a&&(this.reconstructor=null,super.emitReserved("decoded",a));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+s)}decodeString(s){let a=0;const o={type:Number(s.charAt(0))};if(et[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===et.BINARY_EVENT||o.type===et.BINARY_ACK){const d=a+1;for(;s.charAt(++a)!=="-"&&a!=s.length;);const p=s.substring(d,a);if(p!=Number(p)||s.charAt(a)!=="-")throw new Error("Illegal attachments");const m=Number(p);if(!I5(m)||m<0)throw new Error("Illegal attachments");if(m>this.opts.maxAttachments)throw new Error("too many attachments");o.attachments=m}if(s.charAt(a+1)==="/"){const d=a+1;for(;++a&&!(s.charAt(a)===","||a===s.length););o.nsp=s.substring(d,a)}else o.nsp="/";const u=s.charAt(a+1);if(u!==""&&Number(u)==u){const d=a+1;for(;++a;){const p=s.charAt(a);if(p==null||Number(p)!=p){--a;break}if(a===s.length)break}o.id=Number(s.substring(d,a+1))}if(s.charAt(++a)){const d=this.tryParse(s.substr(a));if(py.isPayloadValid(o.type,d))o.data=d;else throw new Error("invalid payload")}return Q0("decoded %s as %j",s,o),o}tryParse(s){try{return JSON.parse(s,this.opts.reviver)}catch{return!1}}static isPayloadValid(s,a){switch(s){case et.CONNECT:return Vw(a);case et.DISCONNECT:return a===void 0;case et.CONNECT_ERROR:return typeof a=="string"||Vw(a);case et.EVENT:case et.BINARY_EVENT:return Array.isArray(a)&&(typeof a[0]=="number"||typeof a[0]=="string"&&P5.indexOf(a[0])===-1);case et.ACK:case et.BINARY_ACK:return Array.isArray(a)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class $5{constructor(s){this.packet=s,this.buffers=[],this.reconPack=s}takeBinaryData(s){if(this.buffers.push(s),this.buffers.length===this.reconPack.attachments){const a=V5(this.reconPack,this.buffers);return this.finishedReconstruction(),a}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const I5=Number.isInteger||function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r};function Vw(r){return Object.prototype.toString.call(r)==="[object Object]"}const F5=Object.freeze(Object.defineProperty({__proto__:null,Decoder:py,Encoder:H5,get PacketType(){return et}},Symbol.toStringTag,{value:"Module"}));function Us(r,s,a){return r.on(s,a),function(){r.off(s,a)}}const Y5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class GS extends Ft{constructor(s,a,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=s,this.nsp=a,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const s=this.io;this.subs=[Us(s,"open",this.onopen.bind(this)),Us(s,"packet",this.onpacket.bind(this)),Us(s,"error",this.onerror.bind(this)),Us(s,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...s){return s.unshift("message"),this.emit.apply(this,s),this}emit(s,...a){var o,u,d;if(Y5.hasOwnProperty(s))throw new Error('"'+s.toString()+'" is a reserved event name');if(a.unshift(s),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(a),this;const p={type:et.EVENT,data:a};if(p.options={},p.options.compress=this.flags.compress!==!1,typeof a[a.length-1]=="function"){const S=this.ids++,E=a.pop();this._registerAckCallback(S,E),p.id=S}const m=(u=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||u===void 0?void 0:u.writable,g=this.connected&&!(!((d=this.io.engine)===null||d===void 0)&&d._hasPingExpired());return this.flags.volatile&&!m||(g?(this.notifyOutgoingListeners(p),this.packet(p)):this.sendBuffer.push(p)),this.flags={},this}_registerAckCallback(s,a){var o;const u=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(u===void 0){this.acks[s]=a;return}const d=this.io.setTimeoutFn(()=>{delete this.acks[s];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===s&&this.sendBuffer.splice(m,1);a.call(this,new Error("operation has timed out"))},u),p=(...m)=>{this.io.clearTimeoutFn(d),a.apply(this,m)};p.withError=!0,this.acks[s]=p}emitWithAck(s,...a){return new Promise((o,u)=>{const d=(p,m)=>p?u(p):o(m);d.withError=!0,a.push(d),this.emit(s,...a)})}_addToQueue(s){let a;typeof s[s.length-1]=="function"&&(a=s.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:s,flags:Object.assign({fromQueue:!0},this.flags)};s.push((u,...d)=>(this._queue[0],u!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),a&&a(u)):(this._queue.shift(),a&&a(null,...d)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(s=!1){if(!this.connected||this._queue.length===0)return;const a=this._queue[0];a.pending&&!s||(a.pending=!0,a.tryCount++,this.flags=a.flags,this.emit.apply(this,a.args))}packet(s){s.nsp=this.nsp,this.io._packet(s)}onopen(){typeof this.auth=="function"?this.auth(s=>{this._sendConnectPacket(s)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(s){this.packet({type:et.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},s):s})}onerror(s){this.connected||this.emitReserved("connect_error",s)}onclose(s,a){this.connected=!1,delete this.id,this.emitReserved("disconnect",s,a),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(s=>{if(!this.sendBuffer.some(o=>String(o.id)===s)){const o=this.acks[s];delete this.acks[s],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(s){if(s.nsp===this.nsp)switch(s.type){case et.CONNECT:s.data&&s.data.sid?this.onconnect(s.data.sid,s.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case et.EVENT:case et.BINARY_EVENT:this.onevent(s);break;case et.ACK:case et.BINARY_ACK:this.onack(s);break;case et.DISCONNECT:this.ondisconnect();break;case et.CONNECT_ERROR:this.destroy();const o=new Error(s.data.message);o.data=s.data.data,this.emitReserved("connect_error",o);break}}onevent(s){const a=s.data||[];s.id!=null&&a.push(this.ack(s.id)),this.connected?this.emitEvent(a):this.receiveBuffer.push(Object.freeze(a))}emitEvent(s){if(this._anyListeners&&this._anyListeners.length){const a=this._anyListeners.slice();for(const o of a)o.apply(this,s)}super.emit.apply(this,s),this._pid&&s.length&&typeof s[s.length-1]=="string"&&(this._lastOffset=s[s.length-1])}ack(s){const a=this;let o=!1;return function(...u){o||(o=!0,a.packet({type:et.ACK,id:s,data:u}))}}onack(s){const a=this.acks[s.id];typeof a=="function"&&(delete this.acks[s.id],a.withError&&s.data.unshift(null),a.apply(this,s.data))}onconnect(s,a){this.id=s,this.recovered=a&&this._pid===a,this._pid=a,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(s=>this.emitEvent(s)),this.receiveBuffer=[],this.sendBuffer.forEach(s=>{this.notifyOutgoingListeners(s),this.packet(s)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(s=>s()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:et.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(s){return this.flags.compress=s,this}get volatile(){return this.flags.volatile=!0,this}timeout(s){return this.flags.timeout=s,this}onAny(s){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(s),this}prependAny(s){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(s),this}offAny(s){if(!this._anyListeners)return this;if(s){const a=this._anyListeners;for(let o=0;o<a.length;o++)if(s===a[o])return a.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(s){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(s),this}prependAnyOutgoing(s){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(s),this}offAnyOutgoing(s){if(!this._anyOutgoingListeners)return this;if(s){const a=this._anyOutgoingListeners;for(let o=0;o<a.length;o++)if(s===a[o])return a.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(s){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const a=this._anyOutgoingListeners.slice();for(const o of a)o.apply(this,s.data)}}}function wl(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}wl.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var s=Math.random(),a=Math.floor(s*this.jitter*r);r=(Math.floor(s*10)&1)==0?r-a:r+a}return Math.min(r,this.max)|0};wl.prototype.reset=function(){this.attempts=0};wl.prototype.setMin=function(r){this.ms=r};wl.prototype.setMax=function(r){this.max=r};wl.prototype.setJitter=function(r){this.jitter=r};class X0 extends Ft{constructor(s,a){var o;super(),this.nsps={},this.subs=[],s&&typeof s=="object"&&(a=s,s=void 0),a=a||{},a.path=a.path||"/socket.io",this.opts=a,_h(this,a),this.reconnection(a.reconnection!==!1),this.reconnectionAttempts(a.reconnectionAttempts||1/0),this.reconnectionDelay(a.reconnectionDelay||1e3),this.reconnectionDelayMax(a.reconnectionDelayMax||5e3),this.randomizationFactor((o=a.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new wl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(a.timeout==null?2e4:a.timeout),this._readyState="closed",this.uri=s;const u=a.parser||F5;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=a.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(s){return arguments.length?(this._reconnection=!!s,s||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(s){return s===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=s,this)}reconnectionDelay(s){var a;return s===void 0?this._reconnectionDelay:(this._reconnectionDelay=s,(a=this.backoff)===null||a===void 0||a.setMin(s),this)}randomizationFactor(s){var a;return s===void 0?this._randomizationFactor:(this._randomizationFactor=s,(a=this.backoff)===null||a===void 0||a.setJitter(s),this)}reconnectionDelayMax(s){var a;return s===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=s,(a=this.backoff)===null||a===void 0||a.setMax(s),this)}timeout(s){return arguments.length?(this._timeout=s,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(s){if(~this._readyState.indexOf("open"))return this;this.engine=new T5(this.uri,this.opts);const a=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const u=Us(a,"open",function(){o.onopen(),s&&s()}),d=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),s?s(m):this.maybeReconnectOnOpen()},p=Us(a,"error",d);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{u(),d(new Error("timeout")),a.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(u),this.subs.push(p),this}connect(s){return this.open(s)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const s=this.engine;this.subs.push(Us(s,"ping",this.onping.bind(this)),Us(s,"data",this.ondata.bind(this)),Us(s,"error",this.onerror.bind(this)),Us(s,"close",this.onclose.bind(this)),Us(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(s){try{this.decoder.add(s)}catch(a){this.onclose("parse error",a)}}ondecoded(s){Sh(()=>{this.emitReserved("packet",s)},this.setTimeoutFn)}onerror(s){this.emitReserved("error",s)}socket(s,a){let o=this.nsps[s];return o?this._autoConnect&&!o.active&&o.connect():(o=new GS(this,s,a),this.nsps[s]=o),o}_destroy(s){const a=Object.keys(this.nsps);for(const o of a)if(this.nsps[o].active)return;this._close()}_packet(s){const a=this.encoder.encode(s);for(let o=0;o<a.length;o++)this.engine.write(a[o],s.options)}cleanup(){this.subs.forEach(s=>s()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(s,a){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",s,a),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const s=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const a=this.backoff.duration();this._reconnecting=!0;const o=this.setTimeoutFn(()=>{s.skipReconnect||(this.emitReserved("reconnect_attempt",s.backoff.attempts),!s.skipReconnect&&s.open(u=>{u?(s._reconnecting=!1,s.reconnect(),this.emitReserved("reconnect_error",u)):s.onreconnect()}))},a);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){const s=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",s)}}const lu={};function ih(r,s){typeof r=="object"&&(s=r,r=void 0),s=s||{};const a=C5(r,s.path||"/socket.io"),o=a.source,u=a.id,d=a.path,p=lu[u]&&d in lu[u].nsps,m=s.forceNew||s["force new connection"]||s.multiplex===!1||p;let g;return m?g=new X0(o,s):(lu[u]||(lu[u]=new X0(o,s)),g=lu[u]),a.query&&!s.query&&(s.query=a.queryKey),g.socket(a.path,s)}Object.assign(ih,{Manager:X0,Socket:GS,io:ih,connect:ih});const G5=R.createContext({connected:!1,subscribe:()=>()=>{}});function J5({children:r}){const s=R.useRef(null),[a,o]=R.useState(!1),u=R.useRef(new Map),d=R.useCallback((m,g)=>{const x=u.current;return x.has(m)||x.set(m,new Set),x.get(m).add(g),()=>{const S=x.get(m);S&&(S.delete(g),S.size===0&&x.delete(m))}},[]),p=R.useCallback((m,g)=>{for(const[x,S]of u.current)if(kS(m,x))for(const E of S)try{E(g)}catch{}},[]);return R.useEffect(()=>{const m=pS(),g=ih({path:`${Kn}/socket.io`,transports:["polling","websocket"],upgrade:!0,reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:2e3,...m?{auth:{token:m}}:{}});return s.current=g,console.log("[lt-socketio] connecting..."),g.on("connect",()=>{console.log("[lt-socketio] connected, id:",g.id),o(!0)}),g.on("disconnect",x=>{console.log("[lt-socketio] disconnected:",x),o(!1)}),g.on("connect_error",x=>{console.warn("[lt-socketio] connect error:",x.message),o(!1)}),g.onAny((x,S)=>{if(x.startsWith("lt."))try{const E=typeof S=="string"?JSON.parse(S):S;p(x,E)}catch{}}),()=>{g.removeAllListeners(),g.disconnect(),s.current=null,o(!1)}},[p]),b.jsxDEV(G5.Provider,{value:{connected:a,subscribe:d},children:b.jsxDEV(Du.Provider,{value:{connected:a,subscribe:d},children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useSocketIO.tsx",lineNumber:167,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/hooks/useSocketIO.tsx",lineNumber:166,columnNumber:5},this)}function Q5({children:r}){const[s,a]=R.useState(null),[o,u]=R.useState({url:null,token:null});return R.useEffect(()=>{let d=!1;async function p(){var m;try{console.log("[lt-transport] detecting event transport...");const g=await fetch(`${Kn}/api/settings`);if(!g.ok){console.warn("[lt-transport] settings fetch failed, falling back to socketio"),d||a("socketio");return}const x=await g.json(),S=(m=x==null?void 0:x.events)==null?void 0:m.transport;if(console.log("[lt-transport] server reports:",S),!d){if(S==="nats"){let E=x.events.natsWsUrl??null,D=null;const q=pS();if(q)try{const k=await fetch(`${Kn}/api/nats-credentials`,{headers:{Authorization:`Bearer ${q}`}});if(k.ok){const L=await k.json();E=L.natsWsUrl??E,D=L.natsToken??null}}catch{console.warn("[lt-transport] failed to fetch NATS credentials")}u({url:E,token:D})}a(S==="nats"?"nats":"socketio")}}catch(g){console.warn("[lt-transport] settings fetch error, falling back to socketio",g),d||a("socketio")}}return p(),()=>{d=!0}},[]),s==="nats"?b.jsxDEV(JO,{url:o.url,token:o.token,children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useEventTransport.tsx",lineNumber:79,columnNumber:12},this):s==="socketio"?b.jsxDEV(J5,{children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useEventTransport.tsx",lineNumber:83,columnNumber:12},this):b.jsxDEV(b.Fragment,{children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useEventTransport.tsx",lineNumber:87,columnNumber:10},this)}function JS(){const{isSuperAdmin:r,hasRoleType:s,hasRole:a}=eo(),o=r||a("engineer"),u=s("admin"),d=r||s("admin");return{isBuilder:o,isOps:u,canBulk:d}}const Z0="lt_ai_override";function X5(){return it("/settings")}function K0(){try{if(localStorage.getItem(Z0)==="off")return!1}catch{}return null}function Ah(){var a;const r=Ns({queryKey:["settings"],queryFn:X5,staleTime:1/0}),s=K0();return r.data&&s===!1&&((a=r.data.ai)!=null&&a.enabled)?{...r,data:{...r.data,ai:{enabled:!1}}}:r}function Z5(){const[r,s]=R.useState(()=>K0()===!1),a=R.useCallback(()=>{const o=K0()===!1;try{o?localStorage.removeItem(Z0):localStorage.setItem(Z0,"off")}catch{}s(!o),window.location.reload()},[]);return{aiOverrideActive:r,toggleAIOverride:a}}const QS=R.createContext(null),Uw="lt_sidebar_collapsed";function K5({children:r}){const[s,a]=R.useState(()=>{try{return localStorage.getItem(Uw)==="true"}catch{return!1}}),o=R.useCallback(()=>{a(u=>{const d=!u;try{localStorage.setItem(Uw,String(d))}catch{}return d})},[]);return b.jsxDEV(QS.Provider,{value:{collapsed:s,toggle:o},children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useSidebar.tsx",lineNumber:40,columnNumber:5},this)}function XS(){const r=R.useContext(QS);if(!r)throw new Error("useSidebar must be used within SidebarProvider");return r}function ZS(r,s){var a,o,u,d,p;s.facets&&Object.keys(s.facets).length&&r.set("facets",JSON.stringify(s.facets)),(a=s.block)!=null&&a.length&&r.set("block",JSON.stringify(s.block)),(o=s.range)!=null&&o.length&&r.set("range",JSON.stringify(s.range)),(u=s.exists)!=null&&u.length&&r.set("exists",JSON.stringify(s.exists)),(d=s.roles)!=null&&d.length&&r.set("roles",JSON.stringify(s.roles)),(p=s.orderBy)!=null&&p.length&&r.set("orderBy",JSON.stringify(s.orderBy)),s.available!==void 0&&r.set("available",String(s.available))}function x6(r){const s=r??"24h";return Ns({queryKey:["stationMetrics",s],queryFn:()=>it(`/escalations/station-metrics?period=${s}`),staleTime:5e3})}function N6(r){const s=r?`?period=${r}`:"";return Ns({queryKey:["escalationStats",r],queryFn:()=>it(`/escalations/stats${s}`)})}function E6(){return Ns({queryKey:["escalationTypes"],queryFn:()=>it("/escalations/types")})}function w6(r=!0){return Ns({queryKey:["escalationFacetKeys"],queryFn:()=>it("/escalations/facet-keys"),enabled:r,staleTime:6e4})}function W5(r){const{enabled:s=!0,staleTime:a,...o}=r,u=new URLSearchParams;return o.status&&u.set("status",o.status),o.role&&u.set("role",o.role),o.type&&u.set("type",o.type),o.subtype&&u.set("subtype",o.subtype),o.assigned_to&&u.set("assigned_to",o.assigned_to),o.claimed&&u.set("claimed","true"),o.priority&&u.set("priority",String(o.priority)),o.limit&&u.set("limit",String(o.limit)),o.offset!==void 0&&u.set("offset",String(o.offset)),o.sort_by&&u.set("sort_by",o.sort_by),o.order&&u.set("order",o.order),o.search&&u.set("search",o.search),ZS(u,o),Ns({queryKey:["escalations",o],queryFn:()=>it(`/escalations?${u}`),enabled:s,...a!==void 0?{staleTime:a}:{}})}function e4(r){const{enabled:s=!0,staleTime:a,...o}=r,u=new URLSearchParams;return o.role&&u.set("role",o.role),o.type&&u.set("type",o.type),o.subtype&&u.set("subtype",o.subtype),o.priority&&u.set("priority",String(o.priority)),o.limit&&u.set("limit",String(o.limit)),o.offset!==void 0&&u.set("offset",String(o.offset)),o.sort_by&&u.set("sort_by",o.sort_by),o.order&&u.set("order",o.order),o.search&&u.set("search",o.search),ZS(u,o),Ns({queryKey:["escalations","available",o],queryFn:()=>it(`/escalations/available?${u}`),enabled:s,...a!==void 0?{staleTime:a}:{}})}function S6(r){return Ns({queryKey:["escalations","by-workflow",r],queryFn:()=>it(`/escalations/by-workflow/${r}`),enabled:!!r})}function _6(r){return Ns({queryKey:["escalations",r],queryFn:()=>it(`/escalations/${r}`),enabled:!!r})}function A6(){const r=ss();return Es({mutationFn:({id:s,durationMinutes:a})=>it(`/escalations/${s}/claim`,{method:"POST",body:JSON.stringify({durationMinutes:a})}),onSuccess:()=>{r.resetQueries({queryKey:["escalations"]}),r.resetQueries({queryKey:["escalationStats"]})}})}function D6(){const r=ss();return Es({mutationFn:s=>it(`/escalations/${s}/release`,{method:"POST"}),onSuccess:()=>{r.resetQueries({queryKey:["escalations"]}),r.resetQueries({queryKey:["escalationStats"]})}})}function T6(){const r=ss();return Es({mutationFn:({id:s,resolverPayload:a})=>it(`/escalations/${s}/resolve`,{method:"POST",body:JSON.stringify({resolverPayload:a})}),onSuccess:()=>{r.resetQueries({queryKey:["escalations"]}),r.resetQueries({queryKey:["escalationStats"]}),r.resetQueries({queryKey:["tasks"]}),r.resetQueries({queryKey:["jobs"]})}})}function C6(){const r=ss();return Es({mutationFn:({id:s,targetRole:a})=>it(`/escalations/${s}/escalate`,{method:"PATCH",body:JSON.stringify({targetRole:a})}),onSuccess:()=>{r.resetQueries({queryKey:["escalations"]}),r.resetQueries({queryKey:["escalationStats"]})}})}function O6(){const r=ss();return Es({mutationFn:({ids:s,priority:a})=>it("/escalations/priority",{method:"PATCH",body:JSON.stringify({ids:s,priority:a})}),onSuccess:()=>{r.invalidateQueries({queryKey:["escalations"],refetchType:"all"}),r.invalidateQueries({queryKey:["escalationStats"],refetchType:"all"})}})}function j6(){const r=ss();return Es({mutationFn:({ids:s,durationMinutes:a})=>it("/escalations/bulk-claim",{method:"POST",body:JSON.stringify({ids:s,durationMinutes:a})}),onSuccess:()=>{r.invalidateQueries({queryKey:["escalations"],refetchType:"all"}),r.invalidateQueries({queryKey:["escalationStats"],refetchType:"all"})}})}function R6(){const r=ss();return Es({mutationFn:({ids:s,targetUserId:a,durationMinutes:o})=>it("/escalations/bulk-assign",{method:"POST",body:JSON.stringify({ids:s,targetUserId:a,durationMinutes:o})}),onSuccess:()=>{r.invalidateQueries({queryKey:["escalations"],refetchType:"all"}),r.invalidateQueries({queryKey:["escalationStats"],refetchType:"all"})}})}function M6(){const r=ss();return Es({mutationFn:({ids:s,targetRole:a})=>it("/escalations/bulk-escalate",{method:"PATCH",body:JSON.stringify({ids:s,targetRole:a})}),onSuccess:()=>{r.invalidateQueries({queryKey:["escalations"],refetchType:"all"}),r.invalidateQueries({queryKey:["escalationStats"],refetchType:"all"})}})}function k6(){const r=ss();return Es({mutationFn:({ids:s,hint:a})=>it("/escalations/bulk-triage",{method:"POST",body:JSON.stringify({ids:s,...a?{hint:a}:{}})}),onSuccess:()=>{r.invalidateQueries({queryKey:["escalations"],refetchType:"all"}),r.invalidateQueries({queryKey:["escalationStats"],refetchType:"all"})}})}function V6(){const r=ss();return Es({mutationFn:s=>it(`/escalations/${s}/cancel`,{method:"POST"}),onSuccess:()=>{r.resetQueries({queryKey:["escalations"]}),r.resetQueries({queryKey:["escalationStats"]})}})}function U6(){const r=ss();return Es({mutationFn:({ids:s})=>it("/escalations/bulk-cancel",{method:"POST",body:JSON.stringify({ids:s})}),onSuccess:()=>{r.invalidateQueries({queryKey:["escalations"],refetchType:"all"}),r.invalidateQueries({queryKey:["escalationStats"],refetchType:"all"})}})}function t4(){const{user:r}=eo(),s=r==null?void 0:r.userId,a=ss(),o=R.useRef(null),u=R.useCallback(()=>{o.current||(o.current=setTimeout(()=>{o.current=null,a.invalidateQueries({queryKey:["escalations"]})},15e3))},[a]);FO(`${$O}.system.escalation.>`,u);const{data:d}=e4({limit:1}),{data:p}=W5({assigned_to:s,status:"pending",limit:1});return{available:(d==null?void 0:d.total)??0,mine:(p==null?void 0:p.total)??0}}function by({size:r="sm",hideLabel:s=!1,className:a=""}){const o=r==="lg",u=o?"w-[16rem] h-[16rem] -rotate-[120deg] opacity-40 -ml-10":"w-[12.5rem] h-[12.5rem] -rotate-[120deg] opacity-40 -ml-8",d=o?"text-[44px] font-normal text-text-primary tracking-[0.15em] -ml-[12.5rem]":"text-[36px] font-normal text-text-primary tracking-[0.15em] -ml-[9.75rem]";return b.jsxDEV("div",{className:`flex items-center ${a}`,style:{height:"50px"},children:[b.jsxDEV("span",{role:"img","aria-label":"LongTail",className:`logo-mark shrink-0 z-0 ${u}`,style:{"--logo-url":`url(${Kn}/logo512.png)`}},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/AppLogo.tsx",lineNumber:35,columnNumber:7},this),b.jsxDEV("span",{className:`z-[1] transition-opacity duration-300 ${d} ${s?"opacity-0":""}`,children:"LongTail"},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/AppLogo.tsx",lineNumber:41,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/AppLogo.tsx",lineNumber:34,columnNumber:5},this)}const KS=["violet","red","green","blue","rose"],zw="blue",n4={violet:"#7B3BE0",red:"#DC382D",green:"#059669",blue:"#1E3A8A",rose:"#D6246E"},Bw={violet:"Violet",red:"Brick",green:"Emerald",blue:"Navy",rose:"Raspberry"},WS="lt.theme";function s4(r){return KS.includes(r)}function e_(){try{const r=localStorage.getItem(WS);return s4(r)?r:zw}catch{return zw}}function t_(r){document.documentElement.dataset.theme=r}function a4(r){try{localStorage.setItem(WS,r)}catch{}t_(r)}function r4({onToggleEventFeed:r,onToggleDocs:s}){const{user:a,logout:o}=eo(),{isBuilder:u,isOps:d}=JS(),{available:p,mine:m}=t4(),{connected:g}=IO(),{toggleAIOverride:x}=Z5(),[S,E]=R.useState(!1),[D,q]=R.useState(e_),k=R.useRef(null),L=I=>{a4(I),q(I)};return R.useEffect(()=>{if(!S)return;const I=W=>{k.current&&!k.current.contains(W.target)&&E(!1)};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[S]),b.jsxDEV("header",{className:"h-14 shrink-0 border-b border-surface-border bg-surface-raised flex items-center justify-between px-5 relative z-30",children:[b.jsxDEV("div",{className:"flex items-center gap-4",children:b.jsxDEV(fl,{to:"/","aria-label":"Home",onClick:I=>{(I.ctrlKey||I.metaKey)&&(I.preventDefault(),x())},children:b.jsxDEV(by,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:51,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:41,columnNumber:9},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:40,columnNumber:7},this),b.jsxDEV("div",{className:"flex items-center gap-5",children:[b.jsxDEV(fl,{to:"/escalations/available",className:`flex items-center gap-1.5 text-[11px] transition-colors ${p>0?"text-status-active hover:text-status-active/80":"text-text-quaternary hover:text-text-secondary"}`,title:"Available escalations",children:[b.jsxDEV(A0,{className:"w-3.5 h-3.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:64,columnNumber:11},this),"available",p>0&&b.jsxDEV("sup",{className:"tabular-nums font-medium text-[0.5em]",children:p},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:65,columnNumber:38},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:57,columnNumber:9},this),b.jsxDEV(fl,{to:"/escalations/queue",className:`flex items-center gap-1.5 text-[11px] transition-colors ${m>0?"text-status-warning hover:text-status-warning/80":"text-text-quaternary hover:text-text-secondary"}`,title:"My escalation queue",children:[b.jsxDEV(A0,{className:"w-3.5 h-3.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:76,columnNumber:11},this),"mine",m>0&&b.jsxDEV("sup",{className:"tabular-nums font-medium text-[0.5em]",children:m},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:77,columnNumber:28},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:69,columnNumber:9},this),(u||d)&&b.jsxDEV(b.Fragment,{children:[b.jsxDEV("div",{className:"w-px h-4 bg-surface-border"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:82,columnNumber:13},this),b.jsxDEV("button",{type:"button",onClick:()=>{g?r==null||r():window.location.reload()},className:`flex items-center gap-1.5 text-[11px] transition-colors ${g?"text-status-success hover:text-status-success/80":"text-text-quaternary hover:text-text-secondary"}`,title:g?"Live events — click to toggle feed":"Events disconnected — click to reconnect",children:[b.jsxDEV(uS,{className:"w-3.5 h-3.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:99,columnNumber:15},this),"events"]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:85,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:81,columnNumber:11},this),u&&b.jsxDEV(b.Fragment,{children:b.jsxDEV("button",{onClick:s,className:"flex items-center gap-1.5 text-[11px] text-text-quaternary hover:text-text-secondary transition-colors",title:"Documentation",children:[b.jsxDEV(fS,{className:"w-3.5 h-3.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:113,columnNumber:15},this),"docs"]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:108,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:106,columnNumber:11},this),b.jsxDEV("div",{className:"w-px h-4 bg-surface-border"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:119,columnNumber:9},this),a&&b.jsxDEV("div",{className:"relative",ref:k,children:[b.jsxDEV("button",{onClick:()=>E(I=>!I),className:"btn-ghost text-xs flex items-center gap-1",children:[b.jsxDEV(rT,{className:"w-3.5 h-3.5 text-accent/75",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:128,columnNumber:15},this),a.displayName||a.username||a.userId,b.jsxDEV("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:131,columnNumber:17},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:130,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:124,columnNumber:13},this),S&&b.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-48 bg-surface-raised border border-surface-border rounded-md shadow-lg py-1 z-50",children:[b.jsxDEV(fl,{to:"/credentials",onClick:()=>E(!1),className:"block px-3 py-2 text-xs text-text-secondary hover:bg-surface-hover",children:"Credentials"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:136,columnNumber:17},this),b.jsxDEV("div",{className:"px-3 py-2 border-t border-surface-border/60",children:[b.jsxDEV("p",{className:"text-[10px] font-medium uppercase tracking-widest text-text-tertiary mb-1.5",children:"Theme"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:144,columnNumber:19},this),b.jsxDEV("div",{className:"flex items-center gap-2",children:KS.map(I=>b.jsxDEV("button",{type:"button",onClick:()=>L(I),title:Bw[I],"aria-label":`${Bw[I]} theme`,className:`w-4 h-4 rounded-full transition-transform hover:scale-110 ${D===I?"ring-2 ring-offset-1 ring-surface-border":""}`,style:{backgroundColor:n4[I]}},I,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:147,columnNumber:23},this))},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:145,columnNumber:19},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:143,columnNumber:17},this),b.jsxDEV("button",{onClick:()=>{E(!1),o()},className:"block w-full text-left px-3 py-2 text-xs text-text-secondary hover:bg-surface-hover",children:"Sign Out"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:161,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:135,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:123,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:55,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Header.tsx",lineNumber:39,columnNumber:5},this)}function yy({open:r,children:s}){const[a,o]=R.useState(r);return R.useEffect(()=>{r&&o(!0)},[r]),b.jsxDEV("div",{className:`grid transition-[grid-template-rows] duration-300 ease-out ${r?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,onTransitionEnd:()=>{r||o(!1)},children:b.jsxDEV("div",{className:"overflow-hidden",children:a?s:null},void 0,!1,{fileName:"/app/dashboard/src/components/common/layout/Collapsible.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/layout/Collapsible.tsx",lineNumber:11,columnNumber:5},this)}function W0(r){return({isActive:s})=>{const a="flex items-center rounded-md transition-colors duration-150",o="bg-surface-hover text-text-primary font-medium",u="text-text-secondary hover:text-text-primary hover:bg-surface-hover";return r?`${a} justify-center w-10 h-10 mx-auto ${s?o:u}`:`${a} gap-3 px-4 py-2 text-sm ${s?o:u}`}}function i4(){return({isActive:r})=>`flex items-center gap-3 pl-11 pr-4 py-1.5 text-xs rounded-md transition-colors duration-150 ${r?"text-text-primary font-medium":"text-text-secondary hover:text-text-primary"}`}function o4({group:r,collapsed:s}){const{pathname:a}=ci(),o=r.matchPaths.some(m=>a.startsWith(m)),[u,d]=R.useState(o),p=u||o;return s?b.jsxDEV(b.Fragment,{children:r.items.map(m=>b.jsxDEV(oh,{to:m.to,className:W0(!0),title:m.label,children:m.icon&&b.jsxDEV(m.icon,{className:"w-5 h-5 shrink-0 text-accent/75",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:70,columnNumber:26},this)},m.to,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:64,columnNumber:11},this))},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:62,columnNumber:7},this):b.jsxDEV("div",{children:[b.jsxDEV("button",{onClick:()=>d(m=>!m),className:"w-full flex items-center justify-between px-4 py-2 text-sm rounded-md transition-colors duration-150 text-text-secondary hover:text-text-primary hover:bg-surface-hover",children:[b.jsxDEV("span",{className:"flex items-center gap-3",children:[r.icon&&b.jsxDEV(r.icon,{className:"w-5 h-5 shrink-0 text-accent/75",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:84,columnNumber:26},this),b.jsxDEV("span",{children:r.label},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:85,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:83,columnNumber:9},this),b.jsxDEV("svg",{className:`w-3.5 h-3.5 text-text-tertiary transition-transform duration-150 ${p?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:94,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:87,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:79,columnNumber:7},this),b.jsxDEV(yy,{open:p,children:r.items.map(m=>b.jsxDEV(oh,{to:m.to,end:m.end,className:i4(),children:[m.icon&&b.jsxDEV(m.icon,{className:"w-4 h-4 shrink-0 text-accent/75",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:100,columnNumber:26},this),b.jsxDEV("span",{children:m.label},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:101,columnNumber:13},this)]},m.to,!0,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:99,columnNumber:11},this))},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:97,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:78,columnNumber:5},this)}function l4(r){return r.kind==="group"}function c4({entry:r,collapsed:s}){const{pathname:a,search:o}=ci();if(r.to.includes("?")){const[d,p]=r.to.split("?"),m=a===d&&o===`?${p}`,g=W0(s)({isActive:m});return b.jsxDEV(oh,{to:r.to,className:g,title:s?r.label:void 0,children:[r.icon&&b.jsxDEV(r.icon,{className:"w-5 h-5 shrink-0 text-accent/75",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:128,columnNumber:24},this),!s&&b.jsxDEV("span",{children:r.label},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:129,columnNumber:24},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:127,columnNumber:7},this)}return b.jsxDEV(oh,{to:r.to,end:r.end,className:W0(s),title:s?r.label:void 0,children:[r.icon&&b.jsxDEV(r.icon,{className:"w-5 h-5 shrink-0 text-accent/75",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:141,columnNumber:22},this),!s&&b.jsxDEV("span",{children:r.label},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:142,columnNumber:22},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:135,columnNumber:5},this)}function ii({heading:r,entries:s}){const{collapsed:a}=XS();return b.jsxDEV("div",{className:"space-y-1",children:[a?b.jsxDEV("div",{className:"h-px bg-surface-border mx-3 my-2",title:r},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:153,columnNumber:9},this):b.jsxDEV("p",{className:"px-4 pt-5 pb-2 text-xs font-semibold uppercase tracking-wider text-accent/80",children:r},void 0,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:155,columnNumber:9},this),s.map(o=>l4(o)?b.jsxDEV(o4,{group:o,collapsed:a},o.label,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:161,columnNumber:11},this):b.jsxDEV(c4,{entry:o,collapsed:a},o.to,!1,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:163,columnNumber:11},this))]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/SidebarNav.tsx",lineNumber:151,columnNumber:5},this)}function u4({aiEnabled:r=!1,isBuilder:s=!1,isOps:a=!1}){if(!s&&!a){const u=[{to:"/escalations/queue",label:"My Queue",icon:A0},{to:"/escalations/available",label:"Available",icon:D0}];return b.jsxDEV(ii,{heading:"Work",entries:u},void 0,!1,{fileName:"/app/dashboard/src/components/layout/ChoreographySidebar.tsx",lineNumber:24,columnNumber:12},this)}if(!s)return b.jsxDEV(ii,{heading:"React",entries:[{to:"/operations",label:"Pace Board",icon:YE}]},void 0,!1,{fileName:"/app/dashboard/src/components/layout/ChoreographySidebar.tsx",lineNumber:29,columnNumber:12},this);const o=[...a||s?[{to:"/operations",label:"Pace Board",icon:YE}]:[],{to:"/topics",label:"Event Topics",icon:uS},{to:"/agents",label:r?"Agents":"Automations",icon:iT},{to:"/capabilities",label:"Capabilities",icon:oT}];return b.jsxDEV(ii,{heading:"React",entries:o},void 0,!1,{fileName:"/app/dashboard/src/components/layout/ChoreographySidebar.tsx",lineNumber:39,columnNumber:10},this)}function f4(){const r=[{kind:"group",label:"Procedural",icon:lT,matchPaths:["/workflows/registry","/workflows/durable/invoke","/workflows/executions","/workflows/durable/executions","/workflows/start","/workflows/workers","/workflows/tasks"],items:[{to:"/workflows/registry",label:"Registry",icon:GE},{to:"/workflows/durable/invoke",label:"Invoke",icon:JE},{to:"/workflows/executions",label:"Executions",icon:D0}]},{kind:"group",label:"Graph",icon:ey,matchPaths:["/mcp/workflows","/mcp/executions"],items:[{to:"/mcp/workflows",label:"Configure",icon:GE,end:!0},{to:"/mcp/workflows/invoke",label:"Invoke",icon:JE},{to:"/mcp/executions",label:"Executions",icon:D0}]}];return b.jsxDEV(ii,{heading:"Orchestrate",entries:r},void 0,!1,{fileName:"/app/dashboard/src/components/layout/OrchestrationSidebar.tsx",lineNumber:46,columnNumber:10},this)}const d4=[{to:"/mcp/queries",label:"Designer",icon:cT},{to:"/mcp/servers",label:"Servers & Tools",icon:uT}];function h4(){return b.jsxDEV(ii,{heading:"Design",entries:d4},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DesignSidebar.tsx",lineNumber:14,columnNumber:10},this)}const m4=[{to:"/files",label:"Files",icon:fT},{to:"/knowledge",label:"Knowledge",icon:dT}];function p4(){return b.jsxDEV(ii,{heading:"Storage",entries:m4},void 0,!1,{fileName:"/app/dashboard/src/components/layout/StorageSidebar.tsx",lineNumber:10,columnNumber:10},this)}function b4({isBuilder:r=!1,isOps:s=!1}){var p;const{data:a}=Ah(),o=((p=a==null?void 0:a.features)==null?void 0:p.dbMaintenance)!==!1,u=[{to:"/admin/users",label:"Accounts",icon:hT},...r||s?[{to:"/admin/roles",label:"Roles",icon:mT}]:[]],d=[{to:"/admin/controlplane",label:"Routers",icon:pT},{to:"/admin/streams",label:"Messages",icon:bT},...o?[{to:"/admin/maintenance",label:"DB Maintenance",icon:yT}]:[]];return b.jsxDEV(b.Fragment,{children:[b.jsxDEV(ii,{heading:"Identity & Access",entries:u},void 0,!1,{fileName:"/app/dashboard/src/components/layout/AdminSidebar.tsx",lineNumber:37,columnNumber:7},this),r&&b.jsxDEV(ii,{heading:"Infrastructure",entries:d},void 0,!1,{fileName:"/app/dashboard/src/components/layout/AdminSidebar.tsx",lineNumber:38,columnNumber:21},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/AdminSidebar.tsx",lineNumber:36,columnNumber:5},this)}const n_="lt_event_feed_patterns";function y4(r){if(r.startsWith("/topics/")){const d=decodeURIComponent(r.replace("/topics/",""));if(d&&!d.includes("/"))return`lt.events.${d}`}const s=r.match(/^\/escalations\/detail\/(.+)/);if(s)return`lt.events.system.escalation.${s[1]}.>`;if(r.startsWith("/escalations"))return"lt.events.system.escalation.>";const a=r.match(/^\/workflows\/(?:durable\/)?executions\/(.+)/);if(a)return`lt.events.system.workflow.${a[1]}.>`;if(r.startsWith("/workflows"))return"lt.events.system.workflow.>";const o=r.match(/^\/agents\/([^/]+)$/);if(o&&o[1]!=="new")return`lt.events.system.agent.${o[1]}.>`;if(r.startsWith("/agents"))return"lt.events.system.agent.>";if(r.startsWith("/knowledge"))return"lt.events.system.knowledge.>";if(r.startsWith("/files"))return"lt.events.system.file.>";if(r==="/")return"lt.events.system.>";const u=r.match(/^\/mcp\/executions\/(.+)/);return u?`lt.events.system.*.${u[1]}.>`:(r.startsWith("/mcp"),"lt.events.system.>")}function g4(){try{const r=localStorage.getItem(n_);return r?JSON.parse(r):[]}catch{return[]}}function w0(r){try{localStorage.setItem(n_,JSON.stringify(r))}catch{}}function v4(){const{pathname:r}=ci(),[s,a]=R.useState(g4),o=R.useMemo(()=>y4(r),[r]),u=R.useMemo(()=>{const g=new Set([o,...s]);return Array.from(g)},[o,s]),d=R.useCallback(g=>{const x=g.startsWith("lt.events.")?g:`lt.events.${g}`;a(S=>{if(S.includes(x))return S;const E=[...S,x];return w0(E),E})},[]),p=R.useCallback(g=>{a(x=>{const S=x.filter(E=>E!==g);return w0(S),S})},[]),m=R.useCallback(()=>{a([]),w0([])},[]);return{patterns:u,pagePattern:o,userPatterns:s,addPattern:d,removePattern:p,clearUserPatterns:m}}function x4({children:r,className:s=""}){return b.jsxDEV("p",{className:`text-[10px] font-semibold uppercase tracking-widest text-text-tertiary ${s}`,children:r},void 0,!1,{fileName:"/app/dashboard/src/components/common/layout/SectionLabel.tsx",lineNumber:10,columnNumber:5},this)}const S0=280,qw="cubic-bezier(0.4, 0, 0.2, 1)",Wd=40;function N4(r){if(!r)return"scale(0.92)";const s=window.innerWidth,a=window.innerHeight,o=s-Wd*2,u=a-Wd*2,d=r.width/o,p=r.height/u,m=r.left+r.width/2-(Wd+o/2),g=r.top+r.height/2-(Wd+u/2);return`translate(${m}px, ${g}px) scale(${d}, ${p})`}function s_({open:r,onClose:s,sourceRef:a,children:o}){const[u,d]=R.useState(null),p=R.useRef(null),m=R.useRef(!1);R.useEffect(()=>{var D,q;r&&!m.current?(p.current=((D=a==null?void 0:a.current)==null?void 0:D.getBoundingClientRect())??null,d("entering")):!r&&m.current&&u==="open"&&(p.current=((q=a==null?void 0:a.current)==null?void 0:q.getBoundingClientRect())??null,d("exiting")),m.current=r},[r,a,u]),R.useEffect(()=>{if(u!=="entering")return;const D=requestAnimationFrame(()=>{requestAnimationFrame(()=>d("open"))});return()=>cancelAnimationFrame(D)},[u]),R.useEffect(()=>{if(u)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[u]),R.useEffect(()=>{if(!u)return;const D=q=>{q.key==="Escape"&&s()};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[u,s]);const g=R.useCallback(D=>{D.propertyName==="transform"&&u==="exiting"&&d(null)},[u]);if(R.useEffect(()=>{if(u!=="exiting")return;const D=setTimeout(()=>d(null),S0+50);return()=>clearTimeout(D)},[u]),!u)return null;const x=u==="entering"||u==="exiting",S=x?N4(p.current):"none",E=x?0:1;return lS.createPortal(b.jsxDEV("div",{className:"fixed inset-0 z-50 overflow-auto p-10",style:{transformOrigin:"center center",transition:`transform ${S0}ms ${qw}, opacity ${S0}ms ${qw}`,transform:S,opacity:E,backgroundColor:"#FFFFFF"},onTransitionEnd:g,children:o},void 0,!1,{fileName:"/app/dashboard/src/components/common/layout/FullscreenOverlay.tsx",lineNumber:93,columnNumber:5},this),document.body)}function E4({className:r}){return b.jsxDEV("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h8M4 18h12"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:4,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:3,columnNumber:5},this)}function w4({className:r}){return b.jsxDEV("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7l-5 5 5 5M16 7l5 5-5 5"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:12,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:11,columnNumber:5},this)}function S4({className:r}){return b.jsxDEV("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:20,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:19,columnNumber:5},this)}function _4({className:r}){return b.jsxDEV("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:28,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:27,columnNumber:5},this)}function A4({className:r}){return b.jsxDEV("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.5 3.5M9 15v4.5M9 15H4.5M9 15l-5.5 5.5M15 9h4.5M15 9V4.5M15 9l5.5-5.5M15 15h4.5M15 15v4.5m0-4.5l5.5 5.5"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:36,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:35,columnNumber:5},this)}function D4({className:r}){return b.jsxDEV("svg",{className:r,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:44,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewerIcons.tsx",lineNumber:43,columnNumber:5},this)}function T4(r){const s=r.trim().split(`
272
- `);if(s.length<2)return r;const a=m=>m.split("|").map(g=>g.trim()).filter(Boolean),o=a(s[0]),u=s.slice(2),d=o.map(m=>`<th class="px-3 py-1.5 text-left text-[10px] font-semibold uppercase tracking-wider text-text-tertiary">${m}</th>`).join(""),p=u.map(m=>`<tr class="border-t border-surface-border">${a(m).map(S=>`<td class="px-3 py-1.5 text-xs text-text-secondary">${S}</td>`).join("")}</tr>`).join("");return`<table class="w-full my-3 text-xs"><thead><tr class="border-b border-surface-border">${d}</tr></thead><tbody>${p}</tbody></table>`}function eh(r){return r.toLowerCase().replace(/<[^>]+>/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").trim()}function C4(r){const s=[];let a=r.replace(/```(\w*)\n([\s\S]*?)```/g,(g,x,S)=>{const E=s.length;return s.push(`<pre class="bg-surface-sunken rounded p-3 my-2 overflow-x-auto text-[11px] leading-relaxed"><code>${S}</code></pre>`),`\0CODE${E}\0`});const o=/^(\|.+\|)\n(\|[-| :]+\|)\n((?:\|.+\|\n?)+)/gm;a=a.replace(o,(g,x,S,E)=>T4(`${x}
273
- ${S}
274
- ${E.trimEnd()}`)),a=a.replace(/`([^`]+)`/g,'<code class="bg-surface-sunken px-1 py-0.5 rounded text-[11px]">$1</code>'),a=a.replace(/^#### (.+)$/gm,(g,x)=>`<h4 id="${eh(x)}" class="text-xs font-semibold text-text-primary mt-4 mb-1">${x}</h4>`).replace(/^### (.+)$/gm,(g,x)=>`<h3 id="${eh(x)}" class="text-sm font-semibold text-text-primary mt-5 mb-1.5">${x}</h3>`).replace(/^## (.+)$/gm,(g,x)=>`<h2 id="${eh(x)}" class="text-base font-semibold text-text-primary mt-6 mb-2 pb-1 border-b border-surface-border">${x}</h2>`).replace(/^# (.+)$/gm,(g,x)=>`<h1 id="${eh(x)}" class="text-lg font-bold text-text-primary mb-3">${x}</h1>`),a=a.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(#([^)]+)\)/g,'<a data-anchor="$2" class="text-accent hover:underline cursor-pointer">$1</a>').replace(/\[([^\]]+)\]\(([^)]*\.md(?:#[^)]*)?)\)/g,'<a data-doc-link="$2" class="text-accent hover:underline cursor-pointer">$1</a>').replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="text-accent hover:underline">$1</a>').replace(/^ - (.+)$/gm,'<li class="ml-8 list-disc text-xs -my-1" style="line-height:1.1">$1</li>').replace(/^ - (.+)$/gm,'<li class="ml-8 list-disc text-xs -my-1" style="line-height:1.1">$1</li>').replace(/^- (.+)$/gm,'<li class="ml-4 list-disc text-xs -my-1" style="line-height:1.1">$1</li>').replace(/^\d+\. (.+)$/gm,'<li class="ml-4 list-decimal text-xs -my-1" style="line-height:1.1">$1</li>').replace(/^---+$/gm,'<hr class="border-surface-border my-4" />').replace(/(?:^> (.+)$\n?)+/gm,g=>{const x=g.replace(/^> /gm,"").trim(),S=/⚠️|warning|caution/i.test(x),E=/note:|ℹ️|info/i.test(x);return`<div class="${S?"bg-status-warning/5":E?"bg-accent/5":"bg-surface-sunken/50"} ${S?"border-status-warning":E?"border-accent":"border-text-tertiary"} border-l-2 rounded-r-md px-3 py-2 my-3 text-xs text-text-secondary leading-relaxed">${x}</div>`}).replace(/\n\n/g,"\0PARA\0").replace(/\n/g,"<br/>");const u=g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=g=>new RegExp(`(${u(g)}[\\s\\S]*?<\\/li>(?:<br\\/>)?)+`,"g");a=a.replace(d('<li class="ml-8 list-disc'),g=>`<ul class="mb-3">${g}</ul>`),a=a.replace(d('<li class="ml-4 list-disc'),g=>`<ul class="mb-3">${g}</ul>`),a=a.replace(d('<li class="ml-4 list-decimal'),g=>`<ol class="list-decimal mb-3">${g}</ol>`),a=a.replace(/\x00CODE(\d+)\x00/g,(g,x)=>s[parseInt(x,10)]);const p="text-xs leading-relaxed text-text-secondary mb-2",m=/<\/(h[1-4]|pre|table|ul|ol|hr|div)>/;return a=a.split("\0PARA\0").map(g=>{const x=g.trim();if(!x)return"";const S=[];let E=x,D;for(;(D=m.exec(E))!==null;){const q=D.index+D[0].length;S.push(E.slice(0,q)),E=E.slice(q).replace(/^<br\/>/,"").trim(),m.lastIndex=0}return E&&S.push(E),S.map(q=>{const k=q.trim();return k?/^\s*<(h[1-4]|pre|table|ul|ol|hr|div)/.test(k)?k:`<p class="${p}">${k}</p>`:""}).join("")}).join(""),a}const O4=/(\*\*|^#{1,4}\s|^- |^\d+\.\s|```|^\|.*\|$|\[.+\]\(.+\))/m;function j4(r){return O4.test(r)}function gy({content:r,className:s,onClick:a}){const o=R.useMemo(()=>C4(r),[r]);return b.jsxDEV("div",{className:s,onClick:a,dangerouslySetInnerHTML:{__html:o}},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/MarkdownRenderer.tsx",lineNumber:136,columnNumber:10},this)}function bh({data:r,depth:s=0,generation:a}){const u=a!==void 0&&a>0&&a%2===1?!1:s>0,[d,p]=R.useState(u),[m,g]=R.useState(a);if(a!==void 0&&a!==m&&(g(a),p(a%2===0&&s>0)),r==null)return b.jsxDEV("span",{className:"text-text-tertiary italic",children:"null"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:23,columnNumber:12},this);if(typeof r=="string")return b.jsxDEV("span",{className:"text-text-primary",children:['"',r,'"']},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:27,columnNumber:12},this);if(typeof r=="number"||typeof r=="boolean")return b.jsxDEV("span",{className:"text-text-primary font-medium",children:String(r)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:31,columnNumber:12},this);if(Array.isArray(r))return r.length===0?b.jsxDEV("span",{className:"text-text-tertiary",children:"[]"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:35,columnNumber:35},this):d?b.jsxDEV("button",{onClick:()=>p(!1),className:"text-text-secondary hover:text-text-primary",children:["[",r.length," items]"]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:39,columnNumber:9},this):b.jsxDEV("span",{children:[b.jsxDEV("button",{onClick:()=>p(!0),className:"text-text-tertiary hover:text-text-primary",children:"["},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:50,columnNumber:9},this),b.jsxDEV("div",{className:"pl-4 border-l border-surface-border ml-1",children:r.map((x,S)=>b.jsxDEV("div",{children:[b.jsxDEV(bh,{data:x,depth:s+1,generation:a},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:59,columnNumber:15},this),S<r.length-1&&b.jsxDEV("span",{className:"text-text-tertiary",children:","},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:60,columnNumber:39},this)]},S,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:58,columnNumber:13},this))},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:56,columnNumber:9},this),b.jsxDEV("span",{className:"text-text-tertiary",children:"]"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:64,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:49,columnNumber:7},this);if(typeof r=="object"){const x=Object.entries(r);return x.length===0?b.jsxDEV("span",{className:"text-text-tertiary",children:"{}"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:71,columnNumber:38},this):d?b.jsxDEV("button",{onClick:()=>p(!1),className:"text-text-secondary hover:text-text-primary",children:["{","...","}"]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:75,columnNumber:9},this):b.jsxDEV("span",{children:[b.jsxDEV("button",{onClick:()=>p(!0),className:"text-text-tertiary hover:text-text-primary",children:"{"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:86,columnNumber:9},this),b.jsxDEV("div",{className:"pl-4 border-l border-surface-border ml-1",children:x.map(([S,E],D)=>b.jsxDEV("div",{children:[b.jsxDEV("span",{className:"text-text-secondary",children:S},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:95,columnNumber:15},this),b.jsxDEV("span",{className:"text-text-tertiary",children:": "},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:96,columnNumber:15},this),b.jsxDEV(bh,{data:E,depth:s+1,generation:a},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:97,columnNumber:15},this),D<x.length-1&&b.jsxDEV("span",{className:"text-text-tertiary",children:","},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:98,columnNumber:42},this)]},S,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:94,columnNumber:13},this))},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:92,columnNumber:9},this),b.jsxDEV("span",{className:"text-text-tertiary",children:"}"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:102,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:85,columnNumber:7},this)}return b.jsxDEV("span",{children:String(r)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:107,columnNumber:10},this)}function vu({data:r,depth:s=0}){if(r==null)return b.jsxDEV("span",{className:"text-text-tertiary italic",children:"null"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:116,columnNumber:12},this);if(typeof r=="string")return r.length>40&&j4(r)?b.jsxDEV(gy,{content:r},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:121,columnNumber:14},this):b.jsxDEV("span",{className:"text-text-primary",children:r},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:123,columnNumber:12},this);if(typeof r=="number"||typeof r=="boolean")return b.jsxDEV("span",{className:"text-text-primary font-medium",children:String(r)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:127,columnNumber:12},this);if(Array.isArray(r))return r.length===0?b.jsxDEV("span",{className:"text-text-tertiary italic",children:"empty list"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:131,columnNumber:35},this):b.jsxDEV("div",{className:"space-y-2",children:r.map((a,o)=>b.jsxDEV("div",{className:"flex items-baseline gap-2",children:[b.jsxDEV("span",{className:"text-text-tertiary text-[10px] shrink-0",children:[o+1,"."]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:136,columnNumber:13},this),b.jsxDEV("div",{className:"flex-1",children:b.jsxDEV(vu,{data:a,depth:s+1},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:138,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:137,columnNumber:13},this)]},o,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:135,columnNumber:11},this))},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:133,columnNumber:7},this);if(typeof r=="object"){const a=Object.entries(r);return a.length===0?b.jsxDEV("span",{className:"text-text-tertiary italic",children:"empty"},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:148,columnNumber:38},this):b.jsxDEV("div",{className:s>0?"pl-4 border-l border-surface-border space-y-3":"space-y-3",children:a.map(([o,u])=>{const d=u===null||typeof u!="object";return b.jsxDEV("div",{children:[b.jsxDEV("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-text-tertiary mb-0.5",children:o.replace(/[_-]/g," ")},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:155,columnNumber:15},this),d?b.jsxDEV("p",{className:"text-sm text-text-primary",children:b.jsxDEV(vu,{data:u,depth:s+1},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:160,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:159,columnNumber:17},this):b.jsxDEV(vu,{data:u,depth:s+1},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:163,columnNumber:17},this)]},o,!0,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:154,columnNumber:13},this)})},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:150,columnNumber:7},this)}return b.jsxDEV("span",{children:String(r)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/json-viewer-nodes.tsx",lineNumber:172,columnNumber:10},this)}function Lw({mode:r,setMode:s,isCollapsed:a,onToggleCollapse:o,onCopy:u,copied:d,onFullscreen:p,onClose:m,large:g}){const x=g?"w-5 h-5":"w-3.5 h-3.5",S=`${g?"p-2":"p-1.5"} rounded text-text-tertiary hover:text-text-primary hover:bg-surface-raised transition-colors duration-150`;return b.jsxDEV("div",{className:"flex items-center gap-0.5 bg-surface-sunken/80 rounded-md backdrop-blur-sm",children:[r==="json"&&b.jsxDEV("button",{onClick:o,className:S,title:a?"Expand all":"Collapse all",children:a?b.jsxDEV(D4,{className:x},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:35,columnNumber:26},this):b.jsxDEV(A4,{className:x},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:35,columnNumber:60},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:34,columnNumber:9},this),b.jsxDEV("button",{onClick:()=>s(r==="json"?"tree":"json"),className:S,title:r==="json"?"Outline view":"JSON view",children:r==="json"?b.jsxDEV(E4,{className:x},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:39,columnNumber:28},this):b.jsxDEV(w4,{className:x},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:39,columnNumber:60},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:38,columnNumber:7},this),b.jsxDEV("button",{onClick:u,className:S,title:"Copy to clipboard",children:d?b.jsxDEV(_4,{className:`${x} text-status-success`},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:42,columnNumber:19},this):b.jsxDEV(S4,{className:x},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:42,columnNumber:77},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:41,columnNumber:7},this),p&&b.jsxDEV("button",{onClick:p,className:S,title:"Fullscreen",children:b.jsxDEV(dS,{className:x},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:46,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:45,columnNumber:9},this),m&&b.jsxDEV("button",{onClick:m,className:S,title:"Close (Esc)",children:b.jsxDEV(hS,{className:x},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:51,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:32,columnNumber:5},this)}function R4({data:r,label:s,variant:a,defaultCollapsed:o=!1,defaultMode:u}){const d=R.useRef(null),[p,m]=R.useState(u??"json"),[g,x]=R.useState(!1),[S,E]=R.useState(!1),[D,q]=R.useState(o?0:1),[k,L]=R.useState(1),I=D%2===0,W=k%2===0,te=R.useCallback(()=>q(H=>H+1),[]),Ne=R.useCallback(()=>L(H=>H+1),[]);let le=r;if(typeof r=="string")try{le=JSON.parse(r)}catch{}const V=async()=>{const H=typeof r=="string"?r:JSON.stringify(le,null,2);await navigator.clipboard.writeText(H),x(!0),setTimeout(()=>x(!1),2e3)},ne=R.useCallback(()=>{L(1),E(!0)},[]),fe=a==="panel",J=fe?"border border-accent-muted/40 rounded-lg p-3 bg-surface-hover/30":"",Q=fe?"font-mono text-xs leading-relaxed bg-white rounded-md p-4 overflow-x-auto break-all":"font-mono text-xs leading-relaxed bg-surface-sunken rounded-md p-4 overflow-x-auto break-all";return b.jsxDEV("div",{className:J,children:[s&&b.jsxDEV(x4,{children:s},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:123,columnNumber:17},this),b.jsxDEV("div",{ref:d,className:"relative",children:[b.jsxDEV("div",{className:"absolute top-2 right-2 z-[5]",children:b.jsxDEV(Lw,{mode:p,setMode:m,isCollapsed:I,onToggleCollapse:te,onCopy:V,copied:g,onFullscreen:ne},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:126,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:125,columnNumber:9},this),b.jsxDEV("div",{className:Q,children:p==="json"?b.jsxDEV(bh,{data:le,generation:D},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:134,columnNumber:30},this):b.jsxDEV(vu,{data:le},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:134,columnNumber:83},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:133,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:124,columnNumber:7},this),b.jsxDEV(s_,{open:S,onClose:()=>E(!1),sourceRef:d,children:[b.jsxDEV("div",{className:"sticky top-0 float-right z-10",children:b.jsxDEV(Lw,{mode:p,setMode:m,isCollapsed:W,onToggleCollapse:Ne,onCopy:V,copied:g,onClose:()=>E(!1),large:!0},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:140,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:139,columnNumber:9},this),b.jsxDEV("div",{className:"font-mono text-sm leading-relaxed",children:p==="json"?b.jsxDEV(bh,{data:le,generation:k},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:149,columnNumber:30},this):b.jsxDEV(vu,{data:le},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:149,columnNumber:85},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:148,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:138,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/data/JsonViewer.tsx",lineNumber:122,columnNumber:5},this)}const M4=100,Pw=500;let k4=0;const a_={"escalation.created":"text-status-active","escalation.claimed":"text-status-warning","escalation.released":"text-text-tertiary","escalation.resolved":"text-status-success","task.created":"text-accent","task.completed":"text-status-success","task.failed":"text-status-error","task.escalated":"text-status-warning","workflow.started":"text-accent","workflow.completed":"text-status-success","workflow.failed":"text-status-error","activity.started":"text-status-active","activity.completed":"text-status-success","activity.failed":"text-status-error","knowledge.stored":"text-accent","knowledge.deleted":"text-text-tertiary","agent.started":"text-accent","agent.completed":"text-status-success","agent.failed":"text-status-error","agent.status_changed":"text-status-active",milestone:"text-accent"};function r_(r){const s=r.split(".");return s[0]==="system"&&s.length>=3?`${s[1]}.${s[s.length-1]}`:r}function Hw({event:r,forceExpanded:s=!1}){var D,q;const[a,o]=R.useState(s),u=a_[r_(r.type)]||"text-text-tertiary";R.useEffect(()=>{o(s)},[s]);const d=s,p=d?"text-xs":"text-[9px]",m=d?"text-xs":"text-[9px]",g=d?"text-xs":"text-[9px]",x=d?"w-3.5 h-3.5":"w-2.5 h-2.5",S=d?"py-2 px-4":"py-1 px-3",E=d?"pb-4 px-4":"pb-2 px-3";return b.jsxDEV("div",{className:"border-b border-surface-border/30 last:border-b-0",children:[b.jsxDEV("button",{onClick:()=>o(!a),className:`flex items-center gap-2 ${S} w-full text-left hover:bg-surface-hover/50 transition-colors`,children:[b.jsxDEV("span",{className:`${p} font-mono text-text-tertiary whitespace-nowrap tabular-nums shrink-0`,children:new Date(r.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:77,columnNumber:9},this),b.jsxDEV("span",{className:`${m} font-medium px-1 py-0.5 rounded ${u} bg-surface-sunken whitespace-nowrap shrink-0`,children:r.type},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:80,columnNumber:9},this),b.jsxDEV("span",{className:`${g} text-text-tertiary font-mono flex-1 min-w-0 truncate`,children:[(D=r.data)!=null&&D.workflowId?String(r.data.workflowId):"",(q=r.data)!=null&&q.escalationId?` esc:${String(r.data.escalationId).slice(0,12)}`:""]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:83,columnNumber:9},this),b.jsxDEV("svg",{className:`${x} text-text-tertiary shrink-0 transition-transform duration-150 ${a?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:91,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:87,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:73,columnNumber:7},this),b.jsxDEV(yy,{open:a,children:b.jsxDEV("div",{className:E,children:b.jsxDEV(R4,{data:r.data},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:96,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:95,columnNumber:9},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:94,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:72,columnNumber:5},this)}function V4({open:r,onToggle:s,configOpen:a,onToggleConfig:o}){const[u,d]=R.useState([]),[p,m]=R.useState(!1),[g,x]=R.useState(""),S=R.useRef(null),E=R.useRef(new Map),{subscribe:D}=R.useContext(Du),{patterns:q,pagePattern:k,userPatterns:L,addPattern:I,removePattern:W}=v4(),te=R.useCallback(le=>{const V=String(le.type||"unknown");if(V.startsWith("mesh."))return;const ne=`${V}:${le.timestamp||""}:${le.escalationId||le.workflowId||le.taskId||""}`,fe=Date.now(),J=E.current.get(ne);if(!(J&&fe-J<Pw)){if(E.current.set(ne,fe),E.current.size>200)for(const[Q,H]of E.current)fe-H>Pw*2&&E.current.delete(Q);d(Q=>[{id:++k4,type:V,timestamp:le.timestamp||new Date().toISOString(),data:le},...Q].slice(0,M4))}},[]),Ne=R.useRef(te);return Ne.current=te,R.useEffect(()=>{const le=q.map(V=>D(V,ne=>Ne.current(ne)));return()=>le.forEach(V=>V())},[D,q.join(",")]),R.useEffect(()=>{r&&S.current&&(S.current.scrollTop=0)},[u.length,r]),b.jsxDEV("div",{className:"shrink-0 border-t border-surface-border bg-surface-raised",children:[b.jsxDEV("button",{onClick:s,className:"flex items-center gap-2 w-full px-4 py-1.5 text-left hover:bg-surface-hover transition-colors",children:[r?b.jsxDEV(gT,{className:"w-3 h-3 text-text-tertiary"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:163,columnNumber:17},this):b.jsxDEV(vT,{className:"w-3 h-3 text-text-tertiary"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:163,columnNumber:74},this),b.jsxDEV("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-text-tertiary",children:"Event Stream"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:164,columnNumber:9},this),u.length>0&&b.jsxDEV("span",{className:"text-[9px] text-text-tertiary",children:[u.length," events"]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:168,columnNumber:11},this),u.length>0&&!r&&b.jsxDEV("span",{className:`text-[9px] font-medium px-1 py-0.5 rounded ${a_[r_(u[0].type)]||"text-text-tertiary"} bg-surface-sunken`,children:u[0].type},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:173,columnNumber:11},this),b.jsxDEV("span",{className:"ml-auto flex items-center gap-1",children:[b.jsxDEV("span",{className:`p-0.5 cursor-pointer ${a?"text-accent":"text-text-tertiary hover:text-text-primary"}`,title:"Subscription config",onClick:le=>{le.stopPropagation(),o()},children:b.jsxDEV(xT,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:183,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:178,columnNumber:11},this),u.length>0&&b.jsxDEV(b.Fragment,{children:[b.jsxDEV("span",{className:"text-text-tertiary hover:text-text-primary p-0.5 cursor-pointer",title:"Fullscreen",onClick:le=>{le.stopPropagation(),m(!0)},children:b.jsxDEV(dS,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:192,columnNumber:17},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:187,columnNumber:15},this),b.jsxDEV("span",{className:"text-text-tertiary hover:text-text-primary p-0.5 cursor-pointer",title:"Clear events",onClick:le=>{le.stopPropagation(),d([])},children:b.jsxDEV(NT,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:199,columnNumber:17},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:194,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:186,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:159,columnNumber:7},this),a&&b.jsxDEV("div",{className:"px-4 py-2 border-t border-surface-border/50 bg-surface-sunken/30",children:[b.jsxDEV("div",{className:"flex flex-wrap items-center gap-1.5 mb-1.5",children:[b.jsxDEV("span",{className:"text-[9px] text-text-quaternary uppercase tracking-wider shrink-0",children:"Subscribed:"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:210,columnNumber:13},this),b.jsxDEV("span",{className:"text-[9px] font-mono text-accent px-1.5 py-0.5 bg-accent/10 rounded",children:k.replace("lt.events.","")},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:211,columnNumber:13},this),L.map(le=>b.jsxDEV("span",{className:"inline-flex items-center gap-1 text-[9px] font-mono text-text-secondary px-1.5 py-0.5 bg-surface-sunken rounded",children:[le.replace("lt.events.",""),b.jsxDEV("button",{onClick:()=>W(le),className:"text-text-quaternary hover:text-status-error",children:b.jsxDEV(vh,{className:"w-2 h-2"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:215,columnNumber:115},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:215,columnNumber:17},this)]},le,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:213,columnNumber:15},this))]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:209,columnNumber:11},this),b.jsxDEV("div",{className:"flex items-center gap-2",children:[b.jsxDEV("input",{type:"text",value:g,onChange:le=>x(le.target.value),onKeyDown:le=>{le.key==="Enter"&&g.trim()&&(I(g.trim()),x(""))},placeholder:"task.> or file.stored",className:"input text-[10px] font-mono flex-1 py-1"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:220,columnNumber:13},this),b.jsxDEV("button",{onClick:()=>{g.trim()&&(I(g.trim()),x(""))},className:"text-[10px] text-accent hover:text-accent-hover flex items-center gap-0.5",children:[b.jsxDEV(ET,{className:"w-2.5 h-2.5"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:232,columnNumber:15},this)," Add"]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:228,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:208,columnNumber:9},this),b.jsxDEV(yy,{open:r,children:b.jsxDEV("div",{ref:S,className:"h-48 overflow-y-auto",children:u.length===0?b.jsxDEV("p",{className:"text-[10px] text-text-tertiary py-4 text-center",children:"Waiting for events..."},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:242,columnNumber:13},this):u.map(le=>b.jsxDEV(Hw,{event:le},le.id,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:244,columnNumber:33},this))},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:240,columnNumber:9},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:239,columnNumber:7},this),b.jsxDEV(s_,{open:p,onClose:()=>m(!1),sourceRef:S,children:[b.jsxDEV("div",{className:"sticky top-0 float-right z-10",children:b.jsxDEV("button",{onClick:()=>m(!1),className:"p-2 rounded text-text-tertiary hover:text-text-primary hover:bg-surface-raised transition-colors duration-150 bg-surface-sunken/80 backdrop-blur-sm",title:"Close (Esc)",children:b.jsxDEV(hS,{className:"w-5 h-5"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:256,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:251,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:250,columnNumber:9},this),u.length===0?b.jsxDEV("p",{className:"text-sm text-text-tertiary py-8",children:"No events captured"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:260,columnNumber:11},this):u.map(le=>b.jsxDEV(Hw,{event:le,forceExpanded:!0},le.id,!1,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:262,columnNumber:31},this))]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:249,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/EventFeed.tsx",lineNumber:157,columnNumber:5},this)}function U4(){return Ns({queryKey:["docs"],queryFn:()=>it("/docs"),staleTime:5*6e4})}function z4(r){return Ns({queryKey:["docs",r],queryFn:()=>it(`/docs/read?path=${encodeURIComponent(r)}`),enabled:!!r,staleTime:5*6e4})}function B4(){const[r,s]=R.useState([]),[a,o]=R.useState([]),[u,d]=R.useState(null),p=R.useRef(u),m=R.useRef(r),g=R.useRef(a);p.current=u,m.current=r,g.current=a;const x=R.useCallback((k,L)=>{var W;const I=p.current;if(I){const te=((W=L==null?void 0:L.current)==null?void 0:W.scrollTop)??0;s([...m.current,{...I,scrollTop:te}])}o([]),d({path:k,scrollTop:0})},[]),S=R.useCallback(k=>{var te;const L=m.current;if(L.length===0)return;const I=L[L.length-1],W=p.current;if(W){const Ne=((te=k==null?void 0:k.current)==null?void 0:te.scrollTop)??0;o([...g.current,{...W,scrollTop:Ne}])}s(L.slice(0,-1)),d(I),requestAnimationFrame(()=>{k!=null&&k.current&&(k.current.scrollTop=I.scrollTop)})},[]),E=R.useCallback(k=>{var te;const L=g.current;if(L.length===0)return;const I=L[L.length-1],W=p.current;if(W){const Ne=((te=k==null?void 0:k.current)==null?void 0:te.scrollTop)??0;s([...m.current,{...W,scrollTop:Ne}])}o(L.slice(0,-1)),d(I),requestAnimationFrame(()=>{k!=null&&k.current&&(k.current.scrollTop=I.scrollTop)})},[]),D=R.useCallback(k=>{var W,te;const L=p.current;if(!L)return;const I=((W=k==null?void 0:k.current)==null?void 0:W.scrollTop)??0;s([...m.current,{...L,scrollTop:I}]),o([]),d({...L,scrollTop:((te=k==null?void 0:k.current)==null?void 0:te.scrollTop)??0})},[]),q=R.useCallback(()=>{s([]),o([]),d(null)},[]);return{current:u,backStack:r,forwardStack:a,navigate:x,goBack:S,goForward:E,pushScrollPosition:D,reset:q}}function q4(r,s){const[a,o]=r.split("#");let u=a;if(u.startsWith("./")||u.startsWith("../")){const p=((s?s.replace(/[^/]+$/,""):"")+u).split("/"),m=[];for(const g of p)g===".."?m.pop():g&&g!=="."&&m.push(g);u=m.join("/")}return{path:u,anchor:o}}function L4(r){if(!r.startsWith("#docs"))return null;const s=r.slice(1).split(":"),a=s[1]||"README.md",o=s[2]||void 0;return{path:a,anchor:o}}function P4(r){return!r||r==="README.md"?"#docs":`#docs:${r}`}function H4({content:r,currentPath:s,onNavigate:a,onAnchorClick:o}){const u=d=>{var x;const p=d.target,m=p.closest("[data-anchor]");if(m){d.preventDefault(),o();const S=m.dataset.anchor,E=(x=m.closest(".docs-content"))==null?void 0:x.querySelector(`#${CSS.escape(S)}`);E==null||E.scrollIntoView({behavior:"smooth",block:"start"});return}const g=p.closest("[data-doc-link]");if(g){d.preventDefault();const{path:S,anchor:E}=q4(g.dataset.docLink,s);a(S,E);return}};return b.jsxDEV(gy,{content:r,className:"docs-content",onClick:u},void 0,!1,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:42,columnNumber:10},this)}function $4(r){const s=[],a=new Map;for(const o of r){const u=o.path.split("/");if(u.length===1){s.push(o);continue}let d=a;for(let p=0;p<u.length-1;p++){const m=u[p];d.has(m)||d.set(m,{label:m,children:[],subdirs:new Map});const g=d.get(m);p===u.length-2?g.children.push(o):d=g.subdirs}}return{topLevel:s,dirs:a}}function I4({docs:r,selected:s,onSelect:a}){const{topLevel:o,dirs:u}=$4(r),d=m=>`block w-full text-left px-3 py-1 text-xs rounded truncate transition-colors ${s===m?"bg-accent/10 text-accent":"text-text-secondary hover:bg-surface-hover"}`;function p(m,g){return b.jsxDEV("details",{open:!0,children:[b.jsxDEV("summary",{className:"flex items-center gap-1.5 px-3 py-1 text-[10px] font-semibold uppercase tracking-widest text-text-tertiary cursor-pointer",children:[b.jsxDEV(wT,{className:"w-3 h-3",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:109,columnNumber:11},this),m.label]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:108,columnNumber:9},this),b.jsxDEV("div",{className:"pl-2 space-y-0.5",children:[[...m.subdirs.values()].map(x=>p(x)),m.children.map(x=>b.jsxDEV("button",{className:d(x.path),onClick:()=>a(x.path),children:x.title},x.path,!1,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:115,columnNumber:13},this))]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:112,columnNumber:9},this)]},m.label,!0,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:107,columnNumber:7},this)}return b.jsxDEV("div",{className:"space-y-0.5",children:[o.map(m=>b.jsxDEV("button",{className:d(m.path),onClick:()=>a(m.path),children:m.title},m.path,!1,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:127,columnNumber:9},this)),[...u.values()].map(m=>p(m))]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/docs-drawer-tree.tsx",lineNumber:125,columnNumber:5},this)}function F4({open:r,onClose:s}){var fe,J,Q;const[a,o]=R.useState(!1),{data:u}=U4(),d=B4(),{data:p,isLoading:m}=z4(((fe=d.current)==null?void 0:fe.path)??null),g=R.useRef(null),[x,S]=R.useState(null);R.useEffect(()=>{x&&(p!=null&&p.content)&&g.current&&requestAnimationFrame(()=>{var oe;const H=(oe=g.current)==null?void 0:oe.querySelector(`#${CSS.escape(x)}`);H==null||H.scrollIntoView({behavior:"smooth",block:"start"}),S(null)})},[x,p]);const E=R.useCallback(()=>{var ae;const H=L4(window.location.hash),oe=(H==null?void 0:H.path)??"README.md";((ae=d.current)==null?void 0:ae.path)!==oe&&d.navigate(oe,g),H!=null&&H.anchor&&S(H.anchor)},[d]),D=R.useRef(!0);R.useEffect(()=>{if(!r||!d.current)return;if(D.current){D.current=!1;return}const H=P4(d.current.path);window.location.hash!==H&&window.history.replaceState(null,"",window.location.pathname+window.location.search+H)},[r,(J=d.current)==null?void 0:J.path]),R.useEffect(()=>{if(!r)return;const H=()=>{window.location.hash.startsWith("#docs")&&E()};return window.addEventListener("hashchange",H),()=>window.removeEventListener("hashchange",H)},[r,E]);const q=R.useCallback((H,oe)=>{oe&&S(oe),d.navigate(H,g)},[d]),k=R.useCallback(H=>{d.navigate(H,g)},[d]),L=R.useCallback(()=>{d.goBack(g)},[d]),I=R.useCallback(()=>{d.goForward(g)},[d]),W=R.useCallback(()=>{d.pushScrollPosition(g)},[d]);if(R.useEffect(()=>{if(r){D.current=!0,E();const H=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(H)}},[r]),!(r||a))return null;const Ne=()=>{o(!1),setTimeout(()=>{s(),d.reset()},200)},le=((Q=d.current)==null?void 0:Q.path)??null,V=d.backStack.length>0,ne=d.forwardStack.length>0;return b.jsxDEV("div",{className:"fixed inset-y-0 right-0 z-50 flex",children:[b.jsxDEV("div",{className:`fixed inset-0 bg-black/20 transition-opacity duration-200 ${a&&r?"opacity-100":"opacity-0"}`,onClick:Ne},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:113,columnNumber:7},this),b.jsxDEV("div",{className:`relative ml-auto w-[40vw] min-w-[800px] max-w-[90vw] h-full bg-surface-raised border-l border-surface-border flex flex-col shadow-xl transition-transform duration-200 ease-out ${a&&r?"translate-x-0":"translate-x-full"}`,children:[b.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-surface-border shrink-0",children:[b.jsxDEV("div",{className:"flex items-center gap-1",children:[b.jsxDEV("button",{onClick:L,disabled:!V,className:`p-0.5 transition-colors ${V?"text-text-tertiary hover:text-text-primary":"text-surface-border cursor-default"}`,title:"Back",children:b.jsxDEV(ST,{className:"w-4 h-4"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:129,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:123,columnNumber:13},this),b.jsxDEV("button",{onClick:I,disabled:!ne,className:`p-0.5 transition-colors ${ne?"text-text-tertiary hover:text-text-primary":"text-surface-border cursor-default"}`,title:"Forward",children:b.jsxDEV(QE,{className:"w-4 h-4"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:137,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:131,columnNumber:13},this),b.jsxDEV(fS,{className:"w-4 h-4 text-accent ml-1",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:139,columnNumber:13},this),b.jsxDEV("span",{className:"text-sm font-medium text-text-primary",children:"Documentation"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:140,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:122,columnNumber:11},this),b.jsxDEV("button",{onClick:Ne,className:"p-1 text-text-tertiary hover:text-text-primary",children:b.jsxDEV(vh,{className:"w-4 h-4"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:143,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:142,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:121,columnNumber:9},this),b.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[b.jsxDEV("div",{className:"w-48 shrink-0 border-r border-surface-border overflow-y-auto py-2",children:u!=null&&u.docs?b.jsxDEV(I4,{docs:u.docs,selected:le,onSelect:k},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:152,columnNumber:15},this):b.jsxDEV("div",{className:"px-3 py-2 text-xs text-text-tertiary",children:"Loading..."},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:154,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:150,columnNumber:11},this),b.jsxDEV("div",{ref:g,className:"flex-1 overflow-y-auto px-6 py-4",children:le?m?b.jsxDEV("div",{className:"animate-pulse space-y-2",children:[b.jsxDEV("div",{className:"h-6 bg-surface-sunken rounded w-48"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:167,columnNumber:17},this),b.jsxDEV("div",{className:"h-4 bg-surface-sunken rounded w-full"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:168,columnNumber:17},this),b.jsxDEV("div",{className:"h-4 bg-surface-sunken rounded w-3/4"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:169,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:166,columnNumber:15},this):p!=null&&p.content?b.jsxDEV(H4,{content:p.content,currentPath:le,onNavigate:q,onAnchorClick:W},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:172,columnNumber:15},this):b.jsxDEV("p",{className:"text-xs text-text-tertiary",children:"Document not found."},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:179,columnNumber:15},this):b.jsxDEV("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:[b.jsxDEV(QE,{className:"w-5 h-5 mb-2"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:162,columnNumber:17},this),b.jsxDEV("p",{className:"text-xs",children:"Select a document"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:163,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:161,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:159,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:148,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:119,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/DocsDrawer.tsx",lineNumber:111,columnNumber:5},this)}function Y4(r){if(r.includes("/escalations"))return["escalation","human-queue"]}const $w=2e3;function G4(r){const a=r.filter(u=>!u.pending).slice(-8);return a.length===0?"":`[Prior conversation]
275
- ${a.map(u=>`${u.role==="user"?"User":"Assistant"}: ${u.content}`).join(`
276
- `)}
277
- [End prior conversation]
278
-
279
- `}function J4(r){const s=r.summary,a=r.title;if(s){const o=s.search(/\n\s*\{[\s\S]*"title"\s*:/);return o>0?s.slice(0,o).trim():s}return a||(typeof r=="string"?r:"Query completed.")}const i_=R.createContext(null);function Q4({children:r}){const s=ci(),[a,o]=R.useState(!1),[u,d]=R.useState([]),[p,m]=R.useState(null),[g,x]=R.useState({}),S=R.useRef(null),E={page:s.pathname.split("/").filter(Boolean).join("-")||"home",route:s.pathname,params:{},...g,suggestedTags:g.suggestedTags??Y4(s.pathname)};R.useEffect(()=>()=>{S.current&&clearInterval(S.current)},[]);const D=R.useCallback(()=>o(W=>!W),[]),q=R.useCallback(W=>{x(W)},[]),k=R.useCallback(()=>{d([]),m(null)},[]),L=R.useCallback(async W=>{var J;const te=new Date().toISOString(),Ne={id:`user-${Date.now()}`,role:"user",content:W,timestamp:te},le={id:`pending-${Date.now()}`,role:"assistant",content:"",timestamp:te,pending:!0};d(Q=>[...Q,Ne,le]);const V={...E};(J=V.entities)!=null&&J.yamlContent&&V.entities.yamlContent.length>$w&&(V.entities={...V.entities,yamlContent:V.entities.yamlContent.slice(0,$w)+`
280
- ... (truncated)`});const fe=`${G4(u.concat(Ne))}${W}`;try{const H=(await it("/insight/mcp-query",{method:"POST",body:JSON.stringify({prompt:fe,tags:V.suggestedTags,context:V,wait:!1,direct:!0})})).workflow_id;m(H),d(oe=>oe.map(ae=>ae.id===le.id?{...ae,workflowId:H}:ae)),S.current&&clearInterval(S.current),S.current=setInterval(async()=>{var oe;try{const ae=await it(`/workflows/${H}/result`),ge=(oe=ae==null?void 0:ae.result)==null?void 0:oe.data;if(ge){S.current&&clearInterval(S.current),S.current=null,m(null);const Fe=J4(ge);let Xe;try{Xe=(await it(`/workflow-states/${H}/execution`)).duration_ms}catch{}d(re=>re.map(be=>be.id===le.id?{...be,content:Fe,timestamp:new Date().toISOString(),pending:!1,durationMs:Xe}:be))}}catch{}},3e3)}catch{d(Q=>Q.map(H=>H.id===le.id?{...H,content:"Failed to submit query. Please try again.",pending:!1}:H))}},[u,E]),I=R.useCallback(async W=>{const te=u.find(V=>V.id===W);if(!(te!=null&&te.workflowId)||te.compilationStatus==="compiling"||te.compilationStatus==="done")return;const Ne=u.indexOf(te),le=u.slice(0,Ne).reverse().find(V=>V.role==="user");if(le){d(V=>V.map(ne=>ne.id===W?{...ne,compilationStatus:"compiling"}:ne));try{const V=await it("/insight/mcp-query/describe",{method:"POST",body:JSON.stringify({prompt:le.content,summary:te.content})}),ne=await it("/yaml-workflows",{method:"POST",body:JSON.stringify({workflow_id:te.workflowId,task_queue:"long-tail-system",workflow_name:"mcpQuery",name:V.tool_name,description:V.description,tags:V.tags,app_id:""})});await it(`/yaml-workflows/${ne.id}/deploy`,{method:"POST"}),d(fe=>fe.map(J=>J.id===W?{...J,compilationStatus:"done"}:J))}catch(V){const ne=V instanceof Error?V.message:"Compilation failed";d(fe=>fe.map(J=>J.id===W?{...J,compilationStatus:"error",compilationError:ne}:J))}}},[u]);return b.jsxDEV(i_.Provider,{value:{helpOpen:a,setHelpOpen:o,toggleHelp:D,messages:u,sendMessage:L,pageContext:E,setPageContext:q,activeWorkflowId:p,clearMessages:k,compileMessage:I},children:r},void 0,!1,{fileName:"/app/dashboard/src/hooks/useHelpAssistant.tsx",lineNumber:232,columnNumber:5},this)}function o_(){const r=R.useContext(i_);if(!r)throw new Error("useHelpAssistant must be used within HelpAssistantProvider");return r}function X4(){const{helpOpen:r,toggleHelp:s}=o_();return b.jsxDEV("button",{onClick:s,className:"fixed right-3 z-[45] flex items-center justify-center w-10 h-10 rounded-full bg-surface-raised shadow-lg hover:scale-110 transition-transform duration-150 border border-accent/30",style:{bottom:"44px"},"aria-label":r?"Close help":"Ask for help",children:r?b.jsxDEV(vh,{className:"w-5 h-5 text-text-tertiary",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpButton.tsx",lineNumber:17,columnNumber:9},this):b.jsxDEV("span",{role:"img","aria-label":"Help",className:"logo-mark w-8 h-8 -rotate-[120deg]",style:{"--logo-url":`url(${Kn}/logo512.png)`}},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpButton.tsx",lineNumber:19,columnNumber:9},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpButton.tsx",lineNumber:10,columnNumber:5},this)}const l_=6048e5,Z4=864e5,Iw=6e4,Fw=525600,Yw=43200,Gw=1440,Jw=Symbol.for("constructDateFrom");function or(r,s){return typeof r=="function"?r(s):r&&typeof r=="object"&&Jw in r?r[Jw](s):r instanceof Date?new r.constructor(s):new Date(s)}function ns(r,s){return or(s||r,r)}let K4={};function Tu(){return K4}function Su(r,s){var m,g,x,S;const a=Tu(),o=(s==null?void 0:s.weekStartsOn)??((g=(m=s==null?void 0:s.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??a.weekStartsOn??((S=(x=a.locale)==null?void 0:x.options)==null?void 0:S.weekStartsOn)??0,u=ns(r,s==null?void 0:s.in),d=u.getDay(),p=(d<o?7:0)+d-o;return u.setDate(u.getDate()-p),u.setHours(0,0,0,0),u}function yh(r,s){return Su(r,{...s,weekStartsOn:1})}function c_(r,s){const a=ns(r,s==null?void 0:s.in),o=a.getFullYear(),u=or(a,0);u.setFullYear(o+1,0,4),u.setHours(0,0,0,0);const d=yh(u),p=or(a,0);p.setFullYear(o,0,4),p.setHours(0,0,0,0);const m=yh(p);return a.getTime()>=d.getTime()?o+1:a.getTime()>=m.getTime()?o:o-1}function gh(r){const s=ns(r),a=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return a.setUTCFullYear(s.getFullYear()),+r-+a}function u_(r,...s){const a=or.bind(null,r||s.find(o=>typeof o=="object"));return s.map(a)}function Qw(r,s){const a=ns(r,s==null?void 0:s.in);return a.setHours(0,0,0,0),a}function W4(r,s,a){const[o,u]=u_(a==null?void 0:a.in,r,s),d=Qw(o),p=Qw(u),m=+d-gh(d),g=+p-gh(p);return Math.round((m-g)/Z4)}function ej(r,s){const a=c_(r,s),o=or(r,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),yh(o)}function tj(r,s){const a=+ns(r)-+ns(s);return a<0?-1:a>0?1:a}function nj(r){return or(r,Date.now())}function sj(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function aj(r){return!(!sj(r)&&typeof r!="number"||isNaN(+ns(r)))}function rj(r){return s=>{const o=(r?Math[r]:Math.trunc)(s);return o===0?0:o}}function ij(r,s){const a=ns(r,s==null?void 0:s.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}const oj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lj=(r,s,a)=>{let o;const u=oj[r];return typeof u=="string"?o=u:s===1?o=u.one:o=u.other.replace("{{count}}",s.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+o:o+" ago":o};function _0(r){return(s={})=>{const a=s.width?String(s.width):r.defaultWidth;return r.formats[a]||r.formats[r.defaultWidth]}}const cj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dj={date:_0({formats:cj,defaultWidth:"full"}),time:_0({formats:uj,defaultWidth:"full"}),dateTime:_0({formats:fj,defaultWidth:"full"})},hj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mj=(r,s,a,o)=>hj[r];function cu(r){return(s,a)=>{const o=a!=null&&a.context?String(a.context):"standalone";let u;if(o==="formatting"&&r.formattingValues){const p=r.defaultFormattingWidth||r.defaultWidth,m=a!=null&&a.width?String(a.width):p;u=r.formattingValues[m]||r.formattingValues[p]}else{const p=r.defaultWidth,m=a!=null&&a.width?String(a.width):r.defaultWidth;u=r.values[m]||r.values[p]}const d=r.argumentCallback?r.argumentCallback(s):s;return u[d]}}const pj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},vj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},xj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Nj=(r,s)=>{const a=Number(r),o=a%100;if(o>20||o<10)switch(o%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ej={ordinalNumber:Nj,era:cu({values:pj,defaultWidth:"wide"}),quarter:cu({values:bj,defaultWidth:"wide",argumentCallback:r=>r-1}),month:cu({values:yj,defaultWidth:"wide"}),day:cu({values:gj,defaultWidth:"wide"}),dayPeriod:cu({values:vj,defaultWidth:"wide",formattingValues:xj,defaultFormattingWidth:"wide"})};function uu(r){return(s,a={})=>{const o=a.width,u=o&&r.matchPatterns[o]||r.matchPatterns[r.defaultMatchWidth],d=s.match(u);if(!d)return null;const p=d[0],m=o&&r.parsePatterns[o]||r.parsePatterns[r.defaultParseWidth],g=Array.isArray(m)?Sj(m,E=>E.test(p)):wj(m,E=>E.test(p));let x;x=r.valueCallback?r.valueCallback(g):g,x=a.valueCallback?a.valueCallback(x):x;const S=s.slice(p.length);return{value:x,rest:S}}}function wj(r,s){for(const a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&s(r[a]))return a}function Sj(r,s){for(let a=0;a<r.length;a++)if(s(r[a]))return a}function _j(r){return(s,a={})=>{const o=s.match(r.matchPattern);if(!o)return null;const u=o[0],d=s.match(r.parsePattern);if(!d)return null;let p=r.valueCallback?r.valueCallback(d[0]):d[0];p=a.valueCallback?a.valueCallback(p):p;const m=s.slice(u.length);return{value:p,rest:m}}}const Aj=/^(\d+)(th|st|nd|rd)?/i,Dj=/\d+/i,Tj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Cj={any:[/^b/i,/^(a|c)/i]},Oj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jj={any:[/1/i,/2/i,/3/i,/4/i]},Rj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Uj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bj={ordinalNumber:_j({matchPattern:Aj,parsePattern:Dj,valueCallback:r=>parseInt(r,10)}),era:uu({matchPatterns:Tj,defaultMatchWidth:"wide",parsePatterns:Cj,defaultParseWidth:"any"}),quarter:uu({matchPatterns:Oj,defaultMatchWidth:"wide",parsePatterns:jj,defaultParseWidth:"any",valueCallback:r=>r+1}),month:uu({matchPatterns:Rj,defaultMatchWidth:"wide",parsePatterns:Mj,defaultParseWidth:"any"}),day:uu({matchPatterns:kj,defaultMatchWidth:"wide",parsePatterns:Vj,defaultParseWidth:"any"}),dayPeriod:uu({matchPatterns:Uj,defaultMatchWidth:"any",parsePatterns:zj,defaultParseWidth:"any"})},f_={code:"en-US",formatDistance:lj,formatLong:dj,formatRelative:mj,localize:Ej,match:Bj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qj(r,s){const a=ns(r,s==null?void 0:s.in);return W4(a,ij(a))+1}function Lj(r,s){const a=ns(r,s==null?void 0:s.in),o=+yh(a)-+ej(a);return Math.round(o/l_)+1}function d_(r,s){var S,E,D,q;const a=ns(r,s==null?void 0:s.in),o=a.getFullYear(),u=Tu(),d=(s==null?void 0:s.firstWeekContainsDate)??((E=(S=s==null?void 0:s.locale)==null?void 0:S.options)==null?void 0:E.firstWeekContainsDate)??u.firstWeekContainsDate??((q=(D=u.locale)==null?void 0:D.options)==null?void 0:q.firstWeekContainsDate)??1,p=or((s==null?void 0:s.in)||r,0);p.setFullYear(o+1,0,d),p.setHours(0,0,0,0);const m=Su(p,s),g=or((s==null?void 0:s.in)||r,0);g.setFullYear(o,0,d),g.setHours(0,0,0,0);const x=Su(g,s);return+a>=+m?o+1:+a>=+x?o:o-1}function Pj(r,s){var m,g,x,S;const a=Tu(),o=(s==null?void 0:s.firstWeekContainsDate)??((g=(m=s==null?void 0:s.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??a.firstWeekContainsDate??((S=(x=a.locale)==null?void 0:x.options)==null?void 0:S.firstWeekContainsDate)??1,u=d_(r,s),d=or((s==null?void 0:s.in)||r,0);return d.setFullYear(u,0,o),d.setHours(0,0,0,0),Su(d,s)}function Hj(r,s){const a=ns(r,s==null?void 0:s.in),o=+Su(a,s)-+Pj(a,s);return Math.round(o/l_)+1}function ut(r,s){const a=r<0?"-":"",o=Math.abs(r).toString().padStart(s,"0");return a+o}const ei={y(r,s){const a=r.getFullYear(),o=a>0?a:1-a;return ut(s==="yy"?o%100:o,s.length)},M(r,s){const a=r.getMonth();return s==="M"?String(a+1):ut(a+1,2)},d(r,s){return ut(r.getDate(),s.length)},a(r,s){const a=r.getHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(r,s){return ut(r.getHours()%12||12,s.length)},H(r,s){return ut(r.getHours(),s.length)},m(r,s){return ut(r.getMinutes(),s.length)},s(r,s){return ut(r.getSeconds(),s.length)},S(r,s){const a=s.length,o=r.getMilliseconds(),u=Math.trunc(o*Math.pow(10,a-3));return ut(u,s.length)}},ul={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xw={G:function(r,s,a){const o=r.getFullYear()>0?1:0;switch(s){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})}},y:function(r,s,a){if(s==="yo"){const o=r.getFullYear(),u=o>0?o:1-o;return a.ordinalNumber(u,{unit:"year"})}return ei.y(r,s)},Y:function(r,s,a,o){const u=d_(r,o),d=u>0?u:1-u;if(s==="YY"){const p=d%100;return ut(p,2)}return s==="Yo"?a.ordinalNumber(d,{unit:"year"}):ut(d,s.length)},R:function(r,s){const a=c_(r);return ut(a,s.length)},u:function(r,s){const a=r.getFullYear();return ut(a,s.length)},Q:function(r,s,a){const o=Math.ceil((r.getMonth()+1)/3);switch(s){case"Q":return String(o);case"QQ":return ut(o,2);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})}},q:function(r,s,a){const o=Math.ceil((r.getMonth()+1)/3);switch(s){case"q":return String(o);case"qq":return ut(o,2);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})}},M:function(r,s,a){const o=r.getMonth();switch(s){case"M":case"MM":return ei.M(r,s);case"Mo":return a.ordinalNumber(o+1,{unit:"month"});case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})}},L:function(r,s,a){const o=r.getMonth();switch(s){case"L":return String(o+1);case"LL":return ut(o+1,2);case"Lo":return a.ordinalNumber(o+1,{unit:"month"});case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})}},w:function(r,s,a,o){const u=Hj(r,o);return s==="wo"?a.ordinalNumber(u,{unit:"week"}):ut(u,s.length)},I:function(r,s,a){const o=Lj(r);return s==="Io"?a.ordinalNumber(o,{unit:"week"}):ut(o,s.length)},d:function(r,s,a){return s==="do"?a.ordinalNumber(r.getDate(),{unit:"date"}):ei.d(r,s)},D:function(r,s,a){const o=qj(r);return s==="Do"?a.ordinalNumber(o,{unit:"dayOfYear"}):ut(o,s.length)},E:function(r,s,a){const o=r.getDay();switch(s){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})}},e:function(r,s,a,o){const u=r.getDay(),d=(u-o.weekStartsOn+8)%7||7;switch(s){case"e":return String(d);case"ee":return ut(d,2);case"eo":return a.ordinalNumber(d,{unit:"day"});case"eee":return a.day(u,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(u,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(u,{width:"short",context:"formatting"});case"eeee":default:return a.day(u,{width:"wide",context:"formatting"})}},c:function(r,s,a,o){const u=r.getDay(),d=(u-o.weekStartsOn+8)%7||7;switch(s){case"c":return String(d);case"cc":return ut(d,s.length);case"co":return a.ordinalNumber(d,{unit:"day"});case"ccc":return a.day(u,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(u,{width:"narrow",context:"standalone"});case"cccccc":return a.day(u,{width:"short",context:"standalone"});case"cccc":default:return a.day(u,{width:"wide",context:"standalone"})}},i:function(r,s,a){const o=r.getDay(),u=o===0?7:o;switch(s){case"i":return String(u);case"ii":return ut(u,s.length);case"io":return a.ordinalNumber(u,{unit:"day"});case"iii":return a.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(o,{width:"short",context:"formatting"});case"iiii":default:return a.day(o,{width:"wide",context:"formatting"})}},a:function(r,s,a){const u=r.getHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(u,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(u,{width:"wide",context:"formatting"})}},b:function(r,s,a){const o=r.getHours();let u;switch(o===12?u=ul.noon:o===0?u=ul.midnight:u=o/12>=1?"pm":"am",s){case"b":case"bb":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(u,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(u,{width:"wide",context:"formatting"})}},B:function(r,s,a){const o=r.getHours();let u;switch(o>=17?u=ul.evening:o>=12?u=ul.afternoon:o>=4?u=ul.morning:u=ul.night,s){case"B":case"BB":case"BBB":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(u,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(u,{width:"wide",context:"formatting"})}},h:function(r,s,a){if(s==="ho"){let o=r.getHours()%12;return o===0&&(o=12),a.ordinalNumber(o,{unit:"hour"})}return ei.h(r,s)},H:function(r,s,a){return s==="Ho"?a.ordinalNumber(r.getHours(),{unit:"hour"}):ei.H(r,s)},K:function(r,s,a){const o=r.getHours()%12;return s==="Ko"?a.ordinalNumber(o,{unit:"hour"}):ut(o,s.length)},k:function(r,s,a){let o=r.getHours();return o===0&&(o=24),s==="ko"?a.ordinalNumber(o,{unit:"hour"}):ut(o,s.length)},m:function(r,s,a){return s==="mo"?a.ordinalNumber(r.getMinutes(),{unit:"minute"}):ei.m(r,s)},s:function(r,s,a){return s==="so"?a.ordinalNumber(r.getSeconds(),{unit:"second"}):ei.s(r,s)},S:function(r,s){return ei.S(r,s)},X:function(r,s,a){const o=r.getTimezoneOffset();if(o===0)return"Z";switch(s){case"X":return Kw(o);case"XXXX":case"XX":return Ki(o);case"XXXXX":case"XXX":default:return Ki(o,":")}},x:function(r,s,a){const o=r.getTimezoneOffset();switch(s){case"x":return Kw(o);case"xxxx":case"xx":return Ki(o);case"xxxxx":case"xxx":default:return Ki(o,":")}},O:function(r,s,a){const o=r.getTimezoneOffset();switch(s){case"O":case"OO":case"OOO":return"GMT"+Zw(o,":");case"OOOO":default:return"GMT"+Ki(o,":")}},z:function(r,s,a){const o=r.getTimezoneOffset();switch(s){case"z":case"zz":case"zzz":return"GMT"+Zw(o,":");case"zzzz":default:return"GMT"+Ki(o,":")}},t:function(r,s,a){const o=Math.trunc(+r/1e3);return ut(o,s.length)},T:function(r,s,a){return ut(+r,s.length)}};function Zw(r,s=""){const a=r>0?"-":"+",o=Math.abs(r),u=Math.trunc(o/60),d=o%60;return d===0?a+String(u):a+String(u)+s+ut(d,2)}function Kw(r,s){return r%60===0?(r>0?"-":"+")+ut(Math.abs(r)/60,2):Ki(r,s)}function Ki(r,s=""){const a=r>0?"-":"+",o=Math.abs(r),u=ut(Math.trunc(o/60),2),d=ut(o%60,2);return a+u+s+d}const Ww=(r,s)=>{switch(r){case"P":return s.date({width:"short"});case"PP":return s.date({width:"medium"});case"PPP":return s.date({width:"long"});case"PPPP":default:return s.date({width:"full"})}},h_=(r,s)=>{switch(r){case"p":return s.time({width:"short"});case"pp":return s.time({width:"medium"});case"ppp":return s.time({width:"long"});case"pppp":default:return s.time({width:"full"})}},$j=(r,s)=>{const a=r.match(/(P+)(p+)?/)||[],o=a[1],u=a[2];if(!u)return Ww(r,s);let d;switch(o){case"P":d=s.dateTime({width:"short"});break;case"PP":d=s.dateTime({width:"medium"});break;case"PPP":d=s.dateTime({width:"long"});break;case"PPPP":default:d=s.dateTime({width:"full"});break}return d.replace("{{date}}",Ww(o,s)).replace("{{time}}",h_(u,s))},Ij={p:h_,P:$j},Fj=/^D+$/,Yj=/^Y+$/,Gj=["D","DD","YY","YYYY"];function Jj(r){return Fj.test(r)}function Qj(r){return Yj.test(r)}function Xj(r,s,a){const o=Zj(r,s,a);if(console.warn(o),Gj.includes(r))throw new RangeError(o)}function Zj(r,s,a){const o=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${s}\`) for formatting ${o} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Kj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Wj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eR=/^'([^]*?)'?$/,tR=/''/g,nR=/[a-zA-Z]/;function vy(r,s,a){var S,E,D,q;const o=Tu(),u=o.locale??f_,d=o.firstWeekContainsDate??((E=(S=o.locale)==null?void 0:S.options)==null?void 0:E.firstWeekContainsDate)??1,p=o.weekStartsOn??((q=(D=o.locale)==null?void 0:D.options)==null?void 0:q.weekStartsOn)??0,m=ns(r,a==null?void 0:a.in);if(!aj(m))throw new RangeError("Invalid time value");let g=s.match(Wj).map(k=>{const L=k[0];if(L==="p"||L==="P"){const I=Ij[L];return I(k,u.formatLong)}return k}).join("").match(Kj).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const L=k[0];if(L==="'")return{isToken:!1,value:sR(k)};if(Xw[L])return{isToken:!0,value:k};if(L.match(nR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return{isToken:!1,value:k}});u.localize.preprocessor&&(g=u.localize.preprocessor(m,g));const x={firstWeekContainsDate:d,weekStartsOn:p,locale:u};return g.map(k=>{if(!k.isToken)return k.value;const L=k.value;(Qj(L)||Jj(L))&&Xj(L,s,String(r));const I=Xw[L[0]];return I(m,L,u.localize,x)}).join("")}function sR(r){const s=r.match(eR);return s?s[1].replace(tR,"'"):r}function aR(r,s,a){const o=Tu(),u=(a==null?void 0:a.locale)??o.locale??f_,d=tj(r,s);if(isNaN(d))throw new RangeError("Invalid time value");const p=Object.assign({},a,{addSuffix:a==null?void 0:a.addSuffix,comparison:d}),[m,g]=u_(a==null?void 0:a.in,...d>0?[s,r]:[r,s]),x=rj((a==null?void 0:a.roundingMethod)??"round"),S=g.getTime()-m.getTime(),E=S/Iw,D=gh(g)-gh(m),q=(S-D)/Iw,k=a==null?void 0:a.unit;let L;if(k?L=k:E<1?L="second":E<60?L="minute":E<Gw?L="hour":q<Yw?L="day":q<Fw?L="month":L="year",L==="second"){const I=x(S/1e3);return u.formatDistance("xSeconds",I,p)}else if(L==="minute"){const I=x(E);return u.formatDistance("xMinutes",I,p)}else if(L==="hour"){const I=x(E/60);return u.formatDistance("xHours",I,p)}else if(L==="day"){const I=x(q/Gw);return u.formatDistance("xDays",I,p)}else if(L==="month"){const I=x(q/Yw);return I===12&&k!=="month"?u.formatDistance("xYears",1,p):u.formatDistance("xMonths",I,p)}else{const I=x(q/Fw);return u.formatDistance("xYears",I,p)}}function rR(r,s){return aR(r,nj(r),s)}function z6(r){return r.toLocaleString()}function B6(r){return r>=1e9?`${(r/1e9).toFixed(1).replace(/\.0$/,"")}B`:r>=1e6?`${(r/1e6).toFixed(1).replace(/\.0$/,"")}M`:r>=1e4?`${(r/1e3).toFixed(1).replace(/\.0$/,"")}K`:r.toLocaleString()}function iR(r){const s=new Date(r);return s.getTime()>Date.now()?"just now":rR(s,{addSuffix:!0})}function q6(r){const s=Date.now()-new Date(r).getTime();if(s<0)return"now";const a=Math.floor(s/1e3);if(a<60)return`${a}s`;const o=Math.floor(a/60);if(o<60)return`${o}m`;const u=Math.floor(o/60);if(u<24)return`${u}h`;const d=Math.floor(u/24);return d<7?`${d}d`:d<30?`${Math.floor(d/7)}w`:d<365?`${Math.floor(d/30)}mo`:`${Math.floor(d/365)}y`}function L6(r){return r<=0?"Expired":xy(r)}function oR(r){return r==null?"--":xy(r)}function P6(r){return r?vy(new Date(r),"MMM d, yyyy h:mm a"):"--"}function xy(r){if(r<1e3)return`${Math.round(r)}ms`;if(r<6e4){const p=r/1e3;return Number.isInteger(p)?`${p}s`:`${p.toFixed(1)}s`}const s=Math.floor(r/1e3),a=Math.floor(s/86400),o=Math.floor(s%86400/3600),u=Math.floor(s%3600/60),d=s%60;return a>0?o>0?`${a}d ${o}h`:`${a}d`:o>0?u>0?`${o}h ${u}m`:`${o}h`:d>0?`${u}m ${d}s`:`${u}m`}function H6(r,s){const a=new Date(r).getTime(),o=s?new Date(s).getTime():Date.now();return xy(o-a)}function m_({options:r,children:s,className:a=""}){const[o,u]=R.useState(!1),[d,p]=R.useState(null),[m,g]=R.useState(null),x=R.useRef(null),S=R.useRef(void 0),E=R.useRef(void 0),D=220,q=R.useCallback(()=>{if(!x.current)return;const W=x.current.getBoundingClientRect(),te=window.innerWidth-D-8,Ne=Math.max(8,Math.min(W.left,te));g({top:W.bottom+4,left:Ne})},[]),k=R.useCallback(async(W,te)=>{try{await navigator.clipboard.writeText(W),p(te),clearTimeout(S.current),S.current=setTimeout(()=>p(null),1200)}catch{}},[]),L=R.useCallback(()=>{clearTimeout(E.current),q(),u(!0)},[q]),I=R.useCallback(()=>{E.current=setTimeout(()=>u(!1),150)},[]);return R.useEffect(()=>()=>{clearTimeout(S.current),clearTimeout(E.current)},[]),b.jsxDEV("span",{ref:x,className:`inline-flex items-center cursor-default ${a}`,onMouseEnter:L,onMouseLeave:I,children:[s,o&&m&&lS.createPortal(b.jsxDEV("span",{className:"fixed z-[9999] bg-surface-raised border border-surface-border rounded shadow-lg py-1 min-w-[180px]",style:{top:m.top,left:m.left},onMouseEnter:L,onMouseLeave:I,children:r.map(W=>b.jsxDEV("button",{onClick:te=>{te.stopPropagation(),k(W.value,W.label)},className:"flex items-center justify-between w-full px-2.5 py-1 text-left hover:bg-surface-hover transition-colors",children:[b.jsxDEV("span",{className:"text-[9px] font-medium uppercase tracking-wider text-text-tertiary w-10 shrink-0",children:W.label},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DateTooltip.tsx",lineNumber:85,columnNumber:15},this),b.jsxDEV("span",{className:"text-[10px] font-mono text-text-secondary truncate ml-2",children:d===W.label?"✓":W.value},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DateTooltip.tsx",lineNumber:88,columnNumber:15},this)]},W.label,!0,{fileName:"/app/dashboard/src/components/common/display/DateTooltip.tsx",lineNumber:80,columnNumber:13},this))},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DateTooltip.tsx",lineNumber:73,columnNumber:9},this),document.body)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/DateTooltip.tsx",lineNumber:65,columnNumber:5},this)}function lR(r,s){const a=new Date(r);switch(s){case"relative":return iR(r);case"datetime":return vy(a,"MMM d, yyyy h:mm a");case"time":return a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}}function cR(r){const s=new Date(r);return[{label:"ms",value:String(s.getTime())},{label:"utc",value:s.toISOString()},{label:"local",value:vy(s,"MMM d, yyyy h:mm:ss a")}]}function uR({date:r,format:s="relative",className:a=""}){const[,o]=R.useState(0);R.useEffect(()=>{if(s!=="relative")return;const d=setInterval(()=>o(p=>p+1),3e4);return()=>clearInterval(d)},[s]);const u=R.useMemo(()=>cR(r),[r]);return b.jsxDEV(m_,{options:u,children:b.jsxDEV("time",{dateTime:r,className:`text-xs text-text-tertiary ${a}`,children:lR(r,s)},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DateValue.tsx",lineNumber:56,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DateValue.tsx",lineNumber:55,columnNumber:5},this)}function fR({ms:r,className:s=""}){const a=oR(r),o=R.useMemo(()=>r==null?[]:[{label:"ms",value:String(r)},{label:"sec",value:`${(r/1e3).toFixed(3)}s`},{label:"text",value:a}],[r,a]);return r==null?b.jsxDEV("span",{className:`text-xs text-text-tertiary ${s}`,children:"--"},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DurationValue.tsx",lineNumber:29,columnNumber:12},this):b.jsxDEV(m_,{options:o,children:b.jsxDEV("span",{className:`text-xs text-text-tertiary ${s}`,children:a},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DurationValue.tsx",lineNumber:34,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/DurationValue.tsx",lineNumber:33,columnNumber:5},this)}const dR=["sm","md","lg","full"],eS={sm:"w-[28rem] max-h-[40vh]",md:"w-[36rem] max-h-[60vh]",lg:"w-[48rem] max-h-[80vh]",full:"inset-4 w-auto max-h-none"},tS={sm:"Small",md:"Medium",lg:"Large",full:"Fullscreen"};function hR({which:r}){const s="stroke-current";switch(r){case"sm":return b.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:b.jsxDEV("rect",{x:"5",y:"5",width:"7",height:"7",rx:"1.5",className:s,strokeWidth:"1.5"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:30,columnNumber:75},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:30,columnNumber:15},this);case"md":return b.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:b.jsxDEV("rect",{x:"3",y:"3",width:"9",height:"9",rx:"1.5",className:s,strokeWidth:"1.5"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:32,columnNumber:75},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:32,columnNumber:15},this);case"lg":return b.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:b.jsxDEV("rect",{x:"1.5",y:"1.5",width:"11",height:"11",rx:"1.5",className:s,strokeWidth:"1.5"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:34,columnNumber:75},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:34,columnNumber:15},this);case"full":return b.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:b.jsxDEV("rect",{x:"0.75",y:"0.75",width:"12.5",height:"12.5",rx:"1.5",className:s,strokeWidth:"1.5"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:36,columnNumber:75},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:36,columnNumber:15},this)}}function mR({msg:r}){const[s,a]=R.useState(0);R.useEffect(()=>{const p=new Date(r.timestamp).getTime(),m=()=>a(Math.floor((Date.now()-p)/1e3));m();const g=setInterval(m,1e3);return()=>clearInterval(g)},[r.timestamp]);const o=Math.floor(s/60),u=s%60,d=o>0?`${o}m ${u}s`:`${u}s`;return b.jsxDEV("span",{className:"inline-flex flex-col gap-1.5",children:[b.jsxDEV("span",{className:"inline-flex items-center gap-1",children:[b.jsxDEV("span",{className:"text-text-tertiary",children:"Thinking"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:60,columnNumber:9},this),b.jsxDEV("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:61,columnNumber:9},this),b.jsxDEV("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:150ms]"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:62,columnNumber:9},this),b.jsxDEV("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:300ms]"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:63,columnNumber:9},this),b.jsxDEV("span",{className:"text-text-muted ml-1 tabular-nums",children:d},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:64,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:59,columnNumber:7},this),r.workflowId&&b.jsxDEV(fl,{to:`/workflows/executions/${r.workflowId}`,className:"inline-flex items-center gap-1 text-[10px] text-accent/70 hover:text-accent transition-colors",children:[b.jsxDEV(ey,{className:"w-2.5 h-2.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:71,columnNumber:11},this),"watch execution"]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:67,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:58,columnNumber:5},this)}function pR({msg:r,compileMessage:s}){const a=r.role==="assistant";return b.jsxDEV("div",{className:`flex items-center gap-1.5 ${a?"justify-start":"justify-end"}`,children:[b.jsxDEV(uR,{date:r.timestamp,format:"time",className:"!text-[9px] text-text-muted/50"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:85,columnNumber:7},this),r.durationMs!=null&&b.jsxDEV(b.Fragment,{children:[b.jsxDEV("span",{className:"text-text-muted/30 text-[8px]",children:"·"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:88,columnNumber:11},this),b.jsxDEV(fR,{ms:r.durationMs,className:"!text-[9px] text-text-muted/50"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:89,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:87,columnNumber:9},this),r.workflowId&&b.jsxDEV(fl,{to:`/workflows/executions/${r.workflowId}`,className:"text-text-muted/40 hover:text-accent transition-colors",title:"View workflow execution",children:b.jsxDEV(ey,{className:"w-2.5 h-2.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:98,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:93,columnNumber:9},this),a&&r.workflowId&&!r.pending&&b.jsxDEV("button",{onClick:()=>s(r.id),disabled:r.compilationStatus==="compiling"||r.compilationStatus==="done",className:"transition-colors",title:r.compilationStatus==="done"?"Compiled — future queries will match this pipeline":r.compilationStatus==="error"?r.compilationError??"Compilation failed":r.compilationStatus==="compiling"?"Compiling...":"Compile to fast pipeline",children:b.jsxDEV(_T,{className:`w-2.5 h-2.5 ${r.compilationStatus==="done"?"text-status-success":r.compilationStatus==="error"?"text-status-error":r.compilationStatus==="compiling"?"text-accent/40 animate-pulse":"text-text-muted/40 hover:text-accent"}`,strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:116,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:102,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/help-panel-messages.tsx",lineNumber:84,columnNumber:5},this)}function bR(){const{helpOpen:r,setHelpOpen:s,messages:a,sendMessage:o,pageContext:u,activeWorkflowId:d,clearMessages:p,compileMessage:m}=o_(),[g,x]=R.useState(""),[S,E]=R.useState("md"),[D,q]=R.useState(!0),k=R.useRef(null),L=R.useRef(null);if(R.useEffect(()=>{k.current&&(k.current.scrollTop=k.current.scrollHeight)},[a]),R.useEffect(()=>{r&&L.current&&L.current.focus()},[r]),R.useEffect(()=>{if(!r)return;const V=ne=>{ne.key==="Escape"&&(S==="full"?E("lg"):S==="lg"?E("md"):S==="md"?E("sm"):s(!1))};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[r,S,s]),!r)return null;const I=()=>{const V=g.trim();!V||d||(o(V),x(""),L.current&&(L.current.style.height="auto"))},W=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),I())},te=S==="full",Ne=u.page.replace(/-/g," "),le=te?{}:{bottom:"108px"};return b.jsxDEV("div",{className:`fixed z-[45] flex flex-col border border-surface-border rounded-lg overflow-hidden transition-all duration-300 ${te?eS.full:`right-6 ${eS[S]}`} ${D?"bg-surface-raised shadow-xl":"bg-surface-raised/[0.03] shadow-lg shadow-black/5"}`,style:le,onMouseEnter:()=>q(!0),onMouseLeave:()=>q(!1),children:[b.jsxDEV("div",{className:`flex items-center justify-between px-4 py-2.5 border-b border-surface-border shrink-0 transition-all duration-300 ${D?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[b.jsxDEV("div",{className:"min-w-0 flex-1",children:[b.jsxDEV("p",{className:"text-xs font-medium text-text-primary truncate",children:"Help Assistant"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:94,columnNumber:11},this),b.jsxDEV("p",{className:"text-[10px] text-text-tertiary truncate",children:Ne},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:95,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:93,columnNumber:9},this),b.jsxDEV("div",{className:"flex items-center gap-1 ml-2",children:[b.jsxDEV("div",{className:"flex items-center gap-0.5 border border-surface-border rounded p-0.5",role:"radiogroup","aria-label":"Panel size",children:dR.map(V=>b.jsxDEV("button",{onClick:()=>E(V),className:`p-1 rounded transition-colors ${V===S?"bg-accent/15 text-accent":"text-text-muted hover:text-text-secondary hover:bg-surface-hover"}`,role:"radio","aria-checked":V===S,"aria-label":tS[V],title:tS[V],children:b.jsxDEV(hR,{which:V},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:113,columnNumber:17},this)},V,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:100,columnNumber:15},this))},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:98,columnNumber:11},this),a.length>0&&b.jsxDEV("button",{onClick:p,className:"p-1 text-text-tertiary hover:text-text-secondary transition-colors","aria-label":"Clear conversation",title:"Clear conversation",children:b.jsxDEV(AT,{className:"w-3.5 h-3.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:124,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:118,columnNumber:13},this),b.jsxDEV("button",{onClick:()=>s(!1),className:"p-1 text-text-tertiary hover:text-text-primary transition-colors","aria-label":"Close",title:"Close",children:b.jsxDEV(vh,{className:"w-3.5 h-3.5",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:133,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:127,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:97,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:90,columnNumber:7},this),b.jsxDEV("div",{ref:k,className:`flex-1 overflow-y-auto px-4 py-3 space-y-3 min-h-[120px] transition-all duration-300 ${D?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[a.length===0&&b.jsxDEV("p",{className:"text-xs text-text-tertiary text-center py-6",children:"Ask anything about what you're viewing."},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:143,columnNumber:11},this),a.map(V=>b.jsxDEV("div",{className:`text-xs leading-relaxed ${V.role==="user"?"text-right":"text-left"}`,children:[b.jsxDEV("div",{className:`inline-block max-w-[85%] px-3 py-2 rounded-md whitespace-pre-wrap ${V.role==="user"?"bg-accent/10 text-text-primary":"bg-surface-sunken text-text-secondary"}`,children:V.pending?b.jsxDEV(mR,{msg:V},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:160,columnNumber:17},this):V.role==="assistant"?b.jsxDEV(gy,{content:V.content},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:162,columnNumber:17},this):V.content},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:152,columnNumber:13},this),!V.pending&&b.jsxDEV("div",{className:"mt-0.5",children:b.jsxDEV(pR,{msg:V,compileMessage:m},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:169,columnNumber:17},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:168,columnNumber:15},this)]},V.id,!0,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:148,columnNumber:11},this))]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:139,columnNumber:7},this),b.jsxDEV("div",{className:`border-t border-surface-border px-3 py-2.5 flex gap-2 shrink-0 transition-all duration-300 ${D?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[b.jsxDEV("textarea",{ref:L,value:g,onChange:V=>{x(V.target.value);const ne=V.target;ne.style.height="auto",ne.style.height=`${Math.min(ne.scrollHeight,120)}px`},onKeyDown:W,placeholder:"Ask a question...",rows:2,className:"flex-1 resize-none bg-surface text-xs text-text-primary placeholder:text-text-tertiary rounded px-2.5 py-1.5 border border-surface-border focus:outline-none focus:border-accent",style:{minHeight:"2.5rem"},disabled:!!d},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:180,columnNumber:9},this),b.jsxDEV("button",{onClick:I,disabled:!g.trim()||!!d,className:"px-2.5 py-1.5 text-accent hover:text-accent-hover disabled:text-text-muted transition-colors self-end","aria-label":"Send",children:b.jsxDEV(DT,{className:"w-4 h-4",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:202,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:196,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:177,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/HelpPanel.tsx",lineNumber:77,columnNumber:5},this)}function yR(){var k;const{isBuilder:r,isOps:s}=JS(),{data:a}=Ah(),o=!!((k=a==null?void 0:a.ai)!=null&&k.enabled),{collapsed:u,toggle:d}=XS(),[p,m]=R.useState(!1),[g,x]=R.useState(!1),[S,E]=R.useState(()=>window.location.hash.startsWith("#docs")),D=ci(),q=R.useRef(null);return R.useEffect(()=>{const L=q.current;L&&(L.classList.remove("animate-page-in"),L.offsetWidth,L.classList.add("animate-page-in"))},[D.pathname]),R.useEffect(()=>{const L=()=>{window.location.hash.startsWith("#docs")&&E(!0)};return window.addEventListener("hashchange",L),()=>window.removeEventListener("hashchange",L)},[]),b.jsxDEV("div",{className:"h-screen bg-surface flex flex-col",children:[b.jsxDEV(r4,{onToggleEventFeed:()=>m(L=>!L),onToggleDocs:()=>E(L=>!L)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:52,columnNumber:7},this),b.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[b.jsxDEV("aside",{className:`${u?"w-16":"w-60"} shrink-0 bg-surface-raised border-r border-surface-border flex flex-col transition-[width] duration-200 ease-out overflow-hidden relative z-20`,children:[b.jsxDEV("nav",{className:"flex-1 px-3 pt-[36px] pb-4 space-y-2 overflow-y-auto overflow-x-hidden",children:[b.jsxDEV(u4,{aiEnabled:o,isBuilder:r,isOps:s},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:64,columnNumber:13},this),r&&b.jsxDEV(f4,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:65,columnNumber:27},this),r&&o&&b.jsxDEV(h4,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:66,columnNumber:40},this),r&&b.jsxDEV(p4,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:67,columnNumber:27},this),(r||s)&&b.jsxDEV(b4,{isBuilder:r,isOps:s},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:68,columnNumber:38},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:63,columnNumber:11},this),b.jsxDEV("button",{onClick:d,className:`shrink-0 py-3 text-text-tertiary hover:text-text-secondary transition-colors duration-150 ${u?"flex justify-center":"flex items-center px-7"}`,"aria-label":u?"Expand sidebar":"Collapse sidebar",children:u?b.jsxDEV(TT,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:80,columnNumber:15},this):b.jsxDEV(CT,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:82,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:72,columnNumber:11},this),!u&&(a==null?void 0:a.environment)&&b.jsxDEV("div",{className:"shrink-0 px-5 pb-3 text-[10px] leading-tight text-text-tertiary whitespace-nowrap overflow-hidden text-ellipsis",title:`long-tail v${a.environment.longTailVersion} · HotMesh v${a.environment.hotmeshVersion} · Node ${a.environment.nodeVersion} · ${a.environment.nodeEnv}`,children:["long-tail v",a.environment.longTailVersion,b.jsxDEV("span",{className:"mx-1 text-surface-border",children:"·"},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:93,columnNumber:15},this),"HotMesh v",a.environment.hotmeshVersion]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:88,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:57,columnNumber:9},this),b.jsxDEV("main",{className:"flex-1 overflow-y-auto",children:b.jsxDEV("div",{ref:q,className:"max-w-dashboard mx-auto px-10 py-10 pb-16 animate-page-in h-full flex flex-col",children:b.jsxDEV(hl,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:102,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:101,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:100,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:55,columnNumber:7},this),b.jsxDEV(V4,{open:p,onToggle:()=>m(L=>!L),configOpen:g,onToggleConfig:()=>x(L=>!L)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:108,columnNumber:7},this),b.jsxDEV(F4,{open:S,onClose:()=>{E(!1),history.replaceState(null,"",window.location.pathname+window.location.search)}},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:109,columnNumber:7},this),o&&b.jsxDEV(X4,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:110,columnNumber:21},this),o&&b.jsxDEV(bR,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:111,columnNumber:21},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:50,columnNumber:5},this)}function gR(){const{isAuthenticated:r}=eo(),s=ci();return r?b.jsxDEV(K5,{children:b.jsxDEV(Q4,{children:b.jsxDEV(yR,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:127,columnNumber:9},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:126,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:125,columnNumber:5},this):b.jsxDEV(Na,{to:"/login",state:{from:s.pathname},replace:!0},void 0,!1,{fileName:"/app/dashboard/src/components/layout/Shell.tsx",lineNumber:121,columnNumber:12},this)}function p_({provider:r,className:s="w-5 h-5"}){switch(r){case"google":return b.jsxDEV("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:[b.jsxDEV("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:11,columnNumber:11},this),b.jsxDEV("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:12,columnNumber:11},this),b.jsxDEV("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:13,columnNumber:11},this),b.jsxDEV("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:14,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:10,columnNumber:9},this);case"github":return b.jsxDEV("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:b.jsxDEV("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:20,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:19,columnNumber:9},this);case"microsoft":return b.jsxDEV("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:[b.jsxDEV("path",{d:"M3 3h8.5v8.5H3z",fill:"#F25022"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:26,columnNumber:11},this),b.jsxDEV("path",{d:"M12.5 3H21v8.5h-8.5z",fill:"#7FBA00"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:27,columnNumber:11},this),b.jsxDEV("path",{d:"M3 12.5h8.5V21H3z",fill:"#00A4EF"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:28,columnNumber:11},this),b.jsxDEV("path",{d:"M12.5 12.5H21V21h-8.5z",fill:"#FFB900"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:29,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:25,columnNumber:9},this);case"anthropic":return b.jsxDEV("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:b.jsxDEV("path",{d:"M13.827 3.52h3.603L24 20.48h-3.603l-6.57-16.96zm-7.258 0h3.767L16.906 20.48h-3.674l-1.343-3.461H6.396l-1.34 3.461H1.5l5.07-16.96zm2.327 5.14l-2.065 5.326h4.108l-2.043-5.326z"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:35,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:34,columnNumber:9},this);default:return b.jsxDEV("svg",{className:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[b.jsxDEV("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:41,columnNumber:11},this),b.jsxDEV("path",{d:"M12 8v4l3 3"},void 0,!1,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/OAuthIcon.tsx",lineNumber:40,columnNumber:9},this)}}async function vR(){return it("/auth/oauth/providers")}async function xR(r,s){const a=s?`?label=${encodeURIComponent(s)}`:"";return it(`/auth/oauth/connections/${r}${a}`,{method:"DELETE"})}function $6(){return Ns({queryKey:["oauth-connections"],queryFn:()=>it("/auth/oauth/connections")})}function I6(){const r=ss();return Es({mutationFn:({provider:s,label:a})=>xR(s,a),onSuccess:()=>{r.invalidateQueries({queryKey:["oauth-connections"]})}})}function NR(){var fe;const{login:r,isAuthenticated:s}=eo(),a=cS(),o=ci(),u=new URLSearchParams(o.search),d=u.get("token"),p=u.get("error"),m=((fe=o.state)==null?void 0:fe.from)??u.get("returnTo")??"/",g=R.useRef(!1);d&&!g.current&&(g.current=!0,r(d,void 0,{displayName:u.get("displayName"),username:u.get("username")}));const[x,S]=R.useState(""),[E,D]=R.useState(""),[q,k]=R.useState(p||""),[L,I]=R.useState(!1),[W,te]=R.useState(!!d),[Ne,le]=R.useState([]),V=R.useRef(!1);if(R.useEffect(()=>{d||V.current||(V.current=!0,(async()=>{var J,Q,H,oe;try{const ae=await fetch(`${Kn}/api/settings`);if(!ae.ok)return;const ge=await ae.json();if(!((J=ge.auth)!=null&&J.sso))return;const Fe=await fetch(`${Kn}/api/auth/sso`,{method:"POST"});if(!Fe.ok){k("Host authentication required — please log in to your organization first");return}const Xe=await Fe.json();Xe.token&&((Q=ge.auth)!=null&&Q.ssoLogoutUrl&&sessionStorage.setItem("lt_sso_logout_url",ge.auth.ssoLogoutUrl),te(!0),r(Xe.token,void 0,{displayName:(H=Xe.user)==null?void 0:H.display_name,username:(oe=Xe.user)==null?void 0:oe.external_id}))}catch{}})())},[]),R.useEffect(()=>{d||vR().then(le).catch(()=>{})},[]),R.useEffect(()=>{if(!W)return;const J=setTimeout(()=>a(m,{replace:!0}),1500);return()=>clearTimeout(J)},[W]),s&&!W)return b.jsxDEV(Na,{to:m,replace:!0},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:93,columnNumber:12},this);const ne=async J=>{var Q,H;if(J.preventDefault(),k(""),!x.trim()||!E){k("Username and password are required");return}I(!0);try{const oe=await fetch(`${Kn}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:x.trim(),password:E})}),ae=await oe.json();if(!oe.ok){k(ae.error||"Login failed");return}te(!0),r(ae.token,{username:x.trim(),password:E},{displayName:(Q=ae.user)==null?void 0:Q.display_name,username:(H=ae.user)==null?void 0:H.external_id})}catch{k("Unable to connect to server")}finally{I(!1)}};return b.jsxDEV("div",{className:"min-h-screen bg-surface flex items-center justify-center overflow-hidden",children:b.jsxDEV("div",{className:"w-full max-w-md p-10",children:[b.jsxDEV("div",{className:`mb-10 transition-all duration-[1500ms] ease-in ${W?"translate-x-[120vw] -translate-y-[60vh] scale-[3] opacity-0":""}`,children:b.jsxDEV(by,{size:"lg",hideLabel:W},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:140,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:133,columnNumber:9},this),b.jsxDEV("form",{onSubmit:ne,className:`space-y-5 transition-opacity duration-300 ${W?"opacity-0":""}`,children:[b.jsxDEV("div",{children:[b.jsxDEV("label",{htmlFor:"username",className:"block text-sm font-medium text-text-secondary mb-2",children:"Username"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:148,columnNumber:13},this),b.jsxDEV("input",{id:"username",type:"text",value:x,onChange:J=>S(J.target.value),className:"input",placeholder:"Enter your username",autoFocus:!W,autoComplete:"username"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:154,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:147,columnNumber:11},this),b.jsxDEV("div",{children:[b.jsxDEV("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Password"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:167,columnNumber:13},this),b.jsxDEV("input",{id:"password",type:"password",value:E,onChange:J=>D(J.target.value),className:"input",placeholder:"Enter your password",autoComplete:"current-password"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:173,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:166,columnNumber:11},this),q&&b.jsxDEV("p",{className:"text-sm text-status-error",children:q},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:184,columnNumber:21},this),b.jsxDEV("button",{type:"submit",className:"btn-primary w-full",disabled:L||W,children:L?"Signing in...":"Sign In"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:186,columnNumber:11},this),Ne.length>0&&b.jsxDEV(b.Fragment,{children:[b.jsxDEV("div",{className:"flex items-center gap-3 mt-6",children:[b.jsxDEV("div",{className:"flex-1 h-px bg-border"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:193,columnNumber:17},this),b.jsxDEV("span",{className:"text-xs text-text-tertiary",children:"or continue with"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:194,columnNumber:17},this),b.jsxDEV("div",{className:"flex-1 h-px bg-border"},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:195,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:192,columnNumber:15},this),b.jsxDEV("div",{className:"space-y-2",children:Ne.filter(J=>J.provider!=="anthropic").map(J=>b.jsxDEV("a",{href:`${Kn}/api/auth/oauth/${J.provider}?returnTo=${encodeURIComponent(m)}`,className:"btn-secondary w-full flex items-center justify-center gap-2",children:[b.jsxDEV(p_,{provider:J.provider},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:204,columnNumber:21},this),"Sign in with ",J.name]},J.provider,!0,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:199,columnNumber:19},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:197,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:191,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:143,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:132,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/LoginPage.tsx",lineNumber:131,columnNumber:5},this)}function nS(){const{isAuthenticated:r}=eo(),s=cS(),a=ci(),o=new URLSearchParams(a.search),u=o.get("state")||"";R.useEffect(()=>{r||s(`/login?returnTo=${encodeURIComponent(a.pathname+a.search)}`)},[r]);const[d,p]=R.useState(""),[m,g]=R.useState(o.get("label")||"default"),[x,S]=R.useState(""),[E,D]=R.useState(!1),q=d.trim().startsWith("sk-ant-oat"),k=d.trim().startsWith("sk-ant-api"),L=I=>{I.preventDefault();const W=d.trim();if(!W){S("A token or API key is required");return}if(!W.startsWith("sk-ant-")){S('Invalid format. Must start with "sk-ant-oat" (OAuth token) or "sk-ant-api" (API key)');return}D(!0),S("");const te=`${Kn}/api/auth/oauth/anthropic/callback?code=${encodeURIComponent(W)}&state=${encodeURIComponent(u)}`;window.location.href=te};return b.jsxDEV("div",{className:"min-h-screen bg-surface flex items-center justify-center",children:b.jsxDEV("div",{className:"w-full max-w-md p-10",children:[b.jsxDEV("div",{className:"mb-10",children:b.jsxDEV(by,{size:"lg"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:68,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:67,columnNumber:9},this),b.jsxDEV("div",{className:"flex items-center gap-2 mb-6",children:[b.jsxDEV(p_,{provider:"anthropic",className:"w-6 h-6"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:72,columnNumber:11},this),b.jsxDEV("h2",{className:"text-lg font-semibold text-text-primary",children:"Connect Anthropic"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:73,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:71,columnNumber:9},this),b.jsxDEV("p",{className:"text-sm text-text-secondary mb-4",children:"Connect your Anthropic account so Claude Code tasks run under your credentials. Your token is encrypted at rest."},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:78,columnNumber:9},this),b.jsxDEV("form",{onSubmit:L,className:"space-y-5",children:[b.jsxDEV("div",{children:[b.jsxDEV("label",{htmlFor:"token",className:"block text-sm font-medium text-text-secondary mb-2",children:"OAuth Token or API Key"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:85,columnNumber:13},this),b.jsxDEV("input",{id:"token",type:"password",value:d,onChange:I=>p(I.target.value),className:"input",placeholder:"sk-ant-oat01-... or sk-ant-api03-...",autoFocus:!0,autoComplete:"off"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:91,columnNumber:13},this),q&&b.jsxDEV("p",{className:"text-xs text-status-success mt-1",children:"OAuth token detected — uses your Claude subscription (flat rate)"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:102,columnNumber:15},this),k&&b.jsxDEV("p",{className:"text-xs text-status-warning mt-1",children:"API key detected — billed per-token from your Anthropic API account"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:107,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:84,columnNumber:11},this),b.jsxDEV("div",{children:[b.jsxDEV("label",{htmlFor:"label",className:"block text-sm font-medium text-text-secondary mb-2",children:"Label"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:114,columnNumber:13},this),b.jsxDEV("input",{id:"label",type:"text",value:m,onChange:I=>g(I.target.value.replace(/\s+/g,"-").toLowerCase()),className:"input",placeholder:"default",autoComplete:"off"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:120,columnNumber:13},this),b.jsxDEV("p",{className:"text-xs text-text-tertiary mt-1",children:'A name for this credential. Use different labels to store multiple credentials (e.g., "subscription", "api-batch").'},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:113,columnNumber:11},this),x&&b.jsxDEV("p",{className:"text-sm text-status-error",children:x},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:135,columnNumber:21},this),b.jsxDEV("button",{type:"submit",className:"btn-primary w-full",disabled:E,children:E?"Validating...":"Connect"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:137,columnNumber:11},this),b.jsxDEV("a",{href:"/",className:"block text-center text-sm text-text-tertiary hover:text-text-secondary",children:"Cancel"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:145,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:83,columnNumber:9},this),b.jsxDEV("div",{className:"mt-6 space-y-3 text-xs text-text-tertiary",children:[b.jsxDEV("div",{children:[b.jsxDEV("span",{className:"font-medium text-text-secondary",children:"Recommended:"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:155,columnNumber:13},this)," ","Run"," ",b.jsxDEV("code",{className:"px-1 py-0.5 bg-surface-sunken rounded text-[11px]",children:"claude setup-token"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:157,columnNumber:13},this)," ","in your terminal to generate an OAuth token that uses your subscription."]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:154,columnNumber:11},this),b.jsxDEV("div",{children:[b.jsxDEV("span",{className:"font-medium text-text-secondary",children:"Alternative:"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:161,columnNumber:13},this)," ","Use an API key from"," ",b.jsxDEV("a",{href:"https://console.anthropic.com/settings/keys",target:"_blank",rel:"noopener noreferrer",className:"text-accent-secondary hover:underline",children:"console.anthropic.com"},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:163,columnNumber:13},this)," ","(billed per-token)."]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:160,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:153,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:66,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/ConnectAnthropicPage.tsx",lineNumber:65,columnNumber:5},this)}function fu({roleTypes:r,roleNames:s,redirectTo:a="/"}){const{isSuperAdmin:o,hasRole:u,hasRoleType:d}=eo();return o?b.jsxDEV(hl,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireRole.tsx",lineNumber:18,columnNumber:28},this):r&&r.some(p=>d(p))?b.jsxDEV(hl,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireRole.tsx",lineNumber:21,columnNumber:66},this):s&&s.some(p=>u(p))?b.jsxDEV(hl,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireRole.tsx",lineNumber:24,columnNumber:62},this):b.jsxDEV(Na,{to:a,replace:!0},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireRole.tsx",lineNumber:26,columnNumber:10},this)}function ER({redirectTo:r="/"}){var o;const{data:s,isLoading:a}=Ah();return a||!s?null:(o=s.ai)!=null&&o.enabled?b.jsxDEV(hl,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireAI.tsx",lineNumber:14,columnNumber:32},this):b.jsxDEV(Na,{to:r,replace:!0},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireAI.tsx",lineNumber:16,columnNumber:10},this)}function wR({flag:r,redirectTo:s="/"}){var u;const{data:a,isLoading:o}=Ah();return o||!a?null:((u=a.features)==null?void 0:u[r])===!1?b.jsxDEV(Na,{to:s,replace:!0},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireFeature.tsx",lineNumber:17,columnNumber:47},this):b.jsxDEV(hl,{},void 0,!1,{fileName:"/app/dashboard/src/components/layout/RequireFeature.tsx",lineNumber:19,columnNumber:10},this)}const SR=R.lazy(()=>ke(()=>import("./ProcessesListPage-BjW5xUkv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(r=>({default:r.ProcessesListPage}))),_R=R.lazy(()=>ke(()=>import("./ProcessDetailPage-D80w44rV.js"),__vite__mapDeps([18,2,1,4,19,15,20,17,11,6,21,22,23]),import.meta.url).then(r=>({default:r.ProcessDetailPage}))),AR=R.lazy(()=>ke(()=>import("./McpOverview-BBm66wbF.js"),__vite__mapDeps([24,2,25,26,27,28,14,15,29,6]),import.meta.url).then(r=>({default:r.McpOverview}))),DR=R.lazy(()=>ke(()=>import("./McpRunsPage-BdK8ahX7.js"),__vite__mapDeps([30,2,26,27,5,6,31,28,8,9,10,17,15,32,14,13,12,16,33]),import.meta.url).then(r=>({default:r.McpRunsPage}))),TR=R.lazy(()=>ke(()=>import("./McpRunDetailPage-CSq_0qqi.js"),__vite__mapDeps([34,2,26,20,14,15,35,6,36,37,16,38,39,40,13]),import.meta.url).then(r=>({default:r.McpRunDetailPage}))),CR=R.lazy(()=>ke(()=>import("./McpQueryPage-C-8nIdBL.js"),__vite__mapDeps([41,14,15,2,9,10,13,12,16,8,11,32,17,33,5,6,4,42]),import.meta.url).then(r=>({default:r.McpQueryPage}))),OR=R.lazy(()=>ke(()=>import("./McpQueryDetailPage-B6GJOMcz.js"),__vite__mapDeps([43,14,15,2,20,42,6,27,4,44,36,26,3,1,45,46,47,48,49,50,35,51,38,39]),import.meta.url).then(r=>({default:r.McpQueryDetailPage}))),jR=R.lazy(()=>ke(()=>import("./EscalationsOverview-DDwxn_mT.js"),__vite__mapDeps([52,2,4,14,15,29,6]),import.meta.url).then(r=>({default:r.EscalationsOverview}))),RR=R.lazy(()=>ke(()=>import("./AvailableEscalationsPage-DNQbeIcn.js"),__vite__mapDeps([53,2,6,4,54,55,56,57,5,7,8,9,10,12,14,15,23,58,13,59,21,17,60,33,16]),import.meta.url).then(r=>({default:r.AvailableEscalationsPage}))),MR=R.lazy(()=>ke(()=>import("./OperatorDashboard-BbmgsOmQ.js"),__vite__mapDeps([61,4,2,57,5,6,7,8,9,10,14,15,12,33,58,13,59,21,17,60,16]),import.meta.url).then(r=>({default:r.OperatorDashboard}))),kR=R.lazy(()=>ke(()=>import("./index-eshNd6NY.js"),__vite__mapDeps([62,2,37,54,55,6,56,57,14,15,60,16,3,4,22,23,20,21,35,36]),import.meta.url).then(r=>({default:r.EscalationDetailPage}))),VR=R.lazy(()=>ke(()=>import("./WorkflowsOverview-BhgE0RS8.js"),__vite__mapDeps([63,2,3,4,14,15,29,6]),import.meta.url).then(r=>({default:r.WorkflowsOverview}))),UR=R.lazy(()=>ke(()=>import("./index-BfxiRwk2.js"),__vite__mapDeps([64,2,3,14,15,13,17,65,48,49,6]),import.meta.url).then(r=>({default:r.StartWorkflowPage}))),zR=R.lazy(()=>ke(()=>import("./index-BfxiRwk2.js"),__vite__mapDeps([64,2,3,14,15,13,17,65,48,49,6]),import.meta.url).then(r=>({default:r.DurableInvokePage}))),BR=R.lazy(()=>ke(()=>import("./WorkflowsDashboard-uLU5ZToY.js"),__vite__mapDeps([66,2,32,3,31,28,6,4,5,8,9,10,17,15,14,13,12,16,33]),import.meta.url).then(r=>({default:()=>r.WorkflowsDashboard({tier:"durable"})}))),qR=R.lazy(()=>ke(()=>import("./WorkflowsDashboard-uLU5ZToY.js"),__vite__mapDeps([66,2,32,3,31,28,6,4,5,8,9,10,17,15,14,13,12,16,33]),import.meta.url).then(r=>({default:()=>r.WorkflowsDashboard({tier:"all"})}))),LR=R.lazy(()=>ke(()=>import("./YamlWorkflowsPage-DWnsgl2v.js"),__vite__mapDeps([67,27,2,5,6,14,15,13,10,50,65,20]),import.meta.url).then(r=>({default:r.YamlWorkflowsPage}))),PR=R.lazy(()=>ke(()=>import("./GraphInvokePage-BmM8r0R3.js"),__vite__mapDeps([68,2,27,14,15,45,47,48,49,46,6,50,65]),import.meta.url).then(r=>({default:r.GraphInvokePage}))),HR=R.lazy(()=>ke(()=>import("./YamlWorkflowDetailPage-CvIgB5y7.js"),__vite__mapDeps([69,27,2,20,65,15,6]),import.meta.url).then(r=>({default:r.YamlWorkflowDetailPage}))),$R=R.lazy(()=>ke(()=>import("./TasksListPage-DcYV-GMA.js"),__vite__mapDeps([70,1,2,3,5,6,9,10,20,59,51,12,13,14,15,17]),import.meta.url).then(r=>({default:r.TasksListPage}))),IR=R.lazy(()=>ke(()=>import("./TaskDetailPage-C0tbiUi7.js"),__vite__mapDeps([71,1,2,20,59,14,15,6]),import.meta.url).then(r=>({default:r.TaskDetailPage}))),sS=R.lazy(()=>ke(()=>import("./WorkflowExecutionPage-DmRJabMQ.js"),__vite__mapDeps([72,2,3,4,37,1,14,15,36,16,20,35,6,38,39,40,13]),import.meta.url).then(r=>({default:r.WorkflowExecutionPage}))),FR=R.lazy(()=>ke(()=>import("./AdminDashboard-Ck5-jV9T.js"),__vite__mapDeps([73,1,2,4,25,19,15,6]),import.meta.url).then(r=>({default:r.AdminDashboard}))),YR=R.lazy(()=>ke(()=>import("./index-B5MAG4Uv.js"),__vite__mapDeps([74,2,3,9,10,13,33,5,6,14,15,75,17]),import.meta.url).then(r=>({default:r.WorkersPage}))),GR=R.lazy(()=>ke(()=>import("./index-Y6yj36QR.js"),__vite__mapDeps([76,2,3,13,77,55,6,21,15,17,14,57,48,49,65]),import.meta.url).then(r=>({default:r.WorkflowConfigsPage}))),aS=R.lazy(()=>ke(()=>import("./index-Y6yj36QR.js"),__vite__mapDeps([76,2,3,13,77,55,6,21,15,17,14,57,48,49,65]),import.meta.url).then(r=>({default:r.WorkflowConfigDetailPage}))),JR=R.lazy(()=>ke(()=>import("./index-CphzO7b8.js"),__vite__mapDeps([78,2,25,10,77,55,6,14,15,13,12,5,79,47,48,49,50,46,33,20]),import.meta.url).then(r=>({default:r.McpServersPage}))),rS=R.lazy(()=>ke(()=>import("./index-DkbnD-Te.js"),__vite__mapDeps([80,2,25,14,15,44,6]),import.meta.url).then(r=>({default:r.McpServerDetailPage}))),QR=R.lazy(()=>ke(()=>import("./index-CQtv2rj6.js"),__vite__mapDeps([81,2,23,5,6,9,10,12,13,77,55,33,14,15,21,49,11,57,51]),import.meta.url).then(r=>({default:r.UsersPage}))),XR=R.lazy(()=>ke(()=>import("./RolesPage-BI1Xtqq_.js"),__vite__mapDeps([82,2,57,14,15,55,6]),import.meta.url).then(r=>({default:r.RolesPage}))),ZR=R.lazy(()=>ke(()=>import("./RoleDetailPage-oahg0cdT.js"),__vite__mapDeps([83,2,57,77,55,6,23,15]),import.meta.url).then(r=>({default:r.RoleDetailPage}))),KR=R.lazy(()=>ke(()=>import("./EscalationSchemaPage-DulCCxea.js"),__vite__mapDeps([84,2,57,15,6]),import.meta.url).then(r=>({default:r.EscalationSchemaPage}))),WR=R.lazy(()=>ke(()=>import("./index-CJb3dXku.js"),__vite__mapDeps([85,2,14,15,55,6,56]),import.meta.url).then(r=>({default:r.MaintenancePage}))),e6=R.lazy(()=>ke(()=>import("./OperationsPage-DODPFmf2.js"),__vite__mapDeps([86,2,57,4,14,15,6]),import.meta.url).then(r=>({default:r.OperationsPage}))),t6=R.lazy(()=>ke(()=>import("./index-yxnQew1X.js"),__vite__mapDeps([87,2,19,15,13,5,6,31,28,55,36,75,9,10,33]),import.meta.url).then(r=>({default:r.ControlPlanePage}))),n6=R.lazy(()=>ke(()=>import("./index-CwAmiy_j.js"),__vite__mapDeps([88,2,6,39,15,5,31,28,8,9,10,12,13,11,14,16]),import.meta.url).then(r=>({default:r.StreamMessagesPage}))),s6=R.lazy(()=>ke(()=>import("./CredentialsPage-C3NyncEB.js"),__vite__mapDeps([89,2,14,15,51,77,55,6]),import.meta.url).then(r=>({default:r.CredentialsPage}))),a6=R.lazy(()=>ke(()=>import("./index-C71I-f5G.js"),__vite__mapDeps([90,2,6,14,15,13,16,8,10,91,51]),import.meta.url).then(r=>({default:r.FilesPage}))),r6=R.lazy(()=>ke(()=>import("./index-xn9fmkHC.js"),__vite__mapDeps([92,2,14,15,13,16,12,10,91,51,93,44,6]),import.meta.url).then(r=>({default:r.KnowledgePage}))),i6=R.lazy(()=>ke(()=>import("./HomePage-Ds3PzWWr.js"),__vite__mapDeps([94,2,3,26,28,1,4,21,15,17,16,6]),import.meta.url).then(r=>({default:r.HomePage}))),o6=R.lazy(()=>ke(()=>import("./AgentsPage-DxwFuedf.js"),__vite__mapDeps([95,96,2,4,5,6,8,9,10,12,13,14,15,16]),import.meta.url).then(r=>({default:r.AgentsPage}))),l6=R.lazy(()=>ke(()=>import("./AgentDetailPage-BBgM_pMe.js"),__vite__mapDeps([97,2,96,98,15,4,17,6]),import.meta.url).then(r=>({default:r.AgentDetailPage}))),iS=R.lazy(()=>ke(()=>import("./AgentConfigPage-DFiXRBWs.js"),__vite__mapDeps([99,2,96,98,15,14,93,47,48,49,3,27,100,101,17,6]),import.meta.url).then(r=>({default:r.AgentConfigPage}))),c6=R.lazy(()=>ke(()=>import("./CapabilitiesPage-Biffm0kW.js"),__vite__mapDeps([102,2,100,79,25,47,48,49,15,50,6,46,14,13]),import.meta.url).then(r=>({default:r.CapabilitiesPage}))),u6=R.lazy(()=>ke(()=>import("./TopicsPage-BXdc6pAU.js"),__vite__mapDeps([103,2,101,14,15,13,6]),import.meta.url).then(r=>({default:r.TopicsPage}))),f6=R.lazy(()=>ke(()=>import("./TopicDetailPage-CtFztOnn.js"),__vite__mapDeps([104,2,101,16,15,6]),import.meta.url).then(r=>({default:r.TopicDetailPage})));function d6(){return b.jsxDEV("div",{className:"animate-pulse space-y-4",children:[b.jsxDEV("div",{className:"h-8 bg-surface-sunken rounded w-48"},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:184,columnNumber:7},this),b.jsxDEV("div",{className:"h-40 bg-surface-sunken rounded"},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:185,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/App.tsx",lineNumber:183,columnNumber:5},this)}function Ce({children:r}){return b.jsxDEV(R.Suspense,{fallback:b.jsxDEV(d6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:192,columnNumber:25},this),children:b.jsxDEV("div",{className:"animate-page-enter flex flex-col flex-1 min-h-0",children:r},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:196,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:192,columnNumber:5},this)}const b_=new eT({defaultOptions:{queries:{staleTime:1e4,retry:(r,s)=>s instanceof Error&&s.message==="Session expired"?!1:r<1}}});window.addEventListener("auth:unauthorized",()=>{b_.clear(),sessionStorage.removeItem("lt_token"),sessionStorage.removeItem("lt_credentials"),sessionStorage.removeItem("lt_user_info");const r=window.__LT_BASE__||"",s=`${r}/login`;if(window.location.pathname!==s){const a=window.location.pathname+window.location.search,o=r&&a.startsWith(r)?a.slice(r.length)||"/":a;window.location.href=`${s}?returnTo=${encodeURIComponent(o)}`}});const h6=sT([{path:"/login",element:b.jsxDEV(NR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:239,columnNumber:30},void 0)},{path:"/connect/anthropic",element:b.jsxDEV(nS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:240,columnNumber:42},void 0)},{path:"/connect/:provider",element:b.jsxDEV(nS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:241,columnNumber:42},void 0)},{path:"/",element:b.jsxDEV(gR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:244,columnNumber:14},void 0),children:[{index:!0,element:b.jsxDEV(Ce,{children:b.jsxDEV(i6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:247,columnNumber:37},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:247,columnNumber:31},void 0)},{path:"processes/all",element:b.jsxDEV(Ce,{children:b.jsxDEV(SR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:250,columnNumber:47},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:250,columnNumber:41},void 0)},{path:"processes/detail/:originId",element:b.jsxDEV(Ce,{children:b.jsxDEV(_R,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:251,columnNumber:60},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:251,columnNumber:54},void 0)},{path:"credentials",element:b.jsxDEV(Ce,{children:b.jsxDEV(s6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:254,columnNumber:45},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:254,columnNumber:39},void 0)},{path:"connections",element:b.jsxDEV(Na,{to:"/credentials",replace:!0},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:255,columnNumber:39},void 0)},{path:"escalations",element:b.jsxDEV(Ce,{children:b.jsxDEV(jR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:258,columnNumber:45},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:258,columnNumber:39},void 0)},{path:"escalations/available",element:b.jsxDEV(Ce,{children:b.jsxDEV(RR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:259,columnNumber:55},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:259,columnNumber:49},void 0)},{path:"escalations/queue",element:b.jsxDEV(Ce,{children:b.jsxDEV(MR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:260,columnNumber:51},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:260,columnNumber:45},void 0)},{path:"escalations/detail/:id",element:b.jsxDEV(Ce,{children:b.jsxDEV(kR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:261,columnNumber:56},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:261,columnNumber:50},void 0)},{path:"capabilities",element:b.jsxDEV(Ce,{children:b.jsxDEV(c6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:264,columnNumber:46},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:264,columnNumber:40},void 0)},{path:"agents",element:b.jsxDEV(Ce,{children:b.jsxDEV(o6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:267,columnNumber:40},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:267,columnNumber:34},void 0)},{path:"agents/new",element:b.jsxDEV(Ce,{children:b.jsxDEV(iS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:268,columnNumber:44},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:268,columnNumber:38},void 0)},{path:"agents/:id",element:b.jsxDEV(Ce,{children:b.jsxDEV(l6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:269,columnNumber:44},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:269,columnNumber:38},void 0)},{path:"agents/:id/edit",element:b.jsxDEV(Ce,{children:b.jsxDEV(iS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:270,columnNumber:49},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:270,columnNumber:43},void 0)},{path:"topics",element:b.jsxDEV(Ce,{children:b.jsxDEV(u6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:273,columnNumber:40},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:273,columnNumber:34},void 0)},{path:"topics/:topic",element:b.jsxDEV(Ce,{children:b.jsxDEV(f6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:274,columnNumber:47},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:274,columnNumber:41},void 0)},{element:b.jsxDEV(fu,{roleTypes:["superadmin"],roleNames:["engineer"]},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:278,columnNumber:18},void 0),children:[{path:"workflows",element:b.jsxDEV(Ce,{children:b.jsxDEV(VR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:280,columnNumber:47},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:280,columnNumber:41},void 0)},{path:"workflows/executions",element:b.jsxDEV(Ce,{children:b.jsxDEV(qR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:281,columnNumber:58},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:281,columnNumber:52},void 0)},{path:"workflows/durable/executions",element:b.jsxDEV(Ce,{children:b.jsxDEV(BR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:282,columnNumber:66},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:282,columnNumber:60},void 0)},{path:"workflows/durable/executions/:workflowId",element:b.jsxDEV(Ce,{children:b.jsxDEV(sS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:283,columnNumber:78},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:283,columnNumber:72},void 0)},{path:"workflows/tasks",element:b.jsxDEV(Ce,{children:b.jsxDEV($R,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:284,columnNumber:53},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:284,columnNumber:47},void 0)},{path:"workflows/tasks/detail/:id",element:b.jsxDEV(Ce,{children:b.jsxDEV(IR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:285,columnNumber:64},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:285,columnNumber:58},void 0)},{path:"workflows/executions/:workflowId",element:b.jsxDEV(Ce,{children:b.jsxDEV(sS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:286,columnNumber:70},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:286,columnNumber:64},void 0)},{path:"workflows/start",element:b.jsxDEV(Ce,{children:b.jsxDEV(UR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:287,columnNumber:53},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:287,columnNumber:47},void 0)},{path:"workflows/durable/invoke",element:b.jsxDEV(Ce,{children:b.jsxDEV(zR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:288,columnNumber:62},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:288,columnNumber:56},void 0)},{path:"workflows/cron",element:b.jsxDEV(Na,{to:"/workflows/start?mode=schedule",replace:!0},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:289,columnNumber:46},void 0)},{path:"workflows/workers",element:b.jsxDEV(Ce,{children:b.jsxDEV(YR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:290,columnNumber:55},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:290,columnNumber:49},void 0)},{path:"workflows/registry",element:b.jsxDEV(Ce,{children:b.jsxDEV(GR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:291,columnNumber:56},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:291,columnNumber:50},void 0)},{path:"workflows/registry/new",element:b.jsxDEV(Ce,{children:b.jsxDEV(aS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:292,columnNumber:60},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:292,columnNumber:54},void 0)},{path:"workflows/registry/:workflowType",element:b.jsxDEV(Ce,{children:b.jsxDEV(aS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:293,columnNumber:70},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:293,columnNumber:64},void 0)}]},{element:b.jsxDEV(fu,{roleTypes:["superadmin"],roleNames:["engineer"]},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:299,columnNumber:18},void 0),children:[{path:"mcp/workflows",element:b.jsxDEV(Ce,{children:b.jsxDEV(LR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:302,columnNumber:51},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:302,columnNumber:45},void 0)},{path:"mcp/workflows/invoke",element:b.jsxDEV(Ce,{children:b.jsxDEV(PR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:303,columnNumber:58},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:303,columnNumber:52},void 0)},{path:"mcp/workflows/:id",element:b.jsxDEV(Ce,{children:b.jsxDEV(HR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:304,columnNumber:55},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:304,columnNumber:49},void 0)},{path:"mcp/executions",element:b.jsxDEV(Ce,{children:b.jsxDEV(DR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:305,columnNumber:52},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:305,columnNumber:46},void 0)},{path:"mcp/executions/:jobId",element:b.jsxDEV(Ce,{children:b.jsxDEV(TR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:306,columnNumber:59},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:306,columnNumber:53},void 0)},{path:"files",element:b.jsxDEV(Ce,{children:b.jsxDEV(a6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:309,columnNumber:43},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:309,columnNumber:37},void 0)},{path:"knowledge",element:b.jsxDEV(Ce,{children:b.jsxDEV(r6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:312,columnNumber:47},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:312,columnNumber:41},void 0)},{element:b.jsxDEV(ER,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:317,columnNumber:22},void 0),children:[{path:"mcp",element:b.jsxDEV(Ce,{children:b.jsxDEV(AR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:319,columnNumber:45},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:319,columnNumber:39},void 0)},{path:"mcp/queries",element:b.jsxDEV(Ce,{children:b.jsxDEV(CR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:320,columnNumber:53},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:320,columnNumber:47},void 0)},{path:"mcp/queries/:workflowId",element:b.jsxDEV(Ce,{children:b.jsxDEV(OR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:321,columnNumber:65},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:321,columnNumber:59},void 0)},{path:"mcp/tools",element:b.jsxDEV(Na,{to:"/mcp/servers",replace:!0},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:322,columnNumber:45},void 0)},{path:"mcp/servers",element:b.jsxDEV(Ce,{children:b.jsxDEV(JR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:323,columnNumber:53},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:323,columnNumber:47},void 0)},{path:"mcp/servers/new",element:b.jsxDEV(Ce,{children:b.jsxDEV(rS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:324,columnNumber:57},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:324,columnNumber:51},void 0)},{path:"mcp/servers/:serverId",element:b.jsxDEV(Ce,{children:b.jsxDEV(rS,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:325,columnNumber:63},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:325,columnNumber:57},void 0)}]}]},{element:b.jsxDEV(fu,{roleTypes:["admin","superadmin"],roleNames:["engineer"]},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:335,columnNumber:18},void 0),children:[{path:"operations",element:b.jsxDEV(Ce,{children:b.jsxDEV(e6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:337,columnNumber:48},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:337,columnNumber:42},void 0)}]},{element:b.jsxDEV(fu,{roleTypes:["admin","superadmin"],roleNames:["engineer"]},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:343,columnNumber:18},void 0),children:[{path:"admin",element:b.jsxDEV(Ce,{children:b.jsxDEV(FR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:345,columnNumber:43},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:345,columnNumber:37},void 0)},{path:"admin/users",element:b.jsxDEV(Ce,{children:b.jsxDEV(QR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:346,columnNumber:49},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:346,columnNumber:43},void 0)},{path:"admin/escalation-chains",element:b.jsxDEV(Na,{to:"/admin/roles",replace:!0},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:347,columnNumber:55},void 0)},{path:"admin/roles",element:b.jsxDEV(Ce,{children:b.jsxDEV(XR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:348,columnNumber:49},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:348,columnNumber:43},void 0)},{path:"admin/roles/:role",element:b.jsxDEV(Ce,{children:b.jsxDEV(ZR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:349,columnNumber:55},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:349,columnNumber:49},void 0)},{path:"admin/roles/:role/schema",element:b.jsxDEV(Ce,{children:b.jsxDEV(KR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:350,columnNumber:62},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:350,columnNumber:56},void 0)}]},{element:b.jsxDEV(fu,{roleTypes:["superadmin"],roleNames:["engineer"]},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:356,columnNumber:18},void 0),children:[{path:"admin/bots",element:b.jsxDEV(Na,{to:"/admin/users?tab=service-accounts",replace:!0},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:358,columnNumber:42},void 0)},{element:b.jsxDEV(wR,{flag:"dbMaintenance"},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:360,columnNumber:22},void 0),children:[{path:"admin/maintenance",element:b.jsxDEV(Ce,{children:b.jsxDEV(WR,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:362,columnNumber:59},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:362,columnNumber:53},void 0)}]},{path:"admin/controlplane",element:b.jsxDEV(Ce,{children:b.jsxDEV(t6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:365,columnNumber:56},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:365,columnNumber:50},void 0)},{path:"admin/streams",element:b.jsxDEV(Ce,{children:b.jsxDEV(n6,{},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:366,columnNumber:51},void 0)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:366,columnNumber:45},void 0)}]}]}],{basename:window.__LT_BASE__||"/"});function m6(){return b.jsxDEV(tT,{client:b_,children:b.jsxDEV(LT,{children:b.jsxDEV(Q5,{children:b.jsxDEV(aT,{router:h6},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:378,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:377,columnNumber:9},this)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:376,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/App.tsx",lineNumber:375,columnNumber:5},this)}t_(e_());UT.createRoot(document.getElementById("root")).render(b.jsxDEV(R.StrictMode,{children:b.jsxDEV(m6,{},void 0,!1,{fileName:"/app/dashboard/src/main.tsx",lineNumber:11,columnNumber:5},void 0)},void 0,!1,{fileName:"/app/dashboard/src/main.tsx",lineNumber:10,columnNumber:3},void 0));export{xy as A,_6 as B,yy as C,fR as D,C6 as E,s_ as F,V6 as G,vy as H,m_ as I,R4 as J,L6 as K,x6 as L,z6 as M,$O as N,Kn as O,pS as P,$6 as Q,I6 as R,x4 as S,p_ as T,B6 as U,H6 as a,uR as b,FO as c,it as d,S6 as e,oR as f,A6 as g,T6 as h,N6 as i,b as j,eo as k,w6 as l,O6 as m,j6 as n,R6 as o,M6 as p,k6 as q,U6 as r,E6 as s,e4 as t,Ah as u,W5 as v,JS as w,D6 as x,P6 as y,q6 as z};
281
- //# sourceMappingURL=index-DgCS2Frb.js.map