@overlordai/server 1.0.53 → 1.0.55

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 (533) hide show
  1. package/database/migrations/001-init-schema.sql +73 -9
  2. package/dist/adapters/adapter.interface.d.ts +1 -4
  3. package/dist/adapters/adapter.interface.d.ts.map +1 -1
  4. package/dist/adapters/adapter.interface.js.map +1 -1
  5. package/dist/adapters/adapter.module.d.ts.map +1 -1
  6. package/dist/adapters/adapter.module.js +8 -7
  7. package/dist/adapters/adapter.module.js.map +1 -1
  8. package/dist/adapters/lark/lark-card.builder.d.ts +1 -25
  9. package/dist/adapters/lark/lark-card.builder.d.ts.map +1 -1
  10. package/dist/adapters/lark/lark-card.builder.js +6 -110
  11. package/dist/adapters/lark/lark-card.builder.js.map +1 -1
  12. package/dist/adapters/lark/lark-message.parser.d.ts +4 -4
  13. package/dist/adapters/lark/lark-message.parser.d.ts.map +1 -1
  14. package/dist/adapters/lark/lark-message.parser.js +20 -13
  15. package/dist/adapters/lark/lark-message.parser.js.map +1 -1
  16. package/dist/adapters/lark/lark-signature.d.ts.map +1 -1
  17. package/dist/adapters/lark/lark-signature.js +6 -0
  18. package/dist/adapters/lark/lark-signature.js.map +1 -1
  19. package/dist/adapters/lark/lark.adapter.d.ts +14 -9
  20. package/dist/adapters/lark/lark.adapter.d.ts.map +1 -1
  21. package/dist/adapters/lark/lark.adapter.js +99 -177
  22. package/dist/adapters/lark/lark.adapter.js.map +1 -1
  23. package/dist/adapters/lark/lark.controller.d.ts +10 -1
  24. package/dist/adapters/lark/lark.controller.d.ts.map +1 -1
  25. package/dist/adapters/lark/lark.controller.js +48 -14
  26. package/dist/adapters/lark/lark.controller.js.map +1 -1
  27. package/dist/adapters/slack/slack-block.builder.d.ts +8 -0
  28. package/dist/adapters/slack/slack-block.builder.d.ts.map +1 -0
  29. package/dist/adapters/slack/slack-block.builder.js +117 -0
  30. package/dist/adapters/slack/slack-block.builder.js.map +1 -0
  31. package/dist/adapters/slack/slack-message.parser.d.ts +15 -0
  32. package/dist/adapters/slack/slack-message.parser.d.ts.map +1 -0
  33. package/dist/adapters/slack/slack-message.parser.js +158 -0
  34. package/dist/adapters/slack/slack-message.parser.js.map +1 -0
  35. package/dist/adapters/slack/slack-signature.d.ts +7 -0
  36. package/dist/adapters/slack/slack-signature.d.ts.map +1 -0
  37. package/dist/adapters/slack/slack-signature.js +59 -0
  38. package/dist/adapters/slack/slack-signature.js.map +1 -0
  39. package/dist/adapters/slack/slack.adapter.d.ts +67 -13
  40. package/dist/adapters/slack/slack.adapter.d.ts.map +1 -1
  41. package/dist/adapters/slack/slack.adapter.js +468 -19
  42. package/dist/adapters/slack/slack.adapter.js.map +1 -1
  43. package/dist/adapters/slack/slack.controller.d.ts +20 -0
  44. package/dist/adapters/slack/slack.controller.d.ts.map +1 -0
  45. package/dist/adapters/slack/slack.controller.js +257 -0
  46. package/dist/adapters/slack/slack.controller.js.map +1 -0
  47. package/dist/app.module.d.ts.map +1 -1
  48. package/dist/app.module.js +4 -0
  49. package/dist/app.module.js.map +1 -1
  50. package/dist/auth/auth.controller.d.ts.map +1 -1
  51. package/dist/auth/auth.controller.js +1 -0
  52. package/dist/auth/auth.controller.js.map +1 -1
  53. package/dist/auth/auth.module.d.ts.map +1 -1
  54. package/dist/auth/auth.module.js +4 -5
  55. package/dist/auth/auth.module.js.map +1 -1
  56. package/dist/auth/auth.service.d.ts +9 -2
  57. package/dist/auth/auth.service.d.ts.map +1 -1
  58. package/dist/auth/auth.service.js +50 -79
  59. package/dist/auth/auth.service.js.map +1 -1
  60. package/dist/auth/authenticated-request.d.ts +10 -0
  61. package/dist/auth/authenticated-request.d.ts.map +1 -0
  62. package/dist/auth/authenticated-request.js +3 -0
  63. package/dist/auth/authenticated-request.js.map +1 -0
  64. package/dist/auth/extract-user.middleware.d.ts.map +1 -1
  65. package/dist/auth/extract-user.middleware.js +2 -1
  66. package/dist/auth/extract-user.middleware.js.map +1 -1
  67. package/dist/auth/guards/jwt-auth.guard.d.ts.map +1 -1
  68. package/dist/auth/guards/jwt-auth.guard.js +5 -2
  69. package/dist/auth/guards/jwt-auth.guard.js.map +1 -1
  70. package/dist/auth/guards/project-role.guard.d.ts.map +1 -1
  71. package/dist/auth/guards/project-role.guard.js +6 -8
  72. package/dist/auth/guards/project-role.guard.js.map +1 -1
  73. package/dist/auth/jwt.strategy.d.ts +6 -3
  74. package/dist/auth/jwt.strategy.d.ts.map +1 -1
  75. package/dist/auth/jwt.strategy.js +15 -5
  76. package/dist/auth/jwt.strategy.js.map +1 -1
  77. package/dist/common/command-parser.d.ts +29 -0
  78. package/dist/common/command-parser.d.ts.map +1 -0
  79. package/dist/common/command-parser.js +133 -0
  80. package/dist/common/command-parser.js.map +1 -0
  81. package/dist/common/config.d.ts +17 -0
  82. package/dist/common/config.d.ts.map +1 -0
  83. package/dist/common/config.js +47 -0
  84. package/dist/common/config.js.map +1 -0
  85. package/dist/common/crypto.service.d.ts +4 -1
  86. package/dist/common/crypto.service.d.ts.map +1 -1
  87. package/dist/common/crypto.service.js +14 -7
  88. package/dist/common/crypto.service.js.map +1 -1
  89. package/dist/common/error-filter.d.ts +1 -0
  90. package/dist/common/error-filter.d.ts.map +1 -1
  91. package/dist/common/error-filter.js +6 -2
  92. package/dist/common/error-filter.js.map +1 -1
  93. package/dist/common/git-utils.d.ts +9 -0
  94. package/dist/common/git-utils.d.ts.map +1 -0
  95. package/dist/common/git-utils.js +41 -0
  96. package/dist/common/git-utils.js.map +1 -0
  97. package/dist/common/health.controller.d.ts.map +1 -1
  98. package/dist/common/health.controller.js +3 -5
  99. package/dist/common/health.controller.js.map +1 -1
  100. package/dist/common/machine-utils.d.ts +32 -0
  101. package/dist/common/machine-utils.d.ts.map +1 -0
  102. package/dist/common/machine-utils.js +12 -0
  103. package/dist/common/machine-utils.js.map +1 -0
  104. package/dist/common/pagination.d.ts +12 -5
  105. package/dist/common/pagination.d.ts.map +1 -1
  106. package/dist/common/pagination.js +27 -17
  107. package/dist/common/pagination.js.map +1 -1
  108. package/dist/common/project-validation.d.ts +7 -0
  109. package/dist/common/project-validation.d.ts.map +1 -0
  110. package/dist/common/project-validation.js +86 -0
  111. package/dist/common/project-validation.js.map +1 -0
  112. package/dist/common/rate-limit.guard.d.ts +4 -3
  113. package/dist/common/rate-limit.guard.d.ts.map +1 -1
  114. package/dist/common/rate-limit.guard.js +14 -5
  115. package/dist/common/rate-limit.guard.js.map +1 -1
  116. package/dist/common/sql-utils.d.ts +6 -0
  117. package/dist/common/sql-utils.d.ts.map +1 -0
  118. package/dist/common/sql-utils.js +11 -0
  119. package/dist/common/sql-utils.js.map +1 -0
  120. package/dist/common/string-utils.d.ts +6 -0
  121. package/dist/common/string-utils.d.ts.map +1 -0
  122. package/dist/common/string-utils.js +15 -0
  123. package/dist/common/string-utils.js.map +1 -0
  124. package/dist/common/worker-utils.d.ts +31 -0
  125. package/dist/common/worker-utils.d.ts.map +1 -0
  126. package/dist/common/worker-utils.js +12 -0
  127. package/dist/common/worker-utils.js.map +1 -0
  128. package/dist/database/base.repository.d.ts +56 -0
  129. package/dist/database/base.repository.d.ts.map +1 -0
  130. package/dist/database/base.repository.js +82 -0
  131. package/dist/database/base.repository.js.map +1 -0
  132. package/dist/database/database.service.d.ts.map +1 -1
  133. package/dist/database/database.service.js +9 -1
  134. package/dist/database/database.service.js.map +1 -1
  135. package/dist/database/migration-runner.d.ts.map +1 -1
  136. package/dist/database/migration-runner.js +2 -1
  137. package/dist/database/migration-runner.js.map +1 -1
  138. package/dist/database/repositories/audit-log.repository.d.ts.map +1 -1
  139. package/dist/database/repositories/audit-log.repository.js +16 -18
  140. package/dist/database/repositories/audit-log.repository.js.map +1 -1
  141. package/dist/database/repositories/bot.repository.d.ts +18 -32
  142. package/dist/database/repositories/bot.repository.d.ts.map +1 -1
  143. package/dist/database/repositories/bot.repository.js +42 -21
  144. package/dist/database/repositories/bot.repository.js.map +1 -1
  145. package/dist/database/repositories/developer-token.repository.d.ts +7 -17
  146. package/dist/database/repositories/developer-token.repository.d.ts.map +1 -1
  147. package/dist/database/repositories/developer-token.repository.js +24 -15
  148. package/dist/database/repositories/developer-token.repository.js.map +1 -1
  149. package/dist/database/repositories/developer.repository.d.ts +5 -1
  150. package/dist/database/repositories/developer.repository.d.ts.map +1 -1
  151. package/dist/database/repositories/developer.repository.js +60 -49
  152. package/dist/database/repositories/developer.repository.js.map +1 -1
  153. package/dist/database/repositories/machine.repository.d.ts.map +1 -1
  154. package/dist/database/repositories/machine.repository.js +2 -7
  155. package/dist/database/repositories/machine.repository.js.map +1 -1
  156. package/dist/database/repositories/notification.repository.d.ts +1 -0
  157. package/dist/database/repositories/notification.repository.d.ts.map +1 -1
  158. package/dist/database/repositories/notification.repository.js +25 -20
  159. package/dist/database/repositories/notification.repository.js.map +1 -1
  160. package/dist/database/repositories/project-member.repository.d.ts +7 -16
  161. package/dist/database/repositories/project-member.repository.d.ts.map +1 -1
  162. package/dist/database/repositories/project-member.repository.js +34 -24
  163. package/dist/database/repositories/project-member.repository.js.map +1 -1
  164. package/dist/database/repositories/project.repository.d.ts +2 -1
  165. package/dist/database/repositories/project.repository.d.ts.map +1 -1
  166. package/dist/database/repositories/project.repository.js +70 -71
  167. package/dist/database/repositories/project.repository.js.map +1 -1
  168. package/dist/database/repositories/session.repository.d.ts.map +1 -1
  169. package/dist/database/repositories/session.repository.js +22 -25
  170. package/dist/database/repositories/session.repository.js.map +1 -1
  171. package/dist/database/repositories/task.repository.d.ts +31 -7
  172. package/dist/database/repositories/task.repository.d.ts.map +1 -1
  173. package/dist/database/repositories/task.repository.js +134 -86
  174. package/dist/database/repositories/task.repository.js.map +1 -1
  175. package/dist/database/repositories/worker-token.repository.d.ts.map +1 -1
  176. package/dist/database/repositories/worker-token.repository.js +18 -16
  177. package/dist/database/repositories/worker-token.repository.js.map +1 -1
  178. package/dist/database/repositories/worker.repository.d.ts +50 -0
  179. package/dist/database/repositories/worker.repository.d.ts.map +1 -0
  180. package/dist/database/repositories/worker.repository.js +215 -0
  181. package/dist/database/repositories/worker.repository.js.map +1 -0
  182. package/dist/database/repositories/workspace.repository.d.ts +3 -2
  183. package/dist/database/repositories/workspace.repository.d.ts.map +1 -1
  184. package/dist/database/repositories/workspace.repository.js +29 -21
  185. package/dist/database/repositories/workspace.repository.js.map +1 -1
  186. package/dist/database/repository.module.d.ts +3 -0
  187. package/dist/database/repository.module.d.ts.map +1 -0
  188. package/dist/database/repository.module.js +45 -0
  189. package/dist/database/repository.module.js.map +1 -0
  190. package/dist/dispatcher/capability.service.d.ts +19 -14
  191. package/dist/dispatcher/capability.service.d.ts.map +1 -1
  192. package/dist/dispatcher/capability.service.js +77 -69
  193. package/dist/dispatcher/capability.service.js.map +1 -1
  194. package/dist/dispatcher/cleanup.service.d.ts +1 -1
  195. package/dist/dispatcher/cleanup.service.d.ts.map +1 -1
  196. package/dist/dispatcher/cleanup.service.js +13 -13
  197. package/dist/dispatcher/cleanup.service.js.map +1 -1
  198. package/dist/dispatcher/dedup.service.d.ts +17 -3
  199. package/dist/dispatcher/dedup.service.d.ts.map +1 -1
  200. package/dist/dispatcher/dedup.service.js +76 -82
  201. package/dist/dispatcher/dedup.service.js.map +1 -1
  202. package/dist/dispatcher/dispatcher.module.d.ts.map +1 -1
  203. package/dist/dispatcher/dispatcher.module.js +11 -18
  204. package/dist/dispatcher/dispatcher.module.js.map +1 -1
  205. package/dist/dispatcher/dispatcher.service.d.ts +14 -116
  206. package/dist/dispatcher/dispatcher.service.d.ts.map +1 -1
  207. package/dist/dispatcher/dispatcher.service.js +62 -940
  208. package/dist/dispatcher/dispatcher.service.js.map +1 -1
  209. package/dist/dispatcher/dispatcher.types.d.ts +33 -0
  210. package/dist/dispatcher/dispatcher.types.d.ts.map +1 -0
  211. package/dist/dispatcher/dispatcher.types.js +3 -0
  212. package/dist/dispatcher/dispatcher.types.js.map +1 -0
  213. package/dist/dispatcher/heartbeat.service.d.ts +17 -10
  214. package/dist/dispatcher/heartbeat.service.d.ts.map +1 -1
  215. package/dist/dispatcher/heartbeat.service.js +47 -51
  216. package/dist/dispatcher/heartbeat.service.js.map +1 -1
  217. package/dist/dispatcher/pty-relay.service.d.ts.map +1 -1
  218. package/dist/dispatcher/pty-relay.service.js +7 -15
  219. package/dist/dispatcher/pty-relay.service.js.map +1 -1
  220. package/dist/dispatcher/reconciler.d.ts +18 -8
  221. package/dist/dispatcher/reconciler.d.ts.map +1 -1
  222. package/dist/dispatcher/reconciler.js +219 -130
  223. package/dist/dispatcher/reconciler.js.map +1 -1
  224. package/dist/dispatcher/scheduler.service.d.ts +15 -9
  225. package/dist/dispatcher/scheduler.service.d.ts.map +1 -1
  226. package/dist/dispatcher/scheduler.service.js +95 -53
  227. package/dist/dispatcher/scheduler.service.js.map +1 -1
  228. package/dist/dispatcher/state-machine.d.ts.map +1 -1
  229. package/dist/dispatcher/state-machine.js +1 -5
  230. package/dist/dispatcher/state-machine.js.map +1 -1
  231. package/dist/dispatcher/task-creation.service.d.ts +30 -0
  232. package/dist/dispatcher/task-creation.service.d.ts.map +1 -0
  233. package/dist/dispatcher/task-creation.service.js +242 -0
  234. package/dist/dispatcher/task-creation.service.js.map +1 -0
  235. package/dist/dispatcher/task-lifecycle.service.d.ts +63 -0
  236. package/dist/dispatcher/task-lifecycle.service.d.ts.map +1 -0
  237. package/dist/dispatcher/task-lifecycle.service.js +584 -0
  238. package/dist/dispatcher/task-lifecycle.service.js.map +1 -0
  239. package/dist/dispatcher/task-log-batcher.d.ts.map +1 -1
  240. package/dist/dispatcher/task-log-batcher.js +4 -11
  241. package/dist/dispatcher/task-log-batcher.js.map +1 -1
  242. package/dist/dispatcher/worker-auth.service.d.ts +29 -0
  243. package/dist/dispatcher/worker-auth.service.d.ts.map +1 -0
  244. package/dist/dispatcher/worker-auth.service.js +296 -0
  245. package/dist/dispatcher/worker-auth.service.js.map +1 -0
  246. package/dist/dispatcher/worker-connection.manager.d.ts +15 -15
  247. package/dist/dispatcher/worker-connection.manager.d.ts.map +1 -1
  248. package/dist/dispatcher/worker-connection.manager.js +35 -43
  249. package/dist/dispatcher/worker-connection.manager.js.map +1 -1
  250. package/dist/dispatcher/worker-selector.d.ts +18 -0
  251. package/dist/dispatcher/worker-selector.d.ts.map +1 -0
  252. package/dist/dispatcher/worker-selector.js +150 -0
  253. package/dist/dispatcher/worker-selector.js.map +1 -0
  254. package/dist/events/event-types.d.ts +31 -0
  255. package/dist/events/event-types.d.ts.map +1 -0
  256. package/dist/events/event-types.js +16 -0
  257. package/dist/events/event-types.js.map +1 -0
  258. package/dist/events/events.module.d.ts +7 -0
  259. package/dist/events/events.module.d.ts.map +1 -0
  260. package/dist/events/events.module.js +26 -0
  261. package/dist/events/events.module.js.map +1 -0
  262. package/dist/main.js +22 -0
  263. package/dist/main.js.map +1 -1
  264. package/dist/notifier/debouncer.d.ts +1 -1
  265. package/dist/notifier/debouncer.d.ts.map +1 -1
  266. package/dist/notifier/debouncer.js +2 -1
  267. package/dist/notifier/debouncer.js.map +1 -1
  268. package/dist/notifier/notification-consumer.d.ts +1 -1
  269. package/dist/notifier/notification-consumer.d.ts.map +1 -1
  270. package/dist/notifier/notification-consumer.js +5 -5
  271. package/dist/notifier/notification-consumer.js.map +1 -1
  272. package/dist/notifier/notifier.module.d.ts.map +1 -1
  273. package/dist/notifier/notifier.module.js +0 -6
  274. package/dist/notifier/notifier.module.js.map +1 -1
  275. package/dist/notifier/notifier.service.d.ts +1 -1
  276. package/dist/notifier/notifier.service.d.ts.map +1 -1
  277. package/dist/notifier/notifier.service.js +7 -9
  278. package/dist/notifier/notifier.service.js.map +1 -1
  279. package/dist/notifier/template.service.d.ts +1 -1
  280. package/dist/notifier/template.service.d.ts.map +1 -1
  281. package/dist/notifier/template.service.js +6 -10
  282. package/dist/notifier/template.service.js.map +1 -1
  283. package/dist/redis/redis.service.d.ts.map +1 -1
  284. package/dist/redis/redis.service.js +2 -2
  285. package/dist/redis/redis.service.js.map +1 -1
  286. package/dist/web/admin/admin-audit.controller.d.ts.map +1 -1
  287. package/dist/web/admin/admin-audit.controller.js +2 -1
  288. package/dist/web/admin/admin-audit.controller.js.map +1 -1
  289. package/dist/web/admin/admin-bot.controller.d.ts +11 -48
  290. package/dist/web/admin/admin-bot.controller.d.ts.map +1 -1
  291. package/dist/web/admin/admin-bot.controller.js +50 -18
  292. package/dist/web/admin/admin-bot.controller.js.map +1 -1
  293. package/dist/web/admin/admin-developer.controller.d.ts +14 -27
  294. package/dist/web/admin/admin-developer.controller.d.ts.map +1 -1
  295. package/dist/web/admin/admin-developer.controller.js +62 -28
  296. package/dist/web/admin/admin-developer.controller.js.map +1 -1
  297. package/dist/web/admin/admin-machine.controller.d.ts +1 -8
  298. package/dist/web/admin/admin-machine.controller.d.ts.map +1 -1
  299. package/dist/web/admin/admin-machine.controller.js +3 -6
  300. package/dist/web/admin/admin-machine.controller.js.map +1 -1
  301. package/dist/web/admin/admin-project.controller.d.ts +9 -30
  302. package/dist/web/admin/admin-project.controller.d.ts.map +1 -1
  303. package/dist/web/admin/admin-project.controller.js +15 -60
  304. package/dist/web/admin/admin-project.controller.js.map +1 -1
  305. package/dist/web/admin/admin-settings.controller.d.ts +7 -10
  306. package/dist/web/admin/admin-settings.controller.d.ts.map +1 -1
  307. package/dist/web/admin/admin-settings.controller.js +14 -6
  308. package/dist/web/admin/admin-settings.controller.js.map +1 -1
  309. package/dist/web/admin/admin-token.controller.d.ts +6 -13
  310. package/dist/web/admin/admin-token.controller.d.ts.map +1 -1
  311. package/dist/web/admin/admin-token.controller.js +15 -27
  312. package/dist/web/admin/admin-token.controller.js.map +1 -1
  313. package/dist/web/admin/admin-worker.controller.d.ts +26 -0
  314. package/dist/web/admin/admin-worker.controller.d.ts.map +1 -0
  315. package/dist/web/admin/admin-worker.controller.js +184 -0
  316. package/dist/web/admin/admin-worker.controller.js.map +1 -0
  317. package/dist/web/dashboard.controller.d.ts +6 -12
  318. package/dist/web/dashboard.controller.d.ts.map +1 -1
  319. package/dist/web/dashboard.controller.js +30 -18
  320. package/dist/web/dashboard.controller.js.map +1 -1
  321. package/dist/web/dashboard.service.d.ts +21 -12
  322. package/dist/web/dashboard.service.d.ts.map +1 -1
  323. package/dist/web/dashboard.service.js +169 -119
  324. package/dist/web/dashboard.service.js.map +1 -1
  325. package/dist/web/event.gateway.d.ts +32 -0
  326. package/dist/web/event.gateway.d.ts.map +1 -0
  327. package/dist/web/event.gateway.js +168 -0
  328. package/dist/web/event.gateway.js.map +1 -0
  329. package/dist/web/frame-handlers/frame-handler.interface.d.ts +24 -0
  330. package/dist/web/frame-handlers/frame-handler.interface.d.ts.map +1 -0
  331. package/dist/web/frame-handlers/frame-handler.interface.js +3 -0
  332. package/dist/web/frame-handlers/frame-handler.interface.js.map +1 -0
  333. package/dist/web/frame-handlers/frame-handler.registry.d.ts +16 -0
  334. package/dist/web/frame-handlers/frame-handler.registry.d.ts.map +1 -0
  335. package/dist/web/frame-handlers/frame-handler.registry.js +39 -0
  336. package/dist/web/frame-handlers/frame-handler.registry.js.map +1 -0
  337. package/dist/web/frame-handlers/heartbeat.handler.d.ts +13 -0
  338. package/dist/web/frame-handlers/heartbeat.handler.d.ts.map +1 -0
  339. package/dist/web/frame-handlers/heartbeat.handler.js +35 -0
  340. package/dist/web/frame-handlers/heartbeat.handler.js.map +1 -0
  341. package/dist/web/frame-handlers/index.d.ts +7 -0
  342. package/dist/web/frame-handlers/index.d.ts.map +1 -0
  343. package/dist/web/frame-handlers/index.js +14 -0
  344. package/dist/web/frame-handlers/index.js.map +1 -0
  345. package/dist/web/frame-handlers/progress.handler.d.ts +25 -0
  346. package/dist/web/frame-handlers/progress.handler.d.ts.map +1 -0
  347. package/dist/web/frame-handlers/progress.handler.js +69 -0
  348. package/dist/web/frame-handlers/progress.handler.js.map +1 -0
  349. package/dist/web/frame-handlers/stage-confirm.handler.d.ts +15 -0
  350. package/dist/web/frame-handlers/stage-confirm.handler.d.ts.map +1 -0
  351. package/dist/web/frame-handlers/stage-confirm.handler.js +39 -0
  352. package/dist/web/frame-handlers/stage-confirm.handler.js.map +1 -0
  353. package/dist/web/frame-handlers/tunnel.handler.d.ts +10 -0
  354. package/dist/web/frame-handlers/tunnel.handler.d.ts.map +1 -0
  355. package/dist/web/frame-handlers/tunnel.handler.js +31 -0
  356. package/dist/web/frame-handlers/tunnel.handler.js.map +1 -0
  357. package/dist/web/interaction.service.d.ts +0 -4
  358. package/dist/web/interaction.service.d.ts.map +1 -1
  359. package/dist/web/interaction.service.js +0 -10
  360. package/dist/web/interaction.service.js.map +1 -1
  361. package/dist/web/machine.controller.d.ts +1 -8
  362. package/dist/web/machine.controller.d.ts.map +1 -1
  363. package/dist/web/machine.controller.js +6 -9
  364. package/dist/web/machine.controller.js.map +1 -1
  365. package/dist/web/notification.controller.d.ts +1 -8
  366. package/dist/web/notification.controller.d.ts.map +1 -1
  367. package/dist/web/notification.controller.js +3 -2
  368. package/dist/web/notification.controller.js.map +1 -1
  369. package/dist/web/profile.controller.d.ts +19 -10
  370. package/dist/web/profile.controller.d.ts.map +1 -1
  371. package/dist/web/profile.controller.js +100 -13
  372. package/dist/web/profile.controller.js.map +1 -1
  373. package/dist/web/project-member.service.d.ts +16 -0
  374. package/dist/web/project-member.service.d.ts.map +1 -0
  375. package/dist/web/project-member.service.js +90 -0
  376. package/dist/web/project-member.service.js.map +1 -0
  377. package/dist/web/project.controller.d.ts +43 -26
  378. package/dist/web/project.controller.d.ts.map +1 -1
  379. package/dist/web/project.controller.js +73 -46
  380. package/dist/web/project.controller.js.map +1 -1
  381. package/dist/web/pty.gateway.d.ts +9 -3
  382. package/dist/web/pty.gateway.d.ts.map +1 -1
  383. package/dist/web/pty.gateway.js +46 -18
  384. package/dist/web/pty.gateway.js.map +1 -1
  385. package/dist/web/search.service.d.ts +9 -2
  386. package/dist/web/search.service.d.ts.map +1 -1
  387. package/dist/web/search.service.js +53 -26
  388. package/dist/web/search.service.js.map +1 -1
  389. package/dist/web/task.controller.d.ts +15 -24
  390. package/dist/web/task.controller.d.ts.map +1 -1
  391. package/dist/web/task.controller.js +70 -53
  392. package/dist/web/task.controller.js.map +1 -1
  393. package/dist/web/tunnel.service.d.ts +74 -0
  394. package/dist/web/tunnel.service.d.ts.map +1 -0
  395. package/dist/web/tunnel.service.js +250 -0
  396. package/dist/web/tunnel.service.js.map +1 -0
  397. package/dist/web/web-event.service.d.ts +25 -0
  398. package/dist/web/web-event.service.d.ts.map +1 -0
  399. package/dist/web/web-event.service.js +116 -0
  400. package/dist/web/web-event.service.js.map +1 -0
  401. package/dist/web/web.module.d.ts.map +1 -1
  402. package/dist/web/web.module.js +13 -28
  403. package/dist/web/web.module.js.map +1 -1
  404. package/dist/web/worker-channel.gateway.d.ts +10 -18
  405. package/dist/web/worker-channel.gateway.d.ts.map +1 -1
  406. package/dist/web/worker-channel.gateway.js +70 -144
  407. package/dist/web/worker-channel.gateway.js.map +1 -1
  408. package/dist/web/worker-web.controller.d.ts +15 -0
  409. package/dist/web/worker-web.controller.d.ts.map +1 -0
  410. package/dist/web/worker-web.controller.js +143 -0
  411. package/dist/web/worker-web.controller.js.map +1 -0
  412. package/dist/web/worker.controller.d.ts +3 -3
  413. package/dist/web/worker.controller.d.ts.map +1 -1
  414. package/dist/web/worker.controller.js +8 -8
  415. package/dist/web/worker.controller.js.map +1 -1
  416. package/dist/web/workspace.controller.d.ts +8 -33
  417. package/dist/web/workspace.controller.d.ts.map +1 -1
  418. package/dist/web/workspace.controller.js +93 -205
  419. package/dist/web/workspace.controller.js.map +1 -1
  420. package/package.json +10 -2
  421. package/public/apple-touch-icon-120x120.png +0 -0
  422. package/public/apple-touch-icon-152x152.png +0 -0
  423. package/public/apple-touch-icon-180x180.png +0 -0
  424. package/public/assets/AccessTokensPage-DPQB2fbi.js +1 -0
  425. package/public/assets/AdminPage-BqVelYNu.js +1 -0
  426. package/public/assets/ApiReferencePage-CiGvbLxL.js +1 -0
  427. package/public/assets/AuditLogPage-DSo4jVYm.js +6 -0
  428. package/public/assets/BindPlatformPage-CTqzpOmt.js +1 -0
  429. package/public/assets/BotManage-CIR0rrK7.js +6 -0
  430. package/public/assets/CliReferencePage-C8GmlwUz.js +14 -0
  431. package/public/assets/DeveloperManage-r6y2AoB4.js +16 -0
  432. package/public/assets/EditProjectPage-7WCsNltj.js +2 -0
  433. package/public/assets/{EmptyState-CvmhFgWJ.js → EmptyState-D3foEiul.js} +1 -1
  434. package/public/assets/HomePage-D4yv4orb.js +1 -0
  435. package/public/assets/InfoRow-DhdTYoY9.js +1 -0
  436. package/public/assets/LandingPage-CqS0E2eC.js +43 -0
  437. package/public/assets/LoginPage-DDXkdcz_.js +1 -0
  438. package/public/assets/MetricBar-DMMHfS0A.js +1 -0
  439. package/public/assets/{NotFoundPage-BuiAS4g4.js → NotFoundPage-D5x5BrlX.js} +1 -1
  440. package/public/assets/OnboardingGuide-D8RyPcEd.js +1 -0
  441. package/public/assets/PipelineEditorPage-y2-Q8ofQ.js +3 -0
  442. package/public/assets/ProfilePage-DN7usHOi.js +1 -0
  443. package/public/assets/ProjectDetailPage-DJexg49z.js +7 -0
  444. package/public/assets/ProjectListPage-Bz7I2D0H.js +6 -0
  445. package/public/assets/QuickAuth-Dr0Q50ld.js +1 -0
  446. package/public/assets/{RemoveMemberConfirmDialog-DS9z6jQT.js → RemoveMemberConfirmDialog-BCrue0AP.js} +2 -2
  447. package/public/assets/Select-BnV8yZlD.js +6 -0
  448. package/public/assets/SettingsPage-HaUCcsgl.js +6 -0
  449. package/public/assets/{Skeleton-CcVqz28_.js → Skeleton-DUgWc2LJ.js} +1 -1
  450. package/public/assets/SkillPage-BInwZTQh.js +1 -0
  451. package/public/assets/TaskDetailPage-CfwEj1hy.js +31 -0
  452. package/public/assets/TaskListPage-Dh59ldSZ.js +1 -0
  453. package/public/assets/TaskStatusBadge-DuOoGIwE.js +1 -0
  454. package/public/assets/TerminalHomePage-BwXJjr-a.js +16 -0
  455. package/public/assets/TokenManage-B0Cpv6SO.js +1 -0
  456. package/public/assets/TotpSetupPage-MSCCURj9.js +9 -0
  457. package/public/assets/WorkerDetailPage-R2veIzKo.js +1 -0
  458. package/public/assets/WorkerListPage-CserMjGO.js +6 -0
  459. package/public/assets/WorkerSetupGuidePage-SqO2lzVa.js +11 -0
  460. package/public/assets/{arrow-left-CVKez32c.js → arrow-left-DklRsENx.js} +1 -1
  461. package/public/assets/{arrow-right-g7hTftEi.js → arrow-right-MDrzFe3K.js} +1 -1
  462. package/public/assets/{bot-DYvBcsZn.js → bot-DPaziJPf.js} +1 -1
  463. package/public/assets/{chevron-right-COxU2yxz.js → chevron-right-CqyufMDW.js} +1 -1
  464. package/public/assets/{copy-BGttVgA1.js → copy-BUH7P2Hf.js} +1 -1
  465. package/public/assets/date-BdNtiQTP.js +1 -0
  466. package/public/assets/{external-link-DXlCfUjE.js → external-link-ChPgQ7N_.js} +1 -1
  467. package/public/assets/index-BS0Fbx5V.css +1 -0
  468. package/public/assets/index-vL7aQJNr.js +225 -0
  469. package/public/assets/{key-3eDVdGih.js → key-CxvwwHnW.js} +1 -1
  470. package/public/assets/{loader-circle-DPm92ETj.js → loader-circle-DS5g1-Od.js} +1 -1
  471. package/public/assets/password-CHk45-jw.js +1 -0
  472. package/public/assets/{pencil-Bs3PwH2W.js → pencil-B6spIBcw.js} +1 -1
  473. package/public/assets/{plus-d-PLzbVX.js → plus-Bnd1Vz2Y.js} +1 -1
  474. package/public/assets/{rotate-ccw-Cus8CABi.js → rotate-ccw-CgcLAXNR.js} +1 -1
  475. package/public/assets/{scroll-text-CV3wlIy2.js → scroll-text-CecZ0Fk5.js} +1 -1
  476. package/public/assets/{settings-Ccijf48b.js → settings-C1uOD3PZ.js} +1 -1
  477. package/public/assets/status-colors-BPEUp90-.js +1 -0
  478. package/public/assets/string-B39tzdVK.js +1 -0
  479. package/public/assets/task-constants-BbFyCyKk.js +14 -0
  480. package/public/assets/task.store-BE6fEPu4.js +1 -0
  481. package/public/assets/{trash-2-bRJ-xwtq.js → trash-2-A2FsT1yG.js} +1 -1
  482. package/public/assets/useFetch-vGZMAvGi.js +1 -0
  483. package/public/assets/{users-LNQqKSEN.js → users-CEdRS_A3.js} +1 -1
  484. package/public/assets/wifi-D60NkK6F.js +6 -0
  485. package/public/assets/zap-DXw1NrWz.js +6 -0
  486. package/public/icon-192x192.png +0 -0
  487. package/public/icon-512x512.png +0 -0
  488. package/public/icon-maskable-192x192.png +0 -0
  489. package/public/icon-maskable-512x512.png +0 -0
  490. package/public/index.html +21 -4
  491. package/public/manifest.webmanifest +1 -0
  492. package/public/og-image.png +0 -0
  493. package/public/registerSW.js +1 -0
  494. package/public/sw.js +1 -0
  495. package/public/workbox-6e9b121d.js +1 -0
  496. package/database/migrations/002-add-indexes.sql +0 -17
  497. package/database/migrations/003-add-settings-table.sql +0 -4
  498. package/database/migrations/004-add-developer-id-index.sql +0 -5
  499. package/database/migrations/005-add-worker-version.sql +0 -2
  500. package/database/migrations/006-add-decommission-fields.sql +0 -2
  501. package/database/migrations/007-add-ssh-url.sql +0 -1
  502. package/public/assets/AccessTokensPage-Cb5hGBfN.js +0 -1
  503. package/public/assets/AdminPage-C7Xytkfo.js +0 -1
  504. package/public/assets/ApiReferencePage-DLGVc4xN.js +0 -1
  505. package/public/assets/AuditLogPage-BgqsUJ7x.js +0 -6
  506. package/public/assets/BotManage-Ds9DYQZA.js +0 -6
  507. package/public/assets/CliReferencePage-WXinn_69.js +0 -8
  508. package/public/assets/DeveloperManage-saSq3Hfx.js +0 -16
  509. package/public/assets/EditProjectPage-C4xWYLTo.js +0 -2
  510. package/public/assets/HomePage-y20pQ52r.js +0 -1
  511. package/public/assets/LandingPage-CB5BBbdI.js +0 -36
  512. package/public/assets/LoginPage-DLljhJkQ.js +0 -1
  513. package/public/assets/MachineDetailPage-CPm9tfdp.js +0 -1
  514. package/public/assets/MachineListPage-D-nhVz-m.js +0 -6
  515. package/public/assets/PipelineEditorPage-B9GgqAju.js +0 -3
  516. package/public/assets/ProfilePage-DASpeJq6.js +0 -1
  517. package/public/assets/ProjectDetailPage-DWZyNwTV.js +0 -7
  518. package/public/assets/ProjectListPage-BUMX3Dxa.js +0 -6
  519. package/public/assets/QuickAuth-B9mvq7ht.js +0 -1
  520. package/public/assets/Select-A7PXobk_.js +0 -6
  521. package/public/assets/SettingsPage-WGzxUbGp.js +0 -6
  522. package/public/assets/SkillPage-BIt2kF3W.js +0 -1
  523. package/public/assets/TaskDetailPage-CePyNfp6.js +0 -44
  524. package/public/assets/TaskListPage-MO4_PSve.js +0 -1
  525. package/public/assets/TaskStatusBadge-QtQUDscM.js +0 -1
  526. package/public/assets/TokenManage-Sf0RGymw.js +0 -1
  527. package/public/assets/TotpSetupPage-D-rbEYLf.js +0 -9
  528. package/public/assets/WorkerSetupGuidePage-D6Fv1MQo.js +0 -16
  529. package/public/assets/index-CDBuOPx4.js +0 -212
  530. package/public/assets/index-CQojj7Zu.css +0 -1
  531. package/public/assets/protocol-C5uQmiiB.js +0 -1
  532. package/public/assets/task.store-CvjSr507.js +0 -1
  533. /package/public/assets/{TaskDetailPage-Beg8tuEN.css → task-constants-Beg8tuEN.css} +0 -0
