@rpamis/comet 0.4.0-beta.11 → 0.4.0-beta.13

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 (514) hide show
  1. package/README.md +1 -1
  2. package/assets/manifest.json +15 -1
  3. package/assets/skills/comet/SKILL.md +10 -12
  4. package/assets/skills/comet/reference/classic-layout.md +2 -2
  5. package/assets/skills/comet/reference/comet-yaml-fields.md +1 -1
  6. package/assets/skills/comet/reference/context-recovery.md +3 -3
  7. package/assets/skills/comet/reference/decision-point.md +4 -5
  8. package/assets/skills/comet/reference/scripts.md +17 -47
  9. package/assets/skills/comet/reference/subagent-dispatch.md +8 -8
  10. package/assets/skills/comet/rules/comet-phase-guard.en.md +2 -2
  11. package/assets/skills/comet/rules/comet-phase-guard.md +2 -2
  12. package/assets/skills/comet/rules/comet-workflow-guard.en.md +4 -3
  13. package/assets/skills/comet/rules/comet-workflow-guard.md +4 -3
  14. package/assets/skills/comet/scripts/comet-archive.mjs +165 -2
  15. package/assets/skills/comet/scripts/comet-entry-runtime.mjs +146 -8071
  16. package/assets/skills/comet/scripts/comet-guard.mjs +207 -2
  17. package/assets/skills/comet/scripts/comet-handoff.mjs +165 -2
  18. package/assets/skills/comet/scripts/comet-hook-guard.mjs +151 -2
  19. package/assets/skills/comet/scripts/comet-hook-router.mjs +155 -12083
  20. package/assets/skills/comet/scripts/comet-intent.mjs +10 -2
  21. package/assets/skills/comet/scripts/comet-resume-probe.mjs +148 -2
  22. package/assets/skills/comet/scripts/comet-runtime.mjs +286 -19192
  23. package/assets/skills/comet/scripts/comet-state.mjs +164 -2
  24. package/assets/skills/comet/scripts/comet-yaml-validate.mjs +149 -2
  25. package/assets/skills/comet-archive/SKILL.md +1 -1
  26. package/assets/skills/comet-build/SKILL.md +13 -14
  27. package/assets/skills/comet-classic/SKILL.md +9 -9
  28. package/assets/skills/comet-design/SKILL.md +4 -4
  29. package/assets/skills/comet-hotfix/SKILL.md +2 -2
  30. package/assets/skills/comet-native/SKILL.md +35 -22
  31. package/assets/skills/comet-native/reference/artifacts.md +0 -7
  32. package/assets/skills/comet-native/reference/clarification.md +1 -1
  33. package/assets/skills/comet-native/reference/commands.md +69 -57
  34. package/assets/skills/comet-native/reference/recovery.md +11 -1
  35. package/assets/skills/comet-native/scripts/comet-native-archive.mjs +178 -0
  36. package/assets/skills/comet-native/scripts/comet-native-check.mjs +173 -0
  37. package/assets/skills/comet-native/scripts/comet-native-checkpoint.mjs +179 -0
  38. package/assets/skills/comet-native/scripts/comet-native-doctor.mjs +207 -0
  39. package/assets/skills/comet-native/scripts/comet-native-evidence.mjs +151 -0
  40. package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +150 -2
  41. package/assets/skills/comet-native/scripts/comet-native-init.mjs +171 -0
  42. package/assets/skills/comet-native/scripts/comet-native-new.mjs +200 -0
  43. package/assets/skills/comet-native/scripts/comet-native-next.mjs +182 -0
  44. package/assets/skills/comet-native/scripts/comet-native-receipt.mjs +179 -0
  45. package/assets/skills/comet-native/scripts/comet-native-root.mjs +185 -0
  46. package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +229 -34143
  47. package/assets/skills/comet-native/scripts/comet-native-select.mjs +178 -0
  48. package/assets/skills/comet-native/scripts/comet-native-show.mjs +151 -0
  49. package/assets/skills/comet-native/scripts/comet-native-spec.mjs +181 -0
  50. package/assets/skills/comet-native/scripts/comet-native-status.mjs +175 -0
  51. package/assets/skills/comet-tweak/SKILL.md +2 -2
  52. package/assets/skills/comet-verify/SKILL.md +3 -3
  53. package/assets/skills-zh/comet/SKILL.md +10 -12
  54. package/assets/skills-zh/comet/reference/classic-layout.md +2 -2
  55. package/assets/skills-zh/comet/reference/comet-yaml-fields.md +1 -1
  56. package/assets/skills-zh/comet/reference/context-recovery.md +3 -3
  57. package/assets/skills-zh/comet/reference/decision-point.md +4 -5
  58. package/assets/skills-zh/comet/reference/scripts.md +9 -39
  59. package/assets/skills-zh/comet/reference/subagent-dispatch.md +8 -8
  60. package/assets/skills-zh/comet-archive/SKILL.md +1 -1
  61. package/assets/skills-zh/comet-build/SKILL.md +13 -14
  62. package/assets/skills-zh/comet-classic/SKILL.md +7 -7
  63. package/assets/skills-zh/comet-design/SKILL.md +5 -5
  64. package/assets/skills-zh/comet-hotfix/SKILL.md +2 -2
  65. package/assets/skills-zh/comet-native/SKILL.md +35 -22
  66. package/assets/skills-zh/comet-native/reference/artifacts.md +0 -7
  67. package/assets/skills-zh/comet-native/reference/clarification.md +1 -1
  68. package/assets/skills-zh/comet-native/reference/commands.md +69 -57
  69. package/assets/skills-zh/comet-native/reference/recovery.md +11 -1
  70. package/assets/skills-zh/comet-tweak/SKILL.md +2 -2
  71. package/assets/skills-zh/comet-verify/SKILL.md +3 -3
  72. package/bin/comet.js +5 -1
  73. package/bin/fast-runtime-router.js +82 -0
  74. package/dist/app/cli/index.js +57 -18
  75. package/dist/app/cli/index.js.map +1 -1
  76. package/dist/app/commands/classic.js +2 -2
  77. package/dist/app/commands/classic.js.map +1 -1
  78. package/dist/app/commands/dashboard.d.ts.map +1 -1
  79. package/dist/app/commands/dashboard.js +2 -1
  80. package/dist/app/commands/dashboard.js.map +1 -1
  81. package/dist/app/commands/doctor.d.ts.map +1 -1
  82. package/dist/app/commands/doctor.js +9 -3
  83. package/dist/app/commands/doctor.js.map +1 -1
  84. package/dist/app/commands/i18n.d.ts +1 -1
  85. package/dist/app/commands/i18n.d.ts.map +1 -1
  86. package/dist/app/commands/i18n.js +10 -0
  87. package/dist/app/commands/i18n.js.map +1 -1
  88. package/dist/app/commands/init.d.ts.map +1 -1
  89. package/dist/app/commands/init.js +9 -5
  90. package/dist/app/commands/init.js.map +1 -1
  91. package/dist/app/commands/uninstall.d.ts.map +1 -1
  92. package/dist/app/commands/uninstall.js +150 -8
  93. package/dist/app/commands/uninstall.js.map +1 -1
  94. package/dist/app/commands/update.d.ts +1 -0
  95. package/dist/app/commands/update.d.ts.map +1 -1
  96. package/dist/app/commands/update.js +166 -24
  97. package/dist/app/commands/update.js.map +1 -1
  98. package/dist/config/repository-layout.json +33 -6
  99. package/dist/domains/comet-classic/classic-archive-entry.js +1 -1
  100. package/dist/domains/comet-classic/classic-archive-entry.js.map +1 -1
  101. package/dist/domains/comet-classic/classic-branch-binding.d.ts.map +1 -1
  102. package/dist/domains/comet-classic/classic-branch-binding.js +8 -2
  103. package/dist/domains/comet-classic/classic-branch-binding.js.map +1 -1
  104. package/dist/domains/comet-classic/classic-current-change.d.ts.map +1 -1
  105. package/dist/domains/comet-classic/classic-current-change.js +6 -1
  106. package/dist/domains/comet-classic/classic-current-change.js.map +1 -1
  107. package/dist/domains/comet-classic/classic-guard-entry.js +1 -1
  108. package/dist/domains/comet-classic/classic-guard-entry.js.map +1 -1
  109. package/dist/domains/comet-classic/classic-guard.js +1 -1
  110. package/dist/domains/comet-classic/classic-guard.js.map +1 -1
  111. package/dist/domains/comet-classic/classic-handoff-entry.js +1 -1
  112. package/dist/domains/comet-classic/classic-handoff-entry.js.map +1 -1
  113. package/dist/domains/comet-classic/classic-hook-guard-entry.js +1 -1
  114. package/dist/domains/comet-classic/classic-hook-guard-entry.js.map +1 -1
  115. package/dist/domains/comet-classic/classic-hook-guard.d.ts.map +1 -1
  116. package/dist/domains/comet-classic/classic-hook-guard.js +7 -4
  117. package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
  118. package/dist/domains/comet-classic/classic-intent-entry.js +1 -1
  119. package/dist/domains/comet-classic/classic-intent-entry.js.map +1 -1
  120. package/dist/domains/comet-classic/classic-layout-initialization.d.ts.map +1 -1
  121. package/dist/domains/comet-classic/classic-layout-initialization.js +18 -11
  122. package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -1
  123. package/dist/domains/comet-classic/classic-layout.d.ts +7 -4
  124. package/dist/domains/comet-classic/classic-layout.d.ts.map +1 -1
  125. package/dist/domains/comet-classic/classic-layout.js +9 -9
  126. package/dist/domains/comet-classic/classic-layout.js.map +1 -1
  127. package/dist/domains/comet-classic/classic-resume-probe-entry.js +1 -1
  128. package/dist/domains/comet-classic/classic-resume-probe-entry.js.map +1 -1
  129. package/dist/domains/comet-classic/classic-root-command.d.ts +4 -1
  130. package/dist/domains/comet-classic/classic-root-command.d.ts.map +1 -1
  131. package/dist/domains/comet-classic/classic-root-command.js +159 -49
  132. package/dist/domains/comet-classic/classic-root-command.js.map +1 -1
  133. package/dist/domains/comet-classic/classic-root-move.d.ts +0 -1
  134. package/dist/domains/comet-classic/classic-root-move.d.ts.map +1 -1
  135. package/dist/domains/comet-classic/classic-root-move.js +24 -121
  136. package/dist/domains/comet-classic/classic-root-move.js.map +1 -1
  137. package/dist/domains/comet-classic/classic-script-entry.d.ts +2 -2
  138. package/dist/domains/comet-classic/classic-script-entry.d.ts.map +1 -1
  139. package/dist/domains/comet-classic/classic-script-entry.js +4 -3
  140. package/dist/domains/comet-classic/classic-script-entry.js.map +1 -1
  141. package/dist/domains/comet-classic/classic-state-command.js +6 -6
  142. package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
  143. package/dist/domains/comet-classic/classic-state-entry.js +1 -1
  144. package/dist/domains/comet-classic/classic-state-entry.js.map +1 -1
  145. package/dist/domains/comet-classic/classic-validate-entry.js +1 -1
  146. package/dist/domains/comet-classic/classic-validate-entry.js.map +1 -1
  147. package/dist/domains/comet-entry/current-selection-repair.js +1 -1
  148. package/dist/domains/comet-entry/current-selection-repair.js.map +1 -1
  149. package/dist/domains/comet-entry/entry-reads.d.ts +17 -0
  150. package/dist/domains/comet-entry/entry-reads.d.ts.map +1 -0
  151. package/dist/domains/comet-entry/entry-reads.js +20 -0
  152. package/dist/domains/comet-entry/entry-reads.js.map +1 -0
  153. package/dist/domains/comet-entry/hook-router-entry.d.ts.map +1 -1
  154. package/dist/domains/comet-entry/hook-router-entry.js +3 -1
  155. package/dist/domains/comet-entry/hook-router-entry.js.map +1 -1
  156. package/dist/domains/comet-entry/hook-router.d.ts +12 -2
  157. package/dist/domains/comet-entry/hook-router.d.ts.map +1 -1
  158. package/dist/domains/comet-entry/hook-router.js +48 -17
  159. package/dist/domains/comet-entry/hook-router.js.map +1 -1
  160. package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -1
  161. package/dist/domains/comet-entry/init-workflow.js +7 -8
  162. package/dist/domains/comet-entry/init-workflow.js.map +1 -1
  163. package/dist/domains/comet-entry/resolve-entry.d.ts.map +1 -1
  164. package/dist/domains/comet-entry/resolve-entry.js +3 -4
  165. package/dist/domains/comet-entry/resolve-entry.js.map +1 -1
  166. package/dist/domains/comet-entry/resume-probe.d.ts.map +1 -1
  167. package/dist/domains/comet-entry/resume-probe.js +16 -5
  168. package/dist/domains/comet-entry/resume-probe.js.map +1 -1
  169. package/dist/domains/comet-native/native-acceptance.d.ts +1 -2
  170. package/dist/domains/comet-native/native-acceptance.d.ts.map +1 -1
  171. package/dist/domains/comet-native/native-acceptance.js +5 -29
  172. package/dist/domains/comet-native/native-acceptance.js.map +1 -1
  173. package/dist/domains/comet-native/native-archive-command.d.ts +3 -0
  174. package/dist/domains/comet-native/native-archive-command.d.ts.map +1 -0
  175. package/dist/domains/comet-native/native-archive-command.js +49 -0
  176. package/dist/domains/comet-native/native-archive-command.js.map +1 -0
  177. package/dist/domains/comet-native/native-archive-entry.d.ts +2 -0
  178. package/dist/domains/comet-native/native-archive-entry.d.ts.map +1 -0
  179. package/dist/domains/comet-native/native-archive-entry.js +4 -0
  180. package/dist/domains/comet-native/native-archive-entry.js.map +1 -0
  181. package/dist/domains/comet-native/native-check-command.d.ts +3 -0
  182. package/dist/domains/comet-native/native-check-command.d.ts.map +1 -0
  183. package/dist/domains/comet-native/native-check-command.js +30 -0
  184. package/dist/domains/comet-native/native-check-command.js.map +1 -0
  185. package/dist/domains/comet-native/native-check-entry.d.ts +2 -0
  186. package/dist/domains/comet-native/native-check-entry.d.ts.map +1 -0
  187. package/dist/domains/comet-native/native-check-entry.js +4 -0
  188. package/dist/domains/comet-native/native-check-entry.js.map +1 -0
  189. package/dist/domains/comet-native/native-checkpoint-command.d.ts +3 -0
  190. package/dist/domains/comet-native/native-checkpoint-command.d.ts.map +1 -0
  191. package/dist/domains/comet-native/native-checkpoint-command.js +39 -0
  192. package/dist/domains/comet-native/native-checkpoint-command.js.map +1 -0
  193. package/dist/domains/comet-native/native-checkpoint-entry.d.ts +2 -0
  194. package/dist/domains/comet-native/native-checkpoint-entry.d.ts.map +1 -0
  195. package/dist/domains/comet-native/native-checkpoint-entry.js +4 -0
  196. package/dist/domains/comet-native/native-checkpoint-entry.js.map +1 -0
  197. package/dist/domains/comet-native/native-cli-shared.d.ts +40 -0
  198. package/dist/domains/comet-native/native-cli-shared.d.ts.map +1 -0
  199. package/dist/domains/comet-native/native-cli-shared.js +272 -0
  200. package/dist/domains/comet-native/native-cli-shared.js.map +1 -0
  201. package/dist/domains/comet-native/native-cli.d.ts +2 -5
  202. package/dist/domains/comet-native/native-cli.d.ts.map +1 -1
  203. package/dist/domains/comet-native/native-cli.js +37 -1228
  204. package/dist/domains/comet-native/native-cli.js.map +1 -1
  205. package/dist/domains/comet-native/native-continuation.d.ts.map +1 -1
  206. package/dist/domains/comet-native/native-continuation.js +34 -5
  207. package/dist/domains/comet-native/native-continuation.js.map +1 -1
  208. package/dist/domains/comet-native/native-doctor-command.d.ts +3 -0
  209. package/dist/domains/comet-native/native-doctor-command.d.ts.map +1 -0
  210. package/dist/domains/comet-native/native-doctor-command.js +29 -0
  211. package/dist/domains/comet-native/native-doctor-command.js.map +1 -0
  212. package/dist/domains/comet-native/native-doctor-entry.d.ts +2 -0
  213. package/dist/domains/comet-native/native-doctor-entry.d.ts.map +1 -0
  214. package/dist/domains/comet-native/native-doctor-entry.js +4 -0
  215. package/dist/domains/comet-native/native-doctor-entry.js.map +1 -0
  216. package/dist/domains/comet-native/native-evidence-command.d.ts +3 -0
  217. package/dist/domains/comet-native/native-evidence-command.d.ts.map +1 -0
  218. package/dist/domains/comet-native/native-evidence-command.js +35 -0
  219. package/dist/domains/comet-native/native-evidence-command.js.map +1 -0
  220. package/dist/domains/comet-native/native-evidence-entry.d.ts +2 -0
  221. package/dist/domains/comet-native/native-evidence-entry.d.ts.map +1 -0
  222. package/dist/domains/comet-native/native-evidence-entry.js +4 -0
  223. package/dist/domains/comet-native/native-evidence-entry.js.map +1 -0
  224. package/dist/domains/comet-native/native-evidence-retention.d.ts.map +1 -1
  225. package/dist/domains/comet-native/native-evidence-retention.js +5 -21
  226. package/dist/domains/comet-native/native-evidence-retention.js.map +1 -1
  227. package/dist/domains/comet-native/native-evidence-storage.d.ts +19 -14
  228. package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -1
  229. package/dist/domains/comet-native/native-evidence-storage.js +91 -46
  230. package/dist/domains/comet-native/native-evidence-storage.js.map +1 -1
  231. package/dist/domains/comet-native/native-findings.d.ts.map +1 -1
  232. package/dist/domains/comet-native/native-findings.js +24 -4
  233. package/dist/domains/comet-native/native-findings.js.map +1 -1
  234. package/dist/domains/comet-native/native-hook-guard-command.d.ts +3 -0
  235. package/dist/domains/comet-native/native-hook-guard-command.d.ts.map +1 -0
  236. package/dist/domains/comet-native/native-hook-guard-command.js +32 -0
  237. package/dist/domains/comet-native/native-hook-guard-command.js.map +1 -0
  238. package/dist/domains/comet-native/native-hook-guard-entry.d.ts +2 -0
  239. package/dist/domains/comet-native/native-hook-guard-entry.d.ts.map +1 -0
  240. package/dist/domains/comet-native/native-hook-guard-entry.js +4 -0
  241. package/dist/domains/comet-native/native-hook-guard-entry.js.map +1 -0
  242. package/dist/domains/comet-native/native-hook-guard.d.ts.map +1 -1
  243. package/dist/domains/comet-native/native-hook-guard.js +7 -1
  244. package/dist/domains/comet-native/native-hook-guard.js.map +1 -1
  245. package/dist/domains/comet-native/native-init-command.d.ts +3 -0
  246. package/dist/domains/comet-native/native-init-command.d.ts.map +1 -0
  247. package/dist/domains/comet-native/native-init-command.js +29 -0
  248. package/dist/domains/comet-native/native-init-command.js.map +1 -0
  249. package/dist/domains/comet-native/native-init-entry.d.ts +2 -0
  250. package/dist/domains/comet-native/native-init-entry.d.ts.map +1 -0
  251. package/dist/domains/comet-native/native-init-entry.js +4 -0
  252. package/dist/domains/comet-native/native-init-entry.js.map +1 -0
  253. package/dist/domains/comet-native/native-new-command.d.ts +3 -0
  254. package/dist/domains/comet-native/native-new-command.d.ts.map +1 -0
  255. package/dist/domains/comet-native/native-new-command.js +35 -0
  256. package/dist/domains/comet-native/native-new-command.js.map +1 -0
  257. package/dist/domains/comet-native/native-new-entry.d.ts +2 -0
  258. package/dist/domains/comet-native/native-new-entry.d.ts.map +1 -0
  259. package/dist/domains/comet-native/native-new-entry.js +4 -0
  260. package/dist/domains/comet-native/native-new-entry.js.map +1 -0
  261. package/dist/domains/comet-native/native-next-command.d.ts +3 -0
  262. package/dist/domains/comet-native/native-next-command.d.ts.map +1 -0
  263. package/dist/domains/comet-native/native-next-command.js +82 -0
  264. package/dist/domains/comet-native/native-next-command.js.map +1 -0
  265. package/dist/domains/comet-native/native-next-entry.d.ts +2 -0
  266. package/dist/domains/comet-native/native-next-entry.d.ts.map +1 -0
  267. package/dist/domains/comet-native/native-next-entry.js +4 -0
  268. package/dist/domains/comet-native/native-next-entry.js.map +1 -0
  269. package/dist/domains/comet-native/native-receipt-command.d.ts +3 -0
  270. package/dist/domains/comet-native/native-receipt-command.d.ts.map +1 -0
  271. package/dist/domains/comet-native/native-receipt-command.js +107 -0
  272. package/dist/domains/comet-native/native-receipt-command.js.map +1 -0
  273. package/dist/domains/comet-native/native-receipt-entry.d.ts +2 -0
  274. package/dist/domains/comet-native/native-receipt-entry.d.ts.map +1 -0
  275. package/dist/domains/comet-native/native-receipt-entry.js +4 -0
  276. package/dist/domains/comet-native/native-receipt-entry.js.map +1 -0
  277. package/dist/domains/comet-native/native-receipt-refresh.d.ts +86 -0
  278. package/dist/domains/comet-native/native-receipt-refresh.d.ts.map +1 -0
  279. package/dist/domains/comet-native/native-receipt-refresh.js +232 -0
  280. package/dist/domains/comet-native/native-receipt-refresh.js.map +1 -0
  281. package/dist/domains/comet-native/native-repair-integration.d.ts +1 -3
  282. package/dist/domains/comet-native/native-repair-integration.d.ts.map +1 -1
  283. package/dist/domains/comet-native/native-repair-integration.js +12 -15
  284. package/dist/domains/comet-native/native-repair-integration.js.map +1 -1
  285. package/dist/domains/comet-native/native-repair-runtime.d.ts +0 -1
  286. package/dist/domains/comet-native/native-repair-runtime.d.ts.map +1 -1
  287. package/dist/domains/comet-native/native-repair-runtime.js +3 -10
  288. package/dist/domains/comet-native/native-repair-runtime.js.map +1 -1
  289. package/dist/domains/comet-native/native-repair-stagnation.d.ts +1 -9
  290. package/dist/domains/comet-native/native-repair-stagnation.d.ts.map +1 -1
  291. package/dist/domains/comet-native/native-repair-stagnation.js +4 -14
  292. package/dist/domains/comet-native/native-repair-stagnation.js.map +1 -1
  293. package/dist/domains/comet-native/native-root-command.d.ts +3 -0
  294. package/dist/domains/comet-native/native-root-command.d.ts.map +1 -0
  295. package/dist/domains/comet-native/native-root-command.js +29 -0
  296. package/dist/domains/comet-native/native-root-command.js.map +1 -0
  297. package/dist/domains/comet-native/native-root-entry.d.ts +2 -0
  298. package/dist/domains/comet-native/native-root-entry.d.ts.map +1 -0
  299. package/dist/domains/comet-native/native-root-entry.js +4 -0
  300. package/dist/domains/comet-native/native-root-entry.js.map +1 -0
  301. package/dist/domains/comet-native/native-script-entry.d.ts +12 -0
  302. package/dist/domains/comet-native/native-script-entry.d.ts.map +1 -0
  303. package/dist/domains/comet-native/native-script-entry.js +44 -0
  304. package/dist/domains/comet-native/native-script-entry.js.map +1 -0
  305. package/dist/domains/comet-native/native-select-command.d.ts +3 -0
  306. package/dist/domains/comet-native/native-select-command.d.ts.map +1 -0
  307. package/dist/domains/comet-native/native-select-command.js +15 -0
  308. package/dist/domains/comet-native/native-select-command.js.map +1 -0
  309. package/dist/domains/comet-native/native-select-entry.d.ts +2 -0
  310. package/dist/domains/comet-native/native-select-entry.d.ts.map +1 -0
  311. package/dist/domains/comet-native/native-select-entry.js +4 -0
  312. package/dist/domains/comet-native/native-select-entry.js.map +1 -0
  313. package/dist/domains/comet-native/native-show-command.d.ts +3 -0
  314. package/dist/domains/comet-native/native-show-command.d.ts.map +1 -0
  315. package/dist/domains/comet-native/native-show-command.js +41 -0
  316. package/dist/domains/comet-native/native-show-command.js.map +1 -0
  317. package/dist/domains/comet-native/native-show-entry.d.ts +2 -0
  318. package/dist/domains/comet-native/native-show-entry.d.ts.map +1 -0
  319. package/dist/domains/comet-native/native-show-entry.js +4 -0
  320. package/dist/domains/comet-native/native-show-entry.js.map +1 -0
  321. package/dist/domains/comet-native/native-snapshot.d.ts +9 -0
  322. package/dist/domains/comet-native/native-snapshot.d.ts.map +1 -1
  323. package/dist/domains/comet-native/native-snapshot.js +141 -45
  324. package/dist/domains/comet-native/native-snapshot.js.map +1 -1
  325. package/dist/domains/comet-native/native-spec-command.d.ts +3 -0
  326. package/dist/domains/comet-native/native-spec-command.d.ts.map +1 -0
  327. package/dist/domains/comet-native/native-spec-command.js +34 -0
  328. package/dist/domains/comet-native/native-spec-command.js.map +1 -0
  329. package/dist/domains/comet-native/native-spec-entry.d.ts +2 -0
  330. package/dist/domains/comet-native/native-spec-entry.d.ts.map +1 -0
  331. package/dist/domains/comet-native/native-spec-entry.js +4 -0
  332. package/dist/domains/comet-native/native-spec-entry.js.map +1 -0
  333. package/dist/domains/comet-native/native-status-command.d.ts +3 -0
  334. package/dist/domains/comet-native/native-status-command.d.ts.map +1 -0
  335. package/dist/domains/comet-native/native-status-command.js +36 -0
  336. package/dist/domains/comet-native/native-status-command.js.map +1 -0
  337. package/dist/domains/comet-native/native-status-entry.d.ts +2 -0
  338. package/dist/domains/comet-native/native-status-entry.d.ts.map +1 -0
  339. package/dist/domains/comet-native/native-status-entry.js +4 -0
  340. package/dist/domains/comet-native/native-status-entry.js.map +1 -0
  341. package/dist/domains/comet-native/native-transition-evidence.d.ts.map +1 -1
  342. package/dist/domains/comet-native/native-transition-evidence.js +0 -10
  343. package/dist/domains/comet-native/native-transition-evidence.js.map +1 -1
  344. package/dist/domains/comet-native/native-transitions.d.ts +4 -0
  345. package/dist/domains/comet-native/native-transitions.d.ts.map +1 -1
  346. package/dist/domains/comet-native/native-transitions.js +31 -35
  347. package/dist/domains/comet-native/native-transitions.js.map +1 -1
  348. package/dist/domains/comet-native/native-types.d.ts +8 -6
  349. package/dist/domains/comet-native/native-types.d.ts.map +1 -1
  350. package/dist/domains/comet-native/native-verification-evidence.d.ts +2 -48
  351. package/dist/domains/comet-native/native-verification-evidence.d.ts.map +1 -1
  352. package/dist/domains/comet-native/native-verification-evidence.js +13 -301
  353. package/dist/domains/comet-native/native-verification-evidence.js.map +1 -1
  354. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts +16 -138
  355. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts.map +1 -1
  356. package/dist/domains/comet-native/native-verification-receipt-runtime.js +132 -770
  357. package/dist/domains/comet-native/native-verification-receipt-runtime.js.map +1 -1
  358. package/dist/domains/comet-native/native-verification-receipt.d.ts +3 -89
  359. package/dist/domains/comet-native/native-verification-receipt.d.ts.map +1 -1
  360. package/dist/domains/comet-native/native-verification-receipt.js +19 -350
  361. package/dist/domains/comet-native/native-verification-receipt.js.map +1 -1
  362. package/dist/domains/comet-native/native-verification-runtime.d.ts +28 -4
  363. package/dist/domains/comet-native/native-verification-runtime.d.ts.map +1 -1
  364. package/dist/domains/comet-native/native-verification-runtime.js +101 -218
  365. package/dist/domains/comet-native/native-verification-runtime.js.map +1 -1
  366. package/dist/domains/dashboard/collector.d.ts.map +1 -1
  367. package/dist/domains/dashboard/collector.js +53 -41
  368. package/dist/domains/dashboard/collector.js.map +1 -1
  369. package/dist/domains/dashboard/native-collector.d.ts.map +1 -1
  370. package/dist/domains/dashboard/native-collector.js +13 -3
  371. package/dist/domains/dashboard/native-collector.js.map +1 -1
  372. package/dist/domains/dashboard/project-directory.d.ts +20 -0
  373. package/dist/domains/dashboard/project-directory.d.ts.map +1 -0
  374. package/dist/domains/dashboard/project-directory.js +87 -0
  375. package/dist/domains/dashboard/project-directory.js.map +1 -0
  376. package/dist/domains/dashboard/project-root.d.ts +8 -0
  377. package/dist/domains/dashboard/project-root.d.ts.map +1 -0
  378. package/dist/domains/dashboard/project-root.js +68 -0
  379. package/dist/domains/dashboard/project-root.js.map +1 -0
  380. package/dist/domains/dashboard/server.d.ts +1 -0
  381. package/dist/domains/dashboard/server.d.ts.map +1 -1
  382. package/dist/domains/dashboard/server.js +50 -10
  383. package/dist/domains/dashboard/server.js.map +1 -1
  384. package/dist/domains/dashboard/web/assets/{arc-BXWNV2Qv.js → arc-mNt_SS1l.js} +1 -1
  385. package/dist/domains/dashboard/web/assets/architectureDiagram-3BPJPVTR-Bc5akVD6.js +36 -0
  386. package/dist/domains/dashboard/web/assets/{blockDiagram-GPEHLZMM-P2PGImSM.js → blockDiagram-GPEHLZMM-C43zhVBe.js} +2 -2
  387. package/dist/domains/dashboard/web/assets/{c4Diagram-AAUBKEIU-fTj6Xhs1.js → c4Diagram-AAUBKEIU-dToETarK.js} +2 -2
  388. package/dist/domains/dashboard/web/assets/channel-b2wWDG4F.js +1 -0
  389. package/dist/domains/dashboard/web/assets/{chunk-2J33WTMH-BjFDZ5yo.js → chunk-2J33WTMH-C0oO137R.js} +1 -1
  390. package/dist/domains/dashboard/web/assets/{chunk-4BX2VUAB-BAUkbZdT.js → chunk-4BX2VUAB-CGms1fgI.js} +1 -1
  391. package/dist/domains/dashboard/web/assets/{chunk-55IACEB6-DBmuiYme.js → chunk-55IACEB6-Bugl8v6f.js} +1 -1
  392. package/dist/domains/dashboard/web/assets/{chunk-727SXJPM-Do9ufCgY.js → chunk-727SXJPM-8ATNMlBG.js} +1 -1
  393. package/dist/domains/dashboard/web/assets/{chunk-AQP2D5EJ-qRQWlB5d.js → chunk-AQP2D5EJ-BNYjSSqU.js} +1 -1
  394. package/dist/domains/dashboard/web/assets/{chunk-FMBD7UC4-BzDzeJ4_.js → chunk-FMBD7UC4-_nJAqSbe.js} +1 -1
  395. package/dist/domains/dashboard/web/assets/{chunk-ND2GUHAM-OQcAmIvL.js → chunk-ND2GUHAM-lyxYm5NX.js} +1 -1
  396. package/dist/domains/dashboard/web/assets/{chunk-QZHKN3VN-BiRfH4d2.js → chunk-QZHKN3VN-PUMVeWpd.js} +1 -1
  397. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-B9SWZywo.js +1 -0
  398. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-B9SWZywo.js +1 -0
  399. package/dist/domains/dashboard/web/assets/cose-bilkent-S5V4N54A-DzMqjexn.js +1 -0
  400. package/dist/domains/dashboard/web/assets/{cynefin-VYW2F7L2-B3F-qRTJ.js → cynefin-VYW2F7L2-B67ET0eq.js} +1 -1
  401. package/dist/domains/dashboard/web/assets/dagre-BM42HDAG-CQPMvRLK.js +4 -0
  402. package/dist/domains/dashboard/web/assets/diagram-2AECGRRQ-BRpLrFHM.js +43 -0
  403. package/dist/domains/dashboard/web/assets/diagram-5GNKFQAL-CPGWuGrE.js +10 -0
  404. package/dist/domains/dashboard/web/assets/{diagram-KO2AKTUF-DrPGimEt.js → diagram-KO2AKTUF-D2wpX2iO.js} +2 -2
  405. package/dist/domains/dashboard/web/assets/diagram-LMA3HP47-D54mAbDu.js +24 -0
  406. package/dist/domains/dashboard/web/assets/diagram-OG6HWLK6-ZGQDpSs_.js +24 -0
  407. package/dist/domains/dashboard/web/assets/{erDiagram-TEJ5UH35-CoB0mzhk.js → erDiagram-TEJ5UH35-C3qDo7sd.js} +2 -2
  408. package/dist/domains/dashboard/web/assets/{flowDiagram-I6XJVG4X-lT53XfSE.js → flowDiagram-I6XJVG4X-B7hStPd9.js} +2 -2
  409. package/dist/domains/dashboard/web/assets/ganttDiagram-6RSMTGT7-IqcLFbTK.js +292 -0
  410. package/dist/domains/dashboard/web/assets/gitGraphDiagram-PVQCEYII-YrMZpzUu.js +106 -0
  411. package/dist/domains/dashboard/web/assets/index-DhtBssCt.js +257 -0
  412. package/dist/domains/dashboard/web/assets/{index-QO0z6F4w.js → index-icxk8_BP.js} +1 -1
  413. package/dist/domains/dashboard/web/assets/index-pr3axVDI.css +1 -0
  414. package/dist/domains/dashboard/web/assets/infoDiagram-5YYISTIA-CcIgGK_7.js +2 -0
  415. package/dist/domains/dashboard/web/assets/{ishikawaDiagram-YF4QCWOH-Dkspu33d.js → ishikawaDiagram-YF4QCWOH-1x3rNjGP.js} +2 -2
  416. package/dist/domains/dashboard/web/assets/{journeyDiagram-JHISSGLW-C-EM1sZl.js → journeyDiagram-JHISSGLW-B2XiqMNP.js} +2 -2
  417. package/dist/domains/dashboard/web/assets/{kanban-definition-UN3LZRKU-BTbB0IO2.js → kanban-definition-UN3LZRKU-x46cGuo3.js} +2 -2
  418. package/dist/domains/dashboard/web/assets/{linear-Cp0UrqDr.js → linear-DFLqGZWl.js} +1 -1
  419. package/dist/domains/dashboard/web/assets/{mermaid.core-CucmqsLW.js → mermaid.core-g3J6BACc.js} +69 -69
  420. package/dist/domains/dashboard/web/assets/{mindmap-definition-RKZ34NQL-CjEshF1X.js → mindmap-definition-RKZ34NQL-CTdeKmcX.js} +2 -2
  421. package/dist/domains/dashboard/web/assets/{pieDiagram-4H26LBE5-DrwFnX1b.js → pieDiagram-4H26LBE5-C_obwjIf.js} +2 -2
  422. package/dist/domains/dashboard/web/assets/{quadrantDiagram-W4KKPZXB-CjG6pBR2.js → quadrantDiagram-W4KKPZXB-B6Gnfz9M.js} +4 -4
  423. package/dist/domains/dashboard/web/assets/{requirementDiagram-4Y6WPE33-BpUQVqCV.js → requirementDiagram-4Y6WPE33-nX4PObnB.js} +2 -2
  424. package/dist/domains/dashboard/web/assets/{sankeyDiagram-5OEKKPKP-BeGkEvzR.js → sankeyDiagram-5OEKKPKP-QjDwwHgl.js} +2 -2
  425. package/dist/domains/dashboard/web/assets/{sequenceDiagram-3UESZ5HK-sSTU3MCO.js → sequenceDiagram-3UESZ5HK-BEEe0j6B.js} +2 -2
  426. package/dist/domains/dashboard/web/assets/stateDiagram-AJRCARHV-CXfAaBgM.js +1 -0
  427. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-CD3nS4cC.js +1 -0
  428. package/dist/domains/dashboard/web/assets/{timeline-definition-PNZ67QCA-DCN7NjEs.js → timeline-definition-PNZ67QCA-BOzX2EnD.js} +2 -2
  429. package/dist/domains/dashboard/web/assets/{vennDiagram-CIIHVFJN-DZAN1_rr.js → vennDiagram-CIIHVFJN-C40vhXRq.js} +2 -2
  430. package/dist/domains/dashboard/web/assets/{wardleyDiagram-YWT4CUSO-FfkJfr4C.js → wardleyDiagram-YWT4CUSO-B1rm89JH.js} +2 -2
  431. package/dist/domains/dashboard/web/assets/{xychartDiagram-2RQKCTM6-CD8B-EmR.js → xychartDiagram-2RQKCTM6-BlMr59qK.js} +2 -2
  432. package/dist/domains/dashboard/web/index.html +2 -2
  433. package/dist/domains/integrations/openspec.d.ts +1 -0
  434. package/dist/domains/integrations/openspec.d.ts.map +1 -1
  435. package/dist/domains/integrations/openspec.js +6 -0
  436. package/dist/domains/integrations/openspec.js.map +1 -1
  437. package/dist/domains/skill/platform-install.d.ts.map +1 -1
  438. package/dist/domains/skill/platform-install.js +4 -6
  439. package/dist/domains/skill/platform-install.js.map +1 -1
  440. package/dist/domains/skill/uninstall.d.ts +6 -2
  441. package/dist/domains/skill/uninstall.d.ts.map +1 -1
  442. package/dist/domains/skill/uninstall.js +128 -19
  443. package/dist/domains/skill/uninstall.js.map +1 -1
  444. package/dist/domains/workflow-contract/project-config.d.ts +1 -0
  445. package/dist/domains/workflow-contract/project-config.d.ts.map +1 -1
  446. package/dist/domains/workflow-contract/project-config.js +45 -1
  447. package/dist/domains/workflow-contract/project-config.js.map +1 -1
  448. package/dist/platform/install/detect.d.ts +1 -0
  449. package/dist/platform/install/detect.d.ts.map +1 -1
  450. package/dist/platform/install/detect.js +2 -0
  451. package/dist/platform/install/detect.js.map +1 -1
  452. package/dist/platform/process/hook-read-cache.d.ts +45 -0
  453. package/dist/platform/process/hook-read-cache.d.ts.map +1 -0
  454. package/dist/platform/process/hook-read-cache.js +102 -0
  455. package/dist/platform/process/hook-read-cache.js.map +1 -0
  456. package/dist/platform/version/version.d.ts.map +1 -1
  457. package/dist/platform/version/version.js +9 -2
  458. package/dist/platform/version/version.js.map +1 -1
  459. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet-package.json +2 -0
  460. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet-package.json +2 -0
  461. package/eval/local/tasks/comet-native-workflow/instruction.md +5 -17
  462. package/eval/local/tasks/comet-native-workflow/task.toml +4 -2
  463. package/eval/local/tasks/comet-native-workflow/validation/test_native_workflow.py +227 -300
  464. package/eval/local/tests/conftest.py +0 -193
  465. package/eval/local/tests/scaffold/test_native_wave_evaluations.py +107 -180
  466. package/eval/local/tests/scaffold/test_tasks.py +6 -9
  467. package/eval/local/tests/scaffold/test_utils.py +4 -7
  468. package/eval/scaffold/shell/docker.sh +2 -95
  469. package/package.json +7 -3
  470. package/dist/domains/comet-native/native-controller-trust.d.ts +0 -21
  471. package/dist/domains/comet-native/native-controller-trust.d.ts.map +0 -1
  472. package/dist/domains/comet-native/native-controller-trust.js +0 -140
  473. package/dist/domains/comet-native/native-controller-trust.js.map +0 -1
  474. package/dist/domains/comet-native/native-independent-review.d.ts +0 -28
  475. package/dist/domains/comet-native/native-independent-review.d.ts.map +0 -1
  476. package/dist/domains/comet-native/native-independent-review.js +0 -134
  477. package/dist/domains/comet-native/native-independent-review.js.map +0 -1
  478. package/dist/domains/comet-native/native-review-contract.d.ts +0 -6
  479. package/dist/domains/comet-native/native-review-contract.d.ts.map +0 -1
  480. package/dist/domains/comet-native/native-review-contract.js +0 -6
  481. package/dist/domains/comet-native/native-review-contract.js.map +0 -1
  482. package/dist/domains/comet-native/native-review-identity.d.ts +0 -50
  483. package/dist/domains/comet-native/native-review-identity.d.ts.map +0 -1
  484. package/dist/domains/comet-native/native-review-identity.js +0 -209
  485. package/dist/domains/comet-native/native-review-identity.js.map +0 -1
  486. package/dist/domains/comet-native/native-review-signer.d.ts +0 -24
  487. package/dist/domains/comet-native/native-review-signer.d.ts.map +0 -1
  488. package/dist/domains/comet-native/native-review-signer.js +0 -125
  489. package/dist/domains/comet-native/native-review-signer.js.map +0 -1
  490. package/dist/domains/comet-native/native-review-trust.d.ts +0 -35
  491. package/dist/domains/comet-native/native-review-trust.d.ts.map +0 -1
  492. package/dist/domains/comet-native/native-review-trust.js +0 -176
  493. package/dist/domains/comet-native/native-review-trust.js.map +0 -1
  494. package/dist/domains/dashboard/web/assets/_commonjsHelpers-CqkleIqs.js +0 -1
  495. package/dist/domains/dashboard/web/assets/architectureDiagram-3BPJPVTR-CjVHPivo.js +0 -36
  496. package/dist/domains/dashboard/web/assets/channel--JtnhJr8.js +0 -1
  497. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-BRGmx8Iz.js +0 -1
  498. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-BRGmx8Iz.js +0 -1
  499. package/dist/domains/dashboard/web/assets/cose-bilkent-S5V4N54A-CZk37fGn.js +0 -1
  500. package/dist/domains/dashboard/web/assets/dagre-BM42HDAG-D5BQ0eqN.js +0 -4
  501. package/dist/domains/dashboard/web/assets/diagram-2AECGRRQ-33mXstha.js +0 -43
  502. package/dist/domains/dashboard/web/assets/diagram-5GNKFQAL-BWHCMFvD.js +0 -10
  503. package/dist/domains/dashboard/web/assets/diagram-LMA3HP47-BBlsg7jG.js +0 -24
  504. package/dist/domains/dashboard/web/assets/diagram-OG6HWLK6-CsaFSpHi.js +0 -24
  505. package/dist/domains/dashboard/web/assets/ganttDiagram-6RSMTGT7-D1SQ56fl.js +0 -292
  506. package/dist/domains/dashboard/web/assets/gitGraphDiagram-PVQCEYII-D4oDMS5x.js +0 -106
  507. package/dist/domains/dashboard/web/assets/index-D-AGxvI4.css +0 -1
  508. package/dist/domains/dashboard/web/assets/index-Msce_H_q.js +0 -24
  509. package/dist/domains/dashboard/web/assets/infoDiagram-5YYISTIA-BeICn98s.js +0 -2
  510. package/dist/domains/dashboard/web/assets/stateDiagram-AJRCARHV-CcFBc6qh.js +0 -1
  511. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-D5zZYi4x.js +0 -1
  512. package/eval/local/tasks/comet-native-workflow/environment/.include-trusted-native-review-fixture +0 -1
  513. package/eval/scaffold/shell/native-review-signer-daemon.mjs +0 -144
  514. package/eval/scaffold/shell/native-review-verifier-daemon.mjs +0 -178
@@ -0,0 +1,257 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-g3J6BACc.js","assets/purify.es-VaSPOPhr.js"])))=>i.map(i=>d[i]);
2
+ function xT(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(r,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function o(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=o(s);fetch(s.href,l)}})();const ST="modulepreload",CT=function(e){return"/"+e},j1={},ci=function(t,o,r){let s=Promise.resolve();if(o&&o.length>0){let p=function(m){return Promise.all(m.map(h=>Promise.resolve(h).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");s=p(o.map(m=>{if(m=CT(m),m in j1)return;j1[m]=!0;const h=m.endsWith(".css"),b=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":ST,h||(v.as="script"),v.crossOrigin="",v.href=m,f&&v.setAttribute("nonce",f),document.head.appendChild(v),h)return new Promise((x,S)=>{v.addEventListener("load",x),v.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return s.then(d=>{for(const f of d||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bp={exports:{}},wl={};var H1;function $T(){if(H1)return wl;H1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(r,s,l){var d=null;if(l!==void 0&&(d=""+l),s.key!==void 0&&(d=""+s.key),"key"in s){l={};for(var f in s)f!=="key"&&(l[f]=s[f])}else l=s;return s=l.ref,{$$typeof:e,type:r,key:d,ref:s!==void 0?s:null,props:l}}return wl.Fragment=t,wl.jsx=o,wl.jsxs=o,wl}var D1;function ET(){return D1||(D1=1,Bp.exports=$T()),Bp.exports}var O=ET(),_p={exports:{}},ft={};var L1;function wT(){if(L1)return ft;L1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=v&&_[v]||_["@@iterator"],typeof _=="function"?_:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,R={};function w(_,V,Y){this.props=_,this.context=V,this.refs=R,this.updater=Y||S}w.prototype.isReactComponent={},w.prototype.setState=function(_,V){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,V,"setState")},w.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function N(){}N.prototype=w.prototype;function $(_,V,Y){this.props=_,this.context=V,this.refs=R,this.updater=Y||S}var E=$.prototype=new N;E.constructor=$,C(E,w.prototype),E.isPureReactComponent=!0;var T=Array.isArray;function z(){}var A={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function j(_,V,Y){var W=Y.ref;return{$$typeof:e,type:_,key:V,ref:W!==void 0?W:null,props:Y}}function L(_,V){return j(_.type,V,_.props)}function B(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function H(_){var V={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Y){return V[Y]})}var q=/\/+/g;function Q(_,V){return typeof _=="object"&&_!==null&&_.key!=null?H(""+_.key):V.toString(36)}function F(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(z,z):(_.status="pending",_.then(function(V){_.status==="pending"&&(_.status="fulfilled",_.value=V)},function(V){_.status==="pending"&&(_.status="rejected",_.reason=V)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function D(_,V,Y,W,K){var te=typeof _;(te==="undefined"||te==="boolean")&&(_=null);var k=!1;if(_===null)k=!0;else switch(te){case"bigint":case"string":case"number":k=!0;break;case"object":switch(_.$$typeof){case e:case t:k=!0;break;case h:return k=_._init,D(k(_._payload),V,Y,W,K)}}if(k)return K=K(_),k=W===""?"."+Q(_,0):W,T(K)?(Y="",k!=null&&(Y=k.replace(q,"$&/")+"/"),D(K,V,Y,"",function(ae){return ae})):K!=null&&(B(K)&&(K=L(K,Y+(K.key==null||_&&_.key===K.key?"":(""+K.key).replace(q,"$&/")+"/")+k)),V.push(K)),1;k=0;var se=W===""?".":W+":";if(T(_))for(var ce=0;ce<_.length;ce++)W=_[ce],te=se+Q(W,ce),k+=D(W,V,Y,te,K);else if(ce=x(_),typeof ce=="function")for(_=ce.call(_),ce=0;!(W=_.next()).done;)W=W.value,te=se+Q(W,ce++),k+=D(W,V,Y,te,K);else if(te==="object"){if(typeof _.then=="function")return D(F(_),V,Y,W,K);throw V=String(_),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return k}function G(_,V,Y){if(_==null)return _;var W=[],K=0;return D(_,W,"","",function(te){return V.call(Y,te,K++)}),W}function X(_){if(_._status===-1){var V=_._result;V=V(),V.then(function(Y){(_._status===0||_._status===-1)&&(_._status=1,_._result=Y)},function(Y){(_._status===0||_._status===-1)&&(_._status=2,_._result=Y)}),_._status===-1&&(_._status=0,_._result=V)}if(_._status===1)return _._result.default;throw _._result}var ee=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},Z={map:G,forEach:function(_,V,Y){G(_,function(){V.apply(this,arguments)},Y)},count:function(_){var V=0;return G(_,function(){V++}),V},toArray:function(_){return G(_,function(V){return V})||[]},only:function(_){if(!B(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return ft.Activity=b,ft.Children=Z,ft.Component=w,ft.Fragment=o,ft.Profiler=s,ft.PureComponent=$,ft.StrictMode=r,ft.Suspense=p,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,ft.__COMPILER_RUNTIME={__proto__:null,c:function(_){return A.H.useMemoCache(_)}},ft.cache=function(_){return function(){return _.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(_,V,Y){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var W=C({},_.props),K=_.key;if(V!=null)for(te in V.key!==void 0&&(K=""+V.key),V)!I.call(V,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&V.ref===void 0||(W[te]=V[te]);var te=arguments.length-2;if(te===1)W.children=Y;else if(1<te){for(var k=Array(te),se=0;se<te;se++)k[se]=arguments[se+2];W.children=k}return j(_.type,K,W)},ft.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:l,_context:_},_},ft.createElement=function(_,V,Y){var W,K={},te=null;if(V!=null)for(W in V.key!==void 0&&(te=""+V.key),V)I.call(V,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(K[W]=V[W]);var k=arguments.length-2;if(k===1)K.children=Y;else if(1<k){for(var se=Array(k),ce=0;ce<k;ce++)se[ce]=arguments[ce+2];K.children=se}if(_&&_.defaultProps)for(W in k=_.defaultProps,k)K[W]===void 0&&(K[W]=k[W]);return j(_,te,K)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(_){return{$$typeof:f,render:_}},ft.isValidElement=B,ft.lazy=function(_){return{$$typeof:h,_payload:{_status:-1,_result:_},_init:X}},ft.memo=function(_,V){return{$$typeof:m,type:_,compare:V===void 0?null:V}},ft.startTransition=function(_){var V=A.T,Y={};A.T=Y;try{var W=_(),K=A.S;K!==null&&K(Y,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(z,ee)}catch(te){ee(te)}finally{V!==null&&Y.types!==null&&(V.types=Y.types),A.T=V}},ft.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},ft.use=function(_){return A.H.use(_)},ft.useActionState=function(_,V,Y){return A.H.useActionState(_,V,Y)},ft.useCallback=function(_,V){return A.H.useCallback(_,V)},ft.useContext=function(_){return A.H.useContext(_)},ft.useDebugValue=function(){},ft.useDeferredValue=function(_,V){return A.H.useDeferredValue(_,V)},ft.useEffect=function(_,V){return A.H.useEffect(_,V)},ft.useEffectEvent=function(_){return A.H.useEffectEvent(_)},ft.useId=function(){return A.H.useId()},ft.useImperativeHandle=function(_,V,Y){return A.H.useImperativeHandle(_,V,Y)},ft.useInsertionEffect=function(_,V){return A.H.useInsertionEffect(_,V)},ft.useLayoutEffect=function(_,V){return A.H.useLayoutEffect(_,V)},ft.useMemo=function(_,V){return A.H.useMemo(_,V)},ft.useOptimistic=function(_,V){return A.H.useOptimistic(_,V)},ft.useReducer=function(_,V,Y){return A.H.useReducer(_,V,Y)},ft.useRef=function(_){return A.H.useRef(_)},ft.useState=function(_){return A.H.useState(_)},ft.useSyncExternalStore=function(_,V,Y){return A.H.useSyncExternalStore(_,V,Y)},ft.useTransition=function(){return A.H.useTransition()},ft.version="19.2.7",ft}var V1;function kb(){return V1||(V1=1,_p.exports=wT()),_p.exports}var c=kb();const le=Wt(c),NT=xT({__proto__:null,default:le},[c]),ut=e=>{const t=c.useRef(e);return t.current=e,c.useCallback((...r)=>t.current?.(...r),[])};function To(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const F1=To()?c.useLayoutEffect:c.useEffect,dn=(e,t)=>{const o=c.useRef(!0);F1(()=>e(o.current),t),F1(()=>(o.current=!1,()=>{o.current=!0}),[])},RT=(e,t)=>{dn(o=>{if(!o)return e()},t)},vE=e=>{const t=c.useRef(!1),[o,r]=c.useState(e);c.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function s(l,d){d&&t.current||r(l)}return[o,s]};function Ro(e,t){const[o,r]=c.useState(e),s=t!==void 0?t:o;return dn(l=>{l||r(t)},[t]),[s,r]}let xE=e=>+setTimeout(e,16),SE=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(xE=e=>window.requestAnimationFrame(e),SE=e=>window.cancelAnimationFrame(e));let q1=0;const Yb=new Map;function CE(e){Yb.delete(e)}const Lt=(e,t=1)=>{q1+=1;const o=q1;function r(s){if(s===0)CE(o),e();else{const l=xE(()=>{r(s-1)});Yb.set(o,l)}}return r(t),o};Lt.cancel=e=>{const t=Yb.get(e);return CE(e),SE(t)};function MT(){return{...NT}.useId}let U1=0;const W1=MT(),Wr=W1?(function(t){const o=W1();return t||o}):(function(t){const[o,r]=c.useState("ssr-id");return c.useEffect(()=>{const s=U1;U1+=1,r(`rc_unique_${s}`)},[]),t||o});function ic(e,t,o){const r=c.useRef({});return(!("value"in r.current)||o(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function TT(e){const[,t]=c.useReducer(l=>l+1,0),o=c.useRef(e),r=ut(()=>o.current),s=ut(l=>{o.current=typeof l=="function"?l(o.current):l,t()});return[r,s]}var Pp={exports:{}},ln={};var G1;function OT(){if(G1)return ln;G1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function S(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case e:switch(C=C.type,C){case o:case s:case r:case p:case m:case v:return C;default:switch(C=C&&C.$$typeof,C){case d:case f:case b:case h:return C;case l:return C;default:return R}}case t:return R}}}return ln.ContextConsumer=l,ln.ContextProvider=d,ln.Element=e,ln.ForwardRef=f,ln.Fragment=o,ln.Lazy=b,ln.Memo=h,ln.Portal=t,ln.Profiler=s,ln.StrictMode=r,ln.Suspense=p,ln.SuspenseList=m,ln.isContextConsumer=function(C){return S(C)===l},ln.isContextProvider=function(C){return S(C)===d},ln.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},ln.isForwardRef=function(C){return S(C)===f},ln.isFragment=function(C){return S(C)===o},ln.isLazy=function(C){return S(C)===b},ln.isMemo=function(C){return S(C)===h},ln.isPortal=function(C){return S(C)===t},ln.isProfiler=function(C){return S(C)===s},ln.isStrictMode=function(C){return S(C)===r},ln.isSuspense=function(C){return S(C)===p},ln.isSuspenseList=function(C){return S(C)===m},ln.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===s||C===r||C===p||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===h||C.$$typeof===d||C.$$typeof===l||C.$$typeof===f||C.$$typeof===x||C.getModuleId!==void 0)},ln.typeOf=S,ln}var X1;function zT(){return X1||(X1=1,Pp.exports=OT()),Pp.exports}var jp=zT();const AT=Symbol.for("react.element"),IT=Symbol.for("react.transitional.element"),BT=Symbol.for("react.fragment");function $E(e){return e&&typeof e=="object"&&(e.$$typeof===AT||e.$$typeof===IT)&&e.type===BT}const _T=Number(c.version.split(".")[0]),PT=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},no=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:o=>{e.forEach(r=>{PT(r,o)})}},Gr=(...e)=>ic(()=>no(...e),e,(t,o)=>t.length!==o.length||t.every((r,s)=>r!==o[s])),Es=e=>{if(!e)return!1;if(Kb(e)&&_T>=19)return!0;const t=jp.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==jp.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==jp.ForwardRef)};function Kb(e){return c.isValidElement(e)&&!$E(e)}const jT=e=>Kb(e)&&Es(e),pi=e=>{if(e&&Kb(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function zg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}const k1="data-rc-order",Y1="data-rc-priority",HT="rc-util-key",Ag=new Map;function EE({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:HT}function af(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function DT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Qb(e){return Array.from((Ag.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function wE(e,t={}){if(!To())return null;const{csp:o,prepend:r,priority:s=0}=t,l=DT(r),d=l==="prependQueue",f=document.createElement("style");f.setAttribute(k1,l),d&&s&&f.setAttribute(Y1,`${s}`),o?.nonce&&(f.nonce=o?.nonce),f.innerHTML=e;const p=af(t),{firstChild:m}=p;if(r){if(d){const h=(t.styles||Qb(p)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(k1)))return!1;const v=Number(b.getAttribute(Y1)||0);return s>=v});if(h.length)return p.insertBefore(f,h[h.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function NE(e,t={}){let{styles:o}=t;return o||=Qb(af(t)),o.find(r=>r.getAttribute(EE(t))===e)}function Gl(e,t={}){const o=NE(e,t);o&&af(t).removeChild(o)}function LT(e,t){const o=Ag.get(e);if(!o||!zg(document,o)){const r=wE("",t),{parentNode:s}=r;Ag.set(e,s),e.removeChild(r)}}function ai(e,t,o={}){const r=af(o),s=Qb(r),l={...o,styles:s};LT(r,l);const d=NE(t,l);if(d)return l.csp?.nonce&&d.nonce!==l.csp?.nonce&&(d.nonce=l.csp?.nonce),d.innerHTML!==e&&(d.innerHTML=e),d;const f=wE(e,l);return f.setAttribute(EE(l),t),f}function gs(e){return e instanceof HTMLElement||e instanceof SVGElement}function ui(e){return e&&typeof e=="object"&&gs(e.nativeElement)?e.nativeElement:gs(e)?e:null}const Zb=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:o}=e.getBBox();if(t||o)return!0}if(e.getBoundingClientRect){const{width:t,height:o}=e.getBoundingClientRect();if(t||o)return!0}}return!1});function K1(e,t=!1){if(Zb(e)){const o=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(o)||e.isContentEditable||o==="a"&&!!e.getAttribute("href"),s=e.getAttribute("tabindex"),l=Number(s);let d=null;return s&&!Number.isNaN(l)?d=l:r&&d===null&&(d=0),r&&e.disabled&&(d=null),d!==null&&(d>=0||t&&d<0)}return!1}function Jb(e,t=!1){const o=[...e.querySelectorAll("*")].filter(r=>K1(r,t));return K1(e,t)&&o.unshift(e),o}function RE(e,t){if(!e)return;e.focus(t);const{cursor:o}=t||{};if(o&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let fs=null,Ea=[];const Ig=new Map,e0=new Map;function t0(){return Ea[Ea.length-1]}function VT(e){const t=t0();if(e&&t){let o;for(const[s,l]of Ig.entries())if(l===t){o=s;break}const r=e0.get(o);return!!r&&(r===e||r.contains(e))}return!1}function FT(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Hp(){const e=t0(),{activeElement:t}=document;if(!VT(t))if(e&&!FT(e)){const o=Jb(e);(o.includes(fs)?fs:o[0])?.focus({preventScroll:!0})}else fs=t}function Q1(e){if(e.key==="Tab"){const{activeElement:t}=document,o=t0(),r=Jb(o),s=r[r.length-1];e.shiftKey&&t===r[0]?fs=s:!e.shiftKey&&t===s&&(fs=r[0])}}function qT(e,t){return e&&(Ig.set(t,e),Ea=Ea.filter(o=>o!==e),Ea.push(e),window.addEventListener("focusin",Hp),window.addEventListener("keydown",Q1,!0),Hp()),()=>{fs=null,Ea=Ea.filter(o=>o!==e),Ig.delete(t),e0.delete(t),Ea.length===0&&(window.removeEventListener("focusin",Hp),window.removeEventListener("keydown",Q1,!0))}}function UT(e,t){const o=c.useRef(0),[r,s]=c.useState(0);c.useEffect(()=>{o.current=0},t),c.useEffect(()=>{const[l,d]=e(o.current);return d||(o.current+=1,s(f=>f+1)),l},[...t,r])}function ME(e,t){const o=Wr(),r=c.useRef(t);return r.current=t,UT(d=>{if(!e)return[void 0,!0];const f=r.current();return f?[qT(f,o),!0]:[void 0,d>=1]},[o,e]),[d=>{d&&e0.set(o,d)}]}function TE(e){return e?.getRootNode?.()}function WT(e){return TE(e)instanceof ShadowRoot}function Bg(e){return WT(e)?TE(e):null}const Je={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function GT(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,o=document.createElement("div");o.id=t;const r=o.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let s,l;if(e){const p=getComputedStyle(e);r.scrollbarColor=p.scrollbarColor,r.scrollbarWidth=p.scrollbarWidth;const m=getComputedStyle(e,"::-webkit-scrollbar"),h=parseInt(m.width,10),b=parseInt(m.height,10);try{const v=h?`width: ${m.width};`:"",x=b?`height: ${m.height};`:"";ai(`
3
+ #${t}::-webkit-scrollbar {
4
+ ${v}
5
+ ${x}
6
+ }`,t)}catch(v){console.error(v),s=h,l=b}}document.body.appendChild(o);const d=e&&s&&!Number.isNaN(s)?s:o.offsetWidth-o.clientWidth,f=e&&l&&!Number.isNaN(l)?l:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),Gl(t),{width:d,height:f}}function XT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:GT(e)}let _g={};const kT=e=>{};function YT(e,t){}function KT(e,t){}function QT(){_g={}}function OE(e,t,o){!t&&!_g[o]&&(e(!1,o),_g[o]=!0)}function Yn(e,t){OE(YT,e,t)}function ZT(e,t){OE(KT,e,t)}Yn.preMessage=kT;Yn.resetWarned=QT;Yn.noteOnce=ZT;function Xl(e,t,o=!1){const r=new Set;function s(l,d,f=1){const p=r.has(l);if(Yn(!p,"Warning: There may be circular references"),p)return!1;if(l===d)return!0;if(o&&f>1)return!1;r.add(l);const m=f+1;if(Array.isArray(l)){if(!Array.isArray(d)||l.length!==d.length)return!1;for(let h=0;h<l.length;h++)if(!s(l[h],d[h],m))return!1;return!0}if(l&&d&&typeof l=="object"&&typeof d=="object"){const h=Object.keys(l);return h.length!==Object.keys(d).length?!1:h.every(b=>s(l[b],d[b],m))}return!1}return s(e,t)}var Nl={exports:{}},Z1;function JT(){if(Z1)return Nl.exports;Z1=1,Nl.exports=r,Nl.exports.isMobile=r,Nl.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,o=/android|ipad|playbook|silk/i;function r(s){s||(s={});let l=s.ua;if(!l&&typeof navigator<"u"&&(l=navigator.userAgent),l&&l.headers&&typeof l.headers["user-agent"]=="string"&&(l=l.headers["user-agent"]),typeof l!="string")return!1;let d=e.test(l)&&!t.test(l)||!!s.tablet&&o.test(l);return!d&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&l.indexOf("Macintosh")!==-1&&l.indexOf("Safari")!==-1&&(d=!0),d}return Nl.exports}var eO=JT();const tO=Wt(eO);let Dp;const nO=()=>(typeof Dp>"u"&&(Dp=tO()),Dp);function xn(e,t){const o=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete o[r]}),o}const oO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
7
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
8
+ charSet checked classID className colSpan cols content contentEditable contextMenu
9
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
10
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
11
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
12
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
13
+ mediaGroup method min minLength multiple muted name noValidate nonce open
14
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
15
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
16
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
17
+ summary tabIndex target title type useMap value width wmode wrap`,rO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
18
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
19
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
20
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
21
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
22
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
23
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
24
+ onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
25
+ onAnimationStart onAnimationEnd onAnimationIteration
26
+ onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
27
+ onBeforeInput onReset onInvalid
28
+ onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,aO=`${oO} ${rO}`.split(/[\s\n]+/),iO="aria-",sO="data-";function J1(e,t){return e.indexOf(t)===0}function Qn(e,t=!1){let o;t===!1?o={aria:!0,data:!0,attr:!0}:t===!0?o={aria:!0}:o={...t};const r={};return Object.keys(e).forEach(s=>{(o.aria&&(s==="role"||J1(s,iO))||o.data&&J1(s,sO)||o.attr&&aO.includes(s))&&(r[s]=e[s])}),r}function Oo(e,t={}){let o=[];return le.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?o=o.concat(Oo(r)):$E(r)&&r.props?o=o.concat(Oo(r.props.children,t)):o.push(r))}),o}function eS(...e){const t={};for(const o of e)if(o)for(const r of Object.keys(o))o[r]!==void 0&&(t[r]=o[r]);return t}function qo(e,t){let o=e;for(let r=0;r<t.length;r+=1){if(o==null)return;o=o[t[r]]}return o}function zE(e,t,o,r){if(!t.length)return o;const[s,...l]=t;let d;return!e&&typeof s=="number"?d=[]:Array.isArray(e)?d=[...e]:d={...e},r&&o===void 0&&l.length===1?delete d[s][l[0]]:d[s]=zE(d[s],l,o,r),d}function wo(e,t,o,r=!1){return t.length&&r&&o===void 0&&!qo(e,t.slice(0,-1))?e:zE(e,t,o,r)}function lO(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function tS(e){return Array.isArray(e)?[]:{}}const cO=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function uO(e,t={}){const{prepareArray:o}=t,r=o||(()=>[]);let s=tS(e[0]);return e.forEach(l=>{function d(f,p){const m=new Set(p),h=qo(l,f),b=Array.isArray(h);if(b||lO(h)){if(!m.has(h)){m.add(h);const v=qo(s,f);b?s=wo(s,f,r(v,h)):(!v||typeof v!="object")&&(s=wo(s,f,tS(h))),cO(h).forEach(x=>{Object.getOwnPropertyDescriptor(h,x).enumerable&&d([...f,x],m)})}}else s=wo(s,f,h)}d([])}),s}function ls(...e){return uO(e)}var Lp={exports:{}},Rl={},Vp={exports:{}},Fp={};var nS;function dO(){return nS||(nS=1,(function(e){function t(D,G){var X=D.length;D.push(G);e:for(;0<X;){var ee=X-1>>>1,Z=D[ee];if(0<s(Z,G))D[ee]=G,D[X]=Z,X=ee;else break e}}function o(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var G=D[0],X=D.pop();if(X!==G){D[0]=X;e:for(var ee=0,Z=D.length,_=Z>>>1;ee<_;){var V=2*(ee+1)-1,Y=D[V],W=V+1,K=D[W];if(0>s(Y,X))W<Z&&0>s(K,Y)?(D[ee]=K,D[W]=X,ee=W):(D[ee]=Y,D[V]=X,ee=V);else if(W<Z&&0>s(K,X))D[ee]=K,D[W]=X,ee=W;else break e}}return G}function s(D,G){var X=D.sortIndex-G.sortIndex;return X!==0?X:D.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,b=null,v=3,x=!1,S=!1,C=!1,R=!1,w=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function E(D){for(var G=o(m);G!==null;){if(G.callback===null)r(m);else if(G.startTime<=D)r(m),G.sortIndex=G.expirationTime,t(p,G);else break;G=o(m)}}function T(D){if(C=!1,E(D),!S)if(o(p)!==null)S=!0,z||(z=!0,H());else{var G=o(m);G!==null&&F(T,G.startTime-D)}}var z=!1,A=-1,I=5,j=-1;function L(){return R?!0:!(e.unstable_now()-j<I)}function B(){if(R=!1,z){var D=e.unstable_now();j=D;var G=!0;try{e:{S=!1,C&&(C=!1,N(A),A=-1),x=!0;var X=v;try{t:{for(E(D),b=o(p);b!==null&&!(b.expirationTime>D&&L());){var ee=b.callback;if(typeof ee=="function"){b.callback=null,v=b.priorityLevel;var Z=ee(b.expirationTime<=D);if(D=e.unstable_now(),typeof Z=="function"){b.callback=Z,E(D),G=!0;break t}b===o(p)&&r(p),E(D)}else r(p);b=o(p)}if(b!==null)G=!0;else{var _=o(m);_!==null&&F(T,_.startTime-D),G=!1}}break e}finally{b=null,v=X,x=!1}G=void 0}}finally{G?H():z=!1}}}var H;if(typeof $=="function")H=function(){$(B)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,Q=q.port2;q.port1.onmessage=B,H=function(){Q.postMessage(null)}}else H=function(){w(B,0)};function F(D,G){A=w(function(){D(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(D){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var X=v;v=G;try{return D()}finally{v=X}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var X=v;v=D;try{return G()}finally{v=X}},e.unstable_scheduleCallback=function(D,G,X){var ee=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ee+X:ee):X=ee,D){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=X+Z,D={id:h++,callback:G,priorityLevel:D,startTime:X,expirationTime:Z,sortIndex:-1},X>ee?(D.sortIndex=X,t(m,D),o(p)===null&&D===o(m)&&(C?(N(A),A=-1):C=!0,F(T,X-ee))):(D.sortIndex=Z,t(p,D),S||x||(S=!0,z||(z=!0,H()))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var G=v;return function(){var X=v;v=G;try{return D.apply(this,arguments)}finally{v=X}}}})(Fp)),Fp}var oS;function fO(){return oS||(oS=1,Vp.exports=dO()),Vp.exports}var qp={exports:{}},Xn={};var rS;function mO(){if(rS)return Xn;rS=1;var e=kb();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)m+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(p,m,h){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:m,implementation:h}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xn.createPortal=function(p,m){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return l(p,m,null,h)},Xn.flushSync=function(p){var m=d.T,h=r.p;try{if(d.T=null,r.p=2,p)return p()}finally{d.T=m,r.p=h,r.d.f()}},Xn.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},Xn.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Xn.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var h=m.as,b=f(h,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;h==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:x}):h==="script"&&r.d.X(p,{crossOrigin:b,integrity:v,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Xn.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var h=f(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},Xn.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var h=m.as,b=f(h,m.crossOrigin);r.d.L(p,h,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Xn.preloadModule=function(p,m){if(typeof p=="string")if(m){var h=f(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},Xn.requestFormReset=function(p){r.d.r(p)},Xn.unstable_batchedUpdates=function(p,m){return p(m)},Xn.useFormState=function(p,m,h){return d.H.useFormState(p,m,h)},Xn.useFormStatus=function(){return d.H.useHostTransitionStatus()},Xn.version="19.2.7",Xn}var aS;function AE(){if(aS)return qp.exports;aS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qp.exports=mO(),qp.exports}var iS;function pO(){if(iS)return Rl;iS=1;var e=fO(),t=kb(),o=AE();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var a=n,i=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(i=a.return),n=a.return;while(n)}return a.tag===3?i:null}function d(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(l(n)!==n)throw Error(r(188))}function m(n){var a=n.alternate;if(!a){if(a=l(n),a===null)throw Error(r(188));return a!==n?null:n}for(var i=n,u=a;;){var g=i.return;if(g===null)break;var y=g.alternate;if(y===null){if(u=g.return,u!==null){i=u;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===i)return p(g),n;if(y===u)return p(g),a;y=y.sibling}throw Error(r(188))}if(i.return!==u.return)i=g,u=y;else{for(var M=!1,P=g.child;P;){if(P===i){M=!0,i=g,u=y;break}if(P===u){M=!0,u=g,i=y;break}P=P.sibling}if(!M){for(P=y.child;P;){if(P===i){M=!0,i=y,u=g;break}if(P===u){M=!0,u=y,i=g;break}P=P.sibling}if(!M)throw Error(r(189))}}if(i.alternate!==u)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?n:a}function h(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=h(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),$=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function H(n){return n===null||typeof n!="object"?null:(n=B&&n[B]||n["@@iterator"],typeof n=="function"?n:null)}var q=Symbol.for("react.client.reference");function Q(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===q?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case C:return"Fragment";case w:return"Profiler";case R:return"StrictMode";case T:return"Suspense";case z:return"SuspenseList";case j:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case $:return n.displayName||"Context";case N:return(n._context.displayName||"Context")+".Consumer";case E:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case A:return a=n.displayName||null,a!==null?a:Q(n.type)||"Memo";case I:a=n._payload,n=n._init;try{return Q(n(a))}catch{}}return null}var F=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},ee=[],Z=-1;function _(n){return{current:n}}function V(n){0>Z||(n.current=ee[Z],ee[Z]=null,Z--)}function Y(n,a){Z++,ee[Z]=n.current,n.current=a}var W=_(null),K=_(null),te=_(null),k=_(null);function se(n,a){switch(Y(te,a),Y(K,n),Y(W,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?i1(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=i1(a),n=s1(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}V(W),Y(W,n)}function ce(){V(W),V(K),V(te)}function ae(n){n.memoizedState!==null&&Y(k,n);var a=W.current,i=s1(a,n.type);a!==i&&(Y(K,n),Y(W,i))}function pe(n){K.current===n&&(V(W),V(K)),k.current===n&&(V(k),Sl._currentValue=X)}var oe,fe;function he(n){if(oe===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);oe=a&&a[1]||"",fe=-1<i.stack.indexOf(`
29
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
30
+ `+oe+n+fe}var be=!1;function Ee(n,a){if(!n||be)return"";be=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(ge){var me=ge}Reflect.construct(n,[],Re)}else{try{Re.call()}catch(ge){me=ge}n.call(Re.prototype)}}else{try{throw Error()}catch(ge){me=ge}(Re=n())&&typeof Re.catch=="function"&&Re.catch(function(){})}}catch(ge){if(ge&&me&&typeof ge.stack=="string")return[ge.stack,me.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),M=y[0],P=y[1];if(M&&P){var J=M.split(`
31
+ `),de=P.split(`
32
+ `);for(g=u=0;u<J.length&&!J[u].includes("DetermineComponentFrameRoot");)u++;for(;g<de.length&&!de[g].includes("DetermineComponentFrameRoot");)g++;if(u===J.length||g===de.length)for(u=J.length-1,g=de.length-1;1<=u&&0<=g&&J[u]!==de[g];)g--;for(;1<=u&&0<=g;u--,g--)if(J[u]!==de[g]){if(u!==1||g!==1)do if(u--,g--,0>g||J[u]!==de[g]){var xe=`
33
+ `+J[u].replace(" at new "," at ");return n.displayName&&xe.includes("<anonymous>")&&(xe=xe.replace("<anonymous>",n.displayName)),xe}while(1<=u&&0<=g);break}}}finally{be=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?he(i):""}function Se(n,a){switch(n.tag){case 26:case 27:case 5:return he(n.type);case 16:return he("Lazy");case 13:return n.child!==a&&a!==null?he("Suspense Fallback"):he("Suspense");case 19:return he("SuspenseList");case 0:case 15:return Ee(n.type,!1);case 11:return Ee(n.type.render,!1);case 1:return Ee(n.type,!0);case 31:return he("Activity");default:return""}}function ye(n){try{var a="",i=null;do a+=Se(n,i),i=n,n=n.return;while(n);return a}catch(u){return`
34
+ Error generating stack: `+u.message+`
35
+ `+u.stack}}var Ne=Object.prototype.hasOwnProperty,Oe=e.unstable_scheduleCallback,Ce=e.unstable_cancelCallback,Ie=e.unstable_shouldYield,Me=e.unstable_requestPaint,je=e.unstable_now,et=e.unstable_getCurrentPriorityLevel,ke=e.unstable_ImmediatePriority,Le=e.unstable_UserBlockingPriority,Ve=e.unstable_NormalPriority,Ke=e.unstable_LowPriority,qe=e.unstable_IdlePriority,Ae=e.log,Pe=e.unstable_setDisableYieldValue,We=null,Be=null;function Te(n){if(typeof Ae=="function"&&Pe(n),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(We,n)}catch{}}var Ge=Math.clz32?Math.clz32:yt,nt=Math.log,ot=Math.LN2;function yt(n){return n>>>=0,n===0?32:31-(nt(n)/ot|0)|0}var st=256,Bt=262144,_t=4194304;function pt(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function zt(n,a,i){var u=n.pendingLanes;if(u===0)return 0;var g=0,y=n.suspendedLanes,M=n.pingedLanes;n=n.warmLanes;var P=u&134217727;return P!==0?(u=P&~y,u!==0?g=pt(u):(M&=P,M!==0?g=pt(M):i||(i=P&~n,i!==0&&(g=pt(i))))):(P=u&~y,P!==0?g=pt(P):M!==0?g=pt(M):i||(i=u&~n,i!==0&&(g=pt(i)))),g===0?0:a!==0&&a!==g&&(a&y)===0&&(y=g&-g,i=a&-a,y>=i||y===32&&(i&4194048)!==0)?a:g}function wt(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Dt(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var n=_t;return _t<<=1,(_t&62914560)===0&&(_t=4194304),n}function At(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function He(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function we(n,a,i,u,g,y){var M=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var P=n.entanglements,J=n.expirationTimes,de=n.hiddenUpdates;for(i=M&~i;0<i;){var xe=31-Ge(i),Re=1<<xe;P[xe]=0,J[xe]=-1;var me=de[xe];if(me!==null)for(de[xe]=null,xe=0;xe<me.length;xe++){var ge=me[xe];ge!==null&&(ge.lane&=-536870913)}i&=~Re}u!==0&&ze(n,u,0),y!==0&&g===0&&n.tag!==0&&(n.suspendedLanes|=y&~(M&~a))}function ze(n,a,i){n.pendingLanes|=a,n.suspendedLanes&=~a;var u=31-Ge(a);n.entangledLanes|=a,n.entanglements[u]=n.entanglements[u]|1073741824|i&261930}function ve(n,a){var i=n.entangledLanes|=a;for(n=n.entanglements;i;){var u=31-Ge(i),g=1<<u;g&a|n[u]&a&&(n[u]|=a),i&=~g}}function _e(n,a){var i=a&-a;return i=(i&42)!==0?1:De(i),(i&(n.suspendedLanes|a))!==0?0:i}function De(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Xe(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function lt(){var n=G.p;return n!==0?n:(n=window.event,n===void 0?32:O1(n.type))}function Jt(n,a){var i=G.p;try{return G.p=n,a()}finally{G.p=i}}var $t=Math.random().toString(36).slice(2),ct="__reactFiber$"+$t,Et="__reactProps$"+$t,on="__reactContainer$"+$t,at="__reactEvents$"+$t,mt="__reactListeners$"+$t,vt="__reactHandles$"+$t,Fe="__reactResources$"+$t,rt="__reactMarker$"+$t;function Pt(n){delete n[ct],delete n[Et],delete n[at],delete n[mt],delete n[vt]}function en(n){var a=n[ct];if(a)return a;for(var i=n.parentNode;i;){if(a=i[on]||i[ct]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(n=p1(n);n!==null;){if(i=n[ct])return i;n=p1(n)}return a}n=i,i=n.parentNode}return null}function xt(n){if(n=n[ct]||n[on]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Vt(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function gn(n){var a=n[Fe];return a||(a=n[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function jt(n){n[rt]=!0}var oo=new Set,br={};function _n(n,a){ro(n,a),ro(n+"Capture",a)}function ro(n,a){for(br[n]=a,n=0;n<a.length;n++)oo.add(a[n])}var Yo=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]*$"),Ao={},Gn={};function dt(n){return Ne.call(Gn,n)?!0:Ne.call(Ao,n)?!1:Yo.test(n)?Gn[n]=!0:(Ao[n]=!0,!1)}function Mn(n,a,i){if(dt(a))if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+i)}}function wn(n,a,i){if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+i)}}function Zn(n,a,i,u){if(u===null)n.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(a,i,""+u)}}function Tn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ba(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function bi(n,a,i){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,y=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return g.call(this)},set:function(M){i=""+M,y.call(this,M)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return i},setValue:function(M){i=""+M},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Xr(n){if(!n._valueTracker){var a=Ba(n)?"checked":"value";n._valueTracker=bi(n,a,""+n[a])}}function Bs(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),u="";return n&&(u=Ba(n)?n.checked?"true":"false":n.value),n=u,n!==i?(a.setValue(n),!0):!1}function kr(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var _s=/[\n"\\]/g;function ao(n){return n.replace(_s,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ue(n,a,i,u,g,y,M,P){n.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.type=M:n.removeAttribute("type"),a!=null?M==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Tn(a)):n.value!==""+Tn(a)&&(n.value=""+Tn(a)):M!=="submit"&&M!=="reset"||n.removeAttribute("value"),a!=null?Yr(n,M,Tn(a)):i!=null?Yr(n,M,Tn(i)):u!=null&&n.removeAttribute("value"),g==null&&y!=null&&(n.defaultChecked=!!y),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+Tn(P):n.removeAttribute("name")}function Ht(n,a,i,u,g,y,M,P){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),a!=null||i!=null){if(!(y!=="submit"&&y!=="reset"||a!=null)){Xr(n);return}i=i!=null?""+Tn(i):"",a=a!=null?""+Tn(a):i,P||a===n.value||(n.value=a),n.defaultValue=a}u=u??g,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=P?n.checked:!!u,n.defaultChecked=!!u,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(n.name=M),Xr(n)}function Yr(n,a,i){a==="number"&&kr(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function Kr(n,a,i,u){if(n=n.options,a){a={};for(var g=0;g<i.length;g++)a["$"+i[g]]=!0;for(i=0;i<n.length;i++)g=a.hasOwnProperty("$"+n[i].value),n[i].selected!==g&&(n[i].selected=g),g&&u&&(n[i].defaultSelected=!0)}else{for(i=""+Tn(i),a=null,g=0;g<n.length;g++){if(n[g].value===i){n[g].selected=!0,u&&(n[g].defaultSelected=!0);return}a!==null||n[g].disabled||(a=n[g])}a!==null&&(a.selected=!0)}}function Ps(n,a,i){if(a!=null&&(a=""+Tn(a),a!==n.value&&(n.value=a),i==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=i!=null?""+Tn(i):""}function js(n,a,i,u){if(a==null){if(u!=null){if(i!=null)throw Error(r(92));if(F(u)){if(1<u.length)throw Error(r(93));u=u[0]}i=u}i==null&&(i=""),a=i}i=Tn(a),n.defaultValue=i,u=n.textContent,u===i&&u!==""&&u!==null&&(n.value=u),Xr(n)}function Qr(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var gR=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 oy(n,a,i){var u=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":u?n.setProperty(a,i):typeof i!="number"||i===0||gR.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function ry(n,a,i){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var g in a)u=a[g],a.hasOwnProperty(g)&&i[g]!==u&&oy(n,g,u)}else for(var y in a)a.hasOwnProperty(y)&&oy(n,y,a[y])}function Of(n){if(n.indexOf("-")===-1)return!1;switch(n){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 hR=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"]]),bR=/^[\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 $c(n){return bR.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function yr(){}var zf=null;function Af(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var yi=null,vi=null;function ay(n){var a=xt(n);if(a&&(n=a.stateNode)){var i=n[Et]||null;e:switch(n=a.stateNode,a.type){case"input":if(Ue(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+ao(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var u=i[a];if(u!==n&&u.form===n.form){var g=u[Et]||null;if(!g)throw Error(r(90));Ue(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<i.length;a++)u=i[a],u.form===n.form&&Bs(u)}break e;case"textarea":Ps(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Kr(n,!!i.multiple,a,!1)}}}var If=!1;function iy(n,a,i){if(If)return n(a,i);If=!0;try{var u=n(a);return u}finally{if(If=!1,(yi!==null||vi!==null)&&(uu(),yi&&(a=yi,n=vi,vi=yi=null,ay(a),n)))for(a=0;a<n.length;a++)ay(n[a])}}function Hs(n,a){var i=n.stateNode;if(i===null)return null;var u=i[Et]||null;if(u===null)return null;i=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(r(231,a,typeof i));return i}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bf=!1;if(vr)try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){Bf=!0}}),window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{Bf=!1}var Zr=null,_f=null,Ec=null;function sy(){if(Ec)return Ec;var n,a=_f,i=a.length,u,g="value"in Zr?Zr.value:Zr.textContent,y=g.length;for(n=0;n<i&&a[n]===g[n];n++);var M=i-n;for(u=1;u<=M&&a[i-u]===g[y-u];u++);return Ec=g.slice(n,1<u?1-u:void 0)}function wc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Nc(){return!0}function ly(){return!1}function io(n){function a(i,u,g,y,M){this._reactName=i,this._targetInst=g,this.type=u,this.nativeEvent=y,this.target=M,this.currentTarget=null;for(var P in n)n.hasOwnProperty(P)&&(i=n[P],this[P]=i?i(y):y[P]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Nc:ly,this.isPropagationStopped=ly,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Nc)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Nc)},persist:function(){},isPersistent:Nc}),a}var _a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rc=io(_a),Ls=b({},_a,{view:0,detail:0}),yR=io(Ls),Pf,jf,Vs,Mc=b({},Ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Df,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Vs&&(Vs&&n.type==="mousemove"?(Pf=n.screenX-Vs.screenX,jf=n.screenY-Vs.screenY):jf=Pf=0,Vs=n),Pf)},movementY:function(n){return"movementY"in n?n.movementY:jf}}),cy=io(Mc),vR=b({},Mc,{dataTransfer:0}),xR=io(vR),SR=b({},Ls,{relatedTarget:0}),Hf=io(SR),CR=b({},_a,{animationName:0,elapsedTime:0,pseudoElement:0}),$R=io(CR),ER=b({},_a,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),wR=io(ER),NR=b({},_a,{data:0}),uy=io(NR),RR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MR={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"},TR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OR(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=TR[n])?!!a[n]:!1}function Df(){return OR}var zR=b({},Ls,{key:function(n){if(n.key){var a=RR[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=wc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?MR[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Df,charCode:function(n){return n.type==="keypress"?wc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?wc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),AR=io(zR),IR=b({},Mc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dy=io(IR),BR=b({},Ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Df}),_R=io(BR),PR=b({},_a,{propertyName:0,elapsedTime:0,pseudoElement:0}),jR=io(PR),HR=b({},Mc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),DR=io(HR),LR=b({},_a,{newState:0,oldState:0}),VR=io(LR),FR=[9,13,27,32],Lf=vr&&"CompositionEvent"in window,Fs=null;vr&&"documentMode"in document&&(Fs=document.documentMode);var qR=vr&&"TextEvent"in window&&!Fs,fy=vr&&(!Lf||Fs&&8<Fs&&11>=Fs),my=" ",py=!1;function gy(n,a){switch(n){case"keyup":return FR.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xi=!1;function UR(n,a){switch(n){case"compositionend":return hy(a);case"keypress":return a.which!==32?null:(py=!0,my);case"textInput":return n=a.data,n===my&&py?null:n;default:return null}}function WR(n,a){if(xi)return n==="compositionend"||!Lf&&gy(n,a)?(n=sy(),Ec=_f=Zr=null,xi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return fy&&a.locale!=="ko"?null:a.data;default:return null}}var GR={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 by(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!GR[n.type]:a==="textarea"}function yy(n,a,i,u){yi?vi?vi.push(u):vi=[u]:yi=u,a=bu(a,"onChange"),0<a.length&&(i=new Rc("onChange","change",null,i,u),n.push({event:i,listeners:a}))}var qs=null,Us=null;function XR(n){e1(n,0)}function Tc(n){var a=Vt(n);if(Bs(a))return n}function vy(n,a){if(n==="change")return a}var xy=!1;if(vr){var Vf;if(vr){var Ff="oninput"in document;if(!Ff){var Sy=document.createElement("div");Sy.setAttribute("oninput","return;"),Ff=typeof Sy.oninput=="function"}Vf=Ff}else Vf=!1;xy=Vf&&(!document.documentMode||9<document.documentMode)}function Cy(){qs&&(qs.detachEvent("onpropertychange",$y),Us=qs=null)}function $y(n){if(n.propertyName==="value"&&Tc(Us)){var a=[];yy(a,Us,n,Af(n)),iy(XR,a)}}function kR(n,a,i){n==="focusin"?(Cy(),qs=a,Us=i,qs.attachEvent("onpropertychange",$y)):n==="focusout"&&Cy()}function YR(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Tc(Us)}function KR(n,a){if(n==="click")return Tc(a)}function QR(n,a){if(n==="input"||n==="change")return Tc(a)}function ZR(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var ho=typeof Object.is=="function"?Object.is:ZR;function Ws(n,a){if(ho(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var i=Object.keys(n),u=Object.keys(a);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var g=i[u];if(!Ne.call(a,g)||!ho(n[g],a[g]))return!1}return!0}function Ey(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function wy(n,a){var i=Ey(n);n=0;for(var u;i;){if(i.nodeType===3){if(u=n+i.textContent.length,n<=a&&u>=a)return{node:i,offset:a-n};n=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Ey(i)}}function Ny(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Ny(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Ry(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=kr(n.document);a instanceof n.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)n=a.contentWindow;else break;a=kr(n.document)}return a}function qf(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var JR=vr&&"documentMode"in document&&11>=document.documentMode,Si=null,Uf=null,Gs=null,Wf=!1;function My(n,a,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Wf||Si==null||Si!==kr(u)||(u=Si,"selectionStart"in u&&qf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Gs&&Ws(Gs,u)||(Gs=u,u=bu(Uf,"onSelect"),0<u.length&&(a=new Rc("onSelect","select",null,a,i),n.push({event:a,listeners:u}),a.target=Si)))}function Pa(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var Ci={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionrun:Pa("Transition","TransitionRun"),transitionstart:Pa("Transition","TransitionStart"),transitioncancel:Pa("Transition","TransitionCancel"),transitionend:Pa("Transition","TransitionEnd")},Gf={},Ty={};vr&&(Ty=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function ja(n){if(Gf[n])return Gf[n];if(!Ci[n])return n;var a=Ci[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in Ty)return Gf[n]=a[i];return n}var Oy=ja("animationend"),zy=ja("animationiteration"),Ay=ja("animationstart"),eM=ja("transitionrun"),tM=ja("transitionstart"),nM=ja("transitioncancel"),Iy=ja("transitionend"),By=new Map,Xf="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(" ");Xf.push("scrollEnd");function Ko(n,a){By.set(n,a),_n(a,[n])}var Oc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Io=[],$i=0,kf=0;function zc(){for(var n=$i,a=kf=$i=0;a<n;){var i=Io[a];Io[a++]=null;var u=Io[a];Io[a++]=null;var g=Io[a];Io[a++]=null;var y=Io[a];if(Io[a++]=null,u!==null&&g!==null){var M=u.pending;M===null?g.next=g:(g.next=M.next,M.next=g),u.pending=g}y!==0&&_y(i,g,y)}}function Ac(n,a,i,u){Io[$i++]=n,Io[$i++]=a,Io[$i++]=i,Io[$i++]=u,kf|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function Yf(n,a,i,u){return Ac(n,a,i,u),Ic(n)}function Ha(n,a){return Ac(n,null,null,a),Ic(n)}function _y(n,a,i){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i);for(var g=!1,y=n.return;y!==null;)y.childLanes|=i,u=y.alternate,u!==null&&(u.childLanes|=i),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(g=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,g&&a!==null&&(g=31-Ge(i),n=y.hiddenUpdates,u=n[g],u===null?n[g]=[a]:u.push(a),a.lane=i|536870912),y):null}function Ic(n){if(50<pl)throw pl=0,rp=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ei={};function oM(n,a,i,u){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bo(n,a,i,u){return new oM(n,a,i,u)}function Kf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function xr(n,a){var i=n.alternate;return i===null?(i=bo(n.tag,a,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Py(n,a){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Bc(n,a,i,u,g,y){var M=0;if(u=n,typeof n=="function")Kf(n)&&(M=1);else if(typeof n=="string")M=lT(n,i,W.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case j:return n=bo(31,i,a,g),n.elementType=j,n.lanes=y,n;case C:return Da(i.children,g,y,a);case R:M=8,g|=24;break;case w:return n=bo(12,i,a,g|2),n.elementType=w,n.lanes=y,n;case T:return n=bo(13,i,a,g),n.elementType=T,n.lanes=y,n;case z:return n=bo(19,i,a,g),n.elementType=z,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case $:M=10;break e;case N:M=9;break e;case E:M=11;break e;case A:M=14;break e;case I:M=16,u=null;break e}M=29,i=Error(r(130,n===null?"null":typeof n,"")),u=null}return a=bo(M,i,a,g),a.elementType=n,a.type=u,a.lanes=y,a}function Da(n,a,i,u){return n=bo(7,n,u,a),n.lanes=i,n}function Qf(n,a,i){return n=bo(6,n,null,a),n.lanes=i,n}function jy(n){var a=bo(18,null,null,0);return a.stateNode=n,a}function Zf(n,a,i){return a=bo(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Hy=new WeakMap;function Bo(n,a){if(typeof n=="object"&&n!==null){var i=Hy.get(n);return i!==void 0?i:(a={value:n,source:a,stack:ye(a)},Hy.set(n,a),a)}return{value:n,source:a,stack:ye(a)}}var wi=[],Ni=0,_c=null,Xs=0,_o=[],Po=0,Jr=null,ar=1,ir="";function Sr(n,a){wi[Ni++]=Xs,wi[Ni++]=_c,_c=n,Xs=a}function Dy(n,a,i){_o[Po++]=ar,_o[Po++]=ir,_o[Po++]=Jr,Jr=n;var u=ar;n=ir;var g=32-Ge(u)-1;u&=~(1<<g),i+=1;var y=32-Ge(a)+g;if(30<y){var M=g-g%5;y=(u&(1<<M)-1).toString(32),u>>=M,g-=M,ar=1<<32-Ge(a)+g|i<<g|u,ir=y+n}else ar=1<<y|i<<g|u,ir=n}function Jf(n){n.return!==null&&(Sr(n,1),Dy(n,1,0))}function em(n){for(;n===_c;)_c=wi[--Ni],wi[Ni]=null,Xs=wi[--Ni],wi[Ni]=null;for(;n===Jr;)Jr=_o[--Po],_o[Po]=null,ir=_o[--Po],_o[Po]=null,ar=_o[--Po],_o[Po]=null}function Ly(n,a){_o[Po++]=ar,_o[Po++]=ir,_o[Po++]=Jr,ar=a.id,ir=a.overflow,Jr=n}var Fn=null,hn=null,It=!1,ea=null,jo=!1,tm=Error(r(519));function ta(n){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ks(Bo(a,n)),tm}function Vy(n){var a=n.stateNode,i=n.type,u=n.memoizedProps;switch(a[ct]=n,a[Et]=u,i){case"dialog":Rt("cancel",a),Rt("close",a);break;case"iframe":case"object":case"embed":Rt("load",a);break;case"video":case"audio":for(i=0;i<hl.length;i++)Rt(hl[i],a);break;case"source":Rt("error",a);break;case"img":case"image":case"link":Rt("error",a),Rt("load",a);break;case"details":Rt("toggle",a);break;case"input":Rt("invalid",a),Ht(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Rt("invalid",a);break;case"textarea":Rt("invalid",a),js(a,u.value,u.defaultValue,u.children)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||u.suppressHydrationWarning===!0||r1(a.textContent,i)?(u.popover!=null&&(Rt("beforetoggle",a),Rt("toggle",a)),u.onScroll!=null&&Rt("scroll",a),u.onScrollEnd!=null&&Rt("scrollend",a),u.onClick!=null&&(a.onclick=yr),a=!0):a=!1,a||ta(n,!0)}function Fy(n){for(Fn=n.return;Fn;)switch(Fn.tag){case 5:case 31:case 13:jo=!1;return;case 27:case 3:jo=!0;return;default:Fn=Fn.return}}function Ri(n){if(n!==Fn)return!1;if(!It)return Fy(n),It=!0,!1;var a=n.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||vp(n.type,n.memoizedProps)),i=!i),i&&hn&&ta(n),Fy(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));hn=m1(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));hn=m1(n)}else a===27?(a=hn,ga(n.type)?(n=Ep,Ep=null,hn=n):hn=a):hn=Fn?Do(n.stateNode.nextSibling):null;return!0}function La(){hn=Fn=null,It=!1}function nm(){var n=ea;return n!==null&&(uo===null?uo=n:uo.push.apply(uo,n),ea=null),n}function ks(n){ea===null?ea=[n]:ea.push(n)}var om=_(null),Va=null,Cr=null;function na(n,a,i){Y(om,a._currentValue),a._currentValue=i}function $r(n){n._currentValue=om.current,V(om)}function rm(n,a,i){for(;n!==null;){var u=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),n===i)break;n=n.return}}function am(n,a,i,u){var g=n.child;for(g!==null&&(g.return=n);g!==null;){var y=g.dependencies;if(y!==null){var M=g.child;y=y.firstContext;e:for(;y!==null;){var P=y;y=g;for(var J=0;J<a.length;J++)if(P.context===a[J]){y.lanes|=i,P=y.alternate,P!==null&&(P.lanes|=i),rm(y.return,i,n),u||(M=null);break e}y=P.next}}else if(g.tag===18){if(M=g.return,M===null)throw Error(r(341));M.lanes|=i,y=M.alternate,y!==null&&(y.lanes|=i),rm(M,i,n),M=null}else M=g.child;if(M!==null)M.return=g;else for(M=g;M!==null;){if(M===n){M=null;break}if(g=M.sibling,g!==null){g.return=M.return,M=g;break}M=M.return}g=M}}function Mi(n,a,i,u){n=null;for(var g=a,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var M=g.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var P=g.type;ho(g.pendingProps.value,M.value)||(n!==null?n.push(P):n=[P])}}else if(g===k.current){if(M=g.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(n!==null?n.push(Sl):n=[Sl])}g=g.return}n!==null&&am(a,n,i,u),a.flags|=262144}function Pc(n){for(n=n.firstContext;n!==null;){if(!ho(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Fa(n){Va=n,Cr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function qn(n){return qy(Va,n)}function jc(n,a){return Va===null&&Fa(n),qy(n,a)}function qy(n,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Cr===null){if(n===null)throw Error(r(308));Cr=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Cr=Cr.next=a;return i}var rM=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(i,u){n.push(u)}};this.abort=function(){a.aborted=!0,n.forEach(function(i){return i()})}},aM=e.unstable_scheduleCallback,iM=e.unstable_NormalPriority,On={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function im(){return{controller:new rM,data:new Map,refCount:0}}function Ys(n){n.refCount--,n.refCount===0&&aM(iM,function(){n.controller.abort()})}var Ks=null,sm=0,Ti=0,Oi=null;function sM(n,a){if(Ks===null){var i=Ks=[];sm=0,Ti=up(),Oi={status:"pending",value:void 0,then:function(u){i.push(u)}}}return sm++,a.then(Uy,Uy),a}function Uy(){if(--sm===0&&Ks!==null){Oi!==null&&(Oi.status="fulfilled");var n=Ks;Ks=null,Ti=0,Oi=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function lM(n,a){var i=[],u={status:"pending",value:null,reason:null,then:function(g){i.push(g)}};return n.then(function(){u.status="fulfilled",u.value=a;for(var g=0;g<i.length;g++)(0,i[g])(a)},function(g){for(u.status="rejected",u.reason=g,g=0;g<i.length;g++)(0,i[g])(void 0)}),u}var Wy=D.S;D.S=function(n,a){Mx=je(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&sM(n,a),Wy!==null&&Wy(n,a)};var qa=_(null);function lm(){var n=qa.current;return n!==null?n:un.pooledCache}function Hc(n,a){a===null?Y(qa,qa.current):Y(qa,a.pool)}function Gy(){var n=lm();return n===null?null:{parent:On._currentValue,pool:n}}var zi=Error(r(460)),cm=Error(r(474)),Dc=Error(r(542)),Lc={then:function(){}};function Xy(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ky(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(yr,yr),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Ky(n),n;default:if(typeof a.status=="string")a.then(yr,yr);else{if(n=un,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(u){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=u}},function(u){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Ky(n),n}throw Wa=a,zi}}function Ua(n){try{var a=n._init;return a(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Wa=i,zi):i}}var Wa=null;function Yy(){if(Wa===null)throw Error(r(459));var n=Wa;return Wa=null,n}function Ky(n){if(n===zi||n===Dc)throw Error(r(483))}var Ai=null,Qs=0;function Vc(n){var a=Qs;return Qs+=1,Ai===null&&(Ai=[]),ky(Ai,n,a)}function Zs(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Fc(n,a){throw a.$$typeof===v?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function Qy(n){function a(ie,ne){if(n){var ue=ie.deletions;ue===null?(ie.deletions=[ne],ie.flags|=16):ue.push(ne)}}function i(ie,ne){if(!n)return null;for(;ne!==null;)a(ie,ne),ne=ne.sibling;return null}function u(ie){for(var ne=new Map;ie!==null;)ie.key!==null?ne.set(ie.key,ie):ne.set(ie.index,ie),ie=ie.sibling;return ne}function g(ie,ne){return ie=xr(ie,ne),ie.index=0,ie.sibling=null,ie}function y(ie,ne,ue){return ie.index=ue,n?(ue=ie.alternate,ue!==null?(ue=ue.index,ue<ne?(ie.flags|=67108866,ne):ue):(ie.flags|=67108866,ne)):(ie.flags|=1048576,ne)}function M(ie){return n&&ie.alternate===null&&(ie.flags|=67108866),ie}function P(ie,ne,ue,$e){return ne===null||ne.tag!==6?(ne=Qf(ue,ie.mode,$e),ne.return=ie,ne):(ne=g(ne,ue),ne.return=ie,ne)}function J(ie,ne,ue,$e){var tt=ue.type;return tt===C?xe(ie,ne,ue.props.children,$e,ue.key):ne!==null&&(ne.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===I&&Ua(tt)===ne.type)?(ne=g(ne,ue.props),Zs(ne,ue),ne.return=ie,ne):(ne=Bc(ue.type,ue.key,ue.props,null,ie.mode,$e),Zs(ne,ue),ne.return=ie,ne)}function de(ie,ne,ue,$e){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==ue.containerInfo||ne.stateNode.implementation!==ue.implementation?(ne=Zf(ue,ie.mode,$e),ne.return=ie,ne):(ne=g(ne,ue.children||[]),ne.return=ie,ne)}function xe(ie,ne,ue,$e,tt){return ne===null||ne.tag!==7?(ne=Da(ue,ie.mode,$e,tt),ne.return=ie,ne):(ne=g(ne,ue),ne.return=ie,ne)}function Re(ie,ne,ue){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return ne=Qf(""+ne,ie.mode,ue),ne.return=ie,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return ue=Bc(ne.type,ne.key,ne.props,null,ie.mode,ue),Zs(ue,ne),ue.return=ie,ue;case S:return ne=Zf(ne,ie.mode,ue),ne.return=ie,ne;case I:return ne=Ua(ne),Re(ie,ne,ue)}if(F(ne)||H(ne))return ne=Da(ne,ie.mode,ue,null),ne.return=ie,ne;if(typeof ne.then=="function")return Re(ie,Vc(ne),ue);if(ne.$$typeof===$)return Re(ie,jc(ie,ne),ue);Fc(ie,ne)}return null}function me(ie,ne,ue,$e){var tt=ne!==null?ne.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return tt!==null?null:P(ie,ne,""+ue,$e);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:return ue.key===tt?J(ie,ne,ue,$e):null;case S:return ue.key===tt?de(ie,ne,ue,$e):null;case I:return ue=Ua(ue),me(ie,ne,ue,$e)}if(F(ue)||H(ue))return tt!==null?null:xe(ie,ne,ue,$e,null);if(typeof ue.then=="function")return me(ie,ne,Vc(ue),$e);if(ue.$$typeof===$)return me(ie,ne,jc(ie,ue),$e);Fc(ie,ue)}return null}function ge(ie,ne,ue,$e,tt){if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return ie=ie.get(ue)||null,P(ne,ie,""+$e,tt);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case x:return ie=ie.get($e.key===null?ue:$e.key)||null,J(ne,ie,$e,tt);case S:return ie=ie.get($e.key===null?ue:$e.key)||null,de(ne,ie,$e,tt);case I:return $e=Ua($e),ge(ie,ne,ue,$e,tt)}if(F($e)||H($e))return ie=ie.get(ue)||null,xe(ne,ie,$e,tt,null);if(typeof $e.then=="function")return ge(ie,ne,ue,Vc($e),tt);if($e.$$typeof===$)return ge(ie,ne,ue,jc(ne,$e),tt);Fc(ne,$e)}return null}function Ye(ie,ne,ue,$e){for(var tt=null,Ft=null,Ze=ne,ht=ne=0,Tt=null;Ze!==null&&ht<ue.length;ht++){Ze.index>ht?(Tt=Ze,Ze=null):Tt=Ze.sibling;var qt=me(ie,Ze,ue[ht],$e);if(qt===null){Ze===null&&(Ze=Tt);break}n&&Ze&&qt.alternate===null&&a(ie,Ze),ne=y(qt,ne,ht),Ft===null?tt=qt:Ft.sibling=qt,Ft=qt,Ze=Tt}if(ht===ue.length)return i(ie,Ze),It&&Sr(ie,ht),tt;if(Ze===null){for(;ht<ue.length;ht++)Ze=Re(ie,ue[ht],$e),Ze!==null&&(ne=y(Ze,ne,ht),Ft===null?tt=Ze:Ft.sibling=Ze,Ft=Ze);return It&&Sr(ie,ht),tt}for(Ze=u(Ze);ht<ue.length;ht++)Tt=ge(Ze,ie,ht,ue[ht],$e),Tt!==null&&(n&&Tt.alternate!==null&&Ze.delete(Tt.key===null?ht:Tt.key),ne=y(Tt,ne,ht),Ft===null?tt=Tt:Ft.sibling=Tt,Ft=Tt);return n&&Ze.forEach(function(xa){return a(ie,xa)}),It&&Sr(ie,ht),tt}function it(ie,ne,ue,$e){if(ue==null)throw Error(r(151));for(var tt=null,Ft=null,Ze=ne,ht=ne=0,Tt=null,qt=ue.next();Ze!==null&&!qt.done;ht++,qt=ue.next()){Ze.index>ht?(Tt=Ze,Ze=null):Tt=Ze.sibling;var xa=me(ie,Ze,qt.value,$e);if(xa===null){Ze===null&&(Ze=Tt);break}n&&Ze&&xa.alternate===null&&a(ie,Ze),ne=y(xa,ne,ht),Ft===null?tt=xa:Ft.sibling=xa,Ft=xa,Ze=Tt}if(qt.done)return i(ie,Ze),It&&Sr(ie,ht),tt;if(Ze===null){for(;!qt.done;ht++,qt=ue.next())qt=Re(ie,qt.value,$e),qt!==null&&(ne=y(qt,ne,ht),Ft===null?tt=qt:Ft.sibling=qt,Ft=qt);return It&&Sr(ie,ht),tt}for(Ze=u(Ze);!qt.done;ht++,qt=ue.next())qt=ge(Ze,ie,ht,qt.value,$e),qt!==null&&(n&&qt.alternate!==null&&Ze.delete(qt.key===null?ht:qt.key),ne=y(qt,ne,ht),Ft===null?tt=qt:Ft.sibling=qt,Ft=qt);return n&&Ze.forEach(function(vT){return a(ie,vT)}),It&&Sr(ie,ht),tt}function sn(ie,ne,ue,$e){if(typeof ue=="object"&&ue!==null&&ue.type===C&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:e:{for(var tt=ue.key;ne!==null;){if(ne.key===tt){if(tt=ue.type,tt===C){if(ne.tag===7){i(ie,ne.sibling),$e=g(ne,ue.props.children),$e.return=ie,ie=$e;break e}}else if(ne.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===I&&Ua(tt)===ne.type){i(ie,ne.sibling),$e=g(ne,ue.props),Zs($e,ue),$e.return=ie,ie=$e;break e}i(ie,ne);break}else a(ie,ne);ne=ne.sibling}ue.type===C?($e=Da(ue.props.children,ie.mode,$e,ue.key),$e.return=ie,ie=$e):($e=Bc(ue.type,ue.key,ue.props,null,ie.mode,$e),Zs($e,ue),$e.return=ie,ie=$e)}return M(ie);case S:e:{for(tt=ue.key;ne!==null;){if(ne.key===tt)if(ne.tag===4&&ne.stateNode.containerInfo===ue.containerInfo&&ne.stateNode.implementation===ue.implementation){i(ie,ne.sibling),$e=g(ne,ue.children||[]),$e.return=ie,ie=$e;break e}else{i(ie,ne);break}else a(ie,ne);ne=ne.sibling}$e=Zf(ue,ie.mode,$e),$e.return=ie,ie=$e}return M(ie);case I:return ue=Ua(ue),sn(ie,ne,ue,$e)}if(F(ue))return Ye(ie,ne,ue,$e);if(H(ue)){if(tt=H(ue),typeof tt!="function")throw Error(r(150));return ue=tt.call(ue),it(ie,ne,ue,$e)}if(typeof ue.then=="function")return sn(ie,ne,Vc(ue),$e);if(ue.$$typeof===$)return sn(ie,ne,jc(ie,ue),$e);Fc(ie,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,ne!==null&&ne.tag===6?(i(ie,ne.sibling),$e=g(ne,ue),$e.return=ie,ie=$e):(i(ie,ne),$e=Qf(ue,ie.mode,$e),$e.return=ie,ie=$e),M(ie)):i(ie,ne)}return function(ie,ne,ue,$e){try{Qs=0;var tt=sn(ie,ne,ue,$e);return Ai=null,tt}catch(Ze){if(Ze===zi||Ze===Dc)throw Ze;var Ft=bo(29,Ze,null,ie.mode);return Ft.lanes=$e,Ft.return=ie,Ft}}}var Ga=Qy(!0),Zy=Qy(!1),oa=!1;function um(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dm(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ra(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function aa(n,a,i){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(Gt&2)!==0){var g=u.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a,a=Ic(n),_y(n,null,i),a}return Ac(n,u,a,i),Ic(n)}function Js(n,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var u=a.lanes;u&=n.pendingLanes,i|=u,a.lanes=i,ve(n,i)}}function fm(n,a){var i=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var g=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var M={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};y===null?g=y=M:y=y.next=M,i=i.next}while(i!==null);y===null?g=y=a:y=y.next=a}else g=y=a;i={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=a:n.next=a,i.lastBaseUpdate=a}var mm=!1;function el(){if(mm){var n=Oi;if(n!==null)throw n}}function tl(n,a,i,u){mm=!1;var g=n.updateQueue;oa=!1;var y=g.firstBaseUpdate,M=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var J=P,de=J.next;J.next=null,M===null?y=de:M.next=de,M=J;var xe=n.alternate;xe!==null&&(xe=xe.updateQueue,P=xe.lastBaseUpdate,P!==M&&(P===null?xe.firstBaseUpdate=de:P.next=de,xe.lastBaseUpdate=J))}if(y!==null){var Re=g.baseState;M=0,xe=de=J=null,P=y;do{var me=P.lane&-536870913,ge=me!==P.lane;if(ge?(Mt&me)===me:(u&me)===me){me!==0&&me===Ti&&(mm=!0),xe!==null&&(xe=xe.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ye=n,it=P;me=a;var sn=i;switch(it.tag){case 1:if(Ye=it.payload,typeof Ye=="function"){Re=Ye.call(sn,Re,me);break e}Re=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=it.payload,me=typeof Ye=="function"?Ye.call(sn,Re,me):Ye,me==null)break e;Re=b({},Re,me);break e;case 2:oa=!0}}me=P.callback,me!==null&&(n.flags|=64,ge&&(n.flags|=8192),ge=g.callbacks,ge===null?g.callbacks=[me]:ge.push(me))}else ge={lane:me,tag:P.tag,payload:P.payload,callback:P.callback,next:null},xe===null?(de=xe=ge,J=Re):xe=xe.next=ge,M|=me;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;ge=P,P=ge.next,ge.next=null,g.lastBaseUpdate=ge,g.shared.pending=null}}while(!0);xe===null&&(J=Re),g.baseState=J,g.firstBaseUpdate=de,g.lastBaseUpdate=xe,y===null&&(g.shared.lanes=0),ua|=M,n.lanes=M,n.memoizedState=Re}}function Jy(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function ev(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)Jy(i[n],a)}var Ii=_(null),qc=_(0);function tv(n,a){n=Ar,Y(qc,n),Y(Ii,a),Ar=n|a.baseLanes}function pm(){Y(qc,Ar),Y(Ii,Ii.current)}function gm(){Ar=qc.current,V(Ii),V(qc)}var yo=_(null),Ho=null;function ia(n){var a=n.alternate;Y(Nn,Nn.current&1),Y(yo,n),Ho===null&&(a===null||Ii.current!==null||a.memoizedState!==null)&&(Ho=n)}function hm(n){Y(Nn,Nn.current),Y(yo,n),Ho===null&&(Ho=n)}function nv(n){n.tag===22?(Y(Nn,Nn.current),Y(yo,n),Ho===null&&(Ho=n)):sa()}function sa(){Y(Nn,Nn.current),Y(yo,yo.current)}function vo(n){V(yo),Ho===n&&(Ho=null),V(Nn)}var Nn=_(0);function Uc(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Cp(i)||$p(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Er=0,gt=null,rn=null,zn=null,Wc=!1,Bi=!1,Xa=!1,Gc=0,nl=0,_i=null,cM=0;function Sn(){throw Error(r(321))}function bm(n,a){if(a===null)return!1;for(var i=0;i<a.length&&i<n.length;i++)if(!ho(n[i],a[i]))return!1;return!0}function ym(n,a,i,u,g,y){return Er=y,gt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,D.H=n===null||n.memoizedState===null?Dv:Im,Xa=!1,y=i(u,g),Xa=!1,Bi&&(y=rv(a,i,u,g)),ov(n),y}function ov(n){D.H=al;var a=rn!==null&&rn.next!==null;if(Er=0,zn=rn=gt=null,Wc=!1,nl=0,_i=null,a)throw Error(r(300));n===null||An||(n=n.dependencies,n!==null&&Pc(n)&&(An=!0))}function rv(n,a,i,u){gt=n;var g=0;do{if(Bi&&(_i=null),nl=0,Bi=!1,25<=g)throw Error(r(301));if(g+=1,zn=rn=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}D.H=Lv,y=a(i,u)}while(Bi);return y}function uM(){var n=D.H,a=n.useState()[0];return a=typeof a.then=="function"?ol(a):a,n=n.useState()[0],(rn!==null?rn.memoizedState:null)!==n&&(gt.flags|=1024),a}function vm(){var n=Gc!==0;return Gc=0,n}function xm(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function Sm(n){if(Wc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Wc=!1}Er=0,zn=rn=gt=null,Bi=!1,nl=Gc=0,_i=null}function Jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zn===null?gt.memoizedState=zn=n:zn=zn.next=n,zn}function Rn(){if(rn===null){var n=gt.alternate;n=n!==null?n.memoizedState:null}else n=rn.next;var a=zn===null?gt.memoizedState:zn.next;if(a!==null)zn=a,rn=n;else{if(n===null)throw gt.alternate===null?Error(r(467)):Error(r(310));rn=n,n={memoizedState:rn.memoizedState,baseState:rn.baseState,baseQueue:rn.baseQueue,queue:rn.queue,next:null},zn===null?gt.memoizedState=zn=n:zn=zn.next=n}return zn}function Xc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ol(n){var a=nl;return nl+=1,_i===null&&(_i=[]),n=ky(_i,n,a),a=gt,(zn===null?a.memoizedState:zn.next)===null&&(a=a.alternate,D.H=a===null||a.memoizedState===null?Dv:Im),n}function kc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ol(n);if(n.$$typeof===$)return qn(n)}throw Error(r(438,String(n)))}function Cm(n){var a=null,i=gt.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var u=gt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=Xc(),gt.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(n),u=0;u<n;u++)i[u]=L;return a.index++,i}function wr(n,a){return typeof a=="function"?a(n):a}function Yc(n){var a=Rn();return $m(a,rn,n)}function $m(n,a,i){var u=n.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var g=n.baseQueue,y=u.pending;if(y!==null){if(g!==null){var M=g.next;g.next=y.next,y.next=M}a.baseQueue=g=y,u.pending=null}if(y=n.baseState,g===null)n.memoizedState=y;else{a=g.next;var P=M=null,J=null,de=a,xe=!1;do{var Re=de.lane&-536870913;if(Re!==de.lane?(Mt&Re)===Re:(Er&Re)===Re){var me=de.revertLane;if(me===0)J!==null&&(J=J.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Re===Ti&&(xe=!0);else if((Er&me)===me){de=de.next,me===Ti&&(xe=!0);continue}else Re={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},J===null?(P=J=Re,M=y):J=J.next=Re,gt.lanes|=me,ua|=me;Re=de.action,Xa&&i(y,Re),y=de.hasEagerState?de.eagerState:i(y,Re)}else me={lane:Re,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},J===null?(P=J=me,M=y):J=J.next=me,gt.lanes|=Re,ua|=Re;de=de.next}while(de!==null&&de!==a);if(J===null?M=y:J.next=P,!ho(y,n.memoizedState)&&(An=!0,xe&&(i=Oi,i!==null)))throw i;n.memoizedState=y,n.baseState=M,n.baseQueue=J,u.lastRenderedState=y}return g===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Em(n){var a=Rn(),i=a.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var u=i.dispatch,g=i.pending,y=a.memoizedState;if(g!==null){i.pending=null;var M=g=g.next;do y=n(y,M.action),M=M.next;while(M!==g);ho(y,a.memoizedState)||(An=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),i.lastRenderedState=y}return[y,u]}function av(n,a,i){var u=gt,g=Rn(),y=It;if(y){if(i===void 0)throw Error(r(407));i=i()}else i=a();var M=!ho((rn||g).memoizedState,i);if(M&&(g.memoizedState=i,An=!0),g=g.queue,Rm(lv.bind(null,u,g,n),[n]),g.getSnapshot!==a||M||zn!==null&&zn.memoizedState.tag&1){if(u.flags|=2048,Pi(9,{destroy:void 0},sv.bind(null,u,g,i,a),null),un===null)throw Error(r(349));y||(Er&127)!==0||iv(u,a,i)}return i}function iv(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=gt.updateQueue,a===null?(a=Xc(),gt.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function sv(n,a,i,u){a.value=i,a.getSnapshot=u,cv(a)&&uv(n)}function lv(n,a,i){return i(function(){cv(a)&&uv(n)})}function cv(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!ho(n,i)}catch{return!0}}function uv(n){var a=Ha(n,2);a!==null&&fo(a,n,2)}function wm(n){var a=Jn();if(typeof n=="function"){var i=n;if(n=i(),Xa){Te(!0);try{i()}finally{Te(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:n},a}function dv(n,a,i,u){return n.baseState=i,$m(n,rn,typeof u=="function"?u:wr)}function dM(n,a,i,u,g){if(Zc(n))throw Error(r(485));if(n=a.action,n!==null){var y={payload:g,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){y.listeners.push(M)}};D.T!==null?i(!0):y.isTransition=!1,u(y),i=a.pending,i===null?(y.next=a.pending=y,fv(a,y)):(y.next=i.next,a.pending=i.next=y)}}function fv(n,a){var i=a.action,u=a.payload,g=n.state;if(a.isTransition){var y=D.T,M={};D.T=M;try{var P=i(g,u),J=D.S;J!==null&&J(M,P),mv(n,a,P)}catch(de){Nm(n,a,de)}finally{y!==null&&M.types!==null&&(y.types=M.types),D.T=y}}else try{y=i(g,u),mv(n,a,y)}catch(de){Nm(n,a,de)}}function mv(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){pv(n,a,u)},function(u){return Nm(n,a,u)}):pv(n,a,i)}function pv(n,a,i){a.status="fulfilled",a.value=i,gv(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,fv(n,i)))}function Nm(n,a,i){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=i,gv(a),a=a.next;while(a!==u)}n.action=null}function gv(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function hv(n,a){return a}function bv(n,a){if(It){var i=un.formState;if(i!==null){e:{var u=gt;if(It){if(hn){t:{for(var g=hn,y=jo;g.nodeType!==8;){if(!y){g=null;break t}if(g=Do(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y==="F!"||y==="F"?g:null}if(g){hn=Do(g.nextSibling),u=g.data==="F!";break e}}ta(u)}u=!1}u&&(a=i[0])}}return i=Jn(),i.memoizedState=i.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hv,lastRenderedState:a},i.queue=u,i=Pv.bind(null,gt,u),u.dispatch=i,u=wm(!1),y=Am.bind(null,gt,!1,u.queue),u=Jn(),g={state:a,dispatch:null,action:n,pending:null},u.queue=g,i=dM.bind(null,gt,g,y,i),g.dispatch=i,u.memoizedState=n,[a,i,!1]}function yv(n){var a=Rn();return vv(a,rn,n)}function vv(n,a,i){if(a=$m(n,a,hv)[0],n=Yc(wr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=ol(a)}catch(M){throw M===zi?Dc:M}else u=a;a=Rn();var g=a.queue,y=g.dispatch;return i!==a.memoizedState&&(gt.flags|=2048,Pi(9,{destroy:void 0},fM.bind(null,g,i),null)),[u,y,n]}function fM(n,a){n.action=a}function xv(n){var a=Rn(),i=rn;if(i!==null)return vv(a,i,n);Rn(),a=a.memoizedState,i=Rn();var u=i.queue.dispatch;return i.memoizedState=n,[a,u,!1]}function Pi(n,a,i,u){return n={tag:n,create:i,deps:u,inst:a,next:null},a=gt.updateQueue,a===null&&(a=Xc(),gt.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=n.next=n:(u=i.next,i.next=n,n.next=u,a.lastEffect=n),n}function Sv(){return Rn().memoizedState}function Kc(n,a,i,u){var g=Jn();gt.flags|=n,g.memoizedState=Pi(1|a,{destroy:void 0},i,u===void 0?null:u)}function Qc(n,a,i,u){var g=Rn();u=u===void 0?null:u;var y=g.memoizedState.inst;rn!==null&&u!==null&&bm(u,rn.memoizedState.deps)?g.memoizedState=Pi(a,y,i,u):(gt.flags|=n,g.memoizedState=Pi(1|a,y,i,u))}function Cv(n,a){Kc(8390656,8,n,a)}function Rm(n,a){Qc(2048,8,n,a)}function mM(n){gt.flags|=4;var a=gt.updateQueue;if(a===null)a=Xc(),gt.updateQueue=a,a.events=[n];else{var i=a.events;i===null?a.events=[n]:i.push(n)}}function $v(n){var a=Rn().memoizedState;return mM({ref:a,nextImpl:n}),function(){if((Gt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Ev(n,a){return Qc(4,2,n,a)}function wv(n,a){return Qc(4,4,n,a)}function Nv(n,a){if(typeof a=="function"){n=n();var i=a(n);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Rv(n,a,i){i=i!=null?i.concat([n]):null,Qc(4,4,Nv.bind(null,a,n),i)}function Mm(){}function Mv(n,a){var i=Rn();a=a===void 0?null:a;var u=i.memoizedState;return a!==null&&bm(a,u[1])?u[0]:(i.memoizedState=[n,a],n)}function Tv(n,a){var i=Rn();a=a===void 0?null:a;var u=i.memoizedState;if(a!==null&&bm(a,u[1]))return u[0];if(u=n(),Xa){Te(!0);try{n()}finally{Te(!1)}}return i.memoizedState=[u,a],u}function Tm(n,a,i){return i===void 0||(Er&1073741824)!==0&&(Mt&261930)===0?n.memoizedState=a:(n.memoizedState=i,n=Ox(),gt.lanes|=n,ua|=n,i)}function Ov(n,a,i,u){return ho(i,a)?i:Ii.current!==null?(n=Tm(n,i,u),ho(n,a)||(An=!0),n):(Er&42)===0||(Er&1073741824)!==0&&(Mt&261930)===0?(An=!0,n.memoizedState=i):(n=Ox(),gt.lanes|=n,ua|=n,a)}function zv(n,a,i,u,g){var y=G.p;G.p=y!==0&&8>y?y:8;var M=D.T,P={};D.T=P,Am(n,!1,a,i);try{var J=g(),de=D.S;if(de!==null&&de(P,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var xe=lM(J,u);rl(n,a,xe,Co(n))}else rl(n,a,u,Co(n))}catch(Re){rl(n,a,{then:function(){},status:"rejected",reason:Re},Co())}finally{G.p=y,M!==null&&P.types!==null&&(M.types=P.types),D.T=M}}function pM(){}function Om(n,a,i,u){if(n.tag!==5)throw Error(r(476));var g=Av(n).queue;zv(n,g,a,X,i===null?pM:function(){return Iv(n),i(u)})}function Av(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:X},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Iv(n){var a=Av(n);a.next===null&&(a=n.alternate.memoizedState),rl(n,a.next.queue,{},Co())}function zm(){return qn(Sl)}function Bv(){return Rn().memoizedState}function _v(){return Rn().memoizedState}function gM(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=Co();n=ra(i);var u=aa(a,n,i);u!==null&&(fo(u,a,i),Js(u,a,i)),a={cache:im()},n.payload=a;return}a=a.return}}function hM(n,a,i){var u=Co();i={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Zc(n)?jv(a,i):(i=Yf(n,a,i,u),i!==null&&(fo(i,n,u),Hv(i,a,u)))}function Pv(n,a,i){var u=Co();rl(n,a,i,u)}function rl(n,a,i,u){var g={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Zc(n))jv(a,g);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var M=a.lastRenderedState,P=y(M,i);if(g.hasEagerState=!0,g.eagerState=P,ho(P,M))return Ac(n,a,g,0),un===null&&zc(),!1}catch{}if(i=Yf(n,a,g,u),i!==null)return fo(i,n,u),Hv(i,a,u),!0}return!1}function Am(n,a,i,u){if(u={lane:2,revertLane:up(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Zc(n)){if(a)throw Error(r(479))}else a=Yf(n,i,u,2),a!==null&&fo(a,n,2)}function Zc(n){var a=n.alternate;return n===gt||a!==null&&a===gt}function jv(n,a){Bi=Wc=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function Hv(n,a,i){if((i&4194048)!==0){var u=a.lanes;u&=n.pendingLanes,i|=u,a.lanes=i,ve(n,i)}}var al={readContext:qn,use:kc,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useLayoutEffect:Sn,useInsertionEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useSyncExternalStore:Sn,useId:Sn,useHostTransitionStatus:Sn,useFormState:Sn,useActionState:Sn,useOptimistic:Sn,useMemoCache:Sn,useCacheRefresh:Sn};al.useEffectEvent=Sn;var Dv={readContext:qn,use:kc,useCallback:function(n,a){return Jn().memoizedState=[n,a===void 0?null:a],n},useContext:qn,useEffect:Cv,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,Kc(4194308,4,Nv.bind(null,a,n),i)},useLayoutEffect:function(n,a){return Kc(4194308,4,n,a)},useInsertionEffect:function(n,a){Kc(4,2,n,a)},useMemo:function(n,a){var i=Jn();a=a===void 0?null:a;var u=n();if(Xa){Te(!0);try{n()}finally{Te(!1)}}return i.memoizedState=[u,a],u},useReducer:function(n,a,i){var u=Jn();if(i!==void 0){var g=i(a);if(Xa){Te(!0);try{i(a)}finally{Te(!1)}}}else g=a;return u.memoizedState=u.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},u.queue=n,n=n.dispatch=hM.bind(null,gt,n),[u.memoizedState,n]},useRef:function(n){var a=Jn();return n={current:n},a.memoizedState=n},useState:function(n){n=wm(n);var a=n.queue,i=Pv.bind(null,gt,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:Mm,useDeferredValue:function(n,a){var i=Jn();return Tm(i,n,a)},useTransition:function(){var n=wm(!1);return n=zv.bind(null,gt,n.queue,!0,!1),Jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var u=gt,g=Jn();if(It){if(i===void 0)throw Error(r(407));i=i()}else{if(i=a(),un===null)throw Error(r(349));(Mt&127)!==0||iv(u,a,i)}g.memoizedState=i;var y={value:i,getSnapshot:a};return g.queue=y,Cv(lv.bind(null,u,y,n),[n]),u.flags|=2048,Pi(9,{destroy:void 0},sv.bind(null,u,y,i,a),null),i},useId:function(){var n=Jn(),a=un.identifierPrefix;if(It){var i=ir,u=ar;i=(u&~(1<<32-Ge(u)-1)).toString(32)+i,a="_"+a+"R_"+i,i=Gc++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=cM++,a="_"+a+"r_"+i.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:zm,useFormState:bv,useActionState:bv,useOptimistic:function(n){var a=Jn();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Am.bind(null,gt,!0,i),i.dispatch=a,[n,a]},useMemoCache:Cm,useCacheRefresh:function(){return Jn().memoizedState=gM.bind(null,gt)},useEffectEvent:function(n){var a=Jn(),i={impl:n};return a.memoizedState=i,function(){if((Gt&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},Im={readContext:qn,use:kc,useCallback:Mv,useContext:qn,useEffect:Rm,useImperativeHandle:Rv,useInsertionEffect:Ev,useLayoutEffect:wv,useMemo:Tv,useReducer:Yc,useRef:Sv,useState:function(){return Yc(wr)},useDebugValue:Mm,useDeferredValue:function(n,a){var i=Rn();return Ov(i,rn.memoizedState,n,a)},useTransition:function(){var n=Yc(wr)[0],a=Rn().memoizedState;return[typeof n=="boolean"?n:ol(n),a]},useSyncExternalStore:av,useId:Bv,useHostTransitionStatus:zm,useFormState:yv,useActionState:yv,useOptimistic:function(n,a){var i=Rn();return dv(i,rn,n,a)},useMemoCache:Cm,useCacheRefresh:_v};Im.useEffectEvent=$v;var Lv={readContext:qn,use:kc,useCallback:Mv,useContext:qn,useEffect:Rm,useImperativeHandle:Rv,useInsertionEffect:Ev,useLayoutEffect:wv,useMemo:Tv,useReducer:Em,useRef:Sv,useState:function(){return Em(wr)},useDebugValue:Mm,useDeferredValue:function(n,a){var i=Rn();return rn===null?Tm(i,n,a):Ov(i,rn.memoizedState,n,a)},useTransition:function(){var n=Em(wr)[0],a=Rn().memoizedState;return[typeof n=="boolean"?n:ol(n),a]},useSyncExternalStore:av,useId:Bv,useHostTransitionStatus:zm,useFormState:xv,useActionState:xv,useOptimistic:function(n,a){var i=Rn();return rn!==null?dv(i,rn,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:Cm,useCacheRefresh:_v};Lv.useEffectEvent=$v;function Bm(n,a,i,u){a=n.memoizedState,i=i(u,a),i=i==null?a:b({},a,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var _m={enqueueSetState:function(n,a,i){n=n._reactInternals;var u=Co(),g=ra(u);g.payload=a,i!=null&&(g.callback=i),a=aa(n,g,u),a!==null&&(fo(a,n,u),Js(a,n,u))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var u=Co(),g=ra(u);g.tag=1,g.payload=a,i!=null&&(g.callback=i),a=aa(n,g,u),a!==null&&(fo(a,n,u),Js(a,n,u))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=Co(),u=ra(i);u.tag=2,a!=null&&(u.callback=a),a=aa(n,u,i),a!==null&&(fo(a,n,i),Js(a,n,i))}};function Vv(n,a,i,u,g,y,M){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,y,M):a.prototype&&a.prototype.isPureReactComponent?!Ws(i,u)||!Ws(g,y):!0}function Fv(n,a,i,u){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,u),a.state!==n&&_m.enqueueReplaceState(a,a.state,null)}function ka(n,a){var i=a;if("ref"in a){i={};for(var u in a)u!=="ref"&&(i[u]=a[u])}if(n=n.defaultProps){i===a&&(i=b({},i));for(var g in n)i[g]===void 0&&(i[g]=n[g])}return i}function qv(n){Oc(n)}function Uv(n){console.error(n)}function Wv(n){Oc(n)}function Jc(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function Gv(n,a,i){try{var u=n.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Pm(n,a,i){return i=ra(i),i.tag=3,i.payload={element:null},i.callback=function(){Jc(n,a)},i}function Xv(n){return n=ra(n),n.tag=3,n}function kv(n,a,i,u){var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var y=u.value;n.payload=function(){return g(y)},n.callback=function(){Gv(a,i,u)}}var M=i.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(n.callback=function(){Gv(a,i,u),typeof g!="function"&&(da===null?da=new Set([this]):da.add(this));var P=u.stack;this.componentDidCatch(u.value,{componentStack:P!==null?P:""})})}function bM(n,a,i,u,g){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=i.alternate,a!==null&&Mi(a,i,g,!0),i=yo.current,i!==null){switch(i.tag){case 31:case 13:return Ho===null?du():i.alternate===null&&Cn===0&&(Cn=3),i.flags&=-257,i.flags|=65536,i.lanes=g,u===Lc?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([u]):a.add(u),sp(n,u,g)),!1;case 22:return i.flags|=65536,u===Lc?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([u]):i.add(u)),sp(n,u,g)),!1}throw Error(r(435,i.tag))}return sp(n,u,g),du(),!1}if(It)return a=yo.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,u!==tm&&(n=Error(r(422),{cause:u}),ks(Bo(n,i)))):(u!==tm&&(a=Error(r(423),{cause:u}),ks(Bo(a,i))),n=n.current.alternate,n.flags|=65536,g&=-g,n.lanes|=g,u=Bo(u,i),g=Pm(n.stateNode,u,g),fm(n,g),Cn!==4&&(Cn=2)),!1;var y=Error(r(520),{cause:u});if(y=Bo(y,i),ml===null?ml=[y]:ml.push(y),Cn!==4&&(Cn=2),a===null)return!0;u=Bo(u,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,n=g&-g,i.lanes|=n,n=Pm(i.stateNode,u,n),fm(i,n),!1;case 1:if(a=i.type,y=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(da===null||!da.has(y))))return i.flags|=65536,g&=-g,i.lanes|=g,g=Xv(g),kv(g,n,i,u),fm(i,g),!1}i=i.return}while(i!==null);return!1}var jm=Error(r(461)),An=!1;function Un(n,a,i,u){a.child=n===null?Zy(a,null,i,u):Ga(a,n.child,i,u)}function Yv(n,a,i,u,g){i=i.render;var y=a.ref;if("ref"in u){var M={};for(var P in u)P!=="ref"&&(M[P]=u[P])}else M=u;return Fa(a),u=ym(n,a,i,M,y,g),P=vm(),n!==null&&!An?(xm(n,a,g),Nr(n,a,g)):(It&&P&&Jf(a),a.flags|=1,Un(n,a,u,g),a.child)}function Kv(n,a,i,u,g){if(n===null){var y=i.type;return typeof y=="function"&&!Kf(y)&&y.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=y,Qv(n,a,y,u,g)):(n=Bc(i.type,null,u,a,a.mode,g),n.ref=a.ref,n.return=a,a.child=n)}if(y=n.child,!Wm(n,g)){var M=y.memoizedProps;if(i=i.compare,i=i!==null?i:Ws,i(M,u)&&n.ref===a.ref)return Nr(n,a,g)}return a.flags|=1,n=xr(y,u),n.ref=a.ref,n.return=a,a.child=n}function Qv(n,a,i,u,g){if(n!==null){var y=n.memoizedProps;if(Ws(y,u)&&n.ref===a.ref)if(An=!1,a.pendingProps=u=y,Wm(n,g))(n.flags&131072)!==0&&(An=!0);else return a.lanes=n.lanes,Nr(n,a,g)}return Hm(n,a,i,u,g)}function Zv(n,a,i,u){var g=u.children,y=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(y=y!==null?y.baseLanes|i:i,n!==null){for(u=a.child=n.child,g=0;u!==null;)g=g|u.lanes|u.childLanes,u=u.sibling;u=g&~y}else u=0,a.child=null;return Jv(n,a,y,i,u)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Hc(a,y!==null?y.cachePool:null),y!==null?tv(a,y):pm(),nv(a);else return u=a.lanes=536870912,Jv(n,a,y!==null?y.baseLanes|i:i,i,u)}else y!==null?(Hc(a,y.cachePool),tv(a,y),sa(),a.memoizedState=null):(n!==null&&Hc(a,null),pm(),sa());return Un(n,a,g,i),a.child}function il(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Jv(n,a,i,u,g){var y=lm();return y=y===null?null:{parent:On._currentValue,pool:y},a.memoizedState={baseLanes:i,cachePool:y},n!==null&&Hc(a,null),pm(),nv(a),n!==null&&Mi(n,a,u,!0),a.childLanes=g,null}function eu(n,a){return a=nu({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function ex(n,a,i){return Ga(a,n.child,null,i),n=eu(a,a.pendingProps),n.flags|=2,vo(a),a.memoizedState=null,n}function yM(n,a,i){var u=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(It){if(u.mode==="hidden")return n=eu(a,u),a.lanes=536870912,il(null,n);if(hm(a),(n=hn)?(n=f1(n,jo),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Jr!==null?{id:ar,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},i=jy(n),i.return=a,a.child=i,Fn=a,hn=null)):n=null,n===null)throw ta(a);return a.lanes=536870912,null}return eu(a,u)}var y=n.memoizedState;if(y!==null){var M=y.dehydrated;if(hm(a),g)if(a.flags&256)a.flags&=-257,a=ex(n,a,i);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(r(558));else if(An||Mi(n,a,i,!1),g=(i&n.childLanes)!==0,An||g){if(u=un,u!==null&&(M=_e(u,i),M!==0&&M!==y.retryLane))throw y.retryLane=M,Ha(n,M),fo(u,n,M),jm;du(),a=ex(n,a,i)}else n=y.treeContext,hn=Do(M.nextSibling),Fn=a,It=!0,ea=null,jo=!1,n!==null&&Ly(a,n),a=eu(a,u),a.flags|=4096;return a}return n=xr(n.child,{mode:u.mode,children:u.children}),n.ref=a.ref,a.child=n,n.return=a,n}function tu(n,a){var i=a.ref;if(i===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(n===null||n.ref!==i)&&(a.flags|=4194816)}}function Hm(n,a,i,u,g){return Fa(a),i=ym(n,a,i,u,void 0,g),u=vm(),n!==null&&!An?(xm(n,a,g),Nr(n,a,g)):(It&&u&&Jf(a),a.flags|=1,Un(n,a,i,g),a.child)}function tx(n,a,i,u,g,y){return Fa(a),a.updateQueue=null,i=rv(a,u,i,g),ov(n),u=vm(),n!==null&&!An?(xm(n,a,y),Nr(n,a,y)):(It&&u&&Jf(a),a.flags|=1,Un(n,a,i,y),a.child)}function nx(n,a,i,u,g){if(Fa(a),a.stateNode===null){var y=Ei,M=i.contextType;typeof M=="object"&&M!==null&&(y=qn(M)),y=new i(u,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=_m,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=u,y.state=a.memoizedState,y.refs={},um(a),M=i.contextType,y.context=typeof M=="object"&&M!==null?qn(M):Ei,y.state=a.memoizedState,M=i.getDerivedStateFromProps,typeof M=="function"&&(Bm(a,i,M,u),y.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(M=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),M!==y.state&&_m.enqueueReplaceState(y,y.state,null),tl(a,u,y,g),el(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(n===null){y=a.stateNode;var P=a.memoizedProps,J=ka(i,P);y.props=J;var de=y.context,xe=i.contextType;M=Ei,typeof xe=="object"&&xe!==null&&(M=qn(xe));var Re=i.getDerivedStateFromProps;xe=typeof Re=="function"||typeof y.getSnapshotBeforeUpdate=="function",P=a.pendingProps!==P,xe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(P||de!==M)&&Fv(a,y,u,M),oa=!1;var me=a.memoizedState;y.state=me,tl(a,u,y,g),el(),de=a.memoizedState,P||me!==de||oa?(typeof Re=="function"&&(Bm(a,i,Re,u),de=a.memoizedState),(J=oa||Vv(a,i,J,u,me,de,M))?(xe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=de),y.props=u,y.state=de,y.context=M,u=J):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{y=a.stateNode,dm(n,a),M=a.memoizedProps,xe=ka(i,M),y.props=xe,Re=a.pendingProps,me=y.context,de=i.contextType,J=Ei,typeof de=="object"&&de!==null&&(J=qn(de)),P=i.getDerivedStateFromProps,(de=typeof P=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(M!==Re||me!==J)&&Fv(a,y,u,J),oa=!1,me=a.memoizedState,y.state=me,tl(a,u,y,g),el();var ge=a.memoizedState;M!==Re||me!==ge||oa||n!==null&&n.dependencies!==null&&Pc(n.dependencies)?(typeof P=="function"&&(Bm(a,i,P,u),ge=a.memoizedState),(xe=oa||Vv(a,i,xe,u,me,ge,J)||n!==null&&n.dependencies!==null&&Pc(n.dependencies))?(de||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,ge,J),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,ge,J)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||M===n.memoizedProps&&me===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&me===n.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=ge),y.props=u,y.state=ge,y.context=J,u=xe):(typeof y.componentDidUpdate!="function"||M===n.memoizedProps&&me===n.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&me===n.memoizedState||(a.flags|=1024),u=!1)}return y=u,tu(n,a),u=(a.flags&128)!==0,y||u?(y=a.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,n!==null&&u?(a.child=Ga(a,n.child,null,g),a.child=Ga(a,null,i,g)):Un(n,a,i,g),a.memoizedState=y.state,n=a.child):n=Nr(n,a,g),n}function ox(n,a,i,u){return La(),a.flags|=256,Un(n,a,i,u),a.child}var Dm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lm(n){return{baseLanes:n,cachePool:Gy()}}function Vm(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=So),n}function rx(n,a,i){var u=a.pendingProps,g=!1,y=(a.flags&128)!==0,M;if((M=y)||(M=n!==null&&n.memoizedState===null?!1:(Nn.current&2)!==0),M&&(g=!0,a.flags&=-129),M=(a.flags&32)!==0,a.flags&=-33,n===null){if(It){if(g?ia(a):sa(),(n=hn)?(n=f1(n,jo),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Jr!==null?{id:ar,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},i=jy(n),i.return=a,a.child=i,Fn=a,hn=null)):n=null,n===null)throw ta(a);return $p(n)?a.lanes=32:a.lanes=536870912,null}var P=u.children;return u=u.fallback,g?(sa(),g=a.mode,P=nu({mode:"hidden",children:P},g),u=Da(u,g,i,null),P.return=a,u.return=a,P.sibling=u,a.child=P,u=a.child,u.memoizedState=Lm(i),u.childLanes=Vm(n,M,i),a.memoizedState=Dm,il(null,u)):(ia(a),Fm(a,P))}var J=n.memoizedState;if(J!==null&&(P=J.dehydrated,P!==null)){if(y)a.flags&256?(ia(a),a.flags&=-257,a=qm(n,a,i)):a.memoizedState!==null?(sa(),a.child=n.child,a.flags|=128,a=null):(sa(),P=u.fallback,g=a.mode,u=nu({mode:"visible",children:u.children},g),P=Da(P,g,i,null),P.flags|=2,u.return=a,P.return=a,u.sibling=P,a.child=u,Ga(a,n.child,null,i),u=a.child,u.memoizedState=Lm(i),u.childLanes=Vm(n,M,i),a.memoizedState=Dm,a=il(null,u));else if(ia(a),$p(P)){if(M=P.nextSibling&&P.nextSibling.dataset,M)var de=M.dgst;M=de,u=Error(r(419)),u.stack="",u.digest=M,ks({value:u,source:null,stack:null}),a=qm(n,a,i)}else if(An||Mi(n,a,i,!1),M=(i&n.childLanes)!==0,An||M){if(M=un,M!==null&&(u=_e(M,i),u!==0&&u!==J.retryLane))throw J.retryLane=u,Ha(n,u),fo(M,n,u),jm;Cp(P)||du(),a=qm(n,a,i)}else Cp(P)?(a.flags|=192,a.child=n.child,a=null):(n=J.treeContext,hn=Do(P.nextSibling),Fn=a,It=!0,ea=null,jo=!1,n!==null&&Ly(a,n),a=Fm(a,u.children),a.flags|=4096);return a}return g?(sa(),P=u.fallback,g=a.mode,J=n.child,de=J.sibling,u=xr(J,{mode:"hidden",children:u.children}),u.subtreeFlags=J.subtreeFlags&65011712,de!==null?P=xr(de,P):(P=Da(P,g,i,null),P.flags|=2),P.return=a,u.return=a,u.sibling=P,a.child=u,il(null,u),u=a.child,P=n.child.memoizedState,P===null?P=Lm(i):(g=P.cachePool,g!==null?(J=On._currentValue,g=g.parent!==J?{parent:J,pool:J}:g):g=Gy(),P={baseLanes:P.baseLanes|i,cachePool:g}),u.memoizedState=P,u.childLanes=Vm(n,M,i),a.memoizedState=Dm,il(n.child,u)):(ia(a),i=n.child,n=i.sibling,i=xr(i,{mode:"visible",children:u.children}),i.return=a,i.sibling=null,n!==null&&(M=a.deletions,M===null?(a.deletions=[n],a.flags|=16):M.push(n)),a.child=i,a.memoizedState=null,i)}function Fm(n,a){return a=nu({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function nu(n,a){return n=bo(22,n,null,a),n.lanes=0,n}function qm(n,a,i){return Ga(a,n.child,null,i),n=Fm(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function ax(n,a,i){n.lanes|=a;var u=n.alternate;u!==null&&(u.lanes|=a),rm(n.return,a,i)}function Um(n,a,i,u,g,y){var M=n.memoizedState;M===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:g,treeForkCount:y}:(M.isBackwards=a,M.rendering=null,M.renderingStartTime=0,M.last=u,M.tail=i,M.tailMode=g,M.treeForkCount=y)}function ix(n,a,i){var u=a.pendingProps,g=u.revealOrder,y=u.tail;u=u.children;var M=Nn.current,P=(M&2)!==0;if(P?(M=M&1|2,a.flags|=128):M&=1,Y(Nn,M),Un(n,a,u,i),u=It?Xs:0,!P&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&ax(n,i,a);else if(n.tag===19)ax(n,i,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(g){case"forwards":for(i=a.child,g=null;i!==null;)n=i.alternate,n!==null&&Uc(n)===null&&(g=i),i=i.sibling;i=g,i===null?(g=a.child,a.child=null):(g=i.sibling,i.sibling=null),Um(a,!1,g,i,y,u);break;case"backwards":case"unstable_legacy-backwards":for(i=null,g=a.child,a.child=null;g!==null;){if(n=g.alternate,n!==null&&Uc(n)===null){a.child=g;break}n=g.sibling,g.sibling=i,i=g,g=n}Um(a,!0,i,null,y,u);break;case"together":Um(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function Nr(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),ua|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(Mi(n,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,i=xr(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=xr(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function Wm(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Pc(n)))}function vM(n,a,i){switch(a.tag){case 3:se(a,a.stateNode.containerInfo),na(a,On,n.memoizedState.cache),La();break;case 27:case 5:ae(a);break;case 4:se(a,a.stateNode.containerInfo);break;case 10:na(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,hm(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(ia(a),a.flags|=128,null):(i&a.child.childLanes)!==0?rx(n,a,i):(ia(a),n=Nr(n,a,i),n!==null?n.sibling:null);ia(a);break;case 19:var g=(n.flags&128)!==0;if(u=(i&a.childLanes)!==0,u||(Mi(n,a,i,!1),u=(i&a.childLanes)!==0),g){if(u)return ix(n,a,i);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Y(Nn,Nn.current),u)break;return null;case 22:return a.lanes=0,Zv(n,a,i,a.pendingProps);case 24:na(a,On,n.memoizedState.cache)}return Nr(n,a,i)}function sx(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)An=!0;else{if(!Wm(n,i)&&(a.flags&128)===0)return An=!1,vM(n,a,i);An=(n.flags&131072)!==0}else An=!1,It&&(a.flags&1048576)!==0&&Dy(a,Xs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(n=Ua(a.elementType),a.type=n,typeof n=="function")Kf(n)?(u=ka(n,u),a.tag=1,a=nx(null,a,n,u,i)):(a.tag=0,a=Hm(null,a,n,u,i));else{if(n!=null){var g=n.$$typeof;if(g===E){a.tag=11,a=Yv(null,a,n,u,i);break e}else if(g===A){a.tag=14,a=Kv(null,a,n,u,i);break e}}throw a=Q(n)||n,Error(r(306,a,""))}}return a;case 0:return Hm(n,a,a.type,a.pendingProps,i);case 1:return u=a.type,g=ka(u,a.pendingProps),nx(n,a,u,g,i);case 3:e:{if(se(a,a.stateNode.containerInfo),n===null)throw Error(r(387));u=a.pendingProps;var y=a.memoizedState;g=y.element,dm(n,a),tl(a,u,null,i);var M=a.memoizedState;if(u=M.cache,na(a,On,u),u!==y.cache&&am(a,[On],i,!0),el(),u=M.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:M.cache},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){a=ox(n,a,u,i);break e}else if(u!==g){g=Bo(Error(r(424)),a),ks(g),a=ox(n,a,u,i);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,hn=Do(n.firstChild),Fn=a,It=!0,ea=null,jo=!0,i=Zy(a,null,u,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(La(),u===g){a=Nr(n,a,i);break e}Un(n,a,u,i)}a=a.child}return a;case 26:return tu(n,a),n===null?(i=y1(a.type,null,a.pendingProps,null))?a.memoizedState=i:It||(i=a.type,n=a.pendingProps,u=yu(te.current).createElement(i),u[ct]=a,u[Et]=n,Wn(u,i,n),jt(u),a.stateNode=u):a.memoizedState=y1(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return ae(a),n===null&&It&&(u=a.stateNode=g1(a.type,a.pendingProps,te.current),Fn=a,jo=!0,g=hn,ga(a.type)?(Ep=g,hn=Do(u.firstChild)):hn=g),Un(n,a,a.pendingProps.children,i),tu(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&It&&((g=u=hn)&&(u=YM(u,a.type,a.pendingProps,jo),u!==null?(a.stateNode=u,Fn=a,hn=Do(u.firstChild),jo=!1,g=!0):g=!1),g||ta(a)),ae(a),g=a.type,y=a.pendingProps,M=n!==null?n.memoizedProps:null,u=y.children,vp(g,y)?u=null:M!==null&&vp(g,M)&&(a.flags|=32),a.memoizedState!==null&&(g=ym(n,a,uM,null,null,i),Sl._currentValue=g),tu(n,a),Un(n,a,u,i),a.child;case 6:return n===null&&It&&((n=i=hn)&&(i=KM(i,a.pendingProps,jo),i!==null?(a.stateNode=i,Fn=a,hn=null,n=!0):n=!1),n||ta(a)),null;case 13:return rx(n,a,i);case 4:return se(a,a.stateNode.containerInfo),u=a.pendingProps,n===null?a.child=Ga(a,null,u,i):Un(n,a,u,i),a.child;case 11:return Yv(n,a,a.type,a.pendingProps,i);case 7:return Un(n,a,a.pendingProps,i),a.child;case 8:return Un(n,a,a.pendingProps.children,i),a.child;case 12:return Un(n,a,a.pendingProps.children,i),a.child;case 10:return u=a.pendingProps,na(a,a.type,u.value),Un(n,a,u.children,i),a.child;case 9:return g=a.type._context,u=a.pendingProps.children,Fa(a),g=qn(g),u=u(g),a.flags|=1,Un(n,a,u,i),a.child;case 14:return Kv(n,a,a.type,a.pendingProps,i);case 15:return Qv(n,a,a.type,a.pendingProps,i);case 19:return ix(n,a,i);case 31:return yM(n,a,i);case 22:return Zv(n,a,i,a.pendingProps);case 24:return Fa(a),u=qn(On),n===null?(g=lm(),g===null&&(g=un,y=im(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=i),g=y),a.memoizedState={parent:u,cache:g},um(a),na(a,On,g)):((n.lanes&i)!==0&&(dm(n,a),tl(a,null,null,i),el()),g=n.memoizedState,y=a.memoizedState,g.parent!==u?(g={parent:u,cache:u},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),na(a,On,u)):(u=y.cache,na(a,On,u),u!==g.cache&&am(a,[On],i,!0))),Un(n,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Rr(n){n.flags|=4}function Gm(n,a,i,u,g){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(g&335544128)===g)if(n.stateNode.complete)n.flags|=8192;else if(Bx())n.flags|=8192;else throw Wa=Lc,cm}else n.flags&=-16777217}function lx(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!$1(a))if(Bx())n.flags|=8192;else throw Wa=Lc,cm}function ou(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Qe():536870912,n.lanes|=a,Li|=a)}function sl(n,a){if(!It)switch(n.tailMode){case"hidden":a=n.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function bn(n){var a=n.alternate!==null&&n.alternate.child===n.child,i=0,u=0;if(a)for(var g=n.child;g!==null;)i|=g.lanes|g.childLanes,u|=g.subtreeFlags&65011712,u|=g.flags&65011712,g.return=n,g=g.sibling;else for(g=n.child;g!==null;)i|=g.lanes|g.childLanes,u|=g.subtreeFlags,u|=g.flags,g.return=n,g=g.sibling;return n.subtreeFlags|=u,n.childLanes=i,a}function xM(n,a,i){var u=a.pendingProps;switch(em(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bn(a),null;case 1:return bn(a),null;case 3:return i=a.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),$r(On),ce(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Ri(a)?Rr(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,nm())),bn(a),null;case 26:var g=a.type,y=a.memoizedState;return n===null?(Rr(a),y!==null?(bn(a),lx(a,y)):(bn(a),Gm(a,g,null,u,i))):y?y!==n.memoizedState?(Rr(a),bn(a),lx(a,y)):(bn(a),a.flags&=-16777217):(n=n.memoizedProps,n!==u&&Rr(a),bn(a),Gm(a,g,n,u,i)),null;case 27:if(pe(a),i=te.current,g=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==u&&Rr(a);else{if(!u){if(a.stateNode===null)throw Error(r(166));return bn(a),null}n=W.current,Ri(a)?Vy(a):(n=g1(g,u,i),a.stateNode=n,Rr(a))}return bn(a),null;case 5:if(pe(a),g=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==u&&Rr(a);else{if(!u){if(a.stateNode===null)throw Error(r(166));return bn(a),null}if(y=W.current,Ri(a))Vy(a);else{var M=yu(te.current);switch(y){case 1:y=M.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:y=M.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":y=M.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":y=M.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":y=M.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof u.is=="string"?M.createElement("select",{is:u.is}):M.createElement("select"),u.multiple?y.multiple=!0:u.size&&(y.size=u.size);break;default:y=typeof u.is=="string"?M.createElement(g,{is:u.is}):M.createElement(g)}}y[ct]=a,y[Et]=u;e:for(M=a.child;M!==null;){if(M.tag===5||M.tag===6)y.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===a)break e;for(;M.sibling===null;){if(M.return===null||M.return===a)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}a.stateNode=y;e:switch(Wn(y,g,u),g){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Rr(a)}}return bn(a),Gm(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,i),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==u&&Rr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(r(166));if(n=te.current,Ri(a)){if(n=a.stateNode,i=a.memoizedProps,u=null,g=Fn,g!==null)switch(g.tag){case 27:case 5:u=g.memoizedProps}n[ct]=a,n=!!(n.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||r1(n.nodeValue,i)),n||ta(a,!0)}else n=yu(n).createTextNode(u),n[ct]=a,a.stateNode=n}return bn(a),null;case 31:if(i=a.memoizedState,n===null||n.memoizedState!==null){if(u=Ri(a),i!==null){if(n===null){if(!u)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[ct]=a}else La(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),n=!1}else i=nm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return a.flags&256?(vo(a),a):(vo(a),null);if((a.flags&128)!==0)throw Error(r(558))}return bn(a),null;case 13:if(u=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=Ri(a),u!==null&&u.dehydrated!==null){if(n===null){if(!g)throw Error(r(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[ct]=a}else La(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),g=!1}else g=nm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(vo(a),a):(vo(a),null)}return vo(a),(a.flags&128)!==0?(a.lanes=i,a):(i=u!==null,n=n!==null&&n.memoizedState!==null,i&&(u=a.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool),y=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==g&&(u.flags|=2048)),i!==n&&i&&(a.child.flags|=8192),ou(a,a.updateQueue),bn(a),null);case 4:return ce(),n===null&&pp(a.stateNode.containerInfo),bn(a),null;case 10:return $r(a.type),bn(a),null;case 19:if(V(Nn),u=a.memoizedState,u===null)return bn(a),null;if(g=(a.flags&128)!==0,y=u.rendering,y===null)if(g)sl(u,!1);else{if(Cn!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(y=Uc(n),y!==null){for(a.flags|=128,sl(u,!1),n=y.updateQueue,a.updateQueue=n,ou(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)Py(i,n),i=i.sibling;return Y(Nn,Nn.current&1|2),It&&Sr(a,u.treeForkCount),a.child}n=n.sibling}u.tail!==null&&je()>lu&&(a.flags|=128,g=!0,sl(u,!1),a.lanes=4194304)}else{if(!g)if(n=Uc(y),n!==null){if(a.flags|=128,g=!0,n=n.updateQueue,a.updateQueue=n,ou(a,n),sl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!y.alternate&&!It)return bn(a),null}else 2*je()-u.renderingStartTime>lu&&i!==536870912&&(a.flags|=128,g=!0,sl(u,!1),a.lanes=4194304);u.isBackwards?(y.sibling=a.child,a.child=y):(n=u.last,n!==null?n.sibling=y:a.child=y,u.last=y)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=je(),n.sibling=null,i=Nn.current,Y(Nn,g?i&1|2:i&1),It&&Sr(a,u.treeForkCount),n):(bn(a),null);case 22:case 23:return vo(a),gm(),u=a.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(i&536870912)!==0&&(a.flags&128)===0&&(bn(a),a.subtreeFlags&6&&(a.flags|=8192)):bn(a),i=a.updateQueue,i!==null&&ou(a,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==i&&(a.flags|=2048),n!==null&&V(qa),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),$r(On),bn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function SM(n,a){switch(em(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return $r(On),ce(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return pe(a),null;case 31:if(a.memoizedState!==null){if(vo(a),a.alternate===null)throw Error(r(340));La()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(vo(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));La()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return V(Nn),null;case 4:return ce(),null;case 10:return $r(a.type),null;case 22:case 23:return vo(a),gm(),n!==null&&V(qa),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return $r(On),null;case 25:return null;default:return null}}function cx(n,a){switch(em(a),a.tag){case 3:$r(On),ce();break;case 26:case 27:case 5:pe(a);break;case 4:ce();break;case 31:a.memoizedState!==null&&vo(a);break;case 13:vo(a);break;case 19:V(Nn);break;case 10:$r(a.type);break;case 22:case 23:vo(a),gm(),n!==null&&V(qa);break;case 24:$r(On)}}function ll(n,a){try{var i=a.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var g=u.next;i=g;do{if((i.tag&n)===n){u=void 0;var y=i.create,M=i.inst;u=y(),M.destroy=u}i=i.next}while(i!==g)}}catch(P){nn(a,a.return,P)}}function la(n,a,i){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var y=g.next;u=y;do{if((u.tag&n)===n){var M=u.inst,P=M.destroy;if(P!==void 0){M.destroy=void 0,g=a;var J=i,de=P;try{de()}catch(xe){nn(g,J,xe)}}}u=u.next}while(u!==y)}}catch(xe){nn(a,a.return,xe)}}function ux(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{ev(a,i)}catch(u){nn(n,n.return,u)}}}function dx(n,a,i){i.props=ka(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(u){nn(n,a,u)}}function cl(n,a){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof i=="function"?n.refCleanup=i(u):i.current=u}}catch(g){nn(n,a,g)}}function sr(n,a){var i=n.ref,u=n.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(g){nn(n,a,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(g){nn(n,a,g)}else i.current=null}function fx(n){var a=n.type,i=n.memoizedProps,u=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break e;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(g){nn(n,n.return,g)}}function Xm(n,a,i){try{var u=n.stateNode;qM(u,n.type,i,a),u[Et]=a}catch(g){nn(n,n.return,g)}}function mx(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ga(n.type)||n.tag===4}function km(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||mx(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ga(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ym(n,a,i){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(n),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=yr));else if(u!==4&&(u===27&&ga(n.type)&&(i=n.stateNode,a=null),n=n.child,n!==null))for(Ym(n,a,i),n=n.sibling;n!==null;)Ym(n,a,i),n=n.sibling}function ru(n,a,i){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?i.insertBefore(n,a):i.appendChild(n);else if(u!==4&&(u===27&&ga(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(ru(n,a,i),n=n.sibling;n!==null;)ru(n,a,i),n=n.sibling}function px(n){var a=n.stateNode,i=n.memoizedProps;try{for(var u=n.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);Wn(a,u,i),a[ct]=n,a[Et]=i}catch(y){nn(n,n.return,y)}}var Mr=!1,In=!1,Km=!1,gx=typeof WeakSet=="function"?WeakSet:Set,Dn=null;function CM(n,a){if(n=n.containerInfo,bp=wu,n=Ry(n),qf(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var g=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var M=0,P=-1,J=-1,de=0,xe=0,Re=n,me=null;t:for(;;){for(var ge;Re!==i||g!==0&&Re.nodeType!==3||(P=M+g),Re!==y||u!==0&&Re.nodeType!==3||(J=M+u),Re.nodeType===3&&(M+=Re.nodeValue.length),(ge=Re.firstChild)!==null;)me=Re,Re=ge;for(;;){if(Re===n)break t;if(me===i&&++de===g&&(P=M),me===y&&++xe===u&&(J=M),(ge=Re.nextSibling)!==null)break;Re=me,me=Re.parentNode}Re=ge}i=P===-1||J===-1?null:{start:P,end:J}}else i=null}i=i||{start:0,end:0}}else i=null;for(yp={focusedElem:n,selectionRange:i},wu=!1,Dn=a;Dn!==null;)if(a=Dn,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Dn=n;else for(;Dn!==null;){switch(a=Dn,y=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)g=n[i],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,i=a,g=y.memoizedProps,y=y.memoizedState,u=i.stateNode;try{var Ye=ka(i.type,g);n=u.getSnapshotBeforeUpdate(Ye,y),u.__reactInternalSnapshotBeforeUpdate=n}catch(it){nn(i,i.return,it)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,i=n.nodeType,i===9)Sp(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Sp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,Dn=n;break}Dn=a.return}}function hx(n,a,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:Or(n,i),u&4&&ll(5,i);break;case 1:if(Or(n,i),u&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch(M){nn(i,i.return,M)}else{var g=ka(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(g,a,n.__reactInternalSnapshotBeforeUpdate)}catch(M){nn(i,i.return,M)}}u&64&&ux(i),u&512&&cl(i,i.return);break;case 3:if(Or(n,i),u&64&&(n=i.updateQueue,n!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{ev(n,a)}catch(M){nn(i,i.return,M)}}break;case 27:a===null&&u&4&&px(i);case 26:case 5:Or(n,i),a===null&&u&4&&fx(i),u&512&&cl(i,i.return);break;case 12:Or(n,i);break;case 31:Or(n,i),u&4&&vx(n,i);break;case 13:Or(n,i),u&4&&xx(n,i),u&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=zM.bind(null,i),QM(n,i))));break;case 22:if(u=i.memoizedState!==null||Mr,!u){a=a!==null&&a.memoizedState!==null||In,g=Mr;var y=In;Mr=u,(In=a)&&!y?zr(n,i,(i.subtreeFlags&8772)!==0):Or(n,i),Mr=g,In=y}break;case 30:break;default:Or(n,i)}}function bx(n){var a=n.alternate;a!==null&&(n.alternate=null,bx(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Pt(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var vn=null,so=!1;function Tr(n,a,i){for(i=i.child;i!==null;)yx(n,a,i),i=i.sibling}function yx(n,a,i){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(We,i)}catch{}switch(i.tag){case 26:In||sr(i,a),Tr(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:In||sr(i,a);var u=vn,g=so;ga(i.type)&&(vn=i.stateNode,so=!1),Tr(n,a,i),yl(i.stateNode),vn=u,so=g;break;case 5:In||sr(i,a);case 6:if(u=vn,g=so,vn=null,Tr(n,a,i),vn=u,so=g,vn!==null)if(so)try{(vn.nodeType===9?vn.body:vn.nodeName==="HTML"?vn.ownerDocument.body:vn).removeChild(i.stateNode)}catch(y){nn(i,a,y)}else try{vn.removeChild(i.stateNode)}catch(y){nn(i,a,y)}break;case 18:vn!==null&&(so?(n=vn,u1(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),ki(n)):u1(vn,i.stateNode));break;case 4:u=vn,g=so,vn=i.stateNode.containerInfo,so=!0,Tr(n,a,i),vn=u,so=g;break;case 0:case 11:case 14:case 15:la(2,i,a),In||la(4,i,a),Tr(n,a,i);break;case 1:In||(sr(i,a),u=i.stateNode,typeof u.componentWillUnmount=="function"&&dx(i,a,u)),Tr(n,a,i);break;case 21:Tr(n,a,i);break;case 22:In=(u=In)||i.memoizedState!==null,Tr(n,a,i),In=u;break;default:Tr(n,a,i)}}function vx(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ki(n)}catch(i){nn(a,a.return,i)}}}function xx(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ki(n)}catch(i){nn(a,a.return,i)}}function $M(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new gx),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new gx),a;default:throw Error(r(435,n.tag))}}function au(n,a){var i=$M(n);a.forEach(function(u){if(!i.has(u)){i.add(u);var g=AM.bind(null,n,u);u.then(g,g)}})}function lo(n,a){var i=a.deletions;if(i!==null)for(var u=0;u<i.length;u++){var g=i[u],y=n,M=a,P=M;e:for(;P!==null;){switch(P.tag){case 27:if(ga(P.type)){vn=P.stateNode,so=!1;break e}break;case 5:vn=P.stateNode,so=!1;break e;case 3:case 4:vn=P.stateNode.containerInfo,so=!0;break e}P=P.return}if(vn===null)throw Error(r(160));yx(y,M,g),vn=null,so=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Sx(a,n),a=a.sibling}var Qo=null;function Sx(n,a){var i=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:lo(a,n),co(n),u&4&&(la(3,n,n.return),ll(3,n),la(5,n,n.return));break;case 1:lo(a,n),co(n),u&512&&(In||i===null||sr(i,i.return)),u&64&&Mr&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var g=Qo;if(lo(a,n),co(n),u&512&&(In||i===null||sr(i,i.return)),u&4){var y=i!==null?i.memoizedState:null;if(u=n.memoizedState,i===null)if(u===null)if(n.stateNode===null){e:{u=n.type,i=n.memoizedProps,g=g.ownerDocument||g;t:switch(u){case"title":y=g.getElementsByTagName("title")[0],(!y||y[rt]||y[ct]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(u),g.head.insertBefore(y,g.querySelector("head > title"))),Wn(y,u,i),y[ct]=n,jt(y),u=y;break e;case"link":var M=S1("link","href",g).get(u+(i.href||""));if(M){for(var P=0;P<M.length;P++)if(y=M[P],y.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&y.getAttribute("rel")===(i.rel==null?null:i.rel)&&y.getAttribute("title")===(i.title==null?null:i.title)&&y.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){M.splice(P,1);break t}}y=g.createElement(u),Wn(y,u,i),g.head.appendChild(y);break;case"meta":if(M=S1("meta","content",g).get(u+(i.content||""))){for(P=0;P<M.length;P++)if(y=M[P],y.getAttribute("content")===(i.content==null?null:""+i.content)&&y.getAttribute("name")===(i.name==null?null:i.name)&&y.getAttribute("property")===(i.property==null?null:i.property)&&y.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&y.getAttribute("charset")===(i.charSet==null?null:i.charSet)){M.splice(P,1);break t}}y=g.createElement(u),Wn(y,u,i),g.head.appendChild(y);break;default:throw Error(r(468,u))}y[ct]=n,jt(y),u=y}n.stateNode=u}else C1(g,n.type,n.stateNode);else n.stateNode=x1(g,u,n.memoizedProps);else y!==u?(y===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):y.count--,u===null?C1(g,n.type,n.stateNode):x1(g,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Xm(n,n.memoizedProps,i.memoizedProps)}break;case 27:lo(a,n),co(n),u&512&&(In||i===null||sr(i,i.return)),i!==null&&u&4&&Xm(n,n.memoizedProps,i.memoizedProps);break;case 5:if(lo(a,n),co(n),u&512&&(In||i===null||sr(i,i.return)),n.flags&32){g=n.stateNode;try{Qr(g,"")}catch(Ye){nn(n,n.return,Ye)}}u&4&&n.stateNode!=null&&(g=n.memoizedProps,Xm(n,g,i!==null?i.memoizedProps:g)),u&1024&&(Km=!0);break;case 6:if(lo(a,n),co(n),u&4){if(n.stateNode===null)throw Error(r(162));u=n.memoizedProps,i=n.stateNode;try{i.nodeValue=u}catch(Ye){nn(n,n.return,Ye)}}break;case 3:if(Su=null,g=Qo,Qo=vu(a.containerInfo),lo(a,n),Qo=g,co(n),u&4&&i!==null&&i.memoizedState.isDehydrated)try{ki(a.containerInfo)}catch(Ye){nn(n,n.return,Ye)}Km&&(Km=!1,Cx(n));break;case 4:u=Qo,Qo=vu(n.stateNode.containerInfo),lo(a,n),co(n),Qo=u;break;case 12:lo(a,n),co(n);break;case 31:lo(a,n),co(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,au(n,u)));break;case 13:lo(a,n),co(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(su=je()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,au(n,u)));break;case 22:g=n.memoizedState!==null;var J=i!==null&&i.memoizedState!==null,de=Mr,xe=In;if(Mr=de||g,In=xe||J,lo(a,n),In=xe,Mr=de,co(n),u&8192)e:for(a=n.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(i===null||J||Mr||In||Ya(n)),i=null,a=n;;){if(a.tag===5||a.tag===26){if(i===null){J=i=a;try{if(y=J.stateNode,g)M=y.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{P=J.stateNode;var Re=J.memoizedProps.style,me=Re!=null&&Re.hasOwnProperty("display")?Re.display:null;P.style.display=me==null||typeof me=="boolean"?"":(""+me).trim()}}catch(Ye){nn(J,J.return,Ye)}}}else if(a.tag===6){if(i===null){J=a;try{J.stateNode.nodeValue=g?"":J.memoizedProps}catch(Ye){nn(J,J.return,Ye)}}}else if(a.tag===18){if(i===null){J=a;try{var ge=J.stateNode;g?d1(ge,!0):d1(J.stateNode,!1)}catch(Ye){nn(J,J.return,Ye)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=n.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,au(n,i))));break;case 19:lo(a,n),co(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,au(n,u)));break;case 30:break;case 21:break;default:lo(a,n),co(n)}}function co(n){var a=n.flags;if(a&2){try{for(var i,u=n.return;u!==null;){if(mx(u)){i=u;break}u=u.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var g=i.stateNode,y=km(n);ru(n,y,g);break;case 5:var M=i.stateNode;i.flags&32&&(Qr(M,""),i.flags&=-33);var P=km(n);ru(n,P,M);break;case 3:case 4:var J=i.stateNode.containerInfo,de=km(n);Ym(n,de,J);break;default:throw Error(r(161))}}catch(xe){nn(n,n.return,xe)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Cx(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Cx(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Or(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)hx(n,a.alternate,a),a=a.sibling}function Ya(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:la(4,a,a.return),Ya(a);break;case 1:sr(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&dx(a,a.return,i),Ya(a);break;case 27:yl(a.stateNode);case 26:case 5:sr(a,a.return),Ya(a);break;case 22:a.memoizedState===null&&Ya(a);break;case 30:Ya(a);break;default:Ya(a)}n=n.sibling}}function zr(n,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,g=n,y=a,M=y.flags;switch(y.tag){case 0:case 11:case 15:zr(g,y,i),ll(4,y);break;case 1:if(zr(g,y,i),u=y,g=u.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(de){nn(u,u.return,de)}if(u=y,g=u.updateQueue,g!==null){var P=u.stateNode;try{var J=g.shared.hiddenCallbacks;if(J!==null)for(g.shared.hiddenCallbacks=null,g=0;g<J.length;g++)Jy(J[g],P)}catch(de){nn(u,u.return,de)}}i&&M&64&&ux(y),cl(y,y.return);break;case 27:px(y);case 26:case 5:zr(g,y,i),i&&u===null&&M&4&&fx(y),cl(y,y.return);break;case 12:zr(g,y,i);break;case 31:zr(g,y,i),i&&M&4&&vx(g,y);break;case 13:zr(g,y,i),i&&M&4&&xx(g,y);break;case 22:y.memoizedState===null&&zr(g,y,i),cl(y,y.return);break;case 30:break;default:zr(g,y,i)}a=a.sibling}}function Qm(n,a){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&Ys(i))}function Zm(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ys(n))}function Zo(n,a,i,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)$x(n,a,i,u),a=a.sibling}function $x(n,a,i,u){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Zo(n,a,i,u),g&2048&&ll(9,a);break;case 1:Zo(n,a,i,u);break;case 3:Zo(n,a,i,u),g&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ys(n)));break;case 12:if(g&2048){Zo(n,a,i,u),n=a.stateNode;try{var y=a.memoizedProps,M=y.id,P=y.onPostCommit;typeof P=="function"&&P(M,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(J){nn(a,a.return,J)}}else Zo(n,a,i,u);break;case 31:Zo(n,a,i,u);break;case 13:Zo(n,a,i,u);break;case 23:break;case 22:y=a.stateNode,M=a.alternate,a.memoizedState!==null?y._visibility&2?Zo(n,a,i,u):ul(n,a):y._visibility&2?Zo(n,a,i,u):(y._visibility|=2,ji(n,a,i,u,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Qm(M,a);break;case 24:Zo(n,a,i,u),g&2048&&Zm(a.alternate,a);break;default:Zo(n,a,i,u)}}function ji(n,a,i,u,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var y=n,M=a,P=i,J=u,de=M.flags;switch(M.tag){case 0:case 11:case 15:ji(y,M,P,J,g),ll(8,M);break;case 23:break;case 22:var xe=M.stateNode;M.memoizedState!==null?xe._visibility&2?ji(y,M,P,J,g):ul(y,M):(xe._visibility|=2,ji(y,M,P,J,g)),g&&de&2048&&Qm(M.alternate,M);break;case 24:ji(y,M,P,J,g),g&&de&2048&&Zm(M.alternate,M);break;default:ji(y,M,P,J,g)}a=a.sibling}}function ul(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=n,u=a,g=u.flags;switch(u.tag){case 22:ul(i,u),g&2048&&Qm(u.alternate,u);break;case 24:ul(i,u),g&2048&&Zm(u.alternate,u);break;default:ul(i,u)}a=a.sibling}}var dl=8192;function Hi(n,a,i){if(n.subtreeFlags&dl)for(n=n.child;n!==null;)Ex(n,a,i),n=n.sibling}function Ex(n,a,i){switch(n.tag){case 26:Hi(n,a,i),n.flags&dl&&n.memoizedState!==null&&cT(i,Qo,n.memoizedState,n.memoizedProps);break;case 5:Hi(n,a,i);break;case 3:case 4:var u=Qo;Qo=vu(n.stateNode.containerInfo),Hi(n,a,i),Qo=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=dl,dl=16777216,Hi(n,a,i),dl=u):Hi(n,a,i));break;default:Hi(n,a,i)}}function wx(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function fl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var u=a[i];Dn=u,Rx(u,n)}wx(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Nx(n),n=n.sibling}function Nx(n){switch(n.tag){case 0:case 11:case 15:fl(n),n.flags&2048&&la(9,n,n.return);break;case 3:fl(n);break;case 12:fl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,iu(n)):fl(n);break;default:fl(n)}}function iu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var u=a[i];Dn=u,Rx(u,n)}wx(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:la(8,a,a.return),iu(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,iu(a));break;default:iu(a)}n=n.sibling}}function Rx(n,a){for(;Dn!==null;){var i=Dn;switch(i.tag){case 0:case 11:case 15:la(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Ys(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,Dn=u;else e:for(i=n;Dn!==null;){u=Dn;var g=u.sibling,y=u.return;if(bx(u),u===i){Dn=null;break e}if(g!==null){g.return=y,Dn=g;break e}Dn=y}}}var EM={getCacheForType:function(n){var a=qn(On),i=a.data.get(n);return i===void 0&&(i=n(),a.data.set(n,i)),i},cacheSignal:function(){return qn(On).controller.signal}},wM=typeof WeakMap=="function"?WeakMap:Map,Gt=0,un=null,Nt=null,Mt=0,tn=0,xo=null,ca=!1,Di=!1,Jm=!1,Ar=0,Cn=0,ua=0,Ka=0,ep=0,So=0,Li=0,ml=null,uo=null,tp=!1,su=0,Mx=0,lu=1/0,cu=null,da=null,Pn=0,fa=null,Vi=null,Ir=0,np=0,op=null,Tx=null,pl=0,rp=null;function Co(){return(Gt&2)!==0&&Mt!==0?Mt&-Mt:D.T!==null?up():lt()}function Ox(){if(So===0)if((Mt&536870912)===0||It){var n=Bt;Bt<<=1,(Bt&3932160)===0&&(Bt=262144),So=n}else So=536870912;return n=yo.current,n!==null&&(n.flags|=32),So}function fo(n,a,i){(n===un&&(tn===2||tn===9)||n.cancelPendingCommit!==null)&&(Fi(n,0),ma(n,Mt,So,!1)),He(n,i),((Gt&2)===0||n!==un)&&(n===un&&((Gt&2)===0&&(Ka|=i),Cn===4&&ma(n,Mt,So,!1)),lr(n))}function zx(n,a,i){if((Gt&6)!==0)throw Error(r(327));var u=!i&&(a&127)===0&&(a&n.expiredLanes)===0||wt(n,a),g=u?MM(n,a):ip(n,a,!0),y=u;do{if(g===0){Di&&!u&&ma(n,a,0,!1);break}else{if(i=n.current.alternate,y&&!NM(i)){g=ip(n,a,!1),y=!1;continue}if(g===2){if(y=a,n.errorRecoveryDisabledLanes&y)var M=0;else M=n.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){a=M;e:{var P=n;g=ml;var J=P.current.memoizedState.isDehydrated;if(J&&(Fi(P,M).flags|=256),M=ip(P,M,!1),M!==2){if(Jm&&!J){P.errorRecoveryDisabledLanes|=y,Ka|=y,g=4;break e}y=uo,uo=g,y!==null&&(uo===null?uo=y:uo.push.apply(uo,y))}g=M}if(y=!1,g!==2)continue}}if(g===1){Fi(n,0),ma(n,a,0,!0);break}e:{switch(u=n,y=g,y){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ma(u,a,So,!ca);break e;case 2:uo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(g=su+300-je(),10<g)){if(ma(u,a,So,!ca),zt(u,0,!0)!==0)break e;Ir=a,u.timeoutHandle=l1(Ax.bind(null,u,i,uo,cu,tp,a,So,Ka,Li,ca,y,"Throttled",-0,0),g);break e}Ax(u,i,uo,cu,tp,a,So,Ka,Li,ca,y,null,-0,0)}}break}while(!0);lr(n)}function Ax(n,a,i,u,g,y,M,P,J,de,xe,Re,me,ge){if(n.timeoutHandle=-1,Re=a.subtreeFlags,Re&8192||(Re&16785408)===16785408){Re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yr},Ex(a,y,Re);var Ye=(y&62914560)===y?su-je():(y&4194048)===y?Mx-je():0;if(Ye=uT(Re,Ye),Ye!==null){Ir=y,n.cancelPendingCommit=Ye(Lx.bind(null,n,a,y,i,u,g,M,P,J,xe,Re,null,me,ge)),ma(n,y,M,!de);return}}Lx(n,a,y,i,u,g,M,P,J)}function NM(n){for(var a=n;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var u=0;u<i.length;u++){var g=i[u],y=g.getSnapshot;g=g.value;try{if(!ho(y(),g))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ma(n,a,i,u){a&=~ep,a&=~Ka,n.suspendedLanes|=a,n.pingedLanes&=~a,u&&(n.warmLanes|=a),u=n.expirationTimes;for(var g=a;0<g;){var y=31-Ge(g),M=1<<y;u[y]=-1,g&=~M}i!==0&&ze(n,i,a)}function uu(){return(Gt&6)===0?(gl(0),!1):!0}function ap(){if(Nt!==null){if(tn===0)var n=Nt.return;else n=Nt,Cr=Va=null,Sm(n),Ai=null,Qs=0,n=Nt;for(;n!==null;)cx(n.alternate,n),n=n.return;Nt=null}}function Fi(n,a){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,GM(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Ir=0,ap(),un=n,Nt=i=xr(n.current,null),Mt=a,tn=0,xo=null,ca=!1,Di=wt(n,a),Jm=!1,Li=So=ep=Ka=ua=Cn=0,uo=ml=null,tp=!1,(a&8)!==0&&(a|=a&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=a;0<u;){var g=31-Ge(u),y=1<<g;a|=n[g],u&=~y}return Ar=a,zc(),i}function Ix(n,a){gt=null,D.H=al,a===zi||a===Dc?(a=Yy(),tn=3):a===cm?(a=Yy(),tn=4):tn=a===jm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,xo=a,Nt===null&&(Cn=1,Jc(n,Bo(a,n.current)))}function Bx(){var n=yo.current;return n===null?!0:(Mt&4194048)===Mt?Ho===null:(Mt&62914560)===Mt||(Mt&536870912)!==0?n===Ho:!1}function _x(){var n=D.H;return D.H=al,n===null?al:n}function Px(){var n=D.A;return D.A=EM,n}function du(){Cn=4,ca||(Mt&4194048)!==Mt&&yo.current!==null||(Di=!0),(ua&134217727)===0&&(Ka&134217727)===0||un===null||ma(un,Mt,So,!1)}function ip(n,a,i){var u=Gt;Gt|=2;var g=_x(),y=Px();(un!==n||Mt!==a)&&(cu=null,Fi(n,a)),a=!1;var M=Cn;e:do try{if(tn!==0&&Nt!==null){var P=Nt,J=xo;switch(tn){case 8:ap(),M=6;break e;case 3:case 2:case 9:case 6:yo.current===null&&(a=!0);var de=tn;if(tn=0,xo=null,qi(n,P,J,de),i&&Di){M=0;break e}break;default:de=tn,tn=0,xo=null,qi(n,P,J,de)}}RM(),M=Cn;break}catch(xe){Ix(n,xe)}while(!0);return a&&n.shellSuspendCounter++,Cr=Va=null,Gt=u,D.H=g,D.A=y,Nt===null&&(un=null,Mt=0,zc()),M}function RM(){for(;Nt!==null;)jx(Nt)}function MM(n,a){var i=Gt;Gt|=2;var u=_x(),g=Px();un!==n||Mt!==a?(cu=null,lu=je()+500,Fi(n,a)):Di=wt(n,a);e:do try{if(tn!==0&&Nt!==null){a=Nt;var y=xo;t:switch(tn){case 1:tn=0,xo=null,qi(n,a,y,1);break;case 2:case 9:if(Xy(y)){tn=0,xo=null,Hx(a);break}a=function(){tn!==2&&tn!==9||un!==n||(tn=7),lr(n)},y.then(a,a);break e;case 3:tn=7;break e;case 4:tn=5;break e;case 7:Xy(y)?(tn=0,xo=null,Hx(a)):(tn=0,xo=null,qi(n,a,y,7));break;case 5:var M=null;switch(Nt.tag){case 26:M=Nt.memoizedState;case 5:case 27:var P=Nt;if(M?$1(M):P.stateNode.complete){tn=0,xo=null;var J=P.sibling;if(J!==null)Nt=J;else{var de=P.return;de!==null?(Nt=de,fu(de)):Nt=null}break t}}tn=0,xo=null,qi(n,a,y,5);break;case 6:tn=0,xo=null,qi(n,a,y,6);break;case 8:ap(),Cn=6;break e;default:throw Error(r(462))}}TM();break}catch(xe){Ix(n,xe)}while(!0);return Cr=Va=null,D.H=u,D.A=g,Gt=i,Nt!==null?0:(un=null,Mt=0,zc(),Cn)}function TM(){for(;Nt!==null&&!Ie();)jx(Nt)}function jx(n){var a=sx(n.alternate,n,Ar);n.memoizedProps=n.pendingProps,a===null?fu(n):Nt=a}function Hx(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=tx(i,a,a.pendingProps,a.type,void 0,Mt);break;case 11:a=tx(i,a,a.pendingProps,a.type.render,a.ref,Mt);break;case 5:Sm(a);default:cx(i,a),a=Nt=Py(a,Ar),a=sx(i,a,Ar)}n.memoizedProps=n.pendingProps,a===null?fu(n):Nt=a}function qi(n,a,i,u){Cr=Va=null,Sm(a),Ai=null,Qs=0;var g=a.return;try{if(bM(n,g,a,i,Mt)){Cn=1,Jc(n,Bo(i,n.current)),Nt=null;return}}catch(y){if(g!==null)throw Nt=g,y;Cn=1,Jc(n,Bo(i,n.current)),Nt=null;return}a.flags&32768?(It||u===1?n=!0:Di||(Mt&536870912)!==0?n=!1:(ca=n=!0,(u===2||u===9||u===3||u===6)&&(u=yo.current,u!==null&&u.tag===13&&(u.flags|=16384))),Dx(a,n)):fu(a)}function fu(n){var a=n;do{if((a.flags&32768)!==0){Dx(a,ca);return}n=a.return;var i=xM(a.alternate,a,Ar);if(i!==null){Nt=i;return}if(a=a.sibling,a!==null){Nt=a;return}Nt=a=n}while(a!==null);Cn===0&&(Cn=5)}function Dx(n,a){do{var i=SM(n.alternate,n);if(i!==null){i.flags&=32767,Nt=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(n=n.sibling,n!==null)){Nt=n;return}Nt=n=i}while(n!==null);Cn=6,Nt=null}function Lx(n,a,i,u,g,y,M,P,J){n.cancelPendingCommit=null;do mu();while(Pn!==0);if((Gt&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(y=a.lanes|a.childLanes,y|=kf,we(n,i,y,M,P,J),n===un&&(Nt=un=null,Mt=0),Vi=a,fa=n,Ir=i,np=y,op=g,Tx=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,IM(Ve,function(){return Wx(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=D.T,D.T=null,g=G.p,G.p=2,M=Gt,Gt|=4;try{CM(n,a,i)}finally{Gt=M,G.p=g,D.T=u}}Pn=1,Vx(),Fx(),qx()}}function Vx(){if(Pn===1){Pn=0;var n=fa,a=Vi,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var u=G.p;G.p=2;var g=Gt;Gt|=4;try{Sx(a,n);var y=yp,M=Ry(n.containerInfo),P=y.focusedElem,J=y.selectionRange;if(M!==P&&P&&P.ownerDocument&&Ny(P.ownerDocument.documentElement,P)){if(J!==null&&qf(P)){var de=J.start,xe=J.end;if(xe===void 0&&(xe=de),"selectionStart"in P)P.selectionStart=de,P.selectionEnd=Math.min(xe,P.value.length);else{var Re=P.ownerDocument||document,me=Re&&Re.defaultView||window;if(me.getSelection){var ge=me.getSelection(),Ye=P.textContent.length,it=Math.min(J.start,Ye),sn=J.end===void 0?it:Math.min(J.end,Ye);!ge.extend&&it>sn&&(M=sn,sn=it,it=M);var ie=wy(P,it),ne=wy(P,sn);if(ie&&ne&&(ge.rangeCount!==1||ge.anchorNode!==ie.node||ge.anchorOffset!==ie.offset||ge.focusNode!==ne.node||ge.focusOffset!==ne.offset)){var ue=Re.createRange();ue.setStart(ie.node,ie.offset),ge.removeAllRanges(),it>sn?(ge.addRange(ue),ge.extend(ne.node,ne.offset)):(ue.setEnd(ne.node,ne.offset),ge.addRange(ue))}}}}for(Re=[],ge=P;ge=ge.parentNode;)ge.nodeType===1&&Re.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<Re.length;P++){var $e=Re[P];$e.element.scrollLeft=$e.left,$e.element.scrollTop=$e.top}}wu=!!bp,yp=bp=null}finally{Gt=g,G.p=u,D.T=i}}n.current=a,Pn=2}}function Fx(){if(Pn===2){Pn=0;var n=fa,a=Vi,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var u=G.p;G.p=2;var g=Gt;Gt|=4;try{hx(n,a.alternate,a)}finally{Gt=g,G.p=u,D.T=i}}Pn=3}}function qx(){if(Pn===4||Pn===3){Pn=0,Me();var n=fa,a=Vi,i=Ir,u=Tx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Pn=5:(Pn=0,Vi=fa=null,Ux(n,n.pendingLanes));var g=n.pendingLanes;if(g===0&&(da=null),Xe(i),a=a.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(We,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=D.T,g=G.p,G.p=2,D.T=null;try{for(var y=n.onRecoverableError,M=0;M<u.length;M++){var P=u[M];y(P.value,{componentStack:P.stack})}}finally{D.T=a,G.p=g}}(Ir&3)!==0&&mu(),lr(n),g=n.pendingLanes,(i&261930)!==0&&(g&42)!==0?n===rp?pl++:(pl=0,rp=n):pl=0,gl(0)}}function Ux(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Ys(a)))}function mu(){return Vx(),Fx(),qx(),Wx()}function Wx(){if(Pn!==5)return!1;var n=fa,a=np;np=0;var i=Xe(Ir),u=D.T,g=G.p;try{G.p=32>i?32:i,D.T=null,i=op,op=null;var y=fa,M=Ir;if(Pn=0,Vi=fa=null,Ir=0,(Gt&6)!==0)throw Error(r(331));var P=Gt;if(Gt|=4,Nx(y.current),$x(y,y.current,M,i),Gt=P,gl(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(We,y)}catch{}return!0}finally{G.p=g,D.T=u,Ux(n,a)}}function Gx(n,a,i){a=Bo(i,a),a=Pm(n.stateNode,a,2),n=aa(n,a,2),n!==null&&(He(n,2),lr(n))}function nn(n,a,i){if(n.tag===3)Gx(n,n,i);else for(;a!==null;){if(a.tag===3){Gx(a,n,i);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(da===null||!da.has(u))){n=Bo(i,n),i=Xv(2),u=aa(a,i,2),u!==null&&(kv(i,u,a,n),He(u,2),lr(u));break}}a=a.return}}function sp(n,a,i){var u=n.pingCache;if(u===null){u=n.pingCache=new wM;var g=new Set;u.set(a,g)}else g=u.get(a),g===void 0&&(g=new Set,u.set(a,g));g.has(i)||(Jm=!0,g.add(i),n=OM.bind(null,n,a,i),a.then(n,n))}function OM(n,a,i){var u=n.pingCache;u!==null&&u.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,un===n&&(Mt&i)===i&&(Cn===4||Cn===3&&(Mt&62914560)===Mt&&300>je()-su?(Gt&2)===0&&Fi(n,0):ep|=i,Li===Mt&&(Li=0)),lr(n)}function Xx(n,a){a===0&&(a=Qe()),n=Ha(n,a),n!==null&&(He(n,a),lr(n))}function zM(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),Xx(n,i)}function AM(n,a){var i=0;switch(n.tag){case 31:case 13:var u=n.stateNode,g=n.memoizedState;g!==null&&(i=g.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(a),Xx(n,i)}function IM(n,a){return Oe(n,a)}var pu=null,Ui=null,lp=!1,gu=!1,cp=!1,pa=0;function lr(n){n!==Ui&&n.next===null&&(Ui===null?pu=Ui=n:Ui=Ui.next=n),gu=!0,lp||(lp=!0,_M())}function gl(n,a){if(!cp&&gu){cp=!0;do for(var i=!1,u=pu;u!==null;){if(n!==0){var g=u.pendingLanes;if(g===0)var y=0;else{var M=u.suspendedLanes,P=u.pingedLanes;y=(1<<31-Ge(42|n)+1)-1,y&=g&~(M&~P),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(i=!0,Qx(u,y))}else y=Mt,y=zt(u,u===un?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(y&3)===0||wt(u,y)||(i=!0,Qx(u,y));u=u.next}while(i);cp=!1}}function BM(){kx()}function kx(){gu=lp=!1;var n=0;pa!==0&&WM()&&(n=pa);for(var a=je(),i=null,u=pu;u!==null;){var g=u.next,y=Yx(u,a);y===0?(u.next=null,i===null?pu=g:i.next=g,g===null&&(Ui=i)):(i=u,(n!==0||(y&3)!==0)&&(gu=!0)),u=g}Pn!==0&&Pn!==5||gl(n),pa!==0&&(pa=0)}function Yx(n,a){for(var i=n.suspendedLanes,u=n.pingedLanes,g=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var M=31-Ge(y),P=1<<M,J=g[M];J===-1?((P&i)===0||(P&u)!==0)&&(g[M]=Dt(P,a)):J<=a&&(n.expiredLanes|=P),y&=~P}if(a=un,i=Mt,i=zt(n,n===a?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,i===0||n===a&&(tn===2||tn===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Ce(u),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||wt(n,i)){if(a=i&-i,a===n.callbackPriority)return a;switch(u!==null&&Ce(u),Xe(i)){case 2:case 8:i=Le;break;case 32:i=Ve;break;case 268435456:i=qe;break;default:i=Ve}return u=Kx.bind(null,n),i=Oe(i,u),n.callbackPriority=a,n.callbackNode=i,a}return u!==null&&u!==null&&Ce(u),n.callbackPriority=2,n.callbackNode=null,2}function Kx(n,a){if(Pn!==0&&Pn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(mu()&&n.callbackNode!==i)return null;var u=Mt;return u=zt(n,n===un?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(zx(n,u,a),Yx(n,je()),n.callbackNode!=null&&n.callbackNode===i?Kx.bind(null,n):null)}function Qx(n,a){if(mu())return null;zx(n,a,!0)}function _M(){XM(function(){(Gt&6)!==0?Oe(ke,BM):kx()})}function up(){if(pa===0){var n=Ti;n===0&&(n=st,st<<=1,(st&261888)===0&&(st=256)),pa=n}return pa}function Zx(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:$c(""+n)}function Jx(n,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,n.id&&i.setAttribute("form",n.id),a.parentNode.insertBefore(i,a),n=new FormData(n),i.parentNode.removeChild(i),n}function PM(n,a,i,u,g){if(a==="submit"&&i&&i.stateNode===g){var y=Zx((g[Et]||null).action),M=u.submitter;M&&(a=(a=M[Et]||null)?Zx(a.formAction):M.getAttribute("formAction"),a!==null&&(y=a,M=null));var P=new Rc("action","action",null,u,g);n.push({event:P,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(pa!==0){var J=M?Jx(g,M):new FormData(g);Om(i,{pending:!0,data:J,method:g.method,action:y},null,J)}}else typeof y=="function"&&(P.preventDefault(),J=M?Jx(g,M):new FormData(g),Om(i,{pending:!0,data:J,method:g.method,action:y},y,J))},currentTarget:g}]})}}for(var dp=0;dp<Xf.length;dp++){var fp=Xf[dp],jM=fp.toLowerCase(),HM=fp[0].toUpperCase()+fp.slice(1);Ko(jM,"on"+HM)}Ko(Oy,"onAnimationEnd"),Ko(zy,"onAnimationIteration"),Ko(Ay,"onAnimationStart"),Ko("dblclick","onDoubleClick"),Ko("focusin","onFocus"),Ko("focusout","onBlur"),Ko(eM,"onTransitionRun"),Ko(tM,"onTransitionStart"),Ko(nM,"onTransitionCancel"),Ko(Iy,"onTransitionEnd"),ro("onMouseEnter",["mouseout","mouseover"]),ro("onMouseLeave",["mouseout","mouseover"]),ro("onPointerEnter",["pointerout","pointerover"]),ro("onPointerLeave",["pointerout","pointerover"]),_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_n("onBeforeInput",["compositionend","keypress","textInput","paste"]),_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hl="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(" "),DM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hl));function e1(n,a){a=(a&4)!==0;for(var i=0;i<n.length;i++){var u=n[i],g=u.event;u=u.listeners;e:{var y=void 0;if(a)for(var M=u.length-1;0<=M;M--){var P=u[M],J=P.instance,de=P.currentTarget;if(P=P.listener,J!==y&&g.isPropagationStopped())break e;y=P,g.currentTarget=de;try{y(g)}catch(xe){Oc(xe)}g.currentTarget=null,y=J}else for(M=0;M<u.length;M++){if(P=u[M],J=P.instance,de=P.currentTarget,P=P.listener,J!==y&&g.isPropagationStopped())break e;y=P,g.currentTarget=de;try{y(g)}catch(xe){Oc(xe)}g.currentTarget=null,y=J}}}}function Rt(n,a){var i=a[at];i===void 0&&(i=a[at]=new Set);var u=n+"__bubble";i.has(u)||(t1(a,n,2,!1),i.add(u))}function mp(n,a,i){var u=0;a&&(u|=4),t1(i,n,u,a)}var hu="_reactListening"+Math.random().toString(36).slice(2);function pp(n){if(!n[hu]){n[hu]=!0,oo.forEach(function(i){i!=="selectionchange"&&(DM.has(i)||mp(i,!1,n),mp(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[hu]||(a[hu]=!0,mp("selectionchange",!1,a))}}function t1(n,a,i,u){switch(O1(a)){case 2:var g=mT;break;case 8:g=pT;break;default:g=Tp}i=g.bind(null,a,i,n),g=void 0,!Bf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),u?g!==void 0?n.addEventListener(a,i,{capture:!0,passive:g}):n.addEventListener(a,i,!0):g!==void 0?n.addEventListener(a,i,{passive:g}):n.addEventListener(a,i,!1)}function gp(n,a,i,u,g){var y=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var M=u.tag;if(M===3||M===4){var P=u.stateNode.containerInfo;if(P===g)break;if(M===4)for(M=u.return;M!==null;){var J=M.tag;if((J===3||J===4)&&M.stateNode.containerInfo===g)return;M=M.return}for(;P!==null;){if(M=en(P),M===null)return;if(J=M.tag,J===5||J===6||J===26||J===27){u=y=M;continue e}P=P.parentNode}}u=u.return}iy(function(){var de=y,xe=Af(i),Re=[];e:{var me=By.get(n);if(me!==void 0){var ge=Rc,Ye=n;switch(n){case"keypress":if(wc(i)===0)break e;case"keydown":case"keyup":ge=AR;break;case"focusin":Ye="focus",ge=Hf;break;case"focusout":Ye="blur",ge=Hf;break;case"beforeblur":case"afterblur":ge=Hf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=xR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=_R;break;case Oy:case zy:case Ay:ge=$R;break;case Iy:ge=jR;break;case"scroll":case"scrollend":ge=yR;break;case"wheel":ge=DR;break;case"copy":case"cut":case"paste":ge=wR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=dy;break;case"toggle":case"beforetoggle":ge=VR}var it=(a&4)!==0,sn=!it&&(n==="scroll"||n==="scrollend"),ie=it?me!==null?me+"Capture":null:me;it=[];for(var ne=de,ue;ne!==null;){var $e=ne;if(ue=$e.stateNode,$e=$e.tag,$e!==5&&$e!==26&&$e!==27||ue===null||ie===null||($e=Hs(ne,ie),$e!=null&&it.push(bl(ne,$e,ue))),sn)break;ne=ne.return}0<it.length&&(me=new ge(me,Ye,null,i,xe),Re.push({event:me,listeners:it}))}}if((a&7)===0){e:{if(me=n==="mouseover"||n==="pointerover",ge=n==="mouseout"||n==="pointerout",me&&i!==zf&&(Ye=i.relatedTarget||i.fromElement)&&(en(Ye)||Ye[on]))break e;if((ge||me)&&(me=xe.window===xe?xe:(me=xe.ownerDocument)?me.defaultView||me.parentWindow:window,ge?(Ye=i.relatedTarget||i.toElement,ge=de,Ye=Ye?en(Ye):null,Ye!==null&&(sn=l(Ye),it=Ye.tag,Ye!==sn||it!==5&&it!==27&&it!==6)&&(Ye=null)):(ge=null,Ye=de),ge!==Ye)){if(it=cy,$e="onMouseLeave",ie="onMouseEnter",ne="mouse",(n==="pointerout"||n==="pointerover")&&(it=dy,$e="onPointerLeave",ie="onPointerEnter",ne="pointer"),sn=ge==null?me:Vt(ge),ue=Ye==null?me:Vt(Ye),me=new it($e,ne+"leave",ge,i,xe),me.target=sn,me.relatedTarget=ue,$e=null,en(xe)===de&&(it=new it(ie,ne+"enter",Ye,i,xe),it.target=ue,it.relatedTarget=sn,$e=it),sn=$e,ge&&Ye)t:{for(it=LM,ie=ge,ne=Ye,ue=0,$e=ie;$e;$e=it($e))ue++;$e=0;for(var tt=ne;tt;tt=it(tt))$e++;for(;0<ue-$e;)ie=it(ie),ue--;for(;0<$e-ue;)ne=it(ne),$e--;for(;ue--;){if(ie===ne||ne!==null&&ie===ne.alternate){it=ie;break t}ie=it(ie),ne=it(ne)}it=null}else it=null;ge!==null&&n1(Re,me,ge,it,!1),Ye!==null&&sn!==null&&n1(Re,sn,Ye,it,!0)}}e:{if(me=de?Vt(de):window,ge=me.nodeName&&me.nodeName.toLowerCase(),ge==="select"||ge==="input"&&me.type==="file")var Ft=vy;else if(by(me))if(xy)Ft=QR;else{Ft=YR;var Ze=kR}else ge=me.nodeName,!ge||ge.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?de&&Of(de.elementType)&&(Ft=vy):Ft=KR;if(Ft&&(Ft=Ft(n,de))){yy(Re,Ft,i,xe);break e}Ze&&Ze(n,me,de),n==="focusout"&&de&&me.type==="number"&&de.memoizedProps.value!=null&&Yr(me,"number",me.value)}switch(Ze=de?Vt(de):window,n){case"focusin":(by(Ze)||Ze.contentEditable==="true")&&(Si=Ze,Uf=de,Gs=null);break;case"focusout":Gs=Uf=Si=null;break;case"mousedown":Wf=!0;break;case"contextmenu":case"mouseup":case"dragend":Wf=!1,My(Re,i,xe);break;case"selectionchange":if(JR)break;case"keydown":case"keyup":My(Re,i,xe)}var ht;if(Lf)e:{switch(n){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else xi?gy(n,i)&&(Tt="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Tt="onCompositionStart");Tt&&(fy&&i.locale!=="ko"&&(xi||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&xi&&(ht=sy()):(Zr=xe,_f="value"in Zr?Zr.value:Zr.textContent,xi=!0)),Ze=bu(de,Tt),0<Ze.length&&(Tt=new uy(Tt,n,null,i,xe),Re.push({event:Tt,listeners:Ze}),ht?Tt.data=ht:(ht=hy(i),ht!==null&&(Tt.data=ht)))),(ht=qR?UR(n,i):WR(n,i))&&(Tt=bu(de,"onBeforeInput"),0<Tt.length&&(Ze=new uy("onBeforeInput","beforeinput",null,i,xe),Re.push({event:Ze,listeners:Tt}),Ze.data=ht)),PM(Re,n,de,i,xe)}e1(Re,a)})}function bl(n,a,i){return{instance:n,listener:a,currentTarget:i}}function bu(n,a){for(var i=a+"Capture",u=[];n!==null;){var g=n,y=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=Hs(n,i),g!=null&&u.unshift(bl(n,g,y)),g=Hs(n,a),g!=null&&u.push(bl(n,g,y))),n.tag===3)return u;n=n.return}return[]}function LM(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function n1(n,a,i,u,g){for(var y=a._reactName,M=[];i!==null&&i!==u;){var P=i,J=P.alternate,de=P.stateNode;if(P=P.tag,J!==null&&J===u)break;P!==5&&P!==26&&P!==27||de===null||(J=de,g?(de=Hs(i,y),de!=null&&M.unshift(bl(i,de,J))):g||(de=Hs(i,y),de!=null&&M.push(bl(i,de,J)))),i=i.return}M.length!==0&&n.push({event:a,listeners:M})}var VM=/\r\n?/g,FM=/\u0000|\uFFFD/g;function o1(n){return(typeof n=="string"?n:""+n).replace(VM,`
36
+ `).replace(FM,"")}function r1(n,a){return a=o1(a),o1(n)===a}function an(n,a,i,u,g,y){switch(i){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||Qr(n,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&Qr(n,""+u);break;case"className":wn(n,"class",u);break;case"tabIndex":wn(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":wn(n,i,u);break;case"style":ry(n,u,y);break;case"data":if(a!=="object"){wn(n,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||i!=="href")){n.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(i);break}u=$c(""+u),n.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(i,"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 y=="function"&&(i==="formAction"?(a!=="input"&&an(n,a,"name",g.name,g,null),an(n,a,"formEncType",g.formEncType,g,null),an(n,a,"formMethod",g.formMethod,g,null),an(n,a,"formTarget",g.formTarget,g,null)):(an(n,a,"encType",g.encType,g,null),an(n,a,"method",g.method,g,null),an(n,a,"target",g.target,g,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(i);break}u=$c(""+u),n.setAttribute(i,u);break;case"onClick":u!=null&&(n.onclick=yr);break;case"onScroll":u!=null&&Rt("scroll",n);break;case"onScrollEnd":u!=null&&Rt("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(i=u.__html,i!=null){if(g.children!=null)throw Error(r(60));n.innerHTML=i}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}i=$c(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(i,""+u):n.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":u===!0?n.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(i,u):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(i,u):n.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(i):n.setAttribute(i,u);break;case"popover":Rt("beforetoggle",n),Rt("toggle",n),Mn(n,"popover",u);break;case"xlinkActuate":Zn(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Zn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Zn(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Zn(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Zn(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Zn(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Zn(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Mn(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=hR.get(i)||i,Mn(n,i,u))}}function hp(n,a,i,u,g,y){switch(i){case"style":ry(n,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(i=u.__html,i!=null){if(g.children!=null)throw Error(r(60));n.innerHTML=i}}break;case"children":typeof u=="string"?Qr(n,u):(typeof u=="number"||typeof u=="bigint")&&Qr(n,""+u);break;case"onScroll":u!=null&&Rt("scroll",n);break;case"onScrollEnd":u!=null&&Rt("scrollend",n);break;case"onClick":u!=null&&(n.onclick=yr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!br.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(g=i.endsWith("Capture"),a=i.slice(2,g?i.length-7:void 0),y=n[Et]||null,y=y!=null?y[i]:null,typeof y=="function"&&n.removeEventListener(a,y,g),typeof u=="function")){typeof y!="function"&&y!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(a,u,g);break e}i in n?n[i]=u:u===!0?n.setAttribute(i,""):Mn(n,i,u)}}}function Wn(n,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",n),Rt("load",n);var u=!1,g=!1,y;for(y in i)if(i.hasOwnProperty(y)){var M=i[y];if(M!=null)switch(y){case"src":u=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:an(n,a,y,M,i,null)}}g&&an(n,a,"srcSet",i.srcSet,i,null),u&&an(n,a,"src",i.src,i,null);return;case"input":Rt("invalid",n);var P=y=M=g=null,J=null,de=null;for(u in i)if(i.hasOwnProperty(u)){var xe=i[u];if(xe!=null)switch(u){case"name":g=xe;break;case"type":M=xe;break;case"checked":J=xe;break;case"defaultChecked":de=xe;break;case"value":y=xe;break;case"defaultValue":P=xe;break;case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(r(137,a));break;default:an(n,a,u,xe,i,null)}}Ht(n,y,P,J,de,M,g,!1);return;case"select":Rt("invalid",n),u=M=y=null;for(g in i)if(i.hasOwnProperty(g)&&(P=i[g],P!=null))switch(g){case"value":y=P;break;case"defaultValue":M=P;break;case"multiple":u=P;default:an(n,a,g,P,i,null)}a=y,i=M,n.multiple=!!u,a!=null?Kr(n,!!u,a,!1):i!=null&&Kr(n,!!u,i,!0);return;case"textarea":Rt("invalid",n),y=g=u=null;for(M in i)if(i.hasOwnProperty(M)&&(P=i[M],P!=null))switch(M){case"value":u=P;break;case"defaultValue":g=P;break;case"children":y=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:an(n,a,M,P,i,null)}js(n,u,g,y);return;case"option":for(J in i)i.hasOwnProperty(J)&&(u=i[J],u!=null)&&(J==="selected"?n.selected=u&&typeof u!="function"&&typeof u!="symbol":an(n,a,J,u,i,null));return;case"dialog":Rt("beforetoggle",n),Rt("toggle",n),Rt("cancel",n),Rt("close",n);break;case"iframe":case"object":Rt("load",n);break;case"video":case"audio":for(u=0;u<hl.length;u++)Rt(hl[u],n);break;case"image":Rt("error",n),Rt("load",n);break;case"details":Rt("toggle",n);break;case"embed":case"source":case"link":Rt("error",n),Rt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in i)if(i.hasOwnProperty(de)&&(u=i[de],u!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:an(n,a,de,u,i,null)}return;default:if(Of(a)){for(xe in i)i.hasOwnProperty(xe)&&(u=i[xe],u!==void 0&&hp(n,a,xe,u,i,void 0));return}}for(P in i)i.hasOwnProperty(P)&&(u=i[P],u!=null&&an(n,a,P,u,i,null))}function qM(n,a,i,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,M=null,P=null,J=null,de=null,xe=null;for(ge in i){var Re=i[ge];if(i.hasOwnProperty(ge)&&Re!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":J=Re;default:u.hasOwnProperty(ge)||an(n,a,ge,null,u,Re)}}for(var me in u){var ge=u[me];if(Re=i[me],u.hasOwnProperty(me)&&(ge!=null||Re!=null))switch(me){case"type":y=ge;break;case"name":g=ge;break;case"checked":de=ge;break;case"defaultChecked":xe=ge;break;case"value":M=ge;break;case"defaultValue":P=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,a));break;default:ge!==Re&&an(n,a,me,ge,u,Re)}}Ue(n,M,P,J,de,xe,y,g);return;case"select":ge=M=P=me=null;for(y in i)if(J=i[y],i.hasOwnProperty(y)&&J!=null)switch(y){case"value":break;case"multiple":ge=J;default:u.hasOwnProperty(y)||an(n,a,y,null,u,J)}for(g in u)if(y=u[g],J=i[g],u.hasOwnProperty(g)&&(y!=null||J!=null))switch(g){case"value":me=y;break;case"defaultValue":P=y;break;case"multiple":M=y;default:y!==J&&an(n,a,g,y,u,J)}a=P,i=M,u=ge,me!=null?Kr(n,!!i,me,!1):!!u!=!!i&&(a!=null?Kr(n,!!i,a,!0):Kr(n,!!i,i?[]:"",!1));return;case"textarea":ge=me=null;for(P in i)if(g=i[P],i.hasOwnProperty(P)&&g!=null&&!u.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:an(n,a,P,null,u,g)}for(M in u)if(g=u[M],y=i[M],u.hasOwnProperty(M)&&(g!=null||y!=null))switch(M){case"value":me=g;break;case"defaultValue":ge=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==y&&an(n,a,M,g,u,y)}Ps(n,me,ge);return;case"option":for(var Ye in i)me=i[Ye],i.hasOwnProperty(Ye)&&me!=null&&!u.hasOwnProperty(Ye)&&(Ye==="selected"?n.selected=!1:an(n,a,Ye,null,u,me));for(J in u)me=u[J],ge=i[J],u.hasOwnProperty(J)&&me!==ge&&(me!=null||ge!=null)&&(J==="selected"?n.selected=me&&typeof me!="function"&&typeof me!="symbol":an(n,a,J,me,u,ge));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var it in i)me=i[it],i.hasOwnProperty(it)&&me!=null&&!u.hasOwnProperty(it)&&an(n,a,it,null,u,me);for(de in u)if(me=u[de],ge=i[de],u.hasOwnProperty(de)&&me!==ge&&(me!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,a));break;default:an(n,a,de,me,u,ge)}return;default:if(Of(a)){for(var sn in i)me=i[sn],i.hasOwnProperty(sn)&&me!==void 0&&!u.hasOwnProperty(sn)&&hp(n,a,sn,void 0,u,me);for(xe in u)me=u[xe],ge=i[xe],!u.hasOwnProperty(xe)||me===ge||me===void 0&&ge===void 0||hp(n,a,xe,me,u,ge);return}}for(var ie in i)me=i[ie],i.hasOwnProperty(ie)&&me!=null&&!u.hasOwnProperty(ie)&&an(n,a,ie,null,u,me);for(Re in u)me=u[Re],ge=i[Re],!u.hasOwnProperty(Re)||me===ge||me==null&&ge==null||an(n,a,Re,me,u,ge)}function a1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UM(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,i=performance.getEntriesByType("resource"),u=0;u<i.length;u++){var g=i[u],y=g.transferSize,M=g.initiatorType,P=g.duration;if(y&&P&&a1(M)){for(M=0,P=g.responseEnd,u+=1;u<i.length;u++){var J=i[u],de=J.startTime;if(de>P)break;var xe=J.transferSize,Re=J.initiatorType;xe&&a1(Re)&&(J=J.responseEnd,M+=xe*(J<P?1:(P-de)/(J-de)))}if(--u,a+=8*(y+M)/(g.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var bp=null,yp=null;function yu(n){return n.nodeType===9?n:n.ownerDocument}function i1(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function s1(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function vp(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var xp=null;function WM(){var n=window.event;return n&&n.type==="popstate"?n===xp?!1:(xp=n,!0):(xp=null,!1)}var l1=typeof setTimeout=="function"?setTimeout:void 0,GM=typeof clearTimeout=="function"?clearTimeout:void 0,c1=typeof Promise=="function"?Promise:void 0,XM=typeof queueMicrotask=="function"?queueMicrotask:typeof c1<"u"?function(n){return c1.resolve(null).then(n).catch(kM)}:l1;function kM(n){setTimeout(function(){throw n})}function ga(n){return n==="head"}function u1(n,a){var i=a,u=0;do{var g=i.nextSibling;if(n.removeChild(i),g&&g.nodeType===8)if(i=g.data,i==="/$"||i==="/&"){if(u===0){n.removeChild(g),ki(a);return}u--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")u++;else if(i==="html")yl(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,yl(i);for(var y=i.firstChild;y;){var M=y.nextSibling,P=y.nodeName;y[rt]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&y.rel.toLowerCase()==="stylesheet"||i.removeChild(y),y=M}}else i==="body"&&yl(n.ownerDocument.body);i=g}while(i);ki(a)}function d1(n,a){var i=n;n=0;do{var u=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=u}while(i)}function Sp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Sp(i),Pt(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function YM(n,a,i,u){for(;n.nodeType===1;){var g=i;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[rt])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==g.rel||n.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||n.getAttribute("title")!==(g.title==null?null:g.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(g.src==null?null:g.src)||n.getAttribute("type")!==(g.type==null?null:g.type)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Do(n.nextSibling),n===null)break}return null}function KM(n,a,i){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=Do(n.nextSibling),n===null))return null;return n}function f1(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Do(n.nextSibling),n===null))return null;return n}function Cp(n){return n.data==="$?"||n.data==="$~"}function $p(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function QM(n,a){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||i.readyState!=="loading")a();else{var u=function(){a(),i.removeEventListener("DOMContentLoaded",u)};i.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function Do(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Ep=null;function m1(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(a===0)return Do(n.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}n=n.nextSibling}return null}function p1(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return n;a--}else i!=="/$"&&i!=="/&"||a++}n=n.previousSibling}return null}function g1(n,a,i){switch(a=yu(i),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function yl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Pt(n)}var Lo=new Map,h1=new Set;function vu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Br=G.d;G.d={f:ZM,r:JM,D:eT,C:tT,L:nT,m:oT,X:aT,S:rT,M:iT};function ZM(){var n=Br.f(),a=uu();return n||a}function JM(n){var a=xt(n);a!==null&&a.tag===5&&a.type==="form"?Iv(a):Br.r(n)}var Wi=typeof document>"u"?null:document;function b1(n,a,i){var u=Wi;if(u&&typeof a=="string"&&a){var g=ao(a);g='link[rel="'+n+'"][href="'+g+'"]',typeof i=="string"&&(g+='[crossorigin="'+i+'"]'),h1.has(g)||(h1.add(g),n={rel:n,crossOrigin:i,href:a},u.querySelector(g)===null&&(a=u.createElement("link"),Wn(a,"link",n),jt(a),u.head.appendChild(a)))}}function eT(n){Br.D(n),b1("dns-prefetch",n,null)}function tT(n,a){Br.C(n,a),b1("preconnect",n,a)}function nT(n,a,i){Br.L(n,a,i);var u=Wi;if(u&&n&&a){var g='link[rel="preload"][as="'+ao(a)+'"]';a==="image"&&i&&i.imageSrcSet?(g+='[imagesrcset="'+ao(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(g+='[imagesizes="'+ao(i.imageSizes)+'"]')):g+='[href="'+ao(n)+'"]';var y=g;switch(a){case"style":y=Gi(n);break;case"script":y=Xi(n)}Lo.has(y)||(n=b({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:n,as:a},i),Lo.set(y,n),u.querySelector(g)!==null||a==="style"&&u.querySelector(vl(y))||a==="script"&&u.querySelector(xl(y))||(a=u.createElement("link"),Wn(a,"link",n),jt(a),u.head.appendChild(a)))}}function oT(n,a){Br.m(n,a);var i=Wi;if(i&&n){var u=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+ao(u)+'"][href="'+ao(n)+'"]',y=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Xi(n)}if(!Lo.has(y)&&(n=b({rel:"modulepreload",href:n},a),Lo.set(y,n),i.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(xl(y)))return}u=i.createElement("link"),Wn(u,"link",n),jt(u),i.head.appendChild(u)}}}function rT(n,a,i){Br.S(n,a,i);var u=Wi;if(u&&n){var g=gn(u).hoistableStyles,y=Gi(n);a=a||"default";var M=g.get(y);if(!M){var P={loading:0,preload:null};if(M=u.querySelector(vl(y)))P.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},i),(i=Lo.get(y))&&wp(n,i);var J=M=u.createElement("link");jt(J),Wn(J,"link",n),J._p=new Promise(function(de,xe){J.onload=de,J.onerror=xe}),J.addEventListener("load",function(){P.loading|=1}),J.addEventListener("error",function(){P.loading|=2}),P.loading|=4,xu(M,a,u)}M={type:"stylesheet",instance:M,count:1,state:P},g.set(y,M)}}}function aT(n,a){Br.X(n,a);var i=Wi;if(i&&n){var u=gn(i).hoistableScripts,g=Xi(n),y=u.get(g);y||(y=i.querySelector(xl(g)),y||(n=b({src:n,async:!0},a),(a=Lo.get(g))&&Np(n,a),y=i.createElement("script"),jt(y),Wn(y,"link",n),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(g,y))}}function iT(n,a){Br.M(n,a);var i=Wi;if(i&&n){var u=gn(i).hoistableScripts,g=Xi(n),y=u.get(g);y||(y=i.querySelector(xl(g)),y||(n=b({src:n,async:!0,type:"module"},a),(a=Lo.get(g))&&Np(n,a),y=i.createElement("script"),jt(y),Wn(y,"link",n),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(g,y))}}function y1(n,a,i,u){var g=(g=te.current)?vu(g):null;if(!g)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Gi(i.href),i=gn(g).hoistableStyles,u=i.get(a),u||(u={type:"style",instance:null,count:0,state:null},i.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=Gi(i.href);var y=gn(g).hoistableStyles,M=y.get(n);if(M||(g=g.ownerDocument||g,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,M),(y=g.querySelector(vl(n)))&&!y._p&&(M.instance=y,M.state.loading=5),Lo.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Lo.set(n,i),y||sT(g,n,i,M.state))),a&&u===null)throw Error(r(528,""));return M}if(a&&u!==null)throw Error(r(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Xi(i),i=gn(g).hoistableScripts,u=i.get(a),u||(u={type:"script",instance:null,count:0,state:null},i.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function Gi(n){return'href="'+ao(n)+'"'}function vl(n){return'link[rel="stylesheet"]['+n+"]"}function v1(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function sT(n,a,i,u){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=n.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),Wn(a,"link",i),jt(a),n.head.appendChild(a))}function Xi(n){return'[src="'+ao(n)+'"]'}function xl(n){return"script[async]"+n}function x1(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var u=n.querySelector('style[data-href~="'+ao(i.href)+'"]');if(u)return a.instance=u,jt(u),u;var g=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),jt(u),Wn(u,"style",g),xu(u,i.precedence,n),a.instance=u;case"stylesheet":g=Gi(i.href);var y=n.querySelector(vl(g));if(y)return a.state.loading|=4,a.instance=y,jt(y),y;u=v1(i),(g=Lo.get(g))&&wp(u,g),y=(n.ownerDocument||n).createElement("link"),jt(y);var M=y;return M._p=new Promise(function(P,J){M.onload=P,M.onerror=J}),Wn(y,"link",u),a.state.loading|=4,xu(y,i.precedence,n),a.instance=y;case"script":return y=Xi(i.src),(g=n.querySelector(xl(y)))?(a.instance=g,jt(g),g):(u=i,(g=Lo.get(y))&&(u=b({},i),Np(u,g)),n=n.ownerDocument||n,g=n.createElement("script"),jt(g),Wn(g,"link",u),n.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,xu(u,i.precedence,n));return a.instance}function xu(n,a,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,y=g,M=0;M<u.length;M++){var P=u[M];if(P.dataset.precedence===a)y=P;else if(y!==g)break}y?y.parentNode.insertBefore(n,y.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(n,a.firstChild))}function wp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Np(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Su=null;function S1(n,a,i){if(Su===null){var u=new Map,g=Su=new Map;g.set(i,u)}else g=Su,u=g.get(i),u||(u=new Map,g.set(i,u));if(u.has(n))return u;for(u.set(n,null),i=i.getElementsByTagName(n),g=0;g<i.length;g++){var y=i[g];if(!(y[rt]||y[ct]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var M=y.getAttribute(a)||"";M=n+M;var P=u.get(M);P?P.push(y):u.set(M,[y])}}return u}function C1(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function lT(n,a,i){if(i===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function $1(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function cT(n,a,i,u){if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var g=Gi(u.href),y=a.querySelector(vl(g));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Cu.bind(n),a.then(n,n)),i.state.loading|=4,i.instance=y,jt(y);return}y=a.ownerDocument||a,u=v1(u),(g=Lo.get(g))&&wp(u,g),y=y.createElement("link"),jt(y);var M=y;M._p=new Promise(function(P,J){M.onload=P,M.onerror=J}),Wn(y,"link",u),i.instance=y}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=Cu.bind(n),a.addEventListener("load",i),a.addEventListener("error",i))}}var Rp=0;function uT(n,a){return n.stylesheets&&n.count===0&&Eu(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var u=setTimeout(function(){if(n.stylesheets&&Eu(n,n.stylesheets),n.unsuspend){var y=n.unsuspend;n.unsuspend=null,y()}},6e4+a);0<n.imgBytes&&Rp===0&&(Rp=62500*UM());var g=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Eu(n,n.stylesheets),n.unsuspend)){var y=n.unsuspend;n.unsuspend=null,y()}},(n.imgBytes>Rp?50:800)+a);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(g)}}:null}function Cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var $u=null;function Eu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,$u=new Map,a.forEach(dT,n),$u=null,Cu.call(n))}function dT(n,a){if(!(a.state.loading&4)){var i=$u.get(n);if(i)var u=i.get(null);else{i=new Map,$u.set(n,i);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var M=g[y];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(i.set(M.dataset.precedence,M),u=M)}u&&i.set(null,u)}g=a.instance,M=g.getAttribute("data-precedence"),y=i.get(M)||u,y===u&&i.set(null,g),i.set(M,g),this.count++,u=Cu.bind(this),g.addEventListener("load",u),g.addEventListener("error",u),y?y.parentNode.insertBefore(g,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(g,n.firstChild)),a.state.loading|=4}}var Sl={$$typeof:$,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function fT(n,a,i,u,g,y,M,P,J){this.tag=1,this.containerInfo=n,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=At(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=At(0),this.hiddenUpdates=At(null),this.identifierPrefix=u,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function E1(n,a,i,u,g,y,M,P,J,de,xe,Re){return n=new fT(n,a,i,M,J,de,xe,Re,P),a=1,y===!0&&(a|=24),y=bo(3,null,null,a),n.current=y,y.stateNode=n,a=im(),a.refCount++,n.pooledCache=a,a.refCount++,y.memoizedState={element:u,isDehydrated:i,cache:a},um(y),n}function w1(n){return n?(n=Ei,n):Ei}function N1(n,a,i,u,g,y){g=w1(g),u.context===null?u.context=g:u.pendingContext=g,u=ra(a),u.payload={element:i},y=y===void 0?null:y,y!==null&&(u.callback=y),i=aa(n,u,a),i!==null&&(fo(i,n,a),Js(i,n,a))}function R1(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function Mp(n,a){R1(n,a),(n=n.alternate)&&R1(n,a)}function M1(n){if(n.tag===13||n.tag===31){var a=Ha(n,67108864);a!==null&&fo(a,n,67108864),Mp(n,67108864)}}function T1(n){if(n.tag===13||n.tag===31){var a=Co();a=De(a);var i=Ha(n,a);i!==null&&fo(i,n,a),Mp(n,a)}}var wu=!0;function mT(n,a,i,u){var g=D.T;D.T=null;var y=G.p;try{G.p=2,Tp(n,a,i,u)}finally{G.p=y,D.T=g}}function pT(n,a,i,u){var g=D.T;D.T=null;var y=G.p;try{G.p=8,Tp(n,a,i,u)}finally{G.p=y,D.T=g}}function Tp(n,a,i,u){if(wu){var g=Op(u);if(g===null)gp(n,a,u,Nu,i),z1(n,u);else if(hT(g,n,a,i,u))u.stopPropagation();else if(z1(n,u),a&4&&-1<gT.indexOf(n)){for(;g!==null;){var y=xt(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var M=pt(y.pendingLanes);if(M!==0){var P=y;for(P.pendingLanes|=2,P.entangledLanes|=2;M;){var J=1<<31-Ge(M);P.entanglements[1]|=J,M&=~J}lr(y),(Gt&6)===0&&(lu=je()+500,gl(0))}}break;case 31:case 13:P=Ha(y,2),P!==null&&fo(P,y,2),uu(),Mp(y,2)}if(y=Op(u),y===null&&gp(n,a,u,Nu,i),y===g)break;g=y}g!==null&&u.stopPropagation()}else gp(n,a,u,null,i)}}function Op(n){return n=Af(n),zp(n)}var Nu=null;function zp(n){if(Nu=null,n=en(n),n!==null){var a=l(n);if(a===null)n=null;else{var i=a.tag;if(i===13){if(n=d(a),n!==null)return n;n=null}else if(i===31){if(n=f(a),n!==null)return n;n=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Nu=n,null}function O1(n){switch(n){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(et()){case ke:return 2;case Le:return 8;case Ve:case Ke:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Ap=!1,ha=null,ba=null,ya=null,Cl=new Map,$l=new Map,va=[],gT="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 z1(n,a){switch(n){case"focusin":case"focusout":ha=null;break;case"dragenter":case"dragleave":ba=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":Cl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(a.pointerId)}}function El(n,a,i,u,g,y){return n===null||n.nativeEvent!==y?(n={blockedOn:a,domEventName:i,eventSystemFlags:u,nativeEvent:y,targetContainers:[g]},a!==null&&(a=xt(a),a!==null&&M1(a)),n):(n.eventSystemFlags|=u,a=n.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),n)}function hT(n,a,i,u,g){switch(a){case"focusin":return ha=El(ha,n,a,i,u,g),!0;case"dragenter":return ba=El(ba,n,a,i,u,g),!0;case"mouseover":return ya=El(ya,n,a,i,u,g),!0;case"pointerover":var y=g.pointerId;return Cl.set(y,El(Cl.get(y)||null,n,a,i,u,g)),!0;case"gotpointercapture":return y=g.pointerId,$l.set(y,El($l.get(y)||null,n,a,i,u,g)),!0}return!1}function A1(n){var a=en(n.target);if(a!==null){var i=l(a);if(i!==null){if(a=i.tag,a===13){if(a=d(i),a!==null){n.blockedOn=a,Jt(n.priority,function(){T1(i)});return}}else if(a===31){if(a=f(i),a!==null){n.blockedOn=a,Jt(n.priority,function(){T1(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ru(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=Op(n.nativeEvent);if(i===null){i=n.nativeEvent;var u=new i.constructor(i.type,i);zf=u,i.target.dispatchEvent(u),zf=null}else return a=xt(i),a!==null&&M1(a),n.blockedOn=i,!1;a.shift()}return!0}function I1(n,a,i){Ru(n)&&i.delete(a)}function bT(){Ap=!1,ha!==null&&Ru(ha)&&(ha=null),ba!==null&&Ru(ba)&&(ba=null),ya!==null&&Ru(ya)&&(ya=null),Cl.forEach(I1),$l.forEach(I1)}function Mu(n,a){n.blockedOn===a&&(n.blockedOn=null,Ap||(Ap=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bT)))}var Tu=null;function B1(n){Tu!==n&&(Tu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Tu===n&&(Tu=null);for(var a=0;a<n.length;a+=3){var i=n[a],u=n[a+1],g=n[a+2];if(typeof u!="function"){if(zp(u||i)===null)continue;break}var y=xt(i);y!==null&&(n.splice(a,3),a-=3,Om(y,{pending:!0,data:g,method:i.method,action:u},u,g))}}))}function ki(n){function a(J){return Mu(J,n)}ha!==null&&Mu(ha,n),ba!==null&&Mu(ba,n),ya!==null&&Mu(ya,n),Cl.forEach(a),$l.forEach(a);for(var i=0;i<va.length;i++){var u=va[i];u.blockedOn===n&&(u.blockedOn=null)}for(;0<va.length&&(i=va[0],i.blockedOn===null);)A1(i),i.blockedOn===null&&va.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var g=i[u],y=i[u+1],M=g[Et]||null;if(typeof y=="function")M||B1(i);else if(M){var P=null;if(y&&y.hasAttribute("formAction")){if(g=y,M=y[Et]||null)P=M.formAction;else if(zp(g)!==null)continue}else P=M.action;typeof P=="function"?i[u+1]=P:(i.splice(u,3),u-=3),B1(i)}}}function _1(){function n(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(M){return g=M})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),u||setTimeout(i,20)}function i(){if(!u&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,g=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function Ip(n){this._internalRoot=n}Ou.prototype.render=Ip.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var i=a.current,u=Co();N1(i,u,n,a,null,null)},Ou.prototype.unmount=Ip.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;N1(n.current,2,null,n,null,null),uu(),a[on]=null}};function Ou(n){this._internalRoot=n}Ou.prototype.unstable_scheduleHydration=function(n){if(n){var a=lt();n={blockedOn:null,target:n,priority:a};for(var i=0;i<va.length&&a!==0&&a<va[i].priority;i++);va.splice(i,0,n),i===0&&A1(n)}};var P1=t.version;if(P1!=="19.2.7")throw Error(r(527,P1,"19.2.7"));G.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=m(a),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var yT={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{We=zu.inject(yT),Be=zu}catch{}}return Rl.createRoot=function(n,a){if(!s(n))throw Error(r(299));var i=!1,u="",g=qv,y=Uv,M=Wv;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(M=a.onRecoverableError)),a=E1(n,1,!1,null,null,i,u,null,g,y,M,_1),n[on]=a.current,pp(n),new Ip(a)},Rl.hydrateRoot=function(n,a,i){if(!s(n))throw Error(r(299));var u=!1,g="",y=qv,M=Uv,P=Wv,J=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(g=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(M=i.onCaughtError),i.onRecoverableError!==void 0&&(P=i.onRecoverableError),i.formState!==void 0&&(J=i.formState)),a=E1(n,1,!0,a,i??null,u,g,J,y,M,P,_1),a.context=w1(null),i=a.current,u=Co(),u=De(u),g=ra(u),g.callback=null,aa(i,g,u),i=u,a.current.lanes=i,He(a,i),lr(a),n[on]=a.current,pp(n),new Ou(a)},Rl.version="19.2.7",Rl}var sS;function gO(){if(sS)return Lp.exports;sS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Lp.exports=pO(),Lp.exports}var IE=gO();const Dd="__rc_react_root__";function hO(e,t){const o=t[Dd]||IE.createRoot(t);o.render(e),t[Dd]=o}async function bO(e){return Promise.resolve().then(()=>{e[Dd]?.unmount(),delete e[Dd]})}var di=AE();const yO=c.createContext({}),Pg=c.createContext(null);function vO({children:e,onBatchResize:t}){const o=c.useRef(0),r=c.useRef([]),s=c.useContext(Pg),l=c.useCallback((d,f,p)=>{o.current+=1;const m=o.current;r.current.push({size:d,element:f,data:p}),Promise.resolve().then(()=>{m===o.current&&(t?.(r.current),r.current=[])}),s?.(d,f,p)},[t,s]);return c.createElement(Pg.Provider,{value:l},e)}const wa=new Map;function xO(e){e.forEach(t=>{const{target:o}=t;wa.get(o)?.forEach(r=>r(o))})}let Up;function BE(){return Up||(Up=new ResizeObserver(xO)),Up}function SO(e,t){wa.has(e)||(wa.set(e,new Set),BE().observe(e)),wa.get(e).add(t)}function CO(e,t){wa.has(e)&&(wa.get(e).delete(t),wa.get(e).size||(BE().unobserve(e),wa.delete(e)))}function _E(e,t,o,r){const s=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=ut(p=>{const{width:m,height:h}=p.getBoundingClientRect(),{offsetWidth:b,offsetHeight:v}=p,x=Math.floor(m),S=Math.floor(h);if(s.current.width!==x||s.current.height!==S||s.current.offsetWidth!==b||s.current.offsetHeight!==v){const C={width:x,height:S,offsetWidth:b,offsetHeight:v};s.current=C;const R=b===Math.round(m)?m:b,w=v===Math.round(h)?h:v,N={...C,offsetWidth:R,offsetHeight:w};r?.(N,p),Promise.resolve().then(()=>{o?.(N,p)})}}),d=typeof t=="function",f=c.useRef(0);c.useEffect(()=>{const p=d?t():t;return p&&e?SO(p,l):e&&d&&(f.current+=1),()=>{p&&CO(p,l)}},[e,d?f.current:t])}function $O(e,t){const{children:o,disabled:r,onResize:s,data:l}=e,d=c.useRef(null),f=c.useContext(Pg),p=typeof o=="function",m=p?o(d):o,h=!p&&c.isValidElement(m)&&Es(m),b=h?pi(m):null,v=Gr(b,d),x=()=>ui(d.current);return c.useImperativeHandle(t,()=>x()),_E(!r,x,s,(S,C)=>{f?.(S,C,l)}),h?c.cloneElement(m,{ref:v}):m}const EO=c.forwardRef($O);function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},jg.apply(this,arguments)}const wO="rc-observer-key";function NO(e,t){const{children:o}=e;return(typeof o=="function"?[o]:Oo(o)).map((s,l)=>{const d=s?.key||`${wO}-${l}`;return c.createElement(EO,jg({},e,{key:d,ref:l===0?t:void 0}),s)})}const mr=c.forwardRef(NO);mr.Collection=vO;function PE(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=PE(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function U(){for(var e,t,o=0,r="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=PE(e))&&(r&&(r+=" "),r+=t);return r}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function RO(e){if(Array.isArray(e))return Hg(e)}function MO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jE(e,t){if(e){if(typeof e=="string")return Hg(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Hg(e,t):void 0}}function TO(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
37
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function go(e){return RO(e)||MO(e)||jE(e)||TO()}const Ld="ant",n0="anticon",OO=["outlined","borderless","filled","underlined"],zO=(e,t)=>t||(e?`${Ld}-${e}`:Ld),bt=c.createContext({getPrefixCls:zO,iconPrefixCls:n0}),{Consumer:nV}=bt,lS={};function Kt(e){const t=c.useContext(bt),{getPrefixCls:o,direction:r,getPopupContainer:s,renderEmpty:l}=t,d=t[e];return{classNames:lS,styles:lS,...d,getPrefixCls:o,direction:r,getPopupContainer:s,renderEmpty:l}}function kl(e){for(var t=0,o,r=0,s=e.length;s>=4;++r,s-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const AO="%";function Dg(e){return e.join(AO)}let cS=0;class IO{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(Dg(t))}opGet(t){return this.cache.get(t)||null}update(t,o){return this.opUpdate(Dg(t),o)}opUpdate(t,o){const r=this.cache.get(t),s=o(r);s===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,s),this.updateTimes.set(t,cS),cS+=1)}}const o0="data-token-hash",Hr="data-css-hash",ii="__cssinjs_instance__";function BO(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Hr}]`)||[],{firstChild:o}=document.head;Array.from(t).forEach(s=>{s[ii]||=e,s[ii]===e&&document.head.insertBefore(s,o)});const r={};Array.from(document.querySelectorAll(`style[${Hr}]`)).forEach(s=>{const l=s.getAttribute(Hr);r[l]?s[ii]===e&&s.parentNode?.removeChild(s):r[l]=!0})}return new IO(e)}const sc=c.createContext({hashPriority:"low",cache:BO(),defaultCache:!0,autoPrefix:!1});function _O(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}class Vd{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,o=!1){let r={map:this.cache};return t.forEach(s=>{r?r=r?.map?.get(s):r=void 0}),r?.value&&o&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,o){if(!this.has(t)){if(this.size()+1>Vd.MAX_CACHE_SIZE+Vd.MAX_CACHE_OFFSET){const[s]=this.keys.reduce((l,d)=>{const[,f]=l;return this.internalGet(d)[1]<f?[d,this.internalGet(d)[1]]:l},[this.keys[0],this.cacheCallTimes]);this.delete(s)}this.keys.push(t)}let r=this.cache;t.forEach((s,l)=>{if(l===t.length-1)r.set(s,{value:[o,this.cacheCallTimes++]});else{const d=r.get(s);d?d.map||(d.map=new Map):r.set(s,{map:new Map}),r=r.get(s).map}})}deleteByPath(t,o){const r=t.get(o[0]);if(o.length===1)return r.map?t.set(o[0],{map:r.map}):t.delete(o[0]),r.value?.[0];const s=this.deleteByPath(r.map,o.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(o[0]),s}delete(t){if(this.has(t))return this.keys=this.keys.filter(o=>!_O(o,t)),this.deleteByPath(this.cache,t)}}let uS=0;class HE{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=uS,t.length===0&&(t.length>0,void 0),uS+=1}getDerivativeToken(t){return this.derivatives.reduce((o,r)=>r(t,o),void 0)}}const Wp=new Vd;function Lg(e){const t=Array.isArray(e)?e:[e];return Wp.has(t)||Wp.set(t,new HE(t)),Wp.get(t)}const PO=new WeakMap,Gp={};function jO(e,t){let o=PO;for(let r=0;r<t.length;r+=1){const s=t[r];o.has(s)||o.set(s,new WeakMap),o=o.get(s)}return o.has(Gp)||o.set(Gp,e()),o.get(Gp)}const dS=new WeakMap;function Ll(e){let t=dS.get(e)||"";return t||(Object.keys(e).forEach(o=>{const r=e[o];t+=o,r instanceof HE?t+=r.id:r&&typeof r=="object"?t+=Ll(r):t+=r}),t=kl(t),dS.set(e,t)),t}function HO(e,t){return kl(`${t}_${Ll(e)}`)}const Vg=To();function re(e){return typeof e=="number"?`${e}px`:e}function DE(e){const{hashCls:t,hashPriority:o="low"}=e||{};if(!t)return"";const r=`.${t}`;return o==="low"?`:where(${r})`:r}const DO=e=>e!=null;function r0(e,t){const o=typeof t=="function"?t():t;return o?{...e,csp:{...e.csp,nonce:o}}:e}const Rd=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),LO=(e,t,o)=>{const{hashCls:r,hashPriority:s="low",scope:l}=o||{};if(!Object.keys(e).length)return"";const d=`${DE({hashCls:r,hashPriority:s})}.${t}`,f=[l].flat().filter(Boolean);return`${f.length?f.map(m=>`${d}.${m}`).join(", "):d}{${Object.entries(e).map(([m,h])=>`${m}:${h};`).join("")}}`},LE=(e,t,o)=>{const{hashCls:r,hashPriority:s="low",prefix:l,unitless:d,ignore:f,preserve:p}=o||{},m={},h={};return Object.entries(e).forEach(([b,v])=>{if(p?.[b])h[b]=v;else if((typeof v=="string"||typeof v=="number")&&!f?.[b]){const x=Rd(b,l);m[x]=typeof v=="number"&&!d?.[b]?`${v}px`:String(v),h[b]=`var(${x})`}}),[h,LO(m,t,{scope:o?.scope,hashCls:r,hashPriority:s})]},Au=new Map;function a0(e,t,o,r,s){const{cache:l}=c.useContext(sc),d=[e,...t],f=Dg(d),p=b=>{l.opUpdate(f,v=>{const[x=0,S]=v||[void 0,void 0],R=S||o(),w=[x,R];return b?b(w):w})};c.useMemo(()=>{p()},[f]);const h=l.opGet(f)[1];return c.useInsertionEffect(()=>(p(([b,v])=>[b+1,v]),Au.has(f)||(s?.(h),Au.set(f,!0),Promise.resolve().then(()=>{Au.delete(f)})),()=>{l.opUpdate(f,b=>{const[v=0,x]=b||[];return v-1===0?(r?.(x,!1),Au.delete(f),null):[v-1,x]})}),[f]),h}const VO={},FO="css",Ja=new Map;function qO(e){Ja.set(e,(Ja.get(e)||0)+1)}function UO(e,t){typeof document<"u"&&document.querySelectorAll(`style[${o0}="${e}"]`).forEach(r=>{r[ii]===t&&r.parentNode?.removeChild(r)})}const WO=-1;function GO(e,t){Ja.set(e,(Ja.get(e)||0)-1);const o=new Set;Ja.forEach((r,s)=>{r<=0&&o.add(s)}),Ja.size-o.size>WO&&o.forEach(r=>{UO(r,t),Ja.delete(r)})}const XO=(e,t,o,r)=>{let l={...o.getDerivativeToken(e),...t};return r&&(l=r(l)),l},kO="token";function YO(e,t,o){const{cache:{instanceId:r},container:s,hashPriority:l}=c.useContext(sc),{salt:d="",override:f=VO,formatToken:p,getComputedToken:m,cssVar:h,nonce:b}=o,v=jO(()=>Object.assign({},...t),t),x=Ll(v),S=Ll(f),C=Ll(h);return a0(kO,[d,e.id,x,S,C],()=>{const w=m?m(v,f,e):XO(v,f,e,p),N={...w},$=`${d}_${h.prefix}`,E=kl($),T=`${FO}-${E}`;N._tokenKey=HO(N,$);const[z,A]=LE(w,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve,hashPriority:l,hashCls:h.hashed?T:void 0});return z._hashId=E,qO(h.key),[z,T,N,A,h.key]},([,,,,w])=>{GO(w,r)},([,,,w,N])=>{if(!w)return;let $={mark:Hr,prepend:"queue",attachTo:s,priority:-999};$=r0($,b);const E=ai(w,kl(`css-var-${N}`),$);E[ii]=r,E.setAttribute(o0,N)})}var KO={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yn="-ms-",Vl="-moz-",Xt="-webkit-",VE="comm",i0="rule",s0="decl",oV="@media",QO="@import",rV="@supports",ZO="@namespace",FE="@keyframes",JO="@layer",aV="@scope",e6=Math.abs,Fl=String.fromCharCode,Fg=Object.assign;function t6(e,t){return jn(e,0)^45?(((t<<2^jn(e,0))<<2^jn(e,1))<<2^jn(e,2))<<2^jn(e,3):0}function qE(e){return e.trim()}function _r(e,t){return(e=t.exec(e))?e[0]:e}function St(e,t,o){return e.replace(t,o)}function Xp(e,t){return e.indexOf(t)}function jn(e,t){return e.charCodeAt(t)|0}function fi(e,t,o){return e.slice(t,o)}function Jo(e){return e.length}function UE(e){return e.length}function Bl(e,t){return t.push(e),e}function n6(e,t){return e.map(t).join("")}function fS(e,t){return e.filter(function(o){return!_r(o,t)})}var sf=1,hs=1,WE=0,Go=0,Bn=0,ws="";function lf(e,t,o,r,s,l,d,f){return{value:e,root:t,parent:o,type:r,props:s,children:l,line:sf,column:hs,length:d,return:"",siblings:f}}function Ca(e,t){return Fg(lf("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Yi(e){for(;e.root;)e=Ca(e.root,{children:[e]});Bl(e,e.siblings)}function o6(){return Bn}function r6(){return Bn=Go>0?jn(ws,--Go):0,hs--,Bn===10&&(hs=1,sf--),Bn}function tr(){return Bn=Go<WE?jn(ws,Go++):0,hs++,Bn===10&&(hs=1,sf++),Bn}function Na(){return jn(ws,Go)}function Md(){return Go}function cf(e,t){return fi(ws,e,t)}function Yl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function a6(e){return sf=hs=1,WE=Jo(ws=e),Go=0,[]}function i6(e){return ws="",e}function kp(e){return qE(cf(Go-1,qg(e===91?e+2:e===40?e+1:e)))}function s6(e){for(;(Bn=Na())&&Bn<33;)tr();return Yl(e)>2||Yl(Bn)>3?"":" "}function l6(e,t){for(;--t&&tr()&&!(Bn<48||Bn>102||Bn>57&&Bn<65||Bn>70&&Bn<97););return cf(e,Md()+(t<6&&Na()==32&&tr()==32))}function qg(e){for(;tr();)switch(Bn){case e:return Go;case 34:case 39:e!==34&&e!==39&&qg(Bn);break;case 40:e===41&&qg(e);break;case 92:tr();break}return Go}function c6(e,t){for(;tr()&&e+Bn!==57;)if(e+Bn===84&&Na()===47)break;return"/*"+cf(t,Go-1)+"*"+Fl(e===47?e:tr())}function u6(e){for(;!Yl(Na());)tr();return cf(e,Go)}function mS(e){return i6(Td("",null,null,null,[""],e=a6(e),0,[0],e))}function Td(e,t,o,r,s,l,d,f,p){for(var m=0,h=0,b=d,v=0,x=0,S=0,C=1,R=1,w=1,N=0,$=0,E="",T=s,z=l,A=r,I=E;R;)switch(S=$,$=tr()){case 40:S!=108&&jn(I,b-1)==58?(N++,I+="("):I+=kp($);break;case 41:N--,I+=")";break;case 34:case 39:case 91:I+=kp($);break;case 9:case 10:case 13:case 32:if(N>0){I+=Fl($);break}I+=s6(S);break;case 92:I+=l6(Md()-1,7);continue;case 47:switch(Na()){case 42:case 47:Bl(d6(c6(tr(),Md()),t,o,p),p),(Yl(S||1)==5||Yl(Na()||1)==5)&&Jo(I)&&fi(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*C:f[m++]=Jo(I)*w;case 125*C:case 59:case 0:if(N>0&&$){I+=Fl($);break}switch($){case 0:case 125:R=0;case 59+h:w==-1&&(I=St(I,/\f/g,"")),x>0&&(Jo(I)-b||C===0)&&Bl(x>32?gS(I+";",r,o,b-1,p):gS(St(I," ","")+";",r,o,b-2,p),p);break;case 59:I+=";";default:if(Bl(A=pS(I,t,o,m,h,s,f,E,T=[],z=[],b,l),l),$===123)if(h===0)Td(I,t,A,A,T,l,b,f,z);else{switch(v){case 99:if(jn(I,3)===110)break;case 108:if(jn(I,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Td(e,A,A,r&&Bl(pS(e,A,A,0,0,s,f,E,s,T=[],b,z),z),s,z,b,f,r?T:z):Td(I,A,A,A,[""],z,0,f,z)}}m=h=x=0,C=w=1,E=I="",b=d;break;case 58:b=1+Jo(I),x=S;default:if(C<1){if($==123)--C;else if($==125&&C++==0&&r6()==125)continue}switch(I+=Fl($),$*C){case 38:w=h>0?1:(I+="\f",-1);break;case 44:if(N>0)break;f[m++]=(Jo(I)-1)*w,w=1;break;case 64:Na()===45&&(I+=kp(tr())),v=Na(),h=b=Jo(E=I+=u6(Md())),$++;break;case 45:S===45&&Jo(I)==2&&(C=0)}}return l}function pS(e,t,o,r,s,l,d,f,p,m,h,b){for(var v=s-1,x=s===0?l:[""],S=UE(x),C=0,R=0,w=0;C<r;++C)for(var N=0,$=fi(e,v+1,v=e6(R=d[C])),E=e;N<S;++N)(E=qE(R>0?x[N]+" "+$:St($,/&\f/g,x[N])))&&(p[w++]=E);return lf(e,t,o,s===0?i0:f,p,m,h,b)}function d6(e,t,o,r){return lf(e,t,o,VE,Fl(o6()),fi(e,2,-2),0,r)}function gS(e,t,o,r,s){return lf(e,t,o,s0,fi(e,0,r),fi(e,r+1,-1),r,s)}function GE(e,t,o){switch(t6(e,t)){case 5103:return Xt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Xt+e+e;case 4855:return Xt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xt+e+Vl+e+yn+e+e;case 5936:switch(jn(e,t+11)){case 114:return Xt+e+yn+St(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+yn+St(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+yn+St(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Xt+e+yn+e+e;case 6165:return Xt+e+yn+"flex-"+e+e;case 5187:return Xt+e+St(e,/(\w+).+(:[^]+)/,Xt+"box-$1$2"+yn+"flex-$1$2")+e;case 5443:return Xt+e+yn+"flex-item-"+St(e,/flex-|-self/g,"")+(_r(e,/flex-|baseline/)?"":yn+"grid-row-"+St(e,/flex-|-self/g,""))+e;case 4675:return Xt+e+yn+"flex-line-pack"+St(e,/align-content|flex-|-self/g,"")+e;case 5548:return Xt+e+yn+St(e,"shrink","negative")+e;case 5292:return Xt+e+yn+St(e,"basis","preferred-size")+e;case 6060:return Xt+"box-"+St(e,"-grow","")+Xt+e+yn+St(e,"grow","positive")+e;case 4554:return Xt+St(e,/([^-])(transform)/g,"$1"+Xt+"$2")+e;case 6187:return St(St(St(e,/(zoom-|grab)/,Xt+"$1"),/(image-set)/,Xt+"$1"),e,"")+e;case 5495:case 3959:return St(e,/(image-set\([^]*)/,Xt+"$1$`$1");case 4968:return St(St(e,/(.+:)(flex-)?(.*)/,Xt+"box-pack:$3"+yn+"flex-pack:$3"),/space-between/,"justify")+Xt+e+e;case 4200:if(!_r(e,/flex-|baseline/))return yn+"grid-column-align"+fi(e,t)+e;break;case 2592:case 3360:return yn+St(e,"template-","")+e;case 4384:case 3616:return o&&o.some(function(r,s){return t=s,_r(r.props,/grid-\w+-end/)})?~Xp(e+(o=o[t].value),"span")?e:yn+St(e,"-start","")+e+yn+"grid-row-span:"+(~Xp(o,"span")?_r(o,/\d+/):+_r(o,/\d+/)-+_r(e,/\d+/))+";":yn+St(e,"-start","")+e;case 4896:case 4128:return o&&o.some(function(r){return _r(r.props,/grid-\w+-start/)})?e:yn+St(St(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return St(e,/(.+)-inline(.+)/,Xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jo(e)-1-t>6)switch(jn(e,t+1)){case 109:if(jn(e,t+4)!==45)break;case 102:return St(e,/(.+:)(.+)-([^]+)/,"$1"+Xt+"$2-$3$1"+Vl+(jn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xp(e,"stretch")?GE(St(e,"stretch","fill-available"),t,o)+e:e}break;case 5152:case 5920:return St(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,s,l,d,f,p,m){return yn+s+":"+l+m+(d?yn+s+"-span:"+(f?p:+p-+l)+m:"")+e});case 4949:if(jn(e,t+6)===121)return St(e,":",":"+Xt)+e;break;case 6444:switch(jn(e,jn(e,14)===45?18:11)){case 120:return St(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Xt+(jn(e,14)===45?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+yn+"$2box$3")+e;case 100:return St(e,":",":"+yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return St(e,"scroll-","scroll-snap-")+e}return e}function Kl(e,t){for(var o="",r=0;r<e.length;r++)o+=t(e[r],r,e,t)||"";return o}function hS(e,t,o,r){switch(e.type){case JO:if(e.children.length)break;case QO:case ZO:case s0:return e.return=e.return||e.value;case VE:return"";case FE:return e.return=e.value+"{"+Kl(e.children,r)+"}";case i0:if(!Jo(e.value=e.props.join(",")))return""}return Jo(o=Kl(e.children,r))?e.return=e.value+"{"+o+"}":""}function f6(e){var t=UE(e);return function(o,r,s,l){for(var d="",f=0;f<t;f++)d+=e[f](o,r,s,l)||"";return d}}function m6(e,t,o,r){if(e.length>-1&&!e.return)switch(e.type){case s0:e.return=GE(e.value,e.length,o);return;case FE:return Kl([Ca(e,{value:St(e.value,"@","@"+Xt)})],r);case i0:if(e.length)return n6(o=e.props,function(s){switch(_r(s,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Yi(Ca(e,{props:[St(s,/:(read-\w+)/,":"+Vl+"$1")]})),Yi(Ca(e,{props:[s]})),Fg(e,{props:fS(o,r)});break;case"::placeholder":Yi(Ca(e,{props:[St(s,/:(plac\w+)/,":"+Xt+"input-$1")]})),Yi(Ca(e,{props:[St(s,/:(plac\w+)/,":"+Vl+"$1")]})),Yi(Ca(e,{props:[St(s,/:(plac\w+)/,yn+"input-$1")]})),Yi(Ca(e,{props:[s]})),Fg(e,{props:fS(o,r)});break}return""})}}const bS="data-ant-cssinjs-cache-path",XE="_FILE_STYLE__";let si,kE=!0;function p6(){if(!si&&(si={},To())){const e=document.createElement("div");e.className=bS,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[s,l]=r.split(":");si[s]=l});const o=document.querySelector(`style[${bS}]`);o&&(kE=!1,o.parentNode?.removeChild(o)),document.body.removeChild(e)}}function g6(e){return p6(),!!si[e]}function h6(e){const t=si[e];let o=null;if(t&&To())if(kE)o=XE;else{const r=document.querySelector(`style[${Hr}="${si[e]}"]`);r?o=r.innerHTML:delete si[e]}return[o,t]}const b6="_skip_check_",YE="_multi_value_";function Yp(e,t){return(t?Kl(mS(e),f6([m6,hS])):Kl(mS(e),hS)).replace(/\{%%%\:[^;];}/g,";")}function y6(e){return typeof e=="object"&&e&&(b6 in e||YE in e)}function yS(e,t,o="high"){if(!t)return e;const r=DE({hashCls:t,hashPriority:o});return e.split(",").map(l=>{const d=l.trim().split(/\s+/);let f=d[0]||"";const p=f.match(/^\w+/)?.[0]||"";return f=`${p}${r}${f.slice(p.length)}`,[f,...d.slice(1)].join(" ")}).join(",")}const Ug=(e,t={},{root:o,injectHash:r,parentSelectors:s}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:d,path:f,hashPriority:p,transformers:m=[],linters:h=[]}=t;let b="",v={};function x(R){const w=R.getName(l);if(!v[w]){const[N]=Ug(R.style,t,{root:!1,parentSelectors:s});v[w]=`@keyframes ${R.getName(l)}${N}`}}function S(R,w=[]){return R.forEach(N=>{Array.isArray(N)?S(N,w):N&&w.push(N)}),w}return S(Array.isArray(e)?e:[e]).forEach(R=>{const w=typeof R=="string"&&!o?{}:R;if(typeof w=="string")b+=`${w}
38
+ `;else if(w._keyframe)x(w);else{const N=m.reduce(($,E)=>E?.visit?.($)||$,w);Object.keys(N).forEach($=>{const E=N[$];if(typeof E=="object"&&E&&($!=="animationName"||!E._keyframe)&&!y6(E)){let T=!1,z=$.trim(),A=!1;(o||r)&&l?z.startsWith("@")?T=!0:z==="&"?z=yS("",l,p):z=yS($,l,p):o&&!l&&(z==="&"||z==="")&&(z="",A=!0);const[I,j]=Ug(E,t,{root:A,injectHash:T,parentSelectors:[...s,z]});v={...v,...j},b+=`${z}${I}`}else{let T=function(A,I){const j=A.replace(/[A-Z]/g,B=>`-${B.toLowerCase()}`);let L=I;!KO[A]&&typeof L=="number"&&L!==0&&(L=`${L}px`),A==="animationName"&&I?._keyframe&&(x(I),L=I.getName(l)),b+=`${j}:${L};`};const z=E?.value??E;typeof E=="object"&&E?.[YE]&&Array.isArray(z)?z.forEach(A=>{T($,A)}):DO(z)&&T($,z)}})}}),o?d&&(b&&(b=`@layer ${d.name} {${b}}`),d.dependencies&&(v[`@layer ${d.name}`]=d.dependencies.map(R=>`@layer ${R}, ${d.name};`).join(`
39
+ `))):b=`{${b}}`,[b,v]};function KE(e,t){return kl(`${e.join("%")}${t}`)}const v6="style";function Wg(e,t){const{path:o,hashId:r,layer:s,nonce:l,clientOnly:d,order:f=0}=e,{mock:p,hashPriority:m,container:h,transformers:b,linters:v,cache:x,layer:S,autoPrefix:C}=c.useContext(sc),R=[r||""];S&&R.push("layer"),R.push(...o);let w=Vg;a0(v6,R,()=>{const N=R.join("|");if(g6(N)){const[I,j]=h6(N);if(I)return[I,j,{},d,f]}const $=t(),[E,T]=Ug($,{hashId:r,hashPriority:m,layer:S?s:void 0,path:o.join("-"),transformers:b,linters:v}),z=Yp(E,C||!1),A=KE(R,z);return[z,A,T,d,f]},(N,$)=>{const[,E]=N;$&&Vg&&Gl(E,{mark:Hr,attachTo:h})},N=>{const[$,E,T,,z]=N;if(w&&$!==XE){let A={mark:Hr,prepend:S?!1:"queue",attachTo:h,priority:z};A=r0(A,l);const I=[],j=[];Object.keys(T).forEach(B=>{B.startsWith("@layer")?I.push(B):j.push(B)}),I.forEach(B=>{ai(Yp(T[B],C||!1),`_layer-${B}`,{...A,prepend:!0})});const L=ai($,E,A);L[ii]=x.instanceId,j.forEach(B=>{ai(Yp(T[B],C||!1),`_effect-${B}`,A)})}})}const x6="cssVar",S6=(e,t)=>{const{key:o,prefix:r,unitless:s,ignore:l,token:d,hashId:f,scope:p,nonce:m}=e,{cache:{instanceId:h},container:b,hashPriority:v}=c.useContext(sc),{_tokenKey:x}=d,S=Array.isArray(p)?p.join("@@"):p,C=[...e.path,o,S,x];return a0(x6,C,()=>{const w=t(),[N,$]=LE(w,o,{prefix:r,unitless:s,ignore:l,scope:p,hashPriority:v,hashCls:f}),E=KE(C,$);return[N,$,E,o]},([,,w])=>{Vg&&Gl(w,{mark:Hr,attachTo:b})},([,w,N])=>{if(!w)return;let $={mark:Hr,prepend:"queue",attachTo:b,priority:-999};$=r0($,m);const E=ai(w,N,$);E[ii]=h,E.setAttribute(o0,o)})};class Ct{name;style;constructor(t,o){this.name=t,this.style=o}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function Ki(e){return e.notSplit=!0,e}Ki(["borderTop","borderBottom"]),Ki(["borderTop"]),Ki(["borderBottom"]),Ki(["borderLeft","borderRight"]),Ki(["borderLeft"]),Ki(["borderRight"]);function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function C6(e){if(Array.isArray(e))return e}function $6(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r,s,l,d,f=[],p=!0,m=!1;try{if(l=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;p=!1}else for(;!(p=(r=l.call(o)).done)&&(f.push(r.value),f.length!==t);p=!0);}catch(h){m=!0,s=h}finally{try{if(!p&&o.return!=null&&(d=o.return(),Object(d)!==d))return}finally{if(m)throw s}}return f}}function E6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QE(e,t){return C6(e)||$6(e,t)||jE(e,t)||E6()}function w6(e,t){if(nr(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t);if(nr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZE(e){var t=w6(e,"string");return nr(t)=="symbol"?t:t+""}function dr(e,t,o){return(t=ZE(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function vS(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),o.push.apply(o,r)}return o}function po(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?vS(Object(o),!0).forEach(function(r){dr(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):vS(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N6(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZE(r.key),r)}}function cc(e,t,o){return t&&N6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Od(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},Gg(e,t)}function JE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gg(e,t)}function bs(e){return bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bs(e)}function l0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l0=function(){return!!e})()}function ew(e,t){if(t&&(nr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Od(e)}function R6(e){var t=l0();return function(){var o,r=bs(e);if(t){var s=bs(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return ew(this,o)}}var M6=cc(function e(){lc(this,e)}),tw="CALC_UNIT",T6=new RegExp(tw,"g");function Kp(e){return typeof e=="number"?"".concat(e).concat(tw):e}var O6=(function(e){JE(o,e);var t=R6(o);function o(r,s){var l;lc(this,o),l=t.call(this),dr(Od(l),"result",""),dr(Od(l),"unitlessCssVar",void 0),dr(Od(l),"lowPriority",void 0);var d=nr(r);return l.unitlessCssVar=s,r instanceof o?l.result="(".concat(r.result,")"):d==="number"?l.result=Kp(r):d==="string"&&(l.result=r),l}return cc(o,[{key:"add",value:function(s){return s instanceof o?this.result="".concat(this.result," + ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," + ").concat(Kp(s))),this.lowPriority=!0,this}},{key:"sub",value:function(s){return s instanceof o?this.result="".concat(this.result," - ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," - ").concat(Kp(s))),this.lowPriority=!0,this}},{key:"mul",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof o?this.result="".concat(this.result," * ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," * ").concat(s)),this.lowPriority=!1,this}},{key:"div",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof o?this.result="".concat(this.result," / ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," / ").concat(s)),this.lowPriority=!1,this}},{key:"getResult",value:function(s){return this.lowPriority||s?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(s){var l=this,d=s||{},f=d.unit,p=!0;return typeof f=="boolean"?p=f:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(p=!1),this.result=this.result.replace(T6,p?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),o})(M6),z6=function(t,o){var r=O6;return function(s){return new r(s,o)}},xS=function(t,o){return"".concat([o,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function SS(e,t,o,r){var s=po({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(f){var p=QE(f,2),m=p[0],h=p[1];if(s!=null&&s[m]||s!=null&&s[h]){var b;(b=s[h])!==null&&b!==void 0||(s[h]=s?.[m])}})}var d=po(po({},o),s);return Object.keys(d).forEach(function(f){d[f]===t[f]&&delete d[f]}),d}var nw=typeof CSSINJS_STATISTIC<"u",Xg=!0;function kt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(!nw)return Object.assign.apply(Object,[{}].concat(t));Xg=!1;var r={};return t.forEach(function(s){if(nr(s)==="object"){var l=Object.keys(s);l.forEach(function(d){Object.defineProperty(r,d,{configurable:!0,enumerable:!0,get:function(){return s[d]}})})}}),Xg=!0,r}var CS={};function A6(){}var I6=function(t){var o,r=t,s=A6;return nw&&typeof Proxy<"u"&&(o=new Set,r=new Proxy(t,{get:function(d,f){if(Xg){var p;(p=o)===null||p===void 0||p.add(f)}return d[f]}}),s=function(d,f){var p;CS[d]={global:Array.from(o),component:po(po({},(p=CS[d])===null||p===void 0?void 0:p.component),f)}}),{token:r,keys:o,flush:s}};function $S(e,t,o){if(typeof o=="function"){var r;return o(kt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return o??{}}function B6(e){return{max:function(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return"max(".concat(r.map(function(l){return re(l)}).join(","),")")},min:function(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return"min(".concat(r.map(function(l){return re(l)}).join(","),")")}}}var _6=1e3*60*10,P6=(function(){function e(){lc(this,e),dr(this,"map",new Map),dr(this,"objectIDMap",new WeakMap),dr(this,"nextID",0),dr(this,"lastAccessBeat",new Map),dr(this,"accessBeat",0)}return cc(e,[{key:"set",value:function(o,r){this.clear();var s=this.getCompositeKey(o);this.map.set(s,r),this.lastAccessBeat.set(s,Date.now())}},{key:"get",value:function(o){var r=this.getCompositeKey(o),s=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,s}},{key:"getCompositeKey",value:function(o){var r=this,s=o.map(function(l){return l&&nr(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(nr(l),"_").concat(l)});return s.join("|")}},{key:"getObjectID",value:function(o){if(this.objectIDMap.has(o))return this.objectIDMap.get(o);var r=this.nextID;return this.objectIDMap.set(o,r),this.nextID+=1,r}},{key:"clear",value:function(){var o=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(s,l){r-s>_6&&(o.map.delete(l),o.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),ES=new P6;function j6(e,t){return le.useMemo(function(){var o=ES.get(t);if(o)return o;var r=e();return ES.set(t,r),r},t)}var H6=function(){return{}};function D6(e){var t=e.useCSP,o=t===void 0?H6:t,r=e.useToken,s=e.usePrefix,l=e.getResetStyles,d=e.getCommonStyle,f=e.getCompUnitless;function p(v,x,S,C){var R=Array.isArray(v)?v[0]:v;function w(I){return"".concat(String(R)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var N=C?.unitless||{},$=typeof f=="function"?f(v):{},E=po(po({},$),{},dr({},w("zIndexPopup"),!0));Object.keys(N).forEach(function(I){E[w(I)]=N[I]});var T=po(po({},C),{},{unitless:E,prefixToken:w}),z=h(v,x,S,T),A=m(R,S,T);return function(I){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,L=z(I,j),B=C?.extraCssVarPrefixCls,H=typeof B=="function"?B({prefixCls:I,rootCls:j}):B,q=A(H!=null&&H.length?[j].concat(go(H)):j);return[L,q]}}function m(v,x,S){var C=S.unitless,R=S.prefixToken,w=S.ignore;return function(N){var $=r(),E=$.cssVar,T=$.realToken,z=o();return S6({path:[v],prefix:E.prefix,key:E.key,unitless:C,ignore:w,token:T,scope:N,nonce:function(){return z.nonce}},function(){var A=$S(v,T,x),I=SS(v,T,A,{deprecatedTokens:S?.deprecatedTokens});return A&&Object.keys(A).forEach(function(j){I[R(j)]=I[j],delete I[j]}),I}),E?.key}}function h(v,x,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},R=Array.isArray(v)?v:[v,v],w=QE(R,1),N=w[0],$=R.join("-"),E=e.layer||{name:"antd"};return function(T){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,A=r(),I=A.theme,j=A.realToken,L=A.hashId,B=A.token,H=A.cssVar,q=A.zeroRuntime,Q=c.useMemo(function(){return q},[]);if(Q)return L;var F=s(),D=F.rootPrefixCls,G=F.iconPrefixCls,X=o(),ee="css",Z=j6(function(){var K=new Set;return Object.keys(C.unitless||{}).forEach(function(te){K.add(Rd(te,H.prefix)),K.add(Rd(te,xS(N,H.prefix)))}),z6(ee,K)},[ee,N,H?.prefix]),_=B6(),V=_.max,Y=_.min,W={theme:I,token:B,hashId:L,nonce:function(){return X.nonce},clientOnly:C.clientOnly,layer:E,order:C.order||-999};return typeof l=="function"&&Wg(po(po({},W),{},{clientOnly:!1,path:["Shared",D]}),function(){return l(B,{prefix:{rootPrefixCls:D,iconPrefixCls:G},csp:X})}),Wg(po(po({},W),{},{path:[$,T,G]}),function(){if(C.injectStyle===!1)return[];var K=I6(B),te=K.token,k=K.flush,se=$S(N,j,S),ce=".".concat(T),ae=SS(N,j,se,{deprecatedTokens:C.deprecatedTokens});se&&nr(se)==="object"&&Object.keys(se).forEach(function(he){se[he]="var(".concat(Rd(he,xS(N,H.prefix)),")")});var pe=kt(te,{componentCls:ce,prefixCls:T,iconCls:".".concat(G),antCls:".".concat(D),calc:Z,max:V,min:Y},se),oe=x(pe,{hashId:L,prefixCls:T,rootPrefixCls:D,iconPrefixCls:G});k(N,ae);var fe=typeof d=="function"?d(pe,T,z,C.resetFont):null;return[C.resetStyle===!1?null:fe,oe]}),L}}function b(v,x,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},R=h(v,x,S,po({resetStyle:!1,order:-998},C)),w=function($){var E=$.prefixCls,T=$.rootCls,z=T===void 0?E:T;return R(E,z),null};return w}return{genStyleHooks:p,genSubStyleComponent:b,genComponentStyleHook:h}}const Ta=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function zd(e){return(e+8)/e}function L6(e){const t=Array.from({length:10}).map((o,r)=>{const s=r-1,l=e*Math.E**(s/5),d=r>1?Math.floor(l):Math.ceil(l);return Math.floor(d/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:zd(o)}))}const V6="6.5.2",ow={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ql={...ow,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
41
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
42
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},F6={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Ln=Math.round;function Qp(e,t){const o=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=o.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)r[s]=t(r[s]||0,o[s]||"",s);return o[3]?r[3]=o[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const wS=(e,t,o)=>o===0?e:e/100;function Ml(e,t){const o=t||255;return e>o?o:e<0?0:e}class En{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function o(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let s=function(l){return r.startsWith(l)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(s("rgb"))this.fromRgbString(r);else if(s("hsl"))this.fromHslString(r);else if(s("hsv")||s("hsb"))this.fromHsvString(r);else{const l=F6[r.toLowerCase()];l&&this.fromHexString(parseInt(l,36).toString(16).padStart(6,"0"))}}else if(t instanceof En)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(o("rgb"))this.r=Ml(t.r),this.g=Ml(t.g),this.b=Ml(t.b),this.a=typeof t.a=="number"?Ml(t.a,1):1;else if(o("hsl"))this.fromHsl(t);else if(o("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const o=this.toHsv();return o.h=t,this._c(o)}getLuminance(){function t(l){const d=l/255;return d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)}const o=t(this.r),r=t(this.g),s=t(this.b);return .2126*o+.7152*r+.0722*s}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ln(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const o=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*o-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const o=this.getHue(),r=this.getSaturation();let s=this.getLightness()-t/100;return s<0&&(s=0),this._c({h:o,s:r,l:s,a:this.a})}lighten(t=10){const o=this.getHue(),r=this.getSaturation();let s=this.getLightness()+t/100;return s>1&&(s=1),this._c({h:o,s:r,l:s,a:this.a})}mix(t,o=50){const r=this._c(t),s=o/100,l=f=>(r[f]-this[f])*s+this[f],d={r:Ln(l("r")),g:Ln(l("g")),b:Ln(l("b")),a:Ln(l("a")*100)/100};return this._c(d)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const o=this._c(t),r=this.a+o.a*(1-this.a),s=l=>Ln((this[l]*this.a+o[l]*o.a*(1-this.a))/r);return this._c({r:s("r"),g:s("g"),b:s("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const o=(this.r||0).toString(16);t+=o.length===2?o:"0"+o;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const s=(this.b||0).toString(16);if(t+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=Ln(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),o=Ln(this.getHSLSaturation()*100),r=Ln(this.getLightness()*100);return this.a!==1?`hsla(${t},${o}%,${r}%,${this.a})`:`hsl(${t},${o}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,o,r){const s=this.clone();return s[t]=Ml(o,r),s}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const o=t.replace("#","");function r(s,l){return parseInt(o[s]+o[l||s],16)}o.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=o[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=o[6]?r(6,7)/255:1)}fromHsl({h:t,s:o,l:r,a:s}){const l=(t%360+360)%360;if(this._h=l,this._hsl_s=o,this._l=r,this.a=typeof s=="number"?s:1,o<=0){const x=Ln(r*255);this.r=x,this.g=x,this.b=x;return}let d=0,f=0,p=0;const m=l/60,h=(1-Math.abs(2*r-1))*o,b=h*(1-Math.abs(m%2-1));m>=0&&m<1?(d=h,f=b):m>=1&&m<2?(d=b,f=h):m>=2&&m<3?(f=h,p=b):m>=3&&m<4?(f=b,p=h):m>=4&&m<5?(d=b,p=h):m>=5&&m<6&&(d=h,p=b);const v=r-h/2;this.r=Ln((d+v)*255),this.g=Ln((f+v)*255),this.b=Ln((p+v)*255)}fromHsv({h:t,s:o,v:r,a:s}){const l=(t%360+360)%360;this._h=l,this._hsv_s=o,this._v=r,this.a=typeof s=="number"?s:1;const d=Ln(r*255);if(this.r=d,this.g=d,this.b=d,o<=0)return;const f=l/60,p=Math.floor(f),m=f-p,h=Ln(r*(1-o)*255),b=Ln(r*(1-o*m)*255),v=Ln(r*(1-o*(1-m))*255);switch(p){case 0:this.g=v,this.b=h;break;case 1:this.r=b,this.b=h;break;case 2:this.r=h,this.b=v;break;case 3:this.r=h,this.g=b;break;case 4:this.r=v,this.g=h;break;default:this.g=h,this.b=b;break}}fromHsvString(t){const o=Qp(t,wS);this.fromHsv({h:o[0],s:o[1],v:o[2],a:o[3]})}fromHslString(t){const o=Qp(t,wS);this.fromHsl({h:o[0],s:o[1],l:o[2],a:o[3]})}fromRgbString(t){const o=Qp(t,(r,s)=>s.includes("%")?Ln(r/100*255):r);this.r=o[0],this.g=o[1],this.b=o[2],this.a=o[3]}}const Iu=2,NS=.16,q6=.05,U6=.05,W6=.15,rw=5,aw=4,G6=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function RS(e,t,o){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=o?Math.round(e.h)-Iu*t:Math.round(e.h)+Iu*t:r=o?Math.round(e.h)+Iu*t:Math.round(e.h)-Iu*t,r<0?r+=360:r>=360&&(r-=360),r}function MS(e,t,o){if(e.h===0&&e.s===0)return e.s;let r;return o?r=e.s-NS*t:t===aw?r=e.s+NS:r=e.s+q6*t,r>1&&(r=1),o&&t===rw&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function TS(e,t,o){let r;return o?r=e.v+U6*t:r=e.v-W6*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function iw(e,t={}){const o=[],r=new En(e),s=r.toHsv();for(let l=rw;l>0;l-=1){const d=new En({h:RS(s,l,!0),s:MS(s,l,!0),v:TS(s,l,!0)});o.push(d)}o.push(r);for(let l=1;l<=aw;l+=1){const d=new En({h:RS(s,l),s:MS(s,l),v:TS(s,l)});o.push(d)}return t.theme==="dark"?G6.map(({index:l,amount:d})=>new En(t.backgroundColor||"#141414").mix(o[l],d).toHexString()):o.map(l=>l.toHexString())}const ms={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},kg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];kg.primary=kg[5];const Yg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Yg.primary=Yg[5];const Kg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Kg.primary=Kg[5];const Qg=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qg.primary=Qg[5];const Zg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Zg.primary=Zg[5];const Jg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Jg.primary=Jg[5];const eh=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];eh.primary=eh[5];const th=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];th.primary=th[5];const nh=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];nh.primary=nh[5];const oh=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];oh.primary=oh[5];const rh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];rh.primary=rh[5];const ah=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ah.primary=ah[5];const ih=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ih.primary=ih[5];const Zp={red:kg,volcano:Yg,orange:Kg,gold:Qg,yellow:Zg,lime:Jg,green:eh,cyan:th,blue:nh,geekblue:oh,purple:rh,magenta:ah,grey:ih};function X6(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){const{colorSuccess:r,colorWarning:s,colorError:l,colorInfo:d,colorPrimary:f,colorBgBase:p,colorTextBase:m}=e,h=t(f),b=t(r),v=t(s),x=t(l),S=t(d),C=o(p,m),R=e.colorLink||e.colorInfo,w=t(R),N=new En(x[1]).mix(new En(x[3]),50).toHexString(),$={};return Ta.forEach(E=>{const T=e[E];if(T){const z=t(T);$[`${E}Hover`]=z[5],$[`${E}Active`]=z[7]}}),{...C,colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:b[1],colorSuccessBgHover:b[2],colorSuccessBorder:b[3],colorSuccessBorderHover:b[4],colorSuccessHover:b[4],colorSuccess:b[6],colorSuccessActive:b[7],colorSuccessTextHover:b[8],colorSuccessText:b[9],colorSuccessTextActive:b[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBgFilledHover:N,colorErrorBgActive:x[3],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],...$,colorBgMask:new En("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const k6=e=>{let t=e,o=e,r=e,s=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?s=4:e>=8&&(s=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:s}};function Y6(e){const{motionUnit:t,motionBase:o,borderRadius:r,lineWidth:s}=e;return{motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:s+1,...k6(r)}}const K6=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Q6=e=>{const t=L6(e),o=t.map(h=>h.size),r=t.map(h=>h.lineHeight),s=o[1],l=o[0],d=o[2],f=r[1],p=r[0],m=r[2];return{fontSizeSM:l,fontSize:s,fontSizeLG:d,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:f,lineHeightLG:m,lineHeightSM:p,fontHeight:Math.round(f*s),fontHeightLG:Math.round(m*d),fontHeightSM:Math.round(p*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Z6(e){const{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}const Vo=(e,t)=>new En(e).setA(t).toRgbString(),Qi=(e,t)=>new En(e).darken(t).toHexString(),J6=e=>{const t=iw(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},e4=(e,t,o)=>{const r=e||"#fff",s=t||"#000";return{colorBgBase:r,colorTextBase:s,colorShadow:o||"#000",colorText:Vo(s,.88),colorTextSecondary:Vo(s,.65),colorTextTertiary:Vo(s,.45),colorTextQuaternary:Vo(s,.25),colorFill:Vo(s,.15),colorFillSecondary:Vo(s,.06),colorFillTertiary:Vo(s,.04),colorFillQuaternary:Vo(s,.02),colorBgSolid:Vo(s,1),colorBgSolidHover:Vo(s,.75),colorBgSolidActive:Vo(s,.95),colorBgLayout:Qi(r,4),colorBgContainer:Qi(r,0),colorBgElevated:Qi(r,0),colorBgSpotlight:Vo(s,.85),colorBgBlur:"transparent",colorBorder:Qi(r,15),colorBorderDisabled:Qi(r,15),colorBorderSecondary:Qi(r,6)}};function t4(e){ms.pink=ms.magenta,Zp.pink=Zp.magenta;const t=Object.keys(ow).map(o=>{const r=e[o]===ms[o]?Zp[o]:iw(e[o]);return Array.from({length:10},()=>1).reduce((s,l,d)=>(s[`${o}-${d+1}`]=r[d],s[`${o}${d+1}`]=r[d],s),{})}).reduce((o,r)=>(o={...o,...r},o),{});return{...e,...t,...X6(e,{generateColorPalettes:J6,generateNeutralColorPalettes:e4}),...Q6(e.fontSize),...Z6(e),...K6(e),...Y6(e)}}const sw=Lg(t4),sh={token:Ql,override:{override:Ql},hashed:!0},lw=le.createContext(sh);function Jp(e){return e>=0&&e<=255}function _l(e,t){const{r:o,g:r,b:s,a:l}=new En(e).toRgb();if(l<1)return e;const{r:d,g:f,b:p}=new En(t).toRgb();for(let m=.01;m<=1;m+=.01){const h=Math.round((o-d*(1-m))/m),b=Math.round((r-f*(1-m))/m),v=Math.round((s-p*(1-m))/m);if(Jp(h)&&Jp(b)&&Jp(v))return new En({r:h,g:b,b:v,a:Math.round(m*100)/100}).toRgbString()}return new En({r:o,g:r,b:s,a:1}).toRgbString()}function n4(e){const{override:t,...o}=e,r={...t};Object.keys(Ql).forEach(R=>{delete r[R]});const s={...o,...r},l=new En(s.colorShadow),d=l.a,f=R=>l.clone().setA(d*R).toRgbString(),p=480,m=576,h=768,b=992,v=1200,x=1600,S=1920;return s.motion===!1&&(s.motionDurationFast="0s",s.motionDurationMid="0s",s.motionDurationSlow="0s"),{...s,colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:_l(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:_l(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:_l(s.colorWarningBg,s.colorBgContainer),colorErrorAffix:s.colorError,colorWarningAffix:s.colorWarning,fontSizeIcon:s.fontSizeSM,lineWidthFocus:s.lineWidth*3,lineWidth:s.lineWidth,controlOutlineWidth:s.lineWidth*2,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:_l(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:`
43
+ 0 6px 16px 0 ${f(.08)},
44
+ 0 3px 6px -4px ${f(.12)},
45
+ 0 9px 28px 8px ${f(.05)}
46
+ `,boxShadowSecondary:`
47
+ 0 6px 16px 0 ${f(.08)},
48
+ 0 3px 6px -4px ${f(.12)},
49
+ 0 9px 28px 8px ${f(.05)}
50
+ `,boxShadowTertiary:`
51
+ 0 1px 2px 0 ${f(.05)},
52
+ 0 1px 6px -1px ${f(.03)},
53
+ 0 2px 4px 0 ${f(.03)}
54
+ `,screenXS:p,screenXSMin:p,screenXSMax:m-1,screenSM:m,screenSMMin:m,screenSMMax:h-1,screenMD:h,screenMDMin:h,screenMDMax:b-1,screenLG:b,screenLGMin:b,screenLGMax:v-1,screenXL:v,screenXLMin:v,screenXLMax:x-1,screenXXL:x,screenXXLMin:x,screenXXLMax:S-1,screenXXXL:S,screenXXXLMin:S,boxShadowPopoverArrow:`2px 2px 5px ${f(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${f(.08)}) drop-shadow(0 3px 6px ${f(.12)}) drop-shadow(0 9px 28px ${f(.05)})`,boxShadowCard:`
55
+ 0 1px 2px -2px ${f(.16)},
56
+ 0 3px 6px 0 ${f(.12)},
57
+ 0 5px 12px 4px ${f(.09)}
58
+ `,boxShadowDrawerRight:`
59
+ -6px 0 16px 0 ${f(.08)},
60
+ -3px 0 6px -4px ${f(.12)},
61
+ -9px 0 28px 8px ${f(.05)}
62
+ `,boxShadowDrawerLeft:`
63
+ 6px 0 16px 0 ${f(.08)},
64
+ 3px 0 6px -4px ${f(.12)},
65
+ 9px 0 28px 8px ${f(.05)}
66
+ `,boxShadowDrawerUp:`
67
+ 0 6px 16px 0 ${f(.08)},
68
+ 0 3px 6px -4px ${f(.12)},
69
+ 0 9px 28px 8px ${f(.05)}
70
+ `,boxShadowDrawerDown:`
71
+ 0 -6px 16px 0 ${f(.08)},
72
+ 0 -3px 6px -4px ${f(.12)},
73
+ 0 -9px 28px 8px ${f(.05)}
74
+ `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${f(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${f(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${f(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${f(.08)}`,...r}}const cw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},o4={motionBase:!0,motionUnit:!0},r4={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},uw=(e,t,o)=>{const r=o.getDerivativeToken(e),{override:s,...l}=t;let d={...r,override:s};return d=n4(d),l&&Object.entries(l).forEach(([f,p])=>{const{theme:m,...h}=p;let b=h;m&&(b=uw({...d,...h},{override:h},m)),d[f]=b}),d};function ko(){const{token:e,hashed:t,theme:o,override:r,cssVar:s,zeroRuntime:l}=le.useContext(lw),{csp:d,getPrefixCls:f}=le.useContext(bt),p={prefix:s?.prefix??f(),key:s?.key??"css-var-root"},m=`${V6}-${t||""}`,h=o||sw,[b,v,x]=YO(h,[Ql,e],{salt:m,override:r,getComputedToken:uw,cssVar:{...p,unitless:cw,ignore:o4,preserve:r4},nonce:d?.nonce});return[h,x,t?v:"",b,p,!!l]}const or={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),uf=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a4=new Ct("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),mi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ns=(e,t)=>({outline:`${re(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),Lr=(e,t)=>({"&:focus-visible":Ns(e,t)}),i4=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...Lr(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s4=(e,t,o,r)=>{const s=`[class^="${t}"], [class*=" ${t}"]`,l=o?`.${o}`:s,d={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let f={};return r!==!1&&(f={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...f,...d,[s]:d}}},dw=e=>({[`.${e}`]:{...uf(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:a4,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),{genStyleHooks:Qt,genComponentStyleHook:l4,genSubStyleComponent:df}=D6({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,o,r,s,l]=ko();return{theme:e,realToken:t,hashId:o,token:r,cssVar:s,zeroRuntime:l}},useCSP:()=>{const{csp:e}=c.useContext(bt);return e??{}},getResetStyles:(e,t)=>{const o=i4(e);return[o,{"&":o},dw(t?.prefix.iconPrefixCls??n0)]},getCommonStyle:s4,getCompUnitless:()=>cw}),Yt=(e,t)=>{const o=`--${e.replace(/\./g,"")}-${t}-`;return[l=>`${o}${l}`,(l,d)=>d?`var(${o}${l}, ${d})`:`var(${o}${l})`]};function c0(e,t){return Ta.reduce((o,r)=>{const s=e[`${r}1`],l=e[`${r}3`],d=e[`${r}6`],f=e[`${r}7`];return{...o,...t(r,{lightColor:s,lightBorderColor:l,darkColor:d,textColor:f})}},{})}const c4=(e,t)=>(ko(),Wg({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>dw(e)));var Bu={},OS;function u4(){if(OS)return Bu;OS=1,Object.defineProperty(Bu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return Bu.default=e,Bu}var d4=u4();const f4=Wt(d4),u0=c.createContext({}),zS="data-rc-order",AS="data-rc-priority",m4="rc-util-key",lh=new Map;function fw(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function p4(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}function mw({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:m4}function d0(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function g4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function f0(e){return Array.from((lh.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function pw(e,t={}){if(!fw())return null;const{csp:o,prepend:r,priority:s=0}=t,l=g4(r),d=l==="prependQueue",f=document.createElement("style");f.setAttribute(zS,l),d&&s&&f.setAttribute(AS,`${s}`),o?.nonce&&(f.nonce=o.nonce),f.innerHTML=e;const p=d0(t),{firstChild:m}=p;if(r){if(d){const h=(t.styles||f0(p)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(zS)))return!1;const v=Number(b.getAttribute(AS)||0);return s>=v});if(h.length)return p.insertBefore(f,h[h.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function h4(e,t={}){let{styles:o}=t;return o||=f0(d0(t)),o.find(r=>r.getAttribute(mw(t))===e)}function b4(e,t){const o=lh.get(e);if(!o||!p4(document,o)){const r=pw("",t);if(!r)return;const{parentNode:s}=r;lh.set(e,s),e.removeChild(r)}}function y4(e,t,o={}){if(!fw())return null;const r=d0(o),s=f0(r),l={...o,styles:s};b4(r,l);const d=h4(t,l);if(d)return l.csp?.nonce&&d.nonce!==l.csp.nonce&&(d.nonce=l.csp.nonce),d.innerHTML!==e&&(d.innerHTML=e),d;const f=pw(e,l);return f?.setAttribute(mw(l),t),f}function v4(e){return e?.getRootNode?.()}function x4(e){const t=v4(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const IS={};function S4(e,t){e||IS[t]||(IS[t]=!0)}function C4(e){return e.replace(/-(.)/g,(t,o)=>o.toUpperCase())}function $4(e,t){S4(e,`[@ant-design/icons] ${t}`)}function BS(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _S(e={}){return Object.keys(e).reduce((t,o)=>{const r=e[o];return o==="class"?(t.className=r,delete t.class):(delete t[o],t[C4(o)]=r),t},{})}function ch(e,t,o){return o?le.createElement(e.tag,{key:t,..._S(e.attrs),...o},(e.children||[]).map((r,s)=>ch(r,`${t}-${e.tag}-${s}`))):le.createElement(e.tag,{key:t,..._S(e.attrs)},(e.children||[]).map((r,s)=>ch(r,`${t}-${e.tag}-${s}`)))}const E4=`
75
+ .anticon {
76
+ display: inline-flex;
77
+ align-items: center;
78
+ color: inherit;
79
+ font-style: normal;
80
+ line-height: 0;
81
+ text-align: center;
82
+ text-transform: none;
83
+ vertical-align: -0.125em;
84
+ text-rendering: optimizeLegibility;
85
+ -webkit-font-smoothing: antialiased;
86
+ -moz-osx-font-smoothing: grayscale;
87
+ }
88
+
89
+ .anticon > * {
90
+ line-height: 1;
91
+ }
92
+
93
+ .anticon svg {
94
+ display: inline-block;
95
+ vertical-align: inherit;
96
+ }
97
+
98
+ .anticon::before {
99
+ display: none;
100
+ }
101
+
102
+ .anticon .anticon-icon {
103
+ display: block;
104
+ }
105
+
106
+ .anticon[tabindex] {
107
+ cursor: pointer;
108
+ }
109
+
110
+ .anticon-spin {
111
+ -webkit-animation: loadingCircle 1s infinite linear;
112
+ animation: loadingCircle 1s infinite linear;
113
+ }
114
+
115
+ @-webkit-keyframes loadingCircle {
116
+ 100% {
117
+ -webkit-transform: rotate(360deg);
118
+ transform: rotate(360deg);
119
+ }
120
+ }
121
+
122
+ @keyframes loadingCircle {
123
+ 100% {
124
+ -webkit-transform: rotate(360deg);
125
+ transform: rotate(360deg);
126
+ }
127
+ }
128
+ `,w4=e=>{const{csp:t,prefixCls:o,layer:r,zeroRuntime:s}=c.useContext(u0);let l=E4;o&&(l=l.replace(/anticon/g,o)),r&&(l=`@layer ${r} {
129
+ ${l}
130
+ }`),c.useEffect(()=>{if(s)return;const d=e.current,f=x4(d);y4(l,"@ant-design-icons",{prepend:!r,csp:t,attachTo:f})},[])},gw=e=>{const{icon:t,className:o,onClick:r,style:s,primaryColor:l,secondaryColor:d,...f}=e,p=c.useRef(null);if(w4(p),$4(BS(t),`icon should be icon definiton, but got ${t}`),!BS(t))return null;const m=t;return ch(m.icon,`svg-${m.name}`,{className:o,onClick:r,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...f,ref:p})};gw.displayName="IconReact";function uh(){return uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},uh.apply(this,arguments)}const Zt=c.forwardRef((e,t)=>{const{className:o,icon:r,spin:s,rotate:l,tabIndex:d,onClick:f,twoToneColor:p,...m}=e,{prefixCls:h="anticon",rootClassName:b}=c.useContext(u0),v=U(b,h,{[`${h}-${r.name}`]:!!r.name,[`${h}-spin`]:!!s||r.name==="loading"},o);let x=d;x===void 0&&f&&(x=-1);const S=l?{msTransform:`rotate(${l}deg)`,transform:`rotate(${l}deg)`}:void 0;return c.createElement("span",uh({role:"img","aria-label":r.name},m,{ref:t,tabIndex:x,onClick:f,className:v}),c.createElement(gw,{icon:r,style:S}))});function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},dh.apply(this,arguments)}const N4=(e,t)=>c.createElement(Zt,dh({},e,{ref:t,icon:f4})),uc=c.forwardRef(N4);var _u={},PS;function R4(){if(PS)return _u;PS=1,Object.defineProperty(_u,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};return _u.default=e,_u}var M4=R4();const T4=Wt(M4);function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fh.apply(this,arguments)}const O4=(e,t)=>c.createElement(Zt,fh({},e,{ref:t,icon:T4})),gi=c.forwardRef(O4);var Pu={},jS;function z4(){if(jS)return Pu;jS=1,Object.defineProperty(Pu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};return Pu.default=e,Pu}var A4=z4();const I4=Wt(A4);function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},mh.apply(this,arguments)}const B4=(e,t)=>c.createElement(Zt,mh({},e,{ref:t,icon:I4})),gr=c.forwardRef(B4);var ju={},HS;function _4(){if(HS)return ju;HS=1,Object.defineProperty(ju,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return ju.default=e,ju}var P4=_4();const j4=Wt(P4);function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ph.apply(this,arguments)}const H4=(e,t)=>c.createElement(Zt,ph({},e,{ref:t,icon:j4})),ff=c.forwardRef(H4);var Hu={},DS;function D4(){if(DS)return Hu;DS=1,Object.defineProperty(Hu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return Hu.default=e,Hu}var L4=D4();const V4=Wt(L4);function gh(){return gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},gh.apply(this,arguments)}const F4=(e,t)=>c.createElement(Zt,gh({},e,{ref:t,icon:V4})),mf=c.forwardRef(F4),hw=c.createContext({}),q4=e=>{const{children:t,...o}=e,r=c.useMemo(()=>({motion:o.motion}),[o.motion]);return c.createElement(hw.Provider,{value:r},t)},cr="none",Du="appear",Lu="enter",Vu="leave",LS="none",er="prepare",ei="start",ti="active",m0="end",bw="prepared";function VS(e,t){const o={};return o[e.toLowerCase()]=t.toLowerCase(),o[`Webkit${e}`]=`webkit${t}`,o[`Moz${e}`]=`moz${t}`,o[`ms${e}`]=`MS${t}`,o[`O${e}`]=`o${t.toLowerCase()}`,o}function U4(e,t){const o={animationend:VS("Animation","AnimationEnd"),transitionend:VS("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete o.animationend.animation,"TransitionEvent"in t||delete o.transitionend.transition),o}const W4=U4(To(),typeof window<"u"?window:{});let yw={};To()&&({style:yw}=document.createElement("div"));const Fu={};function vw(e){if(Fu[e])return Fu[e];const t=W4[e];if(t){const o=Object.keys(t),r=o.length;for(let s=0;s<r;s+=1){const l=o[s];if(Object.prototype.hasOwnProperty.call(t,l)&&l in yw)return Fu[e]=t[l],Fu[e]}}return""}const xw=vw("animationend"),Sw=vw("transitionend"),G4=!!(xw&&Sw),FS=xw||"animationend",qS=Sw||"transitionend";function US(e,t){if(!e)return null;if(typeof e=="object"){const o=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[o]}return`${e}-${t}`}const X4=(e=>{const t=c.useRef();function o(s){s&&(s.removeEventListener(qS,e),s.removeEventListener(FS,e))}function r(s){t.current&&t.current!==s&&o(t.current),s&&s!==t.current&&(s.addEventListener(qS,e),s.addEventListener(FS,e),t.current=s)}return c.useEffect(()=>()=>{o(t.current),t.current=null},[]),[r,o]}),Cw=To()?c.useLayoutEffect:c.useEffect,k4=(()=>{const e=c.useRef(null);function t(){Lt.cancel(e.current)}function o(r,s=2){t();const l=Lt(()=>{s<=1?r({isCanceled:()=>l!==e.current}):o(r,s-1)});e.current=l}return c.useEffect(()=>()=>{t()},[]),[o,t]}),Y4=[er,ei,ti,m0],K4=[er,bw],$w=!1,Q4=!0;function Ew(e){return e===ti||e===m0}const Z4=((e,t,o)=>{const[r,s]=vE(LS),[l,d]=k4();function f(){s(er,!0)}const p=t?K4:Y4;return Cw(()=>{if(r!==LS&&r!==m0){const m=p.indexOf(r),h=p[m+1],b=o(r);b===$w?s(h,!0):h&&l(v=>{function x(){v.isCanceled()||s(h,!0)}b===!0?x():Promise.resolve(b).then(x)})}},[e,r]),c.useEffect(()=>()=>{d()},[]),[f,r]});function J4(e,t,o,{motionEnter:r=!0,motionAppear:s=!0,motionLeave:l=!0,motionDeadline:d,motionLeaveImmediately:f,onAppearPrepare:p,onEnterPrepare:m,onLeavePrepare:h,onAppearStart:b,onEnterStart:v,onLeaveStart:x,onAppearActive:S,onEnterActive:C,onLeaveActive:R,onAppearEnd:w,onEnterEnd:N,onLeaveEnd:$,onVisibleChanged:E}){const[T,z]=c.useState(),[A,I]=TT(cr),[j,L]=c.useState([null,null]),B=A(),H=c.useRef(!1),q=c.useRef(null);function Q(){return o()}const F=c.useRef(!1);function D(){I(cr),L([null,null])}const G=ut(se=>{const ce=A();if(ce===cr)return;const ae=Q();if(se&&!se.deadline&&se.target!==ae)return;const pe=F.current;let oe;ce===Du&&pe?oe=w?.(ae,se):ce===Lu&&pe?oe=N?.(ae,se):ce===Vu&&pe&&(oe=$?.(ae,se)),pe&&oe!==!1&&D()}),[X]=X4(G),ee=se=>{switch(se){case Du:return{[er]:p,[ei]:b,[ti]:S};case Lu:return{[er]:m,[ei]:v,[ti]:C};case Vu:return{[er]:h,[ei]:x,[ti]:R};default:return{}}},Z=c.useMemo(()=>ee(B),[B]),[_,V]=Z4(B,!e,se=>{if(se===er){const ce=Z[er];return ce?ce(Q()):$w}return se in Z&&L([Z[se]?.(Q(),null)||null,se]),se===ti&&B!==cr&&(X(Q()),d>0&&(clearTimeout(q.current),q.current=setTimeout(()=>{G({deadline:!0})},d))),se===bw&&D(),Q4}),Y=Ew(V);F.current=Y;const W=c.useRef(null);Cw(()=>{if(H.current&&W.current===t)return;z(t);const se=H.current;H.current=!0;let ce;!se&&t&&s&&(ce=Du),se&&t&&r&&(ce=Lu),(se&&!t&&l||!se&&f&&!t&&l)&&(ce=Vu);const ae=ee(ce);ce&&(e||ae[er])?(I(ce),_()):I(cr),W.current=t},[t]),c.useEffect(()=>{(B===Du&&!s||B===Lu&&!r||B===Vu&&!l)&&I(cr)},[s,r,l]),c.useEffect(()=>()=>{H.current=!1,clearTimeout(q.current)},[]);const K=c.useRef(!1);c.useEffect(()=>{T&&(K.current=!0),T!==void 0&&B===cr&&((K.current||T)&&E?.(T),K.current=!0)},[T,B]);let te=j[0];Z[er]&&V===ei&&(te={transition:"none",...te});const k=j[1];return[A,V,te,T??t,!H.current&&B===cr&&e&&s?"NONE":V===ei||V===ti?k===V:!0]}function ww(e){return e?.length<2}function ez(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function o(s,l){return!!(s.motionName&&t&&l!==!1)}const r=c.forwardRef((s,l)=>{const{visible:d=!0,removeOnLeave:f=!0,forceRender:p,children:m,motionName:h,leavedClassName:b,eventProps:v}=s,{motion:x}=c.useContext(hw),S=o(s,x),C=c.useRef();function R(){return ui(C.current)}const[w,N,$,E,T]=J4(S,d,R,s),z=w(),A=c.useRef(E);E&&(A.current=!0);const I=c.useMemo(()=>{const B={};return Object.defineProperties(B,{nativeElement:{enumerable:!0,get:R},inMotion:{enumerable:!0,get:()=>()=>w()!==cr},enableMotion:{enumerable:!0,get:()=>()=>S}}),B},[]);c.useImperativeHandle(l,()=>I,[]);const j=c.useRef(0);T&&(j.current+=1);const L=c.useMemo(()=>{if(T==="NONE")return null;let B;const H={...v,visible:d};if(!m)B=null;else if(z===cr)E?B=m({...H},C):!f&&A.current&&b?B=m({...H,className:b},C):p||!f&&!b?B=m({...H,style:{display:"none"}},C):B=null;else{let q;N===er?q="prepare":Ew(N)?q="active":N===ei&&(q="start");const Q=US(h,`${z}-${q}`);B=m({...H,className:U(US(h,z),{[Q]:Q&&q,[h]:typeof h=="string"}),style:$},C)}return B},[j.current]);if(ww(m)&&jT(L)){const B=pi(L);if(B!==C)return c.cloneElement(L,{ref:no(B,C)})}return L});return r.displayName="CSSMotion",r}const to=ez(G4),hh="add",bh="keep",yh="remove",eg="removed";function tz(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function vh(e=[]){return e.map(tz)}function nz(e=[],t=[]){let o=[],r=0;const s=t.length,l=vh(e),d=vh(t);l.forEach(m=>{let h=!1;for(let b=r;b<s;b+=1){const v=d[b];if(v.key===m.key){r<b&&(o=o.concat(d.slice(r,b).map(x=>({...x,status:hh}))),r=b),o.push({...v,status:bh}),r+=1,h=!0;break}}h||o.push({...m,status:yh})}),r<s&&(o=o.concat(d.slice(r).map(m=>({...m,status:hh}))));const f={};return o.forEach(({key:m})=>{f[m]=(f[m]||0)+1}),Object.keys(f).filter(m=>f[m]>1).forEach(m=>{o=o.filter(({key:h,status:b})=>h!==m||b!==yh),o.forEach(h=>{h.key===m&&(h.status=bh)})}),o}function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},xh.apply(this,arguments)}const oz=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rz(e,t=to){class o extends c.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:s},{keyEntities:l}){const d=vh(s);return{keyEntities:nz(l,d).filter(p=>{const m=l.find(({key:h})=>p.key===h);return!(m&&m.status===eg&&p.status===yh)})}}removeKey=s=>{this.setState(l=>({keyEntities:l.keyEntities.map(f=>f.key!==s?f:{...f,status:eg})}),()=>{const{keyEntities:l}=this.state;l.filter(({status:f})=>f!==eg).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:s}=this.state,{component:l,children:d,onVisibleChanged:f,onAllRemoved:p,...m}=this.props,h=l||c.Fragment,b={};return oz.forEach(v=>{b[v]=m[v],delete m[v]}),delete m.keys,c.createElement(h,m,s.map(({status:v,...x},S)=>{const C=v===hh||v===bh;return c.createElement(t,xh({},b,{key:x.key,visible:C,eventProps:x,onVisibleChanged:R=>{f?.(R,{key:x.key}),R||this.removeKey(x.key)}}),ww(d)?R=>d({...R,index:S}):(R,w)=>d({...R,index:S},w))}))}}return o}const az=rz(),Kn=e=>e!=null,pr=e=>Kn(e)&&e!==!1&&e!=="",Wo=e=>typeof e=="number"&&!Number.isNaN(e),Ra=e=>typeof e=="string",Ut=e=>e!==null&&typeof e=="object",fn=e=>typeof e=="function",tg=e=>Kn(e)&&fn(e.then),Nw=e=>Ut(e)&&"propertyName"in e&&Ra(e.propertyName),Sh=(e,t)=>{const o={...e};return Object.keys(t).forEach(r=>{t[r]._default?o[r]||(o[r]={}):o[r]=Sh(o[r],t[r])}),o},Rw=(e={},...t)=>t.filter(o=>!!o).reduce((o,r)=>(Object.keys(r).forEach(s=>{const l=e[s],d=r[s];if(l)if(Ut(d))o[s]=Rw(l,o[s],d);else{const{_default:f}=l;f&&(o[s]=o[s]||{},o[s][f]=U(o[s][f],d))}else o[s]=U(o[s],d)}),o),{}),iz=(e,...t)=>c.useMemo(()=>Rw.apply(void 0,[e].concat(t)),[e].concat(t)),sz=(...e)=>e.filter(t=>!!t).reduce((t,o={})=>(Object.keys(o).forEach(r=>{t[r]={...t[r],...o[r]}}),t),{}),lz=(...e)=>c.useMemo(()=>sz.apply(void 0,e),[].concat(e)),pn=e=>c.useMemo(()=>e?{root:e}:void 0,[e]),ys=(e,t)=>fn(e)?e(t):e,mn=(e,t,o,r)=>{const s=e.map(p=>p?ys(p,o):void 0),l=t.map(p=>p?ys(p,o):void 0),d=iz.apply(void 0,[r].concat(go(s))),f=lz.apply(void 0,go(l));return c.useMemo(()=>r?[Sh(d,r),Sh(f,r)]:[d,f],[d,f,r])},qu=(e,t,o)=>({background:e,[`${o}-icon`]:{color:t}}),cz=e=>{const{componentCls:t,motionDurationSlow:o,marginXS:r,marginSM:s,fontSize:l,fontSizeLG:d,lineHeight:f,borderRadiusLG:p,motionEaseInOutCirc:m,withDescriptionIconSize:h,colorText:b,colorTextHeading:v,withDescriptionPadding:x,defaultPadding:S,lineWidth:C,lineType:R,colorSuccessBorder:w,colorWarningBorder:N,colorErrorBorder:$,colorInfoBorder:E}=e;return{[t]:{...Vn(e),position:"relative",display:"flex",alignItems:"center",padding:S,wordWrap:"break-word",borderRadius:p,borderWidth:re(C),borderStyle:R,[`&${t}-success`]:{borderColor:w},[`&${t}-info`]:{borderColor:E},[`&${t}-warning`]:{borderColor:N},[`&${t}-error`]:{borderColor:$},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:f},"&-title":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(T=>`${T} ${o} ${m}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:x,[`${t}-icon`]:{marginInlineEnd:s,fontSize:h,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:v,fontSize:d},[`${t}-description`]:{display:"block",color:b}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}},uz=e=>{const{componentCls:t,colorSuccess:o,colorSuccessBg:r,colorWarning:s,colorWarningBg:l,colorError:d,colorErrorBg:f,colorInfo:p,colorInfoBg:m}=e;return{[t]:{"&-success":qu(r,o,t),"&-info":qu(m,p,t),"&-warning":qu(l,s,t),"&-error":{...qu(f,d,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},dz=e=>{const{componentCls:t,iconCls:o,motionDurationMid:r,marginXS:s,fontSizeIcon:l,colorIcon:d,colorIconHover:f}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:s},[`${t}-close-icon`]:{marginInlineStart:s,padding:0,overflow:"hidden",fontSize:l,lineHeight:re(l),backgroundColor:"transparent",border:"none",cursor:"pointer",...Lr(e),[`${o}-close`]:{color:d,transition:`color ${r}`,"&:hover":{color:f}}},"&-close-text":{color:d,transition:`color ${r}`,"&:hover":{color:f}}}}},fz=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),mz=Qt("Alert",e=>[cz(e),uz(e),dz(e)],fz),pz=e=>{const{icon:t,type:o,className:r,style:s,successIcon:l,infoIcon:d,warningIcon:f,errorIcon:p}=e,m={success:l??c.createElement(uc,null),info:d??c.createElement(mf,null),error:p??c.createElement(gi,null),warning:f??c.createElement(ff,null)};return c.createElement("span",{className:r,style:s},t??m[o])},gz=e=>{const{isClosable:t,prefixCls:o,closeIcon:r,handleClose:s,ariaProps:l,className:d,style:f}=e,p=r===!0||r===void 0?c.createElement(gr,null):r;return t?c.createElement("button",{type:"button",onClick:s,className:U(`${o}-close-icon`,d),tabIndex:0,style:f,...l},p):null},Mw=c.forwardRef((e,t)=>{const{description:o,prefixCls:r,message:s,title:l,banner:d,className:f,rootClassName:p,style:m,onMouseEnter:h,onMouseLeave:b,onClick:v,afterClose:x,showIcon:S,closable:C,closeText:R,closeIcon:w,action:N,id:$,styles:E,classNames:T,...z}=e,A=l??s,[I,j]=c.useState(!1),L=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:L.current}));const{getPrefixCls:B,direction:H,variant:q,closable:Q,closeIcon:F,className:D,style:G,classNames:X,styles:ee,successIcon:Z,infoIcon:_,warningIcon:V,errorIcon:Y}=Kt("alert"),W=B("alert",r),[K,te]=mz(W),{onClose:k,afterClose:se}=Ut(C)?C:{},ce=Me=>{j(!0),(k??e.onClose)?.(Me)},ae=c.useMemo(()=>e.type!==void 0?e.type:d?"warning":"info",[e.type,d]),pe=e.variant??q??"outlined",oe=c.useMemo(()=>Ut(C)&&C.closeIcon||R?!0:typeof C=="boolean"?C:w!==!1&&Kn(w)?!0:!!Q,[R,w,C,Q]),fe=d&&S===void 0?!0:S,he={...e,prefixCls:W,variant:pe,type:ae,showIcon:fe,closable:oe},be=pn(G),Ee=pn(m),[Se,ye]=mn([X,T],[ee,be,E,Ee],{props:he}),Ne=U(W,`${W}-${ae}`,`${W}-${pe}`,{[`${W}-with-description`]:!!o,[`${W}-no-icon`]:!fe,[`${W}-banner`]:!!d,[`${W}-rtl`]:H==="rtl"},D,f,p,Se.root,te,K),Oe=Qn(z,{aria:!0,data:!0}),Ce=c.useMemo(()=>Ut(C)&&C.closeIcon?C.closeIcon:R||(w!==void 0?w:Ut(Q)&&Q.closeIcon?Q.closeIcon:F),[w,C,Q,R,F]),Ie=c.useMemo(()=>{const Me=C??Q;return Ut(Me)?Qn(Me,{data:!0,aria:!0}):{}},[C,Q]);return c.createElement(to,{visible:!I,motionName:`${W}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Me=>({maxHeight:Me.offsetHeight}),onLeaveEnd:se??x},({className:Me,style:je},et)=>c.createElement("div",{id:$,ref:no(L,et),"data-show":!I,className:U(Ne,Me),style:{...ye.root,...je},onMouseEnter:h,onMouseLeave:b,onClick:v,role:"alert",...Oe},fe?c.createElement(pz,{className:U(`${W}-icon`,Se.icon),style:ye.icon,description:o,icon:e.icon,prefixCls:W,type:ae,successIcon:Z,infoIcon:_,warningIcon:V,errorIcon:Y}):null,c.createElement("div",{className:U(`${W}-section`,Se.section),style:ye.section},A?c.createElement("div",{className:U(`${W}-title`,Se.title),style:ye.title},A):null,o?c.createElement("div",{className:U(`${W}-description`,Se.description),style:ye.description},o):null),N?c.createElement("div",{className:U(`${W}-actions`,Se.actions),style:ye.actions},N):null,c.createElement(gz,{className:Se.close,style:ye.close,isClosable:oe,prefixCls:W,closeIcon:Ce,handleClose:ce,ariaProps:Ie})))});function hz(e,t,o){return t=bs(t),ew(e,l0()?Reflect.construct(t,o||[],bs(e).constructor):t.apply(e,o))}let bz=(function(e){function t(){var o;return lc(this,t),o=hz(this,t,arguments),o.state={error:void 0,info:{}},o}return JE(t,e),cc(t,[{key:"componentDidCatch",value:function(r,s){this.setState({error:r,info:s})}},{key:"render",value:function(){const{message:r,title:s,description:l,id:d,children:f}=this.props,{error:p,info:m}=this.state,h=s??r,b=m?.componentStack||null,v=Kn(h)?h:p?.toString(),x=Kn(l)?l:b;return p?c.createElement(Mw,{id:d,type:"error",title:v,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},x)}):f}}])})(c.PureComponent);const Tw=Mw;Tw.ErrorBoundary=bz;const hr=e=>`${e}-css-var`,yz=c.createContext(void 0),vz={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},xz={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Sz={...xz,locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},Ow={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},WS={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Sz},timePickerLocale:{...Ow}},$o="${label} is not a valid ${type}",Oa={locale:"en",Pagination:vz,DatePicker:WS,TimePicker:Ow,Calendar:WS,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:$o,method:$o,array:$o,object:$o,number:$o,date:$o,boolean:$o,integer:$o,float:$o,regexp:$o,email:$o,url:$o,hex:$o},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Ad={...Oa.Modal},Id=[];const GS=()=>Id.reduce((e,t)=>({...e,...t}),Oa.Modal);function Cz(e){if(e){const t={...e};return Id.push(t),Ad=GS(),()=>{Id=Id.filter(o=>o!==t),Ad=GS()}}Ad={...Oa.Modal}}function $z(){return Ad}const p0=c.createContext(void 0),za=(e,t)=>{const o=c.useContext(p0),r=c.useMemo(()=>{const l=t||Oa[e],d=o?.[e]??{};return{...fn(l)?l():l,...d||{}}},[e,t,o]),s=c.useMemo(()=>{const l=o?.locale;return o?.exist&&!l?Oa.locale:l},[o]);return[r,s]},Ez="internalMark",wz=e=>{const{locale:t={},children:o,_ANT_MARK__:r}=e;c.useEffect(()=>Cz(t?.Modal),[t]);const s=c.useMemo(()=>({...t,exist:!0}),[t]);return c.createElement(p0.Provider,{value:s},o)},zw=c.createContext(null);let Nz=!1;function Rz(e){return Nz}const XS=[];function Mz(e,t){const[o]=c.useState(()=>To()?document.createElement("div"):null),r=c.useRef(!1),s=c.useContext(zw),[l,d]=c.useState(XS),f=s||(r.current?void 0:h=>{d(b=>[h,...b])});function p(){o.parentElement||document.body.appendChild(o),r.current=!0}function m(){o.parentElement?.removeChild(o),r.current=!1}return dn(()=>(e?s?s(p):p():m(),m),[e]),dn(()=>{l.length&&(l.forEach(h=>h()),d(XS))},[l]),[o,f]}function Tz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Oz=`rc-util-locker-${Date.now()}`;let kS=0;function zz(e){const t=!!e,[o]=c.useState(()=>(kS+=1,`${Oz}_${kS}`));dn(()=>{if(t){const r=XT(document.body).width,s=Tz();ai(`
131
+ html body {
132
+ overflow-y: hidden;
133
+ ${s?`width: calc(100% - ${r}px);`:""}
134
+ }`,o)}else Gl(o);return()=>{Gl(o)}},[t,o])}let ni=[];const Az=200;let Aw=0;const Iw=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Aw<Az)return;const o=ni.length;for(let r=o-1;r>=0;r-=1)ni[r].onEsc({top:r===o-1,event:e})}},Bw=()=>{Aw=Date.now()};function Iz(){window.addEventListener("keydown",Iw),window.addEventListener("compositionend",Bw)}function Bz(){ni.length===0&&(window.removeEventListener("keydown",Iw),window.removeEventListener("compositionend",Bw))}function _z(e,t){const o=Wr(),r=ut(t),s=()=>{ni.find(d=>d.id===o)||ni.push({id:o,onEsc:r})},l=()=>{ni=ni.filter(d=>d.id!==o)};c.useMemo(()=>{e?s():e||l()},[e]),c.useEffect(()=>{if(e)return s(),Iz(),()=>{l(),Bz()}},[e])}const YS=e=>e===!1?!1:!To()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,dc=c.forwardRef((e,t)=>{const{open:o,autoLock:r,getContainer:s,debug:l,autoDestroy:d=!0,children:f,onEsc:p}=e,[m,h]=c.useState(o),b=m||o;c.useEffect(()=>{(d||o)&&h(o)},[o,d]);const[v,x]=c.useState(()=>YS(s));c.useEffect(()=>{const T=YS(s);x(()=>T??null)});const[S,C]=Mz(b&&!v),R=v??S;zz(r&&o&&To()&&(R===S||R===document.body)),_z(o,p);let w=null;f&&Es(f)&&t&&(w=pi(f));const N=Gr(w,t);if(!b||!To()||v===void 0)return null;const $=R===!1||Rz();let E=f;return t&&(E=c.cloneElement(f,{ref:N})),c.createElement(zw.Provider,{value:C},$?E:di.createPortal(E,R))});function Pz(e){const{prefixCls:t,align:o,arrow:r,arrowPos:s}=e,{className:l,content:d,style:f}=r||{},{x:p=0,y:m=0}=s,h=c.useRef(null);if(!o||!o.points)return null;const b={position:"absolute"};if(o.autoArrow!==!1){const v=o.points[0],x=o.points[1],S=v[0],C=v[1],R=x[0],w=x[1];S===R||!["t","b"].includes(S)?b.top=m:S==="t"?b.top=0:b.bottom=0,C===w||!["l","r"].includes(C)?b.left=p:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:h,className:U(`${t}-arrow`,l),style:{...b,...f}},d)}function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ch.apply(this,arguments)}function jz(e){const{prefixCls:t,open:o,zIndex:r,mask:s,motion:l,mobile:d}=e;return s?c.createElement(to,Ch({},l,{motionAppear:!0,visible:o,removeOnLeave:!0}),({className:f})=>c.createElement("div",{style:{zIndex:r},className:U(`${t}-mask`,d&&`${t}-mobile-mask`,f)})):null}const Hz=c.memo(({children:e})=>e,(e,t)=>t.cache);function _w(e,t,o,r,s,l,d,f){const p="auto",m=e?{}:{left:"-1000vw",top:"-1000vh",right:p,bottom:p};if(!e&&(t||!o)){const{points:h}=r,b=r.dynamicInset||r._experimental?.dynamicInset,v=b&&h[0][1]==="r",x=b&&h[0][0]==="b";v?(m.right=s,m.left=p):(m.left=d,m.right=p),x?(m.bottom=l,m.top=p):(m.top=f,m.bottom=p)}return m}function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},$h.apply(this,arguments)}const Pw=c.forwardRef((e,t)=>{const{onEsc:o,popup:r,className:s,prefixCls:l,style:d,target:f,onVisibleChanged:p,open:m,keepDom:h,fresh:b,onClick:v,mask:x,arrow:S,arrowPos:C,align:R,motion:w,maskMotion:N,mobile:$,forceRender:E,getPopupContainer:T,autoDestroy:z,portal:A,children:I,zIndex:j,onMouseEnter:L,onMouseLeave:B,onPointerEnter:H,onPointerDownCapture:q,ready:Q,offsetX:F,offsetY:D,offsetR:G,offsetB:X,onAlign:ee,onPrepare:Z,onResize:_,stretch:V,targetWidth:Y,targetHeight:W}=e,K=typeof r=="function"?r():r,te=m||h,k=!!$,[se,ce,ae]=c.useMemo(()=>$?[$.mask,$.maskMotion,$.motion]:[x,N,w],[$,x,N,w]),pe=T?.length>0,[oe,fe]=c.useState(!T||!pe);dn(()=>{!oe&&pe&&f&&fe(!0)},[oe,pe,f]);const he=ut((Se,ye)=>{_?.(Se,ye),ee()}),be=_w(k,Q,m,R,G,X,F,D);if(!oe)return null;const Ee={};return V&&(V.includes("height")&&W?Ee.height=W:V.includes("minHeight")&&W&&(Ee.minHeight=W),V.includes("width")&&Y?Ee.width=Y:V.includes("minWidth")&&Y&&(Ee.minWidth=Y)),m||(Ee.pointerEvents="none"),c.createElement(A,{open:E||te,getContainer:T&&(()=>T(f)),autoDestroy:z,onEsc:o},c.createElement(jz,{prefixCls:l,open:m,zIndex:j,mask:se,motion:ce,mobile:k}),c.createElement(mr,{onResize:he,disabled:!m},Se=>c.createElement(to,$h({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:`${l}-hidden`},ae,{onAppearPrepare:Z,onEnterPrepare:Z,visible:m,onVisibleChanged:ye=>{w?.onVisibleChanged?.(ye),p(ye)}}),({className:ye,style:Ne},Oe)=>{const Ce=U(l,ye,s,{[`${l}-mobile`]:k});return c.createElement("div",{ref:no(Se,t,Oe),className:Ce,style:{"--arrow-x":`${C.x||0}px`,"--arrow-y":`${C.y||0}px`,...be,...Ee,...Ne,boxSizing:"border-box",zIndex:j,...d},onMouseEnter:L,onMouseLeave:B,onPointerEnter:H,onClick:v,onPointerDownCapture:q},S&&c.createElement(Pz,{prefixCls:l,arrow:S,arrowPos:C,align:R}),c.createElement(Hz,{cache:!m&&!b},K))})),I)}),Fd=c.createContext(null),jw=c.createContext(null);function KS(e){return e?Array.isArray(e)?e:[e]:[]}function Dz(e,t,o){return c.useMemo(()=>{const r=KS(t??e),s=KS(o??e),l=new Set(r),d=new Set(s);return l.has("hover")&&!l.has("click")&&l.add("touch"),d.has("hover")&&!d.has("click")&&d.add("touch"),[l,d]},[e,t,o])}function Lz(e=[],t=[],o){const r=(s,l)=>s[l]||"";return o?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function Hw(e,t,o,r){const{points:s}=o,l=Object.keys(e);for(let d=0;d<l.length;d+=1){const f=l[d];if(Lz(e[f]?.points,s,r))return`${t}-placement-${f}`}return""}function fc(e){return e.ownerDocument.defaultView}function Eh(e){const t=[];let o=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;o;){const{overflowX:s,overflowY:l,overflow:d}=fc(o).getComputedStyle(o);[s,l,d].some(f=>r.includes(f))&&t.push(o),o=o.parentElement}return t}function Zl(e,t=1){return Number.isNaN(e)?t:e}function Tl(e){return Zl(parseFloat(e),0)}function QS(e,t){const o={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:s,overflowClipMargin:l,borderTopWidth:d,borderBottomWidth:f,borderLeftWidth:p,borderRightWidth:m}=fc(r).getComputedStyle(r),h=r.getBoundingClientRect(),{offsetHeight:b,clientHeight:v,offsetWidth:x,clientWidth:S}=r,C=Tl(d),R=Tl(f),w=Tl(p),N=Tl(m),$=Zl(Math.round(h.width/x*1e3)/1e3),E=Zl(Math.round(h.height/b*1e3)/1e3),T=(x-S-w-N)*$,z=(b-v-C-R)*E,A=C*E,I=R*E,j=w*$,L=N*$;let B=0,H=0;if(s==="clip"){const G=Tl(l);B=G*$,H=G*E}const q=h.x+j-B,Q=h.y+A-H,F=q+h.width+2*B-j-L-T,D=Q+h.height+2*H-A-I-z;o.left=Math.max(o.left,q),o.top=Math.max(o.top,Q),o.right=Math.min(o.right,F),o.bottom=Math.min(o.bottom,D)}),o}function ZS(e,t=0){const o=`${t}`,r=o.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(o)}function JS(e,t){const[o,r]=t||[];return[ZS(e.width,o),ZS(e.height,r)]}function eC(e=""){return[e[0],e[1]]}function Zi(e,t){const o=t[0],r=t[1];let s,l;return o==="t"?l=e.y:o==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?s=e.x:r==="r"?s=e.x+e.width:s=e.x+e.width/2,{x:s,y:l}}function Sa(e,t){const o={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=o[e[t]]||"c",r}function tC(e){return e.join("")}function Dw(e,t,o,r,s,l,d,f){const[p,m]=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:s[r]||{}}),h=c.useRef(0),b=c.useMemo(()=>!t||f?[]:Eh(t),[t]),v=c.useRef({});e||(v.current={});const S=ut(()=>{if(t&&o&&e&&!f){let nt=function(dt,Mn,wn=Ee){const Zn=F.x+dt,Tn=F.y+Mn,Ba=Zn+K,bi=Tn+W,Xr=Math.max(Zn,wn.left),Bs=Math.max(Tn,wn.top),kr=Math.min(Ba,wn.right),_s=Math.min(bi,wn.bottom);return Math.max(0,(kr-Xr)*(_s-Bs))},De=function(){we=F.y+Ge,ze=we+W,ve=F.x+Te,_e=ve+K};const w=t,N=w.ownerDocument,$=fc(w),{position:E}=$.getComputedStyle(w),T=w.style.left,z=w.style.top,A=w.style.right,I=w.style.bottom,j=w.style.overflow,L=w.style.overflowX,B=w.style.overflowY,H={...s[r],...l},q=N.createElement("div");w.parentElement?.appendChild(q),q.style.left=`${w.offsetLeft}px`,q.style.top=`${w.offsetTop}px`,q.style.position=E,q.style.height=`${w.offsetHeight}px`,q.style.width=`${w.offsetWidth}px`,w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";let Q;if(Array.isArray(o))Q={x:o[0],y:o[1],width:0,height:0};else{const dt=o.getBoundingClientRect();dt.x=dt.x??dt.left,dt.y=dt.y??dt.top,Q={x:dt.x,y:dt.y,width:dt.width,height:dt.height}}const F=w.getBoundingClientRect(),{height:D,width:G}=$.getComputedStyle(w);F.x=F.x??F.left,F.y=F.y??F.top;const{clientWidth:X,clientHeight:ee,scrollWidth:Z,scrollHeight:_,scrollTop:V,scrollLeft:Y}=N.documentElement,W=F.height,K=F.width,te=Q.height,k=Q.width,se={left:0,top:0,right:X,bottom:ee},ce={left:-Y,top:-V,right:Z-Y,bottom:_-V};let{htmlRegion:ae}=H;const pe="visible",oe="visibleFirst";ae!=="scroll"&&ae!==oe&&(ae=pe);const fe=ae===oe,he=QS(ce,b),be=QS(se,b),Ee=ae===pe?be:he,Se=fe?be:Ee;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";const ye=w.getBoundingClientRect();w.style.left=T,w.style.top=z,w.style.right=A,w.style.bottom=I,w.style.overflow=j,w.style.overflowX=L,w.style.overflowY=B,w.parentElement?.removeChild(q);const Ne=Zl(Math.round(K/parseFloat(G)*1e3)/1e3),Oe=Zl(Math.round(W/parseFloat(D)*1e3)/1e3);if(Ne===0||Oe===0||gs(o)&&!Zb(o))return;const{offset:Ce,targetOffset:Ie}=H;let[Me,je]=JS(F,Ce);const[et,ke]=JS(Q,Ie);Q.x-=et,Q.y-=ke;const[Le,Ve]=H.points||[],Ke=eC(Ve),qe=eC(Le),Ae=Zi(Q,Ke),Pe=Zi(F,qe),We={...H};let Be=[qe,Ke],Te=Ae.x-Pe.x+Me,Ge=Ae.y-Pe.y+je;const ot=nt(Te,Ge),yt=nt(Te,Ge,be),st=Zi(Q,["t","l"]),Bt=Zi(F,["t","l"]),_t=Zi(Q,["b","r"]),pt=Zi(F,["b","r"]),zt=H.overflow||{},{adjustX:wt,adjustY:Dt,shiftX:Qe,shiftY:At}=zt,He=dt=>typeof dt=="boolean"?dt:dt>=0;let we,ze,ve,_e;De();const Xe=He(Dt),lt=qe[0]===Ke[0];if(Xe&&qe[0]==="t"&&(ze>Se.bottom||v.current.bt)){let dt=Ge;lt?dt-=W-te:dt=st.y-pt.y-je;const Mn=nt(Te,dt),wn=nt(Te,dt,be);Mn>ot||Mn===ot&&(!fe||wn>=yt)?(v.current.bt=!0,Ge=dt,je=-je,Be=[Sa(Be[0],0),Sa(Be[1],0)]):v.current.bt=!1}if(Xe&&qe[0]==="b"&&(we<Se.top||v.current.tb)){let dt=Ge;lt?dt+=W-te:dt=_t.y-Bt.y-je;const Mn=nt(Te,dt),wn=nt(Te,dt,be);Mn>ot||Mn===ot&&(!fe||wn>=yt)?(v.current.tb=!0,Ge=dt,je=-je,Be=[Sa(Be[0],0),Sa(Be[1],0)]):v.current.tb=!1}const Jt=He(wt),$t=qe[1]===Ke[1];if(Jt&&qe[1]==="l"&&(_e>Se.right||v.current.rl)){let dt=Te;$t?dt-=K-k:dt=st.x-pt.x-Me;const Mn=nt(dt,Ge),wn=nt(dt,Ge,be);Mn>ot||Mn===ot&&(!fe||wn>=yt)?(v.current.rl=!0,Te=dt,Me=-Me,Be=[Sa(Be[0],1),Sa(Be[1],1)]):v.current.rl=!1}if(Jt&&qe[1]==="r"&&(ve<Se.left||v.current.lr)){let dt=Te;$t?dt+=K-k:dt=_t.x-Bt.x-Me;const Mn=nt(dt,Ge),wn=nt(dt,Ge,be);Mn>ot||Mn===ot&&(!fe||wn>=yt)?(v.current.lr=!0,Te=dt,Me=-Me,Be=[Sa(Be[0],1),Sa(Be[1],1)]):v.current.lr=!1}We.points=[tC(Be[0]),tC(Be[1])],De();const ct=Qe===!0?0:Qe;typeof ct=="number"&&(ve<be.left&&(Te-=ve-be.left-Me,Q.x+k<be.left+ct&&(Te+=Q.x-be.left+k-ct)),_e>be.right&&(Te-=_e-be.right-Me,Q.x>be.right-ct&&(Te+=Q.x-be.right+ct)));const Et=At===!0?0:At;typeof Et=="number"&&(we<be.top&&(Ge-=we-be.top-je,Q.y+te<be.top+Et&&(Ge+=Q.y-be.top+te-Et)),ze>be.bottom&&(Ge-=ze-be.bottom-je,Q.y>be.bottom-Et&&(Ge+=Q.y-be.bottom+Et)));const on=F.x+Te,at=on+K,mt=F.y+Ge,vt=mt+W,Fe=Q.x,rt=Fe+k,Pt=Q.y,en=Pt+te,xt=Math.max(on,Fe),Vt=Math.min(at,rt),jt=(xt+Vt)/2-on,oo=Math.max(mt,Pt),br=Math.min(vt,en),ro=(oo+br)/2-mt;d?.(t,We);let Yo=ye.right-F.x-(Te+F.width),Ao=ye.bottom-F.y-(Ge+F.height);Ne===1&&(Te=Math.floor(Te),Yo=Math.floor(Yo)),Oe===1&&(Ge=Math.floor(Ge),Ao=Math.floor(Ao));const Gn={ready:!0,offsetX:Te/Ne,offsetY:Ge/Oe,offsetR:Yo/Ne,offsetB:Ao/Oe,arrowX:jt/Ne,arrowY:ro/Oe,scaleX:Ne,scaleY:Oe,align:We};m(Gn)}}),C=()=>{h.current+=1;const w=h.current;Promise.resolve().then(()=>{h.current===w&&S()})},R=()=>{m(w=>({...w,ready:!1}))};return dn(R,[r]),dn(()=>{e||R()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,C]}function Lw(){const e=c.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},o=(r,s)=>{t(),s===0?r():e.current=setTimeout(()=>{r()},s*1e3)};return c.useEffect(()=>()=>{t()},[]),o}function Vz(e,t,o,r,s){dn(()=>{if(e&&t&&o){let b=function(){r(),s()};const l=t,d=o,f=Eh(l),p=Eh(d),m=fc(d),h=new Set([m,...f,...p]);return h.forEach(v=>{v.addEventListener("scroll",b,{passive:!0})}),m.addEventListener("resize",b,{passive:!0}),r(),()=>{h.forEach(v=>{v.removeEventListener("scroll",b),m.removeEventListener("resize",b)})}}},[e,t,o])}function Fz(e,t,o,r,s,l,d,f){const p=c.useRef(e);p.current=e;const m=c.useRef(!1);c.useEffect(()=>{if(t&&r&&(!s||l)){const b=()=>{m.current=!1},v=C=>{p.current&&!d(C.composedPath?.()?.[0]||C.target)&&!m.current&&f(!1)},x=fc(r);x.addEventListener("pointerdown",b,!0),x.addEventListener("mousedown",v,!0),x.addEventListener("contextmenu",v,!0);const S=Bg(o);return S&&(S.addEventListener("mousedown",v,!0),S.addEventListener("contextmenu",v,!0)),()=>{x.removeEventListener("pointerdown",b,!0),x.removeEventListener("mousedown",v,!0),x.removeEventListener("contextmenu",v,!0),S&&(S.removeEventListener("mousedown",v,!0),S.removeEventListener("contextmenu",v,!0))}}},[t,o,r,s,l]);function h(){m.current=!0}return h}function qz(){const[e,t]=le.useState(null),[o,r]=le.useState(!1),[s,l]=le.useState(!1),d=le.useRef(null),f=ut(m=>{m===!1?(d.current=null,r(!1)):s&&o?d.current=m:(r(!0),t(m),d.current=null,o||l(!0))}),p=ut(m=>{m?(l(!1),d.current&&(t(d.current),d.current=null)):(l(!1),d.current=null)});return[f,o,e,p]}function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wh.apply(this,arguments)}const Uz=e=>{const{prefixCls:t,isMobile:o,ready:r,open:s,align:l,offsetR:d,offsetB:f,offsetX:p,offsetY:m,arrowPos:h,popupSize:b,motion:v,uniqueContainerClassName:x,uniqueContainerStyle:S}=e,C=`${t}-unique-container`,[R,w]=le.useState(!1),N=_w(o,r,s,l,d,f,p,m),$=le.useRef(N);r&&($.current=N);const E={};return b&&(E.width=b.width,E.height=b.height),le.createElement(to,wh({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${C}-hidden`},v,{visible:s,onVisibleChanged:T=>{w(T)}}),({className:T,style:z})=>{const A=U(C,T,x,{[`${C}-visible`]:R});return le.createElement("div",{className:A,style:{"--arrow-x":`${h?.x||0}px`,"--arrow-y":`${h?.y||0}px`,...$.current,...E,...z,...S}})})},Wz=({children:e,postTriggerProps:t})=>{const[o,r,s,l]=qz(),d=c.useMemo(()=>!s||!t?s:t(s),[s,t]),[f,p]=c.useState(null),[m,h]=c.useState(null),b=c.useRef(null),v=ut(X=>{b.current=X,gs(X)&&f!==X&&p(X)}),x=c.useRef(null),S=Lw(),C=ut((X,ee)=>{x.current=ee,S(()=>{o(X)},X.delay)}),R=X=>{S(()=>{x.current?.()||o(!1)},X)},w=ut(X=>{l(X)}),[N,$,E,T,z,A,I,,,j,L]=Dw(r,f,d?.target,d?.popupPlacement,d?.builtinPlacements||{},d?.popupAlign,void 0,!1),B=c.useMemo(()=>{if(!d)return"";const X=Hw(d.builtinPlacements||{},d.prefixCls||"",j,!1);return U(X,d.getPopupClassNameFromAlign?.(j))},[j,d?.getPopupClassNameFromAlign,d?.builtinPlacements,d?.prefixCls]),H=c.useMemo(()=>({show:C,hide:R}),[]);c.useEffect(()=>{L()},[d?.target]);const q=ut(()=>(L(),Promise.resolve())),Q=c.useRef({}),F=c.useContext(Fd),D=c.useMemo(()=>({registerSubPopup:(X,ee)=>{Q.current[X]=ee,F?.registerSubPopup(X,ee)}}),[F]),G=d?.prefixCls;return c.createElement(jw.Provider,{value:H},e,d&&c.createElement(Fd.Provider,{value:D},c.createElement(Pw,{ref:v,portal:dc,onEsc:d.onEsc,prefixCls:G,popup:d.popup,className:U(d.popupClassName,B,`${G}-unique-controlled`),style:d.popupStyle,target:d.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:w,ready:N,offsetX:$,offsetY:E,offsetR:T,offsetB:z,onAlign:L,onPrepare:q,onResize:X=>h({width:X.offsetWidth,height:X.offsetHeight}),arrowPos:{x:A,y:I},align:j,zIndex:d.zIndex,mask:d.mask,arrow:d.arrow,motion:d.popupMotion,maskMotion:d.maskMotion,getPopupContainer:d.getPopupContainer},c.createElement(Uz,{prefixCls:G,isMobile:!1,ready:N,open:r,align:j,offsetR:T,offsetB:z,offsetX:$,offsetY:E,arrowPos:{x:A,y:I},popupSize:m,motion:d.popupMotion,uniqueContainerClassName:U(d.uniqueContainerClassName,B),uniqueContainerStyle:d.uniqueContainerStyle}))))};function Gz(e=dc){return c.forwardRef((o,r)=>{const{prefixCls:s="rc-trigger-popup",children:l,action:d="hover",showAction:f,hideAction:p,disabled:m=!1,popupVisible:h,defaultPopupVisible:b,onOpenChange:v,afterOpenChange:x,onPopupVisibleChange:S,afterPopupVisibleChange:C,mouseEnterDelay:R,mouseLeaveDelay:w=.1,focusDelay:N,blurDelay:$,mask:E,maskClosable:T=!0,getPopupContainer:z,forceRender:A,autoDestroy:I,popup:j,popupClassName:L,uniqueContainerClassName:B,uniqueContainerStyle:H,popupStyle:q,popupPlacement:Q,builtinPlacements:F={},popupAlign:D,zIndex:G,stretch:X,getPopupClassNameFromAlign:ee,fresh:Z,unique:_,alignPoint:V,onPopupClick:Y,onPopupAlign:W,arrow:K,popupMotion:te,maskMotion:k,mobile:se,...ce}=o,ae=I||!1,pe=h===void 0,oe=!!se,fe=c.useRef({}),he=c.useContext(Fd),be=c.useMemo(()=>({registerSubPopup:(Ue,Ht)=>{fe.current[Ue]=Ht,he?.registerSubPopup(Ue,Ht)}}),[he]),Ee=c.useContext(jw),Se=Wr(),[ye,Ne]=c.useState(null),Oe=c.useRef(null),Ce=ut(Ue=>{Oe.current=Ue,gs(Ue)&&ye!==Ue&&Ne(Ue),he?.registerSubPopup(Se,Ue)}),[Ie,Me]=c.useState(null),je=c.useRef(null),et=ut(Ue=>{const Ht=ui(Ue);gs(Ht)&&Ie!==Ht&&(Me(Ht),je.current=Ht)}),ke={},Le=ut(Ue=>{const Ht=Ie;return Ht?.contains(Ue)||Bg(Ht)?.host===Ue||Ue===Ht||ye?.contains(Ue)||Bg(ye)?.host===Ue||Ue===ye||Object.values(fe.current).some(Yr=>Yr?.contains(Ue)||Ue===Yr)}),Ve=K?{...K!==!0?K:{}}:null,[Ke,qe]=Ro(b||!1,h),Ae=Ke||!1,Pe=Ae&&!m,We=c.useMemo(()=>{const Ue=typeof l=="function"?l({open:Pe}):l;return c.Children.only(Ue)},[l,Pe]),Be=We?.props||{},Te=ut(()=>Pe),Ge=ut((Ue=0)=>({popup:j,target:Ie,delay:Ue,prefixCls:s,popupClassName:L,uniqueContainerClassName:B,uniqueContainerStyle:H,popupStyle:q,popupPlacement:Q,builtinPlacements:F,popupAlign:D,zIndex:G,mask:E,maskClosable:T,popupMotion:te,maskMotion:k,arrow:Ve,getPopupContainer:z,getPopupClassNameFromAlign:ee,id:Se,onEsc:Bt}));dn(()=>{Ee&&_&&Ie&&!pe&&!he&&(Pe?Ee.show(Ge(R),Te):Ee.hide(w))},[Pe,Ie]);const nt=c.useRef(Pe);nt.current=Pe;const ot=ut(Ue=>{di.flushSync(()=>{Ae!==Ue&&(qe(Ue),v?.(Ue),S?.(Ue))})}),yt=Lw(),st=(Ue,Ht=0)=>{if(h!==void 0){yt(()=>{ot(Ue)},Ht);return}if(Ee&&_&&pe&&!he){Ue?Ee.show(Ge(Ht),Te):Ee.hide(Ht);return}yt(()=>{ot(Ue)},Ht)};function Bt({top:Ue}){Ue&&st(!1)}const[_t,pt]=c.useState(!1);dn(Ue=>{(!Ue||Pe)&&pt(!0)},[Pe]);const[zt,wt]=c.useState(null),[Dt,Qe]=c.useState(null),At=Ue=>{Qe([Ue.clientX,Ue.clientY])},[He,we,ze,ve,_e,De,Xe,lt,Jt,$t,ct]=Dw(Pe,ye,V&&Dt!==null?Dt:Ie,Q,F,D,W,oe),[Et,on]=Dz(d,f,p),at=Et.has("click"),mt=on.has("click")||on.has("contextMenu"),vt=ut(()=>{_t||ct()});Vz(Pe,Ie,ye,vt,()=>{nt.current&&V&&mt&&st(!1)}),dn(()=>{vt()},[Dt,Q]),dn(()=>{Pe&&!F?.[Q]&&vt()},[JSON.stringify(D)]);const rt=c.useMemo(()=>{const Ue=Hw(F,s,$t,V);return U(Ue,ee?.($t))},[$t,ee,F,s,V]);c.useImperativeHandle(r,()=>({nativeElement:je.current,popupElement:Oe.current,forceAlign:vt}));const[Pt,en]=c.useState(0),[xt,Vt]=c.useState(0),gn=()=>{if(X&&Ie){const Ue=Ie.getBoundingClientRect();en(Ue.width),Vt(Ue.height)}},jt=()=>{gn(),vt()},oo=Ue=>{pt(!1),ct(),x?.(Ue),C?.(Ue)},br=()=>new Promise(Ue=>{gn(),wt(()=>Ue)});dn(()=>{zt&&(ct(),zt(),wt(null))},[zt]);function _n(Ue,Ht,Yr,Kr,Ps){ke[Ue]=(js,...Qr)=>{(!Ps||!Ps())&&(Kr?.(js),st(Ht,Yr)),Be[Ue]?.(js,...Qr)}}const ro=Et.has("touch"),Yo=on.has("touch"),Ao=c.useRef(!1);(ro||Yo)&&(ke.onTouchStart=(...Ue)=>{Ao.current=!0,nt.current&&Yo?st(!1):!nt.current&&ro&&st(!0),Be.onTouchStart?.(...Ue)}),(at||mt)&&(ke.onClick=(Ue,...Ht)=>{nt.current&&mt?st(!1):!nt.current&&at&&(At(Ue),st(!0)),Be.onClick?.(Ue,...Ht),Ao.current=!1});const Gn=Fz(Pe,mt||Yo,Ie,ye,E,T,Le,st),dt=Et.has("hover"),Mn=on.has("hover");let wn,Zn;const Tn=()=>Ao.current;if(dt){const Ue=Ht=>{At(Ht)};_n("onMouseEnter",!0,R,Ue,Tn),_n("onPointerEnter",!0,R,Ue,Tn),wn=Ht=>{(Pe||_t)&&ye?.contains(Ht.target)&&st(!0,R)},V&&(ke.onMouseMove=Ht=>{Be.onMouseMove?.(Ht)})}Mn&&(_n("onMouseLeave",!1,w,void 0,Tn),_n("onPointerLeave",!1,w,void 0,Tn),Zn=()=>{st(!1,w)}),Et.has("focus")&&_n("onFocus",!0,N),on.has("focus")&&_n("onBlur",!1,$),Et.has("contextMenu")&&(ke.onContextMenu=(Ue,...Ht)=>{nt.current&&on.has("contextMenu")?st(!1):(At(Ue),st(!0)),Ue.preventDefault(),Be.onContextMenu?.(Ue,...Ht)});const Ba=c.useRef(!1);Ba.current||=A||Pe||_t;const bi={...Be,...ke},Xr={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Ue=>{ce[Ue]&&(Xr[Ue]=(...Ht)=>{bi[Ue]?.(...Ht),ce[Ue](...Ht)})});const kr={x:De,y:Xe};_E(Pe,Ie,jt);const _s=Gr(et,pi(We)),ao=c.cloneElement(We,{...bi,...Xr,ref:_s});return c.createElement(c.Fragment,null,ao,Ba.current&&(!Ee||!_)&&c.createElement(Fd.Provider,{value:be},c.createElement(Pw,{portal:e,ref:Ce,prefixCls:s,popup:j,className:U(L,!oe&&rt),style:q,target:Ie,onMouseEnter:wn,onMouseLeave:Zn,onPointerEnter:wn,zIndex:G,open:Pe,keepDom:_t,fresh:Z,onClick:Y,onPointerDownCapture:Gn,mask:E,motion:te,maskMotion:k,onVisibleChanged:oo,onPrepare:br,forceRender:A,autoDestroy:ae,getPopupContainer:z,onEsc:Bt,align:$t,arrow:Ve,arrowPos:kr,ready:He,offsetX:we,offsetY:ze,offsetR:ve,offsetB:_e,onAlign:vt,stretch:X,targetWidth:Pt/lt,targetHeight:xt/Jt,mobile:se})))})}const pf=Gz(dc);function Vw(e){return e&&le.isValidElement(e)&&e.type===le.Fragment}const Xz=(e,t,o)=>le.isValidElement(e)?le.cloneElement(e,fn(o)?o(e.props||{}):o):t;function Xo(e,t){return Xz(e,e,t)}const kz=({children:e})=>{const{getPrefixCls:t}=le.useContext(bt),o=t();return le.isValidElement(e)?le.createElement(to,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:s})=>Xo(e,l=>({className:U(l.className,s),style:{...l.style,...r}}))):e},Uu=[null,null];function Yz(e){if(Uu[0]!==e){const t={};Object.keys(e).forEach(o=>{t[o]={...e[o],dynamicInset:!1}}),Uu[0]=e,Uu[1]=t}return Uu[1]}const Fw=({children:e})=>{const t=o=>{const{id:r,builtinPlacements:s,popup:l}=o,d=fn(l)?l():l,f=Yz(s);return{...o,getPopupContainer:null,arrow:!1,popup:le.createElement(kz,{key:r},d),builtinPlacements:f}};return le.createElement(Wz,{postTriggerProps:t},e)},Vr=c.createContext(!1),qw=({children:e,disabled:t})=>{const o=c.useContext(Vr);return c.createElement(Vr.Provider,{value:t??o},e)},vs=c.createContext(void 0),Kz=({children:e,size:t})=>{const o=c.useContext(vs);return c.createElement(vs.Provider,{value:t||o},e)};function Qz(){const e=c.useContext(Vr),t=c.useContext(vs);return{componentDisabled:e,componentSize:t}}function Zz(e,t,o){const r=e||{},s=r.inherit===!1||!t?{...sh,hashed:t?.hashed??sh.hashed,cssVar:t?.cssVar}:t,l=c.useId();return ic(()=>{if(!e)return t;const d={...s.components};Object.keys(e.components||{}).forEach(m=>{d[m]={...d[m],...e.components[m]}});const f=`css-var-${l.replace(/:/g,"")}`,p={prefix:o?.prefixCls,...s.cssVar,...r.cssVar,key:r.cssVar?.key||f};return{...s,...r,token:{...s.token,...r.token},components:d,cssVar:p}},[r,s,o?.prefixCls,l],(d,f)=>d.some((p,m)=>{const h=f[m];return!Xl(p,h,!0)}))}const nC=c.createContext(!0);function Jz(e){const t=c.useContext(nC),{children:o}=e,[,r]=ko(),{motion:s}=r,l=c.useRef(!1);return l.current||(l.current=t!==s),l.current?c.createElement(nC.Provider,{value:s},c.createElement(q4,{motion:s},o)):o}const e3=()=>null,t3=({iconPrefixCls:e,csp:t})=>(c4(e,t),null),n3=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],o3=e=>{const{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:s}=e},r3=e=>{const{children:t,csp:o,autoInsertSpaceInButton:r,alert:s,affix:l,anchor:d,app:f,form:p,locale:m,componentSize:h,direction:b,space:v,splitter:x,virtual:S,dropdownMatchSelectWidth:C,popupMatchSelectWidth:R,popupOverflow:w,legacyLocale:N,parentContext:$,iconPrefixCls:E,theme:T,componentDisabled:z,segmented:A,statistic:I,spin:j,calendar:L,carousel:B,cascader:H,collapse:q,typography:Q,checkbox:F,descriptions:D,divider:G,drawer:X,skeleton:ee,steps:Z,image:_,layout:V,list:Y,mentions:W,modal:K,progress:te,result:k,slider:se,breadcrumb:ce,masonry:ae,menu:pe,pagination:oe,input:fe,inputPassword:he,inputSearch:be,textArea:Ee,otp:Se,empty:ye,badge:Ne,borderBeam:Oe,radio:Ce,rate:Ie,ribbon:Me,switch:je,transfer:et,avatar:ke,message:Le,tag:Ve,table:Ke,card:qe,cardMeta:Ae,tabs:Pe,timeline:We,timePicker:Be,upload:Te,notification:Ge,tree:nt,colorPicker:ot,datePicker:yt,rangePicker:st,flex:Bt,wave:_t,dropdown:pt,warning:zt,tour:wt,tooltip:Dt,popover:Qe,popconfirm:At,qrcode:He,floatButton:we,floatButtonGroup:ze,variant:ve,inputNumber:_e,treeSelect:De,watermark:Xe}=e,lt=c.useMemo(()=>Ut(m)&&Object.prototype.hasOwnProperty.call(m,"default")&&m.default?.locale?m.default:m,[m]),Jt=c.useCallback((xt,Vt)=>{const{prefixCls:gn}=e;if(Vt)return Vt;const jt=gn||$.getPrefixCls("");return xt?`${jt}-${xt}`:jt},[$.getPrefixCls,e.prefixCls]),$t=E||$.iconPrefixCls||n0,ct=o||$.csp,Et=Zz(T,$.theme,{prefixCls:Jt("")}),on={csp:ct,autoInsertSpaceInButton:r,alert:s,affix:l,anchor:d,app:f,locale:lt||N,direction:b,space:v,splitter:x,virtual:S,popupMatchSelectWidth:R??C,popupOverflow:w,getPrefixCls:Jt,iconPrefixCls:$t,theme:Et,segmented:A,statistic:I,spin:j,calendar:L,carousel:B,cascader:H,collapse:q,typography:Q,checkbox:F,descriptions:D,divider:G,drawer:X,skeleton:ee,steps:Z,image:_,input:fe,inputPassword:he,inputSearch:be,textArea:Ee,otp:Se,layout:V,list:Y,mentions:W,modal:K,progress:te,result:k,slider:se,breadcrumb:ce,masonry:ae,menu:pe,pagination:oe,empty:ye,badge:Ne,borderBeam:Oe,radio:Ce,rate:Ie,ribbon:Me,switch:je,transfer:et,avatar:ke,message:Le,tag:Ve,table:Ke,card:qe,cardMeta:Ae,tabs:Pe,timeline:We,timePicker:Be,upload:Te,notification:Ge,tree:nt,colorPicker:ot,datePicker:yt,rangePicker:st,flex:Bt,wave:_t,dropdown:pt,warning:zt,tour:wt,tooltip:Dt,popover:Qe,popconfirm:At,qrcode:He,floatButton:we,floatButtonGroup:ze,variant:ve,inputNumber:_e,treeSelect:De,watermark:Xe},at={...$};Object.keys(on).forEach(xt=>{on[xt]!==void 0&&(at[xt]=on[xt])}),n3.forEach(xt=>{const Vt=e[xt];Vt&&(at[xt]=Vt)}),typeof r<"u"&&(at.button={autoInsertSpace:r,...at.button});const mt=ic(()=>at,at,(xt,Vt)=>{const gn=Object.keys(xt),jt=Object.keys(Vt);return gn.length!==jt.length||gn.some(oo=>xt[oo]!==Vt[oo])}),{layer:vt}=c.useContext(sc),Fe=c.useMemo(()=>({prefixCls:$t,csp:ct,layer:vt?"antd":void 0,zeroRuntime:!!vt||Et?.zeroRuntime}),[$t,ct,vt,Et?.zeroRuntime]);let rt=c.createElement(c.Fragment,null,c.createElement(t3,{iconPrefixCls:$t,csp:ct}),c.createElement(e3,{dropdownMatchSelectWidth:C}),t);const Pt=c.useMemo(()=>ls(Oa.Form?.defaultValidateMessages||{},mt.locale?.Form?.defaultValidateMessages||{},mt.form?.validateMessages||{},p?.validateMessages||{}),[mt,p?.validateMessages]);Object.keys(Pt).length>0&&(rt=c.createElement(yz.Provider,{value:Pt},rt)),lt&&(rt=c.createElement(wz,{locale:lt,_ANT_MARK__:Ez},rt)),rt=c.createElement(u0.Provider,{value:Fe},rt),h&&(rt=c.createElement(Kz,{size:h},rt)),rt=c.createElement(Jz,null,rt),Dt?.unique&&(rt=c.createElement(Fw,null,rt));const en=c.useMemo(()=>{const{algorithm:xt,token:Vt,components:gn,cssVar:jt,...oo}=Et||{},br=xt&&(!Array.isArray(xt)||xt.length>0)?Lg(xt):sw,_n={};Object.entries(gn||{}).forEach(([Yo,Ao])=>{const Gn={...Ao};"algorithm"in Gn&&(Gn.algorithm===!0?Gn.theme=br:(Array.isArray(Gn.algorithm)||fn(Gn.algorithm))&&(Gn.theme=Lg(Gn.algorithm)),delete Gn.algorithm),_n[Yo]=Gn});const ro={...Ql,...Vt};return{...oo,theme:br,token:ro,components:_n,override:{override:ro,..._n},cssVar:jt}},[Et]);return T&&(rt=c.createElement(lw.Provider,{value:en},rt)),mt.warning&&(rt=c.createElement(yO.Provider,{value:mt.warning},rt)),z!==void 0&&(rt=c.createElement(qw,{disabled:z},rt)),c.createElement(bt.Provider,{value:mt},rt)},Aa=e=>{const t=c.useContext(bt),o=c.useContext(p0);return c.createElement(r3,{parentContext:t,legacyLocale:o,...e})};Aa.ConfigContext=bt;Aa.SizeContext=vs;Aa.config=o3;Aa.useConfig=Qz;Object.defineProperty(Aa,"SizeContext",{get:()=>vs});function a3(){const[e,t]=c.useState({}),o=c.useCallback((r,s)=>{if(!s){t(d=>{if(!(r in d))return d;const f={...d};return delete f[r],f});return}const l={width:s.offsetWidth,height:s.offsetHeight};t(d=>{const f=d[r];return f&&f.width===l.width&&f.height===l.height?d:{...d,[r]:l}})},[]);return[e,o]}function i3(e,t,o=0){const[r,s]=a3(),[l,d,f,p]=c.useMemo(()=>{let m=0,h=0;const b=t?.threshold??0,v=new Map;let x,S;return e.slice().reverse().forEach((C,R)=>{const w=String(C.key),N=r[w]?.height??0,$=t&&R>0?m+(t.offset??0)-N:m;v.set(w,$),R===0&&(x=N,S=r[w]?.width??0),(!t||R<b)&&(h=Math.max(h,$+N)),t?m=$+N:m+=N+o}),[v,h,x,S]},[e,o,r,t]);return[l,s,d,f,p]}const oC=8,rC=3,s3=e=>{const t={offset:oC,threshold:rC};return e&&typeof e=="object"&&(t.offset=e.offset??oC,t.threshold=e.threshold??rC),[!!e,t]};function l3(e,t,o){const s=Math.max(typeof e=="number"?e:0,0)*1e3,l=ut(t),d=ut(o),[f,p]=c.useState(s>0),m=c.useRef(0),h=c.useRef(null);function b(){const S=Date.now(),C=h.current;C!==null&&(m.current+=S-C),h.current=S}const v=c.useCallback(()=>{b(),p(!1)},[]),x=c.useCallback(()=>{s>0?(h.current=Date.now(),p(!0)):d(0)},[s]);return c.useEffect(()=>{m.current=0,p(s>0)},[s]),c.useEffect(()=>{if(!f)return;let S=null;function C(){b(),m.current>=s?(d(1),l()):(d(Math.min(m.current/s,1)),S=Lt(C))}return C(),()=>{Lt.cancel(S)}},[s,f]),[x,v]}function c3(e){const t=c.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),o=c.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),r=c.useMemo(()=>Qn(o,!0),[o]);return[!!e,o,r]}const u3=({className:e,style:t,percent:o})=>c.createElement("progress",{className:e,max:"100",value:o,style:t});function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},qd.apply(this,arguments)}const d3=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:s,classNames:l,styles:d,components:f,title:p,description:m,icon:h,actions:b,role:v,closable:x,offset:S,notificationIndex:C,stackInThreshold:R,props:w,duration:N=4.5,showProgress:$,hovering:E,pauseOnHover:T=!0,onClick:z,onMouseEnter:A,onMouseLeave:I,onClose:j}=e,[L,B]=c.useState(0),H=`${o}-notice`,[q,Q,F]=c3(x),D=ut(()=>{Q.onClose?.(),j?.()}),[G,X]=c.useState(!1),[ee,Z]=l3(N,D,B),_=100-Math.min(Math.max(L*100,0),100),V=f?.progress||u3;c.useEffect(()=>{T&&(E?Z():G||ee())},[E,G,Z,ee,T]);function Y(ye){X(!0),T&&Z(),A?.(ye)}function W(ye){X(!1),T&&!E&&ee(),I?.(ye)}function K(ye){ye.preventDefault(),ye.stopPropagation(),D()}const te=c.useRef(S);S!==void 0&&(te.current=S);const k=c.useRef(C);C!==void 0&&(k.current=C);const se=S??te.current,ce=C??k.current??0,ae=p!=null?c.createElement("div",{className:U(`${H}-title`,l?.title),style:d?.title},p):null,pe=m!=null?c.createElement("div",{className:U(`${H}-description`,l?.description),style:d?.description},m):null,oe=ae!==null,fe=pe!==null;let he=null;oe&&fe?he=c.createElement("div",{className:U(`${H}-section`,l?.section),style:d?.section},ae,pe):he=ae||pe,h!=null&&(he=c.createElement("div",{className:U(`${H}-wrapper`,l?.wrapper),style:d?.wrapper},c.createElement("div",{className:U(`${H}-icon`,l?.icon),style:d?.icon},h),he));const be=b?c.createElement("div",{className:U(`${H}-actions`,l?.actions),style:d?.actions},b):null,Ee={"--notification-index":ce,...d?.root,...s};se!==void 0&&(Ee["--notification-y"]=`${se}px`);const Se=v??w?.role??"alert";return c.createElement("div",qd({},w,{ref:t,role:Se,"data-notification-index":ce,className:U(H,r,l?.root,{[`${H}-closable`]:q,[`${H}-stack-in-threshold`]:R}),style:Ee,onClick:z,onMouseEnter:Y,onMouseLeave:W}),he,be,q&&c.createElement("button",qd({className:U(`${H}-close`,l?.close),"aria-label":"Close"},F,{style:d?.close,onClick:K}),Q.closeIcon),$&&typeof N=="number"&&N>0&&c.createElement(V,{className:U(`${H}-progress`,l?.progress),percent:_,style:d?.progress}))}),Uw=c.createContext({}),Ww=({children:e,classNames:t})=>{const o=c.useMemo(()=>({classNames:t}),[t]);return c.createElement(Uw.Provider,{value:o},e)};function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Nh.apply(this,arguments)}const f3=c.forwardRef((e,t)=>{const{listPrefixCls:o,height:r,topNoticeHeight:s=0,topNoticeWidth:l=0,className:d,style:f,...p}=e,m=`${o}-content`,h=c.useRef(r),b=h.current,v=r<b?"decrease":"increase";h.current=r;const x={...f,height:r,"--top-notificiation-height":`${s}px`,"--top-notificiation-width":`${l}px`};return c.createElement("div",Nh({},p,{className:U(m,`${m}-${v}`,d),style:x,ref:t}))});function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ud.apply(this,arguments)}const Gw=["wrapper","root","icon","section","title","description","actions","close","progress"];function m3(e){return Gw.reduce((t,o)=>(t[o]=U(...e.map(r=>r?.[o])),t),{})}function p3(e){return Gw.reduce((t,o)=>(t[o]=Object.assign({},...e.map(r=>r?.[o])),t),{})}function g3(e,t){const o=String(t),r=e.findIndex(s=>s.key===o);if(r!==-1)return e.length-r-1}const h3=e=>{const{config:t,components:o,contextClassNames:r,classNames:s,styles:l,className:d,style:f,nodeRef:p,listHovering:m,stackEnabled:h,pauseOnHover:b,setNodeSize:v,onNoticeClose:x,...S}=e,{key:C,placement:R,...w}=t,N=String(C),$=c.useCallback(T=>{v(N,T)},[v,N]),E=Gr(p,$);return c.createElement(d3,Ud({},w,S,{ref:E,className:U(r?.notice,t.className,d),style:{...f,...t.style},classNames:m3([s,t.classNames]),styles:p3([l,t.styles]),components:{...o,...t.components},hovering:h&&m,pauseOnHover:t.pauseOnHover??b,onClose:()=>{t.onClose?.(),x?.(C)}}))},b3=e=>{const{configList:t=[],prefixCls:o="rc-notification",pauseOnHover:r,classNames:s,styles:l,components:d,stack:f,motion:p,placement:m,className:h,style:b,onNoticeClose:v,onAllRemoved:x}=e,{classNames:S}=c.useContext(Uw),C=c.useMemo(()=>t.map(X=>({config:X,key:String(X.key)})),[t]),R=typeof p=="function"?p(m):p,[w,{offset:N,threshold:$}]=s3(f),[E,T]=c.useState(!1),z=w&&(E||C.length<=$),A=c.useMemo(()=>{if(!(!w||z))return{offset:N,threshold:$}},[z,N,w,$]),[I,j]=c.useState(0),L=c.useRef(null),[B,H,q,Q,F]=i3(t,A,I),D=!!t.length;c.useEffect(()=>{const X=L.current;if(!X)return;const{gap:ee,rowGap:Z}=window.getComputedStyle(X),_=parseFloat(Z||ee)||0;j(V=>V===_?V:_)},[D]);const G=`${o}-list`;return c.createElement("div",{className:U(o,G,`${o}-${m}`,S?.list,h,s?.list,{[`${o}-stack`]:w,[`${o}-stack-expanded`]:z,[`${G}-hovered`]:E}),onMouseEnter:()=>{T(!0)},onMouseLeave:()=>{T(!1)},style:{...l?.list,...b}},c.createElement(f3,{listPrefixCls:G,height:q,topNoticeHeight:Q,topNoticeWidth:F,className:s?.listContent,style:l?.listContent,ref:L},c.createElement(az,Ud({component:!1,keys:C,motionAppear:!0},R,{onAllRemoved:()=>{m&&x?.(m)}}),({config:X,className:ee,style:Z},_)=>{const{key:V}=X,Y=String(V),W=g3(C,V),K=w&&W!==void 0&&W<$;return c.createElement(h3,{key:V,config:X,components:d,contextClassNames:S,classNames:s,styles:l,className:ee,style:Z,nodeRef:_,prefixCls:o,offset:B.get(Y),notificationIndex:W,stackInThreshold:K,listHovering:E,stackEnabled:w,pauseOnHover:r,setNodeSize:H,onNoticeClose:v})})))},y3=c.forwardRef((e,t)=>{const{prefixCls:o="rc-notification",container:r,motion:s,maxCount:l,pauseOnHover:d,classNames:f,styles:p,components:m,className:h,style:b,onAllRemoved:v,stack:x,renderNotifications:S}=e,[C,R]=c.useState([]),[w,N]=c.useState({}),$=c.useRef(!1);c.useImperativeHandle(t,()=>({open:z=>{R(A=>{let I=[...A];const j=I.findIndex(B=>B.key===z.key),L={...z};return j>=0?(L.times=(A[j]?.times??0)+1,I[j]=L):(L.times=0,I.push(L)),l&&l>0&&I.length>l&&(I=I.slice(-l)),I})},close:z=>{R(A=>A.filter(I=>I.key!==z))},destroy:()=>{R([])}})),c.useEffect(()=>{const z={};C.forEach(A=>{const I=A.placement??"topRight";z[I]=z[I]||[],z[I].push(A)}),Object.keys(w).forEach(A=>{z[A]=z[A]||[]}),N(z)},[C]);const E=ut(z=>{N(A=>{const I={...A};return(I[z]||[]).length||delete I[z],I})});if(c.useEffect(()=>{Object.keys(w).length>0?$.current=!0:$.current&&(v?.(),$.current=!1)},[w,v]),!r)return null;const T=Object.keys(w);return di.createPortal(c.createElement(c.Fragment,null,T.map(z=>{const A=c.createElement(b3,{key:z,configList:w[z],placement:z,prefixCls:o,pauseOnHover:d,classNames:f,styles:p,components:m,className:h?.(z),style:b?.(z),motion:s,stack:x,onNoticeClose:I=>{R(j=>j.filter(L=>L.key!==I))},onAllRemoved:E});return S?c.cloneElement(S(A,{prefixCls:o,key:z}),{key:z}):A})),r)}),v3=()=>document.body;let aC=0;function x3(...e){const t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{const s=o[r];s!==void 0&&(t[r]=s)})}),t}function Xw(e={}){const{getContainer:t=v3,motion:o,prefixCls:r,placement:s,closable:l,duration:d,showProgress:f,pauseOnHover:p,classNames:m,styles:h,components:b,maxCount:v,className:x,style:S,onAllRemoved:C,stack:R,renderNotifications:w}=e,N={placement:s,closable:l,duration:d,showProgress:f},[$,E]=c.useState(),T=c.useRef(null),[z,A]=c.useState([]),I=c.createElement(y3,{container:$,ref:T,prefixCls:r,motion:o,maxCount:v,pauseOnHover:p,classNames:m,styles:h,components:b,className:x,style:S,onAllRemoved:C,stack:R,renderNotifications:w}),j=ut(B=>{const H=x3(N,B);(H.key===null||H.key===void 0)&&(H.key=`rc-notification-${aC}`,aC+=1),A(q=>[...q,{type:"open",config:H}])}),L=c.useMemo(()=>({open:j,close:B=>{A(H=>[...H,{type:"close",key:B}])},destroy:()=>{A(B=>[...B,{type:"destroy"}])}}),[]);return c.useEffect(()=>{E(t())}),c.useEffect(()=>{T.current&&z.length&&(z.forEach(B=>{switch(B.type){case"open":T.current?.open(B.config);break;case"close":T.current?.close(B.key);break;case"destroy":T.current?.destroy();break}}),A(B=>{const H=B.filter(q=>!z.includes(q));return H.length===B.length?B:H}))},[z]),[L,I]}const kw=(e,t)=>c.useMemo(()=>{const o=e??t;return o?{...Ut(t)?t:{},...Ut(o)?o:{}}:!1},[e,t]);function Yw(e,t){return{...Kn(e)&&{"--notification-top":re(e)},...Kn(t)&&{"--notification-bottom":re(t)}}}function S3(e){return{motionName:`${e}-fade`}}function C3(e,t,o){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:o?.closeIcon}var Wu={},iC;function $3(){if(iC)return Wu;iC=1,Object.defineProperty(Wu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return Wu.default=e,Wu}var E3=$3();const w3=Wt(E3);function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Rh.apply(this,arguments)}const N3=(e,t)=>c.createElement(Zt,Rh({},e,{ref:t,icon:w3})),gf=c.forwardRef(N3);function Uo(...e){return e.find(t=>t!==void 0)}const Kw=e=>{const{allowClear:t,clearIcon:o,contextAllowClear:r,contextClearIcon:s,defaultAllowClear:l,componentName:d}=e;return c.useMemo(()=>t??r??l?{clearIcon:Uo(Ut(t)?t?.clearIcon:o,Ut(r)?r?.clearIcon:s,le.createElement(gi,null)),disabled:(Ut(t)?t?.disabled:void 0)??(Ut(r)?r?.disabled:void 0)}:!1,[t,o,r,s,l])},xs=e=>{if(!e)return;const{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},Qw={},sC=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Kn(e)&&!Kn(t))return null;let o={closeIcon:typeof t!="boolean"&&Kn(t)?t:void 0};return Ut(e)&&(o={...o,...e}),o},R3=(e,t,o)=>e===!1?!1:e?eS(o,t,e):t===!1?!1:t?eS(o,t):o.closable?o:!1,M3=(e,t,o)=>{const{closeIconRender:r}=t,{closeIcon:s,...l}=e;let d=s;const f=Qn(l,!0);return Kn(d)&&(r&&(d=r(d)),d=le.isValidElement(d)?le.cloneElement(d,{"aria-label":o,...d.props,...f}):le.createElement("span",{"aria-label":o,...f},d)),[d,f]},Zw=(e,t,o=Qw,r="Close")=>{const s=sC(e?.closable,e?.closeIcon),l=sC(t?.closable,t?.closeIcon),d={closeIcon:le.createElement(gr,null),...o},f=R3(s,l,d),p=typeof f!="boolean"?!!f?.disabled:!1;if(f===!1)return[!1,null,p,{}];const[m,h]=M3(f,d,r);return[!0,m,p,h]},Jw=(e,t,o=Qw)=>{const[r]=za("global",Oa.global);return le.useMemo(()=>Zw(e,t,{closeIcon:le.createElement(gr,null),...o},r.close),[e,t,o,r.close])},T3=()=>le.useReducer(e=>e+1,0),Mh=(e,t)=>{let o={};return Ut(e)&&(o=e),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},e2=(e,t,o,r)=>c.useMemo(()=>{const s=Mh(e,r),l=Mh(t),d={blur:!1,...l,...s,closable:s.closable??r??l.closable??!0},f=d.blur?`${o}-mask-blur`:void 0;return[d.enabled!==!1,{mask:f},!!d.closable]},[e,t,o,r]),lC=e=>e==="horizontal"||e==="vertical",t2=(e,t,o)=>c.useMemo(()=>{const r=lC(e);let s;return r?s=e:typeof t=="boolean"?s=t?"vertical":"horizontal":s=lC(o)?o:"horizontal",[s,s==="vertical"]},[o,e,t]),O3=()=>{const[e,t]=c.useState([]),o=c.useCallback(r=>(t(s=>[].concat(go(s),[r])),()=>{t(s=>s.filter(l=>l!==r))}),[]);return[e,o]},hf=le.createContext(void 0),$a=100,z3=10,g0=$a*z3,n2={Modal:$a,Drawer:$a,Popover:$a,Popconfirm:$a,Tooltip:$a,Tour:$a,FloatButton:$a},A3={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},I3=e=>e in n2,mc=(e,t)=>{const[,o]=ko(),r=le.useContext(hf),s=I3(e);let l;if(t!==void 0)l=[t,t];else{let d=r??0;s?d+=(r?0:o.zIndexPopupBase)+n2[e]:d+=A3[e],l=[r===void 0?t:d,d]}return l},B3=e=>{const{motionDurationMid:t,motionEaseInOut:o}=e,r=`${t} ${o}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(s=>`${s} ${r}`).join(", ")}},o2=(e,t)=>{const{componentCls:o,antCls:r,colorSuccess:s,colorInfo:l,colorWarning:d,colorError:f,colorTextHeading:p,colorText:m,boxShadow:h,borderRadiusLG:b,fontSize:v,lineHeight:x,notificationBg:S,notificationPadding:C,notificationMarginEdge:R,margin:w,calc:N}=e,$=`${o}-notice`,[E,T]=Yt(r,"notification");return{[$]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${re(N(R).mul(2).equal())})`,padding:C,pointerEvents:"auto",[E("icon-font-size")]:t.iconFontSize,[E("title-font-size")]:t.titleFontSize,[E("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:m,background:S,borderRadius:b,boxShadow:h,fontSize:v,lineHeight:x,wordWrap:"break-word",overflow:"visible",...B3(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:N(w).mul(-1).equal(),height:w,content:'""'},...t.typeStyle&&{"&-success":{background:T("color-success-bg",S)},"&-error":{background:T("color-error-bg",S)},"&-info":{background:T("color-info-bg",S)},"&-warning":{background:T("color-warning-bg",S)}}},[`${$}-wrapper`]:{display:"flex",...t.contentStyle},[`${$}-title`]:{color:p,fontSize:T("title-font-size"),lineHeight:T("title-line-height")},[`${$}-icon`]:{flex:"none",fontSize:T("icon-font-size"),lineHeight:1,[`&${$}-icon-success`]:{color:s},[`&${$}-icon-info, &${$}-icon-loading`]:{color:l},[`&${$}-icon-warning`]:{color:d},[`&${$}-icon-error`]:{color:f}}}},r2=e=>{const{componentCls:t,progressBg:o,notificationProgressHeight:r,fontSize:s,borderRadiusLG:l,width:d,notificationIconSize:f,colorText:p,motionDurationMid:m,fontSizeLG:h,lineHeightLG:b,marginSM:v,marginXS:x,paddingLG:S,notificationPaddingVertical:C,notificationPaddingHorizontal:R,notificationCloseButtonSize:w,colorIcon:N,borderRadiusSM:$,colorIconHover:E,colorBgTextHover:T,colorBgTextActive:z}=e,A=`${t}-notice`;return{...o2(e,{width:d,iconFontSize:f,titleFontSize:h,titleLineHeight:b,contentStyle:{alignItems:"flex-start",gap:v},typeStyle:!0}),[`${A}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:x,minWidth:0},[`${A}-description`]:{color:p,fontSize:s},[`${A}-closable`]:{[`${A}-title, ${A}-description`]:{paddingInlineEnd:S},[`${A}-title + ${A}-description`]:{paddingInlineEnd:0}},[`${A}-close`]:{position:"absolute",top:C,insetInlineEnd:R,display:"flex",alignItems:"center",justifyContent:"center",width:w,height:w,color:N,background:"none",border:"none",borderRadius:$,outline:"none",transition:["color","background-color"].map(I=>`${I} ${m}`).join(", "),"&:hover":{color:E,backgroundColor:T},"&:active":{backgroundColor:z},...Lr(e)},[`${A}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${re(l)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:l},right:{_skip_check_:!0,value:l},"&, &::-webkit-progress-bar":{borderRadius:l,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:o},"&::-webkit-progress-value":{borderRadius:l,background:o}},[`${A}-actions`]:{float:"right",marginTop:v}}},_3=e=>{const{componentCls:t,width:o}=e,r=`${t}-notice`,s=`${r}-actions`,l=r2(e);return{[`${r}-pure-panel`]:{width:o,maxWidth:"100%",...l,[r]:{...l[r],position:"relative",width:"100%",maxWidth:"100%"},[s]:{...l[s],float:"none",textAlign:"end"}}}},P3=e=>{const{componentCls:t}=e;return{[t]:r2(e)}},j3=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],H3="--notification-margin-edge",D3=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),cC=e=>{const t=e?.x??"0",o=e?.y??"0";return`translate3d(${t}, ${o}, 0) scale(var(--notification-scale, 1))`},L3=(e,t)=>{const o=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:s,inlineEnd:l}=D3(o,r),d=e==="top"||e==="bottom",f=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:o,blockEnd:s,horizontal:r,inlineEnd:l,motionOffset:d?{x:"-50%",y:f}:{x:f},baseMotionOffset:d?{x:"-50%"}:void 0,isCenterPlacement:d}},V3=e=>e==="bottom"?"column-reverse":"column",F3=e=>{const t=`var(${H3}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},q3=e=>e==="bottom"?"center top":"center bottom",a2=e=>re(e.calc(e.marginXXL).mul(-1).equal()),U3=e=>{const t=a2(e);return`inset(${t} ${t} ${t} ${t})`},W3=(e,t)=>{const o=a2(e);return t==="bottom"?`inset(${o} ${o} 50% ${o})`:`inset(50% ${o} ${o} ${o})`},G3=(e,t)=>{const{componentCls:o}=e,{placement:r,vertical:s,blockEnd:l,horizontal:d,inlineEnd:f,isCenterPlacement:p}=t,m=`${o}-notice`,h=`${m}${o}-fade`,b=cC(t.motionOffset),v=cC(t.baseMotionOffset),x=q3(s);return{[`&${o}-${r}`]:{[s]:F3(s),[l]:"auto",display:"flex",flexDirection:V3(s),...p?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[d]:0,[f]:"auto"},[m]:{[s]:"var(--notification-y, 0)",...p?{left:"50%",transform:v}:{[d]:"var(--notification-x, 0)"},transformOrigin:x},[`${h}-appear-prepare, ${h}-enter-prepare`]:{opacity:0,transform:b,transition:"none"},[`${h}-appear-start, ${h}-enter-start`]:{opacity:0,transform:b},[`${h}-appear-active, ${h}-enter-active`]:{opacity:1,transform:v},[`${h}-leave-start`]:{opacity:1,transform:v},[`${h}-leave-active`]:{opacity:0,transform:b},[`&${o}-stack:not(${o}-stack-expanded)`]:{[m]:{clipPath:W3(e,s)},[`${m}[data-notification-index='0']`]:{clipPath:U3(e)}}}}},X3=(e,t=j3)=>{const{notificationMotionOffset:o}=e,r=re(o);return{...t.reduce((s,l)=>({...s,...G3(e,L3(l,r))}),{})}},k3=e=>{const{componentCls:t}=e;return{[t]:X3(e)}},Y3=3,i2=e=>({zIndexPopup:e.zIndexPopupBase+g0+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),h0=e=>{const t=e.paddingMD,o=e.paddingLG;return kt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},K3=e=>`inset(${e} ${e} ${e} ${e})`,Q3=e=>{const{componentCls:t,motionDurationMid:o,motionDurationSlow:r,motionEaseInOut:s}=e,d=`${`${t}-list`}-content`;return{[d]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${d}-decrease`]:{transition:`height calc(${r} * 2) ${s} ${o}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},Z3=(e,t)=>{const{componentCls:o,notificationMarginEdge:r}=e,s="--notification-margin-edge",l=`${o}-notice`,d=`${o}-list`,f=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",p=t.stackVisibleCount??Y3,m=`${l}:nth-last-child(n + ${p+1})`,h=re(e.calc(e.marginXXL).mul(-1).equal()),b=K3(h);return{[o]:{...Vn(e),[s]:re(r),position:"fixed",zIndex:e.zIndexPopup,width:f,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${o}-hook-holder`]:{position:"relative"},[`&${d}`]:{maxHeight:"100vh",padding:`var(${s})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...Q3(e),[`&${o}-stack`]:{[l]:{clipPath:b},[`&:not(${o}-stack-expanded)`]:{[l]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${l}:not(${l}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[m]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${l}-actions`]:{float:"left"}}}}};df(["Notification","PurePanel"],e=>_3(h0(e)),i2);const s2=(e,t)=>{const o=t.itemStyle??P3;return[Z3(e,t),o(e),k3(e)]},J3=Qt("Notification",e=>{const t=h0(e);return s2(t,{listWidthKey:"width"})},i2),l2=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),o=e.paddingSM;return kt(h0(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:o})},c2=e=>({zIndexPopup:e.zIndexPopupBase+g0+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),b0=e=>{const{fontSize:t,fontSizeLG:o,lineHeight:r}=e;return o2(e,{width:"max-content",iconFontSize:o,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},e5=e=>{const{componentCls:t}=e,o=`${t}-notice`,r=`${t}-list-content`,s=b0(e),{"&::after":l,...d}=s[o],f={...d,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":{...f,top:`calc(var(--top-notificiation-height) - ${re(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${re(e.margin)})`},"&::after":{...f,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${re(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},t5=e=>{const{componentCls:t}=e,o=`${t}-notice`,r=b0(e);return{[`${o}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[o]:{...r[o],position:"relative",width:"max-content",maxWidth:"100%"}}}};df(["Message","PurePanel"],e=>t5(l2(e)),c2);const n5=e=>({[e.componentCls]:b0(e)}),o5=Qt("Message",e=>{const t=l2(e);return[s2(t,{stackVisibleCount:1,itemStyle:n5}),e5(t)]},c2),r5={info:c.createElement(mf,null),success:c.createElement(uc,null),error:c.createElement(gi,null),warning:c.createElement(ff,null),loading:c.createElement(gf,null)},a5=(e,t)=>t||e&&r5[e]||null;function i5(e,t){return{motionName:t??`${e}-fade`}}function s5(e){let t;const o=new Promise(s=>{t=e(()=>{s(!0)})}),r=()=>{t?.()};return r.then=(s,l)=>o.then(s,l),r.promise=o,r}const l5=8,c5=3,u5=!1,d5=({children:e,prefixCls:t})=>{const o=hr(t),[r,s]=o5(t,o);return c.createElement(Ww,{classNames:{list:U(r,s,o)}},e)},f5=(e,{prefixCls:t,key:o})=>c.createElement(d5,{prefixCls:t,key:o},e),m5=c.forwardRef((e,t)=>{const{top:o,prefixCls:r,getContainer:s,maxCount:l,duration:d=c5,rtl:f,classNames:p,styles:m,transitionName:h,pauseOnHover:b=!0,stack:v,onAllRemoved:x}=e,{getPrefixCls:S,direction:C,getPopupContainer:R}=Kt("message"),{message:w}=c.useContext(bt),N=r||S("message"),[$,E]=mn([w?.classNames,p],[w?.styles,m],{props:e}),T=()=>Yw(o??l5),z=()=>U({[`${N}-rtl`]:f??C==="rtl"}),A=()=>i5(N,h),I=kw(v,u5),[j,L]=Xw({prefixCls:N,style:T,className:z,motion:A,closable:!1,duration:d,getContainer:()=>s?.()||R?.()||document.body,maxCount:l,onAllRemoved:x,classNames:$,styles:E,renderNotifications:f5,pauseOnHover:b,stack:I});return c.useImperativeHandle(t,()=>({...j,prefixCls:N,message:w})),L});let uC=0;function p5(e){const t=c.useRef(null);return[c.useMemo(()=>{const r=p=>{t.current?.close(p)},s=p=>{if(!t.current){const F=()=>{};return F.then=()=>{},F}const{open:m,prefixCls:h,message:b}=t.current,v=b?.className||{},x=b?.style||{},S=`${h}-notice`,{content:C,icon:R,type:w,key:N,className:$,style:E,onClose:T,classNames:z={},styles:A={},...I}=p;let j=N;Kn(j)||(uC+=1,j=`antd-message-${uC}`);const L={...e,...p},B=ys(z,{props:L}),H=ys(A,{props:L}),q=a5(w,R),Q=w?`${S}-icon-${w}`:void 0;return s5(F=>(m({...I,key:j,icon:q,title:C,classNames:{...B,wrapper:U(w&&`${h}-${w}`,B?.wrapper),icon:U(Q,B?.icon)},styles:H,placement:"top",className:U({[`${S}-${w}`]:w},$,v),style:{...x,...E},onClose:()=>{T?.(),F()}}),()=>{r(j)}))},d={open:s,destroy:p=>{p!==void 0?r(p):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(p=>{const m=(h,b,v)=>{let x;Ut(h)&&"content"in h?x=h:x={content:h};let S,C;fn(b)?C=b:(S=b,C=v);const R={onClose:C,duration:S,...x,type:p};return s(R)};d[p]=m}),d},[]),c.createElement(m5,{key:"message-holder",...e,ref:t})]}function g5(e){return p5(e)}const ng=()=>({height:0,opacity:0}),dC=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),h5=e=>({height:e?.offsetHeight??0}),og=(e,t)=>t?.deadline===!0||Nw(t)&&t.propertyName==="height",b5=(e=Ld)=>({motionName:`${e}-motion-collapse`,onAppearStart:ng,onEnterStart:ng,onAppearActive:dC,onEnterActive:dC,onLeaveStart:h5,onLeaveActive:ng,onAppearEnd:og,onEnterEnd:og,onLeaveEnd:og,motionDeadline:500}),Fr=(e,t,o)=>o!==void 0?o:`${e}-${t}`,y5=e=>{const{componentCls:t,colorPrimary:o,motionDurationSlow:r,motionEaseInOut:s,motionEaseOutCirc:l,antCls:d}=e,[,f]=Yt(d,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:f("color",o),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(p=>`${p} ${l}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(p=>`${p} ${r} ${s}`).join(",")}}}}},v5=l4("Wave",y5),y0=`${Ld}-wave-target`,fC=e=>e?Ra(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function x5(e,t=null){const o=getComputedStyle(e),{borderTopColor:r,borderColor:s,backgroundColor:l}=o;return t&&fC(o[t])?o[t]:[r,s,l].find(fC)??null}function rg(e){return Number.isNaN(e)?0:e}const S5=e=>{const{className:t,target:o,component:r,colorSource:s}=e,l=c.useRef(null),{getPrefixCls:d}=c.useContext(bt),f=d(),[p]=Yt(f,"wave"),[m,h]=c.useState(null),[b,v]=c.useState([]),[x,S]=c.useState(0),[C,R]=c.useState(0),[w,N]=c.useState(0),[$,E]=c.useState(0),[T,z]=c.useState(!1),A={left:x,top:C,width:w,height:$,borderRadius:b.map(L=>`${L}px`).join(" ")};m&&(A[p("color")]=m);function I(){const L=getComputedStyle(o);h(x5(o,s));const B=L.position==="static",{borderLeftWidth:H,borderTopWidth:q}=L;S(B?o.offsetLeft:rg(-Number.parseFloat(H))),R(B?o.offsetTop:rg(-Number.parseFloat(q))),N(o.offsetWidth),E(o.offsetHeight);const{borderTopLeftRadius:Q,borderTopRightRadius:F,borderBottomLeftRadius:D,borderBottomRightRadius:G}=L;v([Q,F,G,D].map(X=>rg(Number.parseFloat(X))))}if(c.useEffect(()=>{if(o){const L=Lt(()=>{I(),z(!0)});let B;return typeof ResizeObserver<"u"&&(B=new ResizeObserver(I),B.observe(o)),()=>{Lt.cancel(L),B?.disconnect()}}},[o]),!T)return null;const j=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(y0);return c.createElement(to,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(L,B)=>{if(B.deadline||Nw(B)&&B.propertyName==="opacity"){const H=l.current?.parentElement;bO(H).then(()=>{H?.remove()})}return!1}},({className:L},B)=>c.createElement("div",{ref:no(l,B),className:U(t,L,{"wave-quick":j}),style:A}))},C5=(e,t)=>{const{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),hO(c.createElement(S5,{...t,target:e}),r)},$5=(e,t,o,r)=>{const{wave:s}=c.useContext(bt),[,l,d]=ko(),f=ut(h=>{const b=e.current;if(s?.disabled||!b)return;const v=b.querySelector(`.${y0}`)||b,{showEffect:x}=s||{};(x||C5)(v,{className:t,token:l,component:o,event:h,hashId:d,colorSource:r})}),p=c.useRef(null);return c.useEffect(()=>()=>{Lt.cancel(p.current)},[]),h=>{Lt.cancel(p.current),p.current=Lt(()=>{f(h)})}},mC={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},u2=e=>{const{children:t,disabled:o,component:r,colorSource:s}=e,{getPrefixCls:l,wave:d}=c.useContext(bt),f=c.useRef(null),p=l("wave"),m=v5(p),h=$5(f,U(p,m),r,s);if(le.useEffect(()=>{const v=f.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||o)return;const x=R=>{!Zb(R.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||h(R)},S=d?.triggerType,C=S&&S in mC?mC[S]:"click";return v.addEventListener(C,x,!0),()=>{v.removeEventListener(C,x,!0)}},[o,d?.triggerType]),!le.isValidElement(t))return t??null;const b=Es(t)?no(pi(t),f):f;return Xo(t,{ref:b})},zo=e=>{const t=le.useContext(vs);return le.useMemo(()=>e?Ra(e)?e??t:fn(e)?e(t):t:t,[e,t])},E5=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},w5=Qt(["Space","Compact"],E5,()=>({}),{resetStyle:!1}),bf=c.createContext(null),Rs=(e,t)=>{const o=c.useContext(bf),r=c.useMemo(()=>{if(!o)return"";const{compactDirection:s,isFirstItem:l,isLastItem:d}=o,f=s==="vertical"?"-vertical-":"-";return U(`${e}-compact${f}item`,{[`${e}-compact${f}first-item`]:l,[`${e}-compact${f}last-item`]:d,[`${e}-compact${f}item-rtl`]:t==="rtl"})},[e,t,o]);return{compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},N5=e=>{const{children:t}=e;return c.createElement(bf.Provider,{value:null},t)},R5=e=>{const{children:t,...o}=e;return c.createElement(bf.Provider,{value:c.useMemo(()=>o,[o])},t)},d2=e=>{const{getPrefixCls:t,direction:o}=c.useContext(bt),{size:r,direction:s,orientation:l,block:d,prefixCls:f,className:p,rootClassName:m,children:h,vertical:b,...v}=e,[x,S]=t2(l,b,s),C=zo(z=>r??z),R=t("space-compact",f),[w]=w5(R),N=U(R,w,{[`${R}-rtl`]:o==="rtl",[`${R}-block`]:d,[`${R}-vertical`]:S},p,m),$=c.useContext(bf),E=Oo(h),T=c.useMemo(()=>E.map((z,A)=>{const I=z?.key||`${R}-item-${A}`;return c.createElement(R5,{key:I,compactSize:C,compactDirection:x,isFirstItem:A===0&&(!$||$?.isFirstItem),isLastItem:A===E.length-1&&(!$||$?.isLastItem)},z)}),[E,$,x,C,R]);return E.length===0?null:c.createElement("div",{className:N,...v},T)},f2=c.createContext(void 0),M5=e=>{const{getPrefixCls:t,direction:o}=c.useContext(bt),{prefixCls:r,size:s,className:l,...d}=e,f=t("btn-group",r),[,,p]=ko(),m=c.useMemo(()=>{switch(s){case"large":return"lg";case"small":return"sm";default:return""}},[s]),h=U(f,{[`${f}-${m}`]:m,[`${f}-rtl`]:o==="rtl"},l,p);return c.createElement(f2.Provider,{value:s},c.createElement("div",{...d,className:h}))},pC=/^[\u4E00-\u9FA5]{2}$/,Th=pC.test.bind(pC);function m2(e){return e==="danger"?{danger:!0}:{type:e}}function ag(e){return e==="text"||e==="link"}function T5(e,t,o,r){if(!pr(e))return;const s=t?" ":"";return!Ra(e)&&!Wo(e)&&Ra(e.type)&&Th(e.props.children)?Xo(e,l=>{const d=U(l.className,r)||void 0,f={...o,...l.style};return{...l,children:l.children.split("").join(s),className:d,style:f}}):Ra(e)?le.createElement("span",{className:r,style:o},Th(e)?e.split("").join(s):e):Vw(e)?le.createElement("span",{className:r,style:o},e):Xo(e,l=>({...l,className:U(l.className,r)||void 0,style:{...l.style,...o}}))}function O5(e,t,o,r){let s=!1;const l=[];return le.Children.forEach(e,d=>{const f=Ra(d)||Wo(d);if(s&&f){const p=l.length-1,m=l[p];l[p]=`${m}${d}`}else l.push(d);s=f}),le.Children.map(l,d=>T5(d,t,o,r))}["default","primary","danger"].concat(go(Ta));const p2=c.forwardRef((e,t)=>{const{className:o,style:r,children:s,prefixCls:l}=e,d=U(`${l}-icon`,o);return le.createElement("span",{ref:t,className:d,style:r},s)}),gC=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:s,iconClassName:l}=e,d=U(`${o}-loading-icon`,r);return le.createElement(p2,{prefixCls:o,className:d,style:s,ref:t},le.createElement(gf,{className:l}))}),ig=()=>({width:0,opacity:0,transform:"scale(0)"}),sg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),z5=e=>{const{prefixCls:t,loading:o,existIcon:r,className:s,style:l,mount:d}=e,f=!!o;return r?le.createElement(gC,{prefixCls:t,className:s,style:l}):le.createElement(to,{visible:f,motionName:`${t}-loading-icon-motion`,motionAppear:!d,motionEnter:!d,motionLeave:!d,removeOnLeave:!0,onAppearStart:ig,onAppearActive:sg,onEnterStart:ig,onEnterActive:sg,onLeaveStart:sg,onLeaveActive:ig},({className:p,style:m},h)=>{const b={...l,...m};return le.createElement(gC,{prefixCls:t,className:U(s,p),style:b,ref:h})})},A5=e=>{const{componentCls:t,antCls:o,motionDurationMid:r,motionEaseInOut:s}=e;return{[t]:{[`${o}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(l=>`${l} ${r} ${s}`).join(", ")} !important`}},[`${o}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(l=>`${l} ${r} ${s}`).join(", ")} !important`}}}},hC=e=>({animationDuration:e,animationFillMode:"both"}),yf=(e,t,o,r,s=!1)=>{const l=s?"&":"";return{[`
135
+ ${l}${e}-enter,
136
+ ${l}${e}-appear
137
+ `]:{...hC(r),animationPlayState:"paused"},[`${l}${e}-leave`]:{...hC(r),animationPlayState:"paused"},[`
138
+ ${l}${e}-enter${e}-enter-active,
139
+ ${l}${e}-appear${e}-appear-active
140
+ `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}},I5=new Ct("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),B5=new Ct("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),g2=(e,t=!1)=>{const{antCls:o}=e,r=`${o}-fade`,s=t?"&":"";return[yf(r,I5,B5,e.motionDurationMid,t),{[`
141
+ ${s}${r}-enter,
142
+ ${s}${r}-appear
143
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${r}-leave`]:{animationTimingFunction:"linear"}}]},_5=new Ct("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P5=new Ct("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),j5=new Ct("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),H5=new Ct("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),D5=new Ct("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L5=new Ct("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),V5=new Ct("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),F5=new Ct("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),q5={"move-up":{inKeyframes:V5,outKeyframes:F5},"move-down":{inKeyframes:_5,outKeyframes:P5},"move-left":{inKeyframes:j5,outKeyframes:H5},"move-right":{inKeyframes:D5,outKeyframes:L5}},bC=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:s,outKeyframes:l}=q5[t];return[yf(r,s,l,e.motionDurationMid),{[`
144
+ ${r}-enter,
145
+ ${r}-appear
146
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},v0=new Ct("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),x0=new Ct("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),S0=new Ct("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),C0=new Ct("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),U5=new Ct("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),W5=new Ct("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),G5=new Ct("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),X5=new Ct("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),k5={"slide-up":{inKeyframes:v0,outKeyframes:x0},"slide-down":{inKeyframes:S0,outKeyframes:C0},"slide-left":{inKeyframes:U5,outKeyframes:W5},"slide-right":{inKeyframes:G5,outKeyframes:X5}},Ss=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:s,outKeyframes:l}=k5[t];return[yf(r,s,l,e.motionDurationMid),{[`
147
+ ${r}-enter,
148
+ ${r}-appear
149
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Y5=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),K5=new Ct("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Q5=new Ct("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),yC=new Ct("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vC=new Ct("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Z5=new Ct("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),J5=new Ct("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),eA=new Ct("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),tA=new Ct("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),nA=new Ct("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oA=new Ct("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),rA=new Ct("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),aA=new Ct("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),iA={zoom:{inKeyframes:K5,outKeyframes:Q5},"zoom-big":{inKeyframes:yC,outKeyframes:vC},"zoom-big-fast":{inKeyframes:yC,outKeyframes:vC},"zoom-left":{inKeyframes:eA,outKeyframes:tA},"zoom-right":{inKeyframes:nA,outKeyframes:oA},"zoom-up":{inKeyframes:Z5,outKeyframes:J5},"zoom-down":{inKeyframes:rA,outKeyframes:aA}},$0=(e,t)=>{const{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:s,outKeyframes:l}=iA[t];return[yf(r,s,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
150
+ ${r}-enter,
151
+ ${r}-appear
152
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),sA=e=>{const{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:s,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},xC(`${t}-primary`,s),xC(`${t}-danger`,l)]}},lg=e=>Math.round(Number(e||0)),lA=e=>{if(e instanceof En)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...o}=e;return{...o,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Jl extends En{constructor(t){super(lA(t))}toHsbString(){const t=this.toHsb(),o=lg(t.s*100),r=lg(t.b*100),s=lg(t.h),l=t.a,d=`hsb(${s}, ${o}%, ${r}%)`,f=`hsba(${s}, ${o}%, ${r}%, ${l.toFixed(l===0?0:2)})`;return l===1?d:f}toHsb(){const{v:t,...o}=this.toHsv();return{...o,b:t,a:this.a}}}const cA=e=>e instanceof Jl?e:new Jl(e);cA("#1677ff");const uA=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",dA=(e,t)=>e?uA(e,t):"";let Oh=(function(){function e(t){if(lc(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:s})=>({color:new e(r),percent:s})),this.metaColor=new Jl(this.colors[0].color.metaColor)):this.metaColor=new Jl(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return cc(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return dA(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(s=>`${s.color.toRgbString()} ${s.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((r,s)=>{const l=o.colors[s];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===o.toHexString()}}])})();var Gu={},SC;function fA(){if(SC)return Gu;SC=1,Object.defineProperty(Gu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};return Gu.default=e,Gu}var mA=fA();const pA=Wt(mA);function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},zh.apply(this,arguments)}const gA=(e,t)=>c.createElement(Zt,zh({},e,{ref:t,icon:pA})),CC=c.forwardRef(gA);function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fr.apply(null,arguments)}const hA=e=>e instanceof Oh?e:new Oh(e),bA=(e,t)=>{const{r:o,g:r,b:s,a:l}=e.toRgb(),d=new Jl(e.toRgbString()).onBackground(t).toHsv();return l<=.5?d.v>.5:o*.299+r*.587+s*.114>192},h2=e=>{const{paddingInline:t,onlyIconSize:o,borderColorDisabled:r}=e;return kt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o,colorBorderDisabled:r})},b2=e=>{const t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,s=e.contentLineHeight??zd(t),l=e.contentLineHeightSM??zd(o),d=e.contentLineHeightLG??zd(r),f=bA(new Oh(e.colorBgSolid),"#fff")?"#000":"#fff",p=Ta.reduce((b,v)=>({...b,[`${v}ShadowColor`]:`0 ${re(e.controlOutlineWidth)} 0 ${_l(e[`${v}1`],e.colorBgContainer)}`}),{}),m=e.colorBgContainerDisabled,h=e.colorBgContainerDisabled;return{...p,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:s,contentLineHeightSM:l,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-t*s)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*l)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*d)/2-e.lineWidth,0),defaultBgDisabled:m,dashedBgDisabled:h}},yA=e=>{const{componentCls:t,antCls:o,lineWidth:r,lineType:s}=e,[l,d]=Yt(o,"btn");return{[t]:[{[l("border-width")]:r,[l("border-color")]:"#000",[l("border-color-hover")]:d("border-color"),[l("border-color-active")]:d("border-color"),[l("border-color-disabled")]:d("border-color"),[l("border-style")]:s,[l("text-color")]:"#000",[l("text-color-hover")]:d("text-color"),[l("text-color-active")]:d("text-color"),[l("text-color-disabled")]:d("text-color"),[l("bg-color")]:"#ddd",[l("bg-color-hover")]:d("bg-color"),[l("bg-color-active")]:d("bg-color"),[l("bg-color-disabled")]:e.colorBgContainerDisabled,[l("bg-color-container")]:e.colorBgContainer,[l("shadow")]:"none"},{border:[d("border-width"),d("border-style"),d("border-color")].join(" "),color:d("text-color"),backgroundColor:d("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[d("border-width"),d("border-style"),d("border-color-hover")].join(" "),color:d("text-color-hover"),backgroundColor:d("bg-color-hover")},"&:active":{border:[d("border-width"),d("border-style"),d("border-color-active")].join(" "),color:d("text-color-active"),backgroundColor:d("bg-color-active")}}},{[`&${t}-variant-solid`]:{[l("solid-bg-color")]:d("color-base"),[l("solid-bg-color-hover")]:d("color-hover"),[l("solid-bg-color-active")]:d("color-active"),[l("border-color")]:"transparent",[l("text-color")]:e.colorTextLightSolid,[l("bg-color")]:d("solid-bg-color"),[l("bg-color-hover")]:d("solid-bg-color-hover"),[l("bg-color-active")]:d("solid-bg-color-active"),boxShadow:d("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("border-color")]:d("color-base"),[l("border-color-hover")]:d("color-hover"),[l("border-color-active")]:d("color-active"),[l("bg-color")]:d("bg-color-container"),[l("text-color")]:d("color-base"),[l("text-color-hover")]:d("color-hover"),[l("text-color-active")]:d("color-active"),boxShadow:d("shadow")},[`&${t}-variant-dashed`]:{[l("border-style")]:"dashed",[l("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[l("border-color")]:"transparent",[l("text-color")]:d("color-base"),[l("bg-color")]:d("color-light"),[l("bg-color-hover")]:d("color-light-hover"),[l("bg-color-active")]:d("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[l("border-color")]:"transparent",[l("text-color")]:d("color-base"),[l("text-color-hover")]:d("color-hover"),[l("text-color-active")]:d("color-active"),[l("bg-color")]:"transparent",[l("bg-color-hover")]:"transparent",[l("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[l("bg-color-hover")]:d("color-light"),[l("bg-color-active")]:d("color-light-active")}},{[`&${t}-variant-link`]:{[l("color-base")]:e.colorLink,[l("color-hover")]:e.colorLinkHover,[l("color-active")]:e.colorLinkActive,[l("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[l("color-base")]:e.colorPrimary,[l("color-hover")]:e.colorPrimaryHover,[l("color-active")]:e.colorPrimaryActive,[l("color-light")]:e.colorPrimaryBg,[l("color-light-hover")]:e.colorPrimaryBgHover,[l("color-light-active")]:e.colorPrimaryBorder,[l("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.primaryColor,[l("text-color-hover")]:d("text-color"),[l("text-color-active")]:d("text-color")}},[`&${t}-color-dangerous`]:{[l("color-base")]:e.colorError,[l("color-hover")]:e.colorErrorHover,[l("color-active")]:e.colorErrorActive,[l("color-light")]:e.colorErrorBg,[l("color-light-hover")]:e.colorErrorBgFilledHover,[l("color-light-active")]:e.colorErrorBgActive,[l("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.dangerColor,[l("text-color-hover")]:d("text-color"),[l("text-color-active")]:d("text-color")}},[`&${t}-color-default`]:{[l("solid-bg-color")]:e.colorBgSolid,[l("solid-bg-color-hover")]:e.colorBgSolidHover,[l("solid-bg-color-active")]:e.colorBgSolidActive,[l("color-base")]:e.defaultBorderColor,[l("color-hover")]:e.defaultHoverBorderColor,[l("color-active")]:e.defaultActiveBorderColor,[l("color-light")]:e.colorFillTertiary,[l("color-light-hover")]:e.colorFillSecondary,[l("color-light-active")]:e.colorFill,[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[l("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[l("text-color")]:e.solidTextColor,[l("text-color-hover")]:d("text-color"),[l("text-color-active")]:d("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[l("text-color-hover")]:d("text-color"),[l("text-color-active")]:d("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("bg-color-container")]:e.defaultBg,[l("bg-color-hover")]:e.defaultHoverBg,[l("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[l("text-color")]:e.textTextColor,[l("text-color-hover")]:e.textTextHoverColor,[l("text-color-active")]:e.textTextActiveColor,[l("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultGhostColor,[l("border-color")]:e.defaultGhostBorderColor}}}},Ta.map(f=>{const p=e[`${f}6`],m=e[`${f}1`],h=e[`${f}Hover`],b=e[`${f}2`],v=e[`${f}3`],x=e[`${f}Active`],S=e[`${f}ShadowColor`];return{[`&${t}-color-${f}`]:{[l("color-base")]:p,[l("color-hover")]:h,[l("color-active")]:x,[l("color-light")]:m,[l("color-light-hover")]:b,[l("color-light-active")]:v,[l("shadow")]:S}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:d("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[l("bg-color")]:e.ghostBg,[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg,[l("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg}}}]}},vA=e=>{const{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:s,motionDurationSlow:l,motionEaseInOut:d,iconGap:f,calc:p}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:f,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...Y5(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:uf(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",[o]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":Lr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:s,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${l} ${d}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:p(f).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:p(f).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:p(f).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:p(f).mul(-1).equal()}}}}}},xA=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),E0=(e,t="")=>{const{componentCls:o,controlHeight:r,fontSize:s,borderRadius:l,buttonPaddingHorizontal:d,iconCls:f,buttonPaddingVertical:p,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:s,height:r,padding:`${re(p)} ${re(d)}`,borderRadius:l,[`&${o}-icon-only`]:{width:r,[f]:{fontSize:m}}}},{[`${o}${o}-circle${t}`]:xA(e)},{[`${o}${o}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${o}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},SA=e=>{const t=kt(e,{fontSize:e.contentFontSize});return E0(t,e.componentCls)},CA=e=>{const t=kt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return E0(t,`${e.componentCls}-sm`)},$A=e=>{const t=kt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return E0(t,`${e.componentCls}-lg`)},EA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},wA=Qt("Button",e=>{const t=h2(e);return[vA(t),SA(t),CA(t),$A(t),EA(t),yA(t),sA(t)]},b2,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function NA(e,t,o,r){const{focusElCls:s,focus:l,borderElCls:d}=o,f=d?"> *":"",p=f?` ${f}`:"",m=v=>v.filter(Boolean).map(x=>`&:${x}${p}`).join(","),h=m(["hover",s?`hover${s}`:null]),b=m([l?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[b]:{zIndex:3},[h]:{zIndex:4},...s?{[`&${s}`]:{zIndex:3}}:{},[`&[disabled] ${f}`]:{zIndex:0}}}}function RA(e,t,o){const{borderElCls:r}=o,s=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${s}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function vf(e,t={focus:!0}){const{componentCls:o}=e,{componentCls:r}=t,s=r||o,l=`${s}-compact`;return{[l]:{...NA(e,l,t,s),...RA(s,l,t)}}}function MA(e,t,o){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function TA(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function OA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...MA(e,t,e.componentCls),...TA(e.componentCls,t)}}}const zA=e=>{const{antCls:t,componentCls:o,lineWidth:r,calc:s,colorBgContainer:l}=e,d=`${o}-variant-solid:not([disabled])`,f=s(r).mul(-1).equal(),[p,m]=Yt(t,"btn"),h=b=>({[`${o}-compact${b?"-vertical":""}-item`]:{[p("compact-connect-border-color")]:m("bg-color-hover"),[`&${d}`]:{transition:"none",[`& + ${d}:before`]:[{position:"absolute",backgroundColor:m("compact-connect-border-color"),content:'""'},b?{top:f,insetInline:f,height:r}:{insetBlock:f,insetInlineStart:f,width:r}],"&:hover:before":{display:"none"}}}});return[h(),h(!0),{[`${d}${o}-color-default`]:{[p("compact-connect-border-color")]:`color-mix(in srgb, ${m("bg-color-hover")} 75%, ${l})`}}]},AA=df(["Button","compact"],e=>{const t=h2(e);return[vf(t),OA(t),zA(t)]},b2);function IA(e){if(Ut(e)){let t=e?.delay;return t=Wo(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const BA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},_A=le.forwardRef((e,t)=>{const{_skipSemantic:o,loading:r=!1,prefixCls:s,color:l,variant:d,type:f,danger:p=!1,shape:m,size:h,disabled:b,className:v,rootClassName:x,children:S,icon:C,iconPosition:R,iconPlacement:w,ghost:N=!1,block:$=!1,htmlType:E="button",classNames:T,styles:z,style:A,autoInsertSpace:I,autoFocus:j,...L}=e,B=Oo(S),H=f||"default",{getPrefixCls:q,direction:Q,autoInsertSpace:F,className:D,style:G,classNames:X,styles:ee,loadingIcon:Z,shape:_,color:V,variant:Y}=Kt("button"),W=m||_||"default",[K,te]=c.useMemo(()=>{if(l&&d)return[l,d];if(f||p){const Qe=BA[H]||[];return p?["danger",Qe[1]]:Qe}return d==="solid"?["primary",d]:V&&Y?[V,Y]:Y==="solid"?["primary",Y]:["default","outlined"]},[l,d,f,p,V,Y,H]),[k,se]=c.useMemo(()=>N&&te==="solid"?[K,"outlined"]:[K,te],[K,te,N]),ce=k==="danger",ae=ce?"dangerous":k,pe=I??F??!0,oe=q("btn",s),[fe,he]=wA(oe),be=c.useContext(Vr),Ee=b??be,Se=c.useContext(f2),ye=c.useMemo(()=>IA(r),[r]),[Ne,Oe]=c.useState(ye.loading),[Ce,Ie]=c.useState(!1),Me=c.useRef(null),je=Gr(t,Me),et=B.length===1&&!C&&!ag(se),ke=c.useRef(!0);le.useEffect(()=>(ke.current=!1,()=>{ke.current=!0}),[]),dn(()=>{let Qe=null;ye.delay>0?Qe=setTimeout(()=>{Qe=null,Oe(!0)},ye.delay):Oe(ye.loading);function At(){Qe&&(clearTimeout(Qe),Qe=null)}return At},[ye.delay,ye.loading]),c.useEffect(()=>{if(!Me.current||!pe)return;const Qe=Me.current.textContent||"";et&&Th(Qe)?Ce||Ie(!0):Ce&&Ie(!1)}),c.useEffect(()=>{j&&Me.current?.focus()},[]);const Le=le.useCallback(Qe=>{if(Ne||Ee){Qe.preventDefault();return}e.onClick?.(("href"in e,Qe))},[e.onClick,Ne,Ee]),{compactSize:Ve,compactItemClassnames:Ke}=Rs(oe,Q),qe=zo(Qe=>h??Ve??Se??Qe),Ae=Ne?"loading":C,Pe=w??R??"start",We=xn(L,["navigate"]),Be={...e,type:H,color:k,variant:se,danger:ce,shape:W,size:qe,disabled:Ee,loading:Ne,iconPlacement:Pe},Te=pn(G),Ge=pn(A),[nt,ot]=mn([o?void 0:X,T],[o?void 0:ee,Te,z,Ge],{props:Be}),yt=U(oe,fe,he,{[`${oe}-${W}`]:W!=="default"&&W!=="square"&&W,[`${oe}-${H}`]:H,[`${oe}-dangerous`]:p,[`${oe}-color-${ae}`]:ae,[`${oe}-variant-${se}`]:se,[`${oe}-lg`]:qe==="large",[`${oe}-sm`]:qe==="small",[`${oe}-icon-only`]:!S&&S!==0&&!!Ae,[`${oe}-background-ghost`]:N&&!ag(se),[`${oe}-loading`]:Ne,[`${oe}-two-chinese-chars`]:Ce&&pe&&!Ne,[`${oe}-block`]:$,[`${oe}-rtl`]:Q==="rtl",[`${oe}-icon-end`]:Pe==="end"},Ke,v,x,D,nt.root),st={className:nt.icon,style:ot.icon},Bt=Qe=>le.createElement(p2,{prefixCls:oe,...st},Qe),_t=le.createElement(z5,{existIcon:!!C,prefixCls:oe,loading:Ne,mount:ke.current,...st}),pt=Ut(r)&&r.icon||Z;let zt;C&&!Ne?zt=Bt(C):r&&pt?zt=Bt(pt):zt=_t;const wt=pr(S)?O5(S,et&&pe,ot.content,nt.content):null;if(We.href!==void 0)return le.createElement("a",{...We,className:U(yt,{[`${oe}-disabled`]:Ee}),href:Ee?void 0:We.href,style:ot.root,onClick:Le,ref:je,tabIndex:Ee?-1:0,"aria-disabled":Ee},zt,wt);let Dt=le.createElement("button",{...L,type:E,className:yt,style:ot.root,onClick:Le,disabled:Ee,ref:je},zt,wt,Ke&&le.createElement(AA,{prefixCls:oe}));return ag(se)||(Dt=le.createElement(u2,{component:"Button",disabled:Ne},Dt)),Dt}),Mo=_A;Mo.Group=M5;Mo.__ANT_BUTTON=!0;const y2=e=>{const{type:t,children:o,prefixCls:r,buttonProps:s,close:l,autoFocus:d,emitEvent:f,isSilent:p,quitOnNullishReturnValue:m,actionFn:h}=e,b=c.useRef(!1),v=c.useRef(null),[x,S]=vE(!1),C=(...N)=>{l?.(...N)};c.useEffect(()=>{let N=null;return d&&(N=setTimeout(()=>{v.current?.focus({preventScroll:!0})})),()=>{N&&clearTimeout(N)}},[d]);const R=N=>{tg(N)&&(S(!0),N.then((...$)=>{S(!1,!0),C.apply(void 0,$),b.current=!1},$=>{if(S(!1,!0),b.current=!1,!p?.())return Promise.reject($)}))},w=N=>{if(b.current)return;if(b.current=!0,!h){C();return}let $;if(f){if($=h(N),m&&!tg($)){b.current=!1,C(N);return}}else if(h.length)$=h(l),b.current=!1;else if($=h(),!tg($)){C();return}R($)};return c.createElement(Mo,{...m2(t),onClick:w,loading:x,prefixCls:r,...s,ref:v},o)},pc=le.createContext({}),{Provider:v2}=pc,$C=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:s,rootPrefixCls:l,close:d,onCancel:f,onConfirm:p,onClose:m}=c.useContext(pc);return s?le.createElement(y2,{isSilent:r,actionFn:f,close:(...h)=>{d?.(...h),p?.(!1),m?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},o):null},EC=()=>{const{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:s,okTextLocale:l,okType:d,onConfirm:f,onOk:p,onClose:m}=c.useContext(pc);return le.createElement(y2,{isSilent:o,type:d||"primary",actionFn:p,close:(...h)=>{t?.(...h),f?.(!0),m?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${s}-btn`},l)},x2=c.createContext({});function wC(e,t,o){let r=t;return!r&&o&&(r=`${e}-${o}`),r}function NC(e,t){let o=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){const s=e.document;o=s.documentElement[r],typeof o!="number"&&(o=s.body[r])}return o}function PA(e){const t=e.getBoundingClientRect(),o={left:t.left,top:t.top},r=e.ownerDocument,s=r.defaultView||r.parentWindow;return o.left+=NC(s),o.top+=NC(s,!0),o}const jA=c.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wd.apply(this,arguments)}const HA=le.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:s,title:l,ariaId:d,footer:f,closable:p,closeIcon:m,onClose:h,children:b,bodyStyle:v,bodyProps:x,modalRender:S,onMouseDown:C,onMouseUp:R,holderRef:w,visible:N,forceRender:$,width:E,height:T,classNames:z,styles:A,isFixedPos:I,focusTrap:j}=e,{panel:L}=le.useContext(x2),B=c.useRef(null),H=Gr(w,L,B),[q]=ME(N&&I&&j!==!1,()=>B.current);le.useImperativeHandle(t,()=>({focus:()=>{B.current?.focus({preventScroll:!0})}}));const Q={};E!==void 0&&(Q.width=E),T!==void 0&&(Q.height=T);const F=f?le.createElement("div",{className:U(`${o}-footer`,z?.footer),style:{...A?.footer}},f):null,D=l?le.createElement("div",{className:U(`${o}-header`,z?.header),style:{...A?.header}},le.createElement("div",{className:U(`${o}-title`,z?.title),id:d,style:{...A?.title}},l)):null,G=c.useMemo(()=>typeof p=="object"&&p!==null?p:p?{closeIcon:m??le.createElement("span",{className:`${o}-close-x`})}:{},[p,m,o]),X=Qn(G,!0),ee=typeof p=="object"&&p.disabled,Z=p?le.createElement("button",Wd({type:"button",onClick:h,"aria-label":"Close"},X,{className:U(`${o}-close`,z?.close),disabled:ee,style:A?.close}),G.closeIcon):null,_=le.createElement("div",{className:U(`${o}-container`,z?.container),style:A?.container},Z,D,le.createElement("div",Wd({className:U(`${o}-body`,z?.body),style:{...v,...A?.body}},x),b),F);return le.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?d:null,"aria-modal":"true",ref:H,style:{...s,...Q},className:U(o,r),onMouseDown:C,onMouseUp:R,tabIndex:-1,onFocus:V=>{q(V.target)}},le.createElement(jA,{shouldUpdate:N||$},S?S(_):_))});function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ah.apply(this,arguments)}const DA=c.forwardRef((e,t)=>{const{prefixCls:o,title:r,style:s,className:l,visible:d,forceRender:f,destroyOnHidden:p,motionName:m,ariaId:h,onVisibleChanged:b,mousePosition:v}=e,x=c.useRef(null),S=c.useRef(null);c.useImperativeHandle(t,()=>({...S.current,inMotion:x.current.inMotion,enableMotion:x.current.enableMotion}));const[C,R]=c.useState(),w={};C&&(w.transformOrigin=C);function N(){if(!x.current?.nativeElement)return;const $=PA(x.current.nativeElement);R(v&&(v.x||v.y)?`${v.x-$.left}px ${v.y-$.top}px`:"")}return c.createElement(to,{visible:d,onVisibleChanged:b,onAppearPrepare:N,onEnterPrepare:N,forceRender:f,motionName:m,removeOnLeave:p,ref:x},({className:$,style:E},T)=>c.createElement(HA,Ah({},e,{ref:S,title:r,ariaId:h,prefixCls:o,holderRef:T,style:{...E,...s,...w},className:U(l,$)})))});function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ih.apply(this,arguments)}const LA=e=>{const{prefixCls:t,style:o,visible:r,maskProps:s,motionName:l,className:d}=e;return c.createElement(to,{key:"mask",visible:r,motionName:l,leavedClassName:`${t}-mask-hidden`},({className:f,style:p},m)=>c.createElement("div",Ih({ref:m,style:{...p,...o},className:U(`${t}-mask`,f,d)},s)))};function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ql.apply(this,arguments)}const VA=e=>{const{prefixCls:t="rc-dialog",zIndex:o,visible:r=!1,focusTriggerAfterClose:s=!0,wrapStyle:l,wrapClassName:d,wrapProps:f,onClose:p,afterOpenChange:m,afterClose:h,transitionName:b,animation:v,closable:x=!0,mask:S=!0,maskTransitionName:C,maskAnimation:R,maskClosable:w=!0,maskStyle:N,maskProps:$,rootClassName:E,rootStyle:T,classNames:z,styles:A}=e,I=c.useRef(null),j=c.useRef(null),L=c.useRef(null),[B,H]=c.useState(r),[q,Q]=c.useState(!1),F=Wr();function D(){zg(j.current,document.activeElement)||(I.current=document.activeElement)}function G(){zg(j.current,document.activeElement)||L.current?.focus()}function X(){if(H(!1),S&&I.current&&s){try{I.current.focus({preventScroll:!0})}catch{}I.current=null}B&&h?.()}function ee(K){K?G():X(),m?.(K)}function Z(K){p?.(K)}const _=c.useRef(!1);let V=null;w&&(V=K=>{j.current===K.target&&_.current&&Z(K)});function Y(K){_.current=K.target===j.current}c.useEffect(()=>{if(r){if(_.current=!1,H(!0),D(),j.current){const K=getComputedStyle(j.current);Q(K.position==="fixed")}}else B&&L.current.enableMotion()&&!L.current.inMotion()&&X()},[r]);const W={zIndex:o,...l,...A?.wrapper,display:B?null:"none"};return c.createElement("div",ql({className:U(`${t}-root`,E),style:T},Qn(e,{data:!0})),c.createElement(LA,{prefixCls:t,visible:S&&r,motionName:wC(t,C,R),style:{zIndex:o,...N,...A?.mask},maskProps:$,className:z?.mask}),c.createElement("div",ql({className:U(`${t}-wrap`,d,z?.wrapper),ref:j,onClick:V,onMouseDown:Y,style:W},f),c.createElement(DA,ql({},e,{isFixedPos:q,ref:L,closable:x,ariaId:F,prefixCls:t,visible:r&&B,onClose:Z,onVisibleChanged:ee,motionName:wC(t,b,v)}))))};function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Bh.apply(this,arguments)}const FA=e=>{const{visible:t,getContainer:o,forceRender:r,destroyOnHidden:s=!1,afterClose:l,closable:d,panelRef:f,keyboard:p=!0,scrollLock:m=!0,onClose:h}=e,{scrollLock:b,...v}=e,[x,S]=c.useState(t),C=c.useMemo(()=>({panel:f}),[f]),R=({top:w,event:N})=>{if(w&&p){N.stopPropagation(),h?.(N);return}};return c.useEffect(()=>{t&&S(!0)},[t]),!r&&s&&!x?null:c.createElement(x2.Provider,{value:C},c.createElement(dc,{open:t||r||x,onEsc:R,autoDestroy:!1,getContainer:o,autoLock:m&&(t||x)},c.createElement(VA,Bh({},v,{destroyOnHidden:s,afterClose:()=>{const w=d&&typeof d=="object"?d:{},{afterClose:N}=w||{};N?.(),l?.(),S(!1)}}))))},oi="RC_FORM_INTERNAL_HOOKS",cn=()=>{Yn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Cs=c.createContext({getFieldValue:cn,getFieldsValue:cn,getFieldError:cn,getFieldWarning:cn,getFieldsError:cn,isFieldsTouched:cn,isFieldTouched:cn,isFieldValidating:cn,isFieldsValidating:cn,resetFields:cn,setFields:cn,setFieldValue:cn,setFieldsValue:cn,validateFields:cn,submit:cn,getInternalHooks:()=>(cn(),{dispatch:cn,initEntityValue:cn,registerField:cn,useSubscribe:cn,setInitialValues:cn,destroyForm:cn,setCallbacks:cn,registerWatch:cn,getFields:cn,setValidateMessages:cn,setPreserve:cn,getInitialValue:cn})}),Gd=c.createContext(null);function _h(e){return e==null?[]:Array.isArray(e)?e:[e]}function qA(e){return e&&!!e._init}function Ph(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const cg=Ph(),UA=/%[sdj%]/g;let WA=()=>{};function jh(e){if(!e||!e.length)return null;const t={};return e.forEach(o=>{const r=o.field;t[r]=t[r]||[],t[r].push(o)}),t}function No(e,...t){let o=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(UA,l=>{if(l==="%%")return"%";if(o>=r)return l;switch(l){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch{return"[Circular]"}break;default:return l}}):e}function GA(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||GA(t)&&typeof e=="string"&&!e)}function XA(e,t,o){const r=[];let s=0;const l=e.length;function d(f){r.push(...f||[]),s++,s===l&&o(r)}e.forEach(f=>{t(f,d)})}function RC(e,t,o){let r=0;const s=e.length;function l(d){if(d&&d.length){o(d);return}const f=r;r=r+1,f<s?t(e[f],l):o([])}l([])}function kA(e){const t=[];return Object.keys(e).forEach(o=>{t.push(...e[o]||[])}),t}class MC extends Error{errors;fields;constructor(t,o){super("Async Validation Error"),this.errors=t,this.fields=o}}function YA(e,t,o,r,s){if(t.first){const b=new Promise((v,x)=>{const S=R=>(r(R),R.length?x(new MC(R,jh(R))):v(s)),C=kA(e);RC(C,o,S)});return b.catch(v=>v),b}const l=t.firstFields===!0?Object.keys(e):t.firstFields||[],d=Object.keys(e),f=d.length;let p=0;const m=[],h=new Promise((b,v)=>{const x=S=>{if(m.push.apply(m,S),p++,p===f)return r(m),m.length?v(new MC(m,jh(m))):b(s)};d.length||(r(m),b(s)),d.forEach(S=>{const C=e[S];l.indexOf(S)!==-1?RC(C,o,x):XA(C,o,x)})});return h.catch(b=>b),h}function KA(e){return!!(e&&e.message!==void 0)}function QA(e,t){let o=e;for(let r=0;r<t.length;r++){if(o==null)return o;o=o[t[r]]}return o}function TC(e,t){return o=>{let r;return e.fullFields?r=QA(t,e.fullFields):r=t[o.field||e.fullField],KA(o)?(o.field=o.field||e.fullField,o.fieldValue=r,o):{message:typeof o=="function"?o():o,fieldValue:r,field:o.field||e.fullField}}}function OC(e,t){if(t){for(const o in t)if(t.hasOwnProperty(o)){const r=t[o];typeof r=="object"&&typeof e[o]=="object"?e[o]={...e[o],...r}:e[o]=r}}return e}const Ji="enum",ZA=(e,t,o,r,s)=>{e[Ji]=Array.isArray(e[Ji])?e[Ji]:[],e[Ji].indexOf(t)===-1&&r.push(No(s.messages[Ji],e.fullField,e[Ji].join(", ")))},JA=(e,t,o,r,s)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(No(s.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(No(s.messages.pattern.mismatch,e.fullField,t,e.pattern))))},e8=(e,t,o,r,s)=>{const l=typeof e.len=="number",d=typeof e.min=="number",f=typeof e.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let m=t,h=null;const b=typeof t=="number",v=typeof t=="string",x=Array.isArray(t);if(b?h="number":v?h="string":x&&(h="array"),!h)return!1;x&&(m=t.length),v&&(m=t.replace(p,"_").length),l?m!==e.len&&r.push(No(s.messages[h].len,e.fullField,e.len)):d&&!f&&m<e.min?r.push(No(s.messages[h].min,e.fullField,e.min)):f&&!d&&m>e.max?r.push(No(s.messages[h].max,e.fullField,e.max)):d&&f&&(m<e.min||m>e.max)&&r.push(No(s.messages[h].range,e.fullField,e.min,e.max))},S2=(e,t,o,r,s,l)=>{e.required&&(!o.hasOwnProperty(e.field)||Hn(t,l||e.type))&&r.push(No(s.messages.required,e.fullField))};let Xu;const t8=(()=>{if(Xu)return Xu;const e="[a-fA-F\\d:]",t=T=>T&&T.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",o="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",d=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${o}|:${r}|:)`,`(?:${r}:){5}(?::${o}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${o}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${o}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${o}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${o}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${o}|(?::${r}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,f=new RegExp(`(?:^${o}$)|(?:^${d}$)`),p=new RegExp(`^${o}$`),m=new RegExp(`^${d}$`),h=T=>T&&T.exact?f:new RegExp(`(?:${t(T)}${o}${t(T)})|(?:${t(T)}${d}${t(T)})`,"g");h.v4=T=>T&&T.exact?p:new RegExp(`${t(T)}${o}${t(T)}`,"g"),h.v6=T=>T&&T.exact?m:new RegExp(`${t(T)}${d}${t(T)}`,"g");const b="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",x=h.v4().source,S=h.v6().source,E=`(?:${b}|www\\.)${v}(?:localhost|${x}|${S}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Xu=new RegExp(`(?:^${E}$)`,"i"),Xu}),ug={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pl={integer(e){return Pl.number(e)&&parseInt(e,10)===e},float(e){return Pl.number(e)&&!Pl.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!Pl.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(ug.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(ug.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(t8())},hex(e){return typeof e=="string"&&!!e.match(ug.hex)}},n8=(e,t,o,r,s)=>{if(e.required&&t===void 0){S2(e,t,o,r,s);return}const l=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],d=e.type;l.indexOf(d)>-1?Pl[d](t)||r.push(No(s.messages.types[d],e.fullField,e.type)):d&&typeof t!==e.type&&r.push(No(s.messages.types[d],e.fullField,e.type))},o8=(e,t,o,r,s)=>{(/^\s+$/.test(t)||t==="")&&r.push(No(s.messages.whitespace,e.fullField))},Ot={required:S2,whitespace:o8,type:n8,range:e8,enum:ZA,pattern:JA},r8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s)}o(l)},a8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return o();Ot.required(e,t,r,l,s,"array"),t!=null&&(Ot.type(e,t,r,l,s),Ot.range(e,t,r,l,s))}o(l)},i8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),t!==void 0&&Ot.type(e,t,r,l,s)}o(l)},s8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"date")&&!e.required)return o();if(Ot.required(e,t,r,l,s),!Hn(t,"date")){let f;t instanceof Date?f=t:f=new Date(t),Ot.type(e,f,r,l,s),f&&Ot.range(e,f.getTime(),r,l,s)}}o(l)},l8="enum",c8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),t!==void 0&&Ot[l8](e,t,r,l,s)}o(l)},u8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),t!==void 0&&(Ot.type(e,t,r,l,s),Ot.range(e,t,r,l,s))}o(l)},d8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),t!==void 0&&(Ot.type(e,t,r,l,s),Ot.range(e,t,r,l,s))}o(l)},f8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),t!==void 0&&Ot.type(e,t,r,l,s)}o(l)},m8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===""&&(t=void 0),Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),t!==void 0&&(Ot.type(e,t,r,l,s),Ot.range(e,t,r,l,s))}o(l)},p8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),t!==void 0&&Ot.type(e,t,r,l,s)}o(l)},g8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"string")&&!e.required)return o();Ot.required(e,t,r,l,s),Hn(t,"string")||Ot.pattern(e,t,r,l,s)}o(l)},h8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t)&&!e.required)return o();Ot.required(e,t,r,l,s),Hn(t)||Ot.type(e,t,r,l,s)}o(l)},b8=(e,t,o,r,s)=>{const l=[],d=Array.isArray(t)?"array":typeof t;Ot.required(e,t,r,l,s,d),o(l)},y8=(e,t,o,r,s)=>{const l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,"string")&&!e.required)return o();Ot.required(e,t,r,l,s,"string"),Hn(t,"string")||(Ot.type(e,t,r,l,s),Ot.range(e,t,r,l,s),Ot.pattern(e,t,r,l,s),e.whitespace===!0&&Ot.whitespace(e,t,r,l,s))}o(l)},ku=(e,t,o,r,s)=>{const l=e.type,d=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hn(t,l)&&!e.required)return o();Ot.required(e,t,r,d,s,l),Hn(t,l)||Ot.type(e,t,r,d,s)}o(d)},Ol={string:y8,method:f8,number:m8,boolean:i8,regexp:h8,integer:d8,float:u8,array:a8,object:p8,enum:c8,pattern:g8,date:s8,url:ku,hex:ku,email:ku,tel:ku,required:b8,any:r8};class Xd{static register=function(o,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ol[o]=r};static warning=WA;static messages=cg;static validators=Ol;rules=null;_messages=cg;constructor(t){this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(o=>{const r=t[o];this.rules[o]=Array.isArray(r)?r:[r]})}messages(t){return t&&(this._messages=OC(Ph(),t)),this._messages}validate(t,o={},r=()=>{}){let s=t,l=o,d=r;if(typeof l=="function"&&(d=l,l={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,s),Promise.resolve(s);function f(b){let v=[],x={};function S(C){Array.isArray(C)?v=v.concat(...C):v.push(C)}for(let C=0;C<b.length;C++)S(b[C]);v.length?(x=jh(v),d(v,x)):d(null,s)}if(l.messages){let b=this.messages();b===cg&&(b=Ph()),OC(b,l.messages),l.messages=b}else l.messages=this.messages();const p={};(l.keys||Object.keys(this.rules)).forEach(b=>{const v=this.rules[b];let x=s[b];v.forEach(S=>{let C=S;typeof C.transform=="function"&&(s===t&&(s={...s}),x=s[b]=C.transform(x),x!=null&&(C.type=C.type||(Array.isArray(x)?"array":typeof x))),typeof C=="function"?C={validator:C}:C={...C},C.validator=this.getValidationMethod(C),C.validator&&(C.field=b,C.fullField=C.fullField||b,C.type=this.getType(C),p[b]=p[b]||[],p[b].push({rule:C,value:x,source:s,field:b}))})});const h={};return YA(p,l,(b,v)=>{const x=b.rule;let S=(x.type==="object"||x.type==="array")&&(typeof x.fields=="object"||typeof x.defaultField=="object");S=S&&(x.required||!x.required&&b.value),x.field=b.field;function C(N,$){return{...$,fullField:`${x.fullField}.${N}`,fullFields:x.fullFields?[...x.fullFields,N]:[N]}}function R(N=[]){let $=Array.isArray(N)?N:[N];!l.suppressWarning&&$.length&&Xd.warning("async-validator:",$),$.length&&x.message!==void 0&&x.message!==null&&($=[].concat(x.message));let E=$.map(TC(x,s));if(l.first&&E.length)return h[x.field]=1,v(E);if(!S)v(E);else{if(x.required&&!b.value)return x.message!==void 0?E=[].concat(x.message).map(TC(x,s)):l.error&&(E=[l.error(x,No(l.messages.required,x.field))]),v(E);let T={};x.defaultField&&Object.keys(b.value).map(I=>{T[I]=x.defaultField}),T={...T,...b.rule.fields};const z={};Object.keys(T).forEach(I=>{const j=T[I],L=Array.isArray(j)?j:[j];z[I]=L.map(C.bind(null,I))});const A=new Xd(z);A.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),A.validate(b.value,b.rule.options||l,I=>{const j=[];E&&E.length&&j.push(...E),I&&I.length&&j.push(...I),v(j.length?j:null)})}}let w;if(x.asyncValidator)w=x.asyncValidator(x,b.value,R,b.source,l);else if(x.validator){try{w=x.validator(x,b.value,R,b.source,l)}catch(N){console.error?.(N),l.suppressValidatorError||setTimeout(()=>{throw N},0),R(N.message)}w===!0?R():w===!1?R(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||`${x.fullField||x.field} fails`):w instanceof Array?R(w):w instanceof Error&&R(w.message)}w&&w.then&&w.then(()=>R(),N=>R(N))},b=>{f(b)},s)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Ol.hasOwnProperty(t.type))throw new Error(No("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const o=Object.keys(t),r=o.indexOf("message");return r!==-1&&o.splice(r,1),o.length===1&&o[0]==="required"?Ol.required:Ol[this.getType(t)]||void 0}}const mo="'${name}' is not a valid ${type}",C2={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:mo,method:mo,array:mo,object:mo,number:mo,date:mo,boolean:mo,integer:mo,float:mo,regexp:mo,email:mo,tel:mo,url:mo,hex:mo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},zC=Xd;function v8(e,t){return e.replace(/\\?\$\{\w+\}/g,o=>{if(o.startsWith("\\"))return o.slice(1);const r=o.slice(2,-1);return t[r]})}const AC="CODE_LOGIC_ERROR";async function Hh(e,t,o,r,s){const l={...o};if(delete l.ruleIndex,zC.warning=()=>{},l.validator){const v=l.validator;l.validator=(...x)=>{try{return v(...x)}catch(S){return console.error(S),Promise.reject(AC)}}}let d=null;l&&l.type==="array"&&l.defaultField&&(d=l.defaultField,delete l.defaultField);const f=new zC({[e]:[l]}),p=ls(C2,r.validateMessages);f.messages(p);let m=[];try{await Promise.resolve(f.validate({[e]:t},{...r}))}catch(v){v.errors&&(m=v.errors.map(({message:x},S)=>{const C=x===AC?p.default:x;return c.isValidElement(C)?c.cloneElement(C,{key:`error_${S}`}):C}))}if(!m.length&&d&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((x,S)=>Hh(`${e}.${S}`,x,d,r,s)))).reduce((x,S)=>[...x,...S],[]);const h={...o,name:e,enum:(o.enum||[]).join(", "),...s};return m.map(v=>typeof v=="string"?v8(v,h):v)}function x8(e,t,o,r,s,l){const d=e.join("."),f=o.map((m,h)=>{const b=m.validator,v={...m,ruleIndex:h};return b&&(v.validator=(x,S,C)=>{let R=!1;const N=b(x,S,(...$)=>{Promise.resolve().then(()=>{Yn(!R,"Your validator function has already return a promise. `callback` will be ignored."),R||C(...$)})});R=N&&typeof N.then=="function"&&typeof N.catch=="function",Yn(R,"`callback` is deprecated. Please return a promise instead."),R&&N.then(()=>{C()}).catch($=>{C($||" ")})}),v}).sort(({warningOnly:m,ruleIndex:h},{warningOnly:b,ruleIndex:v})=>!!m==!!b?h-v:m?1:-1);let p;if(s===!0)p=new Promise(async(m,h)=>{for(let b=0;b<f.length;b+=1){const v=f[b],x=await Hh(d,t,v,r,l);if(x.length){h([{errors:x,rule:v}]);return}}m([])});else{const m=f.map(h=>Hh(d,t,h,r,l).then(b=>({errors:b,rule:h})));p=(s?C8(m):S8(m)).then(h=>Promise.reject(h))}return p.catch(m=>m),p}async function S8(e){return Promise.all(e).then(t=>[].concat(...t))}async function C8(e){let t=0;return new Promise(o=>{e.forEach(r=>{r.then(s=>{s.errors.length&&o([s]),t+=1,t===e.length&&o([])})})})}function $n(e){return _h(e)}function IC(e,t){let o={};return t.forEach(r=>{const s=qo(e,r);o=wo(o,r,s)}),o}function ps(e,t,o=!1){return e&&e.some(r=>kd(t,r,o))}function kd(e,t,o=!1){return!e||!t||!o&&e.length!==t.length?!1:t.every((r,s)=>e[s]===r)}function $8(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const o=Object.keys(e),r=Object.keys(t);return[...new Set([...o,...r])].every(l=>{const d=e[l],f=t[l];return typeof d=="function"&&typeof f=="function"?!0:d===f})}function E8(e,...t){const o=t[0];return o&&o.target&&typeof o.target=="object"&&e in o.target?o.target[e]:o}function BC(e,t,o){const{length:r}=e;if(t<0||t>=r||o<0||o>=r)return e;const s=e[t],l=t-o;return l>0?[...e.slice(0,o),s,...e.slice(o,t),...e.slice(t+1,r)]:l<0?[...e.slice(0,t),...e.slice(t+1,o+1),s,...e.slice(o+1,r)]:e}const $2=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class w8{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(o=>{this.namePathList.every(r=>!kd(r,o))&&this.namePathList.push(o)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;$2(()=>{if(t===this.taskId&&this.watcherList.size){const o=this.form.getForm(),r=o.getFieldsValue(),s=o.getFieldsValue(!0);this.watcherList.forEach(l=>{l(r,s,this.namePathList)}),this.namePathList=[]}})}}async function N8(){return new Promise(e=>{$2(()=>{Lt(()=>{e()})})})}function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Dh.apply(this,arguments)}const Qa=[],zl=[];function dg(e,t,o,r,s,l){return typeof e=="function"?e(t,o,"source"in l?{source:l.source}:{}):r!==s}class R8 extends c.PureComponent{static contextType=Cs;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Qa;warnings=zl;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:o}=t.fieldContext,{initEntityValue:r}=o(oi);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:o}=this.props;if(this.mounted=!0,o){const{getInternalHooks:r}=o,{registerField:s}=r(oi);this.cancelRegisterFunc=s(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:o,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,t,$n(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:o}=this.props,{prefixName:r=[]}=o;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:o}=this.props;return t.map(r=>typeof r=="function"?r(o):r)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:o}=this.props;if(o){const r={...this.getMeta(),destroy:t};Xl(this.metaCache,r)||o(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,o,r)=>{const{shouldUpdate:s,dependencies:l=[],onReset:d}=this.props,{store:f}=r,p=this.getNamePath(),m=this.getValue(t),h=this.getValue(f),b=o&&ps(o,p);switch(r.type==="valueUpdate"&&r.source==="external"&&!Xl(m,h)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Qa,this.warnings=zl,this.triggerMetaEvent()),r.type){case"reset":if(!o||b){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Qa,this.warnings=zl,this.triggerMetaEvent(),d?.(),this.refresh();return}break;case"remove":{if(s&&dg(s,t,f,m,h,r)){this.reRender();return}break}case"setField":{const{data:v}=r;if(b){"touched"in v&&(this.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(this.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(this.errors=v.errors||Qa),"warnings"in v&&(this.warnings=v.warnings||zl),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in v&&ps(o,p,!0)){this.reRender();return}if(s&&!p.length&&dg(s,t,f,m,h,r)){this.reRender();return}break}case"dependenciesUpdate":{if(l.map($n).some(x=>ps(r.relatedFields,x))){this.reRender();return}break}default:if(b||(!l.length||p.length||s)&&dg(s,t,f,m,h,r)){this.reRender();return}break}s===!0&&this.reRender()};validateRules=t=>{const o=this.getNamePath(),r=this.getValue(),{triggerName:s,validateOnly:l=!1,delayFrame:d}=t||{},f=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:p=!1,messageVariables:m,validateDebounce:h}=this.props;d&&await N8();let b=this.getRules();if(s&&(b=b.filter(x=>x).filter(x=>{const{validateTrigger:S}=x;return S?_h(S).includes(s):!0})),h&&s&&(await new Promise(x=>{setTimeout(x,h)}),this.validatePromise!==f))return[];const v=x8(o,r,b,t,p,m);return v.catch(x=>x).then((x=Qa)=>{if(this.validatePromise===f){this.validatePromise=null;const S=[],C=[];x.forEach?.(({rule:{warningOnly:R},errors:w=Qa})=>{R?C.push(...w):S.push(...w)}),this.errors=S,this.warnings=C,this.triggerMetaEvent(),this.reRender()}}),v});return l||(this.validatePromise=f,this.dirty=!0,this.errors=Qa,this.warnings=zl,this.triggerMetaEvent(),this.reRender()),f};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:o}=t.getInternalHooks(oi);return o(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:!0}}const o=Oo(t);return o.length!==1||!c.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:o}=this.props.fieldContext,r=this.getNamePath();return qo(t||o(!0),r)};getControlled=(t={})=>{const{name:o,trigger:r="onChange",validateTrigger:s,getValueFromEvent:l,normalize:d,valuePropName:f="value",getValueProps:p,fieldContext:m}=this.props,h=s!==void 0?s:m.validateTrigger,b=this.getNamePath(),{getInternalHooks:v,getFieldsValue:x}=m,{dispatch:S}=v(oi),C=this.getValue(),R=p||(T=>({[f]:T})),w=t[r],N=o!==void 0?R(C):{},$={...t,...N};return $[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();const z=this.getValue();let A;l?A=l(...T):A=E8(f,...T),d&&(A=d(A,z,x(!0))),A!==z&&S({type:"updateValue",namePath:b,value:A}),w&&w(...T)},_h(h||[]).forEach(T=>{const z=$[T];$[T]=(...A)=>{z&&z(...A);const{rules:I}=this.props;I&&I.length&&S({type:"validateField",namePath:b,triggerName:T})}}),$};render(){const{resetCount:t}=this.state,{children:o}=this.props,{child:r,isFunction:s}=this.getOnlyChild(o);let l;return s?l=r:c.isValidElement(r)?l=c.cloneElement(r,this.getControlled(r.props)):(Yn(!r,"`children` of Field is not validate ReactElement."),l=r),c.createElement(c.Fragment,{key:t},l)}}function E2({name:e,...t}){const o=c.useContext(Cs),r=c.useContext(Gd),s=e!==void 0?$n(e):void 0,l=t.isListField??!!r;let d="keep";return l||(d=`_${(s||[]).join("_")}`),c.createElement(R8,Dh({key:d,name:s,isListField:l},t,{fieldContext:o}))}function M8({name:e,initialValue:t,children:o,rules:r,validateTrigger:s,isListField:l}){const d=c.useContext(Cs),f=c.useContext(Gd),m=c.useRef({keys:[],id:0}).current,h=c.useMemo(()=>[...$n(d.prefixName)||[],...$n(e)],[d.prefixName,e]),b=c.useMemo(()=>({...d,prefixName:h}),[d,h]),v=c.useMemo(()=>({getKey:S=>{const C=h.length,R=S[C];return[m.keys[R],S.slice(C+1)]}}),[m,h]);if(typeof o!="function")return Yn(!1,"Form.List only accepts function as children."),null;const x=(S,C,{source:R})=>R==="internal"?!1:S!==C;return c.createElement(Gd.Provider,{value:v},c.createElement(Cs.Provider,{value:b},c.createElement(E2,{name:[],shouldUpdate:x,rules:r,validateTrigger:s,initialValue:t,isList:!0,isListField:l??!!f},({value:S=[],onChange:C},R)=>{const{getFieldValue:w}=d,N=()=>w(h||[])||[],$={add:(T,z)=>{const A=N();z>=0&&z<=A.length?(m.keys=[...m.keys.slice(0,z),m.id,...m.keys.slice(z)],C([...A.slice(0,z),T,...A.slice(z)])):(m.keys=[...m.keys,m.id],C([...A,T])),m.id+=1},remove:T=>{const z=N(),A=new Set(Array.isArray(T)?T:[T]);A.size<=0||(m.keys=m.keys.filter((I,j)=>!A.has(j)),C(z.filter((I,j)=>!A.has(j))))},move(T,z){if(T===z)return;const A=N();T<0||T>=A.length||z<0||z>=A.length||(m.keys=BC(m.keys,T,z),C(BC(A,T,z)))}};let E=S||[];return Array.isArray(E)||(E=[]),o(E.map((T,z)=>{let A=m.keys[z];return A===void 0&&(m.keys[z]=m.id,A=m.keys[z],m.id+=1),{name:z,key:A,isListField:!0}}),$,R)})))}function T8(e){let t=!1,o=e.length;const r=[];return e.length?new Promise((s,l)=>{e.forEach((d,f)=>{d.catch(p=>(t=!0,p)).then(p=>{o-=1,r[f]=p,!(o>0)&&(t&&l(r),s(r))})})}):Promise.resolve([])}const Lh="__@field_split__";function Yu(e){return e.map(t=>`${typeof t}:${t}`).join(Lh)}class es{kvs=new Map;set(t,o){this.kvs.set(Yu(t),o)}get(t){return this.kvs.get(Yu(t))}getAsPrefix(t){const o=Yu(t),r=o+Lh,s=[],l=this.kvs.get(o);return l!==void 0&&s.push(l),this.kvs.forEach((d,f)=>{f.startsWith(r)&&s.push(d)}),s}update(t,o){const r=this.get(t),s=o(r);s?this.set(t,s):this.delete(t)}delete(t){this.kvs.delete(Yu(t))}map(t){return[...this.kvs.entries()].map(([o,r])=>{const s=o.split(Lh);return t({key:s.map(l=>{const[,d,f]=l.match(/^([^:]*):(.*)$/);return d==="number"?Number(f):f}),value:r})})}toJSON(){const t={};return this.map(({key:o,value:r})=>(t[o.join(".")]=r,null)),t}}class O8{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new w8(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===oi?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Yn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,o)=>{if(this.initialValues=t||{},o){let r=ls(t,this.store);this.prevWithoutPreserves?.map(({key:s})=>{r=wo(r,s,qo(t,s))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const o=new es;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||o.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=o}};getInitialValue=t=>{const o=qo(this.initialValues,t);return t.length?ls(o):o};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(o=>o.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const o=new es;return this.getFieldEntities(t).forEach(r=>{const s=r.getNamePath();o.set(s,r)}),o};getFieldEntitiesForNamePathList=(t,o=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return o?t.flatMap(s=>{const l=$n(s),d=r.getAsPrefix(l);return d.length?d:[{INVALIDATE_NAME_PATH:l}]}):t.map(s=>{const l=$n(s);return r.get(l)||{INVALIDATE_NAME_PATH:$n(s)}})};getFieldsValue=(t,o)=>{this.warningUnhooked();let r,s;if(t===!0||Array.isArray(t)?(r=t,s=o):t&&typeof t=="object"&&(s=t.filter),r===!0&&!s)return this.store;const l=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),d=[],f=[];l.forEach(m=>{const h=m.INVALIDATE_NAME_PATH||m.getNamePath();if(m.isList?.()){f.push(h);return}if(!s)d.push(h);else{const b="getMeta"in m?m.getMeta():null;s(b)&&d.push(h)}});let p=IC(this.store,d.map($n));return f.forEach(m=>{qo(p,m)||(p=wo(p,m,[]))}),p};getFieldValue=t=>{this.warningUnhooked();const o=$n(t);return qo(this.store,o)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,s)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:$n(t[s]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const o=$n(t);return this.getFieldsError([o])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const o=$n(t);return this.getFieldsError([o])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[o,r]=t;let s,l=!1;t.length===0?s=null:t.length===1?Array.isArray(o)?(s=o.map($n),l=!1):(s=null,l=o):(s=o.map($n),l=r);const d=this.getFieldEntities(!0),f=b=>b.isFieldTouched();if(!s)return l?d.every(b=>f(b)||b.isList()):d.some(f);const p=new es;s.forEach(b=>{p.set(b,[])}),d.forEach(b=>{const v=b.getNamePath();s.forEach(x=>{x.every((S,C)=>v[C]===S)&&p.update(x,S=>[...S,b])})});const m=b=>b.some(f),h=p.map(({value:b})=>b);return l?h.every(m):h.some(m)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const o=this.getFieldEntities();if(!t)return o.some(s=>s.isFieldValidating());const r=t.map($n);return o.some(s=>{const l=s.getNamePath();return ps(r,l)&&s.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const o=new es,r=this.getFieldEntities(!0);r.forEach(d=>{const{initialValue:f}=d.props,p=d.getNamePath();if(f!==void 0){const m=o.get(p)||new Set;m.add({entity:d,value:f}),o.set(p,m)}});const s=d=>{d.forEach(f=>{const{initialValue:p}=f.props;if(p!==void 0){const m=f.getNamePath();if(this.getInitialValue(m)!==void 0)Yn(!1,`Form already set 'initialValues' with path '${m.join(".")}'. Field can not overwrite it.`);else{const b=o.get(m);if(b&&b.size>1)Yn(!1,`Multiple Field with path '${m.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(b){const v=this.getFieldValue(m);!f.isListField()&&(!t.skipExist||v===void 0)&&this.updateStore(wo(this.store,m,[...b][0].value))}}}})};let l;t.entities?l=t.entities:t.namePathList?(l=[],t.namePathList.forEach(d=>{const f=o.get(d);f&&l.push(...[...f].map(p=>p.entity))})):l=r,s(l)};resetFields=t=>{this.warningUnhooked();const o=this.store;if(!t){this.updateStore(ls(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(o,null,{type:"reset"}),this.notifyWatch();return}const r=t.map($n);r.forEach(s=>{const l=this.getInitialValue(s);this.updateStore(wo(this.store,s,l))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(o,r,{type:"reset"}),this.notifyWatch(r)};setFields=t=>{this.warningUnhooked();const o=this.store,r=[];t.forEach(s=>{const{name:l,...d}=s,f=$n(l);r.push(f),"value"in d&&this.updateStore(wo(this.store,f,d.value)),this.notifyObservers(o,[f],{type:"setField",data:s})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const s=r.getNamePath(),d={...r.getMeta(),name:s,value:this.getFieldValue(s)};return Object.defineProperty(d,"originRCField",{value:!0}),d});initEntityValue=t=>{const{initialValue:o}=t.props;if(o!==void 0){const r=t.getNamePath();qo(this.store,r)===void 0&&this.updateStore(wo(this.store,r,o))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const o=t.getNamePath();if(this.notifyWatch([o]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,s,l=[])=>{if(this.fieldEntities=this.fieldEntities.filter(d=>d!==t),!this.isMergedPreserve(s)&&(!r||l.length>1)){const d=r?void 0:this.getInitialValue(o);if(o.length&&this.getFieldValue(o)!==d&&this.fieldEntities.every(f=>!kd(f.getNamePath(),o))){const f=this.store;this.updateStore(wo(f,o,d,!0)),this.notifyObservers(f,[o],{type:"remove"}),this.triggerDependenciesUpdate(f,o)}}this.notifyWatch([o])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:o,value:r}=t;this.updateValue(o,r);break}case"validateField":{const{namePath:o,triggerName:r}=t;this.validateFields([o],{triggerName:r});break}}};notifyObservers=(t,o,r)=>{if(this.subscribable){const s={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:l})=>{l(t,o,s)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,o)=>{const r=this.getDependencyChildrenFields(o);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[o,...r]}),r};updateValue=(t,o)=>{const r=$n(t),s=this.store;this.updateStore(wo(this.store,r,o)),this.notifyObservers(s,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const l=this.triggerDependenciesUpdate(s,r),{onValuesChange:d}=this.callbacks;if(d){const f=IC(this.store,[r]),p=this.getFieldsValue(),m=wo(p,r,qo(f,r));d(f,m)}this.triggerOnFieldsChange([r,...l])};setFieldsValue=t=>{this.warningUnhooked();const o=this.store;if(t){const r=ls(this.store,t);this.updateStore(r)}this.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,o)=>{this.setFields([{name:t,value:o,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const o=new Set,r=[],s=new es;this.getFieldEntities().forEach(d=>{const{dependencies:f}=d.props;(f||[]).forEach(p=>{const m=$n(p);s.update(m,(h=new Set)=>(h.add(d),h))})});const l=d=>{(s.get(d)||new Set).forEach(p=>{if(!o.has(p)){o.add(p);const m=p.getNamePath();p.isFieldDirty()&&m.length&&(r.push(m),l(m))}})};return l(t),r};triggerOnFieldsChange=(t,o)=>{const{onFieldsChange:r}=this.callbacks;if(r){const s=this.getFields();if(o){const d=new es;o.forEach(({name:f,errors:p})=>{d.set(f,p)}),s.forEach(f=>{f.errors=d.get(f.name)||f.errors})}const l=s.filter(({name:d})=>ps(t,d));l.length&&r(l,s)}};validateFields=(t,o)=>{this.warningUnhooked();let r,s;Array.isArray(t)||typeof t=="string"||typeof o=="string"?(r=t,s=o):s=t;const l=!!r,d=l?r.map($n):[],f=[...d],p=[],m=String(Date.now()),h=new Set,{recursive:b,dirty:v}=s||{};this.getFieldEntities(!0).forEach(R=>{const w=R.getNamePath();if(l||((!R.isList()||!d.some(N=>kd(N,w,!0)))&&f.push(w),d.push(w)),!(!R.props.rules||!R.props.rules.length)&&!(v&&!R.isFieldDirty())&&(h.add(w.join(m)),!l||ps(d,w,b))){const N=R.validateRules({validateMessages:{...C2,...this.validateMessages},...s});p.push(N.then(()=>({name:w,errors:[],warnings:[]})).catch($=>{const E=[],T=[];return $.forEach?.(({rule:{warningOnly:z},errors:A})=>{z?T.push(...A):E.push(...A)}),E.length?Promise.reject({name:w,errors:E,warnings:T}):{name:w,errors:E,warnings:T}}))}});const x=T8(p);this.lastValidatePromise=x,x.catch(R=>R).then(R=>{const w=R.map(({name:N})=>N);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,R)});const S=x.then(()=>this.lastValidatePromise===x?Promise.resolve(this.getFieldsValue(f)):Promise.reject([])).catch(R=>{const w=R.filter($=>$&&$.errors.length),N=w[0]?.errors?.[0];return Promise.reject({message:N,values:this.getFieldsValue(d),errorFields:w,outOfDate:this.lastValidatePromise!==x})});S.catch(R=>R);const C=d.filter(R=>h.has(R.join(m)));return this.triggerOnFieldsChange(C),S};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:o}=this.callbacks;if(o)try{o(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:o}=this.callbacks;o&&o(t)})}}function w2(e){const t=c.useRef(null),[,o]=c.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{o({})},s=new O8(r);t.current=s.getForm()}return[t.current]}const Vh=c.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),z8=({validateMessages:e,onFormChange:t,onFormFinish:o,children:r})=>{const s=c.useContext(Vh),l=c.useRef({});return c.createElement(Vh.Provider,{value:{...s,validateMessages:{...s.validateMessages,...e},triggerFormChange:(d,f)=>{t&&t(d,{changedFields:f,forms:l.current}),s.triggerFormChange(d,f)},triggerFormFinish:(d,f)=>{o&&o(d,{values:f,forms:l.current}),s.triggerFormFinish(d,f)},registerForm:(d,f)=>{d&&(l.current={...l.current,[d]:f}),s.registerForm(d,f)},unregisterForm:d=>{const f={...l.current};delete f[d],l.current=f,s.unregisterForm(d)}}},r)};function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Fh.apply(this,arguments)}const A8=(e,t)=>{const{name:o,initialValues:r,fields:s,form:l,preserve:d,children:f,component:p="form",validateMessages:m,validateTrigger:h="onChange",onValuesChange:b,onFieldsChange:v,onFinish:x,onFinishFailed:S,clearOnDestroy:C,...R}=e,w=c.useRef(null),N=c.useContext(Vh),[$]=w2(l),{useSubscribe:E,setInitialValues:T,setCallbacks:z,setValidateMessages:A,setPreserve:I,destroyForm:j}=$.getInternalHooks(oi);c.useImperativeHandle(t,()=>({...$,nativeElement:w.current})),c.useEffect(()=>(N.registerForm(o,$),()=>{N.unregisterForm(o)}),[N,$,o]),A({...N.validateMessages,...m}),z({onValuesChange:b,onFieldsChange:(D,...G)=>{N.triggerFormChange(o,D),v&&v(D,...G)},onFinish:D=>{N.triggerFormFinish(o,D),x&&x(D)},onFinishFailed:S}),I(d);const L=c.useRef(null);T(r,!L.current),L.current||(L.current=!0),c.useEffect(()=>()=>j(C),[]);let B;const H=typeof f=="function";if(H){const D=$.getFieldsValue(!0);B=f(D,$)}else B=f;E(!H);const q=c.useRef(null);c.useEffect(()=>{$8(q.current||[],s||[])||$.setFields(s||[]),q.current=s},[s,$]);const Q=c.useMemo(()=>({...$,validateTrigger:h}),[$,h]),F=c.createElement(Gd.Provider,{value:null},c.createElement(Cs.Provider,{value:Q},B));return p===!1?F:c.createElement(p,Fh({},R,{ref:w,onSubmit:D=>{D.preventDefault(),D.stopPropagation(),$.submit()},onReset:D=>{D.preventDefault(),$.resetFields(),R.onReset?.(D)}}),F)};function fg(e){try{return JSON.stringify(e)}catch{return Math.random()}}function I8(...e){const[t,o={}]=e,r=qA(o)?{form:o}:o,s=r.form,[l,d]=c.useState(()=>typeof t=="function"?t({}):void 0),f=c.useMemo(()=>fg(l),[l]),p=c.useRef(f);p.current=f;const m=c.useContext(Cs),h=s||m,b=h&&h._init,{getFieldsValue:v,getInternalHooks:x}=h,{registerWatch:S}=x(oi),C=ut((w,N)=>{const $=r.preserve?N??v(!0):w??v(),E=typeof t=="function"?t($):qo($,$n(t));fg(l)!==fg(E)&&d(E)}),R=typeof t=="function"?t:JSON.stringify(t);return c.useEffect(()=>{b&&C()},[b,R]),c.useEffect(()=>b?S((N,$)=>{C(N,$)}):void 0,[b]),l}const B8=c.forwardRef(A8),gc=B8;gc.FormProvider=z8;gc.Field=E2;gc.List=M8;gc.useForm=w2;gc.useWatch=I8;const qr=c.createContext({}),_8=({children:e,status:t,override:o})=>{const r=c.useContext(qr),s=c.useMemo(()=>{const l={...r};return o&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,o,r]);return c.createElement(qr.Provider,{value:s},e)},P8=c.createContext(void 0),$s=e=>{const{space:t,form:o,children:r}=e;if(!pr(r))return null;let s=r;return o&&(s=le.createElement(_8,{override:!0,status:!0},s)),t&&(s=le.createElement(N5,null,s)),s},j8=()=>To()&&window.document.documentElement;function N2(e,t,o){return c.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}const xf=e=>{const{prefixCls:t,className:o,style:r,size:s,shape:l}=e,d=U({[`${t}-lg`]:s==="large",[`${t}-sm`]:s==="small"}),f=U({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),p=c.useMemo(()=>Wo(s)?{width:s,height:s,lineHeight:`${s}px`}:{},[s]);return c.createElement("span",{className:U(t,d,f,o),style:{...p,...r}})},H8=new Ct("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),w0=e=>({height:e,lineHeight:re(e)}),Ma=e=>({width:e,...w0(e)}),D8=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:H8,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),mg=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...w0(e)}),L8=e=>{const{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:s,controlHeightSM:l}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...Ma(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Ma(s)},[`${t}${t}-sm`]:{...Ma(l)}}},V8=e=>{const{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:s,controlHeightSM:l,gradientFromColor:d,calc:f}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:d,borderRadius:o,...mg(t,f)},[`${r}-lg`]:{...mg(s,f)},[`${r}-sm`]:{...mg(l,f)}}},R2=e=>{const{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:r,calc:s}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...Ma(s(r).mul(2).equal())}},F8=e=>({[e.skeletonNodeCls]:{...R2(e)}}),q8=e=>{const{skeletonImageCls:t,imageSizeBase:o,calc:r}=e;return{[t]:{...R2(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Ma(o),maxWidth:r(o).mul(4).equal(),maxHeight:r(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},pg=(e,t,o)=>{const{skeletonButtonCls:r}=e;return{[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},gg=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...w0(e)}),U8=e=>{const{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:s,controlHeightSM:l,gradientFromColor:d,calc:f}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:d,borderRadius:t,width:f(r).mul(2).equal(),minWidth:f(r).mul(2).equal(),...gg(r,f)},...pg(e,r,o),[`${o}-lg`]:{...gg(s,f)},...pg(e,s,`${o}-lg`),[`${o}-sm`]:{...gg(l,f)},...pg(e,l,`${o}-sm`)}},W8=e=>{const{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:s,skeletonButtonCls:l,skeletonInputCls:d,skeletonNodeCls:f,skeletonImageCls:p,controlHeight:m,controlHeightLG:h,controlHeightSM:b,gradientFromColor:v,padding:x,marginSM:S,borderRadius:C,titleHeight:R,blockRadius:w,paragraphLiHeight:N,controlHeightXS:$,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:x,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:v,...Ma(m)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...Ma(h)},[`${o}-sm`]:{...Ma(b)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:R,background:v,borderRadius:w,[`+ ${s}`]:{marginBlockStart:b}},[s]:{padding:0,"> li":{width:"100%",height:N,listStyle:"none",background:v,borderRadius:w,"+ li":{marginBlockStart:$}}},[`${s}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${s} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:S,[`+ ${s}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...U8(e),...L8(e),...V8(e),...F8(e),...q8(e)},[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[d]:{width:"100%"}},[`${t}${t}-active`]:{[`
153
+ ${r},
154
+ ${s} > li,
155
+ ${o},
156
+ ${l},
157
+ ${d},
158
+ ${f},
159
+ ${p}
160
+ `]:{...D8(e)}}}},G8=e=>{const{colorFillContent:t,colorFill:o}=e,r=t,s=o;return{color:r,colorGradientEnd:s,gradientFromColor:r,gradientToColor:s,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},hc=Qt("Skeleton",e=>{const{componentCls:t,calc:o}=e,r=kt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return W8(r)},G8,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),X8=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:s,active:l,style:d,styles:f,shape:p="circle",size:m,...h}=e,{getPrefixCls:b}=c.useContext(bt),v=b("skeleton",t),[x,S]=hc(v),C=zo(w=>m??w),R=U(v,`${v}-element`,{[`${v}-active`]:l},r?.root,o,s,x,S);return c.createElement("div",{className:R,style:f?.root},c.createElement(xf,{prefixCls:`${v}-avatar`,className:r?.content,style:{...f?.content,...d},shape:p,size:C,...h}))},k8=e=>{const{prefixCls:t,className:o,rootClassName:r,classNames:s,active:l,style:d,styles:f,block:p=!1,size:m,...h}=e,{getPrefixCls:b}=c.useContext(bt),v=b("skeleton",t),[x,S]=hc(v),C=zo(w=>m??w),R=U(v,`${v}-element`,{[`${v}-active`]:l,[`${v}-block`]:p},s?.root,o,r,x,S);return c.createElement("div",{className:R,style:f?.root},c.createElement(xf,{prefixCls:`${v}-button`,className:s?.content,style:{...f?.content,...d},size:C,...h}))},M2=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:s,internalClassName:l,style:d,styles:f,active:p,children:m}=e,{getPrefixCls:h}=c.useContext(bt),b=h("skeleton",t),[v,x]=hc(b),S=U(b,`${b}-element`,{[`${b}-active`]:p},v,r?.root,o,s,x);return c.createElement("div",{className:S,style:f?.root},c.createElement("div",{className:U(r?.content,l||`${b}-node`),style:{...f?.content,...d}},m))},Y8=e=>{const{getPrefixCls:t}=c.useContext(bt),o=t("skeleton",e.prefixCls);return c.createElement(M2,{...e,internalClassName:`${o}-image`},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},K8=e=>{const{prefixCls:t,className:o,classNames:r,rootClassName:s,active:l,block:d,style:f,styles:p,size:m,...h}=e,{getPrefixCls:b}=c.useContext(bt),v=b("skeleton",t),[x,S]=hc(v),C=zo(w=>m??w),R=U(v,`${v}-element`,{[`${v}-active`]:l,[`${v}-block`]:d},r?.root,o,s,x,S);return c.createElement("div",{className:R,style:p?.root},c.createElement(xf,{prefixCls:`${v}-input`,className:r?.content,style:{...p?.content,...f},size:C,...h}))},Q8=(e,t)=>{const{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},Z8=e=>{const{prefixCls:t,className:o,style:r,rows:s=0}=e,l=Array.from({length:s}).map((d,f)=>c.createElement("li",{key:f,style:{width:Q8(f,e)}}));return c.createElement("ul",{className:U(t,o),style:r},l)},J8=({prefixCls:e,className:t,width:o,style:r})=>c.createElement("h3",{className:U(e,t),style:{width:o,...r}});function hg(e){return Ut(e)?e:{}}function eI(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function tI(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function nI(e,t){const o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}const Ia=e=>{const{prefixCls:t,loading:o,className:r,rootClassName:s,classNames:l,style:d,styles:f,children:p,avatar:m=!1,title:h=!0,paragraph:b=!0,active:v,round:x}=e,{getPrefixCls:S,direction:C,className:R,style:w,classNames:N,styles:$}=Kt("skeleton"),E=S("skeleton",t),[T,z]=hc(E),A={...e,avatar:m,title:h,paragraph:b},I=pn(w),j=pn(d),[L,B]=mn([N,l],[$,I,f,j],{props:A});if(o||!("loading"in e)){const H=!!m,q=!!h,Q=!!b;let F;if(H){const X={className:L.avatar,prefixCls:`${E}-avatar`,...eI(q,Q),...hg(m),style:B.avatar};F=c.createElement("div",{className:U(L.header,`${E}-header`),style:B.header},c.createElement(xf,{...X}))}let D;if(q||Q){let X;if(q){const Z={className:L.title,prefixCls:`${E}-title`,...tI(H,Q),...hg(h),style:B.title};X=c.createElement(J8,{...Z})}let ee;if(Q){const Z={className:L.paragraph,prefixCls:`${E}-paragraph`,...nI(H,q),...hg(b),style:B.paragraph};ee=c.createElement(Z8,{...Z})}D=c.createElement("div",{className:U(L.section,`${E}-section`),style:B.section},X,ee)}const G=U(E,{[`${E}-with-avatar`]:H,[`${E}-active`]:v,[`${E}-rtl`]:C==="rtl",[`${E}-round`]:x},L.root,R,r,s,T,z);return c.createElement("div",{className:G,style:B.root},F,D)}return p??null};Ia.Button=k8;Ia.Avatar=X8;Ia.Input=K8;Ia.Image=Y8;Ia.Node=M2;function _C(){}const oI=c.createContext({add:_C,remove:_C});function T2(e){const t=c.useContext(oI),o=c.useRef(null);return ut(s=>{if(s){const l=e?s.querySelector(e):s;l&&(t.add(l),o.current=l)}else t.remove(o.current)})}const PC=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=c.useContext(pc);return le.createElement(Mo,{onClick:o,...e},t)},jC=()=>{const{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:s}=c.useContext(pc);return le.createElement(Mo,{...m2(o),loading:e,onClick:s,...t},r)};function rI(e,t){return le.createElement("span",{className:`${e}-close-x`},t||le.createElement(gr,{className:`${e}-close-icon`}))}const aI=e=>{const{okText:t,okType:o="primary",cancelText:r,confirmLoading:s,onOk:l,onCancel:d,okButtonProps:f,cancelButtonProps:p,footer:m}=e,[h]=za("Modal",$z()),b=t||h?.okText,v=r||h?.cancelText,x=le.useMemo(()=>({confirmLoading:s,okButtonProps:f,cancelButtonProps:p,okTextLocale:b,cancelTextLocale:v,okType:o,onOk:l,onCancel:d}),[s,f,p,b,v,o,l,d]);let S;return fn(m)||typeof m>"u"?(S=le.createElement(le.Fragment,null,le.createElement(PC,null),le.createElement(jC,null)),fn(m)&&(S=m(S,{OkBtn:jC,CancelBtn:PC})),S=le.createElement(v2,{value:x},S)):S=m,le.createElement(qw,{disabled:!1},S)},iI=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},sI=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},lI=(e,t)=>{const{componentCls:o,gridColumns:r,antCls:s}=e,[l,d]=Yt(s,"grid"),[,f]=Yt(s,"col"),p={};for(let m=r;m>=0;m--)m===0?(p[`${o}${t}-${m}`]={display:"none"},p[`${o}-push-${m}`]={insetInlineStart:"auto"},p[`${o}-pull-${m}`]={insetInlineEnd:"auto"},p[`${o}${t}-push-${m}`]={insetInlineStart:"auto"},p[`${o}${t}-pull-${m}`]={insetInlineEnd:"auto"},p[`${o}${t}-offset-${m}`]={marginInlineStart:0},p[`${o}${t}-order-${m}`]={order:0}):(p[`${o}${t}-${m}`]=[{[l("display")]:"block",display:"block"},{display:d("display"),flex:`0 0 ${m/r*100}%`,maxWidth:`${m/r*100}%`}],p[`${o}${t}-push-${m}`]={insetInlineStart:`${m/r*100}%`},p[`${o}${t}-pull-${m}`]={insetInlineEnd:`${m/r*100}%`},p[`${o}${t}-offset-${m}`]={marginInlineStart:`${m/r*100}%`},p[`${o}${t}-order-${m}`]={order:m});return p[`${o}${t}-flex`]={flex:f(`${t.replace(/-/,"")}-flex`)},p},qh=(e,t)=>lI(e,t),cI=(e,t,o)=>({[`@media (min-width: ${re(t)})`]:{...qh(e,o)}}),uI=()=>({}),dI=()=>({});Qt("Grid",iI,uI);const O2=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin});Qt("Grid",e=>{const t=kt(e,{gridColumns:24}),o=O2(t);return delete o.xs,[sI(t),qh(t,""),qh(t,"-xs"),Object.keys(o).map(r=>cI(t,o[r],`-${r}`)).reduce((r,s)=>({...r,...s}),{})]},dI);function HC(e){return{position:e,inset:0}}const fI=e=>{const{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...HC("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...HC("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:g2(e)}]},mI=e=>{const{componentCls:t,motionDurationMid:o}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${re(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Vn(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${re(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...Ns(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:re(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Lr(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${re(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
161
+ ${t}-body,
162
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},pI=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},gI=e=>{const{componentCls:t}=e,o=O2(e),r={...o};delete r.xs;const s=`--${t.replace(".","")}-`,l=Object.keys(r).map(d=>({[`@media (min-width: ${re(r[d])})`]:{width:`var(${s}${d}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(go(Object.keys(o).map((d,f)=>{const p=Object.keys(o)[f-1];return p?{[`${s}${d}-width`]:`var(${s}${p}-width)`}:null})),[{width:`var(${s}xs-width)`}],go(l))}}},z2=e=>{const t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return kt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},A2=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${re(e.padding)} ${re(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${re(e.paddingXS)} ${re(e.padding)}`:0,footerBorderTop:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${re(e.padding*2)} ${re(e.padding*2)} ${re(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),hI=Qt("Modal",e=>{const t=z2(e);return[mI(t),pI(t),fI(t),$0(t,"zoom"),gI(t)]},A2,{unitless:{titleLineHeight:!0}});let Uh;const bI=e=>{Uh={x:e.pageX,y:e.pageY},setTimeout(()=>{Uh=null},100)};j8()&&document.documentElement.addEventListener("click",bI,!0);const yI=e=>{const{prefixCls:t,className:o,rootClassName:r,open:s,wrapClassName:l,centered:d,getContainer:f,style:p,width:m=520,footer:h,classNames:b,styles:v,children:x,loading:S,confirmLoading:C,zIndex:R,mousePosition:w,onOk:N,onCancel:$,okButtonProps:E,cancelButtonProps:T,destroyOnHidden:z,destroyOnClose:A,panelRef:I=null,closable:j,mask:L,modalRender:B,maskClosable:H,_semanticOmit:q,scrollLock:Q,focusTriggerAfterClose:F,focusable:D,_renderSemanticContent:G,...X}=e,{getPopupContainer:ee,getPrefixCls:Z,direction:_,className:V,style:Y,classNames:W,styles:K,centered:te,cancelButtonProps:k,okButtonProps:se,mask:ce,focusable:ae}=Kt("modal"),{modal:pe}=c.useContext(bt),[oe,fe]=c.useMemo(()=>typeof j=="boolean"?[void 0,void 0]:[j?.afterClose,j?.onClose],[j]),he=Z("modal",t),be=Z(),[Ee,Se,ye]=e2(L,ce,he,H),Ne=N2({...ae,...D},Ee,F),Oe=Qe=>{C||($?.(Qe),fe?.())},Ce=Qe=>{N?.(Qe),fe?.()},Ie=hr(he),[Me,je]=hI(he,Ie),et=U(l,{[`${he}-centered`]:d??te,[`${he}-wrap-rtl`]:_==="rtl"}),ke=h!==null&&!S?c.createElement(aI,{...e,okButtonProps:{...se,...E},onOk:Ce,cancelButtonProps:{...k,...T},onCancel:Oe}):null,[Le,Ve,Ke,qe]=Jw(xs(e),xs(pe),{closable:!0,closeIcon:c.createElement(gr,{className:`${he}-close-icon`}),closeIconRender:Qe=>rI(he,Qe)}),Ae=Le?{disabled:Ke,closeIcon:Ve,afterClose:oe,...qe}:!1,Pe=B?Qe=>c.createElement("div",{className:`${he}-render`},B(Qe)):void 0,We=`.${he}-${B?"render":"container"}`,Be=T2(We),Te=no(I,Be),[Ge,nt]=mc("Modal",R),ot={...e,width:m,panelRef:I,focusTriggerAfterClose:Ne.focusTriggerAfterClose,focusable:Ne,mask:Ee,maskClosable:ye,zIndex:Ge},[yt,st]=mn([W,b,Se],[K,v],{props:ot}),Bt=q?xn(yt,q):yt,_t=q?xn(st,q):st,pt=G?G({classNames:yt,styles:st}):x,[zt,wt]=c.useMemo(()=>Ut(m)?[void 0,m]:[m,void 0],[m]),Dt=c.useMemo(()=>{const Qe={};return wt&&Object.keys(wt).forEach(At=>{const He=wt[At];Kn(He)&&(Qe[`--${he}-${At}-width`]=Wo(He)?`${He}px`:He)}),Qe},[he,wt]);return c.createElement($s,{form:!0,space:!0},c.createElement(hf.Provider,{value:nt},c.createElement(FA,{width:zt,...X,zIndex:Ge,getContainer:f===void 0?ee:f,prefixCls:he,rootClassName:U(Me,r,je,Ie,Bt.root),rootStyle:_t.root,footer:ke,visible:s,mousePosition:w??Uh,onClose:Oe,closable:Ae,closeIcon:Ve,transitionName:Fr(be,"zoom",e.transitionName),maskTransitionName:Fr(be,"fade",e.maskTransitionName),mask:Ee,maskClosable:ye,scrollLock:Q,className:U(Me,o,V),style:{...Y,...p,...Dt},classNames:{...Bt,wrapper:U(Bt.wrapper,et)},styles:_t,panelRef:Te,destroyOnHidden:z??A,modalRender:Pe,focusTriggerAfterClose:Ne.focusTriggerAfterClose,focusTrap:Ne.trap},S?c.createElement(Ia,{active:!0,title:!1,paragraph:{rows:4},className:`${he}-body-skeleton`}):pt)))},vI=e=>{const{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:s,fontSize:l,lineHeight:d,modalTitleHeight:f,fontHeight:p,confirmBodyPadding:m}=e,h=`${t}-confirm`;return{[h]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${h}-body-wrapper`]:{...mi()},[`&${t} ${t}-body`]:{padding:m},[`${h}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:s,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(p).sub(s).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(f).sub(s).equal()).div(2).equal()}},[`${h}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${re(e.marginSM)})`},[`${h}-body-no-icon ${h}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${h}-paragraph`]:{maxWidth:`calc(100% - ${re(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${h}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${h}-container`]:{color:e.colorText,fontSize:l,lineHeight:d},[`${h}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${h}-error ${h}-body > ${e.iconCls}`]:{color:e.colorError},[`${h}-warning ${h}-body > ${e.iconCls},
163
+ ${h}-confirm ${h}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${h}-info ${h}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${h}-success ${h}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},xI=df(["Modal","confirm"],e=>{const t=z2(e);return vI(t)},A2,{order:-1e3}),SI=["body"],CI=e=>{const{prefixCls:t,icon:o,okText:r,cancelText:s,confirmPrefixCls:l,type:d,okCancel:f,footer:p,locale:m,autoFocusButton:h,focusable:b,contentClassName:v,contentStyle:x,...S}=e,{infoIcon:C,successIcon:R,errorIcon:w,warningIcon:N}=Kt("modal");let $=o;if(o===void 0)switch(d){case"info":$=Uo(C,c.createElement(mf,null));break;case"success":$=Uo(R,c.createElement(uc,null));break;case"error":$=Uo(w,c.createElement(gi,null));break;default:$=Uo(N,c.createElement(ff,null))}const E=f??d==="confirm",T=c.useMemo(()=>{const G=b?.autoFocusButton||h;return G||G===null?G:"ok"},[h,b?.autoFocusButton]),[z]=za("Modal"),A=m||z,I=r||(E?A?.okText:A?.justOkText),j=s||A?.cancelText,{closable:L}=S,{onClose:B}=Ut(L)?L:{},H=c.useMemo(()=>({autoFocusButton:T,cancelTextLocale:j,okTextLocale:I,mergedOkCancel:E,onClose:B,...S}),[T,j,I,E,B,S]),q=c.createElement(c.Fragment,null,c.createElement($C,null),c.createElement(EC,null)),Q=pr(e.title),F=pr($),D=`${l}-body`;return c.createElement("div",{className:`${l}-body-wrapper`},c.createElement("div",{className:U(D,{[`${D}-has-title`]:Q,[`${D}-no-icon`]:!F})},$,c.createElement("div",{className:`${l}-paragraph`},Q&&c.createElement("span",{className:`${l}-title`},e.title),c.createElement("div",{className:U(`${l}-content`,v),style:x},e.content))),p===void 0||fn(p)?c.createElement(v2,{value:H},c.createElement("div",{className:`${l}-btns`},fn(p)?p(q,{OkBtn:EC,CancelBtn:$C}):q)):p,c.createElement(xI,{prefixCls:t}))},$I=e=>{const{close:t,zIndex:o,maskStyle:r,direction:s,prefixCls:l,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:m=!1,onConfirm:h,styles:b,title:v,mask:x,maskClosable:S,okButtonProps:C,cancelButtonProps:R}=e,{cancelButtonProps:w,okButtonProps:N}=Kt("modal"),$=`${l}-confirm`,E=e.width||416,T=e.style||{},z=fn(b)?H=>({body:p,mask:r,...b(H)}):{body:p,mask:r,...b},A=xn(e,["bodyStyle","maskStyle"]),I=U($,`${$}-${e.type}`,{[`${$}-rtl`]:s==="rtl"},e.className),j=c.useMemo(()=>{const H=Mh(x,S);return H.closable??(H.closable=!1),H},[x,S]),[,L]=ko(),B=c.useMemo(()=>o!==void 0?o:L.zIndexPopupBase+g0,[o,L]);return c.createElement(yI,{...A,className:I,wrapClassName:U({[`${$}-centered`]:!!e.centered},d),onCancel:()=>{t?.({triggerCancel:!0}),h?.(!1)},title:v,footer:null,transitionName:Fr(f||"","zoom",e.transitionName),maskTransitionName:Fr(f||"","fade",e.maskTransitionName),mask:j,style:T,styles:z,width:E,zIndex:B,closable:m,_semanticOmit:SI,_renderSemanticContent:({classNames:H,styles:q})=>c.createElement(CI,{...e,confirmPrefixCls:$,okButtonProps:{...N,...C},cancelButtonProps:{...w,...R},contentClassName:H.body,contentStyle:q.body})})},EI=e=>{const{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:s}=e;return c.createElement(Aa,{prefixCls:t,iconPrefixCls:o,direction:r,theme:s},c.createElement($I,{...e}))};function wI(e){return{...e,type:"warning"}}function NI(e){return{...e,type:"info"}}function RI(e){return{...e,type:"success"}}function MI(e){return{...e,type:"error"}}function TI(e){return{...e,type:"confirm"}}const OI=c.forwardRef((e,t)=>{const{afterClose:o,config:r,...s}=e,[l,d]=c.useState(!0),[f,p]=c.useState(r),{direction:m,getPrefixCls:h}=c.useContext(bt),b=h("modal"),v=h(),x=()=>{o(),f.afterClose?.()},S=(...w)=>{d(!1),w.some($=>$?.triggerCancel)&&f.onCancel?.(()=>{},...w.slice(1))};c.useImperativeHandle(t,()=>({destroy:S,update:w=>{p(N=>{const $=fn(w)?w(N):w;return{...N,...$}})}}));const C=f.okCancel??f.type==="confirm",[R]=za("Modal",Oa.Modal);return c.createElement(EI,{prefixCls:b,rootPrefixCls:v,...f,close:S,open:l,afterClose:x,okText:f.okText||(C?R?.okText:R?.justOkText),direction:f.direction||m,cancelText:f.cancelText||R?.cancelText,...s})});let DC=0;const zI=c.memo(c.forwardRef((e,t)=>{const[o,r]=O3();return c.useImperativeHandle(t,()=>({patchElement:r}),[r]),c.createElement(c.Fragment,null,o)}));function AI(){const e=c.useRef(null),[t,o]=c.useState([]);c.useEffect(()=>{t.length&&(go(t).forEach(d=>{d()}),o([]))},[t]);const r=c.useCallback(l=>function(f){DC+=1;const p=c.createRef();let m;const h=new Promise(C=>{m=C});let b=!1,v;const x=c.createElement(OI,{key:`modal-${DC}`,config:l(f),ref:p,afterClose:()=>{v?.()},isSilent:()=>b,onConfirm:C=>{m(C)}});return v=e.current?.patchElement(x),{destroy:()=>{function C(){p.current?.destroy()}p.current?C():o(R=>[].concat(go(R),[C]))},update:C=>{function R(){p.current?.update(C)}p.current?R():o(w=>[].concat(go(w),[R]))},then:C=>(b=!0,h.then(C))}},[]);return[c.useMemo(()=>({info:r(NI),success:r(RI),error:r(MI),warning:r(wI),confirm:r(TI)}),[r]),c.createElement(zI,{key:"modal-holder",ref:e})]}const II={info:c.createElement(mf,null),success:c.createElement(uc,null),error:c.createElement(gi,null),warning:c.createElement(ff,null),loading:c.createElement(gf,null)};function I2(e,t){return t===null||t===!1?null:t||c.createElement(gr,{className:`${e}-close-icon`})}const BI=4.5,_I="topRight",PI={offset:8},jI=({children:e,prefixCls:t})=>{const o=hr(t),[r,s]=J3(t,o);return le.createElement(Ww,{classNames:{list:U(r,s,o)}},e)},HI=(e,{prefixCls:t,key:o})=>le.createElement(jI,{prefixCls:t,key:o},e),DI=le.forwardRef((e,t)=>{const{top:o,bottom:r,prefixCls:s,getContainer:l,maxCount:d,rtl:f,onAllRemoved:p,stack:m,duration:h=BI,pauseOnHover:b=!0,showProgress:v}=e,{getPrefixCls:x,getPopupContainer:S,direction:C}=Kt("notification"),{notification:R}=c.useContext(bt),w=s||x("notification"),N=c.useMemo(()=>Wo(h)&&h>0?h:!1,[h]),[$,E]=mn([R?.classNames,e?.classNames],[R?.styles,e?.styles],{props:e}),T=()=>Yw(o,r),z=()=>U({[`${w}-rtl`]:f??C==="rtl"}),A=()=>S3(w),I=kw(m,PI),[j,L]=Xw({prefixCls:w,style:T,className:z,motion:A,closable:{closeIcon:I2(w)},duration:N,getContainer:()=>l?.()||S?.()||document.body,maxCount:d,pauseOnHover:b,showProgress:v,classNames:$,styles:E,onAllRemoved:p,renderNotifications:HI,stack:I});return le.useImperativeHandle(t,()=>({...j,prefixCls:w,notification:R})),L});function LI(e){const t=le.useRef(null),{notification:o}=le.useContext(bt);return[le.useMemo(()=>{const s=p=>{if(!t.current)return;const{open:m,prefixCls:h,notification:b}=t.current,v=b?.className||{},x=b?.style||{},S=`${h}-notice`,{title:C,message:R,description:w,icon:N,type:$,btn:E,actions:T,className:z,style:A,role:I="alert",closeIcon:j,closable:L,classNames:B={},styles:H={},...q}=p,Q=C??R,F=pr(Q),D=T??E,G=I2(S,C3(j,e,b)),[X,ee,,Z]=Zw(xs({...e||{},...p}),xs(o),{closable:!0,closeIcon:G}),_=X?{onClose:Ut(L)?L.onClose:void 0,closeIcon:ee,...Z}:!1,V=ys(B,{props:p}),Y=ys(H,{props:p}),W=N||($?II[$]:null),K=!N&&$?`${S}-icon-${$}`:void 0;return m({placement:e?.placement??_I,...q,title:F?Q:null,description:w,icon:W,actions:D,role:I,classNames:{...V,icon:U(K,V?.icon)},styles:{...Y,root:{...x,...Y?.root}},className:U({[`${S}-${$}`]:$},z,v),style:A,closable:_})},d={open:s,destroy:p=>{p!==void 0?t.current?.close(p):t.current?.destroy()}};return["success","info","warning","error"].forEach(p=>{d[p]=m=>s({...m,type:p})}),d},[e,o]),le.createElement(DI,{key:"notification-holder",...e,ref:t})]}function VI(e){return LI(e)}const LC=le.createContext({}),B2=le.createContext({message:{},notification:{},modal:{}}),FI=e=>{const{componentCls:t,colorText:o,fontSize:r,lineHeight:s,fontFamily:l}=e;return{[t]:{color:o,fontSize:r,lineHeight:s,fontFamily:l,[`&${t}-rtl`]:{direction:"rtl"}}}},qI=()=>({}),UI=Qt("App",FI,qI),WI=le.forwardRef((e,t)=>{const{prefixCls:o,children:r,className:s,rootClassName:l,message:d,notification:f,style:p,component:m="div"}=e,{direction:h,getPrefixCls:b,className:v,style:x}=Kt("app"),S=b("app",o),[C,R]=UI(S),w=U(C,S,s,l,R,{[`${S}-rtl`]:h==="rtl"}),N=c.useContext(LC),$=le.useMemo(()=>({message:{...N.message,...d},notification:{...N.notification,...f}}),[d,f,N.message,N.notification]),[E,T]=g5($.message),[z,A]=VI($.notification),[I,j]=AI(),L=le.useMemo(()=>({message:E,notification:z,modal:I}),[E,z,I]),B=m===!1?le.Fragment:m,H={className:U(v,w),style:{...x,...p}};return le.createElement(B2.Provider,{value:L},le.createElement(LC.Provider,{value:$},le.createElement(B,{...m===!1?void 0:{...H,ref:t}},j,T,A,r)))}),GI=()=>le.useContext(B2),N0=WI;N0.useApp=GI;function XI(e){return t=>c.createElement(Aa,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,{...t}))}const kI=(e,t,o,r,s)=>XI(d=>{const{prefixCls:f,style:p}=d,m=c.useRef(null),[h,b]=c.useState(0),[v,x]=c.useState(0),[S,C]=Ro(!1,d.open),{getPrefixCls:R}=c.useContext(bt),w=R("select",f);c.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(z=>{const A=z[0].target;b(A.offsetHeight+8),x(A.offsetWidth)}),T=setInterval(()=>{const z=`.${w}-dropdown`,A=m.current?.querySelector(z);A&&(clearInterval(T),E.observe(A))},10);return()=>{clearInterval(T),E.disconnect()}}},[w]);let N={...d,style:{...p,margin:0},open:S,getPopupContainer:()=>m.current};N={...N,[t]:{overflow:{adjustX:!1,adjustY:!1}}};const $={paddingBottom:h,position:"relative",minWidth:v};return c.createElement("div",{ref:m,style:$},c.createElement(e,{...N}))}),YI=(e,t,o,r,s=!1,l,d)=>{const f=c.useMemo(()=>typeof o=="boolean"?{allowClear:o}:o&&typeof o=="object"?o:{allowClear:!1},[o]);return c.useMemo(()=>{const p=!s&&f.allowClear!==!1&&(t.length||l)&&!(d==="combobox"&&l==="");return{allowClear:p,clearIcon:p?f.clearIcon||r||"×":null}},[f,r,s,t.length,l,d])},_2=c.createContext(null);function hi(){return c.useContext(_2)}function KI(e=250){const t=c.useRef(null),o=c.useRef(null);c.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);function r(s){(s||t.current===null)&&(t.current=s),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function P2(e,t){return e.filter(o=>o).some(o=>o.contains(t)||o===t)}function QI(e,t,o,r){const s=ut(l=>{if(r)return;let d=l.target;d.shadowRoot&&l.composed&&(d=l.composedPath()[0]||d),l._ori_target&&(d=l._ori_target),t&&!P2(e(),d)&&o(!1)});c.useEffect(()=>(window.addEventListener("mousedown",s),()=>window.removeEventListener("mousedown",s)),[s])}function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wh.apply(this,arguments)}const ZI=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},JI=(e,t)=>{const{prefixCls:o,disabled:r,visible:s,children:l,popupElement:d,animation:f,transitionName:p,popupStyle:m,popupClassName:h,direction:b="ltr",placement:v,builtinPlacements:x,popupMatchSelectWidth:S,popupRender:C,popupAlign:R,getPopupContainer:w,empty:N,onPopupVisibleChange:$,onPopupMouseEnter:E,onPopupMouseDown:T,onPopupBlur:z,...A}=e,I=`${o}-dropdown`;let j=d;C&&(j=C(d));const L=c.useMemo(()=>x||ZI(S),[x,S]),B=f?`${I}-${f}`:p,H=typeof S=="number",q=c.useMemo(()=>S===!1||H?"minWidth":"width",[S,H]);let Q=m;H&&(Q={...m,width:S});const F=c.useRef(null);return c.useImperativeHandle(t,()=>({getPopupElement:()=>F.current?.popupElement})),c.createElement(pf,Wh({},A,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:v||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:I,popupMotion:{motionName:B},popup:c.createElement("div",{onMouseEnter:E,onMouseDown:T,onBlur:z},j),ref:F,stretch:q,popupAlign:R,popupVisible:s,getPopupContainer:w,popupClassName:U(h,{[`${I}-empty`]:N}),popupStyle:Q,onPopupVisibleChange:$}),l)},eB=c.forwardRef(JI);function VC(e,t){const{key:o}=e;let r;return"value"in e&&({value:r}=e),o??(r!==void 0?r:`rc-index-key-${t}`)}function Gh(e){return typeof e<"u"&&!Number.isNaN(e)}function j2(e,t){const{label:o,value:r,options:s,groupLabel:l}=e||{},d=o||(t?"children":"label");return{label:d,value:r||"value",options:s||"options",groupLabel:l||d}}function tB(e,{fieldNames:t,childrenAsData:o}={}){const r=[],{label:s,value:l,options:d,groupLabel:f}=j2(t,!1);function p(m,h){Array.isArray(m)&&m.forEach(b=>{if(h||!(d in b)){const v=b[l];r.push({key:VC(b,r.length),groupOption:h,data:b,label:b[s],value:v})}else{let v=b[f];v===void 0&&o&&(v=b.label),r.push({key:VC(b,r.length),group:!0,data:b,label:v}),p(b[d],!0)}})}return p(e,!1),r}function Xh(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Yn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const nB=(e,t,o)=>{if(!t||!t.length)return null;let r=!1;const s=(d,[f,...p])=>{if(!f)return[d];const m=d.split(f);return r=r||m.length>1,m.reduce((h,b)=>[...h,...s(b,p)],[]).filter(Boolean)},l=s(e,t);return r?typeof o<"u"?l.slice(0,o):l:null};function oB(e){const{visible:t,values:o}=e;if(!t)return null;const r=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${o.slice(0,r).map(({label:s,value:l})=>["number","string"].includes(typeof s)?s:l).join(", ")}`,o.length>r?", ...":null)}const rB=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},R0=(e,t=1)=>{if(t<=0){e();return}rB(()=>{R0(e,t-1)})};function aB(e,t,o,r){const[s,l]=c.useState(!1);c.useEffect(()=>{l(!0)},[]);const[d,f]=Ro(e,t),[p,m]=c.useState(!1),h=s?d:!1,b=r(h),v=c.useRef(0),x=ut(C=>{o&&b!==C&&o(C),f(C)}),S=ut((C,R={})=>{const{cancelFun:w}=R;v.current+=1;const N=v.current,$=typeof C=="boolean"?C:!b;m(!$);function E(){N===v.current&&!w?.()&&(x($),m(!1))}$?E():R0(()=>{E()})});return[h,b,S,p]}function bg(e){const{children:t,...o}=e;return t?c.createElement("div",o,t):null}const H2=c.createContext(null);function bc(){return c.useContext(H2)}const D2=c.forwardRef((e,t)=>{const{onChange:o,onKeyDown:r,onBlur:s,style:l,syncWidth:d,value:f,className:p,autoComplete:m,...h}=e,{prefixCls:b,mode:v,onSearch:x,onSearchSubmit:S,onInputBlur:C,autoFocus:R,tokenWithEnter:w,placeholder:N,components:{input:$="input"}}=bc(),{id:E,classNames:T,styles:z,open:A,activeDescendantId:I,role:j,disabled:L}=hi()||{},B=U(`${b}-input`,T?.input,p),H=c.useRef(!1),q=c.useRef(null),Q=c.useRef(null);c.useImperativeHandle(t,()=>Q.current);const F=K=>{let{value:te}=K.target;if(w&&q.current&&/[\r\n]/.test(q.current)){const k=q.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");te=te.replace(k,q.current)}q.current=null,x&&x(te,!0,H.current),o?.(K)},D=K=>{const{key:te}=K,{value:k}=K.currentTarget;te==="Enter"&&v==="tags"&&!A&&!H.current&&S&&S(k),r?.(K)},G=K=>{C?.(),s?.(K)},X=()=>{H.current=!0},ee=K=>{if(H.current=!1,v!=="combobox"){const{value:te}=K.currentTarget;x?.(te,!0,!1)}},Z=K=>{const{clipboardData:te}=K,k=te?.getData("text");q.current=k||""},[_,V]=c.useState(void 0);dn(()=>{const K=Q.current;if(d&&K){K.style.width="0px";const te=K.scrollWidth;V(te),K.style.width=""}},[d,f]);const Y={id:E,type:"text",...h,ref:Q,style:{...z?.input,...l,"--select-input-width":_},autoFocus:R,autoComplete:m||"new-password",className:B,disabled:L,value:f||"",onChange:F,onKeyDown:D,onBlur:G,onPaste:Z,onCompositionStart:X,onCompositionEnd:ee,role:j||"combobox","aria-expanded":A||!1,"aria-haspopup":"listbox","aria-owns":A?`${E}_list`:void 0,"aria-autocomplete":"list","aria-controls":A?`${E}_list`:void 0,"aria-activedescendant":A?I:void 0};if(c.isValidElement($)){const K=$.props||{},te={placeholder:e.placeholder||N,...Y,...K};return Object.keys(K).forEach(k=>{const se=K[k];typeof se=="function"&&(te[k]=(...ce)=>{se(...ce),Y[k]?.(...ce)})}),te.ref=no($.ref,Y.ref),c.cloneElement($,te)}const W=$;return c.createElement(W,Y)});function L2(e){const{prefixCls:t,placeholder:o,displayValues:r}=bc(),{classNames:s,styles:l}=hi(),{show:d=!0}=e;return r.length?null:c.createElement("div",{className:U(`${t}-placeholder`,s?.placeholder),style:{visibility:d?"visible":"hidden",...l?.placeholder}},o)}const M0=c.createContext(null);function V2(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function iB(e){return e!=null}function sB(e){return!e&&e!==0}function FC(e){return["string","number"].includes(typeof e)}function kh(e){let t;return e&&(FC(e.title)?t=e.title.toString():FC(e.label)&&(t=e.label.toString())),t}function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Yh.apply(this,arguments)}const lB=c.forwardRef(({inputProps:e},t)=>{const{prefixCls:o,searchValue:r,activeValue:s,displayValues:l,maxLength:d,mode:f,components:p}=bc(),{triggerOpen:m,title:h,showSearch:b,classNames:v,styles:x}=hi(),S=c.useContext(M0),[C,R]=c.useState(!1),w=f==="combobox",N=l[0],$=c.useMemo(()=>w&&s&&!C&&m?s:b?r:"",[w,s,C,m,r,b]),[E,T,z,A]=c.useMemo(()=>{let B,H,q;if(N&&S?.flattenOptions){const F=S.flattenOptions.find(D=>D.value===N.value);F?.data&&(B=F.data.className,H=F.data.style,q=kh(F.data))}return N&&!q&&(q=kh(N)),h!==void 0&&(q=h),[B,H,q,!!B||!!H]},[N,S?.flattenOptions,h]);c.useEffect(()=>{w&&R(!1)},[w,s]);const I=N&&N.label!==null&&N.label!==void 0&&String(N.label).trim()!=="",L=!(w&&p?.input)?N?A?c.createElement("div",{className:U(`${o}-content-value`,E),style:{...$?{visibility:"hidden"}:{},...T},title:z},N.label):N.label:c.createElement(L2,{show:!$}):null;return c.createElement("div",{className:U(`${o}-content`,I&&`${o}-content-has-value`,$&&`${o}-content-has-search-value`,A&&`${o}-content-has-option-style`,v?.content),style:x?.content,title:A?void 0:z},L,c.createElement(D2,Yh({ref:t},e,{value:$,maxLength:f==="combobox"?d:void 0,onChange:B=>{R(!0),e.onChange?.(B)}})))}),ts=void 0;function cB(e,t){const{prefixCls:o,invalidate:r,item:s,renderItem:l,responsive:d,responsiveDisabled:f,registerSize:p,itemKey:m,className:h,style:b,children:v,display:x,order:S,component:C="div",...R}=e,w=d&&!x;function N(A){p(m,A)}c.useEffect(()=>()=>{N(null)},[]);const $=l&&s!==ts?l(s,{index:S}):v;let E;r||(E={opacity:w?0:1,height:w?0:ts,overflowY:w?"hidden":ts,order:d?S:ts,pointerEvents:w?"none":ts,position:w?"absolute":ts});const T={};w&&(T["aria-hidden"]=!0);let z=c.createElement(C,fr({className:U(!r&&o,h),style:{...E,...b}},T,R,{ref:t}),$);return d&&(z=c.createElement(mr,{onResize:({offsetWidth:A})=>{N(A)},disabled:f},z)),z}const jl=c.forwardRef(cB);function uB(e){if(typeof MessageChannel>"u")Lt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function dB(){const e=c.useRef(null);return o=>{e.current||(e.current=[],uB(()=>{di.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(o)}}function ns(e,t){const[o,r]=c.useState(t),s=ut(l=>{e(()=>{r(l)})});return[o,s]}const Yd=le.createContext(null),fB=(e,t)=>{const o=c.useContext(Yd);if(!o){const{component:f="div",...p}=e;return c.createElement(f,fr({},p,{ref:t}))}const{className:r,...s}=o,{className:l,...d}=e;return c.createElement(Yd.Provider,{value:null},c.createElement(jl,fr({ref:t,className:U(r,l)},s,d)))},mB=c.forwardRef(fB),F2="responsive",q2="invalidate";function pB(e){return`+ ${e.length} ...`}function gB(e,t){const{prefixCls:o="rc-overflow",data:r=[],renderItem:s,renderRawItem:l,itemKey:d,itemWidth:f=10,ssr:p,style:m,className:h,maxCount:b,renderRest:v,renderRawRest:x,prefix:S,suffix:C,component:R="div",itemComponent:w,onVisibleChange:N,...$}=e,E=p==="full",T=dB(),[z,A]=ns(T,null),I=z||0,[j,L]=ns(T,new Map),[B,H]=ns(T,0),[q,Q]=ns(T,0),[F,D]=ns(T,0),[G,X]=ns(T,0),[ee,Z]=c.useState(null),[_,V]=c.useState(null),Y=c.useMemo(()=>_===null&&E?Number.MAX_SAFE_INTEGER:_||0,[_,z]),[W,K]=c.useState(!1),te=`${o}-item`,k=Math.max(B,q),se=b===F2,ce=r.length&&se,ae=b===q2,pe=ce||typeof b=="number"&&r.length>b,oe=c.useMemo(()=>{let Ae=r;return ce?z===null&&E?Ae=r:Ae=r.slice(0,Math.min(r.length,I/f)):typeof b=="number"&&(Ae=r.slice(0,b)),Ae},[r,f,z,b,ce]),fe=c.useMemo(()=>ce?r.slice(Y+1):r.slice(oe.length),[r,oe,ce,Y]),he=c.useCallback((Ae,Pe)=>typeof d=="function"?d(Ae):(d&&Ae?.[d])??Pe,[d]),be=c.useCallback(s||(Ae=>Ae),[s]);function Ee(Ae,Pe,We){_===Ae&&(Pe===void 0||Pe===ee)||(V(Ae),We||(K(Ae<r.length-1),N?.(Ae)),Pe!==void 0&&Z(Pe))}function Se(Ae,Pe){A(Pe.clientWidth)}function ye(Ae,Pe){L(We=>{const Be=new Map(We);return Pe===null?Be.delete(Ae):Be.set(Ae,Pe),Be})}function Ne(Ae,Pe){Q(Pe),H(q)}function Oe(Ae,Pe){D(Pe)}function Ce(Ae,Pe){X(Pe)}function Ie(Ae){return j.get(he(oe[Ae],Ae))}dn(()=>{if(I&&typeof k=="number"&&oe){let Ae=F+G;const Pe=oe.length,We=Pe-1;if(!Pe){Ee(0,null);return}for(let Be=0;Be<Pe;Be+=1){let Te=Ie(Be);if(E&&(Te=Te||0),Te===void 0){Ee(Be-1,void 0,!0);break}if(Ae+=Te,We===0&&Ae<=I||Be===We-1&&Ae+Ie(We)<=I){Ee(We,null);break}else if(Ae+k>I){Ee(Be-1,Ae-Te-G+q);break}}C&&Ie(0)+G>I&&Z(null)}},[I,j,q,F,G,he,oe]);const Me=W&&!!fe.length;let je={};ee!==null&&ce&&(je={position:"absolute",top:0,insetInlineStart:ee});const et={prefixCls:te,responsive:ce,component:w,invalidate:ae},ke=l?(Ae,Pe)=>{const We=he(Ae,Pe);return c.createElement(Yd.Provider,{key:We,value:{...et,order:Pe,item:Ae,itemKey:We,registerSize:ye,display:Pe<=Y}},l(Ae,Pe))}:(Ae,Pe)=>{const We=he(Ae,Pe);return c.createElement(jl,fr({},et,{order:Pe,key:We,item:Ae,renderItem:be,itemKey:We,registerSize:ye,display:Pe<=Y}))},Le={order:Me?Y:Number.MAX_SAFE_INTEGER,className:`${te}-rest`,registerSize:Ne,display:Me},Ve=v||pB,Ke=x?c.createElement(Yd.Provider,{value:{...et,...Le}},x(fe)):c.createElement(jl,fr({},et,Le),typeof Ve=="function"?Ve(fe):Ve),qe=c.createElement(R,fr({className:U(!ae&&o,h),style:m,ref:t},$),S&&c.createElement(jl,fr({},et,{responsive:se,responsiveDisabled:!ce,order:-1,className:`${te}-prefix`,registerSize:Oe,display:!0}),S),oe.map(ke),pe?Ke:null,C&&c.createElement(jl,fr({},et,{responsive:se,responsiveDisabled:!ce,order:Y,className:`${te}-suffix`,registerSize:Ce,display:!0,style:je}),C));return se?c.createElement(mr,{onResize:Se,disabled:!ce},qe):qe}const Dr=c.forwardRef(gB);Dr.Item=mB;Dr.RESPONSIVE=F2;Dr.INVALIDATE=q2;const U2=e=>{const{className:t,style:o,customizeIcon:r,customizeIconProps:s,children:l,onMouseDown:d,onClick:f}=e,p=typeof r=="function"?r(s):r;return c.createElement("span",{className:t,onMouseDown:m=>{m.preventDefault(),d?.(m)},style:{userSelect:"none",WebkitUserSelect:"none",...o},unselectable:"on",onClick:f,"aria-hidden":!0},p!==void 0?p:c.createElement("span",{className:U(t.split(/\s+/).map(m=>`${m}-icon`))},l))};function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Kh.apply(this,arguments)}function hB(e){return e.key??e.value}const qC=e=>{e.preventDefault(),e.stopPropagation()},bB=c.forwardRef(function({inputProps:t},o){const{prefixCls:r,displayValues:s,searchValue:l,mode:d,onSelectorRemove:f,removeIcon:p}=bc(),{disabled:m,showSearch:h,triggerOpen:b,rawOpen:v,toggleOpen:x,autoClearSearchValue:S,tagRender:C,maxTagPlaceholder:R,maxTagTextLength:w,maxTagCount:N,classNames:$,styles:E}=hi(),T=`${r}-selection-item`;let z=l;!v&&d==="multiple"&&S!==!1&&(z="");const A=h&&z||"",I=h&&!m,j=p??"×",L=R??(X=>`+ ${X.length} ...`),B=C,H=X=>{x(X)},q=X=>{f?.(X)},Q=(X,ee,Z,_,V)=>c.createElement("span",{title:kh(X),className:U(T,{[`${T}-disabled`]:Z},$?.item),style:E?.item},c.createElement("span",{className:U(`${T}-content`,$?.itemContent),style:E?.itemContent},ee),_&&c.createElement(U2,{className:U(`${T}-remove`,$?.itemRemove),style:E?.itemRemove,onMouseDown:qC,onClick:V,customizeIcon:j},"×")),F=(X,ee,Z,_,V,Y,W)=>{const K=te=>{qC(te),H(!b)};return c.createElement("span",{onMouseDown:K},B({label:ee,value:X,index:W?.index,disabled:Z,closable:_,onClose:V,isMaxTag:!!Y}))},D=(X,ee)=>{const{disabled:Z,label:_,value:V}=X,Y=!m&&!Z;let W=_;if(typeof w=="number"&&(typeof _=="string"||typeof _=="number")){const te=String(W);te.length>w&&(W=`${te.slice(0,w)}...`)}const K=te=>{te&&te.stopPropagation(),q(X)};return typeof B=="function"?F(V,W,Z,Y,K,void 0,ee):Q(X,W,Z,Y,K)},G=X=>{if(!s.length)return null;const ee=typeof L=="function"?L(X):L;return typeof B=="function"?F(void 0,ee,!1,!1,void 0,!0):Q({title:ee},ee,!1)};return c.createElement(Dr,{prefixCls:`${r}-content`,className:$?.content,style:E?.content,prefix:!s.length&&!A&&c.createElement(L2,null),data:s,renderItem:D,renderRest:G,suffix:c.createElement(D2,Kh({ref:o,disabled:m,readOnly:!I},t,{value:A||"",syncWidth:!0})),itemKey:hB,maxCount:N})}),yB=c.forwardRef(function(t,o){const{multiple:r,onInputKeyDown:s,tabIndex:l}=bc(),d=hi(),{showSearch:f}=d,m={...Qn(d,{aria:!0}),onKeyDown:s,readOnly:!f,tabIndex:l};return r?c.createElement(bB,{ref:o,inputProps:m}):c.createElement(lB,{ref:o,inputProps:m})});function vB(e){return e&&![Je.ESC,Je.SHIFT,Je.BACKSPACE,Je.TAB,Je.WIN_KEY,Je.ALT,Je.META,Je.WIN_KEY_RIGHT,Je.CTRL,Je.SEMICOLON,Je.EQUALS,Je.CAPS_LOCK,Je.CONTEXT_MENU,Je.UP,Je.LEFT,Je.RIGHT,Je.F1,Je.F2,Je.F3,Je.F4,Je.F5,Je.F6,Je.F7,Je.F8,Je.F9,Je.F10,Je.F11,Je.F12].includes(e)}function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Kd.apply(this,arguments)}const xB=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],SB=c.forwardRef(function(t,o){const{prefixCls:r,className:s,style:l,prefix:d,suffix:f,clearIcon:p,children:m,multiple:h,displayValues:b,placeholder:v,mode:x,searchValue:S,onSearch:C,onSearchSubmit:R,onInputBlur:w,maxLength:N,autoFocus:$,onMouseDown:E,onClearMouseDown:T,onInputKeyDown:z,onSelectorRemove:A,tokenWithEnter:I,components:j,...L}=t,{triggerOpen:B,toggleOpen:H,showSearch:q,disabled:Q,loading:F,classNames:D,styles:G}=hi(),X=c.useRef(null),ee=c.useRef(null),Z=ut(k=>{const{which:se}=k,ce=ee.current instanceof HTMLTextAreaElement;if(!ce&&B&&(se===Je.UP||se===Je.DOWN)&&k.preventDefault(),z&&z(k),ce&&!B&&~[Je.UP,Je.DOWN,Je.LEFT,Je.RIGHT].indexOf(se))return;!(k.ctrlKey||k.altKey||k.metaKey)&&vB(se)&&H(!0)});c.useImperativeHandle(o,()=>({focus:k=>{(ee.current||X.current).focus?.(k)},blur:()=>{(ee.current||X.current).blur?.()},nativeElement:ui(X.current)}));const _=ut(k=>{if(!Q){const se=ui(ee.current);k.nativeEvent._ori_target=se;const ce=se===k.target||se?.contains(k.target);se&&!ce&&k.preventDefault();const oe=B&&!h&&(x==="combobox"||q)||B&&h&&ce;k.nativeEvent._select_lazy?B&&!h&&H(!1):(ee.current?.focus(),oe||H())}E?.(k)}),{root:V}=j,Y=xn(L,xB),W=Qn(Y,{aria:!0}),K=Object.keys(W),te={...t,onInputKeyDown:Z};if(V){const k=V.props||{},se={...k,...Y};return Object.keys(k).forEach(ce=>{const ae=k[ce],pe=Y[ce];typeof ae=="function"&&typeof pe=="function"&&(se[ce]=(...oe)=>{pe(...oe),ae(...oe)})}),c.isValidElement(V)?c.cloneElement(V,{...se,ref:no(V.ref,X)}):c.createElement(V,Kd({},se,{ref:X}))}return c.createElement(H2.Provider,{value:te},c.createElement("div",Kd({},xn(Y,K),{ref:X,className:s,style:l,onMouseDown:_}),c.createElement(bg,{className:U(`${r}-prefix`,D?.prefix),style:G?.prefix},d),c.createElement(yB,{ref:ee}),c.createElement(bg,{className:U(`${r}-suffix`,{[`${r}-suffix-loading`]:F},D?.suffix),style:G?.suffix},f),p&&c.createElement(bg,{className:U(`${r}-clear`,D?.clear),style:G?.clear,onMouseDown:k=>{k.nativeEvent._select_lazy=!0,T?.(k)}},p),m))});function CB(e,t,o){return c.useMemo(()=>{let{root:r,input:s}=e||{};return o&&(r=o()),t&&(s=t()),{root:r,input:s}},[e,t,o])}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Qh.apply(this,arguments)}const Zh=e=>e==="tags"||e==="multiple",$B=c.forwardRef((e,t)=>{const{id:o,prefixCls:r,className:s,styles:l,classNames:d,showSearch:f,tagRender:p,showScrollBar:m="optional",direction:h,omitDomProps:b,displayValues:v,onDisplayValuesChange:x,emptyOptions:S,notFoundContent:C="Not Found",onClear:R,maxCount:w,placeholder:N,mode:$,disabled:E,loading:T,getInputElement:z,getRawInputElement:A,open:I,defaultOpen:j,onPopupVisibleChange:L,activeValue:B,onActiveValueChange:H,activeDescendantId:q,searchValue:Q,autoClearSearchValue:F,onSearch:D,onSearchSplit:G,tokenSeparators:X,allowClear:ee,prefix:Z,suffix:_,suffixIcon:V,clearIcon:Y,OptionList:W,animation:K,transitionName:te,popupStyle:k,popupClassName:se,popupMatchSelectWidth:ce,popupRender:ae,popupAlign:pe,placement:oe,builtinPlacements:fe,getPopupContainer:he,showAction:be=[],onFocus:Ee,onBlur:Se,onKeyUp:ye,onKeyDown:Ne,onMouseDown:Oe,components:Ce,...Ie}=e,Me=Zh($),je=c.useRef(null),et=c.useRef(null),ke=c.useRef(null),[Le,Ve]=c.useState(!1);c.useImperativeHandle(t,()=>({focus:je.current?.focus,blur:je.current?.blur,scrollTo:Fe=>ke.current?.scrollTo(Fe),nativeElement:ui(je.current)}));const Ke=CB(Ce,z,A),qe=c.useMemo(()=>{if($!=="combobox")return Q;const Fe=v[0]?.value;return typeof Fe=="string"||typeof Fe=="number"?String(Fe):""},[Q,$,v]),Ae=$==="combobox"&&typeof z=="function"&&z()||null,Pe=!C&&S,[We,Be,Te,Ge]=aB(j||!1,I,L,Fe=>E||Pe?!1:Fe),nt=c.useMemo(()=>typeof X=="function"||(X||[]).some(Fe=>[`
164
+ `,`\r
165
+ `].includes(Fe)),[X]),ot=c.useMemo(()=>typeof X=="function"?(Fe,rt)=>{const Pt=X(Fe),en=Array.isArray(Pt)&&Pt.length===1&&Pt[0]===Fe;return!Array.isArray(Pt)||!Pt.length||en?null:typeof rt<"u"?Pt.slice(0,rt):Pt}:(Fe,rt)=>nB(Fe,X,rt),[X]),yt=(Fe,rt,Pt)=>{if(Me&&Gh(w)&&v.length>=w)return;let en=!0,xt=Fe;H?.(null);const Vt=Gh(w)?w-v.length:void 0,gn=Pt?null:ot(Fe,Vt);return $!=="combobox"&&gn&&(xt="",G?.(gn),Te(!1),en=!1),D&&qe!==xt&&D(xt,{source:rt?"typing":"effect"}),Fe&&rt&&en&&Te(!0),en},st=Fe=>{!Fe||!Fe.trim()||D(Fe,{source:"submit"})};c.useEffect(()=>{!We&&!Me&&$!=="combobox"&&yt("",!1,!1)},[We]),c.useEffect(()=>{E&&(Te(!1),Ve(!1))},[E,Be]);const[Bt,_t]=KI(),pt=c.useRef(!1),zt=Fe=>{const rt=Bt(),{key:Pt}=Fe,en=Pt==="Enter",xt=Pt===" ";if(en||xt){const Vt=$==="combobox";(xt&&!(Vt||f)||en&&!Vt)&&Fe.preventDefault(),Be||Te(!0)}if(_t(!!qe),Pt==="Backspace"&&!rt&&Me&&!qe&&v.length){const Vt=[...v];let gn=null;for(let jt=Vt.length-1;jt>=0;jt-=1){const oo=Vt[jt];if(!oo.disabled){Vt.splice(jt,1),gn=oo;break}}gn&&x(Vt,{type:"remove",values:[gn]})}Be&&(!en||!pt.current)&&!xt&&(en&&(pt.current=!0),ke.current?.onKeyDown(Fe)),Ne?.(Fe)},wt=(Fe,...rt)=>{Be&&ke.current?.onKeyUp(Fe,...rt),Fe.key==="Enter"&&(pt.current=!1),ye?.(Fe,...rt)},Dt=ut(Fe=>{const rt=v.filter(Pt=>Pt!==Fe);x(rt,{type:"remove",values:[Fe]})}),Qe=()=>{pt.current=!1},At=()=>[ui(je.current),et.current?.getPopupElement()];QI(At,Be,Te,!!Ke.root);const He=c.useRef(!1),we=Fe=>{Ve(!0),E||(be.includes("focus")&&Te(!0),Ee?.(Fe))},ze=()=>{Be&&!He.current&&Te(!1,{cancelFun:()=>P2(At(),document.activeElement)})},ve=Fe=>{Ve(!1),qe&&($==="tags"?D(qe,{source:"submit"}):$==="multiple"&&D("",{source:"blur"})),ze(),E||Se?.(Fe)},_e=(Fe,...rt)=>{const{target:Pt}=Fe;et.current?.getPopupElement()?.contains(Pt)&&Te&&Te(!0),Oe?.(Fe,...rt),He.current=!0,R0(()=>{He.current=!1})},[,De]=c.useState({});function Xe(){De({})}let lt;Ke.root&&(lt=Fe=>{Te(Fe)});const Jt=c.useMemo(()=>({...e,notFoundContent:C,open:Be,triggerOpen:Be,rawOpen:We,id:o,showSearch:f,multiple:Me,toggleOpen:Te,showScrollBar:m,styles:l,classNames:d,lockOptions:Ge}),[e,C,Te,o,f,Me,Be,We,m,l,d,Ge]),$t=c.useMemo(()=>{const Fe=_??V;return typeof Fe=="function"?Fe({searchValue:qe,open:Be,focused:Le,showSearch:f,loading:T}):Fe},[_,V,qe,Be,Le,f,T]),ct=()=>{R?.(),je.current?.focus(),x([],{type:"clear",values:v}),yt("",!1,!1)},{allowClear:Et,clearIcon:on}=YI(r,v,ee,Y,E,qe,$),at=c.createElement(W,{ref:ke}),mt=U(r,s,{[`${r}-focused`]:Le,[`${r}-multiple`]:Me,[`${r}-single`]:!Me,[`${r}-allow-clear`]:Et,[`${r}-show-arrow`]:$t!=null,[`${r}-disabled`]:E,[`${r}-loading`]:T,[`${r}-open`]:Be,[`${r}-customize-input`]:Ae,[`${r}-show-search`]:f});let vt=c.createElement(SB,Qh({},Ie,{ref:je,prefixCls:r,className:mt,focused:Le,prefix:Z,suffix:$t,clearIcon:on,multiple:Me,mode:$,displayValues:v,placeholder:N,searchValue:qe,activeValue:B,onSearch:yt,onSearchSubmit:st,onInputBlur:Qe,onFocus:we,onBlur:ve,onClearMouseDown:ct,onKeyDown:zt,onKeyUp:wt,onSelectorRemove:Dt,tokenWithEnter:nt,onMouseDown:_e,components:Ke}));return vt=c.createElement(eB,{ref:et,disabled:E,prefixCls:r,visible:Be,popupElement:at,animation:K,transitionName:te,popupStyle:k,popupClassName:se,direction:h,popupMatchSelectWidth:ce,popupRender:ae,popupAlign:pe,placement:oe,builtinPlacements:fe,getPopupContainer:he,empty:S,onPopupVisibleChange:lt,onPopupMouseEnter:Xe,onPopupMouseDown:_e,onPopupBlur:ze},vt),c.createElement(_2.Provider,{value:Jt},c.createElement(oB,{visible:Le&&!Be,values:v}),vt)}),T0=()=>null;T0.isSelectOptGroup=!0;const O0=()=>null;O0.isSelectOption=!0;function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Jh.apply(this,arguments)}const W2=c.forwardRef(({height:e,offsetY:t,offsetX:o,children:r,prefixCls:s,onInnerResize:l,innerProps:d,rtl:f,extra:p},m)=>{let h={},b={display:"flex",flexDirection:"column"};return t!==void 0&&(h={height:e,position:"relative",overflow:"hidden"},b={...b,transform:`translateY(${t}px)`,[f?"marginRight":"marginLeft"]:-o,position:"absolute",left:0,right:0,top:0}),c.createElement("div",{style:h},c.createElement(mr,{onResize:({offsetHeight:v})=>{v&&l&&l()}},c.createElement("div",Jh({style:b,className:U({[`${s}-holder-inner`]:s}),ref:m},d),r,p)))});W2.displayName="Filler";function EB({children:e,setRef:t}){const o=c.useCallback(r=>{t(r)},[t]);return c.cloneElement(e,{ref:o})}function wB(e,t,o,r,s,l,d,{getKey:f}){return e.slice(t,o+1).map((p,m)=>{const h=t+m,b=d(p,h,{style:{width:r},offsetX:s}),v=f(p);return c.createElement(EB,{key:v,setRef:x=>l(p,x)},b)})}function NB(e,t,o){const r=e.length,s=t.length;let l,d;if(r===0&&s===0)return null;r<s?(l=e,d=t):(l=t,d=e);const f={__EMPTY_ITEM__:!0};function p(b){return b!==void 0?o(b):f}let m=null,h=Math.abs(r-s)!==1;for(let b=0;b<d.length;b+=1){const v=p(l[b]),x=p(d[b]);if(v!==x){m=b,h=h||v!==p(d[b+1]);break}}return m===null?null:{index:m,multiple:h}}function RB(e,t,o){const[r,s]=c.useState(e),[l,d]=c.useState(null);return c.useEffect(()=>{const f=NB(r||[],e||[],t);f?.index!==void 0&&d(e[f.index]),s(e)},[e]),[l]}const UC=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),G2=((e,t,o,r)=>{const s=c.useRef(!1),l=c.useRef(null);function d(){clearTimeout(l.current),s.current=!0,l.current=setTimeout(()=>{s.current=!1},50)}const f=c.useRef({top:e,bottom:t,left:o,right:r});return f.current.top=e,f.current.bottom=t,f.current.left=o,f.current.right=r,(p,m,h=!1)=>{const b=p?m<0&&f.current.left||m>0&&f.current.right:m<0&&f.current.top||m>0&&f.current.bottom;return h&&b?(clearTimeout(l.current),s.current=!1):(!b||s.current)&&d(),!s.current&&b}});function MB(e,t,o,r,s,l,d){const f=c.useRef(0),p=c.useRef(null),m=c.useRef(null),h=c.useRef(!1),b=G2(t,o,r,s);function v(N,$){if(Lt.cancel(p.current),b(!1,$))return;const E=N;if(!E._virtualHandled)E._virtualHandled=!0;else return;f.current+=$,m.current=$,UC||E.preventDefault(),p.current=Lt(()=>{const T=h.current?10:1;d(f.current*T,!1),f.current=0})}function x(N,$){d($,!0),UC||N.preventDefault()}const S=c.useRef(null),C=c.useRef(null);function R(N){if(!e)return;Lt.cancel(C.current),C.current=Lt(()=>{S.current=null},2);const{deltaX:$,deltaY:E,shiftKey:T}=N;let z=$,A=E;(S.current==="sx"||!S.current&&T&&E&&!$)&&(z=E,A=0,S.current="sx");const I=Math.abs(z),j=Math.abs(A);S.current===null&&(S.current=l&&I>j?"x":"y"),S.current==="y"?v(N,A):x(N,z)}function w(N){e&&(h.current=N.detail===m.current)}return[R,w]}function TB(e,t,o,r){const[s,l]=c.useMemo(()=>[new Map,[]],[e,o.id,r]);return(f,p=f)=>{let m=s.get(f),h=s.get(p);if(m===void 0||h===void 0){const b=e.length;for(let v=l.length;v<b;v+=1){const x=e[v],S=t(x);s.set(S,v);const C=o.get(S)??r;if(l[v]=(l[v-1]||0)+C,S===f&&(m=v),S===p&&(h=v),m!==void 0&&h!==void 0)break}}return{top:l[m-1]||0,bottom:l[h]}}}class OB{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,o){this.diffRecords.set(t,this.maps[t]),this.maps[t]=o,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function WC(e){const t=parseFloat(e);return isNaN(t)?0:t}function zB(e,t,o){const[r,s]=c.useState(0),l=c.useRef(new Map),d=c.useRef(new OB),f=c.useRef(0);function p(){f.current+=1}function m(b=!1){p();const v=()=>{let x=!1;l.current.forEach((S,C)=>{if(S&&S.offsetParent){const{offsetHeight:R}=S,{marginTop:w,marginBottom:N}=getComputedStyle(S),$=WC(w),E=WC(N),T=R+$+E;d.current.get(C)!==T&&(d.current.set(C,T),x=!0)}}),x&&s(S=>S+1)};if(b)v();else{f.current+=1;const x=f.current;Promise.resolve().then(()=>{x===f.current&&v()})}}function h(b,v){const x=e(b);l.current.get(x),v?(l.current.set(x,v),m()):l.current.delete(x)}return c.useEffect(()=>p,[]),[h,m,d.current,r]}const GC=14/15;function AB(e,t,o){const r=c.useRef(!1),s=c.useRef(0),l=c.useRef(0),d=c.useRef(null),f=c.useRef(null);let p;const m=v=>{if(r.current){const x=Math.ceil(v.touches[0].pageX),S=Math.ceil(v.touches[0].pageY);let C=s.current-x,R=l.current-S;const w=Math.abs(C)>Math.abs(R);w?s.current=x:l.current=S;const N=o(w,w?C:R,!1,v);N&&v.preventDefault(),clearInterval(f.current),N&&(f.current=setInterval(()=>{w?C*=GC:R*=GC;const $=Math.floor(w?C:R);(!o(w,$,!0)||Math.abs($)<=.1)&&clearInterval(f.current)},16))}},h=()=>{r.current=!1,p()},b=v=>{p(),v.touches.length===1&&!r.current&&(r.current=!0,s.current=Math.ceil(v.touches[0].pageX),l.current=Math.ceil(v.touches[0].pageY),d.current=v.target,d.current.addEventListener("touchmove",m,{passive:!1}),d.current.addEventListener("touchend",h,{passive:!0}))};p=()=>{d.current&&(d.current.removeEventListener("touchmove",m),d.current.removeEventListener("touchend",h))},dn(()=>(e&&t.current.addEventListener("touchstart",b,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",b),p(),clearInterval(f.current)}),[e])}function XC(e){return Math.floor(e**.5)}function Bd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function IB(e,t,o){c.useEffect(()=>{const r=t.current;if(e&&r){let s=!1,l,d;const f=()=>{Lt.cancel(l)},p=()=>{f(),l=Lt(()=>{o(d),p()})},m=()=>{s=!1,f()},h=v=>{if(v.target.draggable||v.button!==0)return;const x=v;x._virtualHandled||(x._virtualHandled=!0,s=!0)},b=v=>{if(s){const x=Bd(v,!1),{top:S,bottom:C}=r.getBoundingClientRect();if(x<=S){const R=S-x;d=-XC(R),p()}else if(x>=C){const R=x-C;d=XC(R),p()}else f()}};return r.addEventListener("mousedown",h),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",b),r.ownerDocument.addEventListener("dragend",m),()=>{r.removeEventListener("mousedown",h),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",b),r.ownerDocument.removeEventListener("dragend",m),f()}}},[e])}const BB=10;function _B(e,t){const o=typeof e=="function"?e(t):e;return Number.isFinite(o)?o:0}function PB(e,t,o,r,s,l,d,f,p){const m=c.useRef(void 0),[h,b]=c.useState(null);return dn(()=>{if(h&&h.times<BB){if(!e.current){b(z=>({...z}));return}d();const{targetAlign:v,originAlign:x,offset:S}=h,C=h.index>=0?h.index:t.findIndex(z=>s(z)===h.key),R=v||x,w=_B(S,{getSize:l,align:R}),N=e.current.clientHeight;let $=!1,E=v,T=null;if(N&&C>=0){let z=0,A=0,I=0;const j=Math.min(t.length-1,C);for(let B=0;B<=j;B+=1){const H=s(t[B]);A=z;const q=o.get(H);I=A+(q===void 0?r:q),z=I}let L=R==="top"?w:N-w;for(let B=j;B>=0;B-=1){const H=s(t[B]),q=o.get(H);if(q===void 0){$=!0;break}if(L-=q,L<=0)break}switch(R){case"top":T=A-w;break;case"bottom":T=I-N+w;break;default:{const{scrollTop:B}=e.current,H=B+N;A<B?E="top":I>H&&(E="bottom")}}T!==null&&f(T),T!==h.lastTop&&($=!0)}$&&b(z=>({...z,times:z.times+1,index:C,targetAlign:E,lastTop:T}))}},[h,e.current]),v=>{if(v==null){p();return}if(Lt.cancel(m.current),typeof v=="number")f(v);else if(v&&typeof v=="object"){let x,S;const{align:C}=v;"index"in v?{index:x}=v:(S=v.key,x=t.findIndex(w=>s(w)===S));const{offset:R=0}=v;b({times:0,index:x,key:S,offset:R,originAlign:C})}}}function kC(e,t,o){if(t<=0||o<=0)return 0;const s=Math.max(Math.min(e,o),0)/o;let l=Math.ceil(s*t);return l=Math.max(l,0),l=Math.min(l,t),l}const YC=c.forwardRef((e,t)=>{const{prefixCls:o,rtl:r,scrollOffset:s,scrollRange:l,onStartMove:d,onStopMove:f,onScroll:p,horizontal:m,spinSize:h,containerSize:b,style:v,thumbStyle:x,showScrollBar:S}=e,[C,R]=c.useState(!1),[w,N]=c.useState(null),[$,E]=c.useState(null),T=!r,z=c.useRef(null),A=c.useRef(null),[I,j]=c.useState(S),L=c.useRef(void 0),B=()=>{S===!0||S===!1||(clearTimeout(L.current),j(!0),L.current=setTimeout(()=>{j(!1)},3e3))},H=l-b||0,q=b-h||0,Q=c.useMemo(()=>s===0||H===0?0:s/H*q,[s,H,q]),F=K=>!!K&&A.current?.contains(K),D=K=>{const te=z.current;if(!te)return;const k=te.getBoundingClientRect(),se=Bd(K,m);let ce;if(Number.isFinite(se)){if(m){const ae=T?k.left:k.right;if(!Number.isFinite(ae))return;ce=(T?se-ae:ae-se)-h/2}else{if(!Number.isFinite(k.top))return;ce=se-k.top-h/2}p(kC(ce,H,q),m)}},G=K=>{K.stopPropagation(),K.preventDefault(),!(K.button!==0||F(K.target))&&D(K)},X=c.useRef({top:Q,dragging:C,pageY:w,startTop:$});X.current={top:Q,dragging:C,pageY:w,startTop:$};const ee=ut(K=>{R(!0),N(Bd(K,m)),E(X.current.top),d(),K.stopPropagation(),K.preventDefault()});c.useEffect(()=>{const K=se=>{se.preventDefault()},te=z.current,k=A.current;return te.addEventListener("touchstart",K,{passive:!1}),k.addEventListener("touchstart",ee,{passive:!1}),()=>{te.removeEventListener("touchstart",K),k.removeEventListener("touchstart",ee)}},[ee]);const Z=c.useRef(void 0);Z.current=H;const _=c.useRef(void 0);_.current=q,c.useEffect(()=>{if(C){let K;const te=se=>{const{dragging:ce,pageY:ae,startTop:pe}=X.current;Lt.cancel(K);const oe=z.current.getBoundingClientRect(),fe=b/(m?oe.width:oe.height);if(ce){const he=(Bd(se,m)-ae)*fe;let be=pe;!T&&m?be-=he:be+=he;const Ee=Z.current,Se=_.current,ye=kC(be,Ee,Se);K=Lt(()=>{p(ye,m)})}},k=()=>{R(!1),f()};return window.addEventListener("mousemove",te,{passive:!0}),window.addEventListener("touchmove",te,{passive:!0}),window.addEventListener("mouseup",k,{passive:!0}),window.addEventListener("touchend",k,{passive:!0}),()=>{window.removeEventListener("mousemove",te),window.removeEventListener("touchmove",te),window.removeEventListener("mouseup",k),window.removeEventListener("touchend",k),Lt.cancel(K)}}},[C]),c.useEffect(()=>(B(),()=>{clearTimeout(L.current)}),[s]),c.useImperativeHandle(t,()=>({delayHidden:B}));const V=`${o}-scrollbar`,Y={position:"absolute",visibility:I?null:"hidden"},W={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(Y,{height:8,left:0,right:0,bottom:0}),Object.assign(W,{height:"100%",width:h,[T?"left":"right"]:Q})):(Object.assign(Y,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(W,{width:"100%",height:h,top:Q})),c.createElement("div",{ref:z,className:U(V,{[`${V}-horizontal`]:m,[`${V}-vertical`]:!m,[`${V}-visible`]:I}),style:{...Y,...v},onMouseDown:G,onMouseMove:B},c.createElement("div",{ref:A,className:U(`${V}-thumb`,{[`${V}-thumb-moving`]:C}),style:{...W,...x},onMouseDown:ee}))}),jB=20;function KC(e=0,t=0){let o=e/t*e;return isNaN(o)&&(o=0),o=Math.max(o,jB),Math.floor(o)}function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},eb.apply(this,arguments)}const HB=[],DB={overflowY:"auto",overflowAnchor:"none"};function X2(e,t){const{prefixCls:o="rc-virtual-list",className:r,height:s,itemHeight:l,fullHeight:d=!0,style:f,data:p,children:m,itemKey:h,virtual:b,direction:v,scrollWidth:x,component:S="div",onScroll:C,onVirtualScroll:R,onVisibleChange:w,innerProps:N,extraRender:$,styles:E,showScrollBar:T="optional",...z}=e,A=c.useCallback(He=>typeof h=="function"?h(He):He?.[h],[h]),[I,j,L,B]=zB(A),H=!!(b!==!1&&s&&l),q=c.useMemo(()=>Object.values(L.maps).reduce((He,we)=>He+we,0),[L.id,L.maps]),Q=H&&p&&(Math.max(l*p.length,q)>s||!!x),F=v==="rtl",D=U(o,{[`${o}-rtl`]:F},r),G=p||HB,X=c.useRef(null),ee=c.useRef(null),Z=c.useRef(null),[_,V]=c.useState(0),[Y,W]=c.useState(0),[K,te]=c.useState(!1),k=()=>{te(!0)},se=()=>{te(!1)},ce={getKey:A};function ae(He){V(we=>{let ze;typeof He=="function"?ze=He(we):ze=He;const ve=Le(ze);return X.current.scrollTop=ve,ve})}const pe=c.useRef({start:0,end:G.length}),oe=c.useRef(void 0),[fe]=RB(G,A);oe.current=fe;const{scrollHeight:he,start:be,end:Ee,offset:Se}=c.useMemo(()=>{if(!H)return{scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};if(!Q)return{scrollHeight:ee.current?.offsetHeight||0,start:0,end:G.length-1,offset:void 0};let He=0,we,ze,ve;const _e=G.length;for(let De=0;De<_e;De+=1){const Xe=G[De],lt=A(Xe),Jt=L.get(lt),$t=He+(Jt===void 0?l:Jt);$t>=_&&we===void 0&&(we=De,ze=He),$t>_+s&&ve===void 0&&(ve=De),He=$t}return we===void 0&&(we=0,ze=0,ve=Math.ceil(s/l)),ve===void 0&&(ve=G.length-1),ve=Math.min(ve+1,G.length-1),{scrollHeight:He,start:we,end:ve,offset:ze}},[Q,H,_,G,B,s]);pe.current.start=be,pe.current.end=Ee,c.useLayoutEffect(()=>{const He=L.getRecord();if(He.size===1){const we=Array.from(He.keys())[0],ze=He.get(we),ve=G[be];if(ve&&ze===void 0&&A(ve)===we){const Xe=L.get(we)-l;ae(lt=>lt+Xe)}}L.resetRecord()},[he]);const[ye,Ne]=c.useState({width:0,height:s}),Oe=He=>{Ne({width:He.offsetWidth,height:He.offsetHeight})},Ce=c.useRef(null),Ie=c.useRef(null),Me=c.useMemo(()=>KC(ye.width,x),[ye.width,x]),je=c.useMemo(()=>KC(ye.height,he),[ye.height,he]),et=he-s,ke=c.useRef(et);ke.current=et;function Le(He){let we=He;return Number.isNaN(ke.current)||(we=Math.min(we,ke.current)),we=Math.max(we,0),we}const Ve=_<=0,Ke=_>=et,qe=Y<=0,Ae=Y>=x,Pe=G2(Ve,Ke,qe,Ae),We=()=>({x:F?-Y:Y,y:_}),Be=c.useRef(We()),Te=ut(He=>{if(R){const we={...We(),...He};(Be.current.x!==we.x||Be.current.y!==we.y)&&(R(we),Be.current=we)}});function Ge(He,we){const ze=He;we?(di.flushSync(()=>{W(ze)}),Te()):ae(ze)}function nt(He){const{scrollTop:we}=He.currentTarget;we!==_&&ae(we),C?.(He),Te()}const ot=He=>{let we=He;const ze=x?x-ye.width:0;return we=Math.max(we,0),we=Math.min(we,ze),we},yt=ut((He,we)=>{we?(di.flushSync(()=>{W(ze=>{const ve=ze+(F?-He:He);return ot(ve)})}),Te()):ae(ze=>ze+He)}),[st,Bt]=MB(H,Ve,Ke,qe,Ae,!!x,yt);AB(H,X,(He,we,ze,ve)=>{const _e=ve;return Pe(He,we,ze)?!1:!_e||!_e._virtualHandled?(_e&&(_e._virtualHandled=!0),st({preventDefault(){},deltaX:He?we:0,deltaY:He?0:we}),!0):!1}),IB(Q,X,He=>{ae(we=>we+He)}),dn(()=>{function He(ze){const ve=Ve&&ze.detail<0,_e=Ke&&ze.detail>0;H&&!ve&&!_e&&ze.preventDefault()}const we=X.current;return we.addEventListener("wheel",st,{passive:!1}),we.addEventListener("DOMMouseScroll",Bt,{passive:!0}),we.addEventListener("MozMousePixelScroll",He,{passive:!1}),()=>{we.removeEventListener("wheel",st),we.removeEventListener("DOMMouseScroll",Bt),we.removeEventListener("MozMousePixelScroll",He)}},[H,Ve,Ke]),dn(()=>{if(x){const He=ot(Y);W(He),Te({x:He})}},[ye.width,x]);const _t=()=>{Ce.current?.delayHidden(),Ie.current?.delayHidden()},pt=TB(G,A,L,l),zt=PB(X,G,L,l,A,pt,()=>j(!0),ae,_t);c.useImperativeHandle(t,()=>({nativeElement:Z.current,getScrollInfo:We,scrollTo:He=>{function we(ze){return ze&&typeof ze=="object"&&("left"in ze||"top"in ze)}we(He)?(He.left!==void 0&&W(ot(He.left)),zt(He.top)):zt(He)}})),dn(()=>{if(w){const He=G.slice(be,Ee+1);w(He,G)}},[be,Ee,G]);const wt=$?.({start:be,end:Ee,virtual:Q,offsetX:Y,scrollTop:_,offsetY:Se,rtl:F,getSize:pt}),Dt=wB(G,be,Ee,x,Y,I,m,ce);let Qe=null;s&&(Qe={[d?"height":"maxHeight"]:s,...DB},H&&(Qe.overflowY="hidden",x&&(Qe.overflowX="hidden"),K&&(Qe.pointerEvents="none")));const At={};return F&&(At.dir="rtl"),c.createElement("div",eb({ref:Z,style:{...f,position:"relative"},className:D},At,z),c.createElement(mr,{onResize:Oe},c.createElement(S,{className:`${o}-holder`,style:Qe,ref:X,onScroll:nt,onMouseEnter:_t},c.createElement(W2,{prefixCls:o,height:he,offsetX:Y,offsetY:Se,scrollWidth:x,onInnerResize:j,ref:ee,innerProps:N,rtl:F,extra:wt},Dt))),Q&&he>s&&c.createElement(YC,{ref:Ce,prefixCls:o,scrollOffset:_,scrollRange:he,rtl:F,onScroll:Ge,onStartMove:k,onStopMove:se,spinSize:je,containerSize:ye.height,style:E?.verticalScrollBar,thumbStyle:E?.verticalScrollBarThumb,showScrollBar:T}),Q&&x>ye.width&&c.createElement(YC,{ref:Ie,prefixCls:o,scrollOffset:Y,scrollRange:x,rtl:F,onScroll:Ge,onStartMove:k,onStopMove:se,spinSize:Me,containerSize:ye.width,horizontal:!0,style:E?.horizontalScrollBar,thumbStyle:E?.horizontalScrollBarThumb,showScrollBar:T}))}const k2=c.forwardRef(X2);k2.displayName="List";const LB=c.forwardRef((e,t)=>X2({...e,virtual:!1},t));LB.displayName="List";function VB(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ul.apply(this,arguments)}function QC(e){return typeof e=="string"||typeof e=="number"}const FB=(e,t)=>{const{prefixCls:o,id:r,open:s,multiple:l,mode:d,searchValue:f,toggleOpen:p,notFoundContent:m,onPopupScroll:h,showScrollBar:b,lockOptions:v}=hi(),{maxCount:x,flattenOptions:S,onActiveValue:C,defaultActiveFirstOption:R,onSelect:w,menuItemSelectedIcon:N,rawValues:$,fieldNames:E,virtual:T,direction:z,listHeight:A,listItemHeight:I,optionRender:j,classNames:L,styles:B}=c.useContext(M0),H=`${o}-item`,q=ic(()=>S,[s,v],(ae,pe)=>pe[0]&&!pe[1]),Q=c.useRef(null),F=c.useMemo(()=>l&&Gh(x)&&$?.size>=x,[l,x,$?.size]),D=ae=>{ae.preventDefault()},G=ae=>{Q.current?.scrollTo(typeof ae=="number"?{index:ae}:ae)},X=c.useCallback(ae=>d==="combobox"?!1:$.has(ae),[d,[...$].toString(),$.size]),ee=(ae,pe=1)=>{const oe=q.length;for(let fe=0;fe<oe;fe+=1){const he=(ae+fe*pe+oe)%oe,{group:be,data:Ee}=q[he]||{};if(!be&&!Ee?.disabled&&(X(Ee.value)||!F))return he}return-1},[Z,_]=c.useState(()=>ee(0)),V=(ae,pe=!1)=>{_(ae);const oe={source:pe?"keyboard":"mouse"},fe=q[ae];if(!fe){C(null,-1,oe);return}C(fe.value,ae,oe)};c.useEffect(()=>{V(R!==!1?ee(0):-1)},[q.length,f]);const Y=c.useCallback(ae=>d==="combobox"?String(ae).toLowerCase()===f.toLowerCase():$.has(ae),[d,f,[...$].toString(),$.size]);c.useEffect(()=>{let ae;if(!l&&s&&$.size===1){const pe=Array.from($)[0],oe=q.findIndex(({data:fe})=>f?String(fe.value).startsWith(f):fe.value===pe);oe!==-1&&(V(oe),ae=setTimeout(()=>{G(oe)}))}return s&&Q.current?.scrollTo(void 0),()=>clearTimeout(ae)},[s,f]);const W=ae=>{ae!==void 0&&w(ae,{selected:!$.has(ae)}),l||p(!1)};if(c.useImperativeHandle(t,()=>({onKeyDown:ae=>{const{which:pe,ctrlKey:oe}=ae;switch(pe){case Je.N:case Je.P:case Je.UP:case Je.DOWN:{let fe=0;if(pe===Je.UP?fe=-1:pe===Je.DOWN?fe=1:VB()&&oe&&(pe===Je.N?fe=1:pe===Je.P&&(fe=-1)),fe!==0){const he=ee(Z+fe,fe);G(he),V(he,!0)}break}case Je.TAB:case Je.ENTER:{const fe=q[Z];if(!fe||fe.data.disabled)return W(void 0);!F||$.has(fe.value)?W(fe.value):W(void 0),s&&ae.preventDefault();break}case Je.ESC:p(!1),s&&ae.stopPropagation()}},onKeyUp:()=>{},scrollTo:ae=>{G(ae)}})),q.length===0)return c.createElement("div",{role:"listbox",id:`${r}_list`,className:`${H}-empty`,onMouseDown:D},m);const K=Object.keys(E).map(ae=>E[ae]),te=ae=>ae.label;function k(ae,pe){const{group:oe}=ae;return{role:oe?"presentation":"option",id:`${r}_list_${pe}`}}const se=ae=>{const pe=q[ae];if(!pe)return null;const oe=pe.data||{},{value:fe,disabled:he}=oe,{group:be}=pe,Ee=Qn(oe,!0),Se=te(pe);return pe?c.createElement("div",Ul({"aria-label":typeof Se=="string"&&!be?Se:null},Ee,{key:ae},k(pe,ae),{"aria-selected":Y(fe),"aria-disabled":he}),fe):null},ce={role:"listbox",id:`${r}_list`};return c.createElement(c.Fragment,null,T&&c.createElement("div",Ul({},ce,{style:{height:0,width:0,overflow:"hidden"}}),se(Z-1),se(Z),se(Z+1)),c.createElement(k2,{itemKey:"key",ref:Q,data:q,height:A,itemHeight:I,fullHeight:!1,onMouseDown:D,onScroll:h,virtual:T,direction:z,innerProps:T?null:ce,showScrollBar:b,className:L?.popup?.list,style:B?.popup?.list},(ae,pe)=>{const{group:oe,groupOption:fe,data:he,label:be,value:Ee}=ae,{key:Se}=he;if(oe){const We=he.title??(QC(be)?be.toString():void 0);return c.createElement("div",{className:U(H,`${H}-group`,he.className),title:We},be!==void 0?be:Se)}const{disabled:ye,title:Ne,children:Oe,style:Ce,className:Ie,...Me}=he,je=xn(Me,K),et=X(Ee),ke=ye||!et&&F,Le=`${H}-option`,Ve=U(H,Le,Ie,L?.popup?.listItem,{[`${Le}-grouped`]:fe,[`${Le}-active`]:Z===pe&&!ke,[`${Le}-disabled`]:ke,[`${Le}-selected`]:et}),Ke=te(ae),qe=!N||typeof N=="function"||et,Ae=typeof Ke=="number"?Ke:Ke||Ee;let Pe=QC(Ae)?Ae.toString():void 0;return Ne!==void 0&&(Pe=Ne),c.createElement("div",Ul({},Qn(je),T?{}:k(ae,pe),{"aria-selected":T?void 0:Y(Ee),"aria-disabled":ke,className:Ve,title:Pe,onMouseMove:()=>{Z===pe||ke||V(pe)},onClick:()=>{ke||W(Ee)},style:{...B?.popup?.listItem,...Ce}}),c.createElement("div",{className:`${Le}-content`},typeof j=="function"?j(ae,{index:pe}):Ae),c.isValidElement(N)||et,qe&&c.createElement(U2,{className:`${H}-option-state`,customizeIcon:N,customizeIconProps:{value:Ee,disabled:ke,isSelected:et}},et?"✓":null))}))},qB=c.forwardRef(FB),UB=((e,t)=>{const o=c.useRef({values:new Map,options:new Map}),r=c.useMemo(()=>{const{values:l,options:d}=o.current,f=e.map(h=>h.label===void 0?{...h,label:l.get(h.value)?.label}:h),p=new Map,m=new Map;return f.forEach(h=>{p.set(h.value,h),m.set(h.value,t.get(h.value)||d.get(h.value))}),o.current.values=p,o.current.options=m,f},[e,t]),s=c.useCallback(l=>t.get(l)||o.current.options.get(l),[t]);return[r,s]});function yg(e,t){return V2(e).join("").toUpperCase().includes(t)}const WB=((e,t,o,r,s)=>c.useMemo(()=>{if(!o||r===!1)return e;const{options:l,label:d,value:f}=t,p=[],m=typeof r=="function",h=o.toUpperCase(),b=m?r:(x,S)=>s&&s.length?s.some(C=>yg(S[C],h)):S[l]?yg(S[d!=="children"?d:"label"],h):yg(S[f],h),v=m?x=>Xh(x):x=>x;return e.forEach(x=>{if(x[l]){if(b(o,v(x)))p.push(x);else{const C=x[l].filter(R=>b(o,v(R)));C.length&&p.push({...x,[l]:C})}return}b(o,v(x))&&p.push(x)}),p},[e,r,s,o,t]));function GB(e){const{key:t,props:{children:o,value:r,...s}}=e;return{key:t,value:r!==void 0?r:t,children:o,...s}}function Y2(e,t=!1){return Oo(e).map((o,r)=>{if(!c.isValidElement(o)||!o.type)return null;const{type:{isSelectOptGroup:s},key:l,props:{children:d,...f}}=o;return t||!s?GB(o):{key:`__RC_SELECT_GRP__${l===null?r:l}__`,label:l,...f,options:Y2(d)}}).filter(o=>o)}const XB=(e,t,o,r,s)=>c.useMemo(()=>{let l=e;!e&&(l=Y2(t));const f=new Map,p=new Map,m=(b,v,x)=>{x&&typeof x=="string"&&b.set(v[x],v)},h=(b,v=!1)=>{for(let x=0;x<b.length;x+=1){const S=b[x];!S[o.options]||v?(f.set(S[o.value],S),m(p,S,o.label),r.forEach(C=>{m(p,S,C)}),m(p,S,s)):h(S[o.options],!0)}};return h(l),{options:l,valueOptions:f,labelOptions:p}},[e,t,o,r,s]);function ZC(e){const t=c.useRef();return t.current=e,c.useCallback((...r)=>t.current(...r),[])}function kB(e,t,o){const{filterOption:r,searchValue:s,optionFilterProp:l,filterSort:d,onSearch:f,autoClearSearchValue:p}=t;return c.useMemo(()=>{const m=typeof e=="object",h={filterOption:r,searchValue:s,optionFilterProp:l,filterSort:d,onSearch:f,autoClearSearchValue:p,...m?e:{}};return[m||o==="combobox"||o==="tags"||o==="multiple"&&e===void 0?!0:e,h]},[o,e,r,s,l,d,f,p])}function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},tb.apply(this,arguments)}const YB=["inputValue"];function KB(e){return!e||typeof e!="object"}const QB=c.forwardRef((e,t)=>{const{id:o,mode:r,prefixCls:s="rc-select",backfill:l,fieldNames:d,showSearch:f,searchValue:p,onSearch:m,autoClearSearchValue:h,filterOption:b,optionFilterProp:v,filterSort:x,onSelect:S,onDeselect:C,onActive:R,popupMatchSelectWidth:w=!0,optionLabelProp:N,options:$,optionRender:E,children:T,defaultActiveFirstOption:z,menuItemSelectedIcon:A,virtual:I,direction:j,listHeight:L=200,listItemHeight:B=20,labelRender:H,value:q,defaultValue:Q,labelInValue:F,onChange:D,maxCount:G,classNames:X,styles:ee,...Z}=e,_={searchValue:p,onSearch:m,autoClearSearchValue:h,filterOption:b,optionFilterProp:v,filterSort:x},[V,Y]=kB(f,_,r),{filterOption:W,searchValue:K,optionFilterProp:te,filterSort:k,onSearch:se,autoClearSearchValue:ce=!0}=Y,ae=c.useMemo(()=>te?Array.isArray(te)?te:[te]:[],[te]),pe=Wr(o),oe=Zh(r),fe=!!(!$&&T),he=c.useMemo(()=>W===void 0&&r==="combobox"?!1:W,[W,r]),be=c.useMemo(()=>j2(d,fe),[JSON.stringify(d),fe]),[Ee,Se]=Ro("",K),ye=Ee||"",Ne=XB($,T,be,ae,N),{valueOptions:Oe,labelOptions:Ce,options:Ie}=Ne,Me=c.useCallback(ve=>V2(ve).map(De=>{let Xe,lt,Jt,$t;KB(De)?Xe=De:(lt=De.label,Xe=De.value);const ct=Oe.get(Xe);return ct&&(lt===void 0&&(lt=ct?.[N||be.label]),Jt=ct?.disabled,$t=ct?.title),{label:lt,value:Xe,key:Xe,disabled:Jt,title:$t}}),[be,N,Oe]),[je,et]=Ro(Q,q),ke=c.useMemo(()=>{const _e=Me(oe&&je===null?[]:je);return r==="combobox"&&sB(_e[0]?.value)?[]:_e},[je,Me,r,oe]),[Le,Ve]=UB(ke,Oe),Ke=c.useMemo(()=>{if(!r&&Le.length===1){const ve=Le[0];if(ve.value===null&&(ve.label===null||ve.label===void 0))return[]}return Le.map(ve=>({...ve,label:(typeof H=="function"?H(ve):ve.label)??ve.value}))},[r,Le,H]),qe=c.useMemo(()=>new Set(Le.map(ve=>ve.value)),[Le]);c.useEffect(()=>{if(r==="combobox"){const ve=Le[0]?.value;Se(iB(ve)?String(ve):"")}},[Le]);const Ae=ZC((ve,_e)=>{const De=_e??ve;return{[be.value]:ve,[be.label]:De}}),Pe=c.useMemo(()=>{if(r!=="tags")return Ie;const ve=[...Ie],_e=De=>Oe.has(De);return[...Le].sort((De,Xe)=>De.value<Xe.value?-1:1).forEach(De=>{const Xe=De.value;_e(Xe)||ve.push(Ae(Xe,De.label))}),ve},[Ae,Ie,Oe,Le,r]),We=WB(Pe,be,ye,he,ae),Be=c.useMemo(()=>{const ve=_e=>ae.length?ae.some(De=>_e?.[De]===ye):_e?.value===ye;return r!=="tags"||!ye||We.some(_e=>ve(_e))||We.some(_e=>_e[be.value]===ye)||Oe.get(ye)?.disabled?We:[Ae(ye),...We]},[Ae,ae,r,We,ye,be,Oe]),Te=ve=>[...ve].sort((De,Xe)=>k(De,Xe,{searchValue:ye})).map(De=>Array.isArray(De.options)?{...De,options:De.options.length>0?Te(De.options):De.options}:De),Ge=c.useMemo(()=>k?Te(Be):Be,[Be,k,ye]),nt=c.useMemo(()=>tB(Ge,{fieldNames:be,childrenAsData:fe}),[Ge,be,fe]),ot=ve=>{const _e=Me(ve);if(et(_e),D&&(_e.length!==Le.length||_e.some((De,Xe)=>Le[Xe]?.value!==De?.value))){const De=F?_e.map(({label:lt,value:Jt})=>({label:lt,value:Jt})):_e.map(lt=>lt.value),Xe=_e.map(lt=>Xh(Ve(lt.value)));D(oe?De:De[0],oe?Xe:Xe[0])}},[yt,st]=c.useState(null),[Bt,_t]=c.useState(0),pt=z!==void 0?z:r!=="combobox",zt=c.useRef(),wt=c.useCallback((ve,_e,{source:De="keyboard"}={})=>{_t(_e),l&&r==="combobox"&&ve!==null&&De==="keyboard"&&st(String(ve));const Xe=Promise.resolve().then(()=>{zt.current===Xe&&R?.(ve)});zt.current=Xe},[l,r,R]),Dt=(ve,_e,De)=>{const Xe=()=>{const lt=Ve(ve);return[F?{label:lt?.[be.label],value:ve}:ve,Xh(lt)]};if(_e&&S){const[lt,Jt]=Xe();S(lt,Jt)}else if(!_e&&C&&De!=="clear"){const[lt,Jt]=Xe();C(lt,Jt)}},Qe=ZC((ve,_e)=>{let De;const Xe=oe?_e.selected:!0;Xe?De=oe?[...Le,ve]:[ve]:De=Le.filter(lt=>lt.value!==ve),ot(De),Dt(ve,Xe),r==="combobox"?st(""):(!Zh||ce)&&(Se(""),st(""))}),At=(ve,_e)=>{ot(ve);const{type:De,values:Xe}=_e;(De==="remove"||De==="clear")&&Xe.forEach(lt=>{Dt(lt.value,!1,De)})},He=(ve,_e)=>{if(Se(ve),st(null),_e.source==="submit"){const De=(ve||"").trim();if(De){if(Oe.get(De)?.disabled){Se("");return}const Xe=Array.from(new Set([...qe,De]));ot(Xe),Dt(De,!0),Se("")}return}_e.source!=="blur"&&(r==="combobox"&&ot(ve),se?.(ve))},we=ve=>{let _e=ve;r!=="tags"&&(_e=ve.map(Xe=>Ce.get(Xe)?.value).filter(Xe=>Xe!==void 0)),r==="tags"&&(_e=_e.filter(Xe=>!Oe.get(Xe)?.disabled));const De=Array.from(new Set([...qe,..._e]));ot(De),De.forEach(Xe=>{Dt(Xe,!0)})},ze=c.useMemo(()=>({...Ne,flattenOptions:nt,onActiveValue:wt,defaultActiveFirstOption:pt,onSelect:Qe,menuItemSelectedIcon:A,rawValues:qe,fieldNames:be,virtual:I!==!1&&w!==!1,direction:j,listHeight:L,listItemHeight:B,childrenAsData:fe,maxCount:G,optionRender:E,classNames:X,styles:ee}),[G,Ne,nt,wt,pt,Qe,A,qe,be,I,w,j,L,B,fe,E,X,ee]);return c.createElement(M0.Provider,{value:ze},c.createElement($B,tb({},Z,{id:pe,prefixCls:s,ref:t,omitDomProps:YB,mode:r,classNames:X,styles:ee,displayValues:Ke,onDisplayValuesChange:At,maxCount:G,direction:j,showSearch:V,searchValue:ye,onSearch:He,autoClearSearchValue:ce,onSearchSplit:we,popupMatchSelectWidth:w,OptionList:qB,emptyOptions:!nt.length,activeValue:yt,activeDescendantId:`${pe}_list_${Bt}`})))}),z0=QB;z0.Option=O0;z0.OptGroup=T0;function JC(e,t,o){return e===!1?null:e===!0?o:e&&e[t]!==void 0?e[t]:o}const ec=(e,t,o)=>U({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o}),Sf=(e,t)=>t||e,ri=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new En(e).onBackground(t).toHexString(),ZB=()=>{const[,e]=ko(),[t]=za("Empty"),{colorBgContainer:o,colorFill:r,colorFillSecondary:s,colorFillTertiary:l,colorTextQuaternary:d}=e,{panelBgColor:f,borderColor:p,detailColor:m,shadowColor:h,iconColor:b}=c.useMemo(()=>({panelBgColor:ri(l,o),borderColor:ri(d,o),detailColor:ri(r,o),shadowColor:ri(s,o),iconColor:o}),[o,r,s,l,d]);return c.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,t?.description||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.7)"},c.createElement("ellipse",{fillOpacity:".8",fill:h,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),c.createElement("path",{fill:p,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),c.createElement("path",{fill:f,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),c.createElement("path",{fill:m,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),c.createElement("path",{fill:m,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),c.createElement("g",{fill:b,transform:"translate(149.7 15.4)"},c.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),c.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},JB=()=>{const[,e]=ko(),[t]=za("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:s,colorBgContainer:l}=e,{borderColor:d,shadowColor:f,contentColor:p}=c.useMemo(()=>({borderColor:ri(o,l),shadowColor:ri(r,l),contentColor:ri(s,l)}),[o,r,s,l]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,t?.description||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:f,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:d},c.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),c.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:p}))))},e_=e=>{const{componentCls:t,margin:o,marginXS:r,marginXL:s,fontSize:l,lineHeight:d}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:d,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:s,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},t_=Qt("Empty",e=>{const{componentCls:t,controlHeightLG:o,calc:r}=e,s=kt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return e_(s)}),K2=c.createElement(ZB,null),Q2=c.createElement(JB,null),Pr=e=>{const{className:t,rootClassName:o,prefixCls:r,image:s,description:l,children:d,imageStyle:f,style:p,classNames:m,styles:h,...b}=e,{getPrefixCls:v,direction:x,className:S,style:C,classNames:R,styles:w,image:N}=Kt("empty"),$=v("empty",r),[E,T]=t_($),z=pn(C),A=pn(p),[I,j]=mn([R,m],[w,z,h,A],{props:e}),[L]=za("Empty"),B=typeof l<"u"?l:L?.description,H=typeof B=="string"?B:"empty",q=s??N??K2;let Q=null;return typeof q=="string"?Q=c.createElement("img",{draggable:!1,alt:H,src:q}):Q=q,c.createElement("div",{className:U(E,T,$,S,{[`${$}-normal`]:q===Q2,[`${$}-rtl`]:x==="rtl"},t,o,I.root),style:j.root,...b},c.createElement("div",{className:U(`${$}-image`,I.image),style:{...f,...j.image}},Q),B&&c.createElement("div",{className:U(`${$}-description`,I.description),style:j.description},B),d&&c.createElement("div",{className:U(`${$}-footer`,I.footer),style:j.footer},d))};Pr.PRESENTED_IMAGE_DEFAULT=K2;Pr.PRESENTED_IMAGE_SIMPLE=Q2;const n_=e=>{const{componentName:t}=e,{getPrefixCls:o}=c.useContext(bt),r=o("empty");switch(t){case"Table":case"List":return le.createElement(Pr,{image:Pr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(Pr,{image:Pr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return le.createElement(Pr,null)}},Cf=(e,t,o)=>{const{variant:r,[e]:s}=c.useContext(bt),l=c.useContext(P8),d=s?.variant;let f;typeof t<"u"?f=t:o===!1?f="borderless":f=l??d??r??"outlined";const p=OO.includes(f);return[f,p]},o_=e=>{const o={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function r_(e,t){return e||o_(t)}const e$=e=>{const{optionHeight:t,optionFontSize:o,optionLineHeight:r,optionPadding:s}=e;return{position:"relative",display:"block",minHeight:t,padding:s,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}},a_=e=>{const{antCls:t,componentCls:o}=e,r=`${o}-item`,s=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,d=`&${t}-slide-up-leave${t}-slide-up-leave-active`,f=`${o}-dropdown-placement-`,p=`${r}-option-selected`;return[{[`${o}-dropdown`]:{...Vn(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
166
+ ${s}${f}bottomLeft,
167
+ ${l}${f}bottomLeft
168
+ `]:{animationName:v0},[`
169
+ ${s}${f}topLeft,
170
+ ${l}${f}topLeft,
171
+ ${s}${f}topRight,
172
+ ${l}${f}topRight
173
+ `]:{animationName:S0},[`${d}${f}bottomLeft`]:{animationName:x0},[`
174
+ ${d}${f}topLeft,
175
+ ${d}${f}topRight
176
+ `]:{animationName:C0},"&-hidden":{display:"none"},[r]:{...e$(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...or},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...e$(e),color:e.colorTextDisabled}},[`${p}:has(+ ${p})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${p}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Ss(e,"slide-up"),Ss(e,"slide-down"),bC(e,"move-up"),bC(e,"move-down")]},i_=e=>{const{antCls:t,componentCls:o}=e,r={background:"transparent"},s=["> input[disabled]","> textarea[disabled]",`> ${o}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${o}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${o}-placeholder`]:{display:"none"},[`${o}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${o}-filled ${o}-content`]:{[`${t}-input-filled`]:r},[`&${o}-disabled ${o}-content`]:{[s]:r,"input[disabled], textarea[disabled]":r}}}},t$=4,s_=e=>{const{componentCls:t,calc:o,iconCls:r,paddingXS:s,paddingXXS:l,INTERNAL_FIXED_ITEM_MARGIN:d,lineWidth:f,lineType:p,colorIcon:m,colorIconHover:h,inputPaddingHorizontalBase:b,antCls:v}=e,[x,S]=Yt(v,"select");return{"&-multiple":{[x("multi-item-background")]:e.multipleItemBg,[x("multi-item-border-color")]:"transparent",[x("multi-item-border-radius")]:e.borderRadiusSM,[x("multi-item-height")]:e.multipleItemHeight,[x("multi-padding-base")]:`calc((${S("height")} - ${S("multi-item-height")}) / 2)`,[x("multi-padding-vertical")]:`calc(${S("multi-padding-base")} - ${d} - ${f})`,[x("multi-item-padding-horizontal")]:`calc(${b} - ${S("multi-padding-vertical")} - ${f} * 2)`,paddingBlock:S("multi-padding-vertical"),paddingInlineStart:`calc(${S("multi-padding-base")} - ${f})`,[`${t}-prefix`]:{marginInlineStart:S("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:S("line-height"),insetInlineStart:S("multi-item-padding-horizontal"),width:`calc(100% - ${S("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:S("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${t$}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
177
+ ${t}-content-item-suffix:first-child`]:{marginInlineStart:S("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${S("multi-item-height")} - ${f} * 2)`,border:`${f} ${p} ${S("multi-item-border-color")}`,display:"flex",marginBlock:d,marginInlineEnd:o(d).mul(2).equal(),background:S("multi-item-background"),borderRadius:S("multi-item-border-radius"),paddingInlineStart:s,paddingInlineEnd:l,transition:["height","line-height","padding"].map(C=>`${C} ${e.motionDurationSlow}`).join(","),"&-content":{...or,marginInlineEnd:l},"&-remove":{...uf(),display:"inline-flex",alignItems:"center",color:m,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:h}}},[`${t}-input`]:{lineHeight:o(d).mul(2).add(S("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:t$,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[x("multi-item-height")]:e.multipleItemHeightSM,[x("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[x("multi-item-height")]:e.multipleItemHeightLG,[x("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[x("multi-item-border-color")]:e.colorSplit,[x("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[x("multi-item-border-color")]:"transparent"}}}}},vg=(e,t)=>{const{componentCls:o,antCls:r}=e,[s]=Yt(r,"select"),{border:l,borderHover:d,borderActive:f,borderOutline:p}=t,m=t.background||e.selectorBg||e.colorBgContainer;return{[s("border-color")]:l,[s("background-color")]:m,[s("affix-color")]:t.affixColor,[`&:not(${o}-disabled)`]:{"&:hover":{[s("border-color")]:d,[s("background-color")]:t.backgroundHover||m},[`&${o}-focused`]:{[s("border-color")]:f,[s("background-color")]:t.backgroundActive||m,boxShadow:`0 0 0 ${re(e.controlOutlineWidth)} ${p}`}},[`&${o}-disabled`]:{[s("border-color")]:t.borderDisabled||t.border,[s("background-color")]:t.backgroundDisabled||t.background}}},Ku=(e,t,o,r,s,l)=>{const{componentCls:d}=e;return{[`&${d}-${t}`]:[vg(e,o),{[`&${d}-status-error`]:vg(e,{...o,...r}),[`&${d}-status-warning`]:vg(e,{...o,...s})},l]}},xg=(e,t)=>({outline:`${re(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:re(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),l_=e=>{const{componentCls:t,fontHeight:o,controlHeight:r,fontSizeIcon:s,showArrowPaddingInlineEnd:l,iconCls:d,antCls:f,max:p,calc:m}=e,[h,b]=Yt(f,"select"),v=p(m(l).sub(s).equal(),0);return{[t]:[{[h("border-radius")]:e.borderRadius,[h("border-color")]:"#000",[h("border-size")]:e.lineWidth,[h("background-color")]:e.colorBgContainer,[h("font-size")]:e.fontSize,[h("line-height")]:e.lineHeight,[h("font-height")]:o,[h("color")]:e.colorText,[h("affix-color")]:e.colorText,[h("height")]:r,[h("padding-horizontal")]:m(e.paddingSM).sub(e.lineWidth).equal(),[h("padding-vertical")]:`calc((${b("height")} - ${b("font-height")}) / 2 - ${b("border-size")})`,...Vn(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:b("border-radius"),borderWidth:b("border-size"),borderStyle:e.lineType,borderColor:b("border-color"),background:b("background-color"),fontSize:b("font-size"),lineHeight:b("line-height"),color:b("color"),paddingInline:b("padding-horizontal"),paddingBlock:b("padding-vertical"),[`${t}-prefix`]:{color:b("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...or,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:v,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[d]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[h("height")]:e.controlHeightSM,[h("padding-horizontal")]:m(e.paddingXS).sub(e.lineWidth).equal(),[h("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:b("padding-horizontal")}},"&-lg":{[h("height")]:e.controlHeightLG,[h("font-size")]:e.fontSizeLG,[h("line-height")]:e.lineHeightLG,[h("font-height")]:e.fontHeightLG,[h("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:b("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...or,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},s_(e),Ku(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),Ku(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Ku(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:xg(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:xg(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:xg(e,e.colorWarning)}),Ku(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),i_(e)]}},c_=e=>{const{fontSize:t,lineHeight:o,lineWidth:r,controlHeight:s,controlHeightSM:l,controlHeightLG:d,paddingXXS:f,controlPaddingHorizontal:p,zIndexPopupBase:m,colorText:h,fontWeightStrong:b,controlItemBgActive:v,controlItemBgHover:x,colorBgContainer:S,colorFillSecondary:C,colorBgContainerDisabled:R,colorTextDisabled:w,colorPrimaryHover:N,colorPrimary:$,controlOutline:E}=e,T=f*2,z=r*2,A=Math.min(s-T,s-z),I=Math.min(l-T,l-z),j=Math.min(d-T,d-z);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(f/2),zIndexPopup:m+50,optionSelectedColor:h,optionSelectedFontWeight:b,optionSelectedBg:v,optionActiveBg:x,optionPadding:`${(s-t*o)/2}px ${p}px`,optionFontSize:t,optionLineHeight:o,optionHeight:s,selectorBg:S,clearBg:S,singleItemHeightLG:d,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:A,multipleItemHeightSM:I,multipleItemHeightLG:j,multipleSelectorBgDisabled:R,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:N,activeBorderColor:$,activeOutlineColor:E,selectAffixPadding:f}},u_=e=>{const{antCls:t,componentCls:o,motionDurationMid:r,inputPaddingHorizontalBase:s}=e,l={[`${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[o]:{...Vn(e),[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...or,[`> ${t}-typography`]:{display:"inline"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:s,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(d=>`${d} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":l,"&:hover":l},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(s).add(e.fontSize).add(e.paddingXS).equal()}}}}}},d_=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},u_(e),a_(e),{[`${t}-rtl`]:{direction:"rtl"}},vf(e,{focusElCls:`${t}-focused`})]},f_=Qt("Select",(e,{rootPrefixCls:t})=>{const o=kt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[d_(o),l_(o)]},c_,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Qu={},n$;function m_(){if(n$)return Qu;n$=1,Object.defineProperty(Qu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};return Qu.default=e,Qu}var p_=m_();const g_=Wt(p_);function nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},nb.apply(this,arguments)}const h_=(e,t)=>c.createElement(Zt,nb({},e,{ref:t,icon:g_})),Ms=c.forwardRef(h_);var Zu={},o$;function b_(){if(o$)return Zu;o$=1,Object.defineProperty(Zu,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};return Zu.default=e,Zu}var y_=b_();const v_=Wt(y_);function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ob.apply(this,arguments)}const x_=(e,t)=>c.createElement(Zt,ob({},e,{ref:t,icon:v_})),S_=c.forwardRef(x_);var Ju={},r$;function C_(){if(r$)return Ju;r$=1,Object.defineProperty(Ju,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};return Ju.default=e,Ju}var $_=C_();const E_=Wt($_);function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rb.apply(this,arguments)}const w_=(e,t)=>c.createElement(Zt,rb({},e,{ref:t,icon:E_})),A0=c.forwardRef(w_);function N_({suffixIcon:e,contextSuffixIcon:t,clearIcon:o,contextClearIcon:r,menuItemSelectedIcon:s,contextMenuItemSelectedIcon:l,removeIcon:d,contextRemoveIcon:f,loading:p,loadingIcon:m,contextLoadingIcon:h,searchIcon:b,contextSearchIcon:v,multiple:x,hasFeedback:S,showSuffixIcon:C,feedbackIcon:R,showArrow:w,componentName:N}){return c.useMemo(()=>{const $=Uo(o,r,c.createElement(gi,null)),E=I=>e===null&&!S&&!w?null:c.createElement(c.Fragment,null,C!==!1&&I,S&&R);let T=null;e!==void 0?T=E(e):p?T=E(Uo(m,h,c.createElement(gf,{spin:!0}))):T=({open:I,showSearch:j})=>E(I&&j?Uo(b,v,c.createElement(A0,null)):Uo(t,c.createElement(S_,null)));const z=Uo(s,l,x?c.createElement(Ms,null):null),A=Uo(d,f,c.createElement(gr,null));return{clearIcon:$,suffixIcon:T,itemIcon:z,removeIcon:A}},[e,t,o,r,s,l,d,f,p,m,h,b,v,x,S,C,R,w])}function R_(e){return le.useMemo(()=>{if(e)return(...t)=>le.createElement($s,{space:!0},e.apply(void 0,t))},[e])}function M_(e,t){return t!==void 0?t:e!==null}const Z2="SECRET_COMBOBOX_MODE_DO_NOT_USE",T_=(e,t)=>{const{prefixCls:o,bordered:r,className:s,rootClassName:l,getPopupContainer:d,popupClassName:f,dropdownClassName:p,listHeight:m=256,placement:h,listItemHeight:b,size:v,disabled:x,notFoundContent:S,status:C,builtinPlacements:R,dropdownMatchSelectWidth:w,popupMatchSelectWidth:N,direction:$,style:E,allowClear:T,variant:z,popupStyle:A,dropdownStyle:I,transitionName:j,tagRender:L,maxCount:B,prefix:H,dropdownRender:q,popupRender:Q,onDropdownVisibleChange:F,onOpenChange:D,styles:G,classNames:X,clearIcon:ee,showSearch:Z,..._}=e,{getPopupContainer:V,getPrefixCls:Y,renderEmpty:W,direction:K,virtual:te,popupMatchSelectWidth:k,popupOverflow:se}=c.useContext(bt),{showSearch:ce,allowClear:ae,style:pe,styles:oe,className:fe,classNames:he,clearIcon:be,loadingIcon:Ee,menuItemSelectedIcon:Se,removeIcon:ye,suffixIcon:Ne}=Kt("select"),[,Oe]=ko(),Ce=b??Oe?.controlHeight,Ie=Y("select",o),Me=Y(),je=$??K,{compactSize:et,compactItemClassnames:ke}=Rs(Ie,je),[Le,Ve]=Cf("select",z,r),Ke=hr(Ie),[qe,Ae]=f_(Ie,Ke),Pe=c.useMemo(()=>{const{mode:Fe}=e;if(Fe!=="combobox")return Fe===Z2?"combobox":Fe},[e.mode]),We=Pe==="multiple"||Pe==="tags",Be=M_(e.suffixIcon,e.showArrow),Te=N??w??k,Ge=R_(Q||q),nt=D||F,{status:ot,hasFeedback:yt,isFormItemInput:st,feedbackIcon:Bt}=c.useContext(qr),_t=Sf(ot,C);let pt;S!==void 0?pt=S:Pe==="combobox"?pt=null:pt=W?.("Select")||c.createElement(n_,{componentName:"Select"});const{suffixIcon:zt,itemIcon:wt,removeIcon:Dt,clearIcon:Qe}=N_({..._,multiple:We,hasFeedback:yt,feedbackIcon:Bt,showSuffixIcon:Be,componentName:"Select",clearIcon:ee,searchIcon:JC(Z,"searchIcon"),contextClearIcon:be,contextLoadingIcon:Ee,contextMenuItemSelectedIcon:Se,contextRemoveIcon:ye,contextSearchIcon:JC(ce,"searchIcon"),contextSuffixIcon:Ne}),At=T??ae,He=At===!0?{clearIcon:Qe}:At,we=Z??ce,ze=xn(_,["suffixIcon","itemIcon"]),ve=zo(Fe=>v??et??Fe),_e=c.useContext(Vr),De=x??_e,Xe={...e,variant:Le,status:_t,disabled:De,size:ve},lt=pn(pe),Jt=pn(E),[$t,ct]=mn([he,X],[oe,lt,G,Jt],{props:Xe},{popup:{_default:"root"}}),Et=U($t.popup.root,f,p,{[`${Ie}-dropdown-${je}`]:je==="rtl"},l,Ae,Ke,qe),on={...ct.popup?.root,...A??I},at=U({[`${Ie}-lg`]:ve==="large",[`${Ie}-sm`]:ve==="small",[`${Ie}-rtl`]:je==="rtl",[`${Ie}-${Le}`]:Ve,[`${Ie}-in-form-item`]:st},ec(Ie,_t,yt),ke,fe,s,$t.root,l,Ae,Ke,qe),mt=c.useMemo(()=>h!==void 0?h:je==="rtl"?"bottomRight":"bottomLeft",[h,je]),[vt]=mc("SelectLike",ct.popup.root?.zIndex??on.zIndex);return c.createElement(z0,{ref:t,virtual:te,classNames:$t,styles:ct,showSearch:we,...ze,style:ct.root,popupMatchSelectWidth:Te,transitionName:Fr(Me,"slide-up",j),builtinPlacements:r_(R,se),listHeight:m,listItemHeight:Ce,mode:Pe,prefixCls:Ie,placement:mt,direction:je,prefix:H,suffixIcon:zt,menuItemSelectedIcon:wt,removeIcon:Dt,allowClear:He,notFoundContent:pt,className:at,getPopupContainer:d||V,popupClassName:Et,disabled:De,popupStyle:{...ct.popup.root,...on,zIndex:vt},maxCount:We?B:void 0,tagRender:We?L:void 0,popupRender:Ge,onPopupVisibleChange:nt})},Ts=c.forwardRef(T_),O_=kI(Ts,"popupAlign");Ts.SECRET_COMBOBOX_MODE_DO_NOT_USE=Z2;Ts.Option=O0;Ts.OptGroup=T0;Ts._InternalPanelDoNotUseOrYouWillBeFired=O_;const z_=["xxxl","xxl","xl","lg","md","sm","xs"],A_=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),I_=e=>{const t=e,o=[].concat(z_).reverse();return o.forEach((r,s)=>{const l=r.toUpperCase(),d=`screen${l}Min`,f=`screen${l}`;if(!(t[d]<=t[f]))throw new Error(`${d}<=${f} fails : !(${t[d]}<=${t[f]})`);if(s<o.length-1){const p=`screen${l}Max`;if(!(t[f]<=t[p]))throw new Error(`${f}<=${p} fails : !(${t[f]}<=${t[p]})`);const h=`screen${o[s+1].toUpperCase()}Min`;if(!(t[p]<=t[h]))throw new Error(`${p}<=${h} fails : !(${t[p]}<=${t[h]})`)}}),e},B_=()=>{const[,e]=ko(),t=A_(I_(e));return le.useMemo(()=>{const o=new Map;let r=-1,s={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return s=l,o.forEach(d=>{d(s)}),o.size>=1},subscribe(l){return o.size||this.register(),r+=1,o.set(r,l),l(s),r},unsubscribe(l){o.delete(l),o.size||this.unregister()},register(){Object.entries(t).forEach(([l,d])=>{const f=({matches:m})=>{this.dispatch({...s,[l]:m})},p=window.matchMedia(d);fn(p.addEventListener)&&p.addEventListener("change",f),this.matchHandlers[d]={mql:p,listener:f},f(p)})},unregister(){Object.values(t).forEach(l=>{const d=this.matchHandlers[l];fn(d?.mql.removeEventListener)&&d.mql.removeEventListener("change",d?.listener)}),o.clear()}}},[t])};function __(e=!0,t={}){const o=c.useRef(t),[,r]=T3(),s=B_();return dn(()=>{const l=s.subscribe(d=>{o.current=d,e&&r()});return()=>s.unsubscribe(l)},[e]),o.current}const J2=e=>{const{children:t,prefixCls:o,id:r,classNames:s,styles:l,className:d,style:f}=e;return c.createElement("div",{id:r,className:U(`${o}-container`,s?.container,d),style:{...l?.container,...f},role:"tooltip"},typeof t=="function"?t():t)},os={shiftX:64,adjustY:1},rs={adjustX:1,shiftY:!0},Fo=[0,0],P_={left:{points:["cr","cl"],overflow:rs,offset:[-4,0],targetOffset:Fo},right:{points:["cl","cr"],overflow:rs,offset:[4,0],targetOffset:Fo},top:{points:["bc","tc"],overflow:os,offset:[0,-4],targetOffset:Fo},bottom:{points:["tc","bc"],overflow:os,offset:[0,4],targetOffset:Fo},topLeft:{points:["bl","tl"],overflow:os,offset:[0,-4],targetOffset:Fo},leftTop:{points:["tr","tl"],overflow:rs,offset:[-4,0],targetOffset:Fo},topRight:{points:["br","tr"],overflow:os,offset:[0,-4],targetOffset:Fo},rightTop:{points:["tl","tr"],overflow:rs,offset:[4,0],targetOffset:Fo},bottomRight:{points:["tr","br"],overflow:os,offset:[0,4],targetOffset:Fo},rightBottom:{points:["bl","br"],overflow:rs,offset:[4,0],targetOffset:Fo},bottomLeft:{points:["tl","bl"],overflow:os,offset:[0,4],targetOffset:Fo},leftBottom:{points:["br","bl"],overflow:rs,offset:[-4,0],targetOffset:Fo}};function ab(){return ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ab.apply(this,arguments)}const j_=c.forwardRef((e,t)=>{const{trigger:o=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:s=.1,prefixCls:l="rc-tooltip",children:d,onVisibleChange:f,afterVisibleChange:p,motion:m,placement:h="right",align:b={},destroyOnHidden:v=!1,defaultVisible:x,getTooltipContainer:S,arrowContent:C,overlay:R,id:w,showArrow:N=!0,classNames:$,styles:E,...T}=e,z=Wr(w),A=c.useRef(null);c.useImperativeHandle(t,()=>A.current);const I={...T};"visible"in e&&(I.popupVisible=e.visible);const j=c.useMemo(()=>{if(!N)return!1;const B=N===!0?{}:N;return{...B,className:U(B.className,$?.arrow),style:{...B.style,...E?.arrow},content:B.content??C}},[N,$?.arrow,E?.arrow,C]),L=({open:B})=>{const H=c.Children.only(d),q={"aria-describedby":R&&B?z:void 0};return c.cloneElement(H,q)};return c.createElement(pf,ab({popupClassName:$?.root,prefixCls:l,popup:c.createElement(J2,{key:"content",prefixCls:l,id:z,classNames:$,styles:E},R),action:o,builtinPlacements:P_,popupPlacement:h,ref:A,popupAlign:b,getPopupContainer:S,onOpenChange:f,afterOpenChange:p,popupMotion:m,defaultPopupVisible:x,autoDestroy:v,mouseLeaveDelay:s,popupStyle:E?.root,mouseEnterDelay:r,arrow:j,uniqueContainerClassName:$?.uniqueContainer,uniqueContainerStyle:E?.uniqueContainer},I),L)});function H_(e){const{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,s=t/2,l=0,d=s,f=r*1/Math.sqrt(2),p=s-r*(1-1/Math.sqrt(2)),m=s-o*(1/Math.sqrt(2)),h=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),b=2*s-m,v=h,x=2*s-f,S=p,C=2*s-l,R=d,w=s*Math.sqrt(2)+r*(Math.sqrt(2)-2),N=r*(Math.sqrt(2)-1),$=`polygon(${N}px 100%, 50% ${N}px, ${2*s-N}px 100%, ${N}px 100%)`,E=`path('M ${l} ${d} A ${r} ${r} 0 0 0 ${f} ${p} L ${m} ${h} A ${o} ${o} 0 0 1 ${b} ${v} L ${x} ${S} A ${r} ${r} 0 0 0 ${C} ${R} Z')`;return{arrowShadowWidth:w,arrowPath:E,arrowPolygon:$}}const D_=(e,t,o)=>{const{sizePopupArrow:r,arrowPolygon:s,arrowPath:l,arrowShadowWidth:d,borderRadiusXS:f,calc:p}=e,m={content:'""',position:"absolute",width:d,height:d,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${re(f)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return o&&(m.boxShadow=o),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:p(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[s,l]},content:'""'},"&::after":m}},eN=8;function tN(e){const{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:o?eN:r}}const L_=(e,t,o)=>{const{componentCls:r,boxShadowPopoverArrow:s,arrowOffsetVertical:l,arrowOffsetHorizontal:d,antCls:f}=e,[p]=Yt(f,"tooltip"),{arrowDistance:m=0,arrowShadow:h=!0}=o||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...D_(e,t,h?s:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[p("arrow-offset-x")]:d,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:d}}},"&-placement-topRight":{[p("arrow-offset-x")]:`calc(100% - ${re(d)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:d}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[p("arrow-offset-x")]:d,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:d}}},"&-placement-bottomRight":{[p("arrow-offset-x")]:`calc(100% - ${re(d)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:d}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}}};function V_(e,t,o,r){if(r===!1)return{adjustX:!1,adjustY:!1};const s=Ut(r)?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+o,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+o,l.shiftX=!0,l.adjustX=!0;break}const d={...l,...s};return d.shiftX||(d.adjustX=!0),d.shiftY||(d.adjustY=!0),d}const a$={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},F_={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},q_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function U_(e){const{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:s,borderRadius:l}=e,d=t/2,f={},p=tN({contentRadius:l,limitVerticalRadius:!0});return Object.keys(a$).forEach(m=>{const b={...r&&F_[m]||a$[m],offset:[0,0],dynamicInset:!0};switch(f[m]=b,q_.has(m)&&(b.autoArrow=!1),m){case"top":case"topLeft":case"topRight":b.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":b.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":b.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":b.offset[0]=d+s;break}if(r)switch(m){case"topLeft":case"bottomLeft":b.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":b.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":b.offset[1]=-p.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":b.offset[1]=p.arrowOffsetHorizontal*2-d;break}b.overflow=V_(m,p,t,o),b.htmlRegion="visibleFirst"}),f}const W_=le.createContext(!1),G_=(e,t)=>{const o=r=>typeof r=="boolean"?{show:r}:r||{};return le.useMemo(()=>{const r=o(e),s=o(t);return{...s,...r,show:r.show??s.show??!0}},[e,t])},i$="50%",X_=e=>{const{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:s,tooltipBg:l,tooltipBorderRadius:d,zIndexPopup:f,controlHeight:p,dropShadowPopover:m,paddingSM:h,paddingXS:b,arrowOffsetHorizontal:v,sizePopupArrow:x,antCls:S}=e,[C,R]=Yt(S,"tooltip"),w=t(d).add(x).add(v).equal(),$={minWidth:t(d).mul(2).add(x).equal(),minHeight:p,padding:`${re(e.calc(h).div(2).equal())} ${re(b)}`,color:R("overlay-color",s),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:d,boxSizing:"border-box"},E={[C("valid-offset-x")]:R("arrow-offset-x","var(--arrow-x)"),transformOrigin:[R("valid-offset-x",i$),`var(--arrow-y, ${i$})`].join(" ")};return[{[o]:{...Vn(e),position:"absolute",zIndex:f,display:"block",width:"max-content",maxWidth:r,visibility:"visible",filter:m,...E,"&-hidden":{display:"none"},[C("arrow-background-color")]:l,[`${o}-container`]:[$,g2(e,!0)],[`&:has(~ ${o}-unique-container)`]:{[`${o}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:w},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(d,eN)}},[`${o}-content`]:{position:"relative"},...c0(e,(T,{darkColor:z})=>({[`&${o}-${T}`]:{[`${o}-container`]:{backgroundColor:z},[`${o}-arrow`]:{[C("arrow-background-color")]:z}}})),"&-rtl":{direction:"rtl"}}},L_(e,R("arrow-background-color"),{arrowShadow:!1}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${o}-unique-container`]:{...$,...E,position:"absolute",zIndex:t(f).sub(1).equal(),filter:m,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},k_=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...tN({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...H_(kt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),nN=(e,t,o=!0)=>Qt("Tooltip",s=>{const{borderRadius:l,colorTextLightSolid:d,colorBgSpotlight:f,maxWidth:p}=s,m=kt(s,{tooltipMaxWidth:p,tooltipColor:d,tooltipBorderRadius:l,tooltipBg:f});return[X_(m),$0(s,"zoom-big-fast")]},k_,{resetStyle:!1,injectStyle:o})(e,t),Y_=Ta.map(e=>`${e}-inverse`);function I0(e,t=!0){return t?[].concat(go(Y_),go(Ta)).includes(e):Ta.includes(e)}const oN=(e,t,o)=>{const r=I0(o),[s]=Yt(e,"tooltip"),l=U({[`${t}-${o}`]:o&&r}),d={},f={},p=hA(o).toRgb(),h=(.299*p.r+.587*p.g+.114*p.b)/255<.5?"#FFF":"#000";return o&&!r&&(d.background=o,d[s("overlay-color")]=h,f[s("arrow-background-color")]=o),{className:l,overlayStyle:d,arrowStyle:f}},K_=e=>{const{prefixCls:t,className:o,placement:r="top",title:s,color:l,overlayInnerStyle:d,classNames:f,styles:p}=e,{getPrefixCls:m}=c.useContext(bt),h=m("tooltip",t),b=m(),v=hr(h),[x,S]=nN(h,v),C=oN(b,h,l),R=C.arrowStyle,w=c.useMemo(()=>({container:{...d,...C.overlayStyle}}),[d,C.overlayStyle]),N={...e,placement:r},[$,E]=mn([f],[w,p],{props:N}),T=U(v,x,S,h,`${h}-pure`,`${h}-placement-${r}`,o,C.className);return c.createElement("div",{className:T,style:R},c.createElement("div",{className:`${h}-arrow`}),c.createElement(J2,{...e,className:x,prefixCls:h,classNames:$,styles:E},s))},Q_=c.forwardRef((e,t)=>{const{prefixCls:o,openClassName:r,getTooltipContainer:s,color:l,children:d,afterOpenChange:f,arrow:p,destroyTooltipOnHide:m,destroyOnHidden:h,title:b,overlay:v,trigger:x,builtinPlacements:S,autoAdjustOverflow:C=!0,motion:R,getPopupContainer:w,placement:N="top",mouseEnterDelay:$=.1,mouseLeaveDelay:E=.1,rootClassName:T,styles:z,classNames:A,onOpenChange:I,overlayInnerStyle:j,overlayStyle:L,overlayClassName:B,...H}=e,[,q]=ko(),Q=e["data-popover-inject"],{getPopupContainer:F,getPrefixCls:D,direction:G,...X}=Kt("tooltip"),{className:ee,style:Z,classNames:_,styles:V,arrow:Y,trigger:W}=Q?{}:X,K=G_(p,Y),te=K.show,k=x||W||"hover",se=w||F,ce=h??!!m,ae=c.useContext(W_),pe=c.useRef(null),oe=()=>{pe.current?.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:oe,nativeElement:pe.current?.nativeElement,popupElement:pe.current?.popupElement}));const[fe,he]=Ro(e.defaultOpen??!1,e.open),be=!b&&!v&&b!==0,Ee=st=>{he(be?!1:st),!be&&I&&I(st)},Se=c.useMemo(()=>S||U_({arrowPointAtCenter:K?.pointAtCenter??!1,autoAdjustOverflow:C,arrowWidth:te?q.sizePopupArrow:0,borderRadius:q.borderRadius,offset:q.marginXXS}),[K,S,q,te,C]),ye=c.useMemo(()=>b===0?b:v||b||"",[v,b]),Ne=c.createElement($s,{space:!0,form:!0},fn(ye)?ye():ye),Oe={...e,trigger:k,builtinPlacements:Se,getPopupContainer:se,destroyOnHidden:ce},[Ce,Ie]=mn([_,A],[V,z],{props:Oe}),Me=D("tooltip",o),je=D();let et=fe;(!("open"in e)&&be||ae)&&(et=!1);const ke=c.isValidElement(d)&&!Vw(d)?d:c.createElement("span",null,d),Le=ke.props,Ve=!Le.className||typeof Le.className=="string"?U(Le.className,r||`${Me}-open`):Le.className,Ke=hr(Me),[qe,Ae]=nN(Me,Ke,!Q),Pe=oN(je,Me,l),We=Pe.arrowStyle,Be=U(Ke,qe,Ae),Te=U(B,{[`${Me}-rtl`]:G==="rtl"},Pe.className,T,Be,ee,Ce.root),[Ge,nt]=mc("Tooltip",H.zIndex),ot={...Ie.container,...j,...Pe.overlayStyle},yt=c.createElement(j_,{unique:!0,...H,zIndex:Ge,showArrow:te,placement:N,mouseEnterDelay:$,mouseLeaveDelay:E,prefixCls:Me,classNames:{root:Te,container:Ce.container,arrow:Ce.arrow,uniqueContainer:U(Be,Ce.container)},styles:{root:{...We,...Ie.root,...Z,...L},container:ot,uniqueContainer:ot,arrow:Ie.arrow},ref:pe,overlay:Ne,visible:et,onVisibleChange:Ee,afterVisibleChange:f,arrowContent:c.createElement("span",{className:`${Me}-arrow-content`}),motion:{motionName:Fr(je,"zoom-big-fast",typeof R?.motionName=="string"?R?.motionName:void 0),motionDeadline:1e3},trigger:k,builtinPlacements:Se,getTooltipContainer:se,destroyOnHidden:ce},et?Xo(ke,{className:Ve}):ke);return c.createElement(hf.Provider,{value:nt},yt)}),Ur=Q_;Ur._InternalPanelDoNotUseOrYouWillBeFired=K_;Ur.UniqueProvider=Fw;const s$=e=>{const{prefixCls:t,value:o,current:r,offset:s=0}=e;let l;return s&&(l={position:"absolute",top:`${s}00%`,left:0}),c.createElement("span",{style:l,className:U(`${t}-only-unit`,{current:r})},o)};function Z_(e,t,o){let r=e,s=0;for(;(r+10)%10!==t;)r+=o,s+=o;return s}const J_=e=>{const{prefixCls:t,count:o,value:r}=e,s=Number(r),l=Math.abs(o),[d,f]=c.useState(s),[p,m]=c.useState(l),h=()=>{f(s),m(l)};c.useEffect(()=>{const x=setTimeout(h,1e3);return()=>clearTimeout(x)},[s]);let b,v;if(d===s||Number.isNaN(s)||Number.isNaN(d))b=[c.createElement(s$,{...e,key:s,current:!0})],v={transition:"none"};else{b=[];const x=s+10,S=[];for(let N=s;N<=x;N+=1)S.push(N);const C=p<l?1:-1,R=S.findIndex(N=>N%10===d);b=(C<0?S.slice(0,R+1):S.slice(R)).map((N,$)=>{const E=N%10;return c.createElement(s$,{...e,key:N,value:E,offset:C<0?$-R:$,current:$===R})}),v={transform:`translateY(${-Z_(d,s,C)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:v,onTransitionEnd:h},b)},eP=c.forwardRef((e,t)=>{const{prefixCls:o,count:r,className:s,motionClassName:l,style:d,title:f,show:p,component:m="sup",children:h,...b}=e,{getPrefixCls:v}=c.useContext(bt),x=v("scroll-number",o),S={...b,"data-show":p,style:d,className:U(x,s,l),title:f};let C=r;if(r&&Number(r)%1===0){const R=String(r).split("");C=c.createElement("bdi",null,R.map((w,N)=>c.createElement(J_,{prefixCls:x,count:Number(r),value:w,key:R.length-N})))}return d?.borderColor&&(S.style={...d,boxShadow:`0 0 0 1px ${d.borderColor} inset`}),h?Xo(h,R=>({className:U(`${x}-custom-component`,R?.className,l)})):c.createElement(m,{...S,ref:t},C)}),tP=new Ct("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),nP=new Ct("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),oP=new Ct("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),rP=new Ct("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),aP=new Ct("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),iP=new Ct("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),sP=e=>{const{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:s,textFontSize:l,textFontSizeSM:d,statusSize:f,dotSize:p,textFontWeight:m,indicatorHeight:h,indicatorHeightSM:b,marginXS:v,calc:x}=e,S=`${r}-scroll-number`,C=c0(e,(R,{darkColor:w})=>({[`&${t} ${t}-color-${R}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:{...Vn(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:h,height:h,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:re(h),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:x(h).div(2).equal(),boxShadow:`0 0 0 ${re(s)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:b,height:b,fontSize:d,lineHeight:re(b),borderRadius:x(b).div(2).equal()},[`${t}-multiple-words`]:{paddingInline:e.paddingInline,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:p,minWidth:p,height:p,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${re(s)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${S}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:iP,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:f,height:f,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfoTextHover,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:s,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:tP,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:v,color:e.colorText,fontSize:e.fontSize}},...C,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:nP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:oP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:rP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:aP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${S}-custom-component, ${t}-count`]:{transform:"none"},[`${S}-custom-component, ${S}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[S]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${S}-only`]:{position:"relative",display:"inline-block",height:h,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${S}-only-unit`]:{height:h,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${S}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${S}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},rN=e=>{const{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:s}=e,l=t,d=o,f=e.colorTextLightSolid,p=e.colorError,m=e.colorErrorHover;return kt(e,{badgeFontHeight:l,badgeShadowSize:d,badgeTextColor:f,badgeColor:p,badgeColorHover:m,badgeShadowColor:s,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},aN=e=>{const{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:s,paddingXS:l}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*s,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2,paddingInline:l}},lP=Qt("Badge",e=>{const t=rN(e);return sP(t)},aN),cP=c.forwardRef((e,t)=>{const{prefixCls:o,scrollNumberPrefixCls:r,children:s,status:l,text:d,color:f,count:p=null,overflowCount:m=99,dot:h=!1,size:b="medium",title:v,offset:x,style:S,className:C,rootClassName:R,classNames:w,styles:N,showZero:$=!1,...E}=e,{getPrefixCls:T,direction:z,className:A,style:I,classNames:j,styles:L}=Kt("badge"),B=T("badge",o),[H,q]=lP(B),Q={...e,overflowCount:m,size:b,dot:h,showZero:$},[F,D]=mn([j,w],[L,N],{props:Q}),G=p>m?`${m}+`:p,X=G==="0"||G===0||d==="0"||d===0,ee=p===null||X&&!$,Z=(Kn(l)||Kn(f))&&ee,_=Kn(l)||!X,V=h&&!X,Y=V?"":G,W=c.useMemo(()=>(!pr(Y)&&!pr(d)||X&&!$)&&!V,[Y,X,$,V,d]),K=c.useRef(p);W||(K.current=p);const te=K.current,k=c.useRef(Y);W||(k.current=Y);const se=k.current,ce=c.useRef(V);W||(ce.current=V);const ae=c.useMemo(()=>{if(!x)return{...I,...S};const Oe=Number.parseInt(x[0],10);return{...{marginTop:x[1],insetInlineEnd:-Oe},...I,...S}},[x,S,I]),pe=Ra(te)||Wo(te)?te:void 0,oe=v===null||v===!1?void 0:v??pe,fe=!W&&(d===0?$:!!d&&d!==!0),he=fe?c.createElement("span",{className:`${B}-status-text`},d):null,be=Ut(te)?Xo(te,Oe=>({style:{...ae,...Oe.style}})):void 0,Ee=I0(f,!1),Se=U(F.indicator,{[`${B}-status-dot`]:Z,[`${B}-status-${l}`]:!!l,[`${B}-color-${f}`]:Ee}),ye={};f&&!Ee&&(ye.color=f,ye.background=f);const Ne=U(B,{[`${B}-status`]:Z,[`${B}-not-a-wrapper`]:!s,[`${B}-rtl`]:z==="rtl"},C,R,A,F.root,H,q);if(!s&&Z&&(d||_||!ee)){const Oe=ae.color;return c.createElement("span",{ref:t,...E,className:Ne,style:{...D.root,...ae}},c.createElement("span",{className:Se,style:{...D.indicator,...ye}}),fe&&c.createElement("span",{style:{color:Oe},className:`${B}-status-text`},d))}return c.createElement("span",{ref:t,...E,className:Ne,style:D.root},s,c.createElement(to,{visible:!W,motionName:`${B}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Oe})=>{const Ce=T("scroll-number",r),Ie=ce.current,Me=U(F.indicator,{[`${B}-dot`]:Ie,[`${B}-count`]:!Ie,[`${B}-count-sm`]:b==="small",[`${B}-multiple-words`]:!Ie&&se&&se.toString().length>1,[`${B}-status-${l}`]:!!l,[`${B}-color-${f}`]:Ee});let je={...D.indicator,...ae};return f&&!Ee&&(je=je||{},je.background=f),c.createElement(eP,{prefixCls:Ce,show:!W,motionClassName:Oe,className:Me,count:se,title:oe,style:je,key:"scrollNumber"},be)}),he)}),uP=e=>{const{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:s,calc:l}=e,d=`${t}-ribbon`,f=`${t}-ribbon-wrapper`,p=c0(e,(m,{darkColor:h})=>({[`&${d}-color-${m}`]:{background:h,color:h}}));return{[f]:{position:"relative"},[d]:{...Vn(e),position:"absolute",top:r,padding:`0 ${re(e.paddingXS)}`,color:e.colorPrimary,lineHeight:re(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${d}-content`]:{color:e.badgeTextColor},[`${d}-corner`]:{position:"absolute",top:"100%",width:s,height:s,color:"currentcolor",border:`${re(l(s).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...p,[`&${d}-placement-end`]:{insetInlineEnd:l(s).mul(-1).equal(),borderEndEndRadius:0,[`${d}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${d}-placement-start`]:{insetInlineStart:l(s).mul(-1).equal(),borderEndStartRadius:0,[`${d}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},dP=Qt(["Badge","Ribbon"],e=>{const t=rN(e);return uP(t)},aN),fP=e=>{const{className:t,prefixCls:o,style:r,color:s,children:l,text:d,placement:f="end",rootClassName:p,styles:m,classNames:h}=e,{getPrefixCls:b,direction:v,className:x,style:S,classNames:C,styles:R}=Kt("ribbon"),w=b("ribbon",o),N=`${w}-wrapper`,[$,E]=dP(w,N),T={...e,placement:f},[z,A]=mn([C,h],[R,m],{props:T}),I=I0(s,!1),j=U(w,`${w}-placement-${f}`,{[`${w}-rtl`]:v==="rtl",[`${w}-color-${s}`]:I},t,x,z.indicator),L={},B={};return s&&!I&&(L.background=s,B.color=s),c.createElement("div",{className:U(N,p,$,E,z.root),style:A.root},l,c.createElement("div",{className:U(j,$),style:{...L,...A.indicator,...S,...r}},c.createElement("span",{className:U(`${w}-content`,z.content),style:A.content},d),c.createElement("div",{className:`${w}-corner`,style:B})))},iN=cP;iN.Ribbon=fP;var ed={},l$;function mP(){if(l$)return ed;l$=1,Object.defineProperty(ed,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};return ed.default=e,ed}var pP=mP();const gP=Wt(pP);function ib(){return ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ib.apply(this,arguments)}const hP=(e,t)=>c.createElement(Zt,ib({},e,{ref:t,icon:gP})),c$=c.forwardRef(hP),{ESC:bP,TAB:yP}=Je;function vP({visible:e,triggerRef:t,onVisibleChange:o,autoFocus:r,overlayRef:s}){const l=c.useRef(!1),d=()=>{e&&(t.current?.focus?.(),o?.(!1))},f=()=>s.current?.focus?(s.current.focus(),l.current=!0,!0):!1,p=m=>{switch(m.keyCode){case bP:d();break;case yP:{let h=!1;l.current||(h=f()),h?m.preventDefault():d();break}}};c.useEffect(()=>e?(window.addEventListener("keydown",p),r&&Lt(f,3),()=>{window.removeEventListener("keydown",p),l.current=!1}):()=>{l.current=!1},[e])}const xP=c.forwardRef((e,t)=>{const{overlay:o,arrow:r,prefixCls:s}=e,l=c.useMemo(()=>{let f;return typeof o=="function"?f=o():f=o,f},[o]),d=no(t,pi(l));return le.createElement(le.Fragment,null,r&&le.createElement("div",{className:`${s}-arrow`}),le.cloneElement(l,{ref:Es(l)?d:void 0}))}),as={adjustX:1,adjustY:1},is=[0,0],SP={topLeft:{points:["bl","tl"],overflow:as,offset:[0,-4],targetOffset:is},top:{points:["bc","tc"],overflow:as,offset:[0,-4],targetOffset:is},topRight:{points:["br","tr"],overflow:as,offset:[0,-4],targetOffset:is},bottomLeft:{points:["tl","bl"],overflow:as,offset:[0,4],targetOffset:is},bottom:{points:["tc","bc"],overflow:as,offset:[0,4],targetOffset:is},bottomRight:{points:["tr","br"],overflow:as,offset:[0,4],targetOffset:is}};function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},sb.apply(this,arguments)}const CP=le.forwardRef((e,t)=>{const{arrow:o=!1,prefixCls:r="rc-dropdown",transitionName:s,animation:l,align:d,placement:f="bottomLeft",placements:p=SP,getPopupContainer:m,showAction:h,hideAction:b,overlayClassName:v,overlayStyle:x,visible:S,trigger:C=["hover"],autoFocus:R,overlay:w,children:N,onVisibleChange:$,disabled:E,...T}=e,[z,A]=le.useState(),I="visible"in e?S:z,j=l?`${r}-${l}`:s,L=le.useRef(null),B=le.useRef(null),H=le.useRef(null);le.useImperativeHandle(t,()=>L.current);const q=W=>{A(W),$?.(W)};vP({visible:I,triggerRef:H,onVisibleChange:q,autoFocus:R,overlayRef:B});const Q=W=>{const{onOverlayClick:K}=e;A(!1),K&&K(W)},F=()=>le.createElement(xP,{ref:B,overlay:w,prefixCls:r,arrow:o}),D=()=>typeof w=="function"?F:F(),G=()=>{const{minOverlayWidthMatchTrigger:W,alignPoint:K}=e;return"minOverlayWidthMatchTrigger"in e?W:!K},X=()=>{const{openClassName:W}=e;return W!==void 0?W:`${r}-open`},ee=N,Z=U(ee.props?.className,I&&X()),_={className:Z,ref:no(H,pi(ee))},V=Es(ee)?le.cloneElement(ee,_):le.createElement("span",{className:Z,ref:H},le.cloneElement(ee,{className:Z}));let Y=b;return!Y&&C.indexOf("contextMenu")!==-1&&(Y=["click"]),le.createElement(pf,sb({builtinPlacements:p},T,{prefixCls:r,ref:L,popupClassName:U(v,{[`${r}-show-arrow`]:o}),popupStyle:x,action:C,showAction:h,hideAction:Y,popupPlacement:f,popupAlign:d,popupMotion:{motionName:j},popupVisible:I,stretch:G()?"minWidth":"",popup:D(),onOpenChange:q,onPopupClick:Q,getPopupContainer:m}),V)}),sN=c.createContext(null);function lN(e,t){return`${e}-${t}`}function cN(e){const t=c.useContext(sN);return lN(t,e)}const rr=c.createContext(null);function $P(e,t){const o={...e};return Object.keys(t).forEach(r=>{const s=t[r];s!==void 0&&(o[r]=s)}),o}function tc({children:e,locked:t,...o}){const r=c.useContext(rr),s=ic(()=>$P(r,o),[r,o],(l,d)=>!t&&(l[0]!==d[0]||!Xl(l[1],d[1],!0)));return c.createElement(rr.Provider,{value:s},e)}const EP=[],uN=c.createContext(null);function $f(){return c.useContext(uN)}const dN=c.createContext(EP);function Os(e){const t=c.useContext(dN);return c.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const fN=c.createContext(null),B0=c.createContext({}),{LEFT:lb,RIGHT:cb,UP:ub,DOWN:_d,ENTER:Pd,ESC:mN,HOME:Al,END:Il}=Je,u$=[ub,_d,lb,cb];function wP(e,t,o,r){const s="prev",l="next",d="children",f="parent";if(e==="inline"&&r===Pd)return{inlineTrigger:!0};const p={[ub]:s,[_d]:l},m={[lb]:o?l:s,[cb]:o?s:l,[_d]:d,[Pd]:d},h={[ub]:s,[_d]:l,[Pd]:d,[mN]:f,[lb]:o?d:f,[cb]:o?f:d};switch({inline:p,horizontal:m,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h}[`${e}${t?"":"Sub"}`]?.[r]){case s:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function NP(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function RP(e,t){let o=e||document.activeElement;for(;o;){if(t.has(o))return o;o=o.parentElement}return null}function _0(e,t){return Jb(e,!0).filter(r=>t.has(r))}function d$(e,t,o,r=1){if(!e)return null;const s=_0(e,t),l=s.length;let d=s.findIndex(f=>o===f);return r<0?d===-1?d=l-1:d-=1:r>0&&(d+=1),d=(d+l)%l,s[d]}const Qd=(e,t)=>{const o=new Set,r=new Map,s=new Map;return e.forEach(l=>{const d=document.querySelector(`[data-menu-id='${lN(t,l)}']`);d&&(o.add(d),s.set(d,l),r.set(l,d))}),{elements:o,key2element:r,element2key:s}};function MP(e,t,o,r,s,l,d,f,p,m){const h=c.useRef(),b=c.useRef();b.current=t;const v=()=>{Lt.cancel(h.current)};return c.useEffect(()=>()=>{v()},[]),x=>{const{which:S}=x;if([...u$,Pd,mN,Al,Il].includes(S)){const C=l();let R=Qd(C,r);const{elements:w,key2element:N,element2key:$}=R,E=N.get(t),T=RP(E,w),z=$.get(T),A=wP(e,d(z,!0).length===1,o,S);if(!A&&S!==Al&&S!==Il)return;(u$.includes(S)||[Al,Il].includes(S))&&x.preventDefault();const I=j=>{if(j){let L=j;const B=j.querySelector("a");B?.getAttribute("href")&&(L=B);const H=$.get(j);f(H),v(),h.current=Lt(()=>{b.current===H&&L.focus()})}};if([Al,Il].includes(S)||A.sibling||!T){let j;!T||e==="inline"?j=s.current:j=NP(T);let L;const B=_0(j,w);S===Al?L=B[0]:S===Il?L=B[B.length-1]:L=d$(j,w,T,A.offset),I(L)}else if(A.inlineTrigger)p(z);else if(A.offset>0)p(z,!0),v(),h.current=Lt(()=>{R=Qd(C,r);const j=T.getAttribute("aria-controls"),L=document.getElementById(j),B=d$(L,R.elements);I(B)},5);else if(A.offset<0){const j=d(z,!0),L=j[j.length-2],B=N.get(L);p(L,!1),I(B)}}m?.(x)}}function TP(e){Promise.resolve().then(e)}const P0="__RC_UTIL_PATH_SPLIT__",f$=e=>e.join(P0),OP=e=>e.split(P0),db="rc-menu-more";function zP(){const[,e]=c.useState({}),t=c.useRef(new Map),o=c.useRef(new Map),[r,s]=c.useState([]),l=c.useRef(0),d=c.useRef(!1),f=()=>{d.current||e({})},p=c.useCallback((C,R)=>{const w=f$(R);o.current.set(w,C),t.current.set(C,w),l.current+=1;const N=l.current;TP(()=>{N===l.current&&f()})},[]),m=c.useCallback((C,R)=>{const w=f$(R);o.current.delete(w),t.current.delete(C)},[]),h=c.useCallback(C=>{s(C)},[]),b=c.useCallback((C,R)=>{const w=t.current.get(C)||"",N=OP(w);return R&&r.includes(N[0])&&N.unshift(db),N},[r]),v=c.useCallback((C,R)=>C.filter(w=>w!==void 0).some(w=>b(w,!0).includes(R)),[b]),x=()=>{const C=[...t.current.keys()];return r.length&&C.push(db),C},S=c.useCallback(C=>{const R=`${t.current.get(C)}${P0}`,w=new Set;return[...o.current.keys()].forEach(N=>{N.startsWith(R)&&w.add(o.current.get(N))}),w},[]);return c.useEffect(()=>()=>{d.current=!0},[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:h,isSubPathKey:v,getKeyPath:b,getKeys:x,getSubPathKeys:S}}function Hl(e){const t=c.useRef(e);t.current=e;const o=c.useCallback((...r)=>t.current?.(...r),[]);return e?o:void 0}function pN(e,t,o,r){const{activeKey:s,onActive:l,onInactive:d}=c.useContext(rr),f={active:s===e};return t||(f.onMouseEnter=p=>{o?.({key:e,domEvent:p}),l(e)},f.onMouseLeave=p=>{r?.({key:e,domEvent:p}),d(e)}),f}function gN(e){const{mode:t,rtl:o,inlineIndent:r}=c.useContext(rr);if(t!=="inline")return null;const s=e;return o?{paddingRight:s*r}:{paddingLeft:s*r}}function hN({icon:e,props:t,children:o}){let r;return e===null||e===!1?null:(typeof e=="function"?r=c.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||o||null)}function Zd({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Yn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},nc.apply(this,arguments)}class AP extends c.Component{render(){const{title:t,attribute:o,elementRef:r,...s}=this.props,l=xn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Yn(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Dr.Item,nc({},o,{title:typeof t=="string"?t:void 0},l,{ref:r}))}}const IP=c.forwardRef((e,t)=>{const{style:o,className:r,eventKey:s,warnKey:l,disabled:d,itemIcon:f,children:p,itemData:m,role:h,onMouseEnter:b,onMouseLeave:v,onClick:x,onKeyDown:S,onFocus:C,...R}=e,w=cN(s),{prefixCls:N,onItemClick:$,disabled:E,overflowDisabled:T,itemIcon:z,selectedKeys:A,onActive:I}=c.useContext(rr),{_internalRenderMenuItem:j}=c.useContext(B0),L=`${N}-item`,B=c.useRef(),H=c.useRef(),q=E||d,Q=Gr(t,H),F=Os(s),D=k=>{const se=m||{key:s||"",label:p,itemIcon:f,extra:e.extra,title:e.title};return{key:s,keyPath:[...F].reverse(),item:B.current,domEvent:k,itemData:m||se}},G=f||z,{active:X,...ee}=pN(s,q,b,v),Z=A.includes(s),_=gN(F.length),V=k=>{if(q)return;const se=D(k);x?.(Zd(se)),$(se)},Y=k=>{if(S?.(k),k.which===Je.ENTER){const se=D(k);x?.(Zd(se)),$(se)}},W=k=>{I(s),C?.(k)},K={};e.role==="option"&&(K["aria-selected"]=Z);let te=c.createElement(AP,nc({ref:B,elementRef:Q,role:h===null?"none":h||"menuitem",tabIndex:d?null:-1,"data-menu-id":T&&w?null:w},xn(R,["extra"]),ee,K,{component:"li","aria-disabled":d,style:{..._,...o},className:U(L,{[`${L}-active`]:X,[`${L}-selected`]:Z,[`${L}-disabled`]:q},r),onClick:V,onKeyDown:Y,onFocus:W}),p,c.createElement(hN,{props:{...e,isSelected:Z},icon:G}));return j&&(te=j(te,e,{selected:Z})),te});function BP(e,t){const{eventKey:o}=e,r=$f(),s=Os(o);return c.useEffect(()=>{if(r)return r.registerPath(o,s),()=>{r.unregisterPath(o,s)}},[s]),r?null:c.createElement(IP,nc({},e,{ref:t}))}const yc=c.forwardRef(BP);function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fb.apply(this,arguments)}const _P=({className:e,children:t,...o},r)=>{const{prefixCls:s,mode:l,rtl:d}=c.useContext(rr);return c.createElement("ul",fb({className:U(s,d&&`${s}-rtl`,`${s}-sub`,`${s}-${l==="inline"?"inline":"vertical"}`,e),role:"menu"},o,{"data-menu-list":!0,ref:r}),t)},bN=c.forwardRef(_P);function j0(e,t){return Oo(e).map((o,r)=>{if(c.isValidElement(o)){const{key:s}=o;let l=o.props?.eventKey??s;l==null&&(l=`tmp_key-${[...t,r].join("-")}`);const f={key:l,eventKey:l};return c.cloneElement(o,f)}return o})}const kn={adjustX:1,adjustY:1},PP={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},leftTop:{points:["tr","tl"],overflow:kn},leftBottom:{points:["br","bl"],overflow:kn},rightTop:{points:["tl","tr"],overflow:kn},rightBottom:{points:["bl","br"],overflow:kn}},jP={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},rightTop:{points:["tr","tl"],overflow:kn},rightBottom:{points:["br","bl"],overflow:kn},leftTop:{points:["tl","tr"],overflow:kn},leftBottom:{points:["bl","br"],overflow:kn}};function yN(e,t,o){if(t)return t;if(o)return o[e]||o.other}const HP={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function DP({prefixCls:e,visible:t,children:o,popup:r,popupStyle:s,popupClassName:l,popupOffset:d,disabled:f,mode:p,onVisibleChange:m}){const{getPopupContainer:h,rtl:b,subMenuOpenDelay:v,subMenuCloseDelay:x,builtinPlacements:S,triggerSubMenuAction:C,forceSubMenuRender:R,rootClassName:w,motion:N,defaultMotions:$}=c.useContext(rr),[E,T]=c.useState(!1),z=b?{...jP,...S}:{...PP,...S},A=HP[p],I=yN(p,N,$),j=c.useRef(I);p!=="inline"&&(j.current=I);const L={...j.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},B=c.useRef();return c.useEffect(()=>(B.current=Lt(()=>{T(t)}),()=>{Lt.cancel(B.current)}),[t]),c.createElement(pf,{prefixCls:e,popupClassName:U(`${e}-popup`,{[`${e}-rtl`]:b},l,w),stretch:p==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:z,popupPlacement:A,popupVisible:E,popup:r,popupStyle:s,popupAlign:d&&{offset:d},action:f?[]:[C],mouseEnterDelay:v,mouseLeaveDelay:x,onPopupVisibleChange:m,forceRender:R,popupMotion:L,fresh:!0},o)}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},mb.apply(this,arguments)}function LP({id:e,open:t,keyPath:o,children:r}){const s="inline",{prefixCls:l,forceSubMenuRender:d,motion:f,defaultMotions:p,mode:m}=c.useContext(rr),h=c.useRef(!1);h.current=m===s;const[b,v]=c.useState(!h.current),x=h.current?t:!1;c.useEffect(()=>{h.current&&v(!1)},[m]);const S={...yN(s,f,p)};o.length>1&&(S.motionAppear=!1);const C=S.onVisibleChanged;return S.onVisibleChanged=R=>(!h.current&&!R&&v(!0),C?.(R)),b?null:c.createElement(tc,{mode:s,locked:!h.current},c.createElement(to,mb({visible:x},S,{forceRender:d,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),({className:R,style:w})=>c.createElement(bN,{id:e,className:R,style:w},r)))}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},oc.apply(this,arguments)}const VP=c.forwardRef((e,t)=>{const{style:o,className:r,styles:s,classNames:l,title:d,eventKey:f,warnKey:p,disabled:m,internalPopupClose:h,children:b,itemIcon:v,expandIcon:x,popupClassName:S,popupOffset:C,popupStyle:R,onClick:w,onMouseEnter:N,onMouseLeave:$,onTitleClick:E,onTitleMouseEnter:T,onTitleMouseLeave:z,popupRender:A,...I}=e,j=cN(f),{prefixCls:L,mode:B,openKeys:H,disabled:q,overflowDisabled:Q,activeKey:F,selectedKeys:D,itemIcon:G,expandIcon:X,onItemClick:ee,onOpenChange:Z,onActive:_,popupRender:V}=c.useContext(rr),{_internalRenderSubMenuItem:Y}=c.useContext(B0),{isSubPathKey:W}=c.useContext(fN),K=Os(),te=`${L}-submenu`,k=q||m,se=c.useRef(),ce=c.useRef(),ae=v??G,pe=x??X,oe=H.includes(f),fe=!Q&&oe,he=W(D,f),{active:be,...Ee}=pN(f,k,T,z),[Se,ye]=c.useState(!1),Ne=Te=>{k||ye(Te)},Oe=Te=>{Ne(!0),N?.({key:f,domEvent:Te})},Ce=Te=>{Ne(!1),$?.({key:f,domEvent:Te})},Ie=c.useMemo(()=>be||(B!=="inline"?Se||W([F],f):!1),[B,be,F,Se,f,W]),Me=gN(K.length),je=Te=>{k||(E?.({key:f,domEvent:Te}),B==="inline"&&Z(f,!oe))},et=Hl(Te=>{w?.(Zd(Te)),ee(Te)}),ke=Te=>{B!=="inline"&&Z(f,Te)},Le=()=>{_(f)},Ve=j&&`${j}-popup`,Ke=c.useMemo(()=>c.createElement(hN,{icon:B!=="horizontal"?pe:void 0,props:{...e,isOpen:fe,isSubMenu:!0}},c.createElement("i",{className:`${te}-arrow`})),[B,pe,e,fe,te]);let qe=c.createElement("div",oc({role:"menuitem",style:Me,className:`${te}-title`,tabIndex:k?null:-1,ref:se,title:typeof d=="string"?d:null,"data-menu-id":Q&&j?null:j,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Ve,"aria-disabled":k,onClick:je,onFocus:Le},Ee),d,Ke);const Ae=c.useRef(B);B!=="inline"&&K.length>1?Ae.current="vertical":Ae.current=B;const Pe=Ae.current,We=c.useMemo(()=>{const Te=c.createElement(tc,{classNames:l,styles:s,mode:Pe==="horizontal"?"vertical":Pe},c.createElement(bN,{id:Ve,ref:ce},b)),Ge=A||V;return Ge?Ge(Te,{item:e,keys:K}):Te},[A,V,K,Ve,b,e,Pe]);if(!Q){const Te=Ae.current;qe=c.createElement(DP,{mode:Te,prefixCls:te,visible:!h&&fe&&B!=="inline",popupClassName:S,popupOffset:C,popupStyle:R,popup:We,disabled:k,onVisibleChange:ke},qe)}let Be=c.createElement(Dr.Item,oc({ref:t,role:"none"},I,{component:"li",style:o,className:U(te,`${te}-${B}`,r,{[`${te}-open`]:fe,[`${te}-active`]:Ie,[`${te}-selected`]:he,[`${te}-disabled`]:k}),onMouseEnter:Oe,onMouseLeave:Ce}),qe,!Q&&c.createElement(LP,{id:Ve,open:fe,keyPath:K},b));return Y&&(Be=Y(Be,e,{selected:he,active:Ie,open:fe,disabled:k})),c.createElement(tc,{classNames:l,styles:s,onItemClick:et,mode:B==="horizontal"?"vertical":B,itemIcon:ae,expandIcon:pe},Be)}),Ef=c.forwardRef((e,t)=>{const{eventKey:o,children:r}=e,s=Os(o),l=j0(r,s),d=$f();c.useEffect(()=>{if(d)return d.registerPath(o,s),()=>{d.unregisterPath(o,s)}},[s]);let f;return d?f=l:f=c.createElement(VP,oc({ref:t},e),l),c.createElement(dN.Provider,{value:s},f)});function H0({className:e,style:t}){const{prefixCls:o}=c.useContext(rr);return $f()?null:c.createElement("li",{role:"separator",className:U(`${o}-item-divider`,e),style:t})}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Jd.apply(this,arguments)}const FP=c.forwardRef((e,t)=>{const{className:o,title:r,eventKey:s,children:l,...d}=e,{prefixCls:f,classNames:p,styles:m}=c.useContext(rr),h=`${f}-item-group`;return c.createElement("li",Jd({ref:t,role:"presentation"},d,{onClick:b=>b.stopPropagation(),className:U(h,o)}),c.createElement("div",{role:"presentation",className:U(`${h}-title`,p?.listTitle),style:m?.listTitle,title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:U(`${h}-list`,p?.list),style:m?.list},l))}),D0=c.forwardRef((e,t)=>{const{eventKey:o,children:r}=e,s=Os(o),l=j0(r,s);return $f()?l:c.createElement(FP,Jd({ref:t},xn(e,["warnKey"])),l)});function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},cs.apply(this,arguments)}function pb(e,t,o){const{item:r,group:s,submenu:l,divider:d}=t;return(e||[]).map((f,p)=>{if(f&&typeof f=="object"){const{label:m,children:h,key:b,type:v,extra:x,...S}=f,C=b??`tmp-${p}`;if(h||v==="group")return v==="group"?c.createElement(s,cs({key:C},S,{title:m}),pb(h,t,o)):c.createElement(l,cs({key:C},S,{title:m}),pb(h,t,o));if(v==="divider")return c.createElement(d,cs({key:C},S));const R=!!x||x===0;return c.createElement(r,cs({key:C},S,{extra:x,itemData:{...f,key:C}}),R?c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}-item-label`},m),c.createElement("span",{className:`${o}-item-extra`},x)):m)}return null}).filter(f=>f)}function m$(e,t,o,r,s){let l=e;const d={divider:H0,item:yc,group:D0,submenu:Ef,...r};return t&&(l=pb(t,d,s)),j0(l,o)}function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},gb.apply(this,arguments)}const Za=[],qP=c.forwardRef((e,t)=>{const{prefixCls:o="rc-menu",rootClassName:r,style:s,className:l,styles:d,classNames:f,tabIndex:p=0,items:m,children:h,direction:b,id:v,mode:x="vertical",inlineCollapsed:S,disabled:C,disabledOverflow:R,subMenuOpenDelay:w=.1,subMenuCloseDelay:N=.1,forceSubMenuRender:$,defaultOpenKeys:E,openKeys:T,activeKey:z,defaultActiveFirst:A,selectable:I=!0,multiple:j=!1,defaultSelectedKeys:L,selectedKeys:B,onSelect:H,onDeselect:q,inlineIndent:Q=24,motion:F,defaultMotions:D,triggerSubMenuAction:G="hover",builtinPlacements:X,itemIcon:ee,expandIcon:Z,overflowedIndicator:_="...",overflowedIndicatorPopupClassName:V,getPopupContainer:Y,onClick:W,onOpenChange:K,onKeyDown:te,openAnimation:k,openTransitionName:se,_internalRenderMenuItem:ce,_internalRenderSubMenuItem:ae,_internalComponents:pe,popupRender:oe,...fe}=e,[he,be]=c.useMemo(()=>[m$(h,m,Za,pe,o),m$(h,m,Za,{},o)],[h,m,pe]),[Ee,Se]=c.useState(!1),ye=c.useRef(),Ne=Wr(v?`rc-menu-uuid-${v}`:"rc-menu-uuid"),Oe=b==="rtl",[Ce,Ie]=Ro(E,T),Me=Ce||Za,je=(at,mt=!1)=>{function vt(){Ie(at),K?.(at)}mt?di.flushSync(vt):vt()},[et,ke]=c.useState(Me),Le=c.useRef(!1),[Ve,Ke]=c.useMemo(()=>(x==="inline"||x==="vertical")&&S?["vertical",S]:[x,!1],[x,S]),qe=Ve==="inline",[Ae,Pe]=c.useState(Ve),[We,Be]=c.useState(Ke);c.useEffect(()=>{Pe(Ve),Be(Ke),Le.current&&(qe?Ie(et):je(Za))},[Ve,Ke]);const[Te,Ge]=c.useState(0),nt=Te>=he.length-1||Ae!=="horizontal"||R;c.useEffect(()=>{qe&&ke(Me)},[Me]),c.useEffect(()=>(Le.current=!0,()=>{Le.current=!1}),[]);const{registerPath:ot,unregisterPath:yt,refreshOverflowKeys:st,isSubPathKey:Bt,getKeyPath:_t,getKeys:pt,getSubPathKeys:zt}=zP(),wt=c.useMemo(()=>({registerPath:ot,unregisterPath:yt}),[ot,yt]),Dt=c.useMemo(()=>({isSubPathKey:Bt}),[Bt]);c.useEffect(()=>{st(nt?Za:he.slice(Te+1).map(at=>at.key))},[Te,nt]);const[Qe,At]=Ro(z||A&&he[0]?.key,z),He=Hl(at=>{At(at)}),we=Hl(()=>{At(void 0)});c.useImperativeHandle(t,()=>({list:ye.current,focus:at=>{const mt=pt(),{elements:vt,key2element:Fe,element2key:rt}=Qd(mt,Ne),Pt=_0(ye.current,vt);let en;Qe&&mt.includes(Qe)?en=Qe:en=Pt[0]?rt.get(Pt[0]):he.find(Vt=>!Vt.props.disabled)?.key;const xt=Fe.get(en);en&&xt&&xt?.focus?.(at)},findItem:({key:at})=>{const mt=pt(),{key2element:vt}=Qd(mt,Ne);return vt.get(at)||null}}));const[ze,ve]=Ro(L||[],B),_e=c.useMemo(()=>Array.isArray(ze)?ze:ze==null?Za:[ze],[ze]),De=at=>{if(I){const{key:mt}=at,vt=_e.includes(mt);let Fe;j?vt?Fe=_e.filter(Pt=>Pt!==mt):Fe=[..._e,mt]:Fe=[mt],ve(Fe);const rt={...at,selectedKeys:Fe};vt?q?.(rt):H?.(rt)}!j&&Me.length&&Ae!=="inline"&&je(Za)},Xe=Hl(at=>{W?.(Zd(at)),De(at)}),lt=Hl((at,mt)=>{let vt=Me.filter(Fe=>Fe!==at);if(mt)vt.push(at);else if(Ae!=="inline"){const Fe=zt(at);vt=vt.filter(rt=>!Fe.has(rt))}Xl(Me,vt,!0)||je(vt,!0)}),$t=MP(Ae,Qe,Oe,Ne,ye,pt,_t,At,(at,mt)=>{const vt=mt??!Me.includes(at);lt(at,vt)},te);c.useEffect(()=>{Se(!0)},[]);const ct=c.useMemo(()=>({_internalRenderMenuItem:ce,_internalRenderSubMenuItem:ae}),[ce,ae]),Et=Ae!=="horizontal"||R?he:he.map((at,mt)=>c.createElement(tc,{key:at.key,overflowDisabled:mt>Te,classNames:f,styles:d},at)),on=c.createElement(Dr,gb({id:v,ref:ye,prefixCls:`${o}-overflow`,component:"ul",itemComponent:yc,className:U(o,`${o}-root`,`${o}-${Ae}`,l,{[`${o}-inline-collapsed`]:We,[`${o}-rtl`]:Oe},r),dir:b,style:s,role:"menu",tabIndex:p,data:Et,renderRawItem:at=>at,renderRawRest:at=>{const mt=at.length,vt=mt?he.slice(-mt):null;return c.createElement(Ef,{eventKey:db,title:_,disabled:nt,internalPopupClose:mt===0,popupClassName:V},vt)},maxCount:Ae!=="horizontal"||R?Dr.INVALIDATE:Dr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:at=>{Ge(at)},onKeyDown:$t},fe));return c.createElement(B0.Provider,{value:ct},c.createElement(sN.Provider,{value:Ne},c.createElement(tc,{prefixCls:o,rootClassName:r,classNames:f,styles:d,mode:Ae,openKeys:Me,rtl:Oe,disabled:C,motion:Ee?F:null,defaultMotions:Ee?D:null,activeKey:Qe,onActive:He,onInactive:we,selectedKeys:_e,inlineIndent:Q,subMenuOpenDelay:w,subMenuCloseDelay:N,forceSubMenuRender:$,builtinPlacements:X,triggerSubMenuAction:G,getPopupContainer:Y,itemIcon:ee,expandIcon:Z,onItemClick:Xe,onOpenChange:lt,popupRender:oe},c.createElement(fN.Provider,{value:Dt},on),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(uN.Provider,{value:wt},be)))))}),zs=qP;zs.Item=yc;zs.SubMenu=Ef;zs.ItemGroup=D0;zs.Divider=H0;var td={},p$;function UP(){if(p$)return td;p$=1,Object.defineProperty(td,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};return td.default=e,td}var WP=UP();const GP=Wt(WP);function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},hb.apply(this,arguments)}const XP=(e,t)=>c.createElement(Zt,hb({},e,{ref:t,icon:GP})),kP=c.forwardRef(XP),vN=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),YP=e=>{const{antCls:t,componentCls:o,colorText:r,footerBg:s,headerHeight:l,headerPadding:d,headerColor:f,footerPadding:p,fontSize:m,bodyBg:h,headerBg:b}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:h,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:l,padding:d,color:f,lineHeight:re(l),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:p,color:r,fontSize:m,background:s},[`${o}-content`]:{flex:"auto",color:r,minHeight:0}}},xN=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:r,colorText:s,controlHeightSM:l,marginXXS:d,colorTextLightSolid:f,colorBgContainer:p}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${m}px`,headerColor:s,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+d*2,triggerBg:"#002140",triggerColor:f,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:p,lightTriggerBg:p,lightTriggerColor:s}},SN=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],CN=Qt("Layout",YP,xN,{deprecatedTokens:SN}),KP=e=>{const{componentCls:t,siderBg:o,motionDurationMid:r,motionDurationSlow:s,antCls:l,triggerHeight:d,triggerColor:f,triggerBg:p,headerHeight:m,zeroTriggerWidth:h,zeroTriggerHeight:b,borderRadiusLG:v,lightSiderBg:x,lightTriggerColor:S,lightTriggerBg:C,bodyBg:R}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:d},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:d,color:f,lineHeight:re(d),textAlign:"center",background:p,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:b,color:f,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${re(v)} ${re(v)} 0`,cursor:"pointer",transition:`background-color ${s} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${s}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderRadius:`${re(v)} 0 0 ${re(v)}`}},"&-light":{background:x,[`${t}-trigger`]:{color:S,background:C},[`${t}-zero-width-trigger`]:{color:S,background:C,border:`${re(e.lineWidth)} ${e.lineType} ${R}`,borderInlineStart:0}}}}},QP=Qt(["Layout","Sider"],KP,xN,{deprecatedTokens:SN}),g$={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},ZP=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),wf=c.createContext({}),JP=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),$N=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,trigger:s,children:l,defaultCollapsed:d=!1,theme:f="dark",style:p={},collapsible:m=!1,reverseArrow:h=!1,width:b=200,collapsedWidth:v=80,zeroWidthTriggerStyle:x,breakpoint:S,onCollapse:C,onBreakpoint:R,classNames:w,styles:N,...$}=e,{siderHook:E}=c.useContext(vN),[T,z]=c.useState("collapsed"in e?e.collapsed:d),[A,I]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&z(e.collapsed)},[e.collapsed]);const j=(oe,fe)=>{"collapsed"in e||z(oe),C?.(oe,fe)},L={...e,collapsed:T,defaultCollapsed:d,theme:f,style:p,collapsible:m,reverseArrow:h,width:b,collapsedWidth:v,zeroWidthTriggerStyle:x,breakpoint:S,onCollapse:C,onBreakpoint:R},[B,H]=mn([w],[N],{props:L}),{getPrefixCls:q,direction:Q}=c.useContext(bt),F=q("layout-sider",o),[D,G]=QP(F),X=c.useRef(null);X.current=oe=>{I(oe.matches),R?.(oe.matches),T!==oe.matches&&j(oe.matches,"responsive")},c.useEffect(()=>{function oe(he){return X.current?.(he)}let fe;return typeof window?.matchMedia<"u"&&S&&S in g$&&(fe=window.matchMedia(`screen and (max-width: ${g$[S]})`),fn(fe?.addEventListener)&&fe.addEventListener("change",oe),oe(fe)),()=>{fn(fe?.removeEventListener)&&fe.removeEventListener("change",oe)}},[S]),c.useEffect(()=>{const oe=JP("ant-sider-");return E.addSider(oe),()=>E.removeSider(oe)},[]);const ee=()=>{j(!T,"clickTrigger")},Z=xn($,["collapsed"]),_=T?v:b,V=ZP(_)?`${_}px`:String(_),Y=Number.parseFloat(String(v||0))===0?c.createElement("span",{onClick:ee,className:U(`${F}-zero-width-trigger`,`${F}-zero-width-trigger-${h?"right":"left"}`),style:x},s||c.createElement(kP,null)):null,W=Q==="rtl"==!h,k={expanded:W?c.createElement(CC,null):c.createElement(c$,null),collapsed:W?c.createElement(c$,null):c.createElement(CC,null)}[T?"collapsed":"expanded"],se=s!==null?Y||c.createElement("div",{className:`${F}-trigger`,onClick:ee,style:{width:V}},s||k):null,ce={...p,flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V},ae=U(F,`${F}-${f}`,{[`${F}-collapsed`]:!!T,[`${F}-has-trigger`]:m&&s!==null&&!Y,[`${F}-below`]:!!A,[`${F}-zero-width`]:Number.parseFloat(V)===0},r,B.root,D,G),pe=c.useMemo(()=>({siderCollapsed:T}),[T]);return c.createElement(wf.Provider,{value:pe},c.createElement("aside",{className:ae,...Z,style:{...H.root,...ce},ref:t},c.createElement("div",{className:U(`${F}-children`,B.body),style:H.body},l),m||A&&Y?se:null))});var nd={},h$;function ej(){if(h$)return nd;h$=1,Object.defineProperty(nd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};return nd.default=e,nd}var tj=ej();const nj=Wt(tj);function bb(){return bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},bb.apply(this,arguments)}const oj=(e,t)=>c.createElement(Zt,bb({},e,{ref:t,icon:nj})),L0=c.forwardRef(oj),ef=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),EN=e=>{const{prefixCls:t,className:o,dashed:r,...s}=e,{getPrefixCls:l}=c.useContext(bt),d=l("menu",t),f=U({[`${d}-item-divider-dashed`]:!!r},o);return c.createElement(H0,{className:f,...s})},wN=e=>{const{className:t,children:o,icon:r,title:s,danger:l,extra:d}=e,{prefixCls:f,firstLevel:p,direction:m,disableMenuItemTitleTooltip:h,tooltip:b,inlineCollapsed:v,styles:x,classNames:S}=c.useContext(ef),C=A=>{const I=o?.[0],j=c.createElement("span",{className:U(`${f}-title-content`,p?S?.itemContent:S?.subMenu?.itemContent,{[`${f}-title-content-with-extra`]:!!d||d===0}),style:p?x?.itemContent:x?.subMenu?.itemContent},o);return(!r||c.isValidElement(o)&&o.type==="span")&&o&&A&&p&&typeof I=="string"?c.createElement("div",{className:`${f}-inline-collapsed-noicon`},I.charAt(0)):j},{siderCollapsed:R}=c.useContext(wf);let w=s;typeof s>"u"?w=p?o:"":s===!1&&(w="");const N=b===!1?void 0:b,$=N&&N.title!==void 0?N.title:w,E={...N??null,title:$};!R&&!v&&(E.title=null,E.open=!1);const T=Oo(o).length;let z=c.createElement(yc,{...xn(e,["title","icon","danger"]),className:U(p?S?.item:S?.subMenu?.item,{[`${f}-item-danger`]:l,[`${f}-item-only-child`]:(r?T+1:T)===1},t),style:{...p?x?.item:x?.subMenu?.item,...e.style},title:typeof s=="string"?s:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},Xo(r,A=>({className:U(`${f}-item-icon`,p?S?.itemIcon:S?.subMenu?.itemIcon,A.className),style:{...p?x?.itemIcon:x?.subMenu?.itemIcon,...A.style}})),C(v));if(!h&&b!==!1){const A=N&&N.placement?N.placement:m==="rtl"?"left":"right",I=`${f}-inline-collapsed-tooltip`,j=B=>({...B,root:U(I,B?.root)}),L=fn(N?.classNames)?B=>{const H=N.classNames(B);return j(H)}:j(N?.classNames);z=c.createElement(Ur,{...E,placement:A,classNames:L},z)}return z},b$=c.createContext(null),rj=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:r,colorSplit:s,lineWidth:l,lineType:d,itemPaddingInline:f}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${re(l)} ${d} ${s}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:f},[`> ${t}-item:hover,
178
+ > ${t}-item-active,
179
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(p=>`${p} ${o}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},aj=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
180
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${re(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${re(t)})`}}}}),y$=e=>Ns(e),v$=(e,t)=>{const{componentCls:o,itemColor:r,itemSelectedColor:s,subMenuItemSelectedColor:l,groupTitleColor:d,itemBg:f,subMenuItemBg:p,itemSelectedBg:m,activeBarHeight:h,activeBarWidth:b,activeBarBorderWidth:v,motionDurationSlow:x,motionEaseInOut:S,motionEaseOut:C,itemPaddingInline:R,motionDurationMid:w,itemHoverColor:N,lineType:$,colorSplit:E,itemDisabledColor:T,dangerItemColor:z,dangerItemHoverColor:A,dangerItemSelectedColor:I,dangerItemActiveBg:j,dangerItemSelectedBg:L,popupBg:B,itemHoverBg:H,itemActiveBg:q,menuSubMenuBg:Q,horizontalItemSelectedColor:F,horizontalItemSelectedBg:D,horizontalItemBorderRadius:G,horizontalItemHoverBg:X}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:r,background:f,[`&${o}-root:focus-visible`]:{...y$(e)},[`${o}-item`]:{"&-group-title, &-extra":{color:d}},[`${o}-submenu-selected > ${o}-submenu-title`]:{color:l},[`${o}-item, ${o}-submenu-title`]:{color:r,[`&:not(${o}-item-disabled):focus-visible`]:{...y$(e)}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${T} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:N}},[`${o}-submenu:not(${o}-submenu-selected)`]:{[`> ${o}-submenu-title:hover`]:{color:N}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:q}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:q}}},[`${o}-item-danger`]:{color:z,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:A}},[`&${o}-item:active`]:{background:j}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:s,[`&${o}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:m,[`&${o}-item-danger`]:{backgroundColor:L}},[`&${o}-submenu > ${o}`]:{backgroundColor:Q},[`&${o}-popup > ${o}`]:{backgroundColor:B},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:B},[`&${o}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${o}-item, > ${o}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:G,"&::after":{position:"absolute",insetInline:R,bottom:0,borderBottom:`${re(h)} solid transparent`,transition:`border-color ${x} ${S}`,content:'""'},"&:hover, &-active, &-open":{background:X,"&::after":{borderBottomWidth:h,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:h,borderBottomColor:F}}}},[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${re(v)} ${$} ${E}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:p},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${re(b)} solid ${s}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(ee=>`${ee} ${w} ${C}`).join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(ee=>`${ee} ${w} ${S}`).join(",")}}}}}},x$=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:r,padding:s,menuArrowSize:l,marginXS:d,itemMarginBlock:f,itemWidth:p,itemPaddingInline:m}=e,h=e.calc(l).add(s).add(d).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:re(o),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:f,width:p},[`> ${t}-item,
181
+ > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:re(o)},[`${t}-item-group-list ${t}-submenu-title,
182
+ ${t}-submenu-title`]:{paddingInlineEnd:h}}},ij=e=>{const{componentCls:t,iconCls:o,itemHeight:r,colorTextLightSolid:s,dropdownWidth:l,controlHeightLG:d,motionEaseOut:f,padding:p,paddingXL:m,itemMarginInline:h,fontSizeLG:b,motionDurationFast:v,motionDurationSlow:x,paddingXS:S,boxShadowSecondary:C,collapsedWidth:R,collapsedIconSize:w}=e,N={height:r,lineHeight:re(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...x$(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...x$(e),boxShadow:C}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${re(e.calc(d).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${x}`,`background-color ${x}`,`padding ${v} ${f}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:N,[`& ${t}-item-group-title`]:{paddingInlineStart:m}},[`${t}-item`]:N}},{[`${t}-inline-collapsed`]:{width:R,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:b,textAlign:"center",width:"100%"}}},[`> ${t}-item,
183
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
184
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
185
+ > ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${re(e.calc(w).div(2).equal())} - ${re(h)})`,textOverflow:"clip",[`
186
+ ${t}-submenu-arrow,
187
+ ${t}-submenu-expand-icon
188
+ `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:w,lineHeight:re(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:p},"a, a:hover":{color:s}},[`${t}-item-group-title`]:{...or,paddingInline:S}}}]},S$=e=>{const{componentCls:t,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:s,motionEaseOut:l,iconCls:d,iconSize:f,iconMarginInlineEnd:p}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background-color ${o}`,`padding calc(${o} + 0.1s) ${s}`].join(","),[`${t}-item-icon, ${d}`]:{minWidth:f,fontSize:f,transition:[`font-size ${r} ${l}`,`margin ${o} ${s}`,`color ${o}`].join(","),"+ span":{marginInlineStart:p,opacity:1,transition:[`opacity ${o} ${s}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:{...uf()},[`&${t}-item-only-child`]:{[`> ${d}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},C$=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:r,borderRadius:s,menuArrowSize:l,menuArrowOffset:d}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(f=>`${f} ${o}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:s,transition:["background-color","transform","top","color"].map(f=>`${f} ${o} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${re(e.calc(d).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${re(d)})`}}}}},sj=e=>{const{antCls:t,componentCls:o,fontSize:r,motionDurationSlow:s,motionDurationMid:l,motionEaseInOut:d,paddingXS:f,padding:p,colorSplit:m,lineWidth:h,zIndexPopup:b,borderRadiusLG:v,subMenuItemBorderRadius:x,menuArrowSize:S,menuArrowOffset:C,lineType:R,groupTitleLineHeight:w,groupTitleFontSize:N,iconSize:$,iconMarginInlineEnd:E}=e,T=[`> ${t}-typography-ellipsis-single-line`,`> ${o}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[o]:{...mi(),"&-hidden":{display:"none"}}},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:{...Vn(e),...mi(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${s} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${re(f)} ${re(p)}`,fontSize:N,lineHeight:w,transition:`all ${s}`},[`&-horizontal ${o}-submenu`]:{transition:["border-color","background-color"].map(z=>`${z} ${s} ${d}`).join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${s}`,`background-color ${s}`,`padding ${l}`].map(z=>`${z} ${d}`).join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(z=>`${z} ${s} ${d}`).join(",")},[`${o}-title-content`]:{transition:`color ${s}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${o}-item-label`]:{flex:"auto",minWidth:0,...or},[T]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${o}-item-icon + ${o}-title-content-with-extra`]:{width:`calc(100% - ${re(e.calc($).add(E??0).equal())})`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:R,borderWidth:0,borderTopWidth:h,marginBlock:h,padding:0,"&-dashed":{borderStyle:"dashed"}},...S$(e),[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${re(e.calc(r).mul(2).equal())} ${re(p)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:b,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:{borderRadius:v,...S$(e),...C$(e),[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:x},[`${o}-submenu-title::after`]:{transition:`transform ${s} ${d}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...C$(e),[`&-inline-collapsed ${o}-submenu-arrow,
189
+ &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${re(C)})`},"&::after":{transform:`rotate(45deg) translateX(${re(e.calc(C).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${re(e.calc(S).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${re(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${re(C)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},lj=e=>{const{colorPrimary:t,colorError:o,colorTextDisabled:r,colorErrorBg:s,colorText:l,colorTextDescription:d,colorBgContainer:f,colorFillAlter:p,colorFillContent:m,lineWidth:h,lineWidthBold:b,controlItemBgActive:v,colorBgTextHover:x,controlHeightLG:S,lineHeight:C,colorBgElevated:R,marginXXS:w,padding:N,fontSize:$,controlHeightSM:E,fontSizeLG:T,colorTextLightSolid:z,colorErrorHover:A}=e,I=e.activeBarWidth??0,j=e.activeBarBorderWidth??h,L=e.itemMarginInline??e.marginXXS,B=new En(z).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:f,itemBg:f,colorItemBgHover:x,itemHoverBg:x,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:h,activeBarBorderWidth:j,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:C,collapsedWidth:S*2,popupBg:R,itemMarginBlock:w,itemPaddingInline:N,horizontalLineHeight:`${S*1.15}px`,iconSize:$,iconMarginInlineEnd:E-$,collapsedIconSize:T,groupTitleFontSize:$,darkItemDisabledColor:new En(z).setA(.25).toRgbString(),darkItemColor:B,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:z,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:B,darkItemHoverColor:z,darkDangerItemHoverColor:A,darkDangerItemSelectedColor:z,darkDangerItemActiveBg:o,itemWidth:I?`calc(100% + ${j}px)`:`calc(100% - ${L*2}px)`}},cj=(e,t=e,o=!0)=>Qt("Menu",s=>{const{colorBgElevated:l,controlHeightLG:d,fontSize:f,darkItemColor:p,darkDangerItemColor:m,darkItemBg:h,darkSubMenuItemBg:b,darkItemSelectedColor:v,darkItemSelectedBg:x,darkDangerItemSelectedBg:S,darkItemHoverBg:C,darkGroupTitleColor:R,darkItemHoverColor:w,darkItemDisabledColor:N,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:T,popupBg:z,darkPopupBg:A}=s,I=s.calc(f).div(7).mul(5).equal(),j=kt(s,{menuArrowSize:I,menuHorizontalHeight:s.calc(d).mul(1.15).equal(),menuArrowOffset:s.calc(I).mul(.25).equal(),menuSubMenuBg:l,calc:s.calc,popupBg:z}),L=kt(j,{itemColor:p,itemHoverColor:w,groupTitleColor:R,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:h,popupBg:A,subMenuItemBg:b,itemActiveBg:"transparent",itemSelectedBg:x,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:N,dangerItemColor:m,dangerItemHoverColor:$,dangerItemSelectedColor:E,dangerItemActiveBg:T,dangerItemSelectedBg:S,menuSubMenuBg:b,horizontalItemSelectedColor:v,horizontalItemSelectedBg:x});return[sj(j),rj(j),ij(j),v$(j,"light"),v$(L,"dark"),aj(j),A5(j),Ss(j,"slide-up"),Ss(j,"slide-down"),$0(j,"zoom-big")]},lj,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:!0}})(e,t),NN=e=>{const{popupClassName:t,icon:o,title:r,theme:s}=e,l=c.useContext(ef),{prefixCls:d,inlineCollapsed:f,theme:p,classNames:m,styles:h}=l,b=Os();let v;if(!o)v=f&&!b.length&&r&&typeof r=="string"?c.createElement("div",{className:`${d}-inline-collapsed-noicon`},r.charAt(0)):c.createElement("span",{className:`${d}-title-content`},r);else{const C=c.isValidElement(r)&&r.type==="span";v=c.createElement(c.Fragment,null,Xo(o,R=>({className:U(R.className,`${d}-item-icon`,m?.itemIcon),style:{...R.style,...h?.itemIcon}})),C?r:c.createElement("span",{className:`${d}-title-content`},r))}const x=c.useMemo(()=>({...l,firstLevel:!1}),[l]),[S]=mc("Menu");return c.createElement(ef.Provider,{value:x},c.createElement(Ef,{...xn(e,["icon"]),title:v,classNames:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},styles:{list:h?.subMenu?.list,listTitle:h?.subMenu?.itemTitle},popupClassName:U(d,t,m?.popup?.root,`${d}-${s||p}`),popupStyle:{zIndex:S,...e.popupStyle,...h?.popup?.root}}))};function Sg(e){return e===null||e===!1}const uj={item:wN,submenu:NN,divider:EN},dj=c.forwardRef((e,t)=>{const o=c.useContext(b$),r=o||{},{prefixCls:s,className:l,style:d,theme:f="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:m,tooltip:h,inlineCollapsed:b,siderCollapsed:v,rootClassName:x,mode:S,selectable:C,onClick:R,overflowedIndicatorPopupClassName:w,classNames:N,styles:$,...E}=e,{menu:T}=c.useContext(bt),{getPrefixCls:z,getPopupContainer:A,direction:I,className:j,style:L,classNames:B,styles:H}=Kt("menu"),q=z(),Q=xn(E,["collapsedWidth"]);r.validator?.({mode:S});const F=ut((...oe)=>{R?.(...oe),r.onClick?.()}),D=r.mode||S,G=C??r.selectable,X=b??v,ee={...e,mode:D,inlineCollapsed:X,selectable:G,theme:f},Z=pn(L),_=pn(d),[V,Y]=mn([B,N],[H,Z,$,_],{props:ee},{popup:{_default:"root"},subMenu:{_default:"item"}}),W={horizontal:{motionName:`${q}-slide-up`},inline:b5(q),other:{motionName:`${q}-zoom-big`}},K=z("menu",s||r.prefixCls),te=hr(K),[k,se]=cj(K,te,!o),ce=U(`${K}-${f}`,j,l),ae=c.useMemo(()=>{if(fn(p)||Sg(p))return p||null;if(fn(r.expandIcon)||Sg(r.expandIcon))return r.expandIcon||null;if(fn(T?.expandIcon)||Sg(T?.expandIcon))return T?.expandIcon||null;const oe=p??r?.expandIcon??T?.expandIcon;return Xo(oe,{className:U(`${K}-submenu-expand-icon`,c.isValidElement(oe)?oe.props?.className:void 0)})},[p,r?.expandIcon,T?.expandIcon,K]),pe=c.useMemo(()=>({prefixCls:K,inlineCollapsed:X||!1,direction:I,firstLevel:!0,theme:f,mode:D,disableMenuItemTitleTooltip:m,tooltip:h,classNames:V,styles:Y}),[K,X,I,m,f,D,V,Y,h]);return c.createElement(b$.Provider,{value:null},c.createElement(ef.Provider,{value:pe},c.createElement(zs,{getPopupContainer:A,overflowedIndicator:c.createElement(L0,null),overflowedIndicatorPopupClassName:U(K,`${K}-${f}`,w),classNames:{list:V.list,listTitle:V.itemTitle},styles:{list:Y.list,listTitle:Y.itemTitle},mode:D,selectable:G,onClick:F,...Q,inlineCollapsed:X,style:Y.root,className:ce,prefixCls:K,direction:I,defaultMotions:W,expandIcon:ae,ref:t,rootClassName:U(x,k,r.rootClassName,se,te,V.root),_internalComponents:uj})))}),vc=c.forwardRef((e,t)=>{const o=c.useRef(null),r=c.useContext(wf);return c.useImperativeHandle(t,()=>({menu:o.current,focus:s=>{o.current?.focus(s)}})),c.createElement(dj,{ref:o,...e,...r})});vc.Item=wN;vc.SubMenu=NN;vc.Divider=EN;vc.ItemGroup=D0;function xc(e){return kt(e,{inputAffixPadding:e.paddingXXS})}const Sc=e=>{const{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:s,controlHeightSM:l,controlHeightLG:d,fontSizeLG:f,lineHeightLG:p,paddingSM:m,controlPaddingHorizontalSM:h,controlPaddingHorizontal:b,colorFillAlter:v,colorPrimaryHover:x,colorPrimary:S,controlOutlineWidth:C,controlOutline:R,colorErrorOutline:w,colorWarningOutline:N,colorBgContainer:$,inputFontSize:E,inputFontSizeLG:T,inputFontSizeSM:z}=e,A=E||o,I=z||A,j=T||f,L=Math.round((t-A*r)/2*10)/10-s,B=Math.round((l-I*r)/2*10)/10-s,H=Math.ceil((d-j*p)/2*10)/10-s;return{paddingBlock:Math.max(L,0),paddingBlockSM:Math.max(B,0),paddingBlockLG:Math.max(H,0),paddingInline:m-s,paddingInlineSM:h-s,paddingInlineLG:b-s,addonBg:v,activeBorderColor:S,hoverBorderColor:x,activeShadow:`0 0 0 ${C}px ${R}`,errorActiveShadow:`0 0 0 ${C}px ${w}`,warningActiveShadow:`0 0 0 ${C}px ${N}`,hoverBg:$,activeBg:$,inputFontSize:A,inputFontSizeLG:j,inputFontSizeSM:I}},fj=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),V0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...fj(kt(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),RN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),$$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...RN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),mj=(e,t)=>({"&-outlined":{...RN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...V0(e)},...$$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...$$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),E$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),pj=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...E$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...E$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...V0(e)}}}}),MN="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",TN=(e,t)=>({outline:`${re(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:re(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),w$=(e,t)=>({"&, & input, & textarea":{color:t.color},[MN]:TN(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),gj=(e,t)=>{const{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[MN]:TN(e,e.activeBorderColor),[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:w$(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${o}-status-warning`]:w$(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},ON=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),N$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...ON(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),hj=(e,t)=>({"&-filled":{...ON(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...V0(e)},...N$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...N$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),R$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),bj=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...R$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...R$(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),zN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${re(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),M$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...zN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),yj=(e,t)=>({"&-underlined":{...zN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...M$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...M$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),vj=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),AN=e=>{const{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:s}=e;return{padding:`${re(t)} ${re(s)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},IN=e=>({padding:`${re(e.paddingBlockSM)} ${re(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),BN=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${re(e.paddingBlock)} ${re(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...vj(e.colorTextPlaceholder),"&-lg":{...AN(e),...t.largeStyle},"&-sm":{...IN(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),xj=e=>{const{componentCls:t,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...AN(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...IN(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${re(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${re(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${re(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${re(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${re(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...mi(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
190
+ & > ${t}-affix-wrapper,
191
+ & > ${t}-number-affix-wrapper,
192
+ & > ${o}-picker-range
193
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${o}-select,
194
+ & > ${o}-select-auto-complete ${t},
195
+ & > ${o}-cascader-picker ${t},
196
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
197
+ & > ${o}-select:first-child,
198
+ & > ${o}-select-auto-complete:first-child ${t},
199
+ & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
200
+ & > ${o}-select:last-child,
201
+ & > ${o}-cascader-picker:last-child ${t},
202
+ & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},Sj=e=>{const{componentCls:t,controlHeightSM:o,lineWidth:r,calc:s}=e,d=s(o).sub(s(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Vn(e),...BN(e),...mj(e),...hj(e),...gj(e),...yj(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:d,paddingBottom:d}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},Cj=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Ns(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${re(e.inputAffixPadding)}`}}}},$j=e=>{const{componentCls:t,inputAffixPadding:o,colorTextDescription:r,motionDurationSlow:s,colorIcon:l,colorIconHover:d}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:{...BN(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o},"&-password-icon":{display:"inline-flex",color:l,cursor:"pointer",transition:`all ${s}`,"&:hover":{color:d}}},...Cj(e)},[`${t}-underlined`]:{borderRadius:0},[p]:{[`${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},Ej=e=>{const{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Vn(e),...xj(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...pj(e),...bj(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},wj=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_N=Qt(["Input","Shared"],e=>{const t=kt(e,xc(e));return[Sj(t),$j(t)]},Sc,{resetFont:!1}),PN=Qt(["Input","Component"],e=>{const t=kt(e,xc(e));return[Ej(t),wj(t),vf(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Sc,{resetFont:!1});var od={},T$;function Nj(){if(T$)return od;T$=1,Object.defineProperty(od,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};return od.default=e,od}var Rj=Nj();const Mj=Wt(Rj);function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},yb.apply(this,arguments)}const Tj=(e,t)=>c.createElement(Zt,yb({},e,{ref:t,icon:Mj})),Oj=c.forwardRef(Tj),F0=c.createContext(null),zj=e=>{const{activeTabOffset:t,horizontal:o,rtl:r,indicator:s={}}=e,{size:l,align:d="center"}=s,[f,p]=c.useState(),m=c.useRef(),h=le.useCallback(v=>typeof l=="function"?l(v):typeof l=="number"?l:v,[l]);function b(){Lt.cancel(m.current)}return c.useEffect(()=>{const v={};if(t)if(o){v.width=h(t.width);const x=r?"right":"left";d==="start"&&(v[x]=t[x]),d==="center"&&(v[x]=t[x]+t.width/2,v.transform=r?"translateX(50%)":"translateX(-50%)"),d==="end"&&(v[x]=t[x]+t.width,v.transform="translateX(-100%)")}else v.height=h(t.height),d==="start"&&(v.top=t.top),d==="center"&&(v.top=t.top+t.height/2,v.transform="translateY(-50%)"),d==="end"&&(v.top=t.top+t.height,v.transform="translateY(-100%)");return b(),m.current=Lt(()=>{f&&v&&Object.keys(v).every(S=>{const C=v[S],R=f[S];return typeof C=="number"&&typeof R=="number"?Math.round(C)===Math.round(R):C===R})||p(v)}),b},[JSON.stringify(t),o,r,d,h]),{style:f}},O$={width:0,height:0,left:0,top:0};function Aj(e,t,o){return c.useMemo(()=>{const r=new Map,s=t.get(e[0]?.key)||O$,l=s.left+s.width;for(let d=0;d<e.length;d+=1){const{key:f}=e[d];let p=t.get(f);p||(p=t.get(e[d-1]?.key)||O$);const m=r.get(f)||{...p};m.right=l-m.left-m.width,r.set(f,m)}return r},[e.map(r=>r.key).join("_"),t,o])}function z$(e,t){const o=c.useRef(e),[,r]=c.useState({});function s(l){const d=typeof l=="function"?l(o.current):l;d!==o.current&&t(d,o.current),o.current=d,r({})}return[o.current,s]}const Ij=.1,A$=.01,jd=20,I$=.995**jd;function Bj(e,t){const[o,r]=c.useState(),[s,l]=c.useState(0),[d,f]=c.useState(0),[p,m]=c.useState(),h=c.useRef();function b(w){const{screenX:N,screenY:$}=w.touches[0];r({x:N,y:$}),window.clearInterval(h.current)}function v(w){if(!o)return;const{screenX:N,screenY:$}=w.touches[0];r({x:N,y:$});const E=N-o.x,T=$-o.y;t(E,T);const z=Date.now();l(z),f(z-s),m({x:E,y:T})}function x(){if(o&&(r(null),m(null),p)){const w=p.x/d,N=p.y/d,$=Math.abs(w),E=Math.abs(N);if(Math.max($,E)<Ij)return;let T=w,z=N;h.current=window.setInterval(()=>{if(Math.abs(T)<A$&&Math.abs(z)<A$){window.clearInterval(h.current);return}T*=I$,z*=I$,t(T*jd,z*jd)},jd)}}const S=c.useRef();function C(w){const{deltaX:N,deltaY:$}=w;let E=0;const T=Math.abs(N),z=Math.abs($);T===z?E=S.current==="x"?N:$:T>z?(E=N,S.current="x"):(E=$,S.current="y"),t(-E,-E)&&w.preventDefault()}const R=c.useRef(null);R.current={onTouchStart:b,onTouchMove:v,onTouchEnd:x,onWheel:C},c.useEffect(()=>{function w(T){R.current.onTouchStart(T)}function N(T){R.current.onTouchMove(T)}function $(T){R.current.onTouchEnd(T)}function E(T){R.current.onWheel(T)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",E,{passive:!1}),()=>{document.removeEventListener("touchmove",N),document.removeEventListener("touchend",$)}},[])}function jN(e){const[t,o]=c.useState(0),r=c.useRef(0),s=c.useRef();return s.current=e,RT(()=>{s.current?.()},[t]),()=>{r.current===t&&(r.current+=1,o(r.current))}}function _j(e){const t=c.useRef([]),[,o]=c.useState({}),r=c.useRef(typeof e=="function"?e():e),s=jN(()=>{let d=r.current;t.current.forEach(f=>{d=f(d)}),t.current=[],r.current=d,o({})});function l(d){t.current.push(d),s()}return[r.current,l]}const B$={width:0,height:0,left:0,top:0,right:0};function Pj(e,t,o,r,s,l,{tabs:d,tabPosition:f,rtl:p}){let m,h,b;return["top","bottom"].includes(f)?(m="width",h=p?"right":"left",b=Math.abs(o)):(m="height",h="top",b=-o),c.useMemo(()=>{if(!d.length)return[0,0];const v=d.length;let x=v;for(let C=0;C<v;C+=1){const R=e.get(d[C].key)||B$;if(Math.floor(R[h]+R[m])>Math.floor(b+t)){x=C-1;break}}let S=0;for(let C=v-1;C>=0;C-=1)if((e.get(d[C].key)||B$)[h]<b){S=C+1;break}return S>x?[0,-1]:[S,x]},[e,t,r,s,l,b,f,d.map(v=>v.key).join("_"),p])}function _$(e){let t;return e instanceof Map?(t={},e.forEach((o,r)=>{t[r]=o})):t=e,JSON.stringify(t)}const jj="TABS_DQ";function HN(e){return String(e).replace(/"/g,jj)}function q0(e,t,o,r){return!(!o||r||e===!1||e===void 0&&(t===!1||t===null))}const DN=c.forwardRef((e,t)=>{const{prefixCls:o,editable:r,locale:s,style:l}=e;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:`${o}-nav-add`,style:l,"aria-label":s?.addAriaLabel||"Add tab",onClick:d=>{r.onEdit("add",{event:d})}},r.addIcon||"+")}),P$=c.forwardRef((e,t)=>{const{position:o,prefixCls:r,extra:s}=e;if(!s)return null;let l,d={};return typeof s=="object"&&!c.isValidElement(s)?d=s:d.right=s,o==="right"&&(l=d.right),o==="left"&&(l=d.left),l?c.createElement("div",{className:`${r}-extra-content`,ref:t},l):null});function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},vb.apply(this,arguments)}const Hj=c.forwardRef((e,t)=>{const{prefixCls:o,id:r,tabs:s,locale:l,mobile:d,more:f={},style:p,className:m,editable:h,tabBarGutter:b,rtl:v,removeAriaLabel:x,onTabClick:S,getPopupContainer:C,popupClassName:R,popupStyle:w,classNames:N,styles:$}=e,[E,T]=c.useState(!1),[z,A]=c.useState(null),{icon:I="More"}=f,j=`${r}-more-popup`,L=`${o}-dropdown`,B=z!==null?`${j}-${z}`:null,H=l?.dropdownAriaLabel;function q(Z,_){Z.preventDefault(),Z.stopPropagation(),h.onEdit("remove",{key:_,event:Z})}const Q=c.createElement(zs,{onClick:({key:Z,domEvent:_})=>{S(Z,_),T(!1)},prefixCls:`${L}-menu`,id:j,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[z],"aria-label":H!==void 0?H:"expanded dropdown"},s.map(Z=>{const{closable:_,disabled:V,closeIcon:Y,key:W,label:K}=Z,te=q0(_,Y,h,V);return c.createElement(yc,{key:W,id:`${j}-${W}`,role:"option","aria-controls":r&&`${r}-panel-${W}`,disabled:V},c.createElement("span",null,K),te&&c.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:U(`${L}-menu-item-remove`,N?.remove),style:$?.remove,onClick:k=>{k.stopPropagation(),q(k,W)}},Y||h.removeIcon||"×"))}));function F(Z){const _=s.filter(W=>!W.disabled);let V=_.findIndex(W=>W.key===z)||0;const Y=_.length;for(let W=0;W<Y;W+=1){V=(V+Z+Y)%Y;const K=_[V];if(!K.disabled){A(K.key);return}}}function D(Z){const{which:_}=Z;if(!E){[Je.DOWN,Je.SPACE,Je.ENTER].includes(_)&&(T(!0),Z.preventDefault());return}switch(_){case Je.UP:F(-1),Z.preventDefault();break;case Je.DOWN:F(1),Z.preventDefault();break;case Je.ESC:T(!1);break;case Je.SPACE:case Je.ENTER:z!==null&&S(z,Z);break}}c.useEffect(()=>{const Z=document.getElementById(B);Z?.scrollIntoView&&Z.scrollIntoView(!1)},[B,z]),c.useEffect(()=>{E||A(null)},[E]);const G={marginInlineStart:b};s.length||(G.visibility="hidden",G.order=1);const X=U(R,{[`${L}-rtl`]:v}),ee=d?null:c.createElement(CP,vb({prefixCls:L,overlay:Q,visible:s.length?E:!1,onVisibleChange:T,overlayClassName:X,overlayStyle:w,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:C},f),c.createElement("button",{type:"button",className:`${o}-nav-more`,style:G,"aria-haspopup":"listbox","aria-controls":j,id:`${r}-more`,"aria-expanded":E,onKeyDown:D},I));return c.createElement("div",{className:U(`${o}-nav-operations`,m),style:p,ref:t},ee,c.createElement(DN,{prefixCls:o,locale:l,editable:h}))}),Dj=c.memo(Hj,(e,t)=>t.tabMoving),Lj=e=>{const{prefixCls:t,id:o,active:r,focus:s,tab:{key:l,label:d,disabled:f,closeIcon:p,icon:m},closable:h,renderWrapper:b,removeAriaLabel:v,editable:x,onClick:S,onFocus:C,onBlur:R,onKeyDown:w,onMouseDown:N,onMouseUp:$,styles:E,classNames:T,tabCount:z,currentPosition:A}=e,I=`${t}-tab`,j=q0(h,p,x,f);function L(F){f||S(F)}function B(F){F.preventDefault(),F.stopPropagation(),x.onEdit("remove",{key:l,event:F})}const H=c.useMemo(()=>m&&typeof d=="string"?c.createElement("span",null,d):d,[d,m]),q=c.useRef(null);c.useEffect(()=>{s&&q.current&&q.current.focus()},[s]);const Q=c.createElement("div",{key:l,"data-node-key":HN(l),className:U(I,T?.item,{[`${I}-with-remove`]:j,[`${I}-active`]:r,[`${I}-disabled`]:f,[`${I}-focus`]:s}),style:E?.item,onClick:L},c.createElement("div",{ref:q,role:"tab","aria-selected":r,id:o&&`${o}-tab-${l}`,className:`${I}-btn`,"aria-controls":o&&`${o}-panel-${l}`,"aria-disabled":f,tabIndex:f?null:r?0:-1,onClick:F=>{F.stopPropagation(),L(F)},onKeyDown:w,onMouseDown:N,onMouseUp:$,onFocus:C,onBlur:R},s&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${A} of ${z}`),m&&c.createElement("span",{className:`${I}-icon`},m),d&&H),j&&c.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:r?0:-1,className:U(`${I}-remove`,T?.remove),style:E?.remove,onClick:F=>{F.stopPropagation(),B(F)}},p||x.removeIcon||"×"));return b?b(Q):Q};function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},xb.apply(this,arguments)}const Vj=(e,t)=>{const{offsetWidth:o,offsetHeight:r,offsetTop:s,offsetLeft:l}=e,{width:d,height:f,left:p,top:m}=e.getBoundingClientRect();return Math.abs(d-o)<1?[d,f,p-t.left,m-t.top]:[o,r,l,s]},ss=e=>{const{offsetWidth:t=0,offsetHeight:o=0}=e.current||{};if(e.current){const{width:r,height:s}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,s]}return[t,o]},rd=(e,t)=>e[t?0:1],j$=c.forwardRef((e,t)=>{const{className:o,style:r,id:s,animated:l,activeKey:d,rtl:f,extra:p,editable:m,locale:h,tabPosition:b,tabBarGutter:v,children:x,onTabClick:S,onTabScroll:C,indicator:R,classNames:w,styles:N}=e,{prefixCls:$,tabs:E}=c.useContext(F0),T=c.useRef(null),z=c.useRef(null),A=c.useRef(null),I=c.useRef(null),j=c.useRef(null),L=c.useRef(null),B=c.useRef(null),H=b==="top"||b==="bottom",[q,Q]=z$(0,(we,ze)=>{H&&C&&C({direction:we>ze?"left":"right"})}),[F,D]=z$(0,(we,ze)=>{!H&&C&&C({direction:we>ze?"top":"bottom"})}),[G,X]=c.useState([0,0]),[ee,Z]=c.useState([0,0]),[_,V]=c.useState([0,0]),[Y,W]=c.useState([0,0]),[K,te]=_j(new Map),k=Aj(E,K,ee[0]),se=rd(G,H),ce=rd(ee,H),ae=rd(_,H),pe=rd(Y,H),oe=Math.floor(se)<Math.floor(ce+ae),fe=oe?se-pe:se-ae,he=`${$}-nav-operations-hidden`;let be=0,Ee=0;H&&f?(be=0,Ee=Math.max(0,ce-fe)):(be=Math.min(0,fe-ce),Ee=0);function Se(we){return we<be?be:we>Ee?Ee:we}const ye=c.useRef(null),[Ne,Oe]=c.useState();function Ce(){Oe(Date.now())}function Ie(){ye.current&&clearTimeout(ye.current)}Bj(I,(we,ze)=>{function ve(_e,De){_e(Xe=>Se(Xe+De))}return oe?(H?ve(Q,we):ve(D,ze),Ie(),Ce(),!0):!1}),c.useEffect(()=>(Ie(),Ne&&(ye.current=setTimeout(()=>{Oe(0)},100)),Ie),[Ne]);const[Me,je]=Pj(k,fe,H?q:F,ce,ae,pe,{...e,tabs:E}),et=ut((we=d)=>{const ze=k.get(we)||{width:0,height:0,left:0,right:0,top:0};if(H){let ve=q;f?ze.right<q?ve=ze.right:ze.right+ze.width>q+fe&&(ve=ze.right+ze.width-fe):ze.left<-q?ve=-ze.left:ze.left+ze.width>-q+fe&&(ve=-(ze.left+ze.width-fe)),D(0),Q(Se(ve))}else{let ve=F;ze.top<-F?ve=-ze.top:ze.top+ze.height>-F+fe&&(ve=-(ze.top+ze.height-fe)),Q(0),D(Se(ve))}}),[ke,Le]=c.useState(),[Ve,Ke]=c.useState(!1),qe=E.filter(we=>!we.disabled).map(we=>we.key),Ae=we=>{const ze=qe.indexOf(ke||d),ve=qe.length,_e=(ze+we+ve)%ve,De=qe[_e];Le(De)},Pe=(we,ze)=>{const ve=qe.indexOf(we),_e=E.find(Xe=>Xe.key===we);q0(_e?.closable,_e?.closeIcon,m,_e?.disabled)&&(ze.preventDefault(),ze.stopPropagation(),m.onEdit("remove",{key:we,event:ze}),ve===qe.length-1?Ae(-1):Ae(1))},We=(we,ze)=>{Ke(!0),ze.button===1&&Pe(we,ze)},Be=we=>{const{code:ze}=we,ve=f&&H,_e=qe[0],De=qe[qe.length-1];switch(ze){case"ArrowLeft":{H&&Ae(ve?1:-1);break}case"ArrowRight":{H&&Ae(ve?-1:1);break}case"ArrowUp":{we.preventDefault(),H||Ae(-1);break}case"ArrowDown":{we.preventDefault(),H||Ae(1);break}case"Home":{we.preventDefault(),Le(_e);break}case"End":{we.preventDefault(),Le(De);break}case"Enter":case"Space":{we.preventDefault(),S(ke??d,we);break}case"Backspace":case"Delete":{Pe(ke,we);break}}},Te={};H?Te.marginInlineStart=v:Te.marginTop=v;const Ge=E.map((we,ze)=>{const{key:ve}=we;return c.createElement(Lj,{id:s,prefixCls:$,key:ve,tab:we,classNames:{item:w?.item,remove:w?.remove},styles:{item:ze===0?N?.item:{...Te,...N?.item},remove:N?.remove},closable:we.closable,editable:m,active:ve===d,focus:ve===ke,renderWrapper:x,removeAriaLabel:h?.removeAriaLabel,tabCount:qe.length,currentPosition:ze+1,onClick:_e=>{S(ve,_e)},onKeyDown:Be,onFocus:()=>{Ve||Le(ve),et(ve),Ce(),I.current&&(f||(I.current.scrollLeft=0),I.current.scrollTop=0)},onBlur:()=>{Le(void 0)},onMouseDown:_e=>We(ve,_e),onMouseUp:()=>{Ke(!1)}})}),nt=()=>te(()=>{const we=new Map,ze=j.current?.getBoundingClientRect();return E.forEach(({key:ve})=>{const _e=j.current?.querySelector(`[data-node-key="${HN(ve)}"]`);if(_e){const[De,Xe,lt,Jt]=Vj(_e,ze);we.set(ve,{width:De,height:Xe,left:lt,top:Jt})}}),we});c.useEffect(()=>{nt()},[E.map(we=>we.key).join("_")]);const ot=jN(()=>{const we=ss(T),ze=ss(z),ve=ss(A);X([we[0]-ze[0]-ve[0],we[1]-ze[1]-ve[1]]);const _e=ss(B);V(_e);const De=ss(L);W(De);const Xe=ss(j);Z([Xe[0]-_e[0],Xe[1]-_e[1]]),nt()}),yt=E.slice(0,Me),st=E.slice(je+1),Bt=[...yt,...st],_t=k.get(d),{style:pt}=zj({activeTabOffset:_t,horizontal:H,indicator:R,rtl:f});c.useEffect(()=>{et()},[d,be,Ee,_$(_t),_$(k),H]),c.useEffect(()=>{ot()},[f]);const zt=!!Bt.length,wt=`${$}-nav-wrap`;let Dt,Qe,At,He;return H?f?(Qe=q>0,Dt=q!==Ee):(Dt=q<0,Qe=q!==be):(At=F<0,He=F!==be),c.createElement(mr,{onResize:ot},c.createElement("div",{ref:Gr(t,T),role:"tablist","aria-orientation":H?"horizontal":"vertical",className:U(`${$}-nav`,o,w?.header),style:{...N?.header,...r},onKeyDown:()=>{Ce()}},c.createElement(P$,{ref:z,position:"left",extra:p,prefixCls:$}),c.createElement(mr,{onResize:ot},c.createElement("div",{className:U(wt,{[`${wt}-ping-left`]:Dt,[`${wt}-ping-right`]:Qe,[`${wt}-ping-top`]:At,[`${wt}-ping-bottom`]:He}),ref:I},c.createElement(mr,{onResize:ot},c.createElement("div",{ref:j,className:`${$}-nav-list`,style:{transform:`translate(${q}px, ${F}px)`,transition:Ne?"none":void 0}},Ge,c.createElement(DN,{ref:B,prefixCls:$,locale:h,editable:m,style:{...Ge.length===0?void 0:Te,visibility:zt?"hidden":null}}),c.createElement("div",{className:U(`${$}-ink-bar`,w?.indicator,{[`${$}-ink-bar-animated`]:l.inkBar}),style:{...pt,...N?.indicator}}))))),c.createElement(Dj,xb({},e,{removeAriaLabel:h?.removeAriaLabel,ref:L,prefixCls:$,tabs:Bt,className:!zt&&he,popupStyle:N?.popup,tabMoving:!!Ne})),c.createElement(P$,{ref:A,position:"right",extra:p,prefixCls:$})))}),Fj=({renderTabBar:e,...t})=>e?e(t,j$):c.createElement(j$,t),qj=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,style:s,id:l,active:d,tabKey:f,children:p}=e,m=c.Children.count(p)>0;return c.createElement("div",{id:l&&`${l}-panel-${f}`,role:"tabpanel",tabIndex:d&&m?0:-1,"aria-labelledby":l&&`${l}-tab-${f}`,"aria-hidden":!d,style:s,className:U(o,d&&`${o}-active`,r),ref:t},p)});function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},tf.apply(this,arguments)}const Uj=e=>{const{id:t,activeKey:o,animated:r,tabPosition:s,destroyOnHidden:l,bodyStyle:d,bodyClassName:f,contentStyle:p,contentClassName:m}=e,{prefixCls:h,tabs:b}=c.useContext(F0),v=r.tabPane,x=`${h}-body`,S=`${h}-content`;return c.createElement("div",{className:U(`${x}-holder`)},c.createElement("div",{className:U(x,`${x}-${s}`,{[`${x}-animated`]:v},f),style:d},b.map(C=>{const{key:R,forceRender:w,style:N,className:$,destroyOnHidden:E,...T}=C,z=R===o;return c.createElement(to,tf({key:R,visible:z,forceRender:w,removeOnLeave:!!(l??E),leavedClassName:`${S}-hidden`},r.tabPaneMotion),({style:A,className:I},j)=>c.createElement(qj,tf({},T,{prefixCls:S,id:t,tabKey:R,animated:v,active:z,style:{...p,...N,...A},className:U(m,$,I),ref:j})))})))};function Wj(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wl.apply(this,arguments)}let H$=0;const Gj=c.forwardRef((e,t)=>{const{id:o,prefixCls:r="rc-tabs",className:s,items:l,direction:d,activeKey:f,defaultActiveKey:p,editable:m,animated:h,tabPosition:b="top",tabBarGutter:v,tabBarStyle:x,tabBarExtraContent:S,locale:C,more:R,destroyOnHidden:w,renderTabBar:N,onChange:$,onTabClick:E,onTabScroll:T,getPopupContainer:z,popupClassName:A,indicator:I,classNames:j,styles:L,...B}=e,H=c.useMemo(()=>(l||[]).filter(k=>k&&typeof k=="object"&&"key"in k),[l]),q=d==="rtl",Q=Wj(h),[F,D]=c.useState(!1);c.useEffect(()=>{D(nO())},[]);const[G,X]=Ro(p??H[0]?.key,f),[ee,Z]=c.useState(()=>H.findIndex(k=>k.key===G));c.useEffect(()=>{let k=H.findIndex(se=>se.key===G);k===-1&&(k=Math.max(0,Math.min(ee,H.length-1)),X(H[k]?.key)),Z(k)},[H.map(k=>k.key).join("_"),G,ee]);const[_,V]=Ro(null,o);c.useEffect(()=>{o||(V(`rc-tabs-${H$}`),H$+=1)},[]);function Y(k,se){E?.(k,se);const ce=k!==G;X(k),ce&&$?.(k)}const W={id:_,activeKey:G,animated:Q,tabPosition:b,rtl:q,mobile:F},K={...W,editable:m,locale:C,more:R,tabBarGutter:v,onTabClick:Y,onTabScroll:T,extra:S,style:x,getPopupContainer:z,popupClassName:U(A,j?.popup),indicator:I,styles:L,classNames:j},te=c.useMemo(()=>({tabs:H,prefixCls:r}),[H,r]);return c.createElement(F0.Provider,{value:te},c.createElement("div",Wl({ref:t,id:o,className:U(r,`${r}-${b}`,{[`${r}-mobile`]:F,[`${r}-editable`]:m,[`${r}-rtl`]:q},s)},B),c.createElement(Fj,Wl({},K,{renderTabBar:N})),c.createElement(Uj,Wl({destroyOnHidden:w},W,{bodyStyle:L?.body,bodyClassName:j?.body,contentStyle:L?.content,contentClassName:j?.content,animated:Q}))))}),Xj={motionAppear:!1,motionEnter:!0,motionLeave:!0};function kj(e,t={inkBar:!0,tabPane:!1}){let o;return t===!1?o={inkBar:!1,tabPane:!1}:t===!0?o={inkBar:!0,tabPane:!0}:o={inkBar:!0,...Ut(t)?t:{}},o.tabPane&&(o.tabPaneMotion={...Xj,motionName:Fr(e,"switch")}),o}function Yj(e){return e.filter(t=>t)}function Kj(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const o=Oo(t).map(r=>{if(c.isValidElement(r)){const{key:s,props:l}=r,{tab:d,...f}=l||{};return{key:String(s),...f,label:d}}return null});return Yj(o)}const Qj=e=>{const{componentCls:t,motionDurationSlow:o}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[Ss(e,"slide-up"),Ss(e,"slide-down")]]},Zj=e=>{const{componentCls:t,tabsCardPadding:o,cardBg:r,cardGutter:s,colorBorderSecondary:l,itemSelectedColor:d}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:r,border:`${re(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:d,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ns(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:re(s)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:re(s)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadiusLG)} 0 0 ${re(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Jj=e=>{const{antCls:t,componentCls:o,itemHoverColor:r,dropdownEdgeChildVerticalPadding:s}=e;return{[`${o}-dropdown`]:{...Vn(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomLeft,
203
+ &${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottomLeft,
204
+ &${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottom,
205
+ &${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottom,
206
+ &${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomRight,
207
+ &${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottomRight`]:{animationName:v0},[`&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-topLeft,
208
+ &${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-topLeft,
209
+ &${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-top,
210
+ &${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-top,
211
+ &${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-topRight,
212
+ &${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-topRight`]:{animationName:S0},[`&${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottomLeft,
213
+ &${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottom,
214
+ &${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottomRight`]:{animationName:x0},[`&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topLeft,
215
+ &${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-top,
216
+ &${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topRight`]:{animationName:C0},[`${o}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${re(s)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...or,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${re(e.paddingXXS)} ${re(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},eH=e=>{const{componentCls:t,margin:o,colorBorderSecondary:r,horizontalMargin:s,verticalItemPadding:l,verticalItemMargin:d,motionDurationSlow:f,calc:p}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:s,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${re(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(m=>`${m} ${f}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
217
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:p(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:d},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(m=>`${m} ${f}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:re(p(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:p(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tH=e=>{const{componentCls:t,cardPaddingSM:o,cardPaddingLG:r,cardHeightSM:s,cardHeightLG:l,horizontalItemPaddingSM:d,horizontalItemPaddingLG:f}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:d,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:f,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:s,minHeight:s}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadius)} ${re(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${re(e.borderRadius)} ${re(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadius)} ${re(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadius)} 0 0 ${re(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},nH=e=>{const{componentCls:t,itemActiveColor:o,itemHoverColor:r,iconCls:s,tabsHorizontalItemMargin:l,horizontalItemPadding:d,itemSelectedColor:f,itemColor:p}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:d,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:p,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Lr(e)},"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:f},[`&${m}-focus ${m}-btn:focus-visible`]:Ns(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${s}`]:{margin:0,verticalAlign:"middle"},[`${s}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},oH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:r,cardGutter:s,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:l(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:s},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},rH=e=>{const{componentCls:t,tabsCardPadding:o,cardHeight:r,cardGutter:s,itemHoverColor:l,itemActiveColor:d,colorBorderSecondary:f}=e;return{[t]:{...Vn(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:s},background:"transparent",border:`${re(e.lineWidth)} ${e.lineType} ${f}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:d},...Lr(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...nH(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...Lr(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},aH=e=>{const{cardHeight:t,cardHeightSM:o,cardHeightLG:r,controlHeight:s,controlHeightLG:l}=e,d=t||l,f=o||s,p=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:d,cardHeightSM:f,cardHeightLG:p,cardPadding:`${(d-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(f-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(p-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},iH=Qt("Tabs",e=>{const t=kt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${re(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${re(e.horizontalItemGutter)}`});return[tH(t),oH(t),eH(t),Jj(t),Zj(t),rH(t),Qj(t)]},aH),sH=()=>null,lH=c.forwardRef((e,t)=>{const{type:o,className:r,rootClassName:s,size:l,onEdit:d,hideAdd:f,centered:p,addIcon:m,removeIcon:h,moreIcon:b,more:v,popupClassName:x,children:S,items:C,animated:R,style:w,indicatorSize:N,indicator:$,classNames:E,styles:T,destroyInactiveTabPane:z,destroyOnHidden:A,tabPlacement:I,tabPosition:j,...L}=e,{prefixCls:B}=L,{getPrefixCls:H,direction:q,getPopupContainer:Q,className:F,style:D,classNames:G,styles:X}=Kt("tabs"),{tabs:ee}=c.useContext(bt),Z=H("tabs",B),_=hr(Z),[V,Y]=iH(Z,_),W=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:W.current}));let K;o==="editable-card"&&(K={onEdit:(Se,{key:ye,event:Ne})=>{d?.(Se==="add"?Ne:ye,Se)},removeIcon:h??ee?.removeIcon??c.createElement(gr,null),addIcon:(m??ee?.addIcon)||c.createElement(Oj,null),showAdd:f!==!0});const te=H(),k=zo(l),se=Kj(C,S),ce=kj(Z,R),ae={align:$?.align??ee?.indicator?.align,size:$?.size??N??ee?.indicator?.size??ee?.indicatorSize},pe=c.useMemo(()=>{const Se=I??j??void 0,ye=q==="rtl";switch(Se){case"start":return ye?"right":"left";case"end":return ye?"left":"right";default:return Se}},[I,j,q]),oe={...e,size:k,tabPlacement:pe,items:se},fe=pn(D),he=pn(w),[be,Ee]=mn([G,E],[X,fe,T,he],{props:oe},{popup:{_default:"root"}});return c.createElement(Gj,{ref:W,direction:q,getPopupContainer:Q,...L,items:se,className:U({[`${Z}-large`]:k==="large",[`${Z}-small`]:k==="small",[`${Z}-card`]:["card","editable-card"].includes(o),[`${Z}-editable-card`]:o==="editable-card",[`${Z}-centered`]:p},F,r,s,be.root,V,Y,_),classNames:{...be,popup:U(x,V,Y,_,be.popup?.root)},styles:Ee,style:Ee.root,editable:K,more:{icon:ee?.more?.icon??ee?.moreIcon??b??c.createElement(L0,null),transitionName:`${te}-slide-up`,...v},prefixCls:Z,animated:ce,indicator:ae,destroyOnHidden:A??z,tabPosition:pe})}),U0=lH;U0.TabPane=sH;const LN=({prefixCls:e,className:t,hoverable:o=!0,...r})=>{const{getPrefixCls:s}=c.useContext(bt),l=s("card",e),d=U(`${l}-grid`,t,{[`${l}-grid-hoverable`]:o});return c.createElement("div",{...r,className:d})},cH=e=>{const{antCls:t,componentCls:o,headerHeight:r,headerPadding:s,tabsMarginBottom:l}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${re(s)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,...mi(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...or,[`
218
+ > ${o}-typography,
219
+ > ${o}-typography-edit-content
220
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},uH=e=>{const{cardPaddingBase:t,colorBorderSecondary:o,cardShadow:r,lineWidth:s}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
221
+ ${re(s)} 0 0 0 ${o},
222
+ 0 ${re(s)} 0 0 ${o},
223
+ ${re(s)} ${re(s)} 0 0 ${o},
224
+ ${re(s)} 0 0 0 ${o} inset,
225
+ 0 ${re(s)} 0 0 ${o} inset;
226
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},dH=e=>{const{componentCls:t,iconCls:o,actionsLiMargin:r,cardActionsIconSize:s,colorBorderSecondary:l,actionsBg:d}=e;return{margin:0,padding:0,listStyle:"none",background:d,borderTop:`${re(e.lineWidth)} ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`,...mi(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:re(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:s,lineHeight:re(e.calc(s).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${l}`}}}},fH=e=>({margin:`${re(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...mi(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...or},"&-description":{color:e.colorTextDescription}}),mH=e=>{const{componentCls:t,colorFillAlter:o,headerPadding:r,bodyPadding:s}=e;return{[`${t}-head`]:{padding:`0 ${re(r)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${re(e.padding)} ${re(s)}`}}},pH=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},gH=e=>{const{componentCls:t,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:s,boxShadowTertiary:l,bodyPadding:d,extraColor:f,motionDurationMid:p}=e;return{[t]:{...Vn(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:cH(e),[`${t}-extra`]:{marginInlineStart:"auto",color:f,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:d,borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:uH(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:dH(e),[`${t}-meta`]:fH(e)},[`${t}-bordered`]:{border:`${re(e.lineWidth)} ${e.lineType} ${s}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(m=>`${m} ${p}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:mH(e),[`${t}-loading`]:pH(e),[`${t}-rtl`]:{direction:"rtl"}}},hH=e=>{const{componentCls:t,bodyPaddingSM:o,headerPaddingSM:r,headerHeightSM:s,headerFontSizeSM:l}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:s,padding:`0 ${re(r)}`,fontSize:l,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},bH=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),yH=Qt("Card",e=>{const t=kt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[gH(t),hH(t)]},bH),vH=e=>{const{actionClasses:t,actions:o=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},o.map((s,l)=>{const d=`action-${l}`;return c.createElement("li",{style:{width:`${100/o.length}%`},key:d},c.createElement("span",null,s))}))},xH=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,rootClassName:s,style:l,extra:d,headStyle:f={},bodyStyle:p={},title:m,loading:h,bordered:b,variant:v,size:x,type:S,cover:C,actions:R,tabList:w,children:N,activeTabKey:$,defaultActiveTabKey:E,tabBarExtraContent:T,hoverable:z,tabProps:A={},classNames:I,styles:j,...L}=e,{getPrefixCls:B,direction:H,className:q,style:Q,classNames:F,styles:D}=Kt("card"),[G]=Cf("card",v,b),X=zo(x),ee={...e,size:X,variant:G},Z=pn(Q),_=pn(l),[V,Y]=mn([F,I],[D,Z,j,_],{props:ee}),W=ke=>{e.onTabChange?.(ke)},K=c.useMemo(()=>Oo(N),[N]),te=c.useMemo(()=>K.some(ke=>c.isValidElement(ke)&&ke.type===LN),[K]),k=B("card",o),[se,ce]=yH(k),ae=c.createElement(Ia,{loading:!0,active:!0,paragraph:{rows:4},title:!1},N),pe=$!==void 0,oe={...A,[pe?"activeKey":"defaultActiveKey"]:pe?$:E,tabBarExtraContent:T};let fe;const he=X!=="small"?"large":X,be=w?c.createElement(U0,{size:he,...oe,className:`${k}-head-tabs`,onChange:W,items:w.map(({tab:ke,...Le})=>({label:ke,...Le}))}):null;if(m||d||be){const ke=U(`${k}-head`,V.header),Le=U(`${k}-head-title`,V.title),Ve=U(`${k}-extra`,V.extra),Ke={...f,...Y.header};fe=c.createElement("div",{className:ke,style:Ke},c.createElement("div",{className:`${k}-head-wrapper`},m&&c.createElement("div",{className:Le,style:Y.title},m),d&&c.createElement("div",{className:Ve,style:Y.extra},d)),be)}const Ee=U(`${k}-cover`,V.cover),Se=C?c.createElement("div",{className:Ee,style:Y.cover},C):null,ye=U(`${k}-body`,V.body),Ne={...p,...Y.body},Oe=h||K.length?c.createElement("div",{className:ye,style:Ne},h?ae:N):null,Ce=U(`${k}-actions`,V.actions),Ie=R?.length?c.createElement(vH,{actionClasses:Ce,actionStyle:Y.actions,actions:R}):null,Me=xn(L,["onTabChange"]),je=U(k,q,{[`${k}-loading`]:h,[`${k}-bordered`]:G!=="borderless",[`${k}-hoverable`]:z,[`${k}-contain-grid`]:te,[`${k}-contain-tabs`]:w?.length,[`${k}-small`]:X==="small",[`${k}-type-${S}`]:!!S,[`${k}-rtl`]:H==="rtl"},r,s,se,ce,V.root),et={...Y.root};return c.createElement("div",{ref:t,...Me,className:je,style:et},fe,Se,Oe,Ie)}),SH=e=>{const{prefixCls:t,className:o,avatar:r,title:s,description:l,style:d,classNames:f,styles:p,...m}=e,{getPrefixCls:h,className:b,style:v,classNames:x,styles:S}=Kt("cardMeta"),R=`${h("card",t)}-meta`,w=pn(v),N=pn(d),[$,E]=mn([x,f],[S,w,p,N],{props:e}),T=U(R,o,b,$.root),z={...E.root},A=U(`${R}-avatar`,$.avatar),I=U(`${R}-title`,$.title),j=U(`${R}-description`,$.description),L=U(`${R}-section`,$.section),B=r?c.createElement("div",{className:A,style:E.avatar},r):null,H=s?c.createElement("div",{className:I,style:E.title},s):null,q=l?c.createElement("div",{className:j,style:E.description},l):null,Q=H||q?c.createElement("div",{className:L,style:E.section},H,q):null;return c.createElement("div",{...m,className:T,style:z},B,Q)},rc=xH;rc.Grid=LN;rc.Meta=SH;const CH=e=>{const{componentCls:t,borderRadius:o,paddingSM:r,colorBorder:s,paddingXS:l,fontSizeLG:d,fontSizeSM:f,borderRadiusLG:p,borderRadiusSM:m,colorBgContainerDisabled:h,lineWidth:b,lineType:v,antCls:x}=e,[S,C]=Yt(x,"space-addon");return{[t]:[{...Vn(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:r,margin:0,borderWidth:b,borderStyle:v,borderRadius:o,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:d,borderRadius:p},"&-small":{paddingInline:l,borderRadius:m,fontSize:f},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[S("addon-border-color")]:s,[S("addon-background")]:h,[S("addon-border-color-outlined")]:s,[S("addon-background-filled")]:h,borderColor:C("addon-border-color"),background:C("addon-background"),"&-variant-outlined":{[S("addon-border-color")]:C("addon-border-color-outlined")},"&-variant-filled":{[S("addon-border-color")]:"transparent",[S("addon-background")]:C("addon-background-filled"),[`&${t}-disabled`]:{[S("addon-border-color")]:s,[S("addon-background")]:h}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[S("addon-border-color-outlined")]:e.colorError,[S("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[S("addon-border-color-outlined")]:e.colorWarning,[S("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},$H=Qt("Addon",e=>[CH(e),vf(e,{focus:!1})]),EH=le.forwardRef((e,t)=>{const{className:o,children:r,style:s,prefixCls:l,variant:d="outlined",disabled:f,status:p,...m}=e,{getPrefixCls:h,direction:b}=le.useContext(bt),v=h("space-addon",l),[x,S]=$H(v),{compactItemClassnames:C,compactSize:R}=Rs(v,b),w=ec(v,p),N=U(v,x,C,S,`${v}-variant-${d}`,w,{[`${v}-${R}`]:R,[`${v}-disabled`]:f},o);return le.createElement("div",{ref:t,className:N,style:s,...m},r)});function wH(e){return!!(e.addonBefore||e.addonAfter)}function NH(e){return!!(e.prefix||e.suffix||e.allowClear)}function D$(e,t,o){const r=t.cloneNode(!0),s=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=o,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...l)=>{t.setSelectionRange(...l)},s}function nf(e,t,o,r){if(!o)return;let s=t;if(t.type==="click"){s=D$(t,e,""),o(s);return}if(e.type!=="file"&&r!==void 0){s=D$(t,e,r),o(s);return}o(s)}function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Sb.apply(this,arguments)}const VN=le.forwardRef((e,t)=>{const{inputElement:o,children:r,prefixCls:s,prefix:l,suffix:d,addonBefore:f,addonAfter:p,className:m,style:h,disabled:b,readOnly:v,focused:x,triggerFocus:S,allowClear:C,value:R,handleReset:w,hidden:N,classes:$,classNames:E,dataAttrs:T,styles:z,components:A,onClear:I}=e,j=r??o,L=A?.affixWrapper||"span",B=A?.groupWrapper||"span",H=A?.wrapper||"span",q=A?.groupAddon||"span",Q=c.useRef(null),F=ee=>{Q.current?.contains(ee.target)&&S?.()},D=NH(e);let G=c.cloneElement(j,{value:R,className:U(j.props?.className,!D&&E?.variant)||null});const X=c.useRef(null);if(le.useImperativeHandle(t,()=>({nativeElement:X.current||Q.current})),D){let ee=null;if(C){const Y=!b&&!v&&R&&!(typeof C=="object"&&C.disabled),W=`${s}-clear-icon`,K=typeof C=="object"&&C?.clearIcon?C.clearIcon:"✖";ee=le.createElement("button",{type:"button",onClick:te=>{w?.(te),I?.()},onMouseDown:te=>te.preventDefault(),className:U(W,{[`${W}-hidden`]:!Y,[`${W}-has-suffix`]:!!d},E?.clear),style:z?.clear},K)}const Z=`${s}-affix-wrapper`,_=U(Z,{[`${s}-disabled`]:b,[`${Z}-disabled`]:b,[`${Z}-focused`]:x,[`${Z}-readonly`]:v,[`${Z}-input-with-clear-btn`]:d&&C&&R},$?.affixWrapper,E?.affixWrapper,E?.variant),V=(d||C)&&le.createElement("span",{className:U(`${s}-suffix`,E?.suffix),style:z?.suffix},ee,d);G=le.createElement(L,Sb({className:_,style:z?.affixWrapper,onClick:F},T?.affixWrapper,{ref:Q}),l&&le.createElement("span",{className:U(`${s}-prefix`,E?.prefix),style:z?.prefix},l),G,V)}if(wH(e)){const ee=`${s}-group`,Z=`${ee}-addon`,_=`${ee}-wrapper`,V=U(`${s}-wrapper`,ee,$?.wrapper,E?.wrapper),Y=U(_,{[`${_}-disabled`]:b},$?.group,E?.groupWrapper);G=le.createElement(B,{className:Y,ref:X},le.createElement(H,{className:V},f&&le.createElement(q,{className:Z},f),G,p&&le.createElement(q,{className:Z},p)))}return le.cloneElement(G,{className:U(G.props?.className,m)||null,style:{...G.props?.style,...h},hidden:N})});function FN(e,t){return c.useMemo(()=>{let o={};t&&(o.show=typeof t=="object"&&t.formatter?t.formatter:!!t),o={...o,...e};const{show:r,...s}=o;return{...s,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:s.strategy||(l=>l.length)}},[e,t])}function qN({countConfig:e,value:t,maxLength:o}){return c.useMemo(()=>{const r=e.max??o,s=e.strategy(t),l=!!r&&s>r,d=Number(r)>0,f=e.show?e.showFormatter?e.showFormatter({value:t,count:s,maxLength:r}):`${s}${d?` / ${r}`:""}`:void 0;return{mergedMax:r,isOutOfRange:l,dataCount:f}},[e,o,t])}function UN({countConfig:e,getTarget:t}){const[o,r]=c.useState(null),s=c.useRef(t);return c.useEffect(()=>{s.current=t},[t]),c.useEffect(()=>{o&&(s.current()?.setSelectionRange(...o),r(null))},[o]),c.useCallback((d,f)=>{let p=d;return!f&&e.exceedFormatter&&e.max&&e.strategy(d)>e.max&&(p=e.exceedFormatter(d,{max:e.max}),d!==p&&r([s.current()?.selectionStart||0,s.current()?.selectionEnd||0])),p},[e])}function WN(e,t){const[o,r]=Ro(e,t),s=o==null?"":String(o);return{value:o,setValue:r,formatValue:s}}function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},of.apply(this,arguments)}const RH=c.forwardRef((e,t)=>{const{autoComplete:o,onChange:r,onFocus:s,onBlur:l,onPressEnter:d,onKeyDown:f,onKeyUp:p,prefixCls:m="rc-input",disabled:h,htmlSize:b,className:v,maxLength:x,suffix:S,showCount:C,count:R,type:w="text",classes:N,classNames:$,styles:E,onCompositionStart:T,onCompositionEnd:z,...A}=e,[I,j]=c.useState(!1),L=c.useRef(!1),B=c.useRef(!1),H=c.useRef(null),q=c.useRef(null),Q=oe=>{H.current&&RE(H.current,oe)},{setValue:F,formatValue:D}=WN(e.defaultValue,e.value),G=FN(R,C),{isOutOfRange:X,dataCount:ee}=qN({countConfig:G,value:D,maxLength:x}),Z=UN({countConfig:G,getTarget:()=>H.current});c.useImperativeHandle(t,()=>({focus:Q,blur:()=>{H.current?.blur()},setSelectionRange:(oe,fe,he)=>{H.current?.setSelectionRange(oe,fe,he)},select:()=>{H.current?.select()},input:H.current,nativeElement:q.current?.nativeElement||H.current})),c.useEffect(()=>{B.current&&(B.current=!1),j(oe=>oe&&h?!1:oe)},[h]);const _=(oe,fe,he)=>{const be=Z(fe,L.current);he.source==="compositionEnd"&&fe===be||(F(be),H.current&&nf(H.current,oe,r,be))},V=oe=>{_(oe,oe.target.value,{source:"change"})},Y=oe=>{L.current=!1,_(oe,oe.currentTarget.value,{source:"compositionEnd"}),z?.(oe)},W=oe=>{d&&oe.key==="Enter"&&!B.current&&!oe.nativeEvent.isComposing&&(B.current=!0,d(oe)),f?.(oe)},K=oe=>{oe.key==="Enter"&&(B.current=!1),p?.(oe)},te=oe=>{j(!0),s?.(oe)},k=oe=>{B.current&&(B.current=!1),j(!1),l?.(oe)},se=oe=>{F(""),Q(),H.current&&nf(H.current,oe,r)},ce=X&&`${m}-out-of-range`,ae=()=>{const oe=xn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return le.createElement("input",of({autoComplete:o},oe,{onChange:V,onFocus:te,onBlur:k,onKeyDown:W,onKeyUp:K,className:U(m,{[`${m}-disabled`]:h},$?.input),style:E?.input,ref:H,size:b,type:w,onCompositionStart:fe=>{L.current=!0,T?.(fe)},onCompositionEnd:Y}))},pe=()=>S||G.show?le.createElement(le.Fragment,null,G.show&&le.createElement("span",{className:U(`${m}-show-count-suffix`,{[`${m}-show-count-has-suffix`]:!!S},$?.count),style:{...E?.count}},ee),S):null;return le.createElement(VN,of({},A,{prefixCls:m,className:U(v,ce),handleReset:se,value:D,focused:I,triggerFocus:Q,suffix:pe(),disabled:h,classes:N,classNames:$,styles:E,ref:q}),ae())}),MH=`
227
+ min-height:0 !important;
228
+ max-height:none !important;
229
+ height:0 !important;
230
+ visibility:hidden !important;
231
+ overflow:hidden !important;
232
+ position:absolute !important;
233
+ z-index:-1000 !important;
234
+ top:0 !important;
235
+ right:0 !important;
236
+ pointer-events: none !important;
237
+ `,TH=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Cg={};let Eo;function OH(e,t=!1){const o=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Cg[o])return Cg[o];const r=window.getComputedStyle(e),s=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),d=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),p={sizingStyle:TH.map(m=>`${m}:${r.getPropertyValue(m)}`).join(";"),paddingSize:l,borderSize:d,boxSizing:s};return t&&o&&(Cg[o]=p),p}function zH(e,t=!1,o=null,r=null){Eo||(Eo=document.createElement("textarea"),Eo.setAttribute("tab-index","-1"),Eo.setAttribute("aria-hidden","true"),Eo.setAttribute("name","hiddenTextarea"),document.body.appendChild(Eo)),e.getAttribute("wrap")?Eo.setAttribute("wrap",e.getAttribute("wrap")):Eo.removeAttribute("wrap");const{paddingSize:s,borderSize:l,boxSizing:d,sizingStyle:f}=OH(e,t);Eo.setAttribute("style",`${f};${MH}`),Eo.value=e.value||e.placeholder||"";let p,m,h,b=Eo.scrollHeight;if(d==="border-box"?b+=l:d==="content-box"&&(b-=s),o!==null||r!==null){Eo.value=" ";const x=Eo.scrollHeight-s;o!==null&&(p=x*o,d==="border-box"&&(p=p+s+l),b=Math.max(p,b)),r!==null&&(m=x*r,d==="border-box"&&(m=m+s+l),h=b>m?void 0:"hidden",b=Math.min(m,b))}const v={height:b,overflowY:h,resize:"none"};return p&&(v.minHeight=p),m&&(v.maxHeight=m),v}function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Cb.apply(this,arguments)}const $g=0,Eg=1,wg=2,AH=c.forwardRef((e,t)=>{const{prefixCls:o,defaultValue:r,value:s,autoSize:l,onResize:d,className:f,style:p,disabled:m,onChange:h,onInternalAutoSize:b,...v}=e,[x,S]=Ro(r,s),C=x??"",R=F=>{S(F.target.value),h?.(F)},w=c.useRef(null);c.useImperativeHandle(t,()=>({textArea:w.current}));const[N,$]=c.useMemo(()=>l&&typeof l=="object"?[l.minRows,l.maxRows]:[],[l]),E=!!l,[T,z]=c.useState(wg),[A,I]=c.useState(),j=()=>{z($g)};dn(()=>{E&&j()},[s,N,$,E]),dn(()=>{if(T===$g)z(Eg);else if(T===Eg){const F=zH(w.current,!1,N,$);z(wg),I(F)}},[T]);const L=c.useRef(void 0),B=()=>{L.current!==void 0&&Lt.cancel(L.current)},H=F=>{T===wg&&(d?.(F),l&&(B(),L.current=Lt(()=>{j()})))};c.useEffect(()=>B,[]);const Q={...p,...E?A:null};return(T===$g||T===Eg)&&(Q.overflowY="hidden",Q.overflowX="hidden"),c.createElement(mr,{onResize:H,disabled:!(l||d)},c.createElement("textarea",Cb({},v,{ref:w,style:Q,className:U(o,f,{[`${o}-disabled`]:m}),disabled:m,value:C,onChange:R})))});function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},$b.apply(this,arguments)}const IH=le.forwardRef(({defaultValue:e,value:t,onFocus:o,onBlur:r,onChange:s,allowClear:l,maxLength:d,onCompositionStart:f,onCompositionEnd:p,suffix:m,prefixCls:h="rc-textarea",showCount:b,count:v,className:x,style:S,disabled:C,hidden:R,classNames:w,styles:N,onResize:$,onClear:E,onPressEnter:T,readOnly:z,autoSize:A,onKeyDown:I,...j},L)=>{const[B,H]=le.useState(!1),q=le.useRef(!1),[Q,F]=le.useState(null),D=c.useRef(null),G=c.useRef(null),X=()=>G.current?.textArea||null,{setValue:ee,formatValue:Z}=WN(e,t),_=FN(v,b),{isOutOfRange:V,dataCount:Y}=qN({countConfig:_,value:Z,maxLength:d}),W=UN({countConfig:_,getTarget:()=>G.current?.textArea||null}),K=()=>{X()?.focus()};c.useImperativeHandle(L,()=>({resizableTextArea:G.current,focus:K,blur:()=>{X()?.blur()},nativeElement:D.current?.nativeElement||X()})),c.useEffect(()=>{H(Se=>!C&&Se)},[C]);const te=(Se,ye)=>{const Ne=W(ye,q.current);ee(Ne),nf(Se.currentTarget,Se,s,Ne)},k=Se=>{q.current=!0,f?.(Se)},se=Se=>{q.current=!1,te(Se,Se.currentTarget.value),p?.(Se)},ce=Se=>{te(Se,Se.target.value)},ae=Se=>{Se.key==="Enter"&&T&&!Se.nativeEvent.isComposing&&T(Se),I?.(Se)},pe=Se=>{H(!0),o?.(Se)},oe=Se=>{H(!1),r?.(Se)},fe=Se=>{ee(""),K();const ye=X();ye&&nf(ye,Se,s)};let he=m;_.show&&(he=le.createElement(le.Fragment,null,he,le.createElement("span",{className:U(`${h}-data-count`,w?.count),style:N?.count},Y)));const be=Se=>{$?.(Se),X()?.style.height&&F(!0)},Ee=!A&&!b&&!l;return le.createElement(VN,{ref:D,value:Z,allowClear:l,handleReset:fe,suffix:he,prefixCls:h,classNames:{...w,affixWrapper:U(w?.affixWrapper,{[`${h}-show-count`]:b,[`${h}-textarea-allow-clear`]:l})},disabled:C,focused:B,className:U(x,V&&`${h}-out-of-range`),style:{...S,...Q&&!Ee?{height:"auto"}:{}},dataAttrs:typeof Y=="string"?{affixWrapper:{"data-count":Y}}:void 0,styles:N,hidden:R,readOnly:z,onClear:E},le.createElement(AH,$b({},j,{autoSize:A,maxLength:d,onKeyDown:ae,onChange:ce,onFocus:pe,onBlur:oe,onCompositionStart:k,onCompositionEnd:se,className:U(w?.textarea),style:{resize:S?.resize,...N?.textarea},disabled:C,prefixCls:h,onResize:be,ref:G,readOnly:z})))});function GN(e,t){const o=c.useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return c.useEffect(()=>(t&&r(),()=>o.current.forEach(s=>{s&&clearTimeout(s)})),[t]),r}function BH(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Nf=c.forwardRef((e,t)=>{const{prefixCls:o,bordered:r=!0,status:s,size:l,disabled:d,onBlur:f,onFocus:p,suffix:m,allowClear:h,addonAfter:b,addonBefore:v,className:x,style:S,styles:C,rootClassName:R,onChange:w,classNames:N,variant:$,...E}=e,{getPrefixCls:T,direction:z,allowClear:A,autoComplete:I,className:j,style:L,classNames:B,styles:H}=Kt("input"),q=T("input",o),Q=c.useRef(null),F=hr(q),[D,G]=_N(q,R);PN(q,F);const{compactSize:X,compactItemClassnames:ee}=Rs(q,z),Z=zo(Ce=>l??X??Ce),_=le.useContext(Vr),V=d??_,Y={...e,size:Z,disabled:V},W=pn(L),K=pn(S),[te,k]=mn([B,N],[H,W,C,K],{props:Y}),{status:se,hasFeedback:ce,feedbackIcon:ae}=c.useContext(qr),pe=Sf(se,s),oe=BH(e)||!!ce;c.useRef(oe);const fe=GN(Q,!0),he=Ce=>{fe(),f?.(Ce)},be=Ce=>{fe(),p?.(Ce)},Ee=Ce=>{fe(),w?.(Ce)},Se=(ce||m)&&le.createElement(le.Fragment,null,m,ce&&ae),ye=Kw({allowClear:h,contextAllowClear:A,componentName:"Input"}),[Ne,Oe]=Cf("input",$,r);return le.createElement(RH,{ref:no(t,Q),prefixCls:q,autoComplete:I,...E,disabled:V,onBlur:he,onFocus:be,style:k.root,styles:k,suffix:Se,allowClear:ye,className:U(x,R,G,F,ee,j,te.root),onChange:Ee,addonBefore:v&&le.createElement($s,{form:!0,space:!0},v),addonAfter:b&&le.createElement($s,{form:!0,space:!0},b),classNames:{...te,input:U({[`${q}-sm`]:Z==="small",[`${q}-lg`]:Z==="large",[`${q}-rtl`]:z==="rtl"},te.input,D),variant:U({[`${q}-${Ne}`]:Oe},ec(q,pe)),affixWrapper:U({[`${q}-affix-wrapper-sm`]:Z==="small",[`${q}-affix-wrapper-lg`]:Z==="large",[`${q}-affix-wrapper-rtl`]:z==="rtl"},D),wrapper:U({[`${q}-group-rtl`]:z==="rtl"},D),groupWrapper:U({[`${q}-group-wrapper-sm`]:Z==="small",[`${q}-group-wrapper-lg`]:Z==="large",[`${q}-group-wrapper-rtl`]:z==="rtl",[`${q}-group-wrapper-${Ne}`]:Oe},ec(`${q}-group-wrapper`,pe,ce),D)}})}),L$=c.createContext(null),XN=c.createContext({});function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Eb.apply(this,arguments)}const _H=e=>{const{prefixCls:t,className:o,containerRef:r,...s}=e,{panel:l}=c.useContext(XN),d=Gr(l,r);return c.createElement("div",Eb({className:U(`${t}-section`,o),role:"dialog",ref:d},Qn(e,{aria:!0}),{"aria-modal":"true"},s))};function PH(e){const{prefixCls:t,direction:o,className:r,style:s,maxSize:l,containerRef:d,currentSize:f,onResize:p,onResizeEnd:m,onResizeStart:h}=e,[b,v]=c.useState(!1),[x,S]=c.useState(0),[C,R]=c.useState(0),w=o==="left"||o==="right",N=ut(z=>{z.preventDefault(),z.stopPropagation(),v(!0),S(w?z.clientX:z.clientY);let A;if(typeof f=="number")A=f;else if(d?.current){const I=d.current.getBoundingClientRect();A=w?I.width:I.height}R(A),h?.(A)}),$=ut(z=>{if(!b)return;let I=(w?z.clientX:z.clientY)-x;(o==="right"||o==="bottom")&&(I=-I);let j=C+I;j<0&&(j=0),l&&j>l&&(j=l),p?.(j)}),E=c.useCallback(()=>{if(b&&(v(!1),d?.current)){const z=d.current.getBoundingClientRect(),A=w?z.width:z.height;m?.(A)}},[b,d,m,w]);return c.useEffect(()=>{if(b)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",E)}},[b,$,E]),{dragElementProps:{className:U(`${t}-dragger`,`${t}-dragger-${o}`,{[`${t}-dragger-dragging`]:b,[`${t}-dragger-horizontal`]:w,[`${t}-dragger-vertical`]:!w},r),style:s,onMouseDown:N},isDragging:b}}function Ng(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&Yn(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function jH(e,t,o,r,s){const l=r??s!==!1,[d]=ME(t&&l,e);return le.useEffect(()=>{t&&o===!0&&e()?.focus({preventScroll:!0})},[t]),d}function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},us.apply(this,arguments)}const HH=(e,t)=>{const{prefixCls:o,open:r,placement:s,inline:l,push:d,forceRender:f,autoFocus:p,focusTrap:m,classNames:h,rootClassName:b,rootStyle:v,zIndex:x,className:S,id:C,style:R,motion:w,width:N,height:$,size:E,maxSize:T,children:z,mask:A,maskClosable:I,maskMotion:j,maskClassName:L,maskStyle:B,afterOpenChange:H,onClose:q,onMouseEnter:Q,onMouseOver:F,onMouseLeave:D,onClick:G,onKeyDown:X,onKeyUp:ee,styles:Z,drawerRender:_,resizable:V,defaultSize:Y}=e,W=c.useRef(null);c.useImperativeHandle(t,()=>W.current);const K=jH(()=>W.current,r,p,m,A),[te,k]=c.useState(!1),se=c.useContext(L$);let ce;typeof d=="boolean"?ce=d?{}:{distance:0}:ce=d||{};const ae=ce?.distance??se?.pushDistance??180,pe=c.useMemo(()=>({pushDistance:ae,push:()=>{k(!0)},pull:()=>{k(!1)}}),[ae]);c.useEffect(()=>{r?se?.push?.():se?.pull?.()},[r]),c.useEffect(()=>()=>{se?.pull?.()},[]);const oe=c.createElement(to,us({key:"mask"},j,{visible:A&&r}),({className:Ve,style:Ke},qe)=>c.createElement("div",{className:U(`${o}-mask`,Ve,h?.mask,L),style:{...Ke,...B,...Z?.mask},onClick:I&&r?q:void 0,ref:qe})),fe=typeof w=="function"?w(s):w,[he,be]=c.useState(),Ee=s==="left"||s==="right",Se=c.useMemo(()=>Ng(E??(Ee?N:$)??he??Y??(Ee?378:void 0)),[E,N,$,Y,Ee,he]),ye=c.useMemo(()=>{const Ve={};if(te&&ae)switch(s){case"top":Ve.transform=`translateY(${ae}px)`;break;case"bottom":Ve.transform=`translateY(${-ae}px)`;break;case"left":Ve.transform=`translateX(${ae}px)`;break;default:Ve.transform=`translateX(${-ae}px)`;break}return Ee?Ve.width=Ng(Se):Ve.height=Ng(Se),Ve},[te,ae,s,Ee,Se]),Ne=c.useRef(null),Oe=!!V,Ce=typeof V=="object"&&V||{},Ie=ut(Ve=>{be(Ve),Ce.onResize?.(Ve)}),{dragElementProps:Me,isDragging:je}=PH({prefixCls:`${o}-resizable`,direction:s,className:h?.dragger,style:Z?.dragger,maxSize:T,containerRef:Ne,currentSize:Se,onResize:Ie,onResizeStart:Ce.onResizeStart,onResizeEnd:Ce.onResizeEnd}),et={onMouseEnter:Q,onMouseOver:F,onMouseLeave:D,onClick:G,onKeyDown:X,onKeyUp:ee,onFocus:Ve=>{K(Ve.target)}},ke=c.createElement(to,us({key:"panel"},fe,{visible:r,forceRender:f,onVisibleChanged:H,removeOnLeave:!1,leavedClassName:`${o}-content-wrapper-hidden`}),({className:Ve,style:Ke},qe)=>{const Ae=c.createElement(_H,us({id:C,containerRef:qe,prefixCls:o,className:U(S,h?.section),style:{...R,...Z?.section}},Qn(e,{aria:!0}),et),z);return c.createElement("div",us({ref:Ne,className:U(`${o}-content-wrapper`,je&&`${o}-content-wrapper-dragging`,h?.wrapper,!je&&Ve),style:{...Ke,...ye,...Z?.wrapper}},Qn(e,{data:!0})),Oe&&c.createElement("div",Me),_?_(Ae):Ae)}),Le={...v};return x&&(Le.zIndex=x),c.createElement(L$.Provider,{value:pe},c.createElement("div",{className:U(o,`${o}-${s}`,b,{[`${o}-open`]:r,[`${o}-inline`]:l}),style:Le,tabIndex:-1,ref:W},oe,ke))},DH=c.forwardRef(HH),LH=e=>{const{open:t=!1,prefixCls:o="rc-drawer",placement:r="right",autoFocus:s=!0,keyboard:l=!0,width:d,height:f,size:p,maxSize:m,mask:h=!0,maskClosable:b=!0,getContainer:v,forceRender:x,afterOpenChange:S,destroyOnHidden:C,onMouseEnter:R,onMouseOver:w,onMouseLeave:N,onClick:$,onKeyDown:E,onKeyUp:T,onClose:z,resizable:A,defaultSize:I,focusTriggerAfterClose:j,panelRef:L}=e,[B,H]=c.useState(!1),[q,Q]=c.useState(!1);dn(()=>{Q(!0)},[]);const F=q?t:!1,D=c.useRef(null),G=c.useRef(null);dn(()=>{F&&(G.current=document.activeElement)},[F]);const X=Y=>{H(Y),S?.(Y),!Y&&j!==!1&&G.current&&!D.current?.contains(G.current)&&G.current?.focus({preventScroll:!0})},ee=c.useMemo(()=>({panel:L}),[L]);if(!x&&!B&&!F&&C)return null;const _={...e,open:F,prefixCls:o,placement:r,autoFocus:s,keyboard:l,width:d,height:f,size:p,maxSize:m,defaultSize:I,mask:h,maskClosable:b,inline:v===!1,afterOpenChange:X,ref:D,resizable:A,...{onMouseEnter:R,onMouseOver:w,onMouseLeave:N,onClick:$,onKeyDown:E,onKeyUp:T}},V=({top:Y,event:W})=>{Y&&l&&(W.stopPropagation(),z?.(W))};return c.createElement(XN.Provider,{value:ee},c.createElement(dc,{open:F||x||B,autoDestroy:!1,getContainer:v,autoLock:h&&(F||B),onEsc:V},c.createElement(DH,_)))},kN=e=>{const{prefixCls:t,ariaId:o,title:r,footer:s,extra:l,closable:d,loading:f,onClose:p,headerStyle:m,bodyStyle:h,footerStyle:b,children:v,classNames:x,styles:S}=e,C=Kt("drawer"),{classNames:R,styles:w,closable:N}=C,[$,E]=mn([R,x],[w,S],{props:{...e,closable:d??N}}),T=c.useMemo(()=>{const B=d??N;if(B!==!1)return Ut(B)&&B?.placement==="end"?"end":"start"},[d,N]),z=c.useCallback(B=>c.createElement("button",{type:"button",onClick:p,className:U(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},$.close),style:E.close},B),[p,t,T,$.close,E.close]),[A,I]=Jw(xs(e),xs(C),{closable:!0,closeIconRender:z}),j=()=>!r&&!A?null:c.createElement("div",{style:{...E.header,...m},className:U(`${t}-header`,$.header,{[`${t}-header-close-only`]:A&&!r&&!l})},c.createElement("div",{className:`${t}-header-title`},T==="start"&&I,r&&c.createElement("div",{className:U(`${t}-title`,$.title),style:E.title,id:o},r)),l&&c.createElement("div",{className:U(`${t}-extra`,$.extra),style:E.extra},l),T==="end"&&I),L=()=>s?c.createElement("div",{className:U(`${t}-footer`,$.footer),style:{...E.footer,...b}},s):null;return c.createElement(c.Fragment,null,j(),c.createElement("div",{className:U(`${t}-body`,$.body),style:{...E.body,...h}},f?c.createElement(Ia,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):v),L())},VH=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},YN=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),KN=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...YN({opacity:e},{opacity:1})}),FH=(e,t)=>[KN(.7,t),YN({transform:VH(e)},{transform:"none"})],qH=e=>{const{componentCls:t,motionDurationSlow:o}=e;return{[t]:{[`${t}-mask-motion`]:KN(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,s)=>({...r,[`&-${s}`]:FH(s,o)}),{})}}},UH=e=>{const{borderRadiusSM:t,componentCls:o,zIndexPopup:r,colorBgMask:s,colorBgElevated:l,motionDurationSlow:d,motionDurationMid:f,paddingXS:p,padding:m,paddingLG:h,fontSizeLG:b,lineHeightLG:v,lineWidth:x,lineType:S,colorSplit:C,marginXS:R,colorIcon:w,colorIconHover:N,colorBgTextHover:$,colorBgTextActive:E,colorText:T,fontWeightStrong:z,footerPaddingBlock:A,footerPaddingInline:I,draggerSize:j,calc:L}=e,B=`${o}-content-wrapper`,H=`${o}-resizable-dragger`;return{[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:s,pointerEvents:"auto",[`&${o}-mask-blur`]:{backdropFilter:"blur(4px)"}},[B]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${d}`,"&-hidden":{display:"none"}},[`&-left > ${B}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${B}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${B}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${B}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${re(m)} ${re(h)}`,fontSize:b,lineHeight:v,borderBottom:`${re(x)} ${S} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:L(b).add(p).equal(),height:L(b).add(p).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:w,fontWeight:z,fontSize:b,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${f}`,textRendering:"auto",[`&${o}-close-end`]:{marginInlineStart:R},[`&:not(${o}-close-end)`]:{marginInlineEnd:R},"&:hover":{color:N,backgroundColor:$,textDecoration:"none"},"&:active":{backgroundColor:E},...Lr(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:b,lineHeight:v},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:h,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${re(A)} ${re(I)}`,borderTop:`${re(x)} ${S} ${C}`},[H]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${H}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:j,cursor:"col-resize"},[`${H}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:j,cursor:"col-resize"},[`${H}-top`]:{insetInline:0,bottom:0,height:j,cursor:"row-resize"},[`${H}-bottom`]:{insetInline:0,top:0,height:j,cursor:"row-resize"},[`${B}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${o}-content`]:{pointerEvents:"none"},[`${o}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},WH=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),QN=Qt("Drawer",e=>{const t=kt(e,{});return[UH(t),qH(t)]},WH),GH={distance:180},V$=378,F$={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ZN=e=>{const{rootClassName:t,size:o,defaultSize:r=V$,height:s,width:l,mask:d,push:f=GH,open:p,afterOpenChange:m,onClose:h,prefixCls:b,getContainer:v,panelRef:x=null,style:S,className:C,resizable:R,"aria-labelledby":w,focusable:N,maskClosable:$,maskStyle:E,drawerStyle:T,contentWrapperStyle:z,destroyOnClose:A,destroyOnHidden:I,...j}=e,{placement:L}=j,B=Wr(),H=j.title?B:void 0,{getPopupContainer:q,getPrefixCls:Q,direction:F,className:D,style:G,classNames:X,styles:ee,mask:Z,focusable:_}=Kt("drawer"),V=Q("drawer",b),[Y,W]=QN(V),K=v===void 0&&q?()=>q(document.body):v,te=c.useMemo(()=>Wo(o)?o:o==="large"?736:o==="default"?V$:typeof o=="string"?/^\d+(\.\d+)?$/.test(o)?Number(o):o:!L||L==="left"||L==="right"?l:s,[o,L,l,s]),k={motionName:Fr(V,"mask-motion"),...F$},se=je=>({motionName:Fr(V,`panel-motion-${je}`),...F$}),ce=T2(),ae=no(x,ce),[pe,oe]=mc("Drawer",j.zIndex),[fe,he,be]=e2(d,Z,V,$),Ee=N2({..._,...N},K!==!1&&fe),{classNames:Se,styles:ye,rootStyle:Ne}=j,Oe={...e,zIndex:pe,panelRef:x,mask:fe,maskClosable:be,defaultSize:r,push:f,focusable:Ee},[Ce,Ie]=mn([X,Se],[ee,ye],{props:Oe}),Me=U({"no-mask":!fe,[`${V}-rtl`]:F==="rtl"},t,Y,W,Ce.root);return c.createElement($s,{form:!0,space:!0},c.createElement(hf.Provider,{value:oe},c.createElement(LH,{prefixCls:V,onClose:h,maskMotion:k,motion:se,...j,classNames:{mask:U(Ce.mask,he.mask),section:Ce.section,wrapper:Ce.wrapper,dragger:Ce.dragger},styles:{mask:{...Ie.mask,...E},section:{...Ie.section,...T},wrapper:{...Ie.wrapper,...z},dragger:Ie.dragger},open:p,mask:fe,maskClosable:be,push:f,size:te,defaultSize:r,style:{...G,...S},rootStyle:{...Ne,...Ie.root},className:U(D,C),rootClassName:Me,getContainer:K,afterOpenChange:m,panelRef:ae,zIndex:pe,...R?{resizable:R}:{},"aria-labelledby":w??H,destroyOnHidden:I??A,focusTriggerAfterClose:Ee.focusTriggerAfterClose,focusTrap:Ee.trap},c.createElement(kN,{prefixCls:V,size:o,...j,ariaId:H,onClose:h}))))},XH=e=>{const{prefixCls:t,style:o,className:r,placement:s="right",...l}=e,{getPrefixCls:d}=c.useContext(bt),f=d("drawer",t),[p,m]=QN(f),h=U(f,`${f}-pure`,`${f}-${s}`,p,m,r);return c.createElement("div",{className:h,style:o},c.createElement(kN,{prefixCls:f,...l}))};ZN._InternalPanelDoNotUseOrYouWillBeFired=XH;function q$(e){return["small","middle","medium","large"].includes(e)}function U$(e){return e?Wo(e):!1}const JN=le.createContext({latestIndex:0}),kH=JN.Provider,YH=e=>{const{className:t,prefix:o,index:r,children:s,separator:l,style:d,classNames:f,styles:p}=e,{latestIndex:m}=c.useContext(JN);return pr(s)?c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:d},s),r<m&&l&&c.createElement("span",{className:U(`${o}-item-separator`,f?.separator),style:p?.separator},l)):null},KH=e=>{const{componentCls:t,antCls:o}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},QH=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},ZH=Qt("Space",e=>{const t=kt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[KH(t),QH(t)]},()=>({}),{resetStyle:!1}),JH=c.forwardRef((e,t)=>{const{getPrefixCls:o,direction:r,size:s,className:l,style:d,classNames:f,styles:p}=Kt("space"),{size:m=s??"small",align:h,className:b,rootClassName:v,children:x,direction:S,orientation:C,prefixCls:R,split:w,separator:N,style:$,vertical:E,wrap:T=!1,classNames:z,styles:A,...I}=e,[j,L]=Array.isArray(m)?m:[m,m],B=q$(L),H=q$(j),q=U$(L),Q=U$(j),F=Oo(x,{keepEmpty:!0}),[D,G]=t2(C,E,S),X=h===void 0&&!G?"center":h,ee=N??w,Z=o("space",R),[_,V]=ZH(Z),Y={...e,size:m,orientation:D,align:X},[W,K]=mn([f,z],[p,A],{props:Y}),te=U(Z,l,_,`${Z}-${D}`,{[`${Z}-rtl`]:r==="rtl",[`${Z}-align-${X}`]:X,[`${Z}-gap-row-${L}`]:B,[`${Z}-gap-col-${j}`]:H},b,v,V,W.root),k=U(`${Z}-item`,W.item),se=F.map((pe,oe)=>{const fe=pe?.key||`${k}-${oe}`;return c.createElement(YH,{prefix:Z,classNames:W,styles:K,className:k,key:fe,index:oe,separator:ee,style:K.item},pe)}),ce=c.useMemo(()=>({latestIndex:F.reduce((oe,fe,he)=>pr(fe)?he:oe,0)}),[F]);if(F.length===0)return null;const ae={};return T&&(ae.flexWrap="wrap"),!H&&Q&&(ae.columnGap=j),!B&&q&&(ae.rowGap=L),c.createElement("div",{ref:t,className:te,style:{...ae,...K.root,...d,...$},...I},c.createElement(kH,{value:ce},se))}),W0=JH;W0.Compact=d2;W0.Addon=EH;var ad={},W$;function eD(){if(W$)return ad;W$=1,Object.defineProperty(ad,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};return ad.default=e,ad}var tD=eD();const nD=Wt(tD);function wb(){return wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wb.apply(this,arguments)}const oD=(e,t)=>c.createElement(Zt,wb({},e,{ref:t,icon:nD})),rD=c.forwardRef(oD),aD=e=>{const{getPrefixCls:t,direction:o}=c.useContext(bt),{prefixCls:r,className:s}=e,l=t("input-group",r),d=t("input"),[f,p]=PN(d),m=U(l,p,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:o==="rtl"},f,s),h=c.useContext(qr),b=c.useMemo(()=>({...h,isFormItemInput:!1}),[h]);return c.createElement(qr.Provider,{value:b},c.createElement(W0.Compact,{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},iD=e=>{const{componentCls:t,paddingXS:o}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},sD=Qt(["Input","OTP"],e=>{const t=kt(e,xc(e));return iD(t)},Sc),lD=c.forwardRef((e,t)=>{const{className:o,value:r,onChange:s,onActiveChange:l,index:d,mask:f,onFocus:p,...m}=e,{getPrefixCls:h}=c.useContext(bt),b=h("otp"),v=typeof f=="string"?f:r,x=c.useRef(null);c.useImperativeHandle(t,()=>x.current);const S=N=>{s(d,N.target.value)},C=()=>{Lt(()=>{const N=x.current?.input;document.activeElement===N&&N&&N.select()})},R=N=>{p?.(N),C()},w=N=>{const{key:$,ctrlKey:E,metaKey:T}=N;$==="ArrowLeft"?l(d-1):$==="ArrowRight"?l(d+1):$==="z"&&(E||T)?N.preventDefault():$==="Backspace"&&!r&&l(d-1),C()};return c.createElement("span",{className:`${b}-input-wrapper`,role:"presentation"},f&&r!==""&&r!==void 0&&c.createElement("span",{className:`${b}-mask-icon`,"aria-hidden":"true"},v),c.createElement(Nf,{"aria-label":`OTP Input ${d+1}`,type:f===!0?"password":"text",...m,ref:x,value:r,onInput:S,onFocus:R,onKeyDown:w,onMouseDown:C,onMouseUp:C,className:U(o,{[`${b}-mask-input`]:f})}))});function id(e){return(e||"").split("")}const cD=e=>{const{index:t,prefixCls:o,separator:r,className:s,style:l}=e,d=fn(r)?r(t):r;return d?c.createElement("span",{className:U(`${o}-separator`,s),style:l},d):null},uD=c.forwardRef((e,t)=>{const{prefixCls:o,length:r=6,size:s,defaultValue:l,value:d,onChange:f,formatter:p,separator:m,variant:h,disabled:b,status:v,autoFocus:x,mask:S,type:C,autoComplete:R,onInput:w,onFocus:N,inputMode:$,classNames:E,styles:T,className:z,style:A,...I}=e,{classNames:j,styles:L,getPrefixCls:B,direction:H,style:q,className:Q}=Kt("otp"),F=B("otp",o),D={...e,length:r},G=pn(q),X=pn(A),[ee,Z]=mn([j,E],[L,G,T,X],{props:D}),_=Qn(I,{aria:!0,data:!0,attr:!0}),[V,Y]=sD(F),W=zo(Ne=>s??Ne),K=c.useContext(qr),te=Sf(K.status,v),k=c.useMemo(()=>({...K,status:te,hasFeedback:!1,feedbackIcon:null}),[K,te]),se=c.useRef(null),ce=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{ce.current[0]?.focus()},blur:()=>{for(let Ne=0;Ne<r;Ne+=1)ce.current[Ne]?.blur()},nativeElement:se.current}));const ae=Ne=>p?p(Ne):Ne,[pe,oe]=c.useState(()=>id(ae(l||"")));c.useEffect(()=>{d!==void 0&&oe(id(d))},[d]);const fe=ut(Ne=>{oe(Ne),w&&w(Ne),f&&Ne.length===r&&Ne.every(Oe=>Oe)&&Ne.some((Oe,Ce)=>pe[Ce]!==Oe)&&f(Ne.join(""))}),he=ut((Ne,Oe)=>{let Ce=go(pe);for(let Me=0;Me<Ne;Me+=1)Ce[Me]||(Ce[Me]="");Oe.length<=1?Ce[Ne]=Oe:Ce=Ce.slice(0,Ne).concat(id(Oe)),Ce=Ce.slice(0,r);for(let Me=Ce.length-1;Me>=0&&!Ce[Me];Me-=1)Ce.pop();const Ie=ae(Ce.map(Me=>Me||" ").join(""));return Ce=id(Ie).map((Me,je)=>Me===" "&&!Ce[je]?Ce[je]:Me),Ce}),be=(Ne,Oe)=>{const Ce=he(Ne,Oe),Ie=Math.min(Ne+Oe.length,r-1);Ie!==Ne&&Ce[Ne]!==void 0&&ce.current[Ie]?.focus(),fe(Ce)},Ee=Ne=>{ce.current[Ne]?.focus()},Se=(Ne,Oe)=>{for(let Ce=0;Ce<Oe;Ce+=1)if(!ce.current[Ce]?.input?.value){ce.current[Ce]?.focus();break}N?.(Ne)},ye={variant:h,disabled:b,status:te,mask:S,type:C,inputMode:$,autoComplete:R};return c.createElement("div",{..._,ref:se,className:U(z,F,{[`${F}-sm`]:W==="small",[`${F}-lg`]:W==="large",[`${F}-rtl`]:H==="rtl"},Y,V,Q,ee.root),style:Z.root,role:"group"},c.createElement(qr.Provider,{value:k},Array.from({length:r}).map((Ne,Oe)=>{const Ce=`otp-${Oe}`,Ie=pe[Oe]||"";return c.createElement(c.Fragment,{key:Ce},c.createElement(lD,{ref:Me=>{ce.current[Oe]=Me},index:Oe,size:W,htmlSize:1,className:U(ee.input,`${F}-input`),style:Z.input,onChange:be,value:Ie,onActiveChange:Ee,autoFocus:Oe===0&&x,onFocus:Me=>Se(Me,Oe),...ye}),Oe<r-1&&c.createElement(cD,{separator:m,index:Oe,prefixCls:F,className:U(ee.separator),style:Z.separator}))})))});var sd={},G$;function dD(){if(G$)return sd;G$=1,Object.defineProperty(sd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};return sd.default=e,sd}var fD=dD();const mD=Wt(fD);function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Nb.apply(this,arguments)}const pD=(e,t)=>c.createElement(Zt,Nb({},e,{ref:t,icon:mD})),gD=c.forwardRef(pD);var ld={},X$;function hD(){if(X$)return ld;X$=1,Object.defineProperty(ld,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};return ld.default=e,ld}var bD=hD();const yD=Wt(bD);function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Rb.apply(this,arguments)}const vD=(e,t)=>c.createElement(Zt,Rb({},e,{ref:t,icon:yD})),xD=c.forwardRef(vD),SD=e=>e?c.createElement(xD,null):c.createElement(gD,null),CD={click:"onClick",hover:"onMouseOver"},$D=c.forwardRef((e,t)=>{const{disabled:o,action:r="click",visibilityToggle:s=!0,iconRender:l,prefixCls:d,inputPrefixCls:f,suffix:p,className:m,style:h,classNames:b,styles:v,...x}=e,{getPrefixCls:S,className:C,style:R,classNames:w,styles:N,iconRender:$}=Kt("inputPassword"),[E]=za("global"),T=c.useContext(Vr),z=o??T,A={...e,disabled:z},[I,j]=mn([w,b],[N,v],{props:A}),L=Ut(s)&&s.visible!==void 0,[B,H]=c.useState(()=>L?s.visible:!1),q=c.useRef(null);c.useEffect(()=>{L&&H(s.visible)},[L,s]);const Q=GN(q),F=()=>{if(z)return;B&&Q();const V=!B;H(V),Ut(s)&&s.onVisibleChange?.(V)},D=V=>{const Y=CD[r]||"",K=(l||$||SD)(B),te=Ut(s)?s.tabIndex:void 0;return c.createElement("span",{key:"passwordIcon",role:"button",tabIndex:z?-1:te??0,className:`${V}-icon`,"aria-disabled":z,"aria-pressed":B,"aria-label":B?E.hide:E.show,onMouseDown:k=>{k.preventDefault()},onMouseUp:k=>{k.preventDefault()},onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),F())},[Y]:F},K)},G=S("input",f),X=S("input-password",d),ee=s&&D(X),Z=U(X,C,m,{[`${X}-${e.size}`]:!!e.size}),_={...x,type:B?"text":"password",prefixCls:G,suffix:c.createElement(c.Fragment,null,ee,p),disabled:z,className:Z,style:{...R,...h},classNames:I,styles:j};return c.createElement(Nf,{ref:no(t,q),..._})}),ED=e=>{const{componentCls:t,antCls:o,calc:r,max:s}=e,l=`${t}-btn`,[d,f]=Yt(o,"input-search"),p=e.inputFontSizeSM??e.fontSize,m=s(e.controlHeightSM,r(p).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[d("btn-height")]:re(e.controlHeight),width:"100%",[l]:{height:f("btn-height"),"&:focus-visible":{zIndex:5},[`&${o}-btn-icon-only`]:{width:f("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[d("btn-height")]:re(e.controlHeightLG)},[`&${t}-small`]:{[d("btn-height")]:re(e.controlHeightSM)},[`&${t}-small ${l}`]:{minHeight:m,[`&${e.antCls}-btn-icon-only`]:{minWidth:m}}}}},wD=Qt(["Input","Search"],e=>{const t=kt(e,xc(e));return ED(t)},Sc),ND=c.forwardRef((e,t)=>{const{prefixCls:o,inputPrefixCls:r,className:s,size:l,style:d,enterButton:f=!1,searchIcon:p,addonAfter:m,loading:h,disabled:b,onSearch:v,onChange:x,onCompositionStart:S,onCompositionEnd:C,variant:R,onPressEnter:w,classNames:N,styles:$,hidden:E,...T}=e,{direction:z,getPrefixCls:A,className:I,style:j,classNames:L,styles:B,searchIcon:H}=Kt("inputSearch"),q=c.useContext(Vr),Q=b??q,F={...e,enterButton:f},[D,G]=mn([L,N],[B,$],{props:F},{button:{_default:"root"}}),X=c.useRef(!1),ee=A("input-search",o),Z=A("input",r),[_,V]=wD(ee),{compactSize:Y}=Rs(ee,z),W=zo(Ce=>l??Y??Ce),K=c.useRef(null),te=Ce=>{Ce?.target&&Ce.type==="click"&&v&&v(Ce.target.value,Ce,{source:"clear"}),x?.(Ce)},k=Ce=>{document.activeElement===K.current?.input&&Ce.preventDefault()},se=Ce=>{v&&v(K.current?.input?.value,Ce,{source:"input"})},ce=Ce=>{X.current||h||(w?.(Ce),se(Ce))},ae=typeof f=="boolean"?Uo(p,H,c.createElement(A0,null)):null,pe=`${ee}-btn`,oe=U(pe,{[`${pe}-${R}`]:R});let fe;const he=f||{},be=he.type&&he.type.__ANT_BUTTON===!0;if(be||he.type==="button"){const Ce=he.props;fe=Xo(he,{disabled:Q||Ce.disabled||!be&&h,onMouseDown:k,onClick:Ie=>{he?.props?.onClick?.(Ie),se(Ie)},key:"enterButton",...be?{className:U(oe,Ce.className),loading:h||Ce.loading,size:W}:{}})}else fe=c.createElement(Mo,{classNames:D.button,styles:G.button,className:oe,color:f?"primary":"default",size:W,disabled:b,key:"enterButton",onMouseDown:k,onClick:se,loading:h,icon:ae,variant:R==="borderless"||R==="filled"||R==="underlined"?"text":f?"solid":void 0},f);m&&(fe=[fe,Xo(m,{key:"addonAfter"})]);const Ee=U(ee,V,{[`${ee}-rtl`]:z==="rtl",[`${ee}-${W}`]:!!W,[`${ee}-with-button`]:!!f},s,I,_,D.root),Se=Ce=>{X.current=!0,S?.(Ce)},ye=Ce=>{X.current=!1,C?.(Ce)},Ne=Qn(T,{data:!0}),Oe=xn({...T,classNames:xn(D,["button","root"]),styles:xn(G,["button","root"]),prefixCls:Z,type:"search",size:W,variant:R,onPressEnter:ce,onCompositionStart:Se,onCompositionEnd:ye,onChange:te,disabled:b},Object.keys(Ne));return c.createElement(d2,{className:Ee,style:{...G.root,...j,...d},...Ne,hidden:E},c.createElement(Nf,{ref:no(K,t),...Oe}),fe)}),RD=e=>{const{componentCls:t,paddingLG:o}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
238
+ &-allow-clear > ${t},
239
+ &-affix-wrapper${r}-has-feedback ${t}
240
+ `]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},MD=Qt(["Input","TextArea"],e=>{const t=kt(e,xc(e));return RD(t)},Sc,{resetFont:!1}),TD=c.forwardRef((e,t)=>{const{prefixCls:o,bordered:r=!0,size:s,disabled:l,status:d,allowClear:f,classNames:p,rootClassName:m,className:h,style:b,styles:v,variant:x,showCount:S,onMouseDown:C,onResize:R,...w}=e,{getPrefixCls:N,direction:$,allowClear:E,autoComplete:T,className:z,style:A,classNames:I,styles:j}=Kt("textArea"),L=c.useContext(Vr),B=l??L,{status:H,hasFeedback:q,feedbackIcon:Q}=c.useContext(qr),F=Sf(H,d),D=pn(A),G=pn(b),[X,ee]=mn([I,p],[j,D,v,G],{props:e}),Z=c.useRef(null);c.useImperativeHandle(t,()=>({resizableTextArea:Z.current?.resizableTextArea,focus:Se=>{RE(Z.current?.resizableTextArea?.textArea,Se)},blur:()=>Z.current?.blur(),nativeElement:Z.current?.nativeElement||null}));const _=N("input",o),V=hr(_),[Y,W]=_N(_,m);MD(_,V);const{compactSize:K,compactItemClassnames:te}=Rs(_,$),k=zo(Se=>s??K??Se),[se,ce]=Cf("textArea",x,r),ae=Kw({allowClear:f,contextAllowClear:E,componentName:"TextArea"}),[pe,oe]=c.useState(!1),[fe,he]=c.useState(!1),be=Se=>{oe(!0),C?.(Se);const ye=()=>{oe(!1),document.removeEventListener("mouseup",ye)};document.addEventListener("mouseup",ye)},Ee=Se=>{if(R?.(Se),pe&&fn(getComputedStyle)){const ye=Z.current?.nativeElement?.querySelector("textarea");ye&&getComputedStyle(ye).resize==="both"&&he(!0)}};return c.createElement(IH,{autoComplete:T,...w,style:ee.root,styles:ee,disabled:B,allowClear:ae,className:U(W,V,h,m,te,z,X.root,{[`${_}-textarea-affix-wrapper-resize-dirty`]:fe}),classNames:{...X,textarea:U({[`${_}-sm`]:k==="small",[`${_}-lg`]:k==="large"},Y,X.textarea,pe&&`${_}-mouse-active`),variant:U({[`${_}-${se}`]:ce},ec(_,F)),affixWrapper:U(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:$==="rtl",[`${_}-affix-wrapper-sm`]:k==="small",[`${_}-affix-wrapper-lg`]:k==="large",[`${_}-textarea-show-count`]:S||e.count?.show},Y)},prefixCls:_,suffix:q&&c.createElement("span",{className:`${_}-textarea-suffix`},Q),showCount:S,ref:Z,onResize:Ee,onMouseDown:be})}),As=Nf;As.Group=aD;As.Search=ND;As.TextArea=TD;As.Password=$D;As.OTP=uD;function OD(e,t,o){return typeof o=="boolean"?o:e.length?!0:Oo(t).some(s=>s.type===$N)}const Rf=({suffixCls:e,tagName:t,displayName:o})=>r=>c.forwardRef((l,d)=>c.createElement(r,{ref:d,suffixCls:e,tagName:t,...l})),G0=c.forwardRef((e,t)=>{const{prefixCls:o,suffixCls:r,className:s,tagName:l,...d}=e,{getPrefixCls:f}=c.useContext(bt),p=f("layout",o),[m,h]=CN(p),b=r?`${p}-${r}`:p;return c.createElement(l,{className:U(o||b,s,m,h),ref:t,...d})}),zD=c.forwardRef((e,t)=>{const{direction:o}=c.useContext(bt),[r,s]=c.useState([]),{prefixCls:l,className:d,rootClassName:f,children:p,hasSider:m,tagName:h,style:b,...v}=e,x=xn(v,["suffixCls"]),{getPrefixCls:S,className:C,style:R}=Kt("layout"),w=S("layout",l),N=OD(r,p,m),[$,E]=CN(w),T=U(w,{[`${w}-has-sider`]:N,[`${w}-rtl`]:o==="rtl"},C,d,f,$,E),z=c.useMemo(()=>({siderHook:{addSider:A=>{s(I=>[].concat(go(I),[A]))},removeSider:A=>{s(I=>I.filter(j=>j!==A))}}}),[]);return c.createElement(vN.Provider,{value:z},c.createElement(h,{ref:t,className:T,style:{...R,...b},...x},p))}),AD=Rf({tagName:"div",displayName:"Layout"})(zD),ID=Rf({suffixCls:"header",tagName:"header",displayName:"Header"})(G0),BD=Rf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(G0),_D=Rf({suffixCls:"content",tagName:"main",displayName:"Content"})(G0),Is=AD;Is.Header=ID;Is.Footer=BD;Is.Content=_D;Is.Sider=$N;Is._InternalSiderContext=wf;const PD={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},jD=()=>{const e=c.useRef([]),t=c.useRef(null);return c.useEffect(()=>{const o=Date.now();let r=!1;e.current.forEach(s=>{if(!s)return;r=!0;const l=s.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.current&&o-t.current<100&&(l.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},k$=({bg:e,children:t})=>c.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function Y$(e,t){return Object.keys(e).map(o=>{const r=parseFloat(o),s=`${Math.floor(r*t)}%`;return`${e[o]} ${s}`})}const HD=c.forwardRef((e,t)=>{const{prefixCls:o,color:r,gradientId:s,radius:l,className:d,style:f,ptg:p,strokeLinecap:m,strokeWidth:h,size:b,gapDegree:v}=e,x=r&&typeof r=="object",S=x?"#FFF":void 0,C=b/2,R=c.createElement("circle",{className:U(`${o}-circle-path`,d),r:l,cx:C,cy:C,stroke:S,strokeLinecap:m,strokeWidth:h,opacity:p===0?0:1,style:f,ref:t});if(!x)return R;const w=`${s}-conic`,N=v?`${180+v/2}deg`:"0deg",$=Y$(r,(360-v)/360),E=Y$(r,1),T=`conic-gradient(from ${N}, ${$.join(", ")})`,z=`linear-gradient(to ${v?"bottom":"top"}, ${E.join(", ")})`;return c.createElement(c.Fragment,null,c.createElement("mask",{id:w},R),c.createElement("foreignObject",{x:0,y:0,width:b,height:b,mask:`url(#${w})`},c.createElement(k$,{bg:z},c.createElement(k$,{bg:T}))))}),Dl=100,Rg=(e,t,o,r,s,l,d,f,p,m,h=0)=>{const b=o/100*360*((360-l)/360),v=l===0?0:{bottom:0,top:180,left:90,right:-90}[d];let x=(100-r)/100*t;p==="round"&&r!==100&&(x+=m/2,x>=t&&(x=t-.01));const S=Dl/2;return{stroke:typeof f=="string"?f:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:x+h,transform:`rotate(${s+b+v}deg)`,transformOrigin:`${S}px ${S}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},DD=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const o=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:le.createElement("style",null,`@keyframes ${o} {
241
+ 0% { transform: rotate(0deg); }
242
+ 100% { transform: rotate(360deg); }
243
+ }`)}});function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Mb.apply(this,arguments)}function K$(e){const t=e??[];return Array.isArray(t)?t:[t]}const LD=e=>{const{id:t,prefixCls:o,classNames:r={},styles:s={},steps:l,strokeWidth:d,railWidth:f,gapDegree:p=0,gapPosition:m,railColor:h,strokeLinecap:b,style:v,className:x,strokeColor:S,percent:C,loading:R,...w}={...PD,...e},N=Dl/2,$=Wr(t),E=`${$}-gradient`,T=N-d/2,z=Math.PI*2*T,A=p>0?90+p/2:-90,I=z*((360-p)/360),{count:j,gap:L}=typeof l=="object"?l:{count:l,gap:2},B=K$(C),H=K$(S),q=H.find(V=>V&&typeof V=="object"),F=q&&typeof q=="object"?"butt":b,{indeterminateStyleProps:D,indeterminateStyleAnimation:G}=DD({id:$,loading:R}),X=Rg(z,I,0,100,A,p,m,h,F,d),ee=jD(),Z=()=>{let V=0;return B.map((Y,W)=>{const K=H[W]||H[H.length-1],te=Rg(z,I,V,Y,A,p,m,K,F,d);return V+=Y,c.createElement(HD,{key:W,color:K,ptg:Y,radius:T,prefixCls:o,gradientId:E,className:r.track,style:{...te,...D,...s.track},strokeLinecap:F,strokeWidth:d,gapDegree:p,ref:k=>{ee[W]=k},size:Dl})}).reverse()},_=()=>{const V=Math.round(j*(B[0]/100)),Y=100/j;let W=0;return new Array(j).fill(null).map((K,te)=>{const k=te<=V-1?H[0]:h,se=k&&typeof k=="object"?`url(#${E})`:void 0,ce=Rg(z,I,W,Y,A,p,m,k,"butt",d,L);return W+=(I-ce.strokeDashoffset+L)*100/I,c.createElement("circle",{key:te,className:U(`${o}-circle-path`,r.track),r:T,cx:N,cy:N,stroke:se,strokeWidth:d,opacity:1,style:{...ce,...s.track},ref:ae=>{ee[te]=ae}})})};return c.createElement("svg",Mb({className:U(`${o}-circle`,r.root,x),viewBox:`0 0 ${Dl} ${Dl}`,style:{...s.root,...v},id:t,role:"presentation"},w),!j&&c.createElement("circle",{className:U(`${o}-circle-rail`,r.rail),r:T,cx:N,cy:N,stroke:h,strokeLinecap:F,strokeWidth:f||d,style:{...X,...s.rail}}),j?_():Z(),G)};function li(e){return!e||e<0?0:e>100?100:e}function rf({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const VD=({percent:e,success:t})=>{const o=li(rf({success:t}));return[o,li(li(e)-o)]},FD=({success:e={},strokeColor:t})=>{const{strokeColor:o}=e;return[o||ms.green,t||null]},Mf=(e,t,o)=>{let r=-1,s=-1;if(t==="step"){const l=o.steps,d=o.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,s=d??8):Wo(e)?[r,s]=[e,e]:[r=14,s=8]=Array.isArray(e)?e:[e.width,e.height],r*=l}else if(t==="line"){const l=o?.strokeWidth;typeof e=="string"||typeof e>"u"?s=l||(e==="small"?6:8):Wo(e)?[r,s]=[e,e]:[r=-1,s=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,s]=e==="small"?[60,60]:[120,120]:Wo(e)?[r,s]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,s=e[0]??e[1]??120));return[r,s]},qD=3,UD=e=>qD/e*100,Q$=["root","body","indicator"],WD=e=>{const{prefixCls:t,classNames:o,styles:r,railColor:s,trailColor:l,strokeLinecap:d="round",gapPosition:f,gapPlacement:p,gapDegree:m,width:h=120,type:b,children:v,success:x,size:S=h,steps:C}=e,{direction:R}=Kt("progress"),w=s??l,[N,$]=Mf(S,"circle");let{strokeWidth:E}=e;E===void 0&&(E=Math.max(UD(N),6));const T={width:N,height:$,fontSize:N*.15+6},z=c.useMemo(()=>{if(m||m===0)return m;if(b==="dashboard")return 75},[m,b]),A=VD(e),I=c.useMemo(()=>{const F=(p??f)||b==="dashboard"&&"bottom"||void 0,D=R==="rtl";switch(F){case"start":return D?"right":"left";case"end":return D?"left":"right";default:return F}},[R,p,f,b]),j=Ut(e.strokeColor),L=FD({success:x,strokeColor:e.strokeColor}),B=U(`${t}-body`,{[`${t}-circle-gradient`]:j},o.body),H=c.createElement(LD,{steps:C,percent:C?A[1]:A,strokeWidth:E,railWidth:E,strokeColor:C?L[1]:L,strokeLinecap:d,railColor:w,prefixCls:t,gapDegree:z,gapPosition:I,classNames:xn(o,Q$),styles:xn(r,Q$)}),q=N<=20,Q=c.createElement("div",{className:B,style:{...T,...r.body}},H,!q&&v);return q?c.createElement(Ur,{title:v},Q):Q},Tb="--progress-line-stroke-color",GD=e=>{const t="-100%";return new Ct("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},XD=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{...Vn(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},kD=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:GD(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},YD=e=>{const{componentCls:t,iconCls:o}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},KD=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},QD=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${o}`]:{fontSize:e.fontSizeSM}}}},ZD=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),JD=Qt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),o=kt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[XD(o),kD(o),YD(o),KD(o),QD(o)]},ZD),eL=e=>{let t=[];return Object.keys(e).forEach(o=>{const r=Number.parseFloat(o.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[o]})}),t=t.sort((o,r)=>o.key-r.key),t.map(({key:o,value:r})=>`${r} ${o}%`).join(", ")},tL=(e,t)=>{const{from:o=ms.blue,to:r=ms.blue,direction:s=t==="rtl"?"to left":"to right",...l}=e;if(Object.keys(l).length!==0){const f=eL(l),p=`linear-gradient(${s}, ${f})`;return{background:p,[Tb]:p}}const d=`linear-gradient(${s}, ${o}, ${r})`;return{background:d,[Tb]:d}},nL=e=>{const{prefixCls:t,classNames:o,styles:r,direction:s,percent:l,size:d,strokeWidth:f,strokeColor:p,strokeLinecap:m="round",children:h,railColor:b,trailColor:v,percentPosition:x,success:S}=e,{align:C,type:R}=x,w=b??v,N=m==="square"||m==="butt"?0:void 0,$=d??[-1,f||(d==="small"?6:8)],[E,T]=Mf($,"line",{strokeWidth:f}),z={backgroundColor:w||void 0,borderRadius:N,height:T},A=`${t}-track`,I=p&&typeof p!="string"?tL(p,s):{[Tb]:p,background:p},j={width:`${li(l)}%`,height:T,borderRadius:N,...I},L=rf(e),B={width:`${li(L)}%`,height:T,borderRadius:N,backgroundColor:S?.strokeColor};return c.createElement("div",{className:U(`${t}-body`,o.body,{[`${t}-body-layout-bottom`]:C==="center"&&R==="outer"}),style:{width:E>0?E:"100%",...r.body}},c.createElement("div",{className:U(`${t}-rail`,o.rail),style:{...z,...r.rail}},c.createElement("div",{className:U(A,o.track),style:{...j,...r.track}},R==="inner"&&h),L!==void 0&&c.createElement("div",{className:U(A,`${A}-success`,o.track),style:{...B,...r.track}})),R==="outer"&&h)},oL=e=>{const{classNames:t,styles:o,size:r,steps:s,rounding:l=Math.round,percent:d=0,strokeWidth:f=8,strokeColor:p,railColor:m,trailColor:h,prefixCls:b,children:v}=e,x=l(s*(d/100)),C=r??[r==="small"?2:14,f],[R,w]=Mf(C,"step",{steps:s,strokeWidth:f}),N=R/s,$=Array.from({length:s}),E=m??h;for(let T=0;T<s;T++){const z=Array.isArray(p)?p[T]:p;$[T]=c.createElement("div",{key:T,className:U(`${b}-steps-item`,{[`${b}-steps-item-active`]:T<=x-1},t.track),style:{backgroundColor:T<=x-1?z:E,width:N,height:w,...o.track}})}return c.createElement("div",{className:U(`${b}-steps-body`,t.body),style:o.body},$,v)},rL=["normal","exception","active","success"],aL=c.forwardRef((e,t)=>{const{prefixCls:o,className:r,rootClassName:s,classNames:l,styles:d,steps:f,strokeColor:p,percent:m=0,size:h="medium",showInfo:b=!0,type:v="line",status:x,format:S,style:C,percentPosition:R={},...w}=e,{align:N="end",type:$="outer"}=R,E=Array.isArray(p)?p[0]:p,T=typeof p=="string"||Array.isArray(p)?p:void 0,z=c.useMemo(()=>{if(E){const ce=typeof E=="string"?E:Object.values(E)[0];return new En(ce).isLight()}return!1},[p]),A=c.useMemo(()=>{const ce=rf(e);return Number.parseInt(ce!==void 0?(ce??0)?.toString():(m??0)?.toString(),10)},[m,e.success]),I=c.useMemo(()=>!rL.includes(x)&&A>=100?"success":x||"normal",[x,A]),{getPrefixCls:j,direction:L,className:B,style:H,classNames:q,styles:Q}=Kt("progress"),F=j("progress",o),[D,G]=JD(F),X={...e,percent:m,type:v,size:h,showInfo:b,percentPosition:R},ee=pn(H),Z=pn(C),[_,V]=mn([q,l],[Q,ee,d,Z],{props:X}),Y=v==="line",W=Y&&!f,K=c.useMemo(()=>{if(!b)return null;const ce=rf(e);let ae;const pe=S||(fe=>`${fe}%`),oe=Y&&z&&$==="inner";return $==="inner"||S||I!=="exception"&&I!=="success"?ae=pe(li(m),li(ce)):I==="exception"?ae=Y?c.createElement(gi,null):c.createElement(gr,null):I==="success"&&(ae=Y?c.createElement(uc,null):c.createElement(Ms,null)),c.createElement("span",{className:U(`${F}-indicator`,{[`${F}-indicator-bright`]:oe,[`${F}-indicator-${N}`]:W,[`${F}-indicator-${$}`]:W},_.indicator),style:V.indicator,title:typeof ae=="string"?ae:void 0},ae)},[b,m,A,I,v,F,S,Y,z,$,N,W,_.indicator,V.indicator]),te={...e,classNames:_,styles:V};let k;v==="line"?k=f?c.createElement(oL,{...te,strokeColor:T,prefixCls:F,steps:Ut(f)?f.count:f},K):c.createElement(nL,{...te,strokeColor:E,prefixCls:F,direction:L,percentPosition:{align:N,type:$}},K):(v==="circle"||v==="dashboard")&&(k=c.createElement(WD,{...te,strokeColor:E,prefixCls:F,progressStatus:I},K));const se=U(F,`${F}-status-${I}`,{[`${F}-${v==="dashboard"&&"circle"||v}`]:v!=="line",[`${F}-inline-circle`]:v==="circle"&&Mf(h,"circle")[0]<=20,[`${F}-line`]:W,[`${F}-line-align-${N}`]:W,[`${F}-line-position-${$}`]:W,[`${F}-steps`]:f,[`${F}-show-info`]:b,[`${F}-small`]:h==="small",[`${F}-rtl`]:L==="rtl"},B,r,s,_.root,D,G);return c.createElement("div",{ref:t,style:V.root,className:se,role:"progressbar","aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":100,...xn(w,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},k)});var cd={},Z$;function iL(){if(Z$)return cd;Z$=1,Object.defineProperty(cd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};return cd.default=e,cd}var sL=iL();const lL=Wt(sL);function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ob.apply(this,arguments)}const cL=(e,t)=>c.createElement(Zt,Ob({},e,{ref:t,icon:lL})),uL=c.forwardRef(cL);function dL(e){const{prefixCls:t,className:o,style:r,status:s}=e,l=`${t}-rail`;return c.createElement("div",{className:U(l,`${l}-${s}`,o),style:r})}const fL=c.createContext({}),X0=c.createContext(null);function zb(){return zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},zb.apply(this,arguments)}const eR=c.createContext({}),J$=c.forwardRef((e,t)=>{const{className:o,style:r,children:s,...l}=e,{prefixCls:d,classNames:f,styles:p}=c.useContext(X0),{className:m,style:h}=c.useContext(eR),b=`${d}-item`;return c.createElement("div",zb({},Qn(l,!1),{ref:t,className:U(`${b}-icon`,f.itemIcon,m,o),style:{...p.itemIcon,...h,...r}}),s)});function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ab.apply(this,arguments)}function Mg(e){return e!=null}function mL(e){const{prefixCls:t,classNames:o,styles:r,data:s,last:l,nextStatus:d,active:f,index:p,itemRender:m,iconRender:h,itemWrapperRender:b,onClick:v}=e,x=`${t}-item`,{railFollowPrevStatus:S}=c.useContext(fL),{ItemComponent:C}=c.useContext(X0),{onClick:R,title:w,subTitle:N,content:$,description:E,disabled:T,icon:z,status:A,className:I,style:j,classNames:L={},styles:B={},...H}=s,q=$??E,Q={item:{...s,content:q},index:p,active:f},F=!!(v||R)&&!T,D={};F&&(D.role="button",D.tabIndex=0,D.onClick=W=>{R?.(W),v(p)},D.onKeyDown=W=>{const{which:K}=W;(K===Je.ENTER||K===Je.SPACE)&&v(p)});const G=A||"wait",X=Mg(w),ee=Mg(N),Z=U(x,`${x}-${G}`,{[`${x}-custom`]:z,[`${x}-active`]:f,[`${x}-disabled`]:T===!0,[`${x}-empty-header`]:!X&&!ee},I,o.item,L.root);let _=c.createElement(J$,null);h&&(_=h(_,{...Q,components:{Icon:J$}}));const V=c.createElement("div",{className:U(`${x}-wrapper`,o.itemWrapper,L.wrapper),style:{...r.itemWrapper,...B.wrapper}},c.createElement(eR.Provider,{value:{className:L.icon,style:B.icon}},_),c.createElement("div",{className:U(`${x}-section`,o.itemSection,L.section),style:{...r.itemSection,...B.section}},c.createElement("div",{className:U(`${x}-header`,o.itemHeader,L.header),style:{...r.itemHeader,...B.header}},X&&c.createElement("div",{className:U(`${x}-title`,o.itemTitle,L.title),style:{...r.itemTitle,...B.title}},w),ee&&c.createElement("div",{title:typeof N=="string"?N:void 0,className:U(`${x}-subtitle`,o.itemSubtitle,L.subtitle),style:{...r.itemSubtitle,...B.subtitle}},N),!l&&c.createElement(dL,{prefixCls:x,className:U(o.itemRail,L.rail),style:{...r.itemRail,...B.rail},status:S?A:d})),Mg(q)&&c.createElement("div",{className:U(`${x}-content`,o.itemContent,L.content),style:{...r.itemContent,...B.content}},q)));let Y=c.createElement(C,Ab({},H,D,{className:Z,style:{...r.item,...B.root,...j}}),b?b(V):V);return m&&(Y=m(Y,Q)||null),Y}function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ib.apply(this,arguments)}const eE={};function pL(e){const{prefixCls:t="rc-steps",style:o,className:r,classNames:s=eE,styles:l=eE,rootClassName:d,orientation:f,titlePlacement:p,components:m,status:h="process",current:b=0,initial:v=0,onChange:x,items:S,iconRender:C,itemRender:R,itemWrapperRender:w,...N}=e,$=f==="vertical",E=$?"vertical":"horizontal",T=!$&&p==="vertical"?"vertical":"horizontal",z=U(t,`${t}-${E}`,`${t}-title-${T}`,d,r,s.root),A=le.useMemo(()=>(S||[]).filter(Boolean),[S]),I=le.useMemo(()=>A.map(({status:Q},F)=>{const D=v+F;return Q||(D===b?h:D<b?"finish":"wait")}),[A,h,b,v]),j=Q=>{x&&b!==Q&&x(Q)},{root:L="div",item:B="div"}=m||{},H=le.useMemo(()=>({prefixCls:t,classNames:s,styles:l,ItemComponent:B}),[t,s,l,B]),q=(Q,F)=>{const D=v+F,G=I[F],X=I[F+1],ee={...Q,status:G};return le.createElement(mL,{key:D,prefixCls:t,classNames:s,styles:l,data:ee,nextStatus:X,active:D===b,index:D,last:A.length-1===F,iconRender:C,itemRender:R,itemWrapperRender:w,onClick:x&&j})};return le.createElement(L,Ib({className:z,style:{...o,...l?.root}},N),le.createElement(X0.Provider,{value:H},A.map(q)))}const gL=c.createContext(null),hL=e=>{const{prefixCls:t}=e;return c.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},c.createElement("title",null,"Arrow"),c.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},bL=e=>{const{prefixCls:t,rootPrefixCls:o,children:r,percent:s}=e,l=`${t}-item-progress-icon`,d=`${l}-circle`,[,f]=Yt(o,"cmp-steps"),p=`calc(${f("progress-radius")} * 2 * ${Math.PI*s/100}) 9999`;return c.createElement(c.Fragment,null,c.createElement("svg",{className:`${l}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s},c.createElement("title",null,"Progress"),c.createElement("circle",{className:U(d,`${d}-rail`)}),c.createElement("circle",{className:U(d,`${d}-ptg`),strokeDasharray:p,transform:"rotate(-90 50 50)"})),r)},yL=e=>{const{componentCls:t,antCls:o}=e,r=`${t}-item`,[s,l]=Yt(o,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${r}-rail`]:{[s("horizontal-rail-margin")]:`calc(${l("icon-size-max")} / 2 - ${l("rail-size")} / 2 + ${l("item-wrapper-padding-top")})`,position:"static",marginTop:l("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:l("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},vL=e=>{const{componentCls:t,customIconFontSize:o,motionDurationSlow:r,iconSize:s,lineWidth:l,lineType:d,antCls:f}=e,p=`${t}-item`,[m,h]=Yt(f,"cmp-steps");return{[t]:{[m("icon-size")]:s,[m("icon-border-width")]:l,[`${p}-icon`]:{width:h("icon-size"),height:h("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:h("icon-size"),textAlign:"center",borderRadius:h("icon-size"),border:`${h("icon-border-width")} ${d} transparent`,transition:["background-color","border","color","inset","transform"].map(b=>`${b} ${r}`).join(", "),zIndex:1},[`${p}-custom ${p}-icon`]:{background:"none",border:0,fontSize:o}}}},xL=e=>{const{componentCls:t,inlineDotSize:o,paddingXS:r,lineWidth:s,antCls:l,calc:d}=e,f=d(r).add(s).equal(),p=`${t}-item`,[m,h]=Yt(l,"cmp-steps");return{[`${t}-inline`]:{[m("items-offset")]:"0",[m("item-wrapper-padding-top")]:f,display:"inline-flex","&:before":{content:'""',flex:h("items-offset")},[p]:{[m("title-vertical-row-gap")]:r,[m("icon-size")]:o,[m("icon-size-active")]:o,[m("title-font-size")]:e.fontSizeSM,[m("title-line-height")]:e.lineHeightSM,[m("item-title-color")]:e.colorTextSecondary,[m("subtitle-font-size")]:e.fontSizeSM,[m("subtitle-line-height")]:e.lineHeightSM,[m("item-subtitle-color")]:e.colorTextQuaternary,[m("rail-size")]:e.lineWidth,[m("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${p}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function SL(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}const k0=(e,t,o)=>{const{calc:r,componentCls:s,descriptionMaxWidth:l,antCls:d}=e,f=`${s}-item`,[,p]=Yt(d,"cmp-steps");return{[`@container style(${SL(l)})`]:[{[`${f}-icon`]:{marginInlineStart:r(l).sub(p("icon-size")).div(2).equal()},[`${f}-rail`]:{width:"auto",insetInlineStart:r(l).add(p("icon-size")).div(2).add(t).equal(),insetInlineEnd:r(l).sub(p("icon-size")).div(2).sub(t).mul(-1).equal()}},o]}},CL=e=>{const{componentCls:t,descriptionMaxWidth:o,marginXS:r,fontHeightLG:s,margin:l,paddingSM:d,marginXXS:f,antCls:p,calc:m}=e,h=`${t}-item`,[b,v]=Yt(p,"cmp-steps");return{[t]:{[b("icon-size-max")]:`max(${v("icon-size")}, ${v("icon-size-active",v("icon-size"))})`,[`${h}-icon`]:{marginBlockStart:`calc((${v("heading-height")} - ${v("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[b("title-horizontal-item-margin")]:l,[b("title-horizontal-rail-margin")]:l,[b("title-horizontal-title-height")]:s,[b("heading-height")]:`max(${v("icon-size")}, ${v("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${h}:not(:first-child)`]:{marginInlineStart:v("title-horizontal-item-margin")},[`${h}:last-child`]:{flex:"0 1 auto"},[`${h}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${h}-wrapper`]:{columnGap:e.margin},[`${h}-empty-header`]:{[`${h}-header`]:{minHeight:"auto"},[`${h}-content`]:{marginTop:m(v("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${h}-section`]:{flex:1,minWidth:0},[`${h}-header`]:{minHeight:v("heading-height")},[`${h}-title`]:{flex:"0 1 auto"},[`${h}-content`]:{maxWidth:o},[`${h}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${h}-rail`]:{[b("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:v("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[b("title-vertical-row-gap")]:d,[b("title-horizontal-rail-gap")]:f,[b("heading-height")]:v("icon-size-max"),[`> ${h}`]:{flex:"1 1 0%",[`${h}-wrapper`]:{flexDirection:"column",rowGap:v("title-vertical-row-gap"),alignItems:"center"},[`${h}-section`]:{alignSelf:"stretch"},[`${h}-header`]:{flexDirection:"column",alignItems:"center"},[`${h}-title, ${h}-subtitle, ${h}-content`]:{textAlign:"center",maxWidth:"100%"},[`${h}-subtitle`]:{margin:0},[`${h}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${v("icon-size")} - ${v("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${v("icon-size")} / 2 + ${v("title-horizontal-rail-gap")})`}},...k0(e,r,{[`${h}:last-child`]:{flex:"none"},[`${h}-icon`]:{alignSelf:"flex-start"},[`${h}-section`]:{width:o}})}}},$L=e=>{const{componentCls:t}=e,o=`${t}-item`;return{[`${t}-max-count`]:{[`${o}-ellipsis`]:{[`${o}-title, ${o}-subtitle, ${o}-content`]:{color:e.colorTextDescription}}}}},EL=e=>{const{componentCls:t,fontSizeIcon:o,navContentMaxWidth:r,navArrowColor:s,colorPrimary:l,motionDurationSlow:d,antCls:f,calc:p}=e,m=`${t}-item`,h=l,[b,v]=Yt(f,"cmp-steps");return{[`${t}${t}-navigation`]:{[m.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${m}-wrapper`]:{paddingBlock:e.paddingSM},[`${m}-section`]:{maxWidth:r},[`${m}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:h,transition:`all ${d}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${re(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${m}-active`]:{[b("item-content-active-color")]:v("item-content-color"),[b("item-icon-active-bg-color")]:v("item-icon-bg-color"),[b("item-icon-active-border-color")]:v("item-icon-border-color"),[b("item-icon-active-text-color")]:v("item-icon-text-color")}},[`&${t}-horizontal`]:{[m]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${m}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:p(o).div(2).mul(-1).add("100%").equal(),width:o,height:o,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[m.repeat(4)]:{[`${m}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${m}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:p(o).div(3).mul(2).equal(),height:p(o).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},wL=e=>{const{componentCls:t,lineWidthBold:o,borderRadius:r,borderRadiusSM:s,motionDurationMid:l,paddingXS:d,lineType:f,paddingSM:p,antCls:m,calc:h}=e,b=`${t}-item`,[v,x]=Yt(m,"cmp-steps"),S=`${re(o)} ${f} ${x("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${b}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[b]:{flex:1,margin:0}}},{"&":{[v("panel-padding")]:p,[v("item-border-radius")]:r,[b]:{[v("panel-bg-color")]:x("item-icon-bg-color"),[v("panel-border-color")]:x("item-icon-border-color"),[v("panel-active-bg-color")]:x("item-icon-active-bg-color"),[v("panel-active-border-color")]:x("item-icon-active-border-color"),[v("panel-title-height")]:`calc(${x("title-font-size")} * ${x("title-line-height")})`,[v("item-base-height")]:h(x("panel-padding")).mul(2).add(x("icon-size")).add(x("panel-title-height")).equal(),[v("item-base-width")]:`calc(${x("item-base-height")} * 0.7071)`,transition:`background-color ${l}`}},[`${b}-icon`]:{display:"none"},[`${b}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:h(o).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:h(o).mul(2).add("100%").equal(),width:x("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:x("panel-bg-color"),stroke:x("panel-border-color"),strokeWidth:o,vectorEffect:"non-scaling-stroke",transition:`fill ${l}`}},[`${b}:last-child ${t}-panel-arrow`]:{display:"none"},[b]:{padding:x("panel-padding"),background:x("panel-bg-color"),position:"relative",borderBlock:S,"&:not(:first-child)":{paddingInlineStart:`calc(${x("panel-padding")} + ${x("item-base-width")})`},"&:first-child":{borderInlineStart:S,borderStartStartRadius:x("item-border-radius"),borderEndStartRadius:x("item-border-radius")},"&:last-child":{borderInlineEnd:S,borderStartEndRadius:x("item-border-radius"),borderEndEndRadius:x("item-border-radius")},"&-active":{background:x("panel-active-bg-color"),borderColor:x("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:x("panel-active-bg-color"),stroke:x("panel-active-border-color")}},[`${b}-title, ${b}-subtitle, ${b}-content`]:{color:x("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[v("panel-padding")]:d,[v("item-border-radius")]:s}},{[`&${t}-filled`]:{[b]:{"&:not(:first-child)":{clipPath:`polygon(${[`${re(o)} 0`,`calc(100% + ${x("item-base-width")}) 0`,`calc(100% + ${x("item-base-width")}) 100%`,`${re(o)} 100%`,`calc(${x("item-base-width")} + ${re(o)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:h(o).div(2).mul(-1).equal(),height:h(o).add("100%").equal()}}}]}},NL=e=>{const{calc:t,antCls:o,componentCls:r,lineWidthBold:s,motionDurationSlow:l}=e,d=`${r}-item`,[f,p]=Yt(o,"cmp-steps"),m=t(s).add(s).equal();return{[`${r}${r}-with-progress`]:{[f("item-wrapper-padding-top")]:m,[`${d}${d}-process`]:{[`${d}-icon`]:{position:"relative"}},[`${d}-progress-icon`]:{"&-svg":{[f("svg-size")]:t(m).mul(2).add(p("icon-size")).equal(),[f("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${p("svg-size")}, 1px)))`,fontSize:p("svg-size"),lineHeight:p("icon-size-ptg-unitless"),position:"absolute",inset:t(m).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:p("icon-size-ptg-unitless"),strokeWidth:t(p("icon-size-ptg-unitless")).mul(s).equal(),[f("progress-radius")]:t(p("svg-size")).sub(s).mul(p("icon-size-ptg-unitless")).div(2).equal(),r:p("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${l} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},RL=e=>{const{componentCls:t,iconSize:o,dotSize:r,dotCurrentSize:s,marginXXS:l,lineWidthBold:d,fontSizeSM:f,antCls:p}=e,m=`${t}-item`,[h,b]=Yt(p,"cmp-steps");return{[`${t}${t}-dot`]:{[h("icon-size-active")]:s,[h("icon-size")]:r,[h("dot-icon-size")]:r,[h("dot-icon-border-width")]:d,[h("rail-size")]:d,[h("icon-border-width")]:d,[`${m}-custom ${m}-icon`]:{fontSize:f},[`${m}-icon`]:{position:"relative","&:after":{content:'""',width:o,height:o,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${m}-active ${m}-icon`]:{[h("icon-size")]:b("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:k0(e,l)}}}},ML=e=>{const{componentCls:t,lineWidthBold:o,antCls:r}=e,s=`${t}-item`,[,l]=Yt(r,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${s}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[s]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${l("item-base-width")}) 0px`,`calc(100% - ${re(o)}) 0px`,`calc(100% - ${l("item-base-width")} - ${re(o)}) 50%`,`calc(100% - ${re(o)}) 100%`,`calc(0px - ${l("item-base-width")}) 100%`].join(",")})`}}}}}}},TL=e=>{const{componentCls:t,iconSizeSM:o,fontSize:r,lineHeight:s,marginXS:l,fontHeight:d,marginSM:f,paddingXS:p,antCls:m}=e,[h]=Yt(m,"cmp-steps");return{[`${t}${t}-small`]:{[h("icon-size")]:o,[h("title-horizontal-item-margin")]:f,[h("title-vertical-row-gap")]:p,[h("title-font-size")]:r,[h("title-line-height")]:s,[h("title-horizontal-rail-margin")]:l,[h("title-horizontal-title-height")]:d,[`&${t}-horizontal${t}-title-vertical`]:k0(e,l)}}},ud="wait",dd="process",fd="finish",md="error",OL=e=>{const{componentCls:t,colorTextDisabled:o,colorTextLightSolid:r,colorPrimary:s,colorTextLabel:l,colorError:d,colorErrorHover:f,colorErrorBgFilledHover:p,colorFillTertiary:m,colorErrorBg:h,colorPrimaryBgHover:b,colorPrimaryBg:v,colorText:x,colorTextDescription:S,colorBgContainer:C,colorPrimaryHover:R,lineType:w,antCls:N}=e,$=`${t}-item`,[E,T]=Yt(N,"cmp-steps");return{[t]:[{[$]:{[E("item-solid-line-color")]:"#000",[E("item-title-color")]:"#000",[E("item-content-color")]:"#000",[E("item-subtitle-color")]:T("item-content-color"),[E("item-icon-custom-color")]:"#000",[E("item-icon-bg-color")]:"#000",[E("item-icon-border-color")]:"#000",[E("item-icon-text-color")]:"#fff",[E("item-icon-dot-color")]:"#000",[E("item-icon-dot-bg-color")]:T("item-icon-dot-color"),[E("item-icon-dot-border-color")]:T("item-icon-dot-color"),[E("item-text-hover-color")]:"#000",[E("item-icon-bg-hover-color")]:T("item-icon-bg-color"),[E("item-icon-border-hover-color")]:T("item-icon-border-color"),[E("item-icon-text-hover-color")]:T("item-icon-text-color"),[E("item-content-active-color")]:T("item-content-color"),[E("item-icon-active-bg-color")]:T("item-icon-bg-color"),[E("item-icon-active-border-color")]:T("item-icon-border-color"),[E("item-icon-active-text-color")]:T("item-icon-text-color"),[E("item-process-rail-line-style")]:w},[`${$}-rail`]:{borderColor:T("item-solid-line-color")},[`${$}-custom ${$}-icon`]:{color:T("item-icon-custom-color")},[`${$}-title`]:{color:T("item-title-color")},[`${$}-subtitle`]:{color:T("item-subtitle-color")},[`${$}-content`]:{color:T("item-content-color")},[`${$}-active ${$}-icon`]:{},[`${$}-active ${$}-content`]:{color:T("item-content-active-color")},[`${$}[role='button']:not(${$}-active):hover`]:{[`${$}-title, ${$}-content`]:{color:T("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${$}:not(${$}-custom)`]:{[`${$}-icon`]:{background:T("item-icon-bg-color"),borderColor:T("item-icon-border-color"),color:T("item-icon-text-color")},[`&[role='button']:not(${$}-active):hover`]:{[`${$}-icon`]:{background:T("item-icon-bg-hover-color"),borderColor:T("item-icon-border-hover-color"),color:T("item-icon-text-hover-color")}},[`&${$}-active`]:{[`${$}-icon`]:{background:T("item-icon-active-bg-color"),borderColor:T("item-icon-active-border-color"),color:T("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${$}-icon`]:{background:T("item-icon-dot-bg-color"),borderColor:T("item-icon-dot-border-color"),color:T("item-icon-dot-color"),[`&${$}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${$}-${ud}`]:{[E("item-icon-custom-color")]:o,[E("item-title-color")]:S,[E("item-content-color")]:S,[E("item-content-active-color")]:x,[E("item-text-hover-color")]:R},[`${$}-rail-${ud}`]:{[E("item-solid-line-color")]:o},[`${$}-${dd}`]:{[E("item-icon-custom-color")]:s,[E("item-title-color")]:x,[E("item-content-color")]:S,[E("item-content-active-color")]:x,[E("item-text-hover-color")]:R},[`${$}-rail-${dd}`]:{[E("item-solid-line-color")]:s,[E("rail-line-style")]:T("item-process-rail-line-style")},[`${$}-${fd}`]:{[E("item-icon-custom-color")]:s,[E("item-title-color")]:x,[E("item-content-color")]:S,[E("item-content-active-color")]:x,[E("item-text-hover-color")]:R},[`${$}-rail-${fd}`]:{[E("item-solid-line-color")]:s},[`${$}-${md}`]:{[E("item-icon-custom-color")]:d,[E("item-title-color")]:d,[E("item-content-color")]:d,[E("item-content-active-color")]:d,[E("item-text-hover-color")]:f},[`${$}-rail-${md}`]:{[E("item-solid-line-color")]:d}},{[`&${t}-filled`]:{[$]:{[E("item-icon-dot-border-color")]:"transparent"},[`${$}-${ud}`]:{[E("item-icon-bg-color")]:m,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:l,[E("item-icon-dot-bg-color")]:o,[E("item-icon-bg-hover-color")]:b,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:s,[E("item-icon-active-bg-color")]:s,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r},[`${$}-${dd}, ${$}-${fd}`]:{[E("item-icon-bg-color")]:v,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:s,[E("item-icon-dot-bg-color")]:s,[E("item-icon-bg-hover-color")]:b,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:s,[E("item-icon-active-bg-color")]:s,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r},[`${$}-${md}`]:{[E("item-icon-bg-color")]:h,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:d,[E("item-icon-dot-bg-color")]:d,[E("item-icon-bg-hover-color")]:p,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:d,[E("item-icon-active-bg-color")]:d,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r}}},{[`&${t}-outlined`]:{[$]:{[E("item-icon-dot-bg-color")]:"transparent"},[`${$}-${ud}`]:{[E("item-icon-bg-color")]:C,[E("item-icon-border-color")]:o,[E("item-icon-text-color")]:o,[E("item-icon-dot-color")]:o,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:R,[E("item-icon-text-hover-color")]:R,[E("item-icon-active-bg-color")]:m},[`${$}-${dd}, ${$}-${fd}`]:{[E("item-icon-bg-color")]:C,[E("item-icon-border-color")]:s,[E("item-icon-text-color")]:s,[E("item-icon-dot-color")]:s,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:R,[E("item-icon-text-hover-color")]:R,[E("item-icon-active-bg-color")]:v},[`${$}-${md}`]:{[E("item-icon-bg-color")]:C,[E("item-icon-border-color")]:d,[E("item-icon-text-color")]:d,[E("item-icon-dot-color")]:d,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:f,[E("item-icon-text-hover-color")]:f,[E("item-icon-active-bg-color")]:h}}}]}},zL=e=>{const{componentCls:t,marginXXS:o,paddingSM:r,controlHeight:s,antCls:l,calc:d}=e,f=`${t}-item`,[p,m]=Yt(l,"cmp-steps");return{[`${t}-vertical`]:{[p("vertical-rail-margin")]:d(o).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${f}`]:{minHeight:d(s).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${f}-icon`]:{marginInlineStart:`calc((${m("icon-size-max")} - ${m("icon-size")}) / 2)`},[`${f}-rail`]:{[p("rail-offset")]:d(m("heading-height")).sub(m("icon-size")).div(2).equal(),borderInlineStartWidth:m("rail-size"),position:"absolute",top:d(m("icon-size")).add(m("item-wrapper-padding-top")).add(m("rail-offset")).add(m("vertical-rail-margin")).equal(),insetInlineStart:d(m("icon-size-max")).div(2).equal(),bottom:d(m("vertical-rail-margin")).sub(m("rail-offset")).equal(),marginInlineStart:`calc(${m("rail-size")} / -2)`}}}}},AL=e=>{const{componentCls:t,antCls:o}=e,r=`${t}-item`,[s,l]=Yt(o,"cmp-steps");return{[t]:{[s("title-font-size")]:e.fontSizeLG,[s("title-line-height")]:e.lineHeightLG,[s("subtitle-font-size")]:e.fontSize,[s("subtitle-line-height")]:e.lineHeight,[s("item-wrapper-padding-top")]:"0px",[s("rail-size")]:e.lineWidth,[s("rail-line-style")]:e.lineType,...Vn(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[r]:{flex:"none",position:"relative"},[`${r}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:l("item-wrapper-padding-top")},[`${r}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${r}-title`]:{color:e.colorText,fontSize:l("title-font-size"),lineHeight:l("title-line-height"),wordBreak:"break-word"},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:l("subtitle-font-size"),lineHeight:l("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${r}-rail`]:{borderStyle:l("rail-line-style"),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:or},[`${r}[role='button']:not(${r}-active):hover`]:{cursor:"pointer"}}}},IL=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),BL=Qt("Steps",e=>{const t=kt(e,{inlineDotSize:6});return[AL(t),vL(t),zL(t),yL(t),CL(t),TL(t),RL(t),OL(t),EL(t),wL(t),xL(t),$L(t),NL(t),ML(t)]},IL);function _L(e,t){return{item:{...e,key:e.key??t},originIndex:t}}function PL(e,t,o,r,s){const l=e[o].key??o,d=e[r].key??r,p=e.slice(o+1,r).some(m=>m.status==="error")?"error":r-1<t?"finish":"wait";return{item:{key:`ellipsis-${l}-${d}`,title:"",icon:c.createElement(L0),status:p,disabled:!0,className:`${s}-item-ellipsis`},originIndex:-1}}function jL(e,t,o){const r=Math.min(Math.max(t,0),e-1),s=Math.min(o,e),l=new Set([0,r,e-1]);for(let d=1;l.size<s&&d<e;d+=1){const f=[r-d,r+d,d,e-1-d];for(const p of f){if(l.size>=s)break;p>=0&&p<e&&l.add(p)}}return Array.from(l).sort((d,f)=>d-f).flatMap((d,f,p)=>f>0&&d-p[f-1]>1?[null,d]:[d])}function HL(e,t,o,r,s){const l=r!==void 0&&r>=3&&e.length>r,d=t-o,f=c.useMemo(()=>{if(!l)return e.map((h,b)=>({item:h,originIndex:b}));const m=jL(e.length,d,r);return m.map((h,b)=>h===null?PL(e,d,m[b-1],m[b+1],s):_L(e[h],h))},[l,d,e,r,s]),p=f.findIndex(m=>m.originIndex===d);return{canApplyMaxCount:l,displaySteps:f,mappedDisplayCurrent:p>=0?p:d,displayItems:f.map(m=>m.item)}}const DL={itemIcon:y0},LL=e=>{const{size:t,className:o,rootClassName:r,style:s,variant:l="filled",type:d,classNames:f,styles:p,direction:m,orientation:h,responsive:b=!0,progressDot:v,labelPlacement:x,titlePlacement:S,ellipsis:C,maxCount:R,offset:w=0,items:N,percent:$,current:E=0,initial:T=0,onChange:z,iconRender:A,...I}=e,j=c.useContext(gL),L=Kt("steps"),{getPrefixCls:B,direction:H,className:q,style:Q}=L;let F,D,G={};j?G={root:j.rootComponent,item:j.itemComponent}:{classNames:F,styles:D}=L;const X=B(),ee=B("steps",e.prefixCls),Z=`${ee}-item-icon`,[_,V]=BL(ee),[Y]=Yt(X,"cmp-steps"),W=zo(t),K=c.useMemo(()=>(N||[]).filter(Boolean),[N]),{xs:te}=__(b),k=c.useMemo(()=>d&&d!=="default"?d:v?"dot":d,[v,d]),se=k==="inline",ce=k==="dot"||k==="inline",ae=c.useMemo(()=>k==="dot"&&fn(v)?v:void 0,[k,v]),pe=c.useMemo(()=>{const Le=h||m;return k==="panel"?"horizontal":b&&te||Le==="vertical"?"vertical":"horizontal"},[h,m,k,b,te]),oe=c.useMemo(()=>ce||pe==="vertical"?pe==="vertical"?"horizontal":"vertical":d==="navigation"?"horizontal":S||x||"horizontal",[ce,x,pe,S,d]),fe=se?void 0:$,{canApplyMaxCount:he,displaySteps:be,mappedDisplayCurrent:Ee,displayItems:Se}=HL(K,E,T,R,ee),ye={...e,variant:l,size:W,type:k,orientation:pe,titlePlacement:oe,current:E,initial:T,percent:fe,responsive:b,offset:w,ellipsis:C,maxCount:R},[Ne,Oe]=mn([DL,F,f],[D,p],{props:ye}),Ce=(Le,Ve)=>{const{item:Ke,index:qe,active:Ae,components:{Icon:Pe}}=Ve,We=be[qe]?.originIndex,Be=We!==void 0&&We>=0?T+We:qe,{status:Te,icon:Ge}=Ke;let nt=null;if(ce||Ge)nt=Ge;else switch(Te){case"finish":nt=c.createElement(Ms,{className:`${Z}-finish`});break;case"error":nt=c.createElement(gr,{className:`${Z}-error`});break;default:{let yt=c.createElement("span",{className:`${Z}-number`},Be+1);Te==="process"&&fe!==void 0&&(yt=c.createElement(bL,{prefixCls:ee,rootPrefixCls:X,percent:fe},yt)),nt=yt}}let ot=c.createElement(Pe,null,nt);return A?ot=A(ot,{index:Be,active:Ae,item:Ke,components:{Icon:Pe}}):fn(ae)&&(ot=ae(ot,{index:Be,...Ke})),ot},Ie=(Le,Ve)=>{let Ke=Le;return se&&Ve.item.content&&(Ke=c.createElement(Ur,{destroyOnHidden:!0,title:Ve.item.content},Le)),c.createElement(u2,{component:"Steps",disabled:Ve.item.disabled||!z,colorSource:l==="filled"?"color":null},Ke)},Me=k==="panel"?Le=>c.createElement(c.Fragment,null,Le,c.createElement(hL,{prefixCls:ee})):void 0,je={[Y("items-offset")]:`${w}`,...Q,...s},et=U(q,`${ee}-${l}`,{[`${ee}-${k}`]:k!=="dot"?k:!1,[`${ee}-rtl`]:H==="rtl",[`${ee}-dot`]:ce,[`${ee}-ellipsis`]:C,[`${ee}-max-count`]:he,[`${ee}-with-progress`]:fe!==void 0,[`${ee}-small`]:W==="small"},o,r,_,V),ke=Le=>{const Ve=be[Le];z&&Ve&&Ve.originIndex>=0&&z(T+Ve.originIndex)};return c.createElement(pL,{...I,prefixCls:ee,className:et,style:je,classNames:Ne,styles:Oe,orientation:pe,titlePlacement:oe,components:G,initial:0,current:Ee,items:Se,onChange:z?ke:void 0,iconRender:Ce,itemRender:Ie,itemWrapperRender:Me})};var pd={},tE;function VL(){if(tE)return pd;tE=1,Object.defineProperty(pd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return pd.default=e,pd}var FL=VL();const qL=Wt(FL);function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Bb.apply(this,arguments)}const UL=(e,t)=>c.createElement(Zt,Bb({},e,{ref:t,icon:qL})),tR=c.forwardRef(UL);var gd={},nE;function WL(){if(nE)return gd;nE=1,Object.defineProperty(gd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"};return gd.default=e,gd}var GL=WL();const XL=Wt(GL);function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_b.apply(this,arguments)}const kL=(e,t)=>c.createElement(Zt,_b({},e,{ref:t,icon:XL})),YL=c.forwardRef(kL);var hd={},oE;function KL(){if(oE)return hd;oE=1,Object.defineProperty(hd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};return hd.default=e,hd}var QL=KL();const ZL=Wt(QL);function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Pb.apply(this,arguments)}const JL=(e,t)=>c.createElement(Zt,Pb({},e,{ref:t,icon:ZL})),e9=c.forwardRef(JL);var bd={},rE;function t9(){if(rE)return bd;rE=1,Object.defineProperty(bd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"};return bd.default=e,bd}var n9=t9();const o9=Wt(n9);function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},jb.apply(this,arguments)}const r9=(e,t)=>c.createElement(Zt,jb({},e,{ref:t,icon:o9})),nR=c.forwardRef(r9);var yd={},aE;function a9(){if(aE)return yd;aE=1,Object.defineProperty(yd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};return yd.default=e,yd}var i9=a9();const s9=Wt(i9);function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Hb.apply(this,arguments)}const l9=(e,t)=>c.createElement(Zt,Hb({},e,{ref:t,icon:s9})),Y0=c.forwardRef(l9);var vd={},iE;function c9(){if(iE)return vd;iE=1,Object.defineProperty(vd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return vd.default=e,vd}var u9=c9();const d9=Wt(u9);function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Db.apply(this,arguments)}const f9=(e,t)=>c.createElement(Zt,Db({},e,{ref:t,icon:d9})),oR=c.forwardRef(f9);var xd={},sE;function m9(){if(sE)return xd;sE=1,Object.defineProperty(xd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"};return xd.default=e,xd}var p9=m9();const g9=Wt(p9);function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Lb.apply(this,arguments)}const h9=(e,t)=>c.createElement(Zt,Lb({},e,{ref:t,icon:g9})),rR=c.forwardRef(h9);var Sd={},lE;function b9(){if(lE)return Sd;lE=1,Object.defineProperty(Sd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};return Sd.default=e,Sd}var y9=b9();const v9=Wt(y9);function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Vb.apply(this,arguments)}const x9=(e,t)=>c.createElement(Zt,Vb({},e,{ref:t,icon:v9})),S9=c.forwardRef(x9);var Cd={},cE;function C9(){if(cE)return Cd;cE=1,Object.defineProperty(Cd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};return Cd.default=e,Cd}var $9=C9();const E9=Wt($9);function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Fb.apply(this,arguments)}const w9=(e,t)=>c.createElement(Zt,Fb({},e,{ref:t,icon:E9})),N9=c.forwardRef(w9);var $d={},uE;function R9(){if(uE)return $d;uE=1,Object.defineProperty($d,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"};return $d.default=e,$d}var M9=R9();const T9=Wt(M9);function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},qb.apply(this,arguments)}const O9=(e,t)=>c.createElement(Zt,qb({},e,{ref:t,icon:T9})),aR=c.forwardRef(O9);var Ed={},dE;function z9(){if(dE)return Ed;dE=1,Object.defineProperty(Ed,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};return Ed.default=e,Ed}var A9=z9();const I9=Wt(A9);function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ub.apply(this,arguments)}const B9=(e,t)=>c.createElement(Zt,Ub({},e,{ref:t,icon:I9})),_9=c.forwardRef(B9);var wd={},fE;function P9(){if(fE)return wd;fE=1,Object.defineProperty(wd,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};return wd.default=e,wd}var j9=P9();const H9=Wt(j9);function Wb(){return Wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Wb.apply(this,arguments)}const D9=(e,t)=>c.createElement(Zt,Wb({},e,{ref:t,icon:H9})),L9=c.forwardRef(D9),V9=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,F9={USE_PROFILES:{html:!0},FORBID_TAGS:["style","iframe","object","embed","form","input","button"],FORBID_ATTR:["style"],ALLOWED_URI_REGEXP:V9},q9=/<!--\s*comet-native:acceptance-evidence:start\s*-->\s*([\s\S]*?)\s*<!--\s*comet-native:acceptance-evidence:end\s*-->/gu;function eo(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function U9(){const e=new Map;return{slug(t){let o=String(t??"").toLowerCase().replace(/[^\w\u4e00-\u9fa5\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");o||(o="heading");const r=e.get(o)??0;return e.set(o,r+1),r===0?o:`${o}-${r}`}}}async function jr(e){const t=(await ci(async()=>{const{default:r}=await import("./purify.es-VaSPOPhr.js");return{default:r}},[])).default;let o=t;if(typeof window>"u"||!window.document){const{JSDOM:r}=await ci(async()=>{const{JSDOM:s}=await import("jsdom");return{JSDOM:s}},[]);o=t(new r("").window)}return o.sanitize(String(e??""),F9)}function K0(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Q0(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function iR(e){return e==null?"":String(e)}function sR(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function W9(e){return e.includes("/check-receipts/")?"自动化检查回执":e.includes("/manual-evidence/")?"人工验证回执":"证据文件"}function G9(e){if(!Array.isArray(e)||!e.every(K0))return null;const t=e.length,o=e.filter(({status:f})=>f==="passed").length,r=e.filter(({status:f})=>f==="failed").length,s=new Set(e.flatMap(({evidence_refs:f})=>Array.isArray(f)?f.filter(p=>typeof p=="string"&&p.trim()):[])),l=r>0?"有未通过的验收项,需要继续处理。":"全部验收项已通过。",d=[...s].map(f=>`<li><span>${W9(f)}</span><code>${eo(f)}</code></li>`).join("");return['<section class="acceptance-evidence-summary" aria-label="验收证据摘要">',`<div class="acceptance-evidence-stat"><strong>${t}</strong><span>验收项</span></div>`,`<div class="acceptance-evidence-stat acceptance-evidence-stat-pass"><strong>${o}</strong><span>已通过</span></div>`,`<div class="acceptance-evidence-stat acceptance-evidence-stat-failed"><strong>${r}</strong><span>需关注</span></div>`,`<div class="acceptance-evidence-stat"><strong>${s.size}</strong><span>证据引用</span></div>`,"</section>",`<p class="acceptance-evidence-note">${l} 原始证据已保留在验证文件中。</p>`,d?`<section class="acceptance-evidence-references"><h3>引用证据</h3><ul>${d}</ul></section>`:""].join("")}function X9(e){return String(e??"").replace(q9,(t,o)=>{try{return G9(JSON.parse(o))??t}catch{return t}})}function k9(e,{className:t="yaml-kv-table"}={}){const o=e.map(([r,s])=>{const l=Q0(s)?iR(s):sR(s);return`<tr><th scope="row">${eo(r)}</th><td>${eo(l)}</td></tr>`}).join("");return[`<table class="${eo(t)}">`,'<thead><tr><th scope="col">字段</th><th scope="col">值</th></tr></thead>',`<tbody>${o}</tbody>`,"</table>"].join("")}function lR(e){if(!Array.isArray(e)||e.length===0||!e.every(K0))return!1;const t=Object.keys(e[0]).sort().join("\0");return e.every(o=>Object.keys(o).sort().join("\0")===t)}function cR(e,{className:t="json-array-table"}={}){const o=Object.keys(e[0]),r=o.map(l=>`<th scope="col">${eo(l)}</th>`).join(""),s=e.map(l=>`<tr>${o.map(f=>{const p=l[f],m=Q0(p)?iR(p):sR(p);return`<td>${eo(m)}</td>`}).join("")}</tr>`).join("");return[`<table class="${eo(t)}">`,`<thead><tr>${r}</tr></thead>`,`<tbody>${s}</tbody>`,"</table>"].join("")}function uR(e){const t=[],o=[];for(const[s,l]of Object.entries(e)){if(Q0(l)){t.push([s,l]);continue}if(lR(l)){o.push(`<h3 id="${eo(s)}">${eo(s)}</h3>${cR(l)}`);continue}t.push([s,l])}const r=[];return t.length>0&&r.push(k9(t)),r.push(...o),r.join(`
244
+ `)||"<p>这个产物是空文件。</p>"}async function mE(e){const t=String(e??"");if(!t.trim())return jr("<p>这个产物是空文件。</p>");try{const{parse:o}=await ci(async()=>{const{parse:s}=await import("./index-DlSYK56b.js");return{parse:s}},[]),r=o(t);return r==null?jr("<p>这个产物是空文件。</p>"):typeof r!="object"||Array.isArray(r)?ac(["```yaml",t.replace(/\n$/,""),"```"].join(`
245
+ `)):jr(uR(r))}catch{return ac(["```yaml",t.replace(/\n$/,""),"```"].join(`
246
+ `))}}async function pE(e){const t=String(e??"");if(!t.trim())return jr("<p>这个产物是空文件。</p>");try{const o=JSON.parse(t);return o===null?jr("<p>这个产物是空文件。</p>"):lR(o)?jr(cR(o)):K0(o)?jr(uR(o)):ac(["```json",JSON.stringify(o,null,2),"```"].join(`
247
+ `))}catch{return ac(["```json",t.replace(/\n$/,""),"```"].join(`
248
+ `))}}async function ac(e){try{const{Marked:t}=await ci(async()=>{const{Marked:f}=await import("./marked.esm-DECB3bxB.js");return{Marked:f}},[]);let o=null;try{o=(await ci(async()=>{const{default:f}=await import("./index-icxk8_BP.js");return{default:f}},[])).default}catch{}const r=U9(),s=new t;s.use({renderer:{heading({text:f,depth:p,tokens:m}){const h=r.slug(f),b=m&&this.parser?.parseInline?this.parser.parseInline(m):eo(f);return`<h${p} id="${eo(h)}">${b}</h${p}>`},code({text:f,lang:p}){if(p==="mermaid")return`<div class="mermaid">${eo(f)}</div>`;if(o){const m=p&&o.getLanguage(p)?p:"plaintext",h=o.highlight(f,{language:m}).value;return`<pre><code class="hljs language-${eo(m)}">${h}</code></pre>`}return`<pre><code>${eo(f)}</code></pre>`}}});const l=s.parse(X9(e)),d=typeof l=="string"?l:String(l);return jr(d)}catch{return jr(`<pre>${eo(e)}</pre>`)}}function Y9(e){const t=e.querySelectorAll("h1, h2, h3"),o=[];return t.forEach(r=>{const s=r.id,l=r.textContent??"",d=parseInt(r.tagName[1],10);s&&l&&o.push({id:s,text:l,depth:d})}),o}async function K9(e){const t=e.querySelectorAll("div.mermaid");if(t.length!==0)try{const o=(await ci(async()=>{const{default:r}=await import("./mermaid.core-g3J6BACc.js").then(s=>s.bl);return{default:r}},__vite__mapDeps([0,1]))).default;o.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif'}),await o.run({nodes:Array.from(t)})}catch{}}function ds(e,t=800,o=e){const[r,s]=c.useState(0);return c.useEffect(()=>{if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){s(e);return}const d=0,f=e,p=performance.now();let m=0;s(0);const h=b=>{const v=Math.min(1,(b-p)/t),x=1-Math.pow(1-v,3);s(d+f*x),v<1&&(m=requestAnimationFrame(h))};return m=requestAnimationFrame(h),()=>{cancelAnimationFrame(m)}},[t,o,e]),r}const Hd=[["shape","Shape"],["build","Build"],["verify","Verify"],["archive","Archive"]],Z0=Object.fromEntries(Hd),dR={missing:"尚无验证",invalid:"验证无效",stale:"验证已过期",complete:"验证完整",partial:"部分验证",unknown:"状态未知"},Q9={continue:"可继续","await-user":"等待用户",blocked:"已阻塞",done:"已完成"},Z9={"work-phase":"继续当前阶段","advance-phase":"推进阶段",repair:"修复后重试",archive:"准备归档",none:"无需动作"},J9={"definite-conflict":"明确冲突","possible-overlap":"可能重叠"};function e7({native:e,git:t,query:o,onPreview:r,onCopyChangeName:s}){const[l,d]=c.useState("active"),f=c.useMemo(()=>{const b=e?.changes??[],v=o.trim().toLowerCase();return b.filter(x=>{const S=l==="all"||l==="active"&&x.status==="active"||x.status===l,C=!v||x.name.toLowerCase().includes(v);return S&&C})},[e,o,l]),[p,m]=c.useState(null);c.useEffect(()=>{m(b=>f.some(v=>v.name===b)?b:f[0]?.name??null)},[f]);const h=f.find(b=>b.name===p)??f[0]??null;return O.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[O.jsx(gE,{title:"项目概览",hint:e?`Native 状态生成于 ${Gb(e.generatedAt)}`:"当前项目尚无 Native 状态"}),O.jsx(n7,{change:h}),O.jsx(o7,{native:e}),O.jsx(gE,{title:"Native 变更工作区",hint:"查看轻量状态、验证结果与冲突摘要"}),!e||e.changes.length===0?O.jsx(m7,{}):O.jsxs("div",{className:"dashboard-workspace-region grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]",children:[O.jsx(a7,{changes:f,selectedName:h?.name??null,tab:l,onTab:d,onSelect:m}),h?O.jsxs(O.Fragment,{children:[O.jsx(i7,{change:h,onPreview:r,onCopyChangeName:s}),O.jsx(f7,{change:h,git:t})]}):O.jsx(t7,{native:e,tab:l,query:o,onTab:d})]})]})}function t7({native:e,tab:t,query:o,onTab:r}){const s=(e?.changes??[]).some(p=>p.status==="archived"),l=t==="active"&&!o.trim()&&s,d=l?"当前没有活跃的 Native change":"没有匹配的 Native change",f=l?"当前项目的 Native 工作已全部归档。你可以查看历史验证记录与变更范围。":"调整搜索条件或切换筛选,即可继续查看项目中的 Native change。";return O.jsx("section",{className:"native-workspace-empty flex min-h-[360px] items-center justify-center rounded-lg bg-bg p-8 text-center shadow-raised xl:col-span-1 2xl:col-span-2",children:O.jsxs("div",{className:"max-w-sm",children:[O.jsx("span",{className:"mx-auto grid size-12 place-items-center rounded-2xl bg-accent-softer text-xl text-accent",children:"◇"}),O.jsx("h3",{className:"mt-5 text-lg font-semibold tracking-tight",children:d}),O.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:f}),l&&O.jsx(Mo,{className:"mt-5",type:"primary",onClick:()=>r("archived"),children:"查看已归档变更"})]})})}function n7({change:e}){return O.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[O.jsxs("div",{className:"dashboard-priority-title",children:[O.jsx(Y0,{"aria-hidden":"true"}),O.jsx("span",{children:"下一步建议"})]}),O.jsx("p",{children:e?e.status==="archived"?"当前变更已经归档,可继续查看验证证据与历史进展。":e.progress?.nextAction??J0(e.continuation):"当前没有可展示的 Native change。"})]})}function gE({title:e,hint:t}){return O.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[O.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),O.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function o7({native:e}){const[t,o]=c.useState(0),r=e?.changes??[],s=r.filter(h=>h.phase!=="archive").length,l=r.filter(h=>h.archiveReady).length,d=r.filter(h=>h.continuation?.requiresUserDecision).length,f=r.filter(h=>["invalid","stale","partial"].includes(h.verificationFreshness)).length,p=e?e.conflicts.definiteConflict+e.conflicts.possibleOverlap:0,m=[["活跃变更",s,"当前 Native workflow",s?"进行中":"清零",rR],["可归档变更",l,"验证证据已就绪",l?"就绪":"暂无",oR],["等待用户",d,"需要明确决策",d?"待确认":"无需",L9],["验证需关注",f,"过期、无效或部分证据",f?"复核":"健康",aR],["关联冲突",p,"Native change 关系",p?"关注":"无冲突",YL]];return O.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:m.map(([h,b,v,x,S],C)=>O.jsx(r7,{label:h,value:b,note:v,tag:x,icon:S,tone:`dashboard-summary-tone-${C+1}`,selected:t===C,onClick:()=>o(C)},h))})}function r7({label:e,value:t,note:o,tag:r,icon:s,tone:l,selected:d,onClick:f}){const p=ds(t,850,t);return O.jsxs("button",{type:"button","aria-pressed":d,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${l} ${d?"dashboard-summary-primary":""}`,onClick:f,children:[O.jsxs("div",{className:"dashboard-summary-card-top",children:[O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),O.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(p)})]}),O.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:O.jsx(s,{})})]}),O.jsx("span",{className:"dashboard-summary-status",children:r}),O.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:o})]})}function a7({changes:e,selectedName:t,tab:o,onTab:r,onSelect:s}){return O.jsxs("aside",{className:"rounded-lg bg-bg shadow-raised",children:[O.jsxs("div",{className:"flex items-center border-b border-border-soft px-5 py-4",children:[O.jsx("h3",{className:"font-semibold",children:"Changes Explorer"}),O.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[e.length," 个"]})]}),O.jsxs("div",{className:"p-4",children:[O.jsx("div",{className:"mb-4 inline-flex rounded-xl bg-surface p-1",children:[["active","活跃"],["archived","已归档"],["all","全部"]].map(([l,d])=>O.jsx("button",{type:"button",className:`rounded-lg px-3 py-1.5 text-sm ${o===l?"bg-bg text-fg shadow-sm":"text-muted"}`,onClick:()=>r(l),children:d},l))}),O.jsx("div",{className:"space-y-2",children:e.length===0?O.jsx("div",{className:"py-8 text-center text-sm text-muted",children:o==="active"?"暂无活跃变更":o==="archived"?"暂无已归档变更":"没有匹配的 Native change"}):e.map(l=>O.jsx("button",{type:"button",className:`w-full rounded-xl border p-3 text-left transition-all duration-200 ${l.name===t?"border-accent/30 bg-accent-softer shadow-sm":"border-transparent hover:border-border-soft hover:bg-surface"}`,onClick:()=>s(l.name),children:O.jsxs("div",{className:"flex items-start gap-2",children:[O.jsx("span",{className:"mt-1 text-xs text-meta",children:"◇"}),O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("div",{className:"truncate text-[13px] font-semibold",children:l.name}),O.jsx("div",{className:"mt-1 text-xs text-meta",children:Z0[l.phase]??"状态异常"})]}),O.jsx(Cc,{tone:g7(l.verificationFreshness),children:dR[l.verificationFreshness]??"状态未知"})]})},l.name))})]})]})}function i7({change:e,onPreview:t,onCopyChangeName:o}){const r=e.findings.codes,[s,l]=c.useState(!1);return c.useEffect(()=>l(!1),[e.name]),O.jsxs("section",{className:"min-w-0 rounded-lg bg-bg shadow-raised",children:[O.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("h3",{className:"truncate text-base font-semibold",children:e.name}),O.jsx(Ur,{title:"复制 Change 名称",children:O.jsx(Mo,{type:"text",size:"small",icon:s?O.jsx(Ms,{}):O.jsx(tR,{}),"aria-label":s?"已复制 Change 名称":"复制 Change 名称",onClick:()=>o?.(e.name)?.then(()=>{l(!0),window.setTimeout(()=>l(!1),1600)})})})]}),O.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[O.jsx("span",{children:"native"}),O.jsx("span",{children:e.status==="archived"?`归档于 ${e.archivedAt??"未知时间"}`:e.selected?"当前选中变更":"并行变更"}),O.jsx("span",{children:h7(e.approval)})]})]}),O.jsx(Cc,{tone:p7(e.phase),children:Z0[e.phase]??"状态异常"})]}),O.jsxs("div",{className:"space-y-5 p-5",children:[O.jsx(d7,{phase:e.phase,archived:e.status==="archived"}),O.jsx(u7,{artifacts:e.artifacts,onPreview:t}),O.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[O.jsx(s7,{change:e}),O.jsx(l7,{change:e})]}),O.jsx(c7,{change:e}),r.length>0&&O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"结构化发现"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[r.length," 项"]})]}),O.jsx("ul",{className:"space-y-2",children:r.map(d=>O.jsx("li",{className:"break-all rounded-lg bg-surface px-3 py-2.5 font-mono text-xs leading-relaxed text-fg-2",children:d},d))})]})]})]})}function s7({change:e}){const t=e.progress,o=!!t?.checkpointAt;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"最近进展"}),O.jsx(Cc,{tone:o?"info":"neutral",children:o?"已记录 Checkpoint":"尚无 Checkpoint"})]}),O.jsx("p",{className:"min-h-10 text-sm leading-relaxed text-fg-2",children:t?.summary??"当前阶段还没有持久化进展摘要。"}),O.jsxs("div",{className:"mt-4 space-y-3 border-t border-border-soft pt-4 text-xs",children:[O.jsx(hE,{label:"创建 change",value:Gb(t?.createdAt)}),O.jsx(hE,{label:"最近 checkpoint",value:Gb(t?.checkpointAt),active:o})]}),O.jsxs("div",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3",children:[O.jsx("div",{className:"text-[11px] font-medium text-meta",children:"下一步"}),O.jsx("div",{className:"mt-1 text-xs font-medium leading-relaxed text-fg-2",children:e.status==="archived"?"已完成 · 无需后续操作":t?.nextAction??J0(e.continuation)})]})]})}function hE({label:e,value:t,active:o=!0}){return O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("span",{className:`size-2 shrink-0 rounded-full ${o?"bg-accent":"border border-border"}`}),O.jsx("span",{className:"text-muted",children:e}),O.jsx("span",{className:"ml-auto text-right font-mono text-fg-2",children:t})]})}function l7({change:e}){const t=e.specs,o=t?.capabilities??[],r=e.implementation;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"变更范围"}),O.jsxs("span",{className:"rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:[t?.total??0," 个 capability"]})]}),O.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[O.jsx(Tg,{label:"新增",value:t?.create??0,tone:"info"}),O.jsx(Tg,{label:"替换",value:t?.replace??0,tone:"warn"}),O.jsx(Tg,{label:"删除",value:t?.remove??0,tone:"danger"})]}),O.jsx("div",{className:"mt-4 space-y-2",children:o.length===0?O.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚未声明 Spec 变更。"}):o.map(s=>O.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border-soft px-3 py-2",children:[O.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-fg-2",children:s.capability}),O.jsx("span",{className:"text-[11px] text-meta",children:b7(s.operation)})]},`${s.capability}-${s.operation}`))}),r&&O.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-x-4 gap-y-2 border-t border-border-soft pt-4 text-xs",children:[O.jsx(ur,{label:"实现变更",value:`${r.changeCount} 项`}),O.jsx(ur,{label:"声明产物",value:`${r.declaredArtifactCount} 项`}),O.jsx(ur,{label:"未归属",value:`${r.unattributedCount} 项`}),O.jsx(ur,{label:"未解决范围",value:`${r.unresolvedCount} 项`})]})]})}function Tg({label:e,value:t,tone:o}){const r={info:"bg-info-soft text-info",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger"}[o];return O.jsxs("div",{className:"rounded-lg bg-surface-warm px-2 py-3",children:[O.jsx("div",{className:`text-lg font-bold tabular-nums ${t?r:"text-fg-2"}`,children:t}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function c7({change:e}){const t=e.acceptance,o=t?t.evidenced+t.skipped:0,r=t?.total?Math.round(o/t.total*100):0;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"验收覆盖"}),O.jsx(Cc,{tone:t&&t.missing===0?"ok":"warn",children:t?`${r}% 已处理`:"尚无验收投影"}),O.jsx("span",{className:"ml-auto text-xs text-meta",children:dR[e.verificationFreshness]??"状态未知"})]}),O.jsx("div",{className:"mt-4 h-2 overflow-hidden rounded-full bg-surface",children:O.jsx("span",{className:`block h-full rounded-full transition-[width] ${t?.missing===0?"bg-success":"bg-accent"}`,style:{width:`${r}%`}})}),O.jsxs("div",{className:"mt-4 grid grid-cols-4 gap-3 text-center",children:[O.jsx(Nd,{label:"总计",value:t?.total??0}),O.jsx(Nd,{label:"有证据",value:t?.evidenced??0}),O.jsx(Nd,{label:"已跳过",value:t?.skipped??0}),O.jsx(Nd,{label:"待补充",value:t?.missing??0})]})]})}function Nd({label:e,value:t}){return O.jsxs("div",{children:[O.jsx("div",{className:"text-xl font-bold tabular-nums",children:t}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:e})]})}function u7({artifacts:e,onPreview:t}){const o=e??[],r=o.filter(s=>s.exists).length;return O.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[r,"/",o.length]})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[O.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:"Comet Native"}),O.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),O.jsxs("div",{className:"space-y-px",children:[o.map(s=>O.jsxs("button",{type:"button",className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${s.exists?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!s.exists,onClick:()=>t({key:s.key,name:s.label,preview:s}),children:[O.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:O.jsx("span",{className:`h-2 w-2 rounded-full ${s.exists?"bg-accent":"border border-border"}`})}),O.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:s.key}),O.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:s.exists?s.label:"未生成"})]},s.key)),o.length===0&&O.jsx("div",{className:"py-6 text-center text-sm text-muted",children:"暂无可预览产物"})]})]})]})}function d7({phase:e,archived:t}){const o=Math.max(0,Hd.findIndex(([r])=>r===e));return O.jsxs("article",{children:[O.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[O.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),O.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:t?"已归档":`当前 ${Z0[e]??"状态异常"}`})]}),O.jsx("div",{className:"flex",children:Hd.map(([r,s],l)=>{const d=t||l<o?"done":l===o?"current":"pending";return O.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[l>0&&O.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${l<=o?"bg-accent":"bg-border"}`}),l<Hd.length-1&&O.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${l<o?"bg-accent":"bg-border"}`}),O.jsx("span",{"aria-label":`${s} ${d==="done"?"已完成":d==="current"?"当前阶段":"待进行"}`,className:`relative z-10 grid size-8 place-items-center rounded-full border text-sm font-bold ${d==="done"?"border-accent bg-accent text-white":d==="current"?"border-accent bg-bg text-accent":"border-border bg-bg text-fg-2"}`,children:d==="done"?"✓":l+1}),O.jsx("span",{className:`text-[13px] font-semibold ${d==="pending"?"text-fg-2":"text-accent"}`,children:s})]},r)})})]})}function f7({change:e,git:t}){const o=e.conflicts.peers,r=e.continuation;return O.jsxs("aside",{className:"space-y-5 xl:col-start-2 2xl:col-start-auto",children:[O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"继续与归档"}),O.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[O.jsx(ur,{label:"继续状态",value:e.status==="archived"?"已完成 · 已归档":J0(r)}),O.jsx(ur,{label:"用户决策",value:r?.requiresUserDecision?"需要":"不需要"}),O.jsx(ur,{label:"归档预检",value:e.archiveReady?"已就绪":"尚未就绪"})]})]}),O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsxs("div",{className:"flex items-center justify-between gap-3",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"Repair 状态"}),O.jsx(Cc,{tone:v7(e.repair),children:y7(e.repair)})]}),O.jsx("p",{className:"mt-3 text-xs leading-relaxed text-muted",children:e.repair?e.repair.overrideRecorded?"已记录一次用户覆盖决定;后续重复失败仍会停止。":"检测到重复失败,Native 已停止自动修复。":"当前没有需要人工介入的重复失败。"})]}),O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsxs("div",{className:"flex items-center",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"关联冲突"}),O.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[o.length," 个"]})]}),o.length===0?O.jsx("p",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"未发现冲突变更。"}):O.jsx("ul",{className:"mt-4 space-y-2",children:o.map(s=>O.jsxs("li",{className:"rounded-xl border border-border-soft px-3 py-3",children:[O.jsx("div",{className:"break-all font-mono text-xs text-fg-2",children:s.change}),O.jsx("div",{className:"mt-1 text-[11px] text-meta",children:J9[s.classification]??"可能重叠"})]},`${s.change}-${s.classification}`))})]}),t&&O.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[O.jsx("h3",{className:"text-sm font-semibold",children:"Git 摘要"}),O.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[O.jsx(ur,{label:"分支",value:t.branch??"—"}),O.jsx(ur,{label:"HEAD",value:t.head??"—"}),O.jsx(ur,{label:"未提交文件",value:`${t.dirtyFiles??0} 个`})]})]})]})}function ur({label:e,value:t}){return O.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border-soft pb-3 last:border-0 last:pb-0",children:[O.jsx("dt",{className:"text-muted",children:e}),O.jsx("dd",{className:"text-right font-medium text-fg-2",children:t})]})}function Cc({tone:e="neutral",children:t}){const o={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[e]??"bg-surface text-fg-2";return O.jsx("span",{className:`inline-flex max-w-full items-center rounded-full px-2.5 py-1 text-xs font-semibold leading-tight ${o}`,children:O.jsx("span",{className:"break-words",children:t})})}function m7(){return O.jsxs("div",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[O.jsx("div",{className:"text-lg font-semibold",children:"当前没有 Native change"}),O.jsx("p",{className:"mt-2 text-sm text-muted",children:"Native 状态出现后会在这里展示。"})]})}function p7(e){return e==="archive"?"ok":e==="invalid"?"danger":e==="verify"?"warn":"info"}function g7(e){return e==="complete"?"ok":e==="partial"||e==="stale"?"warn":e==="invalid"?"danger":"neutral"}function J0(e){if(!e)return"状态未知";const t=Q9[e.disposition]??"状态未知",o=Z9[e.action]??"无需动作";return e.requiresUserDecision?`${t} · 需要用户决定`:`${t} · ${o}`}function h7(e){return e==="confirmed"?"需求已确认":e==="implicit"?"需求已隐式确认":"需求待确认"}function b7(e){return e==="create"?"新增":e==="replace"?"替换":e==="remove"?"删除":"未知操作"}function y7(e){return e?e.disposition==="hard-stop"?"已硬停止":"等待人工处理":"正常"}function v7(e){return e?e.disposition==="hard-stop"?"danger":"warn":"ok"}function Gb(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(t)}const x7=3e4,S7="'Segoe UI Variable', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif",C7="Bahnschrift, 'Cascadia Mono', Consolas, monospace";function $7(){const[e,t]=c.useState(()=>{const r=localStorage.getItem("comet-theme"),s=r==="dark"||r==="light"?r:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return document.documentElement.setAttribute("data-theme",s),s});c.useLayoutEffect(()=>{const r=document.documentElement;r.classList.add("theme-switching"),r.setAttribute("data-theme",e),localStorage.setItem("comet-theme",e);const s=window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>r.classList.remove("theme-switching"))});return()=>window.cancelAnimationFrame(s)},[e]);const o=c.useCallback(()=>t(r=>r==="dark"?"light":"dark"),[]);return{theme:e,toggle:o}}const Xb=[["open","启动"],["design","设计"],["build","构建"],["verify","验证"],["archive","归档"]],ey={pass:"通过",fail:"验证失败",pending:"待验证",unknown:"未知"},fR={pass:"ok",fail:"danger",pending:"warn",unknown:"neutral"};function E7(){const{theme:e,toggle:t}=$7();return O.jsx(Aa,{theme:{token:{colorPrimary:e==="dark"?"#7fa8ff":"#255ed8",colorBgContainer:e==="dark"?"#151923":"#ffffff",colorBgElevated:e==="dark"?"#1a202b":"#ffffff",colorBgLayout:e==="dark"?"#0e1420":"#eef1f5",colorText:e==="dark"?"#edf2fb":"#101827",colorTextSecondary:e==="dark"?"#aab5c8":"#5f6979",colorBorder:e==="dark"?"#293345":"#e3e8ef",colorSplit:e==="dark"?"#293345":"#edf0f4",colorFillAlter:e==="dark"?"#182131":"#f6f8fb",colorInfoBg:e==="dark"?"#1a202b":"#e6f4ff",colorInfoBorder:e==="dark"?"#34597f":"#91caff",borderRadius:12,fontFamily:S7,fontFamilyCode:C7,fontSize:14,fontSizeHeading2:26,fontSizeHeading3:18,fontSizeHeading4:15}},children:O.jsx(N0,{children:O.jsx(w7,{theme:e,onToggleTheme:t})})})}function w7({theme:e,onToggleTheme:t}){const[o,r]=c.useState(null),[s,l]=c.useState(null),[d,f]=c.useState("classic"),[p,m]=c.useState([]),[h,b]=c.useState(null),[v,x]=c.useState("active"),[S,C]=c.useState(""),[R,w]=c.useState(!1),[N,$]=c.useState(!1),[E,T]=c.useState(null),z=c.useRef(null),{message:A}=N0.useApp(),I=c.useCallback((q,Q="success")=>A[Q](q),[A]),j=new URLSearchParams(window.location.search).has("demo"),L=c.useCallback(async(q=!1)=>{z.current?.abort();const Q=new AbortController;z.current=Q,q&&w(!0);try{const F=j?await U7():await q7(s,Q.signal);if(z.current!==Q||Q.signal.aborted)return;r(F),b(D=>G7(F,D)),q&&I("状态已刷新")}catch(F){if(Q.signal.aborted)return;I(`刷新失败:${F.message}`,"error")}finally{z.current===Q&&(z.current=null,q&&w(!1))}},[s,j]);c.useEffect(()=>{L(!1);const q=window.setInterval(()=>{L(!1)},x7);return()=>window.clearInterval(q)},[L]),c.useEffect(()=>()=>z.current?.abort(),[]),c.useEffect(()=>{if(j)return;let q=!1;return F7().then(Q=>{if(q)return;m(Q.projects??[]);const F=(Q.projects??[]).filter(X=>X.availability==="available"),D=localStorage.getItem("comet-dashboard-project"),G=F.find(X=>X.id===D)?.id??Q.currentProjectId;l(X=>X??G)}).catch(Q=>I(`项目列表加载失败:${Q.message}`,"error")),()=>{q=!0}},[j]);const B=c.useMemo(()=>X7(o,h),[o,h]),H=c.useMemo(()=>k7(o,v,S),[o,v,S]);return O.jsxs("main",{className:"dashboard-workbench min-h-screen bg-surface text-fg antialiased lg:grid lg:grid-cols-[var(--rail-w)_1fr]",children:[O.jsx(Q7,{open:N,workflow:d,onWorkflow:f,onClose:()=>$(!1)}),N&&O.jsx("button",{className:"fixed inset-0 z-40 bg-black/30 lg:hidden","aria-label":"关闭导航",onClick:()=>$(!1)}),O.jsxs("section",{className:"min-w-0",children:[O.jsx(N7,{project:o?.project,projects:p,activeProjectId:s,onProjectSelect:q=>{localStorage.setItem("comet-dashboard-project",q),l(q),b(null),C(""),$(!1)},loading:R,query:S,onQuery:C,onMenu:()=>$(!0),onRefresh:()=>L(!0),theme:e,onToggleTheme:t}),O.jsx("div",{className:"dashboard-content-shell",children:O.jsx("div",{className:"dashboard-content-inner",children:o?d==="native"?O.jsx(e7,{native:o.native,git:o.git,query:S,onPreview:T,onCopyChangeName:q=>pR(q).then(()=>I("Change 名称已复制")).catch(()=>I("复制 Change 名称失败","error"))}):O.jsx(R7,{snapshot:o,visible:H,selected:B,selectedId:h,tab:v,onTab:x,onSelect:b,onPreview:T}):O.jsx(V7,{})})})]}),O.jsx(j7,{artifact:E,onClose:()=>T(null)})]})}function N7({project:e,loading:t,query:o,onQuery:r,projects:s,activeProjectId:l,onProjectSelect:d,onMenu:f,onRefresh:p,theme:m,onToggleTheme:h}){return O.jsxs("header",{className:"comet-workbench-header sticky top-0 z-30 border-b border-border-soft bg-surface/90 backdrop-blur-xl",children:[O.jsx(Mo,{className:"comet-header-menu lg:hidden",type:"text",icon:O.jsx(S9,{}),onClick:f,"aria-label":"打开导航"}),O.jsx("div",{className:"comet-header-context",children:O.jsx(Ts,{className:"comet-project-select",value:l??void 0,placeholder:e?.name??"选择项目",showSearch:!0,optionFilterProp:"searchText",optionLabelProp:"selectedLabel",classNames:{popup:{root:"comet-project-select-dropdown"}},onChange:d,options:s.map(b=>({value:b.id,disabled:b.availability!=="available",searchText:`${b.name} ${b.path}`,selectedLabel:b.name,label:O.jsxs("span",{className:"comet-project-option",children:[O.jsx("strong",{className:"comet-project-option-name",children:b.name}),O.jsx("small",{className:"comet-project-option-path",children:b.path})]})}))})}),O.jsx("div",{className:"comet-header-search",children:O.jsx(As,{value:o,onChange:b=>r(b.target.value),prefix:O.jsx(A0,{className:"text-meta"}),placeholder:"搜索变更、产物或文件…",allowClear:!0})}),O.jsxs("div",{className:"comet-header-actions",children:[O.jsx(Ur,{title:"立即刷新",children:O.jsx(Mo,{className:"comet-refresh-button",icon:O.jsx(uL,{}),loading:t,onClick:p,"aria-label":"立即刷新"})}),O.jsx(Ur,{title:m==="dark"?"切换到亮色模式":"切换到暗色模式",children:O.jsx(Mo,{className:"hidden sm:inline-flex",type:"text",icon:m==="dark"?O.jsx(_9,{}):O.jsx(N9,{}),onClick:h,"aria-label":m==="dark"?"切换到亮色模式":"切换到暗色模式"})})]})]})}function R7({snapshot:e,visible:t,selected:o,selectedId:r,tab:s,onTab:l,onSelect:d,onPreview:f}){const p=e.changes.active.length+e.changes.archived.length>0,m=e.classicError&&p;return O.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[O.jsx(bE,{title:"项目概览",hint:`生成于 ${ny(e.project.generatedAt)}`}),O.jsx(M7,{command:o?.next?.command,description:o?.next?.description}),O.jsx(Z7,{snapshot:e}),O.jsx(bE,{title:"变更工作区",hint:"查看文件产物与项目进度"}),e.classicError&&!p?O.jsx(D7,{error:e.classicError}):p?O.jsxs(O.Fragment,{children:[m?O.jsx(H7,{error:e.classicError}):null,O.jsxs("div",{className:"dashboard-workspace-region grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]",children:[O.jsx(eV,{visible:t,selectedId:r,tab:s,onTab:l,onSelect:d}),o&&O.jsx(tV,{change:o,onPreview:f}),o&&O.jsx(A7,{change:o,git:e.git,onPreview:f})]})]}):O.jsx(L7,{})]})}function M7({command:e,description:t}){return O.jsxs("section",{className:"dashboard-priority-banner",role:"status","aria-label":"工作流建议",children:[O.jsxs("div",{className:"dashboard-priority-title",children:[O.jsx(Y0,{"aria-hidden":"true"}),O.jsx("span",{children:"下一步建议"})]}),O.jsx("p",{children:e?O.jsxs(O.Fragment,{children:["优先执行 ",O.jsx("code",{children:e}),t?`,${t}`:",完成当前工作流阶段。"]}):"当前变更没有待执行动作,可以继续检查产物与验证结果。"})]})}function bE({title:e,hint:t}){return O.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[O.jsx("h2",{className:"dashboard-section-heading text-[20px] font-semibold leading-[1.3] tracking-[-0.018em]",children:e}),O.jsx("span",{className:"dashboard-section-hint text-[13px] leading-5 text-muted",children:t})]})}function T7({change:e,onPreview:t}){const o=new Map((e.artifactPreviews??[]).map(m=>[m.key,m])),r=e.artifacts?.grouped??[],s=r.length,l=r.filter(m=>m.exists).length,d=r.filter(m=>m.source==="openspec"),f=r.filter(m=>m.source==="superpowers"),p=r.filter(m=>m.source==="comet");return O.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),O.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[l,"/",s]})]}),O.jsxs("div",{className:"space-y-3",children:[O.jsx(Og,{title:"OpenSpec",artifacts:d,previewByKey:o,onPreview:t}),O.jsx(Og,{title:"Superpowers",artifacts:f,previewByKey:o,onPreview:t}),O.jsx(Og,{title:"Comet",artifacts:p,previewByKey:o,onPreview:t})]})]})}function Og({title:e,artifacts:t,previewByKey:o,onPreview:r}){return t.length===0?null:O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[O.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:e}),O.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),O.jsx("div",{className:"space-y-px",children:t.map(s=>{const l=o.get(s.key);return O.jsx(O7,{artifact:s,preview:l,onPreview:r},s.key)})})]})}function O7({artifact:e,preview:t,onPreview:o}){const r=e.exists,s=e.notApplicable,l=r?e.label:s?"无需生成":"未生成";return O.jsxs("button",{className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${r?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!r,onClick:()=>o({key:e.key,name:e.label,preview:t}),children:[O.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:r?O.jsx("span",{className:"h-2 w-2 rounded-full bg-accent"}):s?O.jsx("span",{className:"h-2 w-2 rounded-full border border-border bg-surface"}):O.jsx("span",{className:"h-2 w-2 rounded-full border border-border"})}),O.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:e.key}),O.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:l})]})}function z7({change:e}){const t=e.tasks.total,o=e.tasks.completed,r=Math.max(0,t-o),s=e.status==="archived",l=e.tasks.sections.filter($=>$.status==="done").length,d=e.tasks.sections.length,f=t?Math.round(o/t*100):0,p=ds(f,900,e.id),m=ds(o,900,e.id),h=ds(r,900,e.id),b=ds(l,900,e.id),v=Math.round(h),x=2*Math.PI*54,S=x*(1-p/100),C=r===0&&t>0,R=s||C?"bg-ok-soft text-success":"bg-accent-softer text-fg-2",w=s||C?"bg-success":"bg-accent",N=s?"已归档完成,流程已结束":C?`所有任务已完成,可以进入 ${e.phase==="verify"?"归档":"Verify"}`:`剩余 ${v} 项未完成,完成后进入 ${e.phase==="verify"?"归档":"Verify"}`;return O.jsxs("article",{className:"min-w-0 rounded-xl border border-border-soft bg-bg px-5 py-4",children:[O.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[O.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"任务进度"}),O.jsx("span",{className:`rounded-full px-2 py-0.5 text-[11px] font-medium ${C?"bg-ok-soft text-success":"bg-accent-soft text-accent"}`,children:C?"全部完成":`${v} 项待办`})]}),O.jsx("div",{className:"flex justify-center",children:O.jsxs("div",{className:"relative h-[110px] w-[110px]",children:[O.jsxs("svg",{className:"block size-full -rotate-90",viewBox:"0 0 120 120",role:"img","aria-label":`任务完成度 ${f}%`,children:[O.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"var(--color-border-soft)",strokeWidth:"7"}),O.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:C?"var(--color-success)":"var(--color-accent)",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:S})]}),O.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[O.jsxs("span",{className:"text-[26px] font-bold leading-none tabular-nums",children:[Math.round(p),"%"]}),O.jsx("span",{className:"mt-0.5 text-[10px] text-muted",children:"完成度"})]})]})}),O.jsxs("div",{className:"mt-4 flex items-center justify-center gap-6 text-center",children:[O.jsxs("div",{children:[O.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:Math.round(m)}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"已完成"})]}),O.jsx("div",{className:"h-6 w-px bg-border-soft"}),O.jsxs("div",{children:[O.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:v}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"剩余"})]}),O.jsx("div",{className:"h-6 w-px bg-border-soft"}),O.jsxs("div",{children:[O.jsxs("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:[Math.round(b),"/",d]}),O.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"分组"})]})]}),e.tasks.sections.length>0&&O.jsx("div",{className:"mt-4 space-y-2.5 border-t border-border-soft pt-4",children:e.tasks.sections.map($=>{const E=$.total?Math.round($.completed/$.total*100):0,T=$.status==="done";return O.jsxs("div",{children:[O.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[O.jsx("span",{className:"truncate text-[11px] text-fg-2",children:$.title}),O.jsxs("span",{className:"shrink-0 pl-2 font-mono text-[10px] text-muted",children:[$.completed,"/",$.total]})]}),O.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-surface",children:O.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${T?"bg-success":"bg-accent"}`,style:{width:`${E}%`}})})]},$.title)})}),O.jsxs("div",{className:`mt-4 flex items-center gap-2 rounded-lg px-3 py-2 text-[11px] ${R}`,children:[O.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${w}`}),O.jsx("span",{children:N})]})]})}function A7({change:e,git:t,onPreview:o}){return O.jsxs("aside",{className:"min-h-[480px] space-y-4 xl:col-start-2 2xl:col-start-auto",children:[e.status==="archived"?O.jsx(B7,{change:e}):O.jsx(I7,{change:e}),O.jsx(_7,{change:e}),O.jsx(P7,{git:t})]})}function I7({change:e}){return O.jsxs(Tf,{title:"下一步建议",tag:ty(e.phase),children:[O.jsxs("div",{className:"rounded-xl bg-fg px-4 py-3 font-mono text-[13px] text-bg",children:[O.jsx("span",{className:"text-success",children:"$ "}),e.next?.command??"—"]}),O.jsx("p",{className:"text-sm text-fg-2",children:e.next?.reason??"暂无建议"}),O.jsx("p",{className:"text-[13px] leading-relaxed text-muted",children:e.next?.description??""})]})}function B7({change:e}){return O.jsxs(Tf,{title:"归档摘要",tag:"已归档",children:[O.jsx("div",{className:"break-words rounded-xl bg-accent-soft px-4 py-3 font-mono text-[13px] text-accent",children:e.archive?.archiveName??e.name}),O.jsxs("p",{className:"break-words text-sm text-fg-2",children:["原名:",e.archive?.originalName??e.name," · 归档于:",e.archive?.archivedAt??"—"]}),O.jsxs("p",{className:"break-words text-[13px] leading-relaxed text-muted",children:["归档路径:",e.archive?.archivePath??e.path," · 任务:",e.tasks.completed," /"," ",e.tasks.total]})]})}function _7({change:e}){const t=e.risks??[];return O.jsx(Tf,{title:"风险提示",tag:`${t.length} 项`,children:t.length===0?O.jsx("div",{className:"rounded-xl bg-surface-warm p-3 text-sm text-muted",children:"当前未发现阻塞风险。"}):O.jsx("div",{className:"space-y-2",children:t.map(o=>O.jsxs("div",{className:"rounded-xl border border-border-soft p-3",children:[O.jsxs("div",{className:"flex gap-2 text-sm font-semibold",children:[O.jsx("span",{className:o.level==="error"?"text-danger":o.level==="warning"?"text-warn":"text-meta",children:"●"}),O.jsx("span",{children:o.message})]}),O.jsx("div",{className:"mt-1 font-mono text-xs text-meta",children:o.code})]},`${o.code}-${o.message}`))})})}function P7({git:e}){return O.jsxs(Tf,{title:"Git 快照",tag:`${e.dirtyFiles} 个未提交`,children:[O.jsx(yE,{k:"分支",v:e.branch??"—"}),O.jsx(yE,{k:"HEAD",v:e.head??"—"}),O.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"最近提交"}),O.jsx("ul",{className:"space-y-1",children:e.recentCommits.map(t=>O.jsx("li",{className:"truncate text-sm text-fg-2",children:t},t))}),O.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"未提交文件"}),O.jsx("ul",{className:"space-y-1",children:e.dirtyFileList.slice(0,5).map(t=>O.jsx("li",{className:"break-all font-mono text-xs text-warn",children:t},t))})]})}function Tf({title:e,tag:t,children:o}){return O.jsxs("article",{className:"rounded-lg bg-bg p-5 shadow-card",children:[O.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[O.jsx("h4",{className:"font-semibold",children:e}),t&&O.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:t})]}),O.jsx("div",{className:"space-y-3",children:o})]})}function yE({k:e,v:t}){return O.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[O.jsx("span",{className:"w-16 shrink-0 text-muted",children:e}),O.jsx("span",{className:"min-w-0 truncate font-mono text-[13px]",children:t})]})}function j7({artifact:e,onClose:t}){const[o,r]=c.useState({status:"idle"}),[s,l]=c.useState(!1),[d,f]=c.useState([]),[p,m]=c.useState(""),h=c.useRef(null),b=c.useRef(null);if(c.useEffect(()=>{if(!e){l(!1);return}const x=window.scrollY,S={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,width:document.body.style.width};return document.body.style.position="fixed",document.body.style.top=`-${x}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",()=>{l(!1),document.body.style.position=S.position,document.body.style.top=S.top,document.body.style.left=S.left,document.body.style.right=S.right,document.body.style.width=S.width,window.scrollTo(0,x)}},[e]),c.useEffect(()=>{if(!e){r({status:"idle"});return}let x=!1;r({status:"loading"});const S=e.preview,C=S?.path??"",R=e.key==="cometYaml"||/\.ya?ml$/i.test(C),w=e.key==="handoff"||e.key==="checkpoint"||/\.json$/i.test(C),N=R||w,$=S?.exists?N?S.content?.trimEnd()||"":`${S.content?.trimEnd()||"这个产物是空文件。"}${S.truncated?`
249
+
250
+ > 内容过长,已截取前 256KB。`:""}`:S?`尚未生成 ${e.name}。`:"这个产物文件存在,但当前 dashboard 服务返回的数据里没有全文内容。请重启 dashboard 服务后再刷新页面。";return(async()=>{try{let E;if(S?.exists&&N?$.trim()?(E=w?await pE($):await mE($),S.truncated&&(E+="<p><em>内容过长,已截取前 256KB。</em></p>")):E=w?await pE(""):await mE(""):E=await ac($),x)return;if(!E.trim()){r({status:"empty"});return}r({status:"success",html:E})}catch(E){if(x)return;r({status:"error",message:E instanceof Error?E.message:"产物预览渲染失败,请重试"})}})(),()=>{x=!0}},[e]),c.useEffect(()=>{if(o.status==="success"&&h.current){K9(h.current);const x=Y9(h.current);f(x),x.length>0&&m(x[0].id)}else f([]),m("")},[o]),c.useEffect(()=>{if(!s)return;const x=b.current,S=h.current;if(!x||!S||d.length===0)return;const C=()=>{const R=d.map(({id:N})=>document.getElementById(N)).filter(Boolean);let w=R[0]?.id??"";for(const N of R){const $=N.getBoundingClientRect(),E=x.getBoundingClientRect();$.top-E.top<=80&&(w=N.id)}m(w)};return x.addEventListener("scroll",C,{passive:!0}),()=>x.removeEventListener("scroll",C)},[d,s]),!e)return null;const v=e.preview;return O.jsxs("div",{className:s?"fixed inset-0 z-[90] flex":"fixed inset-0 z-[90] grid grid-cols-[minmax(0,1fr)_minmax(360px,760px)] max-sm:grid-cols-1",children:[!s&&O.jsx("button",{"aria-label":"关闭产物预览",className:"bg-black/30 max-sm:hidden",onClick:t}),O.jsxs("section",{className:["flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-bg",s?"h-full w-full":"border-l border-border shadow-[-20px_0_44px_rgba(0,0,0,0.12)]"].join(" "),children:[O.jsxs("header",{className:"flex items-start gap-3 border-b border-border-soft p-5",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("h2",{className:"text-xl font-bold",children:e.name}),O.jsxs("div",{className:"mt-1 flex items-start gap-1.5",children:[v?.path&&O.jsx("button",{type:"button",className:"grid size-7 shrink-0 place-items-center rounded-lg text-muted hover:bg-surface hover:text-fg-2","aria-label":"复制文件路径",onClick:async()=>{try{await navigator.clipboard.writeText(v.path),toast("路径已复制")}catch{toast("复制失败","error")}},children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),O.jsx("p",{className:"min-w-0 flex-1 break-all font-mono text-xs text-meta",children:v?.path??"当前服务未返回全文内容"})]}),(v?.size!=null||v?.updatedAt)&&O.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-3 text-[11px] text-muted",children:[v?.size!=null&&O.jsx("span",{children:K7(v.size)}),v?.updatedAt&&O.jsxs("span",{children:["更新于 ",ny(v.updatedAt)]})]})]}),O.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[O.jsx("button",{type:"button",className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:()=>l(x=>!x),"aria-label":s?"退出全屏":"全屏展示",children:s?O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})}):O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})})}),O.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:t,"aria-label":"关闭产物预览",children:"×"})]})]}),O.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[s&&d.length>0&&O.jsxs("nav",{"aria-label":"文档目录",className:"hidden w-[220px] shrink-0 overflow-y-auto border-r border-border-soft bg-surface px-3 py-4 sm:block",children:[O.jsx("p",{className:"mb-2 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted",children:"目录"}),O.jsx("ul",{className:"space-y-0.5",children:d.map(x=>O.jsx("li",{children:O.jsx("a",{href:`#${x.id}`,onClick:S=>{S.preventDefault();const C=document.getElementById(x.id),R=b.current;if(!C||!R)return;const w=C.getBoundingClientRect().top-R.getBoundingClientRect().top+R.scrollTop-16;R.scrollTo({top:w,behavior:"smooth"}),m(x.id)},className:["block rounded-md px-2 py-1.5 leading-snug transition-colors",x.depth===1?"text-[13px] font-medium":"",x.depth===2?"pl-4 text-xs":"",x.depth===3?"pl-7 text-xs":"",p===x.id?"bg-accent-soft font-medium text-accent":"text-fg-2 hover:bg-surface-warm hover:text-fg"].join(" "),children:x.text})},x.id))})]}),O.jsxs("div",{ref:b,className:["min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain",s?"px-12 py-6":"p-5"].join(" "),children:[o.status==="loading"&&O.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"正在加载..."}),o.status==="empty"&&O.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"该产物文件尚未生成"}),o.status==="error"&&O.jsx("p",{role:"alert",className:"py-10 text-center text-sm text-danger",children:o.message}),o.status==="success"&&O.jsx("article",{ref:h,className:"md-github",dangerouslySetInnerHTML:{__html:o.html}})]})]})]})]})}function mR({tone:e="neutral",children:t}){const o={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[e]??"bg-surface text-fg-2";return O.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold ${o}`,children:t})}function H7({error:e}){return O.jsxs("div",{role:"status",className:"mb-4 rounded-lg border border-warn/30 bg-warn-soft p-4 shadow-card",children:[O.jsx("h3",{className:"font-semibold text-warn",children:"Classic 数据部分读取失败"}),O.jsxs("p",{className:"mt-1 break-words text-sm text-fg-2",children:["已展示可读取的变更;请检查其余 Classic 产物目录后刷新。",e.message]})]})}function D7({error:e}){return O.jsxs("div",{role:"alert",className:"rounded-lg border border-danger/30 bg-danger-soft p-6 shadow-card",children:[O.jsx("h3",{className:"font-semibold text-danger",children:"Classic 数据读取失败"}),O.jsx("p",{className:"mt-2 break-words text-sm text-fg-2",children:e.message}),O.jsx("p",{className:"mt-3 text-sm text-muted",children:"请检查 .comet/config.yaml 与 Classic 产物目录,然后刷新 Dashboard。"})]})}function L7(){return O.jsxs("section",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[O.jsx("h3",{className:"text-lg font-semibold tracking-tight",children:"当前没有 Classic change"}),O.jsx("p",{className:"mt-2 text-sm text-muted",children:"Classic 变更出现后会在这里展示。"})]})}function V7(){return O.jsx("div",{className:"mx-auto max-w-dashboard rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载 dashboard..."})}async function F7(){const e=await fetch("/api/dashboard/projects",{cache:"no-store"});if(!e.ok)throw new Error(`HTTP ${e.status}`);return e.json()}async function q7(e,t){const o=e?`/api/dashboard/projects/${encodeURIComponent(e)}`:"/api/dashboard",r=await fetch(o,{cache:"no-store",signal:t});if(!r.ok)throw new Error(`HTTP ${r.status}`);return r.json()}async function U7(){const e=await ci(()=>import("./demo-BuVau32v.js"),[]);return W7(e.DEMO_SNAPSHOT)}function W7(e){const t=o=>{const s=(o.artifacts?.grouped??[]).map(l=>({key:l.key,label:l.label,path:l.path,exists:l.exists,size:l.exists?1024+Math.floor(Math.random()*4096):void 0,updatedAt:l.exists?"2026-06-25T12:00:00.000Z":void 0,content:l.exists?`# ${l.label}
251
+
252
+ ${l.label}:${o.displayName}
253
+
254
+ - 当前阶段:${ty(o.phase)}
255
+ - 任务进度:${o.tasks.completed}/${o.tasks.total}
256
+ - Verify:${ey[o.verify.result]??"未知"}
257
+ `:void 0}));return{...o,artifactPreviews:s}};return{...e,changes:{active:(e.changes.active??[]).map(t),archived:(e.changes.archived??[]).map(t)}}}function G7(e,t){const o=[...e.changes.active??[],...e.changes.archived??[]];return t&&o.some(r=>r.id===t)?t:e.changes.active?.[0]?.id??e.changes.archived?.[0]?.id??null}function X7(e,t){return!e||!t?null:[...e.changes.active??[],...e.changes.archived??[]].find(o=>o.id===t)??null}function k7(e,t,o){if(!e)return[];const r=t==="archived"?e.changes.archived??[]:t==="all"?[...e.changes.active??[],...e.changes.archived??[]]:e.changes.active??[],s=o.trim().toLowerCase();return s?r.filter(l=>[l.name,l.displayName,l.workflow,l.phase].filter(Boolean).join(" ").toLowerCase().includes(s)):r}function Y7(e){return e.relativePath||e.name}function ty(e){return Xb.find(([t])=>t===e)?.[1]??e??"未知"}function ny(e){if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const o=r=>String(r).padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}`}function K7(e){return e==null?null:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}async function pR(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.cssText="position:fixed;opacity:0;pointer-events:none",document.body.append(t),t.select();const o=document.execCommand("copy");if(t.remove(),!o)throw new Error("当前浏览器不支持复制")}IE.createRoot(document.getElementById("root")).render(O.jsx(E7,{}));function Q7({open:e,workflow:t,onWorkflow:o,onClose:r}){const s=O.jsx(vc,{mode:"inline",selectedKeys:[t],items:[{key:"classic",icon:O.jsx(nR,{}),label:"Classic 工作流"},{key:"native",icon:O.jsx(rD,{}),label:"Native 工作流"}],onClick:({key:l})=>{o(l),r()}});return O.jsxs(O.Fragment,{children:[O.jsx(Is.Sider,{className:"dashboard-sidebar !hidden !bg-bg lg:!block",width:228,theme:"light",children:O.jsxs("div",{className:"flex h-full flex-col",children:[O.jsxs("div",{className:"dashboard-sidebar-brand flex items-center gap-2",children:[O.jsx("img",{src:"/favicon.png",alt:"Comet",className:"size-7 rounded-[7px]"}),O.jsxs("div",{children:[O.jsx("strong",{children:"Comet Dashboard"}),O.jsx("div",{className:"text-xs text-meta",children:"只读工作台"})]})]}),O.jsxs("div",{className:"dashboard-sidebar-navigation",children:[O.jsxs("div",{className:"dashboard-sidebar-feature",children:[O.jsx(e9,{"aria-hidden":"true"}),O.jsx("span",{children:"变更工作区"})]}),O.jsx("div",{className:"dashboard-sidebar-label",children:"工作流"}),s]}),O.jsxs("div",{className:"dashboard-sidebar-status",children:[O.jsxs("div",{className:"flex items-center gap-2 font-medium text-fg",children:[O.jsx(Y0,{"aria-hidden":"true"}),"工作台状态"]}),O.jsx("div",{className:"mt-2 text-xs text-meta",children:"只读连接 · 自动同步"})]})]})}),O.jsx(ZN,{title:"Comet 工作台",placement:"left",open:e,onClose:r,size:280,children:s})]})}function Z7({snapshot:e}){const[t,o]=c.useState(0),r=[["活跃变更",e.summary.activeChanges,"当前 Classic workflow","进行中",rR],["已归档变更",e.summary.archivedChanges,"历史变更已归档","已完成",oR],["Verify 失败",e.summary.verifyFailed,"验证结果",e.summary.verifyFailed?"阻塞":"健康",aR],["未完成任务",e.summary.tasksIncomplete,"任务推进情况",e.summary.tasksIncomplete?"待办":"清零",Ms],["Git 未提交",e.summary.dirtyFiles,"工作区状态",e.summary.dirtyFiles?"未提交":"干净",nR]];return O.jsx("section",{className:"dashboard-summary-strip dashboard-overview-summary-strip",children:r.map(([s,l,d,f,p],m)=>O.jsx(J7,{title:s,value:l,note:d,status:f,icon:p,tone:`dashboard-summary-tone-${m+1}`,selected:t===m,onClick:()=>o(m)},s))})}function J7({title:e,value:t,note:o,status:r,icon:s,tone:l,selected:d,onClick:f}){const p=ds(t,850,t);return O.jsxs("button",{type:"button","aria-pressed":d,className:`dashboard-overview-summary-card dashboard-summary-card dashboard-summary-metric-cell ${l} ${d?"dashboard-summary-primary":""}`,onClick:f,children:[O.jsxs("div",{className:"dashboard-summary-card-top",children:[O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-[13px] font-medium text-muted",children:e}),O.jsx("div",{className:"dashboard-summary-metric mt-1 text-[28px] font-semibold leading-none tabular-nums",children:Math.round(p)})]}),O.jsx("span",{className:"dashboard-summary-icon","aria-hidden":"true",children:O.jsx(s,{})})]}),O.jsx("span",{className:"dashboard-summary-status",children:r}),O.jsx("div",{className:"mt-2 truncate text-[11px] text-meta",children:o})]})}function eV({visible:e,selectedId:t,tab:o,onTab:r,onSelect:s}){const l=[["active","活跃"],["archived","已归档"],["all","全部"]].map(([d,f])=>({key:d,label:f}));return O.jsx(rc,{className:"min-w-0",title:O.jsxs("span",{children:["Changes Explorer ",O.jsx(iN,{count:e.length,showZero:!0,className:"ml-2"})]}),children:O.jsx(U0,{activeKey:o,onChange:r,items:l.map(d=>({...d,children:O.jsx("div",{className:"dashboard-change-list",children:e.length===0?O.jsx(Pr,{image:Pr.PRESENTED_IMAGE_SIMPLE,description:"暂无变更"}):e.map(f=>O.jsx("div",{className:`dashboard-change-list-item ${f.id===t?"rounded-lg bg-accent-softer px-2":"px-2"}`,children:O.jsx(Mo,{className:"dashboard-change-row",type:"text",block:!0,onClick:()=>s(f.id),children:O.jsxs("div",{className:"flex w-full items-center gap-2.5 text-left",children:[O.jsxs("div",{className:"min-w-0 flex-1",children:[O.jsx("strong",{className:"block truncate",children:f.displayName}),O.jsxs("span",{className:"mt-0.5 block text-xs text-meta",children:[ty(f.phase)," · ",f.tasks.completed,"/",f.tasks.total]}),O.jsx(aL,{percent:f.tasks.total?Math.round(f.tasks.completed/f.tasks.total*100):0,className:"mt-1",size:"small",showInfo:!1})]}),O.jsx(mR,{tone:fR[f.verify.result]??"neutral",children:ey[f.verify.result]??"未知"})]})})},f.id))})}))})})}function tV({change:e,onPreview:t}){const[o,r]=c.useState(!1),s=e.status==="archived"?"archive":e.phase,l=Math.max(0,Xb.findIndex(([d])=>d===s));return O.jsxs(rc,{className:"change-detail min-w-0",title:O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("span",{className:"truncate",children:e.displayName}),O.jsx(Ur,{title:"复制 Change 名称",children:O.jsx(Mo,{type:"text",size:"small",icon:o?O.jsx(Ms,{}):O.jsx(tR,{}),"aria-label":o?"已复制 Change 名称":"复制 Change 名称",onClick:()=>pR(e.name).then(()=>{r(!0),toast("Change 名称已复制"),window.setTimeout(()=>r(!1),1600)}).catch(()=>toast("复制 Change 名称失败","error"))})})]}),extra:O.jsx(mR,{tone:e.status==="archived"?"neutral":fR[e.verify.result],children:e.status==="archived"?"已归档":ey[e.verify.result]}),children:[O.jsxs("div",{className:"mb-4 text-xs text-meta",children:[e.workflow??"—"," · 更新于 ",ny(e.updatedAt)," ·"," ",Y7(e)]}),O.jsx(LL,{size:"small",current:l,items:Xb.map(([,d])=>({title:d}))}),O.jsx(Tw,{className:"dashboard-next-step-alert",type:"info",showIcon:!0,title:e.next?.command?`下一步:${e.next.command}`:"该变更没有待执行的下一步",description:e.next?.description}),O.jsxs("div",{className:"change-detail-panels grid min-w-0 gap-4",children:[O.jsx(rc,{size:"small",title:"关键产物",children:O.jsx(T7,{change:e,onPreview:t})}),O.jsx(z7,{change:e})]})]})}export{VE as C,FE as K,JO as L,oV as M,rV as S,ci as _,hS as a,aV as b,mS as c,Wt as g,f6 as m,Kl as s};