causantic 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (457) hide show
  1. package/README.md +53 -66
  2. package/config.schema.json +12 -87
  3. package/dist/cli/commands/archive.d.ts.map +1 -1
  4. package/dist/cli/commands/archive.js.map +1 -1
  5. package/dist/cli/commands/benchmark-collection.d.ts.map +1 -1
  6. package/dist/cli/commands/benchmark-collection.js.map +1 -1
  7. package/dist/cli/commands/encryption.d.ts.map +1 -1
  8. package/dist/cli/commands/encryption.js.map +1 -1
  9. package/dist/cli/commands/hook.d.ts.map +1 -1
  10. package/dist/cli/commands/hook.js.map +1 -1
  11. package/dist/cli/commands/init.d.ts.map +1 -1
  12. package/dist/cli/commands/init.js +51 -43
  13. package/dist/cli/commands/init.js.map +1 -1
  14. package/dist/cli/commands/maintenance.d.ts.map +1 -1
  15. package/dist/cli/commands/maintenance.js +10 -3
  16. package/dist/cli/commands/maintenance.js.map +1 -1
  17. package/dist/cli/commands/serve.d.ts.map +1 -1
  18. package/dist/cli/commands/serve.js +3 -3
  19. package/dist/cli/commands/serve.js.map +1 -1
  20. package/dist/cli/skill-templates.d.ts.map +1 -1
  21. package/dist/cli/skill-templates.js +223 -153
  22. package/dist/cli/skill-templates.js.map +1 -1
  23. package/dist/cli/uninstall.d.ts.map +1 -1
  24. package/dist/cli/uninstall.js +4 -1
  25. package/dist/cli/uninstall.js.map +1 -1
  26. package/dist/clusters/cluster-manager.d.ts +23 -0
  27. package/dist/clusters/cluster-manager.d.ts.map +1 -1
  28. package/dist/clusters/cluster-manager.js +69 -2
  29. package/dist/clusters/cluster-manager.js.map +1 -1
  30. package/dist/clusters/cluster-refresh.d.ts.map +1 -1
  31. package/dist/clusters/cluster-refresh.js +5 -1
  32. package/dist/clusters/cluster-refresh.js.map +1 -1
  33. package/dist/clusters/hdbscan/cluster-extraction.d.ts.map +1 -1
  34. package/dist/clusters/hdbscan/cluster-extraction.js +1 -2
  35. package/dist/clusters/hdbscan/cluster-extraction.js.map +1 -1
  36. package/dist/clusters/hdbscan/hierarchy.d.ts.map +1 -1
  37. package/dist/clusters/hdbscan/hierarchy.js +1 -3
  38. package/dist/clusters/hdbscan/hierarchy.js.map +1 -1
  39. package/dist/clusters/hdbscan/incremental.d.ts.map +1 -1
  40. package/dist/clusters/hdbscan/incremental.js.map +1 -1
  41. package/dist/clusters/hdbscan/probabilities.d.ts +1 -1
  42. package/dist/clusters/hdbscan/probabilities.d.ts.map +1 -1
  43. package/dist/clusters/hdbscan/probabilities.js +1 -1
  44. package/dist/clusters/hdbscan/probabilities.js.map +1 -1
  45. package/dist/clusters/hdbscan.d.ts.map +1 -1
  46. package/dist/clusters/hdbscan.js +3 -5
  47. package/dist/clusters/hdbscan.js.map +1 -1
  48. package/dist/config/loader.d.ts +10 -15
  49. package/dist/config/loader.d.ts.map +1 -1
  50. package/dist/config/loader.js +40 -71
  51. package/dist/config/loader.js.map +1 -1
  52. package/dist/config/memory-config.d.ts +2 -45
  53. package/dist/config/memory-config.d.ts.map +1 -1
  54. package/dist/config/memory-config.js +6 -109
  55. package/dist/config/memory-config.js.map +1 -1
  56. package/dist/core/index.d.ts +1 -1
  57. package/dist/core/index.d.ts.map +1 -1
  58. package/dist/core/lexical-features.d.ts.map +1 -1
  59. package/dist/core/lexical-features.js +141 -20
  60. package/dist/core/lexical-features.js.map +1 -1
  61. package/dist/dashboard/client/assets/index-DdImwNQ0.css +1 -0
  62. package/dist/dashboard/client/assets/index-Ofx8zngH.js +166 -0
  63. package/dist/dashboard/client/index.html +2 -2
  64. package/dist/dashboard/routes/benchmark-collection.d.ts.map +1 -1
  65. package/dist/dashboard/routes/benchmark-collection.js +2 -6
  66. package/dist/dashboard/routes/benchmark-collection.js.map +1 -1
  67. package/dist/dashboard/routes/chain.d.ts +3 -0
  68. package/dist/dashboard/routes/chain.d.ts.map +1 -0
  69. package/dist/dashboard/routes/chain.js +74 -0
  70. package/dist/dashboard/routes/chain.js.map +1 -0
  71. package/dist/dashboard/routes/chunks.d.ts.map +1 -1
  72. package/dist/dashboard/routes/chunks.js +16 -1
  73. package/dist/dashboard/routes/chunks.js.map +1 -1
  74. package/dist/dashboard/routes/graph.d.ts.map +1 -1
  75. package/dist/dashboard/routes/graph.js.map +1 -1
  76. package/dist/dashboard/routes/search.d.ts.map +1 -1
  77. package/dist/dashboard/routes/search.js.map +1 -1
  78. package/dist/dashboard/routes/stats.d.ts.map +1 -1
  79. package/dist/dashboard/routes/stats.js +8 -6
  80. package/dist/dashboard/routes/stats.js.map +1 -1
  81. package/dist/dashboard/routes/timeline.d.ts +3 -0
  82. package/dist/dashboard/routes/timeline.d.ts.map +1 -0
  83. package/dist/dashboard/routes/timeline.js +90 -0
  84. package/dist/dashboard/routes/timeline.js.map +1 -0
  85. package/dist/dashboard/server.d.ts.map +1 -1
  86. package/dist/dashboard/server.js +4 -0
  87. package/dist/dashboard/server.js.map +1 -1
  88. package/dist/eval/annotation-schema.d.ts.map +1 -1
  89. package/dist/eval/annotation-schema.js +2 -5
  90. package/dist/eval/annotation-schema.js.map +1 -1
  91. package/dist/eval/benchmark-runner.d.ts.map +1 -1
  92. package/dist/eval/benchmark-runner.js +2 -2
  93. package/dist/eval/benchmark-runner.js.map +1 -1
  94. package/dist/eval/cluster-evaluator.d.ts.map +1 -1
  95. package/dist/eval/cluster-evaluator.js.map +1 -1
  96. package/dist/eval/collection-benchmark/chain-quality.d.ts +15 -0
  97. package/dist/eval/collection-benchmark/chain-quality.d.ts.map +1 -0
  98. package/dist/eval/collection-benchmark/chain-quality.js +60 -0
  99. package/dist/eval/collection-benchmark/chain-quality.js.map +1 -0
  100. package/dist/eval/collection-benchmark/health.d.ts.map +1 -1
  101. package/dist/eval/collection-benchmark/health.js +2 -2
  102. package/dist/eval/collection-benchmark/health.js.map +1 -1
  103. package/dist/eval/collection-benchmark/history.d.ts.map +1 -1
  104. package/dist/eval/collection-benchmark/history.js +14 -11
  105. package/dist/eval/collection-benchmark/history.js.map +1 -1
  106. package/dist/eval/collection-benchmark/latency.d.ts.map +1 -1
  107. package/dist/eval/collection-benchmark/latency.js +14 -11
  108. package/dist/eval/collection-benchmark/latency.js.map +1 -1
  109. package/dist/eval/collection-benchmark/reporter.d.ts.map +1 -1
  110. package/dist/eval/collection-benchmark/reporter.js +18 -28
  111. package/dist/eval/collection-benchmark/reporter.js.map +1 -1
  112. package/dist/eval/collection-benchmark/retrieval.d.ts.map +1 -1
  113. package/dist/eval/collection-benchmark/retrieval.js +14 -8
  114. package/dist/eval/collection-benchmark/retrieval.js.map +1 -1
  115. package/dist/eval/collection-benchmark/runner.d.ts +3 -3
  116. package/dist/eval/collection-benchmark/runner.d.ts.map +1 -1
  117. package/dist/eval/collection-benchmark/runner.js +46 -37
  118. package/dist/eval/collection-benchmark/runner.js.map +1 -1
  119. package/dist/eval/collection-benchmark/sampler.d.ts.map +1 -1
  120. package/dist/eval/collection-benchmark/sampler.js +14 -12
  121. package/dist/eval/collection-benchmark/sampler.js.map +1 -1
  122. package/dist/eval/collection-benchmark/tuning.d.ts.map +1 -1
  123. package/dist/eval/collection-benchmark/tuning.js +56 -71
  124. package/dist/eval/collection-benchmark/tuning.js.map +1 -1
  125. package/dist/eval/collection-benchmark/types.d.ts +12 -24
  126. package/dist/eval/collection-benchmark/types.d.ts.map +1 -1
  127. package/dist/eval/corpus-builder.d.ts.map +1 -1
  128. package/dist/eval/corpus-builder.js.map +1 -1
  129. package/dist/eval/experiments/boilerplate-filter.d.ts.map +1 -1
  130. package/dist/eval/experiments/boilerplate-filter.js.map +1 -1
  131. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.d.ts.map +1 -1
  132. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.js +3 -5
  133. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.js.map +1 -1
  134. package/dist/eval/experiments/code-focused-mode.d.ts.map +1 -1
  135. package/dist/eval/experiments/code-focused-mode.js +1 -1
  136. package/dist/eval/experiments/code-focused-mode.js.map +1 -1
  137. package/dist/eval/experiments/edge-decay/decay-curves.d.ts +25 -19
  138. package/dist/eval/experiments/edge-decay/decay-curves.d.ts.map +1 -1
  139. package/dist/eval/experiments/edge-decay/decay-curves.js +47 -40
  140. package/dist/eval/experiments/edge-decay/decay-curves.js.map +1 -1
  141. package/dist/eval/experiments/edge-decay/index.d.ts +6 -4
  142. package/dist/eval/experiments/edge-decay/index.d.ts.map +1 -1
  143. package/dist/eval/experiments/edge-decay/index.js +5 -3
  144. package/dist/eval/experiments/edge-decay/index.js.map +1 -1
  145. package/dist/eval/experiments/edge-decay/presets.d.ts +14 -4
  146. package/dist/eval/experiments/edge-decay/presets.d.ts.map +1 -1
  147. package/dist/eval/experiments/edge-decay/presets.js +73 -68
  148. package/dist/eval/experiments/edge-decay/presets.js.map +1 -1
  149. package/dist/eval/experiments/edge-decay/reference-extractor.d.ts +2 -1
  150. package/dist/eval/experiments/edge-decay/reference-extractor.d.ts.map +1 -1
  151. package/dist/eval/experiments/edge-decay/reference-extractor.js +26 -40
  152. package/dist/eval/experiments/edge-decay/reference-extractor.js.map +1 -1
  153. package/dist/eval/experiments/edge-decay/reference-types.d.ts +24 -17
  154. package/dist/eval/experiments/edge-decay/reference-types.d.ts.map +1 -1
  155. package/dist/eval/experiments/edge-decay/reference-types.js +3 -0
  156. package/dist/eval/experiments/edge-decay/reference-types.js.map +1 -1
  157. package/dist/eval/experiments/edge-decay/retrieval-ranking.d.ts +8 -8
  158. package/dist/eval/experiments/edge-decay/retrieval-ranking.d.ts.map +1 -1
  159. package/dist/eval/experiments/edge-decay/retrieval-ranking.js +77 -133
  160. package/dist/eval/experiments/edge-decay/retrieval-ranking.js.map +1 -1
  161. package/dist/eval/experiments/edge-decay/run-experiments.d.ts +7 -3
  162. package/dist/eval/experiments/edge-decay/run-experiments.d.ts.map +1 -1
  163. package/dist/eval/experiments/edge-decay/run-experiments.js +71 -52
  164. package/dist/eval/experiments/edge-decay/run-experiments.js.map +1 -1
  165. package/dist/eval/experiments/edge-decay/simulate.d.ts +1 -1
  166. package/dist/eval/experiments/edge-decay/simulate.d.ts.map +1 -1
  167. package/dist/eval/experiments/edge-decay/simulate.js +7 -19
  168. package/dist/eval/experiments/edge-decay/simulate.js.map +1 -1
  169. package/dist/eval/experiments/hdbscan-sweep.d.ts.map +1 -1
  170. package/dist/eval/experiments/hdbscan-sweep.js +2 -6
  171. package/dist/eval/experiments/hdbscan-sweep.js.map +1 -1
  172. package/dist/eval/experiments/single-model-run.d.ts.map +1 -1
  173. package/dist/eval/experiments/single-model-run.js +2 -2
  174. package/dist/eval/experiments/single-model-run.js.map +1 -1
  175. package/dist/eval/experiments/thinking-ablation.d.ts.map +1 -1
  176. package/dist/eval/experiments/thinking-ablation.js +1 -1
  177. package/dist/eval/experiments/thinking-ablation.js.map +1 -1
  178. package/dist/eval/experiments/topic-continuity/hybrid-classifier.d.ts.map +1 -1
  179. package/dist/eval/experiments/topic-continuity/hybrid-classifier.js +54 -6
  180. package/dist/eval/experiments/topic-continuity/hybrid-classifier.js.map +1 -1
  181. package/dist/eval/experiments/topic-continuity/labeler.d.ts.map +1 -1
  182. package/dist/eval/experiments/topic-continuity/labeler.js +1 -4
  183. package/dist/eval/experiments/topic-continuity/labeler.js.map +1 -1
  184. package/dist/eval/experiments/topic-continuity/run-experiment.d.ts.map +1 -1
  185. package/dist/eval/experiments/topic-continuity/run-experiment.js +5 -13
  186. package/dist/eval/experiments/topic-continuity/run-experiment.js.map +1 -1
  187. package/dist/eval/experiments/truncation.d.ts.map +1 -1
  188. package/dist/eval/experiments/truncation.js.map +1 -1
  189. package/dist/eval/experiments/types.d.ts.map +1 -1
  190. package/dist/eval/experiments/types.js.map +1 -1
  191. package/dist/eval/metrics.d.ts.map +1 -1
  192. package/dist/eval/metrics.js.map +1 -1
  193. package/dist/hooks/claudemd-generator.d.ts.map +1 -1
  194. package/dist/hooks/claudemd-generator.js +3 -4
  195. package/dist/hooks/claudemd-generator.js.map +1 -1
  196. package/dist/hooks/hook-utils.d.ts.map +1 -1
  197. package/dist/hooks/hook-utils.js +0 -2
  198. package/dist/hooks/hook-utils.js.map +1 -1
  199. package/dist/hooks/pre-compact.d.ts.map +1 -1
  200. package/dist/hooks/pre-compact.js +4 -2
  201. package/dist/hooks/pre-compact.js.map +1 -1
  202. package/dist/hooks/session-end.d.ts.map +1 -1
  203. package/dist/hooks/session-end.js +4 -2
  204. package/dist/hooks/session-end.js.map +1 -1
  205. package/dist/hooks/session-start.d.ts.map +1 -1
  206. package/dist/hooks/session-start.js +3 -5
  207. package/dist/hooks/session-start.js.map +1 -1
  208. package/dist/index.d.ts +0 -1
  209. package/dist/index.d.ts.map +1 -1
  210. package/dist/index.js +0 -2
  211. package/dist/index.js.map +1 -1
  212. package/dist/ingest/batch-ingest.d.ts.map +1 -1
  213. package/dist/ingest/batch-ingest.js.map +1 -1
  214. package/dist/ingest/brief-debrief-detector.d.ts +6 -13
  215. package/dist/ingest/brief-debrief-detector.d.ts.map +1 -1
  216. package/dist/ingest/brief-debrief-detector.js +9 -16
  217. package/dist/ingest/brief-debrief-detector.js.map +1 -1
  218. package/dist/ingest/cross-session-linker.d.ts +2 -1
  219. package/dist/ingest/cross-session-linker.d.ts.map +1 -1
  220. package/dist/ingest/cross-session-linker.js +17 -7
  221. package/dist/ingest/cross-session-linker.js.map +1 -1
  222. package/dist/ingest/edge-creator.d.ts +14 -40
  223. package/dist/ingest/edge-creator.d.ts.map +1 -1
  224. package/dist/ingest/edge-creator.js +34 -132
  225. package/dist/ingest/edge-creator.js.map +1 -1
  226. package/dist/ingest/edge-detector.d.ts +27 -12
  227. package/dist/ingest/edge-detector.d.ts.map +1 -1
  228. package/dist/ingest/edge-detector.js +68 -200
  229. package/dist/ingest/edge-detector.js.map +1 -1
  230. package/dist/ingest/index.d.ts +3 -3
  231. package/dist/ingest/index.d.ts.map +1 -1
  232. package/dist/ingest/index.js +3 -3
  233. package/dist/ingest/index.js.map +1 -1
  234. package/dist/ingest/ingest-session.d.ts +1 -8
  235. package/dist/ingest/ingest-session.d.ts.map +1 -1
  236. package/dist/ingest/ingest-session.js +54 -107
  237. package/dist/ingest/ingest-session.js.map +1 -1
  238. package/dist/ingest/rebuild-edges.d.ts +17 -0
  239. package/dist/ingest/rebuild-edges.d.ts.map +1 -0
  240. package/dist/ingest/rebuild-edges.js +97 -0
  241. package/dist/ingest/rebuild-edges.js.map +1 -0
  242. package/dist/maintenance/scheduler.d.ts +2 -3
  243. package/dist/maintenance/scheduler.d.ts.map +1 -1
  244. package/dist/maintenance/scheduler.js +14 -23
  245. package/dist/maintenance/scheduler.js.map +1 -1
  246. package/dist/maintenance/tasks/cleanup-vectors.d.ts +3 -1
  247. package/dist/maintenance/tasks/cleanup-vectors.d.ts.map +1 -1
  248. package/dist/maintenance/tasks/cleanup-vectors.js +6 -4
  249. package/dist/maintenance/tasks/cleanup-vectors.js.map +1 -1
  250. package/dist/maintenance/tasks/index.d.ts +0 -1
  251. package/dist/maintenance/tasks/index.d.ts.map +1 -1
  252. package/dist/maintenance/tasks/index.js +0 -1
  253. package/dist/maintenance/tasks/index.js.map +1 -1
  254. package/dist/mcp/index.d.ts +1 -1
  255. package/dist/mcp/index.d.ts.map +1 -1
  256. package/dist/mcp/index.js +1 -1
  257. package/dist/mcp/index.js.map +1 -1
  258. package/dist/mcp/server.d.ts.map +1 -1
  259. package/dist/mcp/server.js +15 -8
  260. package/dist/mcp/server.js.map +1 -1
  261. package/dist/mcp/tools.d.ts +5 -5
  262. package/dist/mcp/tools.d.ts.map +1 -1
  263. package/dist/mcp/tools.js +42 -36
  264. package/dist/mcp/tools.js.map +1 -1
  265. package/dist/models/device-detector.d.ts.map +1 -1
  266. package/dist/models/device-detector.js +20 -10
  267. package/dist/models/device-detector.js.map +1 -1
  268. package/dist/models/embedder.d.ts.map +1 -1
  269. package/dist/models/embedder.js +5 -2
  270. package/dist/models/embedder.js.map +1 -1
  271. package/dist/models/model-registry.d.ts.map +1 -1
  272. package/dist/models/model-registry.js.map +1 -1
  273. package/dist/parser/chunker.d.ts +5 -40
  274. package/dist/parser/chunker.d.ts.map +1 -1
  275. package/dist/parser/chunker.js +5 -111
  276. package/dist/parser/chunker.js.map +1 -1
  277. package/dist/parser/session-reader.d.ts.map +1 -1
  278. package/dist/parser/session-reader.js +3 -6
  279. package/dist/parser/session-reader.js.map +1 -1
  280. package/dist/parser/turn-assembler.d.ts.map +1 -1
  281. package/dist/parser/turn-assembler.js +0 -1
  282. package/dist/parser/turn-assembler.js.map +1 -1
  283. package/dist/parser/types.d.ts.map +1 -1
  284. package/dist/report/reporter.d.ts.map +1 -1
  285. package/dist/report/reporter.js +1 -3
  286. package/dist/report/reporter.js.map +1 -1
  287. package/dist/retrieval/chain-assembler.d.ts +58 -0
  288. package/dist/retrieval/chain-assembler.d.ts.map +1 -0
  289. package/dist/retrieval/chain-assembler.js +126 -0
  290. package/dist/retrieval/chain-assembler.js.map +1 -0
  291. package/dist/retrieval/chain-walker.d.ts +57 -0
  292. package/dist/retrieval/chain-walker.d.ts.map +1 -0
  293. package/dist/retrieval/chain-walker.js +121 -0
  294. package/dist/retrieval/chain-walker.js.map +1 -0
  295. package/dist/retrieval/cluster-expander.d.ts.map +1 -1
  296. package/dist/retrieval/cluster-expander.js +3 -3
  297. package/dist/retrieval/cluster-expander.js.map +1 -1
  298. package/dist/retrieval/context-assembler.d.ts +13 -36
  299. package/dist/retrieval/context-assembler.d.ts.map +1 -1
  300. package/dist/retrieval/context-assembler.js +50 -287
  301. package/dist/retrieval/context-assembler.js.map +1 -1
  302. package/dist/retrieval/index.d.ts +8 -4
  303. package/dist/retrieval/index.d.ts.map +1 -1
  304. package/dist/retrieval/index.js +7 -3
  305. package/dist/retrieval/index.js.map +1 -1
  306. package/dist/retrieval/rrf.d.ts.map +1 -1
  307. package/dist/retrieval/rrf.js +4 -2
  308. package/dist/retrieval/rrf.js.map +1 -1
  309. package/dist/retrieval/search-assembler.d.ts +59 -0
  310. package/dist/retrieval/search-assembler.d.ts.map +1 -0
  311. package/dist/retrieval/search-assembler.js +209 -0
  312. package/dist/retrieval/search-assembler.js.map +1 -0
  313. package/dist/retrieval/session-reconstructor.d.ts.map +1 -1
  314. package/dist/retrieval/session-reconstructor.js +9 -7
  315. package/dist/retrieval/session-reconstructor.js.map +1 -1
  316. package/dist/storage/archive.d.ts +0 -2
  317. package/dist/storage/archive.d.ts.map +1 -1
  318. package/dist/storage/archive.js +18 -12
  319. package/dist/storage/archive.js.map +1 -1
  320. package/dist/storage/checkpoint-store.d.ts +0 -1
  321. package/dist/storage/checkpoint-store.d.ts.map +1 -1
  322. package/dist/storage/checkpoint-store.js +5 -7
  323. package/dist/storage/checkpoint-store.js.map +1 -1
  324. package/dist/storage/chunk-store.d.ts.map +1 -1
  325. package/dist/storage/chunk-store.js +15 -17
  326. package/dist/storage/chunk-store.js.map +1 -1
  327. package/dist/storage/cluster-store.d.ts.map +1 -1
  328. package/dist/storage/cluster-store.js.map +1 -1
  329. package/dist/storage/db.d.ts.map +1 -1
  330. package/dist/storage/db.js.map +1 -1
  331. package/dist/storage/edge-store.d.ts +17 -30
  332. package/dist/storage/edge-store.d.ts.map +1 -1
  333. package/dist/storage/edge-store.js +43 -123
  334. package/dist/storage/edge-store.js.map +1 -1
  335. package/dist/storage/embedding-cache.d.ts.map +1 -1
  336. package/dist/storage/embedding-cache.js +1 -3
  337. package/dist/storage/embedding-cache.js.map +1 -1
  338. package/dist/storage/encryption.d.ts.map +1 -1
  339. package/dist/storage/encryption.js +4 -15
  340. package/dist/storage/encryption.js.map +1 -1
  341. package/dist/storage/index.d.ts +1 -4
  342. package/dist/storage/index.d.ts.map +1 -1
  343. package/dist/storage/index.js +1 -5
  344. package/dist/storage/index.js.map +1 -1
  345. package/dist/storage/keyword-store.d.ts.map +1 -1
  346. package/dist/storage/keyword-store.js +11 -7
  347. package/dist/storage/keyword-store.js.map +1 -1
  348. package/dist/storage/migrations.d.ts.map +1 -1
  349. package/dist/storage/migrations.js +56 -4
  350. package/dist/storage/migrations.js.map +1 -1
  351. package/dist/storage/schema.sql +8 -20
  352. package/dist/storage/types.d.ts +12 -26
  353. package/dist/storage/types.d.ts.map +1 -1
  354. package/dist/storage/types.js +1 -2
  355. package/dist/storage/types.js.map +1 -1
  356. package/dist/storage/vector-store.d.ts +9 -15
  357. package/dist/storage/vector-store.d.ts.map +1 -1
  358. package/dist/storage/vector-store.js +64 -43
  359. package/dist/storage/vector-store.js.map +1 -1
  360. package/dist/utils/angular-distance.d.ts.map +1 -1
  361. package/dist/utils/angular-distance.js.map +1 -1
  362. package/dist/utils/logger.d.ts.map +1 -1
  363. package/dist/utils/logger.js.map +1 -1
  364. package/dist/utils/secret-store.d.ts.map +1 -1
  365. package/dist/utils/secret-store.js +17 -13
  366. package/dist/utils/secret-store.js.map +1 -1
  367. package/dist/utils/secure-buffer.d.ts.map +1 -1
  368. package/dist/utils/secure-buffer.js.map +1 -1
  369. package/package.json +6 -5
  370. package/src/dashboard/client/package-lock.json +3 -3
  371. package/src/dashboard/client/package.json +3 -3
  372. package/dist/dashboard/client/assets/index-CMUKy4f9.css +0 -1
  373. package/dist/dashboard/client/assets/index-esv8TpCN.js +0 -168
  374. package/dist/eval/collection-benchmark/graph-value.d.ts +0 -16
  375. package/dist/eval/collection-benchmark/graph-value.d.ts.map +0 -1
  376. package/dist/eval/collection-benchmark/graph-value.js +0 -162
  377. package/dist/eval/collection-benchmark/graph-value.js.map +0 -1
  378. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.d.ts +0 -10
  379. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.d.ts.map +0 -1
  380. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.js +0 -229
  381. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.js.map +0 -1
  382. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.d.ts +0 -12
  383. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.d.ts.map +0 -1
  384. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.js +0 -316
  385. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.js.map +0 -1
  386. package/dist/eval/experiments/vector-decay-shapes/hop-decay.d.ts +0 -19
  387. package/dist/eval/experiments/vector-decay-shapes/hop-decay.d.ts.map +0 -1
  388. package/dist/eval/experiments/vector-decay-shapes/hop-decay.js +0 -127
  389. package/dist/eval/experiments/vector-decay-shapes/hop-decay.js.map +0 -1
  390. package/dist/eval/experiments/vector-decay-shapes/index.d.ts +0 -11
  391. package/dist/eval/experiments/vector-decay-shapes/index.d.ts.map +0 -1
  392. package/dist/eval/experiments/vector-decay-shapes/index.js +0 -11
  393. package/dist/eval/experiments/vector-decay-shapes/index.js.map +0 -1
  394. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.d.ts +0 -14
  395. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.d.ts.map +0 -1
  396. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.js +0 -274
  397. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.js.map +0 -1
  398. package/dist/eval/experiments/vector-decay-shapes/presets.d.ts +0 -36
  399. package/dist/eval/experiments/vector-decay-shapes/presets.d.ts.map +0 -1
  400. package/dist/eval/experiments/vector-decay-shapes/presets.js +0 -157
  401. package/dist/eval/experiments/vector-decay-shapes/presets.js.map +0 -1
  402. package/dist/eval/experiments/vector-decay-shapes/run-experiment.d.ts +0 -20
  403. package/dist/eval/experiments/vector-decay-shapes/run-experiment.d.ts.map +0 -1
  404. package/dist/eval/experiments/vector-decay-shapes/run-experiment.js +0 -504
  405. package/dist/eval/experiments/vector-decay-shapes/run-experiment.js.map +0 -1
  406. package/dist/eval/experiments/vector-decay-shapes/types.d.ts +0 -111
  407. package/dist/eval/experiments/vector-decay-shapes/types.d.ts.map +0 -1
  408. package/dist/eval/experiments/vector-decay-shapes/types.js +0 -15
  409. package/dist/eval/experiments/vector-decay-shapes/types.js.map +0 -1
  410. package/dist/eval/experiments/vector-decay-sweep/index.d.ts +0 -7
  411. package/dist/eval/experiments/vector-decay-sweep/index.d.ts.map +0 -1
  412. package/dist/eval/experiments/vector-decay-sweep/index.js +0 -7
  413. package/dist/eval/experiments/vector-decay-sweep/index.js.map +0 -1
  414. package/dist/eval/experiments/vector-decay-sweep/run-sweep.d.ts +0 -30
  415. package/dist/eval/experiments/vector-decay-sweep/run-sweep.d.ts.map +0 -1
  416. package/dist/eval/experiments/vector-decay-sweep/run-sweep.js +0 -378
  417. package/dist/eval/experiments/vector-decay-sweep/run-sweep.js.map +0 -1
  418. package/dist/eval/experiments/vector-decay-sweep/types.d.ts +0 -109
  419. package/dist/eval/experiments/vector-decay-sweep/types.d.ts.map +0 -1
  420. package/dist/eval/experiments/vector-decay-sweep/types.js +0 -16
  421. package/dist/eval/experiments/vector-decay-sweep/types.js.map +0 -1
  422. package/dist/maintenance/tasks/prune-graph.d.ts +0 -12
  423. package/dist/maintenance/tasks/prune-graph.d.ts.map +0 -1
  424. package/dist/maintenance/tasks/prune-graph.js +0 -23
  425. package/dist/maintenance/tasks/prune-graph.js.map +0 -1
  426. package/dist/retrieval/traverser.d.ts +0 -66
  427. package/dist/retrieval/traverser.d.ts.map +0 -1
  428. package/dist/retrieval/traverser.js +0 -160
  429. package/dist/retrieval/traverser.js.map +0 -1
  430. package/dist/storage/clock-store.d.ts +0 -80
  431. package/dist/storage/clock-store.d.ts.map +0 -1
  432. package/dist/storage/clock-store.js +0 -155
  433. package/dist/storage/clock-store.js.map +0 -1
  434. package/dist/storage/decay.d.ts +0 -125
  435. package/dist/storage/decay.d.ts.map +0 -1
  436. package/dist/storage/decay.js +0 -276
  437. package/dist/storage/decay.js.map +0 -1
  438. package/dist/storage/pruner.d.ts +0 -111
  439. package/dist/storage/pruner.d.ts.map +0 -1
  440. package/dist/storage/pruner.js +0 -280
  441. package/dist/storage/pruner.js.map +0 -1
  442. package/dist/temporal/clock-compactor.d.ts +0 -65
  443. package/dist/temporal/clock-compactor.d.ts.map +0 -1
  444. package/dist/temporal/clock-compactor.js +0 -157
  445. package/dist/temporal/clock-compactor.js.map +0 -1
  446. package/dist/temporal/index.d.ts +0 -6
  447. package/dist/temporal/index.d.ts.map +0 -1
  448. package/dist/temporal/index.js +0 -6
  449. package/dist/temporal/index.js.map +0 -1
  450. package/dist/temporal/vector-clock.d.ts +0 -143
  451. package/dist/temporal/vector-clock.d.ts.map +0 -1
  452. package/dist/temporal/vector-clock.js +0 -231
  453. package/dist/temporal/vector-clock.js.map +0 -1
  454. package/dist/utils/keychain.d.ts +0 -43
  455. package/dist/utils/keychain.d.ts.map +0 -1
  456. package/dist/utils/keychain.js +0 -82
  457. package/dist/utils/keychain.js.map +0 -1
@@ -0,0 +1,166 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();var As={exports:{}},Hu={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Q0;function rx(){if(Q0)return Hu;Q0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:n,type:r,key:d,ref:o!==void 0?o:null,props:f}}return Hu.Fragment=a,Hu.jsx=i,Hu.jsxs=i,Hu}var Z0;function cx(){return Z0||(Z0=1,As.exports=rx()),As.exports}var _=cx(),Cs={exports:{}},mt={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var $0;function ox(){if($0)return mt;$0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function w(S){return S===null||typeof S!="object"?null:(S=x&&S[x]||S["@@iterator"],typeof S=="function"?S:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,C={};function A(S,O,Z){this.props=S,this.context=O,this.refs=C,this.updater=Z||k}A.prototype.isReactComponent={},A.prototype.setState=function(S,O){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,O,"setState")},A.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function q(){}q.prototype=A.prototype;function L(S,O,Z){this.props=S,this.context=O,this.refs=C,this.updater=Z||k}var J=L.prototype=new q;J.constructor=L,N(J,A.prototype),J.isPureReactComponent=!0;var nt=Array.isArray;function V(){}var K={H:null,A:null,T:null,S:null},st=Object.prototype.hasOwnProperty;function dt(S,O,Z){var I=Z.ref;return{$$typeof:n,type:S,key:O,ref:I!==void 0?I:null,props:Z}}function vt(S,O){return dt(S.type,O,S.props)}function _t(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function X(S){var O={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return O[Z]})}var ht=/\/+/g;function D(S,O){return typeof S=="object"&&S!==null&&S.key!=null?X(""+S.key):O.toString(36)}function P(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(V,V):(S.status="pending",S.then(function(O){S.status==="pending"&&(S.status="fulfilled",S.value=O)},function(O){S.status==="pending"&&(S.status="rejected",S.reason=O)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function M(S,O,Z,I,tt){var ut=typeof S;(ut==="undefined"||ut==="boolean")&&(S=null);var ct=!1;if(S===null)ct=!0;else switch(ut){case"bigint":case"string":case"number":ct=!0;break;case"object":switch(S.$$typeof){case n:case a:ct=!0;break;case v:return ct=S._init,M(ct(S._payload),O,Z,I,tt)}}if(ct)return tt=tt(S),ct=I===""?"."+D(S,0):I,nt(tt)?(Z="",ct!=null&&(Z=ct.replace(ht,"$&/")+"/"),M(tt,O,Z,"",function(gt){return gt})):tt!=null&&(_t(tt)&&(tt=vt(tt,Z+(tt.key==null||S&&S.key===tt.key?"":(""+tt.key).replace(ht,"$&/")+"/")+ct)),O.push(tt)),1;ct=0;var Ct=I===""?".":I+":";if(nt(S))for(var et=0;et<S.length;et++)I=S[et],ut=Ct+D(I,et),ct+=M(I,O,Z,ut,tt);else if(et=w(S),typeof et=="function")for(S=et.call(S),et=0;!(I=S.next()).done;)I=I.value,ut=Ct+D(I,et++),ct+=M(I,O,Z,ut,tt);else if(ut==="object"){if(typeof S.then=="function")return M(P(S),O,Z,I,tt);throw O=String(S),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return ct}function Y(S,O,Z){if(S==null)return S;var I=[],tt=0;return M(S,I,"","",function(ut){return O.call(Z,ut,tt++)}),I}function F(S){if(S._status===-1){var O=S._result;O=O(),O.then(function(Z){(S._status===0||S._status===-1)&&(S._status=1,S._result=Z)},function(Z){(S._status===0||S._status===-1)&&(S._status=2,S._result=Z)}),S._status===-1&&(S._status=0,S._result=O)}if(S._status===1)return S._result.default;throw S._result}var at=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=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(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},lt={map:Y,forEach:function(S,O,Z){Y(S,function(){O.apply(this,arguments)},Z)},count:function(S){var O=0;return Y(S,function(){O++}),O},toArray:function(S){return Y(S,function(O){return O})||[]},only:function(S){if(!_t(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return mt.Activity=y,mt.Children=lt,mt.Component=A,mt.Fragment=i,mt.Profiler=o,mt.PureComponent=L,mt.StrictMode=r,mt.Suspense=m,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,mt.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},mt.cache=function(S){return function(){return S.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(S,O,Z){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var I=N({},S.props),tt=S.key;if(O!=null)for(ut in O.key!==void 0&&(tt=""+O.key),O)!st.call(O,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&O.ref===void 0||(I[ut]=O[ut]);var ut=arguments.length-2;if(ut===1)I.children=Z;else if(1<ut){for(var ct=Array(ut),Ct=0;Ct<ut;Ct++)ct[Ct]=arguments[Ct+2];I.children=ct}return dt(S.type,tt,I)},mt.createContext=function(S){return S={$$typeof:d,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:f,_context:S},S},mt.createElement=function(S,O,Z){var I,tt={},ut=null;if(O!=null)for(I in O.key!==void 0&&(ut=""+O.key),O)st.call(O,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(tt[I]=O[I]);var ct=arguments.length-2;if(ct===1)tt.children=Z;else if(1<ct){for(var Ct=Array(ct),et=0;et<ct;et++)Ct[et]=arguments[et+2];tt.children=Ct}if(S&&S.defaultProps)for(I in ct=S.defaultProps,ct)tt[I]===void 0&&(tt[I]=ct[I]);return dt(S,ut,tt)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(S){return{$$typeof:g,render:S}},mt.isValidElement=_t,mt.lazy=function(S){return{$$typeof:v,_payload:{_status:-1,_result:S},_init:F}},mt.memo=function(S,O){return{$$typeof:h,type:S,compare:O===void 0?null:O}},mt.startTransition=function(S){var O=K.T,Z={};K.T=Z;try{var I=S(),tt=K.S;tt!==null&&tt(Z,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(V,at)}catch(ut){at(ut)}finally{O!==null&&Z.types!==null&&(O.types=Z.types),K.T=O}},mt.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},mt.use=function(S){return K.H.use(S)},mt.useActionState=function(S,O,Z){return K.H.useActionState(S,O,Z)},mt.useCallback=function(S,O){return K.H.useCallback(S,O)},mt.useContext=function(S){return K.H.useContext(S)},mt.useDebugValue=function(){},mt.useDeferredValue=function(S,O){return K.H.useDeferredValue(S,O)},mt.useEffect=function(S,O){return K.H.useEffect(S,O)},mt.useEffectEvent=function(S){return K.H.useEffectEvent(S)},mt.useId=function(){return K.H.useId()},mt.useImperativeHandle=function(S,O,Z){return K.H.useImperativeHandle(S,O,Z)},mt.useInsertionEffect=function(S,O){return K.H.useInsertionEffect(S,O)},mt.useLayoutEffect=function(S,O){return K.H.useLayoutEffect(S,O)},mt.useMemo=function(S,O){return K.H.useMemo(S,O)},mt.useOptimistic=function(S,O){return K.H.useOptimistic(S,O)},mt.useReducer=function(S,O,Z){return K.H.useReducer(S,O,Z)},mt.useRef=function(S){return K.H.useRef(S)},mt.useState=function(S){return K.H.useState(S)},mt.useSyncExternalStore=function(S,O,Z){return K.H.useSyncExternalStore(S,O,Z)},mt.useTransition=function(){return K.H.useTransition()},mt.version="19.2.4",mt}var K0;function xf(){return K0||(K0=1,Cs.exports=ox()),Cs.exports}var R=xf(),zs={exports:{}},Lu={},Ns={exports:{}},Ds={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var J0;function sx(){return J0||(J0=1,(function(n){function a(M,Y){var F=M.length;M.push(Y);t:for(;0<F;){var at=F-1>>>1,lt=M[at];if(0<o(lt,Y))M[at]=Y,M[F]=lt,F=at;else break t}}function i(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var Y=M[0],F=M.pop();if(F!==Y){M[0]=F;t:for(var at=0,lt=M.length,S=lt>>>1;at<S;){var O=2*(at+1)-1,Z=M[O],I=O+1,tt=M[I];if(0>o(Z,F))I<lt&&0>o(tt,Z)?(M[at]=tt,M[I]=F,at=I):(M[at]=Z,M[O]=F,at=O);else if(I<lt&&0>o(tt,F))M[at]=tt,M[I]=F,at=I;else break t}}return Y}function o(M,Y){var F=M.sortIndex-Y.sortIndex;return F!==0?F:M.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();n.unstable_now=function(){return d.now()-g}}var m=[],h=[],v=1,y=null,x=3,w=!1,k=!1,N=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function J(M){for(var Y=i(h);Y!==null;){if(Y.callback===null)r(h);else if(Y.startTime<=M)r(h),Y.sortIndex=Y.expirationTime,a(m,Y);else break;Y=i(h)}}function nt(M){if(N=!1,J(M),!k)if(i(m)!==null)k=!0,V||(V=!0,X());else{var Y=i(h);Y!==null&&P(nt,Y.startTime-M)}}var V=!1,K=-1,st=5,dt=-1;function vt(){return C?!0:!(n.unstable_now()-dt<st)}function _t(){if(C=!1,V){var M=n.unstable_now();dt=M;var Y=!0;try{t:{k=!1,N&&(N=!1,q(K),K=-1),w=!0;var F=x;try{e:{for(J(M),y=i(m);y!==null&&!(y.expirationTime>M&&vt());){var at=y.callback;if(typeof at=="function"){y.callback=null,x=y.priorityLevel;var lt=at(y.expirationTime<=M);if(M=n.unstable_now(),typeof lt=="function"){y.callback=lt,J(M),Y=!0;break e}y===i(m)&&r(m),J(M)}else r(m);y=i(m)}if(y!==null)Y=!0;else{var S=i(h);S!==null&&P(nt,S.startTime-M),Y=!1}}break t}finally{y=null,x=F,w=!1}Y=void 0}}finally{Y?X():V=!1}}}var X;if(typeof L=="function")X=function(){L(_t)};else if(typeof MessageChannel<"u"){var ht=new MessageChannel,D=ht.port2;ht.port1.onmessage=_t,X=function(){D.postMessage(null)}}else X=function(){A(_t,0)};function P(M,Y){K=A(function(){M(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):st=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(M){switch(x){case 1:case 2:case 3:var Y=3;break;default:Y=x}var F=x;x=Y;try{return M()}finally{x=F}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var F=x;x=M;try{return Y()}finally{x=F}},n.unstable_scheduleCallback=function(M,Y,F){var at=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?at+F:at):F=at,M){case 1:var lt=-1;break;case 2:lt=250;break;case 5:lt=1073741823;break;case 4:lt=1e4;break;default:lt=5e3}return lt=F+lt,M={id:v++,callback:Y,priorityLevel:M,startTime:F,expirationTime:lt,sortIndex:-1},F>at?(M.sortIndex=F,a(h,M),i(m)===null&&M===i(h)&&(N?(q(K),K=-1):N=!0,P(nt,F-at))):(M.sortIndex=lt,a(m,M),k||w||(k=!0,V||(V=!0,X()))),M},n.unstable_shouldYield=vt,n.unstable_wrapCallback=function(M){var Y=x;return function(){var F=x;x=Y;try{return M.apply(this,arguments)}finally{x=F}}}})(Ds)),Ds}var F0;function fx(){return F0||(F0=1,Ns.exports=sx()),Ns.exports}var Rs={exports:{}},de={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var W0;function dx(){if(W0)return de;W0=1;var n=xf();function a(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(m,h,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:m,containerInfo:h,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,de.createPortal=function(m,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(a(299));return f(m,h,null,v)},de.flushSync=function(m){var h=d.T,v=r.p;try{if(d.T=null,r.p=2,m)return m()}finally{d.T=h,r.p=v,r.d.f()}},de.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(m,h))},de.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},de.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var v=h.as,y=g(v,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?r.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:w}):v==="script"&&r.d.X(m,{crossOrigin:y,integrity:x,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},de.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=g(h.as,h.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(m)},de.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,y=g(v,h.crossOrigin);r.d.L(m,v,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},de.preloadModule=function(m,h){if(typeof m=="string")if(h){var v=g(h.as,h.crossOrigin);r.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(m)},de.requestFormReset=function(m){r.d.r(m)},de.unstable_batchedUpdates=function(m,h){return m(h)},de.useFormState=function(m,h,v){return d.H.useFormState(m,h,v)},de.useFormStatus=function(){return d.H.useHostTransitionStatus()},de.version="19.2.4",de}var I0;function hx(){if(I0)return Rs.exports;I0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Rs.exports=dx(),Rs.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var P0;function mx(){if(P0)return Lu;P0=1;var n=fx(),a=xf(),i=hx();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(f(t)!==t)throw Error(r(188))}function h(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,u=e;;){var c=l.return;if(c===null)break;var s=c.alternate;if(s===null){if(u=c.return,u!==null){l=u;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===l)return m(c),t;if(s===u)return m(c),e;s=s.sibling}throw Error(r(188))}if(l.return!==u.return)l=c,u=s;else{for(var p=!1,b=c.child;b;){if(b===l){p=!0,l=c,u=s;break}if(b===u){p=!0,u=c,l=s;break}b=b.sibling}if(!p){for(b=s.child;b;){if(b===l){p=!0,l=s,u=c;break}if(b===u){p=!0,u=s,l=c;break}b=b.sibling}if(!p)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),L=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),dt=Symbol.for("react.activity"),vt=Symbol.for("react.memo_cache_sentinel"),_t=Symbol.iterator;function X(t){return t===null||typeof t!="object"?null:(t=_t&&t[_t]||t["@@iterator"],typeof t=="function"?t:null)}var ht=Symbol.for("react.client.reference");function D(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case nt:return"Suspense";case V:return"SuspenseList";case dt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case L:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:D(t.type)||"Memo";case st:e=t._payload,t=t._init;try{return D(t(e))}catch{}}return null}var P=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},at=[],lt=-1;function S(t){return{current:t}}function O(t){0>lt||(t.current=at[lt],at[lt]=null,lt--)}function Z(t,e){lt++,at[lt]=t.current,t.current=e}var I=S(null),tt=S(null),ut=S(null),ct=S(null);function Ct(t,e){switch(Z(ut,e),Z(tt,t),Z(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?m0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=m0(e),t=g0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}O(I),Z(I,t)}function et(){O(I),O(tt),O(ut)}function gt(t){t.memoizedState!==null&&Z(ct,t);var e=I.current,l=g0(e,t.type);e!==l&&(Z(tt,t),Z(I,l))}function pt(t){tt.current===t&&(O(I),O(tt)),ct.current===t&&(O(ct),Ru._currentValue=F)}var W,Vt;function St(t){if(W===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);W=e&&e[1]||"",Vt=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+W+t+Vt}var Kt=!1;function Yt(t,e){if(!t||Kt)return"";Kt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(e){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(B){var H=B}Reflect.construct(t,[],$)}else{try{$.call()}catch(B){H=B}t.call($.prototype)}}else{try{throw Error()}catch(B){H=B}($=t())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(B){if(B&&H&&typeof B.stack=="string")return[B.stack,H.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=u.DetermineComponentFrameRoot(),p=s[0],b=s[1];if(p&&b){var T=p.split(`
44
+ `),j=b.split(`
45
+ `);for(c=u=0;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;for(;c<j.length&&!j[c].includes("DetermineComponentFrameRoot");)c++;if(u===T.length||c===j.length)for(u=T.length-1,c=j.length-1;1<=u&&0<=c&&T[u]!==j[c];)c--;for(;1<=u&&0<=c;u--,c--)if(T[u]!==j[c]){if(u!==1||c!==1)do if(u--,c--,0>c||T[u]!==j[c]){var G=`
46
+ `+T[u].replace(" at new "," at ");return t.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",t.displayName)),G}while(1<=u&&0<=c);break}}}finally{Kt=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?St(l):""}function ge(t,e){switch(t.tag){case 26:case 27:case 5:return St(t.type);case 16:return St("Lazy");case 13:return t.child!==e&&e!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return Yt(t.type,!1);case 11:return Yt(t.type.render,!1);case 1:return Yt(t.type,!0);case 31:return St("Activity");default:return""}}function fn(t){try{var e="",l=null;do e+=ge(t,l),l=t,t=t.return;while(t);return e}catch(u){return`
47
+ Error generating stack: `+u.message+`
48
+ `+u.stack}}var Vl=Object.prototype.hasOwnProperty,qn=n.unstable_scheduleCallback,Xa=n.unstable_cancelCallback,Yy=n.unstable_shouldYield,By=n.unstable_requestPaint,Te=n.unstable_now,qy=n.unstable_getCurrentPriorityLevel,Zf=n.unstable_ImmediatePriority,$f=n.unstable_UserBlockingPriority,si=n.unstable_NormalPriority,Gy=n.unstable_LowPriority,Kf=n.unstable_IdlePriority,Xy=n.log,Vy=n.unstable_setDisableYieldValue,Va=null,Me=null;function Gn(t){if(typeof Xy=="function"&&Vy(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(Va,t)}catch{}}var Ee=Math.clz32?Math.clz32:$y,Qy=Math.log,Zy=Math.LN2;function $y(t){return t>>>=0,t===0?32:31-(Qy(t)/Zy|0)|0}var fi=256,di=262144,hi=4194304;function gl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function mi(t,e,l){var u=t.pendingLanes;if(u===0)return 0;var c=0,s=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var b=u&134217727;return b!==0?(u=b&~s,u!==0?c=gl(u):(p&=b,p!==0?c=gl(p):l||(l=b&~t,l!==0&&(c=gl(l))))):(b=u&~s,b!==0?c=gl(b):p!==0?c=gl(p):l||(l=u&~t,l!==0&&(c=gl(l)))),c===0?0:e!==0&&e!==c&&(e&s)===0&&(s=c&-c,l=e&-e,s>=l||s===32&&(l&4194048)!==0)?e:c}function Qa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ky(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Jf(){var t=hi;return hi<<=1,(hi&62914560)===0&&(hi=4194304),t}function mc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Za(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Jy(t,e,l,u,c,s){var p=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,j=t.hiddenUpdates;for(l=p&~l;0<l;){var G=31-Ee(l),$=1<<G;b[G]=0,T[G]=-1;var H=j[G];if(H!==null)for(j[G]=null,G=0;G<H.length;G++){var B=H[G];B!==null&&(B.lane&=-536870913)}l&=~$}u!==0&&Ff(t,u,0),s!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=s&~(p&~e))}function Ff(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var u=31-Ee(e);t.entangledLanes|=e,t.entanglements[u]=t.entanglements[u]|1073741824|l&261930}function Wf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var u=31-Ee(l),c=1<<u;c&e|t[u]&e&&(t[u]|=e),l&=~c}}function If(t,e){var l=e&-e;return l=(l&42)!==0?1:gc(l),(l&(t.suspendedLanes|e))!==0?0:l}function gc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function pc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Pf(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:k0(t.type))}function td(t,e){var l=Y.p;try{return Y.p=t,e()}finally{Y.p=l}}var Xn=Math.random().toString(36).slice(2),re="__reactFiber$"+Xn,pe="__reactProps$"+Xn,Ql="__reactContainer$"+Xn,yc="__reactEvents$"+Xn,Fy="__reactListeners$"+Xn,Wy="__reactHandles$"+Xn,ed="__reactResources$"+Xn,$a="__reactMarker$"+Xn;function vc(t){delete t[re],delete t[pe],delete t[yc],delete t[Fy],delete t[Wy]}function Zl(t){var e=t[re];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Ql]||l[re]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=_0(t);t!==null;){if(l=t[re])return l;t=_0(t)}return e}t=l,l=t.parentNode}return null}function $l(t){if(t=t[re]||t[Ql]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ka(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Kl(t){var e=t[ed];return e||(e=t[ed]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function le(t){t[$a]=!0}var nd=new Set,ld={};function pl(t,e){Jl(t,e),Jl(t+"Capture",e)}function Jl(t,e){for(ld[t]=e,t=0;t<e.length;t++)nd.add(e[t])}var Iy=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]*$"),ad={},ud={};function Py(t){return Vl.call(ud,t)?!0:Vl.call(ad,t)?!1:Iy.test(t)?ud[t]=!0:(ad[t]=!0,!1)}function gi(t,e,l){if(Py(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var u=e.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function pi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function dn(t,e,l,u){if(u===null)t.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+u)}}function He(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function id(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function tv(t,e,l){var u=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var c=u.get,s=u.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return c.call(this)},set:function(p){l=""+p,s.call(this,p)}}),Object.defineProperty(t,e,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function xc(t){if(!t._valueTracker){var e=id(t)?"checked":"value";t._valueTracker=tv(t,e,""+t[e])}}function rd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),u="";return t&&(u=id(t)?t.checked?"true":"false":t.value),t=u,t!==l?(e.setValue(t),!0):!1}function yi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ev=/[\n"\\]/g;function Le(t){return t.replace(ev,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function bc(t,e,l,u,c,s,p,b){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+He(e)):t.value!==""+He(e)&&(t.value=""+He(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?Sc(t,p,He(e)):l!=null?Sc(t,p,He(l)):u!=null&&t.removeAttribute("value"),c==null&&s!=null&&(t.defaultChecked=!!s),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+He(b):t.removeAttribute("name")}function cd(t,e,l,u,c,s,p,b){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){xc(t);return}l=l!=null?""+He(l):"",e=e!=null?""+He(e):l,b||e===t.value||(t.value=e),t.defaultValue=e}u=u??c,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=b?t.checked:!!u,t.defaultChecked=!!u,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),xc(t)}function Sc(t,e,l){e==="number"&&yi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Fl(t,e,l,u){if(t=t.options,e){e={};for(var c=0;c<l.length;c++)e["$"+l[c]]=!0;for(l=0;l<t.length;l++)c=e.hasOwnProperty("$"+t[l].value),t[l].selected!==c&&(t[l].selected=c),c&&u&&(t[l].defaultSelected=!0)}else{for(l=""+He(l),e=null,c=0;c<t.length;c++){if(t[c].value===l){t[c].selected=!0,u&&(t[c].defaultSelected=!0);return}e!==null||t[c].disabled||(e=t[c])}e!==null&&(e.selected=!0)}}function od(t,e,l){if(e!=null&&(e=""+He(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+He(l):""}function sd(t,e,l,u){if(e==null){if(u!=null){if(l!=null)throw Error(r(92));if(P(u)){if(1<u.length)throw Error(r(93));u=u[0]}l=u}l==null&&(l=""),e=l}l=He(e),t.defaultValue=l,u=t.textContent,u===l&&u!==""&&u!==null&&(t.value=u),xc(t)}function Wl(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var nv=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 fd(t,e,l){var u=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":u?t.setProperty(e,l):typeof l!="number"||l===0||nv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function dd(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||e!=null&&e.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var c in e)u=e[c],e.hasOwnProperty(c)&&l[c]!==u&&fd(t,c,u)}else for(var s in e)e.hasOwnProperty(s)&&fd(t,s,e[s])}function _c(t){if(t.indexOf("-")===-1)return!1;switch(t){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 lv=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"]]),av=/^[\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(t){return av.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function hn(){}var wc=null;function Tc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Il=null,Pl=null;function hd(t){var e=$l(t);if(e&&(t=e.stateNode)){var l=t[pe]||null;t:switch(t=e.stateNode,e.type){case"input":if(bc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Le(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var u=l[e];if(u!==t&&u.form===t.form){var c=u[pe]||null;if(!c)throw Error(r(90));bc(u,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(e=0;e<l.length;e++)u=l[e],u.form===t.form&&rd(u)}break t;case"textarea":od(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Fl(t,!!l.multiple,e,!1)}}}var Mc=!1;function md(t,e,l){if(Mc)return t(e,l);Mc=!0;try{var u=t(e);return u}finally{if(Mc=!1,(Il!==null||Pl!==null)&&(ur(),Il&&(e=Il,t=Pl,Pl=Il=null,hd(e),t)))for(e=0;e<t.length;e++)hd(t[e])}}function Ja(t,e){var l=t.stateNode;if(l===null)return null;var u=l[pe]||null;if(u===null)return null;l=u[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ec=!1;if(mn)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Ec=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{Ec=!1}var Vn=null,Ac=null,xi=null;function gd(){if(xi)return xi;var t,e=Ac,l=e.length,u,c="value"in Vn?Vn.value:Vn.textContent,s=c.length;for(t=0;t<l&&e[t]===c[t];t++);var p=l-t;for(u=1;u<=p&&e[l-u]===c[s-u];u++);return xi=c.slice(t,1<u?1-u:void 0)}function bi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Si(){return!0}function pd(){return!1}function ye(t){function e(l,u,c,s,p){this._reactName=l,this._targetInst=c,this.type=u,this.nativeEvent=s,this.target=p,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(l=t[b],this[b]=l?l(s):s[b]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Si:pd,this.isPropagationStopped=pd,this}return y(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Si)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),e}var yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=ye(yl),Wa=y({},yl,{view:0,detail:0}),uv=ye(Wa),Cc,zc,Ia,wi=y({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ia&&(Ia&&t.type==="mousemove"?(Cc=t.screenX-Ia.screenX,zc=t.screenY-Ia.screenY):zc=Cc=0,Ia=t),Cc)},movementY:function(t){return"movementY"in t?t.movementY:zc}}),yd=ye(wi),iv=y({},wi,{dataTransfer:0}),rv=ye(iv),cv=y({},Wa,{relatedTarget:0}),Nc=ye(cv),ov=y({},yl,{animationName:0,elapsedTime:0,pseudoElement:0}),sv=ye(ov),fv=y({},yl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),dv=ye(fv),hv=y({},yl,{data:0}),vd=ye(hv),mv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gv={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"},pv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=pv[t])?!!e[t]:!1}function Dc(){return yv}var vv=y({},Wa,{key:function(t){if(t.key){var e=mv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=bi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?gv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dc,charCode:function(t){return t.type==="keypress"?bi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),xv=ye(vv),bv=y({},wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xd=ye(bv),Sv=y({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dc}),_v=ye(Sv),wv=y({},yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tv=ye(wv),Mv=y({},wi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ev=ye(Mv),Av=y({},yl,{newState:0,oldState:0}),Cv=ye(Av),zv=[9,13,27,32],Rc=mn&&"CompositionEvent"in window,Pa=null;mn&&"documentMode"in document&&(Pa=document.documentMode);var Nv=mn&&"TextEvent"in window&&!Pa,bd=mn&&(!Rc||Pa&&8<Pa&&11>=Pa),Sd=" ",_d=!1;function wd(t,e){switch(t){case"keyup":return zv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Td(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ta=!1;function Dv(t,e){switch(t){case"compositionend":return Td(e);case"keypress":return e.which!==32?null:(_d=!0,Sd);case"textInput":return t=e.data,t===Sd&&_d?null:t;default:return null}}function Rv(t,e){if(ta)return t==="compositionend"||!Rc&&wd(t,e)?(t=gd(),xi=Ac=Vn=null,ta=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return bd&&e.locale!=="ko"?null:e.data;default:return null}}var Ov={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 Md(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ov[t.type]:e==="textarea"}function Ed(t,e,l,u){Il?Pl?Pl.push(u):Pl=[u]:Il=u,e=dr(e,"onChange"),0<e.length&&(l=new _i("onChange","change",null,l,u),t.push({event:l,listeners:e}))}var tu=null,eu=null;function Uv(t){c0(t,0)}function Ti(t){var e=Ka(t);if(rd(e))return t}function Ad(t,e){if(t==="change")return e}var Cd=!1;if(mn){var Oc;if(mn){var Uc="oninput"in document;if(!Uc){var zd=document.createElement("div");zd.setAttribute("oninput","return;"),Uc=typeof zd.oninput=="function"}Oc=Uc}else Oc=!1;Cd=Oc&&(!document.documentMode||9<document.documentMode)}function Nd(){tu&&(tu.detachEvent("onpropertychange",Dd),eu=tu=null)}function Dd(t){if(t.propertyName==="value"&&Ti(eu)){var e=[];Ed(e,eu,t,Tc(t)),md(Uv,e)}}function jv(t,e,l){t==="focusin"?(Nd(),tu=e,eu=l,tu.attachEvent("onpropertychange",Dd)):t==="focusout"&&Nd()}function Hv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ti(eu)}function Lv(t,e){if(t==="click")return Ti(e)}function kv(t,e){if(t==="input"||t==="change")return Ti(e)}function Yv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ae=typeof Object.is=="function"?Object.is:Yv;function nu(t,e){if(Ae(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),u=Object.keys(e);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var c=l[u];if(!Vl.call(e,c)||!Ae(t[c],e[c]))return!1}return!0}function Rd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Od(t,e){var l=Rd(t);t=0;for(var u;l;){if(l.nodeType===3){if(u=t+l.textContent.length,t<=e&&u>=e)return{node:l,offset:e-t};t=u}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Rd(l)}}function Ud(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ud(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function jd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=yi(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=yi(t.document)}return e}function jc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Bv=mn&&"documentMode"in document&&11>=document.documentMode,ea=null,Hc=null,lu=null,Lc=!1;function Hd(t,e,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lc||ea==null||ea!==yi(u)||(u=ea,"selectionStart"in u&&jc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),lu&&nu(lu,u)||(lu=u,u=dr(Hc,"onSelect"),0<u.length&&(e=new _i("onSelect","select",null,e,l),t.push({event:e,listeners:u}),e.target=ea)))}function vl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var na={animationend:vl("Animation","AnimationEnd"),animationiteration:vl("Animation","AnimationIteration"),animationstart:vl("Animation","AnimationStart"),transitionrun:vl("Transition","TransitionRun"),transitionstart:vl("Transition","TransitionStart"),transitioncancel:vl("Transition","TransitionCancel"),transitionend:vl("Transition","TransitionEnd")},kc={},Ld={};mn&&(Ld=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function xl(t){if(kc[t])return kc[t];if(!na[t])return t;var e=na[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Ld)return kc[t]=e[l];return t}var kd=xl("animationend"),Yd=xl("animationiteration"),Bd=xl("animationstart"),qv=xl("transitionrun"),Gv=xl("transitionstart"),Xv=xl("transitioncancel"),qd=xl("transitionend"),Gd=new Map,Yc="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(" ");Yc.push("scrollEnd");function Ke(t,e){Gd.set(t,e),pl(e,[t])}var Mi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},ke=[],la=0,Bc=0;function Ei(){for(var t=la,e=Bc=la=0;e<t;){var l=ke[e];ke[e++]=null;var u=ke[e];ke[e++]=null;var c=ke[e];ke[e++]=null;var s=ke[e];if(ke[e++]=null,u!==null&&c!==null){var p=u.pending;p===null?c.next=c:(c.next=p.next,p.next=c),u.pending=c}s!==0&&Xd(l,c,s)}}function Ai(t,e,l,u){ke[la++]=t,ke[la++]=e,ke[la++]=l,ke[la++]=u,Bc|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function qc(t,e,l,u){return Ai(t,e,l,u),Ci(t)}function bl(t,e){return Ai(t,null,null,e),Ci(t)}function Xd(t,e,l){t.lanes|=l;var u=t.alternate;u!==null&&(u.lanes|=l);for(var c=!1,s=t.return;s!==null;)s.childLanes|=l,u=s.alternate,u!==null&&(u.childLanes|=l),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(c=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,c&&e!==null&&(c=31-Ee(l),t=s.hiddenUpdates,u=t[c],u===null?t[c]=[e]:u.push(e),e.lane=l|536870912),s):null}function Ci(t){if(50<Mu)throw Mu=0,Wo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var aa={};function Vv(t,e,l,u){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(t,e,l,u){return new Vv(t,e,l,u)}function Gc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function gn(t,e){var l=t.alternate;return l===null?(l=Ce(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Vd(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function zi(t,e,l,u,c,s){var p=0;if(u=t,typeof t=="function")Gc(t)&&(p=1);else if(typeof t=="string")p=J1(t,l,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case dt:return t=Ce(31,l,e,c),t.elementType=dt,t.lanes=s,t;case N:return Sl(l.children,c,s,e);case C:p=8,c|=24;break;case A:return t=Ce(12,l,e,c|2),t.elementType=A,t.lanes=s,t;case nt:return t=Ce(13,l,e,c),t.elementType=nt,t.lanes=s,t;case V:return t=Ce(19,l,e,c),t.elementType=V,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case L:p=10;break t;case q:p=9;break t;case J:p=11;break t;case K:p=14;break t;case st:p=16,u=null;break t}p=29,l=Error(r(130,t===null?"null":typeof t,"")),u=null}return e=Ce(p,l,e,c),e.elementType=t,e.type=u,e.lanes=s,e}function Sl(t,e,l,u){return t=Ce(7,t,u,e),t.lanes=l,t}function Xc(t,e,l){return t=Ce(6,t,null,e),t.lanes=l,t}function Qd(t){var e=Ce(18,null,null,0);return e.stateNode=t,e}function Vc(t,e,l){return e=Ce(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Zd=new WeakMap;function Ye(t,e){if(typeof t=="object"&&t!==null){var l=Zd.get(t);return l!==void 0?l:(e={value:t,source:e,stack:fn(e)},Zd.set(t,e),e)}return{value:t,source:e,stack:fn(e)}}var ua=[],ia=0,Ni=null,au=0,Be=[],qe=0,Qn=null,nn=1,ln="";function pn(t,e){ua[ia++]=au,ua[ia++]=Ni,Ni=t,au=e}function $d(t,e,l){Be[qe++]=nn,Be[qe++]=ln,Be[qe++]=Qn,Qn=t;var u=nn;t=ln;var c=32-Ee(u)-1;u&=~(1<<c),l+=1;var s=32-Ee(e)+c;if(30<s){var p=c-c%5;s=(u&(1<<p)-1).toString(32),u>>=p,c-=p,nn=1<<32-Ee(e)+c|l<<c|u,ln=s+t}else nn=1<<s|l<<c|u,ln=t}function Qc(t){t.return!==null&&(pn(t,1),$d(t,1,0))}function Zc(t){for(;t===Ni;)Ni=ua[--ia],ua[ia]=null,au=ua[--ia],ua[ia]=null;for(;t===Qn;)Qn=Be[--qe],Be[qe]=null,ln=Be[--qe],Be[qe]=null,nn=Be[--qe],Be[qe]=null}function Kd(t,e){Be[qe++]=nn,Be[qe++]=ln,Be[qe++]=Qn,nn=e.id,ln=e.overflow,Qn=t}var ce=null,Bt=null,At=!1,Zn=null,Ge=!1,$c=Error(r(519));function $n(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw uu(Ye(e,t)),$c}function Jd(t){var e=t.stateNode,l=t.type,u=t.memoizedProps;switch(e[re]=t,e[pe]=u,l){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(l=0;l<Au.length;l++)Tt(Au[l],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),cd(e,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),sd(e,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||u.suppressHydrationWarning===!0||d0(e.textContent,l)?(u.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),u.onScroll!=null&&Tt("scroll",e),u.onScrollEnd!=null&&Tt("scrollend",e),u.onClick!=null&&(e.onclick=hn),e=!0):e=!1,e||$n(t,!0)}function Fd(t){for(ce=t.return;ce;)switch(ce.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:ce=ce.return}}function ra(t){if(t!==ce)return!1;if(!At)return Fd(t),At=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||ds(t.type,t.memoizedProps)),l=!l),l&&Bt&&$n(t),Fd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=S0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=S0(t)}else e===27?(e=Bt,rl(t.type)?(t=ys,ys=null,Bt=t):Bt=e):Bt=ce?Ve(t.stateNode.nextSibling):null;return!0}function _l(){Bt=ce=null,At=!1}function Kc(){var t=Zn;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),Zn=null),t}function uu(t){Zn===null?Zn=[t]:Zn.push(t)}var Jc=S(null),wl=null,yn=null;function Kn(t,e,l){Z(Jc,e._currentValue),e._currentValue=l}function vn(t){t._currentValue=Jc.current,O(Jc)}function Fc(t,e,l){for(;t!==null;){var u=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,u!==null&&(u.childLanes|=e)):u!==null&&(u.childLanes&e)!==e&&(u.childLanes|=e),t===l)break;t=t.return}}function Wc(t,e,l,u){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var s=c.dependencies;if(s!==null){var p=c.child;s=s.firstContext;t:for(;s!==null;){var b=s;s=c;for(var T=0;T<e.length;T++)if(b.context===e[T]){s.lanes|=l,b=s.alternate,b!==null&&(b.lanes|=l),Fc(s.return,l,t),u||(p=null);break t}s=b.next}}else if(c.tag===18){if(p=c.return,p===null)throw Error(r(341));p.lanes|=l,s=p.alternate,s!==null&&(s.lanes|=l),Fc(p,l,t),p=null}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===t){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}}function ca(t,e,l,u){t=null;for(var c=e,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var p=c.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var b=c.type;Ae(c.pendingProps.value,p.value)||(t!==null?t.push(b):t=[b])}}else if(c===ct.current){if(p=c.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(Ru):t=[Ru])}c=c.return}t!==null&&Wc(e,t,l,u),e.flags|=262144}function Di(t){for(t=t.firstContext;t!==null;){if(!Ae(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Tl(t){wl=t,yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return Wd(wl,t)}function Ri(t,e){return wl===null&&Tl(t),Wd(t,e)}function Wd(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},yn===null){if(t===null)throw Error(r(308));yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else yn=yn.next=e;return l}var Qv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,u){t.push(u)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Zv=n.unstable_scheduleCallback,$v=n.unstable_NormalPriority,Wt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ic(){return{controller:new Qv,data:new Map,refCount:0}}function iu(t){t.refCount--,t.refCount===0&&Zv($v,function(){t.controller.abort()})}var ru=null,Pc=0,oa=0,sa=null;function Kv(t,e){if(ru===null){var l=ru=[];Pc=0,oa=ls(),sa={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Pc++,e.then(Id,Id),e}function Id(){if(--Pc===0&&ru!==null){sa!==null&&(sa.status="fulfilled");var t=ru;ru=null,oa=0,sa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Jv(t,e){var l=[],u={status:"pending",value:null,reason:null,then:function(c){l.push(c)}};return t.then(function(){u.status="fulfilled",u.value=e;for(var c=0;c<l.length;c++)(0,l[c])(e)},function(c){for(u.status="rejected",u.reason=c,c=0;c<l.length;c++)(0,l[c])(void 0)}),u}var Pd=M.S;M.S=function(t,e){Hm=Te(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Kv(t,e),Pd!==null&&Pd(t,e)};var Ml=S(null);function to(){var t=Ml.current;return t!==null?t:kt.pooledCache}function Oi(t,e){e===null?Z(Ml,Ml.current):Z(Ml,e.pool)}function th(){var t=to();return t===null?null:{parent:Wt._currentValue,pool:t}}var fa=Error(r(460)),eo=Error(r(474)),Ui=Error(r(542)),ji={then:function(){}};function eh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function nh(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(hn,hn),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ah(t),t;default:if(typeof e.status=="string")e.then(hn,hn);else{if(t=kt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(u){if(e.status==="pending"){var c=e;c.status="fulfilled",c.value=u}},function(u){if(e.status==="pending"){var c=e;c.status="rejected",c.reason=u}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ah(t),t}throw Al=e,fa}}function El(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Al=l,fa):l}}var Al=null;function lh(){if(Al===null)throw Error(r(459));var t=Al;return Al=null,t}function ah(t){if(t===fa||t===Ui)throw Error(r(483))}var da=null,cu=0;function Hi(t){var e=cu;return cu+=1,da===null&&(da=[]),nh(da,t,e)}function ou(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Li(t,e){throw e.$$typeof===x?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function uh(t){function e(z,E){if(t){var U=z.deletions;U===null?(z.deletions=[E],z.flags|=16):U.push(E)}}function l(z,E){if(!t)return null;for(;E!==null;)e(z,E),E=E.sibling;return null}function u(z){for(var E=new Map;z!==null;)z.key!==null?E.set(z.key,z):E.set(z.index,z),z=z.sibling;return E}function c(z,E){return z=gn(z,E),z.index=0,z.sibling=null,z}function s(z,E,U){return z.index=U,t?(U=z.alternate,U!==null?(U=U.index,U<E?(z.flags|=67108866,E):U):(z.flags|=67108866,E)):(z.flags|=1048576,E)}function p(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function b(z,E,U,Q){return E===null||E.tag!==6?(E=Xc(U,z.mode,Q),E.return=z,E):(E=c(E,U),E.return=z,E)}function T(z,E,U,Q){var ot=U.type;return ot===N?G(z,E,U.props.children,Q,U.key):E!==null&&(E.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===st&&El(ot)===E.type)?(E=c(E,U.props),ou(E,U),E.return=z,E):(E=zi(U.type,U.key,U.props,null,z.mode,Q),ou(E,U),E.return=z,E)}function j(z,E,U,Q){return E===null||E.tag!==4||E.stateNode.containerInfo!==U.containerInfo||E.stateNode.implementation!==U.implementation?(E=Vc(U,z.mode,Q),E.return=z,E):(E=c(E,U.children||[]),E.return=z,E)}function G(z,E,U,Q,ot){return E===null||E.tag!==7?(E=Sl(U,z.mode,Q,ot),E.return=z,E):(E=c(E,U),E.return=z,E)}function $(z,E,U){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Xc(""+E,z.mode,U),E.return=z,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case w:return U=zi(E.type,E.key,E.props,null,z.mode,U),ou(U,E),U.return=z,U;case k:return E=Vc(E,z.mode,U),E.return=z,E;case st:return E=El(E),$(z,E,U)}if(P(E)||X(E))return E=Sl(E,z.mode,U,null),E.return=z,E;if(typeof E.then=="function")return $(z,Hi(E),U);if(E.$$typeof===L)return $(z,Ri(z,E),U);Li(z,E)}return null}function H(z,E,U,Q){var ot=E!==null?E.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ot!==null?null:b(z,E,""+U,Q);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return U.key===ot?T(z,E,U,Q):null;case k:return U.key===ot?j(z,E,U,Q):null;case st:return U=El(U),H(z,E,U,Q)}if(P(U)||X(U))return ot!==null?null:G(z,E,U,Q,null);if(typeof U.then=="function")return H(z,E,Hi(U),Q);if(U.$$typeof===L)return H(z,E,Ri(z,U),Q);Li(z,U)}return null}function B(z,E,U,Q,ot){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return z=z.get(U)||null,b(E,z,""+Q,ot);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return z=z.get(Q.key===null?U:Q.key)||null,T(E,z,Q,ot);case k:return z=z.get(Q.key===null?U:Q.key)||null,j(E,z,Q,ot);case st:return Q=El(Q),B(z,E,U,Q,ot)}if(P(Q)||X(Q))return z=z.get(U)||null,G(E,z,Q,ot,null);if(typeof Q.then=="function")return B(z,E,U,Hi(Q),ot);if(Q.$$typeof===L)return B(z,E,U,Ri(E,Q),ot);Li(E,Q)}return null}function it(z,E,U,Q){for(var ot=null,zt=null,rt=E,xt=E=0,Et=null;rt!==null&&xt<U.length;xt++){rt.index>xt?(Et=rt,rt=null):Et=rt.sibling;var Nt=H(z,rt,U[xt],Q);if(Nt===null){rt===null&&(rt=Et);break}t&&rt&&Nt.alternate===null&&e(z,rt),E=s(Nt,E,xt),zt===null?ot=Nt:zt.sibling=Nt,zt=Nt,rt=Et}if(xt===U.length)return l(z,rt),At&&pn(z,xt),ot;if(rt===null){for(;xt<U.length;xt++)rt=$(z,U[xt],Q),rt!==null&&(E=s(rt,E,xt),zt===null?ot=rt:zt.sibling=rt,zt=rt);return At&&pn(z,xt),ot}for(rt=u(rt);xt<U.length;xt++)Et=B(rt,z,xt,U[xt],Q),Et!==null&&(t&&Et.alternate!==null&&rt.delete(Et.key===null?xt:Et.key),E=s(Et,E,xt),zt===null?ot=Et:zt.sibling=Et,zt=Et);return t&&rt.forEach(function(dl){return e(z,dl)}),At&&pn(z,xt),ot}function ft(z,E,U,Q){if(U==null)throw Error(r(151));for(var ot=null,zt=null,rt=E,xt=E=0,Et=null,Nt=U.next();rt!==null&&!Nt.done;xt++,Nt=U.next()){rt.index>xt?(Et=rt,rt=null):Et=rt.sibling;var dl=H(z,rt,Nt.value,Q);if(dl===null){rt===null&&(rt=Et);break}t&&rt&&dl.alternate===null&&e(z,rt),E=s(dl,E,xt),zt===null?ot=dl:zt.sibling=dl,zt=dl,rt=Et}if(Nt.done)return l(z,rt),At&&pn(z,xt),ot;if(rt===null){for(;!Nt.done;xt++,Nt=U.next())Nt=$(z,Nt.value,Q),Nt!==null&&(E=s(Nt,E,xt),zt===null?ot=Nt:zt.sibling=Nt,zt=Nt);return At&&pn(z,xt),ot}for(rt=u(rt);!Nt.done;xt++,Nt=U.next())Nt=B(rt,z,xt,Nt.value,Q),Nt!==null&&(t&&Nt.alternate!==null&&rt.delete(Nt.key===null?xt:Nt.key),E=s(Nt,E,xt),zt===null?ot=Nt:zt.sibling=Nt,zt=Nt);return t&&rt.forEach(function(ix){return e(z,ix)}),At&&pn(z,xt),ot}function Lt(z,E,U,Q){if(typeof U=="object"&&U!==null&&U.type===N&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case w:t:{for(var ot=U.key;E!==null;){if(E.key===ot){if(ot=U.type,ot===N){if(E.tag===7){l(z,E.sibling),Q=c(E,U.props.children),Q.return=z,z=Q;break t}}else if(E.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===st&&El(ot)===E.type){l(z,E.sibling),Q=c(E,U.props),ou(Q,U),Q.return=z,z=Q;break t}l(z,E);break}else e(z,E);E=E.sibling}U.type===N?(Q=Sl(U.props.children,z.mode,Q,U.key),Q.return=z,z=Q):(Q=zi(U.type,U.key,U.props,null,z.mode,Q),ou(Q,U),Q.return=z,z=Q)}return p(z);case k:t:{for(ot=U.key;E!==null;){if(E.key===ot)if(E.tag===4&&E.stateNode.containerInfo===U.containerInfo&&E.stateNode.implementation===U.implementation){l(z,E.sibling),Q=c(E,U.children||[]),Q.return=z,z=Q;break t}else{l(z,E);break}else e(z,E);E=E.sibling}Q=Vc(U,z.mode,Q),Q.return=z,z=Q}return p(z);case st:return U=El(U),Lt(z,E,U,Q)}if(P(U))return it(z,E,U,Q);if(X(U)){if(ot=X(U),typeof ot!="function")throw Error(r(150));return U=ot.call(U),ft(z,E,U,Q)}if(typeof U.then=="function")return Lt(z,E,Hi(U),Q);if(U.$$typeof===L)return Lt(z,E,Ri(z,U),Q);Li(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,E!==null&&E.tag===6?(l(z,E.sibling),Q=c(E,U),Q.return=z,z=Q):(l(z,E),Q=Xc(U,z.mode,Q),Q.return=z,z=Q),p(z)):l(z,E)}return function(z,E,U,Q){try{cu=0;var ot=Lt(z,E,U,Q);return da=null,ot}catch(rt){if(rt===fa||rt===Ui)throw rt;var zt=Ce(29,rt,null,z.mode);return zt.lanes=Q,zt.return=z,zt}finally{}}}var Cl=uh(!0),ih=uh(!1),Jn=!1;function no(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(t,e,l){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Rt&2)!==0){var c=u.pending;return c===null?e.next=e:(e.next=c.next,c.next=e),u.pending=e,e=Ci(t),Xd(t,null,l),e}return Ai(t,u,e,l),Ci(t)}function su(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var u=e.lanes;u&=t.pendingLanes,l|=u,e.lanes=l,Wf(t,l)}}function ao(t,e){var l=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var c=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var p={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?c=s=p:s=s.next=p,l=l.next}while(l!==null);s===null?c=s=e:s=s.next=e}else c=s=e;l={baseState:u.baseState,firstBaseUpdate:c,lastBaseUpdate:s,shared:u.shared,callbacks:u.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var uo=!1;function fu(){if(uo){var t=sa;if(t!==null)throw t}}function du(t,e,l,u){uo=!1;var c=t.updateQueue;Jn=!1;var s=c.firstBaseUpdate,p=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var T=b,j=T.next;T.next=null,p===null?s=j:p.next=j,p=T;var G=t.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==p&&(b===null?G.firstBaseUpdate=j:b.next=j,G.lastBaseUpdate=T))}if(s!==null){var $=c.baseState;p=0,G=j=T=null,b=s;do{var H=b.lane&-536870913,B=H!==b.lane;if(B?(Mt&H)===H:(u&H)===H){H!==0&&H===oa&&(uo=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var it=t,ft=b;H=e;var Lt=l;switch(ft.tag){case 1:if(it=ft.payload,typeof it=="function"){$=it.call(Lt,$,H);break t}$=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=ft.payload,H=typeof it=="function"?it.call(Lt,$,H):it,H==null)break t;$=y({},$,H);break t;case 2:Jn=!0}}H=b.callback,H!==null&&(t.flags|=64,B&&(t.flags|=8192),B=c.callbacks,B===null?c.callbacks=[H]:B.push(H))}else B={lane:H,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(j=G=B,T=$):G=G.next=B,p|=H;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;B=b,b=B.next,B.next=null,c.lastBaseUpdate=B,c.shared.pending=null}}while(!0);G===null&&(T=$),c.baseState=T,c.firstBaseUpdate=j,c.lastBaseUpdate=G,s===null&&(c.shared.lanes=0),nl|=p,t.lanes=p,t.memoizedState=$}}function rh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function ch(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)rh(l[t],e)}var ha=S(null),ki=S(0);function oh(t,e){t=An,Z(ki,t),Z(ha,e),An=t|e.baseLanes}function io(){Z(ki,An),Z(ha,ha.current)}function ro(){An=ki.current,O(ha),O(ki)}var ze=S(null),Xe=null;function In(t){var e=t.alternate;Z(Jt,Jt.current&1),Z(ze,t),Xe===null&&(e===null||ha.current!==null||e.memoizedState!==null)&&(Xe=t)}function co(t){Z(Jt,Jt.current),Z(ze,t),Xe===null&&(Xe=t)}function sh(t){t.tag===22?(Z(Jt,Jt.current),Z(ze,t),Xe===null&&(Xe=t)):Pn()}function Pn(){Z(Jt,Jt.current),Z(ze,ze.current)}function Ne(t){O(ze),Xe===t&&(Xe=null),O(Jt)}var Jt=S(0);function Yi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||gs(l)||ps(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var xn=0,yt=null,jt=null,It=null,Bi=!1,ma=!1,zl=!1,qi=0,hu=0,ga=null,Fv=0;function Zt(){throw Error(r(321))}function oo(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Ae(t[l],e[l]))return!1;return!0}function so(t,e,l,u,c,s){return xn=s,yt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?$h:Eo,zl=!1,s=l(u,c),zl=!1,ma&&(s=dh(e,l,u,c)),fh(t),s}function fh(t){M.H=pu;var e=jt!==null&&jt.next!==null;if(xn=0,It=jt=yt=null,Bi=!1,hu=0,ga=null,e)throw Error(r(300));t===null||Pt||(t=t.dependencies,t!==null&&Di(t)&&(Pt=!0))}function dh(t,e,l,u){yt=t;var c=0;do{if(ma&&(ga=null),hu=0,ma=!1,25<=c)throw Error(r(301));if(c+=1,It=jt=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}M.H=Kh,s=e(l,u)}while(ma);return s}function Wv(){var t=M.H,e=t.useState()[0];return e=typeof e.then=="function"?mu(e):e,t=t.useState()[0],(jt!==null?jt.memoizedState:null)!==t&&(yt.flags|=1024),e}function fo(){var t=qi!==0;return qi=0,t}function ho(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function mo(t){if(Bi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Bi=!1}xn=0,It=jt=yt=null,ma=!1,hu=qi=0,ga=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?yt.memoizedState=It=t:It=It.next=t,It}function Ft(){if(jt===null){var t=yt.alternate;t=t!==null?t.memoizedState:null}else t=jt.next;var e=It===null?yt.memoizedState:It.next;if(e!==null)It=e,jt=t;else{if(t===null)throw yt.alternate===null?Error(r(467)):Error(r(310));jt=t,t={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},It===null?yt.memoizedState=It=t:It=It.next=t}return It}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mu(t){var e=hu;return hu+=1,ga===null&&(ga=[]),t=nh(ga,t,e),e=yt,(It===null?e.memoizedState:It.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?$h:Eo),t}function Xi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return mu(t);if(t.$$typeof===L)return oe(t)}throw Error(r(438,String(t)))}function go(t){var e=null,l=yt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var u=yt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(e={data:u.data.map(function(c){return c.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Gi(),yt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),u=0;u<t;u++)l[u]=vt;return e.index++,l}function bn(t,e){return typeof e=="function"?e(t):e}function Vi(t){var e=Ft();return po(e,jt,t)}function po(t,e,l){var u=t.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=l;var c=t.baseQueue,s=u.pending;if(s!==null){if(c!==null){var p=c.next;c.next=s.next,s.next=p}e.baseQueue=c=s,u.pending=null}if(s=t.baseState,c===null)t.memoizedState=s;else{e=c.next;var b=p=null,T=null,j=e,G=!1;do{var $=j.lane&-536870913;if($!==j.lane?(Mt&$)===$:(xn&$)===$){var H=j.revertLane;if(H===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),$===oa&&(G=!0);else if((xn&H)===H){j=j.next,H===oa&&(G=!0);continue}else $={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(b=T=$,p=s):T=T.next=$,yt.lanes|=H,nl|=H;$=j.action,zl&&l(s,$),s=j.hasEagerState?j.eagerState:l(s,$)}else H={lane:$,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(b=T=H,p=s):T=T.next=H,yt.lanes|=$,nl|=$;j=j.next}while(j!==null&&j!==e);if(T===null?p=s:T.next=b,!Ae(s,t.memoizedState)&&(Pt=!0,G&&(l=sa,l!==null)))throw l;t.memoizedState=s,t.baseState=p,t.baseQueue=T,u.lastRenderedState=s}return c===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function yo(t){var e=Ft(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var u=l.dispatch,c=l.pending,s=e.memoizedState;if(c!==null){l.pending=null;var p=c=c.next;do s=t(s,p.action),p=p.next;while(p!==c);Ae(s,e.memoizedState)||(Pt=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),l.lastRenderedState=s}return[s,u]}function hh(t,e,l){var u=yt,c=Ft(),s=At;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=e();var p=!Ae((jt||c).memoizedState,l);if(p&&(c.memoizedState=l,Pt=!0),c=c.queue,bo(ph.bind(null,u,c,t),[t]),c.getSnapshot!==e||p||It!==null&&It.memoizedState.tag&1){if(u.flags|=2048,pa(9,{destroy:void 0},gh.bind(null,u,c,l,e),null),kt===null)throw Error(r(349));s||(xn&127)!==0||mh(u,e,l)}return l}function mh(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=yt.updateQueue,e===null?(e=Gi(),yt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function gh(t,e,l,u){e.value=l,e.getSnapshot=u,yh(e)&&vh(t)}function ph(t,e,l){return l(function(){yh(e)&&vh(t)})}function yh(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Ae(t,l)}catch{return!0}}function vh(t){var e=bl(t,2);e!==null&&_e(e,t,2)}function vo(t){var e=me();if(typeof t=="function"){var l=t;if(t=l(),zl){Gn(!0);try{l()}finally{Gn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:t},e}function xh(t,e,l,u){return t.baseState=l,po(t,jt,typeof u=="function"?u:bn)}function Iv(t,e,l,u,c){if($i(t))throw Error(r(485));if(t=e.action,t!==null){var s={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){s.listeners.push(p)}};M.T!==null?l(!0):s.isTransition=!1,u(s),l=e.pending,l===null?(s.next=e.pending=s,bh(e,s)):(s.next=l.next,e.pending=l.next=s)}}function bh(t,e){var l=e.action,u=e.payload,c=t.state;if(e.isTransition){var s=M.T,p={};M.T=p;try{var b=l(c,u),T=M.S;T!==null&&T(p,b),Sh(t,e,b)}catch(j){xo(t,e,j)}finally{s!==null&&p.types!==null&&(s.types=p.types),M.T=s}}else try{s=l(c,u),Sh(t,e,s)}catch(j){xo(t,e,j)}}function Sh(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){_h(t,e,u)},function(u){return xo(t,e,u)}):_h(t,e,l)}function _h(t,e,l){e.status="fulfilled",e.value=l,wh(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,bh(t,l)))}function xo(t,e,l){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do e.status="rejected",e.reason=l,wh(e),e=e.next;while(e!==u)}t.action=null}function wh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Th(t,e){return e}function Mh(t,e){if(At){var l=kt.formState;if(l!==null){t:{var u=yt;if(At){if(Bt){e:{for(var c=Bt,s=Ge;c.nodeType!==8;){if(!s){c=null;break e}if(c=Ve(c.nextSibling),c===null){c=null;break e}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){Bt=Ve(c.nextSibling),u=c.data==="F!";break t}}$n(u)}u=!1}u&&(e=l[0])}}return l=me(),l.memoizedState=l.baseState=e,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Th,lastRenderedState:e},l.queue=u,l=Vh.bind(null,yt,u),u.dispatch=l,u=vo(!1),s=Mo.bind(null,yt,!1,u.queue),u=me(),c={state:e,dispatch:null,action:t,pending:null},u.queue=c,l=Iv.bind(null,yt,c,s,l),c.dispatch=l,u.memoizedState=t,[e,l,!1]}function Eh(t){var e=Ft();return Ah(e,jt,t)}function Ah(t,e,l){if(e=po(t,e,Th)[0],t=Vi(bn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var u=mu(e)}catch(p){throw p===fa?Ui:p}else u=e;e=Ft();var c=e.queue,s=c.dispatch;return l!==e.memoizedState&&(yt.flags|=2048,pa(9,{destroy:void 0},Pv.bind(null,c,l),null)),[u,s,t]}function Pv(t,e){t.action=e}function Ch(t){var e=Ft(),l=jt;if(l!==null)return Ah(e,l,t);Ft(),e=e.memoizedState,l=Ft();var u=l.queue.dispatch;return l.memoizedState=t,[e,u,!1]}function pa(t,e,l,u){return t={tag:t,create:l,deps:u,inst:e,next:null},e=yt.updateQueue,e===null&&(e=Gi(),yt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(u=l.next,l.next=t,t.next=u,e.lastEffect=t),t}function zh(){return Ft().memoizedState}function Qi(t,e,l,u){var c=me();yt.flags|=t,c.memoizedState=pa(1|e,{destroy:void 0},l,u===void 0?null:u)}function Zi(t,e,l,u){var c=Ft();u=u===void 0?null:u;var s=c.memoizedState.inst;jt!==null&&u!==null&&oo(u,jt.memoizedState.deps)?c.memoizedState=pa(e,s,l,u):(yt.flags|=t,c.memoizedState=pa(1|e,s,l,u))}function Nh(t,e){Qi(8390656,8,t,e)}function bo(t,e){Zi(2048,8,t,e)}function t1(t){yt.flags|=4;var e=yt.updateQueue;if(e===null)e=Gi(),yt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Dh(t){var e=Ft().memoizedState;return t1({ref:e,nextImpl:t}),function(){if((Rt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Rh(t,e){return Zi(4,2,t,e)}function Oh(t,e){return Zi(4,4,t,e)}function Uh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function jh(t,e,l){l=l!=null?l.concat([t]):null,Zi(4,4,Uh.bind(null,e,t),l)}function So(){}function Hh(t,e){var l=Ft();e=e===void 0?null:e;var u=l.memoizedState;return e!==null&&oo(e,u[1])?u[0]:(l.memoizedState=[t,e],t)}function Lh(t,e){var l=Ft();e=e===void 0?null:e;var u=l.memoizedState;if(e!==null&&oo(e,u[1]))return u[0];if(u=t(),zl){Gn(!0);try{t()}finally{Gn(!1)}}return l.memoizedState=[u,e],u}function _o(t,e,l){return l===void 0||(xn&1073741824)!==0&&(Mt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=km(),yt.lanes|=t,nl|=t,l)}function kh(t,e,l,u){return Ae(l,e)?l:ha.current!==null?(t=_o(t,l,u),Ae(t,e)||(Pt=!0),t):(xn&42)===0||(xn&1073741824)!==0&&(Mt&261930)===0?(Pt=!0,t.memoizedState=l):(t=km(),yt.lanes|=t,nl|=t,e)}function Yh(t,e,l,u,c){var s=Y.p;Y.p=s!==0&&8>s?s:8;var p=M.T,b={};M.T=b,Mo(t,!1,e,l);try{var T=c(),j=M.S;if(j!==null&&j(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var G=Jv(T,u);gu(t,e,G,Oe(t))}else gu(t,e,u,Oe(t))}catch($){gu(t,e,{then:function(){},status:"rejected",reason:$},Oe())}finally{Y.p=s,p!==null&&b.types!==null&&(p.types=b.types),M.T=p}}function e1(){}function wo(t,e,l,u){if(t.tag!==5)throw Error(r(476));var c=Bh(t).queue;Yh(t,c,e,F,l===null?e1:function(){return qh(t),l(u)})}function Bh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:F},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qh(t){var e=Bh(t);e.next===null&&(e=t.alternate.memoizedState),gu(t,e.next.queue,{},Oe())}function To(){return oe(Ru)}function Gh(){return Ft().memoizedState}function Xh(){return Ft().memoizedState}function n1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Oe();t=Fn(l);var u=Wn(e,t,l);u!==null&&(_e(u,e,l),su(u,e,l)),e={cache:Ic()},t.payload=e;return}e=e.return}}function l1(t,e,l){var u=Oe();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$i(t)?Qh(e,l):(l=qc(t,e,l,u),l!==null&&(_e(l,t,u),Zh(l,e,u)))}function Vh(t,e,l){var u=Oe();gu(t,e,l,u)}function gu(t,e,l,u){var c={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if($i(t))Qh(e,c);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var p=e.lastRenderedState,b=s(p,l);if(c.hasEagerState=!0,c.eagerState=b,Ae(b,p))return Ai(t,e,c,0),kt===null&&Ei(),!1}catch{}finally{}if(l=qc(t,e,c,u),l!==null)return _e(l,t,u),Zh(l,e,u),!0}return!1}function Mo(t,e,l,u){if(u={lane:2,revertLane:ls(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},$i(t)){if(e)throw Error(r(479))}else e=qc(t,l,u,2),e!==null&&_e(e,t,2)}function $i(t){var e=t.alternate;return t===yt||e!==null&&e===yt}function Qh(t,e){ma=Bi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Zh(t,e,l){if((l&4194048)!==0){var u=e.lanes;u&=t.pendingLanes,l|=u,e.lanes=l,Wf(t,l)}}var pu={readContext:oe,use:Xi,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt};pu.useEffectEvent=Zt;var $h={readContext:oe,use:Xi,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:Nh,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Qi(4194308,4,Uh.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Qi(4194308,4,t,e)},useInsertionEffect:function(t,e){Qi(4,2,t,e)},useMemo:function(t,e){var l=me();e=e===void 0?null:e;var u=t();if(zl){Gn(!0);try{t()}finally{Gn(!1)}}return l.memoizedState=[u,e],u},useReducer:function(t,e,l){var u=me();if(l!==void 0){var c=l(e);if(zl){Gn(!0);try{l(e)}finally{Gn(!1)}}}else c=e;return u.memoizedState=u.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},u.queue=t,t=t.dispatch=l1.bind(null,yt,t),[u.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=vo(t);var e=t.queue,l=Vh.bind(null,yt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:So,useDeferredValue:function(t,e){var l=me();return _o(l,t,e)},useTransition:function(){var t=vo(!1);return t=Yh.bind(null,yt,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var u=yt,c=me();if(At){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),kt===null)throw Error(r(349));(Mt&127)!==0||mh(u,e,l)}c.memoizedState=l;var s={value:l,getSnapshot:e};return c.queue=s,Nh(ph.bind(null,u,s,t),[t]),u.flags|=2048,pa(9,{destroy:void 0},gh.bind(null,u,s,l,e),null),l},useId:function(){var t=me(),e=kt.identifierPrefix;if(At){var l=ln,u=nn;l=(u&~(1<<32-Ee(u)-1)).toString(32)+l,e="_"+e+"R_"+l,l=qi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Fv++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:To,useFormState:Mh,useActionState:Mh,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Mo.bind(null,yt,!0,l),l.dispatch=e,[t,e]},useMemoCache:go,useCacheRefresh:function(){return me().memoizedState=n1.bind(null,yt)},useEffectEvent:function(t){var e=me(),l={impl:t};return e.memoizedState=l,function(){if((Rt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Eo={readContext:oe,use:Xi,useCallback:Hh,useContext:oe,useEffect:bo,useImperativeHandle:jh,useInsertionEffect:Rh,useLayoutEffect:Oh,useMemo:Lh,useReducer:Vi,useRef:zh,useState:function(){return Vi(bn)},useDebugValue:So,useDeferredValue:function(t,e){var l=Ft();return kh(l,jt.memoizedState,t,e)},useTransition:function(){var t=Vi(bn)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:mu(t),e]},useSyncExternalStore:hh,useId:Gh,useHostTransitionStatus:To,useFormState:Eh,useActionState:Eh,useOptimistic:function(t,e){var l=Ft();return xh(l,jt,t,e)},useMemoCache:go,useCacheRefresh:Xh};Eo.useEffectEvent=Dh;var Kh={readContext:oe,use:Xi,useCallback:Hh,useContext:oe,useEffect:bo,useImperativeHandle:jh,useInsertionEffect:Rh,useLayoutEffect:Oh,useMemo:Lh,useReducer:yo,useRef:zh,useState:function(){return yo(bn)},useDebugValue:So,useDeferredValue:function(t,e){var l=Ft();return jt===null?_o(l,t,e):kh(l,jt.memoizedState,t,e)},useTransition:function(){var t=yo(bn)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:mu(t),e]},useSyncExternalStore:hh,useId:Gh,useHostTransitionStatus:To,useFormState:Ch,useActionState:Ch,useOptimistic:function(t,e){var l=Ft();return jt!==null?xh(l,jt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:go,useCacheRefresh:Xh};Kh.useEffectEvent=Dh;function Ao(t,e,l,u){e=t.memoizedState,l=l(u,e),l=l==null?e:y({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Co={enqueueSetState:function(t,e,l){t=t._reactInternals;var u=Oe(),c=Fn(u);c.payload=e,l!=null&&(c.callback=l),e=Wn(t,c,u),e!==null&&(_e(e,t,u),su(e,t,u))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var u=Oe(),c=Fn(u);c.tag=1,c.payload=e,l!=null&&(c.callback=l),e=Wn(t,c,u),e!==null&&(_e(e,t,u),su(e,t,u))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Oe(),u=Fn(l);u.tag=2,e!=null&&(u.callback=e),e=Wn(t,u,l),e!==null&&(_e(e,t,l),su(e,t,l))}};function Jh(t,e,l,u,c,s,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,s,p):e.prototype&&e.prototype.isPureReactComponent?!nu(l,u)||!nu(c,s):!0}function Fh(t,e,l,u){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,u),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,u),e.state!==t&&Co.enqueueReplaceState(e,e.state,null)}function Nl(t,e){var l=e;if("ref"in e){l={};for(var u in e)u!=="ref"&&(l[u]=e[u])}if(t=t.defaultProps){l===e&&(l=y({},l));for(var c in t)l[c]===void 0&&(l[c]=t[c])}return l}function Wh(t){Mi(t)}function Ih(t){console.error(t)}function Ph(t){Mi(t)}function Ki(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(u){setTimeout(function(){throw u})}}function tm(t,e,l){try{var u=t.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function zo(t,e,l){return l=Fn(l),l.tag=3,l.payload={element:null},l.callback=function(){Ki(t,e)},l}function em(t){return t=Fn(t),t.tag=3,t}function nm(t,e,l,u){var c=l.type.getDerivedStateFromError;if(typeof c=="function"){var s=u.value;t.payload=function(){return c(s)},t.callback=function(){tm(e,l,u)}}var p=l.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){tm(e,l,u),typeof c!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var b=u.stack;this.componentDidCatch(u.value,{componentStack:b!==null?b:""})})}function a1(t,e,l,u,c){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(e=l.alternate,e!==null&&ca(e,l,c,!0),l=ze.current,l!==null){switch(l.tag){case 31:case 13:return Xe===null?ir():l.alternate===null&&$t===0&&($t=3),l.flags&=-257,l.flags|=65536,l.lanes=c,u===ji?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([u]):e.add(u),ts(t,u,c)),!1;case 22:return l.flags|=65536,u===ji?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([u]):l.add(u)),ts(t,u,c)),!1}throw Error(r(435,l.tag))}return ts(t,u,c),ir(),!1}if(At)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=c,u!==$c&&(t=Error(r(422),{cause:u}),uu(Ye(t,l)))):(u!==$c&&(e=Error(r(423),{cause:u}),uu(Ye(e,l))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,u=Ye(u,l),c=zo(t.stateNode,u,c),ao(t,c),$t!==4&&($t=2)),!1;var s=Error(r(520),{cause:u});if(s=Ye(s,l),Tu===null?Tu=[s]:Tu.push(s),$t!==4&&($t=2),e===null)return!0;u=Ye(u,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=c&-c,l.lanes|=t,t=zo(l.stateNode,u,t),ao(l,t),!1;case 1:if(e=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(ll===null||!ll.has(s))))return l.flags|=65536,c&=-c,l.lanes|=c,c=em(c),nm(c,t,l,u),ao(l,c),!1}l=l.return}while(l!==null);return!1}var No=Error(r(461)),Pt=!1;function se(t,e,l,u){e.child=t===null?ih(e,null,l,u):Cl(e,t.child,l,u)}function lm(t,e,l,u,c){l=l.render;var s=e.ref;if("ref"in u){var p={};for(var b in u)b!=="ref"&&(p[b]=u[b])}else p=u;return Tl(e),u=so(t,e,l,p,s,c),b=fo(),t!==null&&!Pt?(ho(t,e,c),Sn(t,e,c)):(At&&b&&Qc(e),e.flags|=1,se(t,e,u,c),e.child)}function am(t,e,l,u,c){if(t===null){var s=l.type;return typeof s=="function"&&!Gc(s)&&s.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=s,um(t,e,s,u,c)):(t=zi(l.type,null,u,e,e.mode,c),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!ko(t,c)){var p=s.memoizedProps;if(l=l.compare,l=l!==null?l:nu,l(p,u)&&t.ref===e.ref)return Sn(t,e,c)}return e.flags|=1,t=gn(s,u),t.ref=e.ref,t.return=e,e.child=t}function um(t,e,l,u,c){if(t!==null){var s=t.memoizedProps;if(nu(s,u)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=u=s,ko(t,c))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,Sn(t,e,c)}return Do(t,e,l,u,c)}function im(t,e,l,u){var c=u.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,t!==null){for(u=e.child=t.child,c=0;u!==null;)c=c|u.lanes|u.childLanes,u=u.sibling;u=c&~s}else u=0,e.child=null;return rm(t,e,s,l,u)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Oi(e,s!==null?s.cachePool:null),s!==null?oh(e,s):io(),sh(e);else return u=e.lanes=536870912,rm(t,e,s!==null?s.baseLanes|l:l,l,u)}else s!==null?(Oi(e,s.cachePool),oh(e,s),Pn(),e.memoizedState=null):(t!==null&&Oi(e,null),io(),Pn());return se(t,e,c,l),e.child}function yu(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function rm(t,e,l,u,c){var s=to();return s=s===null?null:{parent:Wt._currentValue,pool:s},e.memoizedState={baseLanes:l,cachePool:s},t!==null&&Oi(e,null),io(),sh(e),t!==null&&ca(t,e,u,!0),e.childLanes=c,null}function Ji(t,e){return e=Wi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function cm(t,e,l){return Cl(e,t.child,null,l),t=Ji(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function u1(t,e,l){var u=e.pendingProps,c=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(At){if(u.mode==="hidden")return t=Ji(e,u),e.lanes=536870912,yu(null,t);if(co(e),(t=Bt)?(t=b0(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Qn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},l=Qd(t),l.return=e,e.child=l,ce=e,Bt=null)):t=null,t===null)throw $n(e);return e.lanes=536870912,null}return Ji(e,u)}var s=t.memoizedState;if(s!==null){var p=s.dehydrated;if(co(e),c)if(e.flags&256)e.flags&=-257,e=cm(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Pt||ca(t,e,l,!1),c=(l&t.childLanes)!==0,Pt||c){if(u=kt,u!==null&&(p=If(u,l),p!==0&&p!==s.retryLane))throw s.retryLane=p,bl(t,p),_e(u,t,p),No;ir(),e=cm(t,e,l)}else t=s.treeContext,Bt=Ve(p.nextSibling),ce=e,At=!0,Zn=null,Ge=!1,t!==null&&Kd(e,t),e=Ji(e,u),e.flags|=4096;return e}return t=gn(t.child,{mode:u.mode,children:u.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Fi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Do(t,e,l,u,c){return Tl(e),l=so(t,e,l,u,void 0,c),u=fo(),t!==null&&!Pt?(ho(t,e,c),Sn(t,e,c)):(At&&u&&Qc(e),e.flags|=1,se(t,e,l,c),e.child)}function om(t,e,l,u,c,s){return Tl(e),e.updateQueue=null,l=dh(e,u,l,c),fh(t),u=fo(),t!==null&&!Pt?(ho(t,e,s),Sn(t,e,s)):(At&&u&&Qc(e),e.flags|=1,se(t,e,l,s),e.child)}function sm(t,e,l,u,c){if(Tl(e),e.stateNode===null){var s=aa,p=l.contextType;typeof p=="object"&&p!==null&&(s=oe(p)),s=new l(u,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Co,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=u,s.state=e.memoizedState,s.refs={},no(e),p=l.contextType,s.context=typeof p=="object"&&p!==null?oe(p):aa,s.state=e.memoizedState,p=l.getDerivedStateFromProps,typeof p=="function"&&(Ao(e,l,p,u),s.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(p=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),p!==s.state&&Co.enqueueReplaceState(s,s.state,null),du(e,u,s,c),fu(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),u=!0}else if(t===null){s=e.stateNode;var b=e.memoizedProps,T=Nl(l,b);s.props=T;var j=s.context,G=l.contextType;p=aa,typeof G=="object"&&G!==null&&(p=oe(G));var $=l.getDerivedStateFromProps;G=typeof $=="function"||typeof s.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,G||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(b||j!==p)&&Fh(e,s,u,p),Jn=!1;var H=e.memoizedState;s.state=H,du(e,u,s,c),fu(),j=e.memoizedState,b||H!==j||Jn?(typeof $=="function"&&(Ao(e,l,$,u),j=e.memoizedState),(T=Jn||Jh(e,l,T,u,H,j,p))?(G||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=u,e.memoizedState=j),s.props=u,s.state=j,s.context=p,u=T):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),u=!1)}else{s=e.stateNode,lo(t,e),p=e.memoizedProps,G=Nl(l,p),s.props=G,$=e.pendingProps,H=s.context,j=l.contextType,T=aa,typeof j=="object"&&j!==null&&(T=oe(j)),b=l.getDerivedStateFromProps,(j=typeof b=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p!==$||H!==T)&&Fh(e,s,u,T),Jn=!1,H=e.memoizedState,s.state=H,du(e,u,s,c),fu();var B=e.memoizedState;p!==$||H!==B||Jn||t!==null&&t.dependencies!==null&&Di(t.dependencies)?(typeof b=="function"&&(Ao(e,l,b,u),B=e.memoizedState),(G=Jn||Jh(e,l,G,u,H,B,T)||t!==null&&t.dependencies!==null&&Di(t.dependencies))?(j||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(u,B,T),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(u,B,T)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||p===t.memoizedProps&&H===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&H===t.memoizedState||(e.flags|=1024),e.memoizedProps=u,e.memoizedState=B),s.props=u,s.state=B,s.context=T,u=G):(typeof s.componentDidUpdate!="function"||p===t.memoizedProps&&H===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&H===t.memoizedState||(e.flags|=1024),u=!1)}return s=u,Fi(t,e),u=(e.flags&128)!==0,s||u?(s=e.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&u?(e.child=Cl(e,t.child,null,c),e.child=Cl(e,null,l,c)):se(t,e,l,c),e.memoizedState=s.state,t=e.child):t=Sn(t,e,c),t}function fm(t,e,l,u){return _l(),e.flags|=256,se(t,e,l,u),e.child}var Ro={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oo(t){return{baseLanes:t,cachePool:th()}}function Uo(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Re),t}function dm(t,e,l){var u=e.pendingProps,c=!1,s=(e.flags&128)!==0,p;if((p=s)||(p=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),p&&(c=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(At){if(c?In(e):Pn(),(t=Bt)?(t=b0(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Qn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},l=Qd(t),l.return=e,e.child=l,ce=e,Bt=null)):t=null,t===null)throw $n(e);return ps(t)?e.lanes=32:e.lanes=536870912,null}var b=u.children;return u=u.fallback,c?(Pn(),c=e.mode,b=Wi({mode:"hidden",children:b},c),u=Sl(u,c,l,null),b.return=e,u.return=e,b.sibling=u,e.child=b,u=e.child,u.memoizedState=Oo(l),u.childLanes=Uo(t,p,l),e.memoizedState=Ro,yu(null,u)):(In(e),jo(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(s)e.flags&256?(In(e),e.flags&=-257,e=Ho(t,e,l)):e.memoizedState!==null?(Pn(),e.child=t.child,e.flags|=128,e=null):(Pn(),b=u.fallback,c=e.mode,u=Wi({mode:"visible",children:u.children},c),b=Sl(b,c,l,null),b.flags|=2,u.return=e,b.return=e,u.sibling=b,e.child=u,Cl(e,t.child,null,l),u=e.child,u.memoizedState=Oo(l),u.childLanes=Uo(t,p,l),e.memoizedState=Ro,e=yu(null,u));else if(In(e),ps(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var j=p.dgst;p=j,u=Error(r(419)),u.stack="",u.digest=p,uu({value:u,source:null,stack:null}),e=Ho(t,e,l)}else if(Pt||ca(t,e,l,!1),p=(l&t.childLanes)!==0,Pt||p){if(p=kt,p!==null&&(u=If(p,l),u!==0&&u!==T.retryLane))throw T.retryLane=u,bl(t,u),_e(p,t,u),No;gs(b)||ir(),e=Ho(t,e,l)}else gs(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Bt=Ve(b.nextSibling),ce=e,At=!0,Zn=null,Ge=!1,t!==null&&Kd(e,t),e=jo(e,u.children),e.flags|=4096);return e}return c?(Pn(),b=u.fallback,c=e.mode,T=t.child,j=T.sibling,u=gn(T,{mode:"hidden",children:u.children}),u.subtreeFlags=T.subtreeFlags&65011712,j!==null?b=gn(j,b):(b=Sl(b,c,l,null),b.flags|=2),b.return=e,u.return=e,u.sibling=b,e.child=u,yu(null,u),u=e.child,b=t.child.memoizedState,b===null?b=Oo(l):(c=b.cachePool,c!==null?(T=Wt._currentValue,c=c.parent!==T?{parent:T,pool:T}:c):c=th(),b={baseLanes:b.baseLanes|l,cachePool:c}),u.memoizedState=b,u.childLanes=Uo(t,p,l),e.memoizedState=Ro,yu(t.child,u)):(In(e),l=t.child,t=l.sibling,l=gn(l,{mode:"visible",children:u.children}),l.return=e,l.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=l,e.memoizedState=null,l)}function jo(t,e){return e=Wi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Wi(t,e){return t=Ce(22,t,null,e),t.lanes=0,t}function Ho(t,e,l){return Cl(e,t.child,null,l),t=jo(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function hm(t,e,l){t.lanes|=e;var u=t.alternate;u!==null&&(u.lanes|=e),Fc(t.return,e,l)}function Lo(t,e,l,u,c,s){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:c,treeForkCount:s}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=u,p.tail=l,p.tailMode=c,p.treeForkCount=s)}function mm(t,e,l){var u=e.pendingProps,c=u.revealOrder,s=u.tail;u=u.children;var p=Jt.current,b=(p&2)!==0;if(b?(p=p&1|2,e.flags|=128):p&=1,Z(Jt,p),se(t,e,u,l),u=At?au:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&hm(t,l,e);else if(t.tag===19)hm(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(c){case"forwards":for(l=e.child,c=null;l!==null;)t=l.alternate,t!==null&&Yi(t)===null&&(c=l),l=l.sibling;l=c,l===null?(c=e.child,e.child=null):(c=l.sibling,l.sibling=null),Lo(e,!1,c,l,s,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,c=e.child,e.child=null;c!==null;){if(t=c.alternate,t!==null&&Yi(t)===null){e.child=c;break}t=c.sibling,c.sibling=l,l=c,c=t}Lo(e,!0,l,null,s,u);break;case"together":Lo(e,!1,null,null,void 0,u);break;default:e.memoizedState=null}return e.child}function Sn(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),nl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ca(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=gn(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=gn(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ko(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Di(t)))}function i1(t,e,l){switch(e.tag){case 3:Ct(e,e.stateNode.containerInfo),Kn(e,Wt,t.memoizedState.cache),_l();break;case 27:case 5:gt(e);break;case 4:Ct(e,e.stateNode.containerInfo);break;case 10:Kn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,co(e),null;break;case 13:var u=e.memoizedState;if(u!==null)return u.dehydrated!==null?(In(e),e.flags|=128,null):(l&e.child.childLanes)!==0?dm(t,e,l):(In(e),t=Sn(t,e,l),t!==null?t.sibling:null);In(e);break;case 19:var c=(t.flags&128)!==0;if(u=(l&e.childLanes)!==0,u||(ca(t,e,l,!1),u=(l&e.childLanes)!==0),c){if(u)return mm(t,e,l);e.flags|=128}if(c=e.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Z(Jt,Jt.current),u)break;return null;case 22:return e.lanes=0,im(t,e,l,e.pendingProps);case 24:Kn(e,Wt,t.memoizedState.cache)}return Sn(t,e,l)}function gm(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!ko(t,l)&&(e.flags&128)===0)return Pt=!1,i1(t,e,l);Pt=(t.flags&131072)!==0}else Pt=!1,At&&(e.flags&1048576)!==0&&$d(e,au,e.index);switch(e.lanes=0,e.tag){case 16:t:{var u=e.pendingProps;if(t=El(e.elementType),e.type=t,typeof t=="function")Gc(t)?(u=Nl(t,u),e.tag=1,e=sm(null,e,t,u,l)):(e.tag=0,e=Do(null,e,t,u,l));else{if(t!=null){var c=t.$$typeof;if(c===J){e.tag=11,e=lm(null,e,t,u,l);break t}else if(c===K){e.tag=14,e=am(null,e,t,u,l);break t}}throw e=D(t)||t,Error(r(306,e,""))}}return e;case 0:return Do(t,e,e.type,e.pendingProps,l);case 1:return u=e.type,c=Nl(u,e.pendingProps),sm(t,e,u,c,l);case 3:t:{if(Ct(e,e.stateNode.containerInfo),t===null)throw Error(r(387));u=e.pendingProps;var s=e.memoizedState;c=s.element,lo(t,e),du(e,u,null,l);var p=e.memoizedState;if(u=p.cache,Kn(e,Wt,u),u!==s.cache&&Wc(e,[Wt],l,!0),fu(),u=p.element,s.isDehydrated)if(s={element:u,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=fm(t,e,u,l);break t}else if(u!==c){c=Ye(Error(r(424)),e),uu(c),e=fm(t,e,u,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Bt=Ve(t.firstChild),ce=e,At=!0,Zn=null,Ge=!0,l=ih(e,null,u,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(_l(),u===c){e=Sn(t,e,l);break t}se(t,e,u,l)}e=e.child}return e;case 26:return Fi(t,e),t===null?(l=E0(e.type,null,e.pendingProps,null))?e.memoizedState=l:At||(l=e.type,t=e.pendingProps,u=hr(ut.current).createElement(l),u[re]=e,u[pe]=t,fe(u,l,t),le(u),e.stateNode=u):e.memoizedState=E0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return gt(e),t===null&&At&&(u=e.stateNode=w0(e.type,e.pendingProps,ut.current),ce=e,Ge=!0,c=Bt,rl(e.type)?(ys=c,Bt=Ve(u.firstChild)):Bt=c),se(t,e,e.pendingProps.children,l),Fi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&At&&((c=u=Bt)&&(u=H1(u,e.type,e.pendingProps,Ge),u!==null?(e.stateNode=u,ce=e,Bt=Ve(u.firstChild),Ge=!1,c=!0):c=!1),c||$n(e)),gt(e),c=e.type,s=e.pendingProps,p=t!==null?t.memoizedProps:null,u=s.children,ds(c,s)?u=null:p!==null&&ds(c,p)&&(e.flags|=32),e.memoizedState!==null&&(c=so(t,e,Wv,null,null,l),Ru._currentValue=c),Fi(t,e),se(t,e,u,l),e.child;case 6:return t===null&&At&&((t=l=Bt)&&(l=L1(l,e.pendingProps,Ge),l!==null?(e.stateNode=l,ce=e,Bt=null,t=!0):t=!1),t||$n(e)),null;case 13:return dm(t,e,l);case 4:return Ct(e,e.stateNode.containerInfo),u=e.pendingProps,t===null?e.child=Cl(e,null,u,l):se(t,e,u,l),e.child;case 11:return lm(t,e,e.type,e.pendingProps,l);case 7:return se(t,e,e.pendingProps,l),e.child;case 8:return se(t,e,e.pendingProps.children,l),e.child;case 12:return se(t,e,e.pendingProps.children,l),e.child;case 10:return u=e.pendingProps,Kn(e,e.type,u.value),se(t,e,u.children,l),e.child;case 9:return c=e.type._context,u=e.pendingProps.children,Tl(e),c=oe(c),u=u(c),e.flags|=1,se(t,e,u,l),e.child;case 14:return am(t,e,e.type,e.pendingProps,l);case 15:return um(t,e,e.type,e.pendingProps,l);case 19:return mm(t,e,l);case 31:return u1(t,e,l);case 22:return im(t,e,l,e.pendingProps);case 24:return Tl(e),u=oe(Wt),t===null?(c=to(),c===null&&(c=kt,s=Ic(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=l),c=s),e.memoizedState={parent:u,cache:c},no(e),Kn(e,Wt,c)):((t.lanes&l)!==0&&(lo(t,e),du(e,null,null,l),fu()),c=t.memoizedState,s=e.memoizedState,c.parent!==u?(c={parent:u,cache:u},e.memoizedState=c,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=c),Kn(e,Wt,u)):(u=s.cache,Kn(e,Wt,u),u!==c.cache&&Wc(e,[Wt],l,!0))),se(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function _n(t){t.flags|=4}function Yo(t,e,l,u,c){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if(Gm())t.flags|=8192;else throw Al=ji,eo}else t.flags&=-16777217}function pm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!D0(e))if(Gm())t.flags|=8192;else throw Al=ji,eo}function Ii(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Jf():536870912,t.lanes|=e,ba|=e)}function vu(t,e){if(!At)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,u=0;if(e)for(var c=t.child;c!==null;)l|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)l|=c.lanes|c.childLanes,u|=c.subtreeFlags,u|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=u,t.childLanes=l,e}function r1(t,e,l){var u=e.pendingProps;switch(Zc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(e),null;case 1:return qt(e),null;case 3:return l=e.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),e.memoizedState.cache!==u&&(e.flags|=2048),vn(Wt),et(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ra(e)?_n(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Kc())),qt(e),null;case 26:var c=e.type,s=e.memoizedState;return t===null?(_n(e),s!==null?(qt(e),pm(e,s)):(qt(e),Yo(e,c,null,u,l))):s?s!==t.memoizedState?(_n(e),qt(e),pm(e,s)):(qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==u&&_n(e),qt(e),Yo(e,c,t,u,l)),null;case 27:if(pt(e),l=ut.current,c=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==u&&_n(e);else{if(!u){if(e.stateNode===null)throw Error(r(166));return qt(e),null}t=I.current,ra(e)?Jd(e):(t=w0(c,u,l),e.stateNode=t,_n(e))}return qt(e),null;case 5:if(pt(e),c=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==u&&_n(e);else{if(!u){if(e.stateNode===null)throw Error(r(166));return qt(e),null}if(s=I.current,ra(e))Jd(e);else{var p=hr(ut.current);switch(s){case 1:s=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=p.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?s.multiple=!0:u.size&&(s.size=u.size);break;default:s=typeof u.is=="string"?p.createElement(c,{is:u.is}):p.createElement(c)}}s[re]=e,s[pe]=u;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=s;t:switch(fe(s,c,u),c){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&_n(e)}}return qt(e),Yo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==u&&_n(e);else{if(typeof u!="string"&&e.stateNode===null)throw Error(r(166));if(t=ut.current,ra(e)){if(t=e.stateNode,l=e.memoizedProps,u=null,c=ce,c!==null)switch(c.tag){case 27:case 5:u=c.memoizedProps}t[re]=e,t=!!(t.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||d0(t.nodeValue,l)),t||$n(e,!0)}else t=hr(t).createTextNode(u),t[re]=e,e.stateNode=t}return qt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(u=ra(e),l!==null){if(t===null){if(!u)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[re]=e}else _l(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),t=!1}else l=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(e),null);if((e.flags&128)!==0)throw Error(r(558))}return qt(e),null;case 13:if(u=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=ra(e),u!==null&&u.dehydrated!==null){if(t===null){if(!c)throw Error(r(318));if(c=e.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[re]=e}else _l(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),c=!1}else c=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(e),(e.flags&128)!==0?(e.lanes=l,e):(l=u!==null,t=t!==null&&t.memoizedState!==null,l&&(u=e.child,c=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(c=u.alternate.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==c&&(u.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ii(e,e.updateQueue),qt(e),null);case 4:return et(),t===null&&rs(e.stateNode.containerInfo),qt(e),null;case 10:return vn(e.type),qt(e),null;case 19:if(O(Jt),u=e.memoizedState,u===null)return qt(e),null;if(c=(e.flags&128)!==0,s=u.rendering,s===null)if(c)vu(u,!1);else{if($t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=Yi(t),s!==null){for(e.flags|=128,vu(u,!1),t=s.updateQueue,e.updateQueue=t,Ii(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Vd(l,t),l=l.sibling;return Z(Jt,Jt.current&1|2),At&&pn(e,u.treeForkCount),e.child}t=t.sibling}u.tail!==null&&Te()>lr&&(e.flags|=128,c=!0,vu(u,!1),e.lanes=4194304)}else{if(!c)if(t=Yi(s),t!==null){if(e.flags|=128,c=!0,t=t.updateQueue,e.updateQueue=t,Ii(e,t),vu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!At)return qt(e),null}else 2*Te()-u.renderingStartTime>lr&&l!==536870912&&(e.flags|=128,c=!0,vu(u,!1),e.lanes=4194304);u.isBackwards?(s.sibling=e.child,e.child=s):(t=u.last,t!==null?t.sibling=s:e.child=s,u.last=s)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Te(),t.sibling=null,l=Jt.current,Z(Jt,c?l&1|2:l&1),At&&pn(e,u.treeForkCount),t):(qt(e),null);case 22:case 23:return Ne(e),ro(),u=e.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(e.flags|=8192):u&&(e.flags|=8192),u?(l&536870912)!==0&&(e.flags&128)===0&&(qt(e),e.subtreeFlags&6&&(e.flags|=8192)):qt(e),l=e.updateQueue,l!==null&&Ii(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),u=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),u!==l&&(e.flags|=2048),t!==null&&O(Ml),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),vn(Wt),qt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function c1(t,e){switch(Zc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vn(Wt),et(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return pt(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(r(340));_l()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));_l()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return O(Jt),null;case 4:return et(),null;case 10:return vn(e.type),null;case 22:case 23:return Ne(e),ro(),t!==null&&O(Ml),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return vn(Wt),null;case 25:return null;default:return null}}function ym(t,e){switch(Zc(e),e.tag){case 3:vn(Wt),et();break;case 26:case 27:case 5:pt(e);break;case 4:et();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:O(Jt);break;case 10:vn(e.type);break;case 22:case 23:Ne(e),ro(),t!==null&&O(Ml);break;case 24:vn(Wt)}}function xu(t,e){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&t)===t){u=void 0;var s=l.create,p=l.inst;u=s(),p.destroy=u}l=l.next}while(l!==c)}}catch(b){Ut(e,e.return,b)}}function tl(t,e,l){try{var u=e.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var s=c.next;u=s;do{if((u.tag&t)===t){var p=u.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,c=e;var T=l,j=b;try{j()}catch(G){Ut(c,T,G)}}}u=u.next}while(u!==s)}}catch(G){Ut(e,e.return,G)}}function vm(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{ch(e,l)}catch(u){Ut(t,t.return,u)}}}function xm(t,e,l){l.props=Nl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(u){Ut(t,e,u)}}function bu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof l=="function"?t.refCleanup=l(u):l.current=u}}catch(c){Ut(t,e,c)}}function an(t,e){var l=t.ref,u=t.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(c){Ut(t,e,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(c){Ut(t,e,c)}else l.current=null}function bm(t){var e=t.type,l=t.memoizedProps,u=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break t;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(c){Ut(t,t.return,c)}}function Bo(t,e,l){try{var u=t.stateNode;N1(u,t.type,l,e),u[pe]=e}catch(c){Ut(t,t.return,c)}}function Sm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&rl(t.type)||t.tag===4}function qo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Sm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&rl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Go(t,e,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=hn));else if(u!==4&&(u===27&&rl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Go(t,e,l),t=t.sibling;t!==null;)Go(t,e,l),t=t.sibling}function Pi(t,e,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(u!==4&&(u===27&&rl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Pi(t,e,l),t=t.sibling;t!==null;)Pi(t,e,l),t=t.sibling}function _m(t){var e=t.stateNode,l=t.memoizedProps;try{for(var u=t.type,c=e.attributes;c.length;)e.removeAttributeNode(c[0]);fe(e,u,l),e[re]=t,e[pe]=l}catch(s){Ut(t,t.return,s)}}var wn=!1,te=!1,Xo=!1,wm=typeof WeakSet=="function"?WeakSet:Set,ae=null;function o1(t,e){if(t=t.containerInfo,ss=br,t=jd(t),jc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var c=u.anchorOffset,s=u.focusNode;u=u.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break t}var p=0,b=-1,T=-1,j=0,G=0,$=t,H=null;e:for(;;){for(var B;$!==l||c!==0&&$.nodeType!==3||(b=p+c),$!==s||u!==0&&$.nodeType!==3||(T=p+u),$.nodeType===3&&(p+=$.nodeValue.length),(B=$.firstChild)!==null;)H=$,$=B;for(;;){if($===t)break e;if(H===l&&++j===c&&(b=p),H===s&&++G===u&&(T=p),(B=$.nextSibling)!==null)break;$=H,H=$.parentNode}$=B}l=b===-1||T===-1?null:{start:b,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(fs={focusedElem:t,selectionRange:l},br=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)c=t[l],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,l=e,c=s.memoizedProps,s=s.memoizedState,u=l.stateNode;try{var it=Nl(l.type,c);t=u.getSnapshotBeforeUpdate(it,s),u.__reactInternalSnapshotBeforeUpdate=t}catch(ft){Ut(l,l.return,ft)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)ms(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ms(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function Tm(t,e,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Mn(t,l),u&4&&xu(5,l);break;case 1:if(Mn(t,l),u&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(p){Ut(l,l.return,p)}else{var c=Nl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(c,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){Ut(l,l.return,p)}}u&64&&vm(l),u&512&&bu(l,l.return);break;case 3:if(Mn(t,l),u&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{ch(t,e)}catch(p){Ut(l,l.return,p)}}break;case 27:e===null&&u&4&&_m(l);case 26:case 5:Mn(t,l),e===null&&u&4&&bm(l),u&512&&bu(l,l.return);break;case 12:Mn(t,l);break;case 31:Mn(t,l),u&4&&Am(t,l);break;case 13:Mn(t,l),u&4&&Cm(t,l),u&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=v1.bind(null,l),k1(t,l))));break;case 22:if(u=l.memoizedState!==null||wn,!u){e=e!==null&&e.memoizedState!==null||te,c=wn;var s=te;wn=u,(te=e)&&!s?En(t,l,(l.subtreeFlags&8772)!==0):Mn(t,l),wn=c,te=s}break;case 30:break;default:Mn(t,l)}}function Mm(t){var e=t.alternate;e!==null&&(t.alternate=null,Mm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&vc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Xt=null,ve=!1;function Tn(t,e,l){for(l=l.child;l!==null;)Em(t,e,l),l=l.sibling}function Em(t,e,l){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(Va,l)}catch{}switch(l.tag){case 26:te||an(l,e),Tn(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:te||an(l,e);var u=Xt,c=ve;rl(l.type)&&(Xt=l.stateNode,ve=!1),Tn(t,e,l),zu(l.stateNode),Xt=u,ve=c;break;case 5:te||an(l,e);case 6:if(u=Xt,c=ve,Xt=null,Tn(t,e,l),Xt=u,ve=c,Xt!==null)if(ve)try{(Xt.nodeType===9?Xt.body:Xt.nodeName==="HTML"?Xt.ownerDocument.body:Xt).removeChild(l.stateNode)}catch(s){Ut(l,e,s)}else try{Xt.removeChild(l.stateNode)}catch(s){Ut(l,e,s)}break;case 18:Xt!==null&&(ve?(t=Xt,v0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ca(t)):v0(Xt,l.stateNode));break;case 4:u=Xt,c=ve,Xt=l.stateNode.containerInfo,ve=!0,Tn(t,e,l),Xt=u,ve=c;break;case 0:case 11:case 14:case 15:tl(2,l,e),te||tl(4,l,e),Tn(t,e,l);break;case 1:te||(an(l,e),u=l.stateNode,typeof u.componentWillUnmount=="function"&&xm(l,e,u)),Tn(t,e,l);break;case 21:Tn(t,e,l);break;case 22:te=(u=te)||l.memoizedState!==null,Tn(t,e,l),te=u;break;default:Tn(t,e,l)}}function Am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ca(t)}catch(l){Ut(e,e.return,l)}}}function Cm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ca(t)}catch(l){Ut(e,e.return,l)}}function s1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new wm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new wm),e;default:throw Error(r(435,t.tag))}}function tr(t,e){var l=s1(t);e.forEach(function(u){if(!l.has(u)){l.add(u);var c=x1.bind(null,t,u);u.then(c,c)}})}function xe(t,e){var l=e.deletions;if(l!==null)for(var u=0;u<l.length;u++){var c=l[u],s=t,p=e,b=p;t:for(;b!==null;){switch(b.tag){case 27:if(rl(b.type)){Xt=b.stateNode,ve=!1;break t}break;case 5:Xt=b.stateNode,ve=!1;break t;case 3:case 4:Xt=b.stateNode.containerInfo,ve=!0;break t}b=b.return}if(Xt===null)throw Error(r(160));Em(s,p,c),Xt=null,ve=!1,s=c.alternate,s!==null&&(s.return=null),c.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zm(e,t),e=e.sibling}var Je=null;function zm(t,e){var l=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),be(t),u&4&&(tl(3,t,t.return),xu(3,t),tl(5,t,t.return));break;case 1:xe(e,t),be(t),u&512&&(te||l===null||an(l,l.return)),u&64&&wn&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var c=Je;if(xe(e,t),be(t),u&512&&(te||l===null||an(l,l.return)),u&4){var s=l!==null?l.memoizedState:null;if(u=t.memoizedState,l===null)if(u===null)if(t.stateNode===null){t:{u=t.type,l=t.memoizedProps,c=c.ownerDocument||c;e:switch(u){case"title":s=c.getElementsByTagName("title")[0],(!s||s[$a]||s[re]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=c.createElement(u),c.head.insertBefore(s,c.querySelector("head > title"))),fe(s,u,l),s[re]=t,le(s),u=s;break t;case"link":var p=z0("link","href",c).get(u+(l.href||""));if(p){for(var b=0;b<p.length;b++)if(s=p[b],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){p.splice(b,1);break e}}s=c.createElement(u),fe(s,u,l),c.head.appendChild(s);break;case"meta":if(p=z0("meta","content",c).get(u+(l.content||""))){for(b=0;b<p.length;b++)if(s=p[b],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){p.splice(b,1);break e}}s=c.createElement(u),fe(s,u,l),c.head.appendChild(s);break;default:throw Error(r(468,u))}s[re]=t,le(s),u=s}t.stateNode=u}else N0(c,t.type,t.stateNode);else t.stateNode=C0(c,u,t.memoizedProps);else s!==u?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,u===null?N0(c,t.type,t.stateNode):C0(c,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Bo(t,t.memoizedProps,l.memoizedProps)}break;case 27:xe(e,t),be(t),u&512&&(te||l===null||an(l,l.return)),l!==null&&u&4&&Bo(t,t.memoizedProps,l.memoizedProps);break;case 5:if(xe(e,t),be(t),u&512&&(te||l===null||an(l,l.return)),t.flags&32){c=t.stateNode;try{Wl(c,"")}catch(it){Ut(t,t.return,it)}}u&4&&t.stateNode!=null&&(c=t.memoizedProps,Bo(t,c,l!==null?l.memoizedProps:c)),u&1024&&(Xo=!0);break;case 6:if(xe(e,t),be(t),u&4){if(t.stateNode===null)throw Error(r(162));u=t.memoizedProps,l=t.stateNode;try{l.nodeValue=u}catch(it){Ut(t,t.return,it)}}break;case 3:if(pr=null,c=Je,Je=mr(e.containerInfo),xe(e,t),Je=c,be(t),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Ca(e.containerInfo)}catch(it){Ut(t,t.return,it)}Xo&&(Xo=!1,Nm(t));break;case 4:u=Je,Je=mr(t.stateNode.containerInfo),xe(e,t),be(t),Je=u;break;case 12:xe(e,t),be(t);break;case 31:xe(e,t),be(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,tr(t,u)));break;case 13:xe(e,t),be(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(nr=Te()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,tr(t,u)));break;case 22:c=t.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,j=wn,G=te;if(wn=j||c,te=G||T,xe(e,t),te=G,wn=j,be(t),u&8192)t:for(e=t.stateNode,e._visibility=c?e._visibility&-2:e._visibility|1,c&&(l===null||T||wn||te||Dl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){T=l=e;try{if(s=T.stateNode,c)p=s.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=T.stateNode;var $=T.memoizedProps.style,H=$!=null&&$.hasOwnProperty("display")?$.display:null;b.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(it){Ut(T,T.return,it)}}}else if(e.tag===6){if(l===null){T=e;try{T.stateNode.nodeValue=c?"":T.memoizedProps}catch(it){Ut(T,T.return,it)}}}else if(e.tag===18){if(l===null){T=e;try{var B=T.stateNode;c?x0(B,!0):x0(T.stateNode,!1)}catch(it){Ut(T,T.return,it)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}u&4&&(u=t.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,tr(t,l))));break;case 19:xe(e,t),be(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,tr(t,u)));break;case 30:break;case 21:break;default:xe(e,t),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var l,u=t.return;u!==null;){if(Sm(u)){l=u;break}u=u.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var c=l.stateNode,s=qo(t);Pi(t,s,c);break;case 5:var p=l.stateNode;l.flags&32&&(Wl(p,""),l.flags&=-33);var b=qo(t);Pi(t,b,p);break;case 3:case 4:var T=l.stateNode.containerInfo,j=qo(t);Go(t,j,T);break;default:throw Error(r(161))}}catch(G){Ut(t,t.return,G)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Nm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Nm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Tm(t,e.alternate,e),e=e.sibling}function Dl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:tl(4,e,e.return),Dl(e);break;case 1:an(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&xm(e,e.return,l),Dl(e);break;case 27:zu(e.stateNode);case 26:case 5:an(e,e.return),Dl(e);break;case 22:e.memoizedState===null&&Dl(e);break;case 30:Dl(e);break;default:Dl(e)}t=t.sibling}}function En(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var u=e.alternate,c=t,s=e,p=s.flags;switch(s.tag){case 0:case 11:case 15:En(c,s,l),xu(4,s);break;case 1:if(En(c,s,l),u=s,c=u.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(j){Ut(u,u.return,j)}if(u=s,c=u.updateQueue,c!==null){var b=u.stateNode;try{var T=c.shared.hiddenCallbacks;if(T!==null)for(c.shared.hiddenCallbacks=null,c=0;c<T.length;c++)rh(T[c],b)}catch(j){Ut(u,u.return,j)}}l&&p&64&&vm(s),bu(s,s.return);break;case 27:_m(s);case 26:case 5:En(c,s,l),l&&u===null&&p&4&&bm(s),bu(s,s.return);break;case 12:En(c,s,l);break;case 31:En(c,s,l),l&&p&4&&Am(c,s);break;case 13:En(c,s,l),l&&p&4&&Cm(c,s);break;case 22:s.memoizedState===null&&En(c,s,l),bu(s,s.return);break;case 30:break;default:En(c,s,l)}e=e.sibling}}function Vo(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&iu(l))}function Qo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&iu(t))}function Fe(t,e,l,u){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dm(t,e,l,u),e=e.sibling}function Dm(t,e,l,u){var c=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,l,u),c&2048&&xu(9,e);break;case 1:Fe(t,e,l,u);break;case 3:Fe(t,e,l,u),c&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&iu(t)));break;case 12:if(c&2048){Fe(t,e,l,u),t=e.stateNode;try{var s=e.memoizedProps,p=s.id,b=s.onPostCommit;typeof b=="function"&&b(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Ut(e,e.return,T)}}else Fe(t,e,l,u);break;case 31:Fe(t,e,l,u);break;case 13:Fe(t,e,l,u);break;case 23:break;case 22:s=e.stateNode,p=e.alternate,e.memoizedState!==null?s._visibility&2?Fe(t,e,l,u):Su(t,e):s._visibility&2?Fe(t,e,l,u):(s._visibility|=2,ya(t,e,l,u,(e.subtreeFlags&10256)!==0||!1)),c&2048&&Vo(p,e);break;case 24:Fe(t,e,l,u),c&2048&&Qo(e.alternate,e);break;default:Fe(t,e,l,u)}}function ya(t,e,l,u,c){for(c=c&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,p=e,b=l,T=u,j=p.flags;switch(p.tag){case 0:case 11:case 15:ya(s,p,b,T,c),xu(8,p);break;case 23:break;case 22:var G=p.stateNode;p.memoizedState!==null?G._visibility&2?ya(s,p,b,T,c):Su(s,p):(G._visibility|=2,ya(s,p,b,T,c)),c&&j&2048&&Vo(p.alternate,p);break;case 24:ya(s,p,b,T,c),c&&j&2048&&Qo(p.alternate,p);break;default:ya(s,p,b,T,c)}e=e.sibling}}function Su(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,u=e,c=u.flags;switch(u.tag){case 22:Su(l,u),c&2048&&Vo(u.alternate,u);break;case 24:Su(l,u),c&2048&&Qo(u.alternate,u);break;default:Su(l,u)}e=e.sibling}}var _u=8192;function va(t,e,l){if(t.subtreeFlags&_u)for(t=t.child;t!==null;)Rm(t,e,l),t=t.sibling}function Rm(t,e,l){switch(t.tag){case 26:va(t,e,l),t.flags&_u&&t.memoizedState!==null&&F1(l,Je,t.memoizedState,t.memoizedProps);break;case 5:va(t,e,l);break;case 3:case 4:var u=Je;Je=mr(t.stateNode.containerInfo),va(t,e,l),Je=u;break;case 22:t.memoizedState===null&&(u=t.alternate,u!==null&&u.memoizedState!==null?(u=_u,_u=16777216,va(t,e,l),_u=u):va(t,e,l));break;default:va(t,e,l)}}function Om(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function wu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var u=e[l];ae=u,jm(u,t)}Om(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Um(t),t=t.sibling}function Um(t){switch(t.tag){case 0:case 11:case 15:wu(t),t.flags&2048&&tl(9,t,t.return);break;case 3:wu(t);break;case 12:wu(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,er(t)):wu(t);break;default:wu(t)}}function er(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var u=e[l];ae=u,jm(u,t)}Om(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:tl(8,e,e.return),er(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,er(e));break;default:er(e)}t=t.sibling}}function jm(t,e){for(;ae!==null;){var l=ae;switch(l.tag){case 0:case 11:case 15:tl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:iu(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,ae=u;else t:for(l=t;ae!==null;){u=ae;var c=u.sibling,s=u.return;if(Mm(u),u===l){ae=null;break t}if(c!==null){c.return=s,ae=c;break t}ae=s}}}var f1={getCacheForType:function(t){var e=oe(Wt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return oe(Wt).controller.signal}},d1=typeof WeakMap=="function"?WeakMap:Map,Rt=0,kt=null,wt=null,Mt=0,Ot=0,De=null,el=!1,xa=!1,Zo=!1,An=0,$t=0,nl=0,Rl=0,$o=0,Re=0,ba=0,Tu=null,Se=null,Ko=!1,nr=0,Hm=0,lr=1/0,ar=null,ll=null,ee=0,al=null,Sa=null,Cn=0,Jo=0,Fo=null,Lm=null,Mu=0,Wo=null;function Oe(){return(Rt&2)!==0&&Mt!==0?Mt&-Mt:M.T!==null?ls():Pf()}function km(){if(Re===0)if((Mt&536870912)===0||At){var t=di;di<<=1,(di&3932160)===0&&(di=262144),Re=t}else Re=536870912;return t=ze.current,t!==null&&(t.flags|=32),Re}function _e(t,e,l){(t===kt&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(_a(t,0),ul(t,Mt,Re,!1)),Za(t,l),((Rt&2)===0||t!==kt)&&(t===kt&&((Rt&2)===0&&(Rl|=l),$t===4&&ul(t,Mt,Re,!1)),un(t))}function Ym(t,e,l){if((Rt&6)!==0)throw Error(r(327));var u=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Qa(t,e),c=u?g1(t,e):Po(t,e,!0),s=u;do{if(c===0){xa&&!u&&ul(t,e,0,!1);break}else{if(l=t.current.alternate,s&&!h1(l)){c=Po(t,e,!1),s=!1;continue}if(c===2){if(s=e,t.errorRecoveryDisabledLanes&s)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var b=t;c=Tu;var T=b.current.memoizedState.isDehydrated;if(T&&(_a(b,p).flags|=256),p=Po(b,p,!1),p!==2){if(Zo&&!T){b.errorRecoveryDisabledLanes|=s,Rl|=s,c=4;break t}s=Se,Se=c,s!==null&&(Se===null?Se=s:Se.push.apply(Se,s))}c=p}if(s=!1,c!==2)continue}}if(c===1){_a(t,0),ul(t,e,0,!0);break}t:{switch(u=t,s=c,s){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ul(u,e,Re,!el);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(c=nr+300-Te(),10<c)){if(ul(u,e,Re,!el),mi(u,0,!0)!==0)break t;Cn=e,u.timeoutHandle=p0(Bm.bind(null,u,l,Se,ar,Ko,e,Re,Rl,ba,el,s,"Throttled",-0,0),c);break t}Bm(u,l,Se,ar,Ko,e,Re,Rl,ba,el,s,null,-0,0)}}break}while(!0);un(t)}function Bm(t,e,l,u,c,s,p,b,T,j,G,$,H,B){if(t.timeoutHandle=-1,$=e.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},Rm(e,s,$);var it=(s&62914560)===s?nr-Te():(s&4194048)===s?Hm-Te():0;if(it=W1($,it),it!==null){Cn=s,t.cancelPendingCommit=it(Km.bind(null,t,e,s,l,u,c,p,b,T,G,$,null,H,B)),ul(t,s,p,!j);return}}Km(t,e,s,l,u,c,p,b,T)}function h1(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var c=l[u],s=c.getSnapshot;c=c.value;try{if(!Ae(s(),c))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ul(t,e,l,u){e&=~$o,e&=~Rl,t.suspendedLanes|=e,t.pingedLanes&=~e,u&&(t.warmLanes|=e),u=t.expirationTimes;for(var c=e;0<c;){var s=31-Ee(c),p=1<<s;u[s]=-1,c&=~p}l!==0&&Ff(t,l,e)}function ur(){return(Rt&6)===0?(Eu(0),!1):!0}function Io(){if(wt!==null){if(Ot===0)var t=wt.return;else t=wt,yn=wl=null,mo(t),da=null,cu=0,t=wt;for(;t!==null;)ym(t.alternate,t),t=t.return;wt=null}}function _a(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,O1(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Cn=0,Io(),kt=t,wt=l=gn(t.current,null),Mt=e,Ot=0,De=null,el=!1,xa=Qa(t,e),Zo=!1,ba=Re=$o=Rl=nl=$t=0,Se=Tu=null,Ko=!1,(e&8)!==0&&(e|=e&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=e;0<u;){var c=31-Ee(u),s=1<<c;e|=t[c],u&=~s}return An=e,Ei(),l}function qm(t,e){yt=null,M.H=pu,e===fa||e===Ui?(e=lh(),Ot=3):e===eo?(e=lh(),Ot=4):Ot=e===No?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,wt===null&&($t=1,Ki(t,Ye(e,t.current)))}function Gm(){var t=ze.current;return t===null?!0:(Mt&4194048)===Mt?Xe===null:(Mt&62914560)===Mt||(Mt&536870912)!==0?t===Xe:!1}function Xm(){var t=M.H;return M.H=pu,t===null?pu:t}function Vm(){var t=M.A;return M.A=f1,t}function ir(){$t=4,el||(Mt&4194048)!==Mt&&ze.current!==null||(xa=!0),(nl&134217727)===0&&(Rl&134217727)===0||kt===null||ul(kt,Mt,Re,!1)}function Po(t,e,l){var u=Rt;Rt|=2;var c=Xm(),s=Vm();(kt!==t||Mt!==e)&&(ar=null,_a(t,e)),e=!1;var p=$t;t:do try{if(Ot!==0&&wt!==null){var b=wt,T=De;switch(Ot){case 8:Io(),p=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var j=Ot;if(Ot=0,De=null,wa(t,b,T,j),l&&xa){p=0;break t}break;default:j=Ot,Ot=0,De=null,wa(t,b,T,j)}}m1(),p=$t;break}catch(G){qm(t,G)}while(!0);return e&&t.shellSuspendCounter++,yn=wl=null,Rt=u,M.H=c,M.A=s,wt===null&&(kt=null,Mt=0,Ei()),p}function m1(){for(;wt!==null;)Qm(wt)}function g1(t,e){var l=Rt;Rt|=2;var u=Xm(),c=Vm();kt!==t||Mt!==e?(ar=null,lr=Te()+500,_a(t,e)):xa=Qa(t,e);t:do try{if(Ot!==0&&wt!==null){e=wt;var s=De;e:switch(Ot){case 1:Ot=0,De=null,wa(t,e,s,1);break;case 2:case 9:if(eh(s)){Ot=0,De=null,Zm(e);break}e=function(){Ot!==2&&Ot!==9||kt!==t||(Ot=7),un(t)},s.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:eh(s)?(Ot=0,De=null,Zm(e)):(Ot=0,De=null,wa(t,e,s,7));break;case 5:var p=null;switch(wt.tag){case 26:p=wt.memoizedState;case 5:case 27:var b=wt;if(p?D0(p):b.stateNode.complete){Ot=0,De=null;var T=b.sibling;if(T!==null)wt=T;else{var j=b.return;j!==null?(wt=j,rr(j)):wt=null}break e}}Ot=0,De=null,wa(t,e,s,5);break;case 6:Ot=0,De=null,wa(t,e,s,6);break;case 8:Io(),$t=6;break t;default:throw Error(r(462))}}p1();break}catch(G){qm(t,G)}while(!0);return yn=wl=null,M.H=u,M.A=c,Rt=l,wt!==null?0:(kt=null,Mt=0,Ei(),$t)}function p1(){for(;wt!==null&&!Yy();)Qm(wt)}function Qm(t){var e=gm(t.alternate,t,An);t.memoizedProps=t.pendingProps,e===null?rr(t):wt=e}function Zm(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=om(l,e,e.pendingProps,e.type,void 0,Mt);break;case 11:e=om(l,e,e.pendingProps,e.type.render,e.ref,Mt);break;case 5:mo(e);default:ym(l,e),e=wt=Vd(e,An),e=gm(l,e,An)}t.memoizedProps=t.pendingProps,e===null?rr(t):wt=e}function wa(t,e,l,u){yn=wl=null,mo(e),da=null,cu=0;var c=e.return;try{if(a1(t,c,e,l,Mt)){$t=1,Ki(t,Ye(l,t.current)),wt=null;return}}catch(s){if(c!==null)throw wt=c,s;$t=1,Ki(t,Ye(l,t.current)),wt=null;return}e.flags&32768?(At||u===1?t=!0:xa||(Mt&536870912)!==0?t=!1:(el=t=!0,(u===2||u===9||u===3||u===6)&&(u=ze.current,u!==null&&u.tag===13&&(u.flags|=16384))),$m(e,t)):rr(e)}function rr(t){var e=t;do{if((e.flags&32768)!==0){$m(e,el);return}t=e.return;var l=r1(e.alternate,e,An);if(l!==null){wt=l;return}if(e=e.sibling,e!==null){wt=e;return}wt=e=t}while(e!==null);$t===0&&($t=5)}function $m(t,e){do{var l=c1(t.alternate,t);if(l!==null){l.flags&=32767,wt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){wt=t;return}wt=t=l}while(t!==null);$t=6,wt=null}function Km(t,e,l,u,c,s,p,b,T){t.cancelPendingCommit=null;do cr();while(ee!==0);if((Rt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(s=e.lanes|e.childLanes,s|=Bc,Jy(t,l,s,p,b,T),t===kt&&(wt=kt=null,Mt=0),Sa=e,al=t,Cn=l,Jo=s,Fo=c,Lm=u,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,b1(si,function(){return Pm(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||u){u=M.T,M.T=null,c=Y.p,Y.p=2,p=Rt,Rt|=4;try{o1(t,e,l)}finally{Rt=p,Y.p=c,M.T=u}}ee=1,Jm(),Fm(),Wm()}}function Jm(){if(ee===1){ee=0;var t=al,e=Sa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var u=Y.p;Y.p=2;var c=Rt;Rt|=4;try{zm(e,t);var s=fs,p=jd(t.containerInfo),b=s.focusedElem,T=s.selectionRange;if(p!==b&&b&&b.ownerDocument&&Ud(b.ownerDocument.documentElement,b)){if(T!==null&&jc(b)){var j=T.start,G=T.end;if(G===void 0&&(G=j),"selectionStart"in b)b.selectionStart=j,b.selectionEnd=Math.min(G,b.value.length);else{var $=b.ownerDocument||document,H=$&&$.defaultView||window;if(H.getSelection){var B=H.getSelection(),it=b.textContent.length,ft=Math.min(T.start,it),Lt=T.end===void 0?ft:Math.min(T.end,it);!B.extend&&ft>Lt&&(p=Lt,Lt=ft,ft=p);var z=Od(b,ft),E=Od(b,Lt);if(z&&E&&(B.rangeCount!==1||B.anchorNode!==z.node||B.anchorOffset!==z.offset||B.focusNode!==E.node||B.focusOffset!==E.offset)){var U=$.createRange();U.setStart(z.node,z.offset),B.removeAllRanges(),ft>Lt?(B.addRange(U),B.extend(E.node,E.offset)):(U.setEnd(E.node,E.offset),B.addRange(U))}}}}for($=[],B=b;B=B.parentNode;)B.nodeType===1&&$.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var Q=$[b];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}br=!!ss,fs=ss=null}finally{Rt=c,Y.p=u,M.T=l}}t.current=e,ee=2}}function Fm(){if(ee===2){ee=0;var t=al,e=Sa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var u=Y.p;Y.p=2;var c=Rt;Rt|=4;try{Tm(t,e.alternate,e)}finally{Rt=c,Y.p=u,M.T=l}}ee=3}}function Wm(){if(ee===4||ee===3){ee=0,By();var t=al,e=Sa,l=Cn,u=Lm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,Sa=al=null,Im(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(ll=null),pc(l),e=e.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(Va,e,void 0,(e.current.flags&128)===128)}catch{}if(u!==null){e=M.T,c=Y.p,Y.p=2,M.T=null;try{for(var s=t.onRecoverableError,p=0;p<u.length;p++){var b=u[p];s(b.value,{componentStack:b.stack})}}finally{M.T=e,Y.p=c}}(Cn&3)!==0&&cr(),un(t),c=t.pendingLanes,(l&261930)!==0&&(c&42)!==0?t===Wo?Mu++:(Mu=0,Wo=t):Mu=0,Eu(0)}}function Im(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,iu(e)))}function cr(){return Jm(),Fm(),Wm(),Pm()}function Pm(){if(ee!==5)return!1;var t=al,e=Jo;Jo=0;var l=pc(Cn),u=M.T,c=Y.p;try{Y.p=32>l?32:l,M.T=null,l=Fo,Fo=null;var s=al,p=Cn;if(ee=0,Sa=al=null,Cn=0,(Rt&6)!==0)throw Error(r(331));var b=Rt;if(Rt|=4,Um(s.current),Dm(s,s.current,p,l),Rt=b,Eu(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(Va,s)}catch{}return!0}finally{Y.p=c,M.T=u,Im(t,e)}}function t0(t,e,l){e=Ye(l,e),e=zo(t.stateNode,e,2),t=Wn(t,e,2),t!==null&&(Za(t,2),un(t))}function Ut(t,e,l){if(t.tag===3)t0(t,t,l);else for(;e!==null;){if(e.tag===3){t0(e,t,l);break}else if(e.tag===1){var u=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ll===null||!ll.has(u))){t=Ye(l,t),l=em(2),u=Wn(e,l,2),u!==null&&(nm(l,u,e,t),Za(u,2),un(u));break}}e=e.return}}function ts(t,e,l){var u=t.pingCache;if(u===null){u=t.pingCache=new d1;var c=new Set;u.set(e,c)}else c=u.get(e),c===void 0&&(c=new Set,u.set(e,c));c.has(l)||(Zo=!0,c.add(l),t=y1.bind(null,t,e,l),e.then(t,t))}function y1(t,e,l){var u=t.pingCache;u!==null&&u.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,kt===t&&(Mt&l)===l&&($t===4||$t===3&&(Mt&62914560)===Mt&&300>Te()-nr?(Rt&2)===0&&_a(t,0):$o|=l,ba===Mt&&(ba=0)),un(t)}function e0(t,e){e===0&&(e=Jf()),t=bl(t,e),t!==null&&(Za(t,e),un(t))}function v1(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),e0(t,l)}function x1(t,e){var l=0;switch(t.tag){case 31:case 13:var u=t.stateNode,c=t.memoizedState;c!==null&&(l=c.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(e),e0(t,l)}function b1(t,e){return qn(t,e)}var or=null,Ta=null,es=!1,sr=!1,ns=!1,il=0;function un(t){t!==Ta&&t.next===null&&(Ta===null?or=Ta=t:Ta=Ta.next=t),sr=!0,es||(es=!0,_1())}function Eu(t,e){if(!ns&&sr){ns=!0;do for(var l=!1,u=or;u!==null;){if(t!==0){var c=u.pendingLanes;if(c===0)var s=0;else{var p=u.suspendedLanes,b=u.pingedLanes;s=(1<<31-Ee(42|t)+1)-1,s&=c&~(p&~b),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,u0(u,s))}else s=Mt,s=mi(u,u===kt?s:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(s&3)===0||Qa(u,s)||(l=!0,u0(u,s));u=u.next}while(l);ns=!1}}function S1(){n0()}function n0(){sr=es=!1;var t=0;il!==0&&R1()&&(t=il);for(var e=Te(),l=null,u=or;u!==null;){var c=u.next,s=l0(u,e);s===0?(u.next=null,l===null?or=c:l.next=c,c===null&&(Ta=l)):(l=u,(t!==0||(s&3)!==0)&&(sr=!0)),u=c}ee!==0&&ee!==5||Eu(t),il!==0&&(il=0)}function l0(t,e){for(var l=t.suspendedLanes,u=t.pingedLanes,c=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var p=31-Ee(s),b=1<<p,T=c[p];T===-1?((b&l)===0||(b&u)!==0)&&(c[p]=Ky(b,e)):T<=e&&(t.expiredLanes|=b),s&=~b}if(e=kt,l=Mt,l=mi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,l===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&Xa(u),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Qa(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(u!==null&&Xa(u),pc(l)){case 2:case 8:l=$f;break;case 32:l=si;break;case 268435456:l=Kf;break;default:l=si}return u=a0.bind(null,t),l=qn(l,u),t.callbackPriority=e,t.callbackNode=l,e}return u!==null&&u!==null&&Xa(u),t.callbackPriority=2,t.callbackNode=null,2}function a0(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(cr()&&t.callbackNode!==l)return null;var u=Mt;return u=mi(t,t===kt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Ym(t,u,e),l0(t,Te()),t.callbackNode!=null&&t.callbackNode===l?a0.bind(null,t):null)}function u0(t,e){if(cr())return null;Ym(t,e,!0)}function _1(){U1(function(){(Rt&6)!==0?qn(Zf,S1):n0()})}function ls(){if(il===0){var t=oa;t===0&&(t=fi,fi<<=1,(fi&261888)===0&&(fi=256)),il=t}return il}function i0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vi(""+t)}function r0(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function w1(t,e,l,u,c){if(e==="submit"&&l&&l.stateNode===c){var s=i0((c[pe]||null).action),p=u.submitter;p&&(e=(e=p[pe]||null)?i0(e.formAction):p.getAttribute("formAction"),e!==null&&(s=e,p=null));var b=new _i("action","action",null,u,c);t.push({event:b,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(il!==0){var T=p?r0(c,p):new FormData(c);wo(l,{pending:!0,data:T,method:c.method,action:s},null,T)}}else typeof s=="function"&&(b.preventDefault(),T=p?r0(c,p):new FormData(c),wo(l,{pending:!0,data:T,method:c.method,action:s},s,T))},currentTarget:c}]})}}for(var as=0;as<Yc.length;as++){var us=Yc[as],T1=us.toLowerCase(),M1=us[0].toUpperCase()+us.slice(1);Ke(T1,"on"+M1)}Ke(kd,"onAnimationEnd"),Ke(Yd,"onAnimationIteration"),Ke(Bd,"onAnimationStart"),Ke("dblclick","onDoubleClick"),Ke("focusin","onFocus"),Ke("focusout","onBlur"),Ke(qv,"onTransitionRun"),Ke(Gv,"onTransitionStart"),Ke(Xv,"onTransitionCancel"),Ke(qd,"onTransitionEnd"),Jl("onMouseEnter",["mouseout","mouseover"]),Jl("onMouseLeave",["mouseout","mouseover"]),Jl("onPointerEnter",["pointerout","pointerover"]),Jl("onPointerLeave",["pointerout","pointerover"]),pl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pl("onBeforeInput",["compositionend","keypress","textInput","paste"]),pl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="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(" "),E1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Au));function c0(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var u=t[l],c=u.event;u=u.listeners;t:{var s=void 0;if(e)for(var p=u.length-1;0<=p;p--){var b=u[p],T=b.instance,j=b.currentTarget;if(b=b.listener,T!==s&&c.isPropagationStopped())break t;s=b,c.currentTarget=j;try{s(c)}catch(G){Mi(G)}c.currentTarget=null,s=T}else for(p=0;p<u.length;p++){if(b=u[p],T=b.instance,j=b.currentTarget,b=b.listener,T!==s&&c.isPropagationStopped())break t;s=b,c.currentTarget=j;try{s(c)}catch(G){Mi(G)}c.currentTarget=null,s=T}}}}function Tt(t,e){var l=e[yc];l===void 0&&(l=e[yc]=new Set);var u=t+"__bubble";l.has(u)||(o0(e,t,2,!1),l.add(u))}function is(t,e,l){var u=0;e&&(u|=4),o0(l,t,u,e)}var fr="_reactListening"+Math.random().toString(36).slice(2);function rs(t){if(!t[fr]){t[fr]=!0,nd.forEach(function(l){l!=="selectionchange"&&(E1.has(l)||is(l,!1,t),is(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[fr]||(e[fr]=!0,is("selectionchange",!1,e))}}function o0(t,e,l,u){switch(k0(e)){case 2:var c=tx;break;case 8:c=ex;break;default:c=_s}l=c.bind(null,e,l,t),c=void 0,!Ec||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(c=!0),u?c!==void 0?t.addEventListener(e,l,{capture:!0,passive:c}):t.addEventListener(e,l,!0):c!==void 0?t.addEventListener(e,l,{passive:c}):t.addEventListener(e,l,!1)}function cs(t,e,l,u,c){var s=u;if((e&1)===0&&(e&2)===0&&u!==null)t:for(;;){if(u===null)return;var p=u.tag;if(p===3||p===4){var b=u.stateNode.containerInfo;if(b===c)break;if(p===4)for(p=u.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===c)return;p=p.return}for(;b!==null;){if(p=Zl(b),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){u=s=p;continue t}b=b.parentNode}}u=u.return}md(function(){var j=s,G=Tc(l),$=[];t:{var H=Gd.get(t);if(H!==void 0){var B=_i,it=t;switch(t){case"keypress":if(bi(l)===0)break t;case"keydown":case"keyup":B=xv;break;case"focusin":it="focus",B=Nc;break;case"focusout":it="blur",B=Nc;break;case"beforeblur":case"afterblur":B=Nc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=rv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=_v;break;case kd:case Yd:case Bd:B=sv;break;case qd:B=Tv;break;case"scroll":case"scrollend":B=uv;break;case"wheel":B=Ev;break;case"copy":case"cut":case"paste":B=dv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=xd;break;case"toggle":case"beforetoggle":B=Cv}var ft=(e&4)!==0,Lt=!ft&&(t==="scroll"||t==="scrollend"),z=ft?H!==null?H+"Capture":null:H;ft=[];for(var E=j,U;E!==null;){var Q=E;if(U=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||U===null||z===null||(Q=Ja(E,z),Q!=null&&ft.push(Cu(E,Q,U))),Lt)break;E=E.return}0<ft.length&&(H=new B(H,it,null,l,G),$.push({event:H,listeners:ft}))}}if((e&7)===0){t:{if(H=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",H&&l!==wc&&(it=l.relatedTarget||l.fromElement)&&(Zl(it)||it[Ql]))break t;if((B||H)&&(H=G.window===G?G:(H=G.ownerDocument)?H.defaultView||H.parentWindow:window,B?(it=l.relatedTarget||l.toElement,B=j,it=it?Zl(it):null,it!==null&&(Lt=f(it),ft=it.tag,it!==Lt||ft!==5&&ft!==27&&ft!==6)&&(it=null)):(B=null,it=j),B!==it)){if(ft=yd,Q="onMouseLeave",z="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(ft=xd,Q="onPointerLeave",z="onPointerEnter",E="pointer"),Lt=B==null?H:Ka(B),U=it==null?H:Ka(it),H=new ft(Q,E+"leave",B,l,G),H.target=Lt,H.relatedTarget=U,Q=null,Zl(G)===j&&(ft=new ft(z,E+"enter",it,l,G),ft.target=U,ft.relatedTarget=Lt,Q=ft),Lt=Q,B&&it)e:{for(ft=A1,z=B,E=it,U=0,Q=z;Q;Q=ft(Q))U++;Q=0;for(var ot=E;ot;ot=ft(ot))Q++;for(;0<U-Q;)z=ft(z),U--;for(;0<Q-U;)E=ft(E),Q--;for(;U--;){if(z===E||E!==null&&z===E.alternate){ft=z;break e}z=ft(z),E=ft(E)}ft=null}else ft=null;B!==null&&s0($,H,B,ft,!1),it!==null&&Lt!==null&&s0($,Lt,it,ft,!0)}}t:{if(H=j?Ka(j):window,B=H.nodeName&&H.nodeName.toLowerCase(),B==="select"||B==="input"&&H.type==="file")var zt=Ad;else if(Md(H))if(Cd)zt=kv;else{zt=Hv;var rt=jv}else B=H.nodeName,!B||B.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?j&&_c(j.elementType)&&(zt=Ad):zt=Lv;if(zt&&(zt=zt(t,j))){Ed($,zt,l,G);break t}rt&&rt(t,H,j),t==="focusout"&&j&&H.type==="number"&&j.memoizedProps.value!=null&&Sc(H,"number",H.value)}switch(rt=j?Ka(j):window,t){case"focusin":(Md(rt)||rt.contentEditable==="true")&&(ea=rt,Hc=j,lu=null);break;case"focusout":lu=Hc=ea=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,Hd($,l,G);break;case"selectionchange":if(Bv)break;case"keydown":case"keyup":Hd($,l,G)}var xt;if(Rc)t:{switch(t){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else ta?wd(t,l)&&(Et="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Et="onCompositionStart");Et&&(bd&&l.locale!=="ko"&&(ta||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&ta&&(xt=gd()):(Vn=G,Ac="value"in Vn?Vn.value:Vn.textContent,ta=!0)),rt=dr(j,Et),0<rt.length&&(Et=new vd(Et,t,null,l,G),$.push({event:Et,listeners:rt}),xt?Et.data=xt:(xt=Td(l),xt!==null&&(Et.data=xt)))),(xt=Nv?Dv(t,l):Rv(t,l))&&(Et=dr(j,"onBeforeInput"),0<Et.length&&(rt=new vd("onBeforeInput","beforeinput",null,l,G),$.push({event:rt,listeners:Et}),rt.data=xt)),w1($,t,j,l,G)}c0($,e)})}function Cu(t,e,l){return{instance:t,listener:e,currentTarget:l}}function dr(t,e){for(var l=e+"Capture",u=[];t!==null;){var c=t,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=Ja(t,l),c!=null&&u.unshift(Cu(t,c,s)),c=Ja(t,e),c!=null&&u.push(Cu(t,c,s))),t.tag===3)return u;t=t.return}return[]}function A1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function s0(t,e,l,u,c){for(var s=e._reactName,p=[];l!==null&&l!==u;){var b=l,T=b.alternate,j=b.stateNode;if(b=b.tag,T!==null&&T===u)break;b!==5&&b!==26&&b!==27||j===null||(T=j,c?(j=Ja(l,s),j!=null&&p.unshift(Cu(l,j,T))):c||(j=Ja(l,s),j!=null&&p.push(Cu(l,j,T)))),l=l.return}p.length!==0&&t.push({event:e,listeners:p})}var C1=/\r\n?/g,z1=/\u0000|\uFFFD/g;function f0(t){return(typeof t=="string"?t:""+t).replace(C1,`
49
+ `).replace(z1,"")}function d0(t,e){return e=f0(e),f0(t)===e}function Ht(t,e,l,u,c,s){switch(l){case"children":typeof u=="string"?e==="body"||e==="textarea"&&u===""||Wl(t,u):(typeof u=="number"||typeof u=="bigint")&&e!=="body"&&Wl(t,""+u);break;case"className":pi(t,"class",u);break;case"tabIndex":pi(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(t,l,u);break;case"style":dd(t,u,s);break;case"data":if(e!=="object"){pi(t,"data",u);break}case"src":case"href":if(u===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=vi(""+u),t.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(l==="formAction"?(e!=="input"&&Ht(t,e,"name",c.name,c,null),Ht(t,e,"formEncType",c.formEncType,c,null),Ht(t,e,"formMethod",c.formMethod,c,null),Ht(t,e,"formTarget",c.formTarget,c,null)):(Ht(t,e,"encType",c.encType,c,null),Ht(t,e,"method",c.method,c,null),Ht(t,e,"target",c.target,c,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=vi(""+u),t.setAttribute(l,u);break;case"onClick":u!=null&&(t.onclick=hn);break;case"onScroll":u!=null&&Tt("scroll",t);break;case"onScrollEnd":u!=null&&Tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}l=vi(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,""+u):t.removeAttribute(l);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":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":u===!0?t.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,u):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(l,u):t.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(l):t.setAttribute(l,u);break;case"popover":Tt("beforetoggle",t),Tt("toggle",t),gi(t,"popover",u);break;case"xlinkActuate":dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":dn(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":dn(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":dn(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":dn(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":gi(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=lv.get(l)||l,gi(t,l,u))}}function os(t,e,l,u,c,s){switch(l){case"style":dd(t,u,s);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof u=="string"?Wl(t,u):(typeof u=="number"||typeof u=="bigint")&&Wl(t,""+u);break;case"onScroll":u!=null&&Tt("scroll",t);break;case"onScrollEnd":u!=null&&Tt("scrollend",t);break;case"onClick":u!=null&&(t.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ld.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(c=l.endsWith("Capture"),e=l.slice(2,c?l.length-7:void 0),s=t[pe]||null,s=s!=null?s[l]:null,typeof s=="function"&&t.removeEventListener(e,s,c),typeof u=="function")){typeof s!="function"&&s!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,u,c);break t}l in t?t[l]=u:u===!0?t.setAttribute(l,""):gi(t,l,u)}}}function fe(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",t),Tt("load",t);var u=!1,c=!1,s;for(s in l)if(l.hasOwnProperty(s)){var p=l[s];if(p!=null)switch(s){case"src":u=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ht(t,e,s,p,l,null)}}c&&Ht(t,e,"srcSet",l.srcSet,l,null),u&&Ht(t,e,"src",l.src,l,null);return;case"input":Tt("invalid",t);var b=s=p=c=null,T=null,j=null;for(u in l)if(l.hasOwnProperty(u)){var G=l[u];if(G!=null)switch(u){case"name":c=G;break;case"type":p=G;break;case"checked":T=G;break;case"defaultChecked":j=G;break;case"value":s=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,e));break;default:Ht(t,e,u,G,l,null)}}cd(t,s,b,T,j,p,c,!1);return;case"select":Tt("invalid",t),u=p=s=null;for(c in l)if(l.hasOwnProperty(c)&&(b=l[c],b!=null))switch(c){case"value":s=b;break;case"defaultValue":p=b;break;case"multiple":u=b;default:Ht(t,e,c,b,l,null)}e=s,l=p,t.multiple=!!u,e!=null?Fl(t,!!u,e,!1):l!=null&&Fl(t,!!u,l,!0);return;case"textarea":Tt("invalid",t),s=c=u=null;for(p in l)if(l.hasOwnProperty(p)&&(b=l[p],b!=null))switch(p){case"value":u=b;break;case"defaultValue":c=b;break;case"children":s=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:Ht(t,e,p,b,l,null)}sd(t,u,c,s);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(u=l[T],u!=null))switch(T){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ht(t,e,T,u,l,null)}return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(u=0;u<Au.length;u++)Tt(Au[u],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in l)if(l.hasOwnProperty(j)&&(u=l[j],u!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ht(t,e,j,u,l,null)}return;default:if(_c(e)){for(G in l)l.hasOwnProperty(G)&&(u=l[G],u!==void 0&&os(t,e,G,u,l,void 0));return}}for(b in l)l.hasOwnProperty(b)&&(u=l[b],u!=null&&Ht(t,e,b,u,l,null))}function N1(t,e,l,u){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,s=null,p=null,b=null,T=null,j=null,G=null;for(B in l){var $=l[B];if(l.hasOwnProperty(B)&&$!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":T=$;default:u.hasOwnProperty(B)||Ht(t,e,B,null,u,$)}}for(var H in u){var B=u[H];if($=l[H],u.hasOwnProperty(H)&&(B!=null||$!=null))switch(H){case"type":s=B;break;case"name":c=B;break;case"checked":j=B;break;case"defaultChecked":G=B;break;case"value":p=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:B!==$&&Ht(t,e,H,B,u,$)}}bc(t,p,b,T,j,G,s,c);return;case"select":B=p=b=H=null;for(s in l)if(T=l[s],l.hasOwnProperty(s)&&T!=null)switch(s){case"value":break;case"multiple":B=T;default:u.hasOwnProperty(s)||Ht(t,e,s,null,u,T)}for(c in u)if(s=u[c],T=l[c],u.hasOwnProperty(c)&&(s!=null||T!=null))switch(c){case"value":H=s;break;case"defaultValue":b=s;break;case"multiple":p=s;default:s!==T&&Ht(t,e,c,s,u,T)}e=b,l=p,u=B,H!=null?Fl(t,!!l,H,!1):!!u!=!!l&&(e!=null?Fl(t,!!l,e,!0):Fl(t,!!l,l?[]:"",!1));return;case"textarea":B=H=null;for(b in l)if(c=l[b],l.hasOwnProperty(b)&&c!=null&&!u.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ht(t,e,b,null,u,c)}for(p in u)if(c=u[p],s=l[p],u.hasOwnProperty(p)&&(c!=null||s!=null))switch(p){case"value":H=c;break;case"defaultValue":B=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==s&&Ht(t,e,p,c,u,s)}od(t,H,B);return;case"option":for(var it in l)if(H=l[it],l.hasOwnProperty(it)&&H!=null&&!u.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:Ht(t,e,it,null,u,H)}for(T in u)if(H=u[T],B=l[T],u.hasOwnProperty(T)&&H!==B&&(H!=null||B!=null))switch(T){case"selected":t.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ht(t,e,T,H,u,B)}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 ft in l)H=l[ft],l.hasOwnProperty(ft)&&H!=null&&!u.hasOwnProperty(ft)&&Ht(t,e,ft,null,u,H);for(j in u)if(H=u[j],B=l[j],u.hasOwnProperty(j)&&H!==B&&(H!=null||B!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:Ht(t,e,j,H,u,B)}return;default:if(_c(e)){for(var Lt in l)H=l[Lt],l.hasOwnProperty(Lt)&&H!==void 0&&!u.hasOwnProperty(Lt)&&os(t,e,Lt,void 0,u,H);for(G in u)H=u[G],B=l[G],!u.hasOwnProperty(G)||H===B||H===void 0&&B===void 0||os(t,e,G,H,u,B);return}}for(var z in l)H=l[z],l.hasOwnProperty(z)&&H!=null&&!u.hasOwnProperty(z)&&Ht(t,e,z,null,u,H);for($ in u)H=u[$],B=l[$],!u.hasOwnProperty($)||H===B||H==null&&B==null||Ht(t,e,$,H,u,B)}function h0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function D1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var c=l[u],s=c.transferSize,p=c.initiatorType,b=c.duration;if(s&&b&&h0(p)){for(p=0,b=c.responseEnd,u+=1;u<l.length;u++){var T=l[u],j=T.startTime;if(j>b)break;var G=T.transferSize,$=T.initiatorType;G&&h0($)&&(T=T.responseEnd,p+=G*(T<b?1:(b-j)/(T-j)))}if(--u,e+=8*(s+p)/(c.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ss=null,fs=null;function hr(t){return t.nodeType===9?t:t.ownerDocument}function m0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function g0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ds(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var hs=null;function R1(){var t=window.event;return t&&t.type==="popstate"?t===hs?!1:(hs=t,!0):(hs=null,!1)}var p0=typeof setTimeout=="function"?setTimeout:void 0,O1=typeof clearTimeout=="function"?clearTimeout:void 0,y0=typeof Promise=="function"?Promise:void 0,U1=typeof queueMicrotask=="function"?queueMicrotask:typeof y0<"u"?function(t){return y0.resolve(null).then(t).catch(j1)}:p0;function j1(t){setTimeout(function(){throw t})}function rl(t){return t==="head"}function v0(t,e){var l=e,u=0;do{var c=l.nextSibling;if(t.removeChild(l),c&&c.nodeType===8)if(l=c.data,l==="/$"||l==="/&"){if(u===0){t.removeChild(c),Ca(e);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")zu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,zu(l);for(var s=l.firstChild;s;){var p=s.nextSibling,b=s.nodeName;s[$a]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=p}}else l==="body"&&zu(t.ownerDocument.body);l=c}while(l);Ca(e)}function x0(t,e){var l=t;t=0;do{var u=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=u}while(l)}function ms(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ms(l),vc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function H1(t,e,l,u){for(;t.nodeType===1;){var c=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[$a])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Ve(t.nextSibling),t===null)break}return null}function L1(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ve(t.nextSibling),t===null))return null;return t}function b0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ve(t.nextSibling),t===null))return null;return t}function gs(t){return t.data==="$?"||t.data==="$~"}function ps(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function k1(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var u=function(){e(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function Ve(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ys=null;function S0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ve(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function _0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function w0(t,e,l){switch(e=hr(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function zu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);vc(t)}var Qe=new Map,T0=new Set;function mr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zn=Y.d;Y.d={f:Y1,r:B1,D:q1,C:G1,L:X1,m:V1,X:Z1,S:Q1,M:$1};function Y1(){var t=zn.f(),e=ur();return t||e}function B1(t){var e=$l(t);e!==null&&e.tag===5&&e.type==="form"?qh(e):zn.r(t)}var Ma=typeof document>"u"?null:document;function M0(t,e,l){var u=Ma;if(u&&typeof e=="string"&&e){var c=Le(e);c='link[rel="'+t+'"][href="'+c+'"]',typeof l=="string"&&(c+='[crossorigin="'+l+'"]'),T0.has(c)||(T0.add(c),t={rel:t,crossOrigin:l,href:e},u.querySelector(c)===null&&(e=u.createElement("link"),fe(e,"link",t),le(e),u.head.appendChild(e)))}}function q1(t){zn.D(t),M0("dns-prefetch",t,null)}function G1(t,e){zn.C(t,e),M0("preconnect",t,e)}function X1(t,e,l){zn.L(t,e,l);var u=Ma;if(u&&t&&e){var c='link[rel="preload"][as="'+Le(e)+'"]';e==="image"&&l&&l.imageSrcSet?(c+='[imagesrcset="'+Le(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(c+='[imagesizes="'+Le(l.imageSizes)+'"]')):c+='[href="'+Le(t)+'"]';var s=c;switch(e){case"style":s=Ea(t);break;case"script":s=Aa(t)}Qe.has(s)||(t=y({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Qe.set(s,t),u.querySelector(c)!==null||e==="style"&&u.querySelector(Nu(s))||e==="script"&&u.querySelector(Du(s))||(e=u.createElement("link"),fe(e,"link",t),le(e),u.head.appendChild(e)))}}function V1(t,e){zn.m(t,e);var l=Ma;if(l&&t){var u=e&&typeof e.as=="string"?e.as:"script",c='link[rel="modulepreload"][as="'+Le(u)+'"][href="'+Le(t)+'"]',s=c;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Aa(t)}if(!Qe.has(s)&&(t=y({rel:"modulepreload",href:t},e),Qe.set(s,t),l.querySelector(c)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Du(s)))return}u=l.createElement("link"),fe(u,"link",t),le(u),l.head.appendChild(u)}}}function Q1(t,e,l){zn.S(t,e,l);var u=Ma;if(u&&t){var c=Kl(u).hoistableStyles,s=Ea(t);e=e||"default";var p=c.get(s);if(!p){var b={loading:0,preload:null};if(p=u.querySelector(Nu(s)))b.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Qe.get(s))&&vs(t,l);var T=p=u.createElement("link");le(T),fe(T,"link",t),T._p=new Promise(function(j,G){T.onload=j,T.onerror=G}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,gr(p,e,u)}p={type:"stylesheet",instance:p,count:1,state:b},c.set(s,p)}}}function Z1(t,e){zn.X(t,e);var l=Ma;if(l&&t){var u=Kl(l).hoistableScripts,c=Aa(t),s=u.get(c);s||(s=l.querySelector(Du(c)),s||(t=y({src:t,async:!0},e),(e=Qe.get(c))&&xs(t,e),s=l.createElement("script"),le(s),fe(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},u.set(c,s))}}function $1(t,e){zn.M(t,e);var l=Ma;if(l&&t){var u=Kl(l).hoistableScripts,c=Aa(t),s=u.get(c);s||(s=l.querySelector(Du(c)),s||(t=y({src:t,async:!0,type:"module"},e),(e=Qe.get(c))&&xs(t,e),s=l.createElement("script"),le(s),fe(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},u.set(c,s))}}function E0(t,e,l,u){var c=(c=ut.current)?mr(c):null;if(!c)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ea(l.href),l=Kl(c).hoistableStyles,u=l.get(e),u||(u={type:"style",instance:null,count:0,state:null},l.set(e,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ea(l.href);var s=Kl(c).hoistableStyles,p=s.get(t);if(p||(c=c.ownerDocument||c,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,p),(s=c.querySelector(Nu(t)))&&!s._p&&(p.instance=s,p.state.loading=5),Qe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Qe.set(t,l),s||K1(c,t,l,p.state))),e&&u===null)throw Error(r(528,""));return p}if(e&&u!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Aa(l),l=Kl(c).hoistableScripts,u=l.get(e),u||(u={type:"script",instance:null,count:0,state:null},l.set(e,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Ea(t){return'href="'+Le(t)+'"'}function Nu(t){return'link[rel="stylesheet"]['+t+"]"}function A0(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function K1(t,e,l,u){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?u.loading=1:(e=t.createElement("link"),u.preload=e,e.addEventListener("load",function(){return u.loading|=1}),e.addEventListener("error",function(){return u.loading|=2}),fe(e,"link",l),le(e),t.head.appendChild(e))}function Aa(t){return'[src="'+Le(t)+'"]'}function Du(t){return"script[async]"+t}function C0(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var u=t.querySelector('style[data-href~="'+Le(l.href)+'"]');if(u)return e.instance=u,le(u),u;var c=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),le(u),fe(u,"style",c),gr(u,l.precedence,t),e.instance=u;case"stylesheet":c=Ea(l.href);var s=t.querySelector(Nu(c));if(s)return e.state.loading|=4,e.instance=s,le(s),s;u=A0(l),(c=Qe.get(c))&&vs(u,c),s=(t.ownerDocument||t).createElement("link"),le(s);var p=s;return p._p=new Promise(function(b,T){p.onload=b,p.onerror=T}),fe(s,"link",u),e.state.loading|=4,gr(s,l.precedence,t),e.instance=s;case"script":return s=Aa(l.src),(c=t.querySelector(Du(s)))?(e.instance=c,le(c),c):(u=l,(c=Qe.get(s))&&(u=y({},l),xs(u,c)),t=t.ownerDocument||t,c=t.createElement("script"),le(c),fe(c,"link",u),t.head.appendChild(c),e.instance=c);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(u=e.instance,e.state.loading|=4,gr(u,l.precedence,t));return e.instance}function gr(t,e,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=u.length?u[u.length-1]:null,s=c,p=0;p<u.length;p++){var b=u[p];if(b.dataset.precedence===e)s=b;else if(s!==c)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function vs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function xs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var pr=null;function z0(t,e,l){if(pr===null){var u=new Map,c=pr=new Map;c.set(l,u)}else c=pr,u=c.get(l),u||(u=new Map,c.set(l,u));if(u.has(t))return u;for(u.set(t,null),l=l.getElementsByTagName(t),c=0;c<l.length;c++){var s=l[c];if(!(s[$a]||s[re]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var p=s.getAttribute(e)||"";p=t+p;var b=u.get(p);b?b.push(s):u.set(p,[s])}}return u}function N0(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function J1(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function D0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function F1(t,e,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var c=Ea(u.href),s=e.querySelector(Nu(c));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=yr.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=s,le(s);return}s=e.ownerDocument||e,u=A0(u),(c=Qe.get(c))&&vs(u,c),s=s.createElement("link"),le(s);var p=s;p._p=new Promise(function(b,T){p.onload=b,p.onerror=T}),fe(s,"link",u),l.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=yr.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var bs=0;function W1(t,e){return t.stylesheets&&t.count===0&&xr(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var u=setTimeout(function(){if(t.stylesheets&&xr(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&bs===0&&(bs=62500*D1());var c=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&xr(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>bs?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(c)}}:null}function yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vr=null;function xr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vr=new Map,e.forEach(I1,t),vr=null,yr.call(t))}function I1(t,e){if(!(e.state.loading&4)){var l=vr.get(t);if(l)var u=l.get(null);else{l=new Map,vr.set(t,l);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var p=c[s];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(l.set(p.dataset.precedence,p),u=p)}u&&l.set(null,u)}c=e.instance,p=c.getAttribute("data-precedence"),s=l.get(p)||u,s===u&&l.set(null,c),l.set(p,c),this.count++,u=yr.bind(this),c.addEventListener("load",u),c.addEventListener("error",u),s?s.parentNode.insertBefore(c,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),e.state.loading|=4}}var Ru={$$typeof:L,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function P1(t,e,l,u,c,s,p,b,T){this.tag=1,this.containerInfo=t,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=mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.hiddenUpdates=mc(null),this.identifierPrefix=u,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function R0(t,e,l,u,c,s,p,b,T,j,G,$){return t=new P1(t,e,l,p,T,j,G,$,b),e=1,s===!0&&(e|=24),s=Ce(3,null,null,e),t.current=s,s.stateNode=t,e=Ic(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:u,isDehydrated:l,cache:e},no(s),t}function O0(t){return t?(t=aa,t):aa}function U0(t,e,l,u,c,s){c=O0(c),u.context===null?u.context=c:u.pendingContext=c,u=Fn(e),u.payload={element:l},s=s===void 0?null:s,s!==null&&(u.callback=s),l=Wn(t,u,e),l!==null&&(_e(l,t,e),su(l,t,e))}function j0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Ss(t,e){j0(t,e),(t=t.alternate)&&j0(t,e)}function H0(t){if(t.tag===13||t.tag===31){var e=bl(t,67108864);e!==null&&_e(e,t,67108864),Ss(t,67108864)}}function L0(t){if(t.tag===13||t.tag===31){var e=Oe();e=gc(e);var l=bl(t,e);l!==null&&_e(l,t,e),Ss(t,e)}}var br=!0;function tx(t,e,l,u){var c=M.T;M.T=null;var s=Y.p;try{Y.p=2,_s(t,e,l,u)}finally{Y.p=s,M.T=c}}function ex(t,e,l,u){var c=M.T;M.T=null;var s=Y.p;try{Y.p=8,_s(t,e,l,u)}finally{Y.p=s,M.T=c}}function _s(t,e,l,u){if(br){var c=ws(u);if(c===null)cs(t,e,u,Sr,l),Y0(t,u);else if(lx(c,t,e,l,u))u.stopPropagation();else if(Y0(t,u),e&4&&-1<nx.indexOf(t)){for(;c!==null;){var s=$l(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var p=gl(s.pendingLanes);if(p!==0){var b=s;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var T=1<<31-Ee(p);b.entanglements[1]|=T,p&=~T}un(s),(Rt&6)===0&&(lr=Te()+500,Eu(0))}}break;case 31:case 13:b=bl(s,2),b!==null&&_e(b,s,2),ur(),Ss(s,2)}if(s=ws(u),s===null&&cs(t,e,u,Sr,l),s===c)break;c=s}c!==null&&u.stopPropagation()}else cs(t,e,u,null,l)}}function ws(t){return t=Tc(t),Ts(t)}var Sr=null;function Ts(t){if(Sr=null,t=Zl(t),t!==null){var e=f(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=d(e),t!==null)return t;t=null}else if(l===31){if(t=g(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Sr=t,null}function k0(t){switch(t){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(qy()){case Zf:return 2;case $f:return 8;case si:case Gy:return 32;case Kf:return 268435456;default:return 32}default:return 32}}var Ms=!1,cl=null,ol=null,sl=null,Ou=new Map,Uu=new Map,fl=[],nx="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 Y0(t,e){switch(t){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":sl=null;break;case"pointerover":case"pointerout":Ou.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uu.delete(e.pointerId)}}function ju(t,e,l,u,c,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:l,eventSystemFlags:u,nativeEvent:s,targetContainers:[c]},e!==null&&(e=$l(e),e!==null&&H0(e)),t):(t.eventSystemFlags|=u,e=t.targetContainers,c!==null&&e.indexOf(c)===-1&&e.push(c),t)}function lx(t,e,l,u,c){switch(e){case"focusin":return cl=ju(cl,t,e,l,u,c),!0;case"dragenter":return ol=ju(ol,t,e,l,u,c),!0;case"mouseover":return sl=ju(sl,t,e,l,u,c),!0;case"pointerover":var s=c.pointerId;return Ou.set(s,ju(Ou.get(s)||null,t,e,l,u,c)),!0;case"gotpointercapture":return s=c.pointerId,Uu.set(s,ju(Uu.get(s)||null,t,e,l,u,c)),!0}return!1}function B0(t){var e=Zl(t.target);if(e!==null){var l=f(e);if(l!==null){if(e=l.tag,e===13){if(e=d(l),e!==null){t.blockedOn=e,td(t.priority,function(){L0(l)});return}}else if(e===31){if(e=g(l),e!==null){t.blockedOn=e,td(t.priority,function(){L0(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _r(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=ws(t.nativeEvent);if(l===null){l=t.nativeEvent;var u=new l.constructor(l.type,l);wc=u,l.target.dispatchEvent(u),wc=null}else return e=$l(l),e!==null&&H0(e),t.blockedOn=l,!1;e.shift()}return!0}function q0(t,e,l){_r(t)&&l.delete(e)}function ax(){Ms=!1,cl!==null&&_r(cl)&&(cl=null),ol!==null&&_r(ol)&&(ol=null),sl!==null&&_r(sl)&&(sl=null),Ou.forEach(q0),Uu.forEach(q0)}function wr(t,e){t.blockedOn===e&&(t.blockedOn=null,Ms||(Ms=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ax)))}var Tr=null;function G0(t){Tr!==t&&(Tr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Tr===t&&(Tr=null);for(var e=0;e<t.length;e+=3){var l=t[e],u=t[e+1],c=t[e+2];if(typeof u!="function"){if(Ts(u||l)===null)continue;break}var s=$l(l);s!==null&&(t.splice(e,3),e-=3,wo(s,{pending:!0,data:c,method:l.method,action:u},u,c))}}))}function Ca(t){function e(T){return wr(T,t)}cl!==null&&wr(cl,t),ol!==null&&wr(ol,t),sl!==null&&wr(sl,t),Ou.forEach(e),Uu.forEach(e);for(var l=0;l<fl.length;l++){var u=fl[l];u.blockedOn===t&&(u.blockedOn=null)}for(;0<fl.length&&(l=fl[0],l.blockedOn===null);)B0(l),l.blockedOn===null&&fl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var c=l[u],s=l[u+1],p=c[pe]||null;if(typeof s=="function")p||G0(l);else if(p){var b=null;if(s&&s.hasAttribute("formAction")){if(c=s,p=s[pe]||null)b=p.formAction;else if(Ts(c)!==null)continue}else b=p.action;typeof b=="function"?l[u+1]=b:(l.splice(u,3),u-=3),G0(l)}}}function X0(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(p){return c=p})},focusReset:"manual",scroll:"manual"})}function e(){c!==null&&(c(),c=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,c=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),c!==null&&(c(),c=null)}}}function Es(t){this._internalRoot=t}Mr.prototype.render=Es.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,u=Oe();U0(l,u,t,e,null,null)},Mr.prototype.unmount=Es.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;U0(t.current,2,null,t,null,null),ur(),e[Ql]=null}};function Mr(t){this._internalRoot=t}Mr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Pf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<fl.length&&e!==0&&e<fl[l].priority;l++);fl.splice(l,0,t),l===0&&B0(t)}};var V0=a.version;if(V0!=="19.2.4")throw Error(r(527,V0,"19.2.4"));Y.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=h(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var ux={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Er=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Er.isDisabled&&Er.supportsFiber)try{Va=Er.inject(ux),Me=Er}catch{}}return Lu.createRoot=function(t,e){if(!o(t))throw Error(r(299));var l=!1,u="",c=Wh,s=Ih,p=Ph;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(u=e.identifierPrefix),e.onUncaughtError!==void 0&&(c=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=R0(t,1,!1,null,null,l,u,null,c,s,p,X0),t[Ql]=e.current,rs(t),new Es(e)},Lu.hydrateRoot=function(t,e,l){if(!o(t))throw Error(r(299));var u=!1,c="",s=Wh,p=Ih,b=Ph,T=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(c=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(p=l.onCaughtError),l.onRecoverableError!==void 0&&(b=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),e=R0(t,1,!0,e,l??null,u,c,T,s,p,b,X0),e.context=O0(null),l=e.current,u=Oe(),u=gc(u),c=Fn(u),c.callback=null,Wn(l,c,u),l=u,e.current.lanes=l,Za(e,l),un(e),t[Ql]=e.current,rs(t),new Mr(e)},Lu.version="19.2.4",Lu}var tg;function gx(){if(tg)return zs.exports;tg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),zs.exports=mx(),zs.exports}var px=gx();/**
50
+ * react-router v7.13.0
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var eg="popstate";function yx(n={}){function a(r,o){let{pathname:f,search:d,hash:g}=r.location;return Is("",{pathname:f,search:d,hash:g},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(r,o){return typeof o=="string"?o:Fu(o)}return xx(a,i,null,n)}function Qt(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function cn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function vx(){return Math.random().toString(36).substring(2,10)}function ng(n,a){return{usr:n.state,key:n.key,idx:a}}function Is(n,a,i=null,r){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Ba(a):a,state:i,key:a&&a.key||r||vx()}}function Fu({pathname:n="/",search:a="",hash:i=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function Ba(n){let a={};if(n){let i=n.indexOf("#");i>=0&&(a.hash=n.substring(i),n=n.substring(0,i));let r=n.indexOf("?");r>=0&&(a.search=n.substring(r),n=n.substring(0,r)),n&&(a.pathname=n)}return a}function xx(n,a,i,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,d=o.history,g="POP",m=null,h=v();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function v(){return(d.state||{idx:null}).idx}function y(){g="POP";let C=v(),A=C==null?null:C-h;h=C,m&&m({action:g,location:N.location,delta:A})}function x(C,A){g="PUSH";let q=Is(N.location,C,A);h=v()+1;let L=ng(q,h),J=N.createHref(q);try{d.pushState(L,"",J)}catch(nt){if(nt instanceof DOMException&&nt.name==="DataCloneError")throw nt;o.location.assign(J)}f&&m&&m({action:g,location:N.location,delta:1})}function w(C,A){g="REPLACE";let q=Is(N.location,C,A);h=v();let L=ng(q,h),J=N.createHref(q);d.replaceState(L,"",J),f&&m&&m({action:g,location:N.location,delta:0})}function k(C){return bx(C)}let N={get action(){return g},get location(){return n(o,d)},listen(C){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(eg,y),m=C,()=>{o.removeEventListener(eg,y),m=null}},createHref(C){return a(o,C)},createURL:k,encodeLocation(C){let A=k(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:w,go(C){return d.go(C)}};return N}function bx(n,a=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Qt(i,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Fu(n);return r=r.replace(/ $/,"%20"),!a&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function op(n,a,i="/"){return Sx(n,a,i,!1)}function Sx(n,a,i,r){let o=typeof a=="string"?Ba(a):a,f=Hn(o.pathname||"/",i);if(f==null)return null;let d=sp(n);_x(d);let g=null;for(let m=0;g==null&&m<d.length;++m){let h=Ox(f);g=Dx(d[m],h,r)}return g}function sp(n,a=[],i=[],r="",o=!1){let f=(d,g,m=o,h)=>{let v={relativePath:h===void 0?d.path||"":h,caseSensitive:d.caseSensitive===!0,childrenIndex:g,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&m)return;Qt(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=jn([r,v.relativePath]),x=i.concat(v);d.children&&d.children.length>0&&(Qt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),sp(d.children,a,x,y,m)),!(d.path==null&&!d.index)&&a.push({path:y,score:zx(y,d.index),routesMeta:x})};return n.forEach((d,g)=>{var m;if(d.path===""||!((m=d.path)!=null&&m.includes("?")))f(d,g);else for(let h of fp(d.path))f(d,g,!0,h)}),a}function fp(n){let a=n.split("/");if(a.length===0)return[];let[i,...r]=a,o=i.endsWith("?"),f=i.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let d=fp(r.join("/")),g=[];return g.push(...d.map(m=>m===""?f:[f,m].join("/"))),o&&g.push(...d),g.map(m=>n.startsWith("/")&&m===""?"/":m)}function _x(n){n.sort((a,i)=>a.score!==i.score?i.score-a.score:Nx(a.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var wx=/^:[\w-]+$/,Tx=3,Mx=2,Ex=1,Ax=10,Cx=-2,lg=n=>n==="*";function zx(n,a){let i=n.split("/"),r=i.length;return i.some(lg)&&(r+=Cx),a&&(r+=Mx),i.filter(o=>!lg(o)).reduce((o,f)=>o+(wx.test(f)?Tx:f===""?Ex:Ax),r)}function Nx(n,a){return n.length===a.length&&n.slice(0,-1).every((r,o)=>r===a[o])?n[n.length-1]-a[a.length-1]:0}function Dx(n,a,i=!1){let{routesMeta:r}=n,o={},f="/",d=[];for(let g=0;g<r.length;++g){let m=r[g],h=g===r.length-1,v=f==="/"?a:a.slice(f.length)||"/",y=Vr({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},v),x=m.route;if(!y&&h&&i&&!r[r.length-1].route.index&&(y=Vr({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!y)return null;Object.assign(o,y.params),d.push({params:o,pathname:jn([f,y.pathname]),pathnameBase:Lx(jn([f,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(f=jn([f,y.pathnameBase]))}return d}function Vr(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,r]=Rx(n.path,n.caseSensitive,n.end),o=a.match(i);if(!o)return null;let f=o[0],d=f.replace(/(.)\/+$/,"$1"),g=o.slice(1);return{params:r.reduce((h,{paramName:v,isOptional:y},x)=>{if(v==="*"){let k=g[x]||"";d=f.slice(0,f.length-k.length).replace(/(.)\/+$/,"$1")}const w=g[x];return y&&!w?h[v]=void 0:h[v]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:n}}function Rx(n,a=!1,i=!0){cn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,g,m)=>(r.push({paramName:g,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),r]}function Ox(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return cn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Hn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,r=n.charAt(i);return r&&r!=="/"?null:n.slice(i)||"/"}var Ux=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function jx(n,a="/"){let{pathname:i,search:r="",hash:o=""}=typeof n=="string"?Ba(n):n,f;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?f=ag(i.substring(1),"/"):f=ag(i,a)):f=a,{pathname:f,search:kx(r),hash:Yx(o)}}function ag(n,a){let i=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Os(n,a,i,r){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hx(n){return n.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function dp(n){let a=Hx(n);return a.map((i,r)=>r===a.length-1?i.pathname:i.pathnameBase)}function hp(n,a,i,r=!1){let o;typeof n=="string"?o=Ba(n):(o={...n},Qt(!o.pathname||!o.pathname.includes("?"),Os("?","pathname","search",o)),Qt(!o.pathname||!o.pathname.includes("#"),Os("#","pathname","hash",o)),Qt(!o.search||!o.search.includes("#"),Os("#","search","hash",o)));let f=n===""||o.pathname==="",d=f?"/":o.pathname,g;if(d==null)g=i;else{let y=a.length-1;if(!r&&d.startsWith("..")){let x=d.split("/");for(;x[0]==="..";)x.shift(),y-=1;o.pathname=x.join("/")}g=y>=0?a[y]:"/"}let m=jx(o,g),h=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(h||v)&&(m.pathname+="/"),m}var jn=n=>n.join("/").replace(/\/\/+/g,"/"),Lx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),kx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Yx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Bx=class{constructor(n,a,i,r=!1){this.status=n,this.statusText=a||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function qx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Gx(n){return n.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var mp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function gp(n,a){let i=n;if(typeof i!="string"||!Ux.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,o=!1;if(mp)try{let f=new URL(window.location.href),d=i.startsWith("//")?new URL(f.protocol+i):new URL(i),g=Hn(d.pathname,a);d.origin===f.origin&&g!=null?i=g+d.search+d.hash:o=!0}catch{cn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pp=["POST","PUT","PATCH","DELETE"];new Set(pp);var Xx=["GET",...pp];new Set(Xx);var qa=R.createContext(null);qa.displayName="DataRouter";var rc=R.createContext(null);rc.displayName="DataRouterState";var Vx=R.createContext(!1),yp=R.createContext({isTransitioning:!1});yp.displayName="ViewTransition";var Qx=R.createContext(new Map);Qx.displayName="Fetchers";var Zx=R.createContext(null);Zx.displayName="Await";var $e=R.createContext(null);$e.displayName="Navigation";var li=R.createContext(null);li.displayName="Location";var on=R.createContext({outlet:null,matches:[],isDataRoute:!1});on.displayName="Route";var bf=R.createContext(null);bf.displayName="RouteError";var vp="REACT_ROUTER_ERROR",$x="REDIRECT",Kx="ROUTE_ERROR_RESPONSE";function Jx(n){if(n.startsWith(`${vp}:${$x}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function Fx(n){if(n.startsWith(`${vp}:${Kx}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new Bx(a.status,a.statusText,a.data)}catch{}}function Wx(n,{relative:a}={}){Qt(ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=R.useContext($e),{hash:o,pathname:f,search:d}=ui(n,{relative:a}),g=f;return i!=="/"&&(g=f==="/"?i:jn([i,f])),r.createHref({pathname:g,search:d,hash:o})}function ai(){return R.useContext(li)!=null}function ql(){return Qt(ai(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(li).location}var xp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bp(n){R.useContext($e).static||R.useLayoutEffect(n)}function Ix(){let{isDataRoute:n}=R.useContext(on);return n?hb():Px()}function Px(){Qt(ai(),"useNavigate() may be used only in the context of a <Router> component.");let n=R.useContext(qa),{basename:a,navigator:i}=R.useContext($e),{matches:r}=R.useContext(on),{pathname:o}=ql(),f=JSON.stringify(dp(r)),d=R.useRef(!1);return bp(()=>{d.current=!0}),R.useCallback((m,h={})=>{if(cn(d.current,xp),!d.current)return;if(typeof m=="number"){i.go(m);return}let v=hp(m,JSON.parse(f),o,h.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:jn([a,v.pathname])),(h.replace?i.replace:i.push)(v,h.state,h)},[a,i,f,o,n])}var tb=R.createContext(null);function eb(n){let a=R.useContext(on).outlet;return R.useMemo(()=>a&&R.createElement(tb.Provider,{value:n},a),[a,n])}function ui(n,{relative:a}={}){let{matches:i}=R.useContext(on),{pathname:r}=ql(),o=JSON.stringify(dp(i));return R.useMemo(()=>hp(n,JSON.parse(o),r,a==="path"),[n,o,r,a])}function nb(n,a){return Sp(n,a)}function Sp(n,a,i,r,o){var q;Qt(ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=R.useContext($e),{matches:d}=R.useContext(on),g=d[d.length-1],m=g?g.params:{},h=g?g.pathname:"/",v=g?g.pathnameBase:"/",y=g&&g.route;{let L=y&&y.path||"";wp(h,!y||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (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.
59
+
60
+ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let x=ql(),w;if(a){let L=typeof a=="string"?Ba(a):a;Qt(v==="/"||((q=L.pathname)==null?void 0:q.startsWith(v)),`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 "${v}" but pathname "${L.pathname}" was given in the \`location\` prop.`),w=L}else w=x;let k=w.pathname||"/",N=k;if(v!=="/"){let L=v.replace(/^\//,"").split("/");N="/"+k.replace(/^\//,"").split("/").slice(L.length).join("/")}let C=op(n,{pathname:N});cn(y||C!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),cn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 A=rb(C&&C.map(L=>Object.assign({},L,{params:Object.assign({},m,L.params),pathname:jn([v,f.encodeLocation?f.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?v:jn([v,f.encodeLocation?f.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),d,i,r,o);return a&&A?R.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},A):A}function lb(){let n=db(),a=qx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:f},"ErrorBoundary")," or"," ",R.createElement("code",{style:f},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},a),i?R.createElement("pre",{style:o},i):null,d)}var ab=R.createElement(lb,null),_p=class extends R.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const i=Fx(n.digest);i&&(n=i)}let a=n!==void 0?R.createElement(on.Provider,{value:this.props.routeContext},R.createElement(bf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?R.createElement(ub,{error:n},a):a}};_p.contextType=Vx;var Us=new WeakMap;function ub({children:n,error:a}){let{basename:i}=R.useContext($e);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let r=Jx(a.digest);if(r){let o=Us.get(a);if(o)throw o;let f=gp(r.location,i);if(mp&&!Us.get(a))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Us.set(a,d),d}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function ib({routeContext:n,match:a,children:i}){let r=R.useContext(qa);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),R.createElement(on.Provider,{value:n},i)}function rb(n,a=[],i=null,r=null,o=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(a.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let f=n,d=i==null?void 0:i.errors;if(d!=null){let v=f.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);Qt(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,v+1))}let g=!1,m=-1;if(i)for(let v=0;v<f.length;v++){let y=f[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(m=v),y.route.id){let{loaderData:x,errors:w}=i,k=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!w||w[y.route.id]===void 0);if(y.route.lazy||k){g=!0,m>=0?f=f.slice(0,m+1):f=[f[0]];break}}}let h=i&&r?(v,y)=>{var x,w;r(v,{location:i.location,params:((w=(x=i.matches)==null?void 0:x[0])==null?void 0:w.params)??{},unstable_pattern:Gx(i.matches),errorInfo:y})}:void 0;return f.reduceRight((v,y,x)=>{let w,k=!1,N=null,C=null;i&&(w=d&&y.route.id?d[y.route.id]:void 0,N=y.route.errorElement||ab,g&&(m<0&&x===0?(wp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,C=null):m===x&&(k=!0,C=y.route.hydrateFallbackElement||null)));let A=a.concat(f.slice(0,x+1)),q=()=>{let L;return w?L=N:k?L=C:y.route.Component?L=R.createElement(y.route.Component,null):y.route.element?L=y.route.element:L=v,R.createElement(ib,{match:y,routeContext:{outlet:v,matches:A,isDataRoute:i!=null},children:L})};return i&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?R.createElement(_p,{location:i.location,revalidation:i.revalidation,component:N,error:w,children:q(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):q()},null)}function Sf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cb(n){let a=R.useContext(qa);return Qt(a,Sf(n)),a}function ob(n){let a=R.useContext(rc);return Qt(a,Sf(n)),a}function sb(n){let a=R.useContext(on);return Qt(a,Sf(n)),a}function _f(n){let a=sb(n),i=a.matches[a.matches.length-1];return Qt(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function fb(){return _f("useRouteId")}function db(){var r;let n=R.useContext(bf),a=ob("useRouteError"),i=_f("useRouteError");return n!==void 0?n:(r=a.errors)==null?void 0:r[i]}function hb(){let{router:n}=cb("useNavigate"),a=_f("useNavigate"),i=R.useRef(!1);return bp(()=>{i.current=!0}),R.useCallback(async(o,f={})=>{cn(i.current,xp),i.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:a,...f}))},[n,a])}var ug={};function wp(n,a,i){!a&&!ug[n]&&(ug[n]=!0,cn(!1,i))}R.memo(mb);function mb({routes:n,future:a,state:i,onError:r}){return Sp(n,void 0,i,r,a)}function gb(n){return eb(n.context)}function Ul(n){Qt(!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 pb({basename:n="/",children:a=null,location:i,navigationType:r="POP",navigator:o,static:f=!1,unstable_useTransitions:d}){Qt(!ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),m=R.useMemo(()=>({basename:g,navigator:o,static:f,unstable_useTransitions:d,future:{}}),[g,o,f,d]);typeof i=="string"&&(i=Ba(i));let{pathname:h="/",search:v="",hash:y="",state:x=null,key:w="default"}=i,k=R.useMemo(()=>{let N=Hn(h,g);return N==null?null:{location:{pathname:N,search:v,hash:y,state:x,key:w},navigationType:r}},[g,h,v,y,x,w,r]);return cn(k!=null,`<Router basename="${g}"> is not able to match the URL "${h}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:R.createElement($e.Provider,{value:m},R.createElement(li.Provider,{children:a,value:k}))}function yb({children:n,location:a}){return nb(Ps(n),a)}function Ps(n,a=[]){let i=[];return R.Children.forEach(n,(r,o)=>{if(!R.isValidElement(r))return;let f=[...a,o];if(r.type===R.Fragment){i.push.apply(i,Ps(r.props.children,f));return}Qt(r.type===Ul,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=Ps(r.props.children,f)),i.push(d)}),i}var Lr="get",kr="application/x-www-form-urlencoded";function cc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function vb(n){return cc(n)&&n.tagName.toLowerCase()==="button"}function xb(n){return cc(n)&&n.tagName.toLowerCase()==="form"}function bb(n){return cc(n)&&n.tagName.toLowerCase()==="input"}function Sb(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function _b(n,a){return n.button===0&&(!a||a==="_self")&&!Sb(n)}var Ar=null;function wb(){if(Ar===null)try{new FormData(document.createElement("form"),0),Ar=!1}catch{Ar=!0}return Ar}var Tb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function js(n){return n!=null&&!Tb.has(n)?(cn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${kr}"`),null):n}function Mb(n,a){let i,r,o,f,d;if(xb(n)){let g=n.getAttribute("action");r=g?Hn(g,a):null,i=n.getAttribute("method")||Lr,o=js(n.getAttribute("enctype"))||kr,f=new FormData(n)}else if(vb(n)||bb(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||g.getAttribute("action");if(r=m?Hn(m,a):null,i=n.getAttribute("formmethod")||g.getAttribute("method")||Lr,o=js(n.getAttribute("formenctype"))||js(g.getAttribute("enctype"))||kr,f=new FormData(g,n),!wb()){let{name:h,type:v,value:y}=n;if(v==="image"){let x=h?`${h}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else h&&f.append(h,y)}}else{if(cc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Lr,r=null,o=kr,d=n}return f&&o==="text/plain"&&(d=f,f=void 0),{action:r,method:i.toLowerCase(),encType:o,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function wf(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Eb(n,a,i,r){let o=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:a&&Hn(o.pathname,a)==="/"?o.pathname=`${a.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Ab(n,a){if(n.id in a)return a[n.id];try{let i=await import(n.module);return a[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Cb(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function zb(n,a,i){let r=await Promise.all(n.map(async o=>{let f=a.routes[o.route.id];if(f){let d=await Ab(f,i);return d.links?d.links():[]}return[]}));return Ob(r.flat(1).filter(Cb).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function ig(n,a,i,r,o,f){let d=(m,h)=>i[h]?m.route.id!==i[h].route.id:!0,g=(m,h)=>{var v;return i[h].pathname!==m.pathname||((v=i[h].route.path)==null?void 0:v.endsWith("*"))&&i[h].params["*"]!==m.params["*"]};return f==="assets"?a.filter((m,h)=>d(m,h)||g(m,h)):f==="data"?a.filter((m,h)=>{var y;let v=r.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(d(m,h)||g(m,h))return!0;if(m.route.shouldRevalidate){let x=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((y=i[0])==null?void 0:y.params)||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Nb(n,a,{includeHydrateFallback:i}={}){return Db(n.map(r=>{let o=a.routes[r.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function Db(n){return[...new Set(n)]}function Rb(n){let a={},i=Object.keys(n).sort();for(let r of i)a[r]=n[r];return a}function Ob(n,a){let i=new Set;return new Set(a),n.reduce((r,o)=>{let f=JSON.stringify(Rb(o));return i.has(f)||(i.add(f),r.push({key:f,link:o})),r},[])}function Tp(){let n=R.useContext(qa);return wf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Ub(){let n=R.useContext(rc);return wf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Tf=R.createContext(void 0);Tf.displayName="FrameworkContext";function Mp(){let n=R.useContext(Tf);return wf(n,"You must render this element inside a <HydratedRouter> element"),n}function jb(n,a){let i=R.useContext(Tf),[r,o]=R.useState(!1),[f,d]=R.useState(!1),{onFocus:g,onBlur:m,onMouseEnter:h,onMouseLeave:v,onTouchStart:y}=a,x=R.useRef(null);R.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let N=A=>{A.forEach(q=>{d(q.isIntersecting)})},C=new IntersectionObserver(N,{threshold:.5});return x.current&&C.observe(x.current),()=>{C.disconnect()}}},[n]),R.useEffect(()=>{if(r){let N=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(N)}}},[r]);let w=()=>{o(!0)},k=()=>{o(!1),d(!1)};return i?n!=="intent"?[f,x,{}]:[f,x,{onFocus:ku(g,w),onBlur:ku(m,k),onMouseEnter:ku(h,w),onMouseLeave:ku(v,k),onTouchStart:ku(y,w)}]:[!1,x,{}]}function ku(n,a){return i=>{n&&n(i),i.defaultPrevented||a(i)}}function Hb({page:n,...a}){let{router:i}=Tp(),r=R.useMemo(()=>op(i.routes,n,i.basename),[i.routes,n,i.basename]);return r?R.createElement(kb,{page:n,matches:r,...a}):null}function Lb(n){let{manifest:a,routeModules:i}=Mp(),[r,o]=R.useState([]);return R.useEffect(()=>{let f=!1;return zb(n,a,i).then(d=>{f||o(d)}),()=>{f=!0}},[n,a,i]),r}function kb({page:n,matches:a,...i}){let r=ql(),{future:o,manifest:f,routeModules:d}=Mp(),{basename:g}=Tp(),{loaderData:m,matches:h}=Ub(),v=R.useMemo(()=>ig(n,a,h,f,r,"data"),[n,a,h,f,r]),y=R.useMemo(()=>ig(n,a,h,f,r,"assets"),[n,a,h,f,r]),x=R.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let N=new Set,C=!1;if(a.forEach(q=>{var J;let L=f.routes[q.route.id];!L||!L.hasLoader||(!v.some(nt=>nt.route.id===q.route.id)&&q.route.id in m&&((J=d[q.route.id])!=null&&J.shouldRevalidate)||L.hasClientLoader?C=!0:N.add(q.route.id))}),N.size===0)return[];let A=Eb(n,g,o.unstable_trailingSlashAwareDataRequests,"data");return C&&N.size>0&&A.searchParams.set("_routes",a.filter(q=>N.has(q.route.id)).map(q=>q.route.id).join(",")),[A.pathname+A.search]},[g,o.unstable_trailingSlashAwareDataRequests,m,r,f,v,a,n,d]),w=R.useMemo(()=>Nb(y,f),[y,f]),k=Lb(y);return R.createElement(R.Fragment,null,x.map(N=>R.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...i})),w.map(N=>R.createElement("link",{key:N,rel:"modulepreload",href:N,...i})),k.map(({key:N,link:C})=>R.createElement("link",{key:N,nonce:i.nonce,...C,crossOrigin:C.crossOrigin??i.crossOrigin})))}function Yb(...n){return a=>{n.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var Bb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Bb&&(window.__reactRouterVersion="7.13.0")}catch{}function qb({basename:n,children:a,unstable_useTransitions:i,window:r}){let o=R.useRef();o.current==null&&(o.current=yx({window:r,v5Compat:!0}));let f=o.current,[d,g]=R.useState({action:f.action,location:f.location}),m=R.useCallback(h=>{i===!1?g(h):R.startTransition(()=>g(h))},[i]);return R.useLayoutEffect(()=>f.listen(m),[f,m]),R.createElement(pb,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:i})}var Ep=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ap=R.forwardRef(function({onClick:a,discover:i="render",prefetch:r="none",relative:o,reloadDocument:f,replace:d,state:g,target:m,to:h,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x,...w},k){let{basename:N,unstable_useTransitions:C}=R.useContext($e),A=typeof h=="string"&&Ep.test(h),q=gp(h,N);h=q.to;let L=Wx(h,{relative:o}),[J,nt,V]=jb(r,w),K=Vb(h,{replace:d,state:g,target:m,preventScrollReset:v,relative:o,viewTransition:y,unstable_defaultShouldRevalidate:x,unstable_useTransitions:C});function st(vt){a&&a(vt),vt.defaultPrevented||K(vt)}let dt=R.createElement("a",{...w,...V,href:q.absoluteURL||L,onClick:q.isExternal||f?a:st,ref:Yb(k,nt),target:m,"data-discover":!A&&i==="render"?"true":void 0});return J&&!A?R.createElement(R.Fragment,null,dt,R.createElement(Hb,{page:L})):dt});Ap.displayName="Link";var Cp=R.forwardRef(function({"aria-current":a="page",caseSensitive:i=!1,className:r="",end:o=!1,style:f,to:d,viewTransition:g,children:m,...h},v){let y=ui(d,{relative:h.relative}),x=ql(),w=R.useContext(rc),{navigator:k,basename:N}=R.useContext($e),C=w!=null&&Jb(y)&&g===!0,A=k.encodeLocation?k.encodeLocation(y).pathname:y.pathname,q=x.pathname,L=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(q=q.toLowerCase(),L=L?L.toLowerCase():null,A=A.toLowerCase()),L&&N&&(L=Hn(L,N)||L);const J=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let nt=q===A||!o&&q.startsWith(A)&&q.charAt(J)==="/",V=L!=null&&(L===A||!o&&L.startsWith(A)&&L.charAt(A.length)==="/"),K={isActive:nt,isPending:V,isTransitioning:C},st=nt?a:void 0,dt;typeof r=="function"?dt=r(K):dt=[r,nt?"active":null,V?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let vt=typeof f=="function"?f(K):f;return R.createElement(Ap,{...h,"aria-current":st,className:dt,ref:v,style:vt,to:d,viewTransition:g},typeof m=="function"?m(K):m)});Cp.displayName="NavLink";var Gb=R.forwardRef(({discover:n="render",fetcherKey:a,navigate:i,reloadDocument:r,replace:o,state:f,method:d=Lr,action:g,onSubmit:m,relative:h,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x,...w},k)=>{let{unstable_useTransitions:N}=R.useContext($e),C=$b(),A=Kb(g,{relative:h}),q=d.toLowerCase()==="get"?"get":"post",L=typeof g=="string"&&Ep.test(g),J=nt=>{if(m&&m(nt),nt.defaultPrevented)return;nt.preventDefault();let V=nt.nativeEvent.submitter,K=(V==null?void 0:V.getAttribute("formmethod"))||d,st=()=>C(V||nt.currentTarget,{fetcherKey:a,method:K,navigate:i,replace:o,state:f,relative:h,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x});N&&i!==!1?R.startTransition(()=>st()):st()};return R.createElement("form",{ref:k,method:q,action:A,onSubmit:r?m:J,...w,"data-discover":!L&&n==="render"?"true":void 0})});Gb.displayName="Form";function Xb(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zp(n){let a=R.useContext(qa);return Qt(a,Xb(n)),a}function Vb(n,{target:a,replace:i,state:r,preventScrollReset:o,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:g,unstable_useTransitions:m}={}){let h=Ix(),v=ql(),y=ui(n,{relative:f});return R.useCallback(x=>{if(_b(x,a)){x.preventDefault();let w=i!==void 0?i:Fu(v)===Fu(y),k=()=>h(n,{replace:w,state:r,preventScrollReset:o,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:g});m?R.startTransition(()=>k()):k()}},[v,h,y,i,r,a,n,o,f,d,g,m])}var Qb=0,Zb=()=>`__${String(++Qb)}__`;function $b(){let{router:n}=zp("useSubmit"),{basename:a}=R.useContext($e),i=fb(),r=n.fetch,o=n.navigate;return R.useCallback(async(f,d={})=>{let{action:g,method:m,encType:h,formData:v,body:y}=Mb(f,a);if(d.navigate===!1){let x=d.fetcherKey||Zb();await r(x,i,d.action||g,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:y,formMethod:d.method||m,formEncType:d.encType||h,flushSync:d.flushSync})}else await o(d.action||g,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:y,formMethod:d.method||m,formEncType:d.encType||h,replace:d.replace,state:d.state,fromRouteId:i,flushSync:d.flushSync,viewTransition:d.viewTransition})},[r,o,a,i])}function Kb(n,{relative:a}={}){let{basename:i}=R.useContext($e),r=R.useContext(on);Qt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),f={...ui(n||".",{relative:a})},d=ql();if(n==null){f.search=d.search;let g=new URLSearchParams(f.search),m=g.getAll("index");if(m.some(v=>v==="")){g.delete("index"),m.filter(y=>y).forEach(y=>g.append("index",y));let v=g.toString();f.search=v?`?${v}`:""}}return(!n||n===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:jn([i,f.pathname])),Fu(f)}function Jb(n,{relative:a}={}){let i=R.useContext(yp);Qt(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=zp("useViewTransitionState"),o=ui(n,{relative:a});if(!i.isTransitioning)return!1;let f=Hn(i.currentLocation.pathname,r)||i.currentLocation.pathname,d=Hn(i.nextLocation.pathname,r)||i.nextLocation.pathname;return Vr(o.pathname,d)!=null||Vr(o.pathname,f)!=null}/**
61
+ * @license lucide-react v0.469.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Fb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Np=(...n)=>n.filter((a,i,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===i).join(" ").trim();/**
66
+ * @license lucide-react v0.469.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */var Wb={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"};/**
71
+ * @license lucide-react v0.469.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Ib=R.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:d,...g},m)=>R.createElement("svg",{ref:m,...Wb,width:a,height:a,stroke:n,strokeWidth:r?Number(i)*24/Number(a):i,className:Np("lucide",o),...g},[...d.map(([h,v])=>R.createElement(h,v)),...Array.isArray(f)?f:[f]]));/**
76
+ * @license lucide-react v0.469.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const he=(n,a)=>{const i=R.forwardRef(({className:r,...o},f)=>R.createElement(Ib,{ref:f,iconNode:a,className:Np(`lucide-${Fb(n)}`,r),...o}));return i.displayName=`${n}`,i};/**
81
+ * @license lucide-react v0.469.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const Pb=he("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
86
+ * @license lucide-react v0.469.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const t2=he("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
91
+ * @license lucide-react v0.469.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Dp=he("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
96
+ * @license lucide-react v0.469.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const e2=he("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
101
+ * @license lucide-react v0.469.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const n2=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
106
+ * @license lucide-react v0.469.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const l2=he("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
111
+ * @license lucide-react v0.469.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Rp=he("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
116
+ * @license lucide-react v0.469.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const a2=he("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 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.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
121
+ * @license lucide-react v0.469.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const u2=he("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
126
+ * @license lucide-react v0.469.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const i2=he("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
131
+ * @license lucide-react v0.469.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const r2=he("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"}]]);/**
136
+ * @license lucide-react v0.469.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const c2=he("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
141
+ * @license lucide-react v0.469.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const o2=he("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
146
+ * @license lucide-react v0.469.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Op=he("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
151
+ * @license lucide-react v0.469.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const s2=he("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"}]]);/**
156
+ * @license lucide-react v0.469.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const f2=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function d2(){const[n,a]=R.useState(()=>typeof window>"u"?"dark":localStorage.getItem("causantic-theme")??"dark");R.useEffect(()=>{const r=document.documentElement;n==="light"?r.classList.add("light"):r.classList.remove("light"),localStorage.setItem("causantic-theme",n)},[n]);const i=R.useCallback(()=>{a(r=>r==="dark"?"light":"dark")},[]);return{theme:n,toggle:i}}function h2(){const{theme:n,toggle:a}=d2();return _.jsx("button",{onClick:a,className:"rounded-md p-2 hover:bg-muted transition-colors","aria-label":"Toggle theme",children:n==="dark"?_.jsx(s2,{className:"h-5 w-5"}):_.jsx(o2,{className:"h-5 w-5"})})}function Up(n){var a,i,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(i=Up(n[a]))&&(r&&(r+=" "),r+=i)}else for(i in n)n[i]&&(r&&(r+=" "),r+=i);return r}function jp(){for(var n,a,i=0,r="",o=arguments.length;i<o;i++)(n=arguments[i])&&(a=Up(n))&&(r&&(r+=" "),r+=a);return r}const Mf="-",m2=n=>{const a=p2(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{const g=d.split(Mf);return g[0]===""&&g.length!==1&&g.shift(),Hp(g,a)||g2(d)},getConflictingClassGroupIds:(d,g)=>{const m=i[d]||[];return g&&r[d]?[...m,...r[d]]:m}}},Hp=(n,a)=>{var d;if(n.length===0)return a.classGroupId;const i=n[0],r=a.nextPart.get(i),o=r?Hp(n.slice(1),r):void 0;if(o)return o;if(a.validators.length===0)return;const f=n.join(Mf);return(d=a.validators.find(({validator:g})=>g(f)))==null?void 0:d.classGroupId},rg=/^\[(.+)\]$/,g2=n=>{if(rg.test(n)){const a=rg.exec(n)[1],i=a==null?void 0:a.substring(0,a.indexOf(":"));if(i)return"arbitrary.."+i}},p2=n=>{const{theme:a,prefix:i}=n,r={nextPart:new Map,validators:[]};return v2(Object.entries(n.classGroups),i).forEach(([f,d])=>{tf(d,r,f,a)}),r},tf=(n,a,i,r)=>{n.forEach(o=>{if(typeof o=="string"){const f=o===""?a:cg(a,o);f.classGroupId=i;return}if(typeof o=="function"){if(y2(o)){tf(o(r),a,i,r);return}a.validators.push({validator:o,classGroupId:i});return}Object.entries(o).forEach(([f,d])=>{tf(d,cg(a,f),i,r)})})},cg=(n,a)=>{let i=n;return a.split(Mf).forEach(r=>{i.nextPart.has(r)||i.nextPart.set(r,{nextPart:new Map,validators:[]}),i=i.nextPart.get(r)}),i},y2=n=>n.isThemeGetter,v2=(n,a)=>a?n.map(([i,r])=>{const o=r.map(f=>typeof f=="string"?a+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,g])=>[a+d,g])):f);return[i,o]}):n,x2=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,i=new Map,r=new Map;const o=(f,d)=>{i.set(f,d),a++,a>n&&(a=0,r=i,i=new Map)};return{get(f){let d=i.get(f);if(d!==void 0)return d;if((d=r.get(f))!==void 0)return o(f,d),d},set(f,d){i.has(f)?i.set(f,d):o(f,d)}}},Lp="!",b2=n=>{const{separator:a,experimentalParseClassName:i}=n,r=a.length===1,o=a[0],f=a.length,d=g=>{const m=[];let h=0,v=0,y;for(let C=0;C<g.length;C++){let A=g[C];if(h===0){if(A===o&&(r||g.slice(C,C+f)===a)){m.push(g.slice(v,C)),v=C+f;continue}if(A==="/"){y=C;continue}}A==="["?h++:A==="]"&&h--}const x=m.length===0?g:g.substring(v),w=x.startsWith(Lp),k=w?x.substring(1):x,N=y&&y>v?y-v:void 0;return{modifiers:m,hasImportantModifier:w,baseClassName:k,maybePostfixModifierPosition:N}};return i?g=>i({className:g,parseClassName:d}):d},S2=n=>{if(n.length<=1)return n;const a=[];let i=[];return n.forEach(r=>{r[0]==="["?(a.push(...i.sort(),r),i=[]):i.push(r)}),a.push(...i.sort()),a},_2=n=>({cache:x2(n.cacheSize),parseClassName:b2(n),...m2(n)}),w2=/\s+/,T2=(n,a)=>{const{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:o}=a,f=[],d=n.trim().split(w2);let g="";for(let m=d.length-1;m>=0;m-=1){const h=d[m],{modifiers:v,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:w}=i(h);let k=!!w,N=r(k?x.substring(0,w):x);if(!N){if(!k){g=h+(g.length>0?" "+g:g);continue}if(N=r(x),!N){g=h+(g.length>0?" "+g:g);continue}k=!1}const C=S2(v).join(":"),A=y?C+Lp:C,q=A+N;if(f.includes(q))continue;f.push(q);const L=o(N,k);for(let J=0;J<L.length;++J){const nt=L[J];f.push(A+nt)}g=h+(g.length>0?" "+g:g)}return g};function M2(){let n=0,a,i,r="";for(;n<arguments.length;)(a=arguments[n++])&&(i=kp(a))&&(r&&(r+=" "),r+=i);return r}const kp=n=>{if(typeof n=="string")return n;let a,i="";for(let r=0;r<n.length;r++)n[r]&&(a=kp(n[r]))&&(i&&(i+=" "),i+=a);return i};function E2(n,...a){let i,r,o,f=d;function d(m){const h=a.reduce((v,y)=>y(v),n());return i=_2(h),r=i.cache.get,o=i.cache.set,f=g,g(m)}function g(m){const h=r(m);if(h)return h;const v=T2(m,i);return o(m,v),v}return function(){return f(M2.apply(null,arguments))}}const Gt=n=>{const a=i=>i[n]||[];return a.isThemeGetter=!0,a},Yp=/^\[(?:([a-z-]+):)?(.+)\]$/i,A2=/^\d+\/\d+$/,C2=new Set(["px","full","screen"]),z2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,D2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nn=n=>Ra(n)||C2.has(n)||A2.test(n),hl=n=>Ga(n,"length",q2),Ra=n=>!!n&&!Number.isNaN(Number(n)),Hs=n=>Ga(n,"number",Ra),Yu=n=>!!n&&Number.isInteger(Number(n)),U2=n=>n.endsWith("%")&&Ra(n.slice(0,-1)),bt=n=>Yp.test(n),ml=n=>z2.test(n),j2=new Set(["length","size","percentage"]),H2=n=>Ga(n,j2,Bp),L2=n=>Ga(n,"position",Bp),k2=new Set(["image","url"]),Y2=n=>Ga(n,k2,X2),B2=n=>Ga(n,"",G2),Bu=()=>!0,Ga=(n,a,i)=>{const r=Yp.exec(n);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):i(r[2]):!1},q2=n=>N2.test(n)&&!D2.test(n),Bp=()=>!1,G2=n=>R2.test(n),X2=n=>O2.test(n),V2=()=>{const n=Gt("colors"),a=Gt("spacing"),i=Gt("blur"),r=Gt("brightness"),o=Gt("borderColor"),f=Gt("borderRadius"),d=Gt("borderSpacing"),g=Gt("borderWidth"),m=Gt("contrast"),h=Gt("grayscale"),v=Gt("hueRotate"),y=Gt("invert"),x=Gt("gap"),w=Gt("gradientColorStops"),k=Gt("gradientColorStopPositions"),N=Gt("inset"),C=Gt("margin"),A=Gt("opacity"),q=Gt("padding"),L=Gt("saturate"),J=Gt("scale"),nt=Gt("sepia"),V=Gt("skew"),K=Gt("space"),st=Gt("translate"),dt=()=>["auto","contain","none"],vt=()=>["auto","hidden","clip","visible","scroll"],_t=()=>["auto",bt,a],X=()=>[bt,a],ht=()=>["",Nn,hl],D=()=>["auto",Ra,bt],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],at=()=>["","0",bt],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[Ra,bt];return{cacheSize:500,separator:":",theme:{colors:[Bu],spacing:[Nn,hl],blur:["none","",ml,bt],brightness:S(),borderColor:[n],borderRadius:["none","","full",ml,bt],borderSpacing:X(),borderWidth:ht(),contrast:S(),grayscale:at(),hueRotate:S(),invert:at(),gap:X(),gradientColorStops:[n],gradientColorStopPositions:[U2,hl],inset:_t(),margin:_t(),opacity:S(),padding:X(),saturate:S(),scale:S(),sepia:at(),skew:S(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",bt]}],container:["container"],columns:[{columns:[ml]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),bt]}],overflow:[{overflow:vt()}],"overflow-x":[{"overflow-x":vt()}],"overflow-y":[{"overflow-y":vt()}],overscroll:[{overscroll:dt()}],"overscroll-x":[{"overscroll-x":dt()}],"overscroll-y":[{"overscroll-y":dt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-x":[{"inset-x":[N]}],"inset-y":[{"inset-y":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yu,bt]}],basis:[{basis:_t()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",bt]}],grow:[{grow:at()}],shrink:[{shrink:at()}],order:[{order:["first","last","none",Yu,bt]}],"grid-cols":[{"grid-cols":[Bu]}],"col-start-end":[{col:["auto",{span:["full",Yu,bt]},bt]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Bu]}],"row-start-end":[{row:["auto",{span:[Yu,bt]},bt]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",bt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",bt]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[q]}],px:[{px:[q]}],py:[{py:[q]}],ps:[{ps:[q]}],pe:[{pe:[q]}],pt:[{pt:[q]}],pr:[{pr:[q]}],pb:[{pb:[q]}],pl:[{pl:[q]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",bt,a]}],"min-w":[{"min-w":[bt,a,"min","max","fit"]}],"max-w":[{"max-w":[bt,a,"none","full","min","max","fit","prose",{screen:[ml]},ml]}],h:[{h:[bt,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[bt,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[bt,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[bt,a,"auto","min","max","fit"]}],"font-size":[{text:["base",ml,hl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hs]}],"font-family":[{font:[Bu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",bt]}],"line-clamp":[{"line-clamp":["none",Ra,Hs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Nn,bt]}],"list-image":[{"list-image":["none",bt]}],"list-style-type":[{list:["none","disc","decimal",bt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Nn,hl]}],"underline-offset":[{"underline-offset":["auto",Nn,bt]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",bt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",bt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),L2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",H2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Y2]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:M()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[Nn,bt]}],"outline-w":[{outline:[Nn,hl]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:ht()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Nn,hl]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",ml,B2]}],"shadow-color":[{shadow:[Bu]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[r]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",ml,bt]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[y]}],saturate:[{saturate:[L]}],sepia:[{sepia:[nt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",bt]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",bt]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",bt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[Yu,bt]}],"translate-x":[{"translate-x":[st]}],"translate-y":[{"translate-y":[st]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",bt]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",bt]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",bt]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Nn,hl,Hs]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Q2=E2(V2);function tn(...n){return Q2(jp(n))}const Z2=[{to:"/",icon:r2,label:"Overview"},{to:"/timeline",icon:Rp,label:"Timeline"},{to:"/clusters",icon:Dp,label:"Clusters"},{to:"/search",icon:Op,label:"Search"},{to:"/projects",icon:a2,label:"Projects"}];function $2(){const[n,a]=R.useState(!1);return _.jsxs("div",{className:"flex h-screen overflow-hidden",children:[n&&_.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 lg:hidden",onClick:()=>a(!1)}),_.jsxs("aside",{className:tn("fixed inset-y-0 left-0 z-50 flex w-64 flex-col border-r border-border bg-card transition-transform lg:static lg:translate-x-0",n?"translate-x-0":"-translate-x-full"),children:[_.jsxs("div",{className:"flex h-16 items-center gap-2 border-b border-border px-6",children:[_.jsx(e2,{className:"h-6 w-6 text-accent"}),_.jsx("span",{className:"text-lg font-bold",children:"Causantic"}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Dashboard"})]}),_.jsx("nav",{className:"flex-1 space-y-1 p-4",children:Z2.map(i=>_.jsxs(Cp,{to:i.to,end:i.to==="/",onClick:()=>a(!1),className:({isActive:r})=>tn("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",r?"bg-accent/10 text-accent":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[_.jsx(i.icon,{className:"h-4 w-4"}),i.label]},i.to))}),_.jsx("div",{className:"border-t border-border p-4 text-xs text-muted-foreground",children:"Causantic"})]}),_.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[_.jsxs("header",{className:"flex h-16 items-center justify-between border-b border-border px-6",children:[_.jsx("button",{className:"rounded-md p-2 hover:bg-muted lg:hidden",onClick:()=>a(!0),children:_.jsx(c2,{className:"h-5 w-5"})}),_.jsx("div",{className:"flex-1"}),_.jsx(h2,{})]}),_.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:_.jsx(gb,{})})]})]})}const og=new Map,K2=3e4;function Pe(n){const[a,i]=R.useState(null),[r,o]=R.useState(!0),[f,d]=R.useState(null),g=R.useRef(null),m=R.useCallback(()=>{var y;if(!n){o(!1);return}const h=og.get(n);if(h&&Date.now()-h.ts<K2){i(h.data),o(!1);return}(y=g.current)==null||y.abort();const v=new AbortController;g.current=v,o(!0),d(null),fetch(n,{signal:v.signal}).then(x=>{if(!x.ok)throw new Error(`HTTP ${x.status}`);return x.json()}).then(x=>{og.set(n,{data:x,ts:Date.now()}),i(x),o(!1)}).catch(x=>{x.name!=="AbortError"&&(d(x.message),o(!1))})},[n]);return R.useEffect(()=>(m(),()=>{var h;return(h=g.current)==null?void 0:h.abort()}),[m]),{data:a,loading:r,error:f,refetch:m}}function ii({className:n}){return _.jsx("div",{className:tn("flex items-center justify-center p-8",n),children:_.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted border-t-accent"})})}function Wu({className:n,...a}){return _.jsx("div",{className:tn("rounded-lg border border-border bg-card text-card-foreground shadow-sm",n),...a})}function ef({className:n,...a}){return _.jsx("div",{className:tn("flex flex-col space-y-1.5 p-6",n),...a})}function nf({className:n,...a}){return _.jsx("h3",{className:tn("text-lg font-semibold leading-none tracking-tight",n),...a})}function J2({className:n,...a}){return _.jsx("p",{className:tn("text-sm text-muted-foreground",n),...a})}function Iu({className:n,...a}){return _.jsx("div",{className:tn("p-6 pt-0",n),...a})}function Cr({label:n,value:a,icon:i}){const[r,o]=R.useState(0);return R.useEffect(()=>{if(a===0)return;const f=600,d=30,g=a/d;let m=0;const h=setInterval(()=>{m+=g,m>=a?(o(a),clearInterval(h)):o(Math.floor(m))},f/d);return()=>clearInterval(h)},[a]),_.jsx(Wu,{children:_.jsxs(Iu,{className:"flex items-center gap-4 p-6",children:[_.jsx("div",{className:"rounded-lg bg-accent/10 p-3 text-accent",children:i}),_.jsxs("div",{children:[_.jsx("p",{className:"text-sm text-muted-foreground",children:n}),_.jsx("p",{className:"text-3xl font-bold tabular-nums",children:r.toLocaleString()})]})]})})}function Yr(n,a){return n==null||a==null?NaN:n<a?-1:n>a?1:n>=a?0:NaN}function F2(n,a){return n==null||a==null?NaN:a<n?-1:a>n?1:a>=n?0:NaN}function Ef(n){let a,i,r;n.length!==2?(a=Yr,i=(g,m)=>Yr(n(g),m),r=(g,m)=>n(g)-m):(a=n===Yr||n===F2?n:W2,i=n,r=n);function o(g,m,h=0,v=g.length){if(h<v){if(a(m,m)!==0)return v;do{const y=h+v>>>1;i(g[y],m)<0?h=y+1:v=y}while(h<v)}return h}function f(g,m,h=0,v=g.length){if(h<v){if(a(m,m)!==0)return v;do{const y=h+v>>>1;i(g[y],m)<=0?h=y+1:v=y}while(h<v)}return h}function d(g,m,h=0,v=g.length){const y=o(g,m,h,v-1);return y>h&&r(g[y-1],m)>-r(g[y],m)?y-1:y}return{left:o,center:d,right:f}}function W2(){return 0}function I2(n){return n===null?NaN:+n}const P2=Ef(Yr),tS=P2.right;Ef(I2).center;function eS(n,a){let i,r;if(a===void 0)for(const o of n)o!=null&&(i===void 0?o>=o&&(i=r=o):(i>o&&(i=o),r<o&&(r=o)));else{let o=-1;for(let f of n)(f=a(f,++o,n))!=null&&(i===void 0?f>=f&&(i=r=f):(i>f&&(i=f),r<f&&(r=f)))}return[i,r]}class sg extends Map{constructor(a,i=aS){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),a!=null)for(const[r,o]of a)this.set(r,o)}get(a){return super.get(fg(this,a))}has(a){return super.has(fg(this,a))}set(a,i){return super.set(nS(this,a),i)}delete(a){return super.delete(lS(this,a))}}function fg({_intern:n,_key:a},i){const r=a(i);return n.has(r)?n.get(r):i}function nS({_intern:n,_key:a},i){const r=a(i);return n.has(r)?n.get(r):(n.set(r,i),i)}function lS({_intern:n,_key:a},i){const r=a(i);return n.has(r)&&(i=n.get(r),n.delete(r)),i}function aS(n){return n!==null&&typeof n=="object"?n.valueOf():n}const uS=Math.sqrt(50),iS=Math.sqrt(10),rS=Math.sqrt(2);function Qr(n,a,i){const r=(a-n)/Math.max(0,i),o=Math.floor(Math.log10(r)),f=r/Math.pow(10,o),d=f>=uS?10:f>=iS?5:f>=rS?2:1;let g,m,h;return o<0?(h=Math.pow(10,-o)/d,g=Math.round(n*h),m=Math.round(a*h),g/h<n&&++g,m/h>a&&--m,h=-h):(h=Math.pow(10,o)*d,g=Math.round(n/h),m=Math.round(a/h),g*h<n&&++g,m*h>a&&--m),m<g&&.5<=i&&i<2?Qr(n,a,i*2):[g,m,h]}function cS(n,a,i){if(a=+a,n=+n,i=+i,!(i>0))return[];if(n===a)return[n];const r=a<n,[o,f,d]=r?Qr(a,n,i):Qr(n,a,i);if(!(f>=o))return[];const g=f-o+1,m=new Array(g);if(r)if(d<0)for(let h=0;h<g;++h)m[h]=(f-h)/-d;else for(let h=0;h<g;++h)m[h]=(f-h)*d;else if(d<0)for(let h=0;h<g;++h)m[h]=(o+h)/-d;else for(let h=0;h<g;++h)m[h]=(o+h)*d;return m}function lf(n,a,i){return a=+a,n=+n,i=+i,Qr(n,a,i)[2]}function af(n,a,i){a=+a,n=+n,i=+i;const r=a<n,o=r?lf(a,n,i):lf(n,a,i);return(r?-1:1)*(o<0?1/-o:o)}function oS(n,a){let i;if(a===void 0)for(const r of n)r!=null&&(i<r||i===void 0&&r>=r)&&(i=r);else{let r=-1;for(let o of n)(o=a(o,++r,n))!=null&&(i<o||i===void 0&&o>=o)&&(i=o)}return i}function sS(n,a,i){n=+n,a=+a,i=(o=arguments.length)<2?(a=n,n=0,1):o<3?1:+i;for(var r=-1,o=Math.max(0,Math.ceil((a-n)/i))|0,f=new Array(o);++r<o;)f[r]=n+r*i;return f}function fS(n){return n}var Ls=1,ks=2,uf=3,Zu=4,dg=1e-6;function dS(n){return"translate("+n+",0)"}function hS(n){return"translate(0,"+n+")"}function mS(n){return a=>+n(a)}function gS(n,a){return a=Math.max(0,n.bandwidth()-a*2)/2,n.round()&&(a=Math.round(a)),i=>+n(i)+a}function pS(){return!this.__axis}function qp(n,a){var i=[],r=null,o=null,f=6,d=6,g=3,m=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=n===Ls||n===Zu?-1:1,v=n===Zu||n===ks?"x":"y",y=n===Ls||n===uf?dS:hS;function x(w){var k=r??(a.ticks?a.ticks.apply(a,i):a.domain()),N=o??(a.tickFormat?a.tickFormat.apply(a,i):fS),C=Math.max(f,0)+g,A=a.range(),q=+A[0]+m,L=+A[A.length-1]+m,J=(a.bandwidth?gS:mS)(a.copy(),m),nt=w.selection?w.selection():w,V=nt.selectAll(".domain").data([null]),K=nt.selectAll(".tick").data(k,a).order(),st=K.exit(),dt=K.enter().append("g").attr("class","tick"),vt=K.select("line"),_t=K.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),K=K.merge(dt),vt=vt.merge(dt.append("line").attr("stroke","currentColor").attr(v+"2",h*f)),_t=_t.merge(dt.append("text").attr("fill","currentColor").attr(v,h*C).attr("dy",n===Ls?"0em":n===uf?"0.71em":"0.32em")),w!==nt&&(V=V.transition(w),K=K.transition(w),vt=vt.transition(w),_t=_t.transition(w),st=st.transition(w).attr("opacity",dg).attr("transform",function(X){return isFinite(X=J(X))?y(X+m):this.getAttribute("transform")}),dt.attr("opacity",dg).attr("transform",function(X){var ht=this.parentNode.__axis;return y((ht&&isFinite(ht=ht(X))?ht:J(X))+m)})),st.remove(),V.attr("d",n===Zu||n===ks?d?"M"+h*d+","+q+"H"+m+"V"+L+"H"+h*d:"M"+m+","+q+"V"+L:d?"M"+q+","+h*d+"V"+m+"H"+L+"V"+h*d:"M"+q+","+m+"H"+L),K.attr("opacity",1).attr("transform",function(X){return y(J(X)+m)}),vt.attr(v+"2",h*f),_t.attr(v,h*C).text(N),nt.filter(pS).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===ks?"start":n===Zu?"end":"middle"),nt.each(function(){this.__axis=J})}return x.scale=function(w){return arguments.length?(a=w,x):a},x.ticks=function(){return i=Array.from(arguments),x},x.tickArguments=function(w){return arguments.length?(i=w==null?[]:Array.from(w),x):i.slice()},x.tickValues=function(w){return arguments.length?(r=w==null?null:Array.from(w),x):r&&r.slice()},x.tickFormat=function(w){return arguments.length?(o=w,x):o},x.tickSize=function(w){return arguments.length?(f=d=+w,x):f},x.tickSizeInner=function(w){return arguments.length?(f=+w,x):f},x.tickSizeOuter=function(w){return arguments.length?(d=+w,x):d},x.tickPadding=function(w){return arguments.length?(g=+w,x):g},x.offset=function(w){return arguments.length?(m=+w,x):m},x}function Pu(n){return qp(uf,n)}function Gp(n){return qp(Zu,n)}var yS={value:()=>{}};function Af(){for(var n=0,a=arguments.length,i={},r;n<a;++n){if(!(r=arguments[n]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new Br(i)}function Br(n){this._=n}function vS(n,a){return n.trim().split(/^|\s+/).map(function(i){var r="",o=i.indexOf(".");if(o>=0&&(r=i.slice(o+1),i=i.slice(0,o)),i&&!a.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Br.prototype=Af.prototype={constructor:Br,on:function(n,a){var i=this._,r=vS(n+"",i),o,f=-1,d=r.length;if(arguments.length<2){for(;++f<d;)if((o=(n=r[f]).type)&&(o=xS(i[o],n.name)))return o;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++f<d;)if(o=(n=r[f]).type)i[o]=hg(i[o],n.name,a);else if(a==null)for(o in i)i[o]=hg(i[o],n.name,null);return this},copy:function(){var n={},a=this._;for(var i in a)n[i]=a[i].slice();return new Br(n)},call:function(n,a){if((o=arguments.length-2)>0)for(var i=new Array(o),r=0,o,f;r<o;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(f=this._[n],r=0,o=f.length;r<o;++r)f[r].value.apply(a,i)},apply:function(n,a,i){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var r=this._[n],o=0,f=r.length;o<f;++o)r[o].value.apply(a,i)}};function xS(n,a){for(var i=0,r=n.length,o;i<r;++i)if((o=n[i]).name===a)return o.value}function hg(n,a,i){for(var r=0,o=n.length;r<o;++r)if(n[r].name===a){n[r]=yS,n=n.slice(0,r).concat(n.slice(r+1));break}return i!=null&&n.push({name:a,value:i}),n}var rf="http://www.w3.org/1999/xhtml";const mg={svg:"http://www.w3.org/2000/svg",xhtml:rf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function oc(n){var a=n+="",i=a.indexOf(":");return i>=0&&(a=n.slice(0,i))!=="xmlns"&&(n=n.slice(i+1)),mg.hasOwnProperty(a)?{space:mg[a],local:n}:n}function bS(n){return function(){var a=this.ownerDocument,i=this.namespaceURI;return i===rf&&a.documentElement.namespaceURI===rf?a.createElement(n):a.createElementNS(i,n)}}function SS(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Xp(n){var a=oc(n);return(a.local?SS:bS)(a)}function _S(){}function Cf(n){return n==null?_S:function(){return this.querySelector(n)}}function wS(n){typeof n!="function"&&(n=Cf(n));for(var a=this._groups,i=a.length,r=new Array(i),o=0;o<i;++o)for(var f=a[o],d=f.length,g=r[o]=new Array(d),m,h,v=0;v<d;++v)(m=f[v])&&(h=n.call(m,m.__data__,v,f))&&("__data__"in m&&(h.__data__=m.__data__),g[v]=h);return new je(r,this._parents)}function TS(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function MS(){return[]}function Vp(n){return n==null?MS:function(){return this.querySelectorAll(n)}}function ES(n){return function(){return TS(n.apply(this,arguments))}}function AS(n){typeof n=="function"?n=ES(n):n=Vp(n);for(var a=this._groups,i=a.length,r=[],o=[],f=0;f<i;++f)for(var d=a[f],g=d.length,m,h=0;h<g;++h)(m=d[h])&&(r.push(n.call(m,m.__data__,h,d)),o.push(m));return new je(r,o)}function Qp(n){return function(){return this.matches(n)}}function Zp(n){return function(a){return a.matches(n)}}var CS=Array.prototype.find;function zS(n){return function(){return CS.call(this.children,n)}}function NS(){return this.firstElementChild}function DS(n){return this.select(n==null?NS:zS(typeof n=="function"?n:Zp(n)))}var RS=Array.prototype.filter;function OS(){return Array.from(this.children)}function US(n){return function(){return RS.call(this.children,n)}}function jS(n){return this.selectAll(n==null?OS:US(typeof n=="function"?n:Zp(n)))}function HS(n){typeof n!="function"&&(n=Qp(n));for(var a=this._groups,i=a.length,r=new Array(i),o=0;o<i;++o)for(var f=a[o],d=f.length,g=r[o]=[],m,h=0;h<d;++h)(m=f[h])&&n.call(m,m.__data__,h,f)&&g.push(m);return new je(r,this._parents)}function $p(n){return new Array(n.length)}function LS(){return new je(this._enter||this._groups.map($p),this._parents)}function Zr(n,a){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=a}Zr.prototype={constructor:Zr,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,a){return this._parent.insertBefore(n,a)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function kS(n){return function(){return n}}function YS(n,a,i,r,o,f){for(var d=0,g,m=a.length,h=f.length;d<h;++d)(g=a[d])?(g.__data__=f[d],r[d]=g):i[d]=new Zr(n,f[d]);for(;d<m;++d)(g=a[d])&&(o[d]=g)}function BS(n,a,i,r,o,f,d){var g,m,h=new Map,v=a.length,y=f.length,x=new Array(v),w;for(g=0;g<v;++g)(m=a[g])&&(x[g]=w=d.call(m,m.__data__,g,a)+"",h.has(w)?o[g]=m:h.set(w,m));for(g=0;g<y;++g)w=d.call(n,f[g],g,f)+"",(m=h.get(w))?(r[g]=m,m.__data__=f[g],h.delete(w)):i[g]=new Zr(n,f[g]);for(g=0;g<v;++g)(m=a[g])&&h.get(x[g])===m&&(o[g]=m)}function qS(n){return n.__data__}function GS(n,a){if(!arguments.length)return Array.from(this,qS);var i=a?BS:YS,r=this._parents,o=this._groups;typeof n!="function"&&(n=kS(n));for(var f=o.length,d=new Array(f),g=new Array(f),m=new Array(f),h=0;h<f;++h){var v=r[h],y=o[h],x=y.length,w=XS(n.call(v,v&&v.__data__,h,r)),k=w.length,N=g[h]=new Array(k),C=d[h]=new Array(k),A=m[h]=new Array(x);i(v,y,N,C,A,w,a);for(var q=0,L=0,J,nt;q<k;++q)if(J=N[q]){for(q>=L&&(L=q+1);!(nt=C[L])&&++L<k;);J._next=nt||null}}return d=new je(d,r),d._enter=g,d._exit=m,d}function XS(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function VS(){return new je(this._exit||this._groups.map($p),this._parents)}function QS(n,a,i){var r=this.enter(),o=this,f=this.exit();return typeof n=="function"?(r=n(r),r&&(r=r.selection())):r=r.append(n+""),a!=null&&(o=a(o),o&&(o=o.selection())),i==null?f.remove():i(f),r&&o?r.merge(o).order():o}function ZS(n){for(var a=n.selection?n.selection():n,i=this._groups,r=a._groups,o=i.length,f=r.length,d=Math.min(o,f),g=new Array(o),m=0;m<d;++m)for(var h=i[m],v=r[m],y=h.length,x=g[m]=new Array(y),w,k=0;k<y;++k)(w=h[k]||v[k])&&(x[k]=w);for(;m<o;++m)g[m]=i[m];return new je(g,this._parents)}function $S(){for(var n=this._groups,a=-1,i=n.length;++a<i;)for(var r=n[a],o=r.length-1,f=r[o],d;--o>=0;)(d=r[o])&&(f&&d.compareDocumentPosition(f)^4&&f.parentNode.insertBefore(d,f),f=d);return this}function KS(n){n||(n=JS);function a(y,x){return y&&x?n(y.__data__,x.__data__):!y-!x}for(var i=this._groups,r=i.length,o=new Array(r),f=0;f<r;++f){for(var d=i[f],g=d.length,m=o[f]=new Array(g),h,v=0;v<g;++v)(h=d[v])&&(m[v]=h);m.sort(a)}return new je(o,this._parents).order()}function JS(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}function FS(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function WS(){return Array.from(this)}function IS(){for(var n=this._groups,a=0,i=n.length;a<i;++a)for(var r=n[a],o=0,f=r.length;o<f;++o){var d=r[o];if(d)return d}return null}function PS(){let n=0;for(const a of this)++n;return n}function t_(){return!this.node()}function e_(n){for(var a=this._groups,i=0,r=a.length;i<r;++i)for(var o=a[i],f=0,d=o.length,g;f<d;++f)(g=o[f])&&n.call(g,g.__data__,f,o);return this}function n_(n){return function(){this.removeAttribute(n)}}function l_(n){return function(){this.removeAttributeNS(n.space,n.local)}}function a_(n,a){return function(){this.setAttribute(n,a)}}function u_(n,a){return function(){this.setAttributeNS(n.space,n.local,a)}}function i_(n,a){return function(){var i=a.apply(this,arguments);i==null?this.removeAttribute(n):this.setAttribute(n,i)}}function r_(n,a){return function(){var i=a.apply(this,arguments);i==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,i)}}function c_(n,a){var i=oc(n);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((a==null?i.local?l_:n_:typeof a=="function"?i.local?r_:i_:i.local?u_:a_)(i,a))}function Kp(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function o_(n){return function(){this.style.removeProperty(n)}}function s_(n,a,i){return function(){this.style.setProperty(n,a,i)}}function f_(n,a,i){return function(){var r=a.apply(this,arguments);r==null?this.style.removeProperty(n):this.style.setProperty(n,r,i)}}function d_(n,a,i){return arguments.length>1?this.each((a==null?o_:typeof a=="function"?f_:s_)(n,a,i??"")):Ua(this.node(),n)}function Ua(n,a){return n.style.getPropertyValue(a)||Kp(n).getComputedStyle(n,null).getPropertyValue(a)}function h_(n){return function(){delete this[n]}}function m_(n,a){return function(){this[n]=a}}function g_(n,a){return function(){var i=a.apply(this,arguments);i==null?delete this[n]:this[n]=i}}function p_(n,a){return arguments.length>1?this.each((a==null?h_:typeof a=="function"?g_:m_)(n,a)):this.node()[n]}function Jp(n){return n.trim().split(/^|\s+/)}function zf(n){return n.classList||new Fp(n)}function Fp(n){this._node=n,this._names=Jp(n.getAttribute("class")||"")}Fp.prototype={add:function(n){var a=this._names.indexOf(n);a<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var a=this._names.indexOf(n);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function Wp(n,a){for(var i=zf(n),r=-1,o=a.length;++r<o;)i.add(a[r])}function Ip(n,a){for(var i=zf(n),r=-1,o=a.length;++r<o;)i.remove(a[r])}function y_(n){return function(){Wp(this,n)}}function v_(n){return function(){Ip(this,n)}}function x_(n,a){return function(){(a.apply(this,arguments)?Wp:Ip)(this,n)}}function b_(n,a){var i=Jp(n+"");if(arguments.length<2){for(var r=zf(this.node()),o=-1,f=i.length;++o<f;)if(!r.contains(i[o]))return!1;return!0}return this.each((typeof a=="function"?x_:a?y_:v_)(i,a))}function S_(){this.textContent=""}function __(n){return function(){this.textContent=n}}function w_(n){return function(){var a=n.apply(this,arguments);this.textContent=a??""}}function T_(n){return arguments.length?this.each(n==null?S_:(typeof n=="function"?w_:__)(n)):this.node().textContent}function M_(){this.innerHTML=""}function E_(n){return function(){this.innerHTML=n}}function A_(n){return function(){var a=n.apply(this,arguments);this.innerHTML=a??""}}function C_(n){return arguments.length?this.each(n==null?M_:(typeof n=="function"?A_:E_)(n)):this.node().innerHTML}function z_(){this.nextSibling&&this.parentNode.appendChild(this)}function N_(){return this.each(z_)}function D_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R_(){return this.each(D_)}function O_(n){var a=typeof n=="function"?n:Xp(n);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function U_(){return null}function j_(n,a){var i=typeof n=="function"?n:Xp(n),r=a==null?U_:typeof a=="function"?a:Cf(a);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function H_(){var n=this.parentNode;n&&n.removeChild(this)}function L_(){return this.each(H_)}function k_(){var n=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function Y_(){var n=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function B_(n){return this.select(n?Y_:k_)}function q_(n){return arguments.length?this.property("__data__",n):this.node().__data__}function G_(n){return function(a){n.call(this,a,this.__data__)}}function X_(n){return n.trim().split(/^|\s+/).map(function(a){var i="",r=a.indexOf(".");return r>=0&&(i=a.slice(r+1),a=a.slice(0,r)),{type:a,name:i}})}function V_(n){return function(){var a=this.__on;if(a){for(var i=0,r=-1,o=a.length,f;i<o;++i)f=a[i],(!n.type||f.type===n.type)&&f.name===n.name?this.removeEventListener(f.type,f.listener,f.options):a[++r]=f;++r?a.length=r:delete this.__on}}}function Q_(n,a,i){return function(){var r=this.__on,o,f=G_(a);if(r){for(var d=0,g=r.length;d<g;++d)if((o=r[d]).type===n.type&&o.name===n.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=f,o.options=i),o.value=a;return}}this.addEventListener(n.type,f,i),o={type:n.type,name:n.name,value:a,listener:f,options:i},r?r.push(o):this.__on=[o]}}function Z_(n,a,i){var r=X_(n+""),o,f=r.length,d;if(arguments.length<2){var g=this.node().__on;if(g){for(var m=0,h=g.length,v;m<h;++m)for(o=0,v=g[m];o<f;++o)if((d=r[o]).type===v.type&&d.name===v.name)return v.value}return}for(g=a?Q_:V_,o=0;o<f;++o)this.each(g(r[o],a,i));return this}function Pp(n,a,i){var r=Kp(n),o=r.CustomEvent;typeof o=="function"?o=new o(a,i):(o=r.document.createEvent("Event"),i?(o.initEvent(a,i.bubbles,i.cancelable),o.detail=i.detail):o.initEvent(a,!1,!1)),n.dispatchEvent(o)}function $_(n,a){return function(){return Pp(this,n,a)}}function K_(n,a){return function(){return Pp(this,n,a.apply(this,arguments))}}function J_(n,a){return this.each((typeof a=="function"?K_:$_)(n,a))}function*F_(){for(var n=this._groups,a=0,i=n.length;a<i;++a)for(var r=n[a],o=0,f=r.length,d;o<f;++o)(d=r[o])&&(yield d)}var ty=[null];function je(n,a){this._groups=n,this._parents=a}function ri(){return new je([[document.documentElement]],ty)}function W_(){return this}je.prototype=ri.prototype={constructor:je,select:wS,selectAll:AS,selectChild:DS,selectChildren:jS,filter:HS,data:GS,enter:LS,exit:VS,join:QS,merge:ZS,selection:W_,order:$S,sort:KS,call:FS,nodes:WS,node:IS,size:PS,empty:t_,each:e_,attr:c_,style:d_,property:p_,classed:b_,text:T_,html:C_,raise:N_,lower:R_,append:O_,insert:j_,remove:L_,clone:B_,datum:q_,on:Z_,dispatch:J_,[Symbol.iterator]:F_};function Ue(n){return typeof n=="string"?new je([[document.querySelector(n)]],[document.documentElement]):new je([[n]],ty)}function I_(n){let a;for(;a=n.sourceEvent;)n=a;return n}function Ol(n,a){if(n=I_(n),a===void 0&&(a=n.currentTarget),a){var i=a.ownerSVGElement||a;if(i.createSVGPoint){var r=i.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(a.getScreenCTM().inverse()),[r.x,r.y]}if(a.getBoundingClientRect){var o=a.getBoundingClientRect();return[n.clientX-o.left-a.clientLeft,n.clientY-o.top-a.clientTop]}}return[n.pageX,n.pageY]}const cf={capture:!0,passive:!1};function of(n){n.preventDefault(),n.stopImmediatePropagation()}function P_(n){var a=n.document.documentElement,i=Ue(n).on("dragstart.drag",of,cf);"onselectstart"in a?i.on("selectstart.drag",of,cf):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function tw(n,a){var i=n.document.documentElement,r=Ue(n).on("dragstart.drag",null);a&&(r.on("click.drag",of,cf),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in i?r.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function Nf(n,a,i){n.prototype=a.prototype=i,i.constructor=n}function ey(n,a){var i=Object.create(n.prototype);for(var r in a)i[r]=a[r];return i}function ci(){}var ti=.7,$r=1/ti,Oa="\\s*([+-]?\\d+)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ew=/^#([0-9a-f]{3,8})$/,nw=new RegExp(`^rgb\\(${Oa},${Oa},${Oa}\\)$`),lw=new RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`),aw=new RegExp(`^rgba\\(${Oa},${Oa},${Oa},${ei}\\)$`),uw=new RegExp(`^rgba\\(${rn},${rn},${rn},${ei}\\)$`),iw=new RegExp(`^hsl\\(${ei},${rn},${rn}\\)$`),rw=new RegExp(`^hsla\\(${ei},${rn},${rn},${ei}\\)$`),gg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Nf(ci,kl,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:pg,formatHex:pg,formatHex8:cw,formatHsl:ow,formatRgb:yg,toString:yg});function pg(){return this.rgb().formatHex()}function cw(){return this.rgb().formatHex8()}function ow(){return ny(this).formatHsl()}function yg(){return this.rgb().formatRgb()}function kl(n){var a,i;return n=(n+"").trim().toLowerCase(),(a=ew.exec(n))?(i=a[1].length,a=parseInt(a[1],16),i===6?vg(a):i===3?new we(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):i===8?zr(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):i===4?zr(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=nw.exec(n))?new we(a[1],a[2],a[3],1):(a=lw.exec(n))?new we(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=aw.exec(n))?zr(a[1],a[2],a[3],a[4]):(a=uw.exec(n))?zr(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=iw.exec(n))?Sg(a[1],a[2]/100,a[3]/100,1):(a=rw.exec(n))?Sg(a[1],a[2]/100,a[3]/100,a[4]):gg.hasOwnProperty(n)?vg(gg[n]):n==="transparent"?new we(NaN,NaN,NaN,0):null}function vg(n){return new we(n>>16&255,n>>8&255,n&255,1)}function zr(n,a,i,r){return r<=0&&(n=a=i=NaN),new we(n,a,i,r)}function sw(n){return n instanceof ci||(n=kl(n)),n?(n=n.rgb(),new we(n.r,n.g,n.b,n.opacity)):new we}function sf(n,a,i,r){return arguments.length===1?sw(n):new we(n,a,i,r??1)}function we(n,a,i,r){this.r=+n,this.g=+a,this.b=+i,this.opacity=+r}Nf(we,sf,ey(ci,{brighter(n){return n=n==null?$r:Math.pow($r,n),new we(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?ti:Math.pow(ti,n),new we(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new we(Ll(this.r),Ll(this.g),Ll(this.b),Kr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xg,formatHex:xg,formatHex8:fw,formatRgb:bg,toString:bg}));function xg(){return`#${Hl(this.r)}${Hl(this.g)}${Hl(this.b)}`}function fw(){return`#${Hl(this.r)}${Hl(this.g)}${Hl(this.b)}${Hl((isNaN(this.opacity)?1:this.opacity)*255)}`}function bg(){const n=Kr(this.opacity);return`${n===1?"rgb(":"rgba("}${Ll(this.r)}, ${Ll(this.g)}, ${Ll(this.b)}${n===1?")":`, ${n})`}`}function Kr(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Ll(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Hl(n){return n=Ll(n),(n<16?"0":"")+n.toString(16)}function Sg(n,a,i,r){return r<=0?n=a=i=NaN:i<=0||i>=1?n=a=NaN:a<=0&&(n=NaN),new Ie(n,a,i,r)}function ny(n){if(n instanceof Ie)return new Ie(n.h,n.s,n.l,n.opacity);if(n instanceof ci||(n=kl(n)),!n)return new Ie;if(n instanceof Ie)return n;n=n.rgb();var a=n.r/255,i=n.g/255,r=n.b/255,o=Math.min(a,i,r),f=Math.max(a,i,r),d=NaN,g=f-o,m=(f+o)/2;return g?(a===f?d=(i-r)/g+(i<r)*6:i===f?d=(r-a)/g+2:d=(a-i)/g+4,g/=m<.5?f+o:2-f-o,d*=60):g=m>0&&m<1?0:d,new Ie(d,g,m,n.opacity)}function dw(n,a,i,r){return arguments.length===1?ny(n):new Ie(n,a,i,r??1)}function Ie(n,a,i,r){this.h=+n,this.s=+a,this.l=+i,this.opacity=+r}Nf(Ie,dw,ey(ci,{brighter(n){return n=n==null?$r:Math.pow($r,n),new Ie(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?ti:Math.pow(ti,n),new Ie(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,a=isNaN(n)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*a,o=2*i-r;return new we(Ys(n>=240?n-240:n+120,o,r),Ys(n,o,r),Ys(n<120?n+240:n-120,o,r),this.opacity)},clamp(){return new Ie(_g(this.h),Nr(this.s),Nr(this.l),Kr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Kr(this.opacity);return`${n===1?"hsl(":"hsla("}${_g(this.h)}, ${Nr(this.s)*100}%, ${Nr(this.l)*100}%${n===1?")":`, ${n})`}`}}));function _g(n){return n=(n||0)%360,n<0?n+360:n}function Nr(n){return Math.max(0,Math.min(1,n||0))}function Ys(n,a,i){return(n<60?a+(i-a)*n/60:n<180?i:n<240?a+(i-a)*(240-n)/60:a)*255}const Df=n=>()=>n;function hw(n,a){return function(i){return n+i*a}}function mw(n,a,i){return n=Math.pow(n,i),a=Math.pow(a,i)-n,i=1/i,function(r){return Math.pow(n+r*a,i)}}function gw(n){return(n=+n)==1?ly:function(a,i){return i-a?mw(a,i,n):Df(isNaN(a)?i:a)}}function ly(n,a){var i=a-n;return i?hw(n,i):Df(isNaN(n)?a:n)}const Jr=(function n(a){var i=gw(a);function r(o,f){var d=i((o=sf(o)).r,(f=sf(f)).r),g=i(o.g,f.g),m=i(o.b,f.b),h=ly(o.opacity,f.opacity);return function(v){return o.r=d(v),o.g=g(v),o.b=m(v),o.opacity=h(v),o+""}}return r.gamma=n,r})(1);function pw(n,a){a||(a=[]);var i=n?Math.min(a.length,n.length):0,r=a.slice(),o;return function(f){for(o=0;o<i;++o)r[o]=n[o]*(1-f)+a[o]*f;return r}}function yw(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function vw(n,a){var i=a?a.length:0,r=n?Math.min(i,n.length):0,o=new Array(r),f=new Array(i),d;for(d=0;d<r;++d)o[d]=Rf(n[d],a[d]);for(;d<i;++d)f[d]=a[d];return function(g){for(d=0;d<r;++d)f[d]=o[d](g);return f}}function xw(n,a){var i=new Date;return n=+n,a=+a,function(r){return i.setTime(n*(1-r)+a*r),i}}function We(n,a){return n=+n,a=+a,function(i){return n*(1-i)+a*i}}function bw(n,a){var i={},r={},o;(n===null||typeof n!="object")&&(n={}),(a===null||typeof a!="object")&&(a={});for(o in a)o in n?i[o]=Rf(n[o],a[o]):r[o]=a[o];return function(f){for(o in i)r[o]=i[o](f);return r}}var ff=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bs=new RegExp(ff.source,"g");function Sw(n){return function(){return n}}function _w(n){return function(a){return n(a)+""}}function ay(n,a){var i=ff.lastIndex=Bs.lastIndex=0,r,o,f,d=-1,g=[],m=[];for(n=n+"",a=a+"";(r=ff.exec(n))&&(o=Bs.exec(a));)(f=o.index)>i&&(f=a.slice(i,f),g[d]?g[d]+=f:g[++d]=f),(r=r[0])===(o=o[0])?g[d]?g[d]+=o:g[++d]=o:(g[++d]=null,m.push({i:d,x:We(r,o)})),i=Bs.lastIndex;return i<a.length&&(f=a.slice(i),g[d]?g[d]+=f:g[++d]=f),g.length<2?m[0]?_w(m[0].x):Sw(a):(a=m.length,function(h){for(var v=0,y;v<a;++v)g[(y=m[v]).i]=y.x(h);return g.join("")})}function Rf(n,a){var i=typeof a,r;return a==null||i==="boolean"?Df(a):(i==="number"?We:i==="string"?(r=kl(a))?(a=r,Jr):ay:a instanceof kl?Jr:a instanceof Date?xw:yw(a)?pw:Array.isArray(a)?vw:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?bw:We)(n,a)}function ww(n,a){return n=+n,a=+a,function(i){return Math.round(n*(1-i)+a*i)}}var wg=180/Math.PI,df={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uy(n,a,i,r,o,f){var d,g,m;return(d=Math.sqrt(n*n+a*a))&&(n/=d,a/=d),(m=n*i+a*r)&&(i-=n*m,r-=a*m),(g=Math.sqrt(i*i+r*r))&&(i/=g,r/=g,m/=g),n*r<a*i&&(n=-n,a=-a,m=-m,d=-d),{translateX:o,translateY:f,rotate:Math.atan2(a,n)*wg,skewX:Math.atan(m)*wg,scaleX:d,scaleY:g}}var Dr;function Tw(n){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return a.isIdentity?df:uy(a.a,a.b,a.c,a.d,a.e,a.f)}function Mw(n){return n==null||(Dr||(Dr=document.createElementNS("http://www.w3.org/2000/svg","g")),Dr.setAttribute("transform",n),!(n=Dr.transform.baseVal.consolidate()))?df:(n=n.matrix,uy(n.a,n.b,n.c,n.d,n.e,n.f))}function iy(n,a,i,r){function o(h){return h.length?h.pop()+" ":""}function f(h,v,y,x,w,k){if(h!==y||v!==x){var N=w.push("translate(",null,a,null,i);k.push({i:N-4,x:We(h,y)},{i:N-2,x:We(v,x)})}else(y||x)&&w.push("translate("+y+a+x+i)}function d(h,v,y,x){h!==v?(h-v>180?v+=360:v-h>180&&(h+=360),x.push({i:y.push(o(y)+"rotate(",null,r)-2,x:We(h,v)})):v&&y.push(o(y)+"rotate("+v+r)}function g(h,v,y,x){h!==v?x.push({i:y.push(o(y)+"skewX(",null,r)-2,x:We(h,v)}):v&&y.push(o(y)+"skewX("+v+r)}function m(h,v,y,x,w,k){if(h!==y||v!==x){var N=w.push(o(w)+"scale(",null,",",null,")");k.push({i:N-4,x:We(h,y)},{i:N-2,x:We(v,x)})}else(y!==1||x!==1)&&w.push(o(w)+"scale("+y+","+x+")")}return function(h,v){var y=[],x=[];return h=n(h),v=n(v),f(h.translateX,h.translateY,v.translateX,v.translateY,y,x),d(h.rotate,v.rotate,y,x),g(h.skewX,v.skewX,y,x),m(h.scaleX,h.scaleY,v.scaleX,v.scaleY,y,x),h=v=null,function(w){for(var k=-1,N=x.length,C;++k<N;)y[(C=x[k]).i]=C.x(w);return y.join("")}}}var Ew=iy(Tw,"px, ","px)","deg)"),Aw=iy(Mw,", ",")",")"),Cw=1e-12;function Tg(n){return((n=Math.exp(n))+1/n)/2}function zw(n){return((n=Math.exp(n))-1/n)/2}function Nw(n){return((n=Math.exp(2*n))-1)/(n+1)}const Dw=(function n(a,i,r){function o(f,d){var g=f[0],m=f[1],h=f[2],v=d[0],y=d[1],x=d[2],w=v-g,k=y-m,N=w*w+k*k,C,A;if(N<Cw)A=Math.log(x/h)/a,C=function(K){return[g+K*w,m+K*k,h*Math.exp(a*K*A)]};else{var q=Math.sqrt(N),L=(x*x-h*h+r*N)/(2*h*i*q),J=(x*x-h*h-r*N)/(2*x*i*q),nt=Math.log(Math.sqrt(L*L+1)-L),V=Math.log(Math.sqrt(J*J+1)-J);A=(V-nt)/a,C=function(K){var st=K*A,dt=Tg(nt),vt=h/(i*q)*(dt*Nw(a*st+nt)-zw(nt));return[g+vt*w,m+vt*k,h*dt/Tg(a*st+nt)]}}return C.duration=A*1e3*a/Math.SQRT2,C}return o.rho=function(f){var d=Math.max(.001,+f),g=d*d,m=g*g;return n(d,g,m)},o})(Math.SQRT2,2,4);var ja=0,$u=0,qu=0,ry=1e3,Fr,Ku,Wr=0,Yl=0,sc=0,ni=typeof performance=="object"&&performance.now?performance:Date,cy=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function Of(){return Yl||(cy(Rw),Yl=ni.now()+sc)}function Rw(){Yl=0}function Ir(){this._call=this._time=this._next=null}Ir.prototype=oy.prototype={constructor:Ir,restart:function(n,a,i){if(typeof n!="function")throw new TypeError("callback is not a function");i=(i==null?Of():+i)+(a==null?0:+a),!this._next&&Ku!==this&&(Ku?Ku._next=this:Fr=this,Ku=this),this._call=n,this._time=i,hf()},stop:function(){this._call&&(this._call=null,this._time=1/0,hf())}};function oy(n,a,i){var r=new Ir;return r.restart(n,a,i),r}function Ow(){Of(),++ja;for(var n=Fr,a;n;)(a=Yl-n._time)>=0&&n._call.call(void 0,a),n=n._next;--ja}function Mg(){Yl=(Wr=ni.now())+sc,ja=$u=0;try{Ow()}finally{ja=0,jw(),Yl=0}}function Uw(){var n=ni.now(),a=n-Wr;a>ry&&(sc-=a,Wr=n)}function jw(){for(var n,a=Fr,i,r=1/0;a;)a._call?(r>a._time&&(r=a._time),n=a,a=a._next):(i=a._next,a._next=null,a=n?n._next=i:Fr=i);Ku=n,hf(r)}function hf(n){if(!ja){$u&&($u=clearTimeout($u));var a=n-Yl;a>24?(n<1/0&&($u=setTimeout(Mg,n-ni.now()-sc)),qu&&(qu=clearInterval(qu))):(qu||(Wr=ni.now(),qu=setInterval(Uw,ry)),ja=1,cy(Mg))}}function Eg(n,a,i){var r=new Ir;return a=a==null?0:+a,r.restart(o=>{r.stop(),n(o+a)},a,i),r}var Hw=Af("start","end","cancel","interrupt"),Lw=[],sy=0,Ag=1,mf=2,qr=3,Cg=4,gf=5,Gr=6;function fc(n,a,i,r,o,f){var d=n.__transition;if(!d)n.__transition={};else if(i in d)return;kw(n,i,{name:a,index:r,group:o,on:Hw,tween:Lw,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:sy})}function Uf(n,a){var i=en(n,a);if(i.state>sy)throw new Error("too late; already scheduled");return i}function sn(n,a){var i=en(n,a);if(i.state>qr)throw new Error("too late; already running");return i}function en(n,a){var i=n.__transition;if(!i||!(i=i[a]))throw new Error("transition not found");return i}function kw(n,a,i){var r=n.__transition,o;r[a]=i,i.timer=oy(f,0,i.time);function f(h){i.state=Ag,i.timer.restart(d,i.delay,i.time),i.delay<=h&&d(h-i.delay)}function d(h){var v,y,x,w;if(i.state!==Ag)return m();for(v in r)if(w=r[v],w.name===i.name){if(w.state===qr)return Eg(d);w.state===Cg?(w.state=Gr,w.timer.stop(),w.on.call("interrupt",n,n.__data__,w.index,w.group),delete r[v]):+v<a&&(w.state=Gr,w.timer.stop(),w.on.call("cancel",n,n.__data__,w.index,w.group),delete r[v])}if(Eg(function(){i.state===qr&&(i.state=Cg,i.timer.restart(g,i.delay,i.time),g(h))}),i.state=mf,i.on.call("start",n,n.__data__,i.index,i.group),i.state===mf){for(i.state=qr,o=new Array(x=i.tween.length),v=0,y=-1;v<x;++v)(w=i.tween[v].value.call(n,n.__data__,i.index,i.group))&&(o[++y]=w);o.length=y+1}}function g(h){for(var v=h<i.duration?i.ease.call(null,h/i.duration):(i.timer.restart(m),i.state=gf,1),y=-1,x=o.length;++y<x;)o[y].call(n,v);i.state===gf&&(i.on.call("end",n,n.__data__,i.index,i.group),m())}function m(){i.state=Gr,i.timer.stop(),delete r[a];for(var h in r)return;delete n.__transition}}function Xr(n,a){var i=n.__transition,r,o,f=!0,d;if(i){a=a==null?null:a+"";for(d in i){if((r=i[d]).name!==a){f=!1;continue}o=r.state>mf&&r.state<gf,r.state=Gr,r.timer.stop(),r.on.call(o?"interrupt":"cancel",n,n.__data__,r.index,r.group),delete i[d]}f&&delete n.__transition}}function Yw(n){return this.each(function(){Xr(this,n)})}function Bw(n,a){var i,r;return function(){var o=sn(this,n),f=o.tween;if(f!==i){r=i=f;for(var d=0,g=r.length;d<g;++d)if(r[d].name===a){r=r.slice(),r.splice(d,1);break}}o.tween=r}}function qw(n,a,i){var r,o;if(typeof i!="function")throw new Error;return function(){var f=sn(this,n),d=f.tween;if(d!==r){o=(r=d).slice();for(var g={name:a,value:i},m=0,h=o.length;m<h;++m)if(o[m].name===a){o[m]=g;break}m===h&&o.push(g)}f.tween=o}}function Gw(n,a){var i=this._id;if(n+="",arguments.length<2){for(var r=en(this.node(),i).tween,o=0,f=r.length,d;o<f;++o)if((d=r[o]).name===n)return d.value;return null}return this.each((a==null?Bw:qw)(i,n,a))}function jf(n,a,i){var r=n._id;return n.each(function(){var o=sn(this,r);(o.value||(o.value={}))[a]=i.apply(this,arguments)}),function(o){return en(o,r).value[a]}}function fy(n,a){var i;return(typeof a=="number"?We:a instanceof kl?Jr:(i=kl(a))?(a=i,Jr):ay)(n,a)}function Xw(n){return function(){this.removeAttribute(n)}}function Vw(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Qw(n,a,i){var r,o=i+"",f;return function(){var d=this.getAttribute(n);return d===o?null:d===r?f:f=a(r=d,i)}}function Zw(n,a,i){var r,o=i+"",f;return function(){var d=this.getAttributeNS(n.space,n.local);return d===o?null:d===r?f:f=a(r=d,i)}}function $w(n,a,i){var r,o,f;return function(){var d,g=i(this),m;return g==null?void this.removeAttribute(n):(d=this.getAttribute(n),m=g+"",d===m?null:d===r&&m===o?f:(o=m,f=a(r=d,g)))}}function Kw(n,a,i){var r,o,f;return function(){var d,g=i(this),m;return g==null?void this.removeAttributeNS(n.space,n.local):(d=this.getAttributeNS(n.space,n.local),m=g+"",d===m?null:d===r&&m===o?f:(o=m,f=a(r=d,g)))}}function Jw(n,a){var i=oc(n),r=i==="transform"?Aw:fy;return this.attrTween(n,typeof a=="function"?(i.local?Kw:$w)(i,r,jf(this,"attr."+n,a)):a==null?(i.local?Vw:Xw)(i):(i.local?Zw:Qw)(i,r,a))}function Fw(n,a){return function(i){this.setAttribute(n,a.call(this,i))}}function Ww(n,a){return function(i){this.setAttributeNS(n.space,n.local,a.call(this,i))}}function Iw(n,a){var i,r;function o(){var f=a.apply(this,arguments);return f!==r&&(i=(r=f)&&Ww(n,f)),i}return o._value=a,o}function Pw(n,a){var i,r;function o(){var f=a.apply(this,arguments);return f!==r&&(i=(r=f)&&Fw(n,f)),i}return o._value=a,o}function t3(n,a){var i="attr."+n;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(a==null)return this.tween(i,null);if(typeof a!="function")throw new Error;var r=oc(n);return this.tween(i,(r.local?Iw:Pw)(r,a))}function e3(n,a){return function(){Uf(this,n).delay=+a.apply(this,arguments)}}function n3(n,a){return a=+a,function(){Uf(this,n).delay=a}}function l3(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?e3:n3)(a,n)):en(this.node(),a).delay}function a3(n,a){return function(){sn(this,n).duration=+a.apply(this,arguments)}}function u3(n,a){return a=+a,function(){sn(this,n).duration=a}}function i3(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?a3:u3)(a,n)):en(this.node(),a).duration}function r3(n,a){if(typeof a!="function")throw new Error;return function(){sn(this,n).ease=a}}function c3(n){var a=this._id;return arguments.length?this.each(r3(a,n)):en(this.node(),a).ease}function o3(n,a){return function(){var i=a.apply(this,arguments);if(typeof i!="function")throw new Error;sn(this,n).ease=i}}function s3(n){if(typeof n!="function")throw new Error;return this.each(o3(this._id,n))}function f3(n){typeof n!="function"&&(n=Qp(n));for(var a=this._groups,i=a.length,r=new Array(i),o=0;o<i;++o)for(var f=a[o],d=f.length,g=r[o]=[],m,h=0;h<d;++h)(m=f[h])&&n.call(m,m.__data__,h,f)&&g.push(m);return new Ln(r,this._parents,this._name,this._id)}function d3(n){if(n._id!==this._id)throw new Error;for(var a=this._groups,i=n._groups,r=a.length,o=i.length,f=Math.min(r,o),d=new Array(r),g=0;g<f;++g)for(var m=a[g],h=i[g],v=m.length,y=d[g]=new Array(v),x,w=0;w<v;++w)(x=m[w]||h[w])&&(y[w]=x);for(;g<r;++g)d[g]=a[g];return new Ln(d,this._parents,this._name,this._id)}function h3(n){return(n+"").trim().split(/^|\s+/).every(function(a){var i=a.indexOf(".");return i>=0&&(a=a.slice(0,i)),!a||a==="start"})}function m3(n,a,i){var r,o,f=h3(a)?Uf:sn;return function(){var d=f(this,n),g=d.on;g!==r&&(o=(r=g).copy()).on(a,i),d.on=o}}function g3(n,a){var i=this._id;return arguments.length<2?en(this.node(),i).on.on(n):this.each(m3(i,n,a))}function p3(n){return function(){var a=this.parentNode;for(var i in this.__transition)if(+i!==n)return;a&&a.removeChild(this)}}function y3(){return this.on("end.remove",p3(this._id))}function v3(n){var a=this._name,i=this._id;typeof n!="function"&&(n=Cf(n));for(var r=this._groups,o=r.length,f=new Array(o),d=0;d<o;++d)for(var g=r[d],m=g.length,h=f[d]=new Array(m),v,y,x=0;x<m;++x)(v=g[x])&&(y=n.call(v,v.__data__,x,g))&&("__data__"in v&&(y.__data__=v.__data__),h[x]=y,fc(h[x],a,i,x,h,en(v,i)));return new Ln(f,this._parents,a,i)}function x3(n){var a=this._name,i=this._id;typeof n!="function"&&(n=Vp(n));for(var r=this._groups,o=r.length,f=[],d=[],g=0;g<o;++g)for(var m=r[g],h=m.length,v,y=0;y<h;++y)if(v=m[y]){for(var x=n.call(v,v.__data__,y,m),w,k=en(v,i),N=0,C=x.length;N<C;++N)(w=x[N])&&fc(w,a,i,N,x,k);f.push(x),d.push(v)}return new Ln(f,d,a,i)}var b3=ri.prototype.constructor;function S3(){return new b3(this._groups,this._parents)}function _3(n,a){var i,r,o;return function(){var f=Ua(this,n),d=(this.style.removeProperty(n),Ua(this,n));return f===d?null:f===i&&d===r?o:o=a(i=f,r=d)}}function dy(n){return function(){this.style.removeProperty(n)}}function w3(n,a,i){var r,o=i+"",f;return function(){var d=Ua(this,n);return d===o?null:d===r?f:f=a(r=d,i)}}function T3(n,a,i){var r,o,f;return function(){var d=Ua(this,n),g=i(this),m=g+"";return g==null&&(m=g=(this.style.removeProperty(n),Ua(this,n))),d===m?null:d===r&&m===o?f:(o=m,f=a(r=d,g))}}function M3(n,a){var i,r,o,f="style."+a,d="end."+f,g;return function(){var m=sn(this,n),h=m.on,v=m.value[f]==null?g||(g=dy(a)):void 0;(h!==i||o!==v)&&(r=(i=h).copy()).on(d,o=v),m.on=r}}function E3(n,a,i){var r=(n+="")=="transform"?Ew:fy;return a==null?this.styleTween(n,_3(n,r)).on("end.style."+n,dy(n)):typeof a=="function"?this.styleTween(n,T3(n,r,jf(this,"style."+n,a))).each(M3(this._id,n)):this.styleTween(n,w3(n,r,a),i).on("end.style."+n,null)}function A3(n,a,i){return function(r){this.style.setProperty(n,a.call(this,r),i)}}function C3(n,a,i){var r,o;function f(){var d=a.apply(this,arguments);return d!==o&&(r=(o=d)&&A3(n,d,i)),r}return f._value=a,f}function z3(n,a,i){var r="style."+(n+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(a==null)return this.tween(r,null);if(typeof a!="function")throw new Error;return this.tween(r,C3(n,a,i??""))}function N3(n){return function(){this.textContent=n}}function D3(n){return function(){var a=n(this);this.textContent=a??""}}function R3(n){return this.tween("text",typeof n=="function"?D3(jf(this,"text",n)):N3(n==null?"":n+""))}function O3(n){return function(a){this.textContent=n.call(this,a)}}function U3(n){var a,i;function r(){var o=n.apply(this,arguments);return o!==i&&(a=(i=o)&&O3(o)),a}return r._value=n,r}function j3(n){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,U3(n))}function H3(){for(var n=this._name,a=this._id,i=hy(),r=this._groups,o=r.length,f=0;f<o;++f)for(var d=r[f],g=d.length,m,h=0;h<g;++h)if(m=d[h]){var v=en(m,a);fc(m,n,i,h,d,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Ln(r,this._parents,n,i)}function L3(){var n,a,i=this,r=i._id,o=i.size();return new Promise(function(f,d){var g={value:d},m={value:function(){--o===0&&f()}};i.each(function(){var h=sn(this,r),v=h.on;v!==n&&(a=(n=v).copy(),a._.cancel.push(g),a._.interrupt.push(g),a._.end.push(m)),h.on=a}),o===0&&f()})}var k3=0;function Ln(n,a,i,r){this._groups=n,this._parents=a,this._name=i,this._id=r}function hy(){return++k3}var Dn=ri.prototype;Ln.prototype={constructor:Ln,select:v3,selectAll:x3,selectChild:Dn.selectChild,selectChildren:Dn.selectChildren,filter:f3,merge:d3,selection:S3,transition:H3,call:Dn.call,nodes:Dn.nodes,node:Dn.node,size:Dn.size,empty:Dn.empty,each:Dn.each,on:g3,attr:Jw,attrTween:t3,style:E3,styleTween:z3,text:R3,textTween:j3,remove:y3,tween:Gw,delay:l3,duration:i3,ease:c3,easeVarying:s3,end:L3,[Symbol.iterator]:Dn[Symbol.iterator]};function Y3(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var B3={time:null,delay:0,duration:250,ease:Y3};function q3(n,a){for(var i;!(i=n.__transition)||!(i=i[a]);)if(!(n=n.parentNode))throw new Error(`transition ${a} not found`);return i}function G3(n){var a,i;n instanceof Ln?(a=n._id,n=n._name):(a=hy(),(i=B3).time=Of(),n=n==null?null:n+"");for(var r=this._groups,o=r.length,f=0;f<o;++f)for(var d=r[f],g=d.length,m,h=0;h<g;++h)(m=d[h])&&fc(m,n,a,h,d,i||q3(m,a));return new Ln(r,this._parents,n,a)}ri.prototype.interrupt=Yw;ri.prototype.transition=G3;const pf=Math.PI,yf=2*pf,jl=1e-6,X3=yf-jl;function my(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=arguments[a]+n[a]}function V3(n){let a=Math.floor(n);if(!(a>=0))throw new Error(`invalid digits: ${n}`);if(a>15)return my;const i=10**a;return function(r){this._+=r[0];for(let o=1,f=r.length;o<f;++o)this._+=Math.round(arguments[o]*i)/i+r[o]}}class Q3{constructor(a){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=a==null?my:V3(a)}moveTo(a,i){this._append`M${this._x0=this._x1=+a},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(a,i){this._append`L${this._x1=+a},${this._y1=+i}`}quadraticCurveTo(a,i,r,o){this._append`Q${+a},${+i},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(a,i,r,o,f,d){this._append`C${+a},${+i},${+r},${+o},${this._x1=+f},${this._y1=+d}`}arcTo(a,i,r,o,f){if(a=+a,i=+i,r=+r,o=+o,f=+f,f<0)throw new Error(`negative radius: ${f}`);let d=this._x1,g=this._y1,m=r-a,h=o-i,v=d-a,y=g-i,x=v*v+y*y;if(this._x1===null)this._append`M${this._x1=a},${this._y1=i}`;else if(x>jl)if(!(Math.abs(y*m-h*v)>jl)||!f)this._append`L${this._x1=a},${this._y1=i}`;else{let w=r-d,k=o-g,N=m*m+h*h,C=w*w+k*k,A=Math.sqrt(N),q=Math.sqrt(x),L=f*Math.tan((pf-Math.acos((N+x-C)/(2*A*q)))/2),J=L/q,nt=L/A;Math.abs(J-1)>jl&&this._append`L${a+J*v},${i+J*y}`,this._append`A${f},${f},0,0,${+(y*w>v*k)},${this._x1=a+nt*m},${this._y1=i+nt*h}`}}arc(a,i,r,o,f,d){if(a=+a,i=+i,r=+r,d=!!d,r<0)throw new Error(`negative radius: ${r}`);let g=r*Math.cos(o),m=r*Math.sin(o),h=a+g,v=i+m,y=1^d,x=d?o-f:f-o;this._x1===null?this._append`M${h},${v}`:(Math.abs(this._x1-h)>jl||Math.abs(this._y1-v)>jl)&&this._append`L${h},${v}`,r&&(x<0&&(x=x%yf+yf),x>X3?this._append`A${r},${r},0,1,${y},${a-g},${i-m}A${r},${r},0,1,${y},${this._x1=h},${this._y1=v}`:x>jl&&this._append`A${r},${r},0,${+(x>=pf)},${y},${this._x1=a+r*Math.cos(f)},${this._y1=i+r*Math.sin(f)}`)}rect(a,i,r,o){this._append`M${this._x0=this._x1=+a},${this._y0=this._y1=+i}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function Z3(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function Pr(n,a){if(!isFinite(n)||n===0)return null;var i=(n=a?n.toExponential(a-1):n.toExponential()).indexOf("e"),r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function Ha(n){return n=Pr(Math.abs(n)),n?n[1]:NaN}function $3(n,a){return function(i,r){for(var o=i.length,f=[],d=0,g=n[0],m=0;o>0&&g>0&&(m+g+1>r&&(g=Math.max(1,r-m)),f.push(i.substring(o-=g,o+g)),!((m+=g+1)>r));)g=n[d=(d+1)%n.length];return f.reverse().join(a)}}function K3(n){return function(a){return a.replace(/[0-9]/g,function(i){return n[+i]})}}var J3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tc(n){if(!(a=J3.exec(n)))throw new Error("invalid format: "+n);var a;return new Hf({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}tc.prototype=Hf.prototype;function Hf(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}Hf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function F3(n){t:for(var a=n.length,i=1,r=-1,o;i<a;++i)switch(n[i]){case".":r=o=i;break;case"0":r===0&&(r=i),o=i;break;default:if(!+n[i])break t;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(o+1):n}var ec;function W3(n,a){var i=Pr(n,a);if(!i)return ec=void 0,n.toPrecision(a);var r=i[0],o=i[1],f=o-(ec=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,d=r.length;return f===d?r:f>d?r+new Array(f-d+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+Pr(n,Math.max(0,a+f-1))[0]}function zg(n,a){var i=Pr(n,a);if(!i)return n+"";var r=i[0],o=i[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Ng={"%":(n,a)=>(n*100).toFixed(a),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Z3,e:(n,a)=>n.toExponential(a),f:(n,a)=>n.toFixed(a),g:(n,a)=>n.toPrecision(a),o:n=>Math.round(n).toString(8),p:(n,a)=>zg(n*100,a),r:zg,s:W3,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Dg(n){return n}var Rg=Array.prototype.map,Og=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function I3(n){var a=n.grouping===void 0||n.thousands===void 0?Dg:$3(Rg.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",o=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?Dg:K3(Rg.call(n.numerals,String)),d=n.percent===void 0?"%":n.percent+"",g=n.minus===void 0?"−":n.minus+"",m=n.nan===void 0?"NaN":n.nan+"";function h(y,x){y=tc(y);var w=y.fill,k=y.align,N=y.sign,C=y.symbol,A=y.zero,q=y.width,L=y.comma,J=y.precision,nt=y.trim,V=y.type;V==="n"?(L=!0,V="g"):Ng[V]||(J===void 0&&(J=12),nt=!0,V="g"),(A||w==="0"&&k==="=")&&(A=!0,w="0",k="=");var K=(x&&x.prefix!==void 0?x.prefix:"")+(C==="$"?i:C==="#"&&/[boxX]/.test(V)?"0"+V.toLowerCase():""),st=(C==="$"?r:/[%p]/.test(V)?d:"")+(x&&x.suffix!==void 0?x.suffix:""),dt=Ng[V],vt=/[defgprs%]/.test(V);J=J===void 0?6:/[gprs]/.test(V)?Math.max(1,Math.min(21,J)):Math.max(0,Math.min(20,J));function _t(X){var ht=K,D=st,P,M,Y;if(V==="c")D=dt(X)+D,X="";else{X=+X;var F=X<0||1/X<0;if(X=isNaN(X)?m:dt(Math.abs(X),J),nt&&(X=F3(X)),F&&+X==0&&N!=="+"&&(F=!1),ht=(F?N==="("?N:g:N==="-"||N==="("?"":N)+ht,D=(V==="s"&&!isNaN(X)&&ec!==void 0?Og[8+ec/3]:"")+D+(F&&N==="("?")":""),vt){for(P=-1,M=X.length;++P<M;)if(Y=X.charCodeAt(P),48>Y||Y>57){D=(Y===46?o+X.slice(P+1):X.slice(P))+D,X=X.slice(0,P);break}}}L&&!A&&(X=a(X,1/0));var at=ht.length+X.length+D.length,lt=at<q?new Array(q-at+1).join(w):"";switch(L&&A&&(X=a(lt+X,lt.length?q-D.length:1/0),lt=""),k){case"<":X=ht+X+D+lt;break;case"=":X=ht+lt+X+D;break;case"^":X=lt.slice(0,at=lt.length>>1)+ht+X+D+lt.slice(at);break;default:X=lt+ht+X+D;break}return f(X)}return _t.toString=function(){return y+""},_t}function v(y,x){var w=Math.max(-8,Math.min(8,Math.floor(Ha(x)/3)))*3,k=Math.pow(10,-w),N=h((y=tc(y),y.type="f",y),{suffix:Og[8+w/3]});return function(C){return N(k*C)}}return{format:h,formatPrefix:v}}var Rr,gy,py;P3({thousands:",",grouping:[3],currency:["$",""]});function P3(n){return Rr=I3(n),gy=Rr.format,py=Rr.formatPrefix,Rr}function tT(n){return Math.max(0,-Ha(Math.abs(n)))}function eT(n,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ha(a)/3)))*3-Ha(Math.abs(n)))}function nT(n,a){return n=Math.abs(n),a=Math.abs(a)-n,Math.max(0,Ha(a)-Ha(n))+1}function lT(n){var a=0,i=n.children,r=i&&i.length;if(!r)a=1;else for(;--r>=0;)a+=i[r].value;n.value=a}function aT(){return this.eachAfter(lT)}function uT(n,a){let i=-1;for(const r of this)n.call(a,r,++i,this);return this}function iT(n,a){for(var i=this,r=[i],o,f,d=-1;i=r.pop();)if(n.call(a,i,++d,this),o=i.children)for(f=o.length-1;f>=0;--f)r.push(o[f]);return this}function rT(n,a){for(var i=this,r=[i],o=[],f,d,g,m=-1;i=r.pop();)if(o.push(i),f=i.children)for(d=0,g=f.length;d<g;++d)r.push(f[d]);for(;i=o.pop();)n.call(a,i,++m,this);return this}function cT(n,a){let i=-1;for(const r of this)if(n.call(a,r,++i,this))return r}function oT(n){return this.eachAfter(function(a){for(var i=+n(a.data)||0,r=a.children,o=r&&r.length;--o>=0;)i+=r[o].value;a.value=i})}function sT(n){return this.eachBefore(function(a){a.children&&a.children.sort(n)})}function fT(n){for(var a=this,i=dT(a,n),r=[a];a!==i;)a=a.parent,r.push(a);for(var o=r.length;n!==i;)r.splice(o,0,n),n=n.parent;return r}function dT(n,a){if(n===a)return n;var i=n.ancestors(),r=a.ancestors(),o=null;for(n=i.pop(),a=r.pop();n===a;)o=n,n=i.pop(),a=r.pop();return o}function hT(){for(var n=this,a=[n];n=n.parent;)a.push(n);return a}function mT(){return Array.from(this)}function gT(){var n=[];return this.eachBefore(function(a){a.children||n.push(a)}),n}function pT(){var n=this,a=[];return n.each(function(i){i!==n&&a.push({source:i.parent,target:i})}),a}function*yT(){var n=this,a,i=[n],r,o,f;do for(a=i.reverse(),i=[];n=a.pop();)if(yield n,r=n.children)for(o=0,f=r.length;o<f;++o)i.push(r[o]);while(i.length)}function Lf(n,a){n instanceof Map?(n=[void 0,n],a===void 0&&(a=bT)):a===void 0&&(a=xT);for(var i=new nc(n),r,o=[i],f,d,g,m;r=o.pop();)if((d=a(r.data))&&(m=(d=Array.from(d)).length))for(r.children=d,g=m-1;g>=0;--g)o.push(f=d[g]=new nc(d[g])),f.parent=r,f.depth=r.depth+1;return i.eachBefore(_T)}function vT(){return Lf(this).eachBefore(ST)}function xT(n){return n.children}function bT(n){return Array.isArray(n)?n[1]:null}function ST(n){n.data.value!==void 0&&(n.value=n.data.value),n.data=n.data.data}function _T(n){var a=0;do n.height=a;while((n=n.parent)&&n.height<++a)}function nc(n){this.data=n,this.depth=this.height=0,this.parent=null}nc.prototype=Lf.prototype={constructor:nc,count:aT,each:uT,eachAfter:rT,eachBefore:iT,find:cT,sum:oT,sort:sT,path:fT,ancestors:hT,descendants:mT,leaves:gT,links:pT,copy:vT,[Symbol.iterator]:yT};function wT(n){return n==null?null:TT(n)}function TT(n){if(typeof n!="function")throw new Error;return n}function Ug(){return 0}function MT(n){return function(){return n}}const ET=1664525,AT=1013904223,jg=4294967296;function CT(){let n=1;return()=>(n=(ET*n+AT)%jg)/jg}function zT(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function NT(n,a){let i=n.length,r,o;for(;i;)o=a()*i--|0,r=n[i],n[i]=n[o],n[o]=r;return n}function DT(n,a){for(var i=0,r=(n=NT(Array.from(n),a)).length,o=[],f,d;i<r;)f=n[i],d&&yy(d,f)?++i:(d=OT(o=RT(o,f)),i=0);return d}function RT(n,a){var i,r;if(qs(a,n))return[a];for(i=0;i<n.length;++i)if(Or(a,n[i])&&qs(Ju(n[i],a),n))return[n[i],a];for(i=0;i<n.length-1;++i)for(r=i+1;r<n.length;++r)if(Or(Ju(n[i],n[r]),a)&&Or(Ju(n[i],a),n[r])&&Or(Ju(n[r],a),n[i])&&qs(vy(n[i],n[r],a),n))return[n[i],n[r],a];throw new Error}function Or(n,a){var i=n.r-a.r,r=a.x-n.x,o=a.y-n.y;return i<0||i*i<r*r+o*o}function yy(n,a){var i=n.r-a.r+Math.max(n.r,a.r,1)*1e-9,r=a.x-n.x,o=a.y-n.y;return i>0&&i*i>r*r+o*o}function qs(n,a){for(var i=0;i<a.length;++i)if(!yy(n,a[i]))return!1;return!0}function OT(n){switch(n.length){case 1:return UT(n[0]);case 2:return Ju(n[0],n[1]);case 3:return vy(n[0],n[1],n[2])}}function UT(n){return{x:n.x,y:n.y,r:n.r}}function Ju(n,a){var i=n.x,r=n.y,o=n.r,f=a.x,d=a.y,g=a.r,m=f-i,h=d-r,v=g-o,y=Math.sqrt(m*m+h*h);return{x:(i+f+m/y*v)/2,y:(r+d+h/y*v)/2,r:(y+o+g)/2}}function vy(n,a,i){var r=n.x,o=n.y,f=n.r,d=a.x,g=a.y,m=a.r,h=i.x,v=i.y,y=i.r,x=r-d,w=r-h,k=o-g,N=o-v,C=m-f,A=y-f,q=r*r+o*o-f*f,L=q-d*d-g*g+m*m,J=q-h*h-v*v+y*y,nt=w*k-x*N,V=(k*J-N*L)/(nt*2)-r,K=(N*C-k*A)/nt,st=(w*L-x*J)/(nt*2)-o,dt=(x*A-w*C)/nt,vt=K*K+dt*dt-1,_t=2*(f+V*K+st*dt),X=V*V+st*st-f*f,ht=-(Math.abs(vt)>1e-6?(_t+Math.sqrt(_t*_t-4*vt*X))/(2*vt):X/_t);return{x:r+V+K*ht,y:o+st+dt*ht,r:ht}}function Hg(n,a,i){var r=n.x-a.x,o,f,d=n.y-a.y,g,m,h=r*r+d*d;h?(f=a.r+i.r,f*=f,m=n.r+i.r,m*=m,f>m?(o=(h+m-f)/(2*h),g=Math.sqrt(Math.max(0,m/h-o*o)),i.x=n.x-o*r-g*d,i.y=n.y-o*d+g*r):(o=(h+f-m)/(2*h),g=Math.sqrt(Math.max(0,f/h-o*o)),i.x=a.x+o*r-g*d,i.y=a.y+o*d+g*r)):(i.x=a.x+i.r,i.y=a.y)}function Lg(n,a){var i=n.r+a.r-1e-6,r=a.x-n.x,o=a.y-n.y;return i>0&&i*i>r*r+o*o}function kg(n){var a=n._,i=n.next._,r=a.r+i.r,o=(a.x*i.r+i.x*a.r)/r,f=(a.y*i.r+i.y*a.r)/r;return o*o+f*f}function Ur(n){this._=n,this.next=null,this.previous=null}function jT(n,a){if(!(f=(n=zT(n)).length))return 0;var i,r,o,f,d,g,m,h,v,y,x;if(i=n[0],i.x=0,i.y=0,!(f>1))return i.r;if(r=n[1],i.x=-r.r,r.x=i.r,r.y=0,!(f>2))return i.r+r.r;Hg(r,i,o=n[2]),i=new Ur(i),r=new Ur(r),o=new Ur(o),i.next=o.previous=r,r.next=i.previous=o,o.next=r.previous=i;t:for(m=3;m<f;++m){Hg(i._,r._,o=n[m]),o=new Ur(o),h=r.next,v=i.previous,y=r._.r,x=i._.r;do if(y<=x){if(Lg(h._,o._)){r=h,i.next=r,r.previous=i,--m;continue t}y+=h._.r,h=h.next}else{if(Lg(v._,o._)){i=v,i.next=r,r.previous=i,--m;continue t}x+=v._.r,v=v.previous}while(h!==v.next);for(o.previous=i,o.next=r,i.next=r.previous=r=o,d=kg(i);(o=o.next)!==r;)(g=kg(o))<d&&(i=o,d=g);r=i.next}for(i=[r._],o=r;(o=o.next)!==r;)i.push(o._);for(o=DT(i,a),m=0;m<f;++m)i=n[m],i.x-=o.x,i.y-=o.y;return o.r}function HT(n){return Math.sqrt(n.value)}function LT(){var n=null,a=1,i=1,r=Ug;function o(f){const d=CT();return f.x=a/2,f.y=i/2,n?f.eachBefore(Yg(n)).eachAfter(Gs(r,.5,d)).eachBefore(Bg(1)):f.eachBefore(Yg(HT)).eachAfter(Gs(Ug,1,d)).eachAfter(Gs(r,f.r/Math.min(a,i),d)).eachBefore(Bg(Math.min(a,i)/(2*f.r))),f}return o.radius=function(f){return arguments.length?(n=wT(f),o):n},o.size=function(f){return arguments.length?(a=+f[0],i=+f[1],o):[a,i]},o.padding=function(f){return arguments.length?(r=typeof f=="function"?f:MT(+f),o):r},o}function Yg(n){return function(a){a.children||(a.r=Math.max(0,+n(a)||0))}}function Gs(n,a,i){return function(r){if(o=r.children){var o,f,d=o.length,g=n(r)*a||0,m;if(g)for(f=0;f<d;++f)o[f].r+=g;if(m=jT(o,i),g)for(f=0;f<d;++f)o[f].r-=g;r.r=m+g}}}function Bg(n){return function(a){var i=a.parent;a.r*=n,i&&(a.x=i.x+n*a.x,a.y=i.y+n*a.y)}}function dc(n,a){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(a).domain(n);break}return this}const qg=Symbol("implicit");function xy(){var n=new sg,a=[],i=[],r=qg;function o(f){let d=n.get(f);if(d===void 0){if(r!==qg)return r;n.set(f,d=a.push(f)-1)}return i[d%i.length]}return o.domain=function(f){if(!arguments.length)return a.slice();a=[],n=new sg;for(const d of f)n.has(d)||n.set(d,a.push(d)-1);return o},o.range=function(f){return arguments.length?(i=Array.from(f),o):i.slice()},o.unknown=function(f){return arguments.length?(r=f,o):r},o.copy=function(){return xy(a,i).unknown(r)},dc.apply(o,arguments),o}function kf(){var n=xy().unknown(void 0),a=n.domain,i=n.range,r=0,o=1,f,d,g=!1,m=0,h=0,v=.5;delete n.unknown;function y(){var x=a().length,w=o<r,k=w?o:r,N=w?r:o;f=(N-k)/Math.max(1,x-m+h*2),g&&(f=Math.floor(f)),k+=(N-k-f*(x-m))*v,d=f*(1-m),g&&(k=Math.round(k),d=Math.round(d));var C=sS(x).map(function(A){return k+f*A});return i(w?C.reverse():C)}return n.domain=function(x){return arguments.length?(a(x),y()):a()},n.range=function(x){return arguments.length?([r,o]=x,r=+r,o=+o,y()):[r,o]},n.rangeRound=function(x){return[r,o]=x,r=+r,o=+o,g=!0,y()},n.bandwidth=function(){return d},n.step=function(){return f},n.round=function(x){return arguments.length?(g=!!x,y()):g},n.padding=function(x){return arguments.length?(m=Math.min(1,h=+x),y()):m},n.paddingInner=function(x){return arguments.length?(m=Math.min(1,x),y()):m},n.paddingOuter=function(x){return arguments.length?(h=+x,y()):h},n.align=function(x){return arguments.length?(v=Math.max(0,Math.min(1,x)),y()):v},n.copy=function(){return kf(a(),[r,o]).round(g).paddingInner(m).paddingOuter(h).align(v)},dc.apply(y(),arguments)}function kT(n){return function(){return n}}function YT(n){return+n}var Gg=[0,1];function Na(n){return n}function vf(n,a){return(a-=n=+n)?function(i){return(i-n)/a}:kT(isNaN(a)?NaN:.5)}function BT(n,a){var i;return n>a&&(i=n,n=a,a=i),function(r){return Math.max(n,Math.min(a,r))}}function qT(n,a,i){var r=n[0],o=n[1],f=a[0],d=a[1];return o<r?(r=vf(o,r),f=i(d,f)):(r=vf(r,o),f=i(f,d)),function(g){return f(r(g))}}function GT(n,a,i){var r=Math.min(n.length,a.length)-1,o=new Array(r),f=new Array(r),d=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),a=a.slice().reverse());++d<r;)o[d]=vf(n[d],n[d+1]),f[d]=i(a[d],a[d+1]);return function(g){var m=tS(n,g,1,r)-1;return f[m](o[m](g))}}function by(n,a){return a.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function XT(){var n=Gg,a=Gg,i=Rf,r,o,f,d=Na,g,m,h;function v(){var x=Math.min(n.length,a.length);return d!==Na&&(d=BT(n[0],n[x-1])),g=x>2?GT:qT,m=h=null,y}function y(x){return x==null||isNaN(x=+x)?f:(m||(m=g(n.map(r),a,i)))(r(d(x)))}return y.invert=function(x){return d(o((h||(h=g(a,n.map(r),We)))(x)))},y.domain=function(x){return arguments.length?(n=Array.from(x,YT),v()):n.slice()},y.range=function(x){return arguments.length?(a=Array.from(x),v()):a.slice()},y.rangeRound=function(x){return a=Array.from(x),i=ww,v()},y.clamp=function(x){return arguments.length?(d=x?!0:Na,v()):d!==Na},y.interpolate=function(x){return arguments.length?(i=x,v()):i},y.unknown=function(x){return arguments.length?(f=x,y):f},function(x,w){return r=x,o=w,v()}}function Sy(){return XT()(Na,Na)}function VT(n,a,i,r){var o=af(n,a,i),f;switch(r=tc(r??",f"),r.type){case"s":{var d=Math.max(Math.abs(n),Math.abs(a));return r.precision==null&&!isNaN(f=eT(o,d))&&(r.precision=f),py(r,d)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=nT(o,Math.max(Math.abs(n),Math.abs(a))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=tT(o))&&(r.precision=f-(r.type==="%")*2);break}}return gy(r)}function QT(n){var a=n.domain;return n.ticks=function(i){var r=a();return cS(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var o=a();return VT(o[0],o[o.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=a(),o=0,f=r.length-1,d=r[o],g=r[f],m,h,v=10;for(g<d&&(h=d,d=g,g=h,h=o,o=f,f=h);v-- >0;){if(h=lf(d,g,i),h===m)return r[o]=d,r[f]=g,a(r);if(h>0)d=Math.floor(d/h)*h,g=Math.ceil(g/h)*h;else if(h<0)d=Math.ceil(d*h)/h,g=Math.floor(g*h)/h;else break;m=h}return n},n}function _y(){var n=Sy();return n.copy=function(){return by(n,_y())},dc.apply(n,arguments),QT(n)}function ZT(n,a){n=n.slice();var i=0,r=n.length-1,o=n[i],f=n[r],d;return f<o&&(d=i,i=r,r=d,d=o,o=f,f=d),n[i]=a.floor(o),n[r]=a.ceil(f),n}const Xs=new Date,Vs=new Date;function ne(n,a,i,r){function o(f){return n(f=arguments.length===0?new Date:new Date(+f)),f}return o.floor=f=>(n(f=new Date(+f)),f),o.ceil=f=>(n(f=new Date(f-1)),a(f,1),n(f),f),o.round=f=>{const d=o(f),g=o.ceil(f);return f-d<g-f?d:g},o.offset=(f,d)=>(a(f=new Date(+f),d==null?1:Math.floor(d)),f),o.range=(f,d,g)=>{const m=[];if(f=o.ceil(f),g=g==null?1:Math.floor(g),!(f<d)||!(g>0))return m;let h;do m.push(h=new Date(+f)),a(f,g),n(f);while(h<f&&f<d);return m},o.filter=f=>ne(d=>{if(d>=d)for(;n(d),!f(d);)d.setTime(d-1)},(d,g)=>{if(d>=d)if(g<0)for(;++g<=0;)for(;a(d,-1),!f(d););else for(;--g>=0;)for(;a(d,1),!f(d););}),i&&(o.count=(f,d)=>(Xs.setTime(+f),Vs.setTime(+d),n(Xs),n(Vs),Math.floor(i(Xs,Vs))),o.every=f=>(f=Math.floor(f),!isFinite(f)||!(f>0)?null:f>1?o.filter(r?d=>r(d)%f===0:d=>o.count(0,d)%f===0):o)),o}const lc=ne(()=>{},(n,a)=>{n.setTime(+n+a)},(n,a)=>a-n);lc.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?ne(a=>{a.setTime(Math.floor(a/n)*n)},(a,i)=>{a.setTime(+a+i*n)},(a,i)=>(i-a)/n):lc);lc.range;const Rn=1e3,Ze=Rn*60,On=Ze*60,kn=On*24,Yf=kn*7,Xg=kn*30,Qs=kn*365,Da=ne(n=>{n.setTime(n-n.getMilliseconds())},(n,a)=>{n.setTime(+n+a*Rn)},(n,a)=>(a-n)/Rn,n=>n.getUTCSeconds());Da.range;const Bf=ne(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Rn)},(n,a)=>{n.setTime(+n+a*Ze)},(n,a)=>(a-n)/Ze,n=>n.getMinutes());Bf.range;const $T=ne(n=>{n.setUTCSeconds(0,0)},(n,a)=>{n.setTime(+n+a*Ze)},(n,a)=>(a-n)/Ze,n=>n.getUTCMinutes());$T.range;const qf=ne(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Rn-n.getMinutes()*Ze)},(n,a)=>{n.setTime(+n+a*On)},(n,a)=>(a-n)/On,n=>n.getHours());qf.range;const KT=ne(n=>{n.setUTCMinutes(0,0,0)},(n,a)=>{n.setTime(+n+a*On)},(n,a)=>(a-n)/On,n=>n.getUTCHours());KT.range;const oi=ne(n=>n.setHours(0,0,0,0),(n,a)=>n.setDate(n.getDate()+a),(n,a)=>(a-n-(a.getTimezoneOffset()-n.getTimezoneOffset())*Ze)/kn,n=>n.getDate()-1);oi.range;const Gf=ne(n=>{n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCDate(n.getUTCDate()+a)},(n,a)=>(a-n)/kn,n=>n.getUTCDate()-1);Gf.range;const JT=ne(n=>{n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCDate(n.getUTCDate()+a)},(n,a)=>(a-n)/kn,n=>Math.floor(n/kn));JT.range;function Gl(n){return ne(a=>{a.setDate(a.getDate()-(a.getDay()+7-n)%7),a.setHours(0,0,0,0)},(a,i)=>{a.setDate(a.getDate()+i*7)},(a,i)=>(i-a-(i.getTimezoneOffset()-a.getTimezoneOffset())*Ze)/Yf)}const hc=Gl(0),ac=Gl(1),FT=Gl(2),WT=Gl(3),La=Gl(4),IT=Gl(5),PT=Gl(6);hc.range;ac.range;FT.range;WT.range;La.range;IT.range;PT.range;function Xl(n){return ne(a=>{a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-n)%7),a.setUTCHours(0,0,0,0)},(a,i)=>{a.setUTCDate(a.getUTCDate()+i*7)},(a,i)=>(i-a)/Yf)}const wy=Xl(0),uc=Xl(1),tM=Xl(2),eM=Xl(3),ka=Xl(4),nM=Xl(5),lM=Xl(6);wy.range;uc.range;tM.range;eM.range;ka.range;nM.range;lM.range;const Xf=ne(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,a)=>{n.setMonth(n.getMonth()+a)},(n,a)=>a.getMonth()-n.getMonth()+(a.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Xf.range;const aM=ne(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCMonth(n.getUTCMonth()+a)},(n,a)=>a.getUTCMonth()-n.getUTCMonth()+(a.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());aM.range;const Yn=ne(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,a)=>{n.setFullYear(n.getFullYear()+a)},(n,a)=>a.getFullYear()-n.getFullYear(),n=>n.getFullYear());Yn.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:ne(a=>{a.setFullYear(Math.floor(a.getFullYear()/n)*n),a.setMonth(0,1),a.setHours(0,0,0,0)},(a,i)=>{a.setFullYear(a.getFullYear()+i*n)});Yn.range;const Bl=ne(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCFullYear(n.getUTCFullYear()+a)},(n,a)=>a.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());Bl.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:ne(a=>{a.setUTCFullYear(Math.floor(a.getUTCFullYear()/n)*n),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},(a,i)=>{a.setUTCFullYear(a.getUTCFullYear()+i*n)});Bl.range;function uM(n,a,i,r,o,f){const d=[[Da,1,Rn],[Da,5,5*Rn],[Da,15,15*Rn],[Da,30,30*Rn],[f,1,Ze],[f,5,5*Ze],[f,15,15*Ze],[f,30,30*Ze],[o,1,On],[o,3,3*On],[o,6,6*On],[o,12,12*On],[r,1,kn],[r,2,2*kn],[i,1,Yf],[a,1,Xg],[a,3,3*Xg],[n,1,Qs]];function g(h,v,y){const x=v<h;x&&([h,v]=[v,h]);const w=y&&typeof y.range=="function"?y:m(h,v,y),k=w?w.range(h,+v+1):[];return x?k.reverse():k}function m(h,v,y){const x=Math.abs(v-h)/y,w=Ef(([,,C])=>C).right(d,x);if(w===d.length)return n.every(af(h/Qs,v/Qs,y));if(w===0)return lc.every(Math.max(af(h,v,y),1));const[k,N]=d[x/d[w-1][2]<d[w][2]/x?w-1:w];return k.every(N)}return[g,m]}const[iM,rM]=uM(Yn,Xf,hc,oi,qf,Bf);function Zs(n){if(0<=n.y&&n.y<100){var a=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return a.setFullYear(n.y),a}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function $s(n){if(0<=n.y&&n.y<100){var a=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return a.setUTCFullYear(n.y),a}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Gu(n,a,i){return{y:n,m:a,d:i,H:0,M:0,S:0,L:0}}function cM(n){var a=n.dateTime,i=n.date,r=n.time,o=n.periods,f=n.days,d=n.shortDays,g=n.months,m=n.shortMonths,h=Xu(o),v=Vu(o),y=Xu(f),x=Vu(f),w=Xu(d),k=Vu(d),N=Xu(g),C=Vu(g),A=Xu(m),q=Vu(m),L={a:Y,A:F,b:at,B:lt,c:null,d:Jg,e:Jg,f:DM,g:qM,G:XM,H:CM,I:zM,j:NM,L:Ty,m:RM,M:OM,p:S,q:O,Q:Ig,s:Pg,S:UM,u:jM,U:HM,V:LM,w:kM,W:YM,x:null,X:null,y:BM,Y:GM,Z:VM,"%":Wg},J={a:Z,A:I,b:tt,B:ut,c:null,d:Fg,e:Fg,f:KM,g:a4,G:i4,H:QM,I:ZM,j:$M,L:Ey,m:JM,M:FM,p:ct,q:Ct,Q:Ig,s:Pg,S:WM,u:IM,U:PM,V:t4,w:e4,W:n4,x:null,X:null,y:l4,Y:u4,Z:r4,"%":Wg},nt={a:vt,A:_t,b:X,B:ht,c:D,d:$g,e:$g,f:TM,g:Zg,G:Qg,H:Kg,I:Kg,j:bM,L:wM,m:xM,M:SM,p:dt,q:vM,Q:EM,s:AM,S:_M,u:hM,U:mM,V:gM,w:dM,W:pM,x:P,X:M,y:Zg,Y:Qg,Z:yM,"%":MM};L.x=V(i,L),L.X=V(r,L),L.c=V(a,L),J.x=V(i,J),J.X=V(r,J),J.c=V(a,J);function V(et,gt){return function(pt){var W=[],Vt=-1,St=0,Kt=et.length,Yt,ge,fn;for(pt instanceof Date||(pt=new Date(+pt));++Vt<Kt;)et.charCodeAt(Vt)===37&&(W.push(et.slice(St,Vt)),(ge=Vg[Yt=et.charAt(++Vt)])!=null?Yt=et.charAt(++Vt):ge=Yt==="e"?" ":"0",(fn=gt[Yt])&&(Yt=fn(pt,ge)),W.push(Yt),St=Vt+1);return W.push(et.slice(St,Vt)),W.join("")}}function K(et,gt){return function(pt){var W=Gu(1900,void 0,1),Vt=st(W,et,pt+="",0),St,Kt;if(Vt!=pt.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(gt&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(St=$s(Gu(W.y,0,1)),Kt=St.getUTCDay(),St=Kt>4||Kt===0?uc.ceil(St):uc(St),St=Gf.offset(St,(W.V-1)*7),W.y=St.getUTCFullYear(),W.m=St.getUTCMonth(),W.d=St.getUTCDate()+(W.w+6)%7):(St=Zs(Gu(W.y,0,1)),Kt=St.getDay(),St=Kt>4||Kt===0?ac.ceil(St):ac(St),St=oi.offset(St,(W.V-1)*7),W.y=St.getFullYear(),W.m=St.getMonth(),W.d=St.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),Kt="Z"in W?$s(Gu(W.y,0,1)).getUTCDay():Zs(Gu(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(Kt+5)%7:W.w+W.U*7-(Kt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,$s(W)):Zs(W)}}function st(et,gt,pt,W){for(var Vt=0,St=gt.length,Kt=pt.length,Yt,ge;Vt<St;){if(W>=Kt)return-1;if(Yt=gt.charCodeAt(Vt++),Yt===37){if(Yt=gt.charAt(Vt++),ge=nt[Yt in Vg?gt.charAt(Vt++):Yt],!ge||(W=ge(et,pt,W))<0)return-1}else if(Yt!=pt.charCodeAt(W++))return-1}return W}function dt(et,gt,pt){var W=h.exec(gt.slice(pt));return W?(et.p=v.get(W[0].toLowerCase()),pt+W[0].length):-1}function vt(et,gt,pt){var W=w.exec(gt.slice(pt));return W?(et.w=k.get(W[0].toLowerCase()),pt+W[0].length):-1}function _t(et,gt,pt){var W=y.exec(gt.slice(pt));return W?(et.w=x.get(W[0].toLowerCase()),pt+W[0].length):-1}function X(et,gt,pt){var W=A.exec(gt.slice(pt));return W?(et.m=q.get(W[0].toLowerCase()),pt+W[0].length):-1}function ht(et,gt,pt){var W=N.exec(gt.slice(pt));return W?(et.m=C.get(W[0].toLowerCase()),pt+W[0].length):-1}function D(et,gt,pt){return st(et,a,gt,pt)}function P(et,gt,pt){return st(et,i,gt,pt)}function M(et,gt,pt){return st(et,r,gt,pt)}function Y(et){return d[et.getDay()]}function F(et){return f[et.getDay()]}function at(et){return m[et.getMonth()]}function lt(et){return g[et.getMonth()]}function S(et){return o[+(et.getHours()>=12)]}function O(et){return 1+~~(et.getMonth()/3)}function Z(et){return d[et.getUTCDay()]}function I(et){return f[et.getUTCDay()]}function tt(et){return m[et.getUTCMonth()]}function ut(et){return g[et.getUTCMonth()]}function ct(et){return o[+(et.getUTCHours()>=12)]}function Ct(et){return 1+~~(et.getUTCMonth()/3)}return{format:function(et){var gt=V(et+="",L);return gt.toString=function(){return et},gt},parse:function(et){var gt=K(et+="",!1);return gt.toString=function(){return et},gt},utcFormat:function(et){var gt=V(et+="",J);return gt.toString=function(){return et},gt},utcParse:function(et){var gt=K(et+="",!0);return gt.toString=function(){return et},gt}}}var Vg={"-":"",_:" ",0:"0"},ie=/^\s*\d+/,oM=/^%/,sM=/[\\^$*+?|[\]().{}]/g;function Dt(n,a,i){var r=n<0?"-":"",o=(r?-n:n)+"",f=o.length;return r+(f<i?new Array(i-f+1).join(a)+o:o)}function fM(n){return n.replace(sM,"\\$&")}function Xu(n){return new RegExp("^(?:"+n.map(fM).join("|")+")","i")}function Vu(n){return new Map(n.map((a,i)=>[a.toLowerCase(),i]))}function dM(n,a,i){var r=ie.exec(a.slice(i,i+1));return r?(n.w=+r[0],i+r[0].length):-1}function hM(n,a,i){var r=ie.exec(a.slice(i,i+1));return r?(n.u=+r[0],i+r[0].length):-1}function mM(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.U=+r[0],i+r[0].length):-1}function gM(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.V=+r[0],i+r[0].length):-1}function pM(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.W=+r[0],i+r[0].length):-1}function Qg(n,a,i){var r=ie.exec(a.slice(i,i+4));return r?(n.y=+r[0],i+r[0].length):-1}function Zg(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),i+r[0].length):-1}function yM(n,a,i){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(i,i+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),i+r[0].length):-1}function vM(n,a,i){var r=ie.exec(a.slice(i,i+1));return r?(n.q=r[0]*3-3,i+r[0].length):-1}function xM(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.m=r[0]-1,i+r[0].length):-1}function $g(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.d=+r[0],i+r[0].length):-1}function bM(n,a,i){var r=ie.exec(a.slice(i,i+3));return r?(n.m=0,n.d=+r[0],i+r[0].length):-1}function Kg(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.H=+r[0],i+r[0].length):-1}function SM(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.M=+r[0],i+r[0].length):-1}function _M(n,a,i){var r=ie.exec(a.slice(i,i+2));return r?(n.S=+r[0],i+r[0].length):-1}function wM(n,a,i){var r=ie.exec(a.slice(i,i+3));return r?(n.L=+r[0],i+r[0].length):-1}function TM(n,a,i){var r=ie.exec(a.slice(i,i+6));return r?(n.L=Math.floor(r[0]/1e3),i+r[0].length):-1}function MM(n,a,i){var r=oM.exec(a.slice(i,i+1));return r?i+r[0].length:-1}function EM(n,a,i){var r=ie.exec(a.slice(i));return r?(n.Q=+r[0],i+r[0].length):-1}function AM(n,a,i){var r=ie.exec(a.slice(i));return r?(n.s=+r[0],i+r[0].length):-1}function Jg(n,a){return Dt(n.getDate(),a,2)}function CM(n,a){return Dt(n.getHours(),a,2)}function zM(n,a){return Dt(n.getHours()%12||12,a,2)}function NM(n,a){return Dt(1+oi.count(Yn(n),n),a,3)}function Ty(n,a){return Dt(n.getMilliseconds(),a,3)}function DM(n,a){return Ty(n,a)+"000"}function RM(n,a){return Dt(n.getMonth()+1,a,2)}function OM(n,a){return Dt(n.getMinutes(),a,2)}function UM(n,a){return Dt(n.getSeconds(),a,2)}function jM(n){var a=n.getDay();return a===0?7:a}function HM(n,a){return Dt(hc.count(Yn(n)-1,n),a,2)}function My(n){var a=n.getDay();return a>=4||a===0?La(n):La.ceil(n)}function LM(n,a){return n=My(n),Dt(La.count(Yn(n),n)+(Yn(n).getDay()===4),a,2)}function kM(n){return n.getDay()}function YM(n,a){return Dt(ac.count(Yn(n)-1,n),a,2)}function BM(n,a){return Dt(n.getFullYear()%100,a,2)}function qM(n,a){return n=My(n),Dt(n.getFullYear()%100,a,2)}function GM(n,a){return Dt(n.getFullYear()%1e4,a,4)}function XM(n,a){var i=n.getDay();return n=i>=4||i===0?La(n):La.ceil(n),Dt(n.getFullYear()%1e4,a,4)}function VM(n){var a=n.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Dt(a/60|0,"0",2)+Dt(a%60,"0",2)}function Fg(n,a){return Dt(n.getUTCDate(),a,2)}function QM(n,a){return Dt(n.getUTCHours(),a,2)}function ZM(n,a){return Dt(n.getUTCHours()%12||12,a,2)}function $M(n,a){return Dt(1+Gf.count(Bl(n),n),a,3)}function Ey(n,a){return Dt(n.getUTCMilliseconds(),a,3)}function KM(n,a){return Ey(n,a)+"000"}function JM(n,a){return Dt(n.getUTCMonth()+1,a,2)}function FM(n,a){return Dt(n.getUTCMinutes(),a,2)}function WM(n,a){return Dt(n.getUTCSeconds(),a,2)}function IM(n){var a=n.getUTCDay();return a===0?7:a}function PM(n,a){return Dt(wy.count(Bl(n)-1,n),a,2)}function Ay(n){var a=n.getUTCDay();return a>=4||a===0?ka(n):ka.ceil(n)}function t4(n,a){return n=Ay(n),Dt(ka.count(Bl(n),n)+(Bl(n).getUTCDay()===4),a,2)}function e4(n){return n.getUTCDay()}function n4(n,a){return Dt(uc.count(Bl(n)-1,n),a,2)}function l4(n,a){return Dt(n.getUTCFullYear()%100,a,2)}function a4(n,a){return n=Ay(n),Dt(n.getUTCFullYear()%100,a,2)}function u4(n,a){return Dt(n.getUTCFullYear()%1e4,a,4)}function i4(n,a){var i=n.getUTCDay();return n=i>=4||i===0?ka(n):ka.ceil(n),Dt(n.getUTCFullYear()%1e4,a,4)}function r4(){return"+0000"}function Wg(){return"%"}function Ig(n){return+n}function Pg(n){return Math.floor(+n/1e3)}var za,Vf,Cy;c4({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function c4(n){return za=cM(n),Vf=za.format,Cy=za.parse,za.utcFormat,za.utcParse,za}function o4(n){return new Date(n)}function s4(n){return n instanceof Date?+n:+new Date(+n)}function zy(n,a,i,r,o,f,d,g,m,h){var v=Sy(),y=v.invert,x=v.domain,w=h(".%L"),k=h(":%S"),N=h("%I:%M"),C=h("%I %p"),A=h("%a %d"),q=h("%b %d"),L=h("%B"),J=h("%Y");function nt(V){return(m(V)<V?w:g(V)<V?k:d(V)<V?N:f(V)<V?C:r(V)<V?o(V)<V?A:q:i(V)<V?L:J)(V)}return v.invert=function(V){return new Date(y(V))},v.domain=function(V){return arguments.length?x(Array.from(V,s4)):x().map(o4)},v.ticks=function(V){var K=x();return n(K[0],K[K.length-1],V??10)},v.tickFormat=function(V,K){return K==null?nt:h(K)},v.nice=function(V){var K=x();return(!V||typeof V.range!="function")&&(V=a(K[0],K[K.length-1],V??10)),V?x(ZT(K,V)):v},v.copy=function(){return by(v,zy(n,a,i,r,o,f,d,g,m,h))},v}function Qf(){return dc.apply(zy(iM,rM,Yn,Xf,hc,oi,qf,Bf,Da,Vf).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ue(n){return function(){return n}}function Ny(n){let a=3;return n.digits=function(i){if(!arguments.length)return a;if(i==null)a=null;else{const r=Math.floor(i);if(!(r>=0))throw new RangeError(`invalid digits: ${i}`);a=r}return n},()=>new Q3(a)}function Dy(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function Ry(n){this._context=n}Ry.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;default:this._context.lineTo(n,a);break}}};function Oy(n){return new Ry(n)}function Uy(n){return n[0]}function jy(n){return n[1]}function Hy(n,a){var i=ue(!0),r=null,o=Oy,f=null,d=Ny(g);n=typeof n=="function"?n:n===void 0?Uy:ue(n),a=typeof a=="function"?a:a===void 0?jy:ue(a);function g(m){var h,v=(m=Dy(m)).length,y,x=!1,w;for(r==null&&(f=o(w=d())),h=0;h<=v;++h)!(h<v&&i(y=m[h],h,m))===x&&((x=!x)?f.lineStart():f.lineEnd()),x&&f.point(+n(y,h,m),+a(y,h,m));if(w)return f=null,w+""||null}return g.x=function(m){return arguments.length?(n=typeof m=="function"?m:ue(+m),g):n},g.y=function(m){return arguments.length?(a=typeof m=="function"?m:ue(+m),g):a},g.defined=function(m){return arguments.length?(i=typeof m=="function"?m:ue(!!m),g):i},g.curve=function(m){return arguments.length?(o=m,r!=null&&(f=o(r)),g):o},g.context=function(m){return arguments.length?(m==null?r=f=null:f=o(r=m),g):r},g}function f4(n,a,i){var r=null,o=ue(!0),f=null,d=Oy,g=null,m=Ny(h);n=typeof n=="function"?n:n===void 0?Uy:ue(+n),a=typeof a=="function"?a:ue(a===void 0?0:+a),i=typeof i=="function"?i:i===void 0?jy:ue(+i);function h(y){var x,w,k,N=(y=Dy(y)).length,C,A=!1,q,L=new Array(N),J=new Array(N);for(f==null&&(g=d(q=m())),x=0;x<=N;++x){if(!(x<N&&o(C=y[x],x,y))===A)if(A=!A)w=x,g.areaStart(),g.lineStart();else{for(g.lineEnd(),g.lineStart(),k=x-1;k>=w;--k)g.point(L[k],J[k]);g.lineEnd(),g.areaEnd()}A&&(L[x]=+n(C,x,y),J[x]=+a(C,x,y),g.point(r?+r(C,x,y):L[x],i?+i(C,x,y):J[x]))}if(q)return g=null,q+""||null}function v(){return Hy().defined(o).curve(d).context(f)}return h.x=function(y){return arguments.length?(n=typeof y=="function"?y:ue(+y),r=null,h):n},h.x0=function(y){return arguments.length?(n=typeof y=="function"?y:ue(+y),h):n},h.x1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:ue(+y),h):r},h.y=function(y){return arguments.length?(a=typeof y=="function"?y:ue(+y),i=null,h):a},h.y0=function(y){return arguments.length?(a=typeof y=="function"?y:ue(+y),h):a},h.y1=function(y){return arguments.length?(i=y==null?null:typeof y=="function"?y:ue(+y),h):i},h.lineX0=h.lineY0=function(){return v().x(n).y(a)},h.lineY1=function(){return v().x(n).y(i)},h.lineX1=function(){return v().x(r).y(a)},h.defined=function(y){return arguments.length?(o=typeof y=="function"?y:ue(!!y),h):o},h.curve=function(y){return arguments.length?(d=y,f!=null&&(g=d(f)),h):d},h.context=function(y){return arguments.length?(y==null?f=g=null:g=d(f=y),h):f},h}function tp(n){return n<0?-1:1}function ep(n,a,i){var r=n._x1-n._x0,o=a-n._x1,f=(n._y1-n._y0)/(r||o<0&&-0),d=(i-n._y1)/(o||r<0&&-0),g=(f*o+d*r)/(r+o);return(tp(f)+tp(d))*Math.min(Math.abs(f),Math.abs(d),.5*Math.abs(g))||0}function np(n,a){var i=n._x1-n._x0;return i?(3*(n._y1-n._y0)/i-a)/2:a}function Ks(n,a,i){var r=n._x0,o=n._y0,f=n._x1,d=n._y1,g=(f-r)/3;n._context.bezierCurveTo(r+g,o+g*a,f-g,d-g*i,f,d)}function ic(n){this._context=n}ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ks(this,this._t0,np(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){var i=NaN;if(n=+n,a=+a,!(n===this._x1&&a===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;break;case 2:this._point=3,Ks(this,np(this,i=ep(this,n,a)),i);break;default:Ks(this,this._t0,i=ep(this,n,a));break}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a,this._t0=i}}};Object.create(ic.prototype).point=function(n,a){ic.prototype.point.call(this,a,n)};function lp(n){return new ic(n)}const jr=n=>()=>n;function d4(n,{sourceEvent:a,target:i,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Un(n,a,i){this.k=n,this.x=a,this.y=i}Un.prototype={constructor:Un,scale:function(n){return n===1?this:new Un(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new Un(this.k,this.x+this.k*n,this.y+this.k*a)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ly=new Un(1,0,0);Un.prototype;function Js(n){n.stopImmediatePropagation()}function Qu(n){n.preventDefault(),n.stopImmediatePropagation()}function h4(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function m4(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function ap(){return this.__zoom||Ly}function g4(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function p4(){return navigator.maxTouchPoints||"ontouchstart"in this}function y4(n,a,i){var r=n.invertX(a[0][0])-i[0][0],o=n.invertX(a[1][0])-i[1][0],f=n.invertY(a[0][1])-i[0][1],d=n.invertY(a[1][1])-i[1][1];return n.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),d>f?(f+d)/2:Math.min(0,f)||Math.max(0,d))}function ky(){var n=h4,a=m4,i=y4,r=g4,o=p4,f=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],g=250,m=Dw,h=Af("start","zoom","end"),v,y,x,w=500,k=150,N=0,C=10;function A(D){D.property("__zoom",ap).on("wheel.zoom",st,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",vt).filter(o).on("touchstart.zoom",_t).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",ht).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(D,P,M,Y){var F=D.selection?D.selection():D;F.property("__zoom",ap),D!==F?nt(D,P,M,Y):F.interrupt().each(function(){V(this,arguments).event(Y).start().zoom(null,typeof P=="function"?P.apply(this,arguments):P).end()})},A.scaleBy=function(D,P,M,Y){A.scaleTo(D,function(){var F=this.__zoom.k,at=typeof P=="function"?P.apply(this,arguments):P;return F*at},M,Y)},A.scaleTo=function(D,P,M,Y){A.transform(D,function(){var F=a.apply(this,arguments),at=this.__zoom,lt=M==null?J(F):typeof M=="function"?M.apply(this,arguments):M,S=at.invert(lt),O=typeof P=="function"?P.apply(this,arguments):P;return i(L(q(at,O),lt,S),F,d)},M,Y)},A.translateBy=function(D,P,M,Y){A.transform(D,function(){return i(this.__zoom.translate(typeof P=="function"?P.apply(this,arguments):P,typeof M=="function"?M.apply(this,arguments):M),a.apply(this,arguments),d)},null,Y)},A.translateTo=function(D,P,M,Y,F){A.transform(D,function(){var at=a.apply(this,arguments),lt=this.__zoom,S=Y==null?J(at):typeof Y=="function"?Y.apply(this,arguments):Y;return i(Ly.translate(S[0],S[1]).scale(lt.k).translate(typeof P=="function"?-P.apply(this,arguments):-P,typeof M=="function"?-M.apply(this,arguments):-M),at,d)},Y,F)};function q(D,P){return P=Math.max(f[0],Math.min(f[1],P)),P===D.k?D:new Un(P,D.x,D.y)}function L(D,P,M){var Y=P[0]-M[0]*D.k,F=P[1]-M[1]*D.k;return Y===D.x&&F===D.y?D:new Un(D.k,Y,F)}function J(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function nt(D,P,M,Y){D.on("start.zoom",function(){V(this,arguments).event(Y).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(Y).end()}).tween("zoom",function(){var F=this,at=arguments,lt=V(F,at).event(Y),S=a.apply(F,at),O=M==null?J(S):typeof M=="function"?M.apply(F,at):M,Z=Math.max(S[1][0]-S[0][0],S[1][1]-S[0][1]),I=F.__zoom,tt=typeof P=="function"?P.apply(F,at):P,ut=m(I.invert(O).concat(Z/I.k),tt.invert(O).concat(Z/tt.k));return function(ct){if(ct===1)ct=tt;else{var Ct=ut(ct),et=Z/Ct[2];ct=new Un(et,O[0]-Ct[0]*et,O[1]-Ct[1]*et)}lt.zoom(null,ct)}})}function V(D,P,M){return!M&&D.__zooming||new K(D,P)}function K(D,P){this.that=D,this.args=P,this.active=0,this.sourceEvent=null,this.extent=a.apply(D,P),this.taps=0}K.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,P){return this.mouse&&D!=="mouse"&&(this.mouse[1]=P.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=P.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=P.invert(this.touch1[0])),this.that.__zoom=P,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var P=Ue(this.that).datum();h.call(D,this.that,new d4(D,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:h}),P)}};function st(D,...P){if(!n.apply(this,arguments))return;var M=V(this,P).event(D),Y=this.__zoom,F=Math.max(f[0],Math.min(f[1],Y.k*Math.pow(2,r.apply(this,arguments)))),at=Ol(D);if(M.wheel)(M.mouse[0][0]!==at[0]||M.mouse[0][1]!==at[1])&&(M.mouse[1]=Y.invert(M.mouse[0]=at)),clearTimeout(M.wheel);else{if(Y.k===F)return;M.mouse=[at,Y.invert(at)],Xr(this),M.start()}Qu(D),M.wheel=setTimeout(lt,k),M.zoom("mouse",i(L(q(Y,F),M.mouse[0],M.mouse[1]),M.extent,d));function lt(){M.wheel=null,M.end()}}function dt(D,...P){if(x||!n.apply(this,arguments))return;var M=D.currentTarget,Y=V(this,P,!0).event(D),F=Ue(D.view).on("mousemove.zoom",O,!0).on("mouseup.zoom",Z,!0),at=Ol(D,M),lt=D.clientX,S=D.clientY;P_(D.view),Js(D),Y.mouse=[at,this.__zoom.invert(at)],Xr(this),Y.start();function O(I){if(Qu(I),!Y.moved){var tt=I.clientX-lt,ut=I.clientY-S;Y.moved=tt*tt+ut*ut>N}Y.event(I).zoom("mouse",i(L(Y.that.__zoom,Y.mouse[0]=Ol(I,M),Y.mouse[1]),Y.extent,d))}function Z(I){F.on("mousemove.zoom mouseup.zoom",null),tw(I.view,Y.moved),Qu(I),Y.event(I).end()}}function vt(D,...P){if(n.apply(this,arguments)){var M=this.__zoom,Y=Ol(D.changedTouches?D.changedTouches[0]:D,this),F=M.invert(Y),at=M.k*(D.shiftKey?.5:2),lt=i(L(q(M,at),Y,F),a.apply(this,P),d);Qu(D),g>0?Ue(this).transition().duration(g).call(nt,lt,Y,D):Ue(this).call(A.transform,lt,Y,D)}}function _t(D,...P){if(n.apply(this,arguments)){var M=D.touches,Y=M.length,F=V(this,P,D.changedTouches.length===Y).event(D),at,lt,S,O;for(Js(D),lt=0;lt<Y;++lt)S=M[lt],O=Ol(S,this),O=[O,this.__zoom.invert(O),S.identifier],F.touch0?!F.touch1&&F.touch0[2]!==O[2]&&(F.touch1=O,F.taps=0):(F.touch0=O,at=!0,F.taps=1+!!v);v&&(v=clearTimeout(v)),at&&(F.taps<2&&(y=O[0],v=setTimeout(function(){v=null},w)),Xr(this),F.start())}}function X(D,...P){if(this.__zooming){var M=V(this,P).event(D),Y=D.changedTouches,F=Y.length,at,lt,S,O;for(Qu(D),at=0;at<F;++at)lt=Y[at],S=Ol(lt,this),M.touch0&&M.touch0[2]===lt.identifier?M.touch0[0]=S:M.touch1&&M.touch1[2]===lt.identifier&&(M.touch1[0]=S);if(lt=M.that.__zoom,M.touch1){var Z=M.touch0[0],I=M.touch0[1],tt=M.touch1[0],ut=M.touch1[1],ct=(ct=tt[0]-Z[0])*ct+(ct=tt[1]-Z[1])*ct,Ct=(Ct=ut[0]-I[0])*Ct+(Ct=ut[1]-I[1])*Ct;lt=q(lt,Math.sqrt(ct/Ct)),S=[(Z[0]+tt[0])/2,(Z[1]+tt[1])/2],O=[(I[0]+ut[0])/2,(I[1]+ut[1])/2]}else if(M.touch0)S=M.touch0[0],O=M.touch0[1];else return;M.zoom("touch",i(L(lt,S,O),M.extent,d))}}function ht(D,...P){if(this.__zooming){var M=V(this,P).event(D),Y=D.changedTouches,F=Y.length,at,lt;for(Js(D),x&&clearTimeout(x),x=setTimeout(function(){x=null},w),at=0;at<F;++at)lt=Y[at],M.touch0&&M.touch0[2]===lt.identifier?delete M.touch0:M.touch1&&M.touch1[2]===lt.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(lt=Ol(lt,this),Math.hypot(y[0]-lt[0],y[1]-lt[1])<C)){var S=Ue(this).on("dblclick.zoom");S&&S.apply(this,arguments)}}}return A.wheelDelta=function(D){return arguments.length?(r=typeof D=="function"?D:jr(+D),A):r},A.filter=function(D){return arguments.length?(n=typeof D=="function"?D:jr(!!D),A):n},A.touchable=function(D){return arguments.length?(o=typeof D=="function"?D:jr(!!D),A):o},A.extent=function(D){return arguments.length?(a=typeof D=="function"?D:jr([[+D[0][0],+D[0][1]],[+D[1][0],+D[1][1]]]),A):a},A.scaleExtent=function(D){return arguments.length?(f[0]=+D[0],f[1]=+D[1],A):[f[0],f[1]]},A.translateExtent=function(D){return arguments.length?(d[0][0]=+D[0][0],d[1][0]=+D[1][0],d[0][1]=+D[0][1],d[1][1]=+D[1][1],A):[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},A.constrain=function(D){return arguments.length?(i=D,A):i},A.duration=function(D){return arguments.length?(g=+D,A):g},A.interpolate=function(D){return arguments.length?(m=D,A):m},A.on=function(){var D=h.on.apply(h,arguments);return D===h?A:D},A.clickDistance=function(D){return arguments.length?(N=(D=+D)*D,A):Math.sqrt(N)},A.tapDistance=function(D){return arguments.length?(C=+D,A):C},A}function v4({data:n}){const a=R.useRef(null);return R.useEffect(()=>{if(!a.current||n.length===0)return;const i=Ue(a.current);i.selectAll("*").remove();const r=a.current.parentElement;if(!r)return;const o=r.clientWidth,f=250,d={top:20,right:20,bottom:40,left:50},g=o-d.left-d.right,m=f-d.top-d.bottom;i.attr("width",o).attr("height",f);const h=i.append("g").attr("transform",`translate(${d.left},${d.top})`),v=Cy("%Y-%m-%d"),y=n.map(K=>({date:v(K.week),count:K.count})),[x,w]=eS(y,K=>K.date),k=x.getTime()===w.getTime()?10080*60*1e3:0,N=Qf().domain([new Date(x.getTime()-k),new Date(w.getTime()+k)]).range([0,g]),C=_y().domain([0,oS(y,K=>K.count)??0]).nice().range([m,0]),A=getComputedStyle(document.documentElement),q=A.getPropertyValue("--muted-fg").trim()||"#94a3b8",L=A.getPropertyValue("--accent-color").trim()||"#10b981",J=A.getPropertyValue("--border-color").trim()||"#334155";h.append("g").attr("transform",`translate(0,${m})`).call(Pu(N).ticks(6).tickFormat(Vf("%b %y"))).attr("color",q).selectAll("line").attr("stroke",J),h.append("g").call(Gp(C).ticks(5)).attr("color",q).selectAll("line").attr("stroke",J);const nt=f4().x(K=>N(K.date)).y0(m).y1(K=>C(K.count)).curve(lp);h.append("path").datum(y).attr("fill",L).attr("fill-opacity",.15).attr("d",nt);const V=Hy().x(K=>N(K.date)).y(K=>C(K.count)).curve(lp);h.append("path").datum(y).attr("fill","none").attr("stroke",L).attr("stroke-width",2).attr("d",V)},[n]),_.jsx("svg",{ref:a,className:"w-full"})}const up=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ip=jp,x4=(n,a)=>i=>{var r;if((a==null?void 0:a.variants)==null)return ip(n,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:f}=a,d=Object.keys(o).map(h=>{const v=i==null?void 0:i[h],y=f==null?void 0:f[h];if(v===null)return null;const x=up(v)||up(y);return o[h][x]}),g=i&&Object.entries(i).reduce((h,v)=>{let[y,x]=v;return x===void 0||(h[y]=x),h},{}),m=a==null||(r=a.compoundVariants)===null||r===void 0?void 0:r.reduce((h,v)=>{let{class:y,className:x,...w}=v;return Object.entries(w).every(k=>{let[N,C]=k;return Array.isArray(C)?C.includes({...f,...g}[N]):{...f,...g}[N]===C})?[...h,y,x]:h},[]);return ip(n,d,m,i==null?void 0:i.class,i==null?void 0:i.className)},b4=x4("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",{variants:{variant:{default:"border-transparent bg-accent text-accent-foreground",secondary:"border-transparent bg-muted text-muted-foreground",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function Bn({className:n,variant:a,...i}){return _.jsx("div",{className:tn(b4({variant:a}),n),...i})}function S4(){const{data:n,loading:a}=Pe("/api/stats"),{data:i}=Pe("/api/chunks?limit=10");return a||!n?_.jsx(ii,{}):_.jsxs("div",{className:"space-y-6 animate-fade-in",children:[_.jsx("h1",{className:"text-2xl font-bold",children:"Overview"}),_.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[_.jsx(Cr,{label:"Chunks",value:n.chunks,icon:_.jsx(i2,{className:"h-5 w-5"})}),_.jsx(Cr,{label:"Edges",value:n.edges,icon:_.jsx(u2,{className:"h-5 w-5"})}),_.jsx(Cr,{label:"Clusters",value:n.clusters,icon:_.jsx(Dp,{className:"h-5 w-5"})}),_.jsx(Cr,{label:"Sessions",value:n.sessions,icon:_.jsx(Rp,{className:"h-5 w-5"})})]}),n.chunkTimeSeries.length>0&&_.jsxs(Wu,{children:[_.jsx(ef,{children:_.jsx(nf,{children:"Chunks Over Time"})}),_.jsx(Iu,{children:_.jsx(v4,{data:n.chunkTimeSeries})})]}),(i==null?void 0:i.chunks)&&i.chunks.length>0&&_.jsxs(Wu,{children:[_.jsx(ef,{children:_.jsx(nf,{children:"Recent Activity"})}),_.jsx(Iu,{children:_.jsx("div",{className:"space-y-3",children:i.chunks.map(r=>_.jsxs("div",{className:"flex items-start gap-3 rounded-md border border-border p-3",children:[_.jsxs("div",{className:"flex-1 min-w-0",children:[_.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[_.jsx(Bn,{variant:"secondary",children:r.sessionSlug}),_.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(r.startTime).toLocaleDateString()})]}),_.jsx("p",{className:"text-sm text-muted-foreground truncate",children:r.preview})]}),_.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[r.tokenCount," tokens"]})]},r.id))})})]})]})}function _4({className:n,options:a,placeholder:i,...r}){return _.jsxs("select",{className:tn("flex h-10 w-full rounded-md border border-border bg-background px-3 py-2 text-sm","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n),...r,children:[i&&_.jsx("option",{value:"",children:i}),a.map(o=>_.jsx("option",{value:o.value,children:o.label},o.value))]})}const Ya=["#10b981","#06b6d4","#8b5cf6","#f59e0b","#ef4444","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#0ea5e9","#d946ef","#22c55e","#eab308","#a855f7"];function w4({clusters:n,activeClusterIds:a,unclusteredCount:i}){var k;const r=R.useRef(null),[o,f]=R.useState({visible:!1,cluster:null,anchorRect:null}),d=new Map(n.map(N=>[N.id,N])),m=[...a.map(N=>({id:N,info:d.get(N)})).sort((N,C)=>{var A,q;return(((A=C.info)==null?void 0:A.memberCount)??0)-(((q=N.info)==null?void 0:q.memberCount)??0)}).map((N,C)=>{var A,q;return{key:N.id,color:Ya[C%Ya.length],name:((A=N.info)==null?void 0:A.name)??`Topic ${C+1}`,count:((q=N.info)==null?void 0:q.memberCount)??0,info:N.info??null}}),...i>0?[{key:"_unclustered",color:"#64748b",name:"Unclustered",count:i,info:null}]:[]],h=(N,C)=>{const A=N.currentTarget.getBoundingClientRect();f({visible:!0,cluster:C,anchorRect:A})},v=()=>{f({visible:!1,cluster:null,anchorRect:null})},y=(k=r.current)==null?void 0:k.getBoundingClientRect(),x=o.anchorRect&&y?Math.min(o.anchorRect.left-y.left,y.width-296):0,w=o.anchorRect&&y?o.anchorRect.bottom-y.top+6:0;return _.jsxs("div",{ref:r,className:"relative rounded-lg border border-border bg-card px-4 py-2.5",children:[_.jsx("div",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider mb-2",children:"Topic Clusters"}),_.jsx("div",{className:"grid gap-x-6 gap-y-1",style:{gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))"},children:m.map(N=>_.jsxs("div",{className:"flex items-center gap-2 text-xs cursor-default hover:bg-muted/50 rounded px-1.5 py-0.5 transition-colors min-w-0",onMouseEnter:N.info?C=>h(C,N.info):void 0,onMouseLeave:v,children:[_.jsx("span",{className:"inline-block w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:N.color}}),_.jsx("span",{className:"text-foreground truncate",children:N.name}),_.jsx("span",{className:"text-muted-foreground tabular-nums ml-auto shrink-0",children:N.count})]},N.key))}),o.visible&&o.cluster&&_.jsxs("div",{className:"absolute z-50 rounded-md border border-border/80 bg-card/50 backdrop-blur-md px-3 py-2.5 text-xs shadow-lg w-72 pointer-events-none",style:{left:Math.max(0,x),top:w},children:[_.jsx("div",{className:"font-semibold text-foreground mb-1",children:o.cluster.name??"Unnamed"}),o.cluster.description&&_.jsx("p",{className:"text-muted-foreground mb-2 leading-relaxed",children:o.cluster.description}),_.jsx("div",{className:"flex gap-4 text-muted-foreground",children:_.jsxs("div",{children:["Members: ",_.jsx("span",{className:"text-foreground tabular-nums",children:o.cluster.memberCount})]})})]})]})}function T4({chunks:n,edges:a,timeRange:i,onChunkClick:r,selectedChunkId:o,clusters:f}){const d=R.useRef(null),g=[...new Set(n.map(x=>x.clusterId).filter(Boolean))],m=new Map((f??[]).map(x=>[x.id,x])),h=g.map(x=>({id:x,info:m.get(x)})).sort((x,w)=>{var k,N;return(((k=w.info)==null?void 0:k.memberCount)??0)-(((N=x.info)==null?void 0:N.memberCount)??0)}),v=new Map(h.map((x,w)=>[x.id,w]));function y(x){if(!x)return"#64748b";const w=v.get(x);return w===void 0?"#64748b":Ya[w%Ya.length]}return R.useEffect(()=>{var _t;const x=Ue(d.current);if(x.selectAll("*").remove(),n.length===0||!i.earliest||!i.latest)return;const w=(_t=d.current)==null?void 0:_t.parentElement,k=(w==null?void 0:w.clientWidth)??800,N=(w==null?void 0:w.clientHeight)??400,C={top:30,right:30,bottom:40,left:160},A=k-C.left-C.right,q=N-C.top-C.bottom,L=[...new Set(n.map(X=>X.sessionSlug))],J=Qf().domain([new Date(i.earliest),new Date(i.latest)]).range([0,A]),nt=kf().domain(L).range([0,q]).padding(.3);x.attr("width",k).attr("height",N),x.append("defs").append("clipPath").attr("id","timeline-clip").append("rect").attr("width",A).attr("height",q);const V=x.append("g").attr("transform",`translate(${C.left},${C.top})`),K=ky().scaleExtent([.5,20]).translateExtent([[-100,0],[A+100,N]]).on("zoom",X=>{const ht=X.transform.rescaleX(J);st.call(Pu(ht).ticks(8)),vt.attr("x",D=>ht(new Date(D.startTime))).attr("width",D=>{const P=ht(new Date(D.endTime))-ht(new Date(D.startTime));return Math.max(4,P)})});x.call(K);const st=V.append("g").attr("transform",`translate(0,${q})`).call(Pu(J).ticks(8)).attr("class","timeline-axis");V.append("g").call(Gp(nt)).attr("class","timeline-axis").selectAll("text").style("font-size","11px"),V.selectAll(".timeline-axis line, .timeline-axis path").attr("stroke","var(--border-color, #334155)"),V.selectAll(".timeline-axis text").attr("fill","var(--muted-foreground, #94a3b8)");const vt=V.append("g").attr("clip-path","url(#timeline-clip)").append("g").selectAll("rect").data(n).join("rect").attr("x",X=>J(new Date(X.startTime))).attr("y",X=>nt(X.sessionSlug)??0).attr("width",X=>{const ht=J(new Date(X.endTime))-J(new Date(X.startTime));return Math.max(4,ht)}).attr("height",nt.bandwidth()).attr("rx",2).attr("fill",X=>y(X.clusterId)).attr("fill-opacity",X=>X.id===o?1:.7).attr("stroke",X=>X.id===o?"#ffffff":"none").attr("stroke-width",2).attr("cursor","pointer").on("click",(X,ht)=>r(ht.id)).on("mouseenter",function(){Ue(this).attr("fill-opacity",1)}).on("mouseleave",function(X,ht){Ue(this).attr("fill-opacity",ht.id===o?1:.7)});vt.append("title").text(X=>{const ht=X.clusterId?m.get(X.clusterId):null,D=(ht==null?void 0:ht.name)??(X.clusterId?"Unknown cluster":"Unclustered");return`${X.sessionSlug}
161
+ ${D}
162
+ ${X.preview.slice(0,100)}...
163
+ ${new Date(X.startTime).toLocaleString()}`})},[n,i,r,o,f,h,v,m]),_.jsx("div",{className:"w-full h-full",children:_.jsx("svg",{ref:d,className:"w-full h-full"})})}const Fs=36e5,rp=20;function M4(n,a){if(n.length<=1)return{longestStreak:n.length===1?{cluster:a(n[0].clusterId),count:1,durationMs:0}:null,mostSwitches:null,focusScore:1};let i={cluster:n[0].clusterId,count:1,startIdx:0,endIdx:0},r={cluster:n[0].clusterId,count:1,startIdx:0};for(let m=1;m<n.length;m++){const h=n[m].clusterId??"__unclustered",v=r.cluster??"__unclustered";h===v?r.count++:(r.count>i.count&&(i={...r,endIdx:m-1}),r={cluster:n[m].clusterId,count:1,startIdx:m})}r.count>i.count&&(i={...r,endIdx:n.length-1});const o=new Date(n[i.endIdx].endTime).getTime()-new Date(n[i.startIdx].startTime).getTime(),f=new Map;let d=0;for(let m=1;m<n.length;m++){const h=n[m-1].clusterId??"__unclustered",v=n[m].clusterId??"__unclustered";if(h!==v){d++;const y=[h,v].sort().join("|"),x=f.get(y);x?x.count++:f.set(y,{from:h,to:v,count:1})}}let g=null;for(const m of f.values())(!g||m.count>g.count)&&(g={from:a(m.from==="__unclustered"?null:m.from),to:a(m.to==="__unclustered"?null:m.to),count:m.count});return{longestStreak:{cluster:a(i.cluster),count:i.count,durationMs:o},mostSwitches:g,focusScore:1-d/(n.length-1)}}function E4(n){if(n<6e4)return"<1m";const a=Math.round(n/6e4);if(a<60)return`${a}m`;const i=Math.floor(a/60),r=a%60;return r>0?`${i}h ${r}m`:`${i}h`}function A4({chunks:n,edges:a,timeRange:i,onChunkClick:r,selectedChunkId:o,clusters:f}){const d=R.useRef(null),g=R.useMemo(()=>new Map((f??[]).map(C=>[C.id,C])),[f]),m=R.useMemo(()=>[...n].sort((C,A)=>new Date(C.startTime).getTime()-new Date(A.startTime).getTime()),[n]),h=R.useMemo(()=>{const C=[],A=new Set;for(const q of m){const L=q.clusterId??"__unclustered";A.has(L)||(A.add(L),L!=="__unclustered"&&C.push(L))}return A.has("__unclustered")&&C.push("__unclustered"),C},[m]),v=R.useMemo(()=>{const A=[...h.filter(q=>q!=="__unclustered")].map(q=>({id:q,info:g.get(q)})).sort((q,L)=>{var J,nt;return(((J=L.info)==null?void 0:J.memberCount)??0)-(((nt=q.info)==null?void 0:nt.memberCount)??0)});return new Map(A.map((q,L)=>[q.id,L]))},[h,g]);function y(C){if(!C||C==="__unclustered")return"#64748b";const A=v.get(C);return A===void 0?"#64748b":Ya[A%Ya.length]}function x(C){if(!C||C==="__unclustered")return"Unclustered";const A=g.get(C);return(A==null?void 0:A.name)??`Topic ${(v.get(C)??0)+1}`}const w=R.useMemo(()=>M4(m,x),[m,g,v]),k=R.useMemo(()=>{const C=new Map;for(const A of m){const q=A.clusterId??"__unclustered",L=C.get(q);L?(L.count++,L.tokens+=A.approxTokens):C.set(q,{count:1,tokens:A.approxTokens})}return C},[m]),N=R.useMemo(()=>{const C=new Map;for(const q of m)C.has(q.sessionId)||C.set(q.sessionId,new Date(q.startTime).getTime());return[...C.entries()].sort((q,L)=>q[1]-L[1]).slice(1).map(([q,L])=>{const J=m.find(nt=>nt.sessionId===q);return{time:L,slug:(J==null?void 0:J.sessionSlug)??q.slice(0,8)}})},[m]);return R.useEffect(()=>{var lt;const C=Ue(d.current);if(C.selectAll("*").remove(),m.length===0||!i.earliest||!i.latest)return;const A=(lt=d.current)==null?void 0:lt.parentElement,q=(A==null?void 0:A.clientWidth)??800,L=(A==null?void 0:A.clientHeight)??400,J={top:30,right:30,bottom:40,left:220},nt=q-J.left-J.right,V=L-J.top-J.bottom,K=Qf().domain([new Date(i.earliest),new Date(i.latest)]).range([0,nt]),st=kf().domain(h).range([0,V]).padding(.25),dt=st.bandwidth();C.attr("width",q).attr("height",L);const vt=C.append("defs");vt.append("clipPath").attr("id","topicflow-clip").append("rect").attr("width",nt).attr("height",V);const _t=new Set;for(let S=0;S<m.length-1;S++){const O=m[S].clusterId??"__unclustered",Z=m[S+1].clusterId??"__unclustered";O!==Z&&_t.add(`${O}||${Z}`)}for(const S of _t){const[O,Z]=S.split("||"),I=`grad-${O}-${Z}`.replace(/[^a-zA-Z0-9-]/g,"_"),tt=vt.append("linearGradient").attr("id",I).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");tt.append("stop").attr("offset","0%").attr("stop-color",y(O==="__unclustered"?null:O)).attr("stop-opacity",.3),tt.append("stop").attr("offset","100%").attr("stop-color",y(Z==="__unclustered"?null:Z)).attr("stop-opacity",.3)}const X=C.append("g").attr("transform",`translate(${J.left},${J.top})`),ht=X.append("g").attr("transform",`translate(0,${V})`).call(Pu(K).ticks(8)).attr("class","topicflow-axis"),D=X.append("g").attr("class","topicflow-axis");for(const S of h){const O=(st(S)??0)+dt/2,Z=x(S==="__unclustered"?null:S),I=k.get(S),tt=I?I.tokens>=1e3?`${Math.round(I.tokens/1e3)}k`:`${I.tokens}`:"0",ut=I?`${Z} (${I.count}, ${tt} tok)`:Z,ct=ut.length>30?ut.slice(0,28)+"…":ut;D.append("text").attr("x",-8).attr("y",O).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","var(--muted-foreground, #94a3b8)").attr("font-size","11px").text(ct).append("title").text(ut)}D.append("line").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",V).attr("stroke","var(--border-color, #334155)"),X.selectAll(".topicflow-axis line, .topicflow-axis path").attr("stroke","var(--border-color, #334155)"),X.selectAll(".topicflow-axis text").attr("fill","var(--muted-foreground, #94a3b8)");const P=X.append("g").attr("clip-path","url(#topicflow-clip)");function M(S){P.selectAll("*").remove();const O=P.append("g").attr("class","session-boundaries");for(const tt of N){const ut=S(new Date(tt.time));O.append("line").attr("x1",ut).attr("y1",0).attr("x2",ut).attr("y2",V).attr("stroke","#475569").attr("stroke-width",1).attr("stroke-dasharray","4,4").attr("stroke-opacity",.3),O.append("text").attr("x",ut+4).attr("y",10).attr("fill","var(--muted-foreground, #94a3b8)").attr("font-size","9px").attr("fill-opacity",.5).text(tt.slug.length>12?tt.slug.slice(0,10)+"…":tt.slug)}const Z=P.append("g").attr("class","ribbons");for(let tt=0;tt<m.length-1;tt++){const ut=m[tt],ct=m[tt+1],Ct=new Date(ut.endTime).getTime();if(new Date(ct.startTime).getTime()-Ct>Fs){const Yt=(S(new Date(ut.endTime))+S(new Date(ct.startTime)))/2,ge=V/2;Z.append("text").attr("class","gap-indicator").attr("x",Yt).attr("y",ge).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("fill","var(--muted-foreground, #94a3b8)").attr("font-size","12px").attr("fill-opacity",.5).text("⋯");continue}const pt=ut.clusterId??"__unclustered",W=ct.clusterId??"__unclustered",Vt=S(new Date(ut.endTime)),St=S(new Date(ct.startTime)),Kt=dt*.5;if(pt===W){const Yt=(st(pt)??0)+dt*.25;Z.append("rect").attr("class",`ribbon ribbon-${tt}`).attr("x",Math.min(Vt,St)).attr("y",Yt).attr("width",Math.max(1,Math.abs(St-Vt))).attr("height",Kt).attr("fill",y(ut.clusterId)).attr("fill-opacity",.15)}else{const Yt=(st(pt)??0)+dt*.25,ge=Yt+Kt,fn=(st(W)??0)+dt*.25,Vl=fn+Kt,qn=(Vt+St)/2,Xa=`grad-${pt}-${W}`.replace(/[^a-zA-Z0-9-]/g,"_");Z.append("path").attr("class",`ribbon ribbon-${tt}`).attr("d",[`M${Vt},${Yt}`,`C${qn},${Yt} ${qn},${fn} ${St},${fn}`,`L${St},${Vl}`,`C${qn},${Vl} ${qn},${ge} ${Vt},${ge}`,"Z"].join(" ")).attr("fill",`url(#${Xa})`).attr("stroke","none")}}const I=P.append("g").attr("class","chunks");I.selectAll("rect").data(m).join("rect").attr("class",(tt,ut)=>`chunk chunk-${ut}`).attr("x",tt=>S(new Date(tt.startTime))).attr("y",tt=>{const ut=tt.clusterId??"__unclustered";return(st(ut)??0)+dt*.15}).attr("width",tt=>{const ut=S(new Date(tt.endTime))-S(new Date(tt.startTime));return Math.max(4,ut)}).attr("height",dt*.7).attr("rx",2).attr("fill",tt=>y(tt.clusterId)).attr("fill-opacity",tt=>tt.id===o?1:.7).attr("stroke",tt=>tt.id===o?"#ffffff":"none").attr("stroke-width",2).attr("cursor","pointer").on("click",(tt,ut)=>r(ut.id)).on("mouseenter",function(tt,ut){const ct=m.indexOf(ut);Y(ct)}).on("mouseleave",function(){F()}),I.selectAll("rect").append("title").text((tt,ut)=>{const ct=m[ut],Ct=ct.clusterId?g.get(ct.clusterId):null;return`${(Ct==null?void 0:Ct.name)??(ct.clusterId?"Unknown cluster":"Unclustered")}
164
+ ${ct.preview.slice(0,100)}…
165
+ ${new Date(ct.startTime).toLocaleString()}`})}function Y(S){const O=new Set;O.add(S);for(let Z=S-1;Z>=0&&O.size<rp&&!(new Date(m[Z+1].startTime).getTime()-new Date(m[Z].endTime).getTime()>Fs);Z--)O.add(Z);for(let Z=S+1;Z<m.length&&O.size<rp&&!(new Date(m[Z].startTime).getTime()-new Date(m[Z-1].endTime).getTime()>Fs);Z++)O.add(Z);P.selectAll(".chunk").attr("fill-opacity",.1),P.selectAll(".ribbon").attr("opacity",.1),P.selectAll(".gap-indicator").attr("fill-opacity",.1);for(const Z of O)P.select(`.chunk-${Z}`).attr("fill-opacity",1);for(const Z of O)O.has(Z+1)&&P.select(`.ribbon-${Z}`).attr("opacity",1)}function F(){P.selectAll(".chunk").attr("fill-opacity",S=>S.id===o?1:.7),P.selectAll(".ribbon").attr("opacity",1),P.selectAll(".gap-indicator").attr("fill-opacity",.5)}M(K);const at=ky().scaleExtent([.5,20]).translateExtent([[-100,0],[nt+100,L]]).on("zoom",S=>{const O=S.transform.rescaleX(K);ht.call(Pu(O).ticks(8)),M(O)});C.call(at)},[m,i,r,o,h,g,v,k,N]),_.jsxs("div",{className:"w-full h-full flex flex-col",children:[m.length>1&&_.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 text-xs text-muted-foreground border-b border-border shrink-0",children:[w.longestStreak&&_.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-muted/30 rounded",children:[_.jsx("span",{className:"font-medium text-foreground",children:"Longest streak:"}),_.jsxs("span",{className:"tabular-nums",children:[w.longestStreak.cluster," (",w.longestStreak.count," chunks, ",E4(w.longestStreak.durationMs),")"]})]}),_.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-muted/30 rounded",children:[_.jsx("span",{className:"font-medium text-foreground",children:"Most switches:"}),_.jsx("span",{className:"tabular-nums",children:w.mostSwitches?`${w.mostSwitches.from} ↔ ${w.mostSwitches.to} (${w.mostSwitches.count}×)`:"—"})]}),_.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-muted/30 rounded",children:[_.jsx("span",{className:"font-medium text-foreground",children:"Focus:"}),_.jsxs("span",{className:"tabular-nums",children:[Math.round(w.focusScore*100),"%"]})]})]}),_.jsx("div",{className:"flex-1 min-h-0",children:_.jsx("svg",{ref:d,className:"w-full h-full"})})]})}function C4({chunkId:n,onClose:a,onWalkChain:i}){var d;const{data:r}=Pe(`/api/chunks?chunkId=${n}`),{data:o}=Pe(`/api/edges?chunkId=${n}&limit=20`),f=(d=r==null?void 0:r.chunks)==null?void 0:d[0];return _.jsxs("div",{className:"flex flex-col gap-3 h-full",children:[_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsx("h3",{className:"text-sm font-semibold",children:"Chunk Inspector"}),_.jsx("button",{onClick:a,className:"rounded p-1 hover:bg-muted",children:_.jsx(f2,{className:"h-4 w-4"})})]}),f?_.jsxs("div",{className:"space-y-3 text-sm overflow-y-auto flex-1",children:[_.jsxs("div",{className:"space-y-1",children:[_.jsxs("div",{children:[_.jsx("span",{className:"text-muted-foreground",children:"ID: "}),_.jsxs("code",{className:"text-xs",children:[f.id.slice(0,12),"..."]})]}),_.jsxs("div",{children:[_.jsx("span",{className:"text-muted-foreground",children:"Project: "}),_.jsx(Bn,{variant:"secondary",children:f.sessionSlug})]}),_.jsxs("div",{children:[_.jsx("span",{className:"text-muted-foreground",children:"Time: "}),new Date(f.startTime).toLocaleString()]}),_.jsxs("div",{children:[_.jsx("span",{className:"text-muted-foreground",children:"Tokens: "}),f.approxTokens]})]}),_.jsx("div",{className:"border-t border-border pt-2",children:_.jsx("p",{className:"text-xs text-muted-foreground line-clamp-6 whitespace-pre-wrap",children:f.content.slice(0,500)})}),_.jsxs("div",{className:"flex gap-2",children:[_.jsxs("button",{onClick:()=>i(n,"backward"),className:"flex flex-1 items-center justify-center gap-1 rounded-md border border-border px-3 py-2 text-xs hover:bg-muted transition-colors",children:[_.jsx(Pb,{className:"h-3 w-3"}),"Walk Backward"]}),_.jsxs("button",{onClick:()=>i(n,"forward"),className:"flex flex-1 items-center justify-center gap-1 rounded-md border border-border px-3 py-2 text-xs hover:bg-muted transition-colors",children:["Walk Forward",_.jsx(t2,{className:"h-3 w-3"})]})]}),o&&o.edges.length>0&&_.jsxs("div",{className:"space-y-1 border-t border-border pt-2",children:[_.jsxs("h4",{className:"text-xs font-medium",children:["Edges (",o.total,")"]}),_.jsx("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:o.edges.map(g=>_.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[_.jsx(Bn,{variant:g.type==="backward"?"default":"outline",className:"text-[9px]",children:g.type}),g.referenceType&&_.jsx("span",{className:"text-muted-foreground",children:g.referenceType}),_.jsx("span",{className:"ml-auto tabular-nums",children:g.weight.toFixed(2)})]},g.id))})]})]}):_.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading chunk..."})]})}function z4({chunkId:n,direction:a,onDirectionChange:i}){const{data:r,loading:o}=Pe(`/api/chain/walk?chunkId=${n}&direction=${a}`);return _.jsxs("div",{className:"flex flex-col gap-3 h-full",children:[_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsx("h3",{className:"text-sm font-semibold",children:"Chain Walk"}),_.jsxs("div",{className:"flex gap-1",children:[_.jsx("button",{onClick:()=>i("backward"),className:`rounded px-2 py-1 text-xs transition-colors ${a==="backward"?"bg-accent/20 text-accent":"text-muted-foreground hover:bg-muted"}`,children:"Backward"}),_.jsx("button",{onClick:()=>i("forward"),className:`rounded px-2 py-1 text-xs transition-colors ${a==="forward"?"bg-accent/20 text-accent":"text-muted-foreground hover:bg-muted"}`,children:"Forward"})]})]}),o&&_.jsx(ii,{}),r&&r.chain.length===0&&_.jsxs("p",{className:"text-sm text-muted-foreground",children:["No chain found — this chunk has no connected edges in the ",a," direction."]}),r&&_.jsxs("div",{className:"flex-1 overflow-y-auto space-y-2",children:[_.jsx(cp,{chunk:r.seed,position:0,total:r.chain.length+1,isSeed:!0}),r.chain.map((f,d)=>_.jsx(cp,{chunk:f,position:d+1,total:r.chain.length+1},f.id)),r.chain.length>0&&_.jsxs("div",{className:"text-xs text-muted-foreground pt-1",children:["Total: ",r.totalTokens.toLocaleString()," tokens"]})]})]})}function cp({chunk:n,position:a,total:i,isSeed:r=!1}){return _.jsxs("div",{className:`rounded-md border p-3 text-sm space-y-1 ${r?"border-accent bg-accent/5":"border-border bg-card"}`,children:[_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsxs("div",{className:"flex items-center gap-2",children:[r&&_.jsx(Bn,{variant:"default",className:"text-[10px]",children:"Seed"}),_.jsx(Bn,{variant:"secondary",className:"text-[10px]",children:n.sessionSlug})]}),_.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[a+1,"/",i]})]}),_.jsx("p",{className:"text-xs text-muted-foreground line-clamp-3",children:n.preview}),_.jsxs("div",{className:"text-[10px] text-muted-foreground",children:[new Date(n.startTime).toLocaleString()," · ",n.approxTokens," tokens"]})]})}function N4(){const[n,a]=R.useState(""),[i,r]=R.useState(null),[o,f]=R.useState(null),[d,g]=R.useState("backward"),{data:m}=Pe("/api/projects"),{data:h}=Pe("/api/clusters"),v=`/api/timeline?limit=500${n?`&project=${n}`:""}`,{data:y,loading:x}=Pe(v),w=((m==null?void 0:m.projects)??[]).map(A=>({value:A.slug,label:`${A.slug} (${A.chunkCount})`})),k=R.useCallback(A=>{r(A)},[]),N=R.useCallback((A,q)=>{f(A),g(q)},[]),C=i||o;return _.jsxs("div",{className:"flex h-[calc(100vh-8rem)] flex-col gap-4 animate-fade-in",children:[_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsx("h1",{className:"text-2xl font-bold",children:"Timeline"}),_.jsx(_4,{value:n,onChange:A=>{a(A.target.value),r(null),f(null)},options:w,placeholder:"All projects",className:"w-60"})]}),h&&y&&y.chunks.length>0&&_.jsx(w4,{clusters:h.clusters,activeClusterIds:[...new Set(y.chunks.map(A=>A.clusterId).filter(Boolean))],unclusteredCount:y.chunks.filter(A=>!A.clusterId).length}),_.jsx("div",{className:`rounded-lg border border-border bg-card overflow-hidden relative ${C?"flex-1 min-h-[200px]":"flex-1"}`,children:x?_.jsx(ii,{}):y&&y.chunks.length>0?n?_.jsx(A4,{chunks:y.chunks,edges:y.edges,timeRange:y.timeRange,onChunkClick:k,selectedChunkId:i,clusters:h==null?void 0:h.clusters}):_.jsx(T4,{chunks:y.chunks,edges:y.edges,timeRange:y.timeRange,onChunkClick:k,selectedChunkId:i,clusters:h==null?void 0:h.clusters}):_.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:"No timeline data available"})}),C&&_.jsxs("div",{className:"flex gap-4 h-72 min-h-[200px]",children:[i&&_.jsx("div",{className:"w-80 shrink-0 rounded-lg border border-border bg-card p-4 overflow-y-auto",children:_.jsx(C4,{chunkId:i,onClose:()=>r(null),onWalkChain:N})}),o&&_.jsx("div",{className:"flex-1 rounded-lg border border-border bg-card p-4 overflow-y-auto",children:_.jsx(z4,{chunkId:o,direction:d,onDirectionChange:g})})]})]})}const Hr=["#10b981","#06b6d4","#8b5cf6","#f59e0b","#ef4444","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#0ea5e9","#d946ef","#22c55e","#eab308","#a855f7"];function D4({clusters:n}){const a=R.useRef(null);return R.useEffect(()=>{if(!a.current||n.length===0)return;const i=Ue(a.current);i.selectAll("*").remove();const r=a.current.parentElement;if(!r)return;const o=r.clientWidth,f=r.clientHeight||360;i.attr("width",o).attr("height",f);const d=LT().size([o,f]).padding(6),g=Lf({children:n}).sum(x=>"memberCount"in x?x.memberCount:0),m=d(g),v=getComputedStyle(document.documentElement).getPropertyValue("--fg").trim()||"#e2e8f0",y=i.selectAll("g").data(m.leaves()).join("g").attr("transform",x=>`translate(${x.x},${x.y})`);y.append("circle").attr("r",x=>x.r).attr("fill",(x,w)=>Hr[w%Hr.length]).attr("fill-opacity",.7).attr("stroke",(x,w)=>Hr[w%Hr.length]).attr("stroke-width",1),y.filter(x=>x.r>30).append("text").attr("text-anchor","middle").attr("dy","-0.3em").attr("fill",v).attr("font-size",x=>Math.min(14,x.r/3)).attr("font-weight",600).text(x=>{var w;return((w=x.data.name)==null?void 0:w.slice(0,20))??x.data.id.slice(0,8)}),y.filter(x=>x.r>30).append("text").attr("text-anchor","middle").attr("dy","1.1em").attr("fill",v).attr("fill-opacity",.7).attr("font-size",x=>Math.min(11,x.r/4)).text(x=>`${x.data.memberCount} chunks`),y.append("title").text(x=>{const w=x.data;return`${w.name??w.id}
166
+ ${w.memberCount} chunks`})},[n]),_.jsx("svg",{ref:a,className:"w-full h-full"})}function R4({cluster:n}){const[a,i]=R.useState(!1);return _.jsxs(Wu,{children:[_.jsxs(ef,{className:"cursor-pointer",onClick:()=>i(!a),children:[_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsx(nf,{className:"text-base",children:n.name??n.id.slice(0,12)}),_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsxs(Bn,{variant:"secondary",children:[n.memberCount," chunks"]}),a?_.jsx(l2,{className:"h-4 w-4"}):_.jsx(n2,{className:"h-4 w-4"})]})]}),n.description&&_.jsx(J2,{className:"line-clamp-2",children:n.description})]}),a&&_.jsxs(Iu,{children:[_.jsx("div",{className:"mb-3 h-2 rounded-full bg-muted overflow-hidden",children:_.jsx("div",{className:"h-full rounded-full bg-accent transition-all",style:{width:`${Math.min(100,n.memberCount*2)}%`}})}),n.exemplarPreviews.length>0&&_.jsxs("div",{className:"space-y-2",children:[_.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Exemplar Chunks"}),n.exemplarPreviews.map(r=>_.jsxs("div",{className:"rounded border border-border p-2 text-xs text-muted-foreground",children:[_.jsx("code",{className:"text-[10px]",children:r.id.slice(0,8)}),_.jsx("p",{className:"mt-1 line-clamp-2",children:r.preview})]},r.id))]})]})]})}function O4(){const{data:n,loading:a}=Pe("/api/clusters");if(a||!n)return _.jsx(ii,{});const i=n.clusters;return _.jsxs("div",{className:"space-y-6 animate-fade-in",children:[_.jsx("h1",{className:"text-2xl font-bold",children:"Clusters"}),i.length===0?_.jsx("div",{className:"text-muted-foreground",children:"No clusters found. Run clustering first."}):_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"rounded-lg border border-border bg-card p-4",style:{height:400},children:_.jsx(D4,{clusters:i})}),_.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:i.map(r=>_.jsx(R4,{cluster:r},r.id))})]})]})}function U4({className:n,...a}){return _.jsx("input",{className:tn("flex h-10 w-full rounded-md border border-border bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",n),...a})}function j4({onSearch:n,debounceMs:a=400}){const[i,r]=R.useState(""),o=R.useRef(null);return R.useEffect(()=>(o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{n(i)},a),()=>{o.current&&clearTimeout(o.current)}),[i,a,n]),_.jsxs("div",{className:"relative max-w-xl",children:[_.jsx(Op,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),_.jsx(U4,{value:i,onChange:f=>r(f.target.value),placeholder:"Search memory...",className:"pl-10"})]})}function Ws({title:n,results:a,color:i,allIds:r}){const o=f=>{let d=0;return r.has(`v:${f}`)&&d++,r.has(`k:${f}`)&&d++,d};return _.jsxs("div",{className:"flex-1 min-w-0",children:[_.jsxs("h3",{className:"mb-3 text-sm font-semibold",style:{color:i},children:[n,_.jsxs("span",{className:"ml-2 text-muted-foreground font-normal",children:["(",a.length,")"]})]}),_.jsxs("div",{className:"space-y-2",children:[a.map((f,d)=>{const g=o(f.id);return _.jsxs("div",{className:"rounded-md border border-border p-3 space-y-1",children:[_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsxs("span",{className:"text-xs font-medium text-muted-foreground",children:["#",d+1]}),_.jsx("span",{className:"text-xs tabular-nums font-mono",style:{color:i},children:f.score.toFixed(4)}),g>1&&_.jsx(Bn,{variant:"default",className:"text-[10px] px-1.5 py-0",children:"boosted"}),_.jsx(Bn,{variant:"secondary",className:"text-[10px] ml-auto",children:f.sessionSlug})]}),_.jsx("p",{className:"text-xs text-muted-foreground line-clamp-3",children:f.preview})]},f.id)}),a.length===0&&_.jsx("div",{className:"text-sm text-muted-foreground italic",children:"No results"})]})]})}function H4({data:n}){const a=new Set;return n.vector.forEach(i=>a.add(`v:${i.id}`)),n.keyword.forEach(i=>a.add(`k:${i.id}`)),_.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[_.jsx(Ws,{title:"Vector",results:n.vector,color:"#8b5cf6",allIds:a}),_.jsx(Ws,{title:"Keyword (BM25)",results:n.keyword,color:"#06b6d4",allIds:a}),_.jsx(Ws,{title:"Fused (RRF)",results:n.fused,color:"#10b981",allIds:a})]})}function L4(){const[n,a]=R.useState(""),[i,r]=R.useState(null),{data:o,loading:f}=Pe(i),d=R.useCallback(g=>{a(g),g.trim()?r(`/api/search/compare?q=${encodeURIComponent(g.trim())}`):r(null)},[]);return _.jsxs("div",{className:"space-y-6 animate-fade-in",children:[_.jsx("h1",{className:"text-2xl font-bold",children:"Hybrid Search Pipeline"}),_.jsx("p",{className:"text-muted-foreground",children:"Compare vector, keyword (BM25), and fused (RRF) search results side by side."}),_.jsx(j4,{onSearch:d}),f&&_.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[_.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-muted border-t-accent"}),"Searching..."]}),o&&_.jsx(H4,{data:o}),!o&&!f&&n&&_.jsx("div",{className:"text-muted-foreground",children:"No results found."})]})}function k4(){const{data:n,loading:a}=Pe("/api/projects");return a||!n?_.jsx(ii,{}):_.jsxs("div",{className:"space-y-6 animate-fade-in",children:[_.jsx("h1",{className:"text-2xl font-bold",children:"Projects"}),n.projects.length===0?_.jsx("div",{className:"text-muted-foreground",children:"No projects found."}):_.jsx(Wu,{children:_.jsx(Iu,{className:"p-0",children:_.jsx("div",{className:"overflow-x-auto",children:_.jsxs("table",{className:"w-full text-sm",children:[_.jsx("thead",{children:_.jsxs("tr",{className:"border-b border-border",children:[_.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"Project"}),_.jsx("th",{className:"px-4 py-3 text-right font-medium text-muted-foreground",children:"Chunks"}),_.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"First Seen"}),_.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"Last Seen"})]})}),_.jsx("tbody",{children:n.projects.map(i=>_.jsxs("tr",{className:"border-b border-border last:border-0 hover:bg-muted/50 transition-colors",children:[_.jsx("td",{className:"px-4 py-3",children:_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"font-medium",children:i.slug}),i.path&&_.jsx("span",{className:"text-xs text-muted-foreground truncate max-w-[200px]",children:i.path})]})}),_.jsx("td",{className:"px-4 py-3 text-right",children:_.jsx(Bn,{variant:"secondary",children:i.chunkCount})}),_.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:new Date(i.firstSeen).toLocaleDateString()}),_.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:new Date(i.lastSeen).toLocaleDateString()})]},i.slug))})]})})})})]})}function Y4(){return _.jsx(qb,{children:_.jsx(yb,{children:_.jsxs(Ul,{element:_.jsx($2,{}),children:[_.jsx(Ul,{path:"/",element:_.jsx(S4,{})}),_.jsx(Ul,{path:"/timeline",element:_.jsx(N4,{})}),_.jsx(Ul,{path:"/clusters",element:_.jsx(O4,{})}),_.jsx(Ul,{path:"/search",element:_.jsx(L4,{})}),_.jsx(Ul,{path:"/projects",element:_.jsx(k4,{})})]})})})}px.createRoot(document.getElementById("root")).render(_.jsx(R.StrictMode,{children:_.jsx(Y4,{})}));