@@ -0,0 +1,225 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LandingPage-CqS0E2eC.js","assets/arrow-right-MDrzFe3K.js","assets/zap-DXw1NrWz.js","assets/bot-DPaziJPf.js","assets/users-CEdRS_A3.js","assets/copy-BUH7P2Hf.js","assets/HomePage-D4yv4orb.js","assets/TaskStatusBadge-DuOoGIwE.js","assets/status-colors-BPEUp90-.js","assets/Skeleton-DUgWc2LJ.js","assets/OnboardingGuide-D8RyPcEd.js","assets/chevron-right-CqyufMDW.js","assets/date-BdNtiQTP.js","assets/string-B39tzdVK.js","assets/useFetch-vGZMAvGi.js","assets/TerminalHomePage-BwXJjr-a.js","assets/task.store-BE6fEPu4.js","assets/task-constants-BbFyCyKk.js","assets/task-constants-Beg8tuEN.css","assets/Select-BnV8yZlD.js","assets/plus-Bnd1Vz2Y.js","assets/wifi-D60NkK6F.js","assets/TaskListPage-Dh59ldSZ.js","assets/EmptyState-D3foEiul.js","assets/TaskDetailPage-CfwEj1hy.js","assets/arrow-left-DklRsENx.js","assets/rotate-ccw-CgcLAXNR.js","assets/external-link-ChPgQ7N_.js","assets/loader-circle-DS5g1-Od.js","assets/WorkerListPage-CserMjGO.js","assets/MetricBar-DMMHfS0A.js","assets/WorkerSetupGuidePage-SqO2lzVa.js","assets/key-CxvwwHnW.js","assets/settings-C1uOD3PZ.js","assets/WorkerDetailPage-R2veIzKo.js","assets/InfoRow-DhdTYoY9.js","assets/trash-2-A2FsT1yG.js","assets/ProjectListPage-Bz7I2D0H.js","assets/ProjectDetailPage-DJexg49z.js","assets/RemoveMemberConfirmDialog-BCrue0AP.js","assets/pencil-B6spIBcw.js","assets/EditProjectPage-7WCsNltj.js","assets/PipelineEditorPage-y2-Q8ofQ.js","assets/ProfilePage-DN7usHOi.js","assets/password-CHk45-jw.js","assets/AccessTokensPage-DPQB2fbi.js","assets/CliReferencePage-C8GmlwUz.js","assets/QuickAuth-Dr0Q50ld.js","assets/ApiReferencePage-CiGvbLxL.js","assets/SkillPage-BInwZTQh.js","assets/AdminPage-BqVelYNu.js","assets/scroll-text-CecZ0Fk5.js","assets/DeveloperManage-r6y2AoB4.js","assets/BotManage-CIR0rrK7.js","assets/TokenManage-B0Cpv6SO.js","assets/AuditLogPage-DSo4jVYm.js"])))=>i.map(i=>d[i]);
2
+ var Xy=Object.defineProperty;var Im=u=>{throw TypeError(u)};var Vy=(u,r,s)=>r in u?Xy(u,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[r]=s;var Xe=(u,r,s)=>Vy(u,typeof r!="symbol"?r+"":r,s),_s=(u,r,s)=>r.has(u)||Im("Cannot "+s);var U=(u,r,s)=>(_s(u,r,"read from private field"),s?s.call(u):r.get(u)),It=(u,r,s)=>r.has(u)?Im("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(u):r.set(u,s),Zt=(u,r,s,o)=>(_s(u,r,"write to private field"),o?o.call(u,s):r.set(u,s),s),be=(u,r,s)=>(_s(u,r,"access private method"),s);var Pm=(u,r,s,o)=>({set _(f){Zt(u,r,f,s)},get _(){return U(u,r,o)}});(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(f){if(f.ep)return;f.ep=!0;const m=s(f);fetch(f.href,m)}})();function Qy(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var ys={exports:{}},ei={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var eh;function Zy(){if(eh)return ei;eh=1;var u=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(o,f,m){var h=null;if(m!==void 0&&(h=""+m),f.key!==void 0&&(h=""+f.key),"key"in f){m={};for(var x in f)x!=="key"&&(m[x]=f[x])}else m=f;return f=m.ref,{$$typeof:u,type:o,key:h,ref:f!==void 0?f:null,props:m}}return ei.Fragment=r,ei.jsx=s,ei.jsxs=s,ei}var th;function Ky(){return th||(th=1,ys.exports=Zy()),ys.exports}var _=Ky(),gs={exports:{}},te={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var ah;function Jy(){if(ah)return te;ah=1;var u=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),M=Symbol.iterator;function X(S){return S===null||typeof S!="object"?null:(S=M&&S[M]||S["@@iterator"],typeof S=="function"?S:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,H={};function L(S,D,G){this.props=S,this.context=D,this.refs=H,this.updater=G||B}L.prototype.isReactComponent={},L.prototype.setState=function(S,D){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,D,"setState")},L.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=L.prototype;function J(S,D,G){this.props=S,this.context=D,this.refs=H,this.updater=G||B}var he=J.prototype=new I;he.constructor=J,q(he,L.prototype),he.isPureReactComponent=!0;var pe=Array.isArray;function de(){}var W={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ue(S,D,G){var Z=G.ref;return{$$typeof:u,type:S,key:D,ref:Z!==void 0?Z:null,props:G}}function Pe(S,D){return ue(S.type,D,S.props)}function Je(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function qe(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return D[G]})}var At=/\/+/g;function rt(S,D){return typeof S=="object"&&S!==null&&S.key!=null?qe(""+S.key):D.toString(36)}function De(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(de,de):(S.status="pending",S.then(function(D){S.status==="pending"&&(S.status="fulfilled",S.value=D)},function(D){S.status==="pending"&&(S.status="rejected",S.reason=D)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function C(S,D,G,Z,ae){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var ve=!1;if(S===null)ve=!0;else switch(re){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(S.$$typeof){case u:case r:ve=!0;break;case j:return ve=S._init,C(ve(S._payload),D,G,Z,ae)}}if(ve)return ae=ae(S),ve=Z===""?"."+rt(S,0):Z,pe(ae)?(G="",ve!=null&&(G=ve.replace(At,"$&/")+"/"),C(ae,D,G,"",function(rn){return rn})):ae!=null&&(Je(ae)&&(ae=Pe(ae,G+(ae.key==null||S&&S.key===ae.key?"":(""+ae.key).replace(At,"$&/")+"/")+ve)),D.push(ae)),1;ve=0;var ot=Z===""?".":Z+":";if(pe(S))for(var Be=0;Be<S.length;Be++)Z=S[Be],re=ot+rt(Z,Be),ve+=C(Z,D,G,re,ae);else if(Be=X(S),typeof Be=="function")for(S=Be.call(S),Be=0;!(Z=S.next()).done;)Z=Z.value,re=ot+rt(Z,Be++),ve+=C(Z,D,G,re,ae);else if(re==="object"){if(typeof S.then=="function")return C(De(S),D,G,Z,ae);throw D=String(S),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Y(S,D,G){if(S==null)return S;var Z=[],ae=0;return C(S,Z,"","",function(re){return D.call(G,re,ae++)}),Z}function ee(S){if(S._status===-1){var D=S._result;D=D(),D.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=D)}if(S._status===1)return S._result.default;throw S._result}var ke=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ae={map:Y,forEach:function(S,D,G){Y(S,function(){D.apply(this,arguments)},G)},count:function(S){var D=0;return Y(S,function(){D++}),D},toArray:function(S){return Y(S,function(D){return D})||[]},only:function(S){if(!Je(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return te.Activity=k,te.Children=Ae,te.Component=L,te.Fragment=s,te.Profiler=f,te.PureComponent=J,te.StrictMode=o,te.Suspense=g,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,te.__COMPILER_RUNTIME={__proto__:null,c:function(S){return W.H.useMemoCache(S)}},te.cache=function(S){return function(){return S.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(S,D,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=q({},S.props),ae=S.key;if(D!=null)for(re in D.key!==void 0&&(ae=""+D.key),D)!$.call(D,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&D.ref===void 0||(Z[re]=D[re]);var re=arguments.length-2;if(re===1)Z.children=G;else if(1<re){for(var ve=Array(re),ot=0;ot<re;ot++)ve[ot]=arguments[ot+2];Z.children=ve}return ue(S.type,ae,Z)},te.createContext=function(S){return S={$$typeof:h,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},te.createElement=function(S,D,G){var Z,ae={},re=null;if(D!=null)for(Z in D.key!==void 0&&(re=""+D.key),D)$.call(D,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ae[Z]=D[Z]);var ve=arguments.length-2;if(ve===1)ae.children=G;else if(1<ve){for(var ot=Array(ve),Be=0;Be<ve;Be++)ot[Be]=arguments[Be+2];ae.children=ot}if(S&&S.defaultProps)for(Z in ve=S.defaultProps,ve)ae[Z]===void 0&&(ae[Z]=ve[Z]);return ue(S,re,ae)},te.createRef=function(){return{current:null}},te.forwardRef=function(S){return{$$typeof:x,render:S}},te.isValidElement=Je,te.lazy=function(S){return{$$typeof:j,_payload:{_status:-1,_result:S},_init:ee}},te.memo=function(S,D){return{$$typeof:p,type:S,compare:D===void 0?null:D}},te.startTransition=function(S){var D=W.T,G={};W.T=G;try{var Z=S(),ae=W.S;ae!==null&&ae(G,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(de,ke)}catch(re){ke(re)}finally{D!==null&&G.types!==null&&(D.types=G.types),W.T=D}},te.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},te.use=function(S){return W.H.use(S)},te.useActionState=function(S,D,G){return W.H.useActionState(S,D,G)},te.useCallback=function(S,D){return W.H.useCallback(S,D)},te.useContext=function(S){return W.H.useContext(S)},te.useDebugValue=function(){},te.useDeferredValue=function(S,D){return W.H.useDeferredValue(S,D)},te.useEffect=function(S,D){return W.H.useEffect(S,D)},te.useEffectEvent=function(S){return W.H.useEffectEvent(S)},te.useId=function(){return W.H.useId()},te.useImperativeHandle=function(S,D,G){return W.H.useImperativeHandle(S,D,G)},te.useInsertionEffect=function(S,D){return W.H.useInsertionEffect(S,D)},te.useLayoutEffect=function(S,D){return W.H.useLayoutEffect(S,D)},te.useMemo=function(S,D){return W.H.useMemo(S,D)},te.useOptimistic=function(S,D){return W.H.useOptimistic(S,D)},te.useReducer=function(S,D,G){return W.H.useReducer(S,D,G)},te.useRef=function(S){return W.H.useRef(S)},te.useState=function(S){return W.H.useState(S)},te.useSyncExternalStore=function(S,D,G){return W.H.useSyncExternalStore(S,D,G)},te.useTransition=function(){return W.H.useTransition()},te.version="19.2.4",te}var lh;function Bs(){return lh||(lh=1,gs.exports=Jy()),gs.exports}var v=Bs();const ju=Qy(v);var vs={exports:{}},ti={},bs={exports:{}},xs={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var nh;function $y(){return nh||(nh=1,(function(u){function r(C,Y){var ee=C.length;C.push(Y);e:for(;0<ee;){var ke=ee-1>>>1,Ae=C[ke];if(0<f(Ae,Y))C[ke]=Y,C[ee]=Ae,ee=ke;else break e}}function s(C){return C.length===0?null:C[0]}function o(C){if(C.length===0)return null;var Y=C[0],ee=C.pop();if(ee!==Y){C[0]=ee;e:for(var ke=0,Ae=C.length,S=Ae>>>1;ke<S;){var D=2*(ke+1)-1,G=C[D],Z=D+1,ae=C[Z];if(0>f(G,ee))Z<Ae&&0>f(ae,G)?(C[ke]=ae,C[Z]=ee,ke=Z):(C[ke]=G,C[D]=ee,ke=D);else if(Z<Ae&&0>f(ae,ee))C[ke]=ae,C[Z]=ee,ke=Z;else break e}}return Y}function f(C,Y){var ee=C.sortIndex-Y.sortIndex;return ee!==0?ee:C.id-Y.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var h=Date,x=h.now();u.unstable_now=function(){return h.now()-x}}var g=[],p=[],j=1,k=null,M=3,X=!1,B=!1,q=!1,H=!1,L=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function he(C){for(var Y=s(p);Y!==null;){if(Y.callback===null)o(p);else if(Y.startTime<=C)o(p),Y.sortIndex=Y.expirationTime,r(g,Y);else break;Y=s(p)}}function pe(C){if(q=!1,he(C),!B)if(s(g)!==null)B=!0,de||(de=!0,qe());else{var Y=s(p);Y!==null&&De(pe,Y.startTime-C)}}var de=!1,W=-1,$=5,ue=-1;function Pe(){return H?!0:!(u.unstable_now()-ue<$)}function Je(){if(H=!1,de){var C=u.unstable_now();ue=C;var Y=!0;try{e:{B=!1,q&&(q=!1,I(W),W=-1),X=!0;var ee=M;try{t:{for(he(C),k=s(g);k!==null&&!(k.expirationTime>C&&Pe());){var ke=k.callback;if(typeof ke=="function"){k.callback=null,M=k.priorityLevel;var Ae=ke(k.expirationTime<=C);if(C=u.unstable_now(),typeof Ae=="function"){k.callback=Ae,he(C),Y=!0;break t}k===s(g)&&o(g),he(C)}else o(g);k=s(g)}if(k!==null)Y=!0;else{var S=s(p);S!==null&&De(pe,S.startTime-C),Y=!1}}break e}finally{k=null,M=ee,X=!1}Y=void 0}}finally{Y?qe():de=!1}}}var qe;if(typeof J=="function")qe=function(){J(Je)};else if(typeof MessageChannel<"u"){var At=new MessageChannel,rt=At.port2;At.port1.onmessage=Je,qe=function(){rt.postMessage(null)}}else qe=function(){L(Je,0)};function De(C,Y){W=L(function(){C(u.unstable_now())},Y)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(C){C.callback=null},u.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<C?Math.floor(1e3/C):5},u.unstable_getCurrentPriorityLevel=function(){return M},u.unstable_next=function(C){switch(M){case 1:case 2:case 3:var Y=3;break;default:Y=M}var ee=M;M=Y;try{return C()}finally{M=ee}},u.unstable_requestPaint=function(){H=!0},u.unstable_runWithPriority=function(C,Y){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var ee=M;M=C;try{return Y()}finally{M=ee}},u.unstable_scheduleCallback=function(C,Y,ee){var ke=u.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ke+ee:ke):ee=ke,C){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=ee+Ae,C={id:j++,callback:Y,priorityLevel:C,startTime:ee,expirationTime:Ae,sortIndex:-1},ee>ke?(C.sortIndex=ee,r(p,C),s(g)===null&&C===s(p)&&(q?(I(W),W=-1):q=!0,De(pe,ee-ke))):(C.sortIndex=Ae,r(g,C),B||X||(B=!0,de||(de=!0,qe()))),C},u.unstable_shouldYield=Pe,u.unstable_wrapCallback=function(C){var Y=M;return function(){var ee=M;M=Y;try{return C.apply(this,arguments)}finally{M=ee}}}})(xs)),xs}var ih;function Wy(){return ih||(ih=1,bs.exports=$y()),bs.exports}var Ss={exports:{}},it={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var uh;function Fy(){if(uh)return it;uh=1;var u=Bs();function r(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)p+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(g,p,j){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:k==null?null:""+k,children:g,containerInfo:p,implementation:j}}var h=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(g,p){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return m(g,p,null,j)},it.flushSync=function(g){var p=h.T,j=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=p,o.p=j,o.d.f()}},it.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},it.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},it.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var j=p.as,k=x(j,p.crossOrigin),M=typeof p.integrity=="string"?p.integrity:void 0,X=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;j==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:k,integrity:M,fetchPriority:X}):j==="script"&&o.d.X(g,{crossOrigin:k,integrity:M,fetchPriority:X,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},it.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var j=x(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:j,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},it.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var j=p.as,k=x(j,p.crossOrigin);o.d.L(g,j,{crossOrigin:k,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},it.preloadModule=function(g,p){if(typeof g=="string")if(p){var j=x(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:j,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},it.requestFormReset=function(g){o.d.r(g)},it.unstable_batchedUpdates=function(g,p){return g(p)},it.useFormState=function(g,p,j){return h.H.useFormState(g,p,j)},it.useFormStatus=function(){return h.H.useHostTransitionStatus()},it.version="19.2.4",it}var rh;function Iy(){if(rh)return Ss.exports;rh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(r){console.error(r)}}return u(),Ss.exports=Fy(),Ss.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var oh;function Py(){if(oh)return ti;oh=1;var u=Wy(),r=Bs(),s=Iy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(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 g(e){if(m(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return g(n),e;if(i===l)return g(n),t;i=i.sibling}throw Error(o(188))}if(a.return!==l.return)a=n,l=i;else{for(var c=!1,d=n.child;d;){if(d===a){c=!0,a=n,l=i;break}if(d===l){c=!0,l=n,a=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===a){c=!0,a=i,l=n;break}if(d===l){c=!0,l=i,a=n;break}d=d.sibling}if(!c)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}var k=Object.assign,M=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),J=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),Pe=Symbol.for("react.memo_cache_sentinel"),Je=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}var At=Symbol.for("react.client.reference");function rt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===At?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case L:return"Profiler";case H:return"StrictMode";case pe:return"Suspense";case de:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case J:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case he:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:rt(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return rt(e(t))}catch{}}return null}var De=Array.isArray,C=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ke=[],Ae=-1;function S(e){return{current:e}}function D(e){0>Ae||(e.current=ke[Ae],ke[Ae]=null,Ae--)}function G(e,t){Ae++,ke[Ae]=e.current,e.current=t}var Z=S(null),ae=S(null),re=S(null),ve=S(null);function ot(e,t){switch(G(re,t),G(ae,e),G(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xm(t),e=Sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(Z),G(Z,e)}function Be(){D(Z),D(ae),D(re)}function rn(e){e.memoizedState!==null&&G(ve,e);var t=Z.current,a=Sm(t,e.type);t!==a&&(G(ae,e),G(Z,a))}function ci(e){ae.current===e&&(D(Z),D(ae)),ve.current===e&&(D(ve),Wn._currentValue=ee)}var Fu,Ws;function Ia(e){if(Fu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Fu=t&&t[1]||"",Ws=-1<a.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Fu+e+Ws}var Iu=!1;function Pu(e,t){if(!e||Iu)return"";Iu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(A){var R=A}Reflect.construct(e,[],N)}else{try{N.call()}catch(A){R=A}e.call(N.prototype)}}else{try{throw Error()}catch(A){R=A}(N=e())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(A){if(A&&R&&typeof A.stack=="string")return[A.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var y=c.split(`
45
+ `),T=d.split(`
46
+ `);for(n=l=0;l<y.length&&!y[l].includes("DetermineComponentFrameRoot");)l++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(l===y.length||n===T.length)for(l=y.length-1,n=T.length-1;1<=l&&0<=n&&y[l]!==T[n];)n--;for(;1<=l&&0<=n;l--,n--)if(y[l]!==T[n]){if(l!==1||n!==1)do if(l--,n--,0>n||y[l]!==T[n]){var z=`
47
+ `+y[l].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=l&&0<=n);break}}}finally{Iu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ia(a):""}function bp(e,t){switch(e.tag){case 26:case 27:case 5:return Ia(e.type);case 16:return Ia("Lazy");case 13:return e.child!==t&&t!==null?Ia("Suspense Fallback"):Ia("Suspense");case 19:return Ia("SuspenseList");case 0:case 15:return Pu(e.type,!1);case 11:return Pu(e.type.render,!1);case 1:return Pu(e.type,!0);case 31:return Ia("Activity");default:return""}}function Fs(e){try{var t="",a=null;do t+=bp(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
48
+ Error generating stack: `+l.message+`
49
+ `+l.stack}}var er=Object.prototype.hasOwnProperty,tr=u.unstable_scheduleCallback,ar=u.unstable_cancelCallback,xp=u.unstable_shouldYield,Sp=u.unstable_requestPaint,gt=u.unstable_now,Ep=u.unstable_getCurrentPriorityLevel,Is=u.unstable_ImmediatePriority,Ps=u.unstable_UserBlockingPriority,fi=u.unstable_NormalPriority,kp=u.unstable_LowPriority,ec=u.unstable_IdlePriority,wp=u.log,Tp=u.unstable_setDisableYieldValue,on=null,vt=null;function Ea(e){if(typeof wp=="function"&&Tp(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(on,e)}catch{}}var bt=Math.clz32?Math.clz32:Ap,Rp=Math.log,jp=Math.LN2;function Ap(e){return e>>>=0,e===0?32:31-(Rp(e)/jp|0)|0}var di=256,mi=262144,hi=4194304;function Pa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~i,l!==0?n=Pa(l):(c&=d,c!==0?n=Pa(c):a||(a=d&~e,a!==0&&(n=Pa(a))))):(d=l&~i,d!==0?n=Pa(d):c!==0?n=Pa(c):a||(a=l&~e,a!==0&&(n=Pa(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function sn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zp(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tc(){var e=hi;return hi<<=1,(hi&62914560)===0&&(hi=4194304),e}function lr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cp(e,t,a,l,n,i){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,T=e.hiddenUpdates;for(a=c&~a;0<a;){var z=31-bt(a),N=1<<z;d[z]=0,y[z]=-1;var R=T[z];if(R!==null)for(T[z]=null,z=0;z<R.length;z++){var A=R[z];A!==null&&(A.lane&=-536870913)}a&=~N}l!==0&&ac(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function ac(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-bt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function lc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-bt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function nc(e,t){var a=t&-t;return a=(a&42)!==0?1:nr(a),(a&(e.suspendedLanes|t))!==0?0:a}function nr(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 ir(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ic(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Qm(e.type))}function uc(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var ka=Math.random().toString(36).slice(2),et="__reactFiber$"+ka,ct="__reactProps$"+ka,vl="__reactContainer$"+ka,ur="__reactEvents$"+ka,Op="__reactListeners$"+ka,Np="__reactHandles$"+ka,rc="__reactResources$"+ka,fn="__reactMarker$"+ka;function rr(e){delete e[et],delete e[ct],delete e[ur],delete e[Op],delete e[Np]}function bl(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vl]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Am(e);e!==null;){if(a=e[et])return a;e=Am(e)}return t}e=a,a=e.parentNode}return null}function xl(e){if(e=e[et]||e[vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Sl(e){var t=e[rc];return t||(t=e[rc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[fn]=!0}var oc=new Set,sc={};function el(e,t){El(e,t),El(e+"Capture",t)}function El(e,t){for(sc[e]=t,e=0;e<t.length;e++)oc.add(t[e])}var Dp=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]*$"),cc={},fc={};function Mp(e){return er.call(fc,e)?!0:er.call(cc,e)?!1:Dp.test(e)?fc[e]=!0:(cc[e]=!0,!1)}function _i(e,t,a){if(Mp(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function yi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function aa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Up(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){a=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function or(e){if(!e._valueTracker){var t=dc(e)?"checked":"value";e._valueTracker=Up(e,t,""+e[t])}}function mc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=dc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function gi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qp=/[\n"\\]/g;function Ct(e){return e.replace(qp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function sr(e,t,a,l,n,i,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?cr(e,c,zt(t)):a!=null?cr(e,c,zt(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+zt(d):e.removeAttribute("name")}function hc(e,t,a,l,n,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){or(e);return}a=a!=null?""+zt(a):"",t=t!=null?""+zt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),or(e)}function cr(e,t,a){t==="number"&&gi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function kl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function pc(e,t,a){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+zt(a):""}function _c(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(De(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=zt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),or(e)}function wl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Hp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Hp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function gc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&yc(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&yc(e,i,t[i])}function fr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lp=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"]]),Bp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vi(e){return Bp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function la(){}var dr=null;function mr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,Rl=null;function vc(e){var t=xl(e);if(t&&(e=t.stateNode)){var a=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(sr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ct(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ct]||null;if(!n)throw Error(o(90));sr(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&mc(l)}break e;case"textarea":pc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&kl(e,!!a.multiple,t,!1)}}}var hr=!1;function bc(e,t,a){if(hr)return e(t,a);hr=!0;try{var l=e(t);return l}finally{if(hr=!1,(Tl!==null||Rl!==null)&&(uu(),Tl&&(t=Tl,e=Rl,Rl=Tl=null,vc(t),e)))for(t=0;t<e.length;t++)vc(e[t])}}function mn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ct]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pr=!1;if(na)try{var hn={};Object.defineProperty(hn,"passive",{get:function(){pr=!0}}),window.addEventListener("test",hn,hn),window.removeEventListener("test",hn,hn)}catch{pr=!1}var wa=null,_r=null,bi=null;function xc(){if(bi)return bi;var e,t=_r,a=t.length,l,n="value"in wa?wa.value:wa.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(l=1;l<=c&&t[a-l]===n[i-l];l++);return bi=n.slice(e,1<l?1-l:void 0)}function xi(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 Si(){return!0}function Sc(){return!1}function ft(e){function t(a,l,n,i,c){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Si:Sc,this.isPropagationStopped=Sc,this}return k(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Si)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ei=ft(tl),pn=k({},tl,{view:0,detail:0}),Yp=ft(pn),yr,gr,_n,ki=k({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:br,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!==_n&&(_n&&e.type==="mousemove"?(yr=e.screenX-_n.screenX,gr=e.screenY-_n.screenY):gr=yr=0,_n=e),yr)},movementY:function(e){return"movementY"in e?e.movementY:gr}}),Ec=ft(ki),Gp=k({},ki,{dataTransfer:0}),Xp=ft(Gp),Vp=k({},pn,{relatedTarget:0}),vr=ft(Vp),Qp=k({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),Zp=ft(Qp),Kp=k({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jp=ft(Kp),$p=k({},tl,{data:0}),kc=ft($p),Wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fp={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"},Ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ip[e])?!!t[e]:!1}function br(){return Pp}var e_=k({},pn,{key:function(e){if(e.key){var t=Wp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:br,charCode:function(e){return e.type==="keypress"?xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),t_=ft(e_),a_=k({},ki,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wc=ft(a_),l_=k({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:br}),n_=ft(l_),i_=k({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),u_=ft(i_),r_=k({},ki,{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}),o_=ft(r_),s_=k({},tl,{newState:0,oldState:0}),c_=ft(s_),f_=[9,13,27,32],xr=na&&"CompositionEvent"in window,yn=null;na&&"documentMode"in document&&(yn=document.documentMode);var d_=na&&"TextEvent"in window&&!yn,Tc=na&&(!xr||yn&&8<yn&&11>=yn),Rc=" ",jc=!1;function Ac(e,t){switch(e){case"keyup":return f_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jl=!1;function m_(e,t){switch(e){case"compositionend":return zc(t);case"keypress":return t.which!==32?null:(jc=!0,Rc);case"textInput":return e=t.data,e===Rc&&jc?null:e;default:return null}}function h_(e,t){if(jl)return e==="compositionend"||!xr&&Ac(e,t)?(e=xc(),bi=_r=wa=null,jl=!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 Tc&&t.locale!=="ko"?null:t.data;default:return null}}var p_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Cc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!p_[e.type]:t==="textarea"}function Oc(e,t,a,l){Tl?Rl?Rl.push(l):Rl=[l]:Tl=l,t=mu(t,"onChange"),0<t.length&&(a=new Ei("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var gn=null,vn=null;function __(e){pm(e,0)}function wi(e){var t=dn(e);if(mc(t))return e}function Nc(e,t){if(e==="change")return t}var Dc=!1;if(na){var Sr;if(na){var Er="oninput"in document;if(!Er){var Mc=document.createElement("div");Mc.setAttribute("oninput","return;"),Er=typeof Mc.oninput=="function"}Sr=Er}else Sr=!1;Dc=Sr&&(!document.documentMode||9<document.documentMode)}function Uc(){gn&&(gn.detachEvent("onpropertychange",qc),vn=gn=null)}function qc(e){if(e.propertyName==="value"&&wi(vn)){var t=[];Oc(t,vn,e,mr(e)),bc(__,t)}}function y_(e,t,a){e==="focusin"?(Uc(),gn=t,vn=a,gn.attachEvent("onpropertychange",qc)):e==="focusout"&&Uc()}function g_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wi(vn)}function v_(e,t){if(e==="click")return wi(t)}function b_(e,t){if(e==="input"||e==="change")return wi(t)}function x_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:x_;function bn(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!er.call(t,n)||!xt(e[n],t[n]))return!1}return!0}function Hc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lc(e,t){var a=Hc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hc(a)}}function Bc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=gi(e.document)}return t}function kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var S_=na&&"documentMode"in document&&11>=document.documentMode,Al=null,wr=null,xn=null,Tr=!1;function Gc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tr||Al==null||Al!==gi(l)||(l=Al,"selectionStart"in l&&kr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xn&&bn(xn,l)||(xn=l,l=mu(wr,"onSelect"),0<l.length&&(t=new Ei("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Al)))}function al(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var zl={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},Rr={},Xc={};na&&(Xc=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);function ll(e){if(Rr[e])return Rr[e];if(!zl[e])return e;var t=zl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Xc)return Rr[e]=t[a];return e}var Vc=ll("animationend"),Qc=ll("animationiteration"),Zc=ll("animationstart"),E_=ll("transitionrun"),k_=ll("transitionstart"),w_=ll("transitioncancel"),Kc=ll("transitionend"),Jc=new Map,jr="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(" ");jr.push("scrollEnd");function Xt(e,t){Jc.set(e,t),el(t,[e])}var Ti=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)},Ot=[],Cl=0,Ar=0;function Ri(){for(var e=Cl,t=Ar=Cl=0;t<e;){var a=Ot[t];Ot[t++]=null;var l=Ot[t];Ot[t++]=null;var n=Ot[t];Ot[t++]=null;var i=Ot[t];if(Ot[t++]=null,l!==null&&n!==null){var c=l.pending;c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n}i!==0&&$c(a,n,i)}}function ji(e,t,a,l){Ot[Cl++]=e,Ot[Cl++]=t,Ot[Cl++]=a,Ot[Cl++]=l,Ar|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function zr(e,t,a,l){return ji(e,t,a,l),Ai(e)}function nl(e,t){return ji(e,null,null,t),Ai(e)}function $c(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-bt(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function Ai(e){if(50<Xn)throw Xn=0,Bo=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ol={};function T_(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,a,l){return new T_(e,t,a,l)}function Cr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=St(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Wc(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,a,l,n,i){var c=0;if(l=e,typeof e=="function")Cr(e)&&(c=1);else if(typeof e=="string")c=Cy(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=St(31,a,t,n),e.elementType=ue,e.lanes=i,e;case q:return il(a.children,n,i,t);case H:c=8,n|=24;break;case L:return e=St(12,a,t,n|2),e.elementType=L,e.lanes=i,e;case pe:return e=St(13,a,t,n),e.elementType=pe,e.lanes=i,e;case de:return e=St(19,a,t,n),e.elementType=de,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:c=10;break e;case I:c=9;break e;case he:c=11;break e;case W:c=14;break e;case $:c=16,l=null;break e}c=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=St(c,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function il(e,t,a,l){return e=St(7,e,l,t),e.lanes=a,e}function Or(e,t,a){return e=St(6,e,null,t),e.lanes=a,e}function Fc(e){var t=St(18,null,null,0);return t.stateNode=e,t}function Nr(e,t,a){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ic=new WeakMap;function Nt(e,t){if(typeof e=="object"&&e!==null){var a=Ic.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Fs(t)},Ic.set(e,t),t)}return{value:e,source:t,stack:Fs(t)}}var Nl=[],Dl=0,Ci=null,Sn=0,Dt=[],Mt=0,Ta=null,Jt=1,$t="";function ua(e,t){Nl[Dl++]=Sn,Nl[Dl++]=Ci,Ci=e,Sn=t}function Pc(e,t,a){Dt[Mt++]=Jt,Dt[Mt++]=$t,Dt[Mt++]=Ta,Ta=e;var l=Jt;e=$t;var n=32-bt(l)-1;l&=~(1<<n),a+=1;var i=32-bt(t)+n;if(30<i){var c=n-n%5;i=(l&(1<<c)-1).toString(32),l>>=c,n-=c,Jt=1<<32-bt(t)+n|a<<n|l,$t=i+e}else Jt=1<<i|a<<n|l,$t=e}function Dr(e){e.return!==null&&(ua(e,1),Pc(e,1,0))}function Mr(e){for(;e===Ci;)Ci=Nl[--Dl],Nl[Dl]=null,Sn=Nl[--Dl],Nl[Dl]=null;for(;e===Ta;)Ta=Dt[--Mt],Dt[Mt]=null,$t=Dt[--Mt],Dt[Mt]=null,Jt=Dt[--Mt],Dt[Mt]=null}function ef(e,t){Dt[Mt++]=Jt,Dt[Mt++]=$t,Dt[Mt++]=Ta,Jt=t.id,$t=t.overflow,Ta=e}var tt=null,Oe=null,me=!1,Ra=null,Ut=!1,Ur=Error(o(519));function ja(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw En(Nt(t,e)),Ur}function tf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[et]=e,t[ct]=l,a){case"dialog":se("cancel",t),se("close",t);break;case"iframe":case"object":case"embed":se("load",t);break;case"video":case"audio":for(a=0;a<Qn.length;a++)se(Qn[a],t);break;case"source":se("error",t);break;case"img":case"image":case"link":se("error",t),se("load",t);break;case"details":se("toggle",t);break;case"input":se("invalid",t),hc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":se("invalid",t);break;case"textarea":se("invalid",t),_c(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||vm(t.textContent,a)?(l.popover!=null&&(se("beforetoggle",t),se("toggle",t)),l.onScroll!=null&&se("scroll",t),l.onScrollEnd!=null&&se("scrollend",t),l.onClick!=null&&(t.onclick=la),t=!0):t=!1,t||ja(e,!0)}function af(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:tt=tt.return}}function Ml(e){if(e!==tt)return!1;if(!me)return af(e),me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ts(e.type,e.memoizedProps)),a=!a),a&&Oe&&ja(e),af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Oe=jm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Oe=jm(e)}else t===27?(t=Oe,Ga(e.type)?(e=us,us=null,Oe=e):Oe=t):Oe=tt?Ht(e.stateNode.nextSibling):null;return!0}function ul(){Oe=tt=null,me=!1}function qr(){var e=Ra;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),Ra=null),e}function En(e){Ra===null?Ra=[e]:Ra.push(e)}var Hr=S(null),rl=null,ra=null;function Aa(e,t,a){G(Hr,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=Hr.current,D(Hr)}function Lr(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Br(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){i.lanes|=a,d=i.alternate,d!==null&&(d.lanes|=a),Lr(i.return,a,e),l||(c=null);break e}i=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=a,i=c.alternate,i!==null&&(i.lanes|=a),Lr(c,a,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Ul(e,t,a,l){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var d=n.type;xt(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Wn):e=[Wn])}n=n.return}e!==null&&Br(t,e,a,l),t.flags|=262144}function Oi(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){rl=e,ra=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return lf(rl,e)}function Ni(e,t){return rl===null&&ol(e),lf(e,t)}function lf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ra===null){if(e===null)throw Error(o(308));ra=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ra=ra.next=t;return a}var R_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},j_=u.unstable_scheduleCallback,A_=u.unstable_NormalPriority,Ve={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yr(){return{controller:new R_,data:new Map,refCount:0}}function kn(e){e.refCount--,e.refCount===0&&j_(A_,function(){e.controller.abort()})}var wn=null,Gr=0,ql=0,Hl=null;function z_(e,t){if(wn===null){var a=wn=[];Gr=0,ql=Zo(),Hl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Gr++,t.then(nf,nf),t}function nf(){if(--Gr===0&&wn!==null){Hl!==null&&(Hl.status="fulfilled");var e=wn;wn=null,ql=0,Hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function C_(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var uf=C.S;C.S=function(e,t){Xd=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&z_(e,t),uf!==null&&uf(e,t)};var sl=S(null);function Xr(){var e=sl.current;return e!==null?e:ze.pooledCache}function Di(e,t){t===null?G(sl,sl.current):G(sl,t.pool)}function rf(){var e=Xr();return e===null?null:{parent:Ve._currentValue,pool:e}}var Ll=Error(o(460)),Vr=Error(o(474)),Mi=Error(o(542)),Ui={then:function(){}};function of(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(la,la),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e;default:if(typeof t.status=="string")t.then(la,la);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e}throw fl=t,Ll}}function cl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fl=a,Ll):a}}var fl=null;function cf(){if(fl===null)throw Error(o(459));var e=fl;return fl=null,e}function ff(e){if(e===Ll||e===Mi)throw Error(o(483))}var Bl=null,Tn=0;function qi(e){var t=Tn;return Tn+=1,Bl===null&&(Bl=[]),sf(Bl,e,t)}function Rn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===M?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function df(e){function t(E,b){if(e){var w=E.deletions;w===null?(E.deletions=[b],E.flags|=16):w.push(b)}}function a(E,b){if(!e)return null;for(;b!==null;)t(E,b),b=b.sibling;return null}function l(E){for(var b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function n(E,b){return E=ia(E,b),E.index=0,E.sibling=null,E}function i(E,b,w){return E.index=w,e?(w=E.alternate,w!==null?(w=w.index,w<b?(E.flags|=67108866,b):w):(E.flags|=67108866,b)):(E.flags|=1048576,b)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function d(E,b,w,O){return b===null||b.tag!==6?(b=Or(w,E.mode,O),b.return=E,b):(b=n(b,w),b.return=E,b)}function y(E,b,w,O){var F=w.type;return F===q?z(E,b,w.props.children,O,w.key):b!==null&&(b.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===$&&cl(F)===b.type)?(b=n(b,w.props),Rn(b,w),b.return=E,b):(b=zi(w.type,w.key,w.props,null,E.mode,O),Rn(b,w),b.return=E,b)}function T(E,b,w,O){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=Nr(w,E.mode,O),b.return=E,b):(b=n(b,w.children||[]),b.return=E,b)}function z(E,b,w,O,F){return b===null||b.tag!==7?(b=il(w,E.mode,O,F),b.return=E,b):(b=n(b,w),b.return=E,b)}function N(E,b,w){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Or(""+b,E.mode,w),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case X:return w=zi(b.type,b.key,b.props,null,E.mode,w),Rn(w,b),w.return=E,w;case B:return b=Nr(b,E.mode,w),b.return=E,b;case $:return b=cl(b),N(E,b,w)}if(De(b)||qe(b))return b=il(b,E.mode,w,null),b.return=E,b;if(typeof b.then=="function")return N(E,qi(b),w);if(b.$$typeof===J)return N(E,Ni(E,b),w);Hi(E,b)}return null}function R(E,b,w,O){var F=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return F!==null?null:d(E,b,""+w,O);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case X:return w.key===F?y(E,b,w,O):null;case B:return w.key===F?T(E,b,w,O):null;case $:return w=cl(w),R(E,b,w,O)}if(De(w)||qe(w))return F!==null?null:z(E,b,w,O,null);if(typeof w.then=="function")return R(E,b,qi(w),O);if(w.$$typeof===J)return R(E,b,Ni(E,w),O);Hi(E,w)}return null}function A(E,b,w,O,F){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return E=E.get(w)||null,d(b,E,""+O,F);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case X:return E=E.get(O.key===null?w:O.key)||null,y(b,E,O,F);case B:return E=E.get(O.key===null?w:O.key)||null,T(b,E,O,F);case $:return O=cl(O),A(E,b,w,O,F)}if(De(O)||qe(O))return E=E.get(w)||null,z(b,E,O,F,null);if(typeof O.then=="function")return A(E,b,w,qi(O),F);if(O.$$typeof===J)return A(E,b,w,Ni(b,O),F);Hi(b,O)}return null}function Q(E,b,w,O){for(var F=null,_e=null,K=b,ne=b=0,fe=null;K!==null&&ne<w.length;ne++){K.index>ne?(fe=K,K=null):fe=K.sibling;var ye=R(E,K,w[ne],O);if(ye===null){K===null&&(K=fe);break}e&&K&&ye.alternate===null&&t(E,K),b=i(ye,b,ne),_e===null?F=ye:_e.sibling=ye,_e=ye,K=fe}if(ne===w.length)return a(E,K),me&&ua(E,ne),F;if(K===null){for(;ne<w.length;ne++)K=N(E,w[ne],O),K!==null&&(b=i(K,b,ne),_e===null?F=K:_e.sibling=K,_e=K);return me&&ua(E,ne),F}for(K=l(K);ne<w.length;ne++)fe=A(K,E,ne,w[ne],O),fe!==null&&(e&&fe.alternate!==null&&K.delete(fe.key===null?ne:fe.key),b=i(fe,b,ne),_e===null?F=fe:_e.sibling=fe,_e=fe);return e&&K.forEach(function(Ka){return t(E,Ka)}),me&&ua(E,ne),F}function P(E,b,w,O){if(w==null)throw Error(o(151));for(var F=null,_e=null,K=b,ne=b=0,fe=null,ye=w.next();K!==null&&!ye.done;ne++,ye=w.next()){K.index>ne?(fe=K,K=null):fe=K.sibling;var Ka=R(E,K,ye.value,O);if(Ka===null){K===null&&(K=fe);break}e&&K&&Ka.alternate===null&&t(E,K),b=i(Ka,b,ne),_e===null?F=Ka:_e.sibling=Ka,_e=Ka,K=fe}if(ye.done)return a(E,K),me&&ua(E,ne),F;if(K===null){for(;!ye.done;ne++,ye=w.next())ye=N(E,ye.value,O),ye!==null&&(b=i(ye,b,ne),_e===null?F=ye:_e.sibling=ye,_e=ye);return me&&ua(E,ne),F}for(K=l(K);!ye.done;ne++,ye=w.next())ye=A(K,E,ne,ye.value,O),ye!==null&&(e&&ye.alternate!==null&&K.delete(ye.key===null?ne:ye.key),b=i(ye,b,ne),_e===null?F=ye:_e.sibling=ye,_e=ye);return e&&K.forEach(function(Gy){return t(E,Gy)}),me&&ua(E,ne),F}function Re(E,b,w,O){if(typeof w=="object"&&w!==null&&w.type===q&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case X:e:{for(var F=w.key;b!==null;){if(b.key===F){if(F=w.type,F===q){if(b.tag===7){a(E,b.sibling),O=n(b,w.props.children),O.return=E,E=O;break e}}else if(b.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===$&&cl(F)===b.type){a(E,b.sibling),O=n(b,w.props),Rn(O,w),O.return=E,E=O;break e}a(E,b);break}else t(E,b);b=b.sibling}w.type===q?(O=il(w.props.children,E.mode,O,w.key),O.return=E,E=O):(O=zi(w.type,w.key,w.props,null,E.mode,O),Rn(O,w),O.return=E,E=O)}return c(E);case B:e:{for(F=w.key;b!==null;){if(b.key===F)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){a(E,b.sibling),O=n(b,w.children||[]),O.return=E,E=O;break e}else{a(E,b);break}else t(E,b);b=b.sibling}O=Nr(w,E.mode,O),O.return=E,E=O}return c(E);case $:return w=cl(w),Re(E,b,w,O)}if(De(w))return Q(E,b,w,O);if(qe(w)){if(F=qe(w),typeof F!="function")throw Error(o(150));return w=F.call(w),P(E,b,w,O)}if(typeof w.then=="function")return Re(E,b,qi(w),O);if(w.$$typeof===J)return Re(E,b,Ni(E,w),O);Hi(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,b!==null&&b.tag===6?(a(E,b.sibling),O=n(b,w),O.return=E,E=O):(a(E,b),O=Or(w,E.mode,O),O.return=E,E=O),c(E)):a(E,b)}return function(E,b,w,O){try{Tn=0;var F=Re(E,b,w,O);return Bl=null,F}catch(K){if(K===Ll||K===Mi)throw K;var _e=St(29,K,null,E.mode);return _e.lanes=O,_e.return=E,_e}finally{}}}var dl=df(!0),mf=df(!1),za=!1;function Qr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zr(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 Ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ge&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Ai(e),$c(e,null,a),t}return ji(e,l,t,a),Ai(e)}function jn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,lc(e,a)}}function Kr(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Jr=!1;function An(){if(Jr){var e=Hl;if(e!==null)throw e}}function zn(e,t,a,l){Jr=!1;var n=e.updateQueue;za=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,T=y.next;y.next=null,c===null?i=T:c.next=T,c=y;var z=e.alternate;z!==null&&(z=z.updateQueue,d=z.lastBaseUpdate,d!==c&&(d===null?z.firstBaseUpdate=T:d.next=T,z.lastBaseUpdate=y))}if(i!==null){var N=n.baseState;c=0,z=T=y=null,d=i;do{var R=d.lane&-536870913,A=R!==d.lane;if(A?(ce&R)===R:(l&R)===R){R!==0&&R===ql&&(Jr=!0),z!==null&&(z=z.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Q=e,P=d;R=t;var Re=a;switch(P.tag){case 1:if(Q=P.payload,typeof Q=="function"){N=Q.call(Re,N,R);break e}N=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=P.payload,R=typeof Q=="function"?Q.call(Re,N,R):Q,R==null)break e;N=k({},N,R);break e;case 2:za=!0}}R=d.callback,R!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[R]:A.push(R))}else A={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},z===null?(T=z=A,y=N):z=z.next=A,c|=R;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;A=d,d=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);z===null&&(y=N),n.baseState=y,n.firstBaseUpdate=T,n.lastBaseUpdate=z,i===null&&(n.shared.lanes=0),qa|=c,e.lanes=c,e.memoizedState=N}}function hf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function pf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)hf(a[e],t)}var Yl=S(null),Li=S(0);function _f(e,t){e=ya,G(Li,e),G(Yl,t),ya=e|t.baseLanes}function $r(){G(Li,ya),G(Yl,Yl.current)}function Wr(){ya=Li.current,D(Yl),D(Li)}var Et=S(null),qt=null;function Na(e){var t=e.alternate;G(Ye,Ye.current&1),G(Et,e),qt===null&&(t===null||Yl.current!==null||t.memoizedState!==null)&&(qt=e)}function Fr(e){G(Ye,Ye.current),G(Et,e),qt===null&&(qt=e)}function yf(e){e.tag===22?(G(Ye,Ye.current),G(Et,e),qt===null&&(qt=e)):Da()}function Da(){G(Ye,Ye.current),G(Et,Et.current)}function kt(e){D(Et),qt===e&&(qt=null),D(Ye)}var Ye=S(0);function Bi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ns(a)||is(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sa=0,le=null,we=null,Qe=null,Yi=!1,Gl=!1,ml=!1,Gi=0,Cn=0,Xl=null,O_=0;function He(){throw Error(o(321))}function Ir(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function Pr(e,t,a,l,n,i){return sa=i,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?ed:po,ml=!1,i=a(l,n),ml=!1,Gl&&(i=vf(t,a,l,n)),gf(e),i}function gf(e){C.H=Dn;var t=we!==null&&we.next!==null;if(sa=0,Qe=we=le=null,Yi=!1,Cn=0,Xl=null,t)throw Error(o(300));e===null||Ze||(e=e.dependencies,e!==null&&Oi(e)&&(Ze=!0))}function vf(e,t,a,l){le=e;var n=0;do{if(Gl&&(Xl=null),Cn=0,Gl=!1,25<=n)throw Error(o(301));if(n+=1,Qe=we=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}C.H=td,i=t(a,l)}while(Gl);return i}function N_(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?On(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(le.flags|=1024),t}function eo(){var e=Gi!==0;return Gi=0,e}function to(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ao(e){if(Yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yi=!1}sa=0,Qe=we=le=null,Gl=!1,Cn=Gi=0,Xl=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?le.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(we===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Qe===null?le.memoizedState:Qe.next;if(t!==null)Qe=t,we=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Qe===null?le.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function On(e){var t=Cn;return Cn+=1,Xl===null&&(Xl=[]),e=sf(Xl,e,t),t=le,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?ed:po),e}function Vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return On(e);if(e.$$typeof===J)return at(e)}throw Error(o(438,String(e)))}function lo(e){var t=null,a=le.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=le.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xi(),le.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Pe;return t.index++,a}function ca(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Ge();return no(t,we,e)}function no(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=c=null,y=null,T=t,z=!1;do{var N=T.lane&-536870913;if(N!==T.lane?(ce&N)===N:(sa&N)===N){var R=T.revertLane;if(R===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),N===ql&&(z=!0);else if((sa&R)===R){T=T.next,R===ql&&(z=!0);continue}else N={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=N,c=i):y=y.next=N,le.lanes|=R,qa|=R;N=T.action,ml&&a(i,N),i=T.hasEagerState?T.eagerState:a(i,N)}else R={lane:N,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=R,c=i):y=y.next=R,le.lanes|=N,qa|=N;T=T.next}while(T!==null&&T!==t);if(y===null?c=i:y.next=d,!xt(i,e.memoizedState)&&(Ze=!0,z&&(a=Hl,a!==null)))throw a;e.memoizedState=i,e.baseState=c,e.baseQueue=y,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function io(e){var t=Ge(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);xt(i,t.memoizedState)||(Ze=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function bf(e,t,a){var l=le,n=Ge(),i=me;if(i){if(a===void 0)throw Error(o(407));a=a()}else a=t();var c=!xt((we||n).memoizedState,a);if(c&&(n.memoizedState=a,Ze=!0),n=n.queue,oo(Ef.bind(null,l,n,e),[e]),n.getSnapshot!==t||c||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,Vl(9,{destroy:void 0},Sf.bind(null,l,n,a,t),null),ze===null)throw Error(o(349));i||(sa&127)!==0||xf(l,t,a)}return a}function xf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=le.updateQueue,t===null?(t=Xi(),le.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Sf(e,t,a,l){t.value=a,t.getSnapshot=l,kf(t)&&wf(e)}function Ef(e,t,a){return a(function(){kf(t)&&wf(e)})}function kf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function wf(e){var t=nl(e,2);t!==null&&_t(t,e,2)}function uo(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),ml){Ea(!0);try{a()}finally{Ea(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function Tf(e,t,a,l){return e.baseState=a,no(e,we,typeof l=="function"?l:ca)}function D_(e,t,a,l,n){if(Ji(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};C.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Rf(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Rf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=C.T,c={};C.T=c;try{var d=a(n,l),y=C.S;y!==null&&y(c,d),jf(e,t,d)}catch(T){ro(e,t,T)}finally{i!==null&&c.types!==null&&(i.types=c.types),C.T=i}}else try{i=a(n,l),jf(e,t,i)}catch(T){ro(e,t,T)}}function jf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Af(e,t,l)},function(l){return ro(e,t,l)}):Af(e,t,a)}function Af(e,t,a){t.status="fulfilled",t.value=a,zf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Rf(e,a)))}function ro(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,zf(t),t=t.next;while(t!==l)}e.action=null}function zf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cf(e,t){return t}function Of(e,t){if(me){var a=ze.formState;if(a!==null){e:{var l=le;if(me){if(Oe){t:{for(var n=Oe,i=Ut;n.nodeType!==8;){if(!i){n=null;break t}if(n=Ht(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Oe=Ht(n.nextSibling),l=n.data==="F!";break e}}ja(l)}l=!1}l&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:t},a.queue=l,a=Ff.bind(null,le,l),l.dispatch=a,l=uo(!1),i=ho.bind(null,le,!1,l.queue),l=st(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=D_.bind(null,le,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Nf(e){var t=Ge();return Df(t,we,e)}function Df(e,t,a){if(t=no(e,t,Cf)[0],e=Qi(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=On(t)}catch(c){throw c===Ll?Mi:c}else l=t;t=Ge();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(le.flags|=2048,Vl(9,{destroy:void 0},M_.bind(null,n,a),null)),[l,i,e]}function M_(e,t){e.action=t}function Mf(e){var t=Ge(),a=we;if(a!==null)return Df(t,a,e);Ge(),t=t.memoizedState,a=Ge();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Vl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=le.updateQueue,t===null&&(t=Xi(),le.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Uf(){return Ge().memoizedState}function Zi(e,t,a,l){var n=st();le.flags|=e,n.memoizedState=Vl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ki(e,t,a,l){var n=Ge();l=l===void 0?null:l;var i=n.memoizedState.inst;we!==null&&l!==null&&Ir(l,we.memoizedState.deps)?n.memoizedState=Vl(t,i,a,l):(le.flags|=e,n.memoizedState=Vl(1|t,i,a,l))}function qf(e,t){Zi(8390656,8,e,t)}function oo(e,t){Ki(2048,8,e,t)}function U_(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=Xi(),le.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Hf(e){var t=Ge().memoizedState;return U_({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Lf(e,t){return Ki(4,2,e,t)}function Bf(e,t){return Ki(4,4,e,t)}function Yf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gf(e,t,a){a=a!=null?a.concat([e]):null,Ki(4,4,Yf.bind(null,t,e),a)}function so(){}function Xf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Ir(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Vf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Ir(t,l[1]))return l[0];if(l=e(),ml){Ea(!0);try{e()}finally{Ea(!1)}}return a.memoizedState=[l,t],l}function co(e,t,a){return a===void 0||(sa&1073741824)!==0&&(ce&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Qd(),le.lanes|=e,qa|=e,a)}function Qf(e,t,a,l){return xt(a,t)?a:Yl.current!==null?(e=co(e,a,l),xt(e,t)||(Ze=!0),e):(sa&42)===0||(sa&1073741824)!==0&&(ce&261930)===0?(Ze=!0,e.memoizedState=a):(e=Qd(),le.lanes|=e,qa|=e,t)}function Zf(e,t,a,l,n){var i=Y.p;Y.p=i!==0&&8>i?i:8;var c=C.T,d={};C.T=d,ho(e,!1,t,a);try{var y=n(),T=C.S;if(T!==null&&T(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var z=C_(y,l);Nn(e,t,z,Rt(e))}else Nn(e,t,l,Rt(e))}catch(N){Nn(e,t,{then:function(){},status:"rejected",reason:N},Rt())}finally{Y.p=i,c!==null&&d.types!==null&&(c.types=d.types),C.T=c}}function q_(){}function fo(e,t,a,l){if(e.tag!==5)throw Error(o(476));var n=Kf(e).queue;Zf(e,n,t,ee,a===null?q_:function(){return Jf(e),a(l)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jf(e){var t=Kf(e);t.next===null&&(t=e.alternate.memoizedState),Nn(e,t.next.queue,{},Rt())}function mo(){return at(Wn)}function $f(){return Ge().memoizedState}function Wf(){return Ge().memoizedState}function H_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ca(a);var l=Oa(t,e,a);l!==null&&(_t(l,t,a),jn(l,t,a)),t={cache:Yr()},e.payload=t;return}t=t.return}}function L_(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ji(e)?If(t,a):(a=zr(e,t,a,l),a!==null&&(_t(a,e,l),Pf(a,t,l)))}function Ff(e,t,a){var l=Rt();Nn(e,t,a,l)}function Nn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ji(e))If(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,a);if(n.hasEagerState=!0,n.eagerState=d,xt(d,c))return ji(e,t,n,0),ze===null&&Ri(),!1}catch{}finally{}if(a=zr(e,t,n,l),a!==null)return _t(a,e,l),Pf(a,t,l),!0}return!1}function ho(e,t,a,l){if(l={lane:2,revertLane:Zo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(e)){if(t)throw Error(o(479))}else t=zr(e,a,l,2),t!==null&&_t(t,e,2)}function Ji(e){var t=e.alternate;return e===le||t!==null&&t===le}function If(e,t){Gl=Yi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Pf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,lc(e,a)}}var Dn={readContext:at,use:Vi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Dn.useEffectEvent=He;var ed={readContext:at,use:Vi,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:qf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Zi(4194308,4,Yf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var l=e();if(ml){Ea(!0);try{e()}finally{Ea(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=st();if(a!==void 0){var n=a(t);if(ml){Ea(!0);try{a(t)}finally{Ea(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=L_.bind(null,le,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=uo(e);var t=e.queue,a=Ff.bind(null,le,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:so,useDeferredValue:function(e,t){var a=st();return co(a,e,t)},useTransition:function(){var e=uo(!1);return e=Zf.bind(null,le,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=le,n=st();if(me){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),ze===null)throw Error(o(349));(ce&127)!==0||xf(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,qf(Ef.bind(null,l,i,e),[e]),l.flags|=2048,Vl(9,{destroy:void 0},Sf.bind(null,l,i,a,t),null),a},useId:function(){var e=st(),t=ze.identifierPrefix;if(me){var a=$t,l=Jt;a=(l&~(1<<32-bt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=O_++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mo,useFormState:Of,useActionState:Of,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ho.bind(null,le,!0,a),a.dispatch=t,[e,t]},useMemoCache:lo,useCacheRefresh:function(){return st().memoizedState=H_.bind(null,le)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((ge&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},po={readContext:at,use:Vi,useCallback:Xf,useContext:at,useEffect:oo,useImperativeHandle:Gf,useInsertionEffect:Lf,useLayoutEffect:Bf,useMemo:Vf,useReducer:Qi,useRef:Uf,useState:function(){return Qi(ca)},useDebugValue:so,useDeferredValue:function(e,t){var a=Ge();return Qf(a,we.memoizedState,e,t)},useTransition:function(){var e=Qi(ca)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:On(e),t]},useSyncExternalStore:bf,useId:$f,useHostTransitionStatus:mo,useFormState:Nf,useActionState:Nf,useOptimistic:function(e,t){var a=Ge();return Tf(a,we,e,t)},useMemoCache:lo,useCacheRefresh:Wf};po.useEffectEvent=Hf;var td={readContext:at,use:Vi,useCallback:Xf,useContext:at,useEffect:oo,useImperativeHandle:Gf,useInsertionEffect:Lf,useLayoutEffect:Bf,useMemo:Vf,useReducer:io,useRef:Uf,useState:function(){return io(ca)},useDebugValue:so,useDeferredValue:function(e,t){var a=Ge();return we===null?co(a,e,t):Qf(a,we.memoizedState,e,t)},useTransition:function(){var e=io(ca)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:On(e),t]},useSyncExternalStore:bf,useId:$f,useHostTransitionStatus:mo,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var a=Ge();return we!==null?Tf(a,we,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:lo,useCacheRefresh:Wf};td.useEffectEvent=Hf;function _o(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:k({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var yo={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=Ca(l);n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(_t(t,e,l),jn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=Ca(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(_t(t,e,l),jn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ca(a);l.tag=2,t!=null&&(l.callback=t),t=Oa(e,l,a),t!==null&&(_t(t,e,a),jn(t,e,a))}};function ad(e,t,a,l,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,c):t.prototype&&t.prototype.isPureReactComponent?!bn(a,l)||!bn(n,i):!0}function ld(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function hl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=k({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function nd(e){Ti(e)}function id(e){console.error(e)}function ud(e){Ti(e)}function $i(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function rd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function go(e,t,a){return a=Ca(a),a.tag=3,a.payload={element:null},a.callback=function(){$i(e,t)},a}function od(e){return e=Ca(e),e.tag=3,e}function sd(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){rd(t,a,l)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){rd(t,a,l),typeof n!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function B_(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ul(t,a,n,!0),a=Et.current,a!==null){switch(a.tag){case 31:case 13:return qt===null?ru():a.alternate===null&&Le===0&&(Le=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Ui?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Xo(e,l,n)),!1;case 22:return a.flags|=65536,l===Ui?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Xo(e,l,n)),!1}throw Error(o(435,a.tag))}return Xo(e,l,n),ru(),!1}if(me)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Ur&&(e=Error(o(422),{cause:l}),En(Nt(e,a)))):(l!==Ur&&(t=Error(o(423),{cause:l}),En(Nt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Nt(l,a),n=go(e.stateNode,l,n),Kr(e,n),Le!==4&&(Le=2)),!1;var i=Error(o(520),{cause:l});if(i=Nt(i,a),Gn===null?Gn=[i]:Gn.push(i),Le!==4&&(Le=2),t===null)return!0;l=Nt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=go(a.stateNode,l,e),Kr(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ha===null||!Ha.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=od(n),sd(n,e,a,l),Kr(a,n),!1}a=a.return}while(a!==null);return!1}var vo=Error(o(461)),Ze=!1;function lt(e,t,a,l){t.child=e===null?mf(t,null,a,l):dl(t,e.child,a,l)}function cd(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var c={};for(var d in l)d!=="ref"&&(c[d]=l[d])}else c=l;return ol(t),l=Pr(e,t,a,c,i,n),d=eo(),e!==null&&!Ze?(to(e,t,n),fa(e,t,n)):(me&&d&&Dr(t),t.flags|=1,lt(e,t,l,n),t.child)}function fd(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!Cr(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,dd(e,t,i,l,n)):(e=zi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ro(e,n)){var c=i.memoizedProps;if(a=a.compare,a=a!==null?a:bn,a(c,l)&&e.ref===t.ref)return fa(e,t,n)}return t.flags|=1,e=ia(i,l),e.ref=t.ref,e.return=t,t.child=e}function dd(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(bn(i,l)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=l=i,Ro(e,n))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,fa(e,t,n)}return bo(e,t,a,l,n)}function md(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return hd(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(t,i!==null?i.cachePool:null),i!==null?_f(t,i):$r(),yf(t);else return l=t.lanes=536870912,hd(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(Di(t,i.cachePool),_f(t,i),Da(),t.memoizedState=null):(e!==null&&Di(t,null),$r(),Da());return lt(e,t,n,a),t.child}function Mn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hd(e,t,a,l,n){var i=Xr();return i=i===null?null:{parent:Ve._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Di(t,null),$r(),yf(t),e!==null&&Ul(e,t,l,!0),t.childLanes=n,null}function Wi(e,t){return t=Ii({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pd(e,t,a){return dl(t,e.child,null,a),e=Wi(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function Y_(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(l.mode==="hidden")return e=Wi(t,l),t.lanes=536870912,Mn(null,e);if(Fr(t),(e=Oe)?(e=Rm(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},a=Fc(e),a.return=t,t.child=a,tt=t,Oe=null)):e=null,e===null)throw ja(t);return t.lanes=536870912,null}return Wi(t,l)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Fr(t),n)if(t.flags&256)t.flags&=-257,t=pd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ze||Ul(e,t,a,!1),n=(a&e.childLanes)!==0,Ze||n){if(l=ze,l!==null&&(c=nc(l,a),c!==0&&c!==i.retryLane))throw i.retryLane=c,nl(e,c),_t(l,e,c),vo;ru(),t=pd(e,t,a)}else e=i.treeContext,Oe=Ht(c.nextSibling),tt=t,me=!0,Ra=null,Ut=!1,e!==null&&ef(t,e),t=Wi(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function bo(e,t,a,l,n){return ol(t),a=Pr(e,t,a,l,void 0,n),l=eo(),e!==null&&!Ze?(to(e,t,n),fa(e,t,n)):(me&&l&&Dr(t),t.flags|=1,lt(e,t,a,n),t.child)}function _d(e,t,a,l,n,i){return ol(t),t.updateQueue=null,a=vf(t,l,a,n),gf(e),l=eo(),e!==null&&!Ze?(to(e,t,i),fa(e,t,i)):(me&&l&&Dr(t),t.flags|=1,lt(e,t,a,i),t.child)}function yd(e,t,a,l,n){if(ol(t),t.stateNode===null){var i=Ol,c=a.contextType;typeof c=="object"&&c!==null&&(i=at(c)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=yo,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Qr(t),c=a.contextType,i.context=typeof c=="object"&&c!==null?at(c):Ol,i.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(_o(t,a,c,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&yo.enqueueReplaceState(i,i.state,null),zn(t,l,i,n),An(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,y=hl(a,d);i.props=y;var T=i.context,z=a.contextType;c=Ol,typeof z=="object"&&z!==null&&(c=at(z));var N=a.getDerivedStateFromProps;z=typeof N=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,z||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||T!==c)&&ld(t,i,l,c),za=!1;var R=t.memoizedState;i.state=R,zn(t,l,i,n),An(),T=t.memoizedState,d||R!==T||za?(typeof N=="function"&&(_o(t,a,N,l),T=t.memoizedState),(y=za||ad(t,a,y,l,R,T,c))?(z||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=T),i.props=l,i.state=T,i.context=c,l=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,Zr(e,t),c=t.memoizedProps,z=hl(a,c),i.props=z,N=t.pendingProps,R=i.context,T=a.contextType,y=Ol,typeof T=="object"&&T!==null&&(y=at(T)),d=a.getDerivedStateFromProps,(T=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==N||R!==y)&&ld(t,i,l,y),za=!1,R=t.memoizedState,i.state=R,zn(t,l,i,n),An();var A=t.memoizedState;c!==N||R!==A||za||e!==null&&e.dependencies!==null&&Oi(e.dependencies)?(typeof d=="function"&&(_o(t,a,d,l),A=t.memoizedState),(z=za||ad(t,a,z,l,R,A,y)||e!==null&&e.dependencies!==null&&Oi(e.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,A,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,A,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=A),i.props=l,i.state=A,i.context=y,l=z):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,Fi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=dl(t,e.child,null,n),t.child=dl(t,null,a,n)):lt(e,t,a,n),t.memoizedState=i.state,e=t.child):e=fa(e,t,n),e}function gd(e,t,a,l){return ul(),t.flags|=256,lt(e,t,a,l),t.child}var xo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function So(e){return{baseLanes:e,cachePool:rf()}}function Eo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function vd(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?Na(t):Da(),(e=Oe)?(e=Rm(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},a=Fc(e),a.return=t,t.child=a,tt=t,Oe=null)):e=null,e===null)throw ja(t);return is(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,n?(Da(),n=t.mode,d=Ii({mode:"hidden",children:d},n),l=il(l,n,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=So(a),l.childLanes=Eo(e,c,a),t.memoizedState=xo,Mn(null,l)):(Na(t),ko(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(i)t.flags&256?(Na(t),t.flags&=-257,t=wo(e,t,a)):t.memoizedState!==null?(Da(),t.child=e.child,t.flags|=128,t=null):(Da(),d=l.fallback,n=t.mode,l=Ii({mode:"visible",children:l.children},n),d=il(d,n,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,dl(t,e.child,null,a),l=t.child,l.memoizedState=So(a),l.childLanes=Eo(e,c,a),t.memoizedState=xo,t=Mn(null,l));else if(Na(t),is(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var T=c.dgst;c=T,l=Error(o(419)),l.stack="",l.digest=c,En({value:l,source:null,stack:null}),t=wo(e,t,a)}else if(Ze||Ul(e,t,a,!1),c=(a&e.childLanes)!==0,Ze||c){if(c=ze,c!==null&&(l=nc(c,a),l!==0&&l!==y.retryLane))throw y.retryLane=l,nl(e,l),_t(c,e,l),vo;ns(d)||ru(),t=wo(e,t,a)}else ns(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Oe=Ht(d.nextSibling),tt=t,me=!0,Ra=null,Ut=!1,e!==null&&ef(t,e),t=ko(t,l.children),t.flags|=4096);return t}return n?(Da(),d=l.fallback,n=t.mode,y=e.child,T=y.sibling,l=ia(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&65011712,T!==null?d=ia(T,d):(d=il(d,n,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Mn(null,l),l=t.child,d=e.child.memoizedState,d===null?d=So(a):(n=d.cachePool,n!==null?(y=Ve._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=rf(),d={baseLanes:d.baseLanes|a,cachePool:n}),l.memoizedState=d,l.childLanes=Eo(e,c,a),t.memoizedState=xo,Mn(e.child,l)):(Na(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function ko(e,t){return t=Ii({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ii(e,t){return e=St(22,e,null,t),e.lanes=0,e}function wo(e,t,a){return dl(t,e.child,null,a),e=ko(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Lr(e.return,t,a)}function To(e,t,a,l,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=n,c.treeForkCount=i)}function xd(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var c=Ye.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,G(Ye,c),lt(e,t,l,a),l=me?Sn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,a,t);else if(e.tag===19)bd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Bi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),To(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Bi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}To(t,!0,a,null,i,l);break;case"together":To(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ul(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ro(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Oi(e)))}function G_(e,t,a){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),Aa(t,Ve,e.memoizedState.cache),ul();break;case 27:case 5:rn(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Na(t),t.flags|=128,null):(a&t.child.childLanes)!==0?vd(e,t,a):(Na(t),e=fa(e,t,a),e!==null?e.sibling:null);Na(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ul(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return xd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(Ye,Ye.current),l)break;return null;case 22:return t.lanes=0,md(e,t,a,t.pendingProps);case 24:Aa(t,Ve,e.memoizedState.cache)}return fa(e,t,a)}function Sd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!Ro(e,a)&&(t.flags&128)===0)return Ze=!1,G_(e,t,a);Ze=(e.flags&131072)!==0}else Ze=!1,me&&(t.flags&1048576)!==0&&Pc(t,Sn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=cl(t.elementType),t.type=e,typeof e=="function")Cr(e)?(l=hl(e,l),t.tag=1,t=yd(null,t,e,l,a)):(t.tag=0,t=bo(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===he){t.tag=11,t=cd(null,t,e,l,a);break e}else if(n===W){t.tag=14,t=fd(null,t,e,l,a);break e}}throw t=rt(e)||e,Error(o(306,t,""))}}return t;case 0:return bo(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=hl(l,t.pendingProps),yd(e,t,l,n,a);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,Zr(e,t),zn(t,l,null,a);var c=t.memoizedState;if(l=c.cache,Aa(t,Ve,l),l!==i.cache&&Br(t,[Ve],a,!0),An(),l=c.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=gd(e,t,l,a);break e}else if(l!==n){n=Nt(Error(o(424)),t),En(n),t=gd(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Oe=Ht(e.firstChild),tt=t,me=!0,Ra=null,Ut=!0,a=mf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ul(),l===n){t=fa(e,t,a);break e}lt(e,t,l,a)}t=t.child}return t;case 26:return Fi(e,t),e===null?(a=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=a:me||(a=t.type,e=t.pendingProps,l=hu(re.current).createElement(a),l[et]=t,l[ct]=e,nt(l,a,e),Fe(l),t.stateNode=l):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rn(t),e===null&&me&&(l=t.stateNode=zm(t.type,t.pendingProps,re.current),tt=t,Ut=!0,n=Oe,Ga(t.type)?(us=n,Oe=Ht(l.firstChild)):Oe=n),lt(e,t,t.pendingProps.children,a),Fi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=l=Oe)&&(l=gy(l,t.type,t.pendingProps,Ut),l!==null?(t.stateNode=l,tt=t,Oe=Ht(l.firstChild),Ut=!1,n=!0):n=!1),n||ja(t)),rn(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,l=i.children,ts(n,i)?l=null:c!==null&&ts(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Pr(e,t,N_,null,null,a),Wn._currentValue=n),Fi(e,t),lt(e,t,l,a),t.child;case 6:return e===null&&me&&((e=a=Oe)&&(a=vy(a,t.pendingProps,Ut),a!==null?(t.stateNode=a,tt=t,Oe=null,e=!0):e=!1),e||ja(t)),null;case 13:return vd(e,t,a);case 4:return ot(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=dl(t,null,l,a):lt(e,t,l,a),t.child;case 11:return cd(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Aa(t,t.type,l.value),lt(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,ol(t),n=at(n),l=l(n),t.flags|=1,lt(e,t,l,a),t.child;case 14:return fd(e,t,t.type,t.pendingProps,a);case 15:return dd(e,t,t.type,t.pendingProps,a);case 19:return xd(e,t,a);case 31:return Y_(e,t,a);case 22:return md(e,t,a,t.pendingProps);case 24:return ol(t),l=at(Ve),e===null?(n=Xr(),n===null&&(n=ze,i=Yr(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},Qr(t),Aa(t,Ve,n)):((e.lanes&a)!==0&&(Zr(e,t),zn(t,null,null,a),An()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Aa(t,Ve,l)):(l=i.cache,Aa(t,Ve,l),l!==n.cache&&Br(t,[Ve],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function da(e){e.flags|=4}function jo(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if($d())e.flags|=8192;else throw fl=Ui,Vr}else e.flags&=-16777217}function Ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hm(t))if($d())e.flags|=8192;else throw fl=Ui,Vr}function Pi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?tc():536870912,e.lanes|=t,Jl|=t)}function Un(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function X_(e,t,a){var l=t.pendingProps;switch(Mr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),oa(Ve),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ml(t)?da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qr())),Ne(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(da(t),i!==null?(Ne(t),Ed(t,i)):(Ne(t),jo(t,n,null,l,a))):i?i!==e.memoizedState?(da(t),Ne(t),Ed(t,i)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&da(t),Ne(t),jo(t,n,e,l,a)),null;case 27:if(ci(t),a=re.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&da(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}e=Z.current,Ml(t)?tf(t):(e=zm(n,l,a),t.stateNode=e,da(t))}return Ne(t),null;case 5:if(ci(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&da(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}if(i=Z.current,Ml(t))tf(t);else{var c=hu(re.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?c.createElement(n,{is:l.is}):c.createElement(n)}}i[et]=t,i[ct]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(nt(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&da(t)}}return Ne(t),jo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&da(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,Ml(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=tt,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||vm(e.nodeValue,a)),e||ja(t,!0)}else e=hu(e).createTextNode(l),e[et]=t,t.stateNode=e}return Ne(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ml(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[et]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else a=qr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ne(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ml(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[et]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),n=!1}else n=qr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Pi(t,t.updateQueue),Ne(t),null);case 4:return Be(),e===null&&Wo(t.stateNode.containerInfo),Ne(t),null;case 10:return oa(t.type),Ne(t),null;case 19:if(D(Ye),l=t.memoizedState,l===null)return Ne(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)Un(l,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Bi(e),i!==null){for(t.flags|=128,Un(l,!1),e=i.updateQueue,t.updateQueue=e,Pi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Wc(a,e),a=a.sibling;return G(Ye,Ye.current&1|2),me&&ua(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&gt()>nu&&(t.flags|=128,n=!0,Un(l,!1),t.lanes=4194304)}else{if(!n)if(e=Bi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Pi(t,e),Un(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!me)return Ne(t),null}else 2*gt()-l.renderingStartTime>nu&&a!==536870912&&(t.flags|=128,n=!0,Un(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=gt(),e.sibling=null,a=Ye.current,G(Ye,n?a&1|2:a&1),me&&ua(t,l.treeForkCount),e):(Ne(t),null);case 22:case 23:return kt(t),Wr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),a=t.updateQueue,a!==null&&Pi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&D(sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),oa(Ve),Ne(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function V_(e,t){switch(Mr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(Ve),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ci(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(o(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Ye),null;case 4:return Be(),null;case 10:return oa(t.type),null;case 22:case 23:return kt(t),Wr(),e!==null&&D(sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(Ve),null;case 25:return null;default:return null}}function kd(e,t){switch(Mr(t),t.tag){case 3:oa(Ve),Be();break;case 26:case 27:case 5:ci(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:D(Ye);break;case 10:oa(t.type);break;case 22:case 23:kt(t),Wr(),e!==null&&D(sl);break;case 24:oa(Ve)}}function qn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,c=a.inst;l=i(),c.destroy=l}a=a.next}while(a!==n)}}catch(d){Ee(t,t.return,d)}}function Ma(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var c=l.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var y=a,T=d;try{T()}catch(z){Ee(n,y,z)}}}l=l.next}while(l!==i)}}catch(z){Ee(t,t.return,z)}}function wd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{pf(t,a)}catch(l){Ee(e,e.return,l)}}}function Td(e,t,a){a.props=hl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ee(e,t,l)}}function Hn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){Ee(e,t,n)}}function Wt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){Ee(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){Ee(e,t,n)}else a.current=null}function Rd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){Ee(e,e.return,n)}}function Ao(e,t,a){try{var l=e.stateNode;dy(l,e.type,a,t),l[ct]=t}catch(n){Ee(e,e.return,n)}}function jd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ga(e.type)||e.tag===4}function zo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jd(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&&Ga(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 Co(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=la));else if(l!==4&&(l===27&&Ga(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Co(e,t,a),e=e.sibling;e!==null;)Co(e,t,a),e=e.sibling}function eu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ga(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(eu(e,t,a),e=e.sibling;e!==null;)eu(e,t,a),e=e.sibling}function Ad(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,l,a),t[et]=e,t[ct]=a}catch(i){Ee(e,e.return,i)}}var ma=!1,Ke=!1,Oo=!1,zd=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Q_(e,t){if(e=e.containerInfo,Po=xu,e=Yc(e),kr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var c=0,d=-1,y=-1,T=0,z=0,N=e,R=null;t:for(;;){for(var A;N!==a||n!==0&&N.nodeType!==3||(d=c+n),N!==i||l!==0&&N.nodeType!==3||(y=c+l),N.nodeType===3&&(c+=N.nodeValue.length),(A=N.firstChild)!==null;)R=N,N=A;for(;;){if(N===e)break t;if(R===a&&++T===n&&(d=c),R===i&&++z===l&&(y=c),(A=N.nextSibling)!==null)break;N=R,R=N.parentNode}N=A}a=d===-1||y===-1?null:{start:d,end:y}}else a=null}a=a||{start:0,end:0}}else a=null;for(es={focusedElem:e,selectionRange:a},xu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var Q=hl(a.type,n);e=l.getSnapshotBeforeUpdate(Q,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(P){Ee(a,a.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ls(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ls(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Cd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&qn(5,a);break;case 1:if(pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){Ee(a,a.return,c)}else{var n=hl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ee(a,a.return,c)}}l&64&&wd(a),l&512&&Hn(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{pf(e,t)}catch(c){Ee(a,a.return,c)}}break;case 27:t===null&&l&4&&Ad(a);case 26:case 5:pa(e,a),t===null&&l&4&&Rd(a),l&512&&Hn(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&Dd(e,a);break;case 13:pa(e,a),l&4&&Md(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ey.bind(null,a),by(e,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){t=t!==null&&t.memoizedState!==null||Ke,n=ma;var i=Ke;ma=l,(Ke=t)&&!i?_a(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=n,Ke=i}break;case 30:break;default:pa(e,a)}}function Od(e){var t=e.alternate;t!==null&&(e.alternate=null,Od(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&rr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,dt=!1;function ha(e,t,a){for(a=a.child;a!==null;)Nd(e,t,a),a=a.sibling}function Nd(e,t,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(on,a)}catch{}switch(a.tag){case 26:Ke||Wt(a,t),ha(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||Wt(a,t);var l=Me,n=dt;Ga(a.type)&&(Me=a.stateNode,dt=!1),ha(e,t,a),Kn(a.stateNode),Me=l,dt=n;break;case 5:Ke||Wt(a,t);case 6:if(l=Me,n=dt,Me=null,ha(e,t,a),Me=l,dt=n,Me!==null)if(dt)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(i){Ee(a,t,i)}else try{Me.removeChild(a.stateNode)}catch(i){Ee(a,t,i)}break;case 18:Me!==null&&(dt?(e=Me,wm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),an(e)):wm(Me,a.stateNode));break;case 4:l=Me,n=dt,Me=a.stateNode.containerInfo,dt=!0,ha(e,t,a),Me=l,dt=n;break;case 0:case 11:case 14:case 15:Ma(2,a,t),Ke||Ma(4,a,t),ha(e,t,a);break;case 1:Ke||(Wt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Td(a,t,l)),ha(e,t,a);break;case 21:ha(e,t,a);break;case 22:Ke=(l=Ke)||a.memoizedState!==null,ha(e,t,a),Ke=l;break;default:ha(e,t,a)}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{an(e)}catch(a){Ee(t,t.return,a)}}}function Md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{an(e)}catch(a){Ee(t,t.return,a)}}function Z_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zd),t;default:throw Error(o(435,e.tag))}}function tu(e,t){var a=Z_(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=ty.bind(null,e,l);l.then(n,n)}})}function mt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Ga(d.type)){Me=d.stateNode,dt=!1;break e}break;case 5:Me=d.stateNode,dt=!1;break e;case 3:case 4:Me=d.stateNode.containerInfo,dt=!0;break e}d=d.return}if(Me===null)throw Error(o(160));Nd(i,c,n),Me=null,dt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}var Vt=null;function Ud(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),ht(e),l&4&&(Ma(3,e,e.return),qn(3,e),Ma(5,e,e.return));break;case 1:mt(t,e),ht(e),l&512&&(Ke||a===null||Wt(a,a.return)),l&64&&ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Vt;if(mt(t,e),ht(e),l&512&&(Ke||a===null||Wt(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[fn]||i[et]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),nt(i,l,a),i[et]=e,Fe(i),l=i;break e;case"link":var c=Um("link","href",n).get(l+(a.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(d,1);break t}}i=n.createElement(l),nt(i,l,a),n.head.appendChild(i);break;case"meta":if(c=Um("meta","content",n).get(l+(a.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(d,1);break t}}i=n.createElement(l),nt(i,l,a),n.head.appendChild(i);break;default:throw Error(o(468,l))}i[et]=e,Fe(i),l=i}e.stateNode=l}else qm(n,e.type,e.stateNode);else e.stateNode=Mm(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?qm(n,e.type,e.stateNode):Mm(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ao(e,e.memoizedProps,a.memoizedProps)}break;case 27:mt(t,e),ht(e),l&512&&(Ke||a===null||Wt(a,a.return)),a!==null&&l&4&&Ao(e,e.memoizedProps,a.memoizedProps);break;case 5:if(mt(t,e),ht(e),l&512&&(Ke||a===null||Wt(a,a.return)),e.flags&32){n=e.stateNode;try{wl(n,"")}catch(Q){Ee(e,e.return,Q)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,Ao(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Oo=!0);break;case 6:if(mt(t,e),ht(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(Q){Ee(e,e.return,Q)}}break;case 3:if(yu=null,n=Vt,Vt=pu(t.containerInfo),mt(t,e),Vt=n,ht(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{an(t.containerInfo)}catch(Q){Ee(e,e.return,Q)}Oo&&(Oo=!1,qd(e));break;case 4:l=Vt,Vt=pu(e.stateNode.containerInfo),mt(t,e),ht(e),Vt=l;break;case 12:mt(t,e),ht(e);break;case 31:mt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,tu(e,l)));break;case 13:mt(t,e),ht(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lu=gt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,tu(e,l)));break;case 22:n=e.memoizedState!==null;var y=a!==null&&a.memoizedState!==null,T=ma,z=Ke;if(ma=T||n,Ke=z||y,mt(t,e),Ke=z,ma=T,ht(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||y||ma||Ke||pl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){y=a=t;try{if(i=y.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=y.stateNode;var N=y.memoizedProps.style,R=N!=null&&N.hasOwnProperty("display")?N.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(Q){Ee(y,y.return,Q)}}}else if(t.tag===6){if(a===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(Q){Ee(y,y.return,Q)}}}else if(t.tag===18){if(a===null){y=t;try{var A=y.stateNode;n?Tm(A,!0):Tm(y.stateNode,!1)}catch(Q){Ee(y,y.return,Q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,tu(e,a))));break;case 19:mt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,tu(e,l)));break;case 30:break;case 21:break;default:mt(t,e),ht(e)}}function ht(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(jd(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var n=a.stateNode,i=zo(e);eu(e,i,n);break;case 5:var c=a.stateNode;a.flags&32&&(wl(c,""),a.flags&=-33);var d=zo(e);eu(e,d,c);break;case 3:case 4:var y=a.stateNode.containerInfo,T=zo(e);Co(e,T,y);break;default:throw Error(o(161))}}catch(z){Ee(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ma(4,t,t.return),pl(t);break;case 1:Wt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Td(t,t.return,a),pl(t);break;case 27:Kn(t.stateNode);case 26:case 5:Wt(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function _a(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:_a(n,i,a),qn(4,i);break;case 1:if(_a(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){Ee(l,l.return,T)}if(l=i,n=l.updateQueue,n!==null){var d=l.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)hf(y[n],d)}catch(T){Ee(l,l.return,T)}}a&&c&64&&wd(i),Hn(i,i.return);break;case 27:Ad(i);case 26:case 5:_a(n,i,a),a&&l===null&&c&4&&Rd(i),Hn(i,i.return);break;case 12:_a(n,i,a);break;case 31:_a(n,i,a),a&&c&4&&Dd(n,i);break;case 13:_a(n,i,a),a&&c&4&&Md(n,i);break;case 22:i.memoizedState===null&&_a(n,i,a),Hn(i,i.return);break;case 30:break;default:_a(n,i,a)}t=t.sibling}}function No(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&kn(a))}function Do(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kn(e))}function Qt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hd(e,t,a,l),t=t.sibling}function Hd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,a,l),n&2048&&qn(9,t);break;case 1:Qt(e,t,a,l);break;case 3:Qt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kn(e)));break;case 12:if(n&2048){Qt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Ee(t,t.return,y)}}else Qt(e,t,a,l);break;case 31:Qt(e,t,a,l);break;case 13:Qt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Qt(e,t,a,l):Ln(e,t):i._visibility&2?Qt(e,t,a,l):(i._visibility|=2,Ql(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&No(c,t);break;case 24:Qt(e,t,a,l),n&2048&&Do(t.alternate,t);break;default:Qt(e,t,a,l)}}function Ql(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,d=a,y=l,T=c.flags;switch(c.tag){case 0:case 11:case 15:Ql(i,c,d,y,n),qn(8,c);break;case 23:break;case 22:var z=c.stateNode;c.memoizedState!==null?z._visibility&2?Ql(i,c,d,y,n):Ln(i,c):(z._visibility|=2,Ql(i,c,d,y,n)),n&&T&2048&&No(c.alternate,c);break;case 24:Ql(i,c,d,y,n),n&&T&2048&&Do(c.alternate,c);break;default:Ql(i,c,d,y,n)}t=t.sibling}}function Ln(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Ln(a,l),n&2048&&No(l.alternate,l);break;case 24:Ln(a,l),n&2048&&Do(l.alternate,l);break;default:Ln(a,l)}t=t.sibling}}var Bn=8192;function Zl(e,t,a){if(e.subtreeFlags&Bn)for(e=e.child;e!==null;)Ld(e,t,a),e=e.sibling}function Ld(e,t,a){switch(e.tag){case 26:Zl(e,t,a),e.flags&Bn&&e.memoizedState!==null&&Oy(a,Vt,e.memoizedState,e.memoizedProps);break;case 5:Zl(e,t,a);break;case 3:case 4:var l=Vt;Vt=pu(e.stateNode.containerInfo),Zl(e,t,a),Vt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Bn,Bn=16777216,Zl(e,t,a),Bn=l):Zl(e,t,a));break;default:Zl(e,t,a)}}function Bd(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 Yn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Gd(l,e)}Bd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 0:case 11:case 15:Yn(e),e.flags&2048&&Ma(9,e,e.return);break;case 3:Yn(e);break;case 12:Yn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,au(e)):Yn(e);break;default:Yn(e)}}function au(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Gd(l,e)}Bd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ma(8,t,t.return),au(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,au(t));break;default:au(t)}e=e.sibling}}function Gd(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:Ma(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:kn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ie=l;else e:for(a=e;Ie!==null;){l=Ie;var n=l.sibling,i=l.return;if(Od(l),l===a){Ie=null;break e}if(n!==null){n.return=i,Ie=n;break e}Ie=i}}}var K_={getCacheForType:function(e){var t=at(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return at(Ve).controller.signal}},J_=typeof WeakMap=="function"?WeakMap:Map,ge=0,ze=null,oe=null,ce=0,Se=0,wt=null,Ua=!1,Kl=!1,Mo=!1,ya=0,Le=0,qa=0,_l=0,Uo=0,Tt=0,Jl=0,Gn=null,pt=null,qo=!1,lu=0,Xd=0,nu=1/0,iu=null,Ha=null,$e=0,La=null,$l=null,ga=0,Ho=0,Lo=null,Vd=null,Xn=0,Bo=null;function Rt(){return(ge&2)!==0&&ce!==0?ce&-ce:C.T!==null?Zo():ic()}function Qd(){if(Tt===0)if((ce&536870912)===0||me){var e=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),Tt=e}else Tt=536870912;return e=Et.current,e!==null&&(e.flags|=32),Tt}function _t(e,t,a){(e===ze&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(Wl(e,0),Ba(e,ce,Tt,!1)),cn(e,a),((ge&2)===0||e!==ze)&&(e===ze&&((ge&2)===0&&(_l|=a),Le===4&&Ba(e,ce,Tt,!1)),Ft(e))}function Zd(e,t,a){if((ge&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||sn(e,t),n=l?F_(e,t):Go(e,t,!0),i=l;do{if(n===0){Kl&&!l&&Ba(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!$_(a)){n=Go(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Gn;var y=d.current.memoizedState.isDehydrated;if(y&&(Wl(d,c).flags|=256),c=Go(d,c,!1),c!==2){if(Mo&&!y){d.errorRecoveryDisabledLanes|=i,_l|=i,n=4;break e}i=pt,pt=n,i!==null&&(pt===null?pt=i:pt.push.apply(pt,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Wl(e,0),Ba(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ba(l,t,Tt,!Ua);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=lu+300-gt(),10<n)){if(Ba(l,t,Tt,!Ua),pi(l,0,!0)!==0)break e;ga=t,l.timeoutHandle=Em(Kd.bind(null,l,a,pt,iu,qo,t,Tt,_l,Jl,Ua,i,"Throttled",-0,0),n);break e}Kd(l,a,pt,iu,qo,t,Tt,_l,Jl,Ua,i,null,-0,0)}}break}while(!0);Ft(e)}function Kd(e,t,a,l,n,i,c,d,y,T,z,N,R,A){if(e.timeoutHandle=-1,N=t.subtreeFlags,N&8192||(N&16785408)===16785408){N={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},Ld(t,i,N);var Q=(i&62914560)===i?lu-gt():(i&4194048)===i?Xd-gt():0;if(Q=Ny(N,Q),Q!==null){ga=i,e.cancelPendingCommit=Q(tm.bind(null,e,t,i,a,l,n,c,d,y,z,N,null,R,A)),Ba(e,i,c,!T);return}}tm(e,t,i,a,l,n,c,d,y)}function $_(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!xt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ba(e,t,a,l){t&=~Uo,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-bt(n),c=1<<i;l[i]=-1,n&=~c}a!==0&&ac(e,a,t)}function uu(){return(ge&6)===0?(Vn(0),!1):!0}function Yo(){if(oe!==null){if(Se===0)var e=oe.return;else e=oe,ra=rl=null,ao(e),Bl=null,Tn=0,e=oe;for(;e!==null;)kd(e.alternate,e),e=e.return;oe=null}}function Wl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,py(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ga=0,Yo(),ze=e,oe=a=ia(e.current,null),ce=t,Se=0,wt=null,Ua=!1,Kl=sn(e,t),Mo=!1,Jl=Tt=Uo=_l=qa=Le=0,pt=Gn=null,qo=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-bt(l),i=1<<n;t|=e[n],l&=~i}return ya=t,Ri(),a}function Jd(e,t){le=null,C.H=Dn,t===Ll||t===Mi?(t=cf(),Se=3):t===Vr?(t=cf(),Se=4):Se=t===vo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,oe===null&&(Le=1,$i(e,Nt(t,e.current)))}function $d(){var e=Et.current;return e===null?!0:(ce&4194048)===ce?qt===null:(ce&62914560)===ce||(ce&536870912)!==0?e===qt:!1}function Wd(){var e=C.H;return C.H=Dn,e===null?Dn:e}function Fd(){var e=C.A;return C.A=K_,e}function ru(){Le=4,Ua||(ce&4194048)!==ce&&Et.current!==null||(Kl=!0),(qa&134217727)===0&&(_l&134217727)===0||ze===null||Ba(ze,ce,Tt,!1)}function Go(e,t,a){var l=ge;ge|=2;var n=Wd(),i=Fd();(ze!==e||ce!==t)&&(iu=null,Wl(e,t)),t=!1;var c=Le;e:do try{if(Se!==0&&oe!==null){var d=oe,y=wt;switch(Se){case 8:Yo(),c=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var T=Se;if(Se=0,wt=null,Fl(e,d,y,T),a&&Kl){c=0;break e}break;default:T=Se,Se=0,wt=null,Fl(e,d,y,T)}}W_(),c=Le;break}catch(z){Jd(e,z)}while(!0);return t&&e.shellSuspendCounter++,ra=rl=null,ge=l,C.H=n,C.A=i,oe===null&&(ze=null,ce=0,Ri()),c}function W_(){for(;oe!==null;)Id(oe)}function F_(e,t){var a=ge;ge|=2;var l=Wd(),n=Fd();ze!==e||ce!==t?(iu=null,nu=gt()+500,Wl(e,t)):Kl=sn(e,t);e:do try{if(Se!==0&&oe!==null){t=oe;var i=wt;t:switch(Se){case 1:Se=0,wt=null,Fl(e,t,i,1);break;case 2:case 9:if(of(i)){Se=0,wt=null,Pd(t);break}t=function(){Se!==2&&Se!==9||ze!==e||(Se=7),Ft(e)},i.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:of(i)?(Se=0,wt=null,Pd(t)):(Se=0,wt=null,Fl(e,t,i,7));break;case 5:var c=null;switch(oe.tag){case 26:c=oe.memoizedState;case 5:case 27:var d=oe;if(c?Hm(c):d.stateNode.complete){Se=0,wt=null;var y=d.sibling;if(y!==null)oe=y;else{var T=d.return;T!==null?(oe=T,ou(T)):oe=null}break t}}Se=0,wt=null,Fl(e,t,i,5);break;case 6:Se=0,wt=null,Fl(e,t,i,6);break;case 8:Yo(),Le=6;break e;default:throw Error(o(462))}}I_();break}catch(z){Jd(e,z)}while(!0);return ra=rl=null,C.H=l,C.A=n,ge=a,oe!==null?0:(ze=null,ce=0,Ri(),Le)}function I_(){for(;oe!==null&&!xp();)Id(oe)}function Id(e){var t=Sd(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?ou(e):oe=t}function Pd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=_d(a,t,t.pendingProps,t.type,void 0,ce);break;case 11:t=_d(a,t,t.pendingProps,t.type.render,t.ref,ce);break;case 5:ao(t);default:kd(a,t),t=oe=Wc(t,ya),t=Sd(a,t,ya)}e.memoizedProps=e.pendingProps,t===null?ou(e):oe=t}function Fl(e,t,a,l){ra=rl=null,ao(t),Bl=null,Tn=0;var n=t.return;try{if(B_(e,n,t,a,ce)){Le=1,$i(e,Nt(a,e.current)),oe=null;return}}catch(i){if(n!==null)throw oe=n,i;Le=1,$i(e,Nt(a,e.current)),oe=null;return}t.flags&32768?(me||l===1?e=!0:Kl||(ce&536870912)!==0?e=!1:(Ua=e=!0,(l===2||l===9||l===3||l===6)&&(l=Et.current,l!==null&&l.tag===13&&(l.flags|=16384))),em(t,e)):ou(t)}function ou(e){var t=e;do{if((t.flags&32768)!==0){em(t,Ua);return}e=t.return;var a=X_(t.alternate,t,ya);if(a!==null){oe=a;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);Le===0&&(Le=5)}function em(e,t){do{var a=V_(e.alternate,e);if(a!==null){a.flags&=32767,oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=a}while(e!==null);Le=6,oe=null}function tm(e,t,a,l,n,i,c,d,y){e.cancelPendingCommit=null;do su();while($e!==0);if((ge&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Ar,Cp(e,a,i,c,d,y),e===ze&&(oe=ze=null,ce=0),$l=t,La=e,ga=a,Ho=i,Lo=n,Vd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ay(fi,function(){return um(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=C.T,C.T=null,n=Y.p,Y.p=2,c=ge,ge|=4;try{Q_(e,t,a)}finally{ge=c,Y.p=n,C.T=l}}$e=1,am(),lm(),nm()}}function am(){if($e===1){$e=0;var e=La,t=$l,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null;var l=Y.p;Y.p=2;var n=ge;ge|=4;try{Ud(t,e);var i=es,c=Yc(e.containerInfo),d=i.focusedElem,y=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&Bc(d.ownerDocument.documentElement,d)){if(y!==null&&kr(d)){var T=y.start,z=y.end;if(z===void 0&&(z=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(z,d.value.length);else{var N=d.ownerDocument||document,R=N&&N.defaultView||window;if(R.getSelection){var A=R.getSelection(),Q=d.textContent.length,P=Math.min(y.start,Q),Re=y.end===void 0?P:Math.min(y.end,Q);!A.extend&&P>Re&&(c=Re,Re=P,P=c);var E=Lc(d,P),b=Lc(d,Re);if(E&&b&&(A.rangeCount!==1||A.anchorNode!==E.node||A.anchorOffset!==E.offset||A.focusNode!==b.node||A.focusOffset!==b.offset)){var w=N.createRange();w.setStart(E.node,E.offset),A.removeAllRanges(),P>Re?(A.addRange(w),A.extend(b.node,b.offset)):(w.setEnd(b.node,b.offset),A.addRange(w))}}}}for(N=[],A=d;A=A.parentNode;)A.nodeType===1&&N.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<N.length;d++){var O=N[d];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}xu=!!Po,es=Po=null}finally{ge=n,Y.p=l,C.T=a}}e.current=t,$e=2}}function lm(){if($e===2){$e=0;var e=La,t=$l,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=C.T,C.T=null;var l=Y.p;Y.p=2;var n=ge;ge|=4;try{Cd(e,t.alternate,t)}finally{ge=n,Y.p=l,C.T=a}}$e=3}}function nm(){if($e===4||$e===3){$e=0,Sp();var e=La,t=$l,a=ga,l=Vd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,$l=La=null,im(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ha=null),ir(a),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=C.T,n=Y.p,Y.p=2,C.T=null;try{for(var i=e.onRecoverableError,c=0;c<l.length;c++){var d=l[c];i(d.value,{componentStack:d.stack})}}finally{C.T=t,Y.p=n}}(ga&3)!==0&&su(),Ft(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Bo?Xn++:(Xn=0,Bo=e):Xn=0,Vn(0)}}function im(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kn(t)))}function su(){return am(),lm(),nm(),um()}function um(){if($e!==5)return!1;var e=La,t=Ho;Ho=0;var a=ir(ga),l=C.T,n=Y.p;try{Y.p=32>a?32:a,C.T=null,a=Lo,Lo=null;var i=La,c=ga;if($e=0,$l=La=null,ga=0,(ge&6)!==0)throw Error(o(331));var d=ge;if(ge|=4,Yd(i.current),Hd(i,i.current,c,a),ge=d,Vn(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(on,i)}catch{}return!0}finally{Y.p=n,C.T=l,im(e,t)}}function rm(e,t,a){t=Nt(a,t),t=go(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(cn(e,2),Ft(e))}function Ee(e,t,a){if(e.tag===3)rm(e,e,a);else for(;t!==null;){if(t.tag===3){rm(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){e=Nt(a,e),a=od(2),l=Oa(t,a,2),l!==null&&(sd(a,l,t,e),cn(l,2),Ft(l));break}}t=t.return}}function Xo(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new J_;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Mo=!0,n.add(a),e=P_.bind(null,e,t,a),t.then(e,e))}function P_(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ze===e&&(ce&a)===a&&(Le===4||Le===3&&(ce&62914560)===ce&&300>gt()-lu?(ge&2)===0&&Wl(e,0):Uo|=a,Jl===ce&&(Jl=0)),Ft(e)}function om(e,t){t===0&&(t=tc()),e=nl(e,t),e!==null&&(cn(e,t),Ft(e))}function ey(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),om(e,a)}function ty(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),om(e,a)}function ay(e,t){return tr(e,t)}var cu=null,Il=null,Vo=!1,fu=!1,Qo=!1,Ya=0;function Ft(e){e!==Il&&e.next===null&&(Il===null?cu=Il=e:Il=Il.next=e),fu=!0,Vo||(Vo=!0,ny())}function Vn(e,t){if(!Qo&&fu){Qo=!0;do for(var a=!1,l=cu;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var c=l.suspendedLanes,d=l.pingedLanes;i=(1<<31-bt(42|e)+1)-1,i&=n&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,dm(l,i))}else i=ce,i=pi(l,l===ze?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||sn(l,i)||(a=!0,dm(l,i));l=l.next}while(a);Qo=!1}}function ly(){sm()}function sm(){fu=Vo=!1;var e=0;Ya!==0&&hy()&&(e=Ya);for(var t=gt(),a=null,l=cu;l!==null;){var n=l.next,i=cm(l,t);i===0?(l.next=null,a===null?cu=n:a.next=n,n===null&&(Il=a)):(a=l,(e!==0||(i&3)!==0)&&(fu=!0)),l=n}$e!==0&&$e!==5||Vn(e),Ya!==0&&(Ya=0)}function cm(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-bt(i),d=1<<c,y=n[c];y===-1?((d&a)===0||(d&l)!==0)&&(n[c]=zp(d,t)):y<=t&&(e.expiredLanes|=d),i&=~d}if(t=ze,a=ce,a=pi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ar(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||sn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&ar(l),ir(a)){case 2:case 8:a=Ps;break;case 32:a=fi;break;case 268435456:a=ec;break;default:a=fi}return l=fm.bind(null,e),a=tr(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&ar(l),e.callbackPriority=2,e.callbackNode=null,2}function fm(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(su()&&e.callbackNode!==a)return null;var l=ce;return l=pi(e,e===ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Zd(e,l,t),cm(e,gt()),e.callbackNode!=null&&e.callbackNode===a?fm.bind(null,e):null)}function dm(e,t){if(su())return null;Zd(e,t,!0)}function ny(){_y(function(){(ge&6)!==0?tr(Is,ly):sm()})}function Zo(){if(Ya===0){var e=ql;e===0&&(e=di,di<<=1,(di&261888)===0&&(di=256)),Ya=e}return Ya}function mm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function hm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function iy(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=mm((n[ct]||null).action),c=l.submitter;c&&(t=(t=c[ct]||null)?mm(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new Ei("action","action",null,l,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var y=c?hm(n,c):new FormData(n);fo(a,{pending:!0,data:y,method:n.method,action:i},null,y)}}else typeof i=="function"&&(d.preventDefault(),y=c?hm(n,c):new FormData(n),fo(a,{pending:!0,data:y,method:n.method,action:i},i,y))},currentTarget:n}]})}}for(var Ko=0;Ko<jr.length;Ko++){var Jo=jr[Ko],uy=Jo.toLowerCase(),ry=Jo[0].toUpperCase()+Jo.slice(1);Xt(uy,"on"+ry)}Xt(Vc,"onAnimationEnd"),Xt(Qc,"onAnimationIteration"),Xt(Zc,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(E_,"onTransitionRun"),Xt(k_,"onTransitionStart"),Xt(w_,"onTransitionCancel"),Xt(Kc,"onTransitionEnd"),El("onMouseEnter",["mouseout","mouseover"]),El("onMouseLeave",["mouseout","mouseover"]),El("onPointerEnter",["pointerout","pointerover"]),El("onPointerLeave",["pointerout","pointerover"]),el("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),el("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),el("onBeforeInput",["compositionend","keypress","textInput","paste"]),el("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qn="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(" "),oy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qn));function pm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var c=l.length-1;0<=c;c--){var d=l[c],y=d.instance,T=d.currentTarget;if(d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(z){Ti(z)}n.currentTarget=null,i=y}else for(c=0;c<l.length;c++){if(d=l[c],y=d.instance,T=d.currentTarget,d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(z){Ti(z)}n.currentTarget=null,i=y}}}}function se(e,t){var a=t[ur];a===void 0&&(a=t[ur]=new Set);var l=e+"__bubble";a.has(l)||(_m(t,e,2,!1),a.add(l))}function $o(e,t,a){var l=0;t&&(l|=4),_m(a,e,l,t)}var du="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[du]){e[du]=!0,oc.forEach(function(a){a!=="selectionchange"&&(oy.has(a)||$o(a,!1,e),$o(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[du]||(t[du]=!0,$o("selectionchange",!1,t))}}function _m(e,t,a,l){switch(Qm(t)){case 2:var n=Uy;break;case 8:n=qy;break;default:n=fs}a=n.bind(null,t,a,e),n=void 0,!pr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Fo(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var d=l.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=l.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=bl(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){l=i=c;continue e}d=d.parentNode}}l=l.return}bc(function(){var T=i,z=mr(a),N=[];e:{var R=Jc.get(e);if(R!==void 0){var A=Ei,Q=e;switch(e){case"keypress":if(xi(a)===0)break e;case"keydown":case"keyup":A=t_;break;case"focusin":Q="focus",A=vr;break;case"focusout":Q="blur",A=vr;break;case"beforeblur":case"afterblur":A=vr;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Xp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=n_;break;case Vc:case Qc:case Zc:A=Zp;break;case Kc:A=u_;break;case"scroll":case"scrollend":A=Yp;break;case"wheel":A=o_;break;case"copy":case"cut":case"paste":A=Jp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=wc;break;case"toggle":case"beforetoggle":A=c_}var P=(t&4)!==0,Re=!P&&(e==="scroll"||e==="scrollend"),E=P?R!==null?R+"Capture":null:R;P=[];for(var b=T,w;b!==null;){var O=b;if(w=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||w===null||E===null||(O=mn(b,E),O!=null&&P.push(Zn(b,O,w))),Re)break;b=b.return}0<P.length&&(R=new A(R,Q,null,a,z),N.push({event:R,listeners:P}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",R&&a!==dr&&(Q=a.relatedTarget||a.fromElement)&&(bl(Q)||Q[vl]))break e;if((A||R)&&(R=z.window===z?z:(R=z.ownerDocument)?R.defaultView||R.parentWindow:window,A?(Q=a.relatedTarget||a.toElement,A=T,Q=Q?bl(Q):null,Q!==null&&(Re=m(Q),P=Q.tag,Q!==Re||P!==5&&P!==27&&P!==6)&&(Q=null)):(A=null,Q=T),A!==Q)){if(P=Ec,O="onMouseLeave",E="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(P=wc,O="onPointerLeave",E="onPointerEnter",b="pointer"),Re=A==null?R:dn(A),w=Q==null?R:dn(Q),R=new P(O,b+"leave",A,a,z),R.target=Re,R.relatedTarget=w,O=null,bl(z)===T&&(P=new P(E,b+"enter",Q,a,z),P.target=w,P.relatedTarget=Re,O=P),Re=O,A&&Q)t:{for(P=sy,E=A,b=Q,w=0,O=E;O;O=P(O))w++;O=0;for(var F=b;F;F=P(F))O++;for(;0<w-O;)E=P(E),w--;for(;0<O-w;)b=P(b),O--;for(;w--;){if(E===b||b!==null&&E===b.alternate){P=E;break t}E=P(E),b=P(b)}P=null}else P=null;A!==null&&ym(N,R,A,P,!1),Q!==null&&Re!==null&&ym(N,Re,Q,P,!0)}}e:{if(R=T?dn(T):window,A=R.nodeName&&R.nodeName.toLowerCase(),A==="select"||A==="input"&&R.type==="file")var _e=Nc;else if(Cc(R))if(Dc)_e=b_;else{_e=g_;var K=y_}else A=R.nodeName,!A||A.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?T&&fr(T.elementType)&&(_e=Nc):_e=v_;if(_e&&(_e=_e(e,T))){Oc(N,_e,a,z);break e}K&&K(e,R,T),e==="focusout"&&T&&R.type==="number"&&T.memoizedProps.value!=null&&cr(R,"number",R.value)}switch(K=T?dn(T):window,e){case"focusin":(Cc(K)||K.contentEditable==="true")&&(Al=K,wr=T,xn=null);break;case"focusout":xn=wr=Al=null;break;case"mousedown":Tr=!0;break;case"contextmenu":case"mouseup":case"dragend":Tr=!1,Gc(N,a,z);break;case"selectionchange":if(S_)break;case"keydown":case"keyup":Gc(N,a,z)}var ne;if(xr)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else jl?Ac(e,a)&&(fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(fe="onCompositionStart");fe&&(Tc&&a.locale!=="ko"&&(jl||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&jl&&(ne=xc()):(wa=z,_r="value"in wa?wa.value:wa.textContent,jl=!0)),K=mu(T,fe),0<K.length&&(fe=new kc(fe,e,null,a,z),N.push({event:fe,listeners:K}),ne?fe.data=ne:(ne=zc(a),ne!==null&&(fe.data=ne)))),(ne=d_?m_(e,a):h_(e,a))&&(fe=mu(T,"onBeforeInput"),0<fe.length&&(K=new kc("onBeforeInput","beforeinput",null,a,z),N.push({event:K,listeners:fe}),K.data=ne)),iy(N,e,T,a,z)}pm(N,t)})}function Zn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function mu(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=mn(e,a),n!=null&&l.unshift(Zn(e,n,i)),n=mn(e,t),n!=null&&l.push(Zn(e,n,i))),e.tag===3)return l;e=e.return}return[]}function sy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ym(e,t,a,l,n){for(var i=t._reactName,c=[];a!==null&&a!==l;){var d=a,y=d.alternate,T=d.stateNode;if(d=d.tag,y!==null&&y===l)break;d!==5&&d!==26&&d!==27||T===null||(y=T,n?(T=mn(a,i),T!=null&&c.unshift(Zn(a,T,y))):n||(T=mn(a,i),T!=null&&c.push(Zn(a,T,y)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var cy=/\r\n?/g,fy=/\u0000|\uFFFD/g;function gm(e){return(typeof e=="string"?e:""+e).replace(cy,`
50
+ `).replace(fy,"")}function vm(e,t){return t=gm(t),gm(e)===t}function Te(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||wl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&wl(e,""+l);break;case"className":yi(e,"class",l);break;case"tabIndex":yi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":yi(e,a,l);break;case"style":gc(e,l,i);break;case"data":if(t!=="object"){yi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&Te(e,t,"name",n.name,n,null),Te(e,t,"formEncType",n.formEncType,n,null),Te(e,t,"formMethod",n.formMethod,n,null),Te(e,t,"formTarget",n.formTarget,n,null)):(Te(e,t,"encType",n.encType,n,null),Te(e,t,"method",n.method,n,null),Te(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=la);break;case"onScroll":l!=null&&se("scroll",e);break;case"onScrollEnd":l!=null&&se("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=vi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":se("beforetoggle",e),se("toggle",e),_i(e,"popover",l);break;case"xlinkActuate":aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":aa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":aa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":aa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":aa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_i(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Lp.get(a)||a,_i(e,a,l))}}function Io(e,t,a,l,n,i){switch(a){case"style":gc(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?wl(e,l):(typeof l=="number"||typeof l=="bigint")&&wl(e,""+l);break;case"onScroll":l!=null&&se("scroll",e);break;case"onScrollEnd":l!=null&&se("scrollend",e);break;case"onClick":l!=null&&(e.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[ct]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):_i(e,a,l)}}}function nt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":se("error",e),se("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];if(c!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Te(e,t,i,c,a,null)}}n&&Te(e,t,"srcSet",a.srcSet,a,null),l&&Te(e,t,"src",a.src,a,null);return;case"input":se("invalid",e);var d=i=c=n=null,y=null,T=null;for(l in a)if(a.hasOwnProperty(l)){var z=a[l];if(z!=null)switch(l){case"name":n=z;break;case"type":c=z;break;case"checked":y=z;break;case"defaultChecked":T=z;break;case"value":i=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Te(e,t,l,z,a,null)}}hc(e,i,d,y,T,c,n,!1);return;case"select":se("invalid",e),l=c=i=null;for(n in a)if(a.hasOwnProperty(n)&&(d=a[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":l=d;default:Te(e,t,n,d,a,null)}t=i,a=c,e.multiple=!!l,t!=null?kl(e,!!l,t,!1):a!=null&&kl(e,!!l,a,!0);return;case"textarea":se("invalid",e),i=n=l=null;for(c in a)if(a.hasOwnProperty(c)&&(d=a[c],d!=null))switch(c){case"value":l=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Te(e,t,c,d,a,null)}_c(e,l,n,i);return;case"option":for(y in a)if(a.hasOwnProperty(y)&&(l=a[y],l!=null))switch(y){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Te(e,t,y,l,a,null)}return;case"dialog":se("beforetoggle",e),se("toggle",e),se("cancel",e),se("close",e);break;case"iframe":case"object":se("load",e);break;case"video":case"audio":for(l=0;l<Qn.length;l++)se(Qn[l],e);break;case"image":se("error",e),se("load",e);break;case"details":se("toggle",e);break;case"embed":case"source":case"link":se("error",e),se("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(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Te(e,t,T,l,a,null)}return;default:if(fr(t)){for(z in a)a.hasOwnProperty(z)&&(l=a[z],l!==void 0&&Io(e,t,z,l,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!=null&&Te(e,t,d,l,a,null))}function dy(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,d=null,y=null,T=null,z=null;for(A in a){var N=a[A];if(a.hasOwnProperty(A)&&N!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":y=N;default:l.hasOwnProperty(A)||Te(e,t,A,null,l,N)}}for(var R in l){var A=l[R];if(N=a[R],l.hasOwnProperty(R)&&(A!=null||N!=null))switch(R){case"type":i=A;break;case"name":n=A;break;case"checked":T=A;break;case"defaultChecked":z=A;break;case"value":c=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==N&&Te(e,t,R,A,l,N)}}sr(e,c,d,y,T,z,i,n);return;case"select":A=c=d=R=null;for(i in a)if(y=a[i],a.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":A=y;default:l.hasOwnProperty(i)||Te(e,t,i,null,l,y)}for(n in l)if(i=l[n],y=a[n],l.hasOwnProperty(n)&&(i!=null||y!=null))switch(n){case"value":R=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==y&&Te(e,t,n,i,l,y)}t=d,a=c,l=A,R!=null?kl(e,!!a,R,!1):!!l!=!!a&&(t!=null?kl(e,!!a,t,!0):kl(e,!!a,a?[]:"",!1));return;case"textarea":A=R=null;for(d in a)if(n=a[d],a.hasOwnProperty(d)&&n!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Te(e,t,d,null,l,n)}for(c in l)if(n=l[c],i=a[c],l.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":R=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Te(e,t,c,n,l,i)}pc(e,R,A);return;case"option":for(var Q in a)if(R=a[Q],a.hasOwnProperty(Q)&&R!=null&&!l.hasOwnProperty(Q))switch(Q){case"selected":e.selected=!1;break;default:Te(e,t,Q,null,l,R)}for(y in l)if(R=l[y],A=a[y],l.hasOwnProperty(y)&&R!==A&&(R!=null||A!=null))switch(y){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Te(e,t,y,R,l,A)}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 P in a)R=a[P],a.hasOwnProperty(P)&&R!=null&&!l.hasOwnProperty(P)&&Te(e,t,P,null,l,R);for(T in l)if(R=l[T],A=a[T],l.hasOwnProperty(T)&&R!==A&&(R!=null||A!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Te(e,t,T,R,l,A)}return;default:if(fr(t)){for(var Re in a)R=a[Re],a.hasOwnProperty(Re)&&R!==void 0&&!l.hasOwnProperty(Re)&&Io(e,t,Re,void 0,l,R);for(z in l)R=l[z],A=a[z],!l.hasOwnProperty(z)||R===A||R===void 0&&A===void 0||Io(e,t,z,R,l,A);return}}for(var E in a)R=a[E],a.hasOwnProperty(E)&&R!=null&&!l.hasOwnProperty(E)&&Te(e,t,E,null,l,R);for(N in l)R=l[N],A=a[N],!l.hasOwnProperty(N)||R===A||R==null&&A==null||Te(e,t,N,R,l,A)}function bm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function my(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,c=n.initiatorType,d=n.duration;if(i&&d&&bm(c)){for(c=0,d=n.responseEnd,l+=1;l<a.length;l++){var y=a[l],T=y.startTime;if(T>d)break;var z=y.transferSize,N=y.initiatorType;z&&bm(N)&&(y=y.responseEnd,c+=z*(y<d?1:(d-T)/(y-T)))}if(--l,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Po=null,es=null;function hu(e){return e.nodeType===9?e:e.ownerDocument}function xm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ts(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var as=null;function hy(){var e=window.event;return e&&e.type==="popstate"?e===as?!1:(as=e,!0):(as=null,!1)}var Em=typeof setTimeout=="function"?setTimeout:void 0,py=typeof clearTimeout=="function"?clearTimeout:void 0,km=typeof Promise=="function"?Promise:void 0,_y=typeof queueMicrotask=="function"?queueMicrotask:typeof km<"u"?function(e){return km.resolve(null).then(e).catch(yy)}:Em;function yy(e){setTimeout(function(){throw e})}function Ga(e){return e==="head"}function wm(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),an(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Kn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Kn(a);for(var i=a.firstChild;i;){var c=i.nextSibling,d=i.nodeName;i[fn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=c}}else a==="body"&&Kn(e.ownerDocument.body);a=n}while(a);an(t)}function Tm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function ls(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ls(a),rr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function gy(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[fn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function vy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ht(e.nextSibling),e===null))return null;return e}function Rm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ht(e.nextSibling),e===null))return null;return e}function ns(e){return e.data==="$?"||e.data==="$~"}function is(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function by(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ht(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var us=null;function jm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ht(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Am(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function zm(e,t,a){switch(t=hu(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Kn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);rr(e)}var Lt=new Map,Cm=new Set;function pu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=Y.d;Y.d={f:xy,r:Sy,D:Ey,C:ky,L:wy,m:Ty,X:jy,S:Ry,M:Ay};function xy(){var e=va.f(),t=uu();return e||t}function Sy(e){var t=xl(e);t!==null&&t.tag===5&&t.type==="form"?Jf(t):va.r(e)}var Pl=typeof document>"u"?null:document;function Om(e,t,a){var l=Pl;if(l&&typeof t=="string"&&t){var n=Ct(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Cm.has(n)||(Cm.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),nt(t,"link",e),Fe(t),l.head.appendChild(t)))}}function Ey(e){va.D(e),Om("dns-prefetch",e,null)}function ky(e,t){va.C(e,t),Om("preconnect",e,t)}function wy(e,t,a){va.L(e,t,a);var l=Pl;if(l&&e&&t){var n='link[rel="preload"][as="'+Ct(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Ct(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Ct(a.imageSizes)+'"]')):n+='[href="'+Ct(e)+'"]';var i=n;switch(t){case"style":i=en(e);break;case"script":i=tn(e)}Lt.has(i)||(e=k({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Lt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Jn(i))||t==="script"&&l.querySelector($n(i))||(t=l.createElement("link"),nt(t,"link",e),Fe(t),l.head.appendChild(t)))}}function Ty(e,t){va.m(e,t);var a=Pl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ct(l)+'"][href="'+Ct(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=tn(e)}if(!Lt.has(i)&&(e=k({rel:"modulepreload",href:e},t),Lt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($n(i)))return}l=a.createElement("link"),nt(l,"link",e),Fe(l),a.head.appendChild(l)}}}function Ry(e,t,a){va.S(e,t,a);var l=Pl;if(l&&e){var n=Sl(l).hoistableStyles,i=en(e);t=t||"default";var c=n.get(i);if(!c){var d={loading:0,preload:null};if(c=l.querySelector(Jn(i)))d.loading=5;else{e=k({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Lt.get(i))&&rs(e,a);var y=c=l.createElement("link");Fe(y),nt(y,"link",e),y._p=new Promise(function(T,z){y.onload=T,y.onerror=z}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,_u(c,t,l)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(i,c)}}}function jy(e,t){va.X(e,t);var a=Pl;if(a&&e){var l=Sl(a).hoistableScripts,n=tn(e),i=l.get(n);i||(i=a.querySelector($n(n)),i||(e=k({src:e,async:!0},t),(t=Lt.get(n))&&os(e,t),i=a.createElement("script"),Fe(i),nt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Ay(e,t){va.M(e,t);var a=Pl;if(a&&e){var l=Sl(a).hoistableScripts,n=tn(e),i=l.get(n);i||(i=a.querySelector($n(n)),i||(e=k({src:e,async:!0,type:"module"},t),(t=Lt.get(n))&&os(e,t),i=a.createElement("script"),Fe(i),nt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Nm(e,t,a,l){var n=(n=re.current)?pu(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=en(a.href),a=Sl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=en(a.href);var i=Sl(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(Jn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Lt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Lt.set(e,a),i||zy(n,e,a,c.state))),t&&l===null)throw Error(o(528,""));return c}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(a),a=Sl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function en(e){return'href="'+Ct(e)+'"'}function Jn(e){return'link[rel="stylesheet"]['+e+"]"}function Dm(e){return k({},e,{"data-precedence":e.precedence,precedence:null})}function zy(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),nt(t,"link",a),Fe(t),e.head.appendChild(t))}function tn(e){return'[src="'+Ct(e)+'"]'}function $n(e){return"script[async]"+e}function Mm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ct(a.href)+'"]');if(l)return t.instance=l,Fe(l),l;var n=k({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Fe(l),nt(l,"style",n),_u(l,a.precedence,e),t.instance=l;case"stylesheet":n=en(a.href);var i=e.querySelector(Jn(n));if(i)return t.state.loading|=4,t.instance=i,Fe(i),i;l=Dm(a),(n=Lt.get(n))&&rs(l,n),i=(e.ownerDocument||e).createElement("link"),Fe(i);var c=i;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),nt(i,"link",l),t.state.loading|=4,_u(i,a.precedence,e),t.instance=i;case"script":return i=tn(a.src),(n=e.querySelector($n(i)))?(t.instance=n,Fe(n),n):(l=a,(n=Lt.get(i))&&(l=k({},a),os(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Fe(n),nt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,_u(l,a.precedence,e));return t.instance}function _u(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,c=0;c<l.length;c++){var d=l[c];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function rs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yu=null;function Um(e,t,a){if(yu===null){var l=new Map,n=yu=new Map;n.set(a,l)}else n=yu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[fn]||i[et]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=l.get(c);d?d.push(i):l.set(c,[i])}}return l}function qm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Cy(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Hm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Oy(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=en(l.href),i=t.querySelector(Jn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=gu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Fe(i);return}i=t.ownerDocument||t,l=Dm(l),(n=Lt.get(n))&&rs(l,n),i=i.createElement("link"),Fe(i);var c=i;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),nt(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=gu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ss=0;function Ny(e,t){return e.stylesheets&&e.count===0&&bu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&bu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&ss===0&&(ss=62500*my());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>ss?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function gu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vu=null;function bu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vu=new Map,t.forEach(Dy,e),vu=null,gu.call(e))}function Dy(e,t){if(!(t.state.loading&4)){var a=vu.get(e);if(a)var l=a.get(null);else{a=new Map,vu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),l=c)}l&&a.set(null,l)}n=t.instance,c=n.getAttribute("data-precedence"),i=a.get(c)||l,i===l&&a.set(null,n),a.set(c,n),this.count++,l=gu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Wn={$$typeof:J,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function My(e,t,a,l,n,i,c,d,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=lr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.hiddenUpdates=lr(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Lm(e,t,a,l,n,i,c,d,y,T,z,N){return e=new My(e,t,a,c,y,T,z,N,d),t=1,i===!0&&(t|=24),i=St(3,null,null,t),e.current=i,i.stateNode=e,t=Yr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Qr(i),e}function Bm(e){return e?(e=Ol,e):Ol}function Ym(e,t,a,l,n,i){n=Bm(n),l.context===null?l.context=n:l.pendingContext=n,l=Ca(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Oa(e,l,t),a!==null&&(_t(a,e,t),jn(a,e,t))}function Gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function cs(e,t){Gm(e,t),(e=e.alternate)&&Gm(e,t)}function Xm(e){if(e.tag===13||e.tag===31){var t=nl(e,67108864);t!==null&&_t(t,e,67108864),cs(e,67108864)}}function Vm(e){if(e.tag===13||e.tag===31){var t=Rt();t=nr(t);var a=nl(e,t);a!==null&&_t(a,e,t),cs(e,t)}}var xu=!0;function Uy(e,t,a,l){var n=C.T;C.T=null;var i=Y.p;try{Y.p=2,fs(e,t,a,l)}finally{Y.p=i,C.T=n}}function qy(e,t,a,l){var n=C.T;C.T=null;var i=Y.p;try{Y.p=8,fs(e,t,a,l)}finally{Y.p=i,C.T=n}}function fs(e,t,a,l){if(xu){var n=ds(l);if(n===null)Fo(e,t,l,Su,a),Zm(e,l);else if(Ly(n,e,t,a,l))l.stopPropagation();else if(Zm(e,l),t&4&&-1<Hy.indexOf(e)){for(;n!==null;){var i=xl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Pa(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var y=1<<31-bt(c);d.entanglements[1]|=y,c&=~y}Ft(i),(ge&6)===0&&(nu=gt()+500,Vn(0))}}break;case 31:case 13:d=nl(i,2),d!==null&&_t(d,i,2),uu(),cs(i,2)}if(i=ds(l),i===null&&Fo(e,t,l,Su,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else Fo(e,t,l,null,a)}}function ds(e){return e=mr(e),ms(e)}var Su=null;function ms(e){if(Su=null,e=bl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=x(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Su=e,null}function Qm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ep()){case Is:return 2;case Ps:return 8;case fi:case kp:return 32;case ec:return 268435456;default:return 32}default:return 32}}var hs=!1,Xa=null,Va=null,Qa=null,Fn=new Map,In=new Map,Za=[],Hy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Zm(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Qa=null;break;case"pointerover":case"pointerout":Fn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(t.pointerId)}}function Pn(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=xl(t),t!==null&&Xm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Ly(e,t,a,l,n){switch(t){case"focusin":return Xa=Pn(Xa,e,t,a,l,n),!0;case"dragenter":return Va=Pn(Va,e,t,a,l,n),!0;case"mouseover":return Qa=Pn(Qa,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return Fn.set(i,Pn(Fn.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,In.set(i,Pn(In.get(i)||null,e,t,a,l,n)),!0}return!1}function Km(e){var t=bl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,uc(e.priority,function(){Vm(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,uc(e.priority,function(){Vm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ds(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);dr=l,a.target.dispatchEvent(l),dr=null}else return t=xl(a),t!==null&&Xm(t),e.blockedOn=a,!1;t.shift()}return!0}function Jm(e,t,a){Eu(e)&&a.delete(t)}function By(){hs=!1,Xa!==null&&Eu(Xa)&&(Xa=null),Va!==null&&Eu(Va)&&(Va=null),Qa!==null&&Eu(Qa)&&(Qa=null),Fn.forEach(Jm),In.forEach(Jm)}function ku(e,t){e.blockedOn===t&&(e.blockedOn=null,hs||(hs=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,By)))}var wu=null;function $m(e){wu!==e&&(wu=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){wu===e&&(wu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(ms(l||a)===null)continue;break}var i=xl(a);i!==null&&(e.splice(t,3),t-=3,fo(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function an(e){function t(y){return ku(y,e)}Xa!==null&&ku(Xa,e),Va!==null&&ku(Va,e),Qa!==null&&ku(Qa,e),Fn.forEach(t),In.forEach(t);for(var a=0;a<Za.length;a++){var l=Za[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Za.length&&(a=Za[0],a.blockedOn===null);)Km(a),a.blockedOn===null&&Za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],c=n[ct]||null;if(typeof i=="function")c||$m(a);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ct]||null)d=c.formAction;else if(ms(n)!==null)continue}else d=c.action;typeof d=="function"?a[l+1]=d:(a.splice(l,3),l-=3),$m(a)}}}function Wm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ps(e){this._internalRoot=e}Tu.prototype.render=ps.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Rt();Ym(a,l,e,t,null,null)},Tu.prototype.unmount=ps.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ym(e.current,2,null,e,null,null),uu(),t[vl]=null}};function Tu(e){this._internalRoot=e}Tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ic();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Za.length&&t!==0&&t<Za[a].priority;a++);Za.splice(a,0,e),a===0&&Km(e)}};var Fm=r.version;if(Fm!=="19.2.4")throw Error(o(527,Fm,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?j(e):null,e=e===null?null:e.stateNode,e};var Yy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ru.isDisabled&&Ru.supportsFiber)try{on=Ru.inject(Yy),vt=Ru}catch{}}return ti.createRoot=function(e,t){if(!f(e))throw Error(o(299));var a=!1,l="",n=nd,i=id,c=ud;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Lm(e,1,!1,null,null,a,l,null,n,i,c,Wm),e[vl]=t.current,Wo(e),new ps(t)},ti.hydrateRoot=function(e,t,a){if(!f(e))throw Error(o(299));var l=!1,n="",i=nd,c=id,d=ud,y=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(y=a.formState)),t=Lm(e,1,!0,t,a??null,l,n,y,i,c,d,Wm),t.context=Bm(null),a=t.current,l=Rt(),l=nr(l),n=Ca(l),n.callback=null,Oa(a,n,l),a=l,t.current.lanes=a,cn(t,a),Ft(t),e[vl]=t.current,Wo(e),new Tu(t)},ti.version="19.2.4",ti}var sh;function eg(){if(sh)return vs.exports;sh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(r){console.error(r)}}return u(),vs.exports=Py(),vs.exports}var tg=eg();const ag="modulepreload",lg=function(u){return"/"+u},ch={},Ce=function(r,s,o){let f=Promise.resolve();if(s&&s.length>0){let h=function(p){return Promise.all(p.map(j=>Promise.resolve(j).then(k=>({status:"fulfilled",value:k}),k=>({status:"rejected",reason:k}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=h(s.map(p=>{if(p=lg(p),p in ch)return;ch[p]=!0;const j=p.endsWith(".css"),k=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${k}`))return;const M=document.createElement("link");if(M.rel=j?"stylesheet":ag,j||(M.as="script"),M.crossOrigin="",M.href=p,g&&M.setAttribute("nonce",g),document.head.appendChild(M),j)return new Promise((X,B)=>{M.addEventListener("load",X),M.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${p}`)))})}))}function m(h){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=h,window.dispatchEvent(x),!x.defaultPrevented)throw h}return f.then(h=>{for(const x of h||[])x.status==="rejected"&&m(x.reason);return r().catch(m)})};/**
51
+ * react-router v7.13.1
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var fh="popstate";function dh(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function ng(u={}){function r(o,f){var p;let m=(p=f.state)==null?void 0:p.masked,{pathname:h,search:x,hash:g}=m||o.location;return zs("",{pathname:h,search:x,hash:g},f.state&&f.state.usr||null,f.state&&f.state.key||"default",m?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function s(o,f){return typeof f=="string"?f:ri(f)}return ug(r,s,null,u)}function Ue(u,r){if(u===!1||u===null||typeof u>"u")throw new Error(r)}function Yt(u,r){if(!u){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function ig(){return Math.random().toString(36).substring(2,10)}function mh(u,r){return{usr:u.state,key:u.key,idx:r,masked:u.unstable_mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function zs(u,r,s=null,o,f){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof r=="string"?ln(r):r,state:s,key:r&&r.key||o||ig(),unstable_mask:f}}function ri({pathname:u="/",search:r="",hash:s=""}){return r&&r!=="?"&&(u+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(u+=s.charAt(0)==="#"?s:"#"+s),u}function ln(u){let r={};if(u){let s=u.indexOf("#");s>=0&&(r.hash=u.substring(s),u=u.substring(0,s));let o=u.indexOf("?");o>=0&&(r.search=u.substring(o),u=u.substring(0,o)),u&&(r.pathname=u)}return r}function ug(u,r,s,o={}){let{window:f=document.defaultView,v5Compat:m=!1}=o,h=f.history,x="POP",g=null,p=j();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function j(){return(h.state||{idx:null}).idx}function k(){x="POP";let H=j(),L=H==null?null:H-p;p=H,g&&g({action:x,location:q.location,delta:L})}function M(H,L){x="PUSH";let I=dh(H)?H:zs(q.location,H,L);p=j()+1;let J=mh(I,p),he=q.createHref(I.unstable_mask||I);try{h.pushState(J,"",he)}catch(pe){if(pe instanceof DOMException&&pe.name==="DataCloneError")throw pe;f.location.assign(he)}m&&g&&g({action:x,location:q.location,delta:1})}function X(H,L){x="REPLACE";let I=dh(H)?H:zs(q.location,H,L);p=j();let J=mh(I,p),he=q.createHref(I.unstable_mask||I);h.replaceState(J,"",he),m&&g&&g({action:x,location:q.location,delta:0})}function B(H){return rg(H)}let q={get action(){return x},get location(){return u(f,h)},listen(H){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(fh,k),g=H,()=>{f.removeEventListener(fh,k),g=null}},createHref(H){return r(f,H)},createURL:B,encodeLocation(H){let L=B(H);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:M,replace:X,go(H){return h.go(H)}};return q}function rg(u,r=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(s,"No window.location.(origin|href) available to create URL");let o=typeof u=="string"?u:ri(u);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function Ah(u,r,s="/"){return og(u,r,s,!1)}function og(u,r,s,o){let f=typeof r=="string"?ln(r):r,m=Sa(f.pathname||"/",s);if(m==null)return null;let h=zh(u);sg(h);let x=null;for(let g=0;x==null&&g<h.length;++g){let p=bg(m);x=gg(h[g],p,o)}return x}function zh(u,r=[],s=[],o="",f=!1){let m=(h,x,g=f,p)=>{let j={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:x,route:h};if(j.relativePath.startsWith("/")){if(!j.relativePath.startsWith(o)&&g)return;Ue(j.relativePath.startsWith(o),`Absolute route path "${j.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),j.relativePath=j.relativePath.slice(o.length)}let k=ea([o,j.relativePath]),M=s.concat(j);h.children&&h.children.length>0&&(Ue(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${k}".`),zh(h.children,r,M,k,g)),!(h.path==null&&!h.index)&&r.push({path:k,score:_g(k,h.index),routesMeta:M})};return u.forEach((h,x)=>{var g;if(h.path===""||!((g=h.path)!=null&&g.includes("?")))m(h,x);else for(let p of Ch(h.path))m(h,x,!0,p)}),r}function Ch(u){let r=u.split("/");if(r.length===0)return[];let[s,...o]=r,f=s.endsWith("?"),m=s.replace(/\?$/,"");if(o.length===0)return f?[m,""]:[m];let h=Ch(o.join("/")),x=[];return x.push(...h.map(g=>g===""?m:[m,g].join("/"))),f&&x.push(...h),x.map(g=>u.startsWith("/")&&g===""?"/":g)}function sg(u){u.sort((r,s)=>r.score!==s.score?s.score-r.score:yg(r.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var cg=/^:[\w-]+$/,fg=3,dg=2,mg=1,hg=10,pg=-2,hh=u=>u==="*";function _g(u,r){let s=u.split("/"),o=s.length;return s.some(hh)&&(o+=pg),r&&(o+=dg),s.filter(f=>!hh(f)).reduce((f,m)=>f+(cg.test(m)?fg:m===""?mg:hg),o)}function yg(u,r){return u.length===r.length&&u.slice(0,-1).every((o,f)=>o===r[f])?u[u.length-1]-r[r.length-1]:0}function gg(u,r,s=!1){let{routesMeta:o}=u,f={},m="/",h=[];for(let x=0;x<o.length;++x){let g=o[x],p=x===o.length-1,j=m==="/"?r:r.slice(m.length)||"/",k=Vu({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},j),M=g.route;if(!k&&p&&s&&!o[o.length-1].route.index&&(k=Vu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},j)),!k)return null;Object.assign(f,k.params),h.push({params:f,pathname:ea([m,k.pathname]),pathnameBase:kg(ea([m,k.pathnameBase])),route:M}),k.pathnameBase!=="/"&&(m=ea([m,k.pathnameBase]))}return h}function Vu(u,r){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[s,o]=vg(u.path,u.caseSensitive,u.end),f=r.match(s);if(!f)return null;let m=f[0],h=m.replace(/(.)\/+$/,"$1"),x=f.slice(1);return{params:o.reduce((p,{paramName:j,isOptional:k},M)=>{if(j==="*"){let B=x[M]||"";h=m.slice(0,m.length-B.length).replace(/(.)\/+$/,"$1")}const X=x[M];return k&&!X?p[j]=void 0:p[j]=(X||"").replace(/%2F/g,"/"),p},{}),pathname:m,pathnameBase:h,pattern:u}}function vg(u,r=!1,s=!0){Yt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let o=[],f="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,x,g,p,j)=>{if(o.push({paramName:x,isOptional:g!=null}),g){let k=j.charAt(p+h.length);return k&&k!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(o.push({paramName:"*"}),f+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":u!==""&&u!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,r?void 0:"i"),o]}function bg(u){try{return u.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Yt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),u}}function Sa(u,r){if(r==="/")return u;if(!u.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,o=u.charAt(s);return o&&o!=="/"?null:u.slice(s)||"/"}var xg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Sg(u,r="/"){let{pathname:s,search:o="",hash:f=""}=typeof u=="string"?ln(u):u,m;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?m=ph(s.substring(1),"/"):m=ph(s,r)):m=r,{pathname:m,search:wg(o),hash:Tg(f)}}function ph(u,r){let s=r.replace(/\/+$/,"").split("/");return u.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function Es(u,r,s,o){return`Cannot include a '${u}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Eg(u){return u.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function Ys(u){let r=Eg(u);return r.map((s,o)=>o===r.length-1?s.pathname:s.pathnameBase)}function Ku(u,r,s,o=!1){let f;typeof u=="string"?f=ln(u):(f={...u},Ue(!f.pathname||!f.pathname.includes("?"),Es("?","pathname","search",f)),Ue(!f.pathname||!f.pathname.includes("#"),Es("#","pathname","hash",f)),Ue(!f.search||!f.search.includes("#"),Es("#","search","hash",f)));let m=u===""||f.pathname==="",h=m?"/":f.pathname,x;if(h==null)x=s;else{let k=r.length-1;if(!o&&h.startsWith("..")){let M=h.split("/");for(;M[0]==="..";)M.shift(),k-=1;f.pathname=M.join("/")}x=k>=0?r[k]:"/"}let g=Sg(f,x),p=h&&h!=="/"&&h.endsWith("/"),j=(m||h===".")&&s.endsWith("/");return!g.pathname.endsWith("/")&&(p||j)&&(g.pathname+="/"),g}var ea=u=>u.join("/").replace(/\/\/+/g,"/"),kg=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),wg=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Tg=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,Rg=class{constructor(u,r,s,o=!1){this.status=u,this.statusText=r||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function jg(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Ag(u){return u.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Oh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Nh(u,r){let s=u;if(typeof s!="string"||!xg.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,f=!1;if(Oh)try{let m=new URL(window.location.href),h=s.startsWith("//")?new URL(m.protocol+s):new URL(s),x=Sa(h.pathname,r);h.origin===m.origin&&x!=null?s=x+h.search+h.hash:f=!0}catch{Yt(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Dh=["POST","PUT","PATCH","DELETE"];new Set(Dh);var zg=["GET",...Dh];new Set(zg);var nn=v.createContext(null);nn.displayName="DataRouter";var Ju=v.createContext(null);Ju.displayName="DataRouterState";var Cg=v.createContext(!1),Mh=v.createContext({isTransitioning:!1});Mh.displayName="ViewTransition";var Og=v.createContext(new Map);Og.displayName="Fetchers";var Ng=v.createContext(null);Ng.displayName="Await";var jt=v.createContext(null);jt.displayName="Navigation";var oi=v.createContext(null);oi.displayName="Location";var Gt=v.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Gs=v.createContext(null);Gs.displayName="RouteError";var Uh="REACT_ROUTER_ERROR",Dg="REDIRECT",Mg="ROUTE_ERROR_RESPONSE";function Ug(u){if(u.startsWith(`${Uh}:${Dg}:{`))try{let r=JSON.parse(u.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function qg(u){if(u.startsWith(`${Uh}:${Mg}:{`))try{let r=JSON.parse(u.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new Rg(r.status,r.statusText,r.data)}catch{}}function Hg(u,{relative:r}={}){Ue(un(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=v.useContext(jt),{hash:f,pathname:m,search:h}=si(u,{relative:r}),x=m;return s!=="/"&&(x=m==="/"?s:ea([s,m])),o.createHref({pathname:x,search:h,hash:f})}function un(){return v.useContext(oi)!=null}function yt(){return Ue(un(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(oi).location}var qh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hh(u){v.useContext(jt).static||v.useLayoutEffect(u)}function Fa(){let{isDataRoute:u}=v.useContext(Gt);return u?Pg():Lg()}function Lg(){Ue(un(),"useNavigate() may be used only in the context of a <Router> component.");let u=v.useContext(nn),{basename:r,navigator:s}=v.useContext(jt),{matches:o}=v.useContext(Gt),{pathname:f}=yt(),m=JSON.stringify(Ys(o)),h=v.useRef(!1);return Hh(()=>{h.current=!0}),v.useCallback((g,p={})=>{if(Yt(h.current,qh),!h.current)return;if(typeof g=="number"){s.go(g);return}let j=Ku(g,JSON.parse(m),f,p.relative==="path");u==null&&r!=="/"&&(j.pathname=j.pathname==="/"?r:ea([r,j.pathname])),(p.replace?s.replace:s.push)(j,p.state,p)},[r,s,m,f,u])}var Bg=v.createContext(null);function Yg(u){let r=v.useContext(Gt).outlet;return v.useMemo(()=>r&&v.createElement(Bg.Provider,{value:u},r),[r,u])}function K0(){let{matches:u}=v.useContext(Gt),r=u[u.length-1];return r?r.params:{}}function si(u,{relative:r}={}){let{matches:s}=v.useContext(Gt),{pathname:o}=yt(),f=JSON.stringify(Ys(s));return v.useMemo(()=>Ku(u,JSON.parse(f),o,r==="path"),[u,f,o,r])}function Gg(u,r){return Lh(u,r)}function Lh(u,r,s){var H;Ue(un(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=v.useContext(jt),{matches:f}=v.useContext(Gt),m=f[f.length-1],h=m?m.params:{},x=m?m.pathname:"/",g=m?m.pathnameBase:"/",p=m&&m.route;{let L=p&&p.path||"";Yh(x,!p||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
+
61
+ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let j=yt(),k;if(r){let L=typeof r=="string"?ln(r):r;Ue(g==="/"||((H=L.pathname)==null?void 0:H.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${L.pathname}" was given in the \`location\` prop.`),k=L}else k=j;let M=k.pathname||"/",X=M;if(g!=="/"){let L=g.replace(/^\//,"").split("/");X="/"+M.replace(/^\//,"").split("/").slice(L.length).join("/")}let B=Ah(u,{pathname:X});Yt(p||B!=null,`No routes matched location "${k.pathname}${k.search}${k.hash}" `),Yt(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${k.pathname}${k.search}${k.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let q=Kg(B&&B.map(L=>Object.assign({},L,{params:Object.assign({},h,L.params),pathname:ea([g,o.encodeLocation?o.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?g:ea([g,o.encodeLocation?o.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),f,s);return r&&q?v.createElement(oi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...k},navigationType:"POP"}},q):q}function Xg(){let u=Ig(),r=jg(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),s=u instanceof Error?u.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},m={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",u),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:m},"ErrorBoundary")," or"," ",v.createElement("code",{style:m},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),s?v.createElement("pre",{style:f},s):null,h)}var Vg=v.createElement(Xg,null),Bh=class extends v.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,r){return r.location!==u.location||r.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:r.error,location:r.location,revalidation:u.revalidation||r.revalidation}}componentDidCatch(u,r){this.props.onError?this.props.onError(u,r):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const s=qg(u.digest);s&&(u=s)}let r=u!==void 0?v.createElement(Gt.Provider,{value:this.props.routeContext},v.createElement(Gs.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?v.createElement(Qg,{error:u},r):r}};Bh.contextType=Cg;var ks=new WeakMap;function Qg({children:u,error:r}){let{basename:s}=v.useContext(jt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let o=Ug(r.digest);if(o){let f=ks.get(r);if(f)throw f;let m=Nh(o.location,s);if(Oh&&!ks.get(r))if(m.isExternal||o.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:o.replace}));throw ks.set(r,h),h}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function Zg({routeContext:u,match:r,children:s}){let o=v.useContext(nn);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(Gt.Provider,{value:u},s)}function Kg(u,r=[],s){let o=s==null?void 0:s.state;if(u==null){if(!o)return null;if(o.errors)u=o.matches;else if(r.length===0&&!o.initialized&&o.matches.length>0)u=o.matches;else return null}let f=u,m=o==null?void 0:o.errors;if(m!=null){let j=f.findIndex(k=>k.route.id&&(m==null?void 0:m[k.route.id])!==void 0);Ue(j>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,j+1))}let h=!1,x=-1;if(s&&o){h=o.renderFallback;for(let j=0;j<f.length;j++){let k=f[j];if((k.route.HydrateFallback||k.route.hydrateFallbackElement)&&(x=j),k.route.id){let{loaderData:M,errors:X}=o,B=k.route.loader&&!M.hasOwnProperty(k.route.id)&&(!X||X[k.route.id]===void 0);if(k.route.lazy||B){s.isStatic&&(h=!0),x>=0?f=f.slice(0,x+1):f=[f[0]];break}}}}let g=s==null?void 0:s.onError,p=o&&g?(j,k)=>{var M,X;g(j,{location:o.location,params:((X=(M=o.matches)==null?void 0:M[0])==null?void 0:X.params)??{},unstable_pattern:Ag(o.matches),errorInfo:k})}:void 0;return f.reduceRight((j,k,M)=>{let X,B=!1,q=null,H=null;o&&(X=m&&k.route.id?m[k.route.id]:void 0,q=k.route.errorElement||Vg,h&&(x<0&&M===0?(Yh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,H=null):x===M&&(B=!0,H=k.route.hydrateFallbackElement||null)));let L=r.concat(f.slice(0,M+1)),I=()=>{let J;return X?J=q:B?J=H:k.route.Component?J=v.createElement(k.route.Component,null):k.route.element?J=k.route.element:J=j,v.createElement(Zg,{match:k,routeContext:{outlet:j,matches:L,isDataRoute:o!=null},children:J})};return o&&(k.route.ErrorBoundary||k.route.errorElement||M===0)?v.createElement(Bh,{location:o.location,revalidation:o.revalidation,component:q,error:X,children:I(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:p}):I()},null)}function Xs(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jg(u){let r=v.useContext(nn);return Ue(r,Xs(u)),r}function $g(u){let r=v.useContext(Ju);return Ue(r,Xs(u)),r}function Wg(u){let r=v.useContext(Gt);return Ue(r,Xs(u)),r}function Vs(u){let r=Wg(u),s=r.matches[r.matches.length-1];return Ue(s.route.id,`${u} can only be used on routes that contain a unique "id"`),s.route.id}function Fg(){return Vs("useRouteId")}function Ig(){var o;let u=v.useContext(Gs),r=$g("useRouteError"),s=Vs("useRouteError");return u!==void 0?u:(o=r.errors)==null?void 0:o[s]}function Pg(){let{router:u}=Jg("useNavigate"),r=Vs("useNavigate"),s=v.useRef(!1);return Hh(()=>{s.current=!0}),v.useCallback(async(f,m={})=>{Yt(s.current,qh),s.current&&(typeof f=="number"?await u.navigate(f):await u.navigate(f,{fromRouteId:r,...m}))},[u,r])}var _h={};function Yh(u,r,s){!r&&!_h[u]&&(_h[u]=!0,Yt(!1,s))}v.memo(ev);function ev({routes:u,future:r,state:s,isStatic:o,onError:f}){return Lh(u,void 0,{state:s,isStatic:o,onError:f})}function ni({to:u,replace:r,state:s,relative:o}){Ue(un(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=v.useContext(jt);Yt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=v.useContext(Gt),{pathname:h}=yt(),x=Fa(),g=Ku(u,Ys(m),h,o==="path"),p=JSON.stringify(g);return v.useEffect(()=>{x(JSON.parse(p),{replace:r,state:s,relative:o})},[x,p,o,r,s]),null}function tv(u){return Yg(u.context)}function xe(u){Ue(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function av({basename:u="/",children:r=null,location:s,navigationType:o="POP",navigator:f,static:m=!1,unstable_useTransitions:h}){Ue(!un(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=u.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:x,navigator:f,static:m,unstable_useTransitions:h,future:{}}),[x,f,m,h]);typeof s=="string"&&(s=ln(s));let{pathname:p="/",search:j="",hash:k="",state:M=null,key:X="default",unstable_mask:B}=s,q=v.useMemo(()=>{let H=Sa(p,x);return H==null?null:{location:{pathname:H,search:j,hash:k,state:M,key:X,unstable_mask:B},navigationType:o}},[x,p,j,k,M,X,o,B]);return Yt(q!=null,`<Router basename="${x}"> is not able to match the URL "${p}${j}${k}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:v.createElement(jt.Provider,{value:g},v.createElement(oi.Provider,{children:r,value:q}))}function lv({children:u,location:r}){return Gg(Cs(u),r)}function Cs(u,r=[]){let s=[];return v.Children.forEach(u,(o,f)=>{if(!v.isValidElement(o))return;let m=[...r,f];if(o.type===v.Fragment){s.push.apply(s,Cs(o.props.children,m));return}Ue(o.type===xe,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ue(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||m.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=Cs(o.props.children,m)),s.push(h)}),s}var qu="get",Hu="application/x-www-form-urlencoded";function $u(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function nv(u){return $u(u)&&u.tagName.toLowerCase()==="button"}function iv(u){return $u(u)&&u.tagName.toLowerCase()==="form"}function uv(u){return $u(u)&&u.tagName.toLowerCase()==="input"}function rv(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function ov(u,r){return u.button===0&&(!r||r==="_self")&&!rv(u)}function Os(u=""){return new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((r,s)=>{let o=u[s];return r.concat(Array.isArray(o)?o.map(f=>[s,f]):[[s,o]])},[]))}function sv(u,r){let s=Os(u);return r&&r.forEach((o,f)=>{s.has(f)||r.getAll(f).forEach(m=>{s.append(f,m)})}),s}var Au=null;function cv(){if(Au===null)try{new FormData(document.createElement("form"),0),Au=!1}catch{Au=!0}return Au}var fv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ws(u){return u!=null&&!fv.has(u)?(Yt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hu}"`),null):u}function dv(u,r){let s,o,f,m,h;if(iv(u)){let x=u.getAttribute("action");o=x?Sa(x,r):null,s=u.getAttribute("method")||qu,f=ws(u.getAttribute("enctype"))||Hu,m=new FormData(u)}else if(nv(u)||uv(u)&&(u.type==="submit"||u.type==="image")){let x=u.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=u.getAttribute("formaction")||x.getAttribute("action");if(o=g?Sa(g,r):null,s=u.getAttribute("formmethod")||x.getAttribute("method")||qu,f=ws(u.getAttribute("formenctype"))||ws(x.getAttribute("enctype"))||Hu,m=new FormData(x,u),!cv()){let{name:p,type:j,value:k}=u;if(j==="image"){let M=p?`${p}.`:"";m.append(`${M}x`,"0"),m.append(`${M}y`,"0")}else p&&m.append(p,k)}}else{if($u(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=qu,o=null,f=Hu,h=u}return m&&f==="text/plain"&&(h=m,m=void 0),{action:o,method:s.toLowerCase(),encType:f,formData:m,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qs(u,r){if(u===!1||u===null||typeof u>"u")throw new Error(r)}function mv(u,r,s,o){let f=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${o}`:f.pathname=`${f.pathname}.${o}`:f.pathname==="/"?f.pathname=`_root.${o}`:r&&Sa(f.pathname,r)==="/"?f.pathname=`${r.replace(/\/$/,"")}/_root.${o}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${o}`,f}async function hv(u,r){if(u.id in r)return r[u.id];try{let s=await import(u.module);return r[u.id]=s,s}catch(s){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pv(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function _v(u,r,s){let o=await Promise.all(u.map(async f=>{let m=r.routes[f.route.id];if(m){let h=await hv(m,s);return h.links?h.links():[]}return[]}));return bv(o.flat(1).filter(pv).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function yh(u,r,s,o,f,m){let h=(g,p)=>s[p]?g.route.id!==s[p].route.id:!0,x=(g,p)=>{var j;return s[p].pathname!==g.pathname||((j=s[p].route.path)==null?void 0:j.endsWith("*"))&&s[p].params["*"]!==g.params["*"]};return m==="assets"?r.filter((g,p)=>h(g,p)||x(g,p)):m==="data"?r.filter((g,p)=>{var k;let j=o.routes[g.route.id];if(!j||!j.hasLoader)return!1;if(h(g,p)||x(g,p))return!0;if(g.route.shouldRevalidate){let M=g.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((k=s[0])==null?void 0:k.params)||{},nextUrl:new URL(u,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof M=="boolean")return M}return!0}):[]}function yv(u,r,{includeHydrateFallback:s}={}){return gv(u.map(o=>{let f=r.routes[o.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function gv(u){return[...new Set(u)]}function vv(u){let r={},s=Object.keys(u).sort();for(let o of s)r[o]=u[o];return r}function bv(u,r){let s=new Set;return new Set(r),u.reduce((o,f)=>{let m=JSON.stringify(vv(f));return s.has(m)||(s.add(m),o.push({key:m,link:f})),o},[])}function Gh(){let u=v.useContext(nn);return Qs(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function xv(){let u=v.useContext(Ju);return Qs(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Zs=v.createContext(void 0);Zs.displayName="FrameworkContext";function Xh(){let u=v.useContext(Zs);return Qs(u,"You must render this element inside a <HydratedRouter> element"),u}function Sv(u,r){let s=v.useContext(Zs),[o,f]=v.useState(!1),[m,h]=v.useState(!1),{onFocus:x,onBlur:g,onMouseEnter:p,onMouseLeave:j,onTouchStart:k}=r,M=v.useRef(null);v.useEffect(()=>{if(u==="render"&&h(!0),u==="viewport"){let q=L=>{L.forEach(I=>{h(I.isIntersecting)})},H=new IntersectionObserver(q,{threshold:.5});return M.current&&H.observe(M.current),()=>{H.disconnect()}}},[u]),v.useEffect(()=>{if(o){let q=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(q)}}},[o]);let X=()=>{f(!0)},B=()=>{f(!1),h(!1)};return s?u!=="intent"?[m,M,{}]:[m,M,{onFocus:ai(x,X),onBlur:ai(g,B),onMouseEnter:ai(p,X),onMouseLeave:ai(j,B),onTouchStart:ai(k,X)}]:[!1,M,{}]}function ai(u,r){return s=>{u&&u(s),s.defaultPrevented||r(s)}}function Ev({page:u,...r}){let{router:s}=Gh(),o=v.useMemo(()=>Ah(s.routes,u,s.basename),[s.routes,u,s.basename]);return o?v.createElement(wv,{page:u,matches:o,...r}):null}function kv(u){let{manifest:r,routeModules:s}=Xh(),[o,f]=v.useState([]);return v.useEffect(()=>{let m=!1;return _v(u,r,s).then(h=>{m||f(h)}),()=>{m=!0}},[u,r,s]),o}function wv({page:u,matches:r,...s}){let o=yt(),{future:f,manifest:m,routeModules:h}=Xh(),{basename:x}=Gh(),{loaderData:g,matches:p}=xv(),j=v.useMemo(()=>yh(u,r,p,m,o,"data"),[u,r,p,m,o]),k=v.useMemo(()=>yh(u,r,p,m,o,"assets"),[u,r,p,m,o]),M=v.useMemo(()=>{if(u===o.pathname+o.search+o.hash)return[];let q=new Set,H=!1;if(r.forEach(I=>{var he;let J=m.routes[I.route.id];!J||!J.hasLoader||(!j.some(pe=>pe.route.id===I.route.id)&&I.route.id in g&&((he=h[I.route.id])!=null&&he.shouldRevalidate)||J.hasClientLoader?H=!0:q.add(I.route.id))}),q.size===0)return[];let L=mv(u,x,f.unstable_trailingSlashAwareDataRequests,"data");return H&&q.size>0&&L.searchParams.set("_routes",r.filter(I=>q.has(I.route.id)).map(I=>I.route.id).join(",")),[L.pathname+L.search]},[x,f.unstable_trailingSlashAwareDataRequests,g,o,m,j,r,u,h]),X=v.useMemo(()=>yv(k,m),[k,m]),B=kv(k);return v.createElement(v.Fragment,null,M.map(q=>v.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...s})),X.map(q=>v.createElement("link",{key:q,rel:"modulepreload",href:q,...s})),B.map(({key:q,link:H})=>v.createElement("link",{key:q,nonce:s.nonce,...H,crossOrigin:H.crossOrigin??s.crossOrigin})))}function Tv(...u){return r=>{u.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var Rv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rv&&(window.__reactRouterVersion="7.13.1")}catch{}function jv({basename:u,children:r,unstable_useTransitions:s,window:o}){let f=v.useRef();f.current==null&&(f.current=ng({window:o,v5Compat:!0}));let m=f.current,[h,x]=v.useState({action:m.action,location:m.location}),g=v.useCallback(p=>{s===!1?x(p):v.startTransition(()=>x(p))},[s]);return v.useLayoutEffect(()=>m.listen(g),[m,g]),v.createElement(av,{basename:u,children:r,location:h.location,navigationType:h.action,navigator:m,unstable_useTransitions:s})}var Vh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qh=v.forwardRef(function({onClick:r,discover:s="render",prefetch:o="none",relative:f,reloadDocument:m,replace:h,unstable_mask:x,state:g,target:p,to:j,preventScrollReset:k,viewTransition:M,unstable_defaultShouldRevalidate:X,...B},q){let{basename:H,navigator:L,unstable_useTransitions:I}=v.useContext(jt),J=typeof j=="string"&&Vh.test(j),he=Nh(j,H);j=he.to;let pe=Hg(j,{relative:f}),de=yt(),W=null;if(x){let De=Ku(x,[],de.unstable_mask?de.unstable_mask.pathname:"/",!0);H!=="/"&&(De.pathname=De.pathname==="/"?H:ea([H,De.pathname])),W=L.createHref(De)}let[$,ue,Pe]=Sv(o,B),Je=Cv(j,{replace:h,unstable_mask:x,state:g,target:p,preventScrollReset:k,relative:f,viewTransition:M,unstable_defaultShouldRevalidate:X,unstable_useTransitions:I});function qe(De){r&&r(De),De.defaultPrevented||Je(De)}let At=!(he.isExternal||m),rt=v.createElement("a",{...B,...Pe,href:(At?W:void 0)||he.absoluteURL||pe,onClick:At?qe:r,ref:Tv(q,ue),target:p,"data-discover":!J&&s==="render"?"true":void 0});return $&&!J?v.createElement(v.Fragment,null,rt,v.createElement(Ev,{page:pe})):rt});Qh.displayName="Link";var Ks=v.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:o="",end:f=!1,style:m,to:h,viewTransition:x,children:g,...p},j){let k=si(h,{relative:p.relative}),M=yt(),X=v.useContext(Ju),{navigator:B,basename:q}=v.useContext(jt),H=X!=null&&Uv(k)&&x===!0,L=B.encodeLocation?B.encodeLocation(k).pathname:k.pathname,I=M.pathname,J=X&&X.navigation&&X.navigation.location?X.navigation.location.pathname:null;s||(I=I.toLowerCase(),J=J?J.toLowerCase():null,L=L.toLowerCase()),J&&q&&(J=Sa(J,q)||J);const he=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let pe=I===L||!f&&I.startsWith(L)&&I.charAt(he)==="/",de=J!=null&&(J===L||!f&&J.startsWith(L)&&J.charAt(L.length)==="/"),W={isActive:pe,isPending:de,isTransitioning:H},$=pe?r:void 0,ue;typeof o=="function"?ue=o(W):ue=[o,pe?"active":null,de?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let Pe=typeof m=="function"?m(W):m;return v.createElement(Qh,{...p,"aria-current":$,className:ue,ref:j,style:Pe,to:h,viewTransition:x},typeof g=="function"?g(W):g)});Ks.displayName="NavLink";var Av=v.forwardRef(({discover:u="render",fetcherKey:r,navigate:s,reloadDocument:o,replace:f,state:m,method:h=qu,action:x,onSubmit:g,relative:p,preventScrollReset:j,viewTransition:k,unstable_defaultShouldRevalidate:M,...X},B)=>{let{unstable_useTransitions:q}=v.useContext(jt),H=Dv(),L=Mv(x,{relative:p}),I=h.toLowerCase()==="get"?"get":"post",J=typeof x=="string"&&Vh.test(x),he=pe=>{if(g&&g(pe),pe.defaultPrevented)return;pe.preventDefault();let de=pe.nativeEvent.submitter,W=(de==null?void 0:de.getAttribute("formmethod"))||h,$=()=>H(de||pe.currentTarget,{fetcherKey:r,method:W,navigate:s,replace:f,state:m,relative:p,preventScrollReset:j,viewTransition:k,unstable_defaultShouldRevalidate:M});q&&s!==!1?v.startTransition(()=>$()):$()};return v.createElement("form",{ref:B,method:I,action:L,onSubmit:o?g:he,...X,"data-discover":!J&&u==="render"?"true":void 0})});Av.displayName="Form";function zv(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zh(u){let r=v.useContext(nn);return Ue(r,zv(u)),r}function Cv(u,{target:r,replace:s,unstable_mask:o,state:f,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:g,unstable_useTransitions:p}={}){let j=Fa(),k=yt(),M=si(u,{relative:h});return v.useCallback(X=>{if(ov(X,r)){X.preventDefault();let B=s!==void 0?s:ri(k)===ri(M),q=()=>j(u,{replace:B,unstable_mask:o,state:f,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:g});p?v.startTransition(()=>q()):q()}},[k,j,M,s,o,f,r,u,m,h,x,g,p])}function J0(u){Yt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=v.useRef(Os(u)),s=v.useRef(!1),o=yt(),f=v.useMemo(()=>sv(o.search,s.current?null:r.current),[o.search]),m=Fa(),h=v.useCallback((x,g)=>{const p=Os(typeof x=="function"?x(new URLSearchParams(f)):x);s.current=!0,m("?"+p,g)},[m,f]);return[f,h]}var Ov=0,Nv=()=>`__${String(++Ov)}__`;function Dv(){let{router:u}=Zh("useSubmit"),{basename:r}=v.useContext(jt),s=Fg(),o=u.fetch,f=u.navigate;return v.useCallback(async(m,h={})=>{let{action:x,method:g,encType:p,formData:j,body:k}=dv(m,r);if(h.navigate===!1){let M=h.fetcherKey||Nv();await o(M,s,h.action||x,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:j,body:k,formMethod:h.method||g,formEncType:h.encType||p,flushSync:h.flushSync})}else await f(h.action||x,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:j,body:k,formMethod:h.method||g,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:s,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,f,r,s])}function Mv(u,{relative:r}={}){let{basename:s}=v.useContext(jt),o=v.useContext(Gt);Ue(o,"useFormAction must be used inside a RouteContext");let[f]=o.matches.slice(-1),m={...si(u||".",{relative:r})},h=yt();if(u==null){m.search=h.search;let x=new URLSearchParams(m.search),g=x.getAll("index");if(g.some(j=>j==="")){x.delete("index"),g.filter(k=>k).forEach(k=>x.append("index",k));let j=x.toString();m.search=j?`?${j}`:""}}return(!u||u===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(m.pathname=m.pathname==="/"?s:ea([s,m.pathname])),ri(m)}function Uv(u,{relative:r}={}){let s=v.useContext(Mh);Ue(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Zh("useViewTransitionState"),f=si(u,{relative:r});if(!s.isTransitioning)return!1;let m=Sa(s.currentLocation.pathname,o)||s.currentLocation.pathname,h=Sa(s.nextLocation.pathname,o)||s.nextLocation.pathname;return Vu(f.pathname,h)!=null||Vu(f.pathname,m)!=null}/**
62
+ * @license lucide-react v0.469.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const qv=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kh=(...u)=>u.filter((r,s,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===s).join(" ").trim();/**
67
+ * @license lucide-react v0.469.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */var Hv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
+ * @license lucide-react v0.469.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const Lv=v.forwardRef(({color:u="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:f="",children:m,iconNode:h,...x},g)=>v.createElement("svg",{ref:g,...Hv,width:r,height:r,stroke:u,strokeWidth:o?Number(s)*24/Number(r):s,className:Kh("lucide",f),...x},[...h.map(([p,j])=>v.createElement(p,j)),...Array.isArray(m)?m:[m]]));/**
77
+ * @license lucide-react v0.469.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const je=(u,r)=>{const s=v.forwardRef(({className:o,...f},m)=>v.createElement(Lv,{ref:m,iconNode:r,className:Kh(`lucide-${qv(u)}`,o),...f}));return s.displayName=`${u}`,s};/**
82
+ * @license lucide-react v0.469.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Bv=je("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
87
+ * @license lucide-react v0.469.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const Yv=je("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
92
+ * @license lucide-react v0.469.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const Gv=je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
97
+ * @license lucide-react v0.469.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const Xv=je("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);/**
102
+ * @license lucide-react v0.469.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Vv=je("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);/**
107
+ * @license lucide-react v0.469.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const Qv=je("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
112
+ * @license lucide-react v0.469.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const Zv=je("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
117
+ * @license lucide-react v0.469.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Kv=je("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
122
+ * @license lucide-react v0.469.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const Jv=je("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/**
127
+ * @license lucide-react v0.469.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const $v=je("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/**
132
+ * @license lucide-react v0.469.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Wv=je("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
137
+ * @license lucide-react v0.469.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const Fv=je("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
142
+ * @license lucide-react v0.469.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const Jh=je("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
147
+ * @license lucide-react v0.469.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const $h=je("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
152
+ * @license lucide-react v0.469.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const Iv=je("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
157
+ * @license lucide-react v0.469.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const Pv=je("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
162
+ * @license lucide-react v0.469.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const eb=je("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
167
+ * @license lucide-react v0.469.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const tb=je("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
172
+ * @license lucide-react v0.469.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const Wh=je("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
177
+ * @license lucide-react v0.469.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const Fh=je("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
182
+ * @license lucide-react v0.469.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const ab=je("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
187
+ * @license lucide-react v0.469.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const lb=je("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
192
+ * @license lucide-react v0.469.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const nb=je("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
197
+ * @license lucide-react v0.469.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const ib=je("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
202
+ * @license lucide-react v0.469.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const Js=je("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
207
+ * @license lucide-react v0.469.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const Ih=je("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
212
+ * @license lucide-react v0.469.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const ub=je("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
217
+ * @license lucide-react v0.469.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const rb=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gh=u=>{let r;const s=new Set,o=(p,j)=>{const k=typeof p=="function"?p(r):p;if(!Object.is(k,r)){const M=r;r=j??(typeof k!="object"||k===null)?k:Object.assign({},r,k),s.forEach(X=>X(r,M))}},f=()=>r,x={setState:o,getState:f,getInitialState:()=>g,subscribe:p=>(s.add(p),()=>s.delete(p))},g=r=u(o,f,x);return x},ob=(u=>u?gh(u):gh),sb=u=>u;function cb(u,r=sb){const s=ju.useSyncExternalStore(u.subscribe,ju.useCallback(()=>r(u.getState()),[u,r]),ju.useCallback(()=>r(u.getInitialState()),[u,r]));return ju.useDebugValue(s),s}const vh=u=>{const r=ob(u),s=o=>cb(r,o);return Object.assign(s,r),s},Wu=(u=>u?vh(u):vh),zu="overlord-access-token",Cu="overlord-refresh-token",We={getAccessToken(){return localStorage.getItem(zu)},setAccessToken(u){localStorage.setItem(zu,u)},getRefreshToken(){return localStorage.getItem(Cu)},setRefreshToken(u){localStorage.setItem(Cu,u)},setTokens(u,r){localStorage.setItem(zu,u),localStorage.setItem(Cu,r)},clearTokens(){localStorage.removeItem(zu),localStorage.removeItem(Cu)},parseToken(u){try{const r=u.split(".")[1];return JSON.parse(atob(r))}catch{return null}},hasScope(u,r){const s=We.parseToken(u);return s?s.scope===r:!1},isExpired(u){const r=We.parseToken(u);return!r||typeof r.exp!="number"?!0:Date.now()/1e3>r.exp-30}};function Ts(u){const r=We.parseToken(u);if(!r)return null;const s=r.name??"";return{id:r.sub,username:s,display_name:s,role:r.role}}const xa=Wu((u,r)=>({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!1,initializing:!0,initialize:()=>{const s=We.getAccessToken();s&&!We.isExpired(s)?u({accessToken:s,user:Ts(s),requireTotpSetup:We.hasScope(s,"totp_setup"),initializing:!1}):We.getRefreshToken()?r().refresh().catch(()=>{We.clearTokens()}).finally(()=>{u({initializing:!1})}):u({initializing:!1})},login:async s=>{var m;const o=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok){const h=await o.json().catch(()=>({message:"Login failed"})),x=((m=h.error)==null?void 0:m.message)??h.message??"Login failed";throw new Error(x)}const f=await o.json();if(f.totpSetup){We.setAccessToken(f.accessToken),u({accessToken:f.accessToken,user:null,requireTotpSetup:!0});return}We.setTokens(f.accessToken,f.refreshToken),u({accessToken:f.accessToken,user:Ts(f.accessToken),requireTotpSetup:!1,sessionExpired:!1})},logout:()=>{const s=We.getRefreshToken();s&&fetch("/api/auth/logout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:s})}).catch(()=>{}),We.clearTokens(),u({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!1})},refresh:(()=>{let s=null;return async()=>s||(s=(async()=>{const o=We.getRefreshToken();if(!o)throw We.clearTokens(),u({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!0}),new Error("No refresh token");const f=await fetch("/api/auth/refresh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:o})});if(!f.ok)throw We.clearTokens(),u({accessToken:null,user:null,requireTotpSetup:!1,sessionExpired:!0}),new Error("Refresh failed");const m=await f.json();We.setTokens(m.accessToken,m.refreshToken),u({accessToken:m.accessToken,user:Ts(m.accessToken)})})().finally(()=>{s=null}),s)})(),setSessionExpired:s=>{u({sessionExpired:s})}})),$0={QUEUED:"QUEUED",ASSIGNED:"ASSIGNED",RUNNING:"RUNNING",SUSPENDED:"SUSPENDED",COMPLETED:"COMPLETED",FAILED:"FAILED",CANCELLED:"CANCELLED"},W0={ONLINE:"online",OFFLINE:"offline",DRAINING:"draining",DECOMMISSIONED:"decommissioned"},Ph={DEVELOPER:"developer",LEAD:"lead",ADMIN:"admin"},F0={MAINTAINER:"maintainer",MEMBER:"member"},I0={CLAUDE:"claude",CURSOR:"cursor",CODEX:"codex",CUSTOM:"custom"},P0={ACTIVE:"active",USED:"used",REVOKED:"revoked",EXPIRED:"expired"},e1={GITLAB:"gitlab",GITHUB:"github",GITEA:"gitea"},t1={ACTIVE:"active",DISABLED:"disabled"},a1={ACTIVE:"active"},l1={IDLE:"IDLE",STARTING:"STARTING",CONNECTED:"CONNECTED",EXPIRED:"EXPIRED",CLOSING:"CLOSING",CLOSED:"CLOSED"};function fb(){return xa(u=>{var r;return((r=u.user)==null?void 0:r.role)===Ph.ADMIN})??!1}const ep="overlord-sidebar-collapsed";function db(){try{return localStorage.getItem(ep)==="true"}catch{return!1}}const mb=Wu((u,r)=>({sidebarCollapsed:db(),toggleSidebar:()=>{const s=!r().sidebarCollapsed;try{localStorage.setItem(ep,String(s))}catch{}u({sidebarCollapsed:s})}}));class hb{constructor(){Xe(this,"ws",null);Xe(this,"reconnectAttempts",0);Xe(this,"maxReconnectAttempts",15);Xe(this,"reconnectTimer",null);Xe(this,"disposed",!1);Xe(this,"authenticated",!1);Xe(this,"eventHandlers",new Set);Xe(this,"statusHandlers",new Set)}onEvent(r){return this.eventHandlers.add(r),()=>this.eventHandlers.delete(r)}onStatus(r){return this.statusHandlers.add(r),()=>this.statusHandlers.delete(r)}get isConnected(){var r;return this.authenticated&&((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN}connect(){var f,m;if(this.disposed||((f=this.ws)==null?void 0:f.readyState)===WebSocket.OPEN||((m=this.ws)==null?void 0:m.readyState)===WebSocket.CONNECTING)return;const r=We.getAccessToken();if(!r||We.isExpired(r))return;const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/events`;this.notifyStatus("connecting"),this.authenticated=!1,this.ws=new WebSocket(o),this.ws.onopen=()=>{var x,g;const h=We.getAccessToken();h?(x=this.ws)==null||x.send(JSON.stringify({type:"auth",token:h})):(g=this.ws)==null||g.close()},this.ws.onmessage=h=>{var x;if(typeof h.data=="string")try{const g=JSON.parse(h.data);if(g.type==="auth_ok"){this.authenticated=!0,this.reconnectAttempts=0,this.notifyStatus("connected");return}if(g.type==="auth_error"){(x=this.ws)==null||x.close();return}if(g.type==="event")for(const p of this.eventHandlers)try{p(g)}catch{}}catch{}},this.ws.onclose=()=>{this.authenticated=!1,this.notifyStatus("disconnected"),this.scheduleReconnect()},this.ws.onerror=()=>{var h;(h=this.ws)==null||h.close()}}disconnect(){var r;this.clearReconnectTimer(),this.authenticated=!1,(r=this.ws)==null||r.close(),this.ws=null}dispose(){this.disposed=!0,this.disconnect(),this.eventHandlers.clear(),this.statusHandlers.clear()}reconnect(){this.disconnect(),this.reconnectAttempts=0,this.connect()}scheduleReconnect(){if(this.disposed||this.reconnectAttempts>=this.maxReconnectAttempts)return;const r=Math.min(1e3*2**this.reconnectAttempts,3e4);this.reconnectAttempts++,this.reconnectTimer=setTimeout(()=>{this.disposed||this.connect()},r)}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}notifyStatus(r){for(const s of this.statusHandlers)try{s(r)}catch{}}}const Ou=new hb,pb=Wu(u=>({status:"disconnected",lastEvent:null,eventSeq:0,taskSeq:0,workerSeq:0,init:()=>{const r=Ou.onEvent(o=>{const f=o.event==="task_status_changed"||o.event==="task_created",m=o.event==="worker_status_changed";u(h=>({lastEvent:o,eventSeq:h.eventSeq+1,...f&&{taskSeq:h.taskSeq+1},...m&&{workerSeq:h.workerSeq+1}}))}),s=Ou.onStatus(o=>{u({status:o})});return Ou.connect(),()=>{r(),s(),Ou.disconnect()}}})),tp="overlord-theme";function _b(){try{const u=localStorage.getItem(tp);if(u==="light"||u==="dark"||u==="system")return u}catch{}return"dark"}function bh(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const ap=Wu(u=>{const r=_b(),s=r==="system"?bh():r;return{theme:r,resolved:s,setTheme:o=>{localStorage.setItem(tp,o);const f=o==="system"?bh():o;u({theme:o,resolved:f})},setResolved:o=>{u({resolved:o})}}}),yb={common:{cancel:"cancel",confirm:"confirm",save:"save",delete:"delete",edit:"edit",create:"create",copy:"copy",copied:"copied",close:"close",back:"back",back_to_site:"back to site",go_back:"go_back",go_home:"go_home",dismiss:"dismiss",retry:"retry",loading:"// loading...",processing:"processing...",creating:"creating...",saving:"saving...",updating:"updating...",verifying:"verifying...",signing_in:"signing in...",just_now:"just now",never:"never",previous:"previous",next:"next",error:"error",success:"success",failed:"failed",active:"active",inactive:"inactive",enabled:"enabled",disabled:"disabled",showing_entries:"showing {start}-{end} of {total}",no_results:"no results found",runtime_error:"// runtime_error",an_unexpected_error_occurred:"an unexpected error occurred",reload:"reload",not_found:"404",page_not_found:"// page_not_found",the_page_does_not_exist:"the page you are looking for does not exist or has been moved.",not_found_terminal_error:"error: requested not found - page does not exist",not_set:"not set",view_all:"view_all",discard:"discard",save_changes:"save_changes",add:"add",remove:"remove",search:"search",actions:"actions",name:"name",status:"status",role:"role",description:"description",type:"type",created_at:"created_at",ago:"{time} ago",m_ago:"{n}m ago",h_ago:"{n}h ago",d_ago:"{n}d ago",navigation:"// navigation",docs_section:"// docs",admin_section:"// admin",overlord:"overlord",logout:"logout",logout_title:"// logout",logout_message:"are you sure you want to log out?",log_out:"log out",profile:"profile",search_placeholder:"search",search_input_placeholder:"search tasks, workers, projects...",no_search_results:'// no results for "{query}"',navigate_hint:"navigate",select_hint:"select",close_hint:"close",notifications:"notifications",mark_all_read:"mark all read",no_notifications:"// no notifications",mark_as_read:"mark as read",switch_to_light:"switch to light mode",switch_to_dark:"switch to dark mode",light_mode:"light mode",dark_mode:"dark mode",dismiss_notification:"dismiss",breadcrumb_terminal:"terminal",breadcrumb_terminal_sub:"active sessions",breadcrumb_dashboard:"dashboard",breadcrumb_dashboard_sub:"active overview",breadcrumb_tasks:"tasks",breadcrumb_tasks_sub:"queue management",breadcrumb_workers:"workers",breadcrumb_workers_sub:"fleet status",breadcrumb_projects:"projects",breadcrumb_projects_sub:"repository index",breadcrumb_admin:"admin",breadcrumb_admin_sub:"system control",breadcrumb_profile:"profile",breadcrumb_profile_sub:"user settings",breadcrumb_access_tokens:"access_tokens",breadcrumb_access_tokens_sub:"personal api tokens",breadcrumb_docs:"docs",breadcrumb_docs_sub:"documentation",breadcrumb_docs_cli:"docs",breadcrumb_docs_cli_sub:"cli",breadcrumb_docs_api:"docs",breadcrumb_docs_api_sub:"api",breadcrumb_docs_skill:"docs",breadcrumb_docs_skill_sub:"skill",error_default_title:"something went wrong",error_default_message:"an unexpected error occurred. please try again."},auth:{sign_in:"sign in",username:"username",enter_username:"enter username",password:"password",enter_password:"enter password",ai_powered_development_system:"// ai-powered development system",username_and_password_required:"username and password are required.",login_failed:"login failed",invalid_totp_code:"invalid totp code",two_factor_verification:"// 2fa verification",enter_totp_code:"enter your totp code",please_enter_valid_6_digit_code:"please enter a valid 6-digit code.",session_expired:"session_expired",session_expired_message:"// your session has expired. please log in again.",go_to_login:"go_to_login",totp_setup_title:"2fa_setup",totp_setup_subtitle:"// scan the qr code with your authenticator app",scan_with_authenticator:"scan this qr code with your authenticator app (google authenticator, authy, etc.)",manual_entry_key:"manual_entry_key",enter_verification_code:"enter the 6-digit verification code from your authenticator app",verification_code:"verification code",enter_6_digit_code:"enter 6-digit code",verify_and_enable:"verify_and_enable",totp_setup_complete:"2fa setup complete",totp_setup_complete_login_again:"2fa setup complete! please log in again.",totp_setup_failed:"verification failed. please try again.",totp_setup_footer:"// you must complete this setup before accessing the application",totp_manual_entry:"// or enter this key manually",verify:"verify",initializing:"// initializing...",failed_to_init_totp:"failed to initialize totp setup"},dashboard:{title:"dashboard",subtitle:"// system overview",active_tasks:"active_tasks",queued_tasks:"queued_tasks",online_workers:"online_workers",completed_today:"completed_today",task_success_rate:"> task_success_rate",last_7_days:"last 7 days",recent_tasks:"> recent_tasks",no_tasks_yet:"// no tasks yet",worker_status:"> worker_status",no_workers_registered:"// no workers registered",recent_activity:"> recent_activity",no_recent_activity:"// no recent activity",daily_breakdown_not_available:"// daily breakdown not available",slots:"slots",online:"online",idle:"idle",offline:"offline"},tasks:{title:"tasks",subtitle:"// queue management",create_task:"create_task",new_task:"new_task",task_description:"task_description",describe_task_placeholder:"describe the development task in detail...",project:"project",select_project:"select project...",target_worker:"target_worker (optional)",any_able:"any able",assign_developer:"assign_developer (admin only)",select_developer:"select developer...",search_tasks:"search_tasks...",id:"id",description_col:"description",status_col:"status",project_col:"project",assignee:"assignee",worker:"worker",time:"time",stage:"stage",no_tasks_found:"no_tasks_found",try_adjusting_search:"try adjusting your search query",create_first_task:"create your first task to get started",tab_all:"all",tab_running:"running",tab_queued:"queued",tab_completed:"completed",tab_failed:"failed",tab_cancelled:"cancelled",status_queued:"queued",status_assigned:"assigned",status_running:"running",status_suspended:"suspended",status_completed:"completed",status_failed:"failed",status_cancelled:"cancelled",similar_task_exists:"a similar task already exists.",confirm_create_similar:"are you sure you want to create this task?",view_existing:"view_existing",force_create:"force_create",cancel_task:"cancel",retry_task:"retry",cursor_tunnel:"cursor_tunnel",skip_stage:"skip stage",take_over:"take_over",release_control:"release_control",connected:"connected",disconnected:"disconnected",connecting:"connecting",terminal:"terminal",pipeline_tab:"pipeline",logs:"logs",task_not_found:"// task_not_found",task_does_not_exist:"this task does not exist or has been deleted.",back_to_tasks:"back_to_tasks",task_detail_subtitle:"#{id} {desc}",cancel_task_title:"cancel_task",task_cancelled:"task cancelled.",failed_to_cancel_task:"failed to cancel task.",task_retried:"task has been retried.",failed_to_retry_task:"failed to retry task.",retry_mr_title:"retry_mr",retry_mr_confirm:"retry creating the merge request for task #{id}?",mr_retry_submitted:"mr retry submitted.",failed_to_retry_mr:"failed to retry mr.",activity_log:"> activity_log",pipeline_section:"> pipeline",no_pipeline:"// no pipeline configured",no_activity:"// no activity yet",confirm_stage:"confirm_stage",confirm_stage_message:'confirm execution of stage "{name}"? this will proceed with the pipeline.',stage_confirmed:"stage confirmed.",failed_to_confirm_stage:"failed to confirm stage.",loading_task:"// loading task...",task_suspended_banner:"// task suspended — waiting for user confirmation",pending_confirmation:"> pending_confirmation",pipeline_requires_confirmation:"the pipeline requires confirmation before proceeding.",confirm_and_proceed:"confirm_and_proceed",confirm_failed:"failed to confirm stage",reject:"reject",pty_terminal:"// pty terminal",view_terminal:"switch to terminal tab",restore_auto:"restore auto",requesting_takeover:"requesting...",pipeline_stages:"// pipeline stages",task_info:"> task_info",stage_timeline:"> stage_timeline",workspace_section:"> workspace",no_worker_assigned:"// no worker assigned",no_output:"// no output",pty_output:"> pty_output",stage_progress:"> stage_progress",task_logs:"> task_logs",search_logs:"search logs...",no_log_entries:"// no log entries",prev:"prev",cursor_tunnel_section:"> cursor_tunnel",auto_pipeline:"auto_pipeline",auto_mode:"auto_mode",manual_takeover:"manual_takeover",takeover_denied:"takeover_denied",requesting_takeover_ellipsis:"requesting_takeover...",take_over_label:"take over",release_label:"release",create_task_page_title:"// create_task",create_task_page_subtitle:"// submit a new task for processing",form_project_label:"project",form_description_label:"description",form_description_placeholder:"describe the task for the ai agent...",form_worker_preference:"worker_preference",form_worker_placeholder:"optional: worker id or name (--on)",form_worker_hint:"leave empty for automatic worker selection.",form_agent_type:"agent_type",form_agent_type_placeholder:"default (from project config)",form_select_project:"select a project",form_create_task:"create task",project_and_description_required:"project and description are required.",failed_to_create_task:"failed to create task.",tunnel_idle:"idle",tunnel_starting:"starting...",tunnel_connected:"connected",tunnel_expired:"expired",tunnel_closing:"closing...",tunnel_start:"start",tunnel_open_in_cursor:"open_in_cursor",tunnel_header:"> cursor_tunnel",tunnel_copied:"// copied to clipboard",tunnel_waiting:"// waiting for connection url...",tunnel_start_button:"> start_tunnel",tunnel_starting_button:"// starting...",tunnel_stopping:"// stopping...",tunnel_cancel:"> cancel",tunnel_open_cursor:"> open_in_cursor",tunnel_open_vscode:"> open_in_vscode",tunnel_stop:"> stop_tunnel",tunnel_restart:"> restart_tunnel",tunnel_copy_url:"copy url",tunnel_expires_hm:"expires in {h}h {m}m",tunnel_expires_m:"expires in {m}m",dedup_title:"> similar_task_exists",dedup_description:"// a similar task was found that may already address your request",dedup_create_anyway:"create anyway",stage_choose_option:"// choose an option",stage_your_response:"your_response",stage_type_answer:"type your answer...",stage_submitting:"submitting...",stage_continue:"continue",stage_submit:"submit",cancel_task_message:"are you sure you want to cancel task #{id}? this will terminate the running agent and cannot be undone.",cancel_task_confirm_label:"cancel task",retry_title:"retry_task",retry_confirm_label:"retry",retry_message_with_mr:"task #{id} has an existing mr ({url}). retrying will create a new attempt on the same branch. continue?",retry_message_without_mr:"are you sure you want to retry task #{id}? this will create a new execution attempt."},workers:{title:"workers",subtitle:"// fleet status",fleet:"fleet",setup_guide:"setup_guide",all_statuses:"all",register_worker:"register_worker",no_workers_found:"no_workers_found",no_workers_registered:"no workers have registered yet",try_changing_status_filter:"try changing the status filter",view_setup_guide:"view_setup_guide",online:"online",offline:"offline",draining:"draining",cpu:"cpu",mem:"mem",disk:"disk",tasks_slots:"tasks: {active}/{max} slots",back_to_workers:"back_to_workers",drain:"drain",undrain:"undrain",last_heartbeat:"last_heartbeat: {time}",resource_usage:"> resource_usage",connection_info:"> connection_info",capabilities:"> capabilities",current_tasks:"> current_tasks",no_capabilities:"// no capabilities reported",no_running_tasks:"// no running tasks",host:"host",port:"port",os:"os",cpu_model:"cpu_model",cpu_cores:"cpu_cores",memory:"memory",total_slots:"total_slots",confirm_drain:"drain_worker",confirm_drain_message:'drain worker "{name}"? it will finish current tasks but accept no new ones.',worker_drained:"worker drain initiated.",worker_undrained:"worker undrain initiated.",failed_to_update_worker:"failed to update worker status.",worker_setup_title:"worker_setup_guide",worker_setup_subtitle:"// register a new worker with overlord",step_1_title:"01. generate a registration token",step_1_desc:"generate a one-time registration token from the admin panel.",step_2_title:"02. install the worker cli",step_2_desc:"install the overlord worker cli on the target worker.",step_3_title:"03. register the worker",step_3_desc:"run the register command with your token and server url.",step_4_title:"04. start the worker",step_4_desc:"start the worker daemon. it will connect to overlord and begin accepting tasks.",generate_token:"generate_token",worker_token_modal_title:"worker_registration_token",worker_token_modal_message:"// copy this token now. it will not be shown again.",loading_worker:"// loading worker...",worker_not_found:"// worker not found",draining_warning:"// this worker is draining — no new tasks will be assigned",draining_active_tasks:"active tasks will continue to run until completion",active_tasks:"> active_tasks",no_active_tasks:"// no active tasks on this worker",worker_info:"> worker_info",unknown:"unknown",n_a:"n/a",id:"id",description:"description",stage:"stage",no_capabilities_short:"// no capabilities",slots:"slots",status_label:"status",undrain_worker_title:"> undrain_worker",drain_worker_title:"> drain_worker",undrain_confirm:"are you sure you want to undrain {name}? the worker will start accepting new tasks again.",drain_confirm:"are you sure you want to drain {name}? running tasks will complete, but no new tasks will be assigned until the worker is undrained.",decommission:"decommission",decommission_title:"> decommission_worker",decommission_confirm:'permanently decommission "{name}"? active tasks will be failed or re-queued, and the worker will be disconnected. this cannot be undone.',decommissioned:"decommissioned",worker_id:"worker_id",setup_header_desc:"// follow these steps to add a new worker to your overlord cluster.",prerequisites:"// prerequisites",prereq_machine:"linux or macos machine with at least 2 cpu cores and 4gb ram",prereq_node:"node.js 18+ and pnpm installed",prereq_git:"git installed (2.25+)",prereq_network:"network access to the overlord server",prereq_token:"admin-generated worker registration token",step_generate_token:"generate_worker_token",step_generate_token_desc:"// create a one-time registration token from the admin panel. each token can register exactly one worker.",go_to_token_management:"go_to_token_management",step_install_worker:"install_worker_package",step_install_worker_desc:"// install the overlord worker package globally via npm.",step_configure_env:"configure_environment",step_configure_env_desc:"// create a .env file in ~/.overlord-worker/ or set environment variables.",env_host:"overlord server address (required)",env_worker_token:"one-time registration token (required for first run)",env_worker_name:"display name (defaults to hostname)",env_workspace_root:"task workspace directory (defaults to ~/.overlord-worker/workspaces)",env_max_slots:"max concurrent tasks (defaults to 2)",step_start_worker:"start_worker",step_start_worker_desc:"// start the worker process. it will register with the server and begin accepting tasks.",or_run_as_service:"// or run as a system service for auto-restart:",setup_wizard_option:"// option a: interactive setup wizard (recommended)",manual_config_option:"// option b: manual configuration",start_note_setup_wizard:"// if you used the setup wizard, the worker may already be running.",step_verify_connection:"verify_connection",step_verify_connection_desc:'// once the worker connects, it will appear in the workers list with a "healthy" status.',verify_how_to:"// how to verify:",verify_check_workers:"check the workers page for your new worker",verify_status:'status should show "healthy" within 30 seconds',verify_capabilities:"worker capabilities are auto-detected on first heartbeat",last_heartbeat_label:"last_heartbeat",worker_version:"worker_version",reg_title:"// worker_registration",reg_subtitle:"> register a new worker node",reg_step_generate_token:"generate_token",reg_step_install_worker:"install_worker",reg_step_waiting_activation:"waiting_activation",reg_step_activated:"activated",reg_click_to_generate:"// click to generate a one-time registration token",reg_token_generated:"// token generated successfully",reg_install_command:"// install cli & worker:",reg_run_setup:"// run setup on worker:",reg_running_installation:"// running installation on target worker",reg_installed_wait:"i've installed → wait for activation",reg_listening_for_worker:"listening for worker connection...",reg_worker_connected:"// worker connected",reg_waiting_for_worker:"// waiting for worker to connect...",reg_worker_activated:"worker {name} activated!",reg_worker_registered:"// worker successfully registered",reg_done:"done",reg_completed:"// completed"},projects:{title:"projects",subtitle:"// repository index",create_project:"create_project",no_projects_yet:"no_projects_yet",create_first_project:"create your first project to get started",key:"key",name:"name",repository:"repository",agent:"agent",project_info:"> project_info",repo_url:"repo_url",default_branch:"default_branch",git_platform:"git_platform",agent_type:"agent_type",max_turns:"max_turns",allowed_tools:"allowed_tools",default_project:"default_project",tasks_count:"tasks",last_activity:"last_activity",members:"> members",developer:"developer",role:"role",added_at:"added_at",add_member:"add_member",remove_member:"remove_member",remove_member_confirm:"remove {name} from this project?",member_added:"member added.",member_removed:"member removed.",failed_to_add_member:"failed to add member.",member_already_exists:"this developer is already a member of this project.",failed_to_remove_member:"failed to remove member.",pipeline:"> pipeline",add_stage:"+ add_stage",recent_tasks:"> recent_tasks",no_recent_tasks:"// no recent tasks",edit_project:"edit project",delete_project:"delete_project",delete_project_confirm:'delete project "{name}"? this cannot be undone.',project_deleted:"project deleted.",failed_to_delete_project:"failed to delete project.",project_name:"project_name",project_name_placeholder:"my awesome project",project_key:"project_key",project_key_placeholder:"my-project",project_key_hint:"// unique identifier (lowercase, alphanumeric, hyphens)",ssh_url:"ssh_url",ssh_url_placeholder:"git@github.com:org/repo.git",ssh_url_hint:"// optional — workers prefer ssh for git operations",repo_url_placeholder:"https://github.com/org/repo.git",main:"main",github:"github",gitlab:"gitlab",gitea:"gitea",claude:"claude",cursor:"cursor",codex:"codex",custom:"custom",tools_placeholder:"tool1, tool2, ...",add_project_desc:"// add a new project to overlord",project_created:"project created.",failed_to_create_project:"failed to create project.",update_project_desc:"// update project configuration",save_changes:"save_changes",basic_info:"> basic_info",agent_config:"> agent_config",security:"> security",pipeline_section:"> pipeline",edit_pipeline:"> edit_pipeline",pty_output_filter:"pty_output_filter",workspace_root:"workspace_root",agent_command:"agent_command",member_role:"member",maintainer_role:"maintainer",select_developer:"select developer...",select_role:"select role...",adding:"adding...",project_not_found:"// project not found",back_to_projects:"back to projects",no_members_yet:"// no members yet",no_tasks_for_project:"// no tasks for this project yet",no_pipeline_configured:"// no pipeline configured",confirm_label:"confirm",id:"id",description:"description",status:"status",created:"created",project_saved:"project saved",failed_to_save_project:"failed to save project",invalid_pipeline_json:"invalid pipeline json",setup_commands:"setup_commands",post_command:"post_command",environment:"> environment",add_member_title:"// add_member",edit_project_title:"edit project"},pipeline:{title:"pipeline_editor",subtitle:"-- {key}",save:"save",cancel:"cancel",json_toggle:"json",add_stage:"add_stage",stage_properties:"> stage_properties",stage_name:"stage_name",timeout:"timeout",confirm_required:"confirm_required",on_failure:"on_failure",goto:"goto",max_loops:"max_loops",stop:"stop",no_stages:"// no stages defined",select_stage:"// select a stage to edit properties",saved:"pipeline saved",failed_to_save:"failed to save pipeline",failed_to_load:"failed to load pipeline.",loading_pipeline:"// loading pipeline...",unnamed:"unnamed",editing:"// editing: {name}",name:"name",on_failure_section:"// on_failure",goto_stage:"goto_stage",up:"up",down:"down",failed_to_load_project:"failed to load project",delete_stage:"delete stage"},profile:{title:"profile",subtitle:"// user settings",profile_info:"> profile_info",username:"username",git_name:"git_name",git_email:"git_email",status:"status",created_at:"created_at",edit_git_info:"edit_git_info",change_password:"> change_password",current_password:"current_password",new_password:"new_password",confirm_password:"confirm_password",current_password_required:"current password is required.",new_password_required:"new password is required.",passwords_do_not_match:"new passwords do not match.",password_changed:"password changed successfully.",failed_to_change_password:"failed to change password.",update_password:"update_password",two_factor_auth:"> two-factor_authentication",two_fa_enabled:"2fa is enabled",two_fa_not_setup:"2fa is not set up",regenerate_2fa_warning:`// regenerating 2fa will invalidate your current authenticator app setup.
222
+ you will need to set up 2fa again on your next login.`,regenerate_2fa:"regenerate_2fa",regenerating:"regenerating...",access_tokens:"access_tokens",access_tokens_desc:"// manage personal access tokens for cli & api",git_info_updated:"git info updated.",failed_to_update_git_info:"failed to update git info.",two_fa_reset:"2fa has been reset. please set up your authenticator again on next login.",failed_to_regenerate_2fa:"failed to regenerate 2fa.",failed_to_load_profile:"failed to load profile.",unable_to_load_profile:"// unable to load profile information",personal_settings:"// personal settings",password_length_10_20:"password must be between 10 and 20 characters.",password_hint_10_20:"// 10-20 characters, letters, numbers, and special characters",current_totp_code:"current_totp_code",totp_code_placeholder:"6-digit code",totp_code_required:"please enter your current 6-digit totp code to regenerate 2fa.",two_fa_regenerated:"2fa regenerated. you will need to set it up again on next login.",totp_code_invalid:"invalid totp code or failed to regenerate 2fa.",platform_accounts:"platform accounts",not_linked:"not linked",bind_hint:'send "bind" to the bot in lark or slack to link your account.'},access_tokens:{title:"access_tokens",subtitle:"// personal access tokens",create_token:"create_token",no_tokens:"no_personal_access_tokens",create_token_desc:"create a token to authenticate with the cli or api",copy_token_warning:"// copy your token now. you will not be able to see it again.",token_name:"token_name",token_name_placeholder:"my-cli-token",expires_in:"expires_in",days_30:"30 days",days_90:"90 days",days_365:"365 days",no_expiry:"no expiry",token_created:"token created.",failed_to_create_token:"failed to create token.",token_revoked:"token revoked.",failed_to_revoke_token:"failed to revoke token.",failed_to_load_tokens:"failed to load tokens.",revoke:"revoke",revoke_token:"revoke_token",last_used:"last_used",expires_at:"expires_at",token:"token",created:"created",expires:"expires",revoke_confirm:'are you sure you want to revoke "{name}"? this action cannot be undone.',create_personal_access_token:"// create personal access token",tokens_authenticate_desc:"// tokens authenticate the ov cli and api requests",revoke_token_title:"// revoke token",token_label_required:"token label is required."},admin:{title:"admin",subtitle:"// system control",tab_developers:"developers",tab_bots:"bots",tab_tokens:"worker_tokens",tab_audit_logs:"audit_logs",tab_settings:"settings",developers_title:"admin / developers",developers_subtitle:"// developer account management",create_developer:"create_developer",search_developers:"search developers...",no_matching_developers:"no_matching_developers",no_developers_found:"no_developers_found",try_adjusting_search:"try adjusting your search query",username:"username",display_name:"display_name",role:"role",status:"status",two_fa_status:"2fa_status",dev_name:"dev_name",totp:"totp",reset_2fa:"reset 2fa",deactivate:"deactivate",activate:"activate",create_developer_title:"create_developer",create_developer_desc:"// add a new developer account",edit_developer_title:"edit_developer",edit_developer_desc:"// update developer account settings",developer_created:"developer created.",developer_updated:"developer updated.",failed_to_create_developer:"failed to create developer",failed_to_update_developer:"failed to update developer",confirm_reset_2fa:'reset 2fa for "{name}"? they will need to set up 2fa again on next login.',two_fa_reset:"2fa has been reset.",failed_to_reset_2fa:"failed to reset 2fa",confirm_deactivate:'deactivate "{name}"? they will not be able to log in.',confirm_activate:'activate "{name}"?',developer_deactivated:"developer deactivated.",developer_activated:"developer activated.",failed_to_update_status:"failed to update developer status.",create_first_developer:"create your first developer to get started",all_fields_required:"all fields are required.",password_length_error:"password must be between 10 and 20 characters.",password_complexity_error:"password must contain at least one letter, one digit, and one special character.",password_hint:"// must be 10-20 characters with letters, digits, and special characters.",display_name_required:"display name is required.",demote_self_warning:"you are about to demote yourself from admin. the system must have at least one admin. please verify another admin exists before proceeding.",demote_self_inline_warning:"// warning: you are demoting yourself from admin. ensure at least one other admin exists.",lark_uid:"lark open_id",slack_uid:"slack user_id",platform_accounts:"platform accounts",reset_2fa_confirm_message:"are you sure you want to reset two-factor authentication for",reset_2fa_audit_note:"// the user will be required to set up 2fa again on their next login. this action is recorded in the audit log.",resetting:"resetting...",bots_title:"admin / bots",bots_subtitle:"// bot instance management",create_bot:"create_bot",no_bots_configured:"no_bots_configured",add_bot_desc:"add a bot instance to enable chat integrations with lark or slack",bot_name:"bot_name",platform:"platform",app_id:"app_id",lark:"lark",slack:"slack",delete_bot:"delete_bot",delete_bot_confirm:'delete bot "{name}"? this cannot be undone.',bot_deleted:"bot deleted.",failed_to_delete_bot:"failed to delete bot.",bot_created:"bot created.",failed_to_create_bot:"failed to create bot",chat_bindings:"chat_bindings",chat_bindings_subtitle:"// all integrations",no_chat_bindings:"// no chat bindings configured",chat_id:"chat_id",chat_name:"chat_name",project:"project",bot:"bot",edit_bot:"edit_bot",name_and_app_id_required:"name and app id are required.",app_secret_required:"app secret is required for new bots.",app_secret:"app_secret",app_secret_keep_current:"app_secret (leave empty to keep current)",webhook_url_optional:"webhook_url (optional)",lark_feishu:"lark_(feishu)",failed_to_update_bot:"failed to update bot",no_chat_bindings_for_bot:"// no chat bindings configured for this bot.",add_chat_binding_desc:"// add chat binding",add_binding:"add_binding",failed_to_add_binding:"failed to add binding",tokens_title:"admin / worker_tokens",tokens_subtitle:"// worker registration token management",generate_token:"generate_token",no_worker_tokens:"no_worker_tokens",generate_token_desc:"generate a token to register a new worker",label:"label",purpose:"purpose",expires_at:"expires_at",token_generated:"token generated.",failed_to_generate_token:"failed to generate token.",token_revoked:"token revoked.",failed_to_revoke_token:"failed to revoke token.",revoke_token:"revoke_token",revoke_token_confirm:'revoke token "{label}"? this cannot be undone.',show_revoked:"show revoked",hide_revoked:"hide revoked",audit_title:"admin / audit_logs",audit_subtitle:"// system activity audit trail",all_actions:"all_actions",filter_by_user:"filter by user...",no_audit_entries:"no_audit_log_entries",audit_logs_appear:"audit logs will appear here as actions are performed in the system",timestamp:"timestamp",user_id:"user_id",action:"action",resource:"resource",detail:"detail",ip:"ip",action_login:"login",action_logout:"logout",action_create:"create",action_update:"update",action_delete:"delete",action_revoke:"revoke",action_reset_2fa:"reset_2fa",action_generate_token:"generate_token",showing_entries:"showing {count} entries",revoke:"revoke",generate_worker_token_title:"> generate_worker_token",create_one_time_token:"// create a one-time registration token",label_identifies_worker:"// identifies which worker this token is for",generating:"generating...",generate:"generate",worker_registered:"> worker_registered",worker_token_generated:"> worker_token_generated",run_command_desc:"// run this command on the target machine to register the worker",token_shown_once:"// this token will only be shown once. copy the command before closing.",setup_command:"setup command",waiting_for_worker:"// waiting for worker to register...",token_not_yet_used:"// token not yet used. the worker can still register later using this token.",worker_registered_success:"// worker registered successfully",worker:"worker",copied_wait_for_worker:"copied — wait_for_worker",close_worker_can_register:"close // worker can still register",view_worker:"view_worker",label_required:"label is required.",settings_title:"admin / settings",settings_subtitle:"// global system configuration",save_settings:"save_settings",settings_saved:"settings saved",failed_to_save_settings:"failed to save settings",loading_settings:"// loading settings...",scheduling:"> scheduling",heartbeat:"> heartbeat",output:"> output",defaults:"> defaults",max_concurrent_tasks:"max_concurrent_tasks_per_worker",max_concurrent_tasks_desc:"// maximum number of tasks a single worker can run simultaneously",task_timeout:"task_timeout_minutes",task_timeout_desc:"// auto-cancel tasks after this many minutes of inactivity",heartbeat_interval:"heartbeat_interval_seconds",heartbeat_interval_desc:"// expected interval between worker heartbeats",worker_offline_threshold:"worker_offline_threshold_seconds",worker_offline_threshold_desc:"// mark worker offline after missing heartbeats for this duration",default_agent_type:"default_agent_type",default_agent_type_desc:"// default agent type for new projects",server_url:"server_url",server_url_desc:"// public server url used in worker setup instructions",chat_binding_title:"// chat_bindings — {name}",chat_binding_no_bindings:"// no chat bindings configured for this bot.",chat_binding_add:"// add chat binding",chat_binding_id_placeholder:"platform chat/group id",chat_binding_name_placeholder:"display name for the chat",chat_binding_select_project:"select project...",chat_binding_all_fields_required:"all fields are required.",chat_binding_adding:"adding...",pat_label_required:"label is required.",pat_failed_to_generate:"failed to generate token",pat_label_placeholder:"e.g. build-server-03"},landing:{overlord:"overlord",version_badge:"self-hosted · bring your own subscriptions and machines",hero_line1:"turn your subscriptions / machines into",hero_turn_your:"turn your",hero_into:"into",hero_word_subscriptions:"subscriptions",hero_word_machines:"machines",hero_highlight:"a dev team that never sleeps.",hero_desc:"dispatch coding tasks across your machine fleet. ai agents execute in parallel — you watch, jump in, or come back to finished pull requests.",get_started:"get started",read_docs:"read docs",how_it_works:"how it works",three_steps:"from task description to merged pull request.",step_n:"step {n}",step_define:"connect your fleet",step_define_desc:"register your machines as workers. each one runs ai agents — claude code, cursor, codex — using your existing subscriptions.",step_dispatch:"send a task",step_dispatch_desc:"describe what you want from slack, lark, cli, or the web dashboard. overlord finds the best available machine and starts the ai agent automatically.",step_monitor:"watch or walk away",step_monitor_desc:"live terminal streams agent output to your browser. jump in to guide the agent, or come back later to a finished pull request.",everything_you_need:"everything you need",complete_platform:"self-hosted. your machines, your ai subscriptions, your control.",feature_terminal:"real-time pty terminal",feature_terminal_desc:"stream live agent output directly in the browser. full xterm.js integration with scrollback and search.",feature_multi_agent:"multi-agent support",feature_multi_agent_desc:"first-class support for claude code, cursor, and codex. route tasks to the right agent automatically.",feature_routing:"smart task routing",feature_routing_desc:"intelligent scheduling across your machine fleet. tasks land on the best available worker every time.",feature_pipeline:"pipeline automation",feature_pipeline_desc:"chain tasks into multi-stage pipelines. build, test, and deploy in one continuous flow.",feature_collab:"team collaboration",feature_collab_desc:"project-level permissions, audit logs, and shared dashboards. keep your whole team in sync.",feature_pool:"pool subscriptions, maximize value",feature_pool_desc:"every team member's ai subscription goes into a shared pool — everyone can use any seat. no idle subscriptions, no duplicate costs. the bigger your team, the more you save.",feature_trigger:"trigger from everywhere",feature_trigger_desc:"slack message, lark bot, cli command, or web dashboard — create tasks from whatever tool you already use. phone, laptop, tablet, it all works.",feature_remote:"code from anywhere",feature_remote_desc:"on the bus, at a café, or away from your desk — dispatch tasks from your phone or laptop and your fleet keeps coding. come back to finished pull requests.",feature_security:"secure by design",feature_security_desc:"totp two-factor auth, scoped api tokens, and full audit trail. enterprise-ready from day one.",install_title:"get up and running",install_desc:"three components, three commands. deploy in minutes.",install_command:"npm install -g @overlordai/developer-cli",setup_step_1_title:"deploy the server",setup_step_1_desc:"install overlord and start the central server. it manages all tasks, authentication, and real-time communication.",setup_step_1_command:`npm install -g @overlordai/cli @overlordai/server
223
+ overlord install`,setup_step_1_link:"installation guide",setup_step_2_title:"register workers",setup_step_2_desc:"set up worker machines that execute tasks. each worker runs ai agents in isolated workspaces with full git integration.",setup_step_2_command:`npm install -g @overlordai/cli @overlordai/worker
224
+ overlord setup worker`,setup_step_2_link:"worker setup guide",setup_step_3_title:"connect as developer",setup_step_3_desc:"install the developer cli to create tasks, attach to running sessions, and monitor progress from your terminal.",setup_step_3_command:`npm install -g @overlordai/developer-cli
225
+ ov login https://overlord.yourdomain.com`,setup_step_3_link:"development workflow",go_to_app:"open app",documentation:"documentation",api:"api",copy_install_command:"copy install command"},docs:{cli_reference:"cli",cli_subtitle:"// command-line tools",api_reference:"api",api_subtitle:"// rest api endpoints",quick_start:"// quick start",developer_cli:"developer cli (ov)",admin_cli:"admin cli (overlord)",authentication:"// authentication",usage:"usage",flags:"flags",example:"example",request_body:"request body",response:"response",quick_start_with_token:"// quick start with your token",replace_token_hint:"// replace <your-token> with the actual token value from your access tokens page",cli_tools_desc:"// overlord provides two cli tools: {ov} (developer cli) and {overlord} (admin/ops cli)",api_base_url_desc:"// base url: {url} · all endpoints return json · auth via bearer token in authorization header"},onboarding:{getting_started:"// getting started",completed_count:"{done}/{total} completed",dismiss:"dismiss",all_done:"all set! you're ready to go.",admin_create_project_title:"create your first project",admin_create_project_desc:"set up a project with a git repo and pipeline",admin_register_worker_title:"register a worker",admin_register_worker_desc:"generate a token and set up a worker to run tasks",admin_create_developer_title:"create a developer account",admin_create_developer_desc:"add team members who can create and monitor tasks",admin_configure_bot_title:"configure a chat bot",admin_configure_bot_desc:"register a Lark or Slack bot to enable task management via chat",admin_first_task_title:"create your first task",admin_first_task_desc:"verify the full pipeline works end-to-end",lead_view_projects_title:"view your projects",lead_view_projects_desc:"check the projects assigned to you",lead_configure_pipeline_title:"configure a pipeline",lead_configure_pipeline_desc:"set up stages for your project workflow",lead_add_member_title:"add a team member",lead_add_member_desc:"invite developers to your project",lead_first_task_title:"create your first task",lead_first_task_desc:"submit a task and watch it execute",dev_install_cli_title:"install the ov cli",dev_install_cli_desc:"npm install -g @overlordai/developer-cli",dev_setup_cli_title:"run ov setup",dev_setup_cli_desc:"connect to the server and authenticate",dev_link_chat_title:"link your chat account",dev_link_chat_desc:'send "bind" to the bot in Lark or Slack to connect your account',dev_view_projects_title:"explore projects",dev_view_projects_desc:"browse available projects and their pipelines",dev_first_task_title:"create your first task",dev_first_task_desc:"submit a task via web or cli",go_to_projects:"go to projects",go_to_workers:"go to workers",go_to_tasks:"go to tasks",go_to_bots:"manage bots",manage_developers:"manage developers",cli:"cli",setup_guide:"setup guide"},bind:{title:"// link platform account",linking:"linking your account...",success:"account linked successfully!",success_detail:"your {platform} account has been connected. you can now use bot commands.",error:"failed to link account",invalid_token:'this link is invalid or has expired. send "bind" to the bot again to get a new link.',back_to_home:"go to dashboard",no_token:"no bind token provided."},terminal_home:{title:"terminal",select_project:"project...",all_projects:"all projects",task_description_placeholder:"describe the task...",new_task:"new task",no_active_tasks:"no active tasks",create_task_hint:"create a task using the bar above to get started"}};function gb(u,r){const s=r.split(".");let o=u;for(const f of s){if(o==null||typeof o!="object")return r;o=o[f]}return typeof o=="string"?o:r}function vb(u,r){return r?u.replace(/\{(\w+)\}/g,(s,o)=>r[o]!=null?String(r[o]):`{${o}}`):u}function Lu(u,r){return vb(gb(yb,u),r)}function ta(){return{t:v.useCallback((r,s)=>Lu(r,s),[])}}function lp(){const{theme:u,setTheme:r}=ap(),{t:s}=ta(),o=u==="dark"||u==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;function f(){r(o?"light":"dark")}return _.jsx("button",{onClick:f,className:"flex items-center gap-1.5 rounded-[4px] p-2 text-[var(--text-secondary)] transition-colors hover:bg-[var(--border)] hover:text-[var(--text-primary)]","aria-label":s(o?"common.switch_to_light":"common.switch_to_dark"),title:s(o?"common.light_mode":"common.dark_mode"),children:o?_.jsx(ib,{size:16}):_.jsx(eb,{size:16})})}class Ns extends Error{constructor(s,o,f){const m=s.status||s.status===0?s.status:"",h=s.statusText??"",x=`${m} ${h}`.trim(),g=x?`status code ${x}`:"an unknown error";super(`Request failed with ${g}: ${o.method} ${o.url}`);Xe(this,"response");Xe(this,"request");Xe(this,"options");this.name="HTTPError",this.response=s,this.request=o,this.options=f}}class np extends Error{constructor(s){let o="Non-error value was thrown";try{typeof s=="string"?o=s:s&&typeof s=="object"&&"message"in s&&typeof s.message=="string"&&(o=s.message)}catch{}super(o);Xe(this,"name","NonError");Xe(this,"value");this.value=s}}class Rs extends Error{constructor(s){const o=s!=null&&s.cause?s.cause instanceof Error?s.cause:new np(s.cause):void 0;super(s!=null&&s.code?`Forced retry: ${s.code}`:"Forced retry",o?{cause:o}:void 0);Xe(this,"name","ForceRetryError");Xe(this,"customDelay");Xe(this,"code");Xe(this,"customRequest");this.customDelay=s==null?void 0:s.delay,this.code=s==null?void 0:s.code,this.customRequest=s==null?void 0:s.request}}const xh=(()=>{let u=!1,r=!1;const s=typeof globalThis.ReadableStream=="function",o=typeof globalThis.Request=="function";if(s&&o)try{r=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type")}catch(f){if(f instanceof Error&&f.message==="unsupported BodyInit type")return!1;throw f}return u&&!r})(),bb=typeof globalThis.AbortController=="function",ip=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",xb=typeof globalThis.ReadableStream=="function",Sb=typeof globalThis.FormData=="function",up=["get","post","put","patch","head","delete"],Eb={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},js=2147483647,kb=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,rp=Symbol("stop");class op{constructor(r){Xe(this,"options");this.options=r}}const wb=u=>new op(u),Tb={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Rb={next:!0},jb={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Ab=u=>{if(!u)return 0;if(u instanceof FormData){let r=0;for(const[s,o]of u)r+=kb,r+=new TextEncoder().encode(`Content-Disposition: form-data; name="${s}"`).length,r+=typeof o=="string"?new TextEncoder().encode(o).length:o.size;return r}if(u instanceof Blob)return u.size;if(u instanceof ArrayBuffer)return u.byteLength;if(typeof u=="string")return new TextEncoder().encode(u).length;if(u instanceof URLSearchParams)return new TextEncoder().encode(u.toString()).length;if("byteLength"in u)return u.byteLength;if(typeof u=="object"&&u!==null)try{const r=JSON.stringify(u);return new TextEncoder().encode(r).length}catch{return 0}return 0},sp=(u,r,s)=>{let o,f=0;return u.pipeThrough(new TransformStream({transform(m,h){if(h.enqueue(m),o){f+=o.byteLength;let x=r===0?0:f/r;x>=1&&(x=1-Number.EPSILON),s==null||s({percent:x,totalBytes:Math.max(r,f),transferredBytes:f},o)}o=m},flush(){o&&(f+=o.byteLength,s==null||s({percent:1,totalBytes:Math.max(r,f),transferredBytes:f},o))}}))},zb=(u,r)=>{if(!u.body)return u;if(u.status===204)return new Response(null,{status:u.status,statusText:u.statusText,headers:u.headers});const s=Math.max(0,Number(u.headers.get("content-length"))||0);return new Response(sp(u.body,s,r),{status:u.status,statusText:u.statusText,headers:u.headers})},Cb=(u,r,s)=>{if(!u.body)return u;const o=Ab(s??u.body);return new Request(u,{duplex:"half",body:sp(u.body,o,r)})},yl=u=>u!==null&&typeof u=="object",Nu=(...u)=>{for(const r of u)if((!yl(r)||Array.isArray(r))&&r!==void 0)throw new TypeError("The `options` argument must be an object");return $s({},...u)},cp=(u={},r={})=>{const s=new globalThis.Headers(u),o=r instanceof globalThis.Headers,f=new globalThis.Headers(r);for(const[m,h]of f.entries())o&&h==="undefined"||h===void 0?s.delete(m):s.set(m,h);return s};function Du(u,r,s){return Object.hasOwn(r,s)&&r[s]===void 0?[]:$s(u[s]??[],r[s]??[])}const fp=(u={},r={})=>({beforeRequest:Du(u,r,"beforeRequest"),beforeRetry:Du(u,r,"beforeRetry"),afterResponse:Du(u,r,"afterResponse"),beforeError:Du(u,r,"beforeError")}),Ob=(u,r)=>{const s=new URLSearchParams;for(const o of[u,r])if(o!==void 0)if(o instanceof URLSearchParams)for(const[f,m]of o.entries())s.append(f,m);else if(Array.isArray(o))for(const f of o){if(!Array.isArray(f)||f.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");s.append(String(f[0]),String(f[1]))}else if(yl(o))for(const[f,m]of Object.entries(o))m!==void 0&&s.append(f,String(m));else{const f=new URLSearchParams(o);for(const[m,h]of f.entries())s.append(m,h)}return s},$s=(...u)=>{let r={},s={},o={},f;const m=[];for(const h of u)if(Array.isArray(h))Array.isArray(r)||(r=[]),r=[...r,...h];else if(yl(h)){for(let[x,g]of Object.entries(h)){if(x==="signal"&&g instanceof globalThis.AbortSignal){m.push(g);continue}if(x==="context"){if(g!=null&&(!yl(g)||Array.isArray(g)))throw new TypeError("The `context` option must be an object");r={...r,context:g==null?{}:{...r.context,...g}};continue}if(x==="searchParams"){g==null?f=void 0:f=f===void 0?g:Ob(f,g);continue}yl(g)&&x in r&&(g=$s(r[x],g)),r={...r,[x]:g}}yl(h.hooks)&&(o=fp(o,h.hooks),r.hooks=o),yl(h.headers)&&(s=cp(s,h.headers),r.headers=s)}return f!==void 0&&(r.searchParams=f),m.length>0&&(m.length===1?r.signal=m[0]:ip?r.signal=AbortSignal.any(m):r.signal=m.at(-1)),r},Nb=u=>up.includes(u)?u.toUpperCase():u,Db=["get","put","head","delete","options","trace"],Mb=[408,413,429,500,502,503,504],Ub=[413,429,503],Sh={limit:2,methods:Db,statusCodes:Mb,afterStatusCodes:Ub,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:u=>.3*2**(u-1)*1e3,jitter:void 0,retryOnTimeout:!1},qb=(u={})=>{if(typeof u=="number")return{...Sh,limit:u};if(u.methods&&!Array.isArray(u.methods))throw new Error("retry.methods must be an array");if(u.methods&&(u.methods=u.methods.map(s=>s.toLowerCase())),u.statusCodes&&!Array.isArray(u.statusCodes))throw new Error("retry.statusCodes must be an array");const r=Object.fromEntries(Object.entries(u).filter(([,s])=>s!==void 0));return{...Sh,...r}};class Ds extends Error{constructor(s){super(`Request timed out: ${s.method} ${s.url}`);Xe(this,"request");this.name="TimeoutError",this.request=s}}async function Hb(u,r,s,o){return new Promise((f,m)=>{const h=setTimeout(()=>{s&&s.abort(),m(new Ds(u))},o.timeout);o.fetch(u,r).then(f).catch(m).then(()=>{clearTimeout(h)})})}async function Lb(u,{signal:r}){return new Promise((s,o)=>{r&&(r.throwIfAborted(),r.addEventListener("abort",f,{once:!0}));function f(){clearTimeout(m),o(r.reason)}const m=setTimeout(()=>{r==null||r.removeEventListener("abort",f),s()},u)})}const Bb=(u,r)=>{const s={};for(const o in r)Object.hasOwn(r,o)&&!(o in jb)&&!(o in Tb)&&(!(o in u)||o in Rb)&&(s[o]=r[o]);return s},Yb=u=>u===void 0?!1:Array.isArray(u)?u.length>0:u instanceof URLSearchParams?u.size>0:typeof u=="object"?Object.keys(u).length>0:typeof u=="string"?u.trim().length>0:!!u;function Gb(u){return u instanceof Ns||(u==null?void 0:u.name)===Ns.name}function Xb(u){return u instanceof Ds||(u==null?void 0:u.name)===Ds.name}var Zu,dp,Kt,Bt,ut,V,$a,Pt,gl,ie,Bu,mp,Ms,Yu,Ja,Us,hp,ii,Gu,qs;const ui=class ui{constructor(r,s={}){It(this,ie);Xe(this,"request");It(this,Kt);It(this,Bt,0);It(this,ut);It(this,V);It(this,$a);It(this,Pt);It(this,gl);var f,m,h;if(Zt(this,ut,r),Zt(this,V,{...s,headers:cp(U(this,ut).headers,s.headers),hooks:fp({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},s.hooks),method:Nb(s.method??U(this,ut).method??"GET"),prefixUrl:String(s.prefixUrl||""),retry:qb(s.retry),throwHttpErrors:s.throwHttpErrors??!0,timeout:s.timeout??1e4,fetch:s.fetch??globalThis.fetch.bind(globalThis),context:s.context??{}}),typeof U(this,ut)!="string"&&!(U(this,ut)instanceof URL||U(this,ut)instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(U(this,V).prefixUrl&&typeof U(this,ut)=="string"){if(U(this,ut).startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");U(this,V).prefixUrl.endsWith("/")||(U(this,V).prefixUrl+="/"),Zt(this,ut,U(this,V).prefixUrl+U(this,ut))}bb&&ip&&(Zt(this,Pt,U(this,V).signal??U(this,ut).signal),Zt(this,Kt,new globalThis.AbortController),U(this,V).signal=U(this,Pt)?AbortSignal.any([U(this,Pt),U(this,Kt).signal]):U(this,Kt).signal),xh&&(U(this,V).duplex="half"),U(this,V).json!==void 0&&(U(this,V).body=((m=(f=U(this,V)).stringifyJson)==null?void 0:m.call(f,U(this,V).json))??JSON.stringify(U(this,V).json),U(this,V).headers.set("content-type",U(this,V).headers.get("content-type")??"application/json"));const o=s.headers&&new globalThis.Headers(s.headers).has("content-type");if(U(this,ut)instanceof globalThis.Request&&(Sb&&U(this,V).body instanceof globalThis.FormData||U(this,V).body instanceof URLSearchParams)&&!o&&U(this,V).headers.delete("content-type"),this.request=new globalThis.Request(U(this,ut),U(this,V)),Yb(U(this,V).searchParams)){const g="?"+(typeof U(this,V).searchParams=="string"?U(this,V).searchParams.replace(/^\?/,""):new URLSearchParams(be(h=ui,Zu,dp).call(h,U(this,V).searchParams)).toString()),p=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,g);this.request=new globalThis.Request(p,U(this,V))}if(U(this,V).onUploadProgress){if(typeof U(this,V).onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!xh)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=be(this,ie,qs).call(this,this.request,U(this,V).body??void 0)}}static create(r,s){var h,x,g;const o=new ui(r,s),f=async()=>{var j,k,M,X,B,q,H,L,I,J,he,pe;if(typeof U(o,V).timeout=="number"&&U(o,V).timeout>js)throw new RangeError(`The \`timeout\` option cannot be greater than ${js}`);await Promise.resolve();let p=await be(j=o,ie,hp).call(j);for(const de of U(o,V).hooks.afterResponse){const W=be(k=o,ie,Ms).call(k,p.clone());let $;try{$=await de(o.request,be(M=o,ie,ii).call(M),W,{retryCount:U(o,Bt)})}catch(Pe){throw be(X=o,ie,Ja).call(X,W),be(B=o,ie,Ja).call(B,p),Pe}if($ instanceof op)throw be(q=o,ie,Ja).call(q,W),be(H=o,ie,Ja).call(H,p),new Rs($.options);const ue=$ instanceof globalThis.Response?$:p;W!==ue&&be(L=o,ie,Ja).call(L,W),p!==ue&&be(I=o,ie,Ja).call(I,p),p=ue}if(be(J=o,ie,Ms).call(J,p),!p.ok&&(typeof U(o,V).throwHttpErrors=="function"?U(o,V).throwHttpErrors(p.status):U(o,V).throwHttpErrors)){let de=new Ns(p,o.request,be(he=o,ie,ii).call(he));for(const W of U(o,V).hooks.beforeError)de=await W(de,{retryCount:U(o,Bt)});throw de}if(U(o,V).onDownloadProgress){if(typeof U(o,V).onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!xb)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const de=p.clone();return be(pe=o,ie,Ja).call(pe,p),zb(de,U(o,V).onDownloadProgress)}return p},m=be(h=o,ie,Us).call(h,f).finally(()=>{var j,k;const p=U(o,$a);be(j=o,ie,Yu).call(j,(p==null?void 0:p.body)??void 0),be(k=o,ie,Yu).call(k,o.request.body??void 0)});for(const[p,j]of Object.entries(Eb))p==="bytes"&&typeof((g=(x=globalThis.Response)==null?void 0:x.prototype)==null?void 0:g.bytes)!="function"||(m[p]=async()=>{o.request.headers.set("accept",o.request.headers.get("accept")||j);const k=await m;if(p==="json"){if(k.status===204)return"";const M=await k.text();return M===""?"":s.parseJson?s.parseJson(M):JSON.parse(M)}return k[p]()});return m}};Zu=new WeakSet,dp=function(r){return r&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof URLSearchParams)?Object.fromEntries(Object.entries(r).filter(([,s])=>s!==void 0)):r},Kt=new WeakMap,Bt=new WeakMap,ut=new WeakMap,V=new WeakMap,$a=new WeakMap,Pt=new WeakMap,gl=new WeakMap,ie=new WeakSet,Bu=function(){const r=U(this,V).retry.delay(U(this,Bt));let s=r;U(this,V).retry.jitter===!0?s=Math.random()*r:typeof U(this,V).retry.jitter=="function"&&(s=U(this,V).retry.jitter(r),(!Number.isFinite(s)||s<0)&&(s=r));const o=U(this,V).retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(o,s)},mp=async function(r){if(Pm(this,Bt)._++,U(this,Bt)>U(this,V).retry.limit)throw r;const s=r instanceof Error?r:new np(r);if(s instanceof Rs)return s.customDelay??be(this,ie,Bu).call(this);if(!U(this,V).retry.methods.includes(this.request.method.toLowerCase()))throw r;if(U(this,V).retry.shouldRetry!==void 0){const o=await U(this,V).retry.shouldRetry({error:s,retryCount:U(this,Bt)});if(o===!1)throw r;if(o===!0)return be(this,ie,Bu).call(this)}if(Xb(r)&&!U(this,V).retry.retryOnTimeout)throw r;if(Gb(r)){if(!U(this,V).retry.statusCodes.includes(r.response.status))throw r;const o=r.response.headers.get("Retry-After")??r.response.headers.get("RateLimit-Reset")??r.response.headers.get("X-RateLimit-Retry-After")??r.response.headers.get("X-RateLimit-Reset")??r.response.headers.get("X-Rate-Limit-Reset");if(o&&U(this,V).retry.afterStatusCodes.includes(r.response.status)){let f=Number(o)*1e3;Number.isNaN(f)?f=Date.parse(o)-Date.now():f>=Date.parse("2024-01-01")&&(f-=Date.now());const m=U(this,V).retry.maxRetryAfter??f;return f<m?f:m}if(r.response.status===413)throw r}return be(this,ie,Bu).call(this)},Ms=function(r){return U(this,V).parseJson&&(r.json=async()=>U(this,V).parseJson(await r.text())),r},Yu=function(r){r&&r.cancel().catch(()=>{})},Ja=function(r){be(this,ie,Yu).call(this,r.body??void 0)},Us=async function(r){try{return await r()}catch(s){const o=Math.min(await be(this,ie,mp).call(this,s),js);if(U(this,Bt)<1)throw s;if(await Lb(o,U(this,Pt)?{signal:U(this,Pt)}:{}),s instanceof Rs&&s.customRequest){const f=U(this,V).signal?new globalThis.Request(s.customRequest,{signal:U(this,V).signal}):new globalThis.Request(s.customRequest);be(this,ie,Gu).call(this,f)}for(const f of U(this,V).hooks.beforeRetry){const m=await f({request:this.request,options:be(this,ie,ii).call(this),error:s,retryCount:U(this,Bt)});if(m instanceof globalThis.Request){be(this,ie,Gu).call(this,m);break}if(m instanceof globalThis.Response)return m;if(m===rp)return}return be(this,ie,Us).call(this,r)}},hp=async function(){var s;(s=U(this,Kt))!=null&&s.signal.aborted&&(Zt(this,Kt,new globalThis.AbortController),U(this,V).signal=U(this,Pt)?AbortSignal.any([U(this,Pt),U(this,Kt).signal]):U(this,Kt).signal,this.request=new globalThis.Request(this.request,{signal:U(this,V).signal}));for(const o of U(this,V).hooks.beforeRequest){const f=await o(this.request,be(this,ie,ii).call(this),{retryCount:U(this,Bt)});if(f instanceof Response)return f;if(f instanceof globalThis.Request){be(this,ie,Gu).call(this,f);break}}const r=Bb(this.request,U(this,V));return Zt(this,$a,this.request),this.request=U(this,$a).clone(),U(this,V).timeout===!1?U(this,V).fetch(U(this,$a),r):Hb(U(this,$a),r,U(this,Kt),U(this,V))},ii=function(){if(!U(this,gl)){const{hooks:r,...s}=U(this,V);Zt(this,gl,Object.freeze(s))}return U(this,gl)},Gu=function(r){Zt(this,gl,void 0),this.request=be(this,ie,qs).call(this,r)},qs=function(r,s){return!U(this,V).onUploadProgress||!r.body?r:Cb(r,U(this,V).onUploadProgress,s??U(this,V).body??void 0)},It(ui,Zu);let Qu=ui;/*! MIT License © Sindre Sorhus */const Hs=u=>{const r=(s,o)=>Qu.create(s,Nu(u,o));for(const s of up)r[s]=(o,f)=>Qu.create(o,Nu(u,f,{method:s}));return r.create=s=>Hs(Nu(s)),r.extend=s=>(typeof s=="function"&&(s=s(u??{})),Hs(Nu(u,s))),r.stop=rp,r.retry=wb,r},Eh=Hs();let Mu=null;const Xu=Eh.create({prefixUrl:"/api",timeout:3e4,hooks:{beforeRequest:[u=>{const r=xa.getState().accessToken;r&&u.headers.set("Authorization",`Bearer ${r}`)}],afterResponse:[async(u,r,s)=>{if(s.status===401&&!u.headers.has("X-Retry-After-Refresh")){Mu||(Mu=xa.getState().refresh().finally(()=>{Mu=null}));try{await Mu}catch{throw s}const o=xa.getState().accessToken;return o&&u.headers.set("Authorization",`Bearer ${o}`),u.headers.set("X-Retry-After-Refresh","1"),Eh(u,r)}}]}}),Vb=3e4;function Qb(u){if(u.link)return u.link;const r=(u.title+" "+u.body).match(/task\s*#?(\d+)/i);if(r)return`/tasks/${r[1]}`;const s=(u.title+" "+u.body).match(/worker\s+(\S+)/i);return s?`/workers/${s[1]}`:null}function pp(){const u=Fa(),[r,s]=v.useState([]),[o,f]=v.useState(0),[m,h]=v.useState(!1),[x,g]=v.useState(!1),p=v.useRef(null),{t:j}=ta(),k=v.useRef(async()=>{try{g(!0);const q=(await Xu.get("web/notifications",{searchParams:{limit:"20"}}).json()).data,H=q.filter(L=>!L.isRead).length;s(L=>L.length===q.length&&L.every((I,J)=>I.id===q[J].id&&I.isRead===q[J].isRead)?L:q),f(L=>L===H?L:H)}catch{}finally{g(!1)}});v.useEffect(()=>{k.current();const B=setInterval(()=>k.current(),Vb);return()=>clearInterval(B)},[]),v.useEffect(()=>{function B(q){p.current&&!p.current.contains(q.target)&&h(!1)}return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[]);async function M(B){try{await Xu.post(`web/notifications/${B}/read`),s(q=>q.map(H=>H.id===B?{...H,isRead:!0}:H)),f(q=>Math.max(0,q-1))}catch{}}async function X(){try{await Xu.post("web/notifications/read-all"),s(B=>B.map(q=>({...q,isRead:!0}))),f(0)}catch{}}return _.jsxs("div",{className:"relative",ref:p,children:[_.jsxs("button",{type:"button",onClick:()=>h(B=>!B),"aria-label":j("common.notifications"),className:"relative inline-flex items-center justify-center rounded-[4px] p-2 text-[var(--text-secondary)] transition-colors hover:bg-[var(--border)] hover:text-[var(--text-primary)]",children:[_.jsx(Bv,{size:16}),o>0&&_.jsx("span",{className:"absolute right-0 top-0 flex h-3 min-w-3 items-center justify-center rounded-full bg-[var(--destructive)] px-0.5 text-[8px] font-semibold leading-none text-white",children:o})]}),m&&_.jsxs("div",{className:"absolute right-0 top-full z-50 mt-2 w-[min(320px,calc(100vw-2rem))] rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] shadow-lg",children:[_.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--border)] px-4 py-3",children:[_.jsx("span",{className:"text-sm font-semibold",children:j("common.notifications")}),o>0&&_.jsxs("button",{type:"button",onClick:X,"aria-label":j("common.mark_all_read"),className:"inline-flex items-center gap-1.5 text-xs text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:[_.jsx(Yv,{className:"h-3.5 w-3.5"}),j("common.mark_all_read")]})]}),_.jsx("div",{className:"max-h-80 overflow-y-auto",children:x&&r.length===0?_.jsx("div",{className:"flex justify-center py-8",children:_.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-[var(--border)] border-t-[var(--accent)]"})}):r.length===0?_.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[_.jsx("span",{className:"text-xl font-bold text-[var(--border)]",children:"[ ]"}),_.jsx("span",{className:"text-xs text-[var(--text-muted)]",children:j("common.no_notifications")})]}):r.map(B=>{const q=Qb(B);return _.jsxs("div",{className:`flex items-start gap-3 border-b border-[var(--border)] px-4 py-3 last:border-b-0 transition-colors ${q?"cursor-pointer hover:bg-[var(--bg-input)]":""} ${B.isRead?"opacity-60":"bg-[var(--accent)]/5"}`,onClick:()=>{q&&(B.isRead||M(B.id),h(!1),u(q))},children:[_.jsxs("div",{className:"min-w-0 flex-1",children:[_.jsx("p",{className:"text-sm font-medium",children:B.title}),_.jsx("p",{className:"text-xs text-[var(--text-secondary)]",children:B.body}),_.jsx("p",{className:"mt-1 text-xs text-[var(--text-secondary)] opacity-60",children:new Date(B.createdAt).toLocaleString()})]}),!B.isRead&&_.jsx("button",{type:"button",onClick:H=>{H.stopPropagation(),M(B.id)},"aria-label":j("common.mark_as_read"),className:"shrink-0 rounded-[4px] p-1 text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:_.jsx(Gv,{className:"h-3.5 w-3.5"})})]},B.id)})})]})]})}function Zb(u){return{tasks:u.tasks.map(r=>({type:"task",id:r.id,title:`#${r.id} ${r.description}`,subtitle:`${r.status} · ${r.project_key}`})),workers:(u.workers??[]).map(r=>({type:"worker",id:r.id,title:r.name,subtitle:`${r.hostname} · ${r.status}`})),projects:u.projects.map(r=>({type:"project",id:r.key,title:r.name,subtitle:r.repository}))}}const Kb=300,kh={tasks:nb,workers:Fh,projects:Jv},Jb={tasks:"tasks",workers:"workers",projects:"projects"};function _p({renderTrigger:u}={}){const[r,s]=v.useState(""),[o,f]=v.useState({tasks:[],workers:[],projects:[]}),[m,h]=v.useState(!1),[x,g]=v.useState(!1),[p,j]=v.useState(0),k=v.useRef(null),M=v.useRef(null),X=v.useRef(void 0),B=v.useRef(void 0),q=Fa(),{t:H}=ta(),L=v.useMemo(()=>[...o.tasks,...o.workers,...o.projects],[o]),I=v.useCallback(async $=>{var Pe;if(!$.trim()){f({tasks:[],workers:[],projects:[]});return}(Pe=B.current)==null||Pe.abort();const ue=new AbortController;B.current=ue;try{h(!0);const Je=await Xu.get("web/search",{searchParams:{q:$},signal:ue.signal}).json();f(Zb(Je)),j(0)}catch(Je){if(Je instanceof DOMException&&Je.name==="AbortError")return}finally{ue.signal.aborted||h(!1)}},[]);v.useEffect(()=>(X.current&&clearTimeout(X.current),X.current=setTimeout(()=>I(r),Kb),()=>{X.current&&clearTimeout(X.current)}),[r,I]),v.useEffect(()=>{function $(ue){ue.key==="/"&&!x&&!(ue.target instanceof HTMLInputElement||ue.target instanceof HTMLTextAreaElement)&&(ue.preventDefault(),g(!0)),ue.key==="Escape"&&x&&(ue.preventDefault(),J())}return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[x]),v.useEffect(()=>{x&&setTimeout(()=>{var $;return($=M.current)==null?void 0:$.focus()},50)},[x]);function J(){g(!1),s(""),f({tasks:[],workers:[],projects:[]}),j(0)}function he($){switch(J(),$.type){case"task":q(`/tasks/${$.id}`);break;case"worker":q(`/workers/${$.id}`);break;case"project":q(`/projects/${$.id}`);break}}function pe($){$.key==="ArrowDown"?($.preventDefault(),j(ue=>Math.min(ue+1,L.length-1))):$.key==="ArrowUp"?($.preventDefault(),j(ue=>Math.max(ue-1,0))):$.key==="Enter"&&L[p]&&($.preventDefault(),he(L[p]))}const de=L.length>0;let W=0;return _.jsxs(_.Fragment,{children:[u?u(()=>g(!0)):_.jsxs("button",{type:"button",onClick:()=>g(!0),className:"flex items-center gap-2 rounded-[4px] border border-[var(--border)] bg-[var(--bg-input)] px-3 py-1.5 text-xs text-[var(--text-muted)] transition-colors hover:border-[var(--text-muted)]",children:[_.jsx(Wh,{className:"h-3.5 w-3.5"}),_.jsx("span",{children:H("common.search_placeholder")}),_.jsx("kbd",{className:"ml-2 rounded-[4px] border border-[var(--border)] bg-[var(--bg-primary)] px-1.5 py-0.5 text-[11px] text-[var(--text-muted)]",children:"/"})]}),x&&_.jsx("div",{ref:k,className:"fixed inset-0 z-[100] flex items-start justify-center pt-4 md:pt-[15vh]",style:{backgroundColor:"rgba(0, 0, 0, 0.6)"},onClick:$=>{$.target===k.current&&J()},children:_.jsxs("div",{className:"mx-3 w-full max-w-[640px] rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)] shadow-2xl sm:mx-4 md:mx-0",children:[_.jsxs("div",{className:"flex items-center gap-3 border-b border-[var(--border)] px-4 py-3",children:[_.jsx("span",{className:"text-sm text-[var(--accent)]",children:"/"}),_.jsx("input",{ref:M,type:"text",placeholder:H("common.search_input_placeholder"),value:r,onChange:$=>s($.target.value),onKeyDown:pe,className:"flex-1 bg-transparent text-sm text-[var(--text-primary)] placeholder:text-[var(--text-muted)] outline-none"}),m&&_.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-[var(--border)] border-t-[var(--accent)]"})]}),_.jsx("div",{className:"max-h-[50vh] overflow-y-auto sm:max-h-[60vh] md:max-h-[400px]",children:r.trim()&&!de&&!m?_.jsx("div",{className:"py-10 text-center text-xs text-[var(--text-muted)]",children:H("common.no_search_results",{query:r})}):Object.keys(kh).map($=>{const ue=o[$];if(ue.length===0)return null;const Pe=kh[$],Je=W;return W+=ue.length,_.jsxs("div",{children:[_.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 text-[var(--text-muted)]",children:[_.jsx(Pe,{className:"h-3 w-3"}),_.jsx("span",{className:"text-[11px] lowercase tracking-wider",children:Jb[$]})]}),ue.map((qe,At)=>{const rt=Je+At,De=rt===p;return _.jsxs("button",{type:"button",className:`flex w-full items-center gap-3 px-4 py-2.5 text-left transition-colors ${De?"bg-[var(--accent)]/10 text-[var(--accent)]":"hover:bg-[var(--bg-input)]"}`,onClick:()=>he(qe),onMouseEnter:()=>j(rt),children:[_.jsx("span",{className:`text-xs ${De?"text-[var(--accent)]":"text-[var(--text-muted)]"}`,children:De?">":" "}),_.jsxs("div",{className:"min-w-0 flex-1",children:[_.jsx("p",{className:"truncate text-sm",children:qe.title}),qe.subtitle&&_.jsx("p",{className:"truncate text-xs text-[var(--text-muted)]",children:qe.subtitle})]})]},`${qe.type}-${qe.id}`)})]},$)})}),_.jsxs("div",{className:"hidden items-center gap-4 border-t border-[var(--border)] px-4 py-2 md:flex",children:[_.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-[var(--text-muted)]",children:[_.jsx("kbd",{className:"rounded-[4px] border border-[var(--border)] px-1",children:"↑↓"})," ",H("common.navigate_hint")]}),_.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-[var(--text-muted)]",children:[_.jsx("kbd",{className:"rounded-[4px] border border-[var(--border)] px-1",children:"↵"})," ",H("common.select_hint")]}),_.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-[var(--text-muted)]",children:[_.jsx("kbd",{className:"rounded-[4px] border border-[var(--border)] px-1",children:"esc"})," ",H("common.close_hint")]})]})]})})]})}const $b={danger:"var(--destructive)",warning:"var(--warning)",accent:"var(--accent)"},wh="confirm-dialog-title";function Th(u){return Array.from(u.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'))}function Wb({isOpen:u,onClose:r,onConfirm:s,title:o,message:f,confirmVariant:m="danger",isLoading:h,...x}){const{t:g}=ta(),p=x.confirmLabel??g("common.confirm"),j=x.cancelLabel??g("common.cancel"),k=v.useRef(null),M=v.useRef(null),X=$b[m];v.useEffect(()=>{if(!u)return;M.current=document.activeElement;const q=requestAnimationFrame(()=>{if(k.current){const H=Th(k.current);H.length>0&&H[0].focus()}});return()=>{var H;cancelAnimationFrame(q),(H=M.current)==null||H.focus()}},[u]);const B=v.useCallback(q=>{if(q.key==="Tab"&&k.current){const H=Th(k.current);if(H.length===0)return;const L=H[0],I=H[H.length-1];q.shiftKey?document.activeElement===L&&(q.preventDefault(),I.focus()):document.activeElement===I&&(q.preventDefault(),L.focus())}},[]);return u?_.jsx("div",{onClick:r,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"max(1rem, 10vh)",paddingLeft:"1rem",paddingRight:"1rem",backgroundColor:"var(--modal-backdrop, rgba(12,12,12,0.6))"},children:_.jsxs("div",{ref:k,role:"dialog","aria-modal":"true","aria-labelledby":wh,onClick:q=>q.stopPropagation(),onKeyDown:B,style:{width:"100%",maxWidth:"480px",backgroundColor:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:"4px",padding:"1.5rem"},children:[_.jsx("div",{style:{marginBottom:"1.25rem"},children:_.jsxs("div",{id:wh,style:{color:"var(--accent)",fontSize:"0.875rem",fontWeight:600,display:"flex",alignItems:"center",gap:"0.5rem"},children:[_.jsx(Ih,{style:{width:"1rem",height:"1rem"}}),o]})}),_.jsx("div",{style:{marginBottom:"1.25rem"},children:_.jsx("p",{style:{color:"var(--text-muted)",fontSize:"0.75rem",lineHeight:"1.5"},children:f})}),_.jsxs("div",{style:{display:"flex",gap:"0.75rem"},children:[_.jsx("button",{type:"button",onClick:r,disabled:h,className:"text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:border-[var(--text-muted)]",style:{flex:1,padding:"0.5rem",backgroundColor:"transparent",border:"1px solid var(--border)",borderRadius:"4px",fontSize:"0.75rem",cursor:h?"not-allowed":"pointer",opacity:h?.7:1,transition:"color 0.15s, border-color 0.15s"},children:j}),_.jsx("button",{type:"button",onClick:s,disabled:h,style:{flex:1,padding:"0.5rem",backgroundColor:X,color:"#0C0C0C",border:"none",borderRadius:"4px",fontSize:"0.75rem",fontWeight:600,cursor:h?"not-allowed":"pointer",opacity:h?.7:1},children:h?g("common.processing"):p})]})]})}):null}const yp=v.createContext({setActions:()=>{}});function n1(u){const{setActions:r}=v.useContext(yp);v.useEffect(()=>(r(u),()=>r(null)),[u,r])}const gp=v.createContext({setSubtitle:()=>{}});function i1(u){const{setSubtitle:r}=v.useContext(gp);v.useEffect(()=>(r(u),()=>r(null)),[u,r])}const Fb=[{to:"/home",label:"terminal",icon:Js},{to:"/tasks",label:"tasks",icon:$h},{to:"/dashboard",label:"dashboard",icon:Jh},{to:"/workers",label:"workers",icon:Fh},{to:"/projects",label:"projects",icon:$v},{to:"/access-tokens",label:"access_tokens",icon:Fv}],Ib=[{to:"/docs/cli",label:"cli",icon:Js},{to:"/docs/api",label:"api",icon:Kv},{to:"/docs/skill",label:"skill",icon:lb}],Pb=[{to:"/admin",label:"admin",icon:ab}],e0=[{to:"/home",label:"terminal",icon:Js},{to:"/tasks",label:"tasks",icon:$h},{to:"/dashboard",label:"dashboard",icon:Jh}],Uu={"/home":{title:"common.breadcrumb_terminal",subtitle:"common.breadcrumb_terminal_sub"},"/dashboard":{title:"common.breadcrumb_dashboard",subtitle:"common.breadcrumb_dashboard_sub"},"/tasks":{title:"common.breadcrumb_tasks",subtitle:"common.breadcrumb_tasks_sub"},"/workers":{title:"common.breadcrumb_workers",subtitle:"common.breadcrumb_workers_sub"},"/projects":{title:"common.breadcrumb_projects",subtitle:"common.breadcrumb_projects_sub"},"/admin":{title:"common.breadcrumb_admin",subtitle:"common.breadcrumb_admin_sub"},"/profile":{title:"common.breadcrumb_profile",subtitle:"common.breadcrumb_profile_sub"},"/access-tokens":{title:"common.breadcrumb_access_tokens",subtitle:"common.breadcrumb_access_tokens_sub"},"/docs":{title:"common.breadcrumb_docs",subtitle:"common.breadcrumb_docs_sub"},"/docs/cli":{title:"common.breadcrumb_docs_cli",subtitle:"common.breadcrumb_docs_cli_sub"},"/docs/api":{title:"common.breadcrumb_docs_api",subtitle:"common.breadcrumb_docs_api_sub"},"/docs/skill":{title:"common.breadcrumb_docs_skill",subtitle:"common.breadcrumb_docs_skill_sub"}};function t0(u){const{t:r}=ta();if(Uu[u]){const o=Uu[u];return{title:r(o.title),subtitle:r(o.subtitle)}}const s="/"+u.split("/").filter(Boolean)[0];if(Uu[s]){const o=Uu[s],f=u.split("/").filter(Boolean).slice(1).join(" / ");return{title:r(o.title),subtitle:f||r(o.subtitle)}}return{title:u.slice(1).replace(/\//g," // ")||"home"}}function a0(u,r){return u==="/home"?r==="/home":u==="/dashboard"?r==="/dashboard":r.startsWith(u)}function l0(){const u=yt(),{t:r}=ta(),s={terminal:r("terminal_home.title"),dashboard:r("dashboard.title"),tasks:r("tasks.title"),workers:r("workers.title")};return _.jsxs("nav",{className:"flex items-center justify-around border-t border-[var(--border)] bg-[var(--bg-card)] md:hidden",style:{height:60,paddingTop:8,paddingBottom:"env(safe-area-inset-bottom, 0px)"},children:[e0.map(({to:o,label:f,icon:m})=>{const h=a0(o,u.pathname);return _.jsxs(Ks,{to:o,className:"flex flex-1 flex-col items-center gap-1",children:[_.jsx(m,{size:18,className:h?"text-[var(--accent)]":"text-[var(--text-muted)]"}),_.jsx("span",{className:`text-[11px] lowercase ${h?"font-bold text-[var(--accent)]":"text-[var(--text-muted)]"}`,children:s[f]??f})]},o)}),_.jsx(_p,{renderTrigger:o=>_.jsxs("button",{type:"button",onClick:o,className:"flex flex-1 flex-col items-center gap-1",children:[_.jsx(Wh,{size:18,className:"text-[var(--text-muted)]"}),_.jsx("span",{className:"text-[11px] lowercase text-[var(--text-muted)]",children:r("common.search_placeholder")})]})})]})}function n0(){const u=Fa(),{t:r}=ta();return _.jsxs("header",{className:"flex items-center justify-between border-b border-[var(--border)] bg-[var(--bg-card)] px-4 md:hidden",style:{height:"calc(56px + env(safe-area-inset-top, 0px))",minHeight:"calc(56px + env(safe-area-inset-top, 0px))",paddingTop:"env(safe-area-inset-top, 0px)"},children:[_.jsxs("button",{onClick:()=>u("/home"),className:"flex items-center gap-2",style:{background:"none",border:"none",padding:0},children:[_.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-[4px] bg-[var(--accent)]",children:_.jsx("span",{className:"text-sm font-semibold",style:{color:"#0C0C0C"},children:"~"})}),_.jsx("span",{className:"text-sm font-bold lowercase text-[var(--text-primary)]",children:r("common.overlord")})]}),_.jsxs("div",{className:"flex items-center gap-1",children:[_.jsx("button",{onClick:()=>u("/profile"),className:"p-2 text-[var(--text-secondary)] transition-colors hover:text-[var(--text-primary)]","aria-label":r("common.profile"),children:_.jsx(ub,{size:18})}),_.jsx(pp,{}),_.jsx(lp,{})]})]})}function As({label:u,items:r,collapsed:s}){return _.jsxs("div",{className:"mt-4 first:mt-0",children:[!s&&_.jsx("div",{className:"mb-2 px-3 text-xs lowercase",style:{color:"var(--text-muted)"},children:u}),r.map(({to:o,label:f,icon:m})=>_.jsx(Ks,{to:o,className:({isActive:h})=>`flex items-center text-sm lowercase transition-colors ${s?"justify-center py-3":"gap-2.5 px-3 py-1.5"} ${h?"text-[var(--accent)] bg-[var(--accent)]/5":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:({isActive:h})=>_.jsxs(_.Fragment,{children:[_.jsx(m,{size:14,style:{flexShrink:0}}),!s&&_.jsx("span",{children:h?`> ${f}`:` ${f}`})]})},o))]})}function i0(){const{user:u,logout:r}=xa(),s=Fa(),[o,f]=v.useState(!1),m=fb(),{t:h}=ta(),{sidebarCollapsed:x,toggleSidebar:g}=mb();function p(){r(),s("/login")}return _.jsxs("aside",{className:"hidden md:flex flex-col border-r border-[var(--border)] transition-[width,min-width] duration-300 overflow-hidden",style:{width:x?56:240,minWidth:x?56:240,backgroundColor:"var(--bg-card)"},children:[_.jsx("div",{className:"flex items-center px-5",style:{height:48},children:_.jsxs("button",{onClick:()=>s("/home"),className:"flex items-center gap-2.5",style:{background:"none",border:"none",padding:0},children:[_.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-[4px] bg-[var(--accent)]",style:{flexShrink:0},children:_.jsx("span",{className:"text-lg font-semibold",style:{color:"#0C0C0C"},children:"~"})}),!x&&_.jsx("span",{className:"text-base font-bold lowercase tracking-tight",style:{color:"var(--text-primary)"},children:h("common.overlord")})]})}),_.jsxs("nav",{className:"flex-1 px-3 pt-2",children:[_.jsx(As,{label:h("common.navigation"),items:Fb,collapsed:x}),_.jsx(As,{label:h("common.docs_section"),items:Ib,collapsed:x}),m&&_.jsx(As,{label:h("common.admin_section"),items:Pb,collapsed:x})]}),_.jsx("div",{className:`px-3 py-1 ${x?"flex justify-center":""}`,children:_.jsx("button",{onClick:g,className:"flex items-center justify-center w-full py-1.5 rounded-[4px] text-[var(--text-secondary)] transition-colors hover:text-[var(--accent)] hover:bg-[var(--accent)]/5","aria-label":x?"expand sidebar":"collapse sidebar",children:x?_.jsx(Vv,{size:14}):_.jsx(Xv,{size:14})})}),_.jsx("div",{className:"border-t border-[var(--border)] p-3",children:_.jsxs("div",{className:`flex items-center py-2 ${x?"justify-center":"gap-3 px-3"}`,children:[_.jsx("button",{onClick:()=>s("/profile"),className:"flex h-7 w-7 items-center justify-center text-xs font-bold text-black transition-opacity hover:opacity-80",style:{backgroundColor:"var(--accent)",borderRadius:4,flexShrink:0},title:h("common.profile"),children:((u==null?void 0:u.username)??"u")[0].toUpperCase()}),!x&&_.jsxs(_.Fragment,{children:[_.jsxs("button",{onClick:()=>s("/profile"),className:"min-w-0 flex-1 text-left transition-colors hover:opacity-80",title:h("common.profile"),children:[_.jsx("div",{className:"truncate text-sm lowercase",style:{color:"var(--text-primary)"},children:(u==null?void 0:u.username)??"user"}),_.jsx("div",{className:"truncate text-xs lowercase",style:{color:"var(--text-muted)"},children:(u==null?void 0:u.role)??"user"})]}),_.jsx("button",{onClick:()=>f(!0),className:"p-1 text-[var(--text-secondary)] transition-colors hover:text-[var(--accent)]","aria-label":h("common.log_out"),children:_.jsx(Pv,{size:14})})]})]})}),_.jsx(Wb,{isOpen:o,onClose:()=>f(!1),onConfirm:p,title:h("common.logout_title"),message:h("common.logout_message"),confirmLabel:h("common.logout"),confirmVariant:"warning"})]})}function u0({headerActions:u,subtitleOverride:r}){const s=yt(),{title:o,subtitle:f}=t0(s.pathname),m=r??f;return _.jsxs("header",{className:"hidden md:flex items-center justify-between border-b border-[var(--border)] px-5",style:{height:48,minHeight:48,backgroundColor:"var(--bg-card)"},children:[_.jsxs("div",{className:"text-sm lowercase",children:[_.jsx("span",{style:{color:"var(--text-primary)"},children:o}),m&&_.jsxs("span",{style:{color:"var(--text-muted)"},children:[" ","// ",m]})]}),_.jsxs("div",{className:"flex items-center gap-3",children:[u,_.jsxs("div",{className:"flex items-center gap-1",children:[_.jsx(_p,{}),_.jsx(pp,{}),_.jsx(lp,{})]})]})]})}function r0(){const[u,r]=v.useState(null),[s,o]=v.useState(null),m=yt().pathname==="/home";return v.useEffect(()=>pb.getState().init(),[]),_.jsxs("div",{className:"flex font-mono",style:{height:"100dvh",minHeight:"100vh"},children:[_.jsx(i0,{}),_.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[_.jsx(n0,{}),_.jsx(u0,{headerActions:u,subtitleOverride:s}),_.jsx("main",{className:m?"flex-1 overflow-hidden bg-[var(--bg-primary)] pb-[calc(60px+env(safe-area-inset-bottom,0px))] md:pb-0":"flex-1 overflow-auto bg-[var(--bg-primary)] p-4 pb-[calc(60px+env(safe-area-inset-bottom,0px)+0.5rem)] md:p-6 md:pb-6",children:_.jsx(yp.Provider,{value:{setActions:r},children:_.jsx(gp.Provider,{value:{setSubtitle:o},children:_.jsx(tv,{})})})}),_.jsx(l0,{})]})]})}function Rh(u){var s;const r=(s=u.state)==null?void 0:s.from;return r?{from:r}:{from:{pathname:u.pathname,search:u.search}}}function li({children:u,requireAdmin:r=!1}){const{accessToken:s,user:o,requireTotpSetup:f,initializing:m}=xa(),h=yt();if(m)return _.jsx("div",{className:"flex h-screen items-center justify-center",children:_.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-[var(--border)] border-t-[var(--accent)]"})});if(!s)return _.jsx(ni,{to:"/login",state:Rh(h),replace:!0});if(f){const x=Rh(h);return h.pathname!=="/totp-setup"&&h.pathname!=="/bind"?_.jsx(ni,{to:"/totp-setup",state:x,replace:!0}):h.pathname==="/bind"?(sessionStorage.setItem("overlord_bind_redirect",JSON.stringify(x.from)),_.jsx(ni,{to:"/totp-setup",state:x,replace:!0})):_.jsx(_.Fragment,{children:u})}return r&&(o==null?void 0:o.role)!==Ph.ADMIN?_.jsx(ni,{to:"/home",replace:!0}):_.jsx(_.Fragment,{children:u})}function o0({children:u}){const{theme:r,resolved:s,setResolved:o}=ap();return v.useEffect(()=>{if(r!=="system"){o(r);return}const f=window.matchMedia("(prefers-color-scheme: dark)");o(f.matches?"dark":"light");const m=h=>o(h.matches?"dark":"light");return f.addEventListener("change",m),()=>f.removeEventListener("change",m)},[r,o]),v.useEffect(()=>{document.documentElement.classList.toggle("dark",s==="dark")},[s]),_.jsx(_.Fragment,{children:u})}class s0 extends v.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}render(){var r;return this.state.hasError?_.jsxs("div",{className:"flex h-full min-h-[300px] flex-col items-center justify-center gap-4 p-8 font-mono",children:[_.jsx("span",{className:"text-lg font-bold text-[var(--destructive)]",children:Lu("common.runtime_error")}),_.jsx("p",{className:"max-w-md text-center text-xs text-[var(--text-muted)]",children:((r=this.state.error)==null?void 0:r.message)||Lu("common.an_unexpected_error_occurred")}),_.jsxs("button",{onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},className:"flex items-center gap-1.5 rounded-[4px] border border-[var(--border)] px-4 py-2 text-xs text-[var(--text-secondary)] hover:text-[var(--text-primary)]",children:[_.jsx(tb,{className:"h-3.5 w-3.5"}),Lu("common.reload")]})]}):this.props.children}}function c0({isOpen:u}){const r=Fa(),{logout:s,setSessionExpired:o}=xa(),{t:f}=ta();function m(){s(),o(!1),r("/login")}return u?_.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[_.jsx("div",{className:"fixed inset-0 bg-[var(--modal-backdrop)]"}),_.jsx("div",{className:"relative z-10 w-full max-w-[480px] rounded-[4px] border border-[var(--border)] bg-[var(--bg-card)]",children:_.jsxs("div",{className:"flex flex-col items-center px-8 py-10",children:[_.jsx("div",{className:"mb-5 flex h-14 w-14 items-center justify-center rounded-full bg-[var(--warning)]/10",children:_.jsx(Iv,{className:"h-7 w-7 text-[var(--warning)]"})}),_.jsx("h3",{className:"mb-2 text-base font-bold text-[var(--text-primary)]",children:f("auth.session_expired")}),_.jsx("p",{className:"mb-8 text-center text-xs text-[var(--text-secondary)]",children:f("auth.session_expired_message")}),_.jsx("button",{type:"button",className:"w-full rounded-[4px] bg-[var(--accent)] px-3 py-2.5 text-xs font-medium text-black hover:opacity-90 transition-opacity",onClick:m,children:f("auth.go_to_login")})]})})]}):null}const jh=5;let ba=[];const Ls=new Set;function vp(){Ls.forEach(u=>u())}function f0(){return`${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function Wa(u,r,s=4e3){const o=f0();return ba=[...ba,{id:o,variant:u,message:r,duration:s}],ba.length>jh&&(ba=ba.slice(ba.length-jh)),vp(),o}Wa.success=(u,r)=>Wa("success",u,r);Wa.error=(u,r)=>Wa("error",u,r);Wa.warning=(u,r)=>Wa("warning",u,r);Wa.info=(u,r)=>Wa("info",u,r);function d0(u){ba=ba.filter(r=>r.id!==u),vp()}function m0(){const[,u]=v.useState(0);return v.useEffect(()=>{const r=()=>u(s=>s+1);return Ls.add(r),()=>{Ls.delete(r)}},[]),ba}const h0={success:{icon:Qv,borderColor:"var(--accent)"},error:{icon:Zv,borderColor:"var(--destructive)"},warning:{icon:Ih,borderColor:"var(--warning)"},info:{icon:Wv,borderColor:"var(--info)"}};function p0({item:u}){const r=h0[u.variant],s=r.icon,{t:o}=ta(),f=v.useCallback(()=>d0(u.id),[u.id]);return v.useEffect(()=>{if(!u.duration)return;const m=setTimeout(f,u.duration);return()=>clearTimeout(m)},[u.duration,f]),_.jsxs("div",{className:"flex items-center gap-3 rounded-[4px] bg-[var(--bg-card)] px-4 py-3 shadow-lg",style:{borderLeft:`3px solid ${r.borderColor}`},role:"alert",children:[_.jsx(s,{className:"h-4 w-4 shrink-0",style:{color:r.borderColor}}),_.jsx("p",{className:"flex-1 text-xs text-[var(--text-primary)]",children:u.message}),_.jsx("button",{onClick:f,className:"shrink-0 rounded-[4px] p-0.5 text-[var(--text-muted)] transition-colors hover:text-[var(--text-primary)]","aria-label":o("common.dismiss_notification"),children:_.jsx(rb,{className:"h-3.5 w-3.5"})})]})}function _0(){const u=m0();return u.length===0?null:_.jsx("div",{className:"pointer-events-none fixed right-4 top-4 z-[9999] flex w-80 max-w-[calc(100vw-2rem)] flex-col gap-2",children:u.map(r=>_.jsx("div",{className:"pointer-events-auto",children:_.jsx(p0,{item:r})},r.id))})}const y0=v.lazy(()=>Ce(()=>import("./LandingPage-CqS0E2eC.js"),__vite__mapDeps([0,1,2,3,4,5]))),g0=v.lazy(()=>Ce(()=>import("./LoginPage-DDXkdcz_.js"),[])),v0=v.lazy(()=>Ce(()=>import("./TotpSetupPage-MSCCURj9.js"),[])),b0=v.lazy(()=>Ce(()=>import("./NotFoundPage-D5x5BrlX.js"),[])),x0=v.lazy(()=>Ce(()=>import("./HomePage-D4yv4orb.js"),__vite__mapDeps([6,7,8,9,10,11,12,13,14,1]))),S0=v.lazy(()=>Ce(()=>import("./TerminalHomePage-BwXJjr-a.js"),__vite__mapDeps([15,16,17,18,10,11,19,8,12,14,20,2,21]))),E0=v.lazy(()=>Ce(()=>import("./TaskListPage-Dh59ldSZ.js"),__vite__mapDeps([22,16,7,8,12,13,19,5,23,9,20]))),k0=v.lazy(()=>Ce(()=>import("./TaskDetailPage-CfwEj1hy.js"),__vite__mapDeps([24,16,17,18,12,19,8,25,26,27,28]))),w0=v.lazy(()=>Ce(()=>import("./WorkerListPage-CserMjGO.js"),__vite__mapDeps([29,8,30,31,32,33,21,5,28,19,23,9,14,20]))),T0=v.lazy(()=>Ce(()=>import("./WorkerDetailPage-R2veIzKo.js"),__vite__mapDeps([34,12,8,35,30,14,36,25]))),R0=v.lazy(()=>Ce(()=>import("./WorkerSetupGuidePage-SqO2lzVa.js"),__vite__mapDeps([31,32,33,21]))),j0=v.lazy(()=>Ce(()=>import("./ProjectListPage-Bz7I2D0H.js"),__vite__mapDeps([37,19,23,9,12,14,20]))),A0=v.lazy(()=>Ce(()=>import("./ProjectDetailPage-DJexg49z.js"),__vite__mapDeps([38,39,19,12,8,35,14,40,36,20]))),z0=v.lazy(()=>Ce(()=>import("./EditProjectPage-7WCsNltj.js"),__vite__mapDeps([41,19,39,20]))),C0=v.lazy(()=>Ce(()=>import("./PipelineEditorPage-y2-Q8ofQ.js"),__vite__mapDeps([42,19,13]))),O0=v.lazy(()=>Ce(()=>import("./ProfilePage-DN7usHOi.js"),__vite__mapDeps([43,44,35,14]))),N0=v.lazy(()=>Ce(()=>import("./BindPlatformPage-CTqzpOmt.js"),[])),D0=v.lazy(()=>Ce(()=>import("./AccessTokensPage-DPQB2fbi.js"),__vite__mapDeps([45,19,23,9,12,14,20,5,36]))),M0=v.lazy(()=>Ce(()=>import("./CliReferencePage-C8GmlwUz.js"),__vite__mapDeps([46,47,5,20]))),U0=v.lazy(()=>Ce(()=>import("./ApiReferencePage-CiGvbLxL.js"),__vite__mapDeps([48,47,5,20]))),q0=v.lazy(()=>Ce(()=>import("./SkillPage-BInwZTQh.js"),__vite__mapDeps([49,27,5]))),H0=v.lazy(()=>Ce(()=>import("./AdminPage-BqVelYNu.js"),__vite__mapDeps([50,4,3,51,33]))),L0=v.lazy(()=>Ce(()=>import("./DeveloperManage-r6y2AoB4.js"),__vite__mapDeps([52,19,44,23,9,14,8,20,4,40,26]))),B0=v.lazy(()=>Ce(()=>import("./BotManage-CIR0rrK7.js"),__vite__mapDeps([53,19,36,20,23,9,14,8,3,40]))),Y0=v.lazy(()=>Ce(()=>import("./TokenManage-B0Cpv6SO.js"),__vite__mapDeps([54,32,5,27,23,9,14,8,20]))),G0=v.lazy(()=>Ce(()=>import("./AuditLogPage-DSo4jVYm.js"),__vite__mapDeps([55,19,23,9,51,11]))),X0=v.lazy(()=>Ce(()=>import("./SettingsPage-HaUCcsgl.js"),[]));function V0(){return _.jsx("div",{className:"flex h-full items-center justify-center",children:_.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-[var(--border)] border-t-[var(--accent)]"})})}function Q0(){const u=xa(r=>r.sessionExpired);return _.jsxs(o0,{children:[_.jsx(_0,{}),_.jsx(s0,{children:_.jsxs(jv,{children:[_.jsx(c0,{isOpen:u}),_.jsx(v.Suspense,{fallback:_.jsx(V0,{}),children:_.jsxs(lv,{children:[_.jsx(xe,{path:"/",element:_.jsx(y0,{})}),_.jsx(xe,{path:"/login",element:_.jsx(g0,{})}),_.jsx(xe,{path:"/totp-setup",element:_.jsx(li,{children:_.jsx(v0,{})})}),_.jsx(xe,{path:"/bind",element:_.jsx(li,{children:_.jsx(N0,{})})}),_.jsxs(xe,{element:_.jsx(li,{children:_.jsx(r0,{})}),children:[_.jsx(xe,{path:"/home",element:_.jsx(S0,{})}),_.jsx(xe,{path:"/dashboard",element:_.jsx(x0,{})}),_.jsx(xe,{path:"/tasks",element:_.jsx(E0,{})}),_.jsx(xe,{path:"/tasks/:id",element:_.jsx(k0,{})}),_.jsx(xe,{path:"/workers",element:_.jsx(w0,{})}),_.jsx(xe,{path:"/workers/setup",element:_.jsx(li,{requireAdmin:!0,children:_.jsx(R0,{})})}),_.jsx(xe,{path:"/workers/:id",element:_.jsx(T0,{})}),_.jsx(xe,{path:"/projects",element:_.jsx(j0,{})}),_.jsx(xe,{path:"/projects/:key",element:_.jsx(A0,{})}),_.jsx(xe,{path:"/projects/:key/edit",element:_.jsx(z0,{})}),_.jsx(xe,{path:"/projects/:key/pipeline",element:_.jsx(C0,{})}),_.jsx(xe,{path:"/profile",element:_.jsx(O0,{})}),_.jsx(xe,{path:"/access-tokens",element:_.jsx(D0,{})}),_.jsx(xe,{path:"/docs/cli",element:_.jsx(M0,{})}),_.jsx(xe,{path:"/docs/api",element:_.jsx(U0,{})}),_.jsx(xe,{path:"/docs/skill",element:_.jsx(q0,{})}),_.jsxs(xe,{path:"/admin",element:_.jsx(li,{requireAdmin:!0,children:_.jsx(H0,{})}),children:[_.jsx(xe,{index:!0,element:_.jsx(ni,{to:"developers",replace:!0})}),_.jsx(xe,{path:"developers",element:_.jsx(L0,{})}),_.jsx(xe,{path:"bots",element:_.jsx(B0,{})}),_.jsx(xe,{path:"tokens",element:_.jsx(Y0,{})}),_.jsx(xe,{path:"audit-logs",element:_.jsx(G0,{})}),_.jsx(xe,{path:"settings",element:_.jsx(X0,{})})]})]}),_.jsx(xe,{path:"*",element:_.jsx(b0,{})})]})})]})})]})}xa.getState().initialize();tg.createRoot(document.getElementById("root")).render(_.jsx(v.StrictMode,{children:_.jsx(Q0,{})}));export{I0 as A,P0 as B,Gv as C,Ph as D,Ks as E,t1 as F,e1 as G,Ns as H,Zv as I,a1 as J,Fv as K,Qh as L,ni as N,tv as O,F0 as P,ju as R,Fh as S,lp as T,W0 as W,rb as X,ta as a,Js as b,je as c,ab as d,Fa as e,yt as f,Xu as g,fb as h,pb as i,_ as j,Wu as k,$0 as l,i1 as m,n1 as n,Wh as o,$h as p,l1 as q,v as r,Wb as s,Wa as t,xa as u,K0 as v,Qv as w,Ih as x,tb as y,J0 as z};