causantic 0.2.0

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 (706) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +332 -0
  3. package/config.schema.json +254 -0
  4. package/dist/cli/commands/archive.d.ts +4 -0
  5. package/dist/cli/commands/archive.d.ts.map +1 -0
  6. package/dist/cli/commands/archive.js +76 -0
  7. package/dist/cli/commands/archive.js.map +1 -0
  8. package/dist/cli/commands/benchmark-collection.d.ts +8 -0
  9. package/dist/cli/commands/benchmark-collection.d.ts.map +1 -0
  10. package/dist/cli/commands/benchmark-collection.js +146 -0
  11. package/dist/cli/commands/benchmark-collection.js.map +1 -0
  12. package/dist/cli/commands/config.d.ts +3 -0
  13. package/dist/cli/commands/config.d.ts.map +1 -0
  14. package/dist/cli/commands/config.js +69 -0
  15. package/dist/cli/commands/config.js.map +1 -0
  16. package/dist/cli/commands/dashboard.d.ts +3 -0
  17. package/dist/cli/commands/dashboard.d.ts.map +1 -0
  18. package/dist/cli/commands/dashboard.js +12 -0
  19. package/dist/cli/commands/dashboard.js.map +1 -0
  20. package/dist/cli/commands/encryption.d.ts +3 -0
  21. package/dist/cli/commands/encryption.d.ts.map +1 -0
  22. package/dist/cli/commands/encryption.js +207 -0
  23. package/dist/cli/commands/encryption.js.map +1 -0
  24. package/dist/cli/commands/hook.d.ts +3 -0
  25. package/dist/cli/commands/hook.d.ts.map +1 -0
  26. package/dist/cli/commands/hook.js +35 -0
  27. package/dist/cli/commands/hook.js.map +1 -0
  28. package/dist/cli/commands/ingest.d.ts +4 -0
  29. package/dist/cli/commands/ingest.d.ts.map +1 -0
  30. package/dist/cli/commands/ingest.js +31 -0
  31. package/dist/cli/commands/ingest.js.map +1 -0
  32. package/dist/cli/commands/init.d.ts +3 -0
  33. package/dist/cli/commands/init.d.ts.map +1 -0
  34. package/dist/cli/commands/init.js +680 -0
  35. package/dist/cli/commands/init.js.map +1 -0
  36. package/dist/cli/commands/maintenance.d.ts +3 -0
  37. package/dist/cli/commands/maintenance.d.ts.map +1 -0
  38. package/dist/cli/commands/maintenance.js +67 -0
  39. package/dist/cli/commands/maintenance.js.map +1 -0
  40. package/dist/cli/commands/search.d.ts +3 -0
  41. package/dist/cli/commands/search.d.ts.map +1 -0
  42. package/dist/cli/commands/search.js +16 -0
  43. package/dist/cli/commands/search.js.map +1 -0
  44. package/dist/cli/commands/serve.d.ts +3 -0
  45. package/dist/cli/commands/serve.d.ts.map +1 -0
  46. package/dist/cli/commands/serve.js +19 -0
  47. package/dist/cli/commands/serve.js.map +1 -0
  48. package/dist/cli/commands/stats.d.ts +4 -0
  49. package/dist/cli/commands/stats.d.ts.map +1 -0
  50. package/dist/cli/commands/stats.js +49 -0
  51. package/dist/cli/commands/stats.js.map +1 -0
  52. package/dist/cli/commands/uninstall.d.ts +3 -0
  53. package/dist/cli/commands/uninstall.d.ts.map +1 -0
  54. package/dist/cli/commands/uninstall.js +10 -0
  55. package/dist/cli/commands/uninstall.js.map +1 -0
  56. package/dist/cli/index.d.ts +8 -0
  57. package/dist/cli/index.d.ts.map +1 -0
  58. package/dist/cli/index.js +86 -0
  59. package/dist/cli/index.js.map +1 -0
  60. package/dist/cli/skill-templates.d.ts +19 -0
  61. package/dist/cli/skill-templates.d.ts.map +1 -0
  62. package/dist/cli/skill-templates.js +1128 -0
  63. package/dist/cli/skill-templates.js.map +1 -0
  64. package/dist/cli/types.d.ts +10 -0
  65. package/dist/cli/types.d.ts.map +1 -0
  66. package/dist/cli/types.js +5 -0
  67. package/dist/cli/types.js.map +1 -0
  68. package/dist/cli/uninstall.d.ts +66 -0
  69. package/dist/cli/uninstall.d.ts.map +1 -0
  70. package/dist/cli/uninstall.js +490 -0
  71. package/dist/cli/uninstall.js.map +1 -0
  72. package/dist/cli/utils.d.ts +26 -0
  73. package/dist/cli/utils.d.ts.map +1 -0
  74. package/dist/cli/utils.js +105 -0
  75. package/dist/cli/utils.js.map +1 -0
  76. package/dist/clusters/cluster-manager.d.ts +96 -0
  77. package/dist/clusters/cluster-manager.d.ts.map +1 -0
  78. package/dist/clusters/cluster-manager.js +321 -0
  79. package/dist/clusters/cluster-manager.js.map +1 -0
  80. package/dist/clusters/cluster-refresh.d.ts +56 -0
  81. package/dist/clusters/cluster-refresh.d.ts.map +1 -0
  82. package/dist/clusters/cluster-refresh.js +187 -0
  83. package/dist/clusters/cluster-refresh.js.map +1 -0
  84. package/dist/clusters/hdbscan/cluster-extraction.d.ts +26 -0
  85. package/dist/clusters/hdbscan/cluster-extraction.d.ts.map +1 -0
  86. package/dist/clusters/hdbscan/cluster-extraction.js +232 -0
  87. package/dist/clusters/hdbscan/cluster-extraction.js.map +1 -0
  88. package/dist/clusters/hdbscan/core-distance-worker.d.ts +6 -0
  89. package/dist/clusters/hdbscan/core-distance-worker.d.ts.map +1 -0
  90. package/dist/clusters/hdbscan/core-distance-worker.js +54 -0
  91. package/dist/clusters/hdbscan/core-distance-worker.js.map +1 -0
  92. package/dist/clusters/hdbscan/core-distance.d.ts +26 -0
  93. package/dist/clusters/hdbscan/core-distance.d.ts.map +1 -0
  94. package/dist/clusters/hdbscan/core-distance.js +94 -0
  95. package/dist/clusters/hdbscan/core-distance.js.map +1 -0
  96. package/dist/clusters/hdbscan/distance-cache.d.ts +46 -0
  97. package/dist/clusters/hdbscan/distance-cache.d.ts.map +1 -0
  98. package/dist/clusters/hdbscan/distance-cache.js +84 -0
  99. package/dist/clusters/hdbscan/distance-cache.js.map +1 -0
  100. package/dist/clusters/hdbscan/hierarchy.d.ts +34 -0
  101. package/dist/clusters/hdbscan/hierarchy.d.ts.map +1 -0
  102. package/dist/clusters/hdbscan/hierarchy.js +442 -0
  103. package/dist/clusters/hdbscan/hierarchy.js.map +1 -0
  104. package/dist/clusters/hdbscan/incremental.d.ts +30 -0
  105. package/dist/clusters/hdbscan/incremental.d.ts.map +1 -0
  106. package/dist/clusters/hdbscan/incremental.js +130 -0
  107. package/dist/clusters/hdbscan/incremental.js.map +1 -0
  108. package/dist/clusters/hdbscan/kd-tree.d.ts +51 -0
  109. package/dist/clusters/hdbscan/kd-tree.d.ts.map +1 -0
  110. package/dist/clusters/hdbscan/kd-tree.js +130 -0
  111. package/dist/clusters/hdbscan/kd-tree.js.map +1 -0
  112. package/dist/clusters/hdbscan/min-heap.d.ts +62 -0
  113. package/dist/clusters/hdbscan/min-heap.d.ts.map +1 -0
  114. package/dist/clusters/hdbscan/min-heap.js +139 -0
  115. package/dist/clusters/hdbscan/min-heap.js.map +1 -0
  116. package/dist/clusters/hdbscan/mst.d.ts +20 -0
  117. package/dist/clusters/hdbscan/mst.d.ts.map +1 -0
  118. package/dist/clusters/hdbscan/mst.js +77 -0
  119. package/dist/clusters/hdbscan/mst.js.map +1 -0
  120. package/dist/clusters/hdbscan/probabilities.d.ts +37 -0
  121. package/dist/clusters/hdbscan/probabilities.d.ts.map +1 -0
  122. package/dist/clusters/hdbscan/probabilities.js +149 -0
  123. package/dist/clusters/hdbscan/probabilities.js.map +1 -0
  124. package/dist/clusters/hdbscan/types.d.ts +123 -0
  125. package/dist/clusters/hdbscan/types.d.ts.map +1 -0
  126. package/dist/clusters/hdbscan/types.js +5 -0
  127. package/dist/clusters/hdbscan/types.js.map +1 -0
  128. package/dist/clusters/hdbscan/union-find.d.ts +51 -0
  129. package/dist/clusters/hdbscan/union-find.d.ts.map +1 -0
  130. package/dist/clusters/hdbscan/union-find.js +115 -0
  131. package/dist/clusters/hdbscan/union-find.js.map +1 -0
  132. package/dist/clusters/hdbscan.d.ts +71 -0
  133. package/dist/clusters/hdbscan.d.ts.map +1 -0
  134. package/dist/clusters/hdbscan.js +283 -0
  135. package/dist/clusters/hdbscan.js.map +1 -0
  136. package/dist/clusters/index.d.ts +8 -0
  137. package/dist/clusters/index.d.ts.map +1 -0
  138. package/dist/clusters/index.js +8 -0
  139. package/dist/clusters/index.js.map +1 -0
  140. package/dist/config/index.d.ts +6 -0
  141. package/dist/config/index.d.ts.map +1 -0
  142. package/dist/config/index.js +6 -0
  143. package/dist/config/index.js.map +1 -0
  144. package/dist/config/loader.d.ts +105 -0
  145. package/dist/config/loader.d.ts.map +1 -0
  146. package/dist/config/loader.js +339 -0
  147. package/dist/config/loader.js.map +1 -0
  148. package/dist/config/memory-config.d.ts +109 -0
  149. package/dist/config/memory-config.d.ts.map +1 -0
  150. package/dist/config/memory-config.js +182 -0
  151. package/dist/config/memory-config.js.map +1 -0
  152. package/dist/core/benchmark-types.d.ts +62 -0
  153. package/dist/core/benchmark-types.d.ts.map +1 -0
  154. package/dist/core/benchmark-types.js +11 -0
  155. package/dist/core/benchmark-types.js.map +1 -0
  156. package/dist/core/decay-types.d.ts +111 -0
  157. package/dist/core/decay-types.d.ts.map +1 -0
  158. package/dist/core/decay-types.js +30 -0
  159. package/dist/core/decay-types.js.map +1 -0
  160. package/dist/core/index.d.ts +11 -0
  161. package/dist/core/index.d.ts.map +1 -0
  162. package/dist/core/index.js +9 -0
  163. package/dist/core/index.js.map +1 -0
  164. package/dist/core/lexical-features.d.ts +34 -0
  165. package/dist/core/lexical-features.d.ts.map +1 -0
  166. package/dist/core/lexical-features.js +155 -0
  167. package/dist/core/lexical-features.js.map +1 -0
  168. package/dist/dashboard/client/assets/index-CMUKy4f9.css +1 -0
  169. package/dist/dashboard/client/assets/index-esv8TpCN.js +168 -0
  170. package/dist/dashboard/client/index.html +14 -0
  171. package/dist/dashboard/middleware/async-handler.d.ts +11 -0
  172. package/dist/dashboard/middleware/async-handler.d.ts.map +1 -0
  173. package/dist/dashboard/middleware/async-handler.js +12 -0
  174. package/dist/dashboard/middleware/async-handler.js.map +1 -0
  175. package/dist/dashboard/middleware/error-handler.d.ts +9 -0
  176. package/dist/dashboard/middleware/error-handler.d.ts.map +1 -0
  177. package/dist/dashboard/middleware/error-handler.js +14 -0
  178. package/dist/dashboard/middleware/error-handler.js.map +1 -0
  179. package/dist/dashboard/routes/benchmark-collection.d.ts +11 -0
  180. package/dist/dashboard/routes/benchmark-collection.d.ts.map +1 -0
  181. package/dist/dashboard/routes/benchmark-collection.js +49 -0
  182. package/dist/dashboard/routes/benchmark-collection.js.map +1 -0
  183. package/dist/dashboard/routes/chunks.d.ts +3 -0
  184. package/dist/dashboard/routes/chunks.d.ts.map +1 -0
  185. package/dist/dashboard/routes/chunks.js +25 -0
  186. package/dist/dashboard/routes/chunks.js.map +1 -0
  187. package/dist/dashboard/routes/clusters.d.ts +3 -0
  188. package/dist/dashboard/routes/clusters.d.ts.map +1 -0
  189. package/dist/dashboard/routes/clusters.js +28 -0
  190. package/dist/dashboard/routes/clusters.js.map +1 -0
  191. package/dist/dashboard/routes/edges.d.ts +3 -0
  192. package/dist/dashboard/routes/edges.d.ts.map +1 -0
  193. package/dist/dashboard/routes/edges.js +32 -0
  194. package/dist/dashboard/routes/edges.js.map +1 -0
  195. package/dist/dashboard/routes/graph.d.ts +3 -0
  196. package/dist/dashboard/routes/graph.d.ts.map +1 -0
  197. package/dist/dashboard/routes/graph.js +158 -0
  198. package/dist/dashboard/routes/graph.js.map +1 -0
  199. package/dist/dashboard/routes/projects.d.ts +3 -0
  200. package/dist/dashboard/routes/projects.d.ts.map +1 -0
  201. package/dist/dashboard/routes/projects.js +9 -0
  202. package/dist/dashboard/routes/projects.js.map +1 -0
  203. package/dist/dashboard/routes/search.d.ts +3 -0
  204. package/dist/dashboard/routes/search.d.ts.map +1 -0
  205. package/dist/dashboard/routes/search.js +105 -0
  206. package/dist/dashboard/routes/search.js.map +1 -0
  207. package/dist/dashboard/routes/sessions.d.ts +3 -0
  208. package/dist/dashboard/routes/sessions.d.ts.map +1 -0
  209. package/dist/dashboard/routes/sessions.js +16 -0
  210. package/dist/dashboard/routes/sessions.js.map +1 -0
  211. package/dist/dashboard/routes/stats.d.ts +3 -0
  212. package/dist/dashboard/routes/stats.d.ts.map +1 -0
  213. package/dist/dashboard/routes/stats.js +38 -0
  214. package/dist/dashboard/routes/stats.js.map +1 -0
  215. package/dist/dashboard/server.d.ts +3 -0
  216. package/dist/dashboard/server.d.ts.map +1 -0
  217. package/dist/dashboard/server.js +85 -0
  218. package/dist/dashboard/server.js.map +1 -0
  219. package/dist/eval/annotation-schema.d.ts +41 -0
  220. package/dist/eval/annotation-schema.d.ts.map +1 -0
  221. package/dist/eval/annotation-schema.js +171 -0
  222. package/dist/eval/annotation-schema.js.map +1 -0
  223. package/dist/eval/benchmark-runner.d.ts +15 -0
  224. package/dist/eval/benchmark-runner.d.ts.map +1 -0
  225. package/dist/eval/benchmark-runner.js +93 -0
  226. package/dist/eval/benchmark-runner.js.map +1 -0
  227. package/dist/eval/cluster-evaluator.d.ts +39 -0
  228. package/dist/eval/cluster-evaluator.d.ts.map +1 -0
  229. package/dist/eval/cluster-evaluator.js +51 -0
  230. package/dist/eval/cluster-evaluator.js.map +1 -0
  231. package/dist/eval/code-nl-alignment.d.ts +25 -0
  232. package/dist/eval/code-nl-alignment.d.ts.map +1 -0
  233. package/dist/eval/code-nl-alignment.js +49 -0
  234. package/dist/eval/code-nl-alignment.js.map +1 -0
  235. package/dist/eval/collection-benchmark/graph-value.d.ts +16 -0
  236. package/dist/eval/collection-benchmark/graph-value.d.ts.map +1 -0
  237. package/dist/eval/collection-benchmark/graph-value.js +162 -0
  238. package/dist/eval/collection-benchmark/graph-value.js.map +1 -0
  239. package/dist/eval/collection-benchmark/health.d.ts +12 -0
  240. package/dist/eval/collection-benchmark/health.d.ts.map +1 -0
  241. package/dist/eval/collection-benchmark/health.js +246 -0
  242. package/dist/eval/collection-benchmark/health.js.map +1 -0
  243. package/dist/eval/collection-benchmark/history.d.ts +27 -0
  244. package/dist/eval/collection-benchmark/history.d.ts.map +1 -0
  245. package/dist/eval/collection-benchmark/history.js +134 -0
  246. package/dist/eval/collection-benchmark/history.js.map +1 -0
  247. package/dist/eval/collection-benchmark/latency.d.ts +16 -0
  248. package/dist/eval/collection-benchmark/latency.d.ts.map +1 -0
  249. package/dist/eval/collection-benchmark/latency.js +115 -0
  250. package/dist/eval/collection-benchmark/latency.js.map +1 -0
  251. package/dist/eval/collection-benchmark/reporter.d.ts +18 -0
  252. package/dist/eval/collection-benchmark/reporter.d.ts.map +1 -0
  253. package/dist/eval/collection-benchmark/reporter.js +244 -0
  254. package/dist/eval/collection-benchmark/reporter.js.map +1 -0
  255. package/dist/eval/collection-benchmark/retrieval.d.ts +15 -0
  256. package/dist/eval/collection-benchmark/retrieval.d.ts.map +1 -0
  257. package/dist/eval/collection-benchmark/retrieval.js +203 -0
  258. package/dist/eval/collection-benchmark/retrieval.js.map +1 -0
  259. package/dist/eval/collection-benchmark/runner.d.ts +20 -0
  260. package/dist/eval/collection-benchmark/runner.d.ts.map +1 -0
  261. package/dist/eval/collection-benchmark/runner.js +189 -0
  262. package/dist/eval/collection-benchmark/runner.js.map +1 -0
  263. package/dist/eval/collection-benchmark/sampler.d.ts +18 -0
  264. package/dist/eval/collection-benchmark/sampler.d.ts.map +1 -0
  265. package/dist/eval/collection-benchmark/sampler.js +186 -0
  266. package/dist/eval/collection-benchmark/sampler.js.map +1 -0
  267. package/dist/eval/collection-benchmark/tuning.d.ts +12 -0
  268. package/dist/eval/collection-benchmark/tuning.d.ts.map +1 -0
  269. package/dist/eval/collection-benchmark/tuning.js +222 -0
  270. package/dist/eval/collection-benchmark/tuning.js.map +1 -0
  271. package/dist/eval/collection-benchmark/types.d.ts +183 -0
  272. package/dist/eval/collection-benchmark/types.d.ts.map +1 -0
  273. package/dist/eval/collection-benchmark/types.js +7 -0
  274. package/dist/eval/collection-benchmark/types.js.map +1 -0
  275. package/dist/eval/context-window-test.d.ts +34 -0
  276. package/dist/eval/context-window-test.d.ts.map +1 -0
  277. package/dist/eval/context-window-test.js +59 -0
  278. package/dist/eval/context-window-test.js.map +1 -0
  279. package/dist/eval/corpus-builder.d.ts +33 -0
  280. package/dist/eval/corpus-builder.d.ts.map +1 -0
  281. package/dist/eval/corpus-builder.js +88 -0
  282. package/dist/eval/corpus-builder.js.map +1 -0
  283. package/dist/eval/experiments/boilerplate-filter.d.ts +26 -0
  284. package/dist/eval/experiments/boilerplate-filter.d.ts.map +1 -0
  285. package/dist/eval/experiments/boilerplate-filter.js +95 -0
  286. package/dist/eval/experiments/boilerplate-filter.js.map +1 -0
  287. package/dist/eval/experiments/cluster-threshold/index.d.ts +6 -0
  288. package/dist/eval/experiments/cluster-threshold/index.d.ts.map +1 -0
  289. package/dist/eval/experiments/cluster-threshold/index.js +5 -0
  290. package/dist/eval/experiments/cluster-threshold/index.js.map +1 -0
  291. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.d.ts +58 -0
  292. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.d.ts.map +1 -0
  293. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.js +246 -0
  294. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.js.map +1 -0
  295. package/dist/eval/experiments/code-focused-mode.d.ts +20 -0
  296. package/dist/eval/experiments/code-focused-mode.d.ts.map +1 -0
  297. package/dist/eval/experiments/code-focused-mode.js +66 -0
  298. package/dist/eval/experiments/code-focused-mode.js.map +1 -0
  299. package/dist/eval/experiments/edge-decay/decay-curves.d.ts +59 -0
  300. package/dist/eval/experiments/edge-decay/decay-curves.d.ts.map +1 -0
  301. package/dist/eval/experiments/edge-decay/decay-curves.js +124 -0
  302. package/dist/eval/experiments/edge-decay/decay-curves.js.map +1 -0
  303. package/dist/eval/experiments/edge-decay/index.d.ts +13 -0
  304. package/dist/eval/experiments/edge-decay/index.d.ts.map +1 -0
  305. package/dist/eval/experiments/edge-decay/index.js +16 -0
  306. package/dist/eval/experiments/edge-decay/index.js.map +1 -0
  307. package/dist/eval/experiments/edge-decay/presets.d.ts +52 -0
  308. package/dist/eval/experiments/edge-decay/presets.d.ts.map +1 -0
  309. package/dist/eval/experiments/edge-decay/presets.js +234 -0
  310. package/dist/eval/experiments/edge-decay/presets.js.map +1 -0
  311. package/dist/eval/experiments/edge-decay/reference-extractor.d.ts +34 -0
  312. package/dist/eval/experiments/edge-decay/reference-extractor.d.ts.map +1 -0
  313. package/dist/eval/experiments/edge-decay/reference-extractor.js +353 -0
  314. package/dist/eval/experiments/edge-decay/reference-extractor.js.map +1 -0
  315. package/dist/eval/experiments/edge-decay/reference-types.d.ts +131 -0
  316. package/dist/eval/experiments/edge-decay/reference-types.d.ts.map +1 -0
  317. package/dist/eval/experiments/edge-decay/reference-types.js +5 -0
  318. package/dist/eval/experiments/edge-decay/reference-types.js.map +1 -0
  319. package/dist/eval/experiments/edge-decay/retrieval-ranking.d.ts +64 -0
  320. package/dist/eval/experiments/edge-decay/retrieval-ranking.d.ts.map +1 -0
  321. package/dist/eval/experiments/edge-decay/retrieval-ranking.js +565 -0
  322. package/dist/eval/experiments/edge-decay/retrieval-ranking.js.map +1 -0
  323. package/dist/eval/experiments/edge-decay/run-experiments.d.ts +25 -0
  324. package/dist/eval/experiments/edge-decay/run-experiments.d.ts.map +1 -0
  325. package/dist/eval/experiments/edge-decay/run-experiments.js +229 -0
  326. package/dist/eval/experiments/edge-decay/run-experiments.js.map +1 -0
  327. package/dist/eval/experiments/edge-decay/simulate.d.ts +42 -0
  328. package/dist/eval/experiments/edge-decay/simulate.d.ts.map +1 -0
  329. package/dist/eval/experiments/edge-decay/simulate.js +232 -0
  330. package/dist/eval/experiments/edge-decay/simulate.js.map +1 -0
  331. package/dist/eval/experiments/edge-decay/types.d.ts +10 -0
  332. package/dist/eval/experiments/edge-decay/types.d.ts.map +1 -0
  333. package/dist/eval/experiments/edge-decay/types.js +9 -0
  334. package/dist/eval/experiments/edge-decay/types.js.map +1 -0
  335. package/dist/eval/experiments/hdbscan-sweep.d.ts +19 -0
  336. package/dist/eval/experiments/hdbscan-sweep.d.ts.map +1 -0
  337. package/dist/eval/experiments/hdbscan-sweep.js +71 -0
  338. package/dist/eval/experiments/hdbscan-sweep.js.map +1 -0
  339. package/dist/eval/experiments/single-model-run.d.ts +54 -0
  340. package/dist/eval/experiments/single-model-run.d.ts.map +1 -0
  341. package/dist/eval/experiments/single-model-run.js +120 -0
  342. package/dist/eval/experiments/single-model-run.js.map +1 -0
  343. package/dist/eval/experiments/thinking-ablation.d.ts +21 -0
  344. package/dist/eval/experiments/thinking-ablation.d.ts.map +1 -0
  345. package/dist/eval/experiments/thinking-ablation.js +68 -0
  346. package/dist/eval/experiments/thinking-ablation.js.map +1 -0
  347. package/dist/eval/experiments/topic-continuity/embedding-classifier.d.ts +55 -0
  348. package/dist/eval/experiments/topic-continuity/embedding-classifier.d.ts.map +1 -0
  349. package/dist/eval/experiments/topic-continuity/embedding-classifier.js +126 -0
  350. package/dist/eval/experiments/topic-continuity/embedding-classifier.js.map +1 -0
  351. package/dist/eval/experiments/topic-continuity/hybrid-classifier.d.ts +68 -0
  352. package/dist/eval/experiments/topic-continuity/hybrid-classifier.d.ts.map +1 -0
  353. package/dist/eval/experiments/topic-continuity/hybrid-classifier.js +175 -0
  354. package/dist/eval/experiments/topic-continuity/hybrid-classifier.js.map +1 -0
  355. package/dist/eval/experiments/topic-continuity/index.d.ts +13 -0
  356. package/dist/eval/experiments/topic-continuity/index.d.ts.map +1 -0
  357. package/dist/eval/experiments/topic-continuity/index.js +17 -0
  358. package/dist/eval/experiments/topic-continuity/index.js.map +1 -0
  359. package/dist/eval/experiments/topic-continuity/labeler.d.ts +42 -0
  360. package/dist/eval/experiments/topic-continuity/labeler.d.ts.map +1 -0
  361. package/dist/eval/experiments/topic-continuity/labeler.js +253 -0
  362. package/dist/eval/experiments/topic-continuity/labeler.js.map +1 -0
  363. package/dist/eval/experiments/topic-continuity/lexical-features.d.ts +26 -0
  364. package/dist/eval/experiments/topic-continuity/lexical-features.d.ts.map +1 -0
  365. package/dist/eval/experiments/topic-continuity/lexical-features.js +58 -0
  366. package/dist/eval/experiments/topic-continuity/lexical-features.js.map +1 -0
  367. package/dist/eval/experiments/topic-continuity/run-experiment.d.ts +40 -0
  368. package/dist/eval/experiments/topic-continuity/run-experiment.d.ts.map +1 -0
  369. package/dist/eval/experiments/topic-continuity/run-experiment.js +379 -0
  370. package/dist/eval/experiments/topic-continuity/run-experiment.js.map +1 -0
  371. package/dist/eval/experiments/topic-continuity/types.d.ts +146 -0
  372. package/dist/eval/experiments/topic-continuity/types.d.ts.map +1 -0
  373. package/dist/eval/experiments/topic-continuity/types.js +9 -0
  374. package/dist/eval/experiments/topic-continuity/types.js.map +1 -0
  375. package/dist/eval/experiments/truncation.d.ts +21 -0
  376. package/dist/eval/experiments/truncation.d.ts.map +1 -0
  377. package/dist/eval/experiments/truncation.js +59 -0
  378. package/dist/eval/experiments/truncation.js.map +1 -0
  379. package/dist/eval/experiments/types.d.ts +37 -0
  380. package/dist/eval/experiments/types.d.ts.map +1 -0
  381. package/dist/eval/experiments/types.js +13 -0
  382. package/dist/eval/experiments/types.js.map +1 -0
  383. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.d.ts +10 -0
  384. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.d.ts.map +1 -0
  385. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.js +229 -0
  386. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.js.map +1 -0
  387. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.d.ts +12 -0
  388. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.d.ts.map +1 -0
  389. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.js +316 -0
  390. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.js.map +1 -0
  391. package/dist/eval/experiments/vector-decay-shapes/hop-decay.d.ts +19 -0
  392. package/dist/eval/experiments/vector-decay-shapes/hop-decay.d.ts.map +1 -0
  393. package/dist/eval/experiments/vector-decay-shapes/hop-decay.js +127 -0
  394. package/dist/eval/experiments/vector-decay-shapes/hop-decay.js.map +1 -0
  395. package/dist/eval/experiments/vector-decay-shapes/index.d.ts +11 -0
  396. package/dist/eval/experiments/vector-decay-shapes/index.d.ts.map +1 -0
  397. package/dist/eval/experiments/vector-decay-shapes/index.js +11 -0
  398. package/dist/eval/experiments/vector-decay-shapes/index.js.map +1 -0
  399. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.d.ts +14 -0
  400. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.d.ts.map +1 -0
  401. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.js +274 -0
  402. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.js.map +1 -0
  403. package/dist/eval/experiments/vector-decay-shapes/presets.d.ts +36 -0
  404. package/dist/eval/experiments/vector-decay-shapes/presets.d.ts.map +1 -0
  405. package/dist/eval/experiments/vector-decay-shapes/presets.js +157 -0
  406. package/dist/eval/experiments/vector-decay-shapes/presets.js.map +1 -0
  407. package/dist/eval/experiments/vector-decay-shapes/run-experiment.d.ts +20 -0
  408. package/dist/eval/experiments/vector-decay-shapes/run-experiment.d.ts.map +1 -0
  409. package/dist/eval/experiments/vector-decay-shapes/run-experiment.js +504 -0
  410. package/dist/eval/experiments/vector-decay-shapes/run-experiment.js.map +1 -0
  411. package/dist/eval/experiments/vector-decay-shapes/types.d.ts +111 -0
  412. package/dist/eval/experiments/vector-decay-shapes/types.d.ts.map +1 -0
  413. package/dist/eval/experiments/vector-decay-shapes/types.js +15 -0
  414. package/dist/eval/experiments/vector-decay-shapes/types.js.map +1 -0
  415. package/dist/eval/experiments/vector-decay-sweep/index.d.ts +7 -0
  416. package/dist/eval/experiments/vector-decay-sweep/index.d.ts.map +1 -0
  417. package/dist/eval/experiments/vector-decay-sweep/index.js +7 -0
  418. package/dist/eval/experiments/vector-decay-sweep/index.js.map +1 -0
  419. package/dist/eval/experiments/vector-decay-sweep/run-sweep.d.ts +30 -0
  420. package/dist/eval/experiments/vector-decay-sweep/run-sweep.d.ts.map +1 -0
  421. package/dist/eval/experiments/vector-decay-sweep/run-sweep.js +378 -0
  422. package/dist/eval/experiments/vector-decay-sweep/run-sweep.js.map +1 -0
  423. package/dist/eval/experiments/vector-decay-sweep/types.d.ts +109 -0
  424. package/dist/eval/experiments/vector-decay-sweep/types.d.ts.map +1 -0
  425. package/dist/eval/experiments/vector-decay-sweep/types.js +16 -0
  426. package/dist/eval/experiments/vector-decay-sweep/types.js.map +1 -0
  427. package/dist/eval/metrics.d.ts +45 -0
  428. package/dist/eval/metrics.d.ts.map +1 -0
  429. package/dist/eval/metrics.js +134 -0
  430. package/dist/eval/metrics.js.map +1 -0
  431. package/dist/hooks/claudemd-generator.d.ts +62 -0
  432. package/dist/hooks/claudemd-generator.d.ts.map +1 -0
  433. package/dist/hooks/claudemd-generator.js +220 -0
  434. package/dist/hooks/claudemd-generator.js.map +1 -0
  435. package/dist/hooks/hook-utils.d.ts +84 -0
  436. package/dist/hooks/hook-utils.d.ts.map +1 -0
  437. package/dist/hooks/hook-utils.js +187 -0
  438. package/dist/hooks/hook-utils.js.map +1 -0
  439. package/dist/hooks/index.d.ts +12 -0
  440. package/dist/hooks/index.d.ts.map +1 -0
  441. package/dist/hooks/index.js +12 -0
  442. package/dist/hooks/index.js.map +1 -0
  443. package/dist/hooks/pre-compact.d.ts +58 -0
  444. package/dist/hooks/pre-compact.d.ts.map +1 -0
  445. package/dist/hooks/pre-compact.js +127 -0
  446. package/dist/hooks/pre-compact.js.map +1 -0
  447. package/dist/hooks/session-start.d.ts +62 -0
  448. package/dist/hooks/session-start.d.ts.map +1 -0
  449. package/dist/hooks/session-start.js +249 -0
  450. package/dist/hooks/session-start.js.map +1 -0
  451. package/dist/index.d.ts +22 -0
  452. package/dist/index.d.ts.map +1 -0
  453. package/dist/index.js +29 -0
  454. package/dist/index.js.map +1 -0
  455. package/dist/ingest/batch-ingest.d.ts +94 -0
  456. package/dist/ingest/batch-ingest.d.ts.map +1 -0
  457. package/dist/ingest/batch-ingest.js +167 -0
  458. package/dist/ingest/batch-ingest.js.map +1 -0
  459. package/dist/ingest/brief-debrief-detector.d.ts +74 -0
  460. package/dist/ingest/brief-debrief-detector.d.ts.map +1 -0
  461. package/dist/ingest/brief-debrief-detector.js +253 -0
  462. package/dist/ingest/brief-debrief-detector.js.map +1 -0
  463. package/dist/ingest/cross-session-linker.d.ts +39 -0
  464. package/dist/ingest/cross-session-linker.d.ts.map +1 -0
  465. package/dist/ingest/cross-session-linker.js +103 -0
  466. package/dist/ingest/cross-session-linker.js.map +1 -0
  467. package/dist/ingest/edge-creator.d.ts +62 -0
  468. package/dist/ingest/edge-creator.d.ts.map +1 -0
  469. package/dist/ingest/edge-creator.js +186 -0
  470. package/dist/ingest/edge-creator.js.map +1 -0
  471. package/dist/ingest/edge-detector.d.ts +37 -0
  472. package/dist/ingest/edge-detector.d.ts.map +1 -0
  473. package/dist/ingest/edge-detector.js +234 -0
  474. package/dist/ingest/edge-detector.js.map +1 -0
  475. package/dist/ingest/index.d.ts +14 -0
  476. package/dist/ingest/index.d.ts.map +1 -0
  477. package/dist/ingest/index.js +14 -0
  478. package/dist/ingest/index.js.map +1 -0
  479. package/dist/ingest/ingest-session.d.ts +83 -0
  480. package/dist/ingest/ingest-session.d.ts.map +1 -0
  481. package/dist/ingest/ingest-session.js +415 -0
  482. package/dist/ingest/ingest-session.js.map +1 -0
  483. package/dist/maintenance/index.d.ts +5 -0
  484. package/dist/maintenance/index.d.ts.map +1 -0
  485. package/dist/maintenance/index.js +5 -0
  486. package/dist/maintenance/index.js.map +1 -0
  487. package/dist/maintenance/scheduler.d.ts +79 -0
  488. package/dist/maintenance/scheduler.d.ts.map +1 -0
  489. package/dist/maintenance/scheduler.js +362 -0
  490. package/dist/maintenance/scheduler.js.map +1 -0
  491. package/dist/maintenance/tasks/cleanup-vectors.d.ts +10 -0
  492. package/dist/maintenance/tasks/cleanup-vectors.d.ts.map +1 -0
  493. package/dist/maintenance/tasks/cleanup-vectors.js +23 -0
  494. package/dist/maintenance/tasks/cleanup-vectors.js.map +1 -0
  495. package/dist/maintenance/tasks/index.d.ts +9 -0
  496. package/dist/maintenance/tasks/index.d.ts.map +1 -0
  497. package/dist/maintenance/tasks/index.js +9 -0
  498. package/dist/maintenance/tasks/index.js.map +1 -0
  499. package/dist/maintenance/tasks/prune-graph.d.ts +12 -0
  500. package/dist/maintenance/tasks/prune-graph.d.ts.map +1 -0
  501. package/dist/maintenance/tasks/prune-graph.js +23 -0
  502. package/dist/maintenance/tasks/prune-graph.js.map +1 -0
  503. package/dist/maintenance/tasks/scan-projects.d.ts +12 -0
  504. package/dist/maintenance/tasks/scan-projects.d.ts.map +1 -0
  505. package/dist/maintenance/tasks/scan-projects.js +31 -0
  506. package/dist/maintenance/tasks/scan-projects.js.map +1 -0
  507. package/dist/maintenance/tasks/update-clusters.d.ts +12 -0
  508. package/dist/maintenance/tasks/update-clusters.d.ts.map +1 -0
  509. package/dist/maintenance/tasks/update-clusters.js +41 -0
  510. package/dist/maintenance/tasks/update-clusters.js.map +1 -0
  511. package/dist/maintenance/tasks/vacuum.d.ts +10 -0
  512. package/dist/maintenance/tasks/vacuum.d.ts.map +1 -0
  513. package/dist/maintenance/tasks/vacuum.js +23 -0
  514. package/dist/maintenance/tasks/vacuum.js.map +1 -0
  515. package/dist/mcp/index.d.ts +7 -0
  516. package/dist/mcp/index.d.ts.map +1 -0
  517. package/dist/mcp/index.js +8 -0
  518. package/dist/mcp/index.js.map +1 -0
  519. package/dist/mcp/server.d.ts +90 -0
  520. package/dist/mcp/server.d.ts.map +1 -0
  521. package/dist/mcp/server.js +395 -0
  522. package/dist/mcp/server.js.map +1 -0
  523. package/dist/mcp/tools.d.ts +52 -0
  524. package/dist/mcp/tools.d.ts.map +1 -0
  525. package/dist/mcp/tools.js +292 -0
  526. package/dist/mcp/tools.js.map +1 -0
  527. package/dist/models/device-detector.d.ts +32 -0
  528. package/dist/models/device-detector.d.ts.map +1 -0
  529. package/dist/models/device-detector.js +123 -0
  530. package/dist/models/device-detector.js.map +1 -0
  531. package/dist/models/embedder.d.ts +60 -0
  532. package/dist/models/embedder.d.ts.map +1 -0
  533. package/dist/models/embedder.js +171 -0
  534. package/dist/models/embedder.js.map +1 -0
  535. package/dist/models/model-registry.d.ts +25 -0
  536. package/dist/models/model-registry.d.ts.map +1 -0
  537. package/dist/models/model-registry.js +56 -0
  538. package/dist/models/model-registry.js.map +1 -0
  539. package/dist/parser/chunker.d.ts +74 -0
  540. package/dist/parser/chunker.d.ts.map +1 -0
  541. package/dist/parser/chunker.js +330 -0
  542. package/dist/parser/chunker.js.map +1 -0
  543. package/dist/parser/session-reader.d.ts +75 -0
  544. package/dist/parser/session-reader.d.ts.map +1 -0
  545. package/dist/parser/session-reader.js +198 -0
  546. package/dist/parser/session-reader.js.map +1 -0
  547. package/dist/parser/turn-assembler.d.ts +18 -0
  548. package/dist/parser/turn-assembler.d.ts.map +1 -0
  549. package/dist/parser/turn-assembler.js +150 -0
  550. package/dist/parser/turn-assembler.js.map +1 -0
  551. package/dist/parser/types.d.ts +124 -0
  552. package/dist/parser/types.d.ts.map +1 -0
  553. package/dist/parser/types.js +8 -0
  554. package/dist/parser/types.js.map +1 -0
  555. package/dist/report/reporter.d.ts +18 -0
  556. package/dist/report/reporter.d.ts.map +1 -0
  557. package/dist/report/reporter.js +121 -0
  558. package/dist/report/reporter.js.map +1 -0
  559. package/dist/retrieval/cluster-expander.d.ts +30 -0
  560. package/dist/retrieval/cluster-expander.d.ts.map +1 -0
  561. package/dist/retrieval/cluster-expander.js +87 -0
  562. package/dist/retrieval/cluster-expander.js.map +1 -0
  563. package/dist/retrieval/context-assembler.d.ts +89 -0
  564. package/dist/retrieval/context-assembler.d.ts.map +1 -0
  565. package/dist/retrieval/context-assembler.js +313 -0
  566. package/dist/retrieval/context-assembler.js.map +1 -0
  567. package/dist/retrieval/index.d.ts +12 -0
  568. package/dist/retrieval/index.d.ts.map +1 -0
  569. package/dist/retrieval/index.js +12 -0
  570. package/dist/retrieval/index.js.map +1 -0
  571. package/dist/retrieval/rrf.d.ts +25 -0
  572. package/dist/retrieval/rrf.d.ts.map +1 -0
  573. package/dist/retrieval/rrf.js +56 -0
  574. package/dist/retrieval/rrf.js.map +1 -0
  575. package/dist/retrieval/session-reconstructor.d.ts +79 -0
  576. package/dist/retrieval/session-reconstructor.d.ts.map +1 -0
  577. package/dist/retrieval/session-reconstructor.js +173 -0
  578. package/dist/retrieval/session-reconstructor.js.map +1 -0
  579. package/dist/retrieval/traverser.d.ts +66 -0
  580. package/dist/retrieval/traverser.d.ts.map +1 -0
  581. package/dist/retrieval/traverser.js +160 -0
  582. package/dist/retrieval/traverser.js.map +1 -0
  583. package/dist/storage/archive.d.ts +81 -0
  584. package/dist/storage/archive.d.ts.map +1 -0
  585. package/dist/storage/archive.js +204 -0
  586. package/dist/storage/archive.js.map +1 -0
  587. package/dist/storage/audit-log.d.ts +29 -0
  588. package/dist/storage/audit-log.d.ts.map +1 -0
  589. package/dist/storage/audit-log.js +69 -0
  590. package/dist/storage/audit-log.js.map +1 -0
  591. package/dist/storage/checkpoint-store.d.ts +38 -0
  592. package/dist/storage/checkpoint-store.d.ts.map +1 -0
  593. package/dist/storage/checkpoint-store.js +76 -0
  594. package/dist/storage/checkpoint-store.js.map +1 -0
  595. package/dist/storage/chunk-store.d.ts +111 -0
  596. package/dist/storage/chunk-store.d.ts.map +1 -0
  597. package/dist/storage/chunk-store.js +298 -0
  598. package/dist/storage/chunk-store.js.map +1 -0
  599. package/dist/storage/clock-store.d.ts +80 -0
  600. package/dist/storage/clock-store.d.ts.map +1 -0
  601. package/dist/storage/clock-store.js +155 -0
  602. package/dist/storage/clock-store.js.map +1 -0
  603. package/dist/storage/cluster-store.d.ts +63 -0
  604. package/dist/storage/cluster-store.d.ts.map +1 -0
  605. package/dist/storage/cluster-store.js +219 -0
  606. package/dist/storage/cluster-store.js.map +1 -0
  607. package/dist/storage/db.d.ts +57 -0
  608. package/dist/storage/db.d.ts.map +1 -0
  609. package/dist/storage/db.js +249 -0
  610. package/dist/storage/db.js.map +1 -0
  611. package/dist/storage/decay.d.ts +125 -0
  612. package/dist/storage/decay.d.ts.map +1 -0
  613. package/dist/storage/decay.js +276 -0
  614. package/dist/storage/decay.js.map +1 -0
  615. package/dist/storage/edge-store.d.ts +75 -0
  616. package/dist/storage/edge-store.d.ts.map +1 -0
  617. package/dist/storage/edge-store.js +259 -0
  618. package/dist/storage/edge-store.js.map +1 -0
  619. package/dist/storage/embedding-cache.d.ts +51 -0
  620. package/dist/storage/embedding-cache.d.ts.map +1 -0
  621. package/dist/storage/embedding-cache.js +155 -0
  622. package/dist/storage/embedding-cache.js.map +1 -0
  623. package/dist/storage/encryption.d.ts +55 -0
  624. package/dist/storage/encryption.d.ts.map +1 -0
  625. package/dist/storage/encryption.js +130 -0
  626. package/dist/storage/encryption.js.map +1 -0
  627. package/dist/storage/index.d.ts +15 -0
  628. package/dist/storage/index.d.ts.map +1 -0
  629. package/dist/storage/index.js +20 -0
  630. package/dist/storage/index.js.map +1 -0
  631. package/dist/storage/keyword-store.d.ts +25 -0
  632. package/dist/storage/keyword-store.d.ts.map +1 -0
  633. package/dist/storage/keyword-store.js +104 -0
  634. package/dist/storage/keyword-store.js.map +1 -0
  635. package/dist/storage/migrations.d.ts +12 -0
  636. package/dist/storage/migrations.d.ts.map +1 -0
  637. package/dist/storage/migrations.js +345 -0
  638. package/dist/storage/migrations.js.map +1 -0
  639. package/dist/storage/pruner.d.ts +111 -0
  640. package/dist/storage/pruner.d.ts.map +1 -0
  641. package/dist/storage/pruner.js +280 -0
  642. package/dist/storage/pruner.js.map +1 -0
  643. package/dist/storage/schema-loader.d.ts +18 -0
  644. package/dist/storage/schema-loader.d.ts.map +1 -0
  645. package/dist/storage/schema-loader.js +62 -0
  646. package/dist/storage/schema-loader.js.map +1 -0
  647. package/dist/storage/schema.sql +133 -0
  648. package/dist/storage/types.d.ts +278 -0
  649. package/dist/storage/types.d.ts.map +1 -0
  650. package/dist/storage/types.js +14 -0
  651. package/dist/storage/types.js.map +1 -0
  652. package/dist/storage/vector-store.d.ts +213 -0
  653. package/dist/storage/vector-store.d.ts.map +1 -0
  654. package/dist/storage/vector-store.js +440 -0
  655. package/dist/storage/vector-store.js.map +1 -0
  656. package/dist/temporal/clock-compactor.d.ts +65 -0
  657. package/dist/temporal/clock-compactor.d.ts.map +1 -0
  658. package/dist/temporal/clock-compactor.js +157 -0
  659. package/dist/temporal/clock-compactor.js.map +1 -0
  660. package/dist/temporal/index.d.ts +6 -0
  661. package/dist/temporal/index.d.ts.map +1 -0
  662. package/dist/temporal/index.js +6 -0
  663. package/dist/temporal/index.js.map +1 -0
  664. package/dist/temporal/vector-clock.d.ts +143 -0
  665. package/dist/temporal/vector-clock.d.ts.map +1 -0
  666. package/dist/temporal/vector-clock.js +231 -0
  667. package/dist/temporal/vector-clock.js.map +1 -0
  668. package/dist/utils/angular-distance.d.ts +31 -0
  669. package/dist/utils/angular-distance.d.ts.map +1 -0
  670. package/dist/utils/angular-distance.js +61 -0
  671. package/dist/utils/angular-distance.js.map +1 -0
  672. package/dist/utils/array-utils.d.ts +28 -0
  673. package/dist/utils/array-utils.d.ts.map +1 -0
  674. package/dist/utils/array-utils.js +67 -0
  675. package/dist/utils/array-utils.js.map +1 -0
  676. package/dist/utils/embedding-utils.d.ts +25 -0
  677. package/dist/utils/embedding-utils.d.ts.map +1 -0
  678. package/dist/utils/embedding-utils.js +30 -0
  679. package/dist/utils/embedding-utils.js.map +1 -0
  680. package/dist/utils/errors.d.ts +143 -0
  681. package/dist/utils/errors.d.ts.map +1 -0
  682. package/dist/utils/errors.js +220 -0
  683. package/dist/utils/errors.js.map +1 -0
  684. package/dist/utils/keychain.d.ts +43 -0
  685. package/dist/utils/keychain.d.ts.map +1 -0
  686. package/dist/utils/keychain.js +82 -0
  687. package/dist/utils/keychain.js.map +1 -0
  688. package/dist/utils/logger.d.ts +50 -0
  689. package/dist/utils/logger.d.ts.map +1 -0
  690. package/dist/utils/logger.js +104 -0
  691. package/dist/utils/logger.js.map +1 -0
  692. package/dist/utils/secret-store.d.ts +110 -0
  693. package/dist/utils/secret-store.d.ts.map +1 -0
  694. package/dist/utils/secret-store.js +340 -0
  695. package/dist/utils/secret-store.js.map +1 -0
  696. package/dist/utils/secure-buffer.d.ts +66 -0
  697. package/dist/utils/secure-buffer.d.ts.map +1 -0
  698. package/dist/utils/secure-buffer.js +104 -0
  699. package/dist/utils/secure-buffer.js.map +1 -0
  700. package/dist/utils/token-counter.d.ts +13 -0
  701. package/dist/utils/token-counter.d.ts.map +1 -0
  702. package/dist/utils/token-counter.js +18 -0
  703. package/dist/utils/token-counter.js.map +1 -0
  704. package/package.json +110 -0
  705. package/src/dashboard/client/package-lock.json +3045 -0
  706. package/src/dashboard/client/package.json +30 -0
@@ -0,0 +1,168 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=u(c);fetch(c.href,f)}})();var Uf={exports:{}},Yi={};/**
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 P0;function gx(){if(P0)return Yi;P0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(r,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:n,type:r,key:h,ref:c!==void 0?c:null,props:f}}return Yi.Fragment=a,Yi.jsx=u,Yi.jsxs=u,Yi}var tg;function yx(){return tg||(tg=1,Uf.exports=gx()),Uf.exports}var z=yx(),jf={exports:{}},yt={};/**
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 eg;function px(){if(eg)return yt;eg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),x=Symbol.iterator;function _(w){return w===null||typeof w!="object"?null:(w=x&&w[x]||w["@@iterator"],typeof w=="function"?w:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,S={};function A(w,X,P){this.props=w,this.context=X,this.refs=S,this.updater=P||O}A.prototype.isReactComponent={},A.prototype.setState=function(w,X){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,X,"setState")},A.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function j(){}j.prototype=A.prototype;function U(w,X,P){this.props=w,this.context=X,this.refs=S,this.updater=P||O}var N=U.prototype=new j;N.constructor=U,T(N,A.prototype),N.isPureReactComponent=!0;var $=Array.isArray;function R(){}var V={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function ut(w,X,P){var lt=P.ref;return{$$typeof:n,type:w,key:X,ref:lt!==void 0?lt:null,props:P}}function rt(w,X){return ut(w.type,X,w.props)}function st(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function F(w){var X={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(P){return X[P]})}var mt=/\/+/g;function Y(w,X){return typeof w=="object"&&w!==null&&w.key!=null?F(""+w.key):X.toString(36)}function et(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(R,R):(w.status="pending",w.then(function(X){w.status==="pending"&&(w.status="fulfilled",w.value=X)},function(X){w.status==="pending"&&(w.status="rejected",w.reason=X)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function E(w,X,P,lt,ct){var dt=typeof w;(dt==="undefined"||dt==="boolean")&&(w=null);var gt=!1;if(w===null)gt=!0;else switch(dt){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(w.$$typeof){case n:case a:gt=!0;break;case p:return gt=w._init,E(gt(w._payload),X,P,lt,ct)}}if(gt)return ct=ct(w),gt=lt===""?"."+Y(w,0):lt,$(ct)?(P="",gt!=null&&(P=gt.replace(mt,"$&/")+"/"),E(ct,X,P,"",function(pt){return pt})):ct!=null&&(st(ct)&&(ct=rt(ct,P+(ct.key==null||w&&w.key===ct.key?"":(""+ct.key).replace(mt,"$&/")+"/")+gt)),X.push(ct)),1;gt=0;var Yt=lt===""?".":lt+":";if($(w))for(var I=0;I<w.length;I++)lt=w[I],dt=Yt+Y(lt,I),gt+=E(lt,X,P,dt,ct);else if(I=_(w),typeof I=="function")for(w=I.call(w),I=0;!(lt=w.next()).done;)lt=lt.value,dt=Yt+Y(lt,I++),gt+=E(lt,X,P,dt,ct);else if(dt==="object"){if(typeof w.then=="function")return E(et(w),X,P,lt,ct);throw X=String(w),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return gt}function k(w,X,P){if(w==null)return w;var lt=[],ct=0;return E(w,lt,"","",function(dt){return X.call(P,dt,ct++)}),lt}function J(w){if(w._status===-1){var X=w._result;X=X(),X.then(function(P){(w._status===0||w._status===-1)&&(w._status=1,w._result=P)},function(P){(w._status===0||w._status===-1)&&(w._status=2,w._result=P)}),w._status===-1&&(w._status=0,w._result=X)}if(w._status===1)return w._result.default;throw w._result}var at=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},nt={map:k,forEach:function(w,X,P){k(w,function(){X.apply(this,arguments)},P)},count:function(w){var X=0;return k(w,function(){X++}),X},toArray:function(w){return k(w,function(X){return X})||[]},only:function(w){if(!st(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return yt.Activity=v,yt.Children=nt,yt.Component=A,yt.Fragment=u,yt.Profiler=c,yt.PureComponent=U,yt.StrictMode=r,yt.Suspense=g,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,yt.__COMPILER_RUNTIME={__proto__:null,c:function(w){return V.H.useMemoCache(w)}},yt.cache=function(w){return function(){return w.apply(null,arguments)}},yt.cacheSignal=function(){return null},yt.cloneElement=function(w,X,P){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var lt=T({},w.props),ct=w.key;if(X!=null)for(dt in X.key!==void 0&&(ct=""+X.key),X)!tt.call(X,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&X.ref===void 0||(lt[dt]=X[dt]);var dt=arguments.length-2;if(dt===1)lt.children=P;else if(1<dt){for(var gt=Array(dt),Yt=0;Yt<dt;Yt++)gt[Yt]=arguments[Yt+2];lt.children=gt}return ut(w.type,ct,lt)},yt.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},yt.createElement=function(w,X,P){var lt,ct={},dt=null;if(X!=null)for(lt in X.key!==void 0&&(dt=""+X.key),X)tt.call(X,lt)&&lt!=="key"&&lt!=="__self"&&lt!=="__source"&&(ct[lt]=X[lt]);var gt=arguments.length-2;if(gt===1)ct.children=P;else if(1<gt){for(var Yt=Array(gt),I=0;I<gt;I++)Yt[I]=arguments[I+2];ct.children=Yt}if(w&&w.defaultProps)for(lt in gt=w.defaultProps,gt)ct[lt]===void 0&&(ct[lt]=gt[lt]);return ut(w,dt,ct)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(w){return{$$typeof:m,render:w}},yt.isValidElement=st,yt.lazy=function(w){return{$$typeof:p,_payload:{_status:-1,_result:w},_init:J}},yt.memo=function(w,X){return{$$typeof:d,type:w,compare:X===void 0?null:X}},yt.startTransition=function(w){var X=V.T,P={};V.T=P;try{var lt=w(),ct=V.S;ct!==null&&ct(P,lt),typeof lt=="object"&&lt!==null&&typeof lt.then=="function"&&lt.then(R,at)}catch(dt){at(dt)}finally{X!==null&&P.types!==null&&(X.types=P.types),V.T=X}},yt.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},yt.use=function(w){return V.H.use(w)},yt.useActionState=function(w,X,P){return V.H.useActionState(w,X,P)},yt.useCallback=function(w,X){return V.H.useCallback(w,X)},yt.useContext=function(w){return V.H.useContext(w)},yt.useDebugValue=function(){},yt.useDeferredValue=function(w,X){return V.H.useDeferredValue(w,X)},yt.useEffect=function(w,X){return V.H.useEffect(w,X)},yt.useEffectEvent=function(w){return V.H.useEffectEvent(w)},yt.useId=function(){return V.H.useId()},yt.useImperativeHandle=function(w,X,P){return V.H.useImperativeHandle(w,X,P)},yt.useInsertionEffect=function(w,X){return V.H.useInsertionEffect(w,X)},yt.useLayoutEffect=function(w,X){return V.H.useLayoutEffect(w,X)},yt.useMemo=function(w,X){return V.H.useMemo(w,X)},yt.useOptimistic=function(w,X){return V.H.useOptimistic(w,X)},yt.useReducer=function(w,X,P){return V.H.useReducer(w,X,P)},yt.useRef=function(w){return V.H.useRef(w)},yt.useState=function(w){return V.H.useState(w)},yt.useSyncExternalStore=function(w,X,P){return V.H.useSyncExternalStore(w,X,P)},yt.useTransition=function(){return V.H.useTransition()},yt.version="19.2.4",yt}var ng;function Ms(){return ng||(ng=1,jf.exports=px()),jf.exports}var H=Ms(),Hf={exports:{}},Li={},Yf={exports:{}},Lf={};/**
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 lg;function vx(){return lg||(lg=1,(function(n){function a(E,k){var J=E.length;E.push(k);t:for(;0<J;){var at=J-1>>>1,nt=E[at];if(0<c(nt,k))E[at]=k,E[J]=nt,J=at;else break t}}function u(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var k=E[0],J=E.pop();if(J!==k){E[0]=J;t:for(var at=0,nt=E.length,w=nt>>>1;at<w;){var X=2*(at+1)-1,P=E[X],lt=X+1,ct=E[lt];if(0>c(P,J))lt<nt&&0>c(ct,P)?(E[at]=ct,E[lt]=J,at=lt):(E[at]=P,E[X]=J,at=X);else if(lt<nt&&0>c(ct,J))E[at]=ct,E[lt]=J,at=lt;else break t}}return k}function c(E,k){var J=E.sortIndex-k.sortIndex;return J!==0?J:E.id-k.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 h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var g=[],d=[],p=1,v=null,x=3,_=!1,O=!1,T=!1,S=!1,A=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function N(E){for(var k=u(d);k!==null;){if(k.callback===null)r(d);else if(k.startTime<=E)r(d),k.sortIndex=k.expirationTime,a(g,k);else break;k=u(d)}}function $(E){if(T=!1,N(E),!O)if(u(g)!==null)O=!0,R||(R=!0,F());else{var k=u(d);k!==null&&et($,k.startTime-E)}}var R=!1,V=-1,tt=5,ut=-1;function rt(){return S?!0:!(n.unstable_now()-ut<tt)}function st(){if(S=!1,R){var E=n.unstable_now();ut=E;var k=!0;try{t:{O=!1,T&&(T=!1,j(V),V=-1),_=!0;var J=x;try{e:{for(N(E),v=u(g);v!==null&&!(v.expirationTime>E&&rt());){var at=v.callback;if(typeof at=="function"){v.callback=null,x=v.priorityLevel;var nt=at(v.expirationTime<=E);if(E=n.unstable_now(),typeof nt=="function"){v.callback=nt,N(E),k=!0;break e}v===u(g)&&r(g),N(E)}else r(g);v=u(g)}if(v!==null)k=!0;else{var w=u(d);w!==null&&et($,w.startTime-E),k=!1}}break t}finally{v=null,x=J,_=!1}k=void 0}}finally{k?F():R=!1}}}var F;if(typeof U=="function")F=function(){U(st)};else if(typeof MessageChannel<"u"){var mt=new MessageChannel,Y=mt.port2;mt.port1.onmessage=st,F=function(){Y.postMessage(null)}}else F=function(){A(st,0)};function et(E,k){V=A(function(){E(n.unstable_now())},k)}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(E){E.callback=null},n.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):tt=0<E?Math.floor(1e3/E):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(E){switch(x){case 1:case 2:case 3:var k=3;break;default:k=x}var J=x;x=k;try{return E()}finally{x=J}},n.unstable_requestPaint=function(){S=!0},n.unstable_runWithPriority=function(E,k){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var J=x;x=E;try{return k()}finally{x=J}},n.unstable_scheduleCallback=function(E,k,J){var at=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?at+J:at):J=at,E){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=J+nt,E={id:p++,callback:k,priorityLevel:E,startTime:J,expirationTime:nt,sortIndex:-1},J>at?(E.sortIndex=J,a(d,E),u(g)===null&&E===u(d)&&(T?(j(V),V=-1):T=!0,et($,J-at))):(E.sortIndex=nt,a(g,E),O||_||(O=!0,R||(R=!0,F()))),E},n.unstable_shouldYield=rt,n.unstable_wrapCallback=function(E){var k=x;return function(){var J=x;x=k;try{return E.apply(this,arguments)}finally{x=J}}}})(Lf)),Lf}var ag;function xx(){return ag||(ag=1,Yf.exports=vx()),Yf.exports}var Bf={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 ig;function bx(){if(ig)return de;ig=1;var n=Ms();function a(g){var d="https://react.dev/errors/"+g;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+g+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,d,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:g,containerInfo:d,implementation:p}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,d){if(g==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,de.createPortal=function(g,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(a(299));return f(g,d,null,p)},de.flushSync=function(g){var d=h.T,p=r.p;try{if(h.T=null,r.p=2,g)return g()}finally{h.T=d,r.p=p,r.d.f()}},de.preconnect=function(g,d){typeof g=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(g,d))},de.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},de.preinit=function(g,d){if(typeof g=="string"&&d&&typeof d.as=="string"){var p=d.as,v=m(p,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(g,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:_}):p==="script"&&r.d.X(g,{crossOrigin:v,integrity:x,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},de.preinitModule=function(g,d){if(typeof g=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=m(d.as,d.crossOrigin);r.d.M(g,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(g)},de.preload=function(g,d){if(typeof g=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,v=m(p,d.crossOrigin);r.d.L(g,p,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},de.preloadModule=function(g,d){if(typeof g=="string")if(d){var p=m(d.as,d.crossOrigin);r.d.m(g,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(g)},de.requestFormReset=function(g){r.d.r(g)},de.unstable_batchedUpdates=function(g,d){return g(d)},de.useFormState=function(g,d,p){return h.H.useFormState(g,d,p)},de.useFormStatus=function(){return h.H.useHostTransitionStatus()},de.version="19.2.4",de}var ug;function _x(){if(ug)return Bf.exports;ug=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(),Bf.exports=bx(),Bf.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 rg;function Sx(){if(rg)return Li;rg=1;var n=xx(),a=Ms(),u=_x();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 c(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 h(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 m(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 g(t){if(f(t)!==t)throw Error(r(188))}function d(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,i=e;;){var o=l.return;if(o===null)break;var s=o.alternate;if(s===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===l)return g(o),t;if(s===i)return g(o),e;s=s.sibling}throw Error(r(188))}if(l.return!==i.return)l=o,i=s;else{for(var y=!1,b=o.child;b;){if(b===l){y=!0,l=o,i=s;break}if(b===i){y=!0,i=o,l=s;break}b=b.sibling}if(!y){for(b=s.child;b;){if(b===l){y=!0,l=s,i=o;break}if(b===i){y=!0,i=s,l=o;break}b=b.sibling}if(!y)throw Error(r(189))}}if(l.alternate!==i)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function p(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=p(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),U=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),ut=Symbol.for("react.activity"),rt=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function F(t){return t===null||typeof t!="object"?null:(t=st&&t[st]||t["@@iterator"],typeof t=="function"?t:null)}var mt=Symbol.for("react.client.reference");function Y(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===mt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case $:return"Suspense";case R:return"SuspenseList";case ut:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case O:return"Portal";case U:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case N:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case V:return e=t.displayName||null,e!==null?e:Y(t.type)||"Memo";case tt:e=t._payload,t=t._init;try{return Y(t(e))}catch{}}return null}var et=Array.isArray,E=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},at=[],nt=-1;function w(t){return{current:t}}function X(t){0>nt||(t.current=at[nt],at[nt]=null,nt--)}function P(t,e){nt++,at[nt]=t.current,t.current=e}var lt=w(null),ct=w(null),dt=w(null),gt=w(null);function Yt(t,e){switch(P(dt,e),P(ct,t),P(lt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?S0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=S0(e),t=w0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(lt),P(lt,t)}function I(){X(lt),X(ct),X(dt)}function pt(t){t.memoizedState!==null&&P(gt,t);var e=lt.current,l=w0(e,t.type);e!==l&&(P(ct,t),P(lt,l))}function _t(t){ct.current===t&&(X(lt),X(ct)),gt.current===t&&(X(gt),Oi._currentValue=J)}var W,ae;function At(t){if(W===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);W=e&&e[1]||"",ae=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+W+t+ae}var ie=!1;function ue(t,e){if(!t||ie)return"";ie=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(G){var q=G}Reflect.construct(t,[],K)}else{try{K.call()}catch(G){q=G}t.call(K.prototype)}}else{try{throw Error()}catch(G){q=G}(K=t())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(G){if(G&&q&&typeof G.stack=="string")return[G.stack,q.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=i.DetermineComponentFrameRoot(),y=s[0],b=s[1];if(y&&b){var M=y.split(`
44
+ `),B=b.split(`
45
+ `);for(o=i=0;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(i===M.length||o===B.length)for(i=M.length-1,o=B.length-1;1<=i&&0<=o&&M[i]!==B[o];)o--;for(;1<=i&&0<=o;i--,o--)if(M[i]!==B[o]){if(i!==1||o!==1)do if(i--,o--,0>o||M[i]!==B[o]){var Q=`
46
+ `+M[i].replace(" at new "," at ");return t.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",t.displayName)),Q}while(1<=i&&0<=o);break}}}finally{ie=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?At(l):""}function hn(t,e){switch(t.tag){case 26:case 27:case 5:return At(t.type);case 16:return At("Lazy");case 13:return t.child!==e&&e!==null?At("Suspense Fallback"):At("Suspense");case 19:return At("SuspenseList");case 0:case 15:return ue(t.type,!1);case 11:return ue(t.type.render,!1);case 1:return ue(t.type,!0);case 31:return At("Activity");default:return""}}function Va(t){try{var e="",l=null;do e+=hn(t,l),l=t,t=t.return;while(t);return e}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var vo=Object.prototype.hasOwnProperty,xo=n.unstable_scheduleCallback,bo=n.unstable_cancelCallback,Kp=n.unstable_shouldYield,$p=n.unstable_requestPaint,Te=n.unstable_now,Jp=n.unstable_getCurrentPriorityLevel,th=n.unstable_ImmediatePriority,eh=n.unstable_UserBlockingPriority,su=n.unstable_NormalPriority,Fp=n.unstable_LowPriority,nh=n.unstable_IdlePriority,Wp=n.log,Ip=n.unstable_setDisableYieldValue,Qa=null,Ee=null;function Gn(t){if(typeof Wp=="function"&&Ip(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(Qa,t)}catch{}}var Ae=Math.clz32?Math.clz32:ev,Pp=Math.log,tv=Math.LN2;function ev(t){return t>>>=0,t===0?32:31-(Pp(t)/tv|0)|0}var hu=256,du=262144,mu=4194304;function vl(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 gu(t,e,l){var i=t.pendingLanes;if(i===0)return 0;var o=0,s=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var b=i&134217727;return b!==0?(i=b&~s,i!==0?o=vl(i):(y&=b,y!==0?o=vl(y):l||(l=b&~t,l!==0&&(o=vl(l))))):(b=i&~s,b!==0?o=vl(b):y!==0?o=vl(y):l||(l=i&~t,l!==0&&(o=vl(l)))),o===0?0:e!==0&&e!==o&&(e&s)===0&&(s=o&-o,l=e&-e,s>=l||s===32&&(l&4194048)!==0)?e:o}function Za(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function nv(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 lh(){var t=mu;return mu<<=1,(mu&62914560)===0&&(mu=4194304),t}function _o(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ka(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function lv(t,e,l,i,o,s){var y=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,M=t.expirationTimes,B=t.hiddenUpdates;for(l=y&~l;0<l;){var Q=31-Ae(l),K=1<<Q;b[Q]=0,M[Q]=-1;var q=B[Q];if(q!==null)for(B[Q]=null,Q=0;Q<q.length;Q++){var G=q[Q];G!==null&&(G.lane&=-536870913)}l&=~K}i!==0&&ah(t,i,0),s!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=s&~(y&~e))}function ah(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Ae(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|l&261930}function ih(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var i=31-Ae(l),o=1<<i;o&e|t[i]&e&&(t[i]|=e),l&=~o}}function uh(t,e){var l=e&-e;return l=(l&42)!==0?1:So(l),(l&(t.suspendedLanes|e))!==0?0:l}function So(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 wo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function rh(){var t=k.p;return t!==0?t:(t=window.event,t===void 0?32:Z0(t.type))}function oh(t,e){var l=k.p;try{return k.p=t,e()}finally{k.p=l}}var Xn=Math.random().toString(36).slice(2),re="__reactFiber$"+Xn,pe="__reactProps$"+Xn,Kl="__reactContainer$"+Xn,Mo="__reactEvents$"+Xn,av="__reactListeners$"+Xn,iv="__reactHandles$"+Xn,ch="__reactResources$"+Xn,$a="__reactMarker$"+Xn;function To(t){delete t[re],delete t[pe],delete t[Mo],delete t[av],delete t[iv]}function $l(t){var e=t[re];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Kl]||l[re]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=C0(t);t!==null;){if(l=t[re])return l;t=C0(t)}return e}t=l,l=t.parentNode}return null}function Jl(t){if(t=t[re]||t[Kl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ja(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Fl(t){var e=t[ch];return e||(e=t[ch]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function te(t){t[$a]=!0}var fh=new Set,sh={};function xl(t,e){Wl(t,e),Wl(t+"Capture",e)}function Wl(t,e){for(sh[t]=e,t=0;t<e.length;t++)fh.add(e[t])}var uv=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]*$"),hh={},dh={};function rv(t){return vo.call(dh,t)?!0:vo.call(hh,t)?!1:uv.test(t)?dh[t]=!0:(hh[t]=!0,!1)}function yu(t,e,l){if(rv(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function pu(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,i){if(i===null)t.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+i)}}function Ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ov(t,e,l){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,s=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(y){l=""+y,s.call(this,y)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Eo(t){if(!t._valueTracker){var e=mh(t)?"checked":"value";t._valueTracker=ov(t,e,""+t[e])}}function gh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),i="";return t&&(i=mh(t)?t.checked?"true":"false":t.value),t=i,t!==l?(e.setValue(t),!0):!1}function vu(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 cv=/[\n"\\]/g;function Le(t){return t.replace(cv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ao(t,e,l,i,o,s,y,b){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.type=y:t.removeAttribute("type"),e!=null?y==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),e!=null?zo(t,y,Ye(e)):l!=null?zo(t,y,Ye(l)):i!=null&&t.removeAttribute("value"),o==null&&s!=null&&(t.defaultChecked=!!s),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Ye(b):t.removeAttribute("name")}function yh(t,e,l,i,o,s,y,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)){Eo(t);return}l=l!=null?""+Ye(l):"",e=e!=null?""+Ye(e):l,b||e===t.value||(t.value=e),t.defaultValue=e}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=b?t.checked:!!i,t.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.name=y),Eo(t)}function zo(t,e,l){e==="number"&&vu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Il(t,e,l,i){if(t=t.options,e){e={};for(var o=0;o<l.length;o++)e["$"+l[o]]=!0;for(l=0;l<t.length;l++)o=e.hasOwnProperty("$"+t[l].value),t[l].selected!==o&&(t[l].selected=o),o&&i&&(t[l].defaultSelected=!0)}else{for(l=""+Ye(l),e=null,o=0;o<t.length;o++){if(t[o].value===l){t[o].selected=!0,i&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function ph(t,e,l){if(e!=null&&(e=""+Ye(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ye(l):""}function vh(t,e,l,i){if(e==null){if(i!=null){if(l!=null)throw Error(r(92));if(et(i)){if(1<i.length)throw Error(r(93));i=i[0]}l=i}l==null&&(l=""),e=l}l=Ye(e),t.defaultValue=l,i=t.textContent,i===l&&i!==""&&i!==null&&(t.value=i),Eo(t)}function Pl(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var fv=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 xh(t,e,l){var i=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,l):typeof l!="number"||l===0||fv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function bh(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var o in e)i=e[o],e.hasOwnProperty(o)&&l[o]!==i&&xh(t,o,i)}else for(var s in e)e.hasOwnProperty(s)&&xh(t,s,e[s])}function No(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 sv=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"]]),hv=/^[\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 xu(t){return hv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function mn(){}var Co=null;function Ro(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ta=null,ea=null;function _h(t){var e=Jl(t);if(e&&(t=e.stateNode)){var l=t[pe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ao(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 i=l[e];if(i!==t&&i.form===t.form){var o=i[pe]||null;if(!o)throw Error(r(90));Ao(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<l.length;e++)i=l[e],i.form===t.form&&gh(i)}break t;case"textarea":ph(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Il(t,!!l.multiple,e,!1)}}}var Do=!1;function Sh(t,e,l){if(Do)return t(e,l);Do=!0;try{var i=t(e);return i}finally{if(Do=!1,(ta!==null||ea!==null)&&(ur(),ta&&(e=ta,t=ea,ea=ta=null,_h(e),t)))for(e=0;e<t.length;e++)_h(t[e])}}function Fa(t,e){var l=t.stateNode;if(l===null)return null;var i=l[pe]||null;if(i===null)return null;l=i[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":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=!1;if(gn)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{Oo=!1}var Vn=null,Uo=null,bu=null;function wh(){if(bu)return bu;var t,e=Uo,l=e.length,i,o="value"in Vn?Vn.value:Vn.textContent,s=o.length;for(t=0;t<l&&e[t]===o[t];t++);var y=l-t;for(i=1;i<=y&&e[l-i]===o[s-i];i++);return bu=o.slice(t,1<i?1-i:void 0)}function _u(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 Su(){return!0}function Mh(){return!1}function ve(t){function e(l,i,o,s,y){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=s,this.target=y,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)?Su:Mh,this.isPropagationStopped=Mh,this}return v(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=Su)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Su)},persist:function(){},isPersistent:Su}),e}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=ve(bl),Ia=v({},bl,{view:0,detail:0}),dv=ve(Ia),jo,Ho,Pa,Mu=v({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lo,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!==Pa&&(Pa&&t.type==="mousemove"?(jo=t.screenX-Pa.screenX,Ho=t.screenY-Pa.screenY):Ho=jo=0,Pa=t),jo)},movementY:function(t){return"movementY"in t?t.movementY:Ho}}),Th=ve(Mu),mv=v({},Mu,{dataTransfer:0}),gv=ve(mv),yv=v({},Ia,{relatedTarget:0}),Yo=ve(yv),pv=v({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),vv=ve(pv),xv=v({},bl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),bv=ve(xv),_v=v({},bl,{data:0}),Eh=ve(_v),Sv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wv={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"},Mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Mv[t])?!!e[t]:!1}function Lo(){return Tv}var Ev=v({},Ia,{key:function(t){if(t.key){var e=Sv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=_u(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lo,charCode:function(t){return t.type==="keypress"?_u(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_u(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Av=ve(Ev),zv=v({},Mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ah=ve(zv),Nv=v({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lo}),Cv=ve(Nv),Rv=v({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dv=ve(Rv),Ov=v({},Mu,{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}),Uv=ve(Ov),jv=v({},bl,{newState:0,oldState:0}),Hv=ve(jv),Yv=[9,13,27,32],Bo=gn&&"CompositionEvent"in window,ti=null;gn&&"documentMode"in document&&(ti=document.documentMode);var Lv=gn&&"TextEvent"in window&&!ti,zh=gn&&(!Bo||ti&&8<ti&&11>=ti),Nh=" ",Ch=!1;function Rh(t,e){switch(t){case"keyup":return Yv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var na=!1;function Bv(t,e){switch(t){case"compositionend":return Dh(e);case"keypress":return e.which!==32?null:(Ch=!0,Nh);case"textInput":return t=e.data,t===Nh&&Ch?null:t;default:return null}}function qv(t,e){if(na)return t==="compositionend"||!Bo&&Rh(t,e)?(t=wh(),bu=Uo=Vn=null,na=!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 zh&&e.locale!=="ko"?null:e.data;default:return null}}var kv={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 Oh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!kv[t.type]:e==="textarea"}function Uh(t,e,l,i){ta?ea?ea.push(i):ea=[i]:ta=i,e=dr(e,"onChange"),0<e.length&&(l=new wu("onChange","change",null,l,i),t.push({event:l,listeners:e}))}var ei=null,ni=null;function Gv(t){y0(t,0)}function Tu(t){var e=Ja(t);if(gh(e))return t}function jh(t,e){if(t==="change")return e}var Hh=!1;if(gn){var qo;if(gn){var ko="oninput"in document;if(!ko){var Yh=document.createElement("div");Yh.setAttribute("oninput","return;"),ko=typeof Yh.oninput=="function"}qo=ko}else qo=!1;Hh=qo&&(!document.documentMode||9<document.documentMode)}function Lh(){ei&&(ei.detachEvent("onpropertychange",Bh),ni=ei=null)}function Bh(t){if(t.propertyName==="value"&&Tu(ni)){var e=[];Uh(e,ni,t,Ro(t)),Sh(Gv,e)}}function Xv(t,e,l){t==="focusin"?(Lh(),ei=e,ni=l,ei.attachEvent("onpropertychange",Bh)):t==="focusout"&&Lh()}function Vv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Tu(ni)}function Qv(t,e){if(t==="click")return Tu(e)}function Zv(t,e){if(t==="input"||t==="change")return Tu(e)}function Kv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:Kv;function li(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),i=Object.keys(e);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!vo.call(e,o)||!ze(t[o],e[o]))return!1}return!0}function qh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kh(t,e){var l=qh(t);t=0;for(var i;l;){if(l.nodeType===3){if(i=t+l.textContent.length,t<=e&&i>=e)return{node:l,offset:e-t};t=i}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=qh(l)}}function Gh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Gh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Xh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=vu(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=vu(t.document)}return e}function Go(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 $v=gn&&"documentMode"in document&&11>=document.documentMode,la=null,Xo=null,ai=null,Vo=!1;function Vh(t,e,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vo||la==null||la!==vu(i)||(i=la,"selectionStart"in i&&Go(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ai&&li(ai,i)||(ai=i,i=dr(Xo,"onSelect"),0<i.length&&(e=new wu("onSelect","select",null,e,l),t.push({event:e,listeners:i}),e.target=la)))}function _l(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var aa={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionrun:_l("Transition","TransitionRun"),transitionstart:_l("Transition","TransitionStart"),transitioncancel:_l("Transition","TransitionCancel"),transitionend:_l("Transition","TransitionEnd")},Qo={},Qh={};gn&&(Qh=document.createElement("div").style,"AnimationEvent"in window||(delete aa.animationend.animation,delete aa.animationiteration.animation,delete aa.animationstart.animation),"TransitionEvent"in window||delete aa.transitionend.transition);function Sl(t){if(Qo[t])return Qo[t];if(!aa[t])return t;var e=aa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Qh)return Qo[t]=e[l];return t}var Zh=Sl("animationend"),Kh=Sl("animationiteration"),$h=Sl("animationstart"),Jv=Sl("transitionrun"),Fv=Sl("transitionstart"),Wv=Sl("transitioncancel"),Jh=Sl("transitionend"),Fh=new Map,Zo="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(" ");Zo.push("scrollEnd");function Je(t,e){Fh.set(t,e),xl(e,[t])}var Eu=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)},Be=[],ia=0,Ko=0;function Au(){for(var t=ia,e=Ko=ia=0;e<t;){var l=Be[e];Be[e++]=null;var i=Be[e];Be[e++]=null;var o=Be[e];Be[e++]=null;var s=Be[e];if(Be[e++]=null,i!==null&&o!==null){var y=i.pending;y===null?o.next=o:(o.next=y.next,y.next=o),i.pending=o}s!==0&&Wh(l,o,s)}}function zu(t,e,l,i){Be[ia++]=t,Be[ia++]=e,Be[ia++]=l,Be[ia++]=i,Ko|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function $o(t,e,l,i){return zu(t,e,l,i),Nu(t)}function wl(t,e){return zu(t,null,null,e),Nu(t)}function Wh(t,e,l){t.lanes|=l;var i=t.alternate;i!==null&&(i.lanes|=l);for(var o=!1,s=t.return;s!==null;)s.childLanes|=l,i=s.alternate,i!==null&&(i.childLanes|=l),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(o=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,o&&e!==null&&(o=31-Ae(l),t=s.hiddenUpdates,i=t[o],i===null?t[o]=[e]:i.push(e),e.lane=l|536870912),s):null}function Nu(t){if(50<Ei)throw Ei=0,lf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ua={};function Iv(t,e,l,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(t,e,l,i){return new Iv(t,e,l,i)}function Jo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function yn(t,e){var l=t.alternate;return l===null?(l=Ne(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 Ih(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 Cu(t,e,l,i,o,s){var y=0;if(i=t,typeof t=="function")Jo(t)&&(y=1);else if(typeof t=="string")y=lx(t,l,lt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ut:return t=Ne(31,l,e,o),t.elementType=ut,t.lanes=s,t;case T:return Ml(l.children,o,s,e);case S:y=8,o|=24;break;case A:return t=Ne(12,l,e,o|2),t.elementType=A,t.lanes=s,t;case $:return t=Ne(13,l,e,o),t.elementType=$,t.lanes=s,t;case R:return t=Ne(19,l,e,o),t.elementType=R,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:y=10;break t;case j:y=9;break t;case N:y=11;break t;case V:y=14;break t;case tt:y=16,i=null;break t}y=29,l=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=Ne(y,l,e,o),e.elementType=t,e.type=i,e.lanes=s,e}function Ml(t,e,l,i){return t=Ne(7,t,i,e),t.lanes=l,t}function Fo(t,e,l){return t=Ne(6,t,null,e),t.lanes=l,t}function Ph(t){var e=Ne(18,null,null,0);return e.stateNode=t,e}function Wo(t,e,l){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var td=new WeakMap;function qe(t,e){if(typeof t=="object"&&t!==null){var l=td.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Va(e)},td.set(t,e),e)}return{value:t,source:e,stack:Va(e)}}var ra=[],oa=0,Ru=null,ii=0,ke=[],Ge=0,Qn=null,nn=1,ln="";function pn(t,e){ra[oa++]=ii,ra[oa++]=Ru,Ru=t,ii=e}function ed(t,e,l){ke[Ge++]=nn,ke[Ge++]=ln,ke[Ge++]=Qn,Qn=t;var i=nn;t=ln;var o=32-Ae(i)-1;i&=~(1<<o),l+=1;var s=32-Ae(e)+o;if(30<s){var y=o-o%5;s=(i&(1<<y)-1).toString(32),i>>=y,o-=y,nn=1<<32-Ae(e)+o|l<<o|i,ln=s+t}else nn=1<<s|l<<o|i,ln=t}function Io(t){t.return!==null&&(pn(t,1),ed(t,1,0))}function Po(t){for(;t===Ru;)Ru=ra[--oa],ra[oa]=null,ii=ra[--oa],ra[oa]=null;for(;t===Qn;)Qn=ke[--Ge],ke[Ge]=null,ln=ke[--Ge],ke[Ge]=null,nn=ke[--Ge],ke[Ge]=null}function nd(t,e){ke[Ge++]=nn,ke[Ge++]=ln,ke[Ge++]=Qn,nn=e.id,ln=e.overflow,Qn=t}var oe=null,Bt=null,Et=!1,Zn=null,Xe=!1,tc=Error(r(519));function Kn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ui(qe(e,t)),tc}function ld(t){var e=t.stateNode,l=t.type,i=t.memoizedProps;switch(e[re]=t,e[pe]=i,l){case"dialog":wt("cancel",e),wt("close",e);break;case"iframe":case"object":case"embed":wt("load",e);break;case"video":case"audio":for(l=0;l<zi.length;l++)wt(zi[l],e);break;case"source":wt("error",e);break;case"img":case"image":case"link":wt("error",e),wt("load",e);break;case"details":wt("toggle",e);break;case"input":wt("invalid",e),yh(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":wt("invalid",e);break;case"textarea":wt("invalid",e),vh(e,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||i.suppressHydrationWarning===!0||b0(e.textContent,l)?(i.popover!=null&&(wt("beforetoggle",e),wt("toggle",e)),i.onScroll!=null&&wt("scroll",e),i.onScrollEnd!=null&&wt("scrollend",e),i.onClick!=null&&(e.onclick=mn),e=!0):e=!1,e||Kn(t,!0)}function ad(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:oe=oe.return}}function ca(t){if(t!==oe)return!1;if(!Et)return ad(t),Et=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||xf(t.type,t.memoizedProps)),l=!l),l&&Bt&&Kn(t),ad(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=N0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=N0(t)}else e===27?(e=Bt,rl(t.type)?(t=Mf,Mf=null,Bt=t):Bt=e):Bt=oe?Qe(t.stateNode.nextSibling):null;return!0}function Tl(){Bt=oe=null,Et=!1}function ec(){var t=Zn;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),Zn=null),t}function ui(t){Zn===null?Zn=[t]:Zn.push(t)}var nc=w(null),El=null,vn=null;function $n(t,e,l){P(nc,e._currentValue),e._currentValue=l}function xn(t){t._currentValue=nc.current,X(nc)}function lc(t,e,l){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===l)break;t=t.return}}function ac(t,e,l,i){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){var y=o.child;s=s.firstContext;t:for(;s!==null;){var b=s;s=o;for(var M=0;M<e.length;M++)if(b.context===e[M]){s.lanes|=l,b=s.alternate,b!==null&&(b.lanes|=l),lc(s.return,l,t),i||(y=null);break t}s=b.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(r(341));y.lanes|=l,s=y.alternate,s!==null&&(s.lanes|=l),lc(y,l,t),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===t){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function fa(t,e,l,i){t=null;for(var o=e,s=!1;o!==null;){if(!s){if((o.flags&524288)!==0)s=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var b=o.type;ze(o.pendingProps.value,y.value)||(t!==null?t.push(b):t=[b])}}else if(o===gt.current){if(y=o.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Oi):t=[Oi])}o=o.return}t!==null&&ac(e,t,l,i),e.flags|=262144}function Du(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Al(t){El=t,vn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ce(t){return id(El,t)}function Ou(t,e){return El===null&&Al(t),id(t,e)}function id(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},vn===null){if(t===null)throw Error(r(308));vn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else vn=vn.next=e;return l}var Pv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},t1=n.unstable_scheduleCallback,e1=n.unstable_NormalPriority,$t={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new Pv,data:new Map,refCount:0}}function ri(t){t.refCount--,t.refCount===0&&t1(e1,function(){t.controller.abort()})}var oi=null,uc=0,sa=0,ha=null;function n1(t,e){if(oi===null){var l=oi=[];uc=0,sa=ff(),ha={status:"pending",value:void 0,then:function(i){l.push(i)}}}return uc++,e.then(ud,ud),e}function ud(){if(--uc===0&&oi!==null){ha!==null&&(ha.status="fulfilled");var t=oi;oi=null,sa=0,ha=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function l1(t,e){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var o=0;o<l.length;o++)(0,l[o])(e)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var rd=E.S;E.S=function(t,e){Vm=Te(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&n1(t,e),rd!==null&&rd(t,e)};var zl=w(null);function rc(){var t=zl.current;return t!==null?t:Lt.pooledCache}function Uu(t,e){e===null?P(zl,zl.current):P(zl,e.pool)}function od(){var t=rc();return t===null?null:{parent:$t._currentValue,pool:t}}var da=Error(r(460)),oc=Error(r(474)),ju=Error(r(542)),Hu={then:function(){}};function cd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function fd(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(mn,mn),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,hd(t),t;default:if(typeof e.status=="string")e.then(mn,mn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=i}},function(i){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,hd(t),t}throw Cl=e,da}}function Nl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Cl=l,da):l}}var Cl=null;function sd(){if(Cl===null)throw Error(r(459));var t=Cl;return Cl=null,t}function hd(t){if(t===da||t===ju)throw Error(r(483))}var ma=null,ci=0;function Yu(t){var e=ci;return ci+=1,ma===null&&(ma=[]),fd(ma,t,e)}function fi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Lu(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 dd(t){function e(D,C){if(t){var L=D.deletions;L===null?(D.deletions=[C],D.flags|=16):L.push(C)}}function l(D,C){if(!t)return null;for(;C!==null;)e(D,C),C=C.sibling;return null}function i(D){for(var C=new Map;D!==null;)D.key!==null?C.set(D.key,D):C.set(D.index,D),D=D.sibling;return C}function o(D,C){return D=yn(D,C),D.index=0,D.sibling=null,D}function s(D,C,L){return D.index=L,t?(L=D.alternate,L!==null?(L=L.index,L<C?(D.flags|=67108866,C):L):(D.flags|=67108866,C)):(D.flags|=1048576,C)}function y(D){return t&&D.alternate===null&&(D.flags|=67108866),D}function b(D,C,L,Z){return C===null||C.tag!==6?(C=Fo(L,D.mode,Z),C.return=D,C):(C=o(C,L),C.return=D,C)}function M(D,C,L,Z){var ft=L.type;return ft===T?Q(D,C,L.props.children,Z,L.key):C!==null&&(C.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===tt&&Nl(ft)===C.type)?(C=o(C,L.props),fi(C,L),C.return=D,C):(C=Cu(L.type,L.key,L.props,null,D.mode,Z),fi(C,L),C.return=D,C)}function B(D,C,L,Z){return C===null||C.tag!==4||C.stateNode.containerInfo!==L.containerInfo||C.stateNode.implementation!==L.implementation?(C=Wo(L,D.mode,Z),C.return=D,C):(C=o(C,L.children||[]),C.return=D,C)}function Q(D,C,L,Z,ft){return C===null||C.tag!==7?(C=Ml(L,D.mode,Z,ft),C.return=D,C):(C=o(C,L),C.return=D,C)}function K(D,C,L){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Fo(""+C,D.mode,L),C.return=D,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case _:return L=Cu(C.type,C.key,C.props,null,D.mode,L),fi(L,C),L.return=D,L;case O:return C=Wo(C,D.mode,L),C.return=D,C;case tt:return C=Nl(C),K(D,C,L)}if(et(C)||F(C))return C=Ml(C,D.mode,L,null),C.return=D,C;if(typeof C.then=="function")return K(D,Yu(C),L);if(C.$$typeof===U)return K(D,Ou(D,C),L);Lu(D,C)}return null}function q(D,C,L,Z){var ft=C!==null?C.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ft!==null?null:b(D,C,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case _:return L.key===ft?M(D,C,L,Z):null;case O:return L.key===ft?B(D,C,L,Z):null;case tt:return L=Nl(L),q(D,C,L,Z)}if(et(L)||F(L))return ft!==null?null:Q(D,C,L,Z,null);if(typeof L.then=="function")return q(D,C,Yu(L),Z);if(L.$$typeof===U)return q(D,C,Ou(D,L),Z);Lu(D,L)}return null}function G(D,C,L,Z,ft){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return D=D.get(L)||null,b(C,D,""+Z,ft);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case _:return D=D.get(Z.key===null?L:Z.key)||null,M(C,D,Z,ft);case O:return D=D.get(Z.key===null?L:Z.key)||null,B(C,D,Z,ft);case tt:return Z=Nl(Z),G(D,C,L,Z,ft)}if(et(Z)||F(Z))return D=D.get(L)||null,Q(C,D,Z,ft,null);if(typeof Z.then=="function")return G(D,C,L,Yu(Z),ft);if(Z.$$typeof===U)return G(D,C,L,Ou(C,Z),ft);Lu(C,Z)}return null}function it(D,C,L,Z){for(var ft=null,zt=null,ot=C,xt=C=0,Tt=null;ot!==null&&xt<L.length;xt++){ot.index>xt?(Tt=ot,ot=null):Tt=ot.sibling;var Nt=q(D,ot,L[xt],Z);if(Nt===null){ot===null&&(ot=Tt);break}t&&ot&&Nt.alternate===null&&e(D,ot),C=s(Nt,C,xt),zt===null?ft=Nt:zt.sibling=Nt,zt=Nt,ot=Tt}if(xt===L.length)return l(D,ot),Et&&pn(D,xt),ft;if(ot===null){for(;xt<L.length;xt++)ot=K(D,L[xt],Z),ot!==null&&(C=s(ot,C,xt),zt===null?ft=ot:zt.sibling=ot,zt=ot);return Et&&pn(D,xt),ft}for(ot=i(ot);xt<L.length;xt++)Tt=G(ot,D,xt,L[xt],Z),Tt!==null&&(t&&Tt.alternate!==null&&ot.delete(Tt.key===null?xt:Tt.key),C=s(Tt,C,xt),zt===null?ft=Tt:zt.sibling=Tt,zt=Tt);return t&&ot.forEach(function(hl){return e(D,hl)}),Et&&pn(D,xt),ft}function ht(D,C,L,Z){if(L==null)throw Error(r(151));for(var ft=null,zt=null,ot=C,xt=C=0,Tt=null,Nt=L.next();ot!==null&&!Nt.done;xt++,Nt=L.next()){ot.index>xt?(Tt=ot,ot=null):Tt=ot.sibling;var hl=q(D,ot,Nt.value,Z);if(hl===null){ot===null&&(ot=Tt);break}t&&ot&&hl.alternate===null&&e(D,ot),C=s(hl,C,xt),zt===null?ft=hl:zt.sibling=hl,zt=hl,ot=Tt}if(Nt.done)return l(D,ot),Et&&pn(D,xt),ft;if(ot===null){for(;!Nt.done;xt++,Nt=L.next())Nt=K(D,Nt.value,Z),Nt!==null&&(C=s(Nt,C,xt),zt===null?ft=Nt:zt.sibling=Nt,zt=Nt);return Et&&pn(D,xt),ft}for(ot=i(ot);!Nt.done;xt++,Nt=L.next())Nt=G(ot,D,xt,Nt.value,Z),Nt!==null&&(t&&Nt.alternate!==null&&ot.delete(Nt.key===null?xt:Nt.key),C=s(Nt,C,xt),zt===null?ft=Nt:zt.sibling=Nt,zt=Nt);return t&&ot.forEach(function(mx){return e(D,mx)}),Et&&pn(D,xt),ft}function Ht(D,C,L,Z){if(typeof L=="object"&&L!==null&&L.type===T&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case _:t:{for(var ft=L.key;C!==null;){if(C.key===ft){if(ft=L.type,ft===T){if(C.tag===7){l(D,C.sibling),Z=o(C,L.props.children),Z.return=D,D=Z;break t}}else if(C.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===tt&&Nl(ft)===C.type){l(D,C.sibling),Z=o(C,L.props),fi(Z,L),Z.return=D,D=Z;break t}l(D,C);break}else e(D,C);C=C.sibling}L.type===T?(Z=Ml(L.props.children,D.mode,Z,L.key),Z.return=D,D=Z):(Z=Cu(L.type,L.key,L.props,null,D.mode,Z),fi(Z,L),Z.return=D,D=Z)}return y(D);case O:t:{for(ft=L.key;C!==null;){if(C.key===ft)if(C.tag===4&&C.stateNode.containerInfo===L.containerInfo&&C.stateNode.implementation===L.implementation){l(D,C.sibling),Z=o(C,L.children||[]),Z.return=D,D=Z;break t}else{l(D,C);break}else e(D,C);C=C.sibling}Z=Wo(L,D.mode,Z),Z.return=D,D=Z}return y(D);case tt:return L=Nl(L),Ht(D,C,L,Z)}if(et(L))return it(D,C,L,Z);if(F(L)){if(ft=F(L),typeof ft!="function")throw Error(r(150));return L=ft.call(L),ht(D,C,L,Z)}if(typeof L.then=="function")return Ht(D,C,Yu(L),Z);if(L.$$typeof===U)return Ht(D,C,Ou(D,L),Z);Lu(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,C!==null&&C.tag===6?(l(D,C.sibling),Z=o(C,L),Z.return=D,D=Z):(l(D,C),Z=Fo(L,D.mode,Z),Z.return=D,D=Z),y(D)):l(D,C)}return function(D,C,L,Z){try{ci=0;var ft=Ht(D,C,L,Z);return ma=null,ft}catch(ot){if(ot===da||ot===ju)throw ot;var zt=Ne(29,ot,null,D.mode);return zt.lanes=Z,zt.return=D,zt}finally{}}}var Rl=dd(!0),md=dd(!1),Jn=!1;function cc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(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 i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Rt&2)!==0){var o=i.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),i.pending=e,e=Nu(t),Wh(t,null,l),e}return zu(t,i,e,l),Nu(t)}function si(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,l|=i,e.lanes=l,ih(t,l)}}function sc(t,e){var l=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?o=s=y:s=s.next=y,l=l.next}while(l!==null);s===null?o=s=e:s=s.next=e}else o=s=e;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:i.shared,callbacks:i.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var hc=!1;function hi(){if(hc){var t=ha;if(t!==null)throw t}}function di(t,e,l,i){hc=!1;var o=t.updateQueue;Jn=!1;var s=o.firstBaseUpdate,y=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var M=b,B=M.next;M.next=null,y===null?s=B:y.next=B,y=M;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,b=Q.lastBaseUpdate,b!==y&&(b===null?Q.firstBaseUpdate=B:b.next=B,Q.lastBaseUpdate=M))}if(s!==null){var K=o.baseState;y=0,Q=B=M=null,b=s;do{var q=b.lane&-536870913,G=q!==b.lane;if(G?(Mt&q)===q:(i&q)===q){q!==0&&q===sa&&(hc=!0),Q!==null&&(Q=Q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var it=t,ht=b;q=e;var Ht=l;switch(ht.tag){case 1:if(it=ht.payload,typeof it=="function"){K=it.call(Ht,K,q);break t}K=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=ht.payload,q=typeof it=="function"?it.call(Ht,K,q):it,q==null)break t;K=v({},K,q);break t;case 2:Jn=!0}}q=b.callback,q!==null&&(t.flags|=64,G&&(t.flags|=8192),G=o.callbacks,G===null?o.callbacks=[q]:G.push(q))}else G={lane:q,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Q===null?(B=Q=G,M=K):Q=Q.next=G,y|=q;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;G=b,b=G.next,G.next=null,o.lastBaseUpdate=G,o.shared.pending=null}}while(!0);Q===null&&(M=K),o.baseState=M,o.firstBaseUpdate=B,o.lastBaseUpdate=Q,s===null&&(o.shared.lanes=0),nl|=y,t.lanes=y,t.memoizedState=K}}function gd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function yd(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)gd(l[t],e)}var ga=w(null),Bu=w(0);function pd(t,e){t=zn,P(Bu,t),P(ga,e),zn=t|e.baseLanes}function dc(){P(Bu,zn),P(ga,ga.current)}function mc(){zn=Bu.current,X(ga),X(Bu)}var Ce=w(null),Ve=null;function In(t){var e=t.alternate;P(Zt,Zt.current&1),P(Ce,t),Ve===null&&(e===null||ga.current!==null||e.memoizedState!==null)&&(Ve=t)}function gc(t){P(Zt,Zt.current),P(Ce,t),Ve===null&&(Ve=t)}function vd(t){t.tag===22?(P(Zt,Zt.current),P(Ce,t),Ve===null&&(Ve=t)):Pn()}function Pn(){P(Zt,Zt.current),P(Ce,Ce.current)}function Re(t){X(Ce),Ve===t&&(Ve=null),X(Zt)}var Zt=w(0);function qu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Sf(l)||wf(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 bn=0,vt=null,Ut=null,Jt=null,ku=!1,ya=!1,Dl=!1,Gu=0,mi=0,pa=null,a1=0;function Vt(){throw Error(r(321))}function yc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ze(t[l],e[l]))return!1;return!0}function pc(t,e,l,i,o,s){return bn=s,vt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,E.H=t===null||t.memoizedState===null?em:Dc,Dl=!1,s=l(i,o),Dl=!1,ya&&(s=bd(e,l,i,o)),xd(t),s}function xd(t){E.H=pi;var e=Ut!==null&&Ut.next!==null;if(bn=0,Jt=Ut=vt=null,ku=!1,mi=0,pa=null,e)throw Error(r(300));t===null||Ft||(t=t.dependencies,t!==null&&Du(t)&&(Ft=!0))}function bd(t,e,l,i){vt=t;var o=0;do{if(ya&&(pa=null),mi=0,ya=!1,25<=o)throw Error(r(301));if(o+=1,Jt=Ut=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}E.H=nm,s=e(l,i)}while(ya);return s}function i1(){var t=E.H,e=t.useState()[0];return e=typeof e.then=="function"?gi(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(vt.flags|=1024),e}function vc(){var t=Gu!==0;return Gu=0,t}function xc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function bc(t){if(ku){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ku=!1}bn=0,Jt=Ut=vt=null,ya=!1,mi=Gu=0,pa=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?vt.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Kt(){if(Ut===null){var t=vt.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=Jt===null?vt.memoizedState:Jt.next;if(e!==null)Jt=e,Ut=t;else{if(t===null)throw vt.alternate===null?Error(r(467)):Error(r(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},Jt===null?vt.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gi(t){var e=mi;return mi+=1,pa===null&&(pa=[]),t=fd(pa,t,e),e=vt,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,E.H=e===null||e.memoizedState===null?em:Dc),t}function Vu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return gi(t);if(t.$$typeof===U)return ce(t)}throw Error(r(438,String(t)))}function _c(t){var e=null,l=vt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var i=vt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Xu(),vt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),i=0;i<t;i++)l[i]=rt;return e.index++,l}function _n(t,e){return typeof e=="function"?e(t):e}function Qu(t){var e=Kt();return Sc(e,Ut,t)}function Sc(t,e,l){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=l;var o=t.baseQueue,s=i.pending;if(s!==null){if(o!==null){var y=o.next;o.next=s.next,s.next=y}e.baseQueue=o=s,i.pending=null}if(s=t.baseState,o===null)t.memoizedState=s;else{e=o.next;var b=y=null,M=null,B=e,Q=!1;do{var K=B.lane&-536870913;if(K!==B.lane?(Mt&K)===K:(bn&K)===K){var q=B.revertLane;if(q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),K===sa&&(Q=!0);else if((bn&q)===q){B=B.next,q===sa&&(Q=!0);continue}else K={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},M===null?(b=M=K,y=s):M=M.next=K,vt.lanes|=q,nl|=q;K=B.action,Dl&&l(s,K),s=B.hasEagerState?B.eagerState:l(s,K)}else q={lane:K,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},M===null?(b=M=q,y=s):M=M.next=q,vt.lanes|=K,nl|=K;B=B.next}while(B!==null&&B!==e);if(M===null?y=s:M.next=b,!ze(s,t.memoizedState)&&(Ft=!0,Q&&(l=ha,l!==null)))throw l;t.memoizedState=s,t.baseState=y,t.baseQueue=M,i.lastRenderedState=s}return o===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function wc(t){var e=Kt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var i=l.dispatch,o=l.pending,s=e.memoizedState;if(o!==null){l.pending=null;var y=o=o.next;do s=t(s,y.action),y=y.next;while(y!==o);ze(s,e.memoizedState)||(Ft=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),l.lastRenderedState=s}return[s,i]}function _d(t,e,l){var i=vt,o=Kt(),s=Et;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=e();var y=!ze((Ut||o).memoizedState,l);if(y&&(o.memoizedState=l,Ft=!0),o=o.queue,Ec(Md.bind(null,i,o,t),[t]),o.getSnapshot!==e||y||Jt!==null&&Jt.memoizedState.tag&1){if(i.flags|=2048,va(9,{destroy:void 0},wd.bind(null,i,o,l,e),null),Lt===null)throw Error(r(349));s||(bn&127)!==0||Sd(i,e,l)}return l}function Sd(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=vt.updateQueue,e===null?(e=Xu(),vt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function wd(t,e,l,i){e.value=l,e.getSnapshot=i,Td(e)&&Ed(t)}function Md(t,e,l){return l(function(){Td(e)&&Ed(t)})}function Td(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ze(t,l)}catch{return!0}}function Ed(t){var e=wl(t,2);e!==null&&we(e,t,2)}function Mc(t){var e=me();if(typeof t=="function"){var l=t;if(t=l(),Dl){Gn(!0);try{l()}finally{Gn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:t},e}function Ad(t,e,l,i){return t.baseState=l,Sc(t,Ut,typeof i=="function"?i:_n)}function u1(t,e,l,i,o){if($u(t))throw Error(r(485));if(t=e.action,t!==null){var s={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){s.listeners.push(y)}};E.T!==null?l(!0):s.isTransition=!1,i(s),l=e.pending,l===null?(s.next=e.pending=s,zd(e,s)):(s.next=l.next,e.pending=l.next=s)}}function zd(t,e){var l=e.action,i=e.payload,o=t.state;if(e.isTransition){var s=E.T,y={};E.T=y;try{var b=l(o,i),M=E.S;M!==null&&M(y,b),Nd(t,e,b)}catch(B){Tc(t,e,B)}finally{s!==null&&y.types!==null&&(s.types=y.types),E.T=s}}else try{s=l(o,i),Nd(t,e,s)}catch(B){Tc(t,e,B)}}function Nd(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){Cd(t,e,i)},function(i){return Tc(t,e,i)}):Cd(t,e,l)}function Cd(t,e,l){e.status="fulfilled",e.value=l,Rd(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,zd(t,l)))}function Tc(t,e,l){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=l,Rd(e),e=e.next;while(e!==i)}t.action=null}function Rd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Dd(t,e){return e}function Od(t,e){if(Et){var l=Lt.formState;if(l!==null){t:{var i=vt;if(Et){if(Bt){e:{for(var o=Bt,s=Xe;o.nodeType!==8;){if(!s){o=null;break e}if(o=Qe(o.nextSibling),o===null){o=null;break e}}s=o.data,o=s==="F!"||s==="F"?o:null}if(o){Bt=Qe(o.nextSibling),i=o.data==="F!";break t}}Kn(i)}i=!1}i&&(e=l[0])}}return l=me(),l.memoizedState=l.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dd,lastRenderedState:e},l.queue=i,l=Id.bind(null,vt,i),i.dispatch=l,i=Mc(!1),s=Rc.bind(null,vt,!1,i.queue),i=me(),o={state:e,dispatch:null,action:t,pending:null},i.queue=o,l=u1.bind(null,vt,o,s,l),o.dispatch=l,i.memoizedState=t,[e,l,!1]}function Ud(t){var e=Kt();return jd(e,Ut,t)}function jd(t,e,l){if(e=Sc(t,e,Dd)[0],t=Qu(_n)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=gi(e)}catch(y){throw y===da?ju:y}else i=e;e=Kt();var o=e.queue,s=o.dispatch;return l!==e.memoizedState&&(vt.flags|=2048,va(9,{destroy:void 0},r1.bind(null,o,l),null)),[i,s,t]}function r1(t,e){t.action=e}function Hd(t){var e=Kt(),l=Ut;if(l!==null)return jd(e,l,t);Kt(),e=e.memoizedState,l=Kt();var i=l.queue.dispatch;return l.memoizedState=t,[e,i,!1]}function va(t,e,l,i){return t={tag:t,create:l,deps:i,inst:e,next:null},e=vt.updateQueue,e===null&&(e=Xu(),vt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(i=l.next,l.next=t,t.next=i,e.lastEffect=t),t}function Yd(){return Kt().memoizedState}function Zu(t,e,l,i){var o=me();vt.flags|=t,o.memoizedState=va(1|e,{destroy:void 0},l,i===void 0?null:i)}function Ku(t,e,l,i){var o=Kt();i=i===void 0?null:i;var s=o.memoizedState.inst;Ut!==null&&i!==null&&yc(i,Ut.memoizedState.deps)?o.memoizedState=va(e,s,l,i):(vt.flags|=t,o.memoizedState=va(1|e,s,l,i))}function Ld(t,e){Zu(8390656,8,t,e)}function Ec(t,e){Ku(2048,8,t,e)}function o1(t){vt.flags|=4;var e=vt.updateQueue;if(e===null)e=Xu(),vt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Bd(t){var e=Kt().memoizedState;return o1({ref:e,nextImpl:t}),function(){if((Rt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function qd(t,e){return Ku(4,2,t,e)}function kd(t,e){return Ku(4,4,t,e)}function Gd(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 Xd(t,e,l){l=l!=null?l.concat([t]):null,Ku(4,4,Gd.bind(null,e,t),l)}function Ac(){}function Vd(t,e){var l=Kt();e=e===void 0?null:e;var i=l.memoizedState;return e!==null&&yc(e,i[1])?i[0]:(l.memoizedState=[t,e],t)}function Qd(t,e){var l=Kt();e=e===void 0?null:e;var i=l.memoizedState;if(e!==null&&yc(e,i[1]))return i[0];if(i=t(),Dl){Gn(!0);try{t()}finally{Gn(!1)}}return l.memoizedState=[i,e],i}function zc(t,e,l){return l===void 0||(bn&1073741824)!==0&&(Mt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Zm(),vt.lanes|=t,nl|=t,l)}function Zd(t,e,l,i){return ze(l,e)?l:ga.current!==null?(t=zc(t,l,i),ze(t,e)||(Ft=!0),t):(bn&42)===0||(bn&1073741824)!==0&&(Mt&261930)===0?(Ft=!0,t.memoizedState=l):(t=Zm(),vt.lanes|=t,nl|=t,e)}function Kd(t,e,l,i,o){var s=k.p;k.p=s!==0&&8>s?s:8;var y=E.T,b={};E.T=b,Rc(t,!1,e,l);try{var M=o(),B=E.S;if(B!==null&&B(b,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Q=l1(M,i);yi(t,e,Q,Ue(t))}else yi(t,e,i,Ue(t))}catch(K){yi(t,e,{then:function(){},status:"rejected",reason:K},Ue())}finally{k.p=s,y!==null&&b.types!==null&&(y.types=b.types),E.T=y}}function c1(){}function Nc(t,e,l,i){if(t.tag!==5)throw Error(r(476));var o=$d(t).queue;Kd(t,o,e,J,l===null?c1:function(){return Jd(t),l(i)})}function $d(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:J},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Jd(t){var e=$d(t);e.next===null&&(e=t.alternate.memoizedState),yi(t,e.next.queue,{},Ue())}function Cc(){return ce(Oi)}function Fd(){return Kt().memoizedState}function Wd(){return Kt().memoizedState}function f1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ue();t=Fn(l);var i=Wn(e,t,l);i!==null&&(we(i,e,l),si(i,e,l)),e={cache:ic()},t.payload=e;return}e=e.return}}function s1(t,e,l){var i=Ue();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$u(t)?Pd(e,l):(l=$o(t,e,l,i),l!==null&&(we(l,t,i),tm(l,e,i)))}function Id(t,e,l){var i=Ue();yi(t,e,l,i)}function yi(t,e,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if($u(t))Pd(e,o);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var y=e.lastRenderedState,b=s(y,l);if(o.hasEagerState=!0,o.eagerState=b,ze(b,y))return zu(t,e,o,0),Lt===null&&Au(),!1}catch{}finally{}if(l=$o(t,e,o,i),l!==null)return we(l,t,i),tm(l,e,i),!0}return!1}function Rc(t,e,l,i){if(i={lane:2,revertLane:ff(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},$u(t)){if(e)throw Error(r(479))}else e=$o(t,l,i,2),e!==null&&we(e,t,2)}function $u(t){var e=t.alternate;return t===vt||e!==null&&e===vt}function Pd(t,e){ya=ku=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function tm(t,e,l){if((l&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,l|=i,e.lanes=l,ih(t,l)}}var pi={readContext:ce,use:Vu,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};pi.useEffectEvent=Vt;var em={readContext:ce,use:Vu,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:ce,useEffect:Ld,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Zu(4194308,4,Gd.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Zu(4194308,4,t,e)},useInsertionEffect:function(t,e){Zu(4,2,t,e)},useMemo:function(t,e){var l=me();e=e===void 0?null:e;var i=t();if(Dl){Gn(!0);try{t()}finally{Gn(!1)}}return l.memoizedState=[i,e],i},useReducer:function(t,e,l){var i=me();if(l!==void 0){var o=l(e);if(Dl){Gn(!0);try{l(e)}finally{Gn(!1)}}}else o=e;return i.memoizedState=i.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},i.queue=t,t=t.dispatch=s1.bind(null,vt,t),[i.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=Mc(t);var e=t.queue,l=Id.bind(null,vt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ac,useDeferredValue:function(t,e){var l=me();return zc(l,t,e)},useTransition:function(){var t=Mc(!1);return t=Kd.bind(null,vt,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var i=vt,o=me();if(Et){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Lt===null)throw Error(r(349));(Mt&127)!==0||Sd(i,e,l)}o.memoizedState=l;var s={value:l,getSnapshot:e};return o.queue=s,Ld(Md.bind(null,i,s,t),[t]),i.flags|=2048,va(9,{destroy:void 0},wd.bind(null,i,s,l,e),null),l},useId:function(){var t=me(),e=Lt.identifierPrefix;if(Et){var l=ln,i=nn;l=(i&~(1<<32-Ae(i)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Gu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=a1++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cc,useFormState:Od,useActionState:Od,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=Rc.bind(null,vt,!0,l),l.dispatch=e,[t,e]},useMemoCache:_c,useCacheRefresh:function(){return me().memoizedState=f1.bind(null,vt)},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)}}},Dc={readContext:ce,use:Vu,useCallback:Vd,useContext:ce,useEffect:Ec,useImperativeHandle:Xd,useInsertionEffect:qd,useLayoutEffect:kd,useMemo:Qd,useReducer:Qu,useRef:Yd,useState:function(){return Qu(_n)},useDebugValue:Ac,useDeferredValue:function(t,e){var l=Kt();return Zd(l,Ut.memoizedState,t,e)},useTransition:function(){var t=Qu(_n)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:gi(t),e]},useSyncExternalStore:_d,useId:Fd,useHostTransitionStatus:Cc,useFormState:Ud,useActionState:Ud,useOptimistic:function(t,e){var l=Kt();return Ad(l,Ut,t,e)},useMemoCache:_c,useCacheRefresh:Wd};Dc.useEffectEvent=Bd;var nm={readContext:ce,use:Vu,useCallback:Vd,useContext:ce,useEffect:Ec,useImperativeHandle:Xd,useInsertionEffect:qd,useLayoutEffect:kd,useMemo:Qd,useReducer:wc,useRef:Yd,useState:function(){return wc(_n)},useDebugValue:Ac,useDeferredValue:function(t,e){var l=Kt();return Ut===null?zc(l,t,e):Zd(l,Ut.memoizedState,t,e)},useTransition:function(){var t=wc(_n)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:gi(t),e]},useSyncExternalStore:_d,useId:Fd,useHostTransitionStatus:Cc,useFormState:Hd,useActionState:Hd,useOptimistic:function(t,e){var l=Kt();return Ut!==null?Ad(l,Ut,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:_c,useCacheRefresh:Wd};nm.useEffectEvent=Bd;function Oc(t,e,l,i){e=t.memoizedState,l=l(i,e),l=l==null?e:v({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Uc={enqueueSetState:function(t,e,l){t=t._reactInternals;var i=Ue(),o=Fn(i);o.payload=e,l!=null&&(o.callback=l),e=Wn(t,o,i),e!==null&&(we(e,t,i),si(e,t,i))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var i=Ue(),o=Fn(i);o.tag=1,o.payload=e,l!=null&&(o.callback=l),e=Wn(t,o,i),e!==null&&(we(e,t,i),si(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ue(),i=Fn(l);i.tag=2,e!=null&&(i.callback=e),e=Wn(t,i,l),e!==null&&(we(e,t,l),si(e,t,l))}};function lm(t,e,l,i,o,s,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,s,y):e.prototype&&e.prototype.isPureReactComponent?!li(l,i)||!li(o,s):!0}function am(t,e,l,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,i),e.state!==t&&Uc.enqueueReplaceState(e,e.state,null)}function Ol(t,e){var l=e;if("ref"in e){l={};for(var i in e)i!=="ref"&&(l[i]=e[i])}if(t=t.defaultProps){l===e&&(l=v({},l));for(var o in t)l[o]===void 0&&(l[o]=t[o])}return l}function im(t){Eu(t)}function um(t){console.error(t)}function rm(t){Eu(t)}function Ju(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function om(t,e,l){try{var i=t.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function jc(t,e,l){return l=Fn(l),l.tag=3,l.payload={element:null},l.callback=function(){Ju(t,e)},l}function cm(t){return t=Fn(t),t.tag=3,t}function fm(t,e,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var s=i.value;t.payload=function(){return o(s)},t.callback=function(){om(e,l,i)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(t.callback=function(){om(e,l,i),typeof o!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function h1(t,e,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=l.alternate,e!==null&&fa(e,l,o,!0),l=Ce.current,l!==null){switch(l.tag){case 31:case 13:return Ve===null?rr():l.alternate===null&&Qt===0&&(Qt=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===Hu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([i]):e.add(i),rf(t,i,o)),!1;case 22:return l.flags|=65536,i===Hu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([i]):l.add(i)),rf(t,i,o)),!1}throw Error(r(435,l.tag))}return rf(t,i,o),rr(),!1}if(Et)return e=Ce.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,i!==tc&&(t=Error(r(422),{cause:i}),ui(qe(t,l)))):(i!==tc&&(e=Error(r(423),{cause:i}),ui(qe(e,l))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,i=qe(i,l),o=jc(t.stateNode,i,o),sc(t,o),Qt!==4&&(Qt=2)),!1;var s=Error(r(520),{cause:i});if(s=qe(s,l),Ti===null?Ti=[s]:Ti.push(s),Qt!==4&&(Qt=2),e===null)return!0;i=qe(i,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=o&-o,l.lanes|=t,t=jc(l.stateNode,i,t),sc(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,o&=-o,l.lanes|=o,o=cm(o),fm(o,t,l,i),sc(l,o),!1}l=l.return}while(l!==null);return!1}var Hc=Error(r(461)),Ft=!1;function fe(t,e,l,i){e.child=t===null?md(e,null,l,i):Rl(e,t.child,l,i)}function sm(t,e,l,i,o){l=l.render;var s=e.ref;if("ref"in i){var y={};for(var b in i)b!=="ref"&&(y[b]=i[b])}else y=i;return Al(e),i=pc(t,e,l,y,s,o),b=vc(),t!==null&&!Ft?(xc(t,e,o),Sn(t,e,o)):(Et&&b&&Io(e),e.flags|=1,fe(t,e,i,o),e.child)}function hm(t,e,l,i,o){if(t===null){var s=l.type;return typeof s=="function"&&!Jo(s)&&s.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=s,dm(t,e,s,i,o)):(t=Cu(l.type,null,i,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Vc(t,o)){var y=s.memoizedProps;if(l=l.compare,l=l!==null?l:li,l(y,i)&&t.ref===e.ref)return Sn(t,e,o)}return e.flags|=1,t=yn(s,i),t.ref=e.ref,t.return=e,e.child=t}function dm(t,e,l,i,o){if(t!==null){var s=t.memoizedProps;if(li(s,i)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=i=s,Vc(t,o))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Sn(t,e,o)}return Yc(t,e,l,i,o)}function mm(t,e,l,i){var o=i.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,t!==null){for(i=e.child=t.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~s}else i=0,e.child=null;return gm(t,e,s,l,i)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Uu(e,s!==null?s.cachePool:null),s!==null?pd(e,s):dc(),vd(e);else return i=e.lanes=536870912,gm(t,e,s!==null?s.baseLanes|l:l,l,i)}else s!==null?(Uu(e,s.cachePool),pd(e,s),Pn(),e.memoizedState=null):(t!==null&&Uu(e,null),dc(),Pn());return fe(t,e,o,l),e.child}function vi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function gm(t,e,l,i,o){var s=rc();return s=s===null?null:{parent:$t._currentValue,pool:s},e.memoizedState={baseLanes:l,cachePool:s},t!==null&&Uu(e,null),dc(),vd(e),t!==null&&fa(t,e,i,!0),e.childLanes=o,null}function Fu(t,e){return e=Iu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ym(t,e,l){return Rl(e,t.child,null,l),t=Fu(e,e.pendingProps),t.flags|=2,Re(e),e.memoizedState=null,t}function d1(t,e,l){var i=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Et){if(i.mode==="hidden")return t=Fu(e,i),e.lanes=536870912,vi(null,t);if(gc(e),(t=Bt)?(t=z0(t,Xe),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=Ph(t),l.return=e,e.child=l,oe=e,Bt=null)):t=null,t===null)throw Kn(e);return e.lanes=536870912,null}return Fu(e,i)}var s=t.memoizedState;if(s!==null){var y=s.dehydrated;if(gc(e),o)if(e.flags&256)e.flags&=-257,e=ym(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Ft||fa(t,e,l,!1),o=(l&t.childLanes)!==0,Ft||o){if(i=Lt,i!==null&&(y=uh(i,l),y!==0&&y!==s.retryLane))throw s.retryLane=y,wl(t,y),we(i,t,y),Hc;rr(),e=ym(t,e,l)}else t=s.treeContext,Bt=Qe(y.nextSibling),oe=e,Et=!0,Zn=null,Xe=!1,t!==null&&nd(e,t),e=Fu(e,i),e.flags|=4096;return e}return t=yn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Wu(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 Yc(t,e,l,i,o){return Al(e),l=pc(t,e,l,i,void 0,o),i=vc(),t!==null&&!Ft?(xc(t,e,o),Sn(t,e,o)):(Et&&i&&Io(e),e.flags|=1,fe(t,e,l,o),e.child)}function pm(t,e,l,i,o,s){return Al(e),e.updateQueue=null,l=bd(e,i,l,o),xd(t),i=vc(),t!==null&&!Ft?(xc(t,e,s),Sn(t,e,s)):(Et&&i&&Io(e),e.flags|=1,fe(t,e,l,s),e.child)}function vm(t,e,l,i,o){if(Al(e),e.stateNode===null){var s=ua,y=l.contextType;typeof y=="object"&&y!==null&&(s=ce(y)),s=new l(i,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Uc,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=i,s.state=e.memoizedState,s.refs={},cc(e),y=l.contextType,s.context=typeof y=="object"&&y!==null?ce(y):ua,s.state=e.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(Oc(e,l,y,i),s.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(y=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),y!==s.state&&Uc.enqueueReplaceState(s,s.state,null),di(e,i,s,o),hi(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){s=e.stateNode;var b=e.memoizedProps,M=Ol(l,b);s.props=M;var B=s.context,Q=l.contextType;y=ua,typeof Q=="object"&&Q!==null&&(y=ce(Q));var K=l.getDerivedStateFromProps;Q=typeof K=="function"||typeof s.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,Q||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(b||B!==y)&&am(e,s,i,y),Jn=!1;var q=e.memoizedState;s.state=q,di(e,i,s,o),hi(),B=e.memoizedState,b||q!==B||Jn?(typeof K=="function"&&(Oc(e,l,K,i),B=e.memoizedState),(M=Jn||lm(e,l,M,i,q,B,y))?(Q||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=i,e.memoizedState=B),s.props=i,s.state=B,s.context=y,i=M):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{s=e.stateNode,fc(t,e),y=e.memoizedProps,Q=Ol(l,y),s.props=Q,K=e.pendingProps,q=s.context,B=l.contextType,M=ua,typeof B=="object"&&B!==null&&(M=ce(B)),b=l.getDerivedStateFromProps,(B=typeof b=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(y!==K||q!==M)&&am(e,s,i,M),Jn=!1,q=e.memoizedState,s.state=q,di(e,i,s,o),hi();var G=e.memoizedState;y!==K||q!==G||Jn||t!==null&&t.dependencies!==null&&Du(t.dependencies)?(typeof b=="function"&&(Oc(e,l,b,i),G=e.memoizedState),(Q=Jn||lm(e,l,Q,i,q,G,M)||t!==null&&t.dependencies!==null&&Du(t.dependencies))?(B||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,G,M),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,G,M)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||y===t.memoizedProps&&q===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&q===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=G),s.props=i,s.state=G,s.context=M,i=Q):(typeof s.componentDidUpdate!="function"||y===t.memoizedProps&&q===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&q===t.memoizedState||(e.flags|=1024),i=!1)}return s=i,Wu(t,e),i=(e.flags&128)!==0,s||i?(s=e.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&i?(e.child=Rl(e,t.child,null,o),e.child=Rl(e,null,l,o)):fe(t,e,l,o),e.memoizedState=s.state,t=e.child):t=Sn(t,e,o),t}function xm(t,e,l,i){return Tl(),e.flags|=256,fe(t,e,l,i),e.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(t){return{baseLanes:t,cachePool:od()}}function qc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Oe),t}function bm(t,e,l){var i=e.pendingProps,o=!1,s=(e.flags&128)!==0,y;if((y=s)||(y=t!==null&&t.memoizedState===null?!1:(Zt.current&2)!==0),y&&(o=!0,e.flags&=-129),y=(e.flags&32)!==0,e.flags&=-33,t===null){if(Et){if(o?In(e):Pn(),(t=Bt)?(t=z0(t,Xe),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=Ph(t),l.return=e,e.child=l,oe=e,Bt=null)):t=null,t===null)throw Kn(e);return wf(t)?e.lanes=32:e.lanes=536870912,null}var b=i.children;return i=i.fallback,o?(Pn(),o=e.mode,b=Iu({mode:"hidden",children:b},o),i=Ml(i,o,l,null),b.return=e,i.return=e,b.sibling=i,e.child=b,i=e.child,i.memoizedState=Bc(l),i.childLanes=qc(t,y,l),e.memoizedState=Lc,vi(null,i)):(In(e),kc(e,b))}var M=t.memoizedState;if(M!==null&&(b=M.dehydrated,b!==null)){if(s)e.flags&256?(In(e),e.flags&=-257,e=Gc(t,e,l)):e.memoizedState!==null?(Pn(),e.child=t.child,e.flags|=128,e=null):(Pn(),b=i.fallback,o=e.mode,i=Iu({mode:"visible",children:i.children},o),b=Ml(b,o,l,null),b.flags|=2,i.return=e,b.return=e,i.sibling=b,e.child=i,Rl(e,t.child,null,l),i=e.child,i.memoizedState=Bc(l),i.childLanes=qc(t,y,l),e.memoizedState=Lc,e=vi(null,i));else if(In(e),wf(b)){if(y=b.nextSibling&&b.nextSibling.dataset,y)var B=y.dgst;y=B,i=Error(r(419)),i.stack="",i.digest=y,ui({value:i,source:null,stack:null}),e=Gc(t,e,l)}else if(Ft||fa(t,e,l,!1),y=(l&t.childLanes)!==0,Ft||y){if(y=Lt,y!==null&&(i=uh(y,l),i!==0&&i!==M.retryLane))throw M.retryLane=i,wl(t,i),we(y,t,i),Hc;Sf(b)||rr(),e=Gc(t,e,l)}else Sf(b)?(e.flags|=192,e.child=t.child,e=null):(t=M.treeContext,Bt=Qe(b.nextSibling),oe=e,Et=!0,Zn=null,Xe=!1,t!==null&&nd(e,t),e=kc(e,i.children),e.flags|=4096);return e}return o?(Pn(),b=i.fallback,o=e.mode,M=t.child,B=M.sibling,i=yn(M,{mode:"hidden",children:i.children}),i.subtreeFlags=M.subtreeFlags&65011712,B!==null?b=yn(B,b):(b=Ml(b,o,l,null),b.flags|=2),b.return=e,i.return=e,i.sibling=b,e.child=i,vi(null,i),i=e.child,b=t.child.memoizedState,b===null?b=Bc(l):(o=b.cachePool,o!==null?(M=$t._currentValue,o=o.parent!==M?{parent:M,pool:M}:o):o=od(),b={baseLanes:b.baseLanes|l,cachePool:o}),i.memoizedState=b,i.childLanes=qc(t,y,l),e.memoizedState=Lc,vi(t.child,i)):(In(e),l=t.child,t=l.sibling,l=yn(l,{mode:"visible",children:i.children}),l.return=e,l.sibling=null,t!==null&&(y=e.deletions,y===null?(e.deletions=[t],e.flags|=16):y.push(t)),e.child=l,e.memoizedState=null,l)}function kc(t,e){return e=Iu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Iu(t,e){return t=Ne(22,t,null,e),t.lanes=0,t}function Gc(t,e,l){return Rl(e,t.child,null,l),t=kc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function _m(t,e,l){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),lc(t.return,e,l)}function Xc(t,e,l,i,o,s){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:s}:(y.isBackwards=e,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=l,y.tailMode=o,y.treeForkCount=s)}function Sm(t,e,l){var i=e.pendingProps,o=i.revealOrder,s=i.tail;i=i.children;var y=Zt.current,b=(y&2)!==0;if(b?(y=y&1|2,e.flags|=128):y&=1,P(Zt,y),fe(t,e,i,l),i=Et?ii:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&_m(t,l,e);else if(t.tag===19)_m(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(o){case"forwards":for(l=e.child,o=null;l!==null;)t=l.alternate,t!==null&&qu(t)===null&&(o=l),l=l.sibling;l=o,l===null?(o=e.child,e.child=null):(o=l.sibling,l.sibling=null),Xc(e,!1,o,l,s,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&qu(t)===null){e.child=o;break}t=o.sibling,o.sibling=l,l=o,o=t}Xc(e,!0,l,null,s,i);break;case"together":Xc(e,!1,null,null,void 0,i);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(fa(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=yn(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=yn(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Vc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Du(t)))}function m1(t,e,l){switch(e.tag){case 3:Yt(e,e.stateNode.containerInfo),$n(e,$t,t.memoizedState.cache),Tl();break;case 27:case 5:pt(e);break;case 4:Yt(e,e.stateNode.containerInfo);break;case 10:$n(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,gc(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(In(e),e.flags|=128,null):(l&e.child.childLanes)!==0?bm(t,e,l):(In(e),t=Sn(t,e,l),t!==null?t.sibling:null);In(e);break;case 19:var o=(t.flags&128)!==0;if(i=(l&e.childLanes)!==0,i||(fa(t,e,l,!1),i=(l&e.childLanes)!==0),o){if(i)return Sm(t,e,l);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(Zt,Zt.current),i)break;return null;case 22:return e.lanes=0,mm(t,e,l,e.pendingProps);case 24:$n(e,$t,t.memoizedState.cache)}return Sn(t,e,l)}function wm(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!Vc(t,l)&&(e.flags&128)===0)return Ft=!1,m1(t,e,l);Ft=(t.flags&131072)!==0}else Ft=!1,Et&&(e.flags&1048576)!==0&&ed(e,ii,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=Nl(e.elementType),e.type=t,typeof t=="function")Jo(t)?(i=Ol(t,i),e.tag=1,e=vm(null,e,t,i,l)):(e.tag=0,e=Yc(null,e,t,i,l));else{if(t!=null){var o=t.$$typeof;if(o===N){e.tag=11,e=sm(null,e,t,i,l);break t}else if(o===V){e.tag=14,e=hm(null,e,t,i,l);break t}}throw e=Y(t)||t,Error(r(306,e,""))}}return e;case 0:return Yc(t,e,e.type,e.pendingProps,l);case 1:return i=e.type,o=Ol(i,e.pendingProps),vm(t,e,i,o,l);case 3:t:{if(Yt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var s=e.memoizedState;o=s.element,fc(t,e),di(e,i,null,l);var y=e.memoizedState;if(i=y.cache,$n(e,$t,i),i!==s.cache&&ac(e,[$t],l,!0),hi(),i=y.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:y.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=xm(t,e,i,l);break t}else if(i!==o){o=qe(Error(r(424)),e),ui(o),e=xm(t,e,i,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=Qe(t.firstChild),oe=e,Et=!0,Zn=null,Xe=!0,l=md(e,null,i,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Tl(),i===o){e=Sn(t,e,l);break t}fe(t,e,i,l)}e=e.child}return e;case 26:return Wu(t,e),t===null?(l=U0(e.type,null,e.pendingProps,null))?e.memoizedState=l:Et||(l=e.type,t=e.pendingProps,i=mr(dt.current).createElement(l),i[re]=e,i[pe]=t,se(i,l,t),te(i),e.stateNode=i):e.memoizedState=U0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pt(e),t===null&&Et&&(i=e.stateNode=R0(e.type,e.pendingProps,dt.current),oe=e,Xe=!0,o=Bt,rl(e.type)?(Mf=o,Bt=Qe(i.firstChild)):Bt=o),fe(t,e,e.pendingProps.children,l),Wu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Et&&((o=i=Bt)&&(i=V1(i,e.type,e.pendingProps,Xe),i!==null?(e.stateNode=i,oe=e,Bt=Qe(i.firstChild),Xe=!1,o=!0):o=!1),o||Kn(e)),pt(e),o=e.type,s=e.pendingProps,y=t!==null?t.memoizedProps:null,i=s.children,xf(o,s)?i=null:y!==null&&xf(o,y)&&(e.flags|=32),e.memoizedState!==null&&(o=pc(t,e,i1,null,null,l),Oi._currentValue=o),Wu(t,e),fe(t,e,i,l),e.child;case 6:return t===null&&Et&&((t=l=Bt)&&(l=Q1(l,e.pendingProps,Xe),l!==null?(e.stateNode=l,oe=e,Bt=null,t=!0):t=!1),t||Kn(e)),null;case 13:return bm(t,e,l);case 4:return Yt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Rl(e,null,i,l):fe(t,e,i,l),e.child;case 11:return sm(t,e,e.type,e.pendingProps,l);case 7:return fe(t,e,e.pendingProps,l),e.child;case 8:return fe(t,e,e.pendingProps.children,l),e.child;case 12:return fe(t,e,e.pendingProps.children,l),e.child;case 10:return i=e.pendingProps,$n(e,e.type,i.value),fe(t,e,i.children,l),e.child;case 9:return o=e.type._context,i=e.pendingProps.children,Al(e),o=ce(o),i=i(o),e.flags|=1,fe(t,e,i,l),e.child;case 14:return hm(t,e,e.type,e.pendingProps,l);case 15:return dm(t,e,e.type,e.pendingProps,l);case 19:return Sm(t,e,l);case 31:return d1(t,e,l);case 22:return mm(t,e,l,e.pendingProps);case 24:return Al(e),i=ce($t),t===null?(o=rc(),o===null&&(o=Lt,s=ic(),o.pooledCache=s,s.refCount++,s!==null&&(o.pooledCacheLanes|=l),o=s),e.memoizedState={parent:i,cache:o},cc(e),$n(e,$t,o)):((t.lanes&l)!==0&&(fc(t,e),di(e,null,null,l),hi()),o=t.memoizedState,s=e.memoizedState,o.parent!==i?(o={parent:i,cache:i},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),$n(e,$t,i)):(i=s.cache,$n(e,$t,i),i!==o.cache&&ac(e,[$t],l,!0))),fe(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function wn(t){t.flags|=4}function Qc(t,e,l,i,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Fm())t.flags|=8192;else throw Cl=Hu,oc}else t.flags&=-16777217}function Mm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!B0(e))if(Fm())t.flags|=8192;else throw Cl=Hu,oc}function Pu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?lh():536870912,t.lanes|=e,Sa|=e)}function xi(t,e){if(!Et)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 i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,i=0;if(e)for(var o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=l,e}function g1(t,e,l){var i=e.pendingProps;switch(Po(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,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),xn($t),I(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ca(e)?wn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ec())),qt(e),null;case 26:var o=e.type,s=e.memoizedState;return t===null?(wn(e),s!==null?(qt(e),Mm(e,s)):(qt(e),Qc(e,o,null,i,l))):s?s!==t.memoizedState?(wn(e),qt(e),Mm(e,s)):(qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&wn(e),qt(e),Qc(e,o,t,i,l)),null;case 27:if(_t(e),l=dt.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&wn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return qt(e),null}t=lt.current,ca(e)?ld(e):(t=R0(o,i,l),e.stateNode=t,wn(e))}return qt(e),null;case 5:if(_t(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&wn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return qt(e),null}if(s=lt.current,ca(e))ld(e);else{var y=mr(dt.current);switch(s){case 1:s=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:s=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":s=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":s=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":s=y.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?s.multiple=!0:i.size&&(s.size=i.size);break;default:s=typeof i.is=="string"?y.createElement(o,{is:i.is}):y.createElement(o)}}s[re]=e,s[pe]=i;t:for(y=e.child;y!==null;){if(y.tag===5||y.tag===6)s.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break t;for(;y.sibling===null;){if(y.return===null||y.return===e)break t;y=y.return}y.sibling.return=y.return,y=y.sibling}e.stateNode=s;t:switch(se(s,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&wn(e)}}return qt(e),Qc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&wn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=dt.current,ca(e)){if(t=e.stateNode,l=e.memoizedProps,i=null,o=oe,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}t[re]=e,t=!!(t.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||b0(t.nodeValue,l)),t||Kn(e,!0)}else t=mr(t).createTextNode(i),t[re]=e,e.stateNode=t}return qt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(i=ca(e),l!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[re]=e}else Tl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),t=!1}else l=ec(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Re(e),e):(Re(e),null);if((e.flags&128)!==0)throw Error(r(558))}return qt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=ca(e),i!==null&&i.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[re]=e}else Tl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),o=!1}else o=ec(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Re(e),e):(Re(e),null)}return Re(e),(e.flags&128)!==0?(e.lanes=l,e):(l=i!==null,t=t!==null&&t.memoizedState!==null,l&&(i=e.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(i.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Pu(e,e.updateQueue),qt(e),null);case 4:return I(),t===null&&mf(e.stateNode.containerInfo),qt(e),null;case 10:return xn(e.type),qt(e),null;case 19:if(X(Zt),i=e.memoizedState,i===null)return qt(e),null;if(o=(e.flags&128)!==0,s=i.rendering,s===null)if(o)xi(i,!1);else{if(Qt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=qu(t),s!==null){for(e.flags|=128,xi(i,!1),t=s.updateQueue,e.updateQueue=t,Pu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Ih(l,t),l=l.sibling;return P(Zt,Zt.current&1|2),Et&&pn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Te()>ar&&(e.flags|=128,o=!0,xi(i,!1),e.lanes=4194304)}else{if(!o)if(t=qu(s),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Pu(e,t),xi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Et)return qt(e),null}else 2*Te()-i.renderingStartTime>ar&&l!==536870912&&(e.flags|=128,o=!0,xi(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(t=i.last,t!==null?t.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,l=Zt.current,P(Zt,o?l&1|2:l&1),Et&&pn(e,i.treeForkCount),t):(qt(e),null);case 22:case 23:return Re(e),mc(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(l&536870912)!==0&&(e.flags&128)===0&&(qt(e),e.subtreeFlags&6&&(e.flags|=8192)):qt(e),l=e.updateQueue,l!==null&&Pu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==l&&(e.flags|=2048),t!==null&&X(zl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),xn($t),qt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function y1(t,e){switch(Po(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return xn($t),I(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return _t(e),null;case 31:if(e.memoizedState!==null){if(Re(e),e.alternate===null)throw Error(r(340));Tl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Re(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Tl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return X(Zt),null;case 4:return I(),null;case 10:return xn(e.type),null;case 22:case 23:return Re(e),mc(),t!==null&&X(zl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return xn($t),null;case 25:return null;default:return null}}function Tm(t,e){switch(Po(e),e.tag){case 3:xn($t),I();break;case 26:case 27:case 5:_t(e);break;case 4:I();break;case 31:e.memoizedState!==null&&Re(e);break;case 13:Re(e);break;case 19:X(Zt);break;case 10:xn(e.type);break;case 22:case 23:Re(e),mc(),t!==null&&X(zl);break;case 24:xn($t)}}function bi(t,e){try{var l=e.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&t)===t){i=void 0;var s=l.create,y=l.inst;i=s(),y.destroy=i}l=l.next}while(l!==o)}}catch(b){Ot(e,e.return,b)}}function tl(t,e,l){try{var i=e.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var s=o.next;i=s;do{if((i.tag&t)===t){var y=i.inst,b=y.destroy;if(b!==void 0){y.destroy=void 0,o=e;var M=l,B=b;try{B()}catch(Q){Ot(o,M,Q)}}}i=i.next}while(i!==s)}}catch(Q){Ot(e,e.return,Q)}}function Em(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{yd(e,l)}catch(i){Ot(t,t.return,i)}}}function Am(t,e,l){l.props=Ol(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(i){Ot(t,e,i)}}function _i(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof l=="function"?t.refCleanup=l(i):l.current=i}}catch(o){Ot(t,e,o)}}function an(t,e){var l=t.ref,i=t.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){Ot(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Ot(t,e,o)}else l.current=null}function zm(t){var e=t.type,l=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break t;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(o){Ot(t,t.return,o)}}function Zc(t,e,l){try{var i=t.stateNode;L1(i,t.type,l,e),i[pe]=e}catch(o){Ot(t,t.return,o)}}function Nm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&rl(t.type)||t.tag===4}function Kc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Nm(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 $c(t,e,l){var i=t.tag;if(i===5||i===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=mn));else if(i!==4&&(i===27&&rl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for($c(t,e,l),t=t.sibling;t!==null;)$c(t,e,l),t=t.sibling}function tr(t,e,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(i!==4&&(i===27&&rl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(tr(t,e,l),t=t.sibling;t!==null;)tr(t,e,l),t=t.sibling}function Cm(t){var e=t.stateNode,l=t.memoizedProps;try{for(var i=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);se(e,i,l),e[re]=t,e[pe]=l}catch(s){Ot(t,t.return,s)}}var Mn=!1,Wt=!1,Jc=!1,Rm=typeof WeakSet=="function"?WeakSet:Set,ee=null;function p1(t,e){if(t=t.containerInfo,pf=_r,t=Xh(t),Go(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break t}var y=0,b=-1,M=-1,B=0,Q=0,K=t,q=null;e:for(;;){for(var G;K!==l||o!==0&&K.nodeType!==3||(b=y+o),K!==s||i!==0&&K.nodeType!==3||(M=y+i),K.nodeType===3&&(y+=K.nodeValue.length),(G=K.firstChild)!==null;)q=K,K=G;for(;;){if(K===t)break e;if(q===l&&++B===o&&(b=y),q===s&&++Q===i&&(M=y),(G=K.nextSibling)!==null)break;K=q,q=K.parentNode}K=G}l=b===-1||M===-1?null:{start:b,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(vf={focusedElem:t,selectionRange:l},_r=!1,ee=e;ee!==null;)if(e=ee,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ee=t;else for(;ee!==null;){switch(e=ee,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++)o=t[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,l=e,o=s.memoizedProps,s=s.memoizedState,i=l.stateNode;try{var it=Ol(l.type,o);t=i.getSnapshotBeforeUpdate(it,s),i.__reactInternalSnapshotBeforeUpdate=t}catch(ht){Ot(l,l.return,ht)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)_f(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":_f(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,ee=t;break}ee=e.return}}function Dm(t,e,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:En(t,l),i&4&&bi(5,l);break;case 1:if(En(t,l),i&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(y){Ot(l,l.return,y)}else{var o=Ol(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(y){Ot(l,l.return,y)}}i&64&&Em(l),i&512&&_i(l,l.return);break;case 3:if(En(t,l),i&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{yd(t,e)}catch(y){Ot(l,l.return,y)}}break;case 27:e===null&&i&4&&Cm(l);case 26:case 5:En(t,l),e===null&&i&4&&zm(l),i&512&&_i(l,l.return);break;case 12:En(t,l);break;case 31:En(t,l),i&4&&jm(t,l);break;case 13:En(t,l),i&4&&Hm(t,l),i&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=E1.bind(null,l),Z1(t,l))));break;case 22:if(i=l.memoizedState!==null||Mn,!i){e=e!==null&&e.memoizedState!==null||Wt,o=Mn;var s=Wt;Mn=i,(Wt=e)&&!s?An(t,l,(l.subtreeFlags&8772)!==0):En(t,l),Mn=o,Wt=s}break;case 30:break;default:En(t,l)}}function Om(t){var e=t.alternate;e!==null&&(t.alternate=null,Om(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&To(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 Gt=null,xe=!1;function Tn(t,e,l){for(l=l.child;l!==null;)Um(t,e,l),l=l.sibling}function Um(t,e,l){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(Qa,l)}catch{}switch(l.tag){case 26:Wt||an(l,e),Tn(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Wt||an(l,e);var i=Gt,o=xe;rl(l.type)&&(Gt=l.stateNode,xe=!1),Tn(t,e,l),Ci(l.stateNode),Gt=i,xe=o;break;case 5:Wt||an(l,e);case 6:if(i=Gt,o=xe,Gt=null,Tn(t,e,l),Gt=i,xe=o,Gt!==null)if(xe)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(l.stateNode)}catch(s){Ot(l,e,s)}else try{Gt.removeChild(l.stateNode)}catch(s){Ot(l,e,s)}break;case 18:Gt!==null&&(xe?(t=Gt,E0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ca(t)):E0(Gt,l.stateNode));break;case 4:i=Gt,o=xe,Gt=l.stateNode.containerInfo,xe=!0,Tn(t,e,l),Gt=i,xe=o;break;case 0:case 11:case 14:case 15:tl(2,l,e),Wt||tl(4,l,e),Tn(t,e,l);break;case 1:Wt||(an(l,e),i=l.stateNode,typeof i.componentWillUnmount=="function"&&Am(l,e,i)),Tn(t,e,l);break;case 21:Tn(t,e,l);break;case 22:Wt=(i=Wt)||l.memoizedState!==null,Tn(t,e,l),Wt=i;break;default:Tn(t,e,l)}}function jm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ca(t)}catch(l){Ot(e,e.return,l)}}}function Hm(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){Ot(e,e.return,l)}}function v1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Rm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Rm),e;default:throw Error(r(435,t.tag))}}function er(t,e){var l=v1(t);e.forEach(function(i){if(!l.has(i)){l.add(i);var o=A1.bind(null,t,i);i.then(o,o)}})}function be(t,e){var l=e.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],s=t,y=e,b=y;t:for(;b!==null;){switch(b.tag){case 27:if(rl(b.type)){Gt=b.stateNode,xe=!1;break t}break;case 5:Gt=b.stateNode,xe=!1;break t;case 3:case 4:Gt=b.stateNode.containerInfo,xe=!0;break t}b=b.return}if(Gt===null)throw Error(r(160));Um(s,y,o),Gt=null,xe=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ym(e,t),e=e.sibling}var Fe=null;function Ym(t,e){var l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:be(e,t),_e(t),i&4&&(tl(3,t,t.return),bi(3,t),tl(5,t,t.return));break;case 1:be(e,t),_e(t),i&512&&(Wt||l===null||an(l,l.return)),i&64&&Mn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=Fe;if(be(e,t),_e(t),i&512&&(Wt||l===null||an(l,l.return)),i&4){var s=l!==null?l.memoizedState:null;if(i=t.memoizedState,l===null)if(i===null)if(t.stateNode===null){t:{i=t.type,l=t.memoizedProps,o=o.ownerDocument||o;e:switch(i){case"title":s=o.getElementsByTagName("title")[0],(!s||s[$a]||s[re]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=o.createElement(i),o.head.insertBefore(s,o.querySelector("head > title"))),se(s,i,l),s[re]=t,te(s),i=s;break t;case"link":var y=Y0("link","href",o).get(i+(l.href||""));if(y){for(var b=0;b<y.length;b++)if(s=y[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)){y.splice(b,1);break e}}s=o.createElement(i),se(s,i,l),o.head.appendChild(s);break;case"meta":if(y=Y0("meta","content",o).get(i+(l.content||""))){for(b=0;b<y.length;b++)if(s=y[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)){y.splice(b,1);break e}}s=o.createElement(i),se(s,i,l),o.head.appendChild(s);break;default:throw Error(r(468,i))}s[re]=t,te(s),i=s}t.stateNode=i}else L0(o,t.type,t.stateNode);else t.stateNode=H0(o,i,t.memoizedProps);else s!==i?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,i===null?L0(o,t.type,t.stateNode):H0(o,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Zc(t,t.memoizedProps,l.memoizedProps)}break;case 27:be(e,t),_e(t),i&512&&(Wt||l===null||an(l,l.return)),l!==null&&i&4&&Zc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(be(e,t),_e(t),i&512&&(Wt||l===null||an(l,l.return)),t.flags&32){o=t.stateNode;try{Pl(o,"")}catch(it){Ot(t,t.return,it)}}i&4&&t.stateNode!=null&&(o=t.memoizedProps,Zc(t,o,l!==null?l.memoizedProps:o)),i&1024&&(Jc=!0);break;case 6:if(be(e,t),_e(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,l=t.stateNode;try{l.nodeValue=i}catch(it){Ot(t,t.return,it)}}break;case 3:if(pr=null,o=Fe,Fe=gr(e.containerInfo),be(e,t),Fe=o,_e(t),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Ca(e.containerInfo)}catch(it){Ot(t,t.return,it)}Jc&&(Jc=!1,Lm(t));break;case 4:i=Fe,Fe=gr(t.stateNode.containerInfo),be(e,t),_e(t),Fe=i;break;case 12:be(e,t),_e(t);break;case 31:be(e,t),_e(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,er(t,i)));break;case 13:be(e,t),_e(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(lr=Te()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,er(t,i)));break;case 22:o=t.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,B=Mn,Q=Wt;if(Mn=B||o,Wt=Q||M,be(e,t),Wt=Q,Mn=B,_e(t),i&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(l===null||M||Mn||Wt||Ul(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){M=l=e;try{if(s=M.stateNode,o)y=s.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{b=M.stateNode;var K=M.memoizedProps.style,q=K!=null&&K.hasOwnProperty("display")?K.display:null;b.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(it){Ot(M,M.return,it)}}}else if(e.tag===6){if(l===null){M=e;try{M.stateNode.nodeValue=o?"":M.memoizedProps}catch(it){Ot(M,M.return,it)}}}else if(e.tag===18){if(l===null){M=e;try{var G=M.stateNode;o?A0(G,!0):A0(M.stateNode,!1)}catch(it){Ot(M,M.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}i&4&&(i=t.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,er(t,l))));break;case 19:be(e,t),_e(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,er(t,i)));break;case 30:break;case 21:break;default:be(e,t),_e(t)}}function _e(t){var e=t.flags;if(e&2){try{for(var l,i=t.return;i!==null;){if(Nm(i)){l=i;break}i=i.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var o=l.stateNode,s=Kc(t);tr(t,s,o);break;case 5:var y=l.stateNode;l.flags&32&&(Pl(y,""),l.flags&=-33);var b=Kc(t);tr(t,b,y);break;case 3:case 4:var M=l.stateNode.containerInfo,B=Kc(t);$c(t,B,M);break;default:throw Error(r(161))}}catch(Q){Ot(t,t.return,Q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Lm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Lm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function En(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Dm(t,e.alternate,e),e=e.sibling}function Ul(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),Ul(e);break;case 1:an(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Am(e,e.return,l),Ul(e);break;case 27:Ci(e.stateNode);case 26:case 5:an(e,e.return),Ul(e);break;case 22:e.memoizedState===null&&Ul(e);break;case 30:Ul(e);break;default:Ul(e)}t=t.sibling}}function An(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,o=t,s=e,y=s.flags;switch(s.tag){case 0:case 11:case 15:An(o,s,l),bi(4,s);break;case 1:if(An(o,s,l),i=s,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Ot(i,i.return,B)}if(i=s,o=i.updateQueue,o!==null){var b=i.stateNode;try{var M=o.shared.hiddenCallbacks;if(M!==null)for(o.shared.hiddenCallbacks=null,o=0;o<M.length;o++)gd(M[o],b)}catch(B){Ot(i,i.return,B)}}l&&y&64&&Em(s),_i(s,s.return);break;case 27:Cm(s);case 26:case 5:An(o,s,l),l&&i===null&&y&4&&zm(s),_i(s,s.return);break;case 12:An(o,s,l);break;case 31:An(o,s,l),l&&y&4&&jm(o,s);break;case 13:An(o,s,l),l&&y&4&&Hm(o,s);break;case 22:s.memoizedState===null&&An(o,s,l),_i(s,s.return);break;case 30:break;default:An(o,s,l)}e=e.sibling}}function Fc(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&&ri(l))}function Wc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ri(t))}function We(t,e,l,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bm(t,e,l,i),e=e.sibling}function Bm(t,e,l,i){var o=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,l,i),o&2048&&bi(9,e);break;case 1:We(t,e,l,i);break;case 3:We(t,e,l,i),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ri(t)));break;case 12:if(o&2048){We(t,e,l,i),t=e.stateNode;try{var s=e.memoizedProps,y=s.id,b=s.onPostCommit;typeof b=="function"&&b(y,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(M){Ot(e,e.return,M)}}else We(t,e,l,i);break;case 31:We(t,e,l,i);break;case 13:We(t,e,l,i);break;case 23:break;case 22:s=e.stateNode,y=e.alternate,e.memoizedState!==null?s._visibility&2?We(t,e,l,i):Si(t,e):s._visibility&2?We(t,e,l,i):(s._visibility|=2,xa(t,e,l,i,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Fc(y,e);break;case 24:We(t,e,l,i),o&2048&&Wc(e.alternate,e);break;default:We(t,e,l,i)}}function xa(t,e,l,i,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,y=e,b=l,M=i,B=y.flags;switch(y.tag){case 0:case 11:case 15:xa(s,y,b,M,o),bi(8,y);break;case 23:break;case 22:var Q=y.stateNode;y.memoizedState!==null?Q._visibility&2?xa(s,y,b,M,o):Si(s,y):(Q._visibility|=2,xa(s,y,b,M,o)),o&&B&2048&&Fc(y.alternate,y);break;case 24:xa(s,y,b,M,o),o&&B&2048&&Wc(y.alternate,y);break;default:xa(s,y,b,M,o)}e=e.sibling}}function Si(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,i=e,o=i.flags;switch(i.tag){case 22:Si(l,i),o&2048&&Fc(i.alternate,i);break;case 24:Si(l,i),o&2048&&Wc(i.alternate,i);break;default:Si(l,i)}e=e.sibling}}var wi=8192;function ba(t,e,l){if(t.subtreeFlags&wi)for(t=t.child;t!==null;)qm(t,e,l),t=t.sibling}function qm(t,e,l){switch(t.tag){case 26:ba(t,e,l),t.flags&wi&&t.memoizedState!==null&&ax(l,Fe,t.memoizedState,t.memoizedProps);break;case 5:ba(t,e,l);break;case 3:case 4:var i=Fe;Fe=gr(t.stateNode.containerInfo),ba(t,e,l),Fe=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=wi,wi=16777216,ba(t,e,l),wi=i):ba(t,e,l));break;default:ba(t,e,l)}}function km(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 Mi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var i=e[l];ee=i,Xm(i,t)}km(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gm(t),t=t.sibling}function Gm(t){switch(t.tag){case 0:case 11:case 15:Mi(t),t.flags&2048&&tl(9,t,t.return);break;case 3:Mi(t);break;case 12:Mi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,nr(t)):Mi(t);break;default:Mi(t)}}function nr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var i=e[l];ee=i,Xm(i,t)}km(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:tl(8,e,e.return),nr(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,nr(e));break;default:nr(e)}t=t.sibling}}function Xm(t,e){for(;ee!==null;){var l=ee;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 i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ri(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,ee=i;else t:for(l=t;ee!==null;){i=ee;var o=i.sibling,s=i.return;if(Om(i),i===l){ee=null;break t}if(o!==null){o.return=s,ee=o;break t}ee=s}}}var x1={getCacheForType:function(t){var e=ce($t),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ce($t).controller.signal}},b1=typeof WeakMap=="function"?WeakMap:Map,Rt=0,Lt=null,St=null,Mt=0,Dt=0,De=null,el=!1,_a=!1,Ic=!1,zn=0,Qt=0,nl=0,jl=0,Pc=0,Oe=0,Sa=0,Ti=null,Se=null,tf=!1,lr=0,Vm=0,ar=1/0,ir=null,ll=null,It=0,al=null,wa=null,Nn=0,ef=0,nf=null,Qm=null,Ei=0,lf=null;function Ue(){return(Rt&2)!==0&&Mt!==0?Mt&-Mt:E.T!==null?ff():rh()}function Zm(){if(Oe===0)if((Mt&536870912)===0||Et){var t=du;du<<=1,(du&3932160)===0&&(du=262144),Oe=t}else Oe=536870912;return t=Ce.current,t!==null&&(t.flags|=32),Oe}function we(t,e,l){(t===Lt&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)&&(Ma(t,0),il(t,Mt,Oe,!1)),Ka(t,l),((Rt&2)===0||t!==Lt)&&(t===Lt&&((Rt&2)===0&&(jl|=l),Qt===4&&il(t,Mt,Oe,!1)),un(t))}function Km(t,e,l){if((Rt&6)!==0)throw Error(r(327));var i=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Za(t,e),o=i?w1(t,e):uf(t,e,!0),s=i;do{if(o===0){_a&&!i&&il(t,e,0,!1);break}else{if(l=t.current.alternate,s&&!_1(l)){o=uf(t,e,!1),s=!1;continue}if(o===2){if(s=e,t.errorRecoveryDisabledLanes&s)var y=0;else y=t.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){e=y;t:{var b=t;o=Ti;var M=b.current.memoizedState.isDehydrated;if(M&&(Ma(b,y).flags|=256),y=uf(b,y,!1),y!==2){if(Ic&&!M){b.errorRecoveryDisabledLanes|=s,jl|=s,o=4;break t}s=Se,Se=o,s!==null&&(Se===null?Se=s:Se.push.apply(Se,s))}o=y}if(s=!1,o!==2)continue}}if(o===1){Ma(t,0),il(t,e,0,!0);break}t:{switch(i=t,s=o,s){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:il(i,e,Oe,!el);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=lr+300-Te(),10<o)){if(il(i,e,Oe,!el),gu(i,0,!0)!==0)break t;Nn=e,i.timeoutHandle=M0($m.bind(null,i,l,Se,ir,tf,e,Oe,jl,Sa,el,s,"Throttled",-0,0),o);break t}$m(i,l,Se,ir,tf,e,Oe,jl,Sa,el,s,null,-0,0)}}break}while(!0);un(t)}function $m(t,e,l,i,o,s,y,b,M,B,Q,K,q,G){if(t.timeoutHandle=-1,K=e.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},qm(e,s,K);var it=(s&62914560)===s?lr-Te():(s&4194048)===s?Vm-Te():0;if(it=ix(K,it),it!==null){Nn=s,t.cancelPendingCommit=it(n0.bind(null,t,e,s,l,i,o,y,b,M,Q,K,null,q,G)),il(t,s,y,!B);return}}n0(t,e,s,l,i,o,y,b,M)}function _1(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 i=0;i<l.length;i++){var o=l[i],s=o.getSnapshot;o=o.value;try{if(!ze(s(),o))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 il(t,e,l,i){e&=~Pc,e&=~jl,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var o=e;0<o;){var s=31-Ae(o),y=1<<s;i[s]=-1,o&=~y}l!==0&&ah(t,l,e)}function ur(){return(Rt&6)===0?(Ai(0),!1):!0}function af(){if(St!==null){if(Dt===0)var t=St.return;else t=St,vn=El=null,bc(t),ma=null,ci=0,t=St;for(;t!==null;)Tm(t.alternate,t),t=t.return;St=null}}function Ma(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,k1(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Nn=0,af(),Lt=t,St=l=yn(t.current,null),Mt=e,Dt=0,De=null,el=!1,_a=Za(t,e),Ic=!1,Sa=Oe=Pc=jl=nl=Qt=0,Se=Ti=null,tf=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var o=31-Ae(i),s=1<<o;e|=t[o],i&=~s}return zn=e,Au(),l}function Jm(t,e){vt=null,E.H=pi,e===da||e===ju?(e=sd(),Dt=3):e===oc?(e=sd(),Dt=4):Dt=e===Hc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,St===null&&(Qt=1,Ju(t,qe(e,t.current)))}function Fm(){var t=Ce.current;return t===null?!0:(Mt&4194048)===Mt?Ve===null:(Mt&62914560)===Mt||(Mt&536870912)!==0?t===Ve:!1}function Wm(){var t=E.H;return E.H=pi,t===null?pi:t}function Im(){var t=E.A;return E.A=x1,t}function rr(){Qt=4,el||(Mt&4194048)!==Mt&&Ce.current!==null||(_a=!0),(nl&134217727)===0&&(jl&134217727)===0||Lt===null||il(Lt,Mt,Oe,!1)}function uf(t,e,l){var i=Rt;Rt|=2;var o=Wm(),s=Im();(Lt!==t||Mt!==e)&&(ir=null,Ma(t,e)),e=!1;var y=Qt;t:do try{if(Dt!==0&&St!==null){var b=St,M=De;switch(Dt){case 8:af(),y=6;break t;case 3:case 2:case 9:case 6:Ce.current===null&&(e=!0);var B=Dt;if(Dt=0,De=null,Ta(t,b,M,B),l&&_a){y=0;break t}break;default:B=Dt,Dt=0,De=null,Ta(t,b,M,B)}}S1(),y=Qt;break}catch(Q){Jm(t,Q)}while(!0);return e&&t.shellSuspendCounter++,vn=El=null,Rt=i,E.H=o,E.A=s,St===null&&(Lt=null,Mt=0,Au()),y}function S1(){for(;St!==null;)Pm(St)}function w1(t,e){var l=Rt;Rt|=2;var i=Wm(),o=Im();Lt!==t||Mt!==e?(ir=null,ar=Te()+500,Ma(t,e)):_a=Za(t,e);t:do try{if(Dt!==0&&St!==null){e=St;var s=De;e:switch(Dt){case 1:Dt=0,De=null,Ta(t,e,s,1);break;case 2:case 9:if(cd(s)){Dt=0,De=null,t0(e);break}e=function(){Dt!==2&&Dt!==9||Lt!==t||(Dt=7),un(t)},s.then(e,e);break t;case 3:Dt=7;break t;case 4:Dt=5;break t;case 7:cd(s)?(Dt=0,De=null,t0(e)):(Dt=0,De=null,Ta(t,e,s,7));break;case 5:var y=null;switch(St.tag){case 26:y=St.memoizedState;case 5:case 27:var b=St;if(y?B0(y):b.stateNode.complete){Dt=0,De=null;var M=b.sibling;if(M!==null)St=M;else{var B=b.return;B!==null?(St=B,or(B)):St=null}break e}}Dt=0,De=null,Ta(t,e,s,5);break;case 6:Dt=0,De=null,Ta(t,e,s,6);break;case 8:af(),Qt=6;break t;default:throw Error(r(462))}}M1();break}catch(Q){Jm(t,Q)}while(!0);return vn=El=null,E.H=i,E.A=o,Rt=l,St!==null?0:(Lt=null,Mt=0,Au(),Qt)}function M1(){for(;St!==null&&!Kp();)Pm(St)}function Pm(t){var e=wm(t.alternate,t,zn);t.memoizedProps=t.pendingProps,e===null?or(t):St=e}function t0(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=pm(l,e,e.pendingProps,e.type,void 0,Mt);break;case 11:e=pm(l,e,e.pendingProps,e.type.render,e.ref,Mt);break;case 5:bc(e);default:Tm(l,e),e=St=Ih(e,zn),e=wm(l,e,zn)}t.memoizedProps=t.pendingProps,e===null?or(t):St=e}function Ta(t,e,l,i){vn=El=null,bc(e),ma=null,ci=0;var o=e.return;try{if(h1(t,o,e,l,Mt)){Qt=1,Ju(t,qe(l,t.current)),St=null;return}}catch(s){if(o!==null)throw St=o,s;Qt=1,Ju(t,qe(l,t.current)),St=null;return}e.flags&32768?(Et||i===1?t=!0:_a||(Mt&536870912)!==0?t=!1:(el=t=!0,(i===2||i===9||i===3||i===6)&&(i=Ce.current,i!==null&&i.tag===13&&(i.flags|=16384))),e0(e,t)):or(e)}function or(t){var e=t;do{if((e.flags&32768)!==0){e0(e,el);return}t=e.return;var l=g1(e.alternate,e,zn);if(l!==null){St=l;return}if(e=e.sibling,e!==null){St=e;return}St=e=t}while(e!==null);Qt===0&&(Qt=5)}function e0(t,e){do{var l=y1(t.alternate,t);if(l!==null){l.flags&=32767,St=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){St=t;return}St=t=l}while(t!==null);Qt=6,St=null}function n0(t,e,l,i,o,s,y,b,M){t.cancelPendingCommit=null;do cr();while(It!==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|=Ko,lv(t,l,s,y,b,M),t===Lt&&(St=Lt=null,Mt=0),wa=e,al=t,Nn=l,ef=s,nf=o,Qm=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,z1(su,function(){return r0(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=E.T,E.T=null,o=k.p,k.p=2,y=Rt,Rt|=4;try{p1(t,e,l)}finally{Rt=y,k.p=o,E.T=i}}It=1,l0(),a0(),i0()}}function l0(){if(It===1){It=0;var t=al,e=wa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=E.T,E.T=null;var i=k.p;k.p=2;var o=Rt;Rt|=4;try{Ym(e,t);var s=vf,y=Xh(t.containerInfo),b=s.focusedElem,M=s.selectionRange;if(y!==b&&b&&b.ownerDocument&&Gh(b.ownerDocument.documentElement,b)){if(M!==null&&Go(b)){var B=M.start,Q=M.end;if(Q===void 0&&(Q=B),"selectionStart"in b)b.selectionStart=B,b.selectionEnd=Math.min(Q,b.value.length);else{var K=b.ownerDocument||document,q=K&&K.defaultView||window;if(q.getSelection){var G=q.getSelection(),it=b.textContent.length,ht=Math.min(M.start,it),Ht=M.end===void 0?ht:Math.min(M.end,it);!G.extend&&ht>Ht&&(y=Ht,Ht=ht,ht=y);var D=kh(b,ht),C=kh(b,Ht);if(D&&C&&(G.rangeCount!==1||G.anchorNode!==D.node||G.anchorOffset!==D.offset||G.focusNode!==C.node||G.focusOffset!==C.offset)){var L=K.createRange();L.setStart(D.node,D.offset),G.removeAllRanges(),ht>Ht?(G.addRange(L),G.extend(C.node,C.offset)):(L.setEnd(C.node,C.offset),G.addRange(L))}}}}for(K=[],G=b;G=G.parentNode;)G.nodeType===1&&K.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<K.length;b++){var Z=K[b];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}_r=!!pf,vf=pf=null}finally{Rt=o,k.p=i,E.T=l}}t.current=e,It=2}}function a0(){if(It===2){It=0;var t=al,e=wa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=E.T,E.T=null;var i=k.p;k.p=2;var o=Rt;Rt|=4;try{Dm(t,e.alternate,e)}finally{Rt=o,k.p=i,E.T=l}}It=3}}function i0(){if(It===4||It===3){It=0,$p();var t=al,e=wa,l=Nn,i=Qm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,wa=al=null,u0(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(ll=null),wo(l),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(Qa,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=E.T,o=k.p,k.p=2,E.T=null;try{for(var s=t.onRecoverableError,y=0;y<i.length;y++){var b=i[y];s(b.value,{componentStack:b.stack})}}finally{E.T=e,k.p=o}}(Nn&3)!==0&&cr(),un(t),o=t.pendingLanes,(l&261930)!==0&&(o&42)!==0?t===lf?Ei++:(Ei=0,lf=t):Ei=0,Ai(0)}}function u0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ri(e)))}function cr(){return l0(),a0(),i0(),r0()}function r0(){if(It!==5)return!1;var t=al,e=ef;ef=0;var l=wo(Nn),i=E.T,o=k.p;try{k.p=32>l?32:l,E.T=null,l=nf,nf=null;var s=al,y=Nn;if(It=0,wa=al=null,Nn=0,(Rt&6)!==0)throw Error(r(331));var b=Rt;if(Rt|=4,Gm(s.current),Bm(s,s.current,y,l),Rt=b,Ai(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(Qa,s)}catch{}return!0}finally{k.p=o,E.T=i,u0(t,e)}}function o0(t,e,l){e=qe(l,e),e=jc(t.stateNode,e,2),t=Wn(t,e,2),t!==null&&(Ka(t,2),un(t))}function Ot(t,e,l){if(t.tag===3)o0(t,t,l);else for(;e!==null;){if(e.tag===3){o0(e,t,l);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ll===null||!ll.has(i))){t=qe(l,t),l=cm(2),i=Wn(e,l,2),i!==null&&(fm(l,i,e,t),Ka(i,2),un(i));break}}e=e.return}}function rf(t,e,l){var i=t.pingCache;if(i===null){i=t.pingCache=new b1;var o=new Set;i.set(e,o)}else o=i.get(e),o===void 0&&(o=new Set,i.set(e,o));o.has(l)||(Ic=!0,o.add(l),t=T1.bind(null,t,e,l),e.then(t,t))}function T1(t,e,l){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Lt===t&&(Mt&l)===l&&(Qt===4||Qt===3&&(Mt&62914560)===Mt&&300>Te()-lr?(Rt&2)===0&&Ma(t,0):Pc|=l,Sa===Mt&&(Sa=0)),un(t)}function c0(t,e){e===0&&(e=lh()),t=wl(t,e),t!==null&&(Ka(t,e),un(t))}function E1(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),c0(t,l)}function A1(t,e){var l=0;switch(t.tag){case 31:case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),c0(t,l)}function z1(t,e){return xo(t,e)}var fr=null,Ea=null,of=!1,sr=!1,cf=!1,ul=0;function un(t){t!==Ea&&t.next===null&&(Ea===null?fr=Ea=t:Ea=Ea.next=t),sr=!0,of||(of=!0,C1())}function Ai(t,e){if(!cf&&sr){cf=!0;do for(var l=!1,i=fr;i!==null;){if(t!==0){var o=i.pendingLanes;if(o===0)var s=0;else{var y=i.suspendedLanes,b=i.pingedLanes;s=(1<<31-Ae(42|t)+1)-1,s&=o&~(y&~b),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,d0(i,s))}else s=Mt,s=gu(i,i===Lt?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(s&3)===0||Za(i,s)||(l=!0,d0(i,s));i=i.next}while(l);cf=!1}}function N1(){f0()}function f0(){sr=of=!1;var t=0;ul!==0&&q1()&&(t=ul);for(var e=Te(),l=null,i=fr;i!==null;){var o=i.next,s=s0(i,e);s===0?(i.next=null,l===null?fr=o:l.next=o,o===null&&(Ea=l)):(l=i,(t!==0||(s&3)!==0)&&(sr=!0)),i=o}It!==0&&It!==5||Ai(t),ul!==0&&(ul=0)}function s0(t,e){for(var l=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var y=31-Ae(s),b=1<<y,M=o[y];M===-1?((b&l)===0||(b&i)!==0)&&(o[y]=nv(b,e)):M<=e&&(t.expiredLanes|=b),s&=~b}if(e=Lt,l=Mt,l=gu(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,l===0||t===e&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&bo(i),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Za(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(i!==null&&bo(i),wo(l)){case 2:case 8:l=eh;break;case 32:l=su;break;case 268435456:l=nh;break;default:l=su}return i=h0.bind(null,t),l=xo(l,i),t.callbackPriority=e,t.callbackNode=l,e}return i!==null&&i!==null&&bo(i),t.callbackPriority=2,t.callbackNode=null,2}function h0(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(cr()&&t.callbackNode!==l)return null;var i=Mt;return i=gu(t,t===Lt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(Km(t,i,e),s0(t,Te()),t.callbackNode!=null&&t.callbackNode===l?h0.bind(null,t):null)}function d0(t,e){if(cr())return null;Km(t,e,!0)}function C1(){G1(function(){(Rt&6)!==0?xo(th,N1):f0()})}function ff(){if(ul===0){var t=sa;t===0&&(t=hu,hu<<=1,(hu&261888)===0&&(hu=256)),ul=t}return ul}function m0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:xu(""+t)}function g0(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 R1(t,e,l,i,o){if(e==="submit"&&l&&l.stateNode===o){var s=m0((o[pe]||null).action),y=i.submitter;y&&(e=(e=y[pe]||null)?m0(e.formAction):y.getAttribute("formAction"),e!==null&&(s=e,y=null));var b=new wu("action","action",null,i,o);t.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ul!==0){var M=y?g0(o,y):new FormData(o);Nc(l,{pending:!0,data:M,method:o.method,action:s},null,M)}}else typeof s=="function"&&(b.preventDefault(),M=y?g0(o,y):new FormData(o),Nc(l,{pending:!0,data:M,method:o.method,action:s},s,M))},currentTarget:o}]})}}for(var sf=0;sf<Zo.length;sf++){var hf=Zo[sf],D1=hf.toLowerCase(),O1=hf[0].toUpperCase()+hf.slice(1);Je(D1,"on"+O1)}Je(Zh,"onAnimationEnd"),Je(Kh,"onAnimationIteration"),Je($h,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(Jv,"onTransitionRun"),Je(Fv,"onTransitionStart"),Je(Wv,"onTransitionCancel"),Je(Jh,"onTransitionEnd"),Wl("onMouseEnter",["mouseout","mouseover"]),Wl("onMouseLeave",["mouseout","mouseover"]),Wl("onPointerEnter",["pointerout","pointerover"]),Wl("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zi="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(" "),U1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zi));function y0(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var i=t[l],o=i.event;i=i.listeners;t:{var s=void 0;if(e)for(var y=i.length-1;0<=y;y--){var b=i[y],M=b.instance,B=b.currentTarget;if(b=b.listener,M!==s&&o.isPropagationStopped())break t;s=b,o.currentTarget=B;try{s(o)}catch(Q){Eu(Q)}o.currentTarget=null,s=M}else for(y=0;y<i.length;y++){if(b=i[y],M=b.instance,B=b.currentTarget,b=b.listener,M!==s&&o.isPropagationStopped())break t;s=b,o.currentTarget=B;try{s(o)}catch(Q){Eu(Q)}o.currentTarget=null,s=M}}}}function wt(t,e){var l=e[Mo];l===void 0&&(l=e[Mo]=new Set);var i=t+"__bubble";l.has(i)||(p0(e,t,2,!1),l.add(i))}function df(t,e,l){var i=0;e&&(i|=4),p0(l,t,i,e)}var hr="_reactListening"+Math.random().toString(36).slice(2);function mf(t){if(!t[hr]){t[hr]=!0,fh.forEach(function(l){l!=="selectionchange"&&(U1.has(l)||df(l,!1,t),df(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[hr]||(e[hr]=!0,df("selectionchange",!1,e))}}function p0(t,e,l,i){switch(Z0(e)){case 2:var o=ox;break;case 8:o=cx;break;default:o=Nf}l=o.bind(null,e,l,t),o=void 0,!Oo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),i?o!==void 0?t.addEventListener(e,l,{capture:!0,passive:o}):t.addEventListener(e,l,!0):o!==void 0?t.addEventListener(e,l,{passive:o}):t.addEventListener(e,l,!1)}function gf(t,e,l,i,o){var s=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var b=i.stateNode.containerInfo;if(b===o)break;if(y===4)for(y=i.return;y!==null;){var M=y.tag;if((M===3||M===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;b!==null;){if(y=$l(b),y===null)return;if(M=y.tag,M===5||M===6||M===26||M===27){i=s=y;continue t}b=b.parentNode}}i=i.return}Sh(function(){var B=s,Q=Ro(l),K=[];t:{var q=Fh.get(t);if(q!==void 0){var G=wu,it=t;switch(t){case"keypress":if(_u(l)===0)break t;case"keydown":case"keyup":G=Av;break;case"focusin":it="focus",G=Yo;break;case"focusout":it="blur",G=Yo;break;case"beforeblur":case"afterblur":G=Yo;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":G=Th;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=gv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Cv;break;case Zh:case Kh:case $h:G=vv;break;case Jh:G=Dv;break;case"scroll":case"scrollend":G=dv;break;case"wheel":G=Uv;break;case"copy":case"cut":case"paste":G=bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Ah;break;case"toggle":case"beforetoggle":G=Hv}var ht=(e&4)!==0,Ht=!ht&&(t==="scroll"||t==="scrollend"),D=ht?q!==null?q+"Capture":null:q;ht=[];for(var C=B,L;C!==null;){var Z=C;if(L=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||L===null||D===null||(Z=Fa(C,D),Z!=null&&ht.push(Ni(C,Z,L))),Ht)break;C=C.return}0<ht.length&&(q=new G(q,it,null,l,Q),K.push({event:q,listeners:ht}))}}if((e&7)===0){t:{if(q=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",q&&l!==Co&&(it=l.relatedTarget||l.fromElement)&&($l(it)||it[Kl]))break t;if((G||q)&&(q=Q.window===Q?Q:(q=Q.ownerDocument)?q.defaultView||q.parentWindow:window,G?(it=l.relatedTarget||l.toElement,G=B,it=it?$l(it):null,it!==null&&(Ht=f(it),ht=it.tag,it!==Ht||ht!==5&&ht!==27&&ht!==6)&&(it=null)):(G=null,it=B),G!==it)){if(ht=Th,Z="onMouseLeave",D="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(ht=Ah,Z="onPointerLeave",D="onPointerEnter",C="pointer"),Ht=G==null?q:Ja(G),L=it==null?q:Ja(it),q=new ht(Z,C+"leave",G,l,Q),q.target=Ht,q.relatedTarget=L,Z=null,$l(Q)===B&&(ht=new ht(D,C+"enter",it,l,Q),ht.target=L,ht.relatedTarget=Ht,Z=ht),Ht=Z,G&&it)e:{for(ht=j1,D=G,C=it,L=0,Z=D;Z;Z=ht(Z))L++;Z=0;for(var ft=C;ft;ft=ht(ft))Z++;for(;0<L-Z;)D=ht(D),L--;for(;0<Z-L;)C=ht(C),Z--;for(;L--;){if(D===C||C!==null&&D===C.alternate){ht=D;break e}D=ht(D),C=ht(C)}ht=null}else ht=null;G!==null&&v0(K,q,G,ht,!1),it!==null&&Ht!==null&&v0(K,Ht,it,ht,!0)}}t:{if(q=B?Ja(B):window,G=q.nodeName&&q.nodeName.toLowerCase(),G==="select"||G==="input"&&q.type==="file")var zt=jh;else if(Oh(q))if(Hh)zt=Zv;else{zt=Vv;var ot=Xv}else G=q.nodeName,!G||G.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?B&&No(B.elementType)&&(zt=jh):zt=Qv;if(zt&&(zt=zt(t,B))){Uh(K,zt,l,Q);break t}ot&&ot(t,q,B),t==="focusout"&&B&&q.type==="number"&&B.memoizedProps.value!=null&&zo(q,"number",q.value)}switch(ot=B?Ja(B):window,t){case"focusin":(Oh(ot)||ot.contentEditable==="true")&&(la=ot,Xo=B,ai=null);break;case"focusout":ai=Xo=la=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,Vh(K,l,Q);break;case"selectionchange":if($v)break;case"keydown":case"keyup":Vh(K,l,Q)}var xt;if(Bo)t:{switch(t){case"compositionstart":var Tt="onCompositionStart";break t;case"compositionend":Tt="onCompositionEnd";break t;case"compositionupdate":Tt="onCompositionUpdate";break t}Tt=void 0}else na?Rh(t,l)&&(Tt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Tt="onCompositionStart");Tt&&(zh&&l.locale!=="ko"&&(na||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&na&&(xt=wh()):(Vn=Q,Uo="value"in Vn?Vn.value:Vn.textContent,na=!0)),ot=dr(B,Tt),0<ot.length&&(Tt=new Eh(Tt,t,null,l,Q),K.push({event:Tt,listeners:ot}),xt?Tt.data=xt:(xt=Dh(l),xt!==null&&(Tt.data=xt)))),(xt=Lv?Bv(t,l):qv(t,l))&&(Tt=dr(B,"onBeforeInput"),0<Tt.length&&(ot=new Eh("onBeforeInput","beforeinput",null,l,Q),K.push({event:ot,listeners:Tt}),ot.data=xt)),R1(K,t,B,l,Q)}y0(K,e)})}function Ni(t,e,l){return{instance:t,listener:e,currentTarget:l}}function dr(t,e){for(var l=e+"Capture",i=[];t!==null;){var o=t,s=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||s===null||(o=Fa(t,l),o!=null&&i.unshift(Ni(t,o,s)),o=Fa(t,e),o!=null&&i.push(Ni(t,o,s))),t.tag===3)return i;t=t.return}return[]}function j1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function v0(t,e,l,i,o){for(var s=e._reactName,y=[];l!==null&&l!==i;){var b=l,M=b.alternate,B=b.stateNode;if(b=b.tag,M!==null&&M===i)break;b!==5&&b!==26&&b!==27||B===null||(M=B,o?(B=Fa(l,s),B!=null&&y.unshift(Ni(l,B,M))):o||(B=Fa(l,s),B!=null&&y.push(Ni(l,B,M)))),l=l.return}y.length!==0&&t.push({event:e,listeners:y})}var H1=/\r\n?/g,Y1=/\u0000|\uFFFD/g;function x0(t){return(typeof t=="string"?t:""+t).replace(H1,`
49
+ `).replace(Y1,"")}function b0(t,e){return e=x0(e),x0(t)===e}function jt(t,e,l,i,o,s){switch(l){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Pl(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Pl(t,""+i);break;case"className":pu(t,"class",i);break;case"tabIndex":pu(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":pu(t,l,i);break;case"style":bh(t,i,s);break;case"data":if(e!=="object"){pu(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(l);break}i=xu(""+i),t.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="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"&&jt(t,e,"name",o.name,o,null),jt(t,e,"formEncType",o.formEncType,o,null),jt(t,e,"formMethod",o.formMethod,o,null),jt(t,e,"formTarget",o.formTarget,o,null)):(jt(t,e,"encType",o.encType,o,null),jt(t,e,"method",o.method,o,null),jt(t,e,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(l);break}i=xu(""+i),t.setAttribute(l,i);break;case"onClick":i!=null&&(t.onclick=mn);break;case"onScroll":i!=null&&wt("scroll",t);break;case"onScrollEnd":i!=null&&wt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}l=xu(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(l,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":i===!0?t.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(l,i):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(l,i):t.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(l):t.setAttribute(l,i);break;case"popover":wt("beforetoggle",t),wt("toggle",t),yu(t,"popover",i);break;case"xlinkActuate":dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":dn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":dn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":dn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":dn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":yu(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=sv.get(l)||l,yu(t,l,i))}}function yf(t,e,l,i,o,s){switch(l){case"style":bh(t,i,s);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof i=="string"?Pl(t,i):(typeof i=="number"||typeof i=="bigint")&&Pl(t,""+i);break;case"onScroll":i!=null&&wt("scroll",t);break;case"onScrollEnd":i!=null&&wt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sh.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),e=l.slice(2,o?l.length-7:void 0),s=t[pe]||null,s=s!=null?s[l]:null,typeof s=="function"&&t.removeEventListener(e,s,o),typeof i=="function")){typeof s!="function"&&s!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,i,o);break t}l in t?t[l]=i:i===!0?t.setAttribute(l,""):yu(t,l,i)}}}function se(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",t),wt("load",t);var i=!1,o=!1,s;for(s in l)if(l.hasOwnProperty(s)){var y=l[s];if(y!=null)switch(s){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,s,y,l,null)}}o&&jt(t,e,"srcSet",l.srcSet,l,null),i&&jt(t,e,"src",l.src,l,null);return;case"input":wt("invalid",t);var b=s=y=o=null,M=null,B=null;for(i in l)if(l.hasOwnProperty(i)){var Q=l[i];if(Q!=null)switch(i){case"name":o=Q;break;case"type":y=Q;break;case"checked":M=Q;break;case"defaultChecked":B=Q;break;case"value":s=Q;break;case"defaultValue":b=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,e));break;default:jt(t,e,i,Q,l,null)}}yh(t,s,b,M,B,y,o,!1);return;case"select":wt("invalid",t),i=y=s=null;for(o in l)if(l.hasOwnProperty(o)&&(b=l[o],b!=null))switch(o){case"value":s=b;break;case"defaultValue":y=b;break;case"multiple":i=b;default:jt(t,e,o,b,l,null)}e=s,l=y,t.multiple=!!i,e!=null?Il(t,!!i,e,!1):l!=null&&Il(t,!!i,l,!0);return;case"textarea":wt("invalid",t),s=o=i=null;for(y in l)if(l.hasOwnProperty(y)&&(b=l[y],b!=null))switch(y){case"value":i=b;break;case"defaultValue":o=b;break;case"children":s=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:jt(t,e,y,b,l,null)}vh(t,i,o,s);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(i=l[M],i!=null))switch(M){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:jt(t,e,M,i,l,null)}return;case"dialog":wt("beforetoggle",t),wt("toggle",t),wt("cancel",t),wt("close",t);break;case"iframe":case"object":wt("load",t);break;case"video":case"audio":for(i=0;i<zi.length;i++)wt(zi[i],t);break;case"image":wt("error",t),wt("load",t);break;case"details":wt("toggle",t);break;case"embed":case"source":case"link":wt("error",t),wt("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(B in l)if(l.hasOwnProperty(B)&&(i=l[B],i!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,B,i,l,null)}return;default:if(No(e)){for(Q in l)l.hasOwnProperty(Q)&&(i=l[Q],i!==void 0&&yf(t,e,Q,i,l,void 0));return}}for(b in l)l.hasOwnProperty(b)&&(i=l[b],i!=null&&jt(t,e,b,i,l,null))}function L1(t,e,l,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,s=null,y=null,b=null,M=null,B=null,Q=null;for(G in l){var K=l[G];if(l.hasOwnProperty(G)&&K!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":M=K;default:i.hasOwnProperty(G)||jt(t,e,G,null,i,K)}}for(var q in i){var G=i[q];if(K=l[q],i.hasOwnProperty(q)&&(G!=null||K!=null))switch(q){case"type":s=G;break;case"name":o=G;break;case"checked":B=G;break;case"defaultChecked":Q=G;break;case"value":y=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,e));break;default:G!==K&&jt(t,e,q,G,i,K)}}Ao(t,y,b,M,B,Q,s,o);return;case"select":G=y=b=q=null;for(s in l)if(M=l[s],l.hasOwnProperty(s)&&M!=null)switch(s){case"value":break;case"multiple":G=M;default:i.hasOwnProperty(s)||jt(t,e,s,null,i,M)}for(o in i)if(s=i[o],M=l[o],i.hasOwnProperty(o)&&(s!=null||M!=null))switch(o){case"value":q=s;break;case"defaultValue":b=s;break;case"multiple":y=s;default:s!==M&&jt(t,e,o,s,i,M)}e=b,l=y,i=G,q!=null?Il(t,!!l,q,!1):!!i!=!!l&&(e!=null?Il(t,!!l,e,!0):Il(t,!!l,l?[]:"",!1));return;case"textarea":G=q=null;for(b in l)if(o=l[b],l.hasOwnProperty(b)&&o!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:jt(t,e,b,null,i,o)}for(y in i)if(o=i[y],s=l[y],i.hasOwnProperty(y)&&(o!=null||s!=null))switch(y){case"value":q=o;break;case"defaultValue":G=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==s&&jt(t,e,y,o,i,s)}ph(t,q,G);return;case"option":for(var it in l)if(q=l[it],l.hasOwnProperty(it)&&q!=null&&!i.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:jt(t,e,it,null,i,q)}for(M in i)if(q=i[M],G=l[M],i.hasOwnProperty(M)&&q!==G&&(q!=null||G!=null))switch(M){case"selected":t.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:jt(t,e,M,q,i,G)}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 ht in l)q=l[ht],l.hasOwnProperty(ht)&&q!=null&&!i.hasOwnProperty(ht)&&jt(t,e,ht,null,i,q);for(B in i)if(q=i[B],G=l[B],i.hasOwnProperty(B)&&q!==G&&(q!=null||G!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,e));break;default:jt(t,e,B,q,i,G)}return;default:if(No(e)){for(var Ht in l)q=l[Ht],l.hasOwnProperty(Ht)&&q!==void 0&&!i.hasOwnProperty(Ht)&&yf(t,e,Ht,void 0,i,q);for(Q in i)q=i[Q],G=l[Q],!i.hasOwnProperty(Q)||q===G||q===void 0&&G===void 0||yf(t,e,Q,q,i,G);return}}for(var D in l)q=l[D],l.hasOwnProperty(D)&&q!=null&&!i.hasOwnProperty(D)&&jt(t,e,D,null,i,q);for(K in i)q=i[K],G=l[K],!i.hasOwnProperty(K)||q===G||q==null&&G==null||jt(t,e,K,q,i,G)}function _0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function B1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],s=o.transferSize,y=o.initiatorType,b=o.duration;if(s&&b&&_0(y)){for(y=0,b=o.responseEnd,i+=1;i<l.length;i++){var M=l[i],B=M.startTime;if(B>b)break;var Q=M.transferSize,K=M.initiatorType;Q&&_0(K)&&(M=M.responseEnd,y+=Q*(M<b?1:(b-B)/(M-B)))}if(--i,e+=8*(s+y)/(o.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 pf=null,vf=null;function mr(t){return t.nodeType===9?t:t.ownerDocument}function S0(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 w0(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 xf(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 bf=null;function q1(){var t=window.event;return t&&t.type==="popstate"?t===bf?!1:(bf=t,!0):(bf=null,!1)}var M0=typeof setTimeout=="function"?setTimeout:void 0,k1=typeof clearTimeout=="function"?clearTimeout:void 0,T0=typeof Promise=="function"?Promise:void 0,G1=typeof queueMicrotask=="function"?queueMicrotask:typeof T0<"u"?function(t){return T0.resolve(null).then(t).catch(X1)}:M0;function X1(t){setTimeout(function(){throw t})}function rl(t){return t==="head"}function E0(t,e){var l=e,i=0;do{var o=l.nextSibling;if(t.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){t.removeChild(o),Ca(e);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Ci(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Ci(l);for(var s=l.firstChild;s;){var y=s.nextSibling,b=s.nodeName;s[$a]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=y}}else l==="body"&&Ci(t.ownerDocument.body);l=o}while(l);Ca(e)}function A0(t,e){var l=t;t=0;do{var i=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||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=i}while(l)}function _f(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":_f(l),To(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function V1(t,e,l,i){for(;t.nodeType===1;){var o=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){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!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Qe(t.nextSibling),t===null)break}return null}function Q1(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Qe(t.nextSibling),t===null))return null;return t}function z0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Qe(t.nextSibling),t===null))return null;return t}function Sf(t){return t.data==="$?"||t.data==="$~"}function wf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Z1(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var i=function(){e(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Qe(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 Mf=null;function N0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Qe(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function C0(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 R0(t,e,l){switch(e=mr(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 Ci(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);To(t)}var Ze=new Map,D0=new Set;function gr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Cn=k.d;k.d={f:K1,r:$1,D:J1,C:F1,L:W1,m:I1,X:tx,S:P1,M:ex};function K1(){var t=Cn.f(),e=ur();return t||e}function $1(t){var e=Jl(t);e!==null&&e.tag===5&&e.type==="form"?Jd(e):Cn.r(t)}var Aa=typeof document>"u"?null:document;function O0(t,e,l){var i=Aa;if(i&&typeof e=="string"&&e){var o=Le(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),D0.has(o)||(D0.add(o),t={rel:t,crossOrigin:l,href:e},i.querySelector(o)===null&&(e=i.createElement("link"),se(e,"link",t),te(e),i.head.appendChild(e)))}}function J1(t){Cn.D(t),O0("dns-prefetch",t,null)}function F1(t,e){Cn.C(t,e),O0("preconnect",t,e)}function W1(t,e,l){Cn.L(t,e,l);var i=Aa;if(i&&t&&e){var o='link[rel="preload"][as="'+Le(e)+'"]';e==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Le(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Le(l.imageSizes)+'"]')):o+='[href="'+Le(t)+'"]';var s=o;switch(e){case"style":s=za(t);break;case"script":s=Na(t)}Ze.has(s)||(t=v({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ze.set(s,t),i.querySelector(o)!==null||e==="style"&&i.querySelector(Ri(s))||e==="script"&&i.querySelector(Di(s))||(e=i.createElement("link"),se(e,"link",t),te(e),i.head.appendChild(e)))}}function I1(t,e){Cn.m(t,e);var l=Aa;if(l&&t){var i=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Le(i)+'"][href="'+Le(t)+'"]',s=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Na(t)}if(!Ze.has(s)&&(t=v({rel:"modulepreload",href:t},e),Ze.set(s,t),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Di(s)))return}i=l.createElement("link"),se(i,"link",t),te(i),l.head.appendChild(i)}}}function P1(t,e,l){Cn.S(t,e,l);var i=Aa;if(i&&t){var o=Fl(i).hoistableStyles,s=za(t);e=e||"default";var y=o.get(s);if(!y){var b={loading:0,preload:null};if(y=i.querySelector(Ri(s)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ze.get(s))&&Tf(t,l);var M=y=i.createElement("link");te(M),se(M,"link",t),M._p=new Promise(function(B,Q){M.onload=B,M.onerror=Q}),M.addEventListener("load",function(){b.loading|=1}),M.addEventListener("error",function(){b.loading|=2}),b.loading|=4,yr(y,e,i)}y={type:"stylesheet",instance:y,count:1,state:b},o.set(s,y)}}}function tx(t,e){Cn.X(t,e);var l=Aa;if(l&&t){var i=Fl(l).hoistableScripts,o=Na(t),s=i.get(o);s||(s=l.querySelector(Di(o)),s||(t=v({src:t,async:!0},e),(e=Ze.get(o))&&Ef(t,e),s=l.createElement("script"),te(s),se(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(o,s))}}function ex(t,e){Cn.M(t,e);var l=Aa;if(l&&t){var i=Fl(l).hoistableScripts,o=Na(t),s=i.get(o);s||(s=l.querySelector(Di(o)),s||(t=v({src:t,async:!0,type:"module"},e),(e=Ze.get(o))&&Ef(t,e),s=l.createElement("script"),te(s),se(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(o,s))}}function U0(t,e,l,i){var o=(o=dt.current)?gr(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=za(l.href),l=Fl(o).hoistableStyles,i=l.get(e),i||(i={type:"style",instance:null,count:0,state:null},l.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=za(l.href);var s=Fl(o).hoistableStyles,y=s.get(t);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,y),(s=o.querySelector(Ri(t)))&&!s._p&&(y.instance=s,y.state.loading=5),Ze.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},Ze.set(t,l),s||nx(o,t,l,y.state))),e&&i===null)throw Error(r(528,""));return y}if(e&&i!==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=Na(l),l=Fl(o).hoistableScripts,i=l.get(e),i||(i={type:"script",instance:null,count:0,state:null},l.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function za(t){return'href="'+Le(t)+'"'}function Ri(t){return'link[rel="stylesheet"]['+t+"]"}function j0(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function nx(t,e,l,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),se(e,"link",l),te(e),t.head.appendChild(e))}function Na(t){return'[src="'+Le(t)+'"]'}function Di(t){return"script[async]"+t}function H0(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Le(l.href)+'"]');if(i)return e.instance=i,te(i),i;var o=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),te(i),se(i,"style",o),yr(i,l.precedence,t),e.instance=i;case"stylesheet":o=za(l.href);var s=t.querySelector(Ri(o));if(s)return e.state.loading|=4,e.instance=s,te(s),s;i=j0(l),(o=Ze.get(o))&&Tf(i,o),s=(t.ownerDocument||t).createElement("link"),te(s);var y=s;return y._p=new Promise(function(b,M){y.onload=b,y.onerror=M}),se(s,"link",i),e.state.loading|=4,yr(s,l.precedence,t),e.instance=s;case"script":return s=Na(l.src),(o=t.querySelector(Di(s)))?(e.instance=o,te(o),o):(i=l,(o=Ze.get(s))&&(i=v({},l),Ef(i,o)),t=t.ownerDocument||t,o=t.createElement("script"),te(o),se(o,"link",i),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,yr(i,l.precedence,t));return e.instance}function yr(t,e,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,s=o,y=0;y<i.length;y++){var b=i[y];if(b.dataset.precedence===e)s=b;else if(s!==o)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Tf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ef(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 Y0(t,e,l){if(pr===null){var i=new Map,o=pr=new Map;o.set(l,i)}else o=pr,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(t))return i;for(i.set(t,null),l=l.getElementsByTagName(t),o=0;o<l.length;o++){var s=l[o];if(!(s[$a]||s[re]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var y=s.getAttribute(e)||"";y=t+y;var b=i.get(y);b?b.push(s):i.set(y,[s])}}return i}function L0(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function lx(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 B0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ax(t,e,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=za(i.href),s=e.querySelector(Ri(o));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=vr.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=s,te(s);return}s=e.ownerDocument||e,i=j0(i),(o=Ze.get(o))&&Tf(i,o),s=s.createElement("link"),te(s);var y=s;y._p=new Promise(function(b,M){y.onload=b,y.onerror=M}),se(s,"link",i),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=vr.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Af=0;function ix(t,e){return t.stylesheets&&t.count===0&&br(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var i=setTimeout(function(){if(t.stylesheets&&br(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&Af===0&&(Af=62500*B1());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&br(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>Af?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)br(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var xr=null;function br(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,xr=new Map,e.forEach(ux,t),xr=null,vr.call(t))}function ux(t,e){if(!(e.state.loading&4)){var l=xr.get(t);if(l)var i=l.get(null);else{l=new Map,xr.set(t,l);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<o.length;s++){var y=o[s];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),i=y)}i&&l.set(null,i)}o=e.instance,y=o.getAttribute("data-precedence"),s=l.get(y)||i,s===i&&l.set(null,o),l.set(y,o),this.count++,i=vr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),s?s.parentNode.insertBefore(o,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Oi={$$typeof:U,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function rx(t,e,l,i,o,s,y,b,M){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=_o(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_o(0),this.hiddenUpdates=_o(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=s,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function q0(t,e,l,i,o,s,y,b,M,B,Q,K){return t=new rx(t,e,l,y,M,B,Q,K,b),e=1,s===!0&&(e|=24),s=Ne(3,null,null,e),t.current=s,s.stateNode=t,e=ic(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:i,isDehydrated:l,cache:e},cc(s),t}function k0(t){return t?(t=ua,t):ua}function G0(t,e,l,i,o,s){o=k0(o),i.context===null?i.context=o:i.pendingContext=o,i=Fn(e),i.payload={element:l},s=s===void 0?null:s,s!==null&&(i.callback=s),l=Wn(t,i,e),l!==null&&(we(l,t,e),si(l,t,e))}function X0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function zf(t,e){X0(t,e),(t=t.alternate)&&X0(t,e)}function V0(t){if(t.tag===13||t.tag===31){var e=wl(t,67108864);e!==null&&we(e,t,67108864),zf(t,67108864)}}function Q0(t){if(t.tag===13||t.tag===31){var e=Ue();e=So(e);var l=wl(t,e);l!==null&&we(l,t,e),zf(t,e)}}var _r=!0;function ox(t,e,l,i){var o=E.T;E.T=null;var s=k.p;try{k.p=2,Nf(t,e,l,i)}finally{k.p=s,E.T=o}}function cx(t,e,l,i){var o=E.T;E.T=null;var s=k.p;try{k.p=8,Nf(t,e,l,i)}finally{k.p=s,E.T=o}}function Nf(t,e,l,i){if(_r){var o=Cf(i);if(o===null)gf(t,e,i,Sr,l),K0(t,i);else if(sx(o,t,e,l,i))i.stopPropagation();else if(K0(t,i),e&4&&-1<fx.indexOf(t)){for(;o!==null;){var s=Jl(o);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var y=vl(s.pendingLanes);if(y!==0){var b=s;for(b.pendingLanes|=2,b.entangledLanes|=2;y;){var M=1<<31-Ae(y);b.entanglements[1]|=M,y&=~M}un(s),(Rt&6)===0&&(ar=Te()+500,Ai(0))}}break;case 31:case 13:b=wl(s,2),b!==null&&we(b,s,2),ur(),zf(s,2)}if(s=Cf(i),s===null&&gf(t,e,i,Sr,l),s===o)break;o=s}o!==null&&i.stopPropagation()}else gf(t,e,i,null,l)}}function Cf(t){return t=Ro(t),Rf(t)}var Sr=null;function Rf(t){if(Sr=null,t=$l(t),t!==null){var e=f(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=h(e),t!==null)return t;t=null}else if(l===31){if(t=m(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 Z0(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(Jp()){case th:return 2;case eh:return 8;case su:case Fp:return 32;case nh:return 268435456;default:return 32}default:return 32}}var Df=!1,ol=null,cl=null,fl=null,Ui=new Map,ji=new Map,sl=[],fx="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 K0(t,e){switch(t){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":cl=null;break;case"mouseover":case"mouseout":fl=null;break;case"pointerover":case"pointerout":Ui.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(e.pointerId)}}function Hi(t,e,l,i,o,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:l,eventSystemFlags:i,nativeEvent:s,targetContainers:[o]},e!==null&&(e=Jl(e),e!==null&&V0(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function sx(t,e,l,i,o){switch(e){case"focusin":return ol=Hi(ol,t,e,l,i,o),!0;case"dragenter":return cl=Hi(cl,t,e,l,i,o),!0;case"mouseover":return fl=Hi(fl,t,e,l,i,o),!0;case"pointerover":var s=o.pointerId;return Ui.set(s,Hi(Ui.get(s)||null,t,e,l,i,o)),!0;case"gotpointercapture":return s=o.pointerId,ji.set(s,Hi(ji.get(s)||null,t,e,l,i,o)),!0}return!1}function $0(t){var e=$l(t.target);if(e!==null){var l=f(e);if(l!==null){if(e=l.tag,e===13){if(e=h(l),e!==null){t.blockedOn=e,oh(t.priority,function(){Q0(l)});return}}else if(e===31){if(e=m(l),e!==null){t.blockedOn=e,oh(t.priority,function(){Q0(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 wr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Cf(t.nativeEvent);if(l===null){l=t.nativeEvent;var i=new l.constructor(l.type,l);Co=i,l.target.dispatchEvent(i),Co=null}else return e=Jl(l),e!==null&&V0(e),t.blockedOn=l,!1;e.shift()}return!0}function J0(t,e,l){wr(t)&&l.delete(e)}function hx(){Df=!1,ol!==null&&wr(ol)&&(ol=null),cl!==null&&wr(cl)&&(cl=null),fl!==null&&wr(fl)&&(fl=null),Ui.forEach(J0),ji.forEach(J0)}function Mr(t,e){t.blockedOn===e&&(t.blockedOn=null,Df||(Df=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,hx)))}var Tr=null;function F0(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],i=t[e+1],o=t[e+2];if(typeof i!="function"){if(Rf(i||l)===null)continue;break}var s=Jl(l);s!==null&&(t.splice(e,3),e-=3,Nc(s,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function Ca(t){function e(M){return Mr(M,t)}ol!==null&&Mr(ol,t),cl!==null&&Mr(cl,t),fl!==null&&Mr(fl,t),Ui.forEach(e),ji.forEach(e);for(var l=0;l<sl.length;l++){var i=sl[l];i.blockedOn===t&&(i.blockedOn=null)}for(;0<sl.length&&(l=sl[0],l.blockedOn===null);)$0(l),l.blockedOn===null&&sl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],s=l[i+1],y=o[pe]||null;if(typeof s=="function")y||F0(l);else if(y){var b=null;if(s&&s.hasAttribute("formAction")){if(o=s,y=s[pe]||null)b=y.formAction;else if(Rf(o)!==null)continue}else b=y.action;typeof b=="function"?l[i+1]=b:(l.splice(i,3),i-=3),F0(l)}}}function W0(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),i||setTimeout(l,20)}function l(){if(!i&&!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 i=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Of(t){this._internalRoot=t}Er.prototype.render=Of.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,i=Ue();G0(l,i,t,e,null,null)},Er.prototype.unmount=Of.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;G0(t.current,2,null,t,null,null),ur(),e[Kl]=null}};function Er(t){this._internalRoot=t}Er.prototype.unstable_scheduleHydration=function(t){if(t){var e=rh();t={blockedOn:null,target:t,priority:e};for(var l=0;l<sl.length&&e!==0&&e<sl[l].priority;l++);sl.splice(l,0,t),l===0&&$0(t)}};var I0=a.version;if(I0!=="19.2.4")throw Error(r(527,I0,"19.2.4"));k.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=d(e),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var dx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ar.isDisabled&&Ar.supportsFiber)try{Qa=Ar.inject(dx),Ee=Ar}catch{}}return Li.createRoot=function(t,e){if(!c(t))throw Error(r(299));var l=!1,i="",o=im,s=um,y=rm;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(y=e.onRecoverableError)),e=q0(t,1,!1,null,null,l,i,null,o,s,y,W0),t[Kl]=e.current,mf(t),new Of(e)},Li.hydrateRoot=function(t,e,l){if(!c(t))throw Error(r(299));var i=!1,o="",s=im,y=um,b=rm,M=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(b=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),e=q0(t,1,!0,e,l??null,i,o,M,s,y,b,W0),e.context=k0(null),l=e.current,i=Ue(),i=So(i),o=Fn(i),o.callback=null,Wn(l,o,i),l=i,e.current.lanes=l,Ka(e,l),un(e),t[Kl]=e.current,mf(t),new Er(e)},Li.version="19.2.4",Li}var og;function wx(){if(og)return Hf.exports;og=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(),Hf.exports=Sx(),Hf.exports}var Mx=wx();/**
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 cg="popstate";function Tx(n={}){function a(r,c){let{pathname:f,search:h,hash:m}=r.location;return is("",{pathname:f,search:h,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function u(r,c){return typeof c=="string"?c:Wi(c)}return Ax(a,u,null,n)}function Xt(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 Ex(){return Math.random().toString(36).substring(2,10)}function fg(n,a){return{usr:n.state,key:n.key,idx:a}}function is(n,a,u=null,r){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?ka(a):a,state:u,key:a&&a.key||r||Ex()}}function Wi({pathname:n="/",search:a="",hash:u=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),u&&u!=="#"&&(n+=u.charAt(0)==="#"?u:"#"+u),n}function ka(n){let a={};if(n){let u=n.indexOf("#");u>=0&&(a.hash=n.substring(u),n=n.substring(0,u));let r=n.indexOf("?");r>=0&&(a.search=n.substring(r),n=n.substring(0,r)),n&&(a.pathname=n)}return a}function Ax(n,a,u,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,h=c.history,m="POP",g=null,d=p();d==null&&(d=0,h.replaceState({...h.state,idx:d},""));function p(){return(h.state||{idx:null}).idx}function v(){m="POP";let S=p(),A=S==null?null:S-d;d=S,g&&g({action:m,location:T.location,delta:A})}function x(S,A){m="PUSH";let j=is(T.location,S,A);d=p()+1;let U=fg(j,d),N=T.createHref(j);try{h.pushState(U,"",N)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;c.location.assign(N)}f&&g&&g({action:m,location:T.location,delta:1})}function _(S,A){m="REPLACE";let j=is(T.location,S,A);d=p();let U=fg(j,d),N=T.createHref(j);h.replaceState(U,"",N),f&&g&&g({action:m,location:T.location,delta:0})}function O(S){return zx(S)}let T={get action(){return m},get location(){return n(c,h)},listen(S){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(cg,v),g=S,()=>{c.removeEventListener(cg,v),g=null}},createHref(S){return a(c,S)},createURL:O,encodeLocation(S){let A=O(S);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:_,go(S){return h.go(S)}};return T}function zx(n,a=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Xt(u,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Wi(n);return r=r.replace(/ $/,"%20"),!a&&r.startsWith("//")&&(r=u+r),new URL(r,u)}function py(n,a,u="/"){return Nx(n,a,u,!1)}function Nx(n,a,u,r){let c=typeof a=="string"?ka(a):a,f=Ln(c.pathname||"/",u);if(f==null)return null;let h=vy(n);Cx(h);let m=null;for(let g=0;m==null&&g<h.length;++g){let d=kx(f);m=Bx(h[g],d,r)}return m}function vy(n,a=[],u=[],r="",c=!1){let f=(h,m,g=c,d)=>{let p={relativePath:d===void 0?h.path||"":d,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&g)return;Xt(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let v=Yn([r,p.relativePath]),x=u.concat(p);h.children&&h.children.length>0&&(Xt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),vy(h.children,a,x,v,g)),!(h.path==null&&!h.index)&&a.push({path:v,score:Yx(v,h.index),routesMeta:x})};return n.forEach((h,m)=>{var g;if(h.path===""||!((g=h.path)!=null&&g.includes("?")))f(h,m);else for(let d of xy(h.path))f(h,m,!0,d)}),a}function xy(n){let a=n.split("/");if(a.length===0)return[];let[u,...r]=a,c=u.endsWith("?"),f=u.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let h=xy(r.join("/")),m=[];return m.push(...h.map(g=>g===""?f:[f,g].join("/"))),c&&m.push(...h),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function Cx(n){n.sort((a,u)=>a.score!==u.score?u.score-a.score:Lx(a.routesMeta.map(r=>r.childrenIndex),u.routesMeta.map(r=>r.childrenIndex)))}var Rx=/^:[\w-]+$/,Dx=3,Ox=2,Ux=1,jx=10,Hx=-2,sg=n=>n==="*";function Yx(n,a){let u=n.split("/"),r=u.length;return u.some(sg)&&(r+=Hx),a&&(r+=Ox),u.filter(c=>!sg(c)).reduce((c,f)=>c+(Rx.test(f)?Dx:f===""?Ux:jx),r)}function Lx(n,a){return n.length===a.length&&n.slice(0,-1).every((r,c)=>r===a[c])?n[n.length-1]-a[a.length-1]:0}function Bx(n,a,u=!1){let{routesMeta:r}=n,c={},f="/",h=[];for(let m=0;m<r.length;++m){let g=r[m],d=m===r.length-1,p=f==="/"?a:a.slice(f.length)||"/",v=Zr({path:g.relativePath,caseSensitive:g.caseSensitive,end:d},p),x=g.route;if(!v&&d&&u&&!r[r.length-1].route.index&&(v=Zr({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},p)),!v)return null;Object.assign(c,v.params),h.push({params:c,pathname:Yn([f,v.pathname]),pathnameBase:Qx(Yn([f,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(f=Yn([f,v.pathnameBase]))}return h}function Zr(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[u,r]=qx(n.path,n.caseSensitive,n.end),c=a.match(u);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:v},x)=>{if(p==="*"){let O=m[x]||"";h=f.slice(0,f.length-O.length).replace(/(.)\/+$/,"$1")}const _=m[x];return v&&!_?d[p]=void 0:d[p]=(_||"").replace(/%2F/g,"/"),d},{}),pathname:f,pathnameBase:h,pattern:n}}function qx(n,a=!1,u=!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=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,g)=>(r.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),r]}function kx(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 Ln(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let u=a.endsWith("/")?a.length-1:a.length,r=n.charAt(u);return r&&r!=="/"?null:n.slice(u)||"/"}var Gx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Xx(n,a="/"){let{pathname:u,search:r="",hash:c=""}=typeof n=="string"?ka(n):n,f;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?f=hg(u.substring(1),"/"):f=hg(u,a)):f=a,{pathname:f,search:Zx(r),hash:Kx(c)}}function hg(n,a){let u=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?u.length>1&&u.pop():c!=="."&&u.push(c)}),u.length>1?u.join("/"):"/"}function qf(n,a,u,r){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Vx(n){return n.filter((a,u)=>u===0||a.route.path&&a.route.path.length>0)}function by(n){let a=Vx(n);return a.map((u,r)=>r===a.length-1?u.pathname:u.pathnameBase)}function _y(n,a,u,r=!1){let c;typeof n=="string"?c=ka(n):(c={...n},Xt(!c.pathname||!c.pathname.includes("?"),qf("?","pathname","search",c)),Xt(!c.pathname||!c.pathname.includes("#"),qf("#","pathname","hash",c)),Xt(!c.search||!c.search.includes("#"),qf("#","search","hash",c)));let f=n===""||c.pathname==="",h=f?"/":c.pathname,m;if(h==null)m=u;else{let v=a.length-1;if(!r&&h.startsWith("..")){let x=h.split("/");for(;x[0]==="..";)x.shift(),v-=1;c.pathname=x.join("/")}m=v>=0?a[v]:"/"}let g=Xx(c,m),d=h&&h!=="/"&&h.endsWith("/"),p=(f||h===".")&&u.endsWith("/");return!g.pathname.endsWith("/")&&(d||p)&&(g.pathname+="/"),g}var Yn=n=>n.join("/").replace(/\/\/+/g,"/"),Qx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Zx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Kx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,$x=class{constructor(n,a,u,r=!1){this.status=n,this.statusText=a||"",this.internal=r,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function Jx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Fx(n){return n.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Sy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function wy(n,a){let u=n;if(typeof u!="string"||!Gx.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let r=u,c=!1;if(Sy)try{let f=new URL(window.location.href),h=u.startsWith("//")?new URL(f.protocol+u):new URL(u),m=Ln(h.pathname,a);h.origin===f.origin&&m!=null?u=m+h.search+h.hash:c=!0}catch{cn(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:c,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var My=["POST","PUT","PATCH","DELETE"];new Set(My);var Wx=["GET",...My];new Set(Wx);var Ga=H.createContext(null);Ga.displayName="DataRouter";var fo=H.createContext(null);fo.displayName="DataRouterState";var Ix=H.createContext(!1),Ty=H.createContext({isTransitioning:!1});Ty.displayName="ViewTransition";var Px=H.createContext(new Map);Px.displayName="Fetchers";var tb=H.createContext(null);tb.displayName="Await";var $e=H.createContext(null);$e.displayName="Navigation";var au=H.createContext(null);au.displayName="Location";var fn=H.createContext({outlet:null,matches:[],isDataRoute:!1});fn.displayName="Route";var Ts=H.createContext(null);Ts.displayName="RouteError";var Ey="REACT_ROUTER_ERROR",eb="REDIRECT",nb="ROUTE_ERROR_RESPONSE";function lb(n){if(n.startsWith(`${Ey}:${eb}:{`))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 ab(n){if(n.startsWith(`${Ey}:${nb}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new $x(a.status,a.statusText,a.data)}catch{}}function ib(n,{relative:a}={}){Xt(iu(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:r}=H.useContext($e),{hash:c,pathname:f,search:h}=uu(n,{relative:a}),m=f;return u!=="/"&&(m=f==="/"?u:Yn([u,f])),r.createHref({pathname:m,search:h,hash:c})}function iu(){return H.useContext(au)!=null}function Vl(){return Xt(iu(),"useLocation() may be used only in the context of a <Router> component."),H.useContext(au).location}var Ay="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zy(n){H.useContext($e).static||H.useLayoutEffect(n)}function ub(){let{isDataRoute:n}=H.useContext(fn);return n?_b():rb()}function rb(){Xt(iu(),"useNavigate() may be used only in the context of a <Router> component.");let n=H.useContext(Ga),{basename:a,navigator:u}=H.useContext($e),{matches:r}=H.useContext(fn),{pathname:c}=Vl(),f=JSON.stringify(by(r)),h=H.useRef(!1);return zy(()=>{h.current=!0}),H.useCallback((g,d={})=>{if(cn(h.current,Ay),!h.current)return;if(typeof g=="number"){u.go(g);return}let p=_y(g,JSON.parse(f),c,d.relative==="path");n==null&&a!=="/"&&(p.pathname=p.pathname==="/"?a:Yn([a,p.pathname])),(d.replace?u.replace:u.push)(p,d.state,d)},[a,u,f,c,n])}var ob=H.createContext(null);function cb(n){let a=H.useContext(fn).outlet;return H.useMemo(()=>a&&H.createElement(ob.Provider,{value:n},a),[a,n])}function uu(n,{relative:a}={}){let{matches:u}=H.useContext(fn),{pathname:r}=Vl(),c=JSON.stringify(by(u));return H.useMemo(()=>_y(n,JSON.parse(c),r,a==="path"),[n,c,r,a])}function fb(n,a){return Ny(n,a)}function Ny(n,a,u,r,c){var j;Xt(iu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=H.useContext($e),{matches:h}=H.useContext(fn),m=h[h.length-1],g=m?m.params:{},d=m?m.pathname:"/",p=m?m.pathnameBase:"/",v=m&&m.route;{let U=v&&v.path||"";Ry(d,!v||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${U}">) 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="${U}"> to <Route path="${U==="/"?"*":`${U}/*`}">.`)}let x=Vl(),_;if(a){let U=typeof a=="string"?ka(a):a;Xt(p==="/"||((j=U.pathname)==null?void 0:j.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${U.pathname}" was given in the \`location\` prop.`),_=U}else _=x;let O=_.pathname||"/",T=O;if(p!=="/"){let U=p.replace(/^\//,"").split("/");T="/"+O.replace(/^\//,"").split("/").slice(U.length).join("/")}let S=py(n,{pathname:T});cn(v||S!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),cn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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=gb(S&&S.map(U=>Object.assign({},U,{params:Object.assign({},g,U.params),pathname:Yn([p,f.encodeLocation?f.encodeLocation(U.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?p:Yn([p,f.encodeLocation?f.encodeLocation(U.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathnameBase])})),h,u,r,c);return a&&A?H.createElement(au.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},A):A}function sb(){let n=bb(),a=Jx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),u=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=H.createElement(H.Fragment,null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:f},"ErrorBoundary")," or"," ",H.createElement("code",{style:f},"errorElement")," prop on your route.")),H.createElement(H.Fragment,null,H.createElement("h2",null,"Unexpected Application Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},a),u?H.createElement("pre",{style:c},u):null,h)}var hb=H.createElement(sb,null),Cy=class extends H.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 u=ab(n.digest);u&&(n=u)}let a=n!==void 0?H.createElement(fn.Provider,{value:this.props.routeContext},H.createElement(Ts.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?H.createElement(db,{error:n},a):a}};Cy.contextType=Ix;var kf=new WeakMap;function db({children:n,error:a}){let{basename:u}=H.useContext($e);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let r=lb(a.digest);if(r){let c=kf.get(a);if(c)throw c;let f=wy(r.location,u);if(Sy&&!kf.get(a))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw kf.set(a,h),h}return H.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function mb({routeContext:n,match:a,children:u}){let r=H.useContext(Ga);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),H.createElement(fn.Provider,{value:n},u)}function gb(n,a=[],u=null,r=null,c=null){if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(a.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let f=n,h=u==null?void 0:u.errors;if(h!=null){let p=f.findIndex(v=>v.route.id&&(h==null?void 0:h[v.route.id])!==void 0);Xt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,p+1))}let m=!1,g=-1;if(u)for(let p=0;p<f.length;p++){let v=f[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=p),v.route.id){let{loaderData:x,errors:_}=u,O=v.route.loader&&!x.hasOwnProperty(v.route.id)&&(!_||_[v.route.id]===void 0);if(v.route.lazy||O){m=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let d=u&&r?(p,v)=>{var x,_;r(p,{location:u.location,params:((_=(x=u.matches)==null?void 0:x[0])==null?void 0:_.params)??{},unstable_pattern:Fx(u.matches),errorInfo:v})}:void 0;return f.reduceRight((p,v,x)=>{let _,O=!1,T=null,S=null;u&&(_=h&&v.route.id?h[v.route.id]:void 0,T=v.route.errorElement||hb,m&&(g<0&&x===0?(Ry("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,S=null):g===x&&(O=!0,S=v.route.hydrateFallbackElement||null)));let A=a.concat(f.slice(0,x+1)),j=()=>{let U;return _?U=T:O?U=S:v.route.Component?U=H.createElement(v.route.Component,null):v.route.element?U=v.route.element:U=p,H.createElement(mb,{match:v,routeContext:{outlet:p,matches:A,isDataRoute:u!=null},children:U})};return u&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?H.createElement(Cy,{location:u.location,revalidation:u.revalidation,component:T,error:_,children:j(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:d}):j()},null)}function Es(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yb(n){let a=H.useContext(Ga);return Xt(a,Es(n)),a}function pb(n){let a=H.useContext(fo);return Xt(a,Es(n)),a}function vb(n){let a=H.useContext(fn);return Xt(a,Es(n)),a}function As(n){let a=vb(n),u=a.matches[a.matches.length-1];return Xt(u.route.id,`${n} can only be used on routes that contain a unique "id"`),u.route.id}function xb(){return As("useRouteId")}function bb(){var r;let n=H.useContext(Ts),a=pb("useRouteError"),u=As("useRouteError");return n!==void 0?n:(r=a.errors)==null?void 0:r[u]}function _b(){let{router:n}=yb("useNavigate"),a=As("useNavigate"),u=H.useRef(!1);return zy(()=>{u.current=!0}),H.useCallback(async(c,f={})=>{cn(u.current,Ay),u.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:a,...f}))},[n,a])}var dg={};function Ry(n,a,u){!a&&!dg[n]&&(dg[n]=!0,cn(!1,u))}H.memo(Sb);function Sb({routes:n,future:a,state:u,onError:r}){return Ny(n,void 0,u,r,a)}function wb(n){return cb(n.context)}function Hl(n){Xt(!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 Mb({basename:n="/",children:a=null,location:u,navigationType:r="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){Xt(!iu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),g=H.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[m,c,f,h]);typeof u=="string"&&(u=ka(u));let{pathname:d="/",search:p="",hash:v="",state:x=null,key:_="default"}=u,O=H.useMemo(()=>{let T=Ln(d,m);return T==null?null:{location:{pathname:T,search:p,hash:v,state:x,key:_},navigationType:r}},[m,d,p,v,x,_,r]);return cn(O!=null,`<Router basename="${m}"> is not able to match the URL "${d}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:H.createElement($e.Provider,{value:g},H.createElement(au.Provider,{children:a,value:O}))}function Tb({children:n,location:a}){return fb(us(n),a)}function us(n,a=[]){let u=[];return H.Children.forEach(n,(r,c)=>{if(!H.isValidElement(r))return;let f=[...a,c];if(r.type===H.Fragment){u.push.apply(u,us(r.props.children,f));return}Xt(r.type===Hl,`[${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>`),Xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={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&&(h.children=us(r.props.children,f)),u.push(h)}),u}var Br="get",qr="application/x-www-form-urlencoded";function so(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Eb(n){return so(n)&&n.tagName.toLowerCase()==="button"}function Ab(n){return so(n)&&n.tagName.toLowerCase()==="form"}function zb(n){return so(n)&&n.tagName.toLowerCase()==="input"}function Nb(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Cb(n,a){return n.button===0&&(!a||a==="_self")&&!Nb(n)}var zr=null;function Rb(){if(zr===null)try{new FormData(document.createElement("form"),0),zr=!1}catch{zr=!0}return zr}var Db=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gf(n){return n!=null&&!Db.has(n)?(cn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qr}"`),null):n}function Ob(n,a){let u,r,c,f,h;if(Ab(n)){let m=n.getAttribute("action");r=m?Ln(m,a):null,u=n.getAttribute("method")||Br,c=Gf(n.getAttribute("enctype"))||qr,f=new FormData(n)}else if(Eb(n)||zb(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(r=g?Ln(g,a):null,u=n.getAttribute("formmethod")||m.getAttribute("method")||Br,c=Gf(n.getAttribute("formenctype"))||Gf(m.getAttribute("enctype"))||qr,f=new FormData(m,n),!Rb()){let{name:d,type:p,value:v}=n;if(p==="image"){let x=d?`${d}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else d&&f.append(d,v)}}else{if(so(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Br,r=null,c=qr,h=n}return f&&c==="text/plain"&&(h=f,f=void 0),{action:r,method:u.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function zs(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Ub(n,a,u,r){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return u?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${r}`:c.pathname=`${c.pathname}.${r}`:c.pathname==="/"?c.pathname=`_root.${r}`:a&&Ln(c.pathname,a)==="/"?c.pathname=`${a.replace(/\/$/,"")}/_root.${r}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${r}`,c}async function jb(n,a){if(n.id in a)return a[n.id];try{let u=await import(n.module);return a[n.id]=u,u}catch(u){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hb(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 Yb(n,a,u){let r=await Promise.all(n.map(async c=>{let f=a.routes[c.route.id];if(f){let h=await jb(f,u);return h.links?h.links():[]}return[]}));return kb(r.flat(1).filter(Hb).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function mg(n,a,u,r,c,f){let h=(g,d)=>u[d]?g.route.id!==u[d].route.id:!0,m=(g,d)=>{var p;return u[d].pathname!==g.pathname||((p=u[d].route.path)==null?void 0:p.endsWith("*"))&&u[d].params["*"]!==g.params["*"]};return f==="assets"?a.filter((g,d)=>h(g,d)||m(g,d)):f==="data"?a.filter((g,d)=>{var v;let p=r.routes[g.route.id];if(!p||!p.hasLoader)return!1;if(h(g,d)||m(g,d))return!0;if(g.route.shouldRevalidate){let x=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=u[0])==null?void 0:v.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Lb(n,a,{includeHydrateFallback:u}={}){return Bb(n.map(r=>{let c=a.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),u&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function Bb(n){return[...new Set(n)]}function qb(n){let a={},u=Object.keys(n).sort();for(let r of u)a[r]=n[r];return a}function kb(n,a){let u=new Set;return new Set(a),n.reduce((r,c)=>{let f=JSON.stringify(qb(c));return u.has(f)||(u.add(f),r.push({key:f,link:c})),r},[])}function Dy(){let n=H.useContext(Ga);return zs(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Gb(){let n=H.useContext(fo);return zs(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ns=H.createContext(void 0);Ns.displayName="FrameworkContext";function Oy(){let n=H.useContext(Ns);return zs(n,"You must render this element inside a <HydratedRouter> element"),n}function Xb(n,a){let u=H.useContext(Ns),[r,c]=H.useState(!1),[f,h]=H.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:d,onMouseLeave:p,onTouchStart:v}=a,x=H.useRef(null);H.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let T=A=>{A.forEach(j=>{h(j.isIntersecting)})},S=new IntersectionObserver(T,{threshold:.5});return x.current&&S.observe(x.current),()=>{S.disconnect()}}},[n]),H.useEffect(()=>{if(r){let T=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(T)}}},[r]);let _=()=>{c(!0)},O=()=>{c(!1),h(!1)};return u?n!=="intent"?[f,x,{}]:[f,x,{onFocus:Bi(m,_),onBlur:Bi(g,O),onMouseEnter:Bi(d,_),onMouseLeave:Bi(p,O),onTouchStart:Bi(v,_)}]:[!1,x,{}]}function Bi(n,a){return u=>{n&&n(u),u.defaultPrevented||a(u)}}function Vb({page:n,...a}){let{router:u}=Dy(),r=H.useMemo(()=>py(u.routes,n,u.basename),[u.routes,n,u.basename]);return r?H.createElement(Zb,{page:n,matches:r,...a}):null}function Qb(n){let{manifest:a,routeModules:u}=Oy(),[r,c]=H.useState([]);return H.useEffect(()=>{let f=!1;return Yb(n,a,u).then(h=>{f||c(h)}),()=>{f=!0}},[n,a,u]),r}function Zb({page:n,matches:a,...u}){let r=Vl(),{future:c,manifest:f,routeModules:h}=Oy(),{basename:m}=Dy(),{loaderData:g,matches:d}=Gb(),p=H.useMemo(()=>mg(n,a,d,f,r,"data"),[n,a,d,f,r]),v=H.useMemo(()=>mg(n,a,d,f,r,"assets"),[n,a,d,f,r]),x=H.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let T=new Set,S=!1;if(a.forEach(j=>{var N;let U=f.routes[j.route.id];!U||!U.hasLoader||(!p.some($=>$.route.id===j.route.id)&&j.route.id in g&&((N=h[j.route.id])!=null&&N.shouldRevalidate)||U.hasClientLoader?S=!0:T.add(j.route.id))}),T.size===0)return[];let A=Ub(n,m,c.unstable_trailingSlashAwareDataRequests,"data");return S&&T.size>0&&A.searchParams.set("_routes",a.filter(j=>T.has(j.route.id)).map(j=>j.route.id).join(",")),[A.pathname+A.search]},[m,c.unstable_trailingSlashAwareDataRequests,g,r,f,p,a,n,h]),_=H.useMemo(()=>Lb(v,f),[v,f]),O=Qb(v);return H.createElement(H.Fragment,null,x.map(T=>H.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...u})),_.map(T=>H.createElement("link",{key:T,rel:"modulepreload",href:T,...u})),O.map(({key:T,link:S})=>H.createElement("link",{key:T,nonce:u.nonce,...S,crossOrigin:S.crossOrigin??u.crossOrigin})))}function Kb(...n){return a=>{n.forEach(u=>{typeof u=="function"?u(a):u!=null&&(u.current=a)})}}var $b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$b&&(window.__reactRouterVersion="7.13.0")}catch{}function Jb({basename:n,children:a,unstable_useTransitions:u,window:r}){let c=H.useRef();c.current==null&&(c.current=Tx({window:r,v5Compat:!0}));let f=c.current,[h,m]=H.useState({action:f.action,location:f.location}),g=H.useCallback(d=>{u===!1?m(d):H.startTransition(()=>m(d))},[u]);return H.useLayoutEffect(()=>f.listen(g),[f,g]),H.createElement(Mb,{basename:n,children:a,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:u})}var Uy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jy=H.forwardRef(function({onClick:a,discover:u="render",prefetch:r="none",relative:c,reloadDocument:f,replace:h,state:m,target:g,to:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:x,..._},O){let{basename:T,unstable_useTransitions:S}=H.useContext($e),A=typeof d=="string"&&Uy.test(d),j=wy(d,T);d=j.to;let U=ib(d,{relative:c}),[N,$,R]=Xb(r,_),V=Ib(d,{replace:h,state:m,target:g,preventScrollReset:p,relative:c,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:S});function tt(rt){a&&a(rt),rt.defaultPrevented||V(rt)}let ut=H.createElement("a",{..._,...R,href:j.absoluteURL||U,onClick:j.isExternal||f?a:tt,ref:Kb(O,$),target:g,"data-discover":!A&&u==="render"?"true":void 0});return N&&!A?H.createElement(H.Fragment,null,ut,H.createElement(Vb,{page:U})):ut});jy.displayName="Link";var Hy=H.forwardRef(function({"aria-current":a="page",caseSensitive:u=!1,className:r="",end:c=!1,style:f,to:h,viewTransition:m,children:g,...d},p){let v=uu(h,{relative:d.relative}),x=Vl(),_=H.useContext(fo),{navigator:O,basename:T}=H.useContext($e),S=_!=null&&l2(v)&&m===!0,A=O.encodeLocation?O.encodeLocation(v).pathname:v.pathname,j=x.pathname,U=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;u||(j=j.toLowerCase(),U=U?U.toLowerCase():null,A=A.toLowerCase()),U&&T&&(U=Ln(U,T)||U);const N=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let $=j===A||!c&&j.startsWith(A)&&j.charAt(N)==="/",R=U!=null&&(U===A||!c&&U.startsWith(A)&&U.charAt(A.length)==="/"),V={isActive:$,isPending:R,isTransitioning:S},tt=$?a:void 0,ut;typeof r=="function"?ut=r(V):ut=[r,$?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let rt=typeof f=="function"?f(V):f;return H.createElement(jy,{...d,"aria-current":tt,className:ut,ref:p,style:rt,to:h,viewTransition:m},typeof g=="function"?g(V):g)});Hy.displayName="NavLink";var Fb=H.forwardRef(({discover:n="render",fetcherKey:a,navigate:u,reloadDocument:r,replace:c,state:f,method:h=Br,action:m,onSubmit:g,relative:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:x,..._},O)=>{let{unstable_useTransitions:T}=H.useContext($e),S=e2(),A=n2(m,{relative:d}),j=h.toLowerCase()==="get"?"get":"post",U=typeof m=="string"&&Uy.test(m),N=$=>{if(g&&g($),$.defaultPrevented)return;$.preventDefault();let R=$.nativeEvent.submitter,V=(R==null?void 0:R.getAttribute("formmethod"))||h,tt=()=>S(R||$.currentTarget,{fetcherKey:a,method:V,navigate:u,replace:c,state:f,relative:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:x});T&&u!==!1?H.startTransition(()=>tt()):tt()};return H.createElement("form",{ref:O,method:j,action:A,onSubmit:r?g:N,..._,"data-discover":!U&&n==="render"?"true":void 0})});Fb.displayName="Form";function Wb(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yy(n){let a=H.useContext(Ga);return Xt(a,Wb(n)),a}function Ib(n,{target:a,replace:u,state:r,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:g}={}){let d=ub(),p=Vl(),v=uu(n,{relative:f});return H.useCallback(x=>{if(Cb(x,a)){x.preventDefault();let _=u!==void 0?u:Wi(p)===Wi(v),O=()=>d(n,{replace:_,state:r,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m});g?H.startTransition(()=>O()):O()}},[p,d,v,u,r,a,n,c,f,h,m,g])}var Pb=0,t2=()=>`__${String(++Pb)}__`;function e2(){let{router:n}=Yy("useSubmit"),{basename:a}=H.useContext($e),u=xb(),r=n.fetch,c=n.navigate;return H.useCallback(async(f,h={})=>{let{action:m,method:g,encType:d,formData:p,body:v}=Ob(f,a);if(h.navigate===!1){let x=h.fetcherKey||t2();await r(x,u,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:p,body:v,formMethod:h.method||g,formEncType:h.encType||d,flushSync:h.flushSync})}else await c(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:p,body:v,formMethod:h.method||g,formEncType:h.encType||d,replace:h.replace,state:h.state,fromRouteId:u,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,c,a,u])}function n2(n,{relative:a}={}){let{basename:u}=H.useContext($e),r=H.useContext(fn);Xt(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...uu(n||".",{relative:a})},h=Vl();if(n==null){f.search=h.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(p=>p==="")){m.delete("index"),g.filter(v=>v).forEach(v=>m.append("index",v));let p=m.toString();f.search=p?`?${p}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:Yn([u,f.pathname])),Wi(f)}function l2(n,{relative:a}={}){let u=H.useContext(Ty);Xt(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Yy("useViewTransitionState"),c=uu(n,{relative:a});if(!u.isTransitioning)return!1;let f=Ln(u.currentLocation.pathname,r)||u.currentLocation.pathname,h=Ln(u.nextLocation.pathname,r)||u.nextLocation.pathname;return Zr(c.pathname,h)!=null||Zr(c.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 a2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ly=(...n)=>n.filter((a,u,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===u).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 i2={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 u2=H.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:u=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:h,...m},g)=>H.createElement("svg",{ref:g,...i2,width:a,height:a,stroke:n,strokeWidth:r?Number(u)*24/Number(a):u,className:Ly("lucide",c),...m},[...h.map(([d,p])=>H.createElement(d,p)),...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 u=H.forwardRef(({className:r,...c},f)=>H.createElement(u2,{ref:f,iconNode:a,className:Ly(`lucide-${a2(n)}`,r),...c}));return u.displayName=`${n}`,u};/**
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 By=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"}]]);/**
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 r2=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"}]]);/**
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 o2=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 c2=he("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 f2=he("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 s2=he("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 h2=he("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
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 d2=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 m2=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 g2=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 y2=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 p2=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 v2=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 x2=he("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
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 qy=he("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
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 b2=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"}]]);/**
161
+ * @license lucide-react v0.469.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const _2=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function S2(){const[n,a]=H.useState(()=>typeof window>"u"?"dark":localStorage.getItem("causantic-theme")??"dark");H.useEffect(()=>{const r=document.documentElement;n==="light"?r.classList.add("light"):r.classList.remove("light"),localStorage.setItem("causantic-theme",n)},[n]);const u=H.useCallback(()=>{a(r=>r==="dark"?"light":"dark")},[]);return{theme:n,toggle:u}}function w2(){const{theme:n,toggle:a}=S2();return z.jsx("button",{onClick:a,className:"rounded-md p-2 hover:bg-muted transition-colors","aria-label":"Toggle theme",children:n==="dark"?z.jsx(b2,{className:"h-5 w-5"}):z.jsx(v2,{className:"h-5 w-5"})})}function ky(n){var a,u,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(a=0;a<c;a++)n[a]&&(u=ky(n[a]))&&(r&&(r+=" "),r+=u)}else for(u in n)n[u]&&(r&&(r+=" "),r+=u);return r}function Gy(){for(var n,a,u=0,r="",c=arguments.length;u<c;u++)(n=arguments[u])&&(a=ky(n))&&(r&&(r+=" "),r+=a);return r}const Cs="-",M2=n=>{const a=E2(n),{conflictingClassGroups:u,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:h=>{const m=h.split(Cs);return m[0]===""&&m.length!==1&&m.shift(),Xy(m,a)||T2(h)},getConflictingClassGroupIds:(h,m)=>{const g=u[h]||[];return m&&r[h]?[...g,...r[h]]:g}}},Xy=(n,a)=>{var h;if(n.length===0)return a.classGroupId;const u=n[0],r=a.nextPart.get(u),c=r?Xy(n.slice(1),r):void 0;if(c)return c;if(a.validators.length===0)return;const f=n.join(Cs);return(h=a.validators.find(({validator:m})=>m(f)))==null?void 0:h.classGroupId},gg=/^\[(.+)\]$/,T2=n=>{if(gg.test(n)){const a=gg.exec(n)[1],u=a==null?void 0:a.substring(0,a.indexOf(":"));if(u)return"arbitrary.."+u}},E2=n=>{const{theme:a,prefix:u}=n,r={nextPart:new Map,validators:[]};return z2(Object.entries(n.classGroups),u).forEach(([f,h])=>{rs(h,r,f,a)}),r},rs=(n,a,u,r)=>{n.forEach(c=>{if(typeof c=="string"){const f=c===""?a:yg(a,c);f.classGroupId=u;return}if(typeof c=="function"){if(A2(c)){rs(c(r),a,u,r);return}a.validators.push({validator:c,classGroupId:u});return}Object.entries(c).forEach(([f,h])=>{rs(h,yg(a,f),u,r)})})},yg=(n,a)=>{let u=n;return a.split(Cs).forEach(r=>{u.nextPart.has(r)||u.nextPart.set(r,{nextPart:new Map,validators:[]}),u=u.nextPart.get(r)}),u},A2=n=>n.isThemeGetter,z2=(n,a)=>a?n.map(([u,r])=>{const c=r.map(f=>typeof f=="string"?a+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([h,m])=>[a+h,m])):f);return[u,c]}):n,N2=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,u=new Map,r=new Map;const c=(f,h)=>{u.set(f,h),a++,a>n&&(a=0,r=u,u=new Map)};return{get(f){let h=u.get(f);if(h!==void 0)return h;if((h=r.get(f))!==void 0)return c(f,h),h},set(f,h){u.has(f)?u.set(f,h):c(f,h)}}},Vy="!",C2=n=>{const{separator:a,experimentalParseClassName:u}=n,r=a.length===1,c=a[0],f=a.length,h=m=>{const g=[];let d=0,p=0,v;for(let S=0;S<m.length;S++){let A=m[S];if(d===0){if(A===c&&(r||m.slice(S,S+f)===a)){g.push(m.slice(p,S)),p=S+f;continue}if(A==="/"){v=S;continue}}A==="["?d++:A==="]"&&d--}const x=g.length===0?m:m.substring(p),_=x.startsWith(Vy),O=_?x.substring(1):x,T=v&&v>p?v-p:void 0;return{modifiers:g,hasImportantModifier:_,baseClassName:O,maybePostfixModifierPosition:T}};return u?m=>u({className:m,parseClassName:h}):h},R2=n=>{if(n.length<=1)return n;const a=[];let u=[];return n.forEach(r=>{r[0]==="["?(a.push(...u.sort(),r),u=[]):u.push(r)}),a.push(...u.sort()),a},D2=n=>({cache:N2(n.cacheSize),parseClassName:C2(n),...M2(n)}),O2=/\s+/,U2=(n,a)=>{const{parseClassName:u,getClassGroupId:r,getConflictingClassGroupIds:c}=a,f=[],h=n.trim().split(O2);let m="";for(let g=h.length-1;g>=0;g-=1){const d=h[g],{modifiers:p,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:_}=u(d);let O=!!_,T=r(O?x.substring(0,_):x);if(!T){if(!O){m=d+(m.length>0?" "+m:m);continue}if(T=r(x),!T){m=d+(m.length>0?" "+m:m);continue}O=!1}const S=R2(p).join(":"),A=v?S+Vy:S,j=A+T;if(f.includes(j))continue;f.push(j);const U=c(T,O);for(let N=0;N<U.length;++N){const $=U[N];f.push(A+$)}m=d+(m.length>0?" "+m:m)}return m};function j2(){let n=0,a,u,r="";for(;n<arguments.length;)(a=arguments[n++])&&(u=Qy(a))&&(r&&(r+=" "),r+=u);return r}const Qy=n=>{if(typeof n=="string")return n;let a,u="";for(let r=0;r<n.length;r++)n[r]&&(a=Qy(n[r]))&&(u&&(u+=" "),u+=a);return u};function H2(n,...a){let u,r,c,f=h;function h(g){const d=a.reduce((p,v)=>v(p),n());return u=D2(d),r=u.cache.get,c=u.cache.set,f=m,m(g)}function m(g){const d=r(g);if(d)return d;const p=U2(g,u);return c(g,p),p}return function(){return f(j2.apply(null,arguments))}}const kt=n=>{const a=u=>u[n]||[];return a.isThemeGetter=!0,a},Zy=/^\[(?:([a-z-]+):)?(.+)\]$/i,Y2=/^\d+\/\d+$/,L2=new Set(["px","full","screen"]),B2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q2=/\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$/,k2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,G2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=n=>Oa(n)||L2.has(n)||Y2.test(n),dl=n=>Xa(n,"length",W2),Oa=n=>!!n&&!Number.isNaN(Number(n)),Xf=n=>Xa(n,"number",Oa),qi=n=>!!n&&Number.isInteger(Number(n)),V2=n=>n.endsWith("%")&&Oa(n.slice(0,-1)),bt=n=>Zy.test(n),ml=n=>B2.test(n),Q2=new Set(["length","size","percentage"]),Z2=n=>Xa(n,Q2,Ky),K2=n=>Xa(n,"position",Ky),$2=new Set(["image","url"]),J2=n=>Xa(n,$2,P2),F2=n=>Xa(n,"",I2),ki=()=>!0,Xa=(n,a,u)=>{const r=Zy.exec(n);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):u(r[2]):!1},W2=n=>q2.test(n)&&!k2.test(n),Ky=()=>!1,I2=n=>G2.test(n),P2=n=>X2.test(n),t_=()=>{const n=kt("colors"),a=kt("spacing"),u=kt("blur"),r=kt("brightness"),c=kt("borderColor"),f=kt("borderRadius"),h=kt("borderSpacing"),m=kt("borderWidth"),g=kt("contrast"),d=kt("grayscale"),p=kt("hueRotate"),v=kt("invert"),x=kt("gap"),_=kt("gradientColorStops"),O=kt("gradientColorStopPositions"),T=kt("inset"),S=kt("margin"),A=kt("opacity"),j=kt("padding"),U=kt("saturate"),N=kt("scale"),$=kt("sepia"),R=kt("skew"),V=kt("space"),tt=kt("translate"),ut=()=>["auto","contain","none"],rt=()=>["auto","hidden","clip","visible","scroll"],st=()=>["auto",bt,a],F=()=>[bt,a],mt=()=>["",Rn,dl],Y=()=>["auto",Oa,bt],et=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],k=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],at=()=>["","0",bt],nt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[Oa,bt];return{cacheSize:500,separator:":",theme:{colors:[ki],spacing:[Rn,dl],blur:["none","",ml,bt],brightness:w(),borderColor:[n],borderRadius:["none","","full",ml,bt],borderSpacing:F(),borderWidth:mt(),contrast:w(),grayscale:at(),hueRotate:w(),invert:at(),gap:F(),gradientColorStops:[n],gradientColorStopPositions:[V2,dl],inset:st(),margin:st(),opacity:w(),padding:F(),saturate:w(),scale:w(),sepia:at(),skew:w(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",bt]}],container:["container"],columns:[{columns:[ml]}],"break-after":[{"break-after":nt()}],"break-before":[{"break-before":nt()}],"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:[...et(),bt]}],overflow:[{overflow:rt()}],"overflow-x":[{"overflow-x":rt()}],"overflow-y":[{"overflow-y":rt()}],overscroll:[{overscroll:ut()}],"overscroll-x":[{"overscroll-x":ut()}],"overscroll-y":[{"overscroll-y":ut()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qi,bt]}],basis:[{basis:st()}],"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",qi,bt]}],"grid-cols":[{"grid-cols":[ki]}],"col-start-end":[{col:["auto",{span:["full",qi,bt]},bt]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[ki]}],"row-start-end":[{row:["auto",{span:[qi,bt]},bt]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"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",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"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,dl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xf]}],"font-family":[{font:[ki]}],"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",Oa,Xf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,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:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,dl]}],"underline-offset":[{"underline-offset":["auto",Rn,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:F()}],"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:[...et(),K2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Z2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},J2]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],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:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:E()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[Rn,bt]}],"outline-w":[{outline:[Rn,dl]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:mt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Rn,dl]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",ml,F2]}],"shadow-color":[{shadow:[ki]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...k(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k()}],filter:[{filter:["","none"]}],blur:[{blur:[u]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",ml,bt]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[v]}],saturate:[{saturate:[U]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[u]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[h]}],"border-spacing-x":[{"border-spacing-x":[h]}],"border-spacing-y":[{"border-spacing-y":[h]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",bt]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",bt]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",bt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[qi,bt]}],"translate-x":[{"translate-x":[tt]}],"translate-y":[{"translate-y":[tt]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"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":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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:[Rn,dl,Xf]}],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"]}}},e_=H2(t_);function tn(...n){return e_(Gy(n))}const n_=[{to:"/",icon:y2,label:"Overview"},{to:"/graph",icon:x2,label:"Graph Explorer"},{to:"/clusters",icon:By,label:"Clusters"},{to:"/search",icon:qy,label:"Search"},{to:"/projects",icon:d2,label:"Projects"}];function l_(){const[n,a]=H.useState(!1);return z.jsxs("div",{className:"flex h-screen overflow-hidden",children:[n&&z.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 lg:hidden",onClick:()=>a(!1)}),z.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:[z.jsxs("div",{className:"flex h-16 items-center gap-2 border-b border-border px-6",children:[z.jsx(r2,{className:"h-6 w-6 text-accent"}),z.jsx("span",{className:"text-lg font-bold",children:"Causantic"}),z.jsx("span",{className:"text-sm text-muted-foreground",children:"Dashboard"})]}),z.jsx("nav",{className:"flex-1 space-y-1 p-4",children:n_.map(u=>z.jsxs(Hy,{to:u.to,end:u.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:[z.jsx(u.icon,{className:"h-4 w-4"}),u.label]},u.to))}),z.jsx("div",{className:"border-t border-border p-4 text-xs text-muted-foreground",children:"Causantic"})]}),z.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[z.jsxs("header",{className:"flex h-16 items-center justify-between border-b border-border px-6",children:[z.jsx("button",{className:"rounded-md p-2 hover:bg-muted lg:hidden",onClick:()=>a(!0),children:z.jsx(p2,{className:"h-5 w-5"})}),z.jsx("div",{className:"flex-1"}),z.jsx(w2,{})]}),z.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:z.jsx(wb,{})})]})]})}const pg=new Map,a_=3e4;function pl(n){const[a,u]=H.useState(null),[r,c]=H.useState(!0),[f,h]=H.useState(null),m=H.useRef(null),g=H.useCallback(()=>{var v;if(!n){c(!1);return}const d=pg.get(n);if(d&&Date.now()-d.ts<a_){u(d.data),c(!1);return}(v=m.current)==null||v.abort();const p=new AbortController;m.current=p,c(!0),h(null),fetch(n,{signal:p.signal}).then(x=>{if(!x.ok)throw new Error(`HTTP ${x.status}`);return x.json()}).then(x=>{pg.set(n,{data:x,ts:Date.now()}),u(x),c(!1)}).catch(x=>{x.name!=="AbortError"&&(h(x.message),c(!1))})},[n]);return H.useEffect(()=>(g(),()=>{var d;return(d=m.current)==null?void 0:d.abort()}),[g]),{data:a,loading:r,error:f,refetch:g}}function ho({className:n}){return z.jsx("div",{className:tn("flex items-center justify-center p-8",n),children:z.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted border-t-accent"})})}function Ii({className:n,...a}){return z.jsx("div",{className:tn("rounded-lg border border-border bg-card text-card-foreground shadow-sm",n),...a})}function os({className:n,...a}){return z.jsx("div",{className:tn("flex flex-col space-y-1.5 p-6",n),...a})}function cs({className:n,...a}){return z.jsx("h3",{className:tn("text-lg font-semibold leading-none tracking-tight",n),...a})}function i_({className:n,...a}){return z.jsx("p",{className:tn("text-sm text-muted-foreground",n),...a})}function Pi({className:n,...a}){return z.jsx("div",{className:tn("p-6 pt-0",n),...a})}function Nr({label:n,value:a,icon:u}){const[r,c]=H.useState(0);return H.useEffect(()=>{if(a===0)return;const f=600,h=30,m=a/h;let g=0;const d=setInterval(()=>{g+=m,g>=a?(c(a),clearInterval(d)):c(Math.floor(g))},f/h);return()=>clearInterval(d)},[a]),z.jsx(Ii,{children:z.jsxs(Pi,{className:"flex items-center gap-4 p-6",children:[z.jsx("div",{className:"rounded-lg bg-accent/10 p-3 text-accent",children:u}),z.jsxs("div",{children:[z.jsx("p",{className:"text-sm text-muted-foreground",children:n}),z.jsx("p",{className:"text-3xl font-bold tabular-nums",children:r.toLocaleString()})]})]})})}function kr(n,a){return n==null||a==null?NaN:n<a?-1:n>a?1:n>=a?0:NaN}function u_(n,a){return n==null||a==null?NaN:a<n?-1:a>n?1:a>=n?0:NaN}function Rs(n){let a,u,r;n.length!==2?(a=kr,u=(m,g)=>kr(n(m),g),r=(m,g)=>n(m)-g):(a=n===kr||n===u_?n:r_,u=n,r=n);function c(m,g,d=0,p=m.length){if(d<p){if(a(g,g)!==0)return p;do{const v=d+p>>>1;u(m[v],g)<0?d=v+1:p=v}while(d<p)}return d}function f(m,g,d=0,p=m.length){if(d<p){if(a(g,g)!==0)return p;do{const v=d+p>>>1;u(m[v],g)<=0?d=v+1:p=v}while(d<p)}return d}function h(m,g,d=0,p=m.length){const v=c(m,g,d,p-1);return v>d&&r(m[v-1],g)>-r(m[v],g)?v-1:v}return{left:c,center:h,right:f}}function r_(){return 0}function o_(n){return n===null?NaN:+n}const c_=Rs(kr),f_=c_.right;Rs(o_).center;function s_(n,a){let u,r;if(a===void 0)for(const c of n)c!=null&&(u===void 0?c>=c&&(u=r=c):(u>c&&(u=c),r<c&&(r=c)));else{let c=-1;for(let f of n)(f=a(f,++c,n))!=null&&(u===void 0?f>=f&&(u=r=f):(u>f&&(u=f),r<f&&(r=f)))}return[u,r]}const h_=Math.sqrt(50),d_=Math.sqrt(10),m_=Math.sqrt(2);function Kr(n,a,u){const r=(a-n)/Math.max(0,u),c=Math.floor(Math.log10(r)),f=r/Math.pow(10,c),h=f>=h_?10:f>=d_?5:f>=m_?2:1;let m,g,d;return c<0?(d=Math.pow(10,-c)/h,m=Math.round(n*d),g=Math.round(a*d),m/d<n&&++m,g/d>a&&--g,d=-d):(d=Math.pow(10,c)*h,m=Math.round(n/d),g=Math.round(a/d),m*d<n&&++m,g*d>a&&--g),g<m&&.5<=u&&u<2?Kr(n,a,u*2):[m,g,d]}function g_(n,a,u){if(a=+a,n=+n,u=+u,!(u>0))return[];if(n===a)return[n];const r=a<n,[c,f,h]=r?Kr(a,n,u):Kr(n,a,u);if(!(f>=c))return[];const m=f-c+1,g=new Array(m);if(r)if(h<0)for(let d=0;d<m;++d)g[d]=(f-d)/-h;else for(let d=0;d<m;++d)g[d]=(f-d)*h;else if(h<0)for(let d=0;d<m;++d)g[d]=(c+d)/-h;else for(let d=0;d<m;++d)g[d]=(c+d)*h;return g}function fs(n,a,u){return a=+a,n=+n,u=+u,Kr(n,a,u)[2]}function ss(n,a,u){a=+a,n=+n,u=+u;const r=a<n,c=r?fs(a,n,u):fs(n,a,u);return(r?-1:1)*(c<0?1/-c:c)}function y_(n,a){let u;if(a===void 0)for(const r of n)r!=null&&(u<r||u===void 0&&r>=r)&&(u=r);else{let r=-1;for(let c of n)(c=a(c,++r,n))!=null&&(u<c||u===void 0&&c>=c)&&(u=c)}return u}function p_(n,a,u){n=+n,a=+a,u=(c=arguments.length)<2?(a=n,n=0,1):c<3?1:+u;for(var r=-1,c=Math.max(0,Math.ceil((a-n)/u))|0,f=new Array(c);++r<c;)f[r]=n+r*u;return f}function v_(n){return n}var Vf=1,Qf=2,hs=3,Ki=4,vg=1e-6;function x_(n){return"translate("+n+",0)"}function b_(n){return"translate(0,"+n+")"}function __(n){return a=>+n(a)}function S_(n,a){return a=Math.max(0,n.bandwidth()-a*2)/2,n.round()&&(a=Math.round(a)),u=>+n(u)+a}function w_(){return!this.__axis}function $y(n,a){var u=[],r=null,c=null,f=6,h=6,m=3,g=typeof window<"u"&&window.devicePixelRatio>1?0:.5,d=n===Vf||n===Ki?-1:1,p=n===Ki||n===Qf?"x":"y",v=n===Vf||n===hs?x_:b_;function x(_){var O=r??(a.ticks?a.ticks.apply(a,u):a.domain()),T=c??(a.tickFormat?a.tickFormat.apply(a,u):v_),S=Math.max(f,0)+m,A=a.range(),j=+A[0]+g,U=+A[A.length-1]+g,N=(a.bandwidth?S_:__)(a.copy(),g),$=_.selection?_.selection():_,R=$.selectAll(".domain").data([null]),V=$.selectAll(".tick").data(O,a).order(),tt=V.exit(),ut=V.enter().append("g").attr("class","tick"),rt=V.select("line"),st=V.select("text");R=R.merge(R.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),V=V.merge(ut),rt=rt.merge(ut.append("line").attr("stroke","currentColor").attr(p+"2",d*f)),st=st.merge(ut.append("text").attr("fill","currentColor").attr(p,d*S).attr("dy",n===Vf?"0em":n===hs?"0.71em":"0.32em")),_!==$&&(R=R.transition(_),V=V.transition(_),rt=rt.transition(_),st=st.transition(_),tt=tt.transition(_).attr("opacity",vg).attr("transform",function(F){return isFinite(F=N(F))?v(F+g):this.getAttribute("transform")}),ut.attr("opacity",vg).attr("transform",function(F){var mt=this.parentNode.__axis;return v((mt&&isFinite(mt=mt(F))?mt:N(F))+g)})),tt.remove(),R.attr("d",n===Ki||n===Qf?h?"M"+d*h+","+j+"H"+g+"V"+U+"H"+d*h:"M"+g+","+j+"V"+U:h?"M"+j+","+d*h+"V"+g+"H"+U+"V"+d*h:"M"+j+","+g+"H"+U),V.attr("opacity",1).attr("transform",function(F){return v(N(F)+g)}),rt.attr(p+"2",d*f),st.attr(p,d*S).text(T),$.filter(w_).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===Qf?"start":n===Ki?"end":"middle"),$.each(function(){this.__axis=N})}return x.scale=function(_){return arguments.length?(a=_,x):a},x.ticks=function(){return u=Array.from(arguments),x},x.tickArguments=function(_){return arguments.length?(u=_==null?[]:Array.from(_),x):u.slice()},x.tickValues=function(_){return arguments.length?(r=_==null?null:Array.from(_),x):r&&r.slice()},x.tickFormat=function(_){return arguments.length?(c=_,x):c},x.tickSize=function(_){return arguments.length?(f=h=+_,x):f},x.tickSizeInner=function(_){return arguments.length?(f=+_,x):f},x.tickSizeOuter=function(_){return arguments.length?(h=+_,x):h},x.tickPadding=function(_){return arguments.length?(m=+_,x):m},x.offset=function(_){return arguments.length?(g=+_,x):g},x}function Jy(n){return $y(hs,n)}function Fy(n){return $y(Ki,n)}var M_={value:()=>{}};function ru(){for(var n=0,a=arguments.length,u={},r;n<a;++n){if(!(r=arguments[n]+"")||r in u||/[\s.]/.test(r))throw new Error("illegal type: "+r);u[r]=[]}return new Gr(u)}function Gr(n){this._=n}function T_(n,a){return n.trim().split(/^|\s+/).map(function(u){var r="",c=u.indexOf(".");if(c>=0&&(r=u.slice(c+1),u=u.slice(0,c)),u&&!a.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:r}})}Gr.prototype=ru.prototype={constructor:Gr,on:function(n,a){var u=this._,r=T_(n+"",u),c,f=-1,h=r.length;if(arguments.length<2){for(;++f<h;)if((c=(n=r[f]).type)&&(c=E_(u[c],n.name)))return c;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++f<h;)if(c=(n=r[f]).type)u[c]=xg(u[c],n.name,a);else if(a==null)for(c in u)u[c]=xg(u[c],n.name,null);return this},copy:function(){var n={},a=this._;for(var u in a)n[u]=a[u].slice();return new Gr(n)},call:function(n,a){if((c=arguments.length-2)>0)for(var u=new Array(c),r=0,c,f;r<c;++r)u[r]=arguments[r+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(f=this._[n],r=0,c=f.length;r<c;++r)f[r].value.apply(a,u)},apply:function(n,a,u){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var r=this._[n],c=0,f=r.length;c<f;++c)r[c].value.apply(a,u)}};function E_(n,a){for(var u=0,r=n.length,c;u<r;++u)if((c=n[u]).name===a)return c.value}function xg(n,a,u){for(var r=0,c=n.length;r<c;++r)if(n[r].name===a){n[r]=M_,n=n.slice(0,r).concat(n.slice(r+1));break}return u!=null&&n.push({name:a,value:u}),n}var ds="http://www.w3.org/1999/xhtml";const bg={svg:"http://www.w3.org/2000/svg",xhtml:ds,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mo(n){var a=n+="",u=a.indexOf(":");return u>=0&&(a=n.slice(0,u))!=="xmlns"&&(n=n.slice(u+1)),bg.hasOwnProperty(a)?{space:bg[a],local:n}:n}function A_(n){return function(){var a=this.ownerDocument,u=this.namespaceURI;return u===ds&&a.documentElement.namespaceURI===ds?a.createElement(n):a.createElementNS(u,n)}}function z_(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Wy(n){var a=mo(n);return(a.local?z_:A_)(a)}function N_(){}function Ds(n){return n==null?N_:function(){return this.querySelector(n)}}function C_(n){typeof n!="function"&&(n=Ds(n));for(var a=this._groups,u=a.length,r=new Array(u),c=0;c<u;++c)for(var f=a[c],h=f.length,m=r[c]=new Array(h),g,d,p=0;p<h;++p)(g=f[p])&&(d=n.call(g,g.__data__,p,f))&&("__data__"in g&&(d.__data__=g.__data__),m[p]=d);return new He(r,this._parents)}function R_(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function D_(){return[]}function Iy(n){return n==null?D_:function(){return this.querySelectorAll(n)}}function O_(n){return function(){return R_(n.apply(this,arguments))}}function U_(n){typeof n=="function"?n=O_(n):n=Iy(n);for(var a=this._groups,u=a.length,r=[],c=[],f=0;f<u;++f)for(var h=a[f],m=h.length,g,d=0;d<m;++d)(g=h[d])&&(r.push(n.call(g,g.__data__,d,h)),c.push(g));return new He(r,c)}function Py(n){return function(){return this.matches(n)}}function tp(n){return function(a){return a.matches(n)}}var j_=Array.prototype.find;function H_(n){return function(){return j_.call(this.children,n)}}function Y_(){return this.firstElementChild}function L_(n){return this.select(n==null?Y_:H_(typeof n=="function"?n:tp(n)))}var B_=Array.prototype.filter;function q_(){return Array.from(this.children)}function k_(n){return function(){return B_.call(this.children,n)}}function G_(n){return this.selectAll(n==null?q_:k_(typeof n=="function"?n:tp(n)))}function X_(n){typeof n!="function"&&(n=Py(n));for(var a=this._groups,u=a.length,r=new Array(u),c=0;c<u;++c)for(var f=a[c],h=f.length,m=r[c]=[],g,d=0;d<h;++d)(g=f[d])&&n.call(g,g.__data__,d,f)&&m.push(g);return new He(r,this._parents)}function ep(n){return new Array(n.length)}function V_(){return new He(this._enter||this._groups.map(ep),this._parents)}function $r(n,a){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=a}$r.prototype={constructor:$r,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 Q_(n){return function(){return n}}function Z_(n,a,u,r,c,f){for(var h=0,m,g=a.length,d=f.length;h<d;++h)(m=a[h])?(m.__data__=f[h],r[h]=m):u[h]=new $r(n,f[h]);for(;h<g;++h)(m=a[h])&&(c[h]=m)}function K_(n,a,u,r,c,f,h){var m,g,d=new Map,p=a.length,v=f.length,x=new Array(p),_;for(m=0;m<p;++m)(g=a[m])&&(x[m]=_=h.call(g,g.__data__,m,a)+"",d.has(_)?c[m]=g:d.set(_,g));for(m=0;m<v;++m)_=h.call(n,f[m],m,f)+"",(g=d.get(_))?(r[m]=g,g.__data__=f[m],d.delete(_)):u[m]=new $r(n,f[m]);for(m=0;m<p;++m)(g=a[m])&&d.get(x[m])===g&&(c[m]=g)}function $_(n){return n.__data__}function J_(n,a){if(!arguments.length)return Array.from(this,$_);var u=a?K_:Z_,r=this._parents,c=this._groups;typeof n!="function"&&(n=Q_(n));for(var f=c.length,h=new Array(f),m=new Array(f),g=new Array(f),d=0;d<f;++d){var p=r[d],v=c[d],x=v.length,_=F_(n.call(p,p&&p.__data__,d,r)),O=_.length,T=m[d]=new Array(O),S=h[d]=new Array(O),A=g[d]=new Array(x);u(p,v,T,S,A,_,a);for(var j=0,U=0,N,$;j<O;++j)if(N=T[j]){for(j>=U&&(U=j+1);!($=S[U])&&++U<O;);N._next=$||null}}return h=new He(h,r),h._enter=m,h._exit=g,h}function F_(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function W_(){return new He(this._exit||this._groups.map(ep),this._parents)}function I_(n,a,u){var r=this.enter(),c=this,f=this.exit();return typeof n=="function"?(r=n(r),r&&(r=r.selection())):r=r.append(n+""),a!=null&&(c=a(c),c&&(c=c.selection())),u==null?f.remove():u(f),r&&c?r.merge(c).order():c}function P_(n){for(var a=n.selection?n.selection():n,u=this._groups,r=a._groups,c=u.length,f=r.length,h=Math.min(c,f),m=new Array(c),g=0;g<h;++g)for(var d=u[g],p=r[g],v=d.length,x=m[g]=new Array(v),_,O=0;O<v;++O)(_=d[O]||p[O])&&(x[O]=_);for(;g<c;++g)m[g]=u[g];return new He(m,this._parents)}function tS(){for(var n=this._groups,a=-1,u=n.length;++a<u;)for(var r=n[a],c=r.length-1,f=r[c],h;--c>=0;)(h=r[c])&&(f&&h.compareDocumentPosition(f)^4&&f.parentNode.insertBefore(h,f),f=h);return this}function eS(n){n||(n=nS);function a(v,x){return v&&x?n(v.__data__,x.__data__):!v-!x}for(var u=this._groups,r=u.length,c=new Array(r),f=0;f<r;++f){for(var h=u[f],m=h.length,g=c[f]=new Array(m),d,p=0;p<m;++p)(d=h[p])&&(g[p]=d);g.sort(a)}return new He(c,this._parents).order()}function nS(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}function lS(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function aS(){return Array.from(this)}function iS(){for(var n=this._groups,a=0,u=n.length;a<u;++a)for(var r=n[a],c=0,f=r.length;c<f;++c){var h=r[c];if(h)return h}return null}function uS(){let n=0;for(const a of this)++n;return n}function rS(){return!this.node()}function oS(n){for(var a=this._groups,u=0,r=a.length;u<r;++u)for(var c=a[u],f=0,h=c.length,m;f<h;++f)(m=c[f])&&n.call(m,m.__data__,f,c);return this}function cS(n){return function(){this.removeAttribute(n)}}function fS(n){return function(){this.removeAttributeNS(n.space,n.local)}}function sS(n,a){return function(){this.setAttribute(n,a)}}function hS(n,a){return function(){this.setAttributeNS(n.space,n.local,a)}}function dS(n,a){return function(){var u=a.apply(this,arguments);u==null?this.removeAttribute(n):this.setAttribute(n,u)}}function mS(n,a){return function(){var u=a.apply(this,arguments);u==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,u)}}function gS(n,a){var u=mo(n);if(arguments.length<2){var r=this.node();return u.local?r.getAttributeNS(u.space,u.local):r.getAttribute(u)}return this.each((a==null?u.local?fS:cS:typeof a=="function"?u.local?mS:dS:u.local?hS:sS)(u,a))}function np(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function yS(n){return function(){this.style.removeProperty(n)}}function pS(n,a,u){return function(){this.style.setProperty(n,a,u)}}function vS(n,a,u){return function(){var r=a.apply(this,arguments);r==null?this.style.removeProperty(n):this.style.setProperty(n,r,u)}}function xS(n,a,u){return arguments.length>1?this.each((a==null?yS:typeof a=="function"?vS:pS)(n,a,u??"")):Ha(this.node(),n)}function Ha(n,a){return n.style.getPropertyValue(a)||np(n).getComputedStyle(n,null).getPropertyValue(a)}function bS(n){return function(){delete this[n]}}function _S(n,a){return function(){this[n]=a}}function SS(n,a){return function(){var u=a.apply(this,arguments);u==null?delete this[n]:this[n]=u}}function wS(n,a){return arguments.length>1?this.each((a==null?bS:typeof a=="function"?SS:_S)(n,a)):this.node()[n]}function lp(n){return n.trim().split(/^|\s+/)}function Os(n){return n.classList||new ap(n)}function ap(n){this._node=n,this._names=lp(n.getAttribute("class")||"")}ap.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 ip(n,a){for(var u=Os(n),r=-1,c=a.length;++r<c;)u.add(a[r])}function up(n,a){for(var u=Os(n),r=-1,c=a.length;++r<c;)u.remove(a[r])}function MS(n){return function(){ip(this,n)}}function TS(n){return function(){up(this,n)}}function ES(n,a){return function(){(a.apply(this,arguments)?ip:up)(this,n)}}function AS(n,a){var u=lp(n+"");if(arguments.length<2){for(var r=Os(this.node()),c=-1,f=u.length;++c<f;)if(!r.contains(u[c]))return!1;return!0}return this.each((typeof a=="function"?ES:a?MS:TS)(u,a))}function zS(){this.textContent=""}function NS(n){return function(){this.textContent=n}}function CS(n){return function(){var a=n.apply(this,arguments);this.textContent=a??""}}function RS(n){return arguments.length?this.each(n==null?zS:(typeof n=="function"?CS:NS)(n)):this.node().textContent}function DS(){this.innerHTML=""}function OS(n){return function(){this.innerHTML=n}}function US(n){return function(){var a=n.apply(this,arguments);this.innerHTML=a??""}}function jS(n){return arguments.length?this.each(n==null?DS:(typeof n=="function"?US:OS)(n)):this.node().innerHTML}function HS(){this.nextSibling&&this.parentNode.appendChild(this)}function YS(){return this.each(HS)}function LS(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function BS(){return this.each(LS)}function qS(n){var a=typeof n=="function"?n:Wy(n);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function kS(){return null}function GS(n,a){var u=typeof n=="function"?n:Wy(n),r=a==null?kS:typeof a=="function"?a:Ds(a);return this.select(function(){return this.insertBefore(u.apply(this,arguments),r.apply(this,arguments)||null)})}function XS(){var n=this.parentNode;n&&n.removeChild(this)}function VS(){return this.each(XS)}function QS(){var n=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function ZS(){var n=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function KS(n){return this.select(n?ZS:QS)}function $S(n){return arguments.length?this.property("__data__",n):this.node().__data__}function JS(n){return function(a){n.call(this,a,this.__data__)}}function FS(n){return n.trim().split(/^|\s+/).map(function(a){var u="",r=a.indexOf(".");return r>=0&&(u=a.slice(r+1),a=a.slice(0,r)),{type:a,name:u}})}function WS(n){return function(){var a=this.__on;if(a){for(var u=0,r=-1,c=a.length,f;u<c;++u)f=a[u],(!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 IS(n,a,u){return function(){var r=this.__on,c,f=JS(a);if(r){for(var h=0,m=r.length;h<m;++h)if((c=r[h]).type===n.type&&c.name===n.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=f,c.options=u),c.value=a;return}}this.addEventListener(n.type,f,u),c={type:n.type,name:n.name,value:a,listener:f,options:u},r?r.push(c):this.__on=[c]}}function PS(n,a,u){var r=FS(n+""),c,f=r.length,h;if(arguments.length<2){var m=this.node().__on;if(m){for(var g=0,d=m.length,p;g<d;++g)for(c=0,p=m[g];c<f;++c)if((h=r[c]).type===p.type&&h.name===p.name)return p.value}return}for(m=a?IS:WS,c=0;c<f;++c)this.each(m(r[c],a,u));return this}function rp(n,a,u){var r=np(n),c=r.CustomEvent;typeof c=="function"?c=new c(a,u):(c=r.document.createEvent("Event"),u?(c.initEvent(a,u.bubbles,u.cancelable),c.detail=u.detail):c.initEvent(a,!1,!1)),n.dispatchEvent(c)}function tw(n,a){return function(){return rp(this,n,a)}}function ew(n,a){return function(){return rp(this,n,a.apply(this,arguments))}}function nw(n,a){return this.each((typeof a=="function"?ew:tw)(n,a))}function*lw(){for(var n=this._groups,a=0,u=n.length;a<u;++a)for(var r=n[a],c=0,f=r.length,h;c<f;++c)(h=r[c])&&(yield h)}var op=[null];function He(n,a){this._groups=n,this._parents=a}function ou(){return new He([[document.documentElement]],op)}function aw(){return this}He.prototype=ou.prototype={constructor:He,select:C_,selectAll:U_,selectChild:L_,selectChildren:G_,filter:X_,data:J_,enter:V_,exit:W_,join:I_,merge:P_,selection:aw,order:tS,sort:eS,call:lS,nodes:aS,node:iS,size:uS,empty:rS,each:oS,attr:gS,style:xS,property:wS,classed:AS,text:RS,html:jS,raise:YS,lower:BS,append:qS,insert:GS,remove:VS,clone:KS,datum:$S,on:PS,dispatch:nw,[Symbol.iterator]:lw};function je(n){return typeof n=="string"?new He([[document.querySelector(n)]],[document.documentElement]):new He([[n]],op)}function iw(n){let a;for(;a=n.sourceEvent;)n=a;return n}function On(n,a){if(n=iw(n),a===void 0&&(a=n.currentTarget),a){var u=a.ownerSVGElement||a;if(u.createSVGPoint){var r=u.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(a.getScreenCTM().inverse()),[r.x,r.y]}if(a.getBoundingClientRect){var c=a.getBoundingClientRect();return[n.clientX-c.left-a.clientLeft,n.clientY-c.top-a.clientTop]}}return[n.pageX,n.pageY]}const uw={passive:!1},tu={capture:!0,passive:!1};function Zf(n){n.stopImmediatePropagation()}function Ua(n){n.preventDefault(),n.stopImmediatePropagation()}function cp(n){var a=n.document.documentElement,u=je(n).on("dragstart.drag",Ua,tu);"onselectstart"in a?u.on("selectstart.drag",Ua,tu):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function fp(n,a){var u=n.document.documentElement,r=je(n).on("dragstart.drag",null);a&&(r.on("click.drag",Ua,tu),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in u?r.on("selectstart.drag",null):(u.style.MozUserSelect=u.__noselect,delete u.__noselect)}const Cr=n=>()=>n;function ms(n,{sourceEvent:a,subject:u,target:r,identifier:c,active:f,x:h,y:m,dx:g,dy:d,dispatch:p}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},subject:{value:u,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:c,enumerable:!0,configurable:!0},active:{value:f,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:m,enumerable:!0,configurable:!0},dx:{value:g,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:p}})}ms.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function rw(n){return!n.ctrlKey&&!n.button}function ow(){return this.parentNode}function cw(n,a){return a??{x:n.x,y:n.y}}function fw(){return navigator.maxTouchPoints||"ontouchstart"in this}function sw(){var n=rw,a=ow,u=cw,r=fw,c={},f=ru("start","drag","end"),h=0,m,g,d,p,v=0;function x(N){N.on("mousedown.drag",_).filter(r).on("touchstart.drag",S).on("touchmove.drag",A,uw).on("touchend.drag touchcancel.drag",j).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(N,$){if(!(p||!n.call(this,N,$))){var R=U(this,a.call(this,N,$),N,$,"mouse");R&&(je(N.view).on("mousemove.drag",O,tu).on("mouseup.drag",T,tu),cp(N.view),Zf(N),d=!1,m=N.clientX,g=N.clientY,R("start",N))}}function O(N){if(Ua(N),!d){var $=N.clientX-m,R=N.clientY-g;d=$*$+R*R>v}c.mouse("drag",N)}function T(N){je(N.view).on("mousemove.drag mouseup.drag",null),fp(N.view,d),Ua(N),c.mouse("end",N)}function S(N,$){if(n.call(this,N,$)){var R=N.changedTouches,V=a.call(this,N,$),tt=R.length,ut,rt;for(ut=0;ut<tt;++ut)(rt=U(this,V,N,$,R[ut].identifier,R[ut]))&&(Zf(N),rt("start",N,R[ut]))}}function A(N){var $=N.changedTouches,R=$.length,V,tt;for(V=0;V<R;++V)(tt=c[$[V].identifier])&&(Ua(N),tt("drag",N,$[V]))}function j(N){var $=N.changedTouches,R=$.length,V,tt;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),V=0;V<R;++V)(tt=c[$[V].identifier])&&(Zf(N),tt("end",N,$[V]))}function U(N,$,R,V,tt,ut){var rt=f.copy(),st=On(ut||R,$),F,mt,Y;if((Y=u.call(N,new ms("beforestart",{sourceEvent:R,target:x,identifier:tt,active:h,x:st[0],y:st[1],dx:0,dy:0,dispatch:rt}),V))!=null)return F=Y.x-st[0]||0,mt=Y.y-st[1]||0,function et(E,k,J){var at=st,nt;switch(E){case"start":c[tt]=et,nt=h++;break;case"end":delete c[tt],--h;case"drag":st=On(J||k,$),nt=h;break}rt.call(E,N,new ms(E,{sourceEvent:k,subject:Y,target:x,identifier:tt,active:nt,x:st[0]+F,y:st[1]+mt,dx:st[0]-at[0],dy:st[1]-at[1],dispatch:rt}),V)}}return x.filter=function(N){return arguments.length?(n=typeof N=="function"?N:Cr(!!N),x):n},x.container=function(N){return arguments.length?(a=typeof N=="function"?N:Cr(N),x):a},x.subject=function(N){return arguments.length?(u=typeof N=="function"?N:Cr(N),x):u},x.touchable=function(N){return arguments.length?(r=typeof N=="function"?N:Cr(!!N),x):r},x.on=function(){var N=f.on.apply(f,arguments);return N===f?x:N},x.clickDistance=function(N){return arguments.length?(v=(N=+N)*N,x):Math.sqrt(v)},x}function Us(n,a,u){n.prototype=a.prototype=u,u.constructor=n}function sp(n,a){var u=Object.create(n.prototype);for(var r in a)u[r]=a[r];return u}function cu(){}var eu=.7,Jr=1/eu,ja="\\s*([+-]?\\d+)\\s*",nu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",on="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hw=/^#([0-9a-f]{3,8})$/,dw=new RegExp(`^rgb\\(${ja},${ja},${ja}\\)$`),mw=new RegExp(`^rgb\\(${on},${on},${on}\\)$`),gw=new RegExp(`^rgba\\(${ja},${ja},${ja},${nu}\\)$`),yw=new RegExp(`^rgba\\(${on},${on},${on},${nu}\\)$`),pw=new RegExp(`^hsl\\(${nu},${on},${on}\\)$`),vw=new RegExp(`^hsla\\(${nu},${on},${on},${nu}\\)$`),_g={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};Us(cu,kl,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Sg,formatHex:Sg,formatHex8:xw,formatHsl:bw,formatRgb:wg,toString:wg});function Sg(){return this.rgb().formatHex()}function xw(){return this.rgb().formatHex8()}function bw(){return hp(this).formatHsl()}function wg(){return this.rgb().formatRgb()}function kl(n){var a,u;return n=(n+"").trim().toLowerCase(),(a=hw.exec(n))?(u=a[1].length,a=parseInt(a[1],16),u===6?Mg(a):u===3?new Me(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):u===8?Rr(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):u===4?Rr(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=dw.exec(n))?new Me(a[1],a[2],a[3],1):(a=mw.exec(n))?new Me(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=gw.exec(n))?Rr(a[1],a[2],a[3],a[4]):(a=yw.exec(n))?Rr(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=pw.exec(n))?Ag(a[1],a[2]/100,a[3]/100,1):(a=vw.exec(n))?Ag(a[1],a[2]/100,a[3]/100,a[4]):_g.hasOwnProperty(n)?Mg(_g[n]):n==="transparent"?new Me(NaN,NaN,NaN,0):null}function Mg(n){return new Me(n>>16&255,n>>8&255,n&255,1)}function Rr(n,a,u,r){return r<=0&&(n=a=u=NaN),new Me(n,a,u,r)}function _w(n){return n instanceof cu||(n=kl(n)),n?(n=n.rgb(),new Me(n.r,n.g,n.b,n.opacity)):new Me}function gs(n,a,u,r){return arguments.length===1?_w(n):new Me(n,a,u,r??1)}function Me(n,a,u,r){this.r=+n,this.g=+a,this.b=+u,this.opacity=+r}Us(Me,gs,sp(cu,{brighter(n){return n=n==null?Jr:Math.pow(Jr,n),new Me(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?eu:Math.pow(eu,n),new Me(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Me(Bl(this.r),Bl(this.g),Bl(this.b),Fr(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:Tg,formatHex:Tg,formatHex8:Sw,formatRgb:Eg,toString:Eg}));function Tg(){return`#${Ll(this.r)}${Ll(this.g)}${Ll(this.b)}`}function Sw(){return`#${Ll(this.r)}${Ll(this.g)}${Ll(this.b)}${Ll((isNaN(this.opacity)?1:this.opacity)*255)}`}function Eg(){const n=Fr(this.opacity);return`${n===1?"rgb(":"rgba("}${Bl(this.r)}, ${Bl(this.g)}, ${Bl(this.b)}${n===1?")":`, ${n})`}`}function Fr(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Bl(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Ll(n){return n=Bl(n),(n<16?"0":"")+n.toString(16)}function Ag(n,a,u,r){return r<=0?n=a=u=NaN:u<=0||u>=1?n=a=NaN:a<=0&&(n=NaN),new Pe(n,a,u,r)}function hp(n){if(n instanceof Pe)return new Pe(n.h,n.s,n.l,n.opacity);if(n instanceof cu||(n=kl(n)),!n)return new Pe;if(n instanceof Pe)return n;n=n.rgb();var a=n.r/255,u=n.g/255,r=n.b/255,c=Math.min(a,u,r),f=Math.max(a,u,r),h=NaN,m=f-c,g=(f+c)/2;return m?(a===f?h=(u-r)/m+(u<r)*6:u===f?h=(r-a)/m+2:h=(a-u)/m+4,m/=g<.5?f+c:2-f-c,h*=60):m=g>0&&g<1?0:h,new Pe(h,m,g,n.opacity)}function ww(n,a,u,r){return arguments.length===1?hp(n):new Pe(n,a,u,r??1)}function Pe(n,a,u,r){this.h=+n,this.s=+a,this.l=+u,this.opacity=+r}Us(Pe,ww,sp(cu,{brighter(n){return n=n==null?Jr:Math.pow(Jr,n),new Pe(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?eu:Math.pow(eu,n),new Pe(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,u=this.l,r=u+(u<.5?u:1-u)*a,c=2*u-r;return new Me(Kf(n>=240?n-240:n+120,c,r),Kf(n,c,r),Kf(n<120?n+240:n-120,c,r),this.opacity)},clamp(){return new Pe(zg(this.h),Dr(this.s),Dr(this.l),Fr(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=Fr(this.opacity);return`${n===1?"hsl(":"hsla("}${zg(this.h)}, ${Dr(this.s)*100}%, ${Dr(this.l)*100}%${n===1?")":`, ${n})`}`}}));function zg(n){return n=(n||0)%360,n<0?n+360:n}function Dr(n){return Math.max(0,Math.min(1,n||0))}function Kf(n,a,u){return(n<60?a+(u-a)*n/60:n<180?u:n<240?a+(u-a)*(240-n)/60:a)*255}const js=n=>()=>n;function Mw(n,a){return function(u){return n+u*a}}function Tw(n,a,u){return n=Math.pow(n,u),a=Math.pow(a,u)-n,u=1/u,function(r){return Math.pow(n+r*a,u)}}function Ew(n){return(n=+n)==1?dp:function(a,u){return u-a?Tw(a,u,n):js(isNaN(a)?u:a)}}function dp(n,a){var u=a-n;return u?Mw(n,u):js(isNaN(n)?a:n)}const Wr=(function n(a){var u=Ew(a);function r(c,f){var h=u((c=gs(c)).r,(f=gs(f)).r),m=u(c.g,f.g),g=u(c.b,f.b),d=dp(c.opacity,f.opacity);return function(p){return c.r=h(p),c.g=m(p),c.b=g(p),c.opacity=d(p),c+""}}return r.gamma=n,r})(1);function Aw(n,a){a||(a=[]);var u=n?Math.min(a.length,n.length):0,r=a.slice(),c;return function(f){for(c=0;c<u;++c)r[c]=n[c]*(1-f)+a[c]*f;return r}}function zw(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Nw(n,a){var u=a?a.length:0,r=n?Math.min(u,n.length):0,c=new Array(r),f=new Array(u),h;for(h=0;h<r;++h)c[h]=Hs(n[h],a[h]);for(;h<u;++h)f[h]=a[h];return function(m){for(h=0;h<r;++h)f[h]=c[h](m);return f}}function Cw(n,a){var u=new Date;return n=+n,a=+a,function(r){return u.setTime(n*(1-r)+a*r),u}}function Ie(n,a){return n=+n,a=+a,function(u){return n*(1-u)+a*u}}function Rw(n,a){var u={},r={},c;(n===null||typeof n!="object")&&(n={}),(a===null||typeof a!="object")&&(a={});for(c in a)c in n?u[c]=Hs(n[c],a[c]):r[c]=a[c];return function(f){for(c in u)r[c]=u[c](f);return r}}var ys=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$f=new RegExp(ys.source,"g");function Dw(n){return function(){return n}}function Ow(n){return function(a){return n(a)+""}}function mp(n,a){var u=ys.lastIndex=$f.lastIndex=0,r,c,f,h=-1,m=[],g=[];for(n=n+"",a=a+"";(r=ys.exec(n))&&(c=$f.exec(a));)(f=c.index)>u&&(f=a.slice(u,f),m[h]?m[h]+=f:m[++h]=f),(r=r[0])===(c=c[0])?m[h]?m[h]+=c:m[++h]=c:(m[++h]=null,g.push({i:h,x:Ie(r,c)})),u=$f.lastIndex;return u<a.length&&(f=a.slice(u),m[h]?m[h]+=f:m[++h]=f),m.length<2?g[0]?Ow(g[0].x):Dw(a):(a=g.length,function(d){for(var p=0,v;p<a;++p)m[(v=g[p]).i]=v.x(d);return m.join("")})}function Hs(n,a){var u=typeof a,r;return a==null||u==="boolean"?js(a):(u==="number"?Ie:u==="string"?(r=kl(a))?(a=r,Wr):mp:a instanceof kl?Wr:a instanceof Date?Cw:zw(a)?Aw:Array.isArray(a)?Nw:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?Rw:Ie)(n,a)}function Uw(n,a){return n=+n,a=+a,function(u){return Math.round(n*(1-u)+a*u)}}var Ng=180/Math.PI,ps={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function gp(n,a,u,r,c,f){var h,m,g;return(h=Math.sqrt(n*n+a*a))&&(n/=h,a/=h),(g=n*u+a*r)&&(u-=n*g,r-=a*g),(m=Math.sqrt(u*u+r*r))&&(u/=m,r/=m,g/=m),n*r<a*u&&(n=-n,a=-a,g=-g,h=-h),{translateX:c,translateY:f,rotate:Math.atan2(a,n)*Ng,skewX:Math.atan(g)*Ng,scaleX:h,scaleY:m}}var Or;function jw(n){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return a.isIdentity?ps:gp(a.a,a.b,a.c,a.d,a.e,a.f)}function Hw(n){return n==null||(Or||(Or=document.createElementNS("http://www.w3.org/2000/svg","g")),Or.setAttribute("transform",n),!(n=Or.transform.baseVal.consolidate()))?ps:(n=n.matrix,gp(n.a,n.b,n.c,n.d,n.e,n.f))}function yp(n,a,u,r){function c(d){return d.length?d.pop()+" ":""}function f(d,p,v,x,_,O){if(d!==v||p!==x){var T=_.push("translate(",null,a,null,u);O.push({i:T-4,x:Ie(d,v)},{i:T-2,x:Ie(p,x)})}else(v||x)&&_.push("translate("+v+a+x+u)}function h(d,p,v,x){d!==p?(d-p>180?p+=360:p-d>180&&(d+=360),x.push({i:v.push(c(v)+"rotate(",null,r)-2,x:Ie(d,p)})):p&&v.push(c(v)+"rotate("+p+r)}function m(d,p,v,x){d!==p?x.push({i:v.push(c(v)+"skewX(",null,r)-2,x:Ie(d,p)}):p&&v.push(c(v)+"skewX("+p+r)}function g(d,p,v,x,_,O){if(d!==v||p!==x){var T=_.push(c(_)+"scale(",null,",",null,")");O.push({i:T-4,x:Ie(d,v)},{i:T-2,x:Ie(p,x)})}else(v!==1||x!==1)&&_.push(c(_)+"scale("+v+","+x+")")}return function(d,p){var v=[],x=[];return d=n(d),p=n(p),f(d.translateX,d.translateY,p.translateX,p.translateY,v,x),h(d.rotate,p.rotate,v,x),m(d.skewX,p.skewX,v,x),g(d.scaleX,d.scaleY,p.scaleX,p.scaleY,v,x),d=p=null,function(_){for(var O=-1,T=x.length,S;++O<T;)v[(S=x[O]).i]=S.x(_);return v.join("")}}}var Yw=yp(jw,"px, ","px)","deg)"),Lw=yp(Hw,", ",")",")"),Bw=1e-12;function Cg(n){return((n=Math.exp(n))+1/n)/2}function qw(n){return((n=Math.exp(n))-1/n)/2}function kw(n){return((n=Math.exp(2*n))-1)/(n+1)}const Gw=(function n(a,u,r){function c(f,h){var m=f[0],g=f[1],d=f[2],p=h[0],v=h[1],x=h[2],_=p-m,O=v-g,T=_*_+O*O,S,A;if(T<Bw)A=Math.log(x/d)/a,S=function(V){return[m+V*_,g+V*O,d*Math.exp(a*V*A)]};else{var j=Math.sqrt(T),U=(x*x-d*d+r*T)/(2*d*u*j),N=(x*x-d*d-r*T)/(2*x*u*j),$=Math.log(Math.sqrt(U*U+1)-U),R=Math.log(Math.sqrt(N*N+1)-N);A=(R-$)/a,S=function(V){var tt=V*A,ut=Cg($),rt=d/(u*j)*(ut*kw(a*tt+$)-qw($));return[m+rt*_,g+rt*O,d*ut/Cg(a*tt+$)]}}return S.duration=A*1e3*a/Math.SQRT2,S}return c.rho=function(f){var h=Math.max(.001,+f),m=h*h,g=m*m;return n(h,m,g)},c})(Math.SQRT2,2,4);var Ya=0,$i=0,Gi=0,pp=1e3,Ir,Ji,Pr=0,Gl=0,go=0,lu=typeof performance=="object"&&performance.now?performance:Date,vp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function Ys(){return Gl||(vp(Xw),Gl=lu.now()+go)}function Xw(){Gl=0}function to(){this._call=this._time=this._next=null}to.prototype=Ls.prototype={constructor:to,restart:function(n,a,u){if(typeof n!="function")throw new TypeError("callback is not a function");u=(u==null?Ys():+u)+(a==null?0:+a),!this._next&&Ji!==this&&(Ji?Ji._next=this:Ir=this,Ji=this),this._call=n,this._time=u,vs()},stop:function(){this._call&&(this._call=null,this._time=1/0,vs())}};function Ls(n,a,u){var r=new to;return r.restart(n,a,u),r}function Vw(){Ys(),++Ya;for(var n=Ir,a;n;)(a=Gl-n._time)>=0&&n._call.call(void 0,a),n=n._next;--Ya}function Rg(){Gl=(Pr=lu.now())+go,Ya=$i=0;try{Vw()}finally{Ya=0,Zw(),Gl=0}}function Qw(){var n=lu.now(),a=n-Pr;a>pp&&(go-=a,Pr=n)}function Zw(){for(var n,a=Ir,u,r=1/0;a;)a._call?(r>a._time&&(r=a._time),n=a,a=a._next):(u=a._next,a._next=null,a=n?n._next=u:Ir=u);Ji=n,vs(r)}function vs(n){if(!Ya){$i&&($i=clearTimeout($i));var a=n-Gl;a>24?(n<1/0&&($i=setTimeout(Rg,n-lu.now()-go)),Gi&&(Gi=clearInterval(Gi))):(Gi||(Pr=lu.now(),Gi=setInterval(Qw,pp)),Ya=1,vp(Rg))}}function Dg(n,a,u){var r=new to;return a=a==null?0:+a,r.restart(c=>{r.stop(),n(c+a)},a,u),r}var Kw=ru("start","end","cancel","interrupt"),$w=[],xp=0,Og=1,xs=2,Xr=3,Ug=4,bs=5,Vr=6;function yo(n,a,u,r,c,f){var h=n.__transition;if(!h)n.__transition={};else if(u in h)return;Jw(n,u,{name:a,index:r,group:c,on:Kw,tween:$w,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:xp})}function Bs(n,a){var u=en(n,a);if(u.state>xp)throw new Error("too late; already scheduled");return u}function sn(n,a){var u=en(n,a);if(u.state>Xr)throw new Error("too late; already running");return u}function en(n,a){var u=n.__transition;if(!u||!(u=u[a]))throw new Error("transition not found");return u}function Jw(n,a,u){var r=n.__transition,c;r[a]=u,u.timer=Ls(f,0,u.time);function f(d){u.state=Og,u.timer.restart(h,u.delay,u.time),u.delay<=d&&h(d-u.delay)}function h(d){var p,v,x,_;if(u.state!==Og)return g();for(p in r)if(_=r[p],_.name===u.name){if(_.state===Xr)return Dg(h);_.state===Ug?(_.state=Vr,_.timer.stop(),_.on.call("interrupt",n,n.__data__,_.index,_.group),delete r[p]):+p<a&&(_.state=Vr,_.timer.stop(),_.on.call("cancel",n,n.__data__,_.index,_.group),delete r[p])}if(Dg(function(){u.state===Xr&&(u.state=Ug,u.timer.restart(m,u.delay,u.time),m(d))}),u.state=xs,u.on.call("start",n,n.__data__,u.index,u.group),u.state===xs){for(u.state=Xr,c=new Array(x=u.tween.length),p=0,v=-1;p<x;++p)(_=u.tween[p].value.call(n,n.__data__,u.index,u.group))&&(c[++v]=_);c.length=v+1}}function m(d){for(var p=d<u.duration?u.ease.call(null,d/u.duration):(u.timer.restart(g),u.state=bs,1),v=-1,x=c.length;++v<x;)c[v].call(n,p);u.state===bs&&(u.on.call("end",n,n.__data__,u.index,u.group),g())}function g(){u.state=Vr,u.timer.stop(),delete r[a];for(var d in r)return;delete n.__transition}}function Qr(n,a){var u=n.__transition,r,c,f=!0,h;if(u){a=a==null?null:a+"";for(h in u){if((r=u[h]).name!==a){f=!1;continue}c=r.state>xs&&r.state<bs,r.state=Vr,r.timer.stop(),r.on.call(c?"interrupt":"cancel",n,n.__data__,r.index,r.group),delete u[h]}f&&delete n.__transition}}function Fw(n){return this.each(function(){Qr(this,n)})}function Ww(n,a){var u,r;return function(){var c=sn(this,n),f=c.tween;if(f!==u){r=u=f;for(var h=0,m=r.length;h<m;++h)if(r[h].name===a){r=r.slice(),r.splice(h,1);break}}c.tween=r}}function Iw(n,a,u){var r,c;if(typeof u!="function")throw new Error;return function(){var f=sn(this,n),h=f.tween;if(h!==r){c=(r=h).slice();for(var m={name:a,value:u},g=0,d=c.length;g<d;++g)if(c[g].name===a){c[g]=m;break}g===d&&c.push(m)}f.tween=c}}function Pw(n,a){var u=this._id;if(n+="",arguments.length<2){for(var r=en(this.node(),u).tween,c=0,f=r.length,h;c<f;++c)if((h=r[c]).name===n)return h.value;return null}return this.each((a==null?Ww:Iw)(u,n,a))}function qs(n,a,u){var r=n._id;return n.each(function(){var c=sn(this,r);(c.value||(c.value={}))[a]=u.apply(this,arguments)}),function(c){return en(c,r).value[a]}}function bp(n,a){var u;return(typeof a=="number"?Ie:a instanceof kl?Wr:(u=kl(a))?(a=u,Wr):mp)(n,a)}function t3(n){return function(){this.removeAttribute(n)}}function e3(n){return function(){this.removeAttributeNS(n.space,n.local)}}function n3(n,a,u){var r,c=u+"",f;return function(){var h=this.getAttribute(n);return h===c?null:h===r?f:f=a(r=h,u)}}function l3(n,a,u){var r,c=u+"",f;return function(){var h=this.getAttributeNS(n.space,n.local);return h===c?null:h===r?f:f=a(r=h,u)}}function a3(n,a,u){var r,c,f;return function(){var h,m=u(this),g;return m==null?void this.removeAttribute(n):(h=this.getAttribute(n),g=m+"",h===g?null:h===r&&g===c?f:(c=g,f=a(r=h,m)))}}function i3(n,a,u){var r,c,f;return function(){var h,m=u(this),g;return m==null?void this.removeAttributeNS(n.space,n.local):(h=this.getAttributeNS(n.space,n.local),g=m+"",h===g?null:h===r&&g===c?f:(c=g,f=a(r=h,m)))}}function u3(n,a){var u=mo(n),r=u==="transform"?Lw:bp;return this.attrTween(n,typeof a=="function"?(u.local?i3:a3)(u,r,qs(this,"attr."+n,a)):a==null?(u.local?e3:t3)(u):(u.local?l3:n3)(u,r,a))}function r3(n,a){return function(u){this.setAttribute(n,a.call(this,u))}}function o3(n,a){return function(u){this.setAttributeNS(n.space,n.local,a.call(this,u))}}function c3(n,a){var u,r;function c(){var f=a.apply(this,arguments);return f!==r&&(u=(r=f)&&o3(n,f)),u}return c._value=a,c}function f3(n,a){var u,r;function c(){var f=a.apply(this,arguments);return f!==r&&(u=(r=f)&&r3(n,f)),u}return c._value=a,c}function s3(n,a){var u="attr."+n;if(arguments.length<2)return(u=this.tween(u))&&u._value;if(a==null)return this.tween(u,null);if(typeof a!="function")throw new Error;var r=mo(n);return this.tween(u,(r.local?c3:f3)(r,a))}function h3(n,a){return function(){Bs(this,n).delay=+a.apply(this,arguments)}}function d3(n,a){return a=+a,function(){Bs(this,n).delay=a}}function m3(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?h3:d3)(a,n)):en(this.node(),a).delay}function g3(n,a){return function(){sn(this,n).duration=+a.apply(this,arguments)}}function y3(n,a){return a=+a,function(){sn(this,n).duration=a}}function p3(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?g3:y3)(a,n)):en(this.node(),a).duration}function v3(n,a){if(typeof a!="function")throw new Error;return function(){sn(this,n).ease=a}}function x3(n){var a=this._id;return arguments.length?this.each(v3(a,n)):en(this.node(),a).ease}function b3(n,a){return function(){var u=a.apply(this,arguments);if(typeof u!="function")throw new Error;sn(this,n).ease=u}}function _3(n){if(typeof n!="function")throw new Error;return this.each(b3(this._id,n))}function S3(n){typeof n!="function"&&(n=Py(n));for(var a=this._groups,u=a.length,r=new Array(u),c=0;c<u;++c)for(var f=a[c],h=f.length,m=r[c]=[],g,d=0;d<h;++d)(g=f[d])&&n.call(g,g.__data__,d,f)&&m.push(g);return new Bn(r,this._parents,this._name,this._id)}function w3(n){if(n._id!==this._id)throw new Error;for(var a=this._groups,u=n._groups,r=a.length,c=u.length,f=Math.min(r,c),h=new Array(r),m=0;m<f;++m)for(var g=a[m],d=u[m],p=g.length,v=h[m]=new Array(p),x,_=0;_<p;++_)(x=g[_]||d[_])&&(v[_]=x);for(;m<r;++m)h[m]=a[m];return new Bn(h,this._parents,this._name,this._id)}function M3(n){return(n+"").trim().split(/^|\s+/).every(function(a){var u=a.indexOf(".");return u>=0&&(a=a.slice(0,u)),!a||a==="start"})}function T3(n,a,u){var r,c,f=M3(a)?Bs:sn;return function(){var h=f(this,n),m=h.on;m!==r&&(c=(r=m).copy()).on(a,u),h.on=c}}function E3(n,a){var u=this._id;return arguments.length<2?en(this.node(),u).on.on(n):this.each(T3(u,n,a))}function A3(n){return function(){var a=this.parentNode;for(var u in this.__transition)if(+u!==n)return;a&&a.removeChild(this)}}function z3(){return this.on("end.remove",A3(this._id))}function N3(n){var a=this._name,u=this._id;typeof n!="function"&&(n=Ds(n));for(var r=this._groups,c=r.length,f=new Array(c),h=0;h<c;++h)for(var m=r[h],g=m.length,d=f[h]=new Array(g),p,v,x=0;x<g;++x)(p=m[x])&&(v=n.call(p,p.__data__,x,m))&&("__data__"in p&&(v.__data__=p.__data__),d[x]=v,yo(d[x],a,u,x,d,en(p,u)));return new Bn(f,this._parents,a,u)}function C3(n){var a=this._name,u=this._id;typeof n!="function"&&(n=Iy(n));for(var r=this._groups,c=r.length,f=[],h=[],m=0;m<c;++m)for(var g=r[m],d=g.length,p,v=0;v<d;++v)if(p=g[v]){for(var x=n.call(p,p.__data__,v,g),_,O=en(p,u),T=0,S=x.length;T<S;++T)(_=x[T])&&yo(_,a,u,T,x,O);f.push(x),h.push(p)}return new Bn(f,h,a,u)}var R3=ou.prototype.constructor;function D3(){return new R3(this._groups,this._parents)}function O3(n,a){var u,r,c;return function(){var f=Ha(this,n),h=(this.style.removeProperty(n),Ha(this,n));return f===h?null:f===u&&h===r?c:c=a(u=f,r=h)}}function _p(n){return function(){this.style.removeProperty(n)}}function U3(n,a,u){var r,c=u+"",f;return function(){var h=Ha(this,n);return h===c?null:h===r?f:f=a(r=h,u)}}function j3(n,a,u){var r,c,f;return function(){var h=Ha(this,n),m=u(this),g=m+"";return m==null&&(g=m=(this.style.removeProperty(n),Ha(this,n))),h===g?null:h===r&&g===c?f:(c=g,f=a(r=h,m))}}function H3(n,a){var u,r,c,f="style."+a,h="end."+f,m;return function(){var g=sn(this,n),d=g.on,p=g.value[f]==null?m||(m=_p(a)):void 0;(d!==u||c!==p)&&(r=(u=d).copy()).on(h,c=p),g.on=r}}function Y3(n,a,u){var r=(n+="")=="transform"?Yw:bp;return a==null?this.styleTween(n,O3(n,r)).on("end.style."+n,_p(n)):typeof a=="function"?this.styleTween(n,j3(n,r,qs(this,"style."+n,a))).each(H3(this._id,n)):this.styleTween(n,U3(n,r,a),u).on("end.style."+n,null)}function L3(n,a,u){return function(r){this.style.setProperty(n,a.call(this,r),u)}}function B3(n,a,u){var r,c;function f(){var h=a.apply(this,arguments);return h!==c&&(r=(c=h)&&L3(n,h,u)),r}return f._value=a,f}function q3(n,a,u){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,B3(n,a,u??""))}function k3(n){return function(){this.textContent=n}}function G3(n){return function(){var a=n(this);this.textContent=a??""}}function X3(n){return this.tween("text",typeof n=="function"?G3(qs(this,"text",n)):k3(n==null?"":n+""))}function V3(n){return function(a){this.textContent=n.call(this,a)}}function Q3(n){var a,u;function r(){var c=n.apply(this,arguments);return c!==u&&(a=(u=c)&&V3(c)),a}return r._value=n,r}function Z3(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,Q3(n))}function K3(){for(var n=this._name,a=this._id,u=Sp(),r=this._groups,c=r.length,f=0;f<c;++f)for(var h=r[f],m=h.length,g,d=0;d<m;++d)if(g=h[d]){var p=en(g,a);yo(g,n,u,d,h,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new Bn(r,this._parents,n,u)}function $3(){var n,a,u=this,r=u._id,c=u.size();return new Promise(function(f,h){var m={value:h},g={value:function(){--c===0&&f()}};u.each(function(){var d=sn(this,r),p=d.on;p!==n&&(a=(n=p).copy(),a._.cancel.push(m),a._.interrupt.push(m),a._.end.push(g)),d.on=a}),c===0&&f()})}var J3=0;function Bn(n,a,u,r){this._groups=n,this._parents=a,this._name=u,this._id=r}function Sp(){return++J3}var Dn=ou.prototype;Bn.prototype={constructor:Bn,select:N3,selectAll:C3,selectChild:Dn.selectChild,selectChildren:Dn.selectChildren,filter:S3,merge:w3,selection:D3,transition:K3,call:Dn.call,nodes:Dn.nodes,node:Dn.node,size:Dn.size,empty:Dn.empty,each:Dn.each,on:E3,attr:u3,attrTween:s3,style:Y3,styleTween:q3,text:X3,textTween:Z3,remove:z3,tween:Pw,delay:m3,duration:p3,ease:x3,easeVarying:_3,end:$3,[Symbol.iterator]:Dn[Symbol.iterator]};function F3(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var W3={time:null,delay:0,duration:250,ease:F3};function I3(n,a){for(var u;!(u=n.__transition)||!(u=u[a]);)if(!(n=n.parentNode))throw new Error(`transition ${a} not found`);return u}function P3(n){var a,u;n instanceof Bn?(a=n._id,n=n._name):(a=Sp(),(u=W3).time=Ys(),n=n==null?null:n+"");for(var r=this._groups,c=r.length,f=0;f<c;++f)for(var h=r[f],m=h.length,g,d=0;d<m;++d)(g=h[d])&&yo(g,n,a,d,h,u||I3(g,a));return new Bn(r,this._parents,n,a)}ou.prototype.interrupt=Fw;ou.prototype.transition=P3;const _s=Math.PI,Ss=2*_s,Yl=1e-6,tM=Ss-Yl;function wp(n){this._+=n[0];for(let a=1,u=n.length;a<u;++a)this._+=arguments[a]+n[a]}function eM(n){let a=Math.floor(n);if(!(a>=0))throw new Error(`invalid digits: ${n}`);if(a>15)return wp;const u=10**a;return function(r){this._+=r[0];for(let c=1,f=r.length;c<f;++c)this._+=Math.round(arguments[c]*u)/u+r[c]}}class nM{constructor(a){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=a==null?wp:eM(a)}moveTo(a,u){this._append`M${this._x0=this._x1=+a},${this._y0=this._y1=+u}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(a,u){this._append`L${this._x1=+a},${this._y1=+u}`}quadraticCurveTo(a,u,r,c){this._append`Q${+a},${+u},${this._x1=+r},${this._y1=+c}`}bezierCurveTo(a,u,r,c,f,h){this._append`C${+a},${+u},${+r},${+c},${this._x1=+f},${this._y1=+h}`}arcTo(a,u,r,c,f){if(a=+a,u=+u,r=+r,c=+c,f=+f,f<0)throw new Error(`negative radius: ${f}`);let h=this._x1,m=this._y1,g=r-a,d=c-u,p=h-a,v=m-u,x=p*p+v*v;if(this._x1===null)this._append`M${this._x1=a},${this._y1=u}`;else if(x>Yl)if(!(Math.abs(v*g-d*p)>Yl)||!f)this._append`L${this._x1=a},${this._y1=u}`;else{let _=r-h,O=c-m,T=g*g+d*d,S=_*_+O*O,A=Math.sqrt(T),j=Math.sqrt(x),U=f*Math.tan((_s-Math.acos((T+x-S)/(2*A*j)))/2),N=U/j,$=U/A;Math.abs(N-1)>Yl&&this._append`L${a+N*p},${u+N*v}`,this._append`A${f},${f},0,0,${+(v*_>p*O)},${this._x1=a+$*g},${this._y1=u+$*d}`}}arc(a,u,r,c,f,h){if(a=+a,u=+u,r=+r,h=!!h,r<0)throw new Error(`negative radius: ${r}`);let m=r*Math.cos(c),g=r*Math.sin(c),d=a+m,p=u+g,v=1^h,x=h?c-f:f-c;this._x1===null?this._append`M${d},${p}`:(Math.abs(this._x1-d)>Yl||Math.abs(this._y1-p)>Yl)&&this._append`L${d},${p}`,r&&(x<0&&(x=x%Ss+Ss),x>tM?this._append`A${r},${r},0,1,${v},${a-m},${u-g}A${r},${r},0,1,${v},${this._x1=d},${this._y1=p}`:x>Yl&&this._append`A${r},${r},0,${+(x>=_s)},${v},${this._x1=a+r*Math.cos(f)},${this._y1=u+r*Math.sin(f)}`)}rect(a,u,r,c){this._append`M${this._x0=this._x1=+a},${this._y0=this._y1=+u}h${r=+r}v${+c}h${-r}Z`}toString(){return this._}}function lM(n,a){var u,r=1;n==null&&(n=0),a==null&&(a=0);function c(){var f,h=u.length,m,g=0,d=0;for(f=0;f<h;++f)m=u[f],g+=m.x,d+=m.y;for(g=(g/h-n)*r,d=(d/h-a)*r,f=0;f<h;++f)m=u[f],m.x-=g,m.y-=d}return c.initialize=function(f){u=f},c.x=function(f){return arguments.length?(n=+f,c):n},c.y=function(f){return arguments.length?(a=+f,c):a},c.strength=function(f){return arguments.length?(r=+f,c):r},c}function aM(n){const a=+this._x.call(null,n),u=+this._y.call(null,n);return Mp(this.cover(a,u),a,u,n)}function Mp(n,a,u,r){if(isNaN(a)||isNaN(u))return n;var c,f=n._root,h={data:r},m=n._x0,g=n._y0,d=n._x1,p=n._y1,v,x,_,O,T,S,A,j;if(!f)return n._root=h,n;for(;f.length;)if((T=a>=(v=(m+d)/2))?m=v:d=v,(S=u>=(x=(g+p)/2))?g=x:p=x,c=f,!(f=f[A=S<<1|T]))return c[A]=h,n;if(_=+n._x.call(null,f.data),O=+n._y.call(null,f.data),a===_&&u===O)return h.next=f,c?c[A]=h:n._root=h,n;do c=c?c[A]=new Array(4):n._root=new Array(4),(T=a>=(v=(m+d)/2))?m=v:d=v,(S=u>=(x=(g+p)/2))?g=x:p=x;while((A=S<<1|T)===(j=(O>=x)<<1|_>=v));return c[j]=f,c[A]=h,n}function iM(n){var a,u,r=n.length,c,f,h=new Array(r),m=new Array(r),g=1/0,d=1/0,p=-1/0,v=-1/0;for(u=0;u<r;++u)isNaN(c=+this._x.call(null,a=n[u]))||isNaN(f=+this._y.call(null,a))||(h[u]=c,m[u]=f,c<g&&(g=c),c>p&&(p=c),f<d&&(d=f),f>v&&(v=f));if(g>p||d>v)return this;for(this.cover(g,d).cover(p,v),u=0;u<r;++u)Mp(this,h[u],m[u],n[u]);return this}function uM(n,a){if(isNaN(n=+n)||isNaN(a=+a))return this;var u=this._x0,r=this._y0,c=this._x1,f=this._y1;if(isNaN(u))c=(u=Math.floor(n))+1,f=(r=Math.floor(a))+1;else{for(var h=c-u||1,m=this._root,g,d;u>n||n>=c||r>a||a>=f;)switch(d=(a<r)<<1|n<u,g=new Array(4),g[d]=m,m=g,h*=2,d){case 0:c=u+h,f=r+h;break;case 1:u=c-h,f=r+h;break;case 2:c=u+h,r=f-h;break;case 3:u=c-h,r=f-h;break}this._root&&this._root.length&&(this._root=m)}return this._x0=u,this._y0=r,this._x1=c,this._y1=f,this}function rM(){var n=[];return this.visit(function(a){if(!a.length)do n.push(a.data);while(a=a.next)}),n}function oM(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function ge(n,a,u,r,c){this.node=n,this.x0=a,this.y0=u,this.x1=r,this.y1=c}function cM(n,a,u){var r,c=this._x0,f=this._y0,h,m,g,d,p=this._x1,v=this._y1,x=[],_=this._root,O,T;for(_&&x.push(new ge(_,c,f,p,v)),u==null?u=1/0:(c=n-u,f=a-u,p=n+u,v=a+u,u*=u);O=x.pop();)if(!(!(_=O.node)||(h=O.x0)>p||(m=O.y0)>v||(g=O.x1)<c||(d=O.y1)<f))if(_.length){var S=(h+g)/2,A=(m+d)/2;x.push(new ge(_[3],S,A,g,d),new ge(_[2],h,A,S,d),new ge(_[1],S,m,g,A),new ge(_[0],h,m,S,A)),(T=(a>=A)<<1|n>=S)&&(O=x[x.length-1],x[x.length-1]=x[x.length-1-T],x[x.length-1-T]=O)}else{var j=n-+this._x.call(null,_.data),U=a-+this._y.call(null,_.data),N=j*j+U*U;if(N<u){var $=Math.sqrt(u=N);c=n-$,f=a-$,p=n+$,v=a+$,r=_.data}}return r}function fM(n){if(isNaN(p=+this._x.call(null,n))||isNaN(v=+this._y.call(null,n)))return this;var a,u=this._root,r,c,f,h=this._x0,m=this._y0,g=this._x1,d=this._y1,p,v,x,_,O,T,S,A;if(!u)return this;if(u.length)for(;;){if((O=p>=(x=(h+g)/2))?h=x:g=x,(T=v>=(_=(m+d)/2))?m=_:d=_,a=u,!(u=u[S=T<<1|O]))return this;if(!u.length)break;(a[S+1&3]||a[S+2&3]||a[S+3&3])&&(r=a,A=S)}for(;u.data!==n;)if(c=u,!(u=u.next))return this;return(f=u.next)&&delete u.next,c?(f?c.next=f:delete c.next,this):a?(f?a[S]=f:delete a[S],(u=a[0]||a[1]||a[2]||a[3])&&u===(a[3]||a[2]||a[1]||a[0])&&!u.length&&(r?r[A]=u:this._root=u),this):(this._root=f,this)}function sM(n){for(var a=0,u=n.length;a<u;++a)this.remove(n[a]);return this}function hM(){return this._root}function dM(){var n=0;return this.visit(function(a){if(!a.length)do++n;while(a=a.next)}),n}function mM(n){var a=[],u,r=this._root,c,f,h,m,g;for(r&&a.push(new ge(r,this._x0,this._y0,this._x1,this._y1));u=a.pop();)if(!n(r=u.node,f=u.x0,h=u.y0,m=u.x1,g=u.y1)&&r.length){var d=(f+m)/2,p=(h+g)/2;(c=r[3])&&a.push(new ge(c,d,p,m,g)),(c=r[2])&&a.push(new ge(c,f,p,d,g)),(c=r[1])&&a.push(new ge(c,d,h,m,p)),(c=r[0])&&a.push(new ge(c,f,h,d,p))}return this}function gM(n){var a=[],u=[],r;for(this._root&&a.push(new ge(this._root,this._x0,this._y0,this._x1,this._y1));r=a.pop();){var c=r.node;if(c.length){var f,h=r.x0,m=r.y0,g=r.x1,d=r.y1,p=(h+g)/2,v=(m+d)/2;(f=c[0])&&a.push(new ge(f,h,m,p,v)),(f=c[1])&&a.push(new ge(f,p,m,g,v)),(f=c[2])&&a.push(new ge(f,h,v,p,d)),(f=c[3])&&a.push(new ge(f,p,v,g,d))}u.push(r)}for(;r=u.pop();)n(r.node,r.x0,r.y0,r.x1,r.y1);return this}function yM(n){return n[0]}function pM(n){return arguments.length?(this._x=n,this):this._x}function vM(n){return n[1]}function xM(n){return arguments.length?(this._y=n,this):this._y}function ks(n,a,u){var r=new Gs(a??yM,u??vM,NaN,NaN,NaN,NaN);return n==null?r:r.addAll(n)}function Gs(n,a,u,r,c,f){this._x=n,this._y=a,this._x0=u,this._y0=r,this._x1=c,this._y1=f,this._root=void 0}function jg(n){for(var a={data:n.data},u=a;n=n.next;)u=u.next={data:n.data};return a}var ye=ks.prototype=Gs.prototype;ye.copy=function(){var n=new Gs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),a=this._root,u,r;if(!a)return n;if(!a.length)return n._root=jg(a),n;for(u=[{source:a,target:n._root=new Array(4)}];a=u.pop();)for(var c=0;c<4;++c)(r=a.source[c])&&(r.length?u.push({source:r,target:a.target[c]=new Array(4)}):a.target[c]=jg(r));return n};ye.add=aM;ye.addAll=iM;ye.cover=uM;ye.data=rM;ye.extent=oM;ye.find=cM;ye.remove=fM;ye.removeAll=sM;ye.root=hM;ye.size=dM;ye.visit=mM;ye.visitAfter=gM;ye.x=pM;ye.y=xM;function ql(n){return function(){return n}}function gl(n){return(n()-.5)*1e-6}function bM(n){return n.x+n.vx}function _M(n){return n.y+n.vy}function SM(n){var a,u,r,c=1,f=1;typeof n!="function"&&(n=ql(n==null?1:+n));function h(){for(var d,p=a.length,v,x,_,O,T,S,A=0;A<f;++A)for(v=ks(a,bM,_M).visitAfter(m),d=0;d<p;++d)x=a[d],T=u[x.index],S=T*T,_=x.x+x.vx,O=x.y+x.vy,v.visit(j);function j(U,N,$,R,V){var tt=U.data,ut=U.r,rt=T+ut;if(tt){if(tt.index>x.index){var st=_-tt.x-tt.vx,F=O-tt.y-tt.vy,mt=st*st+F*F;mt<rt*rt&&(st===0&&(st=gl(r),mt+=st*st),F===0&&(F=gl(r),mt+=F*F),mt=(rt-(mt=Math.sqrt(mt)))/mt*c,x.vx+=(st*=mt)*(rt=(ut*=ut)/(S+ut)),x.vy+=(F*=mt)*rt,tt.vx-=st*(rt=1-rt),tt.vy-=F*rt)}return}return N>_+rt||R<_-rt||$>O+rt||V<O-rt}}function m(d){if(d.data)return d.r=u[d.data.index];for(var p=d.r=0;p<4;++p)d[p]&&d[p].r>d.r&&(d.r=d[p].r)}function g(){if(a){var d,p=a.length,v;for(u=new Array(p),d=0;d<p;++d)v=a[d],u[v.index]=+n(v,d,a)}}return h.initialize=function(d,p){a=d,r=p,g()},h.iterations=function(d){return arguments.length?(f=+d,h):f},h.strength=function(d){return arguments.length?(c=+d,h):c},h.radius=function(d){return arguments.length?(n=typeof d=="function"?d:ql(+d),g(),h):n},h}function wM(n){return n.index}function Hg(n,a){var u=n.get(a);if(!u)throw new Error("node not found: "+a);return u}function MM(n){var a=wM,u=v,r,c=ql(30),f,h,m,g,d,p=1;n==null&&(n=[]);function v(S){return 1/Math.min(m[S.source.index],m[S.target.index])}function x(S){for(var A=0,j=n.length;A<p;++A)for(var U=0,N,$,R,V,tt,ut,rt;U<j;++U)N=n[U],$=N.source,R=N.target,V=R.x+R.vx-$.x-$.vx||gl(d),tt=R.y+R.vy-$.y-$.vy||gl(d),ut=Math.sqrt(V*V+tt*tt),ut=(ut-f[U])/ut*S*r[U],V*=ut,tt*=ut,R.vx-=V*(rt=g[U]),R.vy-=tt*rt,$.vx+=V*(rt=1-rt),$.vy+=tt*rt}function _(){if(h){var S,A=h.length,j=n.length,U=new Map(h.map(($,R)=>[a($,R,h),$])),N;for(S=0,m=new Array(A);S<j;++S)N=n[S],N.index=S,typeof N.source!="object"&&(N.source=Hg(U,N.source)),typeof N.target!="object"&&(N.target=Hg(U,N.target)),m[N.source.index]=(m[N.source.index]||0)+1,m[N.target.index]=(m[N.target.index]||0)+1;for(S=0,g=new Array(j);S<j;++S)N=n[S],g[S]=m[N.source.index]/(m[N.source.index]+m[N.target.index]);r=new Array(j),O(),f=new Array(j),T()}}function O(){if(h)for(var S=0,A=n.length;S<A;++S)r[S]=+u(n[S],S,n)}function T(){if(h)for(var S=0,A=n.length;S<A;++S)f[S]=+c(n[S],S,n)}return x.initialize=function(S,A){h=S,d=A,_()},x.links=function(S){return arguments.length?(n=S,_(),x):n},x.id=function(S){return arguments.length?(a=S,x):a},x.iterations=function(S){return arguments.length?(p=+S,x):p},x.strength=function(S){return arguments.length?(u=typeof S=="function"?S:ql(+S),O(),x):u},x.distance=function(S){return arguments.length?(c=typeof S=="function"?S:ql(+S),T(),x):c},x}const TM=1664525,EM=1013904223,Yg=4294967296;function AM(){let n=1;return()=>(n=(TM*n+EM)%Yg)/Yg}function zM(n){return n.x}function NM(n){return n.y}var CM=10,RM=Math.PI*(3-Math.sqrt(5));function DM(n){var a,u=1,r=.001,c=1-Math.pow(r,1/300),f=0,h=.6,m=new Map,g=Ls(v),d=ru("tick","end"),p=AM();n==null&&(n=[]);function v(){x(),d.call("tick",a),u<r&&(g.stop(),d.call("end",a))}function x(T){var S,A=n.length,j;T===void 0&&(T=1);for(var U=0;U<T;++U)for(u+=(f-u)*c,m.forEach(function(N){N(u)}),S=0;S<A;++S)j=n[S],j.fx==null?j.x+=j.vx*=h:(j.x=j.fx,j.vx=0),j.fy==null?j.y+=j.vy*=h:(j.y=j.fy,j.vy=0);return a}function _(){for(var T=0,S=n.length,A;T<S;++T){if(A=n[T],A.index=T,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var j=CM*Math.sqrt(.5+T),U=T*RM;A.x=j*Math.cos(U),A.y=j*Math.sin(U)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function O(T){return T.initialize&&T.initialize(n,p),T}return _(),a={tick:x,restart:function(){return g.restart(v),a},stop:function(){return g.stop(),a},nodes:function(T){return arguments.length?(n=T,_(),m.forEach(O),a):n},alpha:function(T){return arguments.length?(u=+T,a):u},alphaMin:function(T){return arguments.length?(r=+T,a):r},alphaDecay:function(T){return arguments.length?(c=+T,a):+c},alphaTarget:function(T){return arguments.length?(f=+T,a):f},velocityDecay:function(T){return arguments.length?(h=1-T,a):1-h},randomSource:function(T){return arguments.length?(p=T,m.forEach(O),a):p},force:function(T,S){return arguments.length>1?(S==null?m.delete(T):m.set(T,O(S)),a):m.get(T)},find:function(T,S,A){var j=0,U=n.length,N,$,R,V,tt;for(A==null?A=1/0:A*=A,j=0;j<U;++j)V=n[j],N=T-V.x,$=S-V.y,R=N*N+$*$,R<A&&(tt=V,A=R);return tt},on:function(T,S){return arguments.length>1?(d.on(T,S),a):d.on(T)}}}function OM(){var n,a,u,r,c=ql(-30),f,h=1,m=1/0,g=.81;function d(_){var O,T=n.length,S=ks(n,zM,NM).visitAfter(v);for(r=_,O=0;O<T;++O)a=n[O],S.visit(x)}function p(){if(n){var _,O=n.length,T;for(f=new Array(O),_=0;_<O;++_)T=n[_],f[T.index]=+c(T,_,n)}}function v(_){var O=0,T,S,A=0,j,U,N;if(_.length){for(j=U=N=0;N<4;++N)(T=_[N])&&(S=Math.abs(T.value))&&(O+=T.value,A+=S,j+=S*T.x,U+=S*T.y);_.x=j/A,_.y=U/A}else{T=_,T.x=T.data.x,T.y=T.data.y;do O+=f[T.data.index];while(T=T.next)}_.value=O}function x(_,O,T,S){if(!_.value)return!0;var A=_.x-a.x,j=_.y-a.y,U=S-O,N=A*A+j*j;if(U*U/g<N)return N<m&&(A===0&&(A=gl(u),N+=A*A),j===0&&(j=gl(u),N+=j*j),N<h&&(N=Math.sqrt(h*N)),a.vx+=A*_.value*r/N,a.vy+=j*_.value*r/N),!0;if(_.length||N>=m)return;(_.data!==a||_.next)&&(A===0&&(A=gl(u),N+=A*A),j===0&&(j=gl(u),N+=j*j),N<h&&(N=Math.sqrt(h*N)));do _.data!==a&&(U=f[_.data.index]*r/N,a.vx+=A*U,a.vy+=j*U);while(_=_.next)}return d.initialize=function(_,O){n=_,u=O,p()},d.strength=function(_){return arguments.length?(c=typeof _=="function"?_:ql(+_),p(),d):c},d.distanceMin=function(_){return arguments.length?(h=_*_,d):Math.sqrt(h)},d.distanceMax=function(_){return arguments.length?(m=_*_,d):Math.sqrt(m)},d.theta=function(_){return arguments.length?(g=_*_,d):Math.sqrt(g)},d}function UM(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function eo(n,a){if(!isFinite(n)||n===0)return null;var u=(n=a?n.toExponential(a-1):n.toExponential()).indexOf("e"),r=n.slice(0,u);return[r.length>1?r[0]+r.slice(2):r,+n.slice(u+1)]}function La(n){return n=eo(Math.abs(n)),n?n[1]:NaN}function jM(n,a){return function(u,r){for(var c=u.length,f=[],h=0,m=n[0],g=0;c>0&&m>0&&(g+m+1>r&&(m=Math.max(1,r-g)),f.push(u.substring(c-=m,c+m)),!((g+=m+1)>r));)m=n[h=(h+1)%n.length];return f.reverse().join(a)}}function HM(n){return function(a){return a.replace(/[0-9]/g,function(u){return n[+u]})}}var YM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function no(n){if(!(a=YM.exec(n)))throw new Error("invalid format: "+n);var a;return new Xs({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]})}no.prototype=Xs.prototype;function Xs(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+""}Xs.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 LM(n){t:for(var a=n.length,u=1,r=-1,c;u<a;++u)switch(n[u]){case".":r=c=u;break;case"0":r===0&&(r=u),c=u;break;default:if(!+n[u])break t;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(c+1):n}var lo;function BM(n,a){var u=eo(n,a);if(!u)return lo=void 0,n.toPrecision(a);var r=u[0],c=u[1],f=c-(lo=Math.max(-8,Math.min(8,Math.floor(c/3)))*3)+1,h=r.length;return f===h?r:f>h?r+new Array(f-h+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+eo(n,Math.max(0,a+f-1))[0]}function Lg(n,a){var u=eo(n,a);if(!u)return n+"";var r=u[0],c=u[1];return c<0?"0."+new Array(-c).join("0")+r:r.length>c+1?r.slice(0,c+1)+"."+r.slice(c+1):r+new Array(c-r.length+2).join("0")}const Bg={"%":(n,a)=>(n*100).toFixed(a),b:n=>Math.round(n).toString(2),c:n=>n+"",d:UM,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)=>Lg(n*100,a),r:Lg,s:BM,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function qg(n){return n}var kg=Array.prototype.map,Gg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qM(n){var a=n.grouping===void 0||n.thousands===void 0?qg:jM(kg.call(n.grouping,Number),n.thousands+""),u=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",c=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?qg:HM(kg.call(n.numerals,String)),h=n.percent===void 0?"%":n.percent+"",m=n.minus===void 0?"−":n.minus+"",g=n.nan===void 0?"NaN":n.nan+"";function d(v,x){v=no(v);var _=v.fill,O=v.align,T=v.sign,S=v.symbol,A=v.zero,j=v.width,U=v.comma,N=v.precision,$=v.trim,R=v.type;R==="n"?(U=!0,R="g"):Bg[R]||(N===void 0&&(N=12),$=!0,R="g"),(A||_==="0"&&O==="=")&&(A=!0,_="0",O="=");var V=(x&&x.prefix!==void 0?x.prefix:"")+(S==="$"?u:S==="#"&&/[boxX]/.test(R)?"0"+R.toLowerCase():""),tt=(S==="$"?r:/[%p]/.test(R)?h:"")+(x&&x.suffix!==void 0?x.suffix:""),ut=Bg[R],rt=/[defgprs%]/.test(R);N=N===void 0?6:/[gprs]/.test(R)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function st(F){var mt=V,Y=tt,et,E,k;if(R==="c")Y=ut(F)+Y,F="";else{F=+F;var J=F<0||1/F<0;if(F=isNaN(F)?g:ut(Math.abs(F),N),$&&(F=LM(F)),J&&+F==0&&T!=="+"&&(J=!1),mt=(J?T==="("?T:m:T==="-"||T==="("?"":T)+mt,Y=(R==="s"&&!isNaN(F)&&lo!==void 0?Gg[8+lo/3]:"")+Y+(J&&T==="("?")":""),rt){for(et=-1,E=F.length;++et<E;)if(k=F.charCodeAt(et),48>k||k>57){Y=(k===46?c+F.slice(et+1):F.slice(et))+Y,F=F.slice(0,et);break}}}U&&!A&&(F=a(F,1/0));var at=mt.length+F.length+Y.length,nt=at<j?new Array(j-at+1).join(_):"";switch(U&&A&&(F=a(nt+F,nt.length?j-Y.length:1/0),nt=""),O){case"<":F=mt+F+Y+nt;break;case"=":F=mt+nt+F+Y;break;case"^":F=nt.slice(0,at=nt.length>>1)+mt+F+Y+nt.slice(at);break;default:F=nt+mt+F+Y;break}return f(F)}return st.toString=function(){return v+""},st}function p(v,x){var _=Math.max(-8,Math.min(8,Math.floor(La(x)/3)))*3,O=Math.pow(10,-_),T=d((v=no(v),v.type="f",v),{suffix:Gg[8+_/3]});return function(S){return T(O*S)}}return{format:d,formatPrefix:p}}var Ur,Tp,Ep;kM({thousands:",",grouping:[3],currency:["$",""]});function kM(n){return Ur=qM(n),Tp=Ur.format,Ep=Ur.formatPrefix,Ur}function GM(n){return Math.max(0,-La(Math.abs(n)))}function XM(n,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(La(a)/3)))*3-La(Math.abs(n)))}function VM(n,a){return n=Math.abs(n),a=Math.abs(a)-n,Math.max(0,La(a)-La(n))+1}function QM(n){var a=0,u=n.children,r=u&&u.length;if(!r)a=1;else for(;--r>=0;)a+=u[r].value;n.value=a}function ZM(){return this.eachAfter(QM)}function KM(n,a){let u=-1;for(const r of this)n.call(a,r,++u,this);return this}function $M(n,a){for(var u=this,r=[u],c,f,h=-1;u=r.pop();)if(n.call(a,u,++h,this),c=u.children)for(f=c.length-1;f>=0;--f)r.push(c[f]);return this}function JM(n,a){for(var u=this,r=[u],c=[],f,h,m,g=-1;u=r.pop();)if(c.push(u),f=u.children)for(h=0,m=f.length;h<m;++h)r.push(f[h]);for(;u=c.pop();)n.call(a,u,++g,this);return this}function FM(n,a){let u=-1;for(const r of this)if(n.call(a,r,++u,this))return r}function WM(n){return this.eachAfter(function(a){for(var u=+n(a.data)||0,r=a.children,c=r&&r.length;--c>=0;)u+=r[c].value;a.value=u})}function IM(n){return this.eachBefore(function(a){a.children&&a.children.sort(n)})}function PM(n){for(var a=this,u=tT(a,n),r=[a];a!==u;)a=a.parent,r.push(a);for(var c=r.length;n!==u;)r.splice(c,0,n),n=n.parent;return r}function tT(n,a){if(n===a)return n;var u=n.ancestors(),r=a.ancestors(),c=null;for(n=u.pop(),a=r.pop();n===a;)c=n,n=u.pop(),a=r.pop();return c}function eT(){for(var n=this,a=[n];n=n.parent;)a.push(n);return a}function nT(){return Array.from(this)}function lT(){var n=[];return this.eachBefore(function(a){a.children||n.push(a)}),n}function aT(){var n=this,a=[];return n.each(function(u){u!==n&&a.push({source:u.parent,target:u})}),a}function*iT(){var n=this,a,u=[n],r,c,f;do for(a=u.reverse(),u=[];n=a.pop();)if(yield n,r=n.children)for(c=0,f=r.length;c<f;++c)u.push(r[c]);while(u.length)}function Vs(n,a){n instanceof Map?(n=[void 0,n],a===void 0&&(a=oT)):a===void 0&&(a=rT);for(var u=new ao(n),r,c=[u],f,h,m,g;r=c.pop();)if((h=a(r.data))&&(g=(h=Array.from(h)).length))for(r.children=h,m=g-1;m>=0;--m)c.push(f=h[m]=new ao(h[m])),f.parent=r,f.depth=r.depth+1;return u.eachBefore(fT)}function uT(){return Vs(this).eachBefore(cT)}function rT(n){return n.children}function oT(n){return Array.isArray(n)?n[1]:null}function cT(n){n.data.value!==void 0&&(n.value=n.data.value),n.data=n.data.data}function fT(n){var a=0;do n.height=a;while((n=n.parent)&&n.height<++a)}function ao(n){this.data=n,this.depth=this.height=0,this.parent=null}ao.prototype=Vs.prototype={constructor:ao,count:ZM,each:KM,eachAfter:JM,eachBefore:$M,find:FM,sum:WM,sort:IM,path:PM,ancestors:eT,descendants:nT,leaves:lT,links:aT,copy:uT,[Symbol.iterator]:iT};function sT(n){return n==null?null:hT(n)}function hT(n){if(typeof n!="function")throw new Error;return n}function Xg(){return 0}function dT(n){return function(){return n}}const mT=1664525,gT=1013904223,Vg=4294967296;function yT(){let n=1;return()=>(n=(mT*n+gT)%Vg)/Vg}function pT(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function vT(n,a){let u=n.length,r,c;for(;u;)c=a()*u--|0,r=n[u],n[u]=n[c],n[c]=r;return n}function xT(n,a){for(var u=0,r=(n=vT(Array.from(n),a)).length,c=[],f,h;u<r;)f=n[u],h&&Ap(h,f)?++u:(h=_T(c=bT(c,f)),u=0);return h}function bT(n,a){var u,r;if(Jf(a,n))return[a];for(u=0;u<n.length;++u)if(jr(a,n[u])&&Jf(Fi(n[u],a),n))return[n[u],a];for(u=0;u<n.length-1;++u)for(r=u+1;r<n.length;++r)if(jr(Fi(n[u],n[r]),a)&&jr(Fi(n[u],a),n[r])&&jr(Fi(n[r],a),n[u])&&Jf(zp(n[u],n[r],a),n))return[n[u],n[r],a];throw new Error}function jr(n,a){var u=n.r-a.r,r=a.x-n.x,c=a.y-n.y;return u<0||u*u<r*r+c*c}function Ap(n,a){var u=n.r-a.r+Math.max(n.r,a.r,1)*1e-9,r=a.x-n.x,c=a.y-n.y;return u>0&&u*u>r*r+c*c}function Jf(n,a){for(var u=0;u<a.length;++u)if(!Ap(n,a[u]))return!1;return!0}function _T(n){switch(n.length){case 1:return ST(n[0]);case 2:return Fi(n[0],n[1]);case 3:return zp(n[0],n[1],n[2])}}function ST(n){return{x:n.x,y:n.y,r:n.r}}function Fi(n,a){var u=n.x,r=n.y,c=n.r,f=a.x,h=a.y,m=a.r,g=f-u,d=h-r,p=m-c,v=Math.sqrt(g*g+d*d);return{x:(u+f+g/v*p)/2,y:(r+h+d/v*p)/2,r:(v+c+m)/2}}function zp(n,a,u){var r=n.x,c=n.y,f=n.r,h=a.x,m=a.y,g=a.r,d=u.x,p=u.y,v=u.r,x=r-h,_=r-d,O=c-m,T=c-p,S=g-f,A=v-f,j=r*r+c*c-f*f,U=j-h*h-m*m+g*g,N=j-d*d-p*p+v*v,$=_*O-x*T,R=(O*N-T*U)/($*2)-r,V=(T*S-O*A)/$,tt=(_*U-x*N)/($*2)-c,ut=(x*A-_*S)/$,rt=V*V+ut*ut-1,st=2*(f+R*V+tt*ut),F=R*R+tt*tt-f*f,mt=-(Math.abs(rt)>1e-6?(st+Math.sqrt(st*st-4*rt*F))/(2*rt):F/st);return{x:r+R+V*mt,y:c+tt+ut*mt,r:mt}}function Qg(n,a,u){var r=n.x-a.x,c,f,h=n.y-a.y,m,g,d=r*r+h*h;d?(f=a.r+u.r,f*=f,g=n.r+u.r,g*=g,f>g?(c=(d+g-f)/(2*d),m=Math.sqrt(Math.max(0,g/d-c*c)),u.x=n.x-c*r-m*h,u.y=n.y-c*h+m*r):(c=(d+f-g)/(2*d),m=Math.sqrt(Math.max(0,f/d-c*c)),u.x=a.x+c*r-m*h,u.y=a.y+c*h+m*r)):(u.x=a.x+u.r,u.y=a.y)}function Zg(n,a){var u=n.r+a.r-1e-6,r=a.x-n.x,c=a.y-n.y;return u>0&&u*u>r*r+c*c}function Kg(n){var a=n._,u=n.next._,r=a.r+u.r,c=(a.x*u.r+u.x*a.r)/r,f=(a.y*u.r+u.y*a.r)/r;return c*c+f*f}function Hr(n){this._=n,this.next=null,this.previous=null}function wT(n,a){if(!(f=(n=pT(n)).length))return 0;var u,r,c,f,h,m,g,d,p,v,x;if(u=n[0],u.x=0,u.y=0,!(f>1))return u.r;if(r=n[1],u.x=-r.r,r.x=u.r,r.y=0,!(f>2))return u.r+r.r;Qg(r,u,c=n[2]),u=new Hr(u),r=new Hr(r),c=new Hr(c),u.next=c.previous=r,r.next=u.previous=c,c.next=r.previous=u;t:for(g=3;g<f;++g){Qg(u._,r._,c=n[g]),c=new Hr(c),d=r.next,p=u.previous,v=r._.r,x=u._.r;do if(v<=x){if(Zg(d._,c._)){r=d,u.next=r,r.previous=u,--g;continue t}v+=d._.r,d=d.next}else{if(Zg(p._,c._)){u=p,u.next=r,r.previous=u,--g;continue t}x+=p._.r,p=p.previous}while(d!==p.next);for(c.previous=u,c.next=r,u.next=r.previous=r=c,h=Kg(u);(c=c.next)!==r;)(m=Kg(c))<h&&(u=c,h=m);r=u.next}for(u=[r._],c=r;(c=c.next)!==r;)u.push(c._);for(c=xT(u,a),g=0;g<f;++g)u=n[g],u.x-=c.x,u.y-=c.y;return c.r}function MT(n){return Math.sqrt(n.value)}function TT(){var n=null,a=1,u=1,r=Xg;function c(f){const h=yT();return f.x=a/2,f.y=u/2,n?f.eachBefore($g(n)).eachAfter(Ff(r,.5,h)).eachBefore(Jg(1)):f.eachBefore($g(MT)).eachAfter(Ff(Xg,1,h)).eachAfter(Ff(r,f.r/Math.min(a,u),h)).eachBefore(Jg(Math.min(a,u)/(2*f.r))),f}return c.radius=function(f){return arguments.length?(n=sT(f),c):n},c.size=function(f){return arguments.length?(a=+f[0],u=+f[1],c):[a,u]},c.padding=function(f){return arguments.length?(r=typeof f=="function"?f:dT(+f),c):r},c}function $g(n){return function(a){a.children||(a.r=Math.max(0,+n(a)||0))}}function Ff(n,a,u){return function(r){if(c=r.children){var c,f,h=c.length,m=n(r)*a||0,g;if(m)for(f=0;f<h;++f)c[f].r+=m;if(g=wT(c,u),m)for(f=0;f<h;++f)c[f].r-=m;r.r=g+m}}}function Jg(n){return function(a){var u=a.parent;a.r*=n,u&&(a.x=u.x+n*a.x,a.y=u.y+n*a.y)}}function Qs(n,a){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(a).domain(n);break}return this}function ET(n){return function(){return n}}function AT(n){return+n}var Fg=[0,1];function rn(n){return n}function ws(n,a){return(a-=n=+n)?function(u){return(u-n)/a}:ET(isNaN(a)?NaN:.5)}function zT(n,a){var u;return n>a&&(u=n,n=a,a=u),function(r){return Math.max(n,Math.min(a,r))}}function NT(n,a,u){var r=n[0],c=n[1],f=a[0],h=a[1];return c<r?(r=ws(c,r),f=u(h,f)):(r=ws(r,c),f=u(f,h)),function(m){return f(r(m))}}function CT(n,a,u){var r=Math.min(n.length,a.length)-1,c=new Array(r),f=new Array(r),h=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),a=a.slice().reverse());++h<r;)c[h]=ws(n[h],n[h+1]),f[h]=u(a[h],a[h+1]);return function(m){var g=f_(n,m,1,r)-1;return f[g](c[g](m))}}function Zs(n,a){return a.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Np(){var n=Fg,a=Fg,u=Hs,r,c,f,h=rn,m,g,d;function p(){var x=Math.min(n.length,a.length);return h!==rn&&(h=zT(n[0],n[x-1])),m=x>2?CT:NT,g=d=null,v}function v(x){return x==null||isNaN(x=+x)?f:(g||(g=m(n.map(r),a,u)))(r(h(x)))}return v.invert=function(x){return h(c((d||(d=m(a,n.map(r),Ie)))(x)))},v.domain=function(x){return arguments.length?(n=Array.from(x,AT),p()):n.slice()},v.range=function(x){return arguments.length?(a=Array.from(x),p()):a.slice()},v.rangeRound=function(x){return a=Array.from(x),u=Uw,p()},v.clamp=function(x){return arguments.length?(h=x?!0:rn,p()):h!==rn},v.interpolate=function(x){return arguments.length?(u=x,p()):u},v.unknown=function(x){return arguments.length?(f=x,v):f},function(x,_){return r=x,c=_,p()}}function Cp(){return Np()(rn,rn)}function RT(n,a,u,r){var c=ss(n,a,u),f;switch(r=no(r??",f"),r.type){case"s":{var h=Math.max(Math.abs(n),Math.abs(a));return r.precision==null&&!isNaN(f=XM(c,h))&&(r.precision=f),Ep(r,h)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=VM(c,Math.max(Math.abs(n),Math.abs(a))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=GM(c))&&(r.precision=f-(r.type==="%")*2);break}}return Tp(r)}function Rp(n){var a=n.domain;return n.ticks=function(u){var r=a();return g_(r[0],r[r.length-1],u??10)},n.tickFormat=function(u,r){var c=a();return RT(c[0],c[c.length-1],u??10,r)},n.nice=function(u){u==null&&(u=10);var r=a(),c=0,f=r.length-1,h=r[c],m=r[f],g,d,p=10;for(m<h&&(d=h,h=m,m=d,d=c,c=f,f=d);p-- >0;){if(d=fs(h,m,u),d===g)return r[c]=h,r[f]=m,a(r);if(d>0)h=Math.floor(h/d)*d,m=Math.ceil(m/d)*d;else if(d<0)h=Math.ceil(h*d)/d,m=Math.floor(m*d)/d;else break;g=d}return n},n}function io(){var n=Cp();return n.copy=function(){return Zs(n,io())},Qs.apply(n,arguments),Rp(n)}function DT(n,a){n=n.slice();var u=0,r=n.length-1,c=n[u],f=n[r],h;return f<c&&(h=u,u=r,r=h,h=c,c=f,f=h),n[u]=a.floor(c),n[r]=a.ceil(f),n}function Wg(n){return function(a){return a<0?-Math.pow(-a,n):Math.pow(a,n)}}function OT(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function UT(n){return n<0?-n*n:n*n}function jT(n){var a=n(rn,rn),u=1;function r(){return u===1?n(rn,rn):u===.5?n(OT,UT):n(Wg(u),Wg(1/u))}return a.exponent=function(c){return arguments.length?(u=+c,r()):u},Rp(a)}function Dp(){var n=jT(Np());return n.copy=function(){return Zs(n,Dp()).exponent(n.exponent())},Qs.apply(n,arguments),n}function HT(){return Dp.apply(null,arguments).exponent(.5)}const Wf=new Date,If=new Date;function Pt(n,a,u,r){function c(f){return n(f=arguments.length===0?new Date:new Date(+f)),f}return c.floor=f=>(n(f=new Date(+f)),f),c.ceil=f=>(n(f=new Date(f-1)),a(f,1),n(f),f),c.round=f=>{const h=c(f),m=c.ceil(f);return f-h<m-f?h:m},c.offset=(f,h)=>(a(f=new Date(+f),h==null?1:Math.floor(h)),f),c.range=(f,h,m)=>{const g=[];if(f=c.ceil(f),m=m==null?1:Math.floor(m),!(f<h)||!(m>0))return g;let d;do g.push(d=new Date(+f)),a(f,m),n(f);while(d<f&&f<h);return g},c.filter=f=>Pt(h=>{if(h>=h)for(;n(h),!f(h);)h.setTime(h-1)},(h,m)=>{if(h>=h)if(m<0)for(;++m<=0;)for(;a(h,-1),!f(h););else for(;--m>=0;)for(;a(h,1),!f(h););}),u&&(c.count=(f,h)=>(Wf.setTime(+f),If.setTime(+h),n(Wf),n(If),Math.floor(u(Wf,If))),c.every=f=>(f=Math.floor(f),!isFinite(f)||!(f>0)?null:f>1?c.filter(r?h=>r(h)%f===0:h=>c.count(0,h)%f===0):c)),c}const uo=Pt(()=>{},(n,a)=>{n.setTime(+n+a)},(n,a)=>a-n);uo.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?Pt(a=>{a.setTime(Math.floor(a/n)*n)},(a,u)=>{a.setTime(+a+u*n)},(a,u)=>(u-a)/n):uo);uo.range;const Un=1e3,Ke=Un*60,jn=Ke*60,qn=jn*24,Ks=qn*7,Ig=qn*30,Pf=qn*365,Da=Pt(n=>{n.setTime(n-n.getMilliseconds())},(n,a)=>{n.setTime(+n+a*Un)},(n,a)=>(a-n)/Un,n=>n.getUTCSeconds());Da.range;const $s=Pt(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Un)},(n,a)=>{n.setTime(+n+a*Ke)},(n,a)=>(a-n)/Ke,n=>n.getMinutes());$s.range;const YT=Pt(n=>{n.setUTCSeconds(0,0)},(n,a)=>{n.setTime(+n+a*Ke)},(n,a)=>(a-n)/Ke,n=>n.getUTCMinutes());YT.range;const Js=Pt(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Un-n.getMinutes()*Ke)},(n,a)=>{n.setTime(+n+a*jn)},(n,a)=>(a-n)/jn,n=>n.getHours());Js.range;const LT=Pt(n=>{n.setUTCMinutes(0,0,0)},(n,a)=>{n.setTime(+n+a*jn)},(n,a)=>(a-n)/jn,n=>n.getUTCHours());LT.range;const fu=Pt(n=>n.setHours(0,0,0,0),(n,a)=>n.setDate(n.getDate()+a),(n,a)=>(a-n-(a.getTimezoneOffset()-n.getTimezoneOffset())*Ke)/qn,n=>n.getDate()-1);fu.range;const Fs=Pt(n=>{n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCDate(n.getUTCDate()+a)},(n,a)=>(a-n)/qn,n=>n.getUTCDate()-1);Fs.range;const BT=Pt(n=>{n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCDate(n.getUTCDate()+a)},(n,a)=>(a-n)/qn,n=>Math.floor(n/qn));BT.range;function Ql(n){return Pt(a=>{a.setDate(a.getDate()-(a.getDay()+7-n)%7),a.setHours(0,0,0,0)},(a,u)=>{a.setDate(a.getDate()+u*7)},(a,u)=>(u-a-(u.getTimezoneOffset()-a.getTimezoneOffset())*Ke)/Ks)}const po=Ql(0),ro=Ql(1),qT=Ql(2),kT=Ql(3),Ba=Ql(4),GT=Ql(5),XT=Ql(6);po.range;ro.range;qT.range;kT.range;Ba.range;GT.range;XT.range;function Zl(n){return Pt(a=>{a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-n)%7),a.setUTCHours(0,0,0,0)},(a,u)=>{a.setUTCDate(a.getUTCDate()+u*7)},(a,u)=>(u-a)/Ks)}const Op=Zl(0),oo=Zl(1),VT=Zl(2),QT=Zl(3),qa=Zl(4),ZT=Zl(5),KT=Zl(6);Op.range;oo.range;VT.range;QT.range;qa.range;ZT.range;KT.range;const Ws=Pt(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());Ws.range;const $T=Pt(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());$T.range;const kn=Pt(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());kn.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Pt(a=>{a.setFullYear(Math.floor(a.getFullYear()/n)*n),a.setMonth(0,1),a.setHours(0,0,0,0)},(a,u)=>{a.setFullYear(a.getFullYear()+u*n)});kn.range;const Xl=Pt(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());Xl.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Pt(a=>{a.setUTCFullYear(Math.floor(a.getUTCFullYear()/n)*n),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},(a,u)=>{a.setUTCFullYear(a.getUTCFullYear()+u*n)});Xl.range;function JT(n,a,u,r,c,f){const h=[[Da,1,Un],[Da,5,5*Un],[Da,15,15*Un],[Da,30,30*Un],[f,1,Ke],[f,5,5*Ke],[f,15,15*Ke],[f,30,30*Ke],[c,1,jn],[c,3,3*jn],[c,6,6*jn],[c,12,12*jn],[r,1,qn],[r,2,2*qn],[u,1,Ks],[a,1,Ig],[a,3,3*Ig],[n,1,Pf]];function m(d,p,v){const x=p<d;x&&([d,p]=[p,d]);const _=v&&typeof v.range=="function"?v:g(d,p,v),O=_?_.range(d,+p+1):[];return x?O.reverse():O}function g(d,p,v){const x=Math.abs(p-d)/v,_=Rs(([,,S])=>S).right(h,x);if(_===h.length)return n.every(ss(d/Pf,p/Pf,v));if(_===0)return uo.every(Math.max(ss(d,p,v),1));const[O,T]=h[x/h[_-1][2]<h[_][2]/x?_-1:_];return O.every(T)}return[m,g]}const[FT,WT]=JT(kn,Ws,po,fu,Js,$s);function ts(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 es(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 Xi(n,a,u){return{y:n,m:a,d:u,H:0,M:0,S:0,L:0}}function IT(n){var a=n.dateTime,u=n.date,r=n.time,c=n.periods,f=n.days,h=n.shortDays,m=n.months,g=n.shortMonths,d=Vi(c),p=Qi(c),v=Vi(f),x=Qi(f),_=Vi(h),O=Qi(h),T=Vi(m),S=Qi(m),A=Vi(g),j=Qi(g),U={a:k,A:J,b:at,B:nt,c:null,d:ay,e:ay,f:_E,g:RE,G:OE,H:vE,I:xE,j:bE,L:Up,m:SE,M:wE,p:w,q:X,Q:ry,s:oy,S:ME,u:TE,U:EE,V:AE,w:zE,W:NE,x:null,X:null,y:CE,Y:DE,Z:UE,"%":uy},N={a:P,A:lt,b:ct,B:dt,c:null,d:iy,e:iy,f:LE,g:$E,G:FE,H:jE,I:HE,j:YE,L:Hp,m:BE,M:qE,p:gt,q:Yt,Q:ry,s:oy,S:kE,u:GE,U:XE,V:VE,w:QE,W:ZE,x:null,X:null,y:KE,Y:JE,Z:WE,"%":uy},$={a:rt,A:st,b:F,B:mt,c:Y,d:ny,e:ny,f:mE,g:ey,G:ty,H:ly,I:ly,j:fE,L:dE,m:cE,M:sE,p:ut,q:oE,Q:yE,s:pE,S:hE,u:lE,U:aE,V:iE,w:nE,W:uE,x:et,X:E,y:ey,Y:ty,Z:rE,"%":gE};U.x=R(u,U),U.X=R(r,U),U.c=R(a,U),N.x=R(u,N),N.X=R(r,N),N.c=R(a,N);function R(I,pt){return function(_t){var W=[],ae=-1,At=0,ie=I.length,ue,hn,Va;for(_t instanceof Date||(_t=new Date(+_t));++ae<ie;)I.charCodeAt(ae)===37&&(W.push(I.slice(At,ae)),(hn=Pg[ue=I.charAt(++ae)])!=null?ue=I.charAt(++ae):hn=ue==="e"?" ":"0",(Va=pt[ue])&&(ue=Va(_t,hn)),W.push(ue),At=ae+1);return W.push(I.slice(At,ae)),W.join("")}}function V(I,pt){return function(_t){var W=Xi(1900,void 0,1),ae=tt(W,I,_t+="",0),At,ie;if(ae!=_t.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(pt&&!("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?(At=es(Xi(W.y,0,1)),ie=At.getUTCDay(),At=ie>4||ie===0?oo.ceil(At):oo(At),At=Fs.offset(At,(W.V-1)*7),W.y=At.getUTCFullYear(),W.m=At.getUTCMonth(),W.d=At.getUTCDate()+(W.w+6)%7):(At=ts(Xi(W.y,0,1)),ie=At.getDay(),At=ie>4||ie===0?ro.ceil(At):ro(At),At=fu.offset(At,(W.V-1)*7),W.y=At.getFullYear(),W.m=At.getMonth(),W.d=At.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),ie="Z"in W?es(Xi(W.y,0,1)).getUTCDay():ts(Xi(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(ie+5)%7:W.w+W.U*7-(ie+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,es(W)):ts(W)}}function tt(I,pt,_t,W){for(var ae=0,At=pt.length,ie=_t.length,ue,hn;ae<At;){if(W>=ie)return-1;if(ue=pt.charCodeAt(ae++),ue===37){if(ue=pt.charAt(ae++),hn=$[ue in Pg?pt.charAt(ae++):ue],!hn||(W=hn(I,_t,W))<0)return-1}else if(ue!=_t.charCodeAt(W++))return-1}return W}function ut(I,pt,_t){var W=d.exec(pt.slice(_t));return W?(I.p=p.get(W[0].toLowerCase()),_t+W[0].length):-1}function rt(I,pt,_t){var W=_.exec(pt.slice(_t));return W?(I.w=O.get(W[0].toLowerCase()),_t+W[0].length):-1}function st(I,pt,_t){var W=v.exec(pt.slice(_t));return W?(I.w=x.get(W[0].toLowerCase()),_t+W[0].length):-1}function F(I,pt,_t){var W=A.exec(pt.slice(_t));return W?(I.m=j.get(W[0].toLowerCase()),_t+W[0].length):-1}function mt(I,pt,_t){var W=T.exec(pt.slice(_t));return W?(I.m=S.get(W[0].toLowerCase()),_t+W[0].length):-1}function Y(I,pt,_t){return tt(I,a,pt,_t)}function et(I,pt,_t){return tt(I,u,pt,_t)}function E(I,pt,_t){return tt(I,r,pt,_t)}function k(I){return h[I.getDay()]}function J(I){return f[I.getDay()]}function at(I){return g[I.getMonth()]}function nt(I){return m[I.getMonth()]}function w(I){return c[+(I.getHours()>=12)]}function X(I){return 1+~~(I.getMonth()/3)}function P(I){return h[I.getUTCDay()]}function lt(I){return f[I.getUTCDay()]}function ct(I){return g[I.getUTCMonth()]}function dt(I){return m[I.getUTCMonth()]}function gt(I){return c[+(I.getUTCHours()>=12)]}function Yt(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var pt=R(I+="",U);return pt.toString=function(){return I},pt},parse:function(I){var pt=V(I+="",!1);return pt.toString=function(){return I},pt},utcFormat:function(I){var pt=R(I+="",N);return pt.toString=function(){return I},pt},utcParse:function(I){var pt=V(I+="",!0);return pt.toString=function(){return I},pt}}}var Pg={"-":"",_:" ",0:"0"},le=/^\s*\d+/,PT=/^%/,tE=/[\\^$*+?|[\]().{}]/g;function Ct(n,a,u){var r=n<0?"-":"",c=(r?-n:n)+"",f=c.length;return r+(f<u?new Array(u-f+1).join(a)+c:c)}function eE(n){return n.replace(tE,"\\$&")}function Vi(n){return new RegExp("^(?:"+n.map(eE).join("|")+")","i")}function Qi(n){return new Map(n.map((a,u)=>[a.toLowerCase(),u]))}function nE(n,a,u){var r=le.exec(a.slice(u,u+1));return r?(n.w=+r[0],u+r[0].length):-1}function lE(n,a,u){var r=le.exec(a.slice(u,u+1));return r?(n.u=+r[0],u+r[0].length):-1}function aE(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.U=+r[0],u+r[0].length):-1}function iE(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.V=+r[0],u+r[0].length):-1}function uE(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.W=+r[0],u+r[0].length):-1}function ty(n,a,u){var r=le.exec(a.slice(u,u+4));return r?(n.y=+r[0],u+r[0].length):-1}function ey(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),u+r[0].length):-1}function rE(n,a,u){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(u,u+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),u+r[0].length):-1}function oE(n,a,u){var r=le.exec(a.slice(u,u+1));return r?(n.q=r[0]*3-3,u+r[0].length):-1}function cE(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.m=r[0]-1,u+r[0].length):-1}function ny(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.d=+r[0],u+r[0].length):-1}function fE(n,a,u){var r=le.exec(a.slice(u,u+3));return r?(n.m=0,n.d=+r[0],u+r[0].length):-1}function ly(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.H=+r[0],u+r[0].length):-1}function sE(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.M=+r[0],u+r[0].length):-1}function hE(n,a,u){var r=le.exec(a.slice(u,u+2));return r?(n.S=+r[0],u+r[0].length):-1}function dE(n,a,u){var r=le.exec(a.slice(u,u+3));return r?(n.L=+r[0],u+r[0].length):-1}function mE(n,a,u){var r=le.exec(a.slice(u,u+6));return r?(n.L=Math.floor(r[0]/1e3),u+r[0].length):-1}function gE(n,a,u){var r=PT.exec(a.slice(u,u+1));return r?u+r[0].length:-1}function yE(n,a,u){var r=le.exec(a.slice(u));return r?(n.Q=+r[0],u+r[0].length):-1}function pE(n,a,u){var r=le.exec(a.slice(u));return r?(n.s=+r[0],u+r[0].length):-1}function ay(n,a){return Ct(n.getDate(),a,2)}function vE(n,a){return Ct(n.getHours(),a,2)}function xE(n,a){return Ct(n.getHours()%12||12,a,2)}function bE(n,a){return Ct(1+fu.count(kn(n),n),a,3)}function Up(n,a){return Ct(n.getMilliseconds(),a,3)}function _E(n,a){return Up(n,a)+"000"}function SE(n,a){return Ct(n.getMonth()+1,a,2)}function wE(n,a){return Ct(n.getMinutes(),a,2)}function ME(n,a){return Ct(n.getSeconds(),a,2)}function TE(n){var a=n.getDay();return a===0?7:a}function EE(n,a){return Ct(po.count(kn(n)-1,n),a,2)}function jp(n){var a=n.getDay();return a>=4||a===0?Ba(n):Ba.ceil(n)}function AE(n,a){return n=jp(n),Ct(Ba.count(kn(n),n)+(kn(n).getDay()===4),a,2)}function zE(n){return n.getDay()}function NE(n,a){return Ct(ro.count(kn(n)-1,n),a,2)}function CE(n,a){return Ct(n.getFullYear()%100,a,2)}function RE(n,a){return n=jp(n),Ct(n.getFullYear()%100,a,2)}function DE(n,a){return Ct(n.getFullYear()%1e4,a,4)}function OE(n,a){var u=n.getDay();return n=u>=4||u===0?Ba(n):Ba.ceil(n),Ct(n.getFullYear()%1e4,a,4)}function UE(n){var a=n.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Ct(a/60|0,"0",2)+Ct(a%60,"0",2)}function iy(n,a){return Ct(n.getUTCDate(),a,2)}function jE(n,a){return Ct(n.getUTCHours(),a,2)}function HE(n,a){return Ct(n.getUTCHours()%12||12,a,2)}function YE(n,a){return Ct(1+Fs.count(Xl(n),n),a,3)}function Hp(n,a){return Ct(n.getUTCMilliseconds(),a,3)}function LE(n,a){return Hp(n,a)+"000"}function BE(n,a){return Ct(n.getUTCMonth()+1,a,2)}function qE(n,a){return Ct(n.getUTCMinutes(),a,2)}function kE(n,a){return Ct(n.getUTCSeconds(),a,2)}function GE(n){var a=n.getUTCDay();return a===0?7:a}function XE(n,a){return Ct(Op.count(Xl(n)-1,n),a,2)}function Yp(n){var a=n.getUTCDay();return a>=4||a===0?qa(n):qa.ceil(n)}function VE(n,a){return n=Yp(n),Ct(qa.count(Xl(n),n)+(Xl(n).getUTCDay()===4),a,2)}function QE(n){return n.getUTCDay()}function ZE(n,a){return Ct(oo.count(Xl(n)-1,n),a,2)}function KE(n,a){return Ct(n.getUTCFullYear()%100,a,2)}function $E(n,a){return n=Yp(n),Ct(n.getUTCFullYear()%100,a,2)}function JE(n,a){return Ct(n.getUTCFullYear()%1e4,a,4)}function FE(n,a){var u=n.getUTCDay();return n=u>=4||u===0?qa(n):qa.ceil(n),Ct(n.getUTCFullYear()%1e4,a,4)}function WE(){return"+0000"}function uy(){return"%"}function ry(n){return+n}function oy(n){return Math.floor(+n/1e3)}var Ra,Is,Lp;IE({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 IE(n){return Ra=IT(n),Is=Ra.format,Lp=Ra.parse,Ra.utcFormat,Ra.utcParse,Ra}function PE(n){return new Date(n)}function t4(n){return n instanceof Date?+n:+new Date(+n)}function Bp(n,a,u,r,c,f,h,m,g,d){var p=Cp(),v=p.invert,x=p.domain,_=d(".%L"),O=d(":%S"),T=d("%I:%M"),S=d("%I %p"),A=d("%a %d"),j=d("%b %d"),U=d("%B"),N=d("%Y");function $(R){return(g(R)<R?_:m(R)<R?O:h(R)<R?T:f(R)<R?S:r(R)<R?c(R)<R?A:j:u(R)<R?U:N)(R)}return p.invert=function(R){return new Date(v(R))},p.domain=function(R){return arguments.length?x(Array.from(R,t4)):x().map(PE)},p.ticks=function(R){var V=x();return n(V[0],V[V.length-1],R??10)},p.tickFormat=function(R,V){return V==null?$:d(V)},p.nice=function(R){var V=x();return(!R||typeof R.range!="function")&&(R=a(V[0],V[V.length-1],R??10)),R?x(DT(V,R)):p},p.copy=function(){return Zs(p,Bp(n,a,u,r,c,f,h,m,g,d))},p}function e4(){return Qs.apply(Bp(FT,WT,kn,Ws,po,fu,Js,$s,Da,Is).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ne(n){return function(){return n}}function qp(n){let a=3;return n.digits=function(u){if(!arguments.length)return a;if(u==null)a=null;else{const r=Math.floor(u);if(!(r>=0))throw new RangeError(`invalid digits: ${u}`);a=r}return n},()=>new nM(a)}function kp(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function Gp(n){this._context=n}Gp.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 Xp(n){return new Gp(n)}function Vp(n){return n[0]}function Qp(n){return n[1]}function Ps(n,a){var u=ne(!0),r=null,c=Xp,f=null,h=qp(m);n=typeof n=="function"?n:n===void 0?Vp:ne(n),a=typeof a=="function"?a:a===void 0?Qp:ne(a);function m(g){var d,p=(g=kp(g)).length,v,x=!1,_;for(r==null&&(f=c(_=h())),d=0;d<=p;++d)!(d<p&&u(v=g[d],d,g))===x&&((x=!x)?f.lineStart():f.lineEnd()),x&&f.point(+n(v,d,g),+a(v,d,g));if(_)return f=null,_+""||null}return m.x=function(g){return arguments.length?(n=typeof g=="function"?g:ne(+g),m):n},m.y=function(g){return arguments.length?(a=typeof g=="function"?g:ne(+g),m):a},m.defined=function(g){return arguments.length?(u=typeof g=="function"?g:ne(!!g),m):u},m.curve=function(g){return arguments.length?(c=g,r!=null&&(f=c(r)),m):c},m.context=function(g){return arguments.length?(g==null?r=f=null:f=c(r=g),m):r},m}function n4(n,a,u){var r=null,c=ne(!0),f=null,h=Xp,m=null,g=qp(d);n=typeof n=="function"?n:n===void 0?Vp:ne(+n),a=typeof a=="function"?a:ne(a===void 0?0:+a),u=typeof u=="function"?u:u===void 0?Qp:ne(+u);function d(v){var x,_,O,T=(v=kp(v)).length,S,A=!1,j,U=new Array(T),N=new Array(T);for(f==null&&(m=h(j=g())),x=0;x<=T;++x){if(!(x<T&&c(S=v[x],x,v))===A)if(A=!A)_=x,m.areaStart(),m.lineStart();else{for(m.lineEnd(),m.lineStart(),O=x-1;O>=_;--O)m.point(U[O],N[O]);m.lineEnd(),m.areaEnd()}A&&(U[x]=+n(S,x,v),N[x]=+a(S,x,v),m.point(r?+r(S,x,v):U[x],u?+u(S,x,v):N[x]))}if(j)return m=null,j+""||null}function p(){return Ps().defined(c).curve(h).context(f)}return d.x=function(v){return arguments.length?(n=typeof v=="function"?v:ne(+v),r=null,d):n},d.x0=function(v){return arguments.length?(n=typeof v=="function"?v:ne(+v),d):n},d.x1=function(v){return arguments.length?(r=v==null?null:typeof v=="function"?v:ne(+v),d):r},d.y=function(v){return arguments.length?(a=typeof v=="function"?v:ne(+v),u=null,d):a},d.y0=function(v){return arguments.length?(a=typeof v=="function"?v:ne(+v),d):a},d.y1=function(v){return arguments.length?(u=v==null?null:typeof v=="function"?v:ne(+v),d):u},d.lineX0=d.lineY0=function(){return p().x(n).y(a)},d.lineY1=function(){return p().x(n).y(u)},d.lineX1=function(){return p().x(r).y(a)},d.defined=function(v){return arguments.length?(c=typeof v=="function"?v:ne(!!v),d):c},d.curve=function(v){return arguments.length?(h=v,f!=null&&(m=h(f)),d):h},d.context=function(v){return arguments.length?(v==null?f=m=null:m=h(f=v),d):f},d}function cy(n){return n<0?-1:1}function fy(n,a,u){var r=n._x1-n._x0,c=a-n._x1,f=(n._y1-n._y0)/(r||c<0&&-0),h=(u-n._y1)/(c||r<0&&-0),m=(f*c+h*r)/(r+c);return(cy(f)+cy(h))*Math.min(Math.abs(f),Math.abs(h),.5*Math.abs(m))||0}function sy(n,a){var u=n._x1-n._x0;return u?(3*(n._y1-n._y0)/u-a)/2:a}function ns(n,a,u){var r=n._x0,c=n._y0,f=n._x1,h=n._y1,m=(f-r)/3;n._context.bezierCurveTo(r+m,c+m*a,f-m,h-m*u,f,h)}function co(n){this._context=n}co.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:ns(this,this._t0,sy(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 u=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,ns(this,sy(this,u=fy(this,n,a)),u);break;default:ns(this,this._t0,u=fy(this,n,a));break}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a,this._t0=u}}};Object.create(co.prototype).point=function(n,a){co.prototype.point.call(this,a,n)};function hy(n){return new co(n)}const Yr=n=>()=>n;function l4(n,{sourceEvent:a,target:u,transform:r,dispatch:c}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:u,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:c}})}function Hn(n,a,u){this.k=n,this.x=a,this.y=u}Hn.prototype={constructor:Hn,scale:function(n){return n===1?this:new Hn(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new Hn(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 Zp=new Hn(1,0,0);Hn.prototype;function ls(n){n.stopImmediatePropagation()}function Zi(n){n.preventDefault(),n.stopImmediatePropagation()}function a4(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function i4(){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 dy(){return this.__zoom||Zp}function u4(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function r4(){return navigator.maxTouchPoints||"ontouchstart"in this}function o4(n,a,u){var r=n.invertX(a[0][0])-u[0][0],c=n.invertX(a[1][0])-u[1][0],f=n.invertY(a[0][1])-u[0][1],h=n.invertY(a[1][1])-u[1][1];return n.translate(c>r?(r+c)/2:Math.min(0,r)||Math.max(0,c),h>f?(f+h)/2:Math.min(0,f)||Math.max(0,h))}function c4(){var n=a4,a=i4,u=o4,r=u4,c=r4,f=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],m=250,g=Gw,d=ru("start","zoom","end"),p,v,x,_=500,O=150,T=0,S=10;function A(Y){Y.property("__zoom",dy).on("wheel.zoom",tt,{passive:!1}).on("mousedown.zoom",ut).on("dblclick.zoom",rt).filter(c).on("touchstart.zoom",st).on("touchmove.zoom",F).on("touchend.zoom touchcancel.zoom",mt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(Y,et,E,k){var J=Y.selection?Y.selection():Y;J.property("__zoom",dy),Y!==J?$(Y,et,E,k):J.interrupt().each(function(){R(this,arguments).event(k).start().zoom(null,typeof et=="function"?et.apply(this,arguments):et).end()})},A.scaleBy=function(Y,et,E,k){A.scaleTo(Y,function(){var J=this.__zoom.k,at=typeof et=="function"?et.apply(this,arguments):et;return J*at},E,k)},A.scaleTo=function(Y,et,E,k){A.transform(Y,function(){var J=a.apply(this,arguments),at=this.__zoom,nt=E==null?N(J):typeof E=="function"?E.apply(this,arguments):E,w=at.invert(nt),X=typeof et=="function"?et.apply(this,arguments):et;return u(U(j(at,X),nt,w),J,h)},E,k)},A.translateBy=function(Y,et,E,k){A.transform(Y,function(){return u(this.__zoom.translate(typeof et=="function"?et.apply(this,arguments):et,typeof E=="function"?E.apply(this,arguments):E),a.apply(this,arguments),h)},null,k)},A.translateTo=function(Y,et,E,k,J){A.transform(Y,function(){var at=a.apply(this,arguments),nt=this.__zoom,w=k==null?N(at):typeof k=="function"?k.apply(this,arguments):k;return u(Zp.translate(w[0],w[1]).scale(nt.k).translate(typeof et=="function"?-et.apply(this,arguments):-et,typeof E=="function"?-E.apply(this,arguments):-E),at,h)},k,J)};function j(Y,et){return et=Math.max(f[0],Math.min(f[1],et)),et===Y.k?Y:new Hn(et,Y.x,Y.y)}function U(Y,et,E){var k=et[0]-E[0]*Y.k,J=et[1]-E[1]*Y.k;return k===Y.x&&J===Y.y?Y:new Hn(Y.k,k,J)}function N(Y){return[(+Y[0][0]+ +Y[1][0])/2,(+Y[0][1]+ +Y[1][1])/2]}function $(Y,et,E,k){Y.on("start.zoom",function(){R(this,arguments).event(k).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(k).end()}).tween("zoom",function(){var J=this,at=arguments,nt=R(J,at).event(k),w=a.apply(J,at),X=E==null?N(w):typeof E=="function"?E.apply(J,at):E,P=Math.max(w[1][0]-w[0][0],w[1][1]-w[0][1]),lt=J.__zoom,ct=typeof et=="function"?et.apply(J,at):et,dt=g(lt.invert(X).concat(P/lt.k),ct.invert(X).concat(P/ct.k));return function(gt){if(gt===1)gt=ct;else{var Yt=dt(gt),I=P/Yt[2];gt=new Hn(I,X[0]-Yt[0]*I,X[1]-Yt[1]*I)}nt.zoom(null,gt)}})}function R(Y,et,E){return!E&&Y.__zooming||new V(Y,et)}function V(Y,et){this.that=Y,this.args=et,this.active=0,this.sourceEvent=null,this.extent=a.apply(Y,et),this.taps=0}V.prototype={event:function(Y){return Y&&(this.sourceEvent=Y),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Y,et){return this.mouse&&Y!=="mouse"&&(this.mouse[1]=et.invert(this.mouse[0])),this.touch0&&Y!=="touch"&&(this.touch0[1]=et.invert(this.touch0[0])),this.touch1&&Y!=="touch"&&(this.touch1[1]=et.invert(this.touch1[0])),this.that.__zoom=et,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Y){var et=je(this.that).datum();d.call(Y,this.that,new l4(Y,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:d}),et)}};function tt(Y,...et){if(!n.apply(this,arguments))return;var E=R(this,et).event(Y),k=this.__zoom,J=Math.max(f[0],Math.min(f[1],k.k*Math.pow(2,r.apply(this,arguments)))),at=On(Y);if(E.wheel)(E.mouse[0][0]!==at[0]||E.mouse[0][1]!==at[1])&&(E.mouse[1]=k.invert(E.mouse[0]=at)),clearTimeout(E.wheel);else{if(k.k===J)return;E.mouse=[at,k.invert(at)],Qr(this),E.start()}Zi(Y),E.wheel=setTimeout(nt,O),E.zoom("mouse",u(U(j(k,J),E.mouse[0],E.mouse[1]),E.extent,h));function nt(){E.wheel=null,E.end()}}function ut(Y,...et){if(x||!n.apply(this,arguments))return;var E=Y.currentTarget,k=R(this,et,!0).event(Y),J=je(Y.view).on("mousemove.zoom",X,!0).on("mouseup.zoom",P,!0),at=On(Y,E),nt=Y.clientX,w=Y.clientY;cp(Y.view),ls(Y),k.mouse=[at,this.__zoom.invert(at)],Qr(this),k.start();function X(lt){if(Zi(lt),!k.moved){var ct=lt.clientX-nt,dt=lt.clientY-w;k.moved=ct*ct+dt*dt>T}k.event(lt).zoom("mouse",u(U(k.that.__zoom,k.mouse[0]=On(lt,E),k.mouse[1]),k.extent,h))}function P(lt){J.on("mousemove.zoom mouseup.zoom",null),fp(lt.view,k.moved),Zi(lt),k.event(lt).end()}}function rt(Y,...et){if(n.apply(this,arguments)){var E=this.__zoom,k=On(Y.changedTouches?Y.changedTouches[0]:Y,this),J=E.invert(k),at=E.k*(Y.shiftKey?.5:2),nt=u(U(j(E,at),k,J),a.apply(this,et),h);Zi(Y),m>0?je(this).transition().duration(m).call($,nt,k,Y):je(this).call(A.transform,nt,k,Y)}}function st(Y,...et){if(n.apply(this,arguments)){var E=Y.touches,k=E.length,J=R(this,et,Y.changedTouches.length===k).event(Y),at,nt,w,X;for(ls(Y),nt=0;nt<k;++nt)w=E[nt],X=On(w,this),X=[X,this.__zoom.invert(X),w.identifier],J.touch0?!J.touch1&&J.touch0[2]!==X[2]&&(J.touch1=X,J.taps=0):(J.touch0=X,at=!0,J.taps=1+!!p);p&&(p=clearTimeout(p)),at&&(J.taps<2&&(v=X[0],p=setTimeout(function(){p=null},_)),Qr(this),J.start())}}function F(Y,...et){if(this.__zooming){var E=R(this,et).event(Y),k=Y.changedTouches,J=k.length,at,nt,w,X;for(Zi(Y),at=0;at<J;++at)nt=k[at],w=On(nt,this),E.touch0&&E.touch0[2]===nt.identifier?E.touch0[0]=w:E.touch1&&E.touch1[2]===nt.identifier&&(E.touch1[0]=w);if(nt=E.that.__zoom,E.touch1){var P=E.touch0[0],lt=E.touch0[1],ct=E.touch1[0],dt=E.touch1[1],gt=(gt=ct[0]-P[0])*gt+(gt=ct[1]-P[1])*gt,Yt=(Yt=dt[0]-lt[0])*Yt+(Yt=dt[1]-lt[1])*Yt;nt=j(nt,Math.sqrt(gt/Yt)),w=[(P[0]+ct[0])/2,(P[1]+ct[1])/2],X=[(lt[0]+dt[0])/2,(lt[1]+dt[1])/2]}else if(E.touch0)w=E.touch0[0],X=E.touch0[1];else return;E.zoom("touch",u(U(nt,w,X),E.extent,h))}}function mt(Y,...et){if(this.__zooming){var E=R(this,et).event(Y),k=Y.changedTouches,J=k.length,at,nt;for(ls(Y),x&&clearTimeout(x),x=setTimeout(function(){x=null},_),at=0;at<J;++at)nt=k[at],E.touch0&&E.touch0[2]===nt.identifier?delete E.touch0:E.touch1&&E.touch1[2]===nt.identifier&&delete E.touch1;if(E.touch1&&!E.touch0&&(E.touch0=E.touch1,delete E.touch1),E.touch0)E.touch0[1]=this.__zoom.invert(E.touch0[0]);else if(E.end(),E.taps===2&&(nt=On(nt,this),Math.hypot(v[0]-nt[0],v[1]-nt[1])<S)){var w=je(this).on("dblclick.zoom");w&&w.apply(this,arguments)}}}return A.wheelDelta=function(Y){return arguments.length?(r=typeof Y=="function"?Y:Yr(+Y),A):r},A.filter=function(Y){return arguments.length?(n=typeof Y=="function"?Y:Yr(!!Y),A):n},A.touchable=function(Y){return arguments.length?(c=typeof Y=="function"?Y:Yr(!!Y),A):c},A.extent=function(Y){return arguments.length?(a=typeof Y=="function"?Y:Yr([[+Y[0][0],+Y[0][1]],[+Y[1][0],+Y[1][1]]]),A):a},A.scaleExtent=function(Y){return arguments.length?(f[0]=+Y[0],f[1]=+Y[1],A):[f[0],f[1]]},A.translateExtent=function(Y){return arguments.length?(h[0][0]=+Y[0][0],h[1][0]=+Y[1][0],h[0][1]=+Y[0][1],h[1][1]=+Y[1][1],A):[[h[0][0],h[0][1]],[h[1][0],h[1][1]]]},A.constrain=function(Y){return arguments.length?(u=Y,A):u},A.duration=function(Y){return arguments.length?(m=+Y,A):m},A.interpolate=function(Y){return arguments.length?(g=Y,A):g},A.on=function(){var Y=d.on.apply(d,arguments);return Y===d?A:Y},A.clickDistance=function(Y){return arguments.length?(T=(Y=+Y)*Y,A):Math.sqrt(T)},A.tapDistance=function(Y){return arguments.length?(S=+Y,A):S},A}function f4({data:n}){const a=H.useRef(null);return H.useEffect(()=>{if(!a.current||n.length===0)return;const u=je(a.current);u.selectAll("*").remove();const r=a.current.parentElement;if(!r)return;const c=r.clientWidth,f=250,h={top:20,right:20,bottom:40,left:50},m=c-h.left-h.right,g=f-h.top-h.bottom;u.attr("width",c).attr("height",f);const d=u.append("g").attr("transform",`translate(${h.left},${h.top})`),p=Lp("%Y-%m-%d"),v=n.map(N=>({date:p(N.week),count:N.count})),x=e4().domain(s_(v,N=>N.date)).range([0,m]),_=io().domain([0,y_(v,N=>N.count)??0]).nice().range([g,0]),O=getComputedStyle(document.documentElement),T=O.getPropertyValue("--muted-fg").trim()||"#94a3b8",S=O.getPropertyValue("--accent-color").trim()||"#10b981",A=O.getPropertyValue("--border-color").trim()||"#334155";d.append("g").attr("transform",`translate(0,${g})`).call(Jy(x).ticks(6).tickFormat(Is("%b %y"))).attr("color",T).selectAll("line").attr("stroke",A),d.append("g").call(Fy(_).ticks(5)).attr("color",T).selectAll("line").attr("stroke",A);const j=n4().x(N=>x(N.date)).y0(g).y1(N=>_(N.count)).curve(hy);d.append("path").datum(v).attr("fill",S).attr("fill-opacity",.15).attr("d",j);const U=Ps().x(N=>x(N.date)).y(N=>_(N.count)).curve(hy);d.append("path").datum(v).attr("fill","none").attr("stroke",S).attr("stroke-width",2).attr("d",U)},[n]),z.jsx("svg",{ref:a,className:"w-full"})}const my=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,gy=Gy,s4=(n,a)=>u=>{var r;if((a==null?void 0:a.variants)==null)return gy(n,u==null?void 0:u.class,u==null?void 0:u.className);const{variants:c,defaultVariants:f}=a,h=Object.keys(c).map(d=>{const p=u==null?void 0:u[d],v=f==null?void 0:f[d];if(p===null)return null;const x=my(p)||my(v);return c[d][x]}),m=u&&Object.entries(u).reduce((d,p)=>{let[v,x]=p;return x===void 0||(d[v]=x),d},{}),g=a==null||(r=a.compoundVariants)===null||r===void 0?void 0:r.reduce((d,p)=>{let{class:v,className:x,..._}=p;return Object.entries(_).every(O=>{let[T,S]=O;return Array.isArray(S)?S.includes({...f,...m}[T]):{...f,...m}[T]===S})?[...d,v,x]:d},[]);return gy(n,h,g,u==null?void 0:u.class,u==null?void 0:u.className)},h4=s4("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 yl({className:n,variant:a,...u}){return z.jsx("div",{className:tn(h4({variant:a}),n),...u})}function d4(){const{data:n,loading:a}=pl("/api/stats"),{data:u}=pl("/api/chunks?limit=10");return a||!n?z.jsx(ho,{}):z.jsxs("div",{className:"space-y-6 animate-fade-in",children:[z.jsx("h1",{className:"text-2xl font-bold",children:"Overview"}),z.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[z.jsx(Nr,{label:"Chunks",value:n.chunks,icon:z.jsx(g2,{className:"h-5 w-5"})}),z.jsx(Nr,{label:"Edges",value:n.edges,icon:z.jsx(m2,{className:"h-5 w-5"})}),z.jsx(Nr,{label:"Clusters",value:n.clusters,icon:z.jsx(By,{className:"h-5 w-5"})}),z.jsx(Nr,{label:"Sessions",value:n.sessions,icon:z.jsx(f2,{className:"h-5 w-5"})})]}),n.chunkTimeSeries.length>0&&z.jsxs(Ii,{children:[z.jsx(os,{children:z.jsx(cs,{children:"Chunks Over Time"})}),z.jsx(Pi,{children:z.jsx(f4,{data:n.chunkTimeSeries})})]}),(u==null?void 0:u.chunks)&&u.chunks.length>0&&z.jsxs(Ii,{children:[z.jsx(os,{children:z.jsx(cs,{children:"Recent Activity"})}),z.jsx(Pi,{children:z.jsx("div",{className:"space-y-3",children:u.chunks.map(r=>z.jsxs("div",{className:"flex items-start gap-3 rounded-md border border-border p-3",children:[z.jsxs("div",{className:"flex-1 min-w-0",children:[z.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[z.jsx(yl,{variant:"secondary",children:r.sessionSlug}),z.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(r.startTime).toLocaleDateString()})]}),z.jsx("p",{className:"text-sm text-muted-foreground truncate",children:r.preview})]}),z.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[r.tokenCount," tokens"]})]},r.id))})})]})]})}const yy=["#10b981","#06b6d4","#8b5cf6","#f59e0b","#ef4444","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#0ea5e9","#d946ef","#22c55e","#eab308","#a855f7"];function m4(n,a){if(!n)return"#64748b";const u=a.indexOf(n);return yy[u%yy.length]}function g4({nodes:n,edges:a,onNodeClick:u,selectedNodeId:r,onSvgRef:c}){const f=H.useRef(null),h=H.useRef(null);return H.useEffect(()=>(c&&c(f.current),()=>{c&&c(null)}),[c]),H.useEffect(()=>{if(!f.current||n.length===0)return;const m=je(f.current);m.selectAll("*").remove();const g=f.current.parentElement;if(!g)return;const d=g.clientWidth,p=g.clientHeight||600;m.attr("width",d).attr("height",p).attr("viewBox",`0 0 ${d} ${p}`);const v=[...new Set(n.map(R=>R.cluster).filter(Boolean))],x=Math.max(...n.map(R=>R.degree),1),_=HT().domain([0,x]).range([4,20]),O=n.map(R=>({...R})),T=a.map(R=>({...R})),S=m.append("g"),A=c4().scaleExtent([.1,8]).on("zoom",R=>{S.attr("transform",R.transform)});m.call(A);const j=S.append("g").selectAll("line").data(T).join("line").attr("stroke","#475569").attr("stroke-opacity",R=>Math.max(.1,R.weight*.6)).attr("stroke-width",R=>Math.max(.5,R.weight*2)).attr("stroke-dasharray",R=>R.type==="forward"?"4,3":"none"),U=S.append("g").selectAll("circle").data(O).join("circle").attr("r",R=>_(R.degree)).attr("fill",R=>m4(R.cluster,v)).attr("fill-opacity",.8).attr("stroke",R=>R.root?"#ffffff":"none").attr("stroke-width",R=>R.root?3:0).attr("cursor","pointer").on("click",(R,V)=>u(V));U.append("title").text(R=>`${R.label}
166
+ Project: ${R.project}
167
+ Degree: ${R.degree}`);const N=sw().on("start",(R,V)=>{var tt;R.active||(tt=h.current)==null||tt.alphaTarget(.3).restart(),V.fx=V.x,V.fy=V.y}).on("drag",(R,V)=>{V.fx=R.x,V.fy=R.y}).on("end",(R,V)=>{var tt;R.active||(tt=h.current)==null||tt.alphaTarget(0),V.fx=null,V.fy=null});U.call(N);const $=DM(O).force("link",MM(T).id(R=>R.id).distance(60).strength(R=>R.weight*.3)).force("charge",OM().strength(-120)).force("center",lM(d/2,p/2)).force("collision",SM().radius(R=>_(R.degree)+2)).on("tick",()=>{j.attr("x1",R=>R.source.x??0).attr("y1",R=>R.source.y??0).attr("x2",R=>R.target.x??0).attr("y2",R=>R.target.y??0),U.attr("cx",R=>R.x??0).attr("cy",R=>R.y??0)});return h.current=$,r&&U.attr("fill-opacity",R=>R.id===r?1:.3).attr("stroke",R=>R.id===r?"#ffffff":"none").attr("stroke-width",R=>R.id===r?2:0),()=>{$.stop()}},[n,a,r,u]),z.jsx("svg",{ref:f,className:"w-full h-full"})}function y4({className:n,options:a,placeholder:u,...r}){return z.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:[u&&z.jsx("option",{value:"",children:u}),a.map(c=>z.jsx("option",{value:c.value,children:c.label},c.value))]})}function p4({project:n,onProjectChange:a,limit:u,onLimitChange:r}){const{data:c}=pl("/api/projects"),f=((c==null?void 0:c.projects)??[]).map(h=>({value:h.slug,label:`${h.slug} (${h.chunkCount})`}));return z.jsxs("div",{className:"flex items-center gap-4",children:[z.jsx(y4,{value:n,onChange:h=>a(h.target.value),options:f,placeholder:"All projects",className:"w-60"}),z.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[z.jsx("span",{children:"Nodes:"}),z.jsx("input",{type:"range",min:50,max:500,step:50,value:u,onChange:h=>r(Number(h.target.value)),className:"w-32"}),z.jsx("span",{className:"tabular-nums w-8",children:u})]})]})}function v4({node:n,onClose:a,onExploreNeighborhood:u}){const{data:r}=pl(`/api/edges?chunkId=${n.id}&limit=20`);return z.jsxs("div",{className:"w-80 shrink-0 overflow-y-auto rounded-lg border border-border bg-card p-4 space-y-4",children:[z.jsxs("div",{className:"flex items-center justify-between",children:[z.jsx("h3",{className:"font-semibold",children:"Node Inspector"}),z.jsx("button",{onClick:a,className:"rounded p-1 hover:bg-muted",children:z.jsx(_2,{className:"h-4 w-4"})})]}),z.jsxs("div",{className:"space-y-2 text-sm",children:[z.jsxs("div",{children:[z.jsx("span",{className:"text-muted-foreground",children:"ID: "}),z.jsxs("code",{className:"text-xs",children:[n.id.slice(0,12),"..."]})]}),z.jsxs("div",{children:[z.jsx("span",{className:"text-muted-foreground",children:"Project: "}),z.jsx(yl,{variant:"secondary",children:n.project})]}),n.cluster&&z.jsxs("div",{children:[z.jsx("span",{className:"text-muted-foreground",children:"Cluster: "}),z.jsx(yl,{children:n.cluster.slice(0,8)})]}),z.jsxs("div",{children:[z.jsx("span",{className:"text-muted-foreground",children:"Degree: "}),n.degree]}),n.startTime&&z.jsxs("div",{children:[z.jsx("span",{className:"text-muted-foreground",children:"Time: "}),new Date(n.startTime).toLocaleString()]})]}),z.jsx("div",{className:"text-sm text-muted-foreground border-t border-border pt-3",children:z.jsx("p",{className:"line-clamp-4",children:n.label})}),z.jsxs("button",{onClick:()=>u(n.id),className:"flex w-full items-center justify-center gap-2 rounded-md border border-border px-3 py-2 text-sm hover:bg-muted transition-colors",children:[z.jsx(s2,{className:"h-4 w-4"}),"Explore Neighborhood"]}),r&&r.edges.length>0&&z.jsxs("div",{className:"space-y-2",children:[z.jsxs("h4",{className:"text-sm font-medium",children:["Edges (",r.total,")"]}),z.jsx("div",{className:"space-y-1 max-h-48 overflow-y-auto",children:r.edges.map(c=>z.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[z.jsx(yl,{variant:c.type==="backward"?"default":"outline",className:"text-[10px]",children:c.type}),c.referenceType&&z.jsx("span",{className:"text-muted-foreground",children:c.referenceType}),z.jsx("span",{className:"ml-auto tabular-nums",children:c.weight.toFixed(2)})]},c.id))})]})]})}function x4(){const n=H.useRef(null);return H.useEffect(()=>{if(!n.current)return;const a=je(n.current);a.selectAll("*").remove();const u=n.current.parentElement;if(!u)return;const r=u.clientWidth,c=200,f={top:20,right:120,bottom:40,left:50},h=r-f.left-f.right,m=c-f.top-f.bottom;a.attr("width",r).attr("height",c);const g=a.append("g").attr("transform",`translate(${f.left},${f.top})`),d=25,p=p_(0,d+1),v=p.map(U=>({hop:U,weight:Math.max(0,1-U*.1)})),x=p.map(U=>U<=5?{hop:U,weight:1}:{hop:U,weight:Math.max(0,1-(U-5)*.067)}),_=io().domain([0,d]).range([0,h]),O=io().domain([0,1.05]).range([m,0]),T=getComputedStyle(document.documentElement),S=T.getPropertyValue("--muted-fg").trim()||"#94a3b8";T.getPropertyValue("--border-color").trim(),g.append("g").attr("transform",`translate(0,${m})`).call(Jy(_).ticks(10)).attr("color",S),g.append("g").call(Fy(O).ticks(5)).attr("color",S),g.append("text").attr("x",h/2).attr("y",m+35).attr("text-anchor","middle").attr("fill",S).attr("font-size",12).text("Hops"),g.append("text").attr("transform","rotate(-90)").attr("x",-m/2).attr("y",-35).attr("text-anchor","middle").attr("fill",S).attr("font-size",12).text("Weight");const A=Ps().x(U=>_(U.hop)).y(U=>O(U.weight));g.append("path").datum(v).attr("fill","none").attr("stroke","#06b6d4").attr("stroke-width",2).attr("d",A),g.append("path").datum(x).attr("fill","none").attr("stroke","#f59e0b").attr("stroke-width",2).attr("stroke-dasharray","6,3").attr("d",A);const j=g.append("g").attr("transform",`translate(${h+10}, 10)`);j.append("line").attr("x1",0).attr("y1",0).attr("x2",20).attr("y2",0).attr("stroke","#06b6d4").attr("stroke-width",2),j.append("text").attr("x",25).attr("y",4).attr("fill",S).attr("font-size",11).text("Backward (linear)"),j.append("line").attr("x1",0).attr("y1",20).attr("x2",20).attr("y2",20).attr("stroke","#f59e0b").attr("stroke-width",2).attr("stroke-dasharray","6,3"),j.append("text").attr("x",25).attr("y",24).attr("fill",S).attr("font-size",11).text("Forward (delayed)")},[]),z.jsx("svg",{ref:n,className:"w-full"})}function b4({svgRef:n}){const a=()=>{if(!n)return;const r=new XMLSerializer().serializeToString(n),c=new Blob([r],{type:"image/svg+xml;charset=utf-8"}),f=URL.createObjectURL(c),h=document.createElement("a");h.href=f,h.download="causantic-graph.svg",document.body.appendChild(h),h.click(),document.body.removeChild(h),URL.revokeObjectURL(f)};return z.jsxs("button",{onClick:a,disabled:!n,className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-sm hover:bg-muted transition-colors disabled:opacity-50",children:[z.jsx(h2,{className:"h-4 w-4"}),"Export SVG"]})}function _4(){const[n,a]=H.useState(""),[u,r]=H.useState(300),[c,f]=H.useState(null),[h,m]=H.useState(null),[g,d]=H.useState(!1),[p,v]=H.useState(null),x=h?`/api/graph/neighborhood?chunkId=${h}&hops=2`:`/api/graph?limit=${u}${n?`&project=${n}`:""}`,{data:_,loading:O}=pl(x),T=H.useCallback(j=>{f(j)},[]),S=H.useCallback(j=>{m(j),f(null)},[]),A=H.useCallback(()=>{m(null),f(null)},[]);return z.jsxs("div",{className:"flex h-[calc(100vh-8rem)] flex-col gap-4 animate-fade-in",children:[z.jsxs("div",{className:"flex items-center justify-between",children:[z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("h1",{className:"text-2xl font-bold",children:"Graph Explorer"}),h&&z.jsx("button",{onClick:A,className:"rounded-md border border-border px-3 py-1 text-sm hover:bg-muted transition-colors",children:"Back to full graph"})]}),z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx(b4,{svgRef:p}),z.jsxs("button",{onClick:()=>d(!g),className:"rounded-md border border-border px-3 py-1.5 text-sm hover:bg-muted transition-colors",children:[g?"Hide":"Show"," Decay Curves"]})]})]}),z.jsx(p4,{project:n,onProjectChange:a,limit:u,onLimitChange:r}),z.jsxs("div",{className:"flex flex-1 gap-4 min-h-0",children:[z.jsx("div",{className:"flex-1 rounded-lg border border-border bg-card overflow-hidden relative",children:O?z.jsx(ho,{}):_?z.jsx(g4,{nodes:_.nodes,edges:_.edges,onNodeClick:T,selectedNodeId:(c==null?void 0:c.id)??null,onSvgRef:v}):z.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:"No graph data available"})}),c&&z.jsx(v4,{node:c,onClose:()=>f(null),onExploreNeighborhood:S})]}),g&&z.jsx("div",{className:"rounded-lg border border-border bg-card p-4",children:z.jsx(x4,{})})]})}const Lr=["#10b981","#06b6d4","#8b5cf6","#f59e0b","#ef4444","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#0ea5e9","#d946ef","#22c55e","#eab308","#a855f7"];function S4({clusters:n}){const a=H.useRef(null);return H.useEffect(()=>{if(!a.current||n.length===0)return;const u=je(a.current);u.selectAll("*").remove();const r=a.current.parentElement;if(!r)return;const c=r.clientWidth,f=r.clientHeight||360;u.attr("width",c).attr("height",f);const h=TT().size([c,f]).padding(6),m=Vs({children:n}).sum(x=>"memberCount"in x?x.memberCount:0),g=h(m),p=getComputedStyle(document.documentElement).getPropertyValue("--fg").trim()||"#e2e8f0",v=u.selectAll("g").data(g.leaves()).join("g").attr("transform",x=>`translate(${x.x},${x.y})`);v.append("circle").attr("r",x=>x.r).attr("fill",(x,_)=>Lr[_%Lr.length]).attr("fill-opacity",.7).attr("stroke",(x,_)=>Lr[_%Lr.length]).attr("stroke-width",1),v.filter(x=>x.r>30).append("text").attr("text-anchor","middle").attr("dy","-0.3em").attr("fill",p).attr("font-size",x=>Math.min(14,x.r/3)).attr("font-weight",600).text(x=>{var _;return((_=x.data.name)==null?void 0:_.slice(0,20))??x.data.id.slice(0,8)}),v.filter(x=>x.r>30).append("text").attr("text-anchor","middle").attr("dy","1.1em").attr("fill",p).attr("fill-opacity",.7).attr("font-size",x=>Math.min(11,x.r/4)).text(x=>`${x.data.memberCount} chunks`),v.append("title").text(x=>{const _=x.data;return`${_.name??_.id}
168
+ ${_.memberCount} chunks`})},[n]),z.jsx("svg",{ref:a,className:"w-full h-full"})}function w4({cluster:n}){const[a,u]=H.useState(!1);return z.jsxs(Ii,{children:[z.jsxs(os,{className:"cursor-pointer",onClick:()=>u(!a),children:[z.jsxs("div",{className:"flex items-center justify-between",children:[z.jsx(cs,{className:"text-base",children:n.name??n.id.slice(0,12)}),z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsxs(yl,{variant:"secondary",children:[n.memberCount," chunks"]}),a?z.jsx(c2,{className:"h-4 w-4"}):z.jsx(o2,{className:"h-4 w-4"})]})]}),n.description&&z.jsx(i_,{className:"line-clamp-2",children:n.description})]}),a&&z.jsxs(Pi,{children:[z.jsx("div",{className:"mb-3 h-2 rounded-full bg-muted overflow-hidden",children:z.jsx("div",{className:"h-full rounded-full bg-accent transition-all",style:{width:`${Math.min(100,n.memberCount*2)}%`}})}),n.exemplarPreviews.length>0&&z.jsxs("div",{className:"space-y-2",children:[z.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Exemplar Chunks"}),n.exemplarPreviews.map(r=>z.jsxs("div",{className:"rounded border border-border p-2 text-xs text-muted-foreground",children:[z.jsx("code",{className:"text-[10px]",children:r.id.slice(0,8)}),z.jsx("p",{className:"mt-1 line-clamp-2",children:r.preview})]},r.id))]})]})]})}function M4(){const{data:n,loading:a}=pl("/api/clusters");if(a||!n)return z.jsx(ho,{});const u=n.clusters;return z.jsxs("div",{className:"space-y-6 animate-fade-in",children:[z.jsx("h1",{className:"text-2xl font-bold",children:"Clusters"}),u.length===0?z.jsx("div",{className:"text-muted-foreground",children:"No clusters found. Run clustering first."}):z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"rounded-lg border border-border bg-card p-4",style:{height:400},children:z.jsx(S4,{clusters:u})}),z.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:u.map(r=>z.jsx(w4,{cluster:r},r.id))})]})]})}function T4({className:n,...a}){return z.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 E4({onSearch:n,debounceMs:a=400}){const[u,r]=H.useState(""),c=H.useRef(null);return H.useEffect(()=>(c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{n(u)},a),()=>{c.current&&clearTimeout(c.current)}),[u,a,n]),z.jsxs("div",{className:"relative max-w-xl",children:[z.jsx(qy,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),z.jsx(T4,{value:u,onChange:f=>r(f.target.value),placeholder:"Search memory...",className:"pl-10"})]})}function as({title:n,results:a,color:u,allIds:r}){const c=f=>{let h=0;return r.has(`v:${f}`)&&h++,r.has(`k:${f}`)&&h++,h};return z.jsxs("div",{className:"flex-1 min-w-0",children:[z.jsxs("h3",{className:"mb-3 text-sm font-semibold",style:{color:u},children:[n,z.jsxs("span",{className:"ml-2 text-muted-foreground font-normal",children:["(",a.length,")"]})]}),z.jsxs("div",{className:"space-y-2",children:[a.map((f,h)=>{const m=c(f.id);return z.jsxs("div",{className:"rounded-md border border-border p-3 space-y-1",children:[z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsxs("span",{className:"text-xs font-medium text-muted-foreground",children:["#",h+1]}),z.jsx("span",{className:"text-xs tabular-nums font-mono",style:{color:u},children:f.score.toFixed(4)}),m>1&&z.jsx(yl,{variant:"default",className:"text-[10px] px-1.5 py-0",children:"boosted"}),z.jsx(yl,{variant:"secondary",className:"text-[10px] ml-auto",children:f.sessionSlug})]}),z.jsx("p",{className:"text-xs text-muted-foreground line-clamp-3",children:f.preview})]},f.id)}),a.length===0&&z.jsx("div",{className:"text-sm text-muted-foreground italic",children:"No results"})]})]})}function A4({data:n}){const a=new Set;return n.vector.forEach(u=>a.add(`v:${u.id}`)),n.keyword.forEach(u=>a.add(`k:${u.id}`)),z.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[z.jsx(as,{title:"Vector",results:n.vector,color:"#8b5cf6",allIds:a}),z.jsx(as,{title:"Keyword (BM25)",results:n.keyword,color:"#06b6d4",allIds:a}),z.jsx(as,{title:"Fused (RRF)",results:n.fused,color:"#10b981",allIds:a})]})}function z4(){const[n,a]=H.useState(""),[u,r]=H.useState(null),{data:c,loading:f}=pl(u),h=H.useCallback(m=>{a(m),m.trim()?r(`/api/search/compare?q=${encodeURIComponent(m.trim())}`):r(null)},[]);return z.jsxs("div",{className:"space-y-6 animate-fade-in",children:[z.jsx("h1",{className:"text-2xl font-bold",children:"Hybrid Search Pipeline"}),z.jsx("p",{className:"text-muted-foreground",children:"Compare vector, keyword (BM25), and fused (RRF) search results side by side."}),z.jsx(E4,{onSearch:h}),f&&z.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[z.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-muted border-t-accent"}),"Searching..."]}),c&&z.jsx(A4,{data:c}),!c&&!f&&n&&z.jsx("div",{className:"text-muted-foreground",children:"No results found."})]})}function N4(){const{data:n,loading:a}=pl("/api/projects");return a||!n?z.jsx(ho,{}):z.jsxs("div",{className:"space-y-6 animate-fade-in",children:[z.jsx("h1",{className:"text-2xl font-bold",children:"Projects"}),n.projects.length===0?z.jsx("div",{className:"text-muted-foreground",children:"No projects found."}):z.jsx(Ii,{children:z.jsx(Pi,{className:"p-0",children:z.jsx("div",{className:"overflow-x-auto",children:z.jsxs("table",{className:"w-full text-sm",children:[z.jsx("thead",{children:z.jsxs("tr",{className:"border-b border-border",children:[z.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"Project"}),z.jsx("th",{className:"px-4 py-3 text-right font-medium text-muted-foreground",children:"Chunks"}),z.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"First Seen"}),z.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"Last Seen"})]})}),z.jsx("tbody",{children:n.projects.map(u=>z.jsxs("tr",{className:"border-b border-border last:border-0 hover:bg-muted/50 transition-colors",children:[z.jsx("td",{className:"px-4 py-3",children:z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("span",{className:"font-medium",children:u.slug}),u.path&&z.jsx("span",{className:"text-xs text-muted-foreground truncate max-w-[200px]",children:u.path})]})}),z.jsx("td",{className:"px-4 py-3 text-right",children:z.jsx(yl,{variant:"secondary",children:u.chunkCount})}),z.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:new Date(u.firstSeen).toLocaleDateString()}),z.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:new Date(u.lastSeen).toLocaleDateString()})]},u.slug))})]})})})})]})}function C4(){return z.jsx(Jb,{children:z.jsx(Tb,{children:z.jsxs(Hl,{element:z.jsx(l_,{}),children:[z.jsx(Hl,{path:"/",element:z.jsx(d4,{})}),z.jsx(Hl,{path:"/graph",element:z.jsx(_4,{})}),z.jsx(Hl,{path:"/clusters",element:z.jsx(M4,{})}),z.jsx(Hl,{path:"/search",element:z.jsx(z4,{})}),z.jsx(Hl,{path:"/projects",element:z.jsx(N4,{})})]})})})}Mx.createRoot(document.getElementById("root")).render(z.jsx(H.StrictMode,{children:z.jsx(C4,{})}